1 2011-11-10 Richard Guenther <rguenther@suse.de>
3 PR tree-optimization/51042
4 * tree-ssa-pre.c (phi_translate_1): Avoid recursing on
5 self-referential expressions. Refactor code to avoid duplication.
7 2011-11-10 Richard Guenther <rguenther@suse.de>
9 PR tree-optimization/51070
10 * tree-loop-distribution.c (generate_builtin): Do not replace
11 the loop with a builtin if the partition contains statements which
12 results are used outside of the loop.
13 (pass_loop_distribution): Verify and collect.
15 2011-11-10 Richard Guenther <rguenther@suse.de>
17 PR tree-optimization/51030
18 * tree-ssa-phiopt.c (jump_function_from_stmt): New function.
19 (value_replacement): Use it to handle trivial non-empty
22 2011-11-10 Richard Guenther <rguenther@suse.de>
25 * gimple.c (gimple_has_side_effects): Remove checking code
26 that doesn't belong here.
28 2011-11-10 Ira Rosen <ira.rosen@linaro.org>
30 PR tree-optimization/51058
31 * tree-vect-slp.c (vect_get_constant_vectors): Handle CALL_EXPR.
33 2011-11-10 Jakub Jelinek <jakub@redhat.com>
35 PR tree-optimization/51000
36 * tree-vect-patterns.c (vect_recog_bool_pattern): If adding
37 a pattern stmt for a bool store, adjust DR_STMT too.
38 Don't handle bool conversions to single bit precision lhs.
39 * tree-vect-stmts.c (vect_remove_stores): If next is a pattern
40 stmt, remove its related stmt and free its stmt_vinfo.
41 (free_stmt_vec_info): Free also pattern stmt's vinfo and
42 pattern def stmt's vinfo.
43 * tree-vect-loop.c (destroy_loop_vec_info): Don't try to
44 free pattern stmt's vinfo here.
45 (vect_transform_loop): When calling vect_remove_stores,
46 do gsi_next first and don't call gsi_remove. If not strided
47 store, free stmt vinfo for gsi_stmt (si) rather than stmt.
49 2011-11-09 Jakub Jelinek <jakub@redhat.com>
52 * config/i386/i386.c (expand_vec_perm_interleave2): If d->vmode is
53 V4SImode, !TARGET_SSE2 and punpck[lh]* is needed, change dremap.vmode
56 * function.h (requires_stack_frame_p): New prototype.
57 * function.c (requires_stack_frame_p): No longer static.
58 * config/i386/i386.c (ix86_finalize_stack_realign_flags): If
59 stack_realign_fp was just a conservative guess for a function
60 which doesn't use sp/fp/argp at all, clear frame_pointer_needed
61 and stack realignment.
63 2011-11-09 Paolo Carlini <paolo.carlini@oracle.com>
66 * incpath.c (merge_include_chains): Make sure to not pass null
67 pointers to free_path.
69 2011-11-09 Paolo Carlini <paolo.carlini@oracle.com>
71 * doc/invoke.texi ([Option Summary, C++ Language Options]):
72 Add -Wzero-as-null-pointer-constant.
74 2011-11-07 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
76 * config/arm/arm-cores.def: Add -mcpu=cortex-a7.
77 * config/arm/arm-tables.opt: Regenerate.
78 * config/arm/arm-tune.md: Likewise.
79 * config/arm/bpabi.h (BE8_LINK_SPEC): Add Cortex A-7.
80 * doc/invoke.texi: Document -mcpu=cortex-a7.
82 2011-11-09 Richard Guenther <rguenther@suse.de>
85 2011-11-09 Richard Guenther <rguenther@suse.de>
87 * tree-cfg.c (verify_gimple_call): Verify that
88 gimple_call_cannot_inline_p is returning a conservative
89 correct result according to gimple_check_call_matching_types.
91 2011-11-09 Richard Guenther <rguenther@suse.de>
93 PR tree-optimization/51039
94 * tree-cfg.c (verify_gimple_call): Verify that
95 gimple_call_cannot_inline_p is returning a conservative
96 correct result according to gimple_check_call_matching_types.
97 * ipa-inline-analysis.c (estimate_function_body_sizes): Remove
98 code dealing with un-inlinablility.
99 * gimple-streamer-in.c (input_gimple_stmt): Update the
102 2011-11-09 Richard Guenther <rguenther@suse.de>
104 PR tree-optimization/51039
105 * tree-inline.c (setup_one_parameter): Always perform a
106 valid gimple type change.
107 (declare_return_variable): Likewise.
109 2011-11-09 Jakub Jelinek <jakub@redhat.com>
111 * config/rs6000/vector.md (vcondv4sfv4si, vcondv4siv4sf,
112 vconduv4sfv4si): New patterns.
113 * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Handle
114 different dest_mode from comparison mode.
116 2011-11-09 Richard Guenther <rguenther@suse.de>
118 * gimple-fold.c (canonicalize_constructor_val): Mark
119 address-taken variables addressable.
121 2011-11-09 Ira Rosen <ira.rosen@linaro.org>
123 PR tree-optimization/51015
124 * tree-vect-loop.c (vect_determine_vectorization_factor): Expect
125 vectype to be set for pattern def stmts.
127 2011-11-09 Alan Modra <amodra@gmail.com>
129 * function.c (bb_active_p): Delete.
130 (dup_block_and_redirect, active_insn_between): New functions.
131 (convert_jumps_to_returns, emit_return_for_exit): New functions,
133 (thread_prologue_and_epilogue_insns): ..here. Delete
134 shadowing variables. Don't do prologue register clobber tests
135 when shrink wrapping already failed. Delete all last_bb_active
136 code. Instead compute tail block candidates for duplicating
137 exit path. Remove these from antic set. Duplicate tails when
138 reached from both blocks needing a prologue/epilogue and
139 blocks not needing such.
140 * ifcvt.c (dead_or_predicable): Test both flag_shrink_wrap and
142 * bb-reorder.c (get_uncond_jump_length): Make global.
143 * bb-reorder.h (get_uncond_jump_length): Declare.
144 * cfgrtl.c (rtl_create_basic_block): Comment typo fix.
145 (rtl_split_edge): Likewise. Warning fix.
146 (rtl_duplicate_bb): New function.
147 (rtl_cfg_hooks): Enable can_duplicate_block_p and duplicate_block.
148 * Makefile.in (function.o): Update dependencies.
150 2011-11-08 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
151 Georg-Johann Lay <avr@gjlay.de>
153 * doc/tm.texi.in (MODE_CODE_BASE_REG_CLASS): Add address space
155 (REGNO_MODE_CODE_OK_FOR_BASE_P): Likewise.
156 * doc/tm.texi: Regenerate.
158 * config/cris/cris.h (MODE_CODE_BASE_REG_CLASS): Add address
160 (REGNO_MODE_CODE_OK_FOR_BASE_P): Likewise.
161 * config/bfin/bfin.h (MODE_CODE_BASE_REG_CLASS): Likewise.
162 (REGNO_MODE_CODE_OK_FOR_BASE_P): Likewise.
163 * config/avr/avr.h (MODE_CODE_BASE_REG_CLASS): Add address space
165 (REGNO_MODE_CODE_OK_FOR_BASE_P): Ditto.
166 * config/avr/avr-protos.h (avr_mode_code_base_reg_class): Ditto.
167 (avr_regno_mode_code_ok_for_base_p): Ditto.
168 * config/avr/avr.c (avr_mode_code_base_reg_class): Ditto.
169 (avr_regno_mode_code_ok_for_base_p): Ditto.
170 (avr_reg_ok_for_addr_p): Pass AS down to
171 avr_regno_mode_code_ok_for_base_p.
173 * addresses.h (base_reg_class): Add address space argument.
174 Pass to MODE_CODE_BASE_REG_CLASS.
175 (ok_for_base_p_1): Add address space argument. Pass to
176 REGNO_MODE_CODE_OK_FOR_BASE_P.
177 (regno_ok_for_base_p): Add address space argument. Pass to
180 * regrename.c (scan_rtx_address): Add address space argument.
181 Pass address space to regno_ok_for_base_p and base_reg_class.
182 Update recursive calls.
183 (scan_rtx): Pass address space to scan_rtx_address.
184 (build_def_use): Likewise.
185 * regcprop.c (replace_oldest_value_addr): Add address space
186 argument. Pass to regno_ok_for_base_p and base_reg_class.
187 Update recursive calls.
188 (replace_oldest_value_mem): Pass address space to
189 replace_oldest_value_addr.
190 (copyprop_hardreg_forward_1): Likewise.
192 * reload.c (find_reloads_address_1): Add address space argument.
193 Pass address space to base_reg_class and regno_ok_for_base_p.
194 Update recursive calls.
195 (find_reloads_address): Pass address space to base_reg_class,
196 regno_ok_for_base_p, and find_reloads_address_1.
197 (find_reloads): Pass address space to base_reg_class.
198 (find_reloads_subreg_address): Likewise.
200 * ira-costs.c (record_reg_classes): Update calls to base_reg_class.
201 (ok_for_base_p_nonstrict): Add address space argument. Pass to
203 (record_address_regs): Add address space argument. Pass to
204 base_reg_class and ok_for_base_p_nonstrict. Update recursive calls.
205 (record_operand_costs): Pass address space to record_address_regs.
206 (scan_one_insn): Likewise.
208 * caller-save.c (init_caller_save): Update call to base_reg_class.
209 * ira-conflicts.c (ira_build_conflicts): Likewise.
210 * reload1.c (maybe_fix_stack_asms): Likewise.
212 2011-11-08 Michael Matz <matz@suse.de>
214 * gengtype.c (write_field_root): Avoid out-of-scope access of newv.
216 * tree-stdarg.c (execute_optimize_stdarg): Accept clobbers.
218 * tree.h (TREE_CLOBBER_P): New macro.
219 * gimple.h (gimple_clobber_p): New inline function.
220 * gimplify.c (gimplify_bind_expr): Add clobbers for all variables
221 that go out of scope and live in memory.
222 * tree-ssa-operands.c (get_expr_operands): Transfer volatility also
224 * cfgexpand.c (decl_to_stack_part): New static variable.
225 (add_stack_var): Allocate it, and remember mapping.
226 (fini_vars_expansion): Deallocate it.
227 (stack_var_conflict_p): Add early outs.
228 (visit_op, visit_conflict, add_scope_conflicts_1,
229 add_scope_conflicts): New static functions.
230 (expand_used_vars_for_block): Don't call add_stack_var_conflict, tidy.
231 (expand_used_vars): Add scope conflicts.
232 (expand_gimple_stmt_1): Expand clobbers to nothing.
233 (expand_debug_expr): Ditto.
235 * tree-pretty-print.c (dump_generic_node): Dump clobbers nicely.
236 * tree-ssa-live.c (remove_unused_locals): Remove clobbers that
237 refer to otherwise unused locals.
238 * tree-sra.c (build_accesses_from_assign): Ignore clobbers.
239 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Clobbers of
240 SSA names aren't necessary.
241 (propagate_necessity): Accept and ignore constructors on the rhs,
243 * gimple.c (walk_gimple_op): Accept constructors like mem_rhs.
244 * tree-ssa-structalias.c (find_func_aliases): Clobbers don't store
246 * tree-ssa-sccvn.c (vn_reference_lookup_3): Ditto, in particular they
247 don't zero-initialize something.
248 * tree-ssa-phiopt.c (cond_if_else_store_replacement_1): Ignore
249 clobber RHS, we don't want PHI nodes with those.
251 2011-11-08 Jakub Jelinek <jakub@redhat.com>
253 * config/i386/i386.c (ix86_preferred_simd_mode): Even for TARGET_AVX
254 if not TARGET_PREFER_AVX128 return 32-byte integer vectors.
256 2011-11-08 Richard Guenther <rguenther@suse.de>
258 PR tree-optimization/51012
259 * ipa-prop.c (update_indirect_edges_after_inlining): Fixup
261 * cgraph.c (cgraph_make_edge_direct): Likewise.
263 2011-11-08 Eric Botcazou <ebotcazou@adacore.com>
265 PR rtl-optimization/47698
266 * ifcvt.c (noce_operand_ok): Move around comment.
268 2011-11-08 Richard Guenther <rguenther@suse.de>
271 * lto-opts.c (append_to_collect_gcc_options): Split out from...
272 (lto_write_options): ... here. Prepend frontend specific flags.
274 2011-11-08 Jakub Jelinek <jakub@redhat.com>
276 * config/i386/sse.md (*avx_vperm2f128<mode>3_nozero): Emit mask
277 0x12 and 0x20 as vinsert[fi]128 instead of vperm2[fi]128.
279 * tree-vect-stmts.c (vectorizable_call): Add SLP_NODE argument.
280 Handle vectorization of SLP calls.
281 (vect_analyze_stmt): Adjust caller, add call to it for SLP too.
282 (vect_transform_stmt): Adjust vectorizable_call caller, remove
284 * tree-vect-slp.c (vect_get_and_check_slp_defs): For calls start
286 (vect_build_slp_tree): Allow CALL_EXPR.
288 2011-11-08 Richard Guenther <rguenther@suse.de>
290 * gimple-fold.c (canonicalize_constructor_val): Make sure
291 we have referenced vars setup before adding to them.
293 2011-11-07 Richard Henderson <rth@redhat.com>
294 Aldy Hernandez <aldyh@redhat.com>
295 Andrew MacLeod <amacleod@redhat.com>
296 Torvald Riegel <triegel@redhat.com>
298 Merged from transactional-memory.
300 * gtm-builtins.def: New file.
301 * trans-mem.c: New file.
302 * trans-mem.h: New file.
304 * opts.c (finish_options): Error out when using -flto and
307 * config/i386/i386.c: Define TARGET_VECTORIZE* transactional variants.
308 (ix86_handle_tm_regparm_attribute, struct bdesc_tm,
309 ix86_builtin_tm_load, ix86_builtin_tm_store,
310 ix86_init_tm_builtins): New.
311 (ix86_init_builtins): Initialize TM builtins.
312 (struct ix86_attribute_table): Add "*tm regparm".
313 * config/i386/i386-builtin-types.def (PV2SI): Define.
315 Define V2SI_FTYPE_PCV2SI.
316 Define V4SF_FTYPE_PCV4SF.
317 Define V8SF_FTYPE_PCV8SF.
318 Define VOID_PV2SI_V2SI.
320 * doc/invoke.texi (C Dialect Options): Document -fgnu-tm and
321 tm-max-aggregate-size.
322 * doc/tm.texi.in: Add TARGET_VECTORIZE_BUILTIN_TM_LOAD and
323 TARGET_VECTORIZE_BUILTIN_TM_STORE hooks.
324 * doc/tm.texi: Regenerate.
326 * attribs.c (apply_tm_attr): New.
327 (init_attributes): Allow '*' prefix for overrides.
328 (register_attribute): Likewise.
329 * builtin-attrs.def (ATTR_TM_TMPURE, ATTR_TM_REGPARM): New.
330 (ATTR_TM_NOTHROW_LIST, ATTR_TM_TMPURE_NOTHROW_LIST,
331 ATTR_TM_PURE_TMPURE_NOTHROW_LIST, ATTR_TM_NORETURN_NOTHROW_LIST,
332 ATTR_TM_CONST_NOTHROW_LIST, ATTR_TMPURE_MALLOC_NOTHROW_LIST,
333 ATTR_TMPURE_NOTHROW_LIST): New.
334 * builtin-types.def (BT_FN_I[1248]_VPTR, BT_FN_FLOAT_VPTR,
335 BT_FN_DOUBLE_VPTR, BT_FN_LDOUBLE_VPTR, BT_FN_VOID_VPTR_I[1248],
336 BT_FN_VOID_VPTR_FLOAT, BT_FN_VOID_VPTR_DOUBLE,
337 BT_FN_VOID_VPTR_LDOUBLE, BT_FN_VOID_VPTR_SIZE): New.
338 * builtins.def: Include gtm-builtins.def. Add comments regarding
339 transactional memory synchronization.
340 (DEF_TM_BUILTIN): New.
341 * c-parser.c (struct c_parser): Add in_transaction.
342 (c_parser_transaction, c_parser_transaction_expression,
343 c_parser_transaction_cancel, c_parser_transaction_attributes): New.
344 (c_parser_attribute_any_word): Split out from c_parser_attributes.
345 (c_parser_statement_after_labels): Handle RID_TRANSACTION*.
346 (c_parser_unary_expression): Same.
347 * c-tree.h (c_finish_transaction): Declare.
348 * c-typeck.c (c_finish_transaction): New.
349 (build_function_call_vec): Call tm_malloc_replacement.
350 * calls.c (is_tm_builtin): New.
351 (flags_from_decl_or_type): Add ECF_TM_BUILTIN and ECF_TM_PURE.
352 * cfgbuild.c (make_edges): Add edges for REG_TM notes.
353 * cfgexpand.c (expand_call_stmt): Call
354 mark_transaction_restart_calls.
355 (gimple_expand_cfg): Free the tm_restart map.
356 (mark_transaction_restart_calls): New.
357 * cfgrtl.c (purge_dead_edges): Look for REG_TM notes.
358 * cgraph.c (dump_cgraph_node): Handle tm_clone.
359 * cgraph.h (struct cgraph_node): Add tm_clone field.
360 (decl_is_tm_clone): New.
361 (struct cgraph_local_info): Add tm_may_enter_irr.
362 (cgraph_copy_node_for_versioning): Declare.
363 * cgraphunit.c (cgraph_copy_node_for_versioning): Export;
364 copy analyzed from old version.
365 * combine.c (distribute_notes): Handle REG_TM notes.
366 * common.opt: Add -fgnu-tm.
367 * crtstuff.c (__TMC_LIST__, __TMC_END__): New.
368 (__do_global_dtors_aux): Deregister clone table.
369 (frame_dummy): Register clone table.
370 * emit-rtl.c (try_split): Handle REG_TM. Early return if no function
372 * gimple-low.c (lower_stmt): Handle GIMPLE_EH_ELSE and
374 (gimple_stmt_may_fallthru): Handle GIMPLE_EH_ELSE.
375 * gimple-pretty-print.c: Include trans-mem.h.
376 (dump_gimple_fmt): Add %x.
377 (dump_gimple_call): Dump arguments for calls to _ITM_beginTransaction.
378 (dump_gimple_eh_else, dump_gimple_transaction): New.
379 (dump_gimple_stmt): Handle GIMPLE_EH_ELSE and GIMPLE_TRANSACTION.
380 * gimple.c (gimple_build_eh_else, gimple_build_transaction): New.
381 (walk_gimple_seq): Honor removed_stmt. Document usage of removed_stmt
383 (walk_gimple_op): Handle GIMPLE_TRANSACTION.
384 (walk_gimple_stmt): Initialize and honor removed_stmt.
385 Handle GIMPLE_EH_ELSE and GIMPLE_TRANSACTION.
386 (gimple_copy): Handle GIMPLE_EH_ELSE and GIMPLE_TRANSACTION.
387 * gimple.def (GIMPLE_TRANSACTION, GIMPLE_EH_ELSE): New.
388 * gimple.h (struct gimple_statement_eh_else,
389 gimple_statement_transaction, GTMA_*): New.
390 (gimple_statement_d): Add gimple_statement_eh_else and
392 (gimple_build_eh_else, gimple_build_transaction,
393 gimple_fold_call, diagnose_tm_safe_errors): Declare.
394 (get_call_expr_in): Remove prototype.
395 (gimple_has_substatements): Add GIMPLE_EH_ELSE and GIMPLE_TRANSACTION.
396 (gimple_eh_else_n_body, gimple_eh_else_e_body,
397 gimple_eh_else_set_n_body, gimple_eh_else_set_e_body,
398 gimple_transaction_body, gimple_transaction_label,
399 gimple_transaction_label_ptr, gimple_transaction_subcode,
400 gimple_transaction_set_body, gimple_transaction_set_label,
401 gimple_transaction_set_subcode): New.
402 (struct walk_stmt_info): Use BOOL_BITFIELD; add removed_stmt.
403 * gimplify.c (create_tmp_var_name): Use clean_symbol_name.
404 (voidify_wrapper_expr): Handle TRANSACTION_EXPR.
405 (gimplify_transaction): New.
406 (gimplify_expr): Handle TRANSACTION_EXPR.
407 * gsstruct.def (GSS_EH_ELSE, GSS_TRANSACTION): New.
408 * ipa-inline.c (can_inline_edge_p): Do not inline TM safe calling
410 * Makefile.in: Add trans-mem.o and dependencies.
411 (BUILTINS_DEF): Add gtm-builtins.def.
412 (gimple-pretty-print.o): Depend on TRANS_MEM_H.
413 (GTFILES): Add trans-mem.c.
414 * omp-low.c (WALK_SUBSTMTS): Add GIMPLE_TRANSACTION.
415 * output.h (record_tm_clone_pair, finish_tm_clone_pairs,
416 get_tm_clone_pair): Declare.
417 * params.def (PARAM_TM_MAX_AGGREGATE_SIZE): New.
418 * passes.c (init_optimization_passes): Place transactional memory
420 * print-tree.c (print_node): Dump tm-clone.
421 * recog.c (peep2_attempt): Handle REG_TM.
422 * reg-notes.def (TM): New.
423 * rtlanal.c (alloc_reg_note): Handle REG_TM.
424 * target.def (builtin_tm_load, builtin_tm_store): New.
425 * targhooks.c (default_builtin_tm_load_store): New.
426 * targhooks.h (default_builtin_tm_load_store): Declare.
427 * timevar.def (TV_TRANS_MEM): New.
428 * toplev.c (compile_file): Call finish_tm_clone_pairs.
429 * tree-cfg.c (make_edges): Handle GIMPLE_TRANSACTION.
430 (cleanup_dead_labels): Handle GIMPLE_TRANSACTION. Avoid unnecessary
431 writes into the statements to update labels.
432 (is_ctrl_altering_stmt): Add TM ending statements. Handle
434 (verify_gimple_transaction): New.
435 (verify_gimple_stmt): Handle GIMPLE_TRANSACTION.
436 (verify_gimple_in_seq_2): Handle GIMPLE_EH_ELSE and GIMPLE_TRANSACTION.
437 (gimple_redirect_edge_and_branch): Handle TM_TRANSACTION.
438 (dump_function_to_file): Display [tm-clone] if applicable.
439 * tree-eh.c (struct_ptr_eq): Make inline and move to tree.h.
440 (struct_ptr_hash): Same.
441 (collect_finally_tree): Handle GIMPLE_EH_ELSE.
442 (replace_goto_queue_1): Likewise.
444 (honor_protect_cleanup_actions): Handle GIMPLE_EH_ELSE.
445 (lower_try_finally_nofallthru): Likewise.
446 (lower_try_finally_onedest): Likewise.
447 (lower_try_finally_copy): Likewise.
448 (lower_try_finally_switch): Likewise.
449 (lower_try_finally): Likewise.
450 (decide_copy_try_finally): Likewise.
451 (lower_eh_constructs_2): Likewise.
452 (refactor_eh_r): Likewise.
453 * tree-flow.h (struct gimple_df): Add tm_restart field.
454 Define tm_restart_node.
455 * tree-inline.c (remap_gimple_stmt): Handle GIMPLE_TRANSACTION.
456 (estimate_num_insns): Likewise.
457 (init_inline_once): Init tm_cost.
458 * tree-inline.h (struct eni_weights_d): Add tm_cost.
459 * tree-pass.h (pass_diagnose_tm_blocks, pass_lower_tm, pass_tm_init,
460 pass_tm_mark, pass_tm_memopt, pass_tm_edges, pass_ipa_tm): Declare.
461 * tree-pretty-print.c (dump_generic_node): Handle TRANSACTION_EXPR.
462 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
463 BUILT_IN_TM_MEMSET, BUILT_IN_TM_MEMCPY, BUILT_IN_TM_MEMMOVE.
464 Add support for TM vector loads. Add support for TM logging builtins.
465 (call_may_clobber_ref_p_1): Add support for vector stores.
466 * tree-ssa-structalias.c (find_func_aliases): Add support for TM
467 vector stores and loads. Handle BUILT_IN_TM_MEMSET,
468 BUILT_IN_TM_MEMCPY, BUILT_IN_TM_MEMMOVE.
469 * tree.c (strip_invariant_refs): Moved from gimple.c to here.
470 (local_define_builtin): Handle ECF_TM_PURE.
471 (build_common_builtin_nodes): Set __builtin_eh_pointer to ECF_TM_PURE.
472 * tree.def (TRANSACTION_EXPR): New.
473 * tree.h (strip_invariant_refs): Moved from gimple.h to here.
474 (TRANSACTION_EXPR_BODY, TRANSACTION_EXPR_CHECK,
475 TRANSACTION_EXPR_OUTER, TRANSACTION_EXPR_RELAXED,
476 BUILTIN_TM_LOAD_STORE_P, BUILTIN_TM_LOAD_P, BUILTIN_TM_STORE_P,
477 CASE_BUILT_IN_TM_LOAD, CASE_BUILT_IN_TM_STORE): New.
478 (ECF_TM_PURE, ECF_TM_BUILTIN): New.
479 (struct tree_function_decl): Add tm_clone_flag.
480 (struct_ptr_eq, struct_ptr_hash): New.
481 (apply_tm_attr): Declare.
482 (is_tm_safe_or_pure): New.
483 (build_tm_abort_call, is_tm_safe, is_tm_pure,
484 is_tm_may_cancel_outer, is_tm_ending_fndecl, record_tm_replacement,
485 tm_malloc_replacement): Declare.
486 * varasm.c (tm_clone_hash): New.
487 (record_tm_clone_pair, finish_tm_clone_pairs, get_tm_clone_pair,
488 dump_tm_clone_to_vec, dump_tm_clone_pairs, tm_alias_pair_cmp): New.
489 (struct tm_alias_pair): New. Declare VEC types for object.
491 2011-11-07 Richard Henderson <rth@redhat.com>
493 * optabs.h (OTI_sync_compare_and_swap, OTI_sync_lock_test_and_set,
494 OTI_sync_old_add, OTI_sync_old_sub, OTI_sync_old_ior,
495 OTI_sync_old_and, OTI_sync_old_xor, OTI_sync_old_nand,
496 OTI_sync_new_add, OTI_sync_new_sub, OTI_sync_new_ior,
497 OTI_sync_new_and, OTI_sync_new_xor, OTI_sync_new_nand): Move and
498 rename from the direct_optab_index enum.
499 (sync_compare_and_swap_optab, sync_lock_test_and_set_optab,
500 sync_old_add_optab, sync_old_sub_optab, sync_old_ior_optab,
501 sync_old_and_optab, sync_old_xor_optab, sync_old_nand_optab,
502 sync_new_add_optab, sync_new_sub_optab, sync_new_ior_optab,
503 sync_new_and_optab, sync_new_xor_optab, sync_new_nand_optab): Read
504 from the optab_table, not the direct_optab_table.
505 (init_sync_libfuncs): Declare.
506 (can_compare_and_swap_p): Update parameters.
507 * optabs.c (init_sync_libfuncs_1, init_sync_libfuncs): New.
508 (can_compare_and_swap_p): Add allow_libcall parameter; if true,
509 test for the legacy compare-and-swap libcall.
510 (expand_atomic_exchange): Use the legacy test-and-set libcall.
511 (expand_atomic_compare_and_swap): Use the legacy CAS libcall.
512 (struct atomic_op_functions): Update for optab type changes.
513 (maybe_emit_op): Likewise.
514 (expand_atomic_fetch_op): Use the legacy fetch-op libcalls.
515 * builtins.c (fold_builtin_atomic_always_lock_free): Update call
516 to can_compare_and_swap_p.
517 * omp-low.c (expand_omp_atomic_fetch_op): Likewise.
518 (expand_omp_atomic_pipeline): Likewise.
519 * genopinit.c (optabs): Make sync_old_*_optab, sync_new_*_optab,
520 sync_compare_and_swap_optab, sync_lock_test_and_set_optab regular
522 * doc/md.texi (sync_compare_and_swap): Update docs for libcalls.
524 2011-11-07 Jakub Jelinek <jakub@redhat.com>
526 * config/i386/i386-bultin-types.def (V8SI_FTYPE_V4DF_V4DF): Add.
527 * config/i386/i386.c (enum ix86_builtins): Add
528 IX86_BUILTIN_VEC_PACK_SFIX256.
529 (bdesc_args): Add __builtin_ia32_vec_pack_sfix256.
530 (ix86_expand_args_builtin): Handle V8SI_FTYPE_V4DF_V4DF.
531 (ix86_builtin_vectorized_function): Also vectorize lrint using
532 256-bit vectors for -mavx.
534 2011-11-07 Anatoly Sokolov <aesok@post.ru>
536 * config/cris/constraints.md: New file.
537 * config/cris/cris.h (REG_CLASS_FROM_LETTER, CONSTRAINT_LEN,
538 CRIS_CONST_OK_FOR_LETTER_P, CONST_OK_FOR_CONSTRAINT_P,
539 CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_MEMORY_CONSTRAINT,
540 EXTRA_CONSTRAINT, EXTRA_CONSTRAINT_Q, EXTRA_CONSTRAINT_R,
541 EXTRA_CONSTRAINT_T, EXTRA_CONSTRAINT_S, EXTRA_CONSTRAINT_U): Remove.
542 * config/cris/cris.c: Incule "tm-constrs.h".
543 (cris_print_operand): Use satisfies_constraint_O.
544 (cris_normal_notice_update_cc, cris_rtx_costs): Use
545 satisfies_constraint_I.
546 (cris_address_cost): Use satisfies_constraint_L.
547 * config/cris/cris.md: Include "constraints.md".
548 (*mov_side<mode>, *mov_sidesisf, *mov_side<mode>_mem,
549 *mov_sidesisf_mem, *clear_side<mode>, *ext_sideqihi,
550 *ext_side<mode>si, *op_side<mode>, *op_swap_side<mode>,
551 *extopqihi_side, *extop<mode>si_side, *extopqihi_swap_side,
552 *extop<mode>si_swap_side): Use satisfies_constraint_N and
553 satisfies_constraint_J.
554 (moversideqi movemsideqi mover2side peephole2): Use
555 satisfies_constraint_N and satisfies_constraint_J.
556 (andu peephole2): Use satisfies_constraint_I and
557 satisfies_constraint_O.
559 2011-11-07 Uros Bizjak <ubizjak@gmail.com>
561 * config/i386/i386.c (ix86_builtin_vectorized_function): Handle
562 BUILT_IN_IRINT, BUILT_IN_IRINTF, BUILT_IN_LLRINT and BUILT_IN_LLRINTF.
564 2011-11-07 Andrew MacLeod <amacleod@redhat.com>
566 * optabs.c (get_atomic_op_for_code): Fill in optab table at runtime so
567 SWITCHABLE_TARGET can change the values during compilation.
568 (expand_atomic_fetch_op): Handle parameter change ripples for
569 get_atomic_op_for_code call.
571 2011-11-07 Andrew MacLeod <amacleod@redhat.com>
573 * doc/extend.texi: Docuemnt behaviour change for __atomic_exchange and
575 * optabs.c (expand_atomic_exchange): Expand to __sync_lock_test_and_set
576 only when originated from that builtin.
577 (expand_atomic_store): Expand to __sync_lock_release when originated
579 * builtins.c (expand_builtin_sync_lock_test_and_set): Add flag that
580 expand_atomic_exchange call originated from here.
581 (expand_builtin_sync_lock_release): Add flag that expand_atomic_store
582 call originated from here.
583 (expand_builtin_atomic_exchange): Add origination flag.
584 (expand_builtin_atomic_store): Add origination flag.
585 * expr.h (expand_atomic_exchange, expand_atomic_store): Add boolean
586 parameters to indicate implementation fall back options.
588 2011-11-07 Georg-Johann Lay <avr@gjlay.de>
590 * config/avr/avr.c (output_reload_in_const): Can handle CONSTANT_P
591 now, not only CONST_INT and CONST_DOUBLE.
592 (output_movqi): Use output_reload_in_const.
593 (output_reload_inhi): Ditto.
594 (output_reload_insisf): Move assertion to output_reload_in_const.
595 (avr_out_reload_inpsi): Ditto.
597 2011-11-07 Nathan Sidwell <nathan@acm.org>
599 * gcov.c (object_summary): Replace with ...
600 (object_runs): ... this.
601 (process_file): Remove functions with no data.
602 (generate_results): Ignore files with no lines.
603 (release_function): New helper, broken out of ...
604 (release_structures): ... here. Use it.
605 (read_count_file): Adjust for new data file format.
606 (output_lines): Use object_runs.
607 * gcov-io.h (GCOV_TAG_OBJECT_SUMMARY): Obsolete.
608 (struct gcov_ctr_info): Move definition.
609 (struct gcov_fn_info): Add key field, use gcov_ctr_info for
611 (struct gcov_info): Add merge function array, remove mask and
612 counts. Trailing array is array of pointers to function info.
613 * coverage.c (struct function_list): Replace counter numbers with
614 counter arrays. Add fndecl field. GTYify.
615 (counts_entry): Remove chain workspace.
616 (functions_head): GTYify.
617 (prg_n_ctrs): Remove.
619 (tree_ctr_tables): Remove.
620 (read_counts_file): Cope with blank entries and expect program
621 summaries before functions. Don't warn on missing entries.
622 (coverage_counter_alloc): Allocate individual function arrays.
623 (tree_coverage_counter_ref, tree_coverage_counter_addr): Adjust
624 for individual function arrays.
625 (coverage_end_function): GTYify function list object. Finalize
626 function's counter arrays.
627 (build_var): New. Create a counter-related variable with
629 (build_fn_info_type): Adjust for new runtime structure.
630 (build_fn_info_value): Rename to ...
631 (build_fn_info): ... here. Build new format data.
632 (build_ctr_info_type, build_ctr_info_value): Remove.
633 (build_info_type): New. Build new format data structure.
634 (build_info): Adjust for new format data.
635 (create_coverage): Likewise.
636 * gcov-dump.c (tag_function): Recognize placeholders.
638 2011-11-07 Georg-Johann Lay <avr@gjlay.de>
640 * config/avr/constraints.md (Cm2): New constraint for int -2.
641 * config/avr/avr.md (addqi3): Use it. New alternatives for +/-2.
642 (*negqihi2): New insn.
644 2011-11-07 H.J. Lu <hongjiu.lu@intel.com>
646 * dwarf2cfi.c (dwarf2out_frame_debug_expr): Check
647 HARD_FRAME_POINTER_REGNUM instead of hard_frame_pointer_rtx
650 2011-11-07 Jakub Jelinek <jakub@redhat.com>
652 * config/i386/i386.c (ix86_expand_builtin): If gather mask
653 argument is known to have all high bits set, pass pc_rtx as
654 second argument to the expander instead of op0.
655 * config/i386/sse.md (*avx2_gathersi<mode>_2,
656 *avx2_gatherdi<mode>_2): New patterns.
657 * config/i386/avx2intrin.h (_mm256_i32gather_pd,
658 _mm256_i64gather_pd, _mm256_i32gather_ps): Set mask using
659 _mm256_cmp_pd with zero vector arguments and _CMP_EQ_OQ instead of
662 PR tree-optimization/50789
663 * tree-vect-stmts.c (process_use): Add force argument, avoid
664 exist_non_indexing_operands_for_use_p check if true.
665 (vect_mark_stmts_to_be_vectorized): Adjust callers. Handle
667 (gen_perm_mask): New function.
668 (perm_mask_for_reverse): Use it.
669 (reverse_vec_element): Rename to...
670 (permute_vec_elements): ... this. Add Y and MASK_VEC arguments,
671 generalize for any permutations.
672 (vectorizable_load): Adjust caller. Handle STMT_VINFO_GATHER_P.
673 * target.def (TARGET_VECTORIZE_BUILTIN_GATHER): New hook.
674 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_GATHER): Document it.
675 * doc/tm.texi: Regenerate.
676 * tree-data-ref.c (initialize_data_dependence_relation,
677 compute_self_dependence): No longer static.
678 * tree-data-ref.h (initialize_data_dependence_relation,
679 compute_self_dependence): New prototypes.
680 * tree-vect-data-refs.c (vect_check_gather): New function.
681 (vect_analyze_data_refs): Detect possible gather load data
683 * tree-vectorizer.h (struct _stmt_vec_info): Add gather_p field.
684 (STMT_VINFO_GATHER_P): Define.
685 (vect_check_gather): New prototype.
686 * config/i386/i386-builtin-types.def: Add types for alternate
688 * config/i386/sse.md (AVXMODE48P_DI): Remove.
689 (VEC_GATHER_MODE): Rename mode_attr to...
690 (VEC_GATHER_IDXSI): ... this.
691 (VEC_GATHER_IDXDI, VEC_GATHER_SRCDI): New mode_attrs.
692 (avx2_gathersi<mode>, *avx2_gathersi<mode>): Use <VEC_GATHER_IDXSI>
693 instead of <VEC_GATHER_MODE>.
694 (avx2_gatherdi<mode>): Use <VEC_GATHER_IDXDI> instead of
695 <<AVXMODE48P_DI> and <VEC_GATHER_SRCDI> instead of VEC_GATHER_MODE
696 on src and mask operands.
697 (*avx2_gatherdi<mode>): Likewise. Use VEC_GATHER_MODE iterator
698 instead of AVXMODE48P_DI.
699 (avx2_gatherdi<mode>256, *avx2_gatherdi<mode>256): Removed.
700 * config/i386/i386.c (enum ix86_builtins): Add
701 IX86_BUILTIN_GATHERALTSIV4DF, IX86_BUILTIN_GATHERALTDIV8SF,
702 IX86_BUILTIN_GATHERALTSIV4DI and IX86_BUILTIN_GATHERALTDIV8SI.
703 (ix86_init_mmx_sse_builtins): Create those builtins.
704 (ix86_expand_builtin): Handle those builtins and adjust expansions
705 of other gather builtins.
706 (ix86_vectorize_builtin_gather): New function.
707 (TARGET_VECTORIZE_BUILTIN_GATHER): Define.
709 2011-11-07 Uros Bizjak <ubizjak@gmail.com>
711 * config/i386/f16cintrin: Remove extra _X86INTRIN_H_INCLUDED check.
713 2011-11-07 Tristan Gingold <gingold@adacore.com>
715 * config.gcc (*-*-*vms*): Set c_target_objs, cxx_target_objs.
716 * config/vms/t-vms: Add vms-c.o rule.
717 * config/vms/vms-c.c: New file.
718 * config/vms/vms-protos.h (vms_c_register_pragma): New prototype.
719 * config/vms/vms.h (REGISTER_TARGET_PRAGMAS): Define.
721 2011-11-07 Tristan Gingold <gingold@adacore.com>
723 * config/alpha/vms.h (TARGET_OBJECT_SUFFIX,
724 TARGET_EXECUTABLE_SUFFIX, TARGET_OS_CPP_BUILTINS,
725 TARGET_ABI_OPEN_VMS, LONG_TYPE_SIZE, ADA_LONG_TYPE_SIZE,
726 POINTER_SIZE, POINTERS_EXTEND_UNSIGNED): Move to config/vms/vms.h
727 (SUBTARGET_OS_CPP_BUILTINS): Define.
728 (TARGET_DEFAULT): Tune according to POINTER_SIZE.
729 (MASK_RETURN_ADDR): Define in 64 bit mode.
730 * config/ia64/vms.h: Likewise.
731 * config/vms/vms.h: New file.
732 * config/vms/vms64.h: New file.
733 * config/alpha/vms64.h: Removed.
734 * config/ia64/vms64.h: Removed.
735 * config.gcc (alpha64-dec-*vms*, alpha*-dec-*vms*, ia64-hp-*vms*):
736 Adjust for above change.
738 2011-11-07 Enkovich Ilya <ilya.enkovich@intel.com>
741 * config/i386/i386-protos.h (ix86_use_lea_for_mov): New.
742 * config/i386/i386.c (ix86_use_lea_for_mov): Likewise.
743 * config/i386/i386.md (movsi_internal): Emit lea if profitable.
744 (movdi_internal_rex64): Likewise.
746 2011-11-07 Sergey Ostanevich <sergos.gnu@gmail.com>
748 PR rtl-optimization/47698
749 * ifcvt.c (noce_operand_ok): Return false for mems with side effects.
751 2011-11-07 Tristan Gingold <gingold@adacore.com>
753 * common/config/alpha/alpha-common.c (alpha_option_init_struct):
755 (TARGET_OPTION_INIT_STRUCT): Define.
756 * config/alpha/alpha.c (TARGET_MIN_ANCHOR_OFFSET)
757 (TARGET_MAX_ANCHOR_OFFSET)
758 (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Redefine.
760 2011-11-06 Quentin Neill <quentin.neill@amd.com>
762 Fix r180999, update ChangeLog
763 * config.gcc: Add f16cintrin.h.
764 * config/i386/f16cintrin.h: Add missing endif.
766 2011-11-06 Sebastian Huber <sebastian.huber@embedded-brains.de>
768 * config.gcc (arm*-*-rtemseabi*): New target.
769 * config/arm/rtems-eabi.h: New.
770 * config/arm/t-rtems-eabi: New.
772 2011-11-06 David S. Miller <davem@davemloft.net>
774 * config/sparc/sparc.md (UNSPEC_SHORT_LOAD): Delete.
775 (zero_extend_v8qi_vis, zero_extend_v4hi_vis,
776 *zero_extend_v8qi_<P:mode>_insn,
777 *zero_extend_v4hi_<P:mode>_insn): Express using vec_merge
778 and vec_duplicate instead of using an UNSPEC.
780 2011-11-07 Alan Modra <amodra@gmail.com>
783 * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Always emit
786 2011-11-06 Dave Korn <dave.korn.cygwin@gmail.com>
788 * config/i386/cygwin.h (LIBGCJ_SONAME): Updated to match recent
790 * config/i386/mingw32.h (LIBGCJ_SONAME): Likewise.
792 2011-11-06 Eric Botcazou <ebotcazou@adacore.com>
794 * gcse.c: Adjust outdated comments throughout.
795 (struct mem_conflict_info): New structure.
796 (mems_conflict_for_gcse_p): Use it to communicate with caller.
797 (load_killed_in_block_p): Pass it to note_stores.
798 (hash_expr): Remove superfluous line break.
799 (hash_scan_set): Rename PAT parameter into SET.
800 (hash_scan_insn): Reorder cases.
801 (canon_list_insert): Fix long line.
803 (prune_expressions): Rename E local variable into EXPR.
804 (compute_pre_data): Return struct edge_list * object.
805 (pre_expr_reaches_here_p_work): Fix formatting.
806 (process_insert_insn): Move around comment.
807 (pre_edge_insert): Fix long line.
808 (pre_insert_copies): Likewise.
809 (gcse_emit_move_after): Swap SRC and DEST parameters.
810 (pre_delete): Adjust call to gcse_emit_move_after.
811 (pre_gcse): Take struct edge_list * parameter. Fix long line.
812 (one_pre_gcse_pass): Use flag_gcse_lm condition for all routines.
813 Use a local list of edges.
814 (hoist_code): Fix long line. Adjust call to gcse_emit_move_after.
815 (pre_ldst_expr_hash): Fix long line.
816 (free_ldst_mems): Rename into...
817 (free_ld_motion_mems): ...this.
818 (first_ls_expr): Delete.
819 (next_ls_expr): Likewise.
820 (print_ldst_list): Do not use above two functions.
821 (simple_mem): Adjust interface.
822 (compute_ld_motion_mems): Fix formatting.
823 (update_ld_motion_stores): Reuse local variable.
825 2011-11-06 Joseph Myers <joseph@codesourcery.com>
827 * c-decl.c (shadow_tag_warned, grokdeclarator): Handle _Alignas
829 (build_null_declspecs): Initialize align_log and alignas_p fields.
830 (declspecs_add_alignas): New.
831 * c-parser.c (c_token_starts_declspecs): Handle RID_ALIGNAS.
832 (c_parser_declspecs): Handle _Alignas specifiers.
833 (c_parser_alignas_specifier): New.
834 (c_parser_alignof_expression): Diagnose alignof use for non-C1X.
835 Diagnose _Alignof (expression).
836 * c-tree.h (struct c_declspecs): Add align_log and alignas_p fields.
837 (declspecs_add_alignas): Declare.
838 * ginclude/stddef.h (max_align_t): Define for C1X and C++11.
839 * ginclude/stdalign.h: New.
840 * Makefile.in (USER_H): Add stdalign.h.
842 2011-11-06 Joern Rennecke <joern.rennecke@embecosm.com>
844 * regset.h (fixed_reg_set_regset): Declare.
845 * dse.c: Include regset.h .
846 (struct insn_info): Add member fixed_regs_live.
847 (note_add_store_info): New typedef.
848 (note_add_store): New function.
849 (emit_inc_dec_insn_before): Expect arg to be of type insn_info_t.
850 Use gen_add3_insn / gen_move_insn.
851 Check new insn for unwanted clobbers before emitting it.
852 (check_for_inc_dec): Rename to...
853 (check_for_inc_dec_1:) ... this. Return bool. Take insn_info
854 parameter. Changed all callers in file.
855 (check_for_inc_dec, copy_fixed_regs): New functions.
856 (scan_insn): Set fixed_regs_live field of insn_info.
857 * rtl.h (check_for_inc_dec): Update prototype.
858 * postreload.c (reload_cse_simplify): Take new signature of
859 check_ind_dec into account.
860 * reginfo.c (fixed_reg_set_regset): New variable.
861 (init_reg_sets_1): Initialize it.
863 2011-11-06 Jakub Jelinek <jakub@redhat.com>
865 * tree-cfg.c (gimple_can_merge_blocks_p): For -O0 don't remove
868 2011-11-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
870 * config/pa/pa.c (pa_hpux_init_libfuncs): Rename to pa_init_libfuncs.
871 Remove dependence of declaration and target define on definition of
872 HPUX_LONG_DOUBLE_LIBRARY. Update implementation.
874 2011-11-06 Andrew Macleod <amacleod@redhat.com>
875 Richard Henderson <rth@redhat.com>
876 Aldy Hernandez <aldyh@redhat.com>
878 Merged from cxx-mem-model.
880 * cppbuiltin.c (define__GNUC__): Define __ATOMIC memory models
881 * coretypes.h (enum memmodel): New. enumerated memory model type.
882 * Makefile.in (cppbuiltin.o) Add missing dependency on $(TREE_H)
883 * genopinit,c (optabs): Add atomic direct optab handlers.
884 * sync-builtins.def (BUILT_IN_ATOMIC_*): New builtins.
885 * builtin-types.def (BT_CONST_VOLATILE_PTR,
886 BT_FN_I{1,2,4,8,16}_CONST_VPTR_INT, BT_FN_VOID_VPTR_INT,
887 BT_FN_BOOL_VPTR_INT, BT_FN_BOOL_SIZE_CONST_VPTR,
888 BT_FN_I{1,2,4,8,16}_VPTR_I{1,2,4,8,16}_INT,
889 BT_FN_VOID_VPTR_I{1,2,4,8,16}_INT, BT_FN_VOID_SIZE_VPTR_PTR_INT,
890 BT_FN_VOID_SIZE_CONST_VPTR_PTR_INT, BT_FN_VOID_SIZE_VPTR_PTR_PTR_INT,
891 BT_FN_BOOL_VPTR_PTR_I{1,2,4,8,16}_BOOL_INT_INT): New builtin types.
892 * expr.h (expand_atomic_*): Add prototypes.
893 (expand_{bool,val}_compare_and_swap): Remove prototypes.
894 * c-typeck.c (build_function_call_vec): Don't reprocess __atomic
896 * common.opt (Winvalid-memory-model): New warning flag.
897 (finline-atomics): New. Flag to disable atomic inlining.
898 * params.h (ALLOW_LOAD_DATA_RACES): New.
899 (ALLOW_PACKED_LOAD_DATA_RACES): New.
900 (ALLOW_PACKED_STORE_DATA_RACES): New.
901 * params.def (PARAM_ALLOW_LOAD_DATA_RACES): New.
902 (PARAM_ALLOW_PACKED_LOAD_DATA_RACES): New.
903 (PARAM_ALLOW_PACKED_STORE_DATA_RACES): New.
904 * builtins.c (is_builtin_name): Handle __atomic.
905 (get_memmodel): New. Extract memory model.
906 (expand_expr_force_mode): New. Factor out common code for ensuring an
907 integer argument is in the proper mode.
908 (expand_builtin_sync_operation): Remove ignore param. Always call
909 expand_atomic_fetch_op instead of the old expanders.
910 (expand_builtin_compare_and_swap,
911 expand_builtin_sync_lock_test_and_set): Use expand_expr_force_mode,
912 call atomic expanders instead of sync expanders.
913 (expand_builtin_sync_lock_release): Call atomic_store expander.
914 (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
915 expand_builtin_atomic_store, expand_builtin_atomic_fetch_op): New.
916 (expand_builtin_atomic_exchange): New.
917 (fold_builtin_atomic_always_lock_free,
918 expand_builtin_atomic_always_lock_free,
919 fold_builtin_atomic_is_lock_free, expand_builtin_atomic_is_lock_free):
921 (expand_builtin_mem_thread_fence, expand_builtin_atomic_thread_fence,
922 expand_builtin_atomic_signal_fence): New.
923 (expand_builtin_mem_signal_fence): New.
924 (expand_builtin): Add cases for BUILT_IN_ATOMIC_*.
925 (fold_builtin_2): Add cases for BUILT_IN_ATOMIC_{IS,ALWAYS}_LOCK_FREE.
926 * optabs.h (DOI_atomic_*): Define new atomics.
927 (atomic_*_optab): Define.
928 (can_compare_and_swap_p, expand_atomic_compare_and_swap): New
930 * optabs.c (expand_sync_operation, expand_sync_fetch_operation): Remove.
931 (expand_sync_lock_test_and_set): Remove.
932 (expand_atomic_load, expand_atomic_store): New.
933 (expand_atomic_exchange): New.
934 (expand_atomic_compare_and_swap): New. Implements
935 atomic_compare_exchange via compare and swap.
936 (struct atomic_op_functions): Opcode table struct for fetch ops.
937 (get_atomic_op_for_code): New. Return an opcode table entry.
938 (maybe_emit_op): New. Try to emit a fetch op.
939 (expand_atomic_fetch_op): New.
940 (expand_val_compare_and_swap_1): Remove.
941 (expand_val_compare_and_swap, expand_bool_compare_and_swap): Remove.
942 (expand_atomic_compare_and_swap): Rename from
943 expand_atomic_compare_exchange. Rewrite to return both success and
944 oldval return values; expand via both atomic and sync optabs.
945 (can_compare_and_swap_p): New.
946 (expand_compare_and_swap_loop): Use expand_atomic_compare_and_swap.
947 (maybe_gen_insn): Handle 7 and 8 operands.
948 * omp-low.c (expand_omp_atomic_fetch_op): Don't test individual
949 fetch_op optabs, only test can_compare_and_swap_p. Use __atomic
950 builtins instead of __sync builtins.
951 (expand_omp_atomic_pipeline): Use can_compare_and_swap_p.
952 * doc/extend.texi: Document __atomic built-in functions.
953 * doc/invoke.texi: Document data race parameters.
954 * doc/md.texi: Document atomic patterns.
955 * config/i386/i386.md (UNSPEC_MOVA): New.
956 (UNSPECV_CMPXCHG): Split into ...
957 (UNSPECV_CMPXCHG_1, UNSPECV_CMPXCHG_2,
958 UNSPECV_CMPXCHG_3, UNSPECV_CMPXCHG_4): New.
959 * config/i386/sync.md (ATOMIC): New mode iterator.
960 (atomic_load<ATOMIC>, atomic_store<ATOMIC>): New.
961 (atomic_loaddi_fpu, atomic_storedi_fpu, movdi_via_fpu): New.
962 (mem_thread_fence): Rename from memory_barrier.
963 Handle the added memory model parameter.
964 (mfence_nosse): Rename from memory_barrier_nosse.
965 (sync_compare_and_swap<CASMODE>): Split into ...
966 (atomic_compare_and_swap<SWI124>): this and ...
967 (atomic_compare_and_swap<CASMODE>): this. Handle the new parameters.
968 (atomic_compare_and_swap_single<SWI>): Rename from
969 sync_compare_and_swap<SWI>; rewrite to use split unspecs.
970 (atomic_compare_and_swap_double<DCASMODE>): Rename from
971 sync_double_compare_and_swap<DCASMODE>; rewrite to use split unspecs.
972 (*atomic_compare_and_swap_doubledi_pic): Rename from
973 sync_double_compare_and_swapdi_pic; rewrite to use split unspecs.
974 (atomic_fetch_add<SWI>): Rename from sync_old_add<SWI>; add memory
976 (*atomic_fetch_add_cmp<SWI>): Similarly.
977 (atomic_add<SWI>, atomic<any_logic><SWI>): Similarly.
978 (atomic_sub<SWI>): Similarly. Use x86_maybe_negate_const_int.
979 (sync_lock_test_and_set<SWI>): Merge with ...
980 (atomic_exchange<SWI>): ... this.
982 2011-11-6 Richard Guenther <rguenther@suse.de>
984 * ipa-prop.c (ipa_modify_call_arguments): Re-compute
987 2011-11-06 Ira Rosen <ira.rosen@linaro.org>
989 * tree-vectorizer.h (vectorizable_condition): Add argument.
990 * tree-vect-loop.c (vectorizable_reduction): Fail for condition
991 in SLP. Update calls to vectorizable_condition.
992 * tree-vect-stmts.c (vect_is_simple_cond): Add basic block info to
993 the arguments. Pass it to vect_is_simple_use_1.
994 (vectorizable_condition): Add slp_node to the arguments. Support
995 vectorization of basic blocks. Fail for reduction in SLP. Update
996 calls to vect_is_simple_cond and vect_is_simple_use. Support SLP:
997 call vect_get_slp_defs to get vector operands.
998 (vect_analyze_stmt): Update calls to vectorizable_condition.
999 (vect_transform_stmt): Likewise.
1000 * tree-vect-slp.c (vect_create_new_slp_node): Handle COND_EXPR.
1001 (vect_get_and_check_slp_defs): Handle COND_EXPR. Allow pattern
1003 (vect_build_slp_tree): Handle COND_EXPR.
1004 (vect_analyze_slp_instance): Push pattern statements to root node.
1005 (vect_get_constant_vectors): Fix comments. Handle COND_EXPR.
1007 2011-11-05 David S. Miller <davem@davemloft.net>
1009 * config/sparc/sparc.md (UNSPEC_SHORT_LOAD): New unspec.
1010 (zero-extend_v8qi_vis, zero_extend_v4hi_vis): New expanders.
1011 (*zero_extend_v8qi_<P:mode>_insn,
1012 *zero_extend_v4hi_<P:mode>_insn): New insns.
1013 * config/sparc/sparc.c (vector_init_move_words,
1014 vector_init_prepare_elts, sparc_expand_vector_init_vis2,
1015 sparc_expand_vector_init_vis1): New functions.
1016 (vector_init_bshuffle): Rewrite to handle more cases and make use
1017 of locs[] array prepared by vector_init_prepare_elts.
1018 (vector_init_fpmerge, vector_init_faligndata): Delete.
1019 (sparc_expand_vector_init): Rewrite using new infrastructure.
1021 2011-11-05 Joern Rennecke <joern.rennecke@embecosm.com>
1023 * config.gcc (epiphany-*-*): New architecture.
1024 (epiphany-*-elf): New configuration.
1025 * config/epiphany, common/config/epiphany : New directories.
1026 * doc/extend.texi (disinterrupt attribute): Add Epiphany.
1027 (interrupt attribute): Add Epiphany.
1028 (long_call, short_call attribute): Add Epiphany.
1029 * doc/invoke.texi (Options): Add Epiphany options.
1030 * doc/md.texi (Machine Constraints): Add Epiphany constraints.
1031 * doc/install.texi (Options specification):
1032 Add --with-stack-offset=@var{num} description.
1033 (host/target specific issues): Add epiphany-*-elf.
1034 * doc/contrib.texi (Contributors): Mention Epiphany port.
1036 2011-11-05 Jakub Jelinek <jakub@redhat.com>
1038 PR tree-optimization/50693
1039 * tree-cfg.c (gimple_can_merge_blocks_p): Allow merging with
1040 non-forced user labels.
1041 (gimple_merge_blocks): Turn non-forced user labels into
1042 debug bind stmt with the label as first operand and reset value.
1043 (gimple_duplicate_bb): Don't duplicate label debug stmts.
1044 * dwarf2out.c (gen_label_die): Handle NOTE_INSN_DELETED_DEBUG_LABEL.
1045 * final.c (final_scan_insn): Likewise.
1046 (rest_of_clean_state): Don't dump NOTE_INSN_DELETED_DEBUG_LABEL.
1047 * var-tracking.c (debug_label_num): New variable.
1048 (delete_debug_insns): Don't delete DEBUG_INSNs for LABEL_DECLs,
1049 instead turn them into NOTE_INSN_DELETED_DEBUG_LABEL notes.
1050 * cfglayout.c (skip_insns_after_block, duplicate_insn_chain): Handle
1051 NOTE_INSN_DELETED_DEBUG_LABEL.
1052 (duplicate_insn_chain): Don't duplicate LABEL_DECL DEBUG_INSNs.
1053 * insn-notes.def (DELETED_DEBUG_LABEL): New note kind.
1054 * print-rtl.c (print_rtx): Handle NOTE_INSN_DELETED_DEBUG_LABEL.
1055 * gengtype.c (adjust_field_rtx_def): Likewise.
1056 * config/i386/i386.c (ix86_output_function_epilogue): For MachO
1057 clear CODE_LABEL_NUMBER of NOTE_INSN_DELETED_DEBUG_LABEL
1058 if their are at the end of function and nop hasn't been emitted.
1059 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Likewise.
1061 2011-11-05 Georg-Johann Lay <avr@gjlay.de>
1063 PR rtl-optimization/50448
1064 * cprop.c (try_replace_reg): Also try to replace uses of FROM that
1067 2011-11-05 Peter Dufault <dufault@hda.com>,
1068 Sebastian Huber <sebastian.huber@embedded-brains.de>
1070 * config/rs6000/rtems.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
1071 Extend rs6000_spe handling.
1073 2011-11-05 Ralf Corsépius <ralf.corsepius@rtems.org>
1075 * config/rs6000/t-rtems: Add -mcpu=8540/-mfloat-gprs=double multilib.
1076 Remove -mcpu=601 multilib.
1077 Remove -Dmpc8260 multilib.
1078 * config/rs6000/rtems.h: Allow --float-gprs=... to override grps
1081 2011-11-05 Quentin Neill <quentin.neill@amd.com>
1083 Piledriver f16cintrin.h fix.
1084 * config/i386/f16cintrin.h: Contents moved from immintrin.h.
1085 * config/i386/immintrin.h: Include f16cintrin.h.
1086 * config.gcc (i[34567]86-*-*, x86_64-*-*): Add f16cintrin.h.
1089 2011-11-04 Eric Botcazou <ebotcazou@adacore.com>
1092 * c-parser.c (c_parser_postfix_expression) <RID_OFFSETOF>: Adjust call
1094 * c-typeck.c (build_unary_op) <ADDR_EXPR>: Call fold_offsetof_1.
1096 2011-11-04 Alan Modra <amodra@gmail.com>
1098 * reload1.c (gen_reload): Don't use REGNO on SUBREGs.
1099 * print-rtl.c (print_rtx): Don't segfault on negative regno.
1101 2011-11-04 David S. Miller <davem@davemloft.net>
1104 * config/sparc/sparc.c (sparc_expand_conditional_move): Handle the
1105 fact that sparc_emit_float_lib_cmp modifies the comparison in
1108 2011-11-04 Ralf Corsépius <ralf.corsepius@rtems.org>
1110 * config/lm32/t-rtems: New.
1111 * config.gcc (lm32-*-rtems*): Add t-rtems.
1113 2011-11-04 Eric Botcazou <ebotcazou@adacore.com>
1116 * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=v8.
1118 2011-11-04 Jiangning Liu <jiangning.liu@arm.com>
1120 PR rtl-optimization/38644
1121 * config/arm/arm.c (thumb1_expand_epilogue): Add memory barrier
1122 for epilogue having stack adjustment.
1124 2011-11-04 Georg-Johann Lay <avr@gjlay.de>
1127 * config/avr/avr-modes.def: New file defining PSImode.
1128 * config/avr/avr-c.c (__INT24_MAX__, __INT24_MIN__,
1129 __UINT24_MAX__): New built-in defines.
1130 * config/avr/avr.md (adjust_len): Add tstpsi, mov24, reload_in24,
1131 ashlpsi, ashrpsi, lshrpsi.
1132 (QISI, QIDI, HISI, HIDI, MPUSH, rotx, rotsmode): Add PSI.
1133 (MOVMODE): New mode iterator.
1134 (movpsi): New expander.
1135 (movqi, movhi, movsi, movsf, movpsi): Write as one using MOVMODE.
1136 (*reload_inpsi, *movpsi): New insns.
1137 (*reload_inpsi): New RTL peephole.
1138 (addpsi3, *addpsi3_zero_extend.qi, *addpsi3_zero_extend.hi,
1139 *addpsi3_sign_extend.hi): New insns.
1140 (subpsi3, *subpsi3_zero_extend.qi, *subpsi3_zero_extend.hi,
1141 *subpsi3_sign_extend.hi): New insns.
1142 (divmodpsi4, udivmodpsi4): New define insn-and-split.
1143 (*divmodpsi4_call, *udivmodpsi4_call): New insns.
1144 (andpsi3, iorpsi3, xorpsi3): New insns.
1145 (*rotlpsi2.1, *rotlpsi2.23): New insns.
1146 (*rotw<mode>): Insn condition only allow even-sized modes.
1147 (*rotb<mode>): Insn condition allows odd-sized modes.
1148 (ashlpsi3, ashrpsi3, lshrpsi3, *addpsi3.lt0): New insns.
1149 (negpsi2, one_cmplpsi2): New insns.
1150 (extendqipsi2, extendhipsi2, extendpsisi2): New insns.
1151 (zero_extendqipsi2, zero_extendhipsi2, zero_extendpsisi2): New
1153 (*cmppsi, *negated_tstpsi, *reversed_tstpsi): New insns.
1154 (cbranchpsi4): New expander.
1155 * config/avr/constraints.md (Ca3, Co3, Cx3): New constraints.
1156 * config/avr/avr-protos.h (avr_out_tstpsi, avr_out_movpsi,
1157 avr_out_ashlpsi3, avr_out_ashrpsi3, avr_out_lshrpsi3,
1158 avr_out_reload_inpsi): New prototypes.
1160 * config/avr/avr.c (TARGET_SCALAR_MODE_SUPPORTED_P): Define to...
1161 (avr_scalar_mode_supported_p): ...this new static function.
1162 (avr_asm_len): Always return "".
1163 (avr_out_load_psi, avr_out_store_psi): New static functions.
1164 (avr_out_movpsi, avr_out_reload_inpsi): New functions.
1165 (avr_out_tstpsi): New function.
1166 (avr_out_ashlpsi3, avr_out_ashrpsi3, avr_out_lshrpsi3): New functions.
1167 (avr_out_plus_1, output_reload_in_const): Handle 3-byte types.
1168 (avr_simplify_comparison_p): Ditto.
1169 (adjust_insn_length): Handle ADJUST_LEN_RELOAD_IN24,
1170 ADJUST_LEN_MOV24, ADJUST_LEN_TSTPSI, ADJUST_LEN_ASHLPSI,
1171 ADJUST_LEN_ASHRPSI, ADJUST_LEN_LSHRPSI.
1172 (avr_rtx_costs_1): Report PSI costs.
1173 (avr_libcall_value): Handle odd-sized parameters.
1174 (avr_init_builtin_int24): New static function to define built-in
1175 24-bit types __int24 and __uint24.
1176 (avr_init_builtins): Use it.
1178 2011-11-04 Thomas Doerfler <thomas.doerfler@embedded-brains.de>
1181 * config/arm/rtems-elf.h, config/arm/t-rtems: Add optional
1182 support for VFP floating point model.
1184 2011-11-04 Tristan Gingold <gingold@adacore.com>
1186 * config/alpha/vms.h (ASM_OUTPUT_DEF): Do not switch section.
1188 2011-11-04 Ira Rosen <ira.rosen@linaro.org>
1191 2011-10-24 Ira Rosen <ira.rosen@linaro.org>
1193 PR tree-optimization/50730
1194 * tree-vect-data-refs.c (vect_analyze_data_refs): Stop basic block
1195 analysis if encountered unsupported data-ref.
1197 2011-11-04 Jakub Jelinek <jakub@redhat.com>
1199 * config/i386/i386.c (ix86_expand_vector_convert_uns_vsivsf): New
1201 * config/i386/i386-protos.h (ix86_expand_vector_convert_uns_vsivsf):
1203 * config/i386/sse.md (floatuns<sseintvecmodelower><mode>2): Use it.
1204 For floatunsv8siv8sf2 require TARGET_AVX2.
1206 * config/i386/i386.c (ix86_expand_adjust_ufix_to_sfix_si): Add
1207 XORP argument. Subtract 0x1p31 instead of 0x1p32. Use normal
1208 signalling comparison instead of non-signalling. Store into
1209 *XORP pseudo holding 0x80000000 integers if 0x1p31 has been
1210 subtracted and 0 otherwise.
1211 * config/i386/i386-protos.h (ix86_expand_adjust_ufix_to_sfix_si):
1213 * config/i386/sse.md (fixuns_trunc<mode><sseintvecmodelower>2): Enable
1214 already for TARGET_SSE2. Xor in vector initialized by
1215 ix86_expand_adjust_ufix_to_sfix_si at the end.
1216 (vec_pack_ufix_trunc_<mode>): Likewise.
1218 * tree-vect-stmts.c (vectorizable_conversion): Rewritten to handle
1219 not just FLOAT_EXPR and FIX_TRUNC_EXPR, but also CONVERT_EXPR_CODE_P,
1220 WIDEN_MULT_EXPR and WIDEN_LSHIFT_EXPR to handle what
1221 vectorizable_type_demotion and vectorizable_type_promotion did.
1222 Additionally handle FLOAT_EXPR and FIX_TRUNC_EXPR where the integer
1223 is {,un}signed {char,short}.
1224 (vect_create_vectorized_demotion_stmts): Fix comment typo. For
1225 recursive calls unconditionally use VEC_PACK_TRUNC_EXPR.
1226 Push vec_dest back to the vec_dsts vector at the end.
1227 (vect_create_vectorized_promotion_stmts): Don't recurse, do just
1228 one step. Removed multi_step_cvt, vec_dsts, slp_node and
1229 prev_stmt_info arguments, add vec_dest argument. Push always
1230 into vec_tmp, not just when multi_step_cvt != 0, replace *vec_oprdn0
1231 with vec_tmp at the end after freeing old *vec_oprnd0 vector.
1232 (vectorizable_type_demotion, vectorizable_type_promotion): Removed.
1233 (vect_analyze_stmt): Don't call vectorizable_type_demotion and
1234 vectorizable_type_promotion. Call vectorizable_conversion even
1235 for SLP bb vectorization.
1236 (vect_transform_stmt): Call vectorizable_conversion instead of
1237 vectorizable_type_demotion and vectorizable_type_promotion.
1238 (supportable_widening_operation): Clear *multi_step_cvt first,
1239 simplify c1/c2 computation, free *interm_types vector on failure.
1240 (supportable_narrowing_operation): Clear *multi_step_cvt first,
1241 free *interm_types vector on failure, handle multi-step
1244 2011-11-04 Tristan Gingold <gingold@adacore.com>
1246 * config/alpha/alpha.c (alpha_write_linkage): Remove fundecl
1247 argument. Conditionally generate crash debug info. Adjust
1248 for alpha_funcs_tree removal.
1249 (machine_function): Add links field.
1250 (alpha_start_function): Conditionally generate crash debug info.
1251 (alpha_end_function): Adjust call to alpha_write_linkage.
1252 (alpha_funcs): Remove.
1253 (links_kind): Remove.
1254 (alpha_links): Remove num, target and lkind field. Add func field.
1255 (alpha_links_tree): Remove.
1256 (alpha_funcs_tree): Remove.
1257 (alpha_need_linkage): Remove.
1258 (alpha_use_linkage): Change prototype. Adjust.
1259 (alpha_write_one_linkage): Use ASM_OUTPUT_INTERNAL_LABEL.
1260 Use SYMBOL_REF_EXTERNAL_P and SYMBOL_REF_LOCAL_P macro.
1261 * config/alpha/alpha-protos.h (alpha_use_linkage): Update.
1262 (alpha_need_linkage): Remove.
1263 * config/alpha/alpha.md: Update calls to alpha_use_linkage.
1264 Adjust calls to alpha_need_linkage.
1266 2011-11-03 Uros Bizjak <ubizjak@gmail.com>
1268 * sched-vis.c (print_value): Handle STRICT_LOW_PART.
1270 2011-11-03 Uros Bizjak <ubizjak@gmail.com>
1272 * config/i386/i386.md (lround<X87MODEF:mode><SWI248x:mode>2,
1273 rint<mode>2, floor<mode>2, lfloor<MODEF:mode><SWI48:mode>2,
1274 btrunc<mode>2, lwp_lwpval<mode>3): Use operands[N] instead of operandN.
1276 2011-11-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1279 * config/arm/t-bpabi: New file.
1280 * config.gcc (arm*-*-linux*): Add arm/t-bpabi to tmake_file for
1282 (arm*-*-uclinux*): Add arm/t-bpabi to tmake_file for
1283 arm*-*-uclinux*eabi.
1284 (arm*-*-eabi*, arm*-*-symbianelf*): Add arm/t-bpabi to tmake_file
1287 2011-11-03 Michael Matz <matz@suse.de>
1290 * configure.ac: Check for -fno-exceptions -fno-rtti.
1291 * configure: Regenerate.
1292 * Makefile.in (NOEXCEPTION_FLAGS): New flag.
1293 (ALL_CXXFLAGS): Use it.
1295 2011-11-03 Uros Bizjak <ubizjak@gmail.com>
1297 * config/i386/i386.md: Use {} for multi-line preparation statements.
1299 2011-11-03 Eric Botcazou <ebotcazou@adacore.com>
1301 * config/sparc/sparc.md (movtf_insn_sp32_no_fpu): Consolidate into...
1302 (movtf_insn_sp32): ...this.
1303 (movtf_insn_sp64_no_fpu): Consolidate into...
1304 (movtf_insn_sp64): ...this.
1305 (movtf_insn_sp64_hq): Do not test TARGET_FPU.
1306 * config/sparc/sparc.c (sparc_legitimate_address_p): Likewise.
1308 2011-11-03 Tristan Gingold <gingold@adacore.com>
1310 * config/vms/vms.c (vms_patch_builtins): Fix typo.
1312 2011-11-03 Richard Guenther <rguenther@suse.de>
1315 * lto-opts.c: Re-implement.
1316 * lto-streamer.h (lto_register_user_option): Remove.
1317 (lto_read_file_options): Likewise.
1318 (lto_reissue_options): Likewise.
1319 (lto_clear_user_options): Likewise.
1320 (lto_clear_file_options): Likewise.
1321 * opts-global.c (post_handling_callback): Remove.
1322 (set_default_handlers): Do not set post_handling_callback.
1323 (decode_options): Remove LTO specific code.
1324 * lto-wrapper.c (merge_and_complain): New function.
1325 (run_gcc): Read all input file options and
1326 prepend a merged set before the linker driver options.
1327 * gcc.c (driver_post_handling_callback): Remove.
1328 (set_option_handlers): Do not set post_handling_callback.
1329 * opts-common.c (handle_option): Do not call post_handling_callback.
1330 * opts.h (struct cl_option_handlers): Remove post_handling_callback.
1332 2011-11-03 Richard Guenther <rguenther@suse.de>
1334 * collect2.c (main): Guard object_nbr variable with TARGET_AIX_VERSION.
1336 2011-11-03 Martin Jambor <mjambor@suse.cz>
1338 * ipa-prop.c (type_change_info): New fields offset, object,
1339 known_current_type and multiple_types_encountered.
1340 (extr_type_from_vtbl_ptr_store): New function.
1341 (check_stmt_for_type_change): Use it, set multiple_types_encountered if
1342 the result is different from the previous one.
1343 (detect_type_change): Renamed to detect_type_change_1. New parameter
1344 comp_type. Set up new fields in tci, build known type jump
1345 functions if the new type can be identified.
1346 (detect_type_change): New function.
1347 * tree.h (DECL_CONTEXT): Comment new use.
1349 2011-11-03 Richard Guenther <rguenther@suse.de>
1352 * lto-wrapper.c (get_options_from_collect_gcc_options): Properly
1353 decode an encoded literal '.
1355 2011-11-03 Tristan Gingold <gingold@adacore.com>
1357 * collect2.c (main): Add support of -f (response file) on AIX.
1359 2011-11-03 Ira Rosen <ira.rosen@linaro.org>
1361 PR tree-optimization/50912
1362 * tree-vectorizer.h (slp_void_p): New.
1363 (struct _slp_tree): Replace left and right with children. Update
1365 (struct _slp_oprnd_info): New.
1366 (vect_get_vec_defs): Declare.
1367 (vect_get_slp_defs): Update arguments.
1368 * tree-vect-loop.c (vect_create_epilog_for_reduction): Call
1369 vect_get_vec_defs instead of vect_get_slp_defs.
1370 (vectorizable_reduction): Likewise.
1371 * tree-vect-stmts.c (vect_get_vec_defs): Remove static, add argument.
1372 Update call to vect_get_slp_defs.
1373 (vectorizable_conversion): Update call to vect_get_vec_defs.
1374 (vectorizable_assignment, vectorizable_shift,
1375 vectorizable_operation): Likewise.
1376 (vectorizable_type_demotion): Call vect_get_vec_defs instead of
1378 (vectorizable_type_promotion, vectorizable_store): Likewise.
1379 (vect_analyze_stmt): Fix typo.
1380 * tree-vect-slp.c (vect_free_slp_tree): Update SLP tree traversal.
1381 (vect_print_slp_tree, vect_mark_slp_stmts,
1382 vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
1383 vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
1384 vect_schedule_slp_instance): Likewise.
1385 (vect_create_new_slp_node): New.
1386 (vect_create_oprnd_info, vect_free_oprnd_info): Likewise.
1387 (vect_get_and_check_slp_defs): Pass information about defs using
1388 oprnds_info, allow any number of operands.
1389 (vect_build_slp_tree): Likewise. Update calls to
1390 vect_get_and_check_slp_defs. Fix comments.
1391 (vect_analyze_slp_instance): Move node creation to
1392 vect_create_new_slp_node.
1393 (vect_get_slp_defs): Allow any number of operands.
1395 2011-11-02 Peter Bergner <bergner@vnet.ibm.com>
1396 Iain Sandoe <iains@gcc.gnu.org>
1398 * config/rs6000/rs6000.c (USE_HIDDEN_LINKONCE): New define.
1399 (get_ppc476_thunk_name): Use it.
1400 (rs6000_code_end): Likewise.
1401 (macho_branch_islands): Fix typo.
1403 2011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
1404 Jason Merrill <jason@redhat.com>
1407 * configure.ac: Add -Wno-narrowing to warning options.
1408 * doc/invoke.texi ([-Wnarrowing], [-Wc++0x-compat]): Update.
1410 2011-11-02 Eric Botcazou <ebotcazou@adacore.com>
1413 * config/sparc/sparc.md (movsf_insn): Reindent constraints.
1414 (movdf_insn_sp32): Likewise. Remove redundant G constraint.
1415 (movdf_insn_sp64): Likewise.
1416 (DFmode splitter): Do not test TARGET_FPU.
1417 (movtf_insn_sp32): Reindent constraints.
1418 (movtf_insn_sp32_no_fpu): Likewise.
1419 (movtf_insn_sp64): Likewise.
1420 (movtf_insn_sp64_hq): Likewise.
1421 (movtf_insn_sp64_no_fpu): Likewise.
1423 2011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
1426 * builtins.c (fold_builtin_memchr): Fix cast.
1428 2011-11-02 Teresa Johnson <tejohnson@google.com>
1430 * config/i386/predicates.md (promotable_binary_operator): Add minus
1431 to the list of promotable operators.
1433 2011-11-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1435 * gthr-single.h, gthr.h: Move to ../libgcc.
1436 * gthr-aix.h: Move to ../libgcc/config/rs6000.
1437 * gthr-dce.h: Move to ../libgcc/config/pa.
1438 * gthr-lynx.h: Move to ../libgcc/config.
1439 * gthr-mipssde.h: Move to ../libgcc/config/mips.
1440 * gthr-posix.h: Move to ../libgcc/config.
1441 * gthr-rtems.h: Likewise.
1442 * gthr-tpf.h: Move to ../libgcc/config/s390.
1443 * gthr-vxworks.h: Move to ../libgcc/config.
1444 * gthr-win32.h: Move to ../libgcc/config/i386.
1445 * configure.ac (gthread_flags): Remove
1446 (gthr-default.h): Don't create.
1447 (thread_file): Don't substitute.
1448 * configure: Regenerate.
1449 * Makefile.in (GCC_THREAD_FILE): Remove.
1450 (GTHREAD_FLAGS): Remove.
1451 (libgcc.mvars): Remove GTHREAD_FLAGS.
1452 * config/t-vxworks (EXTRA_HEADERS): Remove.
1454 2011-11-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1455 Paolo Bonzini <bonzini@gnu.org>
1457 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Remove.
1458 * configure: Regenerate.
1459 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list): Remove.
1460 (TM_H): Remove libgcc_tm.h, $(libgcc_tm_file_list).
1461 (libgcc_tm.h, cs-libgcc_tm.h): Remove.
1462 (clean): Remove libgcc_tm.h
1463 * mkconfig.sh: Don't include libgcc_tm.h in tm.h.
1464 * config.gcc (libgcc_tm_file): Remove.
1465 (arm*-*-linux*): Remove libgcc_tm_file for arm*-*-linux-*eabi.
1466 (arm*-*-uclinux*): Remove libgcc_tm_file for arm*-*-uclinux*eabi.
1467 (arm*-*-eabi*, arm*-*-symbianelf*): Remove libgcc_tm_file.
1468 (avr-*-rtems*): Likewise.
1469 (avr-*-*): Likewise.
1470 (frv-*-elf): Likewise.
1471 (frv-*-*linux*): Likewise.
1472 (h8300-*-rtems*): Likewise.
1473 (h8300-*-elf*): Likewise.
1474 (i[34567]86-*-darwin*): Likewise.
1475 (x86_64-*-darwin*): Likewise.
1476 (rx-*-elf*): Likewise.
1477 (tic6x-*-elf): Likewise.
1478 (tic6x-*-uclinux): Likewise.
1479 (i[34567]86-*-linux*, x86_64-*-linux*): Likewise.
1481 2011-11-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1483 * Makefile.in (LIBGCC2_DEBUG_CFLAGS LIBGCC2_CFLAGS)
1484 (LIBGCC2_INCLUDES, TARGET_LIBGCC2_CFLAGS, LIB2FUNCS_EXTRA)
1485 (LIB2FUNCS_STATIC_EXTRA, LIB2FUNCS_EXCLUDE, T, T_TARGET)
1486 (INCLUDES_FOR_TARGET): Remove.
1487 (LIBGCC2_CFLAGS): Don't export.
1488 (LIB2FUNCS_ST, LIB2_DIVMOD_FUNCS, LIB2ADD, LIB2ADD_ST, srcdirify):
1490 (libgcc-support): Remove $(LIB2ADD), $(LIB2ADD_ST) dependencies.
1491 (libgcc.mvars): Likewise.
1492 Don't emit LIB2FUNCS_ST, LIB2FUNCS_EXCLUDE, LIB2ADD, LIB2ADD_ST,
1493 LIB2_SIDITI_CONV_FUNCS, LIB2_DIVMOD_FUNCS, LIBGCC2_CFLAGS,
1494 TARGET_LIBGCC2_CFLAGS.
1496 * libgcc2.c, libgcc2.h, gbl-ctors.h, longlong.h: Move to ../libgcc.
1497 * config/darwin-64.c: Move to ../libgcc/config.
1498 * config/divmod.c, config/floatunsidf.c, config/floatunsisf.c,
1499 config/floatunsitf.c, config/floatunsixf.c, config/udivmod.c,
1500 config/udivmodsi4.c: Move to ../libgcc/config.
1501 * config/gthr-posix.c: Move to ../libgcc/config/alpha.
1502 * config/memcmp.c, config/memcpy.c, config/memmove.c,
1503 config/memset.c: Move to ../libgcc/config.
1504 * config/t-darwin (TARGET_LIBGCC2_CFLAGS): Remove.
1505 * config/t-freebsd: Remove.
1506 * config/t-freebsd-thread: Move to ../libgcc/config.
1507 * config/t-libgcc-pic: Move to ../libgcc/config.
1508 * config/t-libunwind (TARGET_LIBGCC2_CFLAGS): Remove.
1509 * config/t-linux: Remove.
1510 * config/t-lynx (TARGET_LIBGCC2_CFLAGS, LIBGCC, INSTALL_LIBGCC):
1512 * config/t-openbsd-thread: Move to ../libgcc/config.
1513 * config/t-rtems (LIBGCC2_INCLUDES): Remove.
1514 * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Remove.
1515 * config/t-svr4: Remove.
1516 * config/t-vxworks (LIBGCC, INSTALL_LIBGCC, TARGET_LIBGCC2_CFLAGS)
1517 (LIBGCC2_DEBUG_CFLAGS, LIB2FUNCS_EXTRA, LIBGCC2_INCLUDES): Remove.
1518 * config/vxlib.c, config/vxlib-tls.c: Move to ../libgcc/config.
1519 * config/alpha/qrnnd.asm: Move to ../libgcc/config/alpha/qrnnd.S.
1520 * config/alpha/t-alpha, config/alpha/t-ieee: Remove.
1521 * config/alpha/t-vms (LIB2FUNCS_EXTRA, LIBGCC, INSTALL_LIBGCC): Remove.
1522 * config/alpha/vms-gcc_shell_handler.c: Move to ../libgcc/config/alpha.
1523 * config/arm/bpabi.c, config/arm/unaligned-funcs.c,
1524 config/arm/fp16.c, config/arm/linux-atomic.c,
1525 config/arm/linux-atomic-64bit.c: Move to ../libgcc/config/arm.
1526 * config/arm/t-arm-elf (LIBGCC, INSTALL_LIBGCC)
1527 (TARGET_LIBGCC2_CFLAGS): Remove.
1528 * config/arm/t-bpabi, config/arm/t-linux: Remove.
1529 * config/arm/t-linux-eabi (TARGET_LIBGCC2_CFLAGS)
1530 (LIB2FUNCS_STATIC_EXTRA): Remove.
1531 * config/arm/t-netbsd: Remove.
1532 * config/arm/t-strongarm-elf (LIBGCC, INSTALL_LIBGCC)
1533 (TARGET_LIBGCC2_CFLAGS): Remove.
1534 * config/arm/t-symbian (LIB2FUNCS_STATIC_EXTRA): Remove.
1535 * config/arm/t-wince-pe (LIBGCC, INSTALL_LIBGCC)
1536 (TARGET_LIBGCC2_CFLAGS): Remove.
1537 * config/avr/t-avr (LIB2FUNCS_EXCLUDE, TARGET_LIBGCC2_CFLAGS)
1538 (LIBGCC, INSTALL_LIBGCC): Remove.
1539 * config/bfin/t-bfin-elf (TARGET_LIBGCC2_CFLAGS): Remove.
1540 * config/bfin/t-bfin-linux: Likewise.
1541 * config/bfin/t-bfin-uclinux: Likewise.
1542 * config/c6x/eqd.c, config/c6x/eqf.c, config/c6x/ged.c,
1543 config/c6x/gef.c, config/c6x/gtd.c, config/c6x/gtf.c,
1544 config/c6x/led.c, config/c6x/lef.c, config/c6x/ltd.c,
1545 config/c6x/ltf.c: Move to ../libgcc/config/c6x.
1546 * config/c6x/t-c6x-elf (LIB2FUNCS_EXCLUDE, LIB2FUNCS_EXTRA): Remove.
1547 * config/c6x/t-c6x-uclinux (TARGET_LIBGCC2_CFLAGS): Remove.
1548 * config/cris/arit.c: Move to ../libgcc/config/cris.
1549 * config/cris/cris_abi_symbol.c: Remove.
1550 * config/cris/cris.h: Remove obsolete comment.
1551 * config/cris/mulsi3.asm: Move to ../libgcc/config/cris/mulsi3.S.
1552 * config/cris/t-cris (LIB2FUNCS_EXTRA, CRIS_LIB1CSRC)
1553 ($(LIB2FUNCS_EXTRA)): Remove.
1554 * config/cris/t-elfmulti (LIB2FUNCS_STATIC_EXTRA, INSTALL_LIBGCC)
1556 * config/cris/t-linux (TARGET_LIBGCC2_CFLAGS): Remove.
1557 * config/fr30/t-fr30: Remove.
1558 * config/frv/cmovd.c, config/frv/cmovh.c, config/frv/cmovw.c,
1559 config/frv/modi.c, config/frv/uitod.c, config/frv/uitof.c,
1560 config/frv/ulltod.c, config/frv/ulltof.c, config/frv/umodi.c: Move
1561 to ../libgcc/config/frv.
1562 * config/frv/t-frv (LIB2FUNCS_EXTRA, TARGET_LIBGCC2_CFLAGS)
1563 (cmovh.c, cmovw.c, cmovd.c, modi.c, umodi.c, uitof.c, uitod.c)
1564 (ulltof.c, LIBGCC, INSTALL_LIBGCC): Remove.
1565 * config/frv/t-linux (TARGET_LIBGCC2_CFLAGS): Remove.
1566 * config/h8300/clzhi2.c, config/h8300/ctzhi2.c,
1567 config/h8300/fixunssfsi.c, config/h8300/parityhi2.c,
1568 config/h8300/popcounthi2.c: Move to ../libgcc/config/h8300.
1569 * config/h8300/t-h8300 (LIB2FUNCS_EXTRA, TARGET_LIBGCC2_CFLAGS)
1570 (LIBGCC, INSTALL_LIBGCC): Remove.
1571 * config/i386/gthr-win32.c: Move to ../libgcc/config/i386.
1572 * config/i386/t-cygming (LIBGCC2_INCLUDES): Remove.
1573 * config/i386/t-cygwin: Remove.
1574 * config/i386/t-darwin (LIB2_SIDITI_CONV_FUNCS, LIB2FUNCS_EXTRA)
1575 (LIB2FUNCS_EXCLUDE): Remove.
1576 * config/i386/t-darwin64 (LIB2_SIDITI_CONV_FUNCS, LIB2FUNCS_EXTRA)
1577 (LIBGCC, INSTALL_LIBGCC): Remove.
1578 * config/i386/t-gthr-win32: Move to ../libgcc/config/i386.
1579 * config/i386/t-linux64 (LIBGCC, INSTALL_LIBGCC): Remove.
1580 * config/i386/t-mingw-w32: Likewise.
1581 * config/i386/t-mingw-w64: Likewise.
1582 * config/i386/t-openbsd: Likewise.
1583 * config/i386/t-nto: Remove.
1584 * config/ia64/quadlib.c: Move to ../libgcc/config/ia64.
1585 * config/ia64/t-hpux (LIBGCC, INSTALL_LIBGCC, LIB2FUNCS_EXTRA)
1586 (quadlib.c): Remove.
1587 * config/ia64/t-ia64: Remove comment.
1588 * config/iq2000/lib2extra-funcs.c: Move to
1589 ../libgcc/config/iq2000/lib2funcs.c.
1590 * config/iq2000/t-iq2000: Remove.
1591 * config/m32c/m32c-lib2.c: Move to ../libgcc/config/m32c/lib2funcs.c.
1592 * config/m32c/m32c-lib2-trapv.c: Move to ../libgcc/config/m32c/trapv.c.
1593 * config/m32r/t-linux (TARGET_LIBGCC2_CFLAGS): Remove.
1594 * config/m32c/t-m32c (LIB2FUNCS_EXTRA): Remove.
1595 * config/m32r/t-m32r (TARGET_LIBGCC2_CFLAGS, LIBGCC)
1596 (INSTALL_LIBGCC): Remove.
1597 * config/m68k/fpgnulib.c: Move to ../libgcc/config/m68k.
1598 * config/m68k/t-floatlib: Remove.
1599 * config/m68k/t-mlibs (LIBGCC, INSTALL_LIBGCC): Remove.
1600 * config/mcore/t-mcore (TARGET_LIBGCC2_CFLAGS): Remove.
1602 (LIBGCC, INSTALL_LIBGCC): Remove.
1603 * config/mep/mep-lib2.c: Move to ../libgcc/config/mep/lib2funcs.c.
1604 * config/mep/mep-tramp.c: Move to ../libgcc/config/mep/tramp.c.
1605 * config/mep/t-mep (LIB2FUNCS_EXTRA): Remove.
1606 * config/mips/t-elf (TARGET_LIBGCC2_CFLAGS, LIBGCC)
1607 (INSTALL_LIBGCC): Remove.
1608 * config/mips/t-isa3264: Likewise.
1609 * config/mips/t-mips (LIB2_SIDITI_CONV_FUNCS): Remove.
1610 * config/mips/t-r3900 (TARGET_LIBGCC2_CFLAGS, LIBGCC)
1611 (INSTALL_LIBGCC): Remove.
1612 * config/mips/t-sde (LIBGCC, INSTALL_LIBGCC): Remove.
1613 * config/mips/t-sr71k (TARGET_LIBGCC2_CFLAGS, LIBGCC)
1614 (INSTALL_LIBGCC): Remove.
1615 * config/mips/t-vr (TARGET_LIBGCC2_CFLAGS)
1616 (LIB2FUNCS_STATIC_EXTRA): Remove.
1617 * config/mips/vr4120-div.S: Move to ../libgcc/config/mips.
1618 * config/mmix/t-mmix (TARGET_LIBGCC2_CFLAGS): Remove.
1619 * config/mn10300/t-mn10300 (LIBGCC, INSTALL_LIBGCC): Remove.
1620 * config/pa/fptr.c, config/pa/linux-atomic.c: Move to
1621 ../libgcc/config/pa.
1622 * config/pa/lib2funcs.asm: Move to ../libgcc/config/pa/lib2funcs.S.
1623 * config/pa/quadlib.c: Move to ../libgcc/config/pa.
1624 * config/pa/t-dce-thr (LIBGCC, INSTALL_LIBGCC): Remove.
1625 * config/pa/t-linux, config/pa/t-linux64: Remove.
1626 * config/pa/t-pa-hpux, config/pa/t-pa-hpux10,
1627 config/pa/t-pa-hpux11, config/pa/t-pa64: Remove.
1628 * config/pdp11/t-pdp11 (TARGET_LIBGCC2_CFLAGS, LIB2FUNCS_EXTRA):
1630 * config/picochip/libgccExtras: Move to ../libgcc/config/picochip.
1631 * config/picochip/t-picochip (LIB2FUNCS_EXTRA, RANLIB_FOR_TARGET)
1632 (TARGET_LIBGCC2_CFLAGS, LIBGCC2_DEBUG_CFLAGS): Remove.
1633 * config/rs6000/crtresfpr.asm: Move to
1634 ../libgcc/config/rs6000/crtresfpr.S.
1635 * config/rs6000/crtresgpr.asm: Move to
1636 ../libgcc/config/rs6000/crtresgpr.S.
1637 * config/rs6000/crtresxfpr.asm: Move to
1638 ../libgcc/config/rs6000/crtresxfpr.S.
1639 * config/rs6000/crtresxgpr.asm: Move to
1640 ../libgcc/config/rs6000/crtresxgpr.S.
1641 * config/rs6000/crtsavfpr.asm: Move to
1642 ../libgcc/config/rs6000/crtsavfpr.S.
1643 * config/rs6000/crtsavgpr.asm: Move to
1644 ../libgcc/config/rs6000/crtsavgpr.S.
1645 * config/rs6000/darwin-asm.h: Move to ../libgcc/config/rs6000.
1646 * config/rs6000/darwin-fpsave.asm: Move to
1647 ../libgcc/config/rs6000/darwin-fpsave.S.
1648 * config/rs6000/darwin-gpsave.asm: Move to
1649 ../libgcc/config/rs6000/darwin-gpsave.S.
1650 * config/rs6000/darwin-tramp.asm: Move to
1651 ../libgcc/config/rs6000/darwin-tramp.S.
1652 * config/rs6000/darwin-vecsave.asm: Move to
1653 ../libgcc/config/rs6000/darwin-vecsave.S.
1654 * config/rs6000/darwin-world.asm: Move to
1655 ../libgcc/config/rs6000/darwin-world.S.
1656 * config/rs6000/e500crtres32gpr.asm: Move to
1657 ../libgcc/config/rs6000/e500crtres32gpr.S.
1658 * config/rs6000/e500crtres64gpr.asm: Move to
1659 ../libgcc/config/rs6000/e500crtres64gpr.S.
1660 * config/rs6000/e500crtres64gprctr.asm: Move to
1661 ../libgcc/config/rs6000/e500crtres64gprctr.S.
1662 * config/rs6000/e500crtrest32gpr.asm: Move to
1663 ../libgcc/config/rs6000/e500crtrest32gpr.S.
1664 * config/rs6000/e500crtrest64gpr.asm: Move to
1665 ../libgcc/config/rs6000/e500crtrest64gpr.S.
1666 * config/rs6000/e500crtresx32gpr.asm: Move to
1667 ../libgcc/config/rs6000/e500crtresx32gpr.S.
1668 * config/rs6000/e500crtresx64gpr.asm: Move to
1669 ../libgcc/config/rs6000/e500crtresx64gpr.S.
1670 * config/rs6000/e500crtsav32gpr.asm: Move to
1671 ../libgcc/config/rs6000/e500crtsav32gpr.S.
1672 * config/rs6000/e500crtsav64gpr.asm: Move to
1673 ../libgcc/config/rs6000/e500crtsav64gpr.S.
1674 * config/rs6000/e500crtsav64gprctr.asm: Move to
1675 ../libgcc/config/rs6000/e500crtsav64gprctr.S.
1676 * config/rs6000/e500crtsavg32gpr.asm: Move to
1677 ../libgcc/config/rs6000/e500crtsavg32gpr.S.
1678 * config/rs6000/e500crtsavg64gpr.asm: Move to
1679 ../libgcc/config/rs6000/e500crtsavg64gpr.S.
1680 * config/rs6000/e500crtsavg64gprctr.asm: Move to
1681 ../libgcc/config/rs6000/e500crtsavg64gprctr.S.
1682 * config/rs6000/eabi.asm: Move to ../libgcc/config/rs6000/eabi.S.
1683 * config/rs6000/t-aix43 (LIBGCC, INSTALL_LIBGCC, LIB2FUNCS_EXTRA)
1684 (TARGET_LIBGCC2_CFLAGS): Remove.
1685 * config/rs6000/t-aix52: Likewise.
1686 * config/rs6000/t-darwin: Remove.
1687 * config/rs6000/t-darwin64 (LIB2_SIDITI_CONV_FUNCS)
1688 (LIB2FUNCS_EXTRA): Remove.
1689 * config/rs6000/t-fprules (LIBGCC, INSTALL_LIBGCC): Remove.
1690 * config/rs6000/t-linux64 (TARGET_LIBGCC2_CFLAGS): Remove.
1691 * config/rs6000/t-lynx (LIB2FUNCS_EXTRA, tramp.S, LIBGCC)
1692 (INSTALL_LIBGCC): Remove.
1693 * config/rs6000/t-netbsd (LIB2FUNCS_EXTRA)
1694 (LIB2FUNCS_STATIC_EXTRA, tramp.S, crtsavfpr.S, crtresfpr.S)
1695 (crtsavgpr.S, crtresgpr.S, crtresxfpr.S, crtresxgpr.S, LIBGCC)
1696 (INSTALL_LIBGCC, $(T)crtsavfpr$(objext), $(T)crtresfpr$(objext))
1697 ($(T)crtsavgpr$(objext), $(T)crtresgpr$(objext))
1698 ($(T)crtresxfpr$(objext), $(T)crtresxgpr$(objext)): Remove.
1699 * config/rs6000/t-ppccomm (LIB2FUNCS_EXTRA)
1700 (LIB2FUNCS_STATIC_EXTRA, eabi.S, tramp.S): Remove.
1701 * config/rs6000/t-spe (LIBGCC, INSTALL_LIBGCC): Remove.
1702 * config/rs6000/t-vxworks: Remove comment.
1703 * config/rs6000/tramp.asm: Move to ../libgcc/config/rs6000/tramp.S.
1704 * config/rx/t-rx (LIBGCC, INSTALL_LIBGCC): Remove.
1705 * config/sh/linux-atomic.asm: Move to
1706 ../libgcc/config/sh/linux-atomic.S.
1707 * config/sh/t-linux (LIB2FUNCS_EXTRA): Remove.
1708 * config/sh/t-netbsd: Remove.
1709 * config/sh/t-sh (TARGET_LIBGCC2_CFLAGS, LIBGCC, INSTALL_LIBGCC):
1711 * config/sparc/t-elf (LIBGCC, INSTALL_LIBGCC): Remove.
1712 * config/sparc/t-leon: Likewise.
1713 * config/sparc/t-leon3: Likewise.
1714 * config/sparc/t-linux64: Likewise.
1715 * config/sparc/t-netbsd64: Fix typo.
1717 * config/spu/divmodti4.c, config/spu/divv2df3.c,
1718 config/spu/float_disf.c, config/spu/float_unsdidf.c,
1719 config/spu/float_unsdisf.c, config/spu/float_unssidf.c,
1720 config/spu/mfc_multi_tag_release.c,
1721 config/spu/mfc_multi_tag_reserve.c, config/spu/mfc_tag_release.c,
1722 config/spu/mfc_tag_reserve.c, config/spu/mfc_tag_table.c,
1723 config/spu/multi3.c: Move to ../libgcc/config/spu.
1724 * config/spu/t-spu-elf (TARGET_LIBGCC2_CFLAGS, LIB2FUNCS_EXCLUDE)
1725 (LIB2FUNCS_STATIC_EXTRA, LIB2_SIDITI_CONV_FUNCS, LIBGCC)
1726 (INSTALL_LIBGCC): Remove.
1727 * config/stormy16/stormy16-lib2.c: Move to
1728 ../libgcc/config/stormy16/lib2.c.
1729 * config/stormy16/stormy16-lib2-ashlsi3.c: Move to
1730 ../libgcc/config/stormy16/ashlsi3.c.
1731 * config/stormy16/stormy16-lib2-ashrsi3.c: Move to
1732 ../libgcc/config/stormy16/ashrsi3.c.
1733 * config/stormy16/stormy16-lib2-clzhi2.c: Move to
1734 ../libgcc/config/stormy16/clzhi2.c.
1735 * config/stormy16/stormy16-lib2-cmpsi2.c: Move to
1736 ../libgcc/config/stormy16/cmpsi2.c.
1737 * config/stormy16/stormy16-lib2-ctzhi2.c: Move to
1738 ../libgcc/config/stormy16/ctzhi2.c.
1739 * config/stormy16/stormy16-lib2-divsi3.c: Move to
1740 ../libgcc/config/stormy16/divsi3.c.
1741 * config/stormy16/stormy16-lib2-ffshi2.c: Move to
1742 ../libgcc/config/stormy16/ffshi2.c.
1743 * config/stormy16/stormy16-lib2-lshrsi3.c: Move to
1744 ../libgcc/config/stormy16/lshrsi3.c.
1745 * config/stormy16/stormy16-lib2-modsi3.c: Move to
1746 ../libgcc/config/stormy16/modsi3.c.
1747 * config/stormy16/stormy16-lib2-parityhi2.c: Move to
1748 ../libgcc/config/stormy16/parityhi2.c.
1749 * config/stormy16/stormy16-lib2-popcounthi2.c: Move to
1750 ../libgcc/config/stormy16/popcounthi2.c.
1751 * config/stormy16/stormy16-lib2-ucmpsi2.c: Move to
1752 ../libgcc/config/stormy16/ucmpsi2.c.
1753 * config/stormy16/stormy16-lib2-udivmodsi4.c: Move to
1754 ../libgcc/config/stormy16/udivmodsi4.c.
1755 * config/stormy16/stormy16-lib2-udivsi3.c: Move to
1756 ../libgcc/config/stormy16/udivsi3.c.
1757 * config/stormy16/stormy16-lib2-umodsi3.c: Move to
1758 ../libgcc/config/stormy16/umodsi3.c.
1759 * config/stormy16/t-stormy16: Move to ../libgcc/config/t-stormy16.
1760 * config/v850/t-v850 (INSTALL_LIBGCC): Remove.
1761 * config/xtensa/lib2funcs.S: Move to ../libgcc/config/xtensa.
1762 * config/xtensa/t-elf: Remove.
1763 * config/xtensa/t-xtensa (LIB2FUNCS_EXTRA): Remove.
1764 * config.gcc (*-*-freebsd*): Remove t-freebsd, t-freebsd-thread
1766 (*-*-linux*, frv-*-*linux*, *-*-kfreebsd*-gnu, *-*-knetbsd*-gnu,
1767 *-*-gnu*, *-*-kopensolaris*-gnu): Remove t-linux from tmake_file.
1768 (*-*-netbsd*): Remove t-libgcc-pic from tmake_file.
1769 (*-*-openbsd*): Likewise.
1770 Remove t-openbsd-thread for posix threads.
1771 (alpha*-*-linux*): Remove alpha/t-alpha, alpha/t-ieee from tmake_file.
1772 (alpha*-*-freebsd*): Likewise.
1773 (alpha*-*-netbsd*): Likewise.
1774 (alpha*-*-openbsd*): Likewise.
1775 (alpha64-dec-*vms*): Likewise.
1776 (alpha*-dec-*vms*): Likewise.
1777 (arm*-*-netbsdelf*): Remove arm/t-netbsd from tmake_file.
1778 (arm*-*-linux*): Remove t-linux from tmake_file.
1779 Remove arm/t-bpabi from tmake_file for arm*-*-linux-*eabi.
1780 (arm*-*-uclinux*): Remove arm/t-bpabi from tmake_file for
1781 arm*-*-uclinux*eabi.
1782 (arm*-*-eabi*, arm*-*-symbianelf* ): Remove arm/t-bpabi from
1783 tmake_file for arm*-*-eabi*.
1784 (fr30-*-elf): Remove tmake_file.
1785 (hppa*64*-*-linux*): Remove tmake_file.
1786 (hppa*-*-linux*): Likewise.
1787 (hppa[12]*-*-hpux10*): Remove pa/t-pa-hpux10, pa/t-pa-hpux from
1789 (hppa*64*-*-hpux11*): Remove pa/t-pa64, pa/t-pa-hpux from tmake_file.
1790 (hppa[12]*-*-hpux11*): Remove pa/t-pa-hpux11, pa/t-pa-hpux from
1792 (i[34567]86-*-elf*): Remove tmake_file.
1793 (x86_64-*-elf*): Likewise.
1794 (i[34567]86-*-nto-qnx*): Likewise.
1795 (i[34567]86-*-cygwin*): Remove i386/t-cygwin from tmake_file.
1796 (i[34567]86-*-mingw*, x86_64-*-mingw*): Remove i386/t-gthr-win32
1797 from tmake_file if using win32 threads.
1798 (iq2000*-*-elf*): Remove tmake-file.
1799 (microblaze*-linux*): Likewise.
1800 (sh-*-elf*, sh[12346l]*-*-elf*, sh-*-linux*)
1801 (sh[2346lbe]*-*-linux*, sh-*-netbsdelf*, shl*-*-netbsdelf*)
1802 (sh5-*-netbsd*, sh5l*-*-netbsd*, sh64-*-netbsd*)
1803 (sh64l*-*-netbsd*): Remove sh/t-netbsd from tmake_file for
1804 sh5*-*-netbsd*, sh64*-netbsd*, *-*-netbsd.
1805 (xtensa*-*-elf*): Remove tmake_file.
1807 2011-11-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1809 * Makefile.in (LIB1ASMSRC): Don't export.
1810 (libgcc.mvars): Don't emit LIB1ASMFUNCS, LIB1ASMSRC.
1811 * config/arm/arm.c: Update lib1funcs.asm filename.
1812 * config/arm/linux-eabi.h: Likewise.
1813 * config/arm/bpabi-v6m.S, config/arm/bpabi.S,
1814 config/arm/ieee754-df.S, config/arm/ieee754-sf.S: Move to
1815 ../libgcc/config/arm.
1816 * config/arm/lib1funcs.asm: Move to ../libgcc/config/arm/lib1funcs.S.
1817 * config/arm/t-arm (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
1818 * config/arm/t-arm-elf (LIB1ASMFUNCS): Remove.
1819 * config/arm/t-bpabi: Likewise.
1820 * config/arm/t-linux (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
1821 * config/arm/t-linux-eabi (LIB1ASMFUNCS): Remove.
1822 * config/arm/t-strongarm-elf: Likewise.
1823 * config/arm/t-symbian: Likewise.
1824 * config/arm/t-vxworks: Likewise.
1825 * config/arm/t-wince-pe: Likewise.
1826 * config/avr/libgcc.S: Move to ../libgcc/config/avr.
1827 * config/avr/t-avr (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
1828 * config/bfin/lib1funcs.asm: Move to ../libgcc/config/bfin/lib1funcs.S.
1829 * config/bfin/t-bfin: Remove.
1830 * config/bfin/t-bfin-elf (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
1831 * config/bfin/t-bfin-linux: Likewise.
1832 * config/bfin/t-bfin-uclinux: Likewise.
1833 * config/c6x/lib1funcs.asm: Move to ../libgcc/config/c6x/lib1funcs.S.
1834 * config/c6x/t-c6x-elf (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
1835 * config/fr30/lib1funcs.asm: Move to ../libgcc/config/fr30/lib1funcs.S.
1836 * config/fr30/t-fr30 (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
1837 * config/frv/lib1funcs.asm: Move to ../libgcc/config/frv/lib1funcs.S.
1838 * config/frv/t-frv (CROSS_LIBGCC1, LIB1ASMSRC, LIB1ASMFUNCS): Remove.
1839 * config/h8300/fixunssfsi.c: Update lib1funcs.asm filename.
1840 * config/h8300/lib1funcs.asm: Move to
1841 ../libgcc/config/h8300/lib1funcs.S.
1842 * config/h8300/t-h8300 (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
1843 * config/i386/cygwin.asm: Move to ../libgcc/config/i386/cygwin.S.
1844 * config/i386/t-cygming (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
1845 * config/i386/t-interix: Likewise.
1846 * config/ia64/lib1funcs.asm: Move to ../libgcc/config/ia64/lib1funcs.S.
1847 * config/ia64/t-hpux (LIB1ASMFUNCS, LIBGCC1_TEST): Remove.
1848 * config/ia64/t-ia64 (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
1849 * config/iq2000/t-iq2000 (LIBGCC1, CROSS_LIBGCC1): Remove.
1850 * config/m32c/m32c.c: Update m32c-lib1.S filename.
1851 * config/m32c/m32c-lib1.S: Move to ../libgcc/config/m32c/lib1funcs.S.
1852 * config/m32c/t-m32c (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
1853 * config/m32r/t-linux (CROSS_LIBGCC1, LIBGCC1, LIBGCC1_TEST): Remove.
1854 * config/m68k/lb1sf68.asm: Move to ../libgcc/config/m68k/lb1sf68.S.
1855 * config/m68k/t-floatlib (LIB1ASMSRC, LIB1ASMFUNCS): New file.
1856 * config/mcore/lib1.asm: Move to ../libgcc/config/mcore/lib1funcs.S.
1857 * config/mcore/t-mcore (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
1858 * config/mep/mep-lib1.asm: Move to ../libgcc/config/mep/lib1funcs.S.
1859 * config/mep/t-mep (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
1860 * config/mips/mips16.S: Move to ../libgcc/config/mips.
1861 * config/mips/t-libgcc-mips16: Remove.
1862 * config/mips/t-sr71k (LIBGCC1, CROSS_LIBGCC1): Remove.
1863 * config/pa/milli64.S: Move to ../libgcc/config/pa.
1864 * config/pa/t-linux (LIB1ASMFUNCS, LIB1ASMSRC): Remove.
1865 * config/pa/t-linux64: Likewise.
1866 * config/picochip/libgccExtras/fake_libgcc.asm: Move to
1867 ../libgcc/config/picochip/lib1funcs.S.
1868 * config/picochip/t-picochip (LIB1ASMFUNCS, LIB1ASMSRC): Remove.
1869 * config/sh/lib1funcs.asm: Move to ../libgcc/config/sh/lib1funcs.S.
1870 * config/sh/lib1funcs.h: Move to ../libgcc/config/sh.
1871 * config/sh/sh.h: Update lib1funcs.asm filename.
1872 * config/sh/t-linux (LIB1ASMFUNCS_CACHE): Remove.
1873 * config/sh/t-netbsd: Likewise.
1874 * config/sh/t-sh (LIB1ASMSRC, LIB1ASMFUNCS, LIB1ASMFUNCS_CACHE):
1876 * config/sh/t-sh64 (LIB1ASMFUNCS): Remove.
1877 * config/sparc/lb1spc.asm: Move to ../libgcc/config/sparc/lb1spc.S.
1878 * config/sparc/lb1spl.asm: Remove.
1879 * config/sparc/t-elf (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
1880 * config/sparc/t-leon: Likewise.
1881 * config/spu/t-spu-elf (LIBGCC1, CROSS_LIBGCC1): Remove.
1882 * config/v850/lib1funcs.asm: Move to ../libgcc/config/v850/lib1funcs.S.
1883 * config/v850/t-v850 (LIB1ASMSRC, LIB1ASMFUNCS): Remove
1884 * config/vax/lib1funcs.asm: Move to ../libgcc/config/vax/lib1funcs.S.
1885 * config/vax/t-linux: Remove.
1886 * config/xtensa/ieee754-df.S, config/xtensa/ieee754-sf.S: Move to
1887 ../libgcc/config/xtensa.
1888 * config/xtensa/lib1funcs.asm: Move to
1889 ../libgcc/config/xtensa/lib1funcs.S.
1890 * config/xtensa/t-xtensa (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
1891 * config.gcc (bfin*-rtems*): Remove bfin/t-bfin from tmake_file.
1892 (bfin*-*): Likewise.
1893 (mips64*-*-linux*, mipsisa64*-*-linux*): Remove
1894 mips/t-libgcc-mips16 from tmake_file.
1895 (mips*-*-linux*): Likewise.
1896 (mips*-sde-elf*): Likewise.
1897 (mipsisa32-*-elf*, mipsisa32el-*-elf*, mipsisa32r2-*-elf*)
1898 (mipsisa32r2el-*-elf*, mipsisa64-*-elf*, mipsisa64el-*-elf*)
1899 (mipsisa64r2-*-elf*, mipsisa64r2el-*-elf*): Likewise.
1900 (mipsisa64sb1-*-elf*, mipsisa64sb1el-*-elf*): Likewise.
1901 (mips-*-elf*, mipsel-*-elf*): Likewise.
1902 (mips64-*-elf*, mips64el-*-elf*): Likewise.
1903 (mips64orion-*-elf*, mips64orionel-*-elf*): Likewise.
1904 (mips*-*-rtems*): Likewise.
1905 (mipstx39-*-elf*, mipstx39el-*-elf*): Likewise.
1906 (vax-*-linux*): Remove vax/t-linux from tmake_file.
1908 2011-11-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1910 * config.gcc (extra_parts): Remove.
1911 (*-*-freebsd*): Remove extra_parts.
1912 (*-*-linux*, frv-*-*linux*, *-*-kfreebsd*-gnu, *-*-knetbsd*-gnu,
1913 *-*-gnu*, *-*-kopensolaris*-gnu): Likewise.
1914 (*-*-netbsd*): Remove t-libc-ok, t-netbsd from tmake_file.
1915 Remove extra_parts for *-*-netbsd*1.[7-9]*, *-*-netbsd[2-9]*,
1916 *-*-netbsdelf[2-9]*.
1917 (*-*-openbsd*): Remove t-libc-ok from tmake_file.
1918 (alpha*-*-linux*): Remove extra_parts.
1919 (alpha*-*-freebsd*): Likewise.
1920 (bfin*-linux-uclibc*): Likewise.
1921 (fr30-*-elf): Likewise.
1922 (moxie-*-elf): Likewise.
1923 (moxie-*-uclinux*): Likewise.
1924 (h8300-*-rtems*): Remove h8300/t-elf from tmake_file.
1925 (h8300-*-elf*): Likewise.
1926 (hppa*64*-*-hpux11*): Remove extra_parts.
1927 (i[34567]86-*-elf*): Remove i386/t-i386elf, i386/t-crtstuff from
1929 (x86_64-*-elf*): Likewise.
1930 (i[34567]86-*-freebsd*): Remove tmake_file.
1931 (x86_64-*-freebsd*): Likewise.
1932 (x86_64-*-netbsd*): Likewise.
1933 (i[34567]86-*-openbsd2.*, i[34567]86-*openbsd3.[0123]): Remove
1934 t-libc-ok from tmake_file.
1935 (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
1936 i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
1937 i[34567]86-*-kopensolaris*-gnu): Remove i386/t-crtstuff from
1940 (x86_64-*-linux*, x86_64-*-kfreebsd*-gnu, x86_64-*-knetbsd*-gnu):
1941 Remove i386/t-crtstuff from tmake_file.
1942 (i[34567]86-*-lynxos*): Likewise.
1944 (ia64*-*-elf*): Remove extra_parts.
1945 (ia64*-*-freebsd*): Likewise.
1946 (ia64*-*-linux*): Likewise.
1947 (ia64-hp-*vms*): Remove ia64/t-vms from tmake_file.
1948 (m32r-*-elf*): Remove extra_parts.
1949 (m32rle-*-elf*): Likewise.
1950 (m32r-*-rtems*): Likewise.
1951 (m68k-*-elf*, fido-*-elf*): Likewise.
1952 (m68k*-*-openbsd*): Remove t-libc-ok from tmake_file.
1953 (m68k-*-rtems*): Remove extra_parts.
1954 (mep-*-*): Likewise.
1955 (microblaze*-linux*): Likewise.
1956 (mips64*-*-linux*, mipsisa64*-*-linux*): Likewise.
1957 (mips*-*-linux*): Likewise.
1958 (powerpc-*-lynxos*): Likewise.
1959 (s390x-ibm-tpf*): Likewise.
1960 (score-*-elf): Likewise.
1962 (sh-*-elf*, sh[12346l]*-*-elf*, sh-*-linux*, sh[2346lbe]*-*-linux*,
1963 sh-*-netbsdelf*, shl*-*-netbsdelf*, sh5-*-netbsd*, sh5l*-*-netbsd*,
1964 sh64-*-netbsd*, sh64l*-*-netbsd*): Remove sh/t-elf from tmake_file.
1965 Remove sh/t-superh from tmake_file for sh*-superh-elf.
1966 Remove sh/t-linux64 from tmake_file for sh64*-*-linux*.
1967 (sh-*-rtems*): Remove sh/t-elf from tmake_file.
1968 (sh-wrs-vxworks): Likewise.
1969 (sparc-*-linux*): Remove extra_parts.
1970 (sparc64-*-linux*): Likewise.
1971 (sparc64-*-freebsd*, ultrasparc-*-freebsd*): Likewise.
1972 (xstormy16-*-elf): Likewise.
1973 (xtensa*-*-linux*): Remove xtensa/t-linux from tmake_file.
1974 (am33_2.0-*-linux*): Remove extra_parts.
1975 * configure.ac (extra_parts): Don't substitute.
1976 * configure: Regenerate.
1977 * crtstuff.c: Move to ../libgcc.
1978 * Makefile.in (CRTSTUFF_CFLAGS): Remove.
1979 (EXTRA_PARTS): Remove.
1980 (CRTSTUFF_T_CFLAGS): Remove.
1981 (MOSTLYCLEANFILES): Remove $(EXTRA_PARTS).
1982 (GCC_EXTRA_PARTS): Remove.
1983 (libgcc.mvars): Remove GCC_EXTRA_PARTS, CRTSTUFF_CFLAGS,
1984 CRTSTUFF_T_CFLAGS, CRTSTUFF_T_CFLAGS_S.
1985 Emit GCC_CFLAGS, INHIBIT_LIBC_CFLAGS.
1986 ($(T)crtbegin.o, $(T)crtend.o, $(T)crtbeginS.o, $(T)crtendS.o)
1987 ($(T)crtbeginT.o): Remove.
1988 * config/alpha/t-vms (EXTRA_PARTS): Remove.
1989 ($(T)vms-dwarf2.o, $(T)vms-dwarf2eh.o): Remove.
1990 * config/alpha/vms-dwarf2.asm: Move to
1991 ../libgcc/config/alpha/vms-dwarf2.S.
1992 * config/alpha/vms-dwarf2eh.asm: Move to
1993 ../libgcc/config/alpha/vms-dwarf2eh.S.
1994 * config/arm/crti.asm: Move to ../libgcc/config/arm/crti.S.
1995 * config/arm/crtn.asm: Move to ../libgcc/config/arm/crtn.S.
1996 * config/arm/t-arm-elf (EXTRA_MULTILIB_PARTS): Remove.
1997 ($(T)crti.o, $(T)crtn.o): Remove.
1998 * config/arm/t-linux: Remove comment.
1999 * config/arm/t-linux-eabi (EXTRA_MULTILIB_PARTS): Remove.
2000 * config/arm/t-strongarm-elf (EXTRA_MULTILIB_PARTS): Remove.
2001 ($(T)crti.o, $(T)crtn.o): Remove.
2002 * config/arm/t-symbian (EXTRA_MULTILIB_PARTS): Remove.
2003 * config/bfin/crti.s: Move to ../libgcc/config/bfin/crti.S.
2004 * config/bfin/crtn.s: Move to ../libgcc/config/bfin/crtn.S.
2005 * config/bfin/crtlibid.s: Move to ../libgcc/config/bfin/crtlibid.S.
2006 * config/bfin/t-bfin (EXTRA_PARTS): Remove.
2007 ($(T)crti.o, $(T)crtn.o): Remove.
2008 * config/bfin/t-bfin-elf (CRTSTUFF_T_CFLAGS): Remove.
2009 ($(T)crti.o, $(T)crtn.o, $(T)crtlibid.o): Remove
2010 (EXTRA_MULTILIB_PARTS): Remove.
2011 * config/bfin/t-bfin-linux (CRTSTUFF_T_CFLAGS,
2012 EXTRA_MULTILIB_PARTS): Remove.
2013 * config/bfin/t-bfin-uclinux (CRTSTUFF_T_CFLAGS): Remove.
2014 ($(T)crtlibid.o): Remove.
2015 (EXTRA_MULTILIB_PARTS): Remove.
2016 * config/c6x/crti.s: Move to ../libgcc/config/c6x/crti.S.
2017 * config/c6x/crtn.s: Move to ../libgcc/config/c6x/crtn.S.
2018 * config/c6x/t-c6x-elf ($(T)crti.o, $(T)crtn.o): Remove.
2019 (EXTRA_MULTILIB_PARTS): Remove.
2020 (CRTSTUFF_T_CFLAGS, CRTSTUFF_T_CFLAGS_S): Remove.
2021 * config/c6x/t-c6x-uclinux (CRTSTUFF_T_CFLAGS,
2022 CRTSTUFF_T_CFLAGS_S): Remove.
2023 * config/cris/t-elfmulti (CRTSTUFF_T_CFLAGS): Remove.
2024 * config/cris/t-linux (CRTSTUFF_T_CFLAGS_S): Remove.
2025 * config/fr30/crti.asm: Move to ../libgcc/config/fr30/crti.S.
2026 * config/fr30/crtn.asm: Move to ../libgcc/config/fr30/crtn.S.
2027 * config/fr30/t-fr30 ($(T)crti.o, $(T)crtn.o): Remove.
2028 * config/frv/frvbegin.c, config/frv/frvend.c: Move to
2029 ../libgcc/config/frv.
2030 * config/frv/t-frv (EXTRA_MULTILIB_PARTS): Remove.
2031 (FRVSTUFF_CFLAGS, $(T)frvbegin$(objext), $(T)frvend$(objext)): Remove.
2032 * config/frv/t-linux (EXTRA_MULTILIB_PARTS): Remove.
2033 (CRTSTUFF_T_CFLAGS): Remove.
2034 * config/h8300/crti.asm: Move to ../libgcc/config/h8300/crti.S.
2035 * config/h8300/crtn.asm: Move to ../libgcc/config/h8300/crtn.S.
2036 * config/h8300/t-elf: Remove.
2037 * config/i386/cygming-crtbegin.c, config/i386/cygming-crtend.c:
2038 Move to ../libgcc/config/i386.
2039 * config/i386/t-crtstuff: Remove.
2040 * config/i386/t-i386elf: Remove.
2041 * config/i386/t-linux64 (EXTRA_MULTILIB_PARTS): Remove.
2042 * config/i386/t-nto (CRTSTUFF_T_CFLAGS, EXTRA_PARTS): Remove.
2043 * config/ia64/crtbegin.asm: Move to ../libgcc/config/ia64/crtbegin.S.
2044 * config/ia64/crtend.asm: Move to ../libgcc/config/ia64/crtend.S.
2045 * config/ia64/crti.asm: Move to ../libgcc/config/ia64/crti.S.
2046 * config/ia64/crtn.asm: Move to ../libgcc/config/ia64/crtn.S.
2047 * config/ia64/t-vms: Remove.
2048 * config/ia64/vms-crtinit.asm: Move to
2049 ../libgcc/config/ia64/vms-crtinit.S.
2050 * config/m32c/t-m32c (EXTRA_MULTILIB_PARTS): Remove.
2051 * config/m32r/initfini.c: Move to ../libgcc/config/m32r.
2052 * config/m32r/t-linux (CRTSTUFF_T_CFLAGS_S): Remove.
2053 * config/m32r/t-m32r (CRTSTUFF_T_CFLAGS): Remove.
2054 ($(T)crtinit.o, $(T)crtfini.o): Remove.
2055 (m32rx, m32r2): Remove.
2056 (EXTRA_MULTILIB_PARTS): Remove.
2057 * config/m68k/crti.s: Move to ../libgcc/config/m68k/crti.S.
2058 * config/m68k/crtn.s: Move to ../libgcc/config/m68k/crtn.S.
2059 * config/m68k/t-crtstuff: Remove.
2060 * config/m68k/t-linux (EXTRA_MULTILIB_PARTS): Remove.
2061 * config/m68k/t-m68kelf: Remove.
2062 * config/m68k/t-uclinux (EXTRA_MULTILIB_PARTS): Remove.
2063 * config/mcore/crti.asm: Move to ../libgcc/config/mcore/crti.S.
2064 * config/mcore/crtn.asm: Move to ../libgcc/config/mcore/crtn.S.
2065 * config/mcore/t-mcore ($(T)crti.o, $(T)crtn.o): Remove.
2066 (EXTRA_PARTS, EXTRA_MULTILIB_PARTS): Remove.
2067 * config/mep/t-mep (CRTSTUFF_CFLAGS): Remove.
2068 (EXTRA_MULTILIB_PARTS): Remove.
2069 * config/microblaze/crti.s: Move to ../libgcc/config/microblaze/crti.S.
2070 * config/microblaze/crtn.s: Move to ../libgcc/config/microblaze/crtn.S.
2071 * config/microblaze/t-microblaze (EXTRA_MULTILIB_PARTS,
2072 EXTRA_PARTS): Remove.
2073 ($(T)crti$(objext), $(T)crtn$(objext)): Remove.
2074 * config/mips/crti.asm: Move to ../libgcc/config/mips/crti.S.
2075 * config/mips/crtn.asm: Move to ../libgcc/config/mips/crtn.S.
2076 * config/mips/t-elf (CRTSTUFF_T_CFLAGS): Remove.
2077 ($(T)crti.o, $(T)crtn.o): Remove.
2078 (EXTRA_MULTILIB_PARTS): Remove.
2079 * config/mips/t-isa3264: Likewise.
2080 * config/mips/t-linux64 (EXTRA_MULTILIB_PARTS): Remove.
2081 * config/mips/t-r3900 (EXTRA_MULTILIB_PARTS): Remove.
2082 (CRTSTUFF_T_CFLAGS): Remove.
2083 * config/mips/t-sde (CRTSTUFF_T_CFLAGS): Remove.
2084 ($(T)crti.o, $(T)crtn.o): Remove.
2085 (EXTRA_MULTILIB_PARTS): Remove.
2086 * config/mips/t-sr71k (EXTRA_MULTILIB_PARTS, CRTSTUFF_T_CFLAGS):
2088 ($(T)crti.o, $(T)crtn.o): Remove.
2089 * config/mips/t-st (EXTRA_MULTILIB_PARTS): Remove.
2090 * config/mips/t-vr (CRTSTUFF_T_CFLAGS): Remove.
2091 (EXTRA_MULTILIB_PARTS): Remove.
2092 ($(T)crti.o, $(T)crtn.o): Remove.
2093 * config/mmix/crti.asm: Move to ../libgcc/config/crti.S.
2094 * config/mmix/crtn.asm: Move to ../libgcc/config/crtn.S.
2095 * config/mmix/t-mmix (CRTSTUFF_T_CFLAGS): Remove.
2096 * config/moxie/crti.asm, config/moxie/crtn.asm: Remove.
2097 * config/pa/stublib.c: Move to libgcc/config/pa.
2098 * config/pa/t-linux (CRTSTUFF_T_CFLAGS_S): Remove.
2099 * config/pa/t-linux64 (CRTSTUFF_T_CFLAGS_S): Remove.
2100 * config/pa/t-pa-hpux11 (LIBGCCSTUB_OBJS, stublib.c): Remove.
2101 (pthread_default_stacksize_np-stub.o, pthread_mutex_lock-stub.o)
2102 (pthread_mutex_unlock-stub.o, pthread_once-stub.o)
2103 ($(T)libgcc_stub.a): Remove.
2104 * config/pa/t-pa64 (LIBGCCSTUB_OBJS, stublib.c): Remove.
2105 (rfi-stub.o, dfi-stub.o, cxaf-stub.o, jvrc-stub.o)
2106 (pthread_default_stacksize_np-stub.o, pthread_mutex_lock-stub.o)
2107 (pthread_mutex_unlock-stub.o, pthread_once-stub.o)
2108 ($(T)libgcc_stub.a): Remove.
2109 * config/rs6000/eabi-cn.asm: Move to
2110 ../../../libgcc/config/rs6000/eabi-cn.S.
2111 * config/rs6000/eabi-ci.asm: Move to
2112 ../../../libgcc/config/rs6000/eabi-ci.S.
2113 * config/rs6000/sol-ci.asm: Move to
2114 ../../../libgcc/config/rs6000/sol-ci.S.
2115 * config/rs6000/sol-cn.asm: Move to
2116 ../../../libgcc/config/rs6000/sol-cn.S.
2117 * config/rs6000/t-lynx (EXTRA_MULTILIB_PARTS): Remove.
2118 (CRTSTUFF_T_CFLAGS, CRTSTUFF_T_CFLAGS_S): Remove.
2119 * config/rs6000/t-netbsd (CRTSTUFF_T_CFLAGS, CRTSTUFF_T_CFLAGS_S):
2121 (EXTRA_MULTILIB_PARTS): Remove.
2122 * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Remove.
2123 (ecrti.S, ecrtn.S, ncrti.S, ncrtn.S): Remove.
2124 ($(T)ecrti$(objext), $(T)ecrtn$(objext), $(T)ncrti$(objext),
2125 ($(T)ncrtn$(objext)): Remove.
2126 (CRTSTUFF_T_CFLAGS, CRTSTUFF_T_CFLAGS_S): Remove.
2127 * config/rs6000/t-vxworks (EXTRA_MULTILIB_PARTS): Remove.
2128 * config/rx/t-rx (EXTRA_MULTILIB_PARTS): Remove.
2129 * config/score/crti.asm: Move to ../libgcc/config/score/crti.S.
2130 * config/score/crtn.asm: Move to ../libgcc/config/score/crtn.S.
2131 * config/score/t-score-elf: Remove.
2132 * config/sh/crt1.asm: Move to ../libgcc/config/sh/crt1.S.
2133 * config/sh/crti.asm: Move to ../libgcc/config/sh/crti.S.
2134 * config/sh/crtn.asm: Move to ../libgcc/config/sh/crtn.S.
2135 * config/sh/lib1funcs-4-300.asm: Move to
2136 ../../../libgcc/config/sh/lib1funcs-4-300.S.
2137 * config/sh/lib1funcs-Os-4-200.asm: Move to
2138 ../libgcc/config/sh/lib1funcs-Os-4-200.S.
2139 * config/sh/t-elf: Remove.
2140 * config/sh/t-linux (EXTRA_MULTILIB_PARTS): Remove.
2141 * config/sh/t-linux64: Remove.
2142 * config/sh/t-netbsd (EXTRA_MULTILIB_PARTS): Remove.
2143 * config/sh/t-sh ($(T)crt1.o, $(T)crti.o, $(T)crtn.o): Remove.
2144 (IC_EXTRA_PARTS, OPT_EXTRA_PARTS, EXTRA_MULTILIB_PARTS): Remove.
2145 ($(T)ic_invalidate_array_4-100.o)
2146 ($(T)libic_invalidate_array_4-100.a)
2147 ($(T)ic_invalidate_array_4-200.o)
2148 ($(T)libic_invalidate_array_4-200.a, $(T)ic_invalidate_array_4a.o)
2149 ($(T)libic_invalidate_array_4a.a, $(T)sdivsi3_i4i-Os-4-200.o)
2150 ($(T)udivsi3_i4i-Os-4-200.o, $(T)unwind-dw2-Os-4-200.o)
2151 ($(T)libgcc-Os-4-200.a, $(T)div_table-4-300.o)
2152 ($(T)libgcc-4-300.a): Remove.
2153 * config/sh/t-superh: Remove.
2154 * config/sh/t-vxworks (EXTRA_MULTILIB_PARTS): Remove.
2155 * config/sparc/t-linux64 (CRTSTUFF_T_CFLAGS): Remove.
2156 * config/spu/cache.S: Move to ../libgcc/config/spu.
2157 * config/spu/cachemgr.c: Move to ../libgcc/config/spu.
2158 * config/spu/t-spu-elf (CRTSTUFF_T_CFLAGS): Remove.
2159 (EXTRA_MULTILIB_PARTS): Remove.
2160 ($(T)cachemgr.o, $(T)cachemgr_nonatomic.o, $(T)libgcc_%.a): Remove.
2161 ($(T)cache8k.o, $(T)cache16k.o, $(T)cache32k.o, $(T)cache32k.o)
2162 ($(T)cache64k.o, $(T)cache128k.o): Remove.
2163 * config/t-freebsd (CRTSTUFF_T_CFLAGS_S): Remove.
2164 * config/t-libc-ok: Remove.
2165 * config/t-linux (CRTSTUFF_T_CFLAGS_S): Remove.
2166 * config/t-lynx (CRTSTUFF_T_CFLAGS_S): Remove.
2167 * config/t-netbsd: Remove.
2168 * config/t-svr4 (CRTSTUFF_T_CFLAGS_S): Remove.
2169 * config/t-vxworks (EXTRA_MULTILIB_PARTS): Remove.
2170 * config/vms/t-vms (VMS_EXTRA_PARTS): Remove.
2171 ($(T)vcrt0.o, $(T)pcrt0.o): Remove.
2172 * config/vms/vms-ucrt0.c: Move to ../libgcc/config/vms.
2173 * config/xtensa/crti.asm: Move to ../libgcc/config/xtensa/crti.S.
2174 * config/xtensa/crtn.asm: Move to ../libgcc/config/xtensa/crtn.S.
2175 * config/xtensa/t-elf (CRTSTUFF_T_CFLAGS, CRTSTUFF_T_CFLAGS_S): Remove.
2176 (EXTRA_MULTILIB_PARTS): Remove.
2177 * config/xtensa/t-linux: Remove.
2178 * config/xtensa/t-xtensa ($(T)crti.o, $(T)crtn.o): Remove.
2180 2011-11-02 Uros Bizjak <ubizjak@gmail.com>
2182 * config/i386/i386.c (bdesc_args) [IX86_BUILTIN_CVTTPD2DQ256]: Use
2183 CODE_FOR_fix_truncv4dfv4si2, not CODE_FOR_fix_truncv4sfv4si2.
2185 2011-11-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2187 PR translation/45116
2188 * Makefile.in (slibdir): Remove, don't export.
2189 (SHLIB_NM_FLAGS): Remove.
2190 (libgcc.mvars): Don't emit SHLIB_LINK, SHLIB_INSTALL,
2191 SHLIB_DLLDIR, SHLIB_EXT, SHLIB_MKMAP, SHLIB_MKMAP_OPTS,
2192 SHLIB_MAPFILES, SHLIB_NM_FLAGS.
2193 (DRIVER_DEFINES): Test SHLIB instead of SHLIB_LINK.
2194 (gcc.o): Pass SHLIB instead of SHLIB_LINK.
2195 (gccspec.o): Likewise.
2196 (installdirs): Don't create $(DESTDIR)$(slibdir).
2197 * configure.ac (slibdir): Remove.
2198 * configure: Regenerate.
2199 * libgcc-libsystem.ver: Move to ../libgcc/config.
2200 * mkmap-flat.awk, mkmap-symver.awk: Move to ../libgcc.
2201 * config/libgcc-glibc.ver: Move to ../libgcc/config.
2202 * config/t-libunwind (SHLIB_LC): Remove.
2203 * config/t-linux (SHLIB_MAPFILES): Remove.
2204 * config/t-slibgcc-dummy: Rename to config/t-slibgcc.
2205 * config/t-slibgcc-elf-ver: Remove.
2206 * config/t-slibgcc-libgcc, config/t-slibgcc-nolc-override: Move to
2208 * config/alpha/libgcc-alpha-ldbl.ver, config/alpha/t-linux: Move
2209 to ../libgcc/config/alpha.
2210 * config/alpha/t-vms (shlib_version, SHLIB_EXT, SHLIB_OBJS,
2211 SHLIB_NAME, SHLIB_MULTILIB, SHLIB_INSTALL, SHLIB_SYMVEC,
2212 SHLIB_SYMVECX2, SHLIB_LINK): Remove.
2213 * config/arm/libgcc-bpabi.ver: Move to ../libgcc/config/arm.
2214 * config/arm/t-bpabi (SHLIB_MAPFILES): Remove.
2215 * config/arm/t-netbsd (SHLIB_EXT, SHLIB_NAME, SHLIB_SONAME,
2216 SHLIB_OBJS, SHLIB_LINK, SHLIB_INSTALL): Remove.
2217 * config/arm/t-symbian (SHLIB_LC): Remove.
2218 * config/bfin/libgcc-bfin.ver: Move to
2219 ../libgcc/config/bfin/libgcc-glibc.ver.
2220 * config/bfin/t-bfin-linux (SHLIB_MAPFILES): Remove.
2221 * config/c6x/libgcc-c6xeabi.ver: Move to
2222 ../libgcc/config/c6x/libgcc-eabi.ver.
2223 * config/c6x/t-c6x-elf (SHLIB_MAPFILES): Remove.
2224 * config/cris/libgcc.ver: Move to
2225 ../libgcc/config/cris/libgcc-glibc.ver.
2226 * config/cris/t-linux (SHLIB_MAPFILES): Remove.
2227 * config/frv/libgcc-frv.ver: Move to ../libgcc/config/frv.
2228 * config/frv/t-linux (SHLIB_MAPFILES): Remove.
2229 * config/i386/darwin-libgcc.10.4.ver: Move to
2230 ../libgcc/config/i386/libgcc-darwin.10.4.ver.
2231 * config/i386/darwin-libgcc.10.5.ver: Move to
2232 ../libgcc/config/i386/libgcc-darwin.10.5.ver.
2233 * config/i386/libgcc-glibc.ver: Move to ../libgcc/config/i386.
2234 * config/i386/t-cygming (SHLIB_EXT, SHLIB_IMPLIB, SHLIB_SOVERSION,
2235 SHLIB_SONAME, SHLIB_MAP, SHLIB_OBJS, SHLIB_DIR, SHLIB_SLIBDIR_QUAL)
2236 SHLIB_PTHREAD_CFLAG, SHLIB_PTHREAD_LDFLAG, SHLIB_LINK,
2237 SHLIB_INSTALL, SHLIB_MKMAP, SHLIB_MKMAP_OPTS, SHLIB_MAPFILES): Remove.
2238 * config/i386/t-cygwin (SHLIB_LC, SHLIB_EH_EXTENSION,
2239 SHLIB_IMPLIB, SHLIB_SONAME, SHLIB_MKMAP_OPTS): Remove.
2240 * config/i386/t-dlldir, config/i386/t-dlldir-x: Move to
2241 ../libgcc/config/i386.
2242 * config/i386/t-dw2-eh, config/i386/t-sjlj-eh: Move to
2243 ../libgcc/config/i386.
2244 * config/i386/t-linux: Move to ../libgcc/config/i386.
2245 * config/i386/t-mingw-pthread: Move to ../libgcc/config/i386.
2246 * config/i386/t-mingw-w32 (SHLIB_LC): Remove.
2247 * config/i386/t-mingw-w64: Likewise.
2248 * config/i386/t-mingw32: Remove.
2249 * config/ia64/libgcc-glibc.ver, config/ia64/libgcc-ia64.ver: Move
2250 to ../libgcc/config/ia64.
2251 * config/ia64/t-glibc: Remove.
2252 * config/ia64/t-hpux (SHLIB_EXT, SHLIB_LINK, SHLIB_INSTALL): Remove.
2253 * config/ia64/t-ia64 (SHLIB_MAPFILES): Remove.
2254 * config/ia64/t-vms (shlib_version, SHLIB_EXT, SHLIB_OBJS,
2255 SHLIB_NAME, SHLIB_MULTILIB, SHLIB_INSTALL, SHLIB_LINK): Remove.
2256 * config/ia64/vms_symvec_libgcc_s.opt: Remove.
2257 * config/m32r/libgcc-glibc.ver: Move to ../libgcc/config/m32r.
2258 * config/m32r/t-linux (SHLIB_MAPFILES): Remove.
2259 * config/m68k/t-slibgcc-elf-ver: Move to ../libgcc/config/m68k.
2260 * config/mips/t-libgcc-mips16 (SHLIB_MAPFILES): Remove.
2261 * config/pa/t-hpux-shlib: Move to ../libgcc/config/pa/t-slibgcc-hpux.
2262 * config/pa/t-slibgcc-dwarf-ver, config/pa/t-slibgcc-sjsj-ver:
2263 Move to ../libgcc/config/pa.
2264 * config/rs6000/darwin-libgcc.10.4.ver: Move to
2265 ../libgcc/config/rs6000/libgcc-darwin.10.4.ver.
2266 * config/rs6000/darwin-libgcc.10.5.ver: Move to
2267 ../libgcc/config/rs6000/libgcc-darwin.10.5.ver.
2268 * config/rs6000/t-aix43 (SHLIB_EXT, SHLIB_LINK, SHLIB_INSTALL,
2269 SHLIB_LIBS, SHLIB_MKMAP, SHLIB_NM_FLAGS, AR_FLAGS_FOR_TARGET): Remove.
2270 * config/rs6000/t-aix52: Likewise.
2271 * config/sh/libgcc-excl.ver, config/sh/libgcc-glibc.ver: Move to
2272 ../libgcc/config/sh.
2273 * config/sparc/libgcc-sparc-glibc.ver: Move to
2274 ../libgcc/config/sparc/libgcc-glibc.ver.
2275 * config/sparc/t-linux: Move to ../libgcc/config/sparc.
2276 * config/xtensa/t-linux (SHLIB_MAPFILES): Remove.
2277 * config/xtensa/libgcc-xtensa.ver: Move to
2278 ../libgcc/config/xtensa/libgcc-glibc.ver.
2279 * config.gcc (*-*-freebsd*): Replace t-slibgcc-elf-ver with
2280 t-slibgcc in tmake_file.
2281 Remove t-slibgcc-nolc-override for *-*-freebsd[34],
2282 *-*-freebsd[34].* with pthreads.
2283 (*-*-linux*, frv-*-*linux*, *-*-kfreebsd*-gnu,
2284 *-*-knetbsd*-gnu, *-*-gnu*, *-*-kopensolaris*-gnu): Replace
2285 t-slibgcc-elf-ver with t-slibgcc in tmake_file.
2286 (*-*-netbsd*): Likewise.
2287 (*-*-solaris2*): Replace t-slibgcc-dummy with t-slibgcc in tmake_file.
2288 (*-*-*vms*): Add t-slibgcc to tmake_file.
2289 (alpha*-*-linux*): Remove alpha/t-linux from tmake_file.
2290 (alpha*-dec-osf5.1*): Replace t-slibgcc-dummy with t-slibgcc in
2292 (arm*-*-linux*): Remove t-slibgcc-libgcc from tmake_file for
2294 (bfin*-linux-uclibc*): Replace t-slibgcc-dummy with t-slibgcc in
2296 (crisv32-*-linux*, cris-*-linux*): Likewise.
2297 (hppa*-*-linux*): Remove t-slibgcc-libgcc, pa/t-slibgcc-sjlj-ver,
2298 pa/t-slibgcc-dwarf-ver from tmake_file.
2299 (hppa[12]*-*-hpux10*): Replace pa/t-hpux-shlib with t-slibgcc in
2301 Remove pa/t-slibgcc-sjlj-ver, pa/t-slibgcc-dwarf-ver from tmake_file.
2302 (hppa*64*-*-hpux11*): Likewise.
2303 (hppa[12]*-*-hpux11*): Likewise.
2304 (i[34567]86-*-darwin*): Replace t-slibgcc-dummy in t-slibgcc in
2306 (x86_64-*-darwin*): Likewise.
2307 (i[34567]86-*-cygwin*): Remove tmake_eh_file, tmake_dlldir_file.
2308 Add t-slibgcc to tmake_file.
2309 (i[34567]86-*-mingw*, x86_64-*-mingw*): Likewise.
2310 Remove i386/t-mingw32 from tmake_file unless x86_64-w64-*,
2312 Remove i386/t-mingw-pthread from tmake_file.
2313 (ia64*-*-linux*): Remove ia64/t-glibc from tmake_file.
2314 (ia64*-*-hpux*): Add t-slibgcc to tmake_file.
2315 (ia64-hp-*vms*): Likewise.
2316 (m32r-*-linux*): Replace t-slibgcc-elf-ver with t-slibgcc in
2318 (m32rle-*-linux*): Likewise.
2319 (m68k-*-linux*): Remove m68k/t-slibgcc-elf-ver from tmake_file.
2320 (microblaze*-linux*): Remove t-slibgcc-elf-ver,
2321 t-slibgcc-nolc-override from tmake_file.
2322 (mips-sgi-irix6.5*): Replace t-slibgcc-dummy with t-slibgcc in
2324 (powerpc-*-darwin*): Likewise.
2325 (powerpc64-*-darwin*): Likewise.
2326 (powerpc-*-freebsd*): Remove t-slibgcc-libgcc from tmake_file.
2327 (powerpc-*-linux*, powerpc64-*-linux*): Likewise.
2328 (rs6000-ibm-aix4.[3456789]*, powerpc-ibm-aix4.[3456789]*): Add
2329 t-slibgcc to tmake_file.
2330 (rs6000-ibm-aix5.1.*, powerpc-ibm-aix5.1.*): Likewise.
2331 (rs6000-ibm-aix5.2.*, powerpc-ibm-aix5.2.*): Likewise.
2332 (rs6000-ibm-aix5.3.*, powerpc-ibm-aix5.3.*): Likewise.
2333 (rs6000-ibm-aix[6789].*, powerpc-ibm-aix[6789].*): Likewise.
2334 (sparc-*-linux*): Remove sparc/t-linux from tmake_file.
2335 (sparc64-*-linux*): Likewise.
2336 (tic6x-*-uclinux): Replace t-slibgcc-elf-ver with t-slibgcc in
2338 (i[34567]86-*-linux*, x86_64-*-linux*, i[34567]86-*-kfreebsd*-gnu,
2339 x86_64-*-kfreebsd*-gnu, i[34567]86-*-gnu*): Remove i386/t-linux
2342 2011-11-02 Richard Guenther <rguenther@suse.de>
2344 PR tree-optimization/50902
2345 * tree-vect-stmts.c (vectorizable_load): Properly convert
2346 an invariant initializer element.
2348 2010-11-02 Richard Guenther <rguenther@suse.de>
2350 PR tree-optimization/50890
2351 * gimple.h (gimple_fold_call): Remove.
2352 * gimple-fold.c (fold_stmt_1): Move all call related code to ...
2353 (gimple_fold_call): ... here. Make static. Update the
2354 cannot-inline flag on direct calls.
2355 * ipa-inline.c (early_inliner): Copy the cannot-inline flag
2356 from the statements to the edges.
2358 2011-11-01 Ian Lance Taylor <iant@google.com>
2360 * godump.c (struct macro_hash_value): Define.
2361 (macro_hash_hashval): New static function.
2362 (macro_hash_eq, macro_hash_del): New static functions.
2363 (go_define): Use macro_hash_value to store values in macro_hash.
2364 Replace an old value on a redefinition. Don't print anything to
2366 (go_undef): Delete the entry from the hash table.
2367 (go_output_typedef): For an enum, use macro_hash_value, and don't
2368 print anything to go_dump_file.
2369 (go_print_macro): New static function.
2370 (go_finish): Traverse macro_hash with go_print_macro.
2371 (dump_go_spec_init): Update macro_hash creation for macro_hash_value.
2373 2011-11-02 Alan Modra <amodra@gmail.com>
2375 * config/rs6000/rs6000.c (rs6000_code_end): Declare ATTRIBUTE_UNUSED.
2377 2011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
2380 * doc/invoke.texi: Document -Wzero-as-null-pointer-constant.
2382 2011-11-01 Andrew Stubbs <ams@codesourcery.com>
2384 * config/arm/bpabi.h (BE8_LINK_SPEC): Recognize generic-armv7 tuning.
2386 2011-11-01 Uros Bizjak <ubizjak@gmail.com>
2388 * config/i386/i386.md (splitters for int-float conversion): Use
2389 SUBREG_REG on SUBREGs in splitter constraints.
2391 2011-11-01 Jakub Jelinek <jakub@redhat.com>
2393 * config/i386/i386-protos.h (ix86_expand_adjust_ufix_to_sfix_si): New
2395 * config/i386/i386.c (ix86_expand_adjust_ufix_to_sfix_si): New
2397 * config/i386/sse.md (fixuns_trunc<mode><sseintvecmodelower>2): Use it.
2398 (ssepackfltmode): New mode attr.
2399 (vec_pack_ufix_trunc_<mode>): New expander.
2401 2011-11-01 Uros Bizjak <ubizjak@gmail.com>
2404 * config/i386/i386.md (floatsi<mode>2_vector_sse_with_temp splitter):
2405 Compare <ssevecmode>mode to V4SFmode, not V4SImode.
2407 2011-11-01 Peter Bergner <bergner@vnet.ibm.com>
2409 * config.gcc (powerpc*-*-linux*): Add powerpc*-*-linux*ppc476* variant.
2410 * config/rs6000/476.h: New file.
2411 * config/rs6000/476.opt: Likewise.
2412 * config/rs6000/rs6000.h (TARGET_LINK_STACK): New define.
2413 (SET_TARGET_LINK_STACK): Likewise.
2414 (TARGET_ASM_CODE_END): Define.
2415 * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
2416 TARGET_LINK_STACK for -mtune=476 and -mtune=476fp.
2417 (rs6000_legitimize_tls_address): Emit the link stack preserving GOT
2418 code if TARGET_LINK_STACK.
2419 (rs6000_emit_load_toc_table): Likewise.
2420 (output_function_profiler): Likewise
2421 (macho_branch_islands): Likewise
2422 (machopic_output_stub): Likewise
2423 (get_ppc476_thunk_name): New function.
2424 (rs6000_code_end): Likewise.
2425 * config/rs6000/rs6000.md (load_toc_v4_PIC_1, load_toc_v4_PIC_1b):
2426 Convert to a define_expand.
2427 (load_toc_v4_PIC_1_normal): New define_insn.
2428 (load_toc_v4_PIC_1_476): Likewise.
2429 (load_toc_v4_PIC_1b_normal): Likewise.
2430 (load_toc_v4_PIC_1b_476): Likewise.
2432 2011-11-01 Georg-Johann Lay <avr@gjlay.de>
2435 * config/avr/avr.opt (-mbranch-cost=): New option.
2436 * config/avr/avr.h (BRANCH_COST): Define to avr_branch_cost.
2437 * config/avr/avr.c (avr_rtx_costs_1): Adjust [U]DIV/[U]MOD costs.
2438 * config/avr/avr.md (*addqi3.lt0, *addhi3.lt0, *addsi3.lt0): New insns.
2439 (*addhi3_zero_extend1): Remove % in constraint of operand 1.
2440 (*addhi3.sign_extend1, *subhi3.sign_extend2): New insns.
2442 2011-11-01 Tom de Vries <tom@codesourcery.com>
2444 PR tree-optimization/50908
2445 * tree-ssa-tail-merge.c (update_vuses): Now that edges are removed
2446 before update_vuses, test for 1 predecessor rather than two.
2447 (delete_block_update_dominator_info): New function, part of it factored
2449 (replace_block_by): Use delete_block_update_dominator_info. Call
2450 update_vuses after deleting bb1 and updating dominator info, instead of
2453 2011-11-01 David S. Miller <davem@davemloft.net>
2455 * config/sparc/sparc.c (vector_init_faligndata): New function.
2456 (sparc_expand_vector_init): Use it for V4HImode on VIS1.
2458 * config/sparc/sparc.c (sparc_expand_vcond): New function.
2459 * config/sparc/sparc-protos.h (sparc_expand_vcond): Declare it.
2460 * config/sparc/sparc.md (vcond<mode><mode>): New VIS3 expander.
2461 (vconduv8qiv8qi): Likewise.
2463 2011-11-01 Alexandre Oliva <aoliva@redhat.com>
2466 * cselib.c (cfa_base_preserved_regno): Initialize.
2467 (cselib_expand_value_rtx_1): Don't expand it.
2468 * var-tracking.c (vt_expand_var_loc_chain): Initialize depth.
2469 Check it's only zero if result is NULL.
2471 2011-11-01 Jakub Jelinek <jakub@redhat.com>
2473 * config/i386/sse.md (fixuns_trunc<mode><sseintvecmodelower>2): New
2476 * config/i386/sse.md (sseintvecmode): Remove duplicate modes.
2477 (sseintvecmodelower): New mode iterator.
2478 (floatv8siv8sf2, floatunsv4siv4sf2): Macroize into...
2479 (float<sseintvecmodelower><mode>2): ... this using VF1 iterator.
2480 (floatunsv4siv4sf2): Macroize into...
2481 (floatuns<sseintvecmodelower><mode>2): ... this using VF1 iterator.
2483 2011-10-31 David S. Miller <davem@davemloft.net>
2485 * config/sparc/sparc.md (cmask patterns): Allow zero operand.
2487 * dwarf2out.c (cached_next_real_insn): New.
2488 (dwarf2out_end_epilogue): Set it to NULL_RTX.
2489 (dwarf2out_var_location): Remove cached_next_real_insn local static.
2491 2011-10-31 Richard Henderson <rth@redhat.com>
2493 * config/i386/sse.md (floatv8siv8sf2): Rename from avx_cvtdq2ps256.
2494 (floatv4siv4sf2): Rename from sse2_cvtdq2ps.
2495 (floatunsv4siv4sf2): Rename from sse2_cvtudq2ps.
2496 (fix_truncv8sfv8si2): Rename from avx_cvttps2dq256.
2497 (fix_truncv4sfv4si2): Rename from sse2_cvttps2dq.
2498 (floatv4siv4df2): Rename from avx_cvtdq2pd256.
2499 (fix_truncv4dfv4si2): Rename from avx_cvttpd2dq256.
2500 (vec_unpacku_float_hi_v8si): Update for insn pattern name changes.
2501 * config/i386/i386.md (splitters for int-float conversion): Likewise.
2502 * config/i386/i386.c (ix86_split_convert_uns_si_sse): Likewise.
2503 (bdesc_args): Likewise.
2504 (enum ix86_builtins) [IX86_BUILTIN_CVTUDQ2PS]: Remove.
2505 (ix86_vectorize_builtin_conversion): Remove.
2506 (TARGET_VECTORIZE_BUILTIN_CONVERSION): Remove.
2508 2011-10-31 Martin Jambor <mjambor@suse.cz>
2510 * ipa-prop.c (mark_modified): Moved up in the file.
2511 (is_parm_modified_before_call): Renamed to
2512 is_parm_modified_before_stmt, moved up in the file.
2513 (load_from_unmodified_param): New function.
2514 (compute_complex_assign_jump_func): Also attempt to create pass
2515 through jump functions for values loaded from (addressable)
2518 2011-10-31 Jakub Jelinek <jakub@redhat.com>
2520 * tree-vect-stmts.c (vectorizable_shift): If op1 is vect_external_def
2521 in a loop and has different type from op0, cast it to op0's type
2522 before the loop first. For slp give up. Don't crash if op1_vectype
2525 2011-10-31 Paul Brook <paul@codesourcery.com>
2527 * cgraphunit.c: Don't mark clones as static constructors.
2529 2011-10-31 David Edelsohn <dje.gcc@gmail.com>
2531 * gcc-ar: Do not include stdio.h.
2533 2011-10-31 Diego Novillo <dnovillo@google.com>
2535 * tree-streamer-out.c (pack_ts_base_value_fields): Emit
2537 * tree-streamer-in.c (unpack_ts_base_value_fields): Read
2540 2011-10-30 David S. Miller <davem@davemloft.net>
2542 * config/sparc/sparc.c (vector_init_bshuffle): New function.
2543 (vector_init_fpmerge): New function.
2544 (sparc_expand_vector_init): Use them to improve non-const cases.
2546 * dwarf2out.c (dwarf2out_var_location): When processing several
2547 consecutive location notes, cache the result of next_real_insn().
2549 2011-10-30 Uros Bizjak <ubizjak@gmail.com>
2551 * config/i386/i386.md (avx2_vec_dup<mode>): Macroize insn from
2552 avx2_vec_dup{v8sf,v4sf} using VF1 mode iterator.
2553 (vec_dupv4sf): Remove expander.
2554 (vec_dupv4sf): Merge from *vec_dupv4sf and *vec_dupv4sf_avx.
2555 (vec_dupv2df): Remove expander.
2556 (vec_dupv2df): Merge from *vec_dupv2df and *vec_dupv2df_sse3.
2557 (*vec_concatv2df): Merge *vec_concatv2df_sse3.
2558 (*vec_dupv4si): Merge *vec_dupv4si_avx.
2559 (*vec_dupv2di): Merge *vec_dupv2di_sse3.
2561 2011-10-30 Dmitry Plotnikov <dplotnikov@ispras.ru>
2563 * tree-cfg.c (verify_gimple_assign_unary): Allow vector conversions.
2564 * optabs.c (supportable_convert_operation): New function.
2565 * optabs.h (supportable_convert_operation): New prototype.
2566 * tree-vect-stmts.c (vectorizable_conversion): Change condition and
2567 behavior for NONE modifier case.
2568 * tree.h (VECTOR_INTEGER_TYPE_P): New macro.
2570 2011-10-30 Jakub Jelinek <jakub@redhat.com>
2572 * tree-vectorizer.h (NUM_PATTERNS): Bump to 9.
2573 * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): New
2575 (vect_vect_recog_func_ptrs): Add it.
2577 2011-10-30 David S. Miller <davem@davemloft.net>
2579 * reorg.c (label_before_next_insn): New function.
2580 (relax_delay_slots): Use it instead of prev_label.
2581 * rtl.h (prev_label): Delete declaration.
2582 * emit-rtl.c (prev_label): Remove.
2584 2011-10-30 Revital Eres <revital.eres@linaro.org>
2586 * modulo-sched.c (generate_prolog_epilog): Mark prolog and epilog
2587 as BB_DISABLE_SCHEDULE.
2588 (mark_loop_unsched): New function.
2589 (sms_schedule): Call it.
2591 2011-10-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2594 * config/pa/protos.h (attr_length_save_restore_dltp): Delete.
2595 (cmpib_comparison_operator): Likewise.
2596 (following_cal, output_and, output_ior, output_move_double,
2597 output_fp_move_double, output_block_move, output_block_clear,
2598 output_cbranch, output_lbranch, output_bb, output_bvb, output_dbra,
2599 output_movb, output_parallel_movb, output_parallel_addb, output_call,
2600 output_indirect_call, output_millicode_call, output_mul_insn,
2601 output_div_insn, output_mod_insn, singlemove_string,
2602 output_arg_descriptor, output_global_address, print_operand,
2603 legitimize_pic_address, hppa_encode_label, symbolic_expression_p,
2604 fmpyaddoperands, fmpysuboperands, emit_bcond_fp, emit_move_sequence,
2605 emit_hpdiv_const, is_function_label_plus_const, jump_in_call_delay,
2606 hppa_fpstore_bypass_p, attr_length_millicode_call, attr_length_call,
2607 attr_length_indirect_call, return_addr_rtx, function_arg_padding,
2608 insn_refs_are_delayed, get_deferred_plabel, ldil_cint_p, zdepi_cint_p,
2609 output_ascii, compute_frame_size, and_mask_p, cint_ok_for_move,
2610 hppa_expand_prologue, hppa_expand_epilogue, ior_mask_p,
2611 compute_zdepdi_operands, output_64bit_and, output_64bit_ior,
2612 reloc_needed, magic_milli, shadd_constant_p): Consistently prefix
2613 exported functions and variables with "pa_".
2614 * config/pa/predicates.md: Likewise.
2615 * config/pa/pa64-hpux.h: likewise.
2616 * config/pa/som.h: Likewise.
2617 * config/pa/elf.h: Likewise.
2618 * config/pa/pa64-linux.h: Likewise.
2619 * config/pa/pa.md: Likewise.
2620 * config/pa/pa.c: Likewise.
2621 * config/pa/pa-linux.h: Likewise.
2622 * config/pa/pa.h: Likewise.
2623 * config/pa/constraints.md: Likewise.
2625 2011-10-29 Uros Bizjak <ubizjak@gmail.com>
2627 * config/i386/i386.md (xop_sha<mode>3): Rename from xop_ashl<mode>3.
2629 (xop_shl<mode>3): Rename from xop_lshl<mode>3. Update all uses.
2630 * config/i386/i386.c: Update all uses.
2632 2011-10-29 Uros Bizjak <ubizjak@gmail.com>
2634 * config/i386/i386.md (lshlv16qi3): Remove expander.
2635 (lshrv16qi3): New expander.
2636 (<shift_insn>v16qi3): Macroize expander from ashrv16qi3 and lshrv16qi3
2637 using any_shiftrt code iterator. Cleanup.
2638 (ashlv16qi3): Cleanup.
2641 2011-10-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2644 * config/pa/pa.c (emit_move_sequence): Legitimize TLS symbol
2646 (pa_legitimate_constant_p): Return false for TLS_MODEL_GLOBAL_DYNAMIC
2647 and TLS_MODEL_LOCAL_DYNAMIC symbol references.
2649 2011-10-29 Georg-Johann Lay <avr@gjlay.de>
2652 * config/avr/avr.opt (-maccumulate-args): New option.
2653 * config/avr/avr.h (STARTING_FRAME_OFFSET): Redefine to
2654 avr_starting_frame_offset.
2655 (ACCUMULATE_OUTGOING_ARGS): Define to avr_accumulate_outgoing_args.
2656 * config/avr/avr.md (UNSPECV_WRITE_SP_IRQ_ON): Remove.
2657 (UNSPECV_WRITE_SP_IRQ_OFF): Remove.
2658 (UNSPECV_WRITE_SP): New constant.
2659 (*addhi3_sp_R): Rewrite to...
2660 (*addhi3_sp): ...this new insn.
2661 (movhi_sp_r_irq_off, movhi_sp_r_irq_on): Combine to...
2662 (movhi_sp_r): ...this new insn.
2663 * config/avr/avr-protos.h (avr_accumulate_outgoing_args): New.
2664 (avr_starting_frame_offset): New.
2665 * config/avr/avr.c (avr_accumulate_outgoing_args): New function.
2666 (avr_starting_frame_offset): New function.
2667 (avr_outgoing_args_size): New static function.
2668 (avr_initial_elimination_offset): Use it.
2669 (avr_simple_epilogue): Use it.
2670 (avr_asm_function_end_prologue): Use it.
2671 (expand_epilogue): Use it.
2672 (expand_prologue): Use it. Break out code to...
2673 (avr_prologue_setup_frame): ...this new static function.
2674 (avr_can_eliminate): Allow eliminating to frame pointer if there
2676 (avr_frame_pointer_required_p): Use frame pointer if target has a
2678 * config/avr/constraints.md (R): Remove.
2679 (Csp): New constraint.
2680 * config/avr/predicates.md (avr_sp_immediate_operand): Use it.
2682 2011-10-29 Andi Kleen <ak@linux.intel.com>
2684 * gcc-ar.c (target_machine): Add.
2686 2011-10-29 Anatoly Sokolov <aesok@post.ru>
2688 * config/cris/cris.c (reg_ok_for_base_p, reg_ok_for_index_p,
2689 cris_constant_index_p, cris_base_p, cris_index_p,
2690 cris_base_or_autoincr_p, cris_bdap_index_p, cris_biap_index_p,
2691 cris_legitimate_address_p): New functions.
2692 (TARGET_LEGITIMATE_ADDRESS_P): Define.
2693 (cris_pic_symbol_type, cris_valid_pic_const): Change arguments type
2694 from rtx to const_rtx.
2695 (cris_print_operand_address, cris_address_cost,
2696 cris_side_effect_mode_ok): Use
2697 cris_constant_index_p, cris_base_p, cris_base_or_autoincr_p,
2698 cris_biap_index_p and cris_bdap_index_p.
2699 * config/cris/cris.h (CONSTANT_INDEX_P, BASE_P, BASE_OR_AUTOINCR_P,
2700 BDAP_INDEX_P, BIAP_INDEX_P, GO_IF_LEGITIMATE_ADDRESS,
2701 REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P): Remove.
2702 (EXTRA_CONSTRAINT_Q, EXTRA_CONSTRAINT_R, EXTRA_CONSTRAINT_T): Use
2703 cris_constant_index_p, cris_base_p, cris_base_or_autoincr_p,
2704 cris_biap_index_p and cris_bdap_index_p.
2705 * config/cris/cris.md (moversideqi movemsideqi peephole2): Use
2707 * config/cris/cris-protos.h (cris_constant_index_p, cris_base_p,
2708 cris_base_or_autoincr_p, cris_bdap_index_p, cris_biap_index_p): New
2710 (cris_pic_symbol_type, cris_valid_pic_const): Update prototype.
2712 2011-10-21 Andi Kleen <ak@linux.intel.com>
2714 * ggc-page (PAGE_ALIGN): Add.
2715 (alloc_page, ggc_pch_total_size, ggc_pch_this_base, ggc_pch_read):
2716 Replace ROUND_UP with PAGE_ALIGN.
2718 2011-10-20 Andi Kleen <ak@linux.intel.com>
2720 * ggc-page (alloc_anon): Add check argument.
2721 (alloc_page): Add fallback to 1 page allocation.
2722 Adjust alloc_anon calls to new argument.
2724 2011-10-18 Andi Kleen <ak@linux.intel.com>
2726 * ggc-page (release_pages): First free large continuous
2727 chunks in the madvise path.
2729 2011-10-18 Andi Kleen <ak@linux.intel.com>
2731 * ggc-page.c (alloc_pages): Always round up entry_size.
2733 2011-10-19 Andi Kleen <ak@linux.intel.com>
2735 * Makefile.in (MOSTLYCLEANFILES): Add gcc-ar/nm/ranlib.
2736 (native): Add gcc-ar, gcc-nm, gcc-ranlib.
2737 (AR_LIBS, gcc-ar, gcc-ar.o, gcc-ranlib, gcc-ranlib.o,
2738 gcc-nm, gcc-nm.o, gcc-ranlib.c, gcc-nm.c): Add.
2739 (install): Depend on install-gcc-ar.
2740 (install-gcc-ar): Add.
2741 (uninstall): Uninstall gcc-ar, gcc-nm, gcc-ranlib.
2742 * gcc-ar.c: Add new file.
2744 2011-10-28 Pat Haugen <pthaugen@us.ibm.com>
2746 * config/rs6000/rs6000.md (define_attr "type"): Add vecdouble.
2747 * config/rs6000/vsx.md (VStype_simple, VStype_mul): Use vecdouble
2749 (VStype_div): Use vector types for V2DF/V4SF.
2750 (VStype_sqrt): Use *sqrt types.
2751 (VS_spdp_type): Change type to vecdouble.
2752 (*vsx_fmav2df4, *vsx_nfmsv2df4, vsx_xvcvdpsxws, vsx_xvcvdpuxws,
2753 vsx_xvcvuxdsp, vsx_xvcvsxwdp, vsx_xvcvuxwdp, vsx_xvcvspsxds,
2754 vsx_xvcvspuxds): Likewise.
2755 (*vsx_fms<mode>4): Set type via <VStype_mul>.
2756 (*vsx_eq_<mode>_p, *vsx_gt_<mode>_p, *vsx_ge_<mode>_p): Set type via
2758 * config/rs6000/power7.md (power7-vecstore): Correct VSU pipe.
2759 (power7-fpcompare, power7-sdiv, power7-ddiv, power7-sqrt,
2760 power7-dsqrt): Correct insn latency.
2761 (power7-vecsimple): Add veccmp type and correct dispatch/VSU values.
2762 (power7-veccmp): Delete.
2763 (power7-vecfloat): Correct latency/dispatch/VSU values.
2764 (define_bypass "power7-vecfloat"): Correct latency and types.
2765 (power7-veccomplex, power7-vecperm): Correct dispatch/VSU values.
2766 (power7-vecdouble, power7-vecfdiv, power7-vecdiv): New.
2768 2011-10-28 Uros Bizjak <ubizjak@gmail.com>
2770 * config/i386/i386.md (shift_insn): Rename code attribute from
2771 shiftrt_insn. Also handle ashift RTX.
2772 (shift): Rename code attribute from shiftrt. Also handle ashift RTX.
2773 (vshift): New code attribute.
2774 (<shift_insn>*): Rename from <shiftrt_insn>*. Update asm templates.
2775 (any_lshift): Move and rename code iterator from ...
2776 * config/i386/sse.md (lshift): ... here.
2777 (lshift_insn): Remove code attribute.
2778 (lshift): Remove code attribute.
2779 (vlshr<mode>3): Use lshiftrt RTX.
2780 (vashr<mode>3, ashrv16qi3, ashrv2di3): Use ashiftrt RTX.
2781 (vashl<mode>3, ashlv16qi3): Use ashift RTX.
2782 (avx2_<lshift>v<mode>): Rename from avx2_<shift_insn>v<mode>. Use
2783 any_lshift code iterator. Update asm template.
2784 (<shift_insn><mode>3): Macroize insn from lshr<mode>3 and ashl<mode>3
2785 usign any_lshift code iterator.
2786 * config/i386/mmx.md (mmx_<shift_insn><mode>3): Macroize insn from
2787 mmx_lshr<mode>3 and mmx_ashl<mode>3 usign any_lshift code iterator.
2788 * config/i386/i386.c (bdesc_args) <__builtin_ia32_psll>: Update.
2790 2011-10-28 Georg-Johann Lay <avr@gjlay.de>
2793 * config/avr/avr.md (parityhi2): Expand allowing pseudos.
2794 (*parityhi2): New pre-reload insn-and-split to map 16-bit parity
2796 (*parityqihi2): Same for 8-bit parity.
2798 2011-10-28 Julian Brown <julian@codesourcery.com>
2800 PR rtl-optimization/47918
2801 * reload1.c (set_initial_label_offsets): Use initial offsets
2802 for labels on the nonlocal_goto_handler_labels chain.
2804 2011-10-28 Iain Sandoe <iains@gcc.gnu.org>
2806 * config/rs6000/t-darwin (LIB2FUNCS_STATIC_EXTRA):
2807 Move darwin-fpsave.asm from here to ... LIB2FUNCS_EXTRA.
2808 (LIB2FUNCS_EXTRA): Add darwin-gpsave.asm.
2809 (TARGET_LIBGCC2_CFLAGS): Ensure that fPIC and -pipe are inherited from
2811 * config/rs6000/darwin.h (FP_SAVE_INLINE): Adjust to enable.
2812 (GP_SAVE_INLINE): Likewise.
2813 (SAVE_FP_PREFIX, SAVE_FP_SUFFIX, RESTORE_FP_PREFIX,
2814 RESTORE_FP_SUFFIX): Set to empty strings.
2815 * config/rs6000/rs6000.c (rs6000_savres_strategy): Implement for Darwin.
2816 (debug_stack_info): Print savres_strategy.
2817 (rs6000_savres_routine_name): Implement for Darwin.
2818 (rs6000_make_savres_rtx): Adjust used register for Darwin.
2819 (rs6000_emit_prologue): Implement out-of-line saves for Darwin.
2820 (rs6000_output_function_prologue): Don't emit .extern for Mach-O.
2821 (rs6000_emit_epilogue): Implement out-of-line saves for Darwin.
2822 * config/rs6000/darwin-gpsave.asm: New file.
2824 2011-10-28 Jakub Jelinek <jakub@redhat.com>
2826 * config/i386/sse.md (VI4SD_AVX2): Removed.
2827 (VI48_AVX2, VI128_128, VI48_128, VI48_256): New mode iterators.
2828 (vashl<mode>3): Use VI12_128 iterator instead of VI124_128.
2829 Add another expander using VI48_128 iterator for
2830 TARGET_AVX2 || TARGET_XOP and another using VI48_256 iterator
2832 (vlshr<mode>3): Likewise. Change register_operand predicate to
2833 nonimmediate_operand on last operand in the VI12_128 expander.
2834 (vashr<mode>3): Use VI128_128 iterator instead of VI124_128.
2835 (vashrv4si3, vashrv8si3): New expanders.
2836 (avx2_ashrvv8si, avx2_ashrvv4si, avx2_<lshift>vv8si,
2837 avx2_<lshift>vv2di): Removed.
2838 (avx2_ashrv<mode>): New insn with VI4_AVX2 iterator.
2839 (avx2_<lshift>v<mode>): Macroize using VI48_AVX2
2840 iterator. Simplify pattern.
2842 2010-10-28 Richard Guenther <rguenther@suse.de>
2845 * lto-wrapper.c (get_options_from_collect_gcc_options):
2846 Properly count arguments.
2847 (run_gcc): Use an obstack to collect argv, properly separate
2848 switches and their arguments.
2850 2011-10-28 Jakub Jelinek <jakub@redhat.com>
2852 * tree-vect-stmts.c (vectorizable_shift): Give up if op1 has different
2853 vector mode from vectype's mode.
2855 2011-10-28 Chung-Lin Tang <cltang@codesourcery.com>
2857 PR rtl-optimization/49720
2858 * simplify-rtx.c (simplify_relational_operation_1): Detect
2859 infinite recursion condition in "(eq/ne (plus x cst1) cst2)
2860 simplifies to (eq/ne x (cst2 - cst1))" case.
2862 2011-10-27 David S. Miller <davem@davemloft.net>
2864 * config/sparc/sparc.md (snedi_special): Only match when not VIS3.
2865 (*snedi_zero): Likewise.
2866 (*snedi_zero_trunc): Likewise.
2867 (snedi_special_vis3): New expander.
2868 (*snedi_zero_vis3): New insn.
2869 (*snedi_zero_trunc_vis3): Likewise.
2870 (*sltu_insn_vis3): Likewise.
2871 (*sltu_insn_vis3_trunc): Likewise.
2873 (*addxc_trunc_sp64_vis3): Likewise.
2874 * config/sparc/sparc.c (emit_scc_insn): When VIS3 use the
2875 gen_snedi_special_vis3 expander, and try GTU/LTU addx based
2876 sequences on DImode values.
2878 * config/sparc/sparc.md (64-bit vector moves): Use 'e' not 'f'
2881 * regcprop.c (copyprop_hardreg_forward_1): Reject the
2882 transformation when we narrow the mode on big endian.
2884 2011-10-27 Jakub Jelinek <jakub@redhat.com>
2886 * config/i386/sse.md (avx_cvtpd2dq256_2, avx_cvttpd2dq256_2,
2887 vec_pack_sfix_trunc_v4df, vec_pack_sfix_v4df): New expanders.
2888 (*avx_cvtpd2dq256_2, *avx_cvttpd2dq256_2): New insns.
2890 * config/i386/i386.c (ix86_print_operand): Handle 'q' and 'x'
2891 overrides for -masm=intel memory.
2892 * config/i386/sse.md (sse2_cvtdq2pd, sse2_cvtps2pd,
2893 sse4_1_<code>v8qiv8hi2, avx2_<code>v8qiv8si2,
2894 sse4_1_<code>v4hiv4si2, avx2_<code>v4hiv4di2,
2895 sse4_1_<code>v2siv2di2): Use %q1 instead of %1 for -masm=intel.
2896 (sse4_1_<code>v4qiv4si2, avx2_<code>v4qiv4di2,
2897 sse4_1_<code>v2hiv2di2): Use %k1 instead of %1 for -masm=intel.
2898 (sse4_1_<code>v2qiv2di2): Use %w1 instead of %1 for -masm=intel.
2900 2011-10-27 Martin Jambor <mjambor@suse.cz>
2902 * ipa-prop.c (compute_pass_through_member_ptrs): Rename parm_info
2904 (ipa_compute_jump_functions_for_edge): Likewise.
2905 (ipa_compute_jump_functions): Likewise.
2906 (ipa_analyze_indirect_call_uses): Likewise.
2907 (ipa_analyze_call_uses): Likewise.
2908 (ipa_analyze_params_uses): Likewise.
2909 (ipa_analyze_node): Likewise.
2911 2011-10-27 Uros Bizjak <ubizjak@gmail.com>
2914 * config/i386/sse.md (*avx_unpcklpd256): Remove extra insn
2915 constraints. Change alternative 1 to "x,m,1".
2917 2011-10-27 Jakub Jelinek <jakub@redhat.com>
2919 * Makefile.in (build/gencheck.o): Depend on tree.def and
2920 c-family/c-common.def.
2922 * tree-ssa-strlen.c: Include expr.h.
2923 (get_stridx): Don't use c_strlen, instead use string_constant
2924 and compute string length from it.
2925 * Makefile.in (tree-ssa-strlen.o): Depend on $(EXPR_H).
2927 2011-10-27 Eric Botcazou <ebotcazou@adacore.com>
2929 PR rtl-optimization/46603
2931 * reload.c (push_reload): In the out case, restore previous behavior
2932 for subregs that don't have word mode.
2934 2011-10-27 Ian Lance Taylor <iant@google.com>
2936 * cppdefault.c: Undef NATIVE_SYSTEM_HEADER_DIR if
2937 CROSS_DIRECTORY_STRUCTURE is defined and TARGET_SYSTEM_ROOT is not.
2938 (cpp_include_defaults): Only use NATIVE_SYSTEM_HEADER_DIR if it is
2941 2011-10-27 Richard Henderson <rth@redhat.com>
2943 * optabs.c (expand_vec_perm): Use the correct mode for scaling the
2944 selector. Save the qimode constant selector for later use by the
2945 qimode vec_perm pattern.
2947 2011-10-27 Bernd Schmidt <bernds@codesourcery.com>
2949 * config/c6x/c6x.c (unit_req_imbalance, res_mii): Cast the first arg
2950 to unit_req_factor to the right enum type.
2951 (get_unit_operand_masks, reshuffle_units, try_rename_operands,
2952 hwloop_optimize): Remove unused variables.
2954 2010-10-27 Richard Guenther <rguenther@suse.de>
2957 * tree-vect-generic.c (do_binop): Handle scalar operands.
2959 2011-08-27 Uros Bizjak <ubizjak@gmail.com>
2962 * config/i386/sse.md (*vec_extract_v4sf_mem): Avoid combining registers
2963 from different units in a single alternative.
2965 2011-10-26 David S. Miller <davem@davemloft.net>
2967 * config/sparc/sparc.c (emit_scc_insn): Force attempt of v9 sequences
2968 if we're comparing DImode and comparison is other than EQ or NE.
2970 * config/sparc/sparc.c (emit_scc_insn): Do not try v9 sequences until
2971 LEU/LTU/GEU/GTU is attempted.
2972 * config/sparc/sparc.md (*neg_snesi_sign_extend): New 64-bit insn
2974 (*neg_seqsi_sign_extend): Likewise.
2975 (*sltu_extend_sp64, *neg_sltu_extend_sp64, *sgeu_extend_sp64,
2976 *neg_sgeu_extend_sp64): New insns.
2978 * config/sparc/sparc-protos.h (sparc_expand_conditional_move): Declare.
2979 * config/sparc/sparc.md (mov<I:mode>cc, mov<F:mode>cc): Call it.
2980 (*mov<I:mode>_cc_v9): Normalize to expect operand 0 always in operand 4.
2981 (*mov<I:mode>_cc_reg_sp64): Likewise.
2982 (*movsf_cc_v9): Likewise.
2983 (*movsf_cc_reg_sp64): Likewise.
2984 (*movdf_cc_v9): Likewise.
2985 (*movdf_cc_reg_sp64): Likewise.
2986 (*movtf_cc_hq_v9): Likewise.
2987 (*movtf_cc_reg_hq_sp64): Likewise.
2988 (*movtf_cc_v9): Likewise.
2989 (*movtf_cc_reg_sp64): Likewise.
2990 * config/sparc/sparc.c (sparc_expand_conditional_move): New function.
2991 (sparc_print_operand): Delete 'c' and 'd' handling, no longer used.
2993 2011-10-26 Eric Botcazou <ebotcazou@adacore.com>
2995 * reload.c (reload_inner_reg_of_subreg): Change type of return value
2996 and type of OUTPUT parameter to bool and adjust. Document MODE and
2997 OUTPUT parameters. Use HARD_REGISTER_P. Reorder final condition
2998 and improve associated comment.
2999 (push_reload): Clarify and update comments about reloading of subregs.
3000 Adjust calls to reload_inner_reg_of_subreg. Compute the class upfront
3001 for the reloading of subregs in the out case as well.
3003 2011-10-26 Alexandre Oliva <aoliva@redhat.com>
3006 * var-tracking.c (rtx_debug_expr_p): New.
3007 (use_type): Don't use debug exprs to track non-VTA variables.
3009 2011-10-26 Jeff Law <law@redhat.com>
3011 * doc/invoke.texi (sink-frequency-threshold): Document.
3012 * tree-ssa-sink.c: Include params.h.
3013 (select_best_block): New function.
3014 (statement_sink_location): Use it.
3015 * params.def (SINK_FREQUENCY_THRESHOLD): New PARAM.
3017 2011-10-26 Iain Sandoe <iains@gcc.gnu.org>
3020 * config/darwin.c (top level): Amend comments concerning LTO output.
3021 (lto_section_num): New variable. (darwin_lto_section_e): New GTY.
3022 (LTO_SECTS_SECTION, LTO_INDEX_SECTION): New.
3023 (LTO_NAMES_SECTION): Rename.
3024 (darwin_asm_named_section): Record LTO section counts and switches
3025 in a vec of darwin_lto_section_e.
3026 (darwin_file_start): Remove unused code.
3027 (darwin_file_end): Put an LTO section termination label. Handle
3028 output of the wrapped LTO sections, index and names table.
3030 2011-10-26 Alan Modra <amodra@gmail.com>
3032 * config/rs6000/rs6000.c (rs6000_make_savres_rtx): Delete unneeded
3034 (rs6000_emit_stack_reset): Only return insn emitted when it adjusts sp.
3035 (rs6000_make_savres_rtx): Rename to rs6000_emit_savres_rtx. Use
3036 simple_return in pattern, emit instruction, and set jump_label.
3037 (rs6000_emit_prologue): Update for rs6000_emit_savres_rtx. Use
3038 simple_return rather than return.
3039 (emit_cfa_restores): New function.
3040 (rs6000_emit_epilogue): Emit cfa_restores when flag_shrink_wrap.
3041 Add missing cfa_restores for SAVE_WORLD. Add missing LR cfa_restore
3042 when using out-of-line gpr restore. Add missing LR and FP regs
3043 cfa_restores for out-of-line fpr restore. Consolidate code setting
3044 up cfa_restores. Formatting. Use LR_REGNO define.
3045 (rs6000_output_mi_thunk): Use simple_return rather than return.
3046 * config/rs6000/rs6000.md (sibcall*, sibcall_value*): Likewise.
3047 (return_internal*): Likewise.
3048 (any_return, return_pred, return_str): New iterators.
3049 (return, conditional return insns): Provide both return and
3050 simple_return variants.
3051 * config/rs6000/rs6000.h (EARLY_R12, LATE_R12): Define.
3052 (REG_ALLOC_ORDER): Move r12 before call-saved regs when FIXED_R13.
3053 Move r11 and r0 later to suit shrink-wrapping.
3055 2011-10-26 Richard Guenther <rguenther@suse.de>
3057 * lto-wrapper.c (run_gcc): Properly init/free obstack.
3059 2011-10-26 Jakub Jelinek <jakub@redhat.com>
3061 * config/i386/i386.md (UNSPEC_VSIBADDR): New.
3062 * config/i386/predicates.md (vsib_address_operand,
3063 vsib_mem_operator): New predicates.
3064 * config/i386/i386.c (ix86_print_operand_address): Handle
3065 UNSPEC_VSIBADDR addresses.
3066 * config/i386/sse.md (avx2_gathersi<mode>, avx2_gatherdi<mode>,
3067 avx2_gatherdi<mode>256): Adjust expanders to use MEM with
3068 UNSPEC_VSIBADDR address.
3069 (*avx2_gathersi<mode>, *avx2_gatherdi<mode>, *avx2_gatherdi<mode>256):
3070 Adjust insns to use MEM with UNSPEC_VSIBADDR address.
3072 2011-10-26 Tom de Vries <tom@codesourcery.com>
3074 PR tree-optimization/50763
3075 * tree-ssa-tail-merge.c (replace_block_by): Update vops if phi_vuse1 or
3076 phi_vuse2 is NULL_TREE only if bb1 dominates or is dominated by bb2.
3078 2011-10-26 Richard Guenther <rguenther@suse.de>
3081 * Makefile.in (lto-wrapper): Depend on and link against opts-common.o.
3082 (lto-wrapper.o): Depend on $(OPTS_H) and $(OPTIONS_H).
3083 * lto-wrapper.c (get_options_from_collect_gcc_options): New function.
3084 (run_gcc): Use it. Filter out language specific options.
3086 2011-10-26 Andreas Tobler <andreast@fgznet.ch>
3088 * config/i386/freebsd64.h (LINK_SPEC): Emit the same warning as the
3091 2011-10-25 Paolo Carlini <paolo.carlini@oracle.com>
3094 * gcc.c (main): Fix fatal_error string for translation.
3096 2011-10-25 Ian Lance Taylor <iant@google.com>
3098 * tree-eh.c (do_return_redirection): Remove return_value_p
3099 parameter. Change all callers.
3100 (lower_try_finally_nofallthru): Remove local return_val.
3101 (lower_try_finally_onedest): Likewise.
3102 (lower_try_finally_copy): Likewise.
3103 (lower_try_finally_switch): Likewise.
3105 2011-10-25 H.J. Lu <hongjiu.lu@intel.com>
3107 * config/i386/mmx.md (*mmx_maskmovq): Replace :SI with :P and
3108 remove "&& !TARGET_64BIT"
3109 (*mmx_maskmovq_rex): Removed.
3111 2011-10-25 Eric Botcazou <ebotcazou@adacore.com>
3113 PR rtl-optimization/46603
3114 * reload.c (push_reload): In the out case, reload the subreg as well
3115 as the reg if it has word mode.
3117 2011-10-25 Eric Botcazou <ebotcazou@adacore.com>
3119 * dwarf2out.c (add_gnat_descriptive_type_attribute): Temporarily
3120 suppress debug info for the parent type.
3122 2011-10-25 Eric Botcazou <ebotcazou@adacore.com>
3124 * config/ia64/ia64.c (ia64_profile_hook): Fix thinko.
3126 2011-10-25 Richard Henderson <rth@redhat.com>
3128 * config/i386/sse.md (VEC_EXTRACT_EVENODD_MODE): Remove.
3129 (vec_extract_even<mode>, vec_extract_odd<mode>): Remove.
3131 * config/rs6000/altivec.md (vec_extract_evenv8hi,
3132 vec_extract_evenv16qi, vec_extract_oddv4si,
3133 vec_extract_oddv4sf): Remove.
3135 * config/spu/spu.md (vec_extract_evenv4si, vec_extract_evenv4sf,
3136 vec_extract_evenv8hi, vec_extract_evenv16qi, vec_extract_oddv4si,
3137 vec_extract_oddv4sf, vec_extract_oddv8hi, vec_extract_oddv16qi,
3138 vec_interleave_highv4sf, vec_interleave_lowv4sf,
3139 vec_interleave_highv4si, vec_interleave_lowv4si,
3140 vec_interleave_highv8hi, vec_interleave_lowv8hi,
3141 vec_interleave_highv16qi, vec_interleave_lowv16qi): Remove.
3143 * expr.c (expand_expr_real_2) [VEC_EXTRACT_EVEN_EXPR]: Use binop.
3144 [VEC_EXTRACT_ODD_EXPR, VEC_INTERLEAVE_HIGH_EXPR]: Likewise.
3145 [VEC_INTERLEAVE_LOW_EXPR]: Likewise.
3146 * optabs.c (expand_binop): Implement vec_interleave_high_optab,
3147 vec_interleave_low_optab, vec_extract_even_optab,
3148 vec_extract_odd_optab with expand_vec_perm.
3149 (can_vec_perm_for_code_p): New.
3151 * tree-vect-data-refs.c (vect_strided_store_supported): Allow for
3152 fallback via can_vec_perm_for_code_p.
3153 (vect_strided_load_supported): Likewise.
3154 * tree-vect-generic.c (expand_vector_operations_1): Never lower
3155 VEC_INTERLEAVE_HIGH_EXPR, VEC_INTERLEAVE_LOW_EXPR,
3156 VEC_EXTRACT_EVEN_EXPR, VEC_EXTRACT_ODD_EXPR.
3158 * target.def (vec_perm_const_ok): Change parameters to mode and
3160 * doc/tm.texi: Rebuild.
3161 * config/i386/i386.c (ix86_vectorize_vec_perm_const_ok): Change
3162 parameters to mode and array of indicies.
3163 * expr.c (expand_expr_real_2) [VEC_PERM_EXPR]: Expand operands here.
3164 * optabs.c (can_vec_perm_p): Rename from can_vec_perm_expr_p.
3165 Change parameters to mode and array of indicies.
3166 (expand_vec_perm_1): Rename from expand_vec_perm_expr_1.
3167 (expand_vec_perm): Rename from expand_vec_perm_expr. Change
3168 parameters to mode and rtx inputs. Try lowering to QImode
3169 vec_perm_const before trying fully variable permutation.
3170 * optabs.h: Update decls.
3171 * tree-vect-generic.c (lower_vec_perm): Extract array of indices from
3172 VECTOR_CST to pass to can_vec_perm_p.
3173 * tree-vect-slp.c (vect_get_mask_element): Change mask parameter type
3174 from int pointer to unsigned char pointer.
3175 (vect_transform_slp_perm_load): Update for change to can_vec_perm_p.
3176 * tree-vect-stmts.c (perm_mask_for_reverse): Likewise.
3178 * tree.def (VEC_EXTRACT_EVEN_EXPR): Fix typo in text name.
3179 (VEC_EXTRACT_ODD_EXPR, VEC_INTERLEAVE_HIGH_EXPR,
3180 VEC_INTERLEAVE_LOW_EXPR): Likewise.
3182 2011-10-25 Mike Stump <mikestump@comcast.net>
3184 * reload.c (regno_clobbered_p): Fix typo.
3186 2011-10-25 Dodji Seketeli <dodji@redhat.com>
3188 * input.c (expand_location): Rewrite using linemap_resolve_location
3189 and linemap_expand_location. Add a comment.
3191 2011-10-25 Jakub Jelinek <jakub@redhat.com>
3193 PR tree-optimization/50596
3194 * tree-vect-stmts.c (vect_mark_relevant): Only use
3195 FOR_EACH_IMM_USE_FAST if lhs is SSA_NAME.
3196 (vectorizable_store): If is_pattern_stmt_p look through
3197 VIEW_CONVERT_EXPR on lhs.
3198 * tree-vect-patterns.c (check_bool_pattern, adjust_bool_pattern):
3199 Use unsigned type instead of signed.
3200 (vect_recog_bool_pattern): Optimize also stores into bool memory in
3201 addition to casts from bool to integral types.
3202 (vect_mark_pattern_stmts): If pattern_stmt already has vinfo
3203 created, don't create it again.
3205 2011-10-25 Kai Tietz <ktietz@redhat.com>
3207 * config/i386/i386.c (ix86_frame_pointer_required): Require
3208 frame-pointer, if setjmp is used for 32-bit ms-abi.
3210 2011-10-24 Michael Meissner <meissner@linux.vnet.ibm.com>
3212 * builtins.c (set_builtin_user_assembler_name): Remove extra
3213 newline added in October 11th, 2011 change.
3215 2011-10-24 David S. Miller <davem@davemloft.net>
3217 * config/sparc/little-endian.opt: Delete.
3218 * config.gcc: Remove references to config/sparc/little-endian.opt
3219 * doc/invoke.texi: Remove documentation of -mlittl-endian on sparc.
3220 * config/sparc/linux64.h: Delete references to -mlittle-endian.
3221 * config/sparc/netbsd-elf.h: Likewise.
3222 * config/sparc/openbsd64.h: Likewise.
3223 * config/sparc/sparc.h: Likewise.
3224 * config/sparc/sp64-elf.h: Likewise and delete overrides for
3225 BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
3226 * config/sparc/sparc.c (dump_target_flag_bits): Remove reference
3227 to MASK_LITTLE_ENDIAN.
3228 * config/sparc/sparc.opt (Mask(LITTLE_ENDIAN)): Delete.
3230 * config/sparc/sparc.md: Only use F, G, and C constraints in FP insns.
3231 Only use D, Y, and Z constraints in vector insns.
3233 * config/sparc/sparc.md (cpu_feature, enabled): New attributes.
3234 (*movsi_insn_novis3, *movsi_insn_vis3): Consolidate into one pattern
3236 (*movdi_insn_sp32_v9_novis3, *movdi_insn_sp32_v9_vis3): Consolidate
3237 into *movdi_insn_sp32.
3238 (*movdi_insn_sp64_novis3, *movdi_insn_sp64_vis3): Consolidate into
3239 one pattern called *movdi_insn_sp64.
3240 (*movsf_insn_novis3, *movsf_insn_vis3, *movsf_insn_no_fpu):
3241 Consolidate into one pattern called *movsf_insn.
3242 (*movdf_insn_sp32_no_fpu, *movdf_insn_sp32_v9_novis3,
3243 *movdf_insn_sp32_v9_vis3, *movdf_insn_sp32_v9_no_fpu): Consolidate
3244 into *movdf_insn_sp32.
3245 (*movdf_insn_sp64_novis3, *movdf_insn_sp64_vis3,
3246 *movdf_insn_sp64_no_fpu): Consolidate into one pattern called
3248 (*zero_extendsidi2_insn_sp64_novis3,
3249 *zero_extendsidi2_insn_sp64_vis3): Consolidate into one pattern
3250 called *zero_extendsidi2_insn_sp64.
3251 (*sign_extendsidi2_insn_novis3, *sign_extendsidi2_insn_vis3):
3252 Consolidate into one pattern named *sign_extendsidi2_insn.
3253 (*mov<VM32:mode>_insn_novis3, *mov<VM32:mode>_insn_vis3):
3254 Consolidate into one pattern named *mov<VM32:mode>_insn.
3255 (*mov<VM64:mode>_insn_sp64_novis3,
3256 *mov<VM64:mode>_insn_sp64_novis3): Consolidate into one pattern
3257 named *mov<VM64:mode>_insn_sp64.
3258 (*mov<VM64:mode>_insn_sp32_novis3,
3259 *mov<VM64:mode>_insn_sp32_vis3): Consolidate into one pattern
3260 named *mov<VM64:mode>_insn_sp32.
3262 2011-10-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3264 * tree-ssa-strlen.c (get_string_length): Change assertion to STPCPY.
3265 (zero_length_string): Change assertion to accept strinfo without
3266 length but with stmt instead.
3267 Set the endptr pointer also if starting a new chain.
3268 (adjust_related_strinfos): Ignore strinfos marked for delayed
3270 (handle_builtin_strcpy): Mark earlier strinfo elements also for
3271 delayed length computation.
3273 2011-10-24 Georg-Johann Lay <avr@gjlay.de>
3276 Port from 4.6 branch r180379
3277 * doc/invoke.texi (AVR Options): New subsubsection to explain EIND
3278 handling and indirect jump/calls on devices > 128k.
3280 2011-10-24 Anatoly Sokolov <aesok@post.ru>
3281 Georg-Johann Lay <avr@gjlay.de>
3284 * doc/extend.texi (Declaring Attributes of Functions):
3285 Document OS_main and OS_task attributes.
3286 (Specifying Attributes of Variables): Move up
3287 subsection "AVR Variable Attributes" as of alphabetical order.
3289 2011-10-24 Richard Guenther <rguenther@suse.de>
3291 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Convert constants
3292 to vector element type.
3293 (vectorizable_assignment): Bail out for non-mode-precision operations.
3294 (vectorizable_shift): Likewise.
3295 (vectorizable_operation): Likewise.
3296 (vectorizable_type_demotion): Likewise.
3297 (vectorizable_type_promotion): Likewise.
3298 (vectorizable_store): Handle non-mode-precision stores.
3299 (vectorizable_load): Handle non-mode-precision loads.
3300 (get_vectype_for_scalar_type_and_size): Return a vector type
3301 for non-mode-precision integers.
3302 * tree-vect-loop.c (vectorizable_reduction): Bail out for
3303 non-mode-precision reductions.
3305 2011-10-24 Julian Brown <julian@codesourcery.com>
3307 * config/m68k/m68k.c (notice_update_cc): Tighten condition for
3308 setting CC_REVERSED for FP comparisons.
3310 2011-10-24 Richard Guenther <rguenther@suse.de>
3312 PR tree-optimization/50838
3313 * tree-data-ref.c (dr_analyze_indices): Properly canonicalize
3314 a MEM_REF base if we change it.
3316 2011-10-24 Bernd Schmidt <bernds@codesourcery.com>
3319 * rtlanal.c: Swap includes of "hard-reg-set.h" and "rtl.h".
3321 PR rtl-optimization/50833
3322 * function.c (thread_prologue_and_epilogue_insns): Expect the
3323 return insn optimization only if optimize.
3325 2011-10-24 Georg-Johann Lay <avr@gjlay.de>
3327 * config/avr/avr.c: Break long lines.
3328 Define target hooks on the fly if applicable.
3329 (TARGET_ASM_FUNCTION_RODATA_SECTION): Remove first definition
3331 (targetm): Move definition to end of file.
3332 (avr_can_eliminate): Make static on the fly.
3333 (avr_frame_pointer_required_p): Ditto.
3334 (avr_hard_regno_scratch_ok): Ditto.
3335 (avr_builtin_setjmp_frame_value): Make static on the fly.
3336 Indent according to coding rules.
3337 (avr_case_values_threshold): Ditto.
3338 (avr_attribute_table): Move down.
3340 2011-10-24 Ira Rosen <ira.rosen@linaro.org>
3342 PR tree-optimization/50730
3343 * tree-vect-data-refs.c (vect_analyze_data_refs): Stop basic block
3344 analysis if encountered unsupported data-ref.
3346 2011-10-23 David S. Miller <davem@davemloft.net>
3348 * config/sparc/sparc.c (sparc_option_override): Remove -mv8plus
3350 * config/sparc/linux64.h (CC1_SPEC): When defaulting to 64-bit,
3351 append -mcpu=v9 when -mv8plus is given.
3353 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): We can move
3354 between float and non-float regs when VIS3.
3355 * config/sparc/sparc.c (eligible_for_restore_insn): We can't
3356 use a restore when the source is a float register.
3357 (sparc_split_regreg_legitimate): When VIS3 allow moves between
3358 float and integer regs.
3359 (sparc_register_move_cost): Adjust to account for VIS3 moves.
3360 (sparc_preferred_reload_class): On 32-bit with VIS3 when moving an
3361 integer reg to a class containing EXTRA_FP_REGS, constrain to FP_REGS.
3362 (sparc_secondary_reload): On 32-bit with VIS3 when moving between
3363 float and integer regs we sometimes need a FP_REGS class
3364 intermediate move to satisfy the reload. When this happens
3365 specify an extra cost of 2.
3366 (*movsi_insn): Rename to have "_novis3" suffix and add !VIS3 guard.
3367 (*movdi_insn_sp32_v9): Likewise.
3368 (*movdi_insn_sp64): Likewise.
3369 (*movsf_insn): Likewise.
3370 (*movdf_insn_sp32_v9): Likewise.
3371 (*movdf_insn_sp64): Likewise.
3372 (*zero_extendsidi2_insn_sp64): Likewise.
3373 (*sign_extendsidi2_insn): Likewise.
3374 (*movsi_insn_vis3): New insn.
3375 (*movdi_insn_sp32_v9_vis3): New insn.
3376 (*movdi_insn_sp64_vis3): New insn.
3377 (*movsf_insn_vis3): New insn.
3378 (*movdf_insn_sp32_v9_vis3): New insn.
3379 (*movdf_insn_sp64_vis3): New insn.
3380 (*zero_extendsidi2_insn_sp64_vis3): New insn.
3381 (*sign_extendsidi2_insn_vis3): New insn.
3382 (TFmode reg/reg split): Make sure both REG operands are float.
3383 (*mov<VM32:mode>_insn): Add "_novis3" suffix and !VIS3 guard. Remove
3384 easy constant to integer reg alternatives.
3385 (*mov<VM64:mode>_insn_sp64): Likewise.
3386 (*mov<VM64:mode>_insn_sp32_novis3): Likewise.
3387 (*mov<VM32:mode>_insn_vis3): New insn.
3388 (*mov<VM64:mode>_insn_sp64_vis3): New insn.
3389 (*mov<VM64:mode>_insn_sp32_vis3): New insn.
3390 (VM64 reg<-->reg split): New splitter for 32-bit.
3392 * config/sparc/sparc.c (sparc_split_regreg_legitimate): New function.
3393 * config/sparc/sparc-protos.h (sparc_split_regreg_legitimate):
3395 * config/sparc/sparc.md (DImode reg/reg split): Use it.
3396 (DFmode reg/reg split): Likewise.
3398 * config/sparc/sparc.md (*movdi_insn_sp32_v9): Add alternatives for
3399 generating fzero and fone instructions.
3400 (DImode const_int --> reg splitter): Only trigger for integer regs.
3402 * config/sparc/predicates.md (input_operand): Disallow vector
3403 constants other than 0 and -1.
3404 * config/sparc/sparc.c (sparc_preferred_reload_class): Return
3405 NO_REGS for vector constants other than 0 and -1.
3407 * config/sparc/sparc.h (SPARC_FIRST_INT_REG, SPARC_LAST_INT_REG,
3408 SPARC_INT_REG_P): Define.
3409 (HARD_REGNO_NREGS): Use SPARC_INT_REG_P.
3410 (REGNO_OK_FOR_INDEX_P): Likewise.
3411 * config/sparc/sparc.c (gen_df_reg): Likewise.
3412 (eligible_for_return_delay): Likewise.
3413 (eligible_for_sibcall_delay): Likewise.
3414 (sparc_legitimate_address_p): Likewise.
3415 (emit_save_or_restore_regs): Likewise.
3416 (registers_ok_for_ldd_peep): Likewise.
3417 * config/spac/sparc.md (DI mode splitters): Likewise.
3418 (SF mode const splitters): Likewise.
3419 (DF mode splitters): Likewise.
3420 (32-bit DI mode logical op splitters): Likewise.
3422 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
3426 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
3429 * doc/invoke.texi ([-Wnarrowing], [-Wc++0x-compat]): Update.
3431 2011-10-23 Uros Bizjak <ubizjak@gmail.com>
3433 * config/i386/sse.md (avx2_lshl<mode>3): Remove insn pattern.
3434 (VI248_256): Remove mode iterator.
3435 * config/i386/i386.c (ix86_expand_vec_perm): Use gen_ashlv4di3
3436 instead of gen_avx2_lshlv4di3.
3437 (bdesc_args): Use CODE_FOR_ashl{v16hi,v8si,v4di}3 instead of
3438 CODE_FOR_avx2_lshl{v16hi,v8si,v4di}3.
3440 2011-10-23 Uros Bizjak <ubizjak@gmail.com>
3442 * config/i386/sse.md (sseintprefix): Rename from gthrfirstp.
3443 (<avx_avx2>_maskload<ssemodesuffix><avxsizesuffix>): Delete expander.
3444 (<avx_avx2>_maskload<ssemodesuffix><avxsizesuffix>) Merge insn
3445 pattern from *avx2_maskload<ssemodesuffix><avxsizesuffix> and
3446 *avx_maskload<ssemodesuffix><avxsizesuffix> using V48_AVX mode
3447 iterator. Use sseintprefix mode attribute.
3448 (<avx_avx2>_maskstore<ssemodesuffix><avxsizesuffix>): Delete expander.
3449 (<avx_avx2>_maskstore<ssemodesuffix><avxsizesuffix>) Merge insn
3450 pattern from *avx2_maskstore<ssemodesuffix><avxsizesuffix> and
3451 *avx_maskstore<ssemodesuffix><avxsizesuffix> using V48_AVX mode
3452 iterator. Use sseintprefix mode attribute.
3453 (*avx2_gathersi<mode>) Use sseintprefix and ssemodesuffix mode
3455 (*avx2_gatherdi<mode>): Ditto.
3456 (*avx2_gatherdi<mode>256): Ditto.
3457 (VI48_AVX2): Remove mode iterator.
3458 (gthrlastfp): Remove mode attribute.
3460 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
3463 * doc/invoke.texi ([-Wnarrowing], [-Wc++0x-compat]): Update.
3465 2011-10-23 Tom de Vries <tom@codesourcery.com>
3467 PR tree-optimization/50763
3468 * tree-ssa-tail-merge.c (same_succ_flush_bb): New function, factored
3470 (same_succ_flush_bbs): Use same_succ_flush_bb.
3471 (purge_bbs): Remove argument. Remove calls to same_succ_flush_bbs,
3472 release_last_vdef and delete_basic_block.
3473 (unlink_virtual_phi): New function.
3474 (update_vuses): Add and use vuse1_phi_args argument. Set var to
3475 SSA_NAME_VAR of vuse1 or vuse2, and use var. Handle case that
3476 def_stmt2 is NULL. Use phi result as phi arg in case vuse1 or vuse2
3477 is NULL_TREE. Replace uses of vuse1 if vuse2 is NULL_TREE. Fix code
3478 to limit replacement of uses. Propagate phi argument for phis with a
3480 (replace_block_by): Update vops if phi_vuse1 or phi_vuse2 is NULL_TREE.
3481 Set vuse1_phi_args if vuse1 is a phi defined in bb1. Add
3482 vuse1_phi_args as argument to call to update_vuses. Call
3483 release_last_vdef, same_succ_flush_bb, delete_basic_block. Update
3484 CDI_DOMINATORS info.
3485 (tail_merge_optimize): Remove argument in call to purge_bbs. Remove
3486 call to free_dominance_info. Only call calculate_dominance_info once.
3488 2011-10-23 Eric Botcazou <ebotcazou@adacore.com>
3490 * fold-const.c (invert_tree_comparison): Always invert EQ_EXPR/NE_EXPR.
3492 PR tree-optimization/44683
3493 * tree-ssa-dom.c (record_edge_info): Record simple equivalences only if
3494 we can be sure that there are no signed zeros involved.
3496 2011-10-23 Jan Hubicka <jh@suse.cz>
3498 * ipa-inline.c (estimate_badness): Scale up and handle overflows.
3500 2011-10-23 Uros Bizjak <ubizjak@gmail.com>
3503 * config/i386/sse.md (<avx_avx2>_maskload<ssemodesuffix><avxsizesuffix>):
3504 Remove (match_dup 0).
3505 (*avx2_maskload<ssemodesuffix><avxsizesuffix>): New insn pattern.
3506 (*avx_maskload<ssemodesuffix><avxsizesuffix>): Ditto.
3507 (*avx2_maskstore<ssemodesuffix><avxsizesuffix>): Ditto.
3508 (*avx_maskstore<ssemodesuffix><avxsizesuffix>): Ditto.
3509 (*avx2_maskmov<ssemodesuffix><avxsizesuffix>): Remove insn pattern.
3510 (*avx_maskmov<ssemodesuffix><avxsizesuffix>): Ditto.
3512 2011-10-23 Ira Rosen <ira.rosen@linaro.org>
3514 PR tree-optimization/50819
3515 * tree-vectorizer.h (vect_analyze_data_ref_dependences): Remove
3517 * tree-vect-loop.c (vect_analyze_loop_2): Update call to
3518 vect_analyze_data_ref_dependences.
3519 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Remove
3520 the last argument. Check load-after-store dependence for unknown
3521 dependencies in basic blocks.
3522 (vect_analyze_data_ref_dependences): Update call to
3523 vect_analyze_data_ref_dependences.
3524 * tree-vect-patterns.c (vect_recog_widen_shift_pattern): Fix typo.
3525 * tree-vect-slp.c (vect_bb_vectorizable_with_dependencies): Remove.
3526 (vect_slp_analyze_bb_1): Update call to
3527 vect_analyze_data_ref_dependences. Don't call
3528 vect_bb_vectorizable_with_dependencies.
3530 2011-10-22 David S. Miller <davem@davemloft.net>
3532 * config/sparc/sparc.h (SECONDARY_INPUT_RELOAD_CLASS,
3533 SECONDARY_OUTPUT_RELOAD_CLASS): Delete.
3534 * config/sparc/sparc.c (TARGET_SECONDARY_RELOAD): Redefine.
3535 (sparc_secondary_reload): New function.
3537 * config/sparc/sparc.h (sparc_costs): Remove extern decl.
3538 (struct processor_costs): Move from here..
3539 * config/sparc/sparc.c (struct processor_costs): To here.
3540 (sparc_costs): Mark static.
3542 * config/sparc/sparc.c (short_branch, reg_unused_after): Delete.
3543 * config/sparc/sparc-protos.h (short_branch, reg_unused_after):
3544 Get rid of declarations.
3546 2011-10-21 Paul Brook <paul@codesourcery.com>
3548 * config/c6x/c6x.c (c6x_asm_emit_except_personality,
3549 c6x_asm_init_sections): New functions.
3550 (TARGET_ASM_EMIT_EXCEPT_PERSONALITY, TARGET_ASM_INIT_SECTIONS): Define.
3552 2011-10-21 Jakub Jelinek <jakub@redhat.com>
3555 * config/i386/i386.c (expand_vec_perm_even_odd_1): Handle
3556 V4DImode and V8SImode for !TARGET_AVX2.
3558 2011-10-21 Bernd Schmidt <bernds@codesourcery.com>
3561 * sched-deps.c (add_dependence): If not doing predication, promote
3562 REG_DEP_CONTROL to REG_DEP_ANTI.
3564 2011-10-21 Georg-Johann Lay <avr@gjlay.de>
3566 * config/avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Pass address of X
3567 instead of X to avr_legitimize_reload_address.
3568 * config/avr/avr-protos.h (avr_legitimize_reload_address): Change
3569 first argument's type from rtx to rtx*.
3570 * config/avr/avr.c (avr_legitimize_reload_address): Ditto.
3571 Pass PX to push_reload instead of &X. Change log messages for
3574 2011-10-21 Roland Stigge <stigge@antcom.de>
3576 PR translation/47064
3577 * params.def: Fix typo "compilatoin" -> "compilation".
3579 2011-10-21 H.J. Lu <hongjiu.lu@intel.com>
3580 Kirill Yukhin <kirill.yukhin@intel.com>
3583 * config/i386/driver-i386.c (host_detect_local_cpu): Do cpuid 7 only
3584 if max_level allows that.
3586 2011-10-21 Bernd Schmidt <bernds@codesourcery.com>
3588 * reg-notes.def (DEP_CONTROL): New.
3589 * sched-ebb.c (add_deps_for_risky_insns): Add a REG_DEP_CONTROL when
3590 not doing speculation.
3591 * rtlanal.c (record_hard_reg_sets, find_all_hard_reg_sets,
3592 record_hard_reg_uses_1, record_hard_reg_uses): New functions.
3593 * function.c (record_hard_reg_sets, record_hard_reg_uses,
3594 record_hard_reg_uses_1): Remove; move to rtlanal.c.
3595 * lists.c (copy_INSN_LIST, concat_INSN_LIST): New functions.
3596 * haifa-sched.c: Swap includes of "rtl.h" and "hard-reg-set.h".
3597 (MUST_RECOMPUTE_SPEC_P): New macro.
3598 (real_insn_for_shadow): New function.
3599 (cond_clobbered_p, recompute_todo_spec, check_clobbered_conditions,
3600 toggle_cancelled_flags): New static functions.
3601 (schedule_insn): Relax an assert to only check for empty hard back
3602 dependencies. Skip cancelled dependencies. Call
3603 check_clobbered_conditions.
3604 (copy_insn_list): Remove function, renamed moved to lists.c.
3605 (save_backtrack_point): Use new spelling copy_INSN_LIST.
3606 (unschedule_insns_until): Ensure TODO_SPEC is reset properly.
3607 (restore_last_backtrack_point): Likewise. Call toggle_cancelled_flags.
3608 (estimate_insn_tick): Ignore cancelled dependencies.
3609 (haifa_speculate_insn): Move declaration.
3610 (try_ready): Move code into recompute_todo_spec and call it. Tweak
3611 some asserts. Ensure predicated patterns are restored if necessary.
3612 Dump DEP_CONTROL flag.
3613 (haifa_change_pattern): Merge with sched_change_pattern.
3614 (sched_change_pattern): Remove function.
3615 * sched-deps.c (NON_FLUSH_JUMP_KIND, NON_FLUSH_JUMP): Remove. All
3616 uses changed to simply not test NON_FLUSH_JUMP_P.
3617 (ds_to_dk, dk_to_ds, dump_dep, ds_to_dt, dump_ds, check_dep): Handle
3619 (dep_spec_p): If DO_PREDICATION, REG_DEP_CONTROL is speculative.
3620 (reg_pending_control_uses, control_dependency_cache): New static
3622 (sched_get_reverse_condition_uncached): New function.
3623 (sd_find_dep_between): Remove pointless assert. Look in
3624 control_dependency_cache.
3625 (ask_dependency_caches, set_dependency_caches, sd_delete_dep,
3626 extend_dependency_caches, sched_deps_finish): Handle REG_DEP_CONTROL
3627 and control_dependency_cache.
3628 (sd_unresolve_dep): Use dep_spec_p.
3629 (add_dependence): Now a wrapper around add_dependence_1, handling
3630 REG_DEP_CONTROL specially.
3631 (flush_pending_lists): Clear pending_jump_insns.
3632 (sched_analyze_1): Handle pending_jump_insns like a memory flush.
3633 (sched_analyze_2): Unconditionally add to pending memory flushes,
3634 keep previous behaviour but apply it to pending_jump_insns instead.
3635 (sched_analyze_insn): Defer adding jump reg dependencies using
3636 reg_pending_control_uses; add them to the control_uses list. Handle
3637 pending_jump_insns and control_uses when adding dependence lists.
3638 (deps_analyze_insn): Update INSN_COND_DEPS.
3639 (deps_analyze_insn): Add jumps to pending_jump_insns rather than
3640 last_pending_memory_flush.
3641 (init_deps): Initialize pending_jump_insns.
3642 (free_deps): Free control_uses.
3643 (remove_from_deps): Remove from pending_jump_insns.
3644 (init_deps_global): Allocate reg_pending_control_uses).
3645 (finish_deps_global): Free it.
3646 (add_dependence_1): Renamed from add_dependence. Handle
3648 * rtl.h (record_hard_reg_uses, find_all_hard_reg_sets): Declare.
3649 (copy_INSN_LIST, concat_INSN_LIST): Declare.
3650 * sched-int.h (struct deps_reg): Add control_uses.
3651 (struct deps_desc): Add pending_jump_insns.
3652 (struct _haifa_deps_insn_data): Add cond_deps.
3653 (struct _haifa_insn_data): Add must_recompute_spec and predicated_pat.
3654 (INSN_COND_DEPS, PREDICATED_PAT): New macros.
3655 (BITS_PER_DEP_WEAK): Adjust for two extra bits in the word.
3656 (DEP_CONTROL): New macro.
3657 (DEP_TYPES): Include it.
3658 (HARD_DEP): Adjust definition.
3659 (DEP_CANCELLED): New macro.
3660 (enum SCHED_FLAGS): Add DO_PREDICATION.
3661 (sched_get_reverse_condition_uncached, real_insn_for_shadow): Declare.
3662 * sched-rgn.c (concat_INSN_LIST): Remove function.
3663 (deps_join): Handle pending_jump_insns.
3664 (free_pending_lists): Likewise.
3665 * config/c6x/c6x.c (c6x_set_sched_flags): Set DO_PREDICATION for final
3668 2011-10-21 Georg-Johann Lay <avr@gjlay.de>
3671 * config/avr/libgcc.S (__EIND__): New define to 0x3C.
3672 (__tablejump__): Consistently use EIND for indirect jump/call.
3673 (__tablejump_elpm__): Ditto.
3675 2011-10-21 Bernd Schmidt <bernds@codesourcery.com>
3677 * config/c6x/c6x.md (attr "op_pattern"): New.
3678 (load_sdata_pic, mov<mode>_insn for QIHIM and SISFVM): Set it.
3679 * config/c6x/c6x-mult.md.in (mulhi3_VARIANT_, mulhisi3_insn_VARIANT_):
3681 * config/c6x/c6x-mult.md: Regenerate.
3682 * config/c6x/c6x.c: Include "regrename.h".
3683 (unit_req_table): New typedef.
3684 (unit_reqs): Use it for the declaration.
3685 (unit_req_factor, get_unit_reqs, merge_unit_reqs, unit_req_imbalance,
3686 get_unit_operand_masks, try_rename_operands, reshuffle_units): New
3688 (count_unit_reqs): New arg reqs. All callers changed. Use
3689 get_unit_reqs, and don't merge here.
3690 (res_mii): New arg reqs. All callers changed. Rewrite to use a loop
3691 using unit_req_factor.
3692 (hwloop_optimize): Call reshuffle_units. Call merge_unit_reqs after
3694 (c6x_reorg): Add reg notes problem, and call df_analyze.
3695 * Makefile.in ($(out_object_file)): Depend on regrename.h.
3697 2011-10-21 Kai Tietz <ktietz@redhat.com>
3699 * fold-const.c (simple_operand_p_2): Handle integral
3700 casts from boolean-operands.
3702 2011-10-21 Jan Hubicka <jh@suse.cz>
3704 * cgraph.c (dump_cgraph_node): Dump alias flag.
3705 * cgraphunit.c (handle_alias_pairs): Handle weakrefs with
3707 (get_alias_symbol): New function.
3708 (output_weakrefs): Output also weakrefs with no destinatoin.
3709 (lto_output_node): Output weakref alias flag when at function boundary.
3711 2011-10-21 Andrew Stubbs <ams@codesourcery.com>
3714 * config/arm/driver-arm.c (vendors): Make static.
3716 2011-10-21 Uros Bizjak <ubizjak@gmail.com>
3718 * config/i386/i386.c (ix86_emit_swdivsf): Force b into register.
3719 (ix86_emit_swsqrtsf): Force a into register.
3721 2011-10-20 Mike Stump <mikestump@comcast.net>
3723 * regcprop.c (copyprop_hardreg_forward_1): Update recog_data
3724 after validate_change wipes it out.
3726 2011-10-20 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3728 * config/spu/spu.md ("vec_permv16qi"): Reduce selector modulo 32
3729 before using the shufb instruction.
3731 2011-10-20 Kirill Yukhin <kirill.yukhin@intel.com>
3734 * config/i386/i386.md (bmi_bextr_<mode>): Update register/
3735 memory operand order.
3736 (bmi2_bzhi_<mode>3): Ditto.
3737 (bmi2_pdep_<mode>3): Ditto.
3738 (bmi2_pext_<mode>3): Ditto.
3740 2011-10-20 Richard Henderson <rth@redhat.com>
3742 * target.def (vec_perm_const_ok): Rename from builtin_vec_perm_ok.
3743 * optabs.c (can_vec_perm_expr_p): Update to match.
3744 (expand_vec_perm_expr): Likewise.
3745 * config/i386/i386.c (TARGET_VECTORIZE_VEC_PERM_CONST_OK): Rename
3746 from TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK.
3747 * doc/tm.texi.in: Likewise.
3749 2011-10-20 Sergey Ostanevich <sergos.gnu@gmail.com>
3752 * config/i386/i386.c (processor_target_table): Change Atom
3753 align_loops_max_skip to 15.
3755 2011-10-20 Richard Henderson <rth@redhat.com>
3757 * target.def (builtin_vec_perm): Remove.
3758 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Remove.
3760 * config/i386/i386.c (ix86_expand_vec_perm_builtin): Remove.
3761 (IX86_BUILTIN_VEC_PERM_*): Remove.
3762 (bdesc_args): Remove vec_perm builtins
3763 (ix86_expand_builtin): Likewise.
3764 (ix86_expand_vec_perm_const_1): Rename from
3765 ix86_expand_vec_perm_builtin_1.
3766 (extract_vec_perm_cst): Merge into...
3767 (ix86_vectorize_vec_perm_const_ok): ... here. Rename from
3768 ix86_vectorize_builtin_vec_perm_ok.
3769 (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Remove.
3771 * config/rs6000/rs6000.c (rs6000_builtin_vec_perm): Remove.
3772 (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Remove.
3774 * config/spu/spu.c (spu_builtin_vec_perm): Remove.
3775 (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Remove.
3777 2011-10-20 Uros Bizjak <ubizjak@gmail.com>
3780 * config/i386/i386.h (RECIP_MASK_DEFAULT): New define.
3781 * config/i386/i386.op (recip_mask): Initialize with RECIP_MASK_DEFAULT.
3782 * doc/invoke.texi (ix86 Options, -mrecip): Document that GCC
3783 implements vectorized single float division and vectorized sqrtf(x)
3784 with reciprocal sequence with additional Newton-Raphson step with
3787 2011-10-20 Dodji Seketeli <dodji@redhat.com>
3789 * ggc-zone.c (ggc_internal_alloc_zone_stat): Rename
3790 ggc_alloced_size_order_for_request into ggc_round_alloc_size like
3791 it was done in ggc-page.c.
3794 * doc/cppopts.texi: Use @smallexample/@end smallexample in
3795 documentation for -fdebug-cpp instead of @quotation/@end quotation
3796 that is not supported by contrib/texi2pod.pl.
3798 2011-10-19 Jan Hubicka <jh@suse.cz>
3800 * ipa-inline.c (inline_small_functions): Always update all calles after
3803 2011-10-19 Jan Hubicka <jh@suse.cz>
3806 * ipa-inline.c (inline_small_functions): Fix checking code to not make
3807 effect on fibheap stability.
3809 2011-10-20 Maxim Kuvyrkov <maxim@codesourcery.com>
3811 * config/m68k/t-linux (M68K_MLIB_CPU): Add ColdFire CPUs.
3813 2011-10-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
3816 * config/arm/arm.c (thumb_unexpanded_epilogue): Handle return
3819 2011-10-20 Richard Guenther <rguenther@suse.de>
3821 * tree-ssa-loop-im.c (stmt_cost): Add WIDEN_*, FMA_EXPR
3822 and rotates to the set of expensive operations.
3824 2011-10-19 David S. Miller <davem@davemloft.net>
3826 * config/sparc/sparc.c (sparc_expand_move): Use can_create_pseudo_p.
3827 (sparc_emit_set_const32): Likewise.
3828 (sparc_emit_set_const64_longway): Likewise.
3829 (sparc_emit_set_const64): Likewise.
3830 (sparc_legitimize_pic_address): Likewise.
3831 (memory_ok_for_ldd): Likewise.
3833 2011-10-20 Dehao Chen <dehao@google.com>
3835 * profile.c (compute_branch_probabilities): Compute and dump the
3836 overlap between the static estimation and the instrumentation profile.
3837 (OVERLAP_BASE): New macro.
3838 (compute_frequency_overlap): New function
3840 2011-10-19 Jakub Jelinek <jakub@redhat.com>
3842 * config/i386/i386.c (expand_vec_perm_vpshufb2_vpermq_even_odd): Use
3843 d->op1 instead of d->op0 for the second vpshufb.
3844 (expand_vec_perm_even_odd_1): For V8SImode fix vpshufd immediates.
3845 (ix86_expand_vec_perm_const): If mask indicates two operands are
3846 needed, but both are the same and expanding them as d.op0 == d.op1
3847 failed, retry with d.op0 != d.op1.
3848 (ix86_expand_vec_perm_builtin): Likewise. Handle sorry printing
3849 also for d.nelt == 32.
3852 * cfgexpand.c (expand_debug_expr): Handle WIDEN_LSHIFT_EXPR, ignore
3855 2011-10-19 Bernd Schmidt <bernds@codesourcery.com>
3857 * regrename.h: New file.
3858 * regrename.c: Include it. Also include "emit-rtl.h".
3859 (struct du_head, struct du_chain, du_head_p DEF_VEC and
3860 DEF_VEC_ALLOC_P): Move to regrename.h.
3861 (do_replace): Remove declaration.
3862 (insn_rr): New variable.
3863 (cur_operand): New static variable.
3864 (regrename_chain_from_id): Renamed from chain_from_id and no longer
3865 static. All callers changed.
3866 (record_operand_use): New static function.
3867 (scan_rtx_reg): Use it.
3868 (find_best_rename_reg): New function, broken out of rename_chains.
3869 (rename_chains): Use it. Don't update chain regno and nregs here, ...
3870 (regrename_do_replace): ... do it here instead. Renamed from
3871 do_replace, and no longer static. All callers changed.
3872 (regrename_analyze): No longer static. New arg bb_mask.
3873 All callers changed. If bb_mask is nonzero, use it to limit the
3874 number of basic blocks we analyze. If we failed to analyze a block,
3875 clear insn operand data.
3876 (record_out_operands): New arg insn_info. Update cur_operand if it is
3878 (build_def_use): If insn_rr is nonnull, pass an insn_info to
3879 record_out_operands, and update cur_operand here as well.
3880 (regrename_init, regrename_finish): New functions.
3881 (regrename_optimize): Use them.
3882 * Makefile.in (regrename.o): Adjust dependencies.
3884 2011-10-19 Tom de Vries <tom@codesourcery.com>
3886 PR tree-optimization/50769
3887 * tree-ssa-tail-merge.c (replace_block_by): Calculate phi_vuse2
3888 unconditionally. Handle case that phi_vuse2 is not an SSA_NAME. Add
3889 dummy argument .MEM to phi when increasing number of arguments of phi by
3890 redirecting edges to the block with phi.
3892 2011-10-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3895 * configure.ac: Save and restore CXXFLAGS around
3896 gcc_AC_CHECK_DECLS uses.
3897 Check for madvise() declaration with g++ if --enable-build-with-cxx.
3898 * configure: Regenerate.
3899 * config.in: Regenerate.
3900 * ggc-page.c (USING_MADVISE): Also check HAVE_DECL_MADVISE.
3902 2011-10-19 Alexandre Oliva <aoliva@redhat.com>
3905 * var-tracking.c (loc_exp_dep, onepart_aux): New structs.
3906 (variable_part): Replace offset with union.
3907 (enum onepart_enum, onepart_enum_t): New.
3908 (variable_def): Drop cur_loc_changed, add onepart.
3909 (value_chain_def, const_value_chain): Remove.
3910 (VAR_PART_OFFSET, VAR_LOC_1PAUX): New macros, with checking.
3911 (VAR_LOC_DEP_LST, VAR_LOC_DEP_LSTP): New macros.
3912 (VAR_LOC_FROM, VAR_LOC_DEPTH, VAR_LOC_DEP_VEC): Likewise.
3913 (value_chain_pool, value_chains): Remove.
3914 (dropped_values): New.
3915 (struct parm_reg): Only if HAVE_window_save.
3916 (vt_stack_adjustments): Don't record register arguments.
3918 (dv_onepart_p): Return a onepart_enum_t.
3919 (onepart_pool): New.
3922 (variable_htab_free): Release onepart aux data. Reset flags.
3923 (value_chain_htab_hash, value_chain_htab_eq): Remove.
3924 (unshare_variable): Use onepart field. Propagate onepart aux
3925 data or offset. Drop cur_loc_changed.
3926 (val_store): Cope with NULL insn. Rephrase dump output. Check
3927 for unsuitable locs. Add FIXME on using cselib locs.
3928 (val_reset): Remove FIXME of unfounded concerns.
3929 (val_resolve): Check for unsuitable locs. Add FIXME on using
3931 (variable_union): Use onepart field, adjust access to offset.
3933 (VALUE_CHANGED, DECL_CHANGED): Update doc.
3934 (set_dv_changed): Clear NO_LOC_P when changed.
3935 (find_loc_in_1pdv): Use onepart field.
3936 (intersect_loc_chains): Likewise.
3937 (unsuitable_loc): New.
3938 (loc_cmp): Keep ENTRY_VALUEs at the end of the loc list.
3939 (add_value_chain, add_value_chains): Remove.
3940 (add_cselib_value_chains, remove_value_chain): Likewise.
3941 (remove_value_chains, remove_cselib_value_chains): Likewise.
3942 (canonicalize_loc_order_check): Use onepart. Drop cur_loc_changed.
3943 (canonicalize_values_star, canonicalize_vars_star): Use onepart.
3944 (variable_merge_over_cur): Likewise. Adjust access to offset.
3945 Drop cur_loc_changed.
3946 (variable_merge_over_src): Use onepart field.
3947 (remove_duplicate_values): Likewise.
3948 (variable_post_merge_new_vals): Likewise.
3949 (find_mem_expr_in_1pdv): Likewise.
3950 (dataflow_set_preserve_mem_locs): Likewise. Drop cur_loc_changed
3952 (dataflow_set_remove_mem_locs): Likewise. Use VAR_LOC_FROM.
3953 (variable_different_p): Use onepart field. Move onepart test out
3955 (argument_reg_set): Drop.
3956 (add_uses, add_stores): Preserve but do not record in dynamic
3957 tables equivalences for ENTRY_VALUEs and CFA_based addresses.
3958 Avoid unsuitable address expressions.
3959 (EXPR_DEPTH): Unlimit.
3960 (EXPR_USE_DEPTH): Repurpose PARAM_MAX_VARTRACK_EXPR_DEPTH.
3961 (prepare_call_arguments): Use DECL_RTL_IF_SET.
3962 (dump_var): Adjust access to offset.
3963 (variable_from_dropped, recover_dropped_1paux): New.
3964 (variable_was_changed): Drop cur_loc_changed. Use onepart.
3965 Preserve onepart aux in empty_var. Recover empty_var and onepart
3966 aux from dropped_values.
3967 (find_variable_location_part): Special-case onepart. Adjust
3969 (set_slot_part): Use onepart. Drop cur_loc_changed. Adjust
3970 access to offset. Initialize onepaux. Drop value chains.
3971 (delete_slot_part): Drop value chains. Use VAR_LOC_FROM.
3972 (VEC (variable, heap), VEC (rtx, stack)): Define.
3973 (expand_loc_callback_data): Drop dummy, cur_loc_changed,
3974 ignore_cur_loc. Add expanding, pending, depth.
3975 (loc_exp_dep_alloc, loc_exp_dep_clear): New.
3976 (loc_exp_dep_insert, loc_exp_dep_set): New.
3977 (notify_dependents_of_resolved_value): New.
3978 (update_depth, vt_expand_var_loc_chain): New.
3979 (vt_expand_loc_callback): Revamped.
3980 (resolve_expansions_pending_recursion): New.
3981 (INIT_ELCD, FINI_ELCD): New.
3982 (vt_expand_loc): Use the new macros above. Drop ignore_cur_loc
3983 parameter, adjust all callers.
3984 (vt_expand_loc_dummy): Drop.
3985 (vt_expand_1pvar): New.
3986 (emit_note_insn_var_location): Operate on non-debug decls only.
3987 Revamp multi-part cur_loc recomputation and one-part expansion.
3988 Drop cur_loc_changed. Adjust access to offset.
3989 (VEC (variable, heap)): Drop.
3990 (changed_variables_stack, changed_values_stack): Drop.
3991 (check_changed_vars_0, check_changed_vars_1): Remove.
3992 (check_changed_vars_2, check_changed_vars_3): Remove.
3993 (values_to_stack, remove_value_from_changed_variables): New.
3994 (notify_dependents_of_changed_value, process_changed_values): New.
3995 (emit_notes_for_changes): Revamp onepart updates.
3996 (emit_notes_for_differences_1): Use onepart. Drop cur_loc_changed
3997 and value chains. Propagate onepaux. Recover empty_var and onepaux
3998 from dropped_values.
3999 (emit_notes_for_differences_2): Drop value chains.
4000 (emit_notes_in_bb): Adjust.
4001 (vt_emit_notes): Drop value chains, changed_variables_stack.
4002 Initialize and release dropped_values.
4003 (create_entry_value): Revamp.
4004 (vt_add_function_parameter): Use new interface.
4005 (note_register_arguments): Remove.
4006 (vt_initialize): Drop value chains and register arguments.
4007 (vt_finalize): Drop value chains. Release windowed_parm_regs only
4008 if HAVE_window_save.
4009 * rtl.h: Document various pass-local uses of RTL flags.
4010 * tree.h (DECL_RTL_KNOWN_SET): New.
4011 * doc/invoke.texi (param max-vartrack-expr-depth): Update
4012 description and default.
4014 2011-10-19 Georg-Johann Lay <avr@gjlay.de>
4017 * config/avr/avr.md (cc): New alternative out_plus_noclobber.
4018 (adjust_len): Ditto.
4019 (addhi3): Don't pipe through short; use gen_int_mode instead.
4020 Prior to reload, expand to gen_addhi3_clobber.
4021 (*addhi3): Use avr_out_plus_noclobber if applicable, use
4022 out_plus_noclobber in cc and adjust_len attribute.
4023 (addhi3_clobber): 2 new RTL peepholes.
4024 (addhi3_clobber): New insn.
4025 * config/avr/avr-protos.h: (avr_out_plus_noclobber): New prototype.
4026 * config/avr/avr.c (avr_out_plus_noclobber): New function.
4027 (notice_update_cc): Handle CC_OUT_PLUS_NOCLOBBER.
4028 (avr_out_plus_1): Tweak if only MSB is +/-1 and other bytes are 0.
4029 Set cc0 to set_zn for adiw on 16-bit values.
4030 (adjust_insn_length): Handle ADJUST_LEN_OUT_PLUS_NOCLOBBER.
4031 (expand_epilogue): No need to add 0 to frame_pointer_rtx.
4033 2011-10-19 Richard Guenther <rguenther@suse.de>
4036 * tree-ssa-forwprop.c (forward_propagate_into_cond): Verify
4037 the condition is properly gimple before using it.
4038 * tree-eh (stmt_could_throw_1_p): Properly extract the
4039 operation type from comparisons.
4041 2011-10-19 Roland Stigge <stigge@antcom.de>
4043 PR translation/48638
4044 * plugin.c (add_new_plugin): Fix typo in fatal_error message.
4046 2011-10-19 Roland Stigge <stigge@antcom.de>
4048 PR translation/49517
4049 * config/rx/rx.c (rx_print_operand): Fix typo in warning message.
4051 2011-10-19 Richard Guenther <rguenther@suse.de>
4054 * gimple-fold.c (gimplify_and_update_call_from_tree): Rewrite.
4056 2011-10-19 Andrey Belevantsev <abel@ispras.ru>
4058 PR rtl-optimization/50340
4059 * sel-sched-ir.c (update_target_availability): LHS register
4060 availability is not known if the unavailable LHS of the other
4061 expression is a different register.
4063 2011-10-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4066 * config/spu/spu.c (spu_emit_vector_compare): Support unordered
4067 floating-point comparisons.
4069 2011-10-19 Jan Hubicka <jh@suse.cz>
4071 * cgraphunit.c (handle_alias_pairs): Also handle wekref with
4072 destination declared.
4073 (output_weakrefs): New function.
4074 * varpool.c (varpool_create_variable_alias): Handle external aliases.
4076 2011-10-19 Jakub Jelinek <jakub@redhat.com>
4078 * dwarf2out.c (loc_descriptor): For SUBREG pass SUBREG_REG's mode as
4079 second argument instead of mode.
4081 2011-10-18 Jakub Jelinek <jakub@redhat.com>
4083 * config/i386/i386.c (ix86_expand_vec_perm): In merge_two use
4084 mode SUBREG of operands[0] as target.
4085 (valid_perm_using_mode_p): Don't ignore higher bits of d->perm.
4086 (expand_vec_pshufb): For V8SImode vmode emit avx2_permvarv8si.
4087 (expand_vec_perm_1): Handle identity and some broadcast
4089 (expand_vec_perm_interleave2): Handle also 32-byte modes, using
4090 vperm2[fi]128 or vpunpck[lh]* followed by single insn permutation.
4091 For d->testing_p return true earlier to avoid creating more GC
4093 (expand_vec_perm_vpermq_perm_1): New function.
4094 (expand_vec_perm_vpshufb2_vpermq): For d->testing_p return true
4095 earlier to avoid creating more GC garbage. Fix handling of
4096 V16HImode. Avoid some SUBREGs in SET_DEST.
4097 (expand_vec_perm_broadcast_1): Return false for 32-byte integer
4099 (expand_vec_perm_vpshufb4_vpermq2): New function.
4100 (ix86_expand_vec_perm_builtin_1): Call expand_vec_perm_vpermq_perm_1
4101 and expand_vec_perm_vpshufb4_vpermq2.
4103 2011-10-18 Andrew Stubbs <ams@codesourcery.com>
4105 * config/arm/driver-arm.c (host_detect_local_cpu): Close the file
4108 2011-10-18 Andrew Stubbs <ams@codesourcery.com>
4110 PR tree-optimization/50717
4111 * tree-ssa-math-opts.c (is_widening_mult_p): Remove the 'type'
4112 parameter. Calculate 'type' from stmt.
4113 (convert_mult_to_widen): Update call the is_widening_mult_p.
4114 (convert_plusminus_to_widen): Likewise.
4116 2011-10-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4118 * config/spu/spu.c (struct machine_function): New data structure.
4119 (spu_init_machine_status): New function.
4120 (spu_option_override): Install it.
4121 (get_pic_reg): Set and use cfun->machine->pic_reg.
4122 (spu_split_immediate): Do not set crtl->uses_pic_offset_table.
4123 (need_to_save_reg): Use cfun->machine->pic_reg instead of
4124 checking crtl->uses_pic_offset_table.
4125 (spu_expand_prologue): Likewise.
4127 2011-10-18 Jakub Jelinek <jakub@redhat.com>
4129 PR tree-optimization/50735
4130 * function.c (gimplify_parameters): Use create_tmp_var instead of
4131 create_tmp_reg. If parm is not TREE_ADDRESSABLE and type is complex
4132 or vector type, set DECL_GIMPLE_REG_P.
4134 2011-10-18 Andrew Stubbs <ams@codesourcery.com>
4136 * config.host (arm*-*-linux*): Add driver-arm.o and x-arm.
4137 * config/arm/arm.opt: Add 'native' processor_type and
4138 arm_arch enum values.
4139 * config/arm/arm.h (host_detect_local_cpu): New prototype.
4140 (EXTRA_SPEC_FUNCTIONS): New define.
4141 (MCPU_MTUNE_NATIVE_SPECS): New define.
4142 (DRIVER_SELF_SPECS): New define.
4143 * config/arm/driver-arm.c: New file.
4144 * config/arm/x-arm: New file.
4145 * doc/invoke.texi (ARM Options): Document -mcpu=native,
4146 -mtune=native and -march=native.
4148 2011-10-18 Alexander Monakov <amonakov@ispras.ru>
4150 PR rtl-optimization/50205
4151 * sel-sched.c (count_occurrences_1): Simplify on the assumption that
4152 p->x is a register. Forbid substitution when the same register is
4153 found in a different mode.
4154 (count_occurrences_equiv): Assert that 'what' is a register.
4156 2011-10-18 Richard Guenther <rguenther@suse.de>
4158 PR tree-optimization/50767
4159 * tree-ssa-pre.c (create_expression_by_pieces): Update the
4162 2011-10-18 Julian Brown <julian@codesourcery.com>
4164 * config/arm/arm.c (arm_block_move_unaligned_straight)
4165 (arm_adjust_block_mem, arm_block_move_unaligned_loop)
4166 (arm_movmemqi_unaligned): New.
4167 (arm_gen_movmemqi): Support unaligned block copies.
4169 2011-10-18 Ira Rosen <ira.rosen@linaro.org>
4171 * doc/md.texi (vec_widen_ushiftl_hi, vec_widen_ushiftl_lo,
4172 vec_widen_sshiftl_hi, vec_widen_sshiftl_lo): Document.
4173 * tree-pretty-print.c (dump_generic_node): Handle WIDEN_LSHIFT_EXPR,
4174 VEC_WIDEN_LSHIFT_HI_EXPR and VEC_WIDEN_LSHIFT_LO_EXPR.
4175 (op_code_prio): Likewise.
4176 (op_symbol_code): Handle WIDEN_LSHIFT_EXPR.
4177 * optabs.c (optab_for_tree_code): Handle
4178 VEC_WIDEN_LSHIFT_HI_EXPR and VEC_WIDEN_LSHIFT_LO_EXPR.
4179 (init-optabs): Initialize optab codes for vec_widen_u/sshiftl_hi/lo.
4180 * optabs.h (enum optab_index): Add OTI_vec_widen_u/sshiftl_hi/lo.
4181 * genopinit.c (optabs): Initialize the new optabs.
4182 * expr.c (expand_expr_real_2): Handle
4183 VEC_WIDEN_LSHIFT_HI_EXPR and VEC_WIDEN_LSHIFT_LO_EXPR.
4184 * gimple-pretty-print.c (dump_binary_rhs): Likewise.
4185 * tree-vectorizer.h (NUM_PATTERNS): Increase to 8.
4186 * tree.def (WIDEN_LSHIFT_EXPR, VEC_WIDEN_LSHIFT_HI_EXPR,
4187 VEC_WIDEN_LSHIFT_LO_EXPR): New.
4188 * cfgexpand.c (expand_debug_expr): Handle new tree codes.
4189 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
4190 vect_recog_widen_shift_pattern.
4191 (vect_handle_widen_mult_by_const): Rename...
4192 (vect_handle_widen_op_by_const): ...to this. Handle shifts.
4193 Add a new argument, update documentation.
4194 (vect_recog_widen_mult_pattern): Assume that only second
4195 operand can be constant. Update call to
4196 vect_handle_widen_op_by_const.
4197 (vect_recog_over_widening_pattern): Fix typo.
4198 (vect_recog_widen_shift_pattern): New.
4199 * tree-vect-stmts.c (vectorizable_type_promotion): Handle
4201 (supportable_widening_operation): Likewise.
4202 * tree-inline.c (estimate_operator_cost): Handle new tree codes.
4203 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
4204 * tree-cfg.c (verify_gimple_assign_binary): Likewise.
4205 * config/arm/neon.md (neon_vec_<US>shiftl_<mode>): New.
4206 (vec_widen_<US>shiftl_lo_<mode>, neon_vec_<US>shiftl_hi_<mode>,
4207 vec_widen_<US>shiftl_hi_<mode>, neon_vec_<US>shift_left_<mode>):
4209 * config/arm/predicates.md (const_neon_scalar_shift_amount_operand):
4211 * config/arm/iterators.md (V_innermode): New.
4212 * tree-vect-slp.c (vect_build_slp_tree): Require same shift operand
4215 2011-10-18 Richard Guenther <rguenther@suse.de>
4217 * tree-ssa-alias.h (struct pt_solution): Remove
4218 vars_contains_restrict member.
4219 (pt_solutions_same_restrict_base): Remove.
4220 (pt_solution_set): Adjust.
4221 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Remove
4222 vars_contains_restrict handling.
4223 (dump_points_to_solution): Likewise.
4224 (ptr_derefs_may_alias_p): Do not call pt_solutions_same_restrict_base.
4225 * tree-ssa-structalias.c (struct variable_info): Remove is_restrict_var
4227 (new_var_info): Do not initialize it.
4228 (ipa_escaped_pt): Adjust.
4229 (make_constraint_from_restrict): Make the tag global.
4230 (make_constraint_from_global_restrict): New function.
4231 (make_constraint_from_heapvar): Remove.
4232 (create_variable_info_for): Do not make restrict vars point
4234 (intra_create_variable_infos): Likewise.
4235 (find_what_var_points_to): Remove vars_contains_restrict handling.
4236 (pt_solution_set): Adjust.
4237 (pt_solution_ior_into): Likewise.
4238 (pt_solutions_same_restrict_base): Remove.
4239 (compute_points_to_sets): Do not test is_restrict_var.
4240 * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
4241 * gimple-pretty-print.c (pp_points_to_solution): Likewise.
4243 2011-10-18 Tom de Vries <tom@codesourcery.com>
4245 PR tree-optimization/50672
4246 * tree-ssa-dce.c (mark_virtual_operand_for_renaming): New function,
4248 (mark_virtual_phi_result_for_renaming): Use
4249 mark_virtual_operand_for_renaming.
4250 * tree-flow.h (mark_virtual_operand_for_renaming): Declare.
4251 * tree-ssa-tail-merge.c (release_last_vdef): New function.
4252 (purge_bbs): Add update_vops parameter. Call release_last_vdef for each
4253 deleted basic block.
4254 (tail_merge_optimize): Add argument to call to purge_bbs.
4256 2011-10-18 Richard Guenther <rguenther@suse.de>
4259 * expr.c (get_object_or_type_alignment): New function.
4260 (expand_assignment): Use it.
4261 (expand_expr_real_1): Likewise.
4263 2011-10-18 Dodji Seketeli <dodji@redhat.com>
4266 * input.c (dump_line_table_statistics): Use long, not size_t.
4268 2011-10-17 Eric Botcazou <ebotcazou@adacore.com>
4270 * config/sparc/sparc.md (in_call_delay): Fix formatting issues.
4272 2011-10-17 Simon Baldwin <simonb@google.com>
4273 Ian Lance Taylor <iant@google.com>
4275 * configure.ac: Add --with-native-system-header-dir. Set and
4276 substitute NATIVE_SYSTEM_HEADER_DIR. Use native_system_header
4277 when setting target_header_dir.
4278 * config.gcc: Always set native_system_header_dir.
4279 (*-*-gnu*): Set native_system_header_dir. Don't use t-gnu.
4280 (i[34567]86-pc-msdosdjgpp*): Set native_system_header_dir. Don't
4282 (i[34567]86-*-mingw* | x86_64-*-mingw*): Set
4283 native_system_header_dir.
4284 (spu-*-elf*): Set native_system_header_dir.
4285 * Makefile.in (NATIVE_SYSTEM_HEADER_DIR): Set to
4286 @NATIVE_SYSTEM_HEADER_DIR@.
4287 (PREPROCESSOR_DEFINES): Define NATIVE_SYSTEM_HEADER_DIR.
4288 * cppdefault.c (STANDARD_INCLUDE_DIR): Don't define.
4289 (NATIVE_SYSTEM_HEADER_COMPONENT): Rename from
4290 STANDARD_INCLUDE_COMPONENT.
4291 (cpp_include_defaults): Don't use SYSTEM_INCLUDE_DIR. Rename
4292 STANDARD_INCLUDE_DIR to NATIVE_SYSTEM_HEADER_DIR.
4293 * system.h: Poison SYSTEM_INCLUDE_DIR, STANDARD_INCLUDE_DIR, and
4294 STANDARD_INCLUDE_COMPONENT.
4295 * config/i386/t-mingw32 (NATIVE_SYSTEM_HEADER_DIR): Remove.
4296 * config/i386/t-mingw-w32: Likewise.
4297 * config/i386/t-mingw-w64: Likewise.
4298 * config/spu/t-spu-elf: Likewise.
4299 * config/i386/t-djgpp: Remove.
4300 * config/t-gnu: Remove.
4301 * config/i386/mingw32.h (STANDARD_INCLUDE_DIR): Don't define.
4302 (NATIVE_SYSTEM_HEADER_COMPONENT): Rename from
4303 STANDARD_INCLUDE_COMPONENT.
4304 * config/i386/djgpp.h (STANDARD_INCLUDE_DIR): Don't define.
4305 * config/spu/spu-elf.h: Likewise.
4306 * config/vms/xm-vms.h: Likewise.
4307 * config/gnu.h: Likewise.
4308 * config/openbsd.h (INCLUDE_DEFAULTS): Change STANDARD_INCLUDE_DIR
4309 and STANDARD_INCLUDE_COMPONENT to NATIVE_SYSTEM_HEADER_DIR and
4310 NATIVE_SYSTME_HEADER_COMPONENT.
4311 * doc/install.texi (Configuration): Document
4312 --with-native-system-header-dir. Mention it in the documentation
4313 for --with-sysroot and --with-build-sysroot.
4314 * doc/tm.texi.in (Driver): Don't document SYSTEM_INCLUDE_DIR or
4315 STANDARD_INCLUDE_DIR. Rename STANDARD_INCLUDE_COMPONENT to
4316 NATIVE_SYSTEM_HEADER_COMPONENT. Rename uses of
4317 STANDARD_INCLUDE_DIR to NATIVE_SYSTEM_HEADER_DIR.
4318 * doc/fragments.texi (Target Fragment): Don't document
4319 NATIVE_SYSTEM_HEADER_DIR.
4320 * configure, doc/tm.texi: Rebuild.
4322 2011-10-17 Richard Henderson <rth@redhat.com>
4324 * config/sparc/sparc.md: Use register_or_zero_operand where rJ
4327 * config/sparc/sparc.md (vec_perm_constv8qi, vec_perm<mode>): New
4329 * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): New function.
4330 * config/sparc/sparc-protos.h (sparc_expand_vec_perm_bmask): Declare.
4332 2011-10-17 David S. Miller <davem@davemloft.net>
4334 * config/sparc/sparc-modes.def: Add single entry vector modes for
4336 * config/sparc/sparc.md (V32, V32I, V64, V64I, V64N8): Delete
4338 (mov<V32:mode>): Revert back to plain SFmode pattern.
4339 (*movsf_insn): Likewise.
4340 (mov<V64:mode>): Revert back to plain DFmode pattern.
4341 (*movdf_insn_sp32): Likewise.
4342 (*movdf_insn_sp32_v9): Likewise.
4343 (*movdf_insn_sp64): Likewise.
4344 (V64 mode splitters) Likewise.
4345 (addsi3): Remove VIS alternatives.
4347 (and<V64I:mode>3): Revert to DImode only pattern.
4348 (and<V64I:mode>3_sp32): Likewise.
4349 (*and<V64I:mode>3_sp64): Likewise.
4350 (and<V32I:mode>3): Likewise.
4351 (*and_not_<V64I:mode>_sp32): Likewise.
4352 (*and_not_<V64I:mode>_sp64): Likewise.
4353 (*and_not_<V32I:mode>): Likewise.
4354 (ior<V64I:mode>3): Likewise.
4355 (*ior<V64I:mode>3_sp32): Likewise.
4356 (*ior<V64I:mode>3_sp64): Likewise.
4357 (ior<V32I:mode>3): Likewise.
4358 (*or_not_<V64I:mode>_sp32): Likewise.
4359 (*or_not_<V64I:mode>_sp64): Likewise.
4360 (*or_not_<V32I:mode>): Likewise.
4361 (xor<V64I:mode>3): Likewise.
4362 (*xor<V64I:mode>3_sp32): Likewise.
4363 (*xor<V64I:mode>3_sp64): Likewise.
4364 (xor<V32I:mode>3): Likewise.
4365 (V64I mode splitters): Likewise.
4366 (*xor_not_<V64I:mode>_sp32): Likewise.
4367 (*xor_not_<V64I:mode>_sp64): Likewise.
4368 (*xor_not_<V32I:mode>): Likewise.
4369 (one_cmpl<V64I:mode>2): Likewise.
4370 (*one_cmpl<V64I:mode>2_sp32): Likewise.
4371 (*one_cmpl<V64I:mode>2_sp64): Likewise.
4372 (one_cmpl<V32I:mode>2): Likewise.
4373 (VM32, VM64, VMALL): New mode iterators.
4374 (vbits, vconstr, vfptype): New mode attributes.
4375 (mov<VMALL:mode>): New expander.
4376 (*mov<VM32:mode>_insn): New insn.
4377 (*mov<VM64:mode>_insn_sp64): New insn.
4378 (*mov<VM64:mode>_insn_sp32): New insn, and associated splitter
4379 specifically for the register to memory case.
4380 (vec_init<mode>): New expander.
4381 (VADDSUB): New mode iterator.
4382 (<plusminus_insn>v2si3, <plusminus_insn>v2hi3): Remove and replace
4384 (<plusminus_insn><mode>3): New consolidated pattern.
4385 (VL): New mode iterator for logical operations.
4386 (vlsuf): New more attribute.
4387 (vlop): New code iterator.
4388 (vlinsn, vlninsn): New code attributes.
4389 (<code><mode>3): New insn to non-negated vector logical ops.
4390 (*not_<code><mode>3): Likewise for negated variants.
4391 (*nand<mode>_vis): New insn.
4392 (vlnotop): New code iterator.
4393 (*<code>_not1<mode>_vis, *<code>_not2<mode>_vis): New insns.
4394 (one_cmpl<mode>2): New insn.
4395 (faligndata<V64I:mode>_vis): Rewrite to use VM64 iterator.
4396 (bshuffle<VM64:mode>_vis): Likewise.
4397 (v<vis3_shift_patname><mode>3): Use GCM mode iterator.
4398 (fp<plusminus_insn>64_vis): Use V1DI mode.
4399 (VASS mode iterator): Use V1SI not SI mode.
4400 * config/sparc/sparc.c (sparc_vis_init_builtins): Account for
4401 single-entry vector mode changes.
4402 (sparc_expand_builtin): Likewise.
4403 (sparc_expand_vector_init): New function.
4404 * config/sparc/sparc-protos.h (sparc_expand_vector_init): Declare.
4406 2011-10-17 Kai Tietz <ktietz@redhat.com>
4408 * fold-const.c (simple_operand_p_2): New function.
4409 (fold_truthop): Rename to
4410 (fold_truth_andor_1): function name.
4411 Additionally remove branching creation for logical and/or.
4412 (fold_truth_andor): Handle branching creation for logical and/or here.
4414 2011-10-17 Andi Kleen <ak@linux.intel.com>
4416 * ggc-page.c (USING_MADVISE): Adjust ifdef to check for USING_MMAP.
4418 2011-10-17 Georg-Johann Lay <avr@gjlay.de>
4420 * config/avr/avr.h (ASSEMBLER_DIALECT): Remove.
4421 * config/avr/avr.md (mcu_have_movw, mcu_mega): Remove attributes.
4422 (adjust_len): Add alternative "call".
4423 (isa, enabled): New insn attributes.
4424 (length): Use match_test with AVR_HAVE_JMP_CALL instead of
4426 (*sbrx_branch<mode>): Ditto.
4427 (*sbrx_and_branch<mode>): Ditto.
4428 (*sbix_branch): Ditto.
4429 (*sbix_branch_bit7): Ditto.
4430 (*sbix_branch_tmp): Ditto.
4431 (*sbix_branch_tmp_bit7): Ditto.
4433 (negsi2): Use attribute "isa" instead of assembler dialect.
4434 (extendhisi2): Ditto.
4435 (call_insn, call_value_insn): Set adjust_len attribute.
4436 (indirect_jump): Indent to coding rules.
4437 (call_prologue_saves): Use isa attribute instead of mcu_mega.
4438 (epilogue_restores): Ditto. Fix setting of SP as described in the
4440 (*indirect_jump): Fusion of *jcindirect_jump, *njcindirect_jump
4441 and *indirect_jump_avr6.
4442 (*tablejump): Fusion of *tablejump_rjmp and *tablejump_lib.
4443 (*jcindirect_jump, *njcindirect_jump, *indirect_jump_avr6): Remove.
4444 (*tablejump_rjmp, *tablejump_lib): Remove.
4445 * config/avr/avr.c (adjust_insn_length): Handle ADJUST_LEN_CALL.
4447 2011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
4450 * doc/invoke.texi ([Wnonnull]): Update.
4452 2011-10-17 Richard Henderson <rth@redhat.com>
4455 * optabs.c (expand_vec_perm_expr): Fix indexing error.
4457 2011-10-17 Sergio Durigan Junior <sergiodj@redhat.com>
4459 * configure.ac: Display `yes' if the SystemTap header has been found.
4460 * configure: Regenerate.
4462 2011-10-08 Andi Kleen <ak@linux.intel.com>
4465 * config.in, configure: Regenerate.
4466 * configure.ac (madvise): Add to AC_CHECK_FUNCS.
4467 * ggc-page.c (USING_MADVISE): Add.
4468 (page_entry): Add discarded field.
4469 (alloc_page): Check for discarded pages.
4470 (release_pages): Add USING_MADVISE branch.
4472 2011-10-17 Richard Guenther <rguenther@suse.de>
4474 PR tree-optimization/50729
4475 * tree-vrp.c (extract_range_from_unary_expr_1): Remove redundant test.
4476 (simplify_conversion_using_ranges): Properly test the
4477 intermediate result.
4479 2011-10-15 Tom Tromey <tromey@redhat.com>
4480 Dodji Seketeli <dodji@redhat.com>
4482 * ggc.h (ggc_round_alloc_size): Declare new public entry point.
4483 * ggc-none.c (ggc_round_alloc_size): New public stub function.
4484 * ggc-page.c (ggc_alloced_size_order_for_request): New static
4485 function. Factorized from ggc_internal_alloc_stat.
4486 (ggc_round_alloc_size): New public function. Uses
4487 ggc_alloced_size_order_for_request.
4488 (ggc_internal_alloc_stat): Use ggc_alloced_size_order_for_request.
4489 * ggc-zone.c (ggc_round_alloc_size): New public function extracted
4490 from ggc_internal_alloc_zone_stat.
4491 (ggc_internal_alloc_zone_stat): Use ggc_round_alloc_size.
4492 * toplev.c (general_init): Initialize
4493 line_table->alloced_size_for_request.
4495 2011-10-15 Tom Tromey <tromey@redhat.com>
4496 Dodji Seketeli <dodji@redhat.com>
4498 * input.c (ONE_K, ONE_M, SCALE, STAT_LABEL, FORMAT_AMOUNT): New macros.
4499 (num_expanded_macros_counter, num_macro_tokens_counter): Declare
4501 (dump_line_table_statistics): Define new function.
4502 * input.h (dump_line_table_statistics): Declare new function.
4503 * toplev.c (dump_memory_report): Call dump_line_table_statistics.
4505 2011-10-15 Tom Tromey <tromey@redhat.com>
4506 Dodji Seketeli <dodji@redhat.com>
4508 * doc/cppopts.texi: Document -fdebug-cpp.
4509 * doc/invoke.texi: Add -fdebug-cpp to the list of preprocessor options.
4511 2011-10-15 Tom Tromey <tromey@redhat.com>
4512 Dodji Seketeli <dodji@redhat.com>
4514 * gcc/diagnostic.h (diagnostic_report_current_module): Add a
4516 * diagnostic.c (diagnostic_report_current_module): Add a location
4517 parameter to the function definition. Use it instead of
4518 input_location. Resolve the virtual location rather than just
4519 looking up its map and risking to touch a resulting macro map.
4520 (default_diagnostic_starter): Pass the relevant diagnostic
4521 location to diagnostic_report_current_module.
4522 * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): New.
4523 (virt_loc_aware_diagnostic_finalizer): Likewise.
4524 (diagnostic_report_current_function): Pass the
4525 relevant location to diagnostic_report_current_module.
4526 * tree-diagnostic.h (virt_loc_aware_diagnostic_finalizer): Declare
4528 * toplev.c (general_init): By default, use the new
4529 virt_loc_aware_diagnostic_finalizer as diagnostic finalizer.
4530 * Makefile.in: Add vec.h dependency to tree-diagnostic.c.
4532 2011-10-15 Tom Tromey <tromey@redhat.com>
4533 Dodji Seketeli <dodji@redhat.com>
4535 * doc/cppopts.texi (-ftrack-macro-expansion): Document new option.
4536 * doc/invoke.texi (-ftrack-macro-expansion): Add this to the list of
4537 preprocessor related options.
4539 2011-10-15 Tom Tromey <tromey@redhat>
4540 Dodji Seketeli <dodji@redhat.com>
4542 * input.h (struct expanded_location): Move to libcpp/line-map.h.
4543 (LOCATION_COLUMN): New accessor
4544 (in_system_header_at): Use linemap_location_in_system_header_p.
4545 * diagnostic.c (diagnostic_report_current_module): Adjust to avoid
4546 touching the internals of struct line_map. Use the public API instead.
4547 (diagnostic_report_diagnostic): Don't use relational operator '<'
4548 on virtual locations. Use linemap_location_before_p instead.
4549 * input.c (expand_location): Adjust to expand to the tokens'
4550 spelling location when macro location tracking is on.
4553 2011-10-08 Andi Kleen <ak@linux.intel.com>
4555 * ggc-page.c (GGC_QUIRE_SIZE): Increase to 512
4557 2011-10-13 Andi Kleen <ak@linux.intel.com>
4559 * toplev.c (compile_file): Rename __gnu_slim_lto to __gnu_lto_slim.
4561 2011-10-16 Ira Rosen <ira.rosen@linaro.org>
4563 PR tree-optimization/50727
4564 * tree-vect-patterns.c (vect_operation_fits_smaller_type): Add
4565 DEF_STMT to the list of statements to be replaced by the
4568 2011-10-16 Eric Botcazou <ebotcazou@adacore.com>
4570 PR rtl-optimization/50615
4571 * combine.c (distribute_notes) <REG_ARGS_SIZE>: Skip if I3 is a no-op.
4573 2011-10-16 Jakub Jelinek <jakub@redhat.com>
4575 PR tree-optimization/50596
4576 * tree-vectorizer.h (NUM_PATTERNS): Increase to 7.
4577 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
4578 vect_recog_bool_pattern.
4579 (check_bool_pattern, adjust_bool_pattern_cast,
4580 adjust_bool_pattern, vect_recog_bool_pattern): New functions.
4582 2011-10-16 Ira Rosen <ira.rosen@linaro.org>
4584 * tree-vect-stmts.c (vectorizable_load): For SLP without permutation
4585 treat the first load of the node as the first element in its
4587 * tree-vect-slp.c (vect_get_and_check_slp_defs): Swap the operands if
4588 necessary and possible.
4589 (vect_build_slp_tree): Add new argument. Allow load groups of any size
4590 in basic blocks. Keep all the loads for further permutation check.
4591 Use the new argument to determine if there is a permutation. Update
4592 the recursive calls.
4593 (vect_supported_load_permutation_p): Allow subchains of interleaving
4594 chains in basic block vectorization.
4595 (vect_analyze_slp_instance): Update the call to vect_build_slp_tree.
4596 Check load permutation based on the new parameter.
4597 (vect_schedule_slp_instance): Don't start from the first element in
4598 interleaving chain unless the loads are permuted.
4600 2011-10-15 Jan Hubicka <jh@suse.cz>
4604 * cgraphunit.c (cgraph_expand_function): Expand thunks and alises
4605 after function body.
4607 2011-10-15 Richard Henderson <rth@redhat.com>
4609 * tree-vect-slp.c: Include langhooks.h.
4610 (vect_create_mask_and_perm): Emit VEC_PERM_EXPR, not a builtin.
4611 (vect_transform_slp_perm_load): Use can_vec_perm_expr_p. Simplify
4612 mask creation for VEC_PERM_EXPR.
4613 * tree-vect-stmts.c (perm_mask_for_reverse): Return the mask,
4615 (reverse_vec_elements): Emit VEC_PERM_EXPR not a builtin.
4616 * Makefile.in (tree-vect-slp.o): Update dependency.
4617 * optabs.c (can_vec_perm_expr_p): Allow NULL as unknown constant.
4619 2011-10-15 Alan Modra <amodra@gmail.com>
4622 * ifcvt.c (dead_or_predicable): Revert accidental commit with
4623 HAVE_simple_return test.
4625 2011-10-15 Alan Modra <amodra@gmail.com>
4627 * ifcvt.c (dead_or_predicable): Disable if-conversion when
4628 doing so is likely to kill a shrink-wrapping opportunity.
4630 PR rtl-optimization/49941
4631 * jump.c (mark_jump_label_1): Set JUMP_LABEL for simple_return jumps.
4633 * rtl.h (set_return_jump_label): Declare.
4634 * function.c (set_return_jump_label): New function, extracted..
4635 (thread_prologue_and_epilogue_insns): ..from here. Use it in
4636 another instance to set return jump_label.
4637 * cfgrtl.c (force_nonfallthru_and_redirect): Use set_return_jump_label.
4638 * reorg.c (find_end_label): Likewise.
4640 2011-10-14 David S. Miller <davem@davemloft.net>
4642 * config/sparc/sol2.h: Protect -m{cpu,tune}=native handling
4643 with a more complete cpp test.
4644 * config/sparc/linux64.h: Likewise.
4645 * config/sparc/linux.h: Likewise.
4646 * config/sparc/sparc.opt (sparc_debug): New target variable.
4647 (mdebug): New target option.
4648 * config/sparc/sparc.h (MASK_DEBUG_OPTIONS, MASK_DEBUG_ALL,
4649 TARGET_DEBUG_OPTIONS): New defines.
4650 * config/sparc/sparc.c (debug_target_flag_bits,
4651 debug_target_flags): New functions.
4652 (sparc_option_override): Add name strings back to cpu_table[].
4653 Parse -mdebug string. When TARGET_DEBUG_OPTIONS is true, print
4654 out the target flags before and after override processing as well
4655 as the selected cpu. If MASK_V8PLUS, make sure that the selected
4658 2011-10-15 Oleg Endo <oleg.endo@t-online.de>
4661 * config/sh/sh.h (ZERO_EXTRACT_ANDMASK): New macro.
4662 * config/sh/sh.c (sh_rtx_costs): Add test instruction case.
4663 * config/sh/sh.md (tstsi_t): Name existing insn. Make inner
4664 and instruction commutative.
4665 (tsthi_t, tstqi_t, tstqi_t_zero, tstsi_t_and_not,
4666 tstsi_t_zero_extract_eq, tstsi_t_zero_extract_xor,
4667 tstsi_t_zero_extract_subreg_xor_little,
4668 tstsi_t_zero_extract_subreg_xor_big): New insns.
4669 (*movsicc_t_false, *movsicc_t_true): Replace space with tab in
4671 (*andsi_compact): Reorder alternatives so that K08 is considered first.
4673 2011-10-14 Eric Botcazou <ebotcazou@adacore.com>
4676 * config/sparc/linux64.h (TARGET_DEFAULT): Only override if the default
4677 processor is at least V9 and TARGET_64BIT_DEFAULT is defined.
4679 2011-10-14 Gerald Pfeifer <gerald@pfeifer.com>
4681 * invoke.texi (AVR Options): Avoid \leq{}.
4683 2011-10-14 Kai Tietz <ktietz@redhat.com>
4685 * gimplify.c (gimplify_expr): Take care that for bitwise-binary
4686 transformation the operands have compatible types.
4688 2011-10-14 Jakub Jelinek <jakub@redhat.com>
4690 * config/i386/sse.md (vec_widen_smult_hi_v8hi,
4691 vec_widen_smult_lo_v8hi, vec_widen_umult_hi_v8hi,
4692 vec_widen_umult_lo_v8hi): Macroize using VI2_AVX2
4693 mode iterator and any_extend code iterator.
4694 (vec_widen_<s>mult_hi_v8si, vec_widen_<s>mult_lo_v8si): New expanders.
4695 (vec_widen_smult_hi_v4si, vec_widen_smult_lo_v4si): Enable
4696 also for TARGET_SSE4_1 using pmuldq insn.
4697 (sdot_prodv8hi): Macroize using VI2_AVX2 iterator.
4698 (sse2_sse4_1): New code attr.
4699 (udot_prodv4si): Macroize using any_extend code iterator.
4700 (<s>dot_prodv8si): New expander.
4702 2011-10-14 Yakovlev Vladimir <vladimir.b.yakovlev@intel.com>
4704 * config/i386/i386.c (atom_cost): Changed cost for loading
4705 QImode using movzbl.
4707 2011-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
4709 * config/rs6000/rs6000.c (rs6000_init_builtins): Fix typo in my
4710 change on October 11th, 2011.
4712 2011-10-14 Jakub Jelinek <jakub@redhat.com>
4714 * config/i386/sse.md (vec_interleave_high<mode>,
4715 vec_interleave_low<mode>): Add AVX2 expanders for VI_256 modes.
4716 * config/i386/i386.c (expand_vec_perm_interleave3): New function.
4717 (ix86_expand_vec_perm_builtin_1): Call it.
4719 2011-10-14 Georg-Johann Lay <avr@gjlay.de>
4721 Fix thinko from r179765
4722 * config/avr/avr.c (avr_option_override): Don't override
4723 flag_omit_frame_pointer if not actually needed.
4725 2011-10-14 Georg-Johann Lay <avr@gjlay.de>
4728 * doc/invoke.texi (AVR Options): Document -mstrict-X.
4730 * config/avr/avr.opt (-mstrict-X): New option.
4731 (avr_strict_X): New variable reflecting -mstrict-X.
4732 * config/avr/avr.c (avr_reg_ok_for_addr_p): Add parameter
4733 outer_code and pass it down to avr_regno_mode_code_ok_for_base_p.
4734 (avr_legitimate_address_p): Pass outer_code to
4735 avr_reg_ok_for_addr_p and use that function in case PLUS.
4736 (avr_mode_code_base_reg_class): Depend on avr_strict_X.
4737 (avr_regno_mode_code_ok_for_base_p): Ditto, and depend on outer_code.
4738 (avr_option_override): Disable -fcaller-saves if -mstrict-X is on.
4740 2011-10-14 Jakub Jelinek <jakub@redhat.com>
4742 * config/i386/sse.md (neg<mode>2): Use VI_AVX2 iterator instead
4745 * config/i386/sse.md (mulv2di3): Macroize using VI8_AVX2 iterator.
4746 (ashl<mode>3): Use VI248_AVX2 iterator instead of VI248_128.
4747 Use <sseinsnmode> instead of TI in mode attr.
4749 2011-10-14 David Alan Gilbert <david.gilbert@linaro.org>
4751 * config/arm/linux-atomic-64bit.c: New (based on linux-atomic.c).
4752 * config/arm/linux-atomic.c: Change comment to point to 64bit version.
4753 (SYNC_LOCK_RELEASE): Instantiate 64bit version.
4754 * config/arm/t-linux-eabi: Pull in linux-atomic-64bit.c.
4756 2011-10-14 David Alan Gilbert <david.gilbert@linaro.org>
4758 * config/arm/arm.c (arm_output_ldrex): Support ldrexd.
4759 (arm_output_strex): Support strexd.
4760 (arm_output_it): New helper to output it in Thumb2 mode only.
4761 (arm_output_sync_loop): Support DI mode. Change comment to
4762 not support const_int.
4763 (arm_expand_sync): Support DI mode.
4764 * config/arm/arm.h (TARGET_HAVE_LDREXBHD): Split into LDREXBH
4766 * config/arm/iterators.md (NARROW): move from sync.md.
4767 (QHSD): New iterator for all current ARM integer modes.
4768 (SIDI): New iterator for SI and DI modes only.
4769 * config/arm/sync.md (sync_predtab): New mode_attr.
4770 (sync_compare_and_swapsi): Fold into sync_compare_and_swap<mode>.
4771 (sync_lock_test_and_setsi): Fold into sync_lock_test_and_setsi<mode>.
4772 (sync_<sync_optab>si): Fold into sync_<sync_optab><mode>.
4773 (sync_nandsi): Fold into sync_nand<mode>.
4774 (sync_new_<sync_optab>si): Fold into sync_new_<sync_optab><mode>.
4775 (sync_new_nandsi): Fold into sync_new_nand<mode>.
4776 (sync_old_<sync_optab>si): Fold into sync_old_<sync_optab><mode>.
4777 (sync_old_nandsi): Fold into sync_old_nand<mode>.
4778 (sync_compare_and_swap<mode>): Support SI & DI.
4779 (sync_lock_test_and_set<mode>): Likewise.
4780 (sync_<sync_optab><mode>): Likewise.
4781 (sync_nand<mode>): Likewise.
4782 (sync_new_<sync_optab><mode>): Likewise.
4783 (sync_new_nand<mode>): Likewise.
4784 (sync_old_<sync_optab><mode>): Likewise.
4785 (sync_old_nand<mode>): Likewise.
4786 (arm_sync_compare_and_swapsi): Turn into iterator on SI & DI.
4787 (arm_sync_lock_test_and_setsi): Likewise.
4788 (arm_sync_new_<sync_optab>si): Likewise.
4789 (arm_sync_new_nandsi): Likewise.
4790 (arm_sync_old_<sync_optab>si): Likewise.
4791 (arm_sync_old_nandsi): Likewise.
4792 (arm_sync_compare_and_swap<mode> NARROW): use sync_predtab, fix indent.
4793 (arm_sync_lock_test_and_setsi<mode> NARROW): Likewise.
4794 (arm_sync_new_<sync_optab><mode> NARROW): Likewise.
4795 (arm_sync_new_nand<mode> NARROW): Likewise.
4796 (arm_sync_old_<sync_optab><mode> NARROW): Likewise.
4797 (arm_sync_old_nand<mode> NARROW): Likewise.
4799 2011-10-14 David Alan Gilbert <david.gilbert@linaro.org>
4802 * config/arm/arm.c (arm_output_sync_loop): Move label before barrier.
4804 2011-10-14 David Alan Gilbert <david.gilbert@linaro.org>
4806 * config/arm/arm.h (TARGET_HAVE_DMB_MCR): MCR Not available in Thumb1.
4808 2011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
4810 * doc/invoke.texi ([Wformat-zero-length]): Tidy.
4812 2011-10-14 Jakub Jelinek <jakub@redhat.com>
4814 * gimple.c (walk_stmt_load_store_addr_ops): Call visit_addr also
4815 on COND_EXPR/VEC_COND_EXPR comparison operands if they are ADDR_EXPRs.
4817 2011-10-14 Richard Guenther <rguenther@suse.de>
4819 PR tree-optimization/50723
4820 * ipa-split.c (split_function): Use GSI_CONTINUE_LINKING.
4822 2011-10-14 Nicola Pero <nicola.pero@meta-innovation.com>
4824 * gengtype.c (files_rules): Added rules for objc/objc-map.h and
4827 2011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
4830 * doc/invoke.texi ([Wformat-zero-length]): Update.
4832 2011-10-14 Iain Sandoe <iains@gcc.gnu.org>
4835 * config/darwin.c (darwin_patch_builtin): Adjust argument type. Only
4836 build for powerpc targets. (darwin_patch_builtins): Only build for
4839 2011-10-14 Jakub Jelinek <jakub@redhat.com>
4841 * config/i386/sse.md (*avx_cvtdq2pd256_2): Rename to...
4842 (avx_cvtdq2pd256_2): ... this.
4843 (sseunpackfltmode): New mode attr.
4844 (vec_unpacks_float_hi_v8hi, vec_unpacks_float_lo_v8hi,
4845 vec_unpacku_float_hi_v8hi, vec_unpacku_float_lo_v8hi): Macroize
4846 using VI2_AVX2 iterator.
4847 (vec_unpacku_float_hi_v8si, vec_unpacku_float_lo_v8si): New expanders.
4849 2011-10-13 David S. Miller <davem@davemloft.net>
4851 * config/sparc/sparc.md (plusminus): New code iterator.
4852 (plusminus_insn): New code attr.
4853 (addv2si3, subv2si3, addv4hi3, subv4hi3, addv2hi3, subv2hi3): Merge
4854 using plusminus and plusminus_insn.
4855 (fpadd64_vis, fpsub64_vis): Likewise.
4857 2011-10-13 Richard Henderson <rth@redhat.com>
4859 * doc/md.texi (vec_perm): Document fallback to byte permutation.
4860 * genopinit.c (optabs): Add vec_perm_const.
4861 * optabs.c (can_vec_perm_expr_p): Rename from expand_vec_perm_expr_p.
4862 Reject non-vector modes. Allow fallback to byte permutation.
4863 (expand_vec_perm_expr_1): Split out from ...
4864 (expand_vec_perm_expr): ... here. Allow fallback to byte permutation.
4865 * optabs.h (DOI_vec_perm_const, vec_perm_const_optab): New.
4866 * tree-vect-generic.c (lower_vec_perm): Update for name change.
4868 2011-10-13 Richard Henderson <rth@redhat.com>
4870 * config/rs6000/altivec.md (vec_permv16qi): New pattern.
4872 * config/rs6000/spu.md (vec_permv16qi): New pattern.
4874 * config/i386/i386.c (ix86_expand_vec_perm_const): New.
4875 * config/i386/i386-protos.h: Update.
4876 * config/i386/sse.md (VEC_PERM_CONST): New mode iterator.
4877 (vec_perm_const<VEC_PERM_CONST>): New expander.
4879 * optabs.c (expand_vector_broadcast): New.
4880 (expand_binop): Expand scalar shifts of vectors to vector shifts
4881 of vectors, if the former isn't supported.
4882 * tree-vect-generic.c (expand_vector_operations_1): Don't do that
4883 here; always simplify to scalar shift of vector if possible.
4885 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Fix mode
4886 test for vector splat.
4888 2011-10-13 Jakub Jelinek <jakub@redhat.com>
4890 * config/i386/sse.md (vec_set<mode>): Change V_128 iterator mode to V.
4892 2011-10-13 Jakub Jelinek <jakub@redhat.com>
4893 Richard Guenther <rguenther@suse.de>
4895 * tree-ssa.c (maybe_optimize_var): Drop TREE_ADDRESSABLE from vector
4896 or complex vars even if their DECL_UID is in not_reg_needs bitmap.
4898 2011-10-13 Jakub Jelinek <jakub@redhat.com>
4900 * config/i386/sse.md (reduc_umin_v8hi): New pattern.
4901 * config/i386/i386.c (ix86_build_const_vector): Handle
4902 also V32QI, V16QI, V16HI and V8HI modes.
4903 (emit_reduc_half): New function.
4904 (ix86_expand_reduc): Use phminposuw insn for V8HImode UMIN.
4905 Use emit_reduc_half helper function.
4907 2011-10-13 Lawrence Crowl <crowl@google.com>
4908 Diego Novillo <dnovillo@google.com>
4910 * lto-streamer-in.c (input_struct_function_base): Factor out of ...
4911 (input_function): ... here.
4912 * lto-streamer-out.c (output_struct_function_base): Factor out of ...
4913 (output_function): ... here.
4915 2011-10-13 Gabriel Charette <gchare@google.com>
4916 Diego Novillo <dnovillo@google.com>
4918 * streamer-hooks.h (struct streamer_hooks): Add hooks
4919 input_location and output_location.
4920 * lto-streamer-in.c (lto_input_location): Use
4921 streamer_hooks.input_location, if set.
4922 * lto-streamer-out.c (lto_output_location): Use
4923 streamer_hooks.output_location, if set.
4925 2011-10-13 Eric Botcazou <ebotcazou@adacore.com>
4927 * doc/invoke.texi (SPARC options): Document -mfix-at697f.
4928 * config/sparc/sparc.opt (mfix-at697f): New option.
4929 * config/sparc/sparc.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
4930 (sparc_reorg): New function.
4932 2011-10-13 Richard Guenther <rguenther@suse.de>
4934 PR tree-optimization/50712
4935 * ipa-split.c (split_function): Always re-gimplify parameters
4936 when they are not gimple vals before passing them. Properly
4937 check for type compatibility.
4939 2011-10-13 Tom de Vries <tom@codesourcery.com>
4941 * function.c (gimplify_parameters): Set number of arguments of call to
4942 BUILT_IN_ALLOCA_WITH_ALIGN to 2.
4944 2011-10-13 Tom de Vries <tom@codesourcery.com>
4946 * emit-rtl.c (set_mem_attributes_minus_bitpos): Set MEM_READONLY_P
4947 for static const strings.
4948 * varasm.c (build_constant_desc): Generate the memory location of the
4949 constant using gen_const_mem.
4951 2011-10-13 Richard Guenther <rguenther@suse.de>
4953 PR tree-optimization/50698
4954 * tree-data-ref.c (split_constant_offset_1): Also process
4957 2011-10-12 David S. Miller <davem@davemloft.net>
4959 * config/sparc/sparc.md (UNSPEC_FPMERGE): Delete.
4960 (UNSPEC_MUL16AU, UNSPEC_MUL8, UNSPEC_MUL8SU, UNSPEC_MULDSU): New
4962 (fpmerge_vis): Remove inaccurate comment, represent using vec_select
4964 (vec_interleave_lowv8qi, vec_interleave_highv8qi): New insns.
4965 (fmul8x16_vis, fmul8x16au_vis, fmul8sux16_vis, fmuld8sux16_vis):
4966 Reimplement as unspecs and remove inaccurate comments.
4967 (vis3_shift_patname): New code attr.
4968 (<vis3_shift_insn><vbits>_vis): Rename to
4969 "v<vis3_shift_patname><mode>3".
4970 (vis3_addsub_ss_patname): New code attr.
4971 (<vis3_addsub_ss_insn><vbits>_vis): Rename to
4972 "<vis3_addsub_ss_patname><mode>3".
4973 * config/sparc/sparc.c (sparc_vis_init_builtins): Update to
4974 accommodate pattern name changes.
4976 * config/sparc/sparc.h: Do not force TARGET_VIS3 and TARGET_FMAF
4977 to zero when assembler lacks support for such instructions.
4978 * config/sparc/sparc.c (sparc_option_override): Clear MASK_VIS3
4979 and MASK_FMAF in defaults when assembler lacks necessary support.
4981 2011-10-12 Jakub Jelinek <jakub@redhat.com>
4983 * config/i386/sse.md (vec_unpacks_lo_<mode>,
4984 vec_unpacks_hi_<mode>, vec_unpacku_lo_<mode>,
4985 vec_unpacku_hi_<mode>): Change VI124_128 mode to VI124_AVX2.
4986 * config/i386/i386.c (ix86_expand_sse_unpack): Handle
4987 V32QImode, V16HImode and V8SImode for TARGET_AVX2.
4989 * config/i386/sse.md (vec_avx2): New mode_attr.
4990 (mulv16qi3): Macroize to cover also mulv32qi3 for TARGET_AVX2 into ...
4991 (mul<mode>3): ... this.
4993 * config/i386/i386.md (UNSPEC_VPERMDI): Remove.
4994 * config/i386/i386.c (ix86_expand_vec_perm): Handle
4995 V16QImode and V32QImode for TARGET_AVX2.
4996 (MAX_VECT_LEN): Increase to 32.
4997 (expand_vec_perm_blend): Add support for 32-byte integer
4998 vectors with TARGET_AVX2.
4999 (valid_perm_using_mode_p): New function.
5000 (expand_vec_perm_pshufb): Add support for 32-byte integer
5001 vectors with TARGET_AVX2.
5002 (expand_vec_perm_vpshufb2_vpermq): New function.
5003 (expand_vec_perm_vpshufb2_vpermq_even_odd): New function.
5004 (expand_vec_perm_even_odd_1): Handle 32-byte integer vectors
5006 (ix86_expand_vec_perm_builtin_1): Try expand_vec_perm_vpshufb2_vpermq
5007 and expand_vec_perm_vpshufb2_vpermq_even_odd.
5008 * config/i386/sse.md (VEC_EXTRACT_EVENODD_MODE): Add for TARGET_AVX2
5009 32-byte integer vector modes.
5010 (vec_pack_trunc_<mode>): Use VI248_AVX2 instead of VI248_128.
5011 (avx2_interleave_highv32qi, avx2_interleave_lowv32qi): Remove pasto.
5012 (avx2_pshufdv3, avx2_pshuflwv3, avx2_pshufhwv3): Generate
5014 (avx2_pshufd_1, avx2_pshuflw_1, avx2_pshufhw_1): Don't use
5015 match_dup, instead add 4 new operands and require they have
5016 right cross-lane values.
5017 (avx2_permv4di): Change into define_expand.
5018 (avx2_permv4di_1): New instruction.
5019 (avx2_permv2ti): Use nonimmediate_operand instead of register_operand
5020 for "xm" constrained operand.
5021 (VEC_PERM_AVX2): Add V32QI and V16QI for TARGET_AVX2.
5023 * config/i386/sse.md (avx2_gathersi<mode>,
5024 avx2_gatherdi<mode>, avx2_gatherdi<mode>256): Add clobber of
5025 match_scratch, change memory_operand to register_operand,
5026 add (mem:BLK (scratch)) use.
5027 (*avx2_gathersi<mode>, *avx2_gatherdi<mode>,
5028 *avx2_gatherdi<mode>256): Add clobber of match_scratch,
5029 add earlyclobber to the output operand and match_scratch,
5030 add (mem:BLK (scratch)) use, change the other mem to match_operand.
5031 Use %p6 instead of %c6 in the pattern.
5032 * config/i386/i386.c (ix86_expand_builtin): Adjust for
5033 operand 2 being a Pmode register_operand instead of memory_operand.
5035 2011-10-12 Kai Tietz <ktietz@redhat.com>
5037 * config/i386/i386.md (simple_return): Disable if TARGET_SEH is active.
5039 2011-10-12 Steve Ellcey <sje@cup.hp.com>
5041 * config/ia64/ia64.c (ia64_init_builtins): Fix unbalanced parentheses.
5043 2011-10-12 Richard Guenther <rguenther@suse.de>
5045 * tree-ssa-alias.c (maybe_skip_until): Cache also at the point
5046 of the first store we visit in a basic-block.
5047 (get_continuation_for_phi): Search for a candidate VUSE that
5048 might dominates all others. Do pairwise disambiguation against
5051 2011-10-12 Paul Koning <pkoning@gcc.gnu.org>
5053 PR tree-optimization/50189
5054 * tree-vrp.c (extract_range_from_assert): Use the type of
5055 the variable, not the limit.
5057 2011-10-12 Richard Guenther <rguenther@suse.de>
5059 PR tree-optimization/50700
5060 * tree-object-size.c (addr_object_size): Simplify and treat
5061 MEM_REF bases consistently.
5063 2011-10-12 Bernd Schmidt <bernds@codesourcery.com>
5065 * function.c (prepare_shrink_wrap, bb_active_p): New function.
5066 (thread_prologue_and_epilogue_insns): Use bb_active_p. Call
5067 prepare_shrink_wrap, then recompute bb_active_p for the last block.
5069 2011-10-12 Joseph Myers <joseph@codesourcery.com>
5072 * convert.c (convert_to_integer): Do not narrow operands of
5073 pointer subtraction.
5075 2011-10-12 Nick Clifton <nickc@redhat.com>
5077 * config/arm/arm.h (EMIT_EABI_ATTRIBUTE): New macro. Used to
5078 emit a .eabi_attribute assembler directive, possibly with a
5080 * config/arm/arm.c (arm_file_start): Use the new macro.
5081 * config/arm/arm-c.c (arm_output_c_attributes): Likewise.
5083 2011-10-12 Georg-Johann Lay <avr@gjlay.de>
5086 * config/avr/avr.md (*movqi): Rename to movqi_insn.
5087 (*call_insn): Rename to call_insn.
5088 (*call_value_insn): Rename to call_value_insn.
5089 * config/avr/avr.c (avr_2word_insn_p): New static function.
5090 (jump_over_one_insn_p): Use it.
5092 2011-10-12 Richard Sandiford <richard.sandiford@linaro.org>
5094 * expr.h (copy_blkmode_to_reg): Declare.
5095 * expr.c (copy_blkmode_to_reg): New function.
5096 (expand_assignment): Don't expand register RESULT_DECLs before
5097 the lhs. Use copy_blkmode_to_reg to copy BLKmode values into a
5098 RESULT_DECL register.
5099 (expand_expr_real_1): Handle BLKmode decls when looking for promotion.
5100 * stmt.c (expand_return): Move BLKmode-to-register code into
5101 copy_blkmode_to_reg.
5103 2011-10-11 Eric Botcazou <ebotcazou@adacore.com>
5106 * config/sparc/sparc.md (mov<I:mode>cc): Do not save comparison code.
5107 (mov<F:mode>cc): Likewise.
5109 2011-10-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5111 * tree-ssa-address.c (copy_ref_info): Remove copy of TREE_THIS_NOTRAP.
5113 2011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
5115 * tree.h (built_in_decls): Delete old interface with two parallel
5116 arrays to hold standard builtin declarations, and replace it with
5117 a function based interface that can support creating builtins on
5118 the fly in the future. Change all uses, and poison the old
5119 names. Make sure 0 is not a legitimate builtin index.
5120 (implicit_built_in_decls): Ditto.
5121 (built_in_info): Ditto.
5122 (BUILTIN_VALID_P): Ditto.
5123 (builtin_decl_explicit): Ditto.
5124 (builtin_decl_implicit): Ditto.
5125 (set_builtin_decl): Ditto.
5126 (set_builtin_decl_implicit_p): Ditto.
5127 (builtin_decl_explicit_p): Ditto.
5128 (builtin_decl_implicit_p): Ditto.
5129 * tree-complex.c (expand_complex_libcall): Ditto.
5130 * tree-loop-distribution.c (generate_memset_zero): Ditto.
5131 * tree-ssa-strlen.c (get_string_length): Ditto.
5132 (handle_builtin_strcpy): Ditto.
5133 (handle_builtin_strcat): Ditto.
5134 * tree.c (iterative_hash_expr): Ditto.
5135 (local_define_builtin): Ditto.
5136 (build_common_builtin_nodes): Ditto.
5137 * builtins.c (built_in_decls): Ditto.
5138 (implicit_built_in_decls): Ditto.
5139 (built_in_info): Ditto
5140 (expand_builtin_classify_type): Ditto.
5141 (mathfn_built_in_1): Ditto.
5142 (expand_builtin_cexpi): Ditto.
5143 (expand_builtin_mempcpy_args): Ditto.
5144 (expand_builtin_stpcpy): Ditto.
5145 (gimplify_va_arg_expr): Ditto.
5146 (expand_builtin_sync_operation): Ditto.
5147 (build_builtin_expect_predicate): Ditto.
5148 (fold_builtin_memory_op): Ditto.
5149 (fold_builtin_strcpy): Ditto.
5150 (fold_builtin_stpcpy): Ditto.
5151 (fold_builtin_strncpy): Ditto.
5152 (fold_builtin_interclass_mathfn): Ditto.
5153 (fold_builtin_classify): Ditto.
5154 (fold_builtin_2): Ditto.
5155 (fold_builtin_strstr): Ditto.
5156 (fold_builtin_strrchr): Ditto.
5157 (fold_builtin_strpbrk): Ditto.
5158 (fold_builtin_strcat): Ditto.
5159 (fold_builtin_strncat): Ditto.
5160 (fold_builtin_strcspn): Ditto.
5161 (fold_builtin_fputs): Ditto.
5162 (fold_builtin_sprintf): Ditto.
5163 (fold_builtin_snprintf): Ditto.
5164 (expand_builtin_memory_chk): Ditto.
5165 (fold_builtin_memory_chk): Ditto.
5166 (fold_builtin_stxcpy_chk): Ditto.
5167 (fold_builtin_strncpy_chk): Ditto.
5168 (fold_builtin_strcat_chk): Ditto.
5169 (fold_builtin_strncat_chk): Ditto.
5170 (fold_builtin_sprintf_chk_1): Ditto.
5171 (fold_builtin_snprintf_chk_1): Ditto.
5172 (fold_builtin_printf): Ditto.
5173 (fold_builtin_fprintf): Ditto.
5174 (fold_call_stmt): Ditto.
5175 (set_builtin_user_assembler_name): Ditto.
5176 * tree-emutls.c (emutls_common_1): Ditto.
5177 * omp-low.c (scan_omp): Ditto.
5178 (lower_rec_input_clauses): Ditto.
5179 (lower_reduction_clauses): Ditto.
5180 (expand_parallel_call): Ditto.
5181 (expand_task_call): Ditto.
5182 (maybe_catch_exception): Ditto.
5183 (optimize_omp_library_calls): Ditto.
5184 (expand_omp_for_generic): Ditto.
5185 (expand_omp_for_static_nochunk): Ditto.
5186 (expand_omp_for_static_chunk): Ditto.
5187 (expand_omp_sections): Ditto.
5188 (expand_omp_atomic_fetch_op): Ditto.
5189 (expand_omp_atomic_pipeline): Ditto.
5190 (expand_omp_atomic_mutex): Ditto.
5191 (lower_omp_single_simple): Ditto.
5192 (lower_omp_single_copy): Ditto.
5193 (lower_omp_master): Ditto.
5194 (lower_omp_ordered): Ditto.
5195 (lower_omp_critical): Ditto.
5196 * tree-ssa-ccp.c (optimize_stdarg_builtin): Ditto.
5197 * builtins.c (DEF_BUILTIN_STUB): Ditto.
5198 (BUILT_IN_NONE): Ditto.
5199 * tree-ssa-math-opts.c (execute_optimize_bswap): Ditto.
5200 * gimple-low.c (lower_function_body): Ditto.
5201 (lower_builtin_setjmp): Ditto.
5202 * c-decl.c (merge_decls): Ditto.
5203 * tree-eh.c (lower_resx): Ditto.
5204 (lower_resx): Ditto.
5205 (lower_eh_dispatch): Ditto.
5206 * function (gimplify_parameters): Ditto.
5207 * c-typeck.c (build_function_call_vec): Ditto.
5208 * gimplify.c (build_stack_save_restore): Ditto.
5209 (gimplify_vla_decl): Ditto.
5210 (gimplify_modify_expr_to_memcpy): Ditto.
5211 (gimplify_modify_expr_to_memset): Ditto.
5212 (gimplify_variable_sized_compare): Ditto.
5213 (gimplify_function_tree): Ditto.
5214 * calls.c (emit_call_1): Ditto.
5215 * tree-ssa-forprop.c (simplify_builtin_call): Ditto.
5216 * tree-nested.c (convert_nl_goto_reference): Ditto.
5217 (convert_tramp_reference_op): Ditto.
5218 (finalize_nesting_tree_1): Ditto.
5219 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Ditto.
5220 (tree_ssa_prefetch_arrays): Ditto.
5221 * tree-streamer-in.c (streamer_get_builtin_tree): Ditto.
5222 * system.h (built_in_decls): Ditto.
5223 (implicit_built_in_decls): Ditto.
5224 * tree-vect-generic.c (expand_vector_operations_1): Ditto.
5225 * config/sparc/sparc.c (sparc_gimplify_va_arg): Ditto.
5226 * config/i386/i386.c (ix86_gimplify_va_arg): Ditto.
5227 (ix86_veclibabi_svml): Ditto.
5228 (ix86_veclibabi_acml): Ditto.
5229 * config/vms/vms.c (vms_patch_builtins): Ditto.
5230 * config/ia64/ia64.c (ia64_init_builtins): Ditto.
5231 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Ditto.
5232 (rs6000_builtin_vectorized_libmass): Ditto.
5233 (rs6000_init_builtins): Ditto.
5234 * config/darwin.c (darwin_override_options): Ditto.
5235 (darwin_patch_builtin): Ditto.
5236 (darwin_rename_builtins): Ditto.
5237 * config/pa/pa.c (pa_init_builtins): Ditto.
5239 2011-10-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5241 * tree.h (copy_ref_info): Expose existing function.
5242 * tree-ssa-loop-ivopts.c (copy_ref_info): Move function to...
5243 * tree-ssa-address.c (copy_ref_info): ...here, and remove static token.
5245 2011-10-11 Georg-Johann Lay <avr@gjlay.de>
5247 * config/avr/avr-protos.h (avr_mode_code_base_reg_class): New
5249 (avr_regno_mode_code_ok_for_base_p): New prototype.
5250 * config/avr/avr.h (BASE_REG_CLASS): Remove.
5251 (REGNO_OK_FOR_BASE_P): Remove.
5252 (REG_OK_FOR_BASE_NOSTRICT_P): Remove.
5253 (REG_OK_FOR_BASE_STRICT_P): Remove.
5254 (MODE_CODE_BASE_REG_CLASS): New define.
5255 (REGNO_MODE_CODE_OK_FOR_BASE_P): New define.
5256 * config/avr/avr.c (avr_mode_code_base_reg_class): New function.
5257 (avr_regno_mode_code_ok_for_base_p): New function.
5258 (avr_reg_ok_for_addr_p): New static function.
5259 (avr_legitimate_address_p): Use it. Beautify.
5261 2011-10-11 Georg-Johann Lay <avr@gjlay.de>
5264 * config/avr/avr.md (cc): Add out_plus attribute alternative.
5265 (addsi3): Use it. Adapt avr_out_plus to new prototype. Use
5266 avr_out_plus for all CONST_INT addends.
5267 * config/avr/avr-protos.h (avr_out_plus): Change prototype.
5268 * config/avr/avr.c (notice_update_cc): Call avr_out_plus on
5270 (avr_out_plus_1): Change prototype and report effect on cc0.
5271 (avr_out_plus): Ditto.
5272 (adjust_insn_length): Adapt call to avr_out_plus to new prototype.
5274 2011-10-11 H.J. Lu <hongjiu.lu@intel.com>
5276 * config/i386/i386.c (ix86_expand_special_args_builtin): Remove
5279 2011-10-11 Artjoms Sinkarovs <artyom.shinkaroff@gmail.com>
5281 * doc/invoke.texi: Document new warning.
5282 * common.opt (Wvector-operation-performance): Define new warning.
5283 * tree-vect-generic.c (expand_vector_piecewise): Warn about expanded
5285 (exapnd_vector_parallel): Warn about expanded vector operation.
5286 (lower_vec_shuffle): Warn about expanded vector operation.
5287 * c-typeck.c (c_build_vec_perm_expr): Store correct location
5288 when creating VEC_PERM_EXPR.
5290 2011-10-11 Richard Guenther <rguenther@suse.de>
5292 PR tree-optimization/50204
5293 * tree-ssa-alias.c (get_continuation_for_phi_1): Split out
5294 two argument handling from ...
5295 (get_continuation_for_phi): ... here. Handle arbitrary number
5298 2011-10-11 Richard Sandiford <richard.sandiford@linaro.org>
5300 * modulo-sched.c: Fix comment typo. Mention the possibility
5301 of using scheduling windows of II+1 cycles.
5303 2011-10-11 Tristan Gingold <gingold@adacore.com>
5305 * doc/invoke.texi (C Dialect Options): Document
5306 -fallow-parameterless-variadic-functions.
5307 * c-parser.c (c_parser_parms_list_declarator): Handle it.
5309 2011-10-10 Georg-Johann Lay <avr@gjlay.de>
5311 * config/avr/avr.c (avr_option_override): Set flag_omit_frame_pointer
5312 to 0 if frame pointer is needed for unwinding.
5314 2011-10-10 Uros Bizjak <ubizjak@gmail.com>
5317 * optabs.h (DOI_vec_perm): Rename from OTI_vec_perm. Move from enum
5318 optab_index to enum direct_optab_index.
5319 (vec_perm_optab): Update.
5321 2011-10-10 Anatoly Sokolov <aesok@post.ru>
5323 * config/cris/cris.c (cris_preferred_reload_class): New function.
5324 (TARGET_PREFERRED_RELOAD_CLASS): Define.
5325 * config/cris/cris.h (PREFERRED_RELOAD_CLASS): Remove.
5327 2011-10-10 Georg-Johann Lay <avr@gjlay.de>
5329 * config/avr/avr.md (*tablejump_rjmp): Change insn condition to
5331 (*tablejump_lib): Change insn condition to AVR_HAVE_JMP_CALL.
5332 (*tablejump_enh, *tablejump): Remove insns.
5333 * config/avr/libgcc.S (__tablejump__): Use RET instead of EIND +
5334 EIJMP for indirect jump. Use LPM Z+ where available.
5336 2011-10-10 Richard Henderson <rth@redhat.com>
5338 * doc/md.texi (vec_perm_const): Fix typo in cindex.
5340 2011-10-10 Kirill Yukhin <kirill.yukhin@intel.com>
5341 Yakovlev Vladimir <vladimir.b.yakovlev@intel.com>
5343 * config/i386/sse.md (fma_fnmsub_<mode>): Fix a typo.
5345 2011-10-10 Richard Guenther <rguenther@suse.de>
5348 * gimple-fold.c (gimplify_and_update_call_from_tree): Do not
5349 mark symbols for renaming. Append the VUSE to all statements
5350 that possibly can have one.
5352 2011-10-10 Richard Guenther <rguenther@suse.de>
5354 * ipa-split.c (pass_split_functions): Add verification TODOs.
5355 (pass_feedback_split_functions): Likewise.
5357 2011-10-10 Richard Guenther <rguenther@suse.de>
5360 * fold-const.c (fold_binary_loc): Canonicalize x*x to pow (x, 2)
5361 only when optimizing.
5363 2011-10-10 Nick Clifton <nickc@redhat.com>
5366 * compare-elim.c (find_comparisons_in_bb): Use df_get_live_in and
5367 df_get_live_out instead of accessing the bitmaps directly.
5368 (execute_compare_elim_after_reload): Remove calls to df_set_flags,
5369 df_live_add_problem and df_analyze.
5371 2011-10-10 Michael Matz <matz@suse.de>
5374 * tree-emutls.c (gen_emutls_addr): Call add_referenced_var.
5376 2011-10-10 Richard Sandiford <richard.sandiford@linaro.org>
5378 * modulo-sched.c (ps_reg_move_info): Add num_consecutive_stages.
5379 (SCHED_FIRST_REG_MOVE, SCHED_NREG_MOVES): Delete.
5380 (node_sched_params): Remove first_reg_move and nreg_moves.
5381 (ps_num_consecutive_stages, extend_node_sched_params): New functions.
5382 (update_node_sched_params): Move up file.
5383 (print_node_sched_params): Print the stage. Don't dump info related
5384 to first_reg_move and nreg_moves.
5385 (set_columns_for_row): New function.
5386 (set_columns_for_ps): Move up file and use set_columns_for_row.
5387 (schedule_reg_move): New function.
5388 (schedule_reg_moves): Call extend_node_sched_params and
5389 schedule_reg_move. Extend size of uses bitmap. Initialize
5390 num_consecutive_stages. Return false if a move could not be
5392 (apply_reg_moves): Don't emit moves here.
5393 (permute_partial_schedule): Handle register moves.
5394 (duplicate_insns_of_cycles): Remove for_prolog. Emit moves according
5395 to the same stage-count test as ddg nodes.
5396 (generate_prolog_epilog): Update calls accordingly.
5397 (sms_schedule): Allow move-scheduling to add a new first stage.
5399 2011-10-10 Richard Sandiford <richard.sandiford@linaro.org>
5401 * modulo-sched.c (ps_insn): Adjust comment.
5402 (ps_reg_move_info): New structure.
5403 (partial_schedule): Add reg_moves field.
5404 (SCHED_PARAMS): Use node_sched_param_vec instead of node_sched_params.
5405 (node_sched_params): Turn first_reg_move into an identifier.
5406 (ps_reg_move): New function.
5407 (ps_rtl_insn): Cope with register moves.
5408 (ps_first_note): Adjust comment and assert that the instruction
5409 isn't a register move.
5410 (node_sched_params): Replace with...
5411 (node_sched_param_vec): ...this vector.
5412 (set_node_sched_params): Adjust accordingly.
5413 (print_node_sched_params): Take a partial schedule instead of a ddg.
5414 Use ps_rtl_insn and ps_reg_move.
5415 (generate_reg_moves): Rename to...
5416 (schedule_reg_moves): ...this. Remove rescan parameter. Record each
5417 move in the partial schedule, but don't emit it here. Don't perform
5418 register substitutions here either.
5419 (apply_reg_moves): New function.
5420 (duplicate_insns_of_cycles): Use register indices directly,
5421 rather than finding instructions using PREV_INSN. Use ps_reg_move.
5422 (sms_schedule): Call schedule_reg_moves before committing to
5423 a partial schedule. Try the next ii if the schedule fails.
5424 Use apply_reg_moves instead of generate_reg_moves. Adjust
5425 call to print_node_sched_params. Free node_sched_param_vec
5426 instead of node_sched_params.
5427 (create_partial_schedule): Initialize reg_moves.
5428 (free_partial_schedule): Free reg_moves.
5430 2011-10-10 Richard Sandiford <richard.sandiford@linaro.org>
5432 * modulo-sched.c (ps_insn): Replace node field with an identifier.
5433 (SCHED_ASAP): Replace with..
5434 (NODE_ASAP): ...this macro.
5435 (SCHED_PARAMS): New macro.
5436 (SCHED_TIME, SCHED_FIRST_REG_MOVE, SCHED_NREG_MOVES, SCHED_ROW)
5437 (SCHED_STAGE, SCHED_COLUMN): Redefine using SCHED_PARAMS.
5438 (node_sched_params): Remove asap.
5439 (ps_rtl_insn, ps_first_note): New functions.
5440 (set_node_sched_params): Use XCNEWVEC. Don't copy across the
5442 (print_node_sched_params): Use SCHED_PARAMS and NODE_ASAP.
5443 (generate_reg_moves): Pass ids to the SCHED_* macros.
5444 (update_node_sched_params): Take a ps insn identifier rather than
5445 a node as parameter. Use ps_rtl_insn.
5446 (set_columns_for_ps): Update for above field and SCHED_* macro changes.
5447 (permute_partial_schedule): Use ps_rtl_insn and ps_first_note.
5448 (optimize_sc): Update for above field and SCHED_* macro changes.
5449 Update calls to try_scheduling_node_in_cycle and
5450 update_node_sched_params.
5451 (duplicate_insns_of_cycles): Adjust for above field and SCHED_*
5452 macro changes. Use ps_rtl_insn and ps_first_note.
5453 (sms_schedule): Pass ids to the SCHED_* macros.
5454 (get_sched_window): Adjust for above field and SCHED_* macro changes.
5455 Use NODE_ASAP instead of SCHED_ASAP.
5456 (try_scheduling_node_in_cycle): Remove node parameter. Update
5457 call to ps_add_node_check_conflicts. Pass ids to the SCHED_* macros.
5458 (sms_schedule_by_order): Update call to try_scheduling_node_in_cycle.
5459 (ps_insert_empty_row): Adjust for above field changes.
5460 (compute_split_row): Use ids rather than nodes.
5461 (verify_partial_schedule): Adjust for above field changes.
5462 (print_partial_schedule): Use ps_rtl_insn.
5463 (create_ps_insn): Take an id rather than a node.
5464 (ps_insn_find_column): Adjust for above field changes.
5466 (ps_insn_advance_column): Adjust for above field changes.
5467 (add_node_to_ps): Remove node parameter. Update call to
5469 (ps_has_conflicts): Use ps_rtl_insn.
5470 (ps_add_node_check_conflicts): Replace node parameter than an id.
5472 2011-10-10 Richard Sandiford <richard.sandiford@linaro.org>
5474 * modulo-sched.c (undo_replace_buff_elem): Delete.
5475 (generate_reg_moves): Don't build and return an undo list.
5476 (free_undo_replace_buff): Delete.
5477 (sms_schedule): Adjust call to generate_reg_moves.
5478 Don't call free_undo_replace_buff.
5480 2011-10-10 Matthias Klose <doko@ubuntu.com>
5482 * common/config/m32c: Remove empty directory.
5484 2011-10-10 Georg-Johann Lay <avr@gjlay.de>
5486 * config/avr/avr.md (*mulhi3_enh): Treat squaring smarter.
5488 2011-10-10 Georg-Johann Lay <avr@gjlay.de>
5491 * config/avr/avr-mcus.def (AVR_MCU): Set .data_section_start of
5492 atmega164a to 0x100.
5494 2011-10-09 Eric Botcazou <ebotcazou@adacore.com>
5496 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Do not make
5497 the replacement if the conversion to the LHS type is not useless.
5499 2011-10-09 Ira Rosen <ira.rosen@linaro.org>
5501 PR tree-optimization/50635
5502 * tree-vect-patterns.c (vect_handle_widen_mult_by_const): Add
5503 DEF_STMT to the list of statements to be replaced by the
5505 (vect_handle_widen_mult_by_const): Don't check TYPE_OUT.
5507 2011-10-09 Anatoly Sokolov <aesok@post.ru>
5509 * system.h: Commit forgotten hunk in previous patch.
5510 (OUTPUT_ADDR_CONST_EXTRA): Poison.
5512 2011-10-08 Nicola Pero <nicola.pero@meta-innovation.com>
5515 * doc/objc.texi (Garbage Collection): Updated example to protect
5516 +initialize against execution in subclasses.
5518 2011-10-07 Richard Henderson <rth@redhat.com>
5520 * doc/extend.texi (__builtin_shuffle): Improve the description to
5521 include the modulus of the selector. Mention OpenCL.
5522 * doc/md.texi (vec_perm, vec_perm_const): Document named patterns.
5524 * tree.def (VEC_PERM_EXPR): Rename from VEC_SHUFFLE_EXPR.
5525 * genopinit.c (optabs): Rename vshuffle to vec_perm.
5526 * c-typeck.c (c_build_vec_perm_expr): Rename from
5527 c_build_vec_shuffle_expr. Update for name changes.
5528 * optabs.c (expand_vec_perm_expr_p): Rename from
5529 expand_vec_shuffle_expr_p.
5530 (expand_vec_perm_expr): Rename from expand_vec_shuffle_expr.
5531 * optabs.h (OTI_vec_perm): Rename from DOI_vshuffle.
5532 (vec_perm_optab): Rename from vshuffle_optab.
5533 * expr.c, gimple-pretty-print.c, gimple.c, gimplify.c,
5534 c-tree.h, c-parser.c, tree-cfg.c, tree-inline.c, tree-pretty-print.c,
5535 tree-ssa-operands.c, tree-vect-generic.c: Update for name changes.
5537 * config/i386/i386.c (ix86_expand_vec_perm): Rename from
5538 ix86_expand_vshuffle.
5539 * config/i386/i386-protos.h: Update.
5540 * config/i386/sse.md (VEC_PERM_AVX2): Rename from VSHUFFLE_AVX2.
5541 (vec_perm<VEC_PERM_AVX2>): Rename from vshuffle<VSHUFFLE_AVX2>.
5543 2011-10-07 Richard Henderson <rth@redhat.com>
5545 * config/i386/predicates.md (avx2_pblendw_operand): New.
5546 * config/i386/sse.md (sse4_1_pblendw): Un-macroize.
5547 (avx2_pblendw, *avx2_pblendw): New expander and insn.
5549 2011-10-07 Richard Henderson <rth@redhat.com>
5551 * config/i386/i386.c (bdesc_args): Update code for
5552 __builtin_ia32_palignr256. Change type of __builtin_ia32_pslldqi256,
5553 and __builtin_ia32_psrldqi256 to V4DI_FTYPE_V4DI_INT_CONVERT.
5554 (ix86_expand_args_builtin): Handle V4DI_FTYPE_V4DI_INT_CONVERT.
5555 * config/i386/sse.md (mode iterator V16): Add V2TI.
5556 (mode iterator SSESCALARMODE): Use V2TI not V4DI.
5557 (mode attr ssse3_avx2): Add V2TI.
5558 (avx2_lshrqv4di3, avx2_lshlqv4di3): Remove.
5560 2011-10-07 David S. Miller <davem@davemloft.net>
5563 * configure.ac: Add .register directives to VIS3 test.
5564 * configure: Regenerate.
5566 2011-10-07 Richard Henderson <rth@redhat.com>
5568 * config.gcc (x86_64-*): Add core-avx-i, core-avx2 for with_cpu.
5570 2011-10-07 Richard Henderson <rth@redhat.com>
5573 * fold-const.c (fold_checksum_tree): Remove out-of-date assert.
5575 2011-10-07 Andrew Stubbs <ams@codesourcery.com>
5577 * config/arm/predicates.md (shift_amount_operand): Remove constant
5579 (shift_operator): Check range of constants for all shift operators.
5581 2011-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5583 * config/s390/s390.c (s390_emit_tls_call_insn): Remove assertion.
5584 Load GOT pointer for non-pic builds.
5585 (s390_load_got): Replace pic_offset_table_rtx with hardcoded r12.
5586 (s390_emit_call): Likewise.
5588 2011-10-07 Tom de Vries <tom@codesourcery.com>
5591 * tree.c (build_common_builtin_nodes): Add local_define_builtin for
5592 BUILT_IN_ALLOCA_WITH_ALIGN. Mark that BUILT_IN_ALLOCA_WITH_ALIGN can
5594 * builtins.c (expand_builtin_alloca): Handle BUILT_IN_ALLOCA_WITH_ALIGN
5595 arglist. Set align for BUILT_IN_ALLOCA_WITH_ALIGN.
5596 (expand_builtin): Handle BUILT_IN_ALLOCA_WITH_ALIGN.
5597 (is_inexpensive_builtin): Handle BUILT_IN_ALLOCA_WITH_ALIGN.
5598 * tree-ssa-ccp.c (evaluate_stmt): Set align for
5599 BUILT_IN_ALLOCA_WITH_ALIGN.
5600 (fold_builtin_alloca_for_var): Rename to ...
5601 (fold_builtin_alloca_with_align): Set DECL_ALIGN from 2nd
5602 BUILT_IN_ALLOCA_WITH_ALIGN argument.
5603 (ccp_fold_stmt): Try folding BUILT_IN_ALLOCA_WITH_ALIGN using
5604 fold_builtin_alloca_with_align.
5605 (optimize_stack_restore): Handle BUILT_IN_ALLOCA_WITH_ALIGN.
5606 * builtins.def (BUILT_IN_ALLOCA_WITH_ALIGN): Declare using
5608 * ipa-pure-const.c (special_builtin_state): Handle
5609 BUILT_IN_ALLOCA_WITH_ALIGN.
5610 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1)
5611 (call_may_clobber_ref_p_1): Same.
5612 * function.c (gimplify_parameters): Lower vla to
5613 BUILT_IN_ALLOCA_WITH_ALIGN.
5614 * gimplify.c (gimplify_vla_decl): Same.
5615 * cfgexpand.c (expand_call_stmt): Handle BUILT_IN_ALLOCA_WITH_ALIGN.
5616 * tree-mudflap.c (mf_xform_statements): Same.
5617 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary)
5618 (mark_all_reaching_defs_necessary_1, propagate_necessity): Same.
5619 * varasm.c (incorporeal_function_p): Same.
5620 * tree-object-size.c (alloc_object_size): Same.
5621 * gimple.c (gimple_build_call_from_tree): Same.
5623 2011-10-07 Bernd Schmidt <bernds@codesourcery.com>
5625 * function.c (frame_required_for_rtx): Remove function.
5626 (requires_stack_frame_p): New arg set_up_by_prologue. All callers
5627 changed. Compute a set of mentioned registers and compare against
5628 the new arg rather than calling frame_required_for_rtx.
5629 (thread_prologue_and_epilogue_insns): Compute the set_up_by_prologue
5630 reg set. Convert the unconverted_simple_returns mechanism to store
5631 jump insns rather than their basic blocks. Also check the
5632 orig_entry_edge destination for new blocks.
5634 2011-10-07 Jakub Jelinek <jakub@redhat.com>
5636 PR tree-optimization/50650
5637 * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): Don't
5638 call vect_is_simple_cond here, instead fail if cond_expr isn't
5639 COMPARISON_CLASS_P or if get_vectype_for_scalar_type returns NULL
5640 for cond_expr's first operand.
5641 * tree-vect-stmts.c (vect_is_simple_cond): Static again.
5642 * tree-vectorizer.h (vect_is_simple_cond): Remove prototype.
5644 2011-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5646 * config/s390/s390.md (DWH, dwh): New mode macros.
5647 ("umulsidi3"): Extend to support "umulditi3" as well.
5649 2011-10-07 Uros Bizjak <ubizjak@gmail.com>
5650 H.J. Lu <hongjiu.lu@intel.com>
5653 * config/i386/i386.c (ix86_fixup_binary_operands): Force src2 of
5654 integer PLUS RTX to a register to improve address combine.
5656 2011-10-06 Richard Henderson <rth@redhat.com>
5658 * combine-stack-adjust.c (maybe_move_args_size_note): Add after
5659 parameter; use it to decide whether to merge two notes.
5660 (combine_stack_adjustments_for_block): Use maybe_move_args_size_note
5661 for the deallocation case as well.
5663 2011-10-06 Anatoly Sokolov <aesok@post.ru>
5665 * system.h (OUTPUT_ADDR_CONST_EXTRA): Poison.
5666 * doc/tm.texi.in (OUTPUT_ADDR_CONST_EXTRA): Remove documentation.
5667 * doc/tm.texi: Regenerate.
5668 * target.def (output_addr_const_extra): Use
5669 hook_bool_FILEptr_rtx_false.
5670 * targhooks.c (default_asm_output_addr_const_extra): Remove.
5671 * targhooks.h (default_asm_output_addr_const_extra): Remove.
5672 * hooks.c (hook_bool_FILEptr_rtx_false): New functions.
5673 * hooks.h (hook_bool_FILEptr_rtx_false): Declare.
5675 2011-10-06 David S. Miller <davem@davemloft.net>
5677 * config/sparc/sparc.md (popcount<mode>2, clz<mode>2): Split up into...
5678 (popcountdi2, popcountsi2, clzdi2, clzsi2): Explicit expanders, in the
5679 SI mode 64-bit code gen case explicitly zero-extend and truncate.
5680 (*popcount<mode>_sp64): Split up into...
5681 (*popcountdi_sp64, *popcountsi_64): Explicit instantiations, and in the
5682 SImode case use truncate.
5683 (*clzsi_sp64): Rewrite to use truncate, and let the expander emit the
5684 subtract so the compiler can optimize it.
5685 (SIDI): Remove unused mode iterator.
5687 2011-10-06 Bernd Schmidt <bernds@codesourcery.com>
5689 * function.c (thread_prologue_and_epilogue_insns): Emit split prologue
5690 on the orig_entry_edge. Don't account for it in prologue_clobbered.
5692 2011-10-06 Jakub Jelinek <jakub@redhat.com>
5694 PR tree-optimization/50596
5695 * tree-vectorizer.h (vect_is_simple_cond): New prototype.
5696 (NUM_PATTERNS): Change to 6.
5697 * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): New
5699 (vect_vect_recog_func_ptrs): Add vect_recog_mixed_size_cond_pattern.
5700 (vect_mark_pattern_stmts): Don't create stmt_vinfo for def_stmt
5701 if it already has one, and don't set STMT_VINFO_VECTYPE in it
5702 if it is already set.
5703 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Handle
5704 COND_EXPR in pattern stmts.
5705 (vect_is_simple_cond): No longer static.
5707 2001-10-06 Richard Henderson <rth@redhat.com>
5709 * config/i386/i386.c (ix86_expand_vshuffle): Add AVX2 support.
5710 * config/i386/sse.md (sseshuffint): Remove.
5711 (sseintvecmode): Support V16HI, V8HI, V32QI, V16QI.
5712 (VSHUFFLE_AVX2): New mode iterator.
5713 (vshuffle<mode>): Use it.
5714 (avx_vec_concat<V_256>): Rename from *vec_concat<V_256>_avx.
5716 * config/i386/i386.c (ix86_expand_sse_movcc): Use correct mode
5717 for vector_all_ones_operand.
5718 (ix86_expand_int_vcond): Distinguish between comparison mode
5719 and data mode. Allow them to differ.
5720 (ix86_expand_vshuffle): Don't force data mode to match maskmode.
5722 2001-10-06 Richard Henderson <rth@redhat.com>
5724 * optabs.c (expand_vec_shuffle_expr): Use the proper mode for the
5725 mask operand. Tidy the code.
5727 2011-10-06 Jakub Jelinek <jakub@redhat.com>
5729 * tree-vect-patterns.c (vect_pattern_recog_1): Use
5730 vect_recog_func_ptr typedef for the first argument.
5731 (vect_pattern_recog): Rename vect_recog_func_ptr variable
5732 to vect_recog_func, use vect_recog_func_ptr typedef for it.
5734 PR tree-optimization/49279
5735 * tree-ssa-structalias.c (find_func_aliases): Don't handle
5737 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Allow
5738 restrict propagation.
5739 * tree-ssa.c (useless_type_conversion_p): Don't return false
5740 if TYPE_RESTRICT differs.
5742 2011-10-06 Bernd Schmidt <bernds@codesourcery.com>
5744 * function.c (thread_prologue_and_epilogue_insns): Build a vector
5745 of unconverted simple return blocks rather than trying to
5746 recompute them later based on bb_flags bitmap tests.
5748 2011-10-06 Michael Matz <matz@suse.de>
5750 * tree-flow.h (get_var_ann): Don't declare.
5751 * tree-flow-inline.h (get_var_ann): Remove.
5752 (set_is_used): Use var_ann, not get_var_ann.
5753 * tree-dfa.c (add_referenced_var): Inline body of get_var_ann.
5754 * tree-profile.c (gimple_gen_edge_profiler): Call
5755 find_referenced_var_in.
5756 (gimple_gen_interval_profiler): Ditto.
5757 (gimple_gen_pow2_profiler): Ditto.
5758 (gimple_gen_one_value_profiler): Ditto.
5759 (gimple_gen_average_profiler): Ditto.
5760 (gimple_gen_ior_profiler): Ditto.
5761 (gimple_gen_ic_profiler): Ditto plus call add_referenced_var.
5762 (gimple_gen_ic_func_profiler): Call add_referenced_var.
5763 * tree-mudflap.c (execute_mudflap_function_ops): Call
5766 2011-10-06 Jakub Jelinek <jakub@redhat.com>
5768 * tree-vect-patterns.c (vect_handle_widen_mult_by_const): For lhs
5769 don't set SSA_NAME_DEF_STMT that has been already set by
5770 gimple_build_assign_with_ops.
5771 (vect_recog_pow_pattern, vect_recog_widen_sum_pattern,
5772 vect_operation_fits_smaller_type, vect_recog_over_widening_pattern):
5775 * tree.h (avoid_folding_inline_builtin): New prototype.
5776 * builtins.c (avoid_folding_inline_builtin): No longer static.
5777 * gimple-fold.c (gimple_fold_builtin): Give up if
5778 avoid_folding_inline_builtin returns true.
5780 2011-10-06 Richard Guenther <rguenther@suse.de>
5782 * tree-vect-generic.c (vector_element): Look at previous
5785 2011-10-06 David Edelsohn <dje.gcc@gmail.com>
5788 * config/rs6000/aix.h (TARGET_OS_AIX_CPP_BUILTINS): Define
5789 __powerpc__, __PPC__, __unix__.
5791 2011-10-06 Michael Matz <matz@suse.de>
5793 * i386/i386.opt (recip_mask, recip_mask_explicit,
5794 x_recip_mask_explicit): New variables and cl_target member.
5795 (mrecip=): New option.
5796 * i386/i386.h (RECIP_MASK_DIV, RECIP_MASK_SQRT, RECIP_MASK_VEC_DIV,
5797 RECIP_MASK_VEC_SQRT, RECIP_MASK_ALL, RECIP_MASK_NONE): New bitmasks.
5798 (TARGET_RECIP_DIV, TARGET_RECIP_SQRT, TARGET_RECIP_VEC_DIV,
5799 TARGET_RECIP_VEC_SQRT): New tests.
5800 * i386/i386.md (divsf3): Check TARGET_RECIP_DIV.
5801 (sqrt<mode>2): Check TARGET_RECIP_SQRT.
5802 * i386/sse.md (div<mode>3): Check TARGET_RECIP_VEC_DIV.
5803 (sqrt<mode>2): Check TARGET_RECIP_VEC_SQRT.
5804 * i386/i386.c (ix86_option_override_internal): Set recip_mask
5805 for -mrecip and -mrecip=options.
5806 (ix86_function_specific_save): Save recip_mask_explicit.
5807 (ix86_function_specific_restore): Restore recip_mask_explicit.
5809 * doc/invoke.texi (ix86 Options): Document the new option.
5811 2011-10-06 Bernd Schmidt <bernds@codesourcery.com>
5814 * config/arm/arm.md (arm_subsi3_insn): Lose the last alternative.
5816 2011-10-06 Ulrich Weigand <ulrich.weigand@linaro.org>
5819 * config/arm/arm.c (arm_legitimize_reload_address): Recognize
5820 output of a previous pass through legitimize_reload_address.
5821 Do not attempt to optimize addresses if the base register is
5822 equivalent to a constant.
5824 2011-10-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5826 * function.c (thread_prologue_and_epilogue_insns): Mark
5827 last_bb_active as possibly unused. It is unused for targets which
5828 do neither have "return" nor "simple_return" expanders.
5830 2011-10-06 Richard Guenther <rguenther@suse.de>
5832 * fold-const.c (fold_ternary_loc): Also fold non-constant
5833 vector CONSTRUCTORs. Make more efficient.
5834 * tree-ssa-dom.c (cprop_operand): Don't handle virtual operands.
5835 (cprop_into_stmt): Don't propagate into virtual operands.
5836 (optimize_stmt): Really dump original statement.
5838 2011-10-06 Nick Clifton <nickc@redhat.com>
5840 * config/rx/rx.md (smin3): Revert previous delta.
5842 2011-10-06 Richard Guenther <rguenther@suse.de>
5844 PR tree-optimization/38884
5845 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle partial
5846 reads from aggregate SSA names.
5848 2011-10-05 Jakub Jelinek <jakub@redhat.com>
5850 * tree-vect-patterns.c (vect_pattern_recog_1): Add stmts_to_replace
5851 argument, truncate it at the beginning instead of allocating there
5852 and freeing at the end.
5853 (vect_pattern_recog): Allocate stmts_to_replace here and free at end,
5854 pass its address to vect_pattern_recog_1.
5856 2011-10-05 David S. Miller <davem@davemloft.net>
5858 * config/sparc/sparc.opt (POPC): New option.
5859 * doc/invoke.texi: Document it.
5860 * config/sparc/sparc.c (sparc_option_override): Enable MASK_POPC by
5861 default on Niagara-2 and later.
5862 * config/sparc/sparc.h (CLZ_DEFINED_VALUE_AT_ZERO): Define.
5863 * config/sparc/sparc.md (SIDI): New mode iterator.
5864 (ffsdi2): Delete commented out pattern and comments.
5865 (popcount<mode>2, clz<mode>2): New expanders.
5866 (*popcount<mode>_sp64, popcountsi_v8plus, popcountdi_v8plus,
5867 *clzdi_sp64, clzdi_v8plus, *clzsi_sp64, clzsi_v8plus): New insns.
5869 2011-10-06 Artjoms Sinkarovs <artyom.shinkaroff@gmail.com>
5872 * c-tree.h (c_expr_t): New typedef for struct c_expr.
5873 (C_EXPR_APPEND): New macro.
5874 * c-parser.c (c_parser_get_builtin_args): Preserve
5875 original_tree_code of c_expr structure.
5876 (c_parser_postfix_expression): Adjust to the new function.
5878 2011-10-05 Bernd Schmidt <bernds@codesourcery.com>
5880 * function.c (thread_prologue_and_epilogue_insns): Don't shrink-wrap
5881 if profiling after the prologue.
5883 2011-10-05 Jakub Jelinek <jakub@redhat.com>
5885 PR tree-optimization/50613
5886 * tree-ssa-strlen.c (find_equal_ptrs): If CASE_CONVERT
5887 operand is ADDR_EXPR, fallthru into ADDR_EXPR handling,
5888 and if it is neither that not SSA_NAME, give up.
5890 2011-10-05 Richard Henderson <rth@redhat.com>
5892 * tree-vect-generic.c (vector_element): Never fail. Use
5893 build_zero_cst. Tidy up type references.
5894 (lower_vec_shuffle): Never fail. Mask shuffle indicies. Reduce
5895 code duplication. Do update_stmt here ...
5896 (expand_vector_operations_1): ... not here.
5898 * config/i386/i386.c (ix86_expand_vshuffle): Never fail. Handle
5899 TARGET_XOP. Fix pshufb constant vector creation. Reduce code
5900 duplication. Handle V2DI without SSE4.1.
5901 * config/i386/i386-protos.h (ix86_expand_vshuffle): Update decl.
5902 * config/i386/i386.md (vshuffle<V_128>): Remove assert for ok.
5904 2011-10-05 Uros Bizjak <ubizjak@gmail.com>
5906 * config/i386/i386.c (distance_non_agu_define): Simplify calculation
5907 of "found". Simplify return value calculation.
5908 (distance_agu_use): Ditto.
5910 2011-10-05 Bernd Schmidt <bernds@codesourcery.com>
5913 * config/i386/i386.c (ix86_add_cfa_restore_note): Omit notes only
5914 if the function was not shrink-wrapped.
5915 (ix86_expand_epilogue): Ensure queued cfa_adjust notes are attached
5917 * function.c (thread_prologue_and_epilogue_insns): Make sure the
5918 shrink_wrapped flag is set even if there is no dump file.
5920 2011-10-05 DJ Delorie <dj@redhat.com>
5921 Nick Clifton <nickc@redhat.com>
5923 * config/rx/rx.opt (mpid): Define.
5924 * config/rx/t-rx (MULTILIB_OPTIONS): Add -mpid
5925 (MULTILIB_DIRNAMES): Add pid.
5926 * config/rx/rx.c (rx_gp_base_regnum_val, rx_pid_base_regnum_val)
5927 (rx_num_interrupt_regs): New variable.
5928 (rx_gp_base_regnum): New function. Returns the number of the
5929 small data area register.
5930 (rx_pid_base_regnum): New function. Returns the number of the pid
5932 (rx_decl_for_addr): New function. Returns the symbolic part of a MEM.
5933 (rx_pid_data_operand): New function. Returns whether an object is
5934 in the position independent data area.
5935 (rx_legitimize_address): New function. Puts undecided PID
5936 objects in the PID data area.
5937 (rx_is_legitimate_address): Add support for PID operands.
5938 (rx_print_operand_address): Likewise.
5939 (rx_print_operand): Likewise.
5940 (rx_maybe_pidify_operand): New function. Determine if an operand
5941 is suitable for PID addressing.
5942 (rx_gen_move_template): Add PID support.
5943 (rx_conditional_register_usage): Likewise.
5944 (rx_option_override): Initialise rx_num_interrupt_regs.
5945 (rx_is_legitimate_constant): Add support for PID constants.
5946 (TARGET_LEGITIMIZE_ADDRESS): Define.
5947 * config/rx/constraints.md (Rpid): Define.
5949 * config/rx/rx.md (UNSPEC_PID_ADDR): Define.
5950 (tablejump): Add PID support.
5952 (mov<>_internal): Likewise.
5953 (addsi3): Convert to an expander. Add PID support.
5954 (pid_addr): New pattern.
5955 * config/rx/rx.h (CPP_SPEC): Define.
5956 (ASM_SPEC): Pass -mpid and -mint-register on to assembler.
5957 (CASE_VECTOR_PC_RELATIVE): Define.
5958 (JUMP_TABLES_IN_TEXT_SECTION): Enable for PID mode.
5959 * config/rx/rx-protos.h (rx_maybe_pidify_operand): Prototype.
5960 * doc/invoke.texi (RX Options): Document -mpid command line option.
5962 2011-10-05 Richard Guenther <rguenther@suse.de>
5964 PR tree-optimization/38885
5965 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle partial reads
5968 2011-10-05 Bernd Schmidt <bernds@codesourcery.com>
5970 * doc/invoke.texi (-fshrink-wrap): Document.
5971 * opts.c (default_options_table): Add it.
5972 * common.opt (fshrink-wrap): Add.
5973 * function.c (emit_return_into_block): Remove useless declaration.
5974 (record_hard_reg_uses_1, record_hard_reg_uses, frame_required_for_rtx,
5975 requires_stack_frame_p, gen_return_pattern): New static functions.
5976 (emit_return_into_block): New arg simple_p. All callers changed.
5977 Use gen_return_pattern.
5978 (thread_prologue_and_epilogue_insns): Implement shrink-wrapping.
5979 * config/i386/i386.md (return): Expand into a simple_return.
5980 (simple_return): New expander):
5981 (simple_return_internal, simple_return_internal_long,
5982 simple_return_pop_internal_long, simple_return_indirect_internal):
5983 Renamed from return_internal, return_internal_long,
5984 return_pop_internal_long and return_indirect_internal; changed to use
5986 * config/i386/i386.c (ix86_expand_epilogue): Adjust to expand
5988 (ix86_pad_returns): Likewise.
5989 * function.h (struct rtl_data): Add member shrink_wrapped.
5990 * cfgcleanup.c (outgoing_edges_match): If shrink-wrapped, edges that
5991 are not jumps or sibcalls can't be compared.
5993 2011-10-05 Richard Guenther <rguenther@suse.de>
5995 * tree-ssa-sccvn.c (vn_get_expr_for): Handle CONSTRUCTOR of
5997 (simplify_unary_expression): Handle BIT_FIELD_REFs.
5998 (try_to_simplify): Handle BIT_FIELD_REFs.
6000 2011-10-05 Georg-Johann Lay <avr@gjlay.de>
6002 * config/avr/avr-protos.h (avr_out_addto_sp): New prototype.
6003 * config/avr/avr.c (avr_out_addto_sp): New function.
6004 (adjust_insn_length): Handle ADJUST_LEN_ADDTO_SP.
6005 * config/avr/avr.md (adjust_len): Add "addto_sp".
6006 (*movhi_sp): Remove insn.
6007 (*addhi3_sp_R_pc2, *addhi3_sp_R_pc3): Merge to *addhi3_sp_R.
6009 2011-10-05 Richard Guenther <rguenther@suse.de>
6011 * gimple-fold.c (gimple_fold_stmt_to_constant_1): For ternary ops
6012 with an embedded expression valueize and fold that as well.
6013 * tree-ssa-sccvn.c (try_to_simplify): Also allow SSA name
6014 results from gimple_fold_stmt_to_constant_1.
6016 2011-10-05 Nick Clifton <nickc@redhat.com>
6018 * config/rx/rx.md (tablejump): Add missing label.
6019 (adddi3_internal): Mark operand 0 as early-clobbered.
6020 (smaxsi3): Revert previous delta.
6021 (adc_internal): Fix whitespace in generated asm.
6022 (adc_flags): Likewise.
6024 2011-10-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6026 * expmed.c (expand_mult_highpart_optab): Replace optab_handler
6027 with the new widening_optab_handler.
6029 2011-10-05 Richard Guenther <rguenther@suse.de>
6031 PR tree-optimization/50609
6032 * gimple-fold.c (fold_array_ctor_reference): Also handle
6033 vector typed constructors.
6034 (fold_ctor_reference): Dispatch to fold_array_ctor_reference
6035 for vector typed constructors.
6037 2011-10-05 Uros Bizjak <ubizjak@gmail.com>
6039 * config/i386/i386.c (ix86_emit_binop): New static function.
6040 (ix86_split_lea_for_addr): Use ix86_emit_binop to emit add and shl
6042 (x86_output_mi_thunk): Use ix86_emit_binop to emit add instructions.
6044 2011-10-04 David S. Miller <davem@davemloft.net>
6046 * config/sparc/sparc.md (UNSPEC_FHADD, UNSPEC_FHSUB,
6047 UNSPEC_XMUL): New unspecs.
6048 (muldi3_v8plus): Use output_v8plus_mult.
6049 (*naddsf3, *nadddf3, *nmulsf3, *nmuldf3, *nmuldf3_extend):
6050 New VIS 3.0 combiner patterns.
6051 (fhaddsf_vis, fhadddf_vis, fhsubsf_vis, fhsubdf_vis,
6052 fnhaddsf_vis, fnhaddf_vis, umulxhi_vis, *umulxhi_sp64,
6053 umulxhi_v8plus, xmulx_vis, *xmulx_sp64, xmulx_v8plus,
6054 xmulxhi_vis, *xmulxhi_sp64, xmulxhi_v8plus): New VIS 3.0
6056 * config/sparc/sparc.c (sparc_vis_init_builtins): Emit new builtins.
6057 (output_v8plus_mult): New function.
6058 * config/sparc/sparc-protos.h: Declare it.
6059 * config/sparc/visintrin.h (__vis_fhadds, __vis_fhaddd,
6060 __vis_fhsubs, __vis_fhsubd, __vis_fnhadds, __vis_fnhaddd,
6061 __vis_umulxhi, __vis_xmulx, __vis_xmulxhi): New intrinsics.
6062 * doc/extend.texi: Document new builtins.
6064 2011-10-04 Richard Henderson <rth@redhat.com>
6066 * c-typeck.c (c_build_vec_shuffle_expr): Fix uninitialized variable.
6067 Avoid save_expr unless two_arguments.
6069 2011-10-04 Ozkan Sezer <sezeroz@gmail.com>
6071 * config/i386/mingw-w64.h (CPP_SPEC): Rename _REENTRANCE to _REENTRANT.
6072 * config/i386/mingw32.h (CPP_SPEC): Likewise.
6074 2011-10-04 David S. Miller <davem@davemloft.net>
6076 * config/sparc/driver-sparc.c (cpu_names): Fix string for supersparc
6079 2011-10-04 Jakub Jelinek <jakub@redhat.com>
6081 PR tree-optimization/50604
6082 * builtins.c (fold_builtin_strcpy, fold_builtin_stpcpy,
6083 fold_builtin_strncpy, fold_builtin_stxcpy_chk): Ensure
6084 last argument to memcpy has size_type_node type instead of ssizetype.
6085 * tree-ssa-strlen.c (handle_builtin_memcpy): Use size_type_node
6086 instead of TREE_TYPE (len) as type for newlen.
6088 PR tree-optimization/50522
6089 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Don't test
6091 (ptr_derefs_may_alias_p): Call pt_solutions_same_restrict_base
6094 * fold-const.c (fold_unary_loc): Don't optimize
6095 POINTER_PLUS_EXPR casted to TYPE_RESTRICT pointer by
6096 casting the inner pointer if it isn't TYPE_RESTRICT.
6097 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't through
6098 casts from non-TYPE_RESTRICT pointer to TYPE_RESTRICT pointer.
6100 2011-10-04 Joseph Myers <joseph@codesourcery.com>
6102 * config.gcc (i[34567]86-*-elf*, x86_64-*-elf*): Use i386/t-crtstuff.
6104 2011-10-04 Jan Hubicka <jh@suse.cz>
6106 * lto-streamer.h (lto_input_toplevel_asms): Add order_base parameter.
6107 * lto-streamer-in.c (lto_input_toplevel_asms): Stream in order.
6108 * lto-streamer-out.c (lto_output_toplevel_asms): Stream out order.
6109 * lto-cgraph.c (order_base): New static var.
6110 (lto_output_node): Stream in order.
6111 (lto_output_varpool_node): Stream out order.
6112 (input_node): Stream in order.
6113 (input_varpool_node): Stream out order.
6114 (input_cgraph_1): Initialize order base; update call of
6115 lto_input_toplevel_asms.
6117 2011-10-04 Georg-Johann Lay <avr@gjlay.de>
6120 * config/avr/avr-protos.h (avr_legitimize_reload_address): New
6122 * config/avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Copy worker code
6124 * config/avr/avr.c (avr_legitimize_reload_address) ...to this new
6125 function. Log if avr_log.legitimize_reload_address.
6127 2011-10-04 Eric Botcazou <ebotcazou@adacore.com>
6129 * config/sparc/sparc.c (sparc_fold_builtin): Use a sequence of tests.
6131 2011-10-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6133 * longlong.h (smul_ppmm, sdiv_qrnnd): Add underscores to the local
6134 variables. Fix second operand of DR. Swap inputs for sdiv_qrnnd.
6136 2011-10-03 David S. Miller <davem@davemloft.net>
6138 * config/sparc/sparc.md (fpack16_vis, fpackfix_vis, fpack32_vis): Make
6139 GSR_REG an input operand to UNSPEC instead of a parallel USE.
6140 (faligndata<V64I:mode>_vis): Likewise and use DI mode.
6141 (alignaddrsi_vis, alignaddrdi_vis, alignaddrlsi_vis, alignaddrldi_vis):
6142 Reference GSR_REG in DI mode, simplify convoluted expressions by using
6144 (bshuffle<V64I:mode>_vis): Reference GSR_REG in DI mode.
6146 2011-10-03 Maxim Kuvyrkov <maxim@codesourcery.com>
6148 * tree-eh.c (remove_unreachable_handlers): Obvious cleanup.
6150 2011-10-03 Jakub Jelinek <jakub@redhat.com>
6151 Ian Lance Taylor <iant@google.com>
6153 * godump.c (go_output_typedef): Support printing enum values that
6154 don't fit in a signed HOST_WIDE_INT.
6156 2011-10-03 Anatoly Sokolov <aesok@post.ru>
6158 * config/cris/cris.c (cris_output_addr_const_extra): Make static.
6159 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
6160 * config/cris/cris.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
6161 * config/cris/cris-protos.h (cris_output_addr_const_extra): Remove.
6163 2011-10-03 Anatoly Sokolov <aesok@post.ru>
6165 * config/m68k/m68k.c (m68k_output_addr_const_extra): Make static.
6166 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
6167 * config/m68k/m68k.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
6168 * config/m68k/m68k-protos.h (m68k_output_addr_const_extra): Remove.
6170 2011-10-03 Steve Ellcey <sje@cup.hp.com>
6173 * configure.ac (gcc_cv_ld_static_dynamic): Define for *-*-hpux*.
6174 (gcc_cv_ld_static_option): Ditto.
6175 (gcc_cv_ld_dynamic_option): Ditto.
6176 * configure: Regenerate.
6178 2011-10-03 David S. Miller <davem@davemloft.net>
6180 * config/sparc/sparc.md (bmask<P:mode>_vis): Split into explicit 'di'
6181 and 'si' patterns which describe the GSR changes explicitly in the
6182 RTL using zero_extract.
6183 (bshuffle<V64I:mode>_vis): Put the GSR use inside of the unspec.
6185 * config/sparc/sparc.md (bshuffle<V64I:mode>_vis): Don't wrap
6186 GSR_REG in a USE, since it's now a true arg to the UNSPEC.
6188 2011-10-03 Artjoms Sinkarovs <artyom.shinkaroff@gmail.com>
6190 * optabs.c (expand_vec_shuffle_expr_p): New function. Checks
6191 if given expression can be expanded by the target.
6192 (expand_vec_shuffle_expr): New function. Expand VEC_SHUFFLE_EXPR
6193 using target vector instructions.
6194 * optabs.h: New optab vshuffle.
6195 (expand_vec_shuffle_expr_p): New prototype.
6196 (expand_vec_shuffle_expr): New prototype.
6197 (vshuffle_optab): New optab.
6198 * genopinit.c: Adjust to support vecshuffle.
6199 * c-tree.h (c_build_vec_shuffle_expr): New prototype.
6200 * expr.c (expand_expr_real_2): Adjust.
6201 * c-typeck.c: (c_build_vec_shuffle_expr): Build a VEC_SHUFFLE_EXPR
6202 recognizing the cases of two and three arguments.
6203 (convert_arguments) (build_binary_op)
6204 (scalar_to_vector) (build_array_ref): Spurious whitespace.
6205 * gimplify.c (gimplify_exp): Adjusted to support VEC_SHUFFLE_EXPR.
6206 * tree.def: New tree code VEC_SHUFFLE_EXPR.
6207 * tree-inline.c (estimate_operator_cost): Recognize VEC_SHUFFLE_EXPR.
6208 * tree-vect-generic.c (vector_element): New function. Returns an
6209 element of the vector at the given position.
6210 (lower_vec_shuffle): Checks if VEC_SHUFLLE_EXPR is supported
6211 by the backend or expand an expression piecewise.
6212 (expand_vector_operations_1): Adjusted.
6213 (gate_expand_vector_operations_noop): New gate function.
6214 * Makefile.in (tree-vect-generic.o): New include.
6215 * gimple.c (get_gimple_rhs_num_ops): Adjust.
6216 * tree-cfg.c (verify_gimple_assign_trenary): Verify VEC_SHUFFLE_EXPR.
6217 * passes.c: Move veclower down.
6218 * tree-pretty-print.c (dump_generic_node): Recognize
6219 VEC_SHUFFLE_EXPR as valid expression.
6220 * c-parser.c (c_parser_get_builtin_args): Helper function for the
6221 builtins with variable number of arguments.
6222 (c_parser_postfix_expression): Use a new helper function for
6223 RID_CHOOSE_EXPR, RID_BUILTIN_COMPLEX and RID_BUILTIN_SHUFFLE.
6224 * tree-ssa-operands: Adjust.
6225 * c-family/c-common.c: New __builtin_shuffle keyword.
6226 * c-family/c-common.h: New __builtin_shuffle keyword.
6227 * gcc/doc/extend.texi: Adjust.
6229 * gcc/config/i386/sse.md: (sseshuffint) New mode_attr. Correspondence
6230 between the vector and the type of the mask when shuffling.
6231 (vecshuffle<mode>): New expansion.
6232 * gcc/config/i386/i386-protos.h (ix86_expand_vshuffle): New prototype.
6233 * gcc/config/i386/i386.c (ix86_expand_vshuffle): New function.
6234 (ix86_vectorize_builtin_vec_perm_ok): Adjust.
6236 2011-10-03 Jakub Jelinek <jakub@redhat.com>
6238 PR tree-optimization/50587
6239 * tree-ssa-reassoc.c (init_range_entry): Stop iterating when
6240 arg0 is not a SSA_NAME.
6242 2011-10-03 Richard Sandiford <rdsandiford@googlemail.com>
6244 * ipa-inline-analysis.c (MAX_TIME): Update comment.
6246 2011-10-02 Richard Henderson <rth@redhat.com>
6247 David S. Miller <davem@davemloft.net>
6249 * config/sparc/sparc.md (ashlsi3, *ashldi3_sp64): Remove
6250 conditional insn type setting, we always emit a shift.
6251 (*ashlsi3_extend, *lshrsi3_extend0): New patterns.
6252 (*lshrsi3_extend): Rename to *lshrsi3_extend1.
6253 * config/sparc/predicates.md (const_one_operand): Delete.
6255 2011-10-02 Gerald Pfeifer <gerald@pfeifer.com>
6257 * invoke.texi (SPARC Options): Refer to GNU/Linux.
6259 2011-10-02 Richard Sandiford <rdsandiford@googlemail.com>
6261 * config/mips/mips.c (mips_frame_barrier): New function.
6262 (mips_expand_prologue): Call it after allocating stack space.
6263 (mips_deallocate_stack): New function.
6264 (mips_expand_epilogue): Call mips_frame_barrier and
6265 mips_deallocate_stack.
6267 2011-10-02 Richard Sandiford <rdsandiford@googlemail.com>
6270 * config/mips/sync.md (sync_<optab>_12): Allow zero operands.
6271 (sync_old_<optab>_12, sync_new_<optab>_12, sync_nand_12): Likewise.
6272 (sync_old_nand_12, sync_new_nand_12, test_and_set_12): Likewise.
6274 2011-10-02 Jan Hubicka <jh@suse.cz>
6276 * cgraphunit.c (verify_edge_count_and_frequency): Bounds check.
6278 * cgraphunit.c (ipa_passes): Remove unrechable nodes.
6279 * lto-streamer-out.c (produce_symtab): Skip unused extern declarations.
6280 * ipa.c (cgraph_remove_unreachable_nodes): Do not assume that external
6281 functions are reachable when address is taken.
6282 * tree-sra.c (modify_function): Free dominance info.
6284 2011-10-02 Jan Hubicka <jh@suse.cz>
6286 * ipa-inline-analysis.c (inline_summary_alloc): Bounds check.
6288 * ipa-inline-analysis.c (reset_inline_edge_summary): New function.
6289 (reset_inline_summary): New function.
6290 (compute_inline_parameters, inline_node_removal_hook,
6291 inline_edge_removal_hook): Use it.
6292 (inline_free_summary): Reset holders correctly.
6293 (inline_generate_summary): Free summary before computing it.
6295 2011-10-02 Paolo Carlini <paolo.carlini@oracle.com>
6297 PR preprocessor/36819
6298 * incpath.c (merge_include_chains): Call free_path on
6299 heads[QUOTE] and tails[QUOTE].
6301 2011-10-02 Jan Hubicka <jh@suse.cz>
6304 * lto-symtab.c (lto_symtab_resolve_symbols): Do not resolve
6305 when resolution is already availbale from plugin.
6306 (lto_symtab_merge_decls_1): Handle LDPR_PREVAILING_DEF_IRONLY_EXP.
6307 * cgraph.c (ld_plugin_symbol_resolution): Add
6308 prevailing_def_ironly_exp.
6309 * lto-cgraph.c (LDPR_NUM_KNOWN): Update.
6310 * ipa.c (varpool_externally_visible_p): IRONLY variables are never
6312 * varasm.c (resolution_to_local_definition_p): Add
6313 LDPR_PREVAILING_DEF_IRONLY_EXP.
6314 (resolution_local_p): Likewise.
6316 2011-10-01 David S. Miller <davem@davemloft.net>
6318 * config/sparc/sparc.opt (VIS3): New option.
6319 * doc/invoke.texi: Document it.
6320 * config/sparc/sparc.h: Force TARGET_VIS3 to zero if assembler is
6321 not capable of such instructions.
6322 * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__
6323 to 0x300 when TARGET_VIS3.
6324 * config/sparc/sparc-modes.def: Create 16-byte vector modes.
6325 * config/sparc/sparc.md (UNSPEC_CMASK8, UNSPEC_CMASK16, UNSPEC_CMASK32,
6326 UNSPEC_FCHKSM16, UNSPEC_PDISTN, UNSPC_FUCMP): New unspecs.
6327 (V64N8, VASS): New mode iterators.
6328 (vis3_shift, vis3_addsub_ss): New code iterators.
6329 (vbits, vconstr): New mode attributes.
6330 (vis3_shift_insn, vis3_addsub_ss_insn): New code attributes.
6331 (cmask8<P:mode>_vis, cmask16<P:mode>_vis, cmask32<P:mode>_vis,
6332 fchksm16_vis, <vis3_shift_insn><vbits>_vis, pdistn<mode>_vis,
6333 fmean16_vis, fpadd64_vis, fpsub64_vis,
6334 <vis3_addsub_ss_insn><vbits>_vis, fucmp<code>8<P:mode>_vis): New
6335 VIS 3.0 instruction patterns.
6336 * config/sparc/sparc.c (sparc_option_override): Set MASK_VIS3 by
6337 default when targetting capable cpus. TARGET_VIS3 implies
6338 TARGET_VIS2 and TARGET_VIS, and clear them when TARGET_FPU is disabled.
6339 (sparc_vis_init_builtins): Emit new VIS 3.0 builtins.
6340 (sparc_fold_builtin): Do not eliminate cmask{8,16,32} when result
6342 * config/sparc/visintrin.h (__vis_cmask8, __vis_cmask16,
6343 __vis_cmask32, __vis_fchksm16, __vis_fsll16, __vis_fslas16,
6344 __vis_fsrl16, __vis_fsra16, __vis_fsll32, __vis_fslas32,
6345 __vis_fsrl32, __vis_fsra32, __vis_pdistn, __vis_fmean16,
6346 __vis_fpadd64, __vis_fpsub64, __vis_fpadds16, __vis_fpadds16s,
6347 __vis_fpsubs16, __vis_fpsubs16s, __vis_fpadds32, __vis_fpadds32s,
6348 __vis_fpsubs32, __vis_fpsubs32s, __vis_fucmple8, __vis_fucmpne8,
6349 __vis_fucmpgt8, __vis_fucmpeq8): New VIS 3.0 interfaces.
6350 * doc/extend.texi: Document new VIS 3.0 builtins.
6352 2011-10-01 Eric Botcazou <ebotcazou@adacore.com>
6354 * ira-color.c (assign_hard_reg): Fix typo.
6356 2011-09-30 H.J. Lu <hongjiu.lu@intel.com>
6358 * doc/extend.texi: Add missing ','.
6360 2011-09-30 Bernd Schmidt <bernds@codesourcery.com>
6362 * common/config/c6x/c6x-common.c (c6x_option_optimization_table):
6363 Enable -fmodulo-sched at -O2 and above.
6364 * config/c6x/c6x.md (doloop_end): New expander.
6365 (mvilc, sploop, spkernel, loop_end): New patterns.
6366 (loop_end with memory destination splitter): New.
6367 * config/c6x/c6x.c: Include "hw-doloop.h".
6368 (enum unitreqs): New.
6369 (unit_req_table): New typedef.
6370 (unit_reqs): New static variable.
6371 (unit_req_factor, get_unit_reqs, count_unit_reqs, merge_unit_reqs,
6372 res_mii, split_delayed_nonbranch, undo_split_delayed_nonbranch,
6373 hwloop_pattern_reg, bb_earliest_end_cycle, filter_insns_above,
6374 hwloop_optimize, hwloop_fail, c6x_hwloops): New static functions.
6375 (struct c6x_sched_context): New member last_scheduled_iter0.
6376 (init_sched_state): Initialize it.
6377 (c6x_variable_issue): Update it.
6378 (sploop_max_uid_iter0): New static variable.
6379 (c6x_sched_reorder_1): Be careful about issuing sploop.
6380 (c6x_reorg): Call c6x_hwlooops before the final schedule.
6382 2011-09-30 Georg-Johann Lay <avr@gjlay.de>
6385 * config/avr/avr-protos.h (avr_log_t): New field address_cost.
6386 * config/avr/avr.c (avr_address_cost): Use it.
6387 * config/avr/avr-log.c (avr_log_set_avr_log): Initialize it.
6388 (avr_log_vadump): Unknown %-codes finish printing.
6390 2011-09-30 Jakub Jelinek <jakub@redhat.com>
6393 * gimple-fold.c (fold_stmt_1) <case GIMPLE_ASM>: If
6394 input constraints allow mem and not reg, pass true instead of
6395 false as second argument to maybe_fold_reference.
6397 PR tree-optimization/46309
6398 * fold-const.c (make_range, merge_ranges): Remove prototypes.
6399 (make_range_step): New function.
6400 (make_range): Use it.
6401 * tree.h (make_range_step): New prototypes.
6402 * Makefile.in (tree-ssa-reassoc.o): Depend on $(DIAGNOSTIC_CORE_H).
6403 * tree-ssa-reassoc.c: Include diagnostic-core.h.
6404 (struct range_entry): New type.
6405 (init_range_entry, range_entry_cmp, update_range_test,
6406 optimize_range_tests): New functions.
6407 (reassociate_bb): Call optimize_range_tests.
6409 2011-09-30 Jakub Jelinek <jakub@redhat.com>
6410 Richard Guenther <rguenther@suse.de>
6412 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Handle
6413 BUILT_IN_STRDUP and BUILT_IN_STRNDUP.
6414 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Likewise. Fix
6415 handling of BUILT_IN_STRNCAT and BUILT_IN_STRNCAT_CHK.
6416 (ref_maybe_used_by_call_p_1): Fix handling of BUILT_IN_STRCAT,
6417 BUILT_IN_STRNCAT, BUILT_IN_STRCAT_CHK and BUILT_IN_STRNCAT_CHK.
6419 2011-09-30 Jan Beulich <jbeulich@suse.com>
6421 * lto-cgraph.c (output_cgraph): Remove processing of
6422 'cgraph_asm_nodes', call lto_output_toplevel_asms() instead.
6423 (input_cgraph_1): Remove loop calling cgraph_add_asm_node(), call
6424 lto_input_toplevel_asms() instead.
6425 * lto-section-in.c (lto_section_name): Add "asm" entry.
6426 * lto-streamer-in.c (lto_input_toplevel_asms): New.
6427 * lto-streamer-out.c (lto_output_toplevel_asms): New.
6428 * lto-streamer.h (LTO_minor_version): Bump.
6429 (enum lto_section_type): Add LTO_section_asm.
6430 (struct lto_asm_header): New.
6431 (lto_input_toplevel_asms, lto_output_toplevel_asms): Declare.
6432 * tree-streamer.h (streamer_write_string_cst): Declare.
6433 * tree-streamer-out.c (write_string_cst): Rename to
6434 streamer_write_string_cst and make global. Handle incoming string
6436 (streamer_write_tree_header): Adjust call to renamed function.
6438 2011-09-30 Bernd Schmidt <bernds@codesourcery.com>
6440 * haifa-sched.c (modulo_ii, modulo_max_states, modulo_n_insns,
6441 modulo_insns_scheduled, modulo_iter0_max_uid, modulo_backtracks_left,
6442 modulo_last_stage): New static variables.
6443 (set_modulo_params, discard_delay_pairs_above): New functions.
6444 (struct delay_pair): New member stages.
6445 (htab_i2_traverse, htab_i1_traverse): New static functions.
6446 (record_delay_slot_pair): New arg stages. All callers changed.
6448 (pair_delay): Take stages into account.
6449 (add_delay_dependencies): Don't do so for stage pairs.
6450 (struct sched_block_state): New member modulo_epilogue.
6451 (save_backtrack_point): Don't set SHADOW_P for stage pairs.
6452 (unschedule_insns_until): Decrease modulo_insns_scheduled.
6453 Set HARD_DEP without using or.
6454 (resolve_dependencies): New static function.
6455 (prune_ready_list): New arg modulo_epilogue_p. All callers changed.
6456 If it is true, allow only insns with INSN_EXACT_TICK set.
6457 (schedule_block): Return bool, always true for normal scheduling,
6458 true or false depending on modulo scheduling success otherwise.
6459 Add bookkeeping for modulo scheduling, and call resolve_dependencies
6460 on everything left over after a modulo schedule.
6461 (haifa_sched_init): Remove check_cfg call. Clear modulo_ii.
6462 * sched-int.h (schedule_block, record_delay_slot_pair): Adjust
6464 (set_modulo_params, discard_delay_pairs_above): Declare.
6465 * params.def (PARAM_MAX_MODULO_BACKTRACK_ATTEMPS): New.
6466 * doc/invoke.texi (--param): Document it.
6468 * sched-ebb.c (schedule_ebb): No longer static. Remove declaration.
6469 New arg modulo_scheduling. All callers changed. Move note handling
6470 code here from schedule_ebbs.
6471 (schedule_ebbs_finish, schedule_ebbs_init): New functions, broken
6472 out of schedule_ebbs.
6473 (schedule_ebbs): Call them. Remove note handling code moved to
6475 * sched-int.h (schedule_ebb, schedule_ebbs_init,
6476 schedule_ebbs_finish): Declare.
6478 2011-09-30 Richard Guenther <rguenther@suse.de>
6481 * tree-cfg.c (verify_gimple_comparison): Compare component
6482 mode sizes for vector comparisons.
6484 2011-09-30 Revital Eres <revital.eres@linaro.org>
6486 * ddg.c (autoinc_var_is_used_p): New function.
6487 (create_ddg_dep_from_intra_loop_link,
6488 add_cross_iteration_register_deps): Call it.
6489 * ddg.h (autoinc_var_is_used_p): Declare.
6490 * modulo-sched.c (generate_reg_moves): Call autoinc_var_is_used_p.
6491 (sms_schedule): Handle instructions with REG_INC.
6493 2011-09-30 Revital Eres <revital.eres@linaro.org>
6495 * modulo-sched.c (generate_reg_moves): Skip instructions that
6496 do not set a register and verify no regmoves are created for
6497 !single_set instructions.
6499 2011-09-30 Bernd Schmidt <bernds@codesourcery.com>
6501 * hw-doloop.c (scan_loop): Compute register usage only for non-debug
6504 2011-09-30 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
6507 * config/arm/iterators.md (qhs_zextenddi_cstr): New.
6508 (qhs_zextenddi_op): New.
6509 * config/arm/arm.md ("zero_extend<mode>di2"): Use them.
6510 * config/arm/predicates.md ("arm_extendqisi_mem_op"):
6511 Distinguish between ARM and Thumb2 states.
6513 2011-09-30 David S. Miller <davem@davemloft.net>
6515 * config/sparc/sparc.opt (VIS2): New option.
6516 * doc/invoke.texi: Document it.
6517 * config/sparc/sparc.md (UNSPEC_EDGE8N, UNSPEC_EDGE8LN,
6518 UNSPEC_EDGE16N, UNSPEC_EDGE16LN, UNSPEC_EDGE32N,
6519 UNSPEC_EDGE32LN, UNSPEC_BSHUFFLE): New unspecs.
6520 (define_attr type): New insn type 'edgen'.
6521 (bmask<P:mode>_vis, bshuffle<V64I:mode>_vis, edge8n<P:mode>_vis,
6522 edge8ln<P:mode>_vis, edge16n<P:mode>_vis, edge16ln<P:mode>_vis,
6523 edge32n<P:mode>_vis, edge32ln<P:mode>_vis): New insn VIS 2.0
6525 * niagara.md: Handle edgen.
6526 * niagara2.md: Likewise.
6527 * ultra1_2.md: Likewise.
6528 * ultra3.md: Likewise.
6529 * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__
6530 to 0x200 when TARGET_VIS2.
6531 * config/sparc/sparc.c (sparc_option_override): Set MASK_VIS2 by
6532 default when targetting capable cpus. TARGET_VIS2 implies
6533 TARGET_VIS, clear and it when TARGET_FPU is disabled.
6534 (sparc_vis_init_builtins): Emit new VIS 2.0 builtins.
6535 (sparc_expand_builtin): Fix predicate indexing when builtin returns
6537 (sparc_fold_builtin): Do not eliminate bmask when result is ignored.
6538 * config/sparc/visintrin.h (__vis_bmask, __vis_bshuffledi,
6539 __vis_bshufflev2si, __vis_bshufflev4hi, __vis_bshufflev8qi,
6540 __vis_edge8n, __vis_edge8ln, __vis_edge16n, __vis_edge16ln,
6541 __vis_edge32n, __vis_edge32ln): New VIS 2.0 interfaces.
6542 * doc/extend.texi: Document new VIS 2.0 builtins.
6544 2011-09-29 Nick Clifton <nickc@redhat.com>
6545 Bernd Schmidt <bernds@codesourcery.com>
6547 * config/frv/frvbegin.c: Fix location of unwind-dw2-fde.h header file.
6548 * config/frv/frvend.c: Likewise.
6549 * config/frv/frv.c (frv_function_prologue): Move misplaced
6550 CALL_ARG_LOCATION notes back to their proper locations.
6552 2011-09-29 Georg-Johann Lay <avr@gjlay.de>
6555 * config/avr/avr-log.c (avr_log_vadump): Use %b to print bool.
6556 * config/avr/avr.c (avr_rtx_costs_1): New static function, renamed
6558 (avr_legitimate_address_p): Use avr_edump to print log information
6559 filtered by avr_log.
6560 (extra_constraint_Q): Ditto.
6561 (avr_legitimize_address): Ditto.
6562 (avr_rtx_costs): Ditto. Rewrite as wrapper for avr_rtx_costs_1.
6563 (final_prescan_insn): Use avr_log.rtx_costs as filter.
6565 2011-09-29 Richard Sandiford <richard.sandiford@linaro.org>
6567 * config/arm/arm-protos.h (arm_modes_tieable_p): Declare.
6568 * config/arm/arm.h (MODES_TIEABLE_P): Use it.
6569 * config/arm/arm.c (arm_modes_tieable_p): New function. Allow
6570 NEON vector and structure modes to be tied.
6572 2011-09-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6574 * graphite-scop-detection.c (make_close_phi_nodes_unique): New
6575 forward declaration.
6576 (remove_duplicate_close_phi): Detect and repair creation of
6577 duplicate close-phis for a containing loop.
6579 2011-09-27 Andi Kleen <ak@linux.intel.com>
6581 * gcc.c (get_local_tick). Rename to get_random_number. Read from
6582 /dev/urandom. Add getpid call.
6583 (compare_debug_dump_opt_spec_function): Drop getpid call.
6585 2011-09-26 Andi Kleen <ak@linux.intel.com>
6587 * toplev.c (init_local_tick): Try reading random seed
6590 2011-09-26 Andi Kleen <ak@linux.intel.com>
6592 * hwint.h (HOST_WIDE_INT_PRINT_HEX_PURE): Add.
6593 * lto-streamer.c (lto_get_section_name): Remove crc32_string.
6594 Handle numerical random seed.
6595 * lto-streamer.h (lto_file_decl_data): Change id to
6596 unsigned HOST_WIDE_INT.
6597 * toplev.c (random_seed): Add.
6598 (init_random_seed): Change for numerical random seed.
6599 (get_random_seed): Return as HOST_WIDE_INT.
6600 (set_random_seed): Crc32 existing string.
6601 * toplev.h (get_random_seed): Change to numercal return.
6602 * tree.c (get_file_function_name): Remove CRC. Handle
6603 numerical random seed.
6605 2011-09-29 Georg-Johann Lay <avr@gjlay.de>
6608 * config.gcc (extra_objs): Add avr-log.o for $target in:
6609 avr-*-rtems*, avr-*-*.
6610 * config/avr/t-avr (avr-log.o): New rule to compile...
6611 * config/avr/avr-log.c: ...this new file.
6612 * config/avr/avr.opt (mlog=): New option.
6613 * config/avr/avr-protos.h (avr_edump, avr_fdump): New macros.
6614 (avr_log_set_caller_e, avr_log_set_caller_f): New prototypes.
6615 (avr_log_set_avr_log): New prototype.
6616 (avr_log_t): New typedef.
6617 (avr_log): New declaration.
6618 * config/avr/avr.c (avr_option_override): Call avr_log_set_avr_log.
6620 2011-09-29 Artjoms Sinkarovs <artyom.shinkaroff@gmail.com>
6622 * expr.c (do_store_flag): Expand vector comparison by
6623 building an appropriate VEC_COND_EXPR.
6624 * c-typeck.c (build_binary_op): Typecheck vector comparisons.
6625 (c_objc_common_truthvalue_conversion): Adjust.
6626 * tree-vect-generic.c (do_compare): Helper function.
6627 (expand_vector_comparison): Check if hardware supports
6628 vector comparison of the given type or expand vector piecewise.
6629 (expand_vector_operation): Treat comparison as binary
6630 operation of vector type.
6631 (expand_vector_operations_1): Adjust.
6633 2011-09-29 Richard Guenther <rguenther@suse.de>
6635 * tree.c (build_opaque_vector_type): Make opaque vectors
6636 variant types of the corresponding non-opaque type. Make
6637 sure to share opaque vector types properly.
6639 2011-09-29 David S. Miller <davem@davemloft.net>
6641 * config/sparc/sparc.md (UNSPEC_ARRAY8, UNSPEC_ARRAY16,
6642 UNSPEC_ARRAY32): New unspec.
6643 (define_attr type): New type 'array'.
6644 (array{8,16,32}<P:mode>_vis): New patterns.
6645 * config/sparc/ultra1_2.md: Add reservations for 'array'.
6646 * config/sparc/ultra3.md: Likewise.
6647 * config/sparc/niagara.md: Likewise.
6648 * config/sparc/niagara2.md: Likewise.
6649 * config/sparc/sparc.c (sparc_vis_init_builtins): Build new
6651 * config/sparc/visintrin.h (__vis_array8, __vis_array16,
6652 __vis_array32): New.
6653 * doc/extend.texi: Document new VIS builtins.
6655 * config/sparc/sparc.md (gcond_name): Delete unnecessary code attr.
6656 (VIS pixel-compare insn): Just use <gcond:name>.
6658 * config/sparc/sparc.md (VIS pixel-compare insn): There is only one
6659 code iterator used, so just use <code>. There are two mode iterators
6660 so explicitly use <GCM:gcm_name>.
6662 2011-09-29 Iain Sandoe <iains@gcc.gnu.org>
6664 * config/darwin9.h (STACK_CHECK_STATIC_BUILTIN): Enable for
6667 2011-09-28 David S. Miller <davem@davemloft.net>
6669 * config/sparc/sparc.md (UNSPEC_FCMPLE, UNSPEC_FCMPNE,
6670 UNSPEC_FCMPGT, UNSPEC_FCMPEQ): Delete and reduce to...
6671 (UNSPEC_FCMP): New unspec.
6672 (gcond): New code iterator.
6673 (gcond_name): New code attr.
6674 (GCM): New mode iterator.
6675 (gcm_name): New mode attr.
6676 (fcmp{le,ne,gt,eq}{16,32}_vis): Reimplement using iterators.
6678 2011-09-28 Oleg Endo <oleg.endo@t-online.de>
6681 * config/sh/sh.md (negdi2): Move expansion into split to
6682 allow more combination options. Add T_REG clobber.
6683 (abssi2): New expander.
6684 (*negdi2, *abssi2, *negabssi2): New insns.
6685 (cneg): Change from insn to insn_and_split. Rename to
6686 negsi_cond. Add alternative for non-SH4.
6688 2011-09-28 Richard Sandiford <richard.sandiford@linaro.org>
6690 * config/arm/neon.md (neon_move_lo_quad_<mode>): Delete.
6691 (neon_move_hi_quad_<mode>): Likewise.
6692 (move_hi_quad_<mode>, move_lo_quad_<mode>): Use subreg moves.
6694 2011-09-28 Nick Clifton <nickc@redhat.com>
6696 * config/rx/predicates.md (rx_minmax_operand): New predicate.
6697 Accepts immediates and a restricted subset of MEMs.
6698 * config/rx/rx.md (int_modes): New iterator.
6699 (smaxsi3, sminsi3): Delete and replace with...
6700 (smax<int_mode>3, smin<int_mode>3): New patterns.
6701 (umax<>3_u, umax<>3_ur, umax<>3, umin<>3): New patterns.
6703 2011-09-28 Richard Guenther <rguenther@suse.de>
6706 * fold-const.c (try_move_mult_to_index): Handle &a.array the
6707 same as &a.array[0].
6709 2011-09-28 Kai Tietz <ktietz@redhat.com>
6711 * configure.ac: Add test for new section attribute
6712 specifier "e" via define HAVE_GAS_SECTION_EXCLUDE.
6713 * config.in: Regenerated.
6714 * configure: Regenerated.
6715 * config/i386/winnt.c (i386_pe_asm_named_section): Emit
6716 new section flag "e" for excluded sections, if supported.
6717 Otherwise we mark section withc SECTION_EXCLUDE flag as never-load.
6719 2011-09-28 Richard Sandiford <rdsandiford@googlemail.com>
6721 * config/m32r/m32r.md: Use match_test rather than eq/ne symbol_ref
6724 2011-09-28 Richard Sandiford <rdsandiford@googlemail.com>
6726 * config/iq2000/iq2000.md: Use match_test rather than eq/ne symbol_ref
6729 2011-09-27 Sriraman Tallam <tmsriram@google.com>
6731 * output.h (SECTION_EXCLUDE): New macro.
6732 * varasm.c (default_elf_asm_named_section): Check for SECTION_EXCLUDE.
6734 2011-09-27 Richard Sandiford <rdsandiford@googlemail.com>
6736 * fwprop.c (forward_propagate_and_simplify): After checking
6737 reg/subreg combinations, check whether the modes are the same.
6739 2011-09-27 Bernd Schmidt <bernds@codesourcery.com>
6740 Richard Sandiford <rdsandiford@googlemail.com>
6742 * config/mips/mips.c (mips_add_cfa_restore): New function.
6743 (mips16e_save_restore_reg): Use it.
6744 (mips_restore_reg): Likewise. Split double FPRs for
6745 REG_CFA_RESTORE notes.
6747 2011-09-27 Richard Sandiford <rdsandiford@googlemail.com>
6751 * tree-sra.c (build_ref_for_model): Use the type of the field as
6752 the type of the COMPONENT_REF.
6754 2011-09-27 Jeff Law <law@redhat.com>
6756 * ifcvt.c (cheap_bb_rtx_cost_p): Add SCALE argument. Scale
6757 non-jumping insns by REG_BR_PROB_BASE and the maximum cost by SCALE.
6758 (find_if_case_1): Use the probability of the THEN clause when
6759 determining if speculation is profitable.
6760 (find_if_case_2): Similarly for the ELSE clause.
6762 2011-09-27 Jakub Jelinek <jakub@redhat.com>
6764 * common.opt: Add -foptimize-strlen option.
6765 * Makefile.in (OBJS): Add tree-ssa-strlen.o.
6766 (tree-sssa-strlen.o): Add dependencies.
6767 * opts.c (default_options_table): Enable -foptimize-strlen
6768 by default at -O2 if not -Os.
6769 * passes.c (init_optimization_passes): Add pass_strlen
6770 after pass_object_sizes.
6771 * timevar.def (TV_TREE_STRLEN): New timevar.
6772 * params.def (PARAM_MAX_TRACKED_STRLENS): New parameter.
6773 * tree-pass.h (pass_strlen): Declare.
6774 * tree-ssa-strlen.c: New file.
6775 * c-decl.c (merge_decls): If compatible stpcpy prototype
6776 is seen, set implicit_built_in_decls[BUILT_IN_STPCPY].
6778 2011-09-27 Tom de Vries <tom@codesourcery.com>
6781 * tree-ssa-tail-merge.c: New file.
6782 (struct same_succ_def): Define.
6783 (same_succ, const_same_succ): New typedef.
6784 (struct bb_cluster_def): Define.
6785 (bb_cluster, const_bb_cluster): New typedef.
6786 (struct aux_bb_info): Define.
6787 (BB_SIZE, BB_SAME_SUCC, BB_CLUSTER, BB_VOP_AT_EXIT): Define.
6788 (gvn_uses_equal): New function.
6789 (same_succ_print, same_succ_print_traverse, update_dep_bb)
6790 (stmt_update_dep_bb, local_def, same_succ_hash)
6791 (inverse_flags, same_succ_equal, same_succ_alloc, same_succ_delete)
6792 (same_succ_reset): New function.
6793 (same_succ_htab, same_succ_edge_flags)
6794 (deleted_bbs, deleted_bb_preds): New var.
6795 (debug_same_succ): New function.
6796 (worklist): New var.
6797 (print_worklist, add_to_worklist, find_same_succ_bb, find_same_succ)
6798 (init_worklist, delete_worklist, delete_basic_block_same_succ)
6799 (same_succ_flush_bbs, purge_bbs, update_worklist): New function.
6800 (print_cluster, debug_cluster, update_rep_bb)
6801 (add_bb_to_cluster, new_cluster, delete_cluster): New function.
6802 (all_clusters): New var.
6803 (alloc_cluster_vectors, reset_cluster_vectors, delete_cluster_vectors)
6804 (merge_clusters, set_cluster): New function.
6805 (gimple_equal_p, gsi_advance_bw_nondebug_nonlocal, find_duplicate)
6806 (same_phi_alternatives_1, same_phi_alternatives, bb_has_non_vop_phi)
6807 (deps_ok_for_redirect_from_bb_to_bb, deps_ok_for_redirect)
6808 (find_clusters_1, find_clusters): New function.
6809 (update_vuses, vop_phi, vop_at_entry, replace_block_by): New function.
6810 (update_bbs): New var.
6811 (apply_clusters): New function.
6812 (update_debug_stmt, update_debug_stmts): New function.
6813 (tail_merge_optimize): New function.
6814 tree-pass.h (tail_merge_optimize): Declare.
6815 * tree-ssa-pre.c (execute_pre): Use tail_merge_optimize.
6816 * Makefile.in (OBJS-common): Add tree-ssa-tail-merge.o.
6817 (tree-ssa-tail-merge.o): New rule.
6818 * opts.c (default_options_table): Set OPT_ftree_tail_merge by
6819 default at OPT_LEVELS_2_PLUS.
6820 * tree-ssa-sccvn.c (vn_valueize): Move to ...
6821 * tree-ssa-sccvn.h (vn_valueize): Here.
6822 * timevar.def (TV_TREE_TAIL_MERGE): New timevar.
6823 * common.opt (ftree-tail-merge): New switch.
6824 * params.def (PARAM_MAX_TAIL_MERGE_COMPARISONS)
6825 (PARAM_MAX_TAIL_MERGE_ITERATIONS): New parameter.
6826 * doc/invoke.texi (Optimization Options, -O2): Add -ftree-tail-merge.
6827 (-ftree-tail-merge, max-tail-merge-comparisons)
6828 (max-tail-merge-iterations): New item.
6830 2011-09-27 Jan Hubicka <jh@suse.cz>
6832 * ipa-inline-analysis.c (MAX_TIME): Reduce to avoid overflows.
6834 2011-09-27 Jan Hubicka <jh@suse.cz>
6836 * ipa-inline-analysis.c (eliminated_by_inlining_prob): Handle
6837 parameters passed by reference; handle loads from non-SSA scalars
6838 and update comments.
6840 2011-09-27 Bernd Schmidt <bernds@codesourcery.com>
6842 PR rtl-optimization/50249
6843 * reload1.c (reload_reg_reaches_end_p): Accept a reloadnum argument
6844 instead of opnum and type. All callers changed. Remove useless
6846 Search forward for other reloads of the same type for the same operand
6847 using the same register; if any are found, return false.
6848 (reload_regs_reach_end_p): Same argument changes; all callers changed.
6850 2011-09-27 Andi Kleen <ak@linux.intel.com>
6851 Jan Hubicka <jh@suse.cz>
6853 * doc/invoke.texi (ffat-lto-objects): Document.
6854 * toplev.c (compile_file): Do not output assembly when doing slim lto;
6855 Output __gnu_slim_lto when doing slim lto.
6856 * cgraphunit.c (ipa_passes): Do only analysis when producing slim lto.
6857 (cgraph_optimize): Return early when doing slim lto.
6858 * opts.c (finish_options): Complain about lack of linker plugin
6859 when doing slim lto.
6860 * common.opt (ffat-lto-objects): New.
6862 2011-09-27 Richard Sandiford <richard.sandiford@linaro.org>
6864 * ipa-inline-analysis.c (predicate_probability): Avoid comparison
6865 between signed and unsigned.
6867 2011-09-27 Ira Rosen <ira.rosen@linaro.org>
6869 * tree-vect-stmts.c (vectorizable_type_demotion): Handle basic block
6871 (vectorizable_type_promotion): Likewise.
6872 (vect_analyze_stmt): Call vectorizable_type_demotion and
6873 vectorizable_type_promotion for basic blocks.
6874 (supportable_widening_operation): Don't assume loop vectorization.
6875 * tree-vect-slp.c (vect_build_slp_tree): Allow multiple types for
6876 basic blocks. Update vectorization factor for basic block
6878 (vect_analyze_slp_instance): Allow multiple types for basic block
6879 vectorization. Recheck unrolling factor after construction of SLP
6882 2011-09-27 Richard Guenther <rguenther@suse.de>
6884 * tree-object-size.c (compute_object_sizes): Fix dumping of
6887 2011-09-27 Richard Guenther <rguenther@suse.de>
6889 PR tree-optimization/50363
6890 * tree-ssa-pre.c (create_expression_by_pieces): Handle
6891 pointer conversions in POINTER_PLUS_EXPRs properly.
6893 2011-09-27 Richard Sandiford <richard.sandiford@linaro.org>
6895 * config/arm/neon.md (neon_vget_highv16qi, neon_vget_highv8hi)
6896 (neon_vget_highv4si, neon_vget_highv4sf, neon_vget_highv2di)
6897 (neon_vget_lowv16qi, neon_vget_lowv8hi, neon_vget_lowv4si)
6898 (neon_vget_lowv4sf, neon_vget_lowv2di): Turn into define_expands
6899 that produce subreg moves. Define using VQX iterators.
6901 2011-09-27 Georg-Johann Lay <avr@gjlay.de>
6903 * config/avr/avr.md (ashrqi3): Split alternative "n"
6904 into its remaining parts C03, C04, C05, C06, C07 and describe
6905 impact in CC by attribute "cc" appropriately.
6906 * config/avr/avr.c (notice_update_cc): Clean-up: Don't patch CC0
6909 2011-09-27 Jakub Jelinek <jakub@redhat.com>
6911 * rtl.h (const_tiny_rtx): Change into array of 4 x MAX_MACHINE_MODE
6912 from 3 x MAX_MACHINE_MODE.
6913 (CONSTM1_RTX): Define.
6914 * emit-rtl.c (const_tiny_rtx): Change into array of
6915 4 x MAX_MACHINE_MODE from 3 x MAX_MACHINE_MODE.
6916 (gen_rtx_CONST_VECTOR): Use CONSTM1_RTX if all inner constants are
6918 (init_emit_once): Initialize CONSTM1_RTX for MODE_INT and
6919 MODE_VECTOR_INT modes.
6920 * simplify-rtx.c (simplify_binary_operation_1) <case IOR, XOR, AND>:
6921 Optimize if one operand is CONSTM1_RTX.
6922 * config/i386/i386.c (ix86_expand_sse_movcc): Optimize mask ? -1 : x
6925 2011-09-26 David S. Miller <davem@davemloft.net>
6927 * config/sparc/sparc.md (edge{8,16,32}{,l}): Return Pmode.
6928 (fcmp{le,ne,gt,eq}{16,32}): Likewise.
6929 * config/sparc/visintrin.h: Update edge and pixel-compare
6930 intrinsics to return 'long' instead of 'int'.
6931 * doc/extend.texi: Update documentation to match.
6932 * config/sparc/sparc.c (eligible_for_return_delay): When leaf or
6933 flat, allow any instruction. Otherwise, when V9 allow parallels
6934 which consist only of sets to registers outside of %o0 to %o5.
6935 (sparc_vis_init_builtins): Update VIS builtin types for edge
6938 * config/sparc/sparc.c (sparc_conditional_register_usage): When VIS
6939 is enabled, mark %gsr as global.
6940 * config/sparc/sparc.md (UNSPEC_WRGSR): Delete.
6941 (wrgsr_vis, *wrgsr_sp64, wrgsr_v8plus): Don't wrap in an unspec.
6943 * config/sparc/sparc-c.c: New file implementing sparc_target_macros,
6944 which will now define __VIS and __VIS__ when -mvis is enabled.
6945 * config/sparc/t-sparc: Likewise.
6946 * config.gcc: Add sparc-c.o to c_target_objs and cxx_target_objs,
6947 and add t-sparc to tmake_file for all sparc targets.
6948 * config/sparc/sparc-protos.h (sparc_target_macros): Declare.
6949 * config/sparc/sparc.h (TARGE_CPU_CPP_BUILTINS): Call it.
6951 * config/sparc/sparc.c (sparc_vis_init_builtins): Add explicit
6952 builtins for VIS vector addition and subtraction.
6953 * config/sparc/visintrin.h (__vis_fpadd16, __vis_fpadd16s,
6954 __vis_fpadd32, __vis_fpadd32s, __vis_fpsub16, __vis_fpsub16s,
6955 __vis_fpsub32, __vis_fpsub32s): New.
6956 * doc/extend.texi: Document new VIS intrinsics.
6958 2011-09-26 Georg-Johann Lay <avr@gjlay.de>
6960 * config/avr/avr.md (peephole casesi+2): Use -1 instead of 65536.
6961 * config/avr/avr.c (avr_out_compare): Print shorter sequence for
6962 EQ/NE comparisons against +/-1 in the case of unused-after,
6965 2011-09-26 Jakub Jelinek <jakub@redhat.com>
6967 * gimple-fold.c (gimplify_and_update_call_from_tree): Set
6968 gctx.into_ssa after push_gimplify_context.
6970 * gimple.c (gimple_build_call_valist): New function.
6971 * gimple.h (gimple_build_call_valist): New prototype.
6972 * tree-ssa-propagate.c (finish_update_gimple_call): New function.
6973 (update_gimple_call): Likewise.
6974 (update_call_from_tree): Use finish_update_gimple_call.
6975 * tree-ssa-propagate.h (update_gimple_call): New prototype.
6977 2011-09-26 Richard Guenther <rguenther@suse.de>
6979 PR tree-optimization/50472
6980 * gimple-fold.c (fold_const_aggregate_ref_1): Do not fold
6981 volatile references.
6983 2011-09-26 Bingfeng Mei <bmei@broadcom.com>
6985 * doc/tm.texi: Correct documentation for TARGET_ADDR_SPACE_SUBSET_P.
6986 * target.def: (addr_space_subset_p): Likewise.
6988 2011-09-26 Tom de Vries <tom@codesourcery.com>
6990 * tree-ssa-alias.h (pt_solution_singleton_p): Declare.
6991 * tree-ssa-structalias.c (pt_solution_singleton_p): New function.
6992 * tree-ssa-ccp.c (fold_builtin_alloca_for_var): Set points-to solution
6995 2011-09-26 Georg-Johann Lay <avr@gjlay.de>
6998 * config/avr/avr-protos.h (output_reload_insisf): Don't pass insn.
6999 * config/avr/avr.md (*reload_insi, *reload_insf): Change call to
7000 output_reload_insisf.
7001 (adjust_len): Set default to "no".
7002 Remove alternative "yes". Add alternatives: "mov8", "mov16",
7003 "mov32", "ashlqi", "ashrqi", "lshrqi", "ashlhi", "ashrhi",
7004 "lshrhi", "ashlsi, "ashrsi", "lshrsi".
7005 (*movqi, *movhi, *movsi, *ashlqi3, ashlhi3, ashlsi3,
7006 *ashlhi3_const, *ashlsi3_const, ashrqi3, ashrhi3, ashrsi3,
7007 *ashrhi3_const, *ashrsi3_const, *lshrqi3, lshrhi3, *lshrhi3_const,
7008 *lshrsi3_const): Set attribute "adjust_len".
7009 * config/avr/avr.c (output_reload_insisf): Remove parameter "insn".
7010 (output_movsisf): Don't pass insn to output_reload_insisf.
7011 (adjust_insn_length): Handle new alternatives to adjust_len.
7012 Remove handling of ADJUST_LEN_YES. Clean-up code.
7014 2011-09-26 Eric Botcazou <ebotcazou@adacore.com>
7016 * ifcvt.c (noce_try_cmove_arith): Use may_trap_or_fault_p in lieu of
7017 may_trap_p to detect loads that may trap of fault.
7019 2011-09-26 Georg-Johann Lay <avr@gjlay.de>
7021 * config/avr/avr-protos.h (output_reload_inhi): Change prototype.
7022 * config/avr/avr.md (adjust_len): Add "reload_in16" alternative.
7023 (*reload_inhi): Use it. Adapt call to output_reload_inhi to new
7025 (*movhi): Split constraint alternative "r,rL" into "r,r" and "r,L".
7026 * config/avr/avr.c: Rename output_reload_insisf_1 to
7027 output_reload_in_const.
7028 (avr_popcount_each_byte): Handle SFmode, too.
7029 (output_reload_in_const): Change so it can handle HI loads, too.
7030 Use avr_popcount_each_byte to work out if scratch register must be
7032 (output_reload_inhi): Rewrite using output_reload_in_const and...
7033 (output_movhi): ...use it to print constants' loads.
7034 (adjust_insn_length): New case ADJUST_LEN_RELOAD_IN16. Cleanup code.
7036 2011-09-25 David S. Miller <davem@davemloft.net>
7038 * config/sparc/constraints.md (C, P, Z): New constraints for
7039 const_doube, const_int, and const_vector "all ones" values.
7040 Make unused constraint letters comment match reality.
7041 * config/sparc/predicates.md (const_all_ones_operand,
7042 register_or_zero_or_all_ones_operand): New predicates.
7043 * config/sparc/sparc.c (sparc_expand_move): Allow all ones
7044 as well as zero constants when VIS.
7045 (sparc_legitimate_constant_p): Likewise.
7046 * config/sparc/sparc.md (movsi_insn): Add fones alternative.
7047 (movsf_insn): Likewise
7048 (movdi_insn_sp64): Add fone alternative.
7049 (movdf_insn_sp32_v9): Likewise.
7050 (movdf_insn_sp64): Likewise.
7052 * configure.ac: Add feature check to make sure the assembler
7053 supports the FMAF, HPC, and VIS 3.0 instructions found on
7054 Niagara-3 and later cpus.
7055 * configure: Rebuild.
7056 * config.in: Likewise.
7057 * config/sparc/sparc.opt: New option '-mfmaf'.
7058 * config/sparc/sparc.md: Add float fused multiply-add patterns.
7059 * config/sparc/sparc.h (AS_NIAGARA3_FLAG): New macro.
7060 (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC): Use it, as needed.
7061 * config/sparc/sol2.h (ASM_CPU32_DEFAULT_SPEC,
7062 ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC): Likewise.
7063 * config/sparc/sparc.c (sparc_option_override): Turn MASK_FMAF on
7064 by default for Niagara-3 and later. Turn it off if TARGET_FPU is
7066 (sparc_rtx_costs): Handle 'FMA'.
7067 * doc/invoke.texi: Document -mfmaf.
7069 2011-09-25 Jakub Jelinek <jakub@redhat.com>
7071 * tree-ssa-structalias.c (intra_create_variable_infos): Treat
7072 TYPE_RESTRICT REFERENCE_TYPE parameters like restricted
7073 DECL_BY_REFERENCE parameters.
7075 2011-09-25 Eric Botcazou <ebotcazou@adacore.com>
7077 * tree-eh.c (cleanup_empty_eh): Allow a call to __builtin_stack_restore
7078 if there is no outgoing edge.
7080 * tree-scalar-evolution.c (simple_iv): Accept all kinds of pointer and
7083 2011-09-25 Ira Rosen <ira.rosen@linaro.org>
7085 * tree-vect-slp.c (vect_slp_analyze_bb_1): Split out core part
7086 of vect_analyze_bb here.
7087 (vect_analyze_bb): Loop over vector sizes calling vect_analyze_bb_1.
7089 2011-09-25 Ira Rosen <ira.rosen@linaro.org>
7091 * tree-data-ref.c (dr_analyze_innermost): Add new argument.
7092 Allow not simple iv if analyzing basic block.
7093 (create_data_ref): Update call to dr_analyze_innermost.
7094 (stmt_with_adjacent_zero_store_dr_p, ref_base_address): Likewise.
7095 * tree-loop-distribution.c (generate_memset_zero): Likewise.
7096 * tree-predcom.c (find_looparound_phi): Likewise.
7097 * tree-data-ref.h (dr_analyze_innermost): Add new argument.
7099 2011-09-24 David S. Miller <davem@davemloft.net>
7101 * config/sparc/sparc.h (FIRST_PSEUDO_REGISTER): Bump to 103.
7102 (SPARC_GSR_REG): Define.
7103 (FIXED_REGISTERS): Mark GSR as fixed.
7104 (CALL_USED_REGISTERS): Mark GSR as call used.
7105 (HARD_REGNO_NREGS): GSR is always 1 register.
7106 (REG_CLASS_CONTENTS): Add GSR to ALL_REGS.
7107 (REG_ALLOC_ORDER, REG_LEAF_ALLOC_ORDER): Add GSR to the end.
7108 (REGISTER_NAMES): Add "%gsr".
7109 * config/sparc/sparc.md (UNSPEC_ALIGNADDR, UNSPEC_ALIGNADDRL): Delete.
7110 (UNSPEC_WRGSR): New unspec.
7111 (GSR_REG): New constant.
7112 (type): Add new insn type 'gsr'.
7113 (fpack16_vis, fpackfix_vis, fpack32_vis,
7114 faligndata<V64I:MODE>_vis)): Add use of GSR_REG.
7115 (wrgsr_vis, *wrgsr_sp64, wrgsr_v8plus, rdgsr_vis, *rdgsr_sp64,
7116 rdgsr_v8plus): New expanders and insns.
7117 (alignaddr<P:mode>_vis, alignaddrl<P:mode>_vis): Reimplement
7118 using patterns which show that this is a plus in addition to a
7119 modification of GSR_REG, instead of an unspec.
7120 * config/sparc/ultra1_2.md: Handle 'gsr'.
7121 * config/sparc/ultra3.md: Likewise.
7122 * config/sparc/niagara.md: Likewise.
7123 * config/sparc/niagara2.md: Likewise.
7124 * config/sparc/sparc.c (leaf_reg_remap, sparc_leaf_regs): Fill out
7126 (sparc_option_override): Make -mvis imply -mv8plus.
7127 (hard_32bit_mode_classes, hard_64bit_mode_classes): Add entries
7129 (sparc_vis_init_builtins): Build __builtin_vis_write_gsr and
7130 __builtin_vis_read_gsr.
7131 (sparc_expand_buildin): Handle builtins that take one argument and
7133 (sparc_fold_builtin): Never fold writes to %gsr.
7134 * config/sparc/visintrin.h (__vis_write_gsr, __vis_read_gsr): New.
7135 * doc/extend.texi: Document new VIS intrinsics.
7137 2011-09-23 Jan Hubicka <jh@suse.cz>
7139 * ipa-inline-transform.c (inline_call): Add comment.
7140 * ipa-inline.h (inline_param_summary): New structure and vector.
7141 (struct inline_edge_summary): Add param field.
7142 * ipa-inline-analysis.c (CHANGED): New constant.
7143 (add_clause): Handle CHANGED and NOT_CONSTANT.
7144 (predicate_probability): New function.
7145 (dump_condition): Dump CHANGED predicate.
7146 (evaluate_conditions_for_known_args): Handle ERROR_MARK as marker
7147 of unknown function wide invariant.
7148 (evaluate_conditions_for_edge): Handle change probabilities.
7149 (inline_edge_duplication_hook): Copy param summaries.
7150 (inline_edge_removal_hook): Free param summaries.
7151 (dump_inline_edge_summary): Fix dumping of indirect edges and callee
7152 sizes; dump param summaries.
7153 (will_be_nonconstant_predicate): Use CHANGED predicate.
7154 (record_modified_bb_info): New structure.
7155 (record_modified): New function.
7156 (param_change_prob): New function.
7157 (estimate_function_body_sizes): Compute param summaries.
7158 (estimate_edge_size_and_time): Add probability argument.
7159 (estimate_node_size_and_time): Add inline_param_summary argument;
7160 handle predicate probabilities.
7161 (remap_predicate): Fix formating.
7162 (remap_edge_change_prob): New function.
7163 (remap_edge_summaries): Rename from ...; use remap_edge_change_prob.
7164 (remap_edge_predicates): ... this one.
7165 (inline_merge_summary): Remap edge summaries; handle predicate
7166 probabilities; remove param summaries after we are done.
7167 (do_estimate_edge_time): Update.
7168 (do_estimate_edge_growth): Update.
7169 (read_inline_edge_summary): Read param info.
7170 (inline_read_summary): Fix formating.
7171 (write_inline_edge_summary): Write param summaries.
7173 2011-09-23 Jakub Jelinek <jakub@redhat.com>
7175 * config/i386/i386.c (ix86_print_operand): Handle %~.
7176 (ix86_print_operand_punct_valid_p): Return true also for '~'.
7177 * config/i386/sse.md (i128): New mode_attr.
7178 (vec_extract_hi_<mode>, vec_extract_hi_<mode>,
7179 avx_vbroadcastf128_<mode>, *avx_vperm2f128<mode>_full,
7180 *avx_vperm2f128<mode>_nozero, vec_set_lo_<mode>,
7181 vec_set_hi_<mode>, *vec_concat<mode>_avx): Use <i128> in the
7182 patterns, use "<sseinsnmode>" for "mode" attribute.
7183 (vec_extract_hi_v16hi, vec_extract_hi_v32qi, vec_set_lo_v16hi,
7184 vec_set_hi_v16hi, vec_set_lo_v32qi, vec_set_hi_v32qi): Use
7185 %~128 in the patterns, use "OI" for "mode" attribute.
7187 2011-09-23 Georg-Johann Lay <avr@gjlay.de>
7190 * config/avr/avr.md (adjust_len): Add alternatives "tsthi",
7192 (*cmpqi_sign_extend): Use s8_operand.
7193 (*cmphi, *cmpsi): Rewrite using avr_out_compare.
7194 * config/avr/avr-protos.h (compare_diff_p, compare_eq_p): Remove
7196 (out_tsthi, out_tstsi): Remove prototypes.
7197 (avr_out_tsthi, avr_out_tstsi): New prototypes.
7198 * config/avr/avr.c (out_tsthi, out_tstsi): Remove functions.
7199 (avr_asm_len): Negative length now sets *plen to -length.
7200 (compare_sign_p): Return bool instead of int.
7201 (compare_diff_p, compare_eq_p): Ditto and make static.
7202 (avr_out_tsthi): New function.
7203 (avr_out_tstsi): New function.
7204 (avr_out_compare): New function.
7205 (adjust_insn_length): Handle ADJUST_LEN_TSTHI, ADJUST_LEN_TSTSI,
7208 2011-09-23 Georg-Johann Lay <avr@gjlay.de>
7211 * config/avr/avr.md: (adjust_len): Add alternative "out_plus".
7212 (addsi3): Rewrite using QI scratch register. Adjust text
7213 peepholes using plus:SI.
7214 (*addsi3_zero_extend.hi): New insn.
7215 (*subsi3_zero_extend.hi): New insn.
7216 (*subhi3_zero_extend1): Set attribute "cc" to "set_czn".
7217 (*subsi3_zero_extend): Ditto.
7218 (subsi3): Change predicate #2 to register_operand.
7219 * config/avr/avr-protos.h (avr_out_plus): New prototype.
7220 (avr_out_plus_1): New static function.
7221 (avr_out_plus): New function.
7222 (adjust_insn_length): Handle ADJUST_LEN_OUT_PLUS.
7224 2011-09-23 Jakub Jelinek <jakub@redhat.com>
7226 * config/i386/i386.c (ix86_prepare_sse_fp_compare_args): For
7227 GE/GT/UNLE/UNLT swap arguments and condition even for TARGET_AVX.
7229 2011-09-23 Ian Lance Taylor <iant@google.com>
7231 * godump.c (go_define): Treat a single character in single quotes,
7232 or a string, as an operand.
7234 2011-09-23 Martin Jambor <mjambor@suse.cz>
7236 * ipa-prop.h (jump_func_type): Updated comments.
7237 (ipa_known_type_data): New type.
7238 (ipa_jump_func): Use it to describe known type jump functions.
7239 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Updated to
7240 reflect the new known type jump function contents.
7241 (compute_known_type_jump_func): Likewise.
7242 (combine_known_type_and_ancestor_jfs): Likewise.
7243 (try_make_edge_direct_virtual_call): Likewise.
7244 (ipa_write_jump_function): Likewise.
7245 (ipa_read_jump_function): Likewise.
7246 * ipa-cp.c (ipa_value_from_known_type_jfunc): New function.
7247 (ipa_value_from_jfunc): Use ipa_value_from_known_type_jfunc.
7248 (propagate_accross_jump_function): Likewise.
7250 2011-09-23 Georg-Johann Lay <avr@gjlay.de>
7253 * config/avr/avr.md (rotlqi3): Support all offsets 0..7.
7254 (rotlqi3_4): Turn insn into expander.
7255 (*rotlqi3): New insn.
7256 (rotlhi3, rotlsi3): Support rotate left/right by 1.
7257 (*rotlhi2.1, *rotlhi2.15): New insns.
7258 (*rotlsi2.1, *rotlsi2.31): New insns.
7259 * config/avr/constraints.md (C03, C05, C06, C07): New constraints.
7261 2011-09-23 Bin Cheng <bin.cheng@arm.com>
7263 * config/arm/bpabi.h (BE8_LINK_SPEC): Add cortex-m arch and processors.
7265 2011-09-22 Maxim Kuvyrkov <maxim@codesourcery.com>
7267 * ipa-prop.c (ipa_print_node_jump_functions): Fix typos.
7269 2011-09-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7271 * reload.c (find_reloads): Set operand_mode to Pmode for address
7272 operands consisting of just a CONST_INT.
7274 2011-09-22 Uros Bizjak <ubizjak@gmail.com>
7277 * config/i386/i386.c (ix86_expand_sse_movcc): When generating
7278 blendv, force op_true to register if it doesn't satisfy
7279 nonimmediate_operand predicate.
7281 2011-09-22 Richard Sandiford <rdsandiford@googlemail.com>
7285 * calls.c (emit_library_call_value_1): Use BLOCK_REG_PADDING to
7286 get the locate.where_pad value for register-only arguments.
7287 * config/arm/arm.c (arm_pad_arg_upward): Remove HFmode handling.
7288 (arm_pad_reg_upward): Handle null types.
7290 2011-09-22 Jan Hubicka <jh@suse.cz>
7292 * ipa-inline-analysis.c: Fix overly long lines.
7294 2011-09-22 Jan Hubicka <jh@suse.cz>
7296 * ipa-inline-transform.c (inline_call): Always update jump functions
7298 * ipa-inline.c (ipa_inline): Likewise; do not call
7299 ipa_create_all_structures_for_iinln.
7300 (ipa_inline): Always free jump functions.
7301 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Remove hack.
7302 (remap_edge_predicates): Fix pasto.
7303 (inline_merge_summary): Remove nlined edge predicate; remove hack.
7304 (inline_analyze_function): Always initialize jump functions.
7305 (inline_generate_summary): Likewise.
7306 (inline_write_summary): Always write jump functions when ipa-cp
7308 (inline_read_summary): Always read jump functions when ipa-cp
7310 * ipa-prop.c (iinlining_processed_edges): Remove.
7311 (update_indirect_edges_after_inlining): Do not use
7312 iinlining_processed_edges; instead set param_index to -1.
7313 (propagate_info_to_inlined_callees): Only try to indirect inlining
7314 when asked to do so; update jump functions of indirect calls, too;
7315 remove jump functions of the inlined edge.
7316 (ipa_edge_duplication_hook): Do not copy iinlining_processed_edges.
7317 (ipa_create_all_structures_for_iinln): Remove.
7318 (ipa_free_all_structures_after_iinln): Do not free
7319 iinlining_processed_edges.
7320 * ipa-prop.h (ipa_create_all_structures_for_iinln): Remove.
7322 2011-09-22 Richard Sandiford <richard.sandiford@linaro.org>
7324 * config/arm/predicates.md (expandable_comparison_operator): New
7325 predicate, extracted from...
7326 (arm_comparison_operator): ...here.
7327 * config/arm/arm.md (cbranchsi4, cbranchsf4, cbranchdf4, cbranchdi4)
7328 (cstoresi4, cstoresf4, cstoredf4, cstoredi4, movsicc, movsfcc)
7329 (movdfcc): Use expandable_comparison_operator.
7331 2011-09-22 Georg-Johann Lay <avr@gjlay.de>
7335 * config/avr/avr-protos.h (avr_out_bitop): New prototype.
7336 (avr_popcount_each_byte): New prototype.
7337 * config/avr/avr.c (avr_popcount): New static function.
7338 (avr_popcount_each_byte): New function.
7339 (avr_out_bitop): New function.
7340 (adjust_insn_length): ADJUST_LEN_OUT_BITOP dispatches to
7341 avr_out_bitop. Cleanup code.
7342 * config/avr/constraints.md (Ca2, Co2, Cx2): New constraints.
7343 (Ca4, Co4, Cx4): New constraints.
7344 * config/avr/avr.md (adjust_len): Add "out_bitop" insn attribute
7346 (andhi3, iorhi3, xorhi3): Rewrite insns using avr_out_bitop.
7347 (andsi3, iorsi3, xorsi3): Ditto.
7348 (*iorhi3_clobber, *iorsi3_clobber): Remove insns.
7350 2011-09-22 Ira Rosen <ira.rosen@linaro.org>
7352 PR tree-optimization/50451
7353 * tree-vect-slp.c (vect_get_constant_vectors): Don't fail for
7354 constant operands in reduction.
7355 (vect_get_slp_defs): Don't create vector operand for NULL scalar
7358 2011-09-22 David S. Miller <davem@davemloft.net>
7360 * config/sparc/sparc.c (sparc_vis_init_builtins): Do not mark
7361 fpack16, fpack32, fpackfix as const.
7363 * config/sparc/sparc.md (G[0-7]_REG, O[0-7]_REG, L[0-7]_REG,
7364 I[0-7]_REG, F[0-62]_REG, FCC[0-3]_REG, CC_REG, SFP_REG): New
7365 constants. Use them everywhere.
7367 2011-09-22 Oleg Endo <oleg.endo@t-online.de>
7369 * config/sh/sh.c (andcosts): Renamed to and_xor_ior_costs.
7370 Added AND special case. Adapted comments.
7371 (sh_rtx_costs): Added XOR and IOR case.
7373 2011-09-21 Jan Hubicka <jh@suse.cz>
7375 * ipa-inline-analsis.c (compute_inline_parameters): Set
7376 cfun and current_function_decl.
7378 2011-09-21 Jan Hubicka <jh@suse.cz>
7380 * ipa-inline-analysis.c (set_cond_stmt_execution_predicate): Allow
7381 handled components in parameter of builtin_constant_p.
7382 (will_be_nonconstant_predicate): Allow loads of non-SSA parameters.
7384 2011-09-21 Jan Hubicka <jh@suse.cz>
7386 * ipa-inline.c (relative_time_benefit): Fix wrong bracketting.
7387 * ipa-inline.h (estimate_edge_time): Fix pasto.
7388 * ipa-inline-analysis.c (do_estiamte_edge_time): Remove capping.
7390 2011-09-21 Jakub Jelinek <jakub@redhat.com>
7392 * config/i386/i386.c (ix86_expand_sse_movcc): Use
7393 blendvps, blendvpd and pblendvb if possible.
7395 2011-09-21 Uros Bizjak <ubizjak@gmail.com>
7398 * config/i386/sse.md (xop_pcmov_<mode><avxsizesuffix>): Change
7399 operand 1 predicate to register_operand and operand 2 predicate
7400 to nonimmediate_operand.
7401 * config/i386/i386.c (ix86_expand_sse_movcc): When generating
7402 xop_pcmov, force op_true to register. Also, force op_false to
7403 register if it doesn't satisfy nonimmediate_operand predicate.
7405 2011-09-21 Kirill Yukhin <kirill.yukhin@intel.com>
7407 * config/i386/bmi2intrin.h (_mulx_u64): New.
7410 2011-09-21 Jan Hubicka <jh@suse.cz>
7412 PR tree-optimization/50433
7413 * ipa-inline-analysis.c (eliminated_by_inlining_prob):
7414 Use get_base_address.
7416 2011-09-21 Jakub Jelinek <jakub@redhat.com>
7418 * config/i386/sse.md (<code><mode>3 smaxmin:VI124_128 expander): Use
7419 nonimmediate_operand instead of register_operand predicate for operands
7420 1 and 2, force them into registers if expanding them as comparison.
7421 (<code><mode>3 umaxmin:VI124_128 expander): Similarly. For UMAX
7422 V8HImode force into register just operand 1.
7424 2011-09-21 Georg-Johann Lay <avr@gjlay.de>
7427 * config/avr/avr.c (avr_function_arg_advance): Change error to
7428 warning if a fixed register is needed as function argument.
7430 2011-09-21 Georg-Johann Lay <avr@gjlay.de>
7434 * config/avr/avr.md (adjust_len): New insn attribute.
7435 (*reload_insi, *reload_insf): Use it.
7436 (*movsi, *movsf): Use new interface of output_movsisf.
7437 * config/avr/avr-protos.h (output_movsisf): Change prototype.
7438 * config/avr/avr.c (output_movsisf): Ditto.
7439 (adjust_insn_length): Use insn attribute "adjust_len" to adjust
7440 lengths of insns *reload_insi, *reload_insf.
7441 (output_reload_insisf_1): New static function.
7442 (output_reload_insisf): Use it.
7444 2011-09-21 David S. Miller <davem@davemloft.net>
7446 * config/sparc/sparc.c (def_builtin): Change from macro into function.
7447 (def_builtin_const): New.
7448 (sparc_vis_init_builtins): Use def_builtin_const for all VIS builtins
7449 other than alignaddr and falignaddr.
7451 * config/sparc/sparc.md (UNSPEC_FCMPLE, UNSPEC_FCMPNE, UNSPEC_FCMPGT,
7452 UNSPEC_FCMPEQ): New unspec codes.
7453 (fcmple16_vis, fcmple32_vis, fcmpne16_vis, fcmpne32_vis, fcmpgt16_vis,
7454 fcmpgt32_vis, fcmpeq16_vis, fcmpeq32_vis): New patterns.
7455 * config/sparc/sparc.c (sparc_vis_init_builtins): Create builtins for
7456 new pixel compare VIS patterns.
7457 * config/sparc/visintrin.h (__vis_fcmple16, __vis_fcmple32,
7458 __vis_fcmpne16, __vis_fcmpne32, __vis_fcmpgt16, __vis_fcmpgt32,
7459 __vis_fcmpeq16, __vis_fcmpeq32): New.
7460 * doc/extend.texi: Document new pixel compare VIS intrinsics.
7462 2011-09-21 Tom de Vries <tom@codesourcery.com>
7464 * final.c (final): Handle if JUMP_LABEL is not LABEL_P.
7466 2011-09-20 David S. Miller <davem@davemloft.net>
7468 * config/sparc/sparc.md (UNSPEC_ALIGNADDRL): New unspec.
7469 (aligneddrl<P:mode>_vis): New pattern.
7470 (edge8_vis, edge8l_vis, edge16_vis, edge16l_vis, edge32_vis,
7471 edge32l_vis): Adjust to take Pmode arguments, and return SImode.
7472 * config/sparc/sparc.c (sparc_vis_init_builtins): Handle new
7473 alignaddrl insn, and adjust edge operations for updated types.
7474 * config/sparc/visintrin.h: Likewise.
7475 * doc/extend.texi: Make typing in VIS documentation match reality.
7477 2011-09-20 Terry Guo <terry.guo@arm.com>
7479 * config/arm/arm-arches.def: Add armv6s-m.
7480 * config/arm/arm-tables.opt: Regenerate.
7482 2011-09-20 Wei Guozhi <carrot@google.com>
7484 PR rtl-optimization/49452
7485 * postreload.c (reload_combine): Invalidate use information when across
7488 2011-09-19 Maxim Kuvyrkov <maxim@codesourcery.com>
7490 * haifa-sched.c (has_edge_p, prev_non_location_insn, check_cfg):
7491 Remove maintenance overhead.
7492 (haifa_sched_init, sched_finish): Update.
7494 2011-09-19 Uros Bizjak <ubizjak@gmail.com>
7496 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use if_then_else RTX
7497 to calculate unit, prefix_rep and prefix_data16 attributes.
7498 (*mov<mode>_internal): Ditto for unit attribute.
7499 (*movv2sf_internal_rex64): Ditto for unit and prefix_rep attributes.
7500 (*movv2sf_internal): Ditto.
7501 * config/i386/sse.md (VI1248_256): Remove mode iterator.
7502 (avx2_eq<mode>3): Use VI_256 instead of VI1248_256.
7503 (*avx2_eq<mode>3): Ditto.
7504 (avx2_gt<mode>3): Ditto.
7506 2011-09-19 Uros Bizjak <ubizjak@gmail.com>
7508 * config/i386/i386.md (maxmin): New code iterator.
7509 * config/i386/sse.md (<maxmin:code><mode>3): Macroize expander
7510 from <umaxmin:code><mode>3 and <smaxmin:code><mode>3 using maxmin
7512 (*avx2_<maxmin:code><mode>3): Macroize isn from
7513 *avx2_<umaxmin:code><mode>3 and *avx2_<smaxmin:code><mode>3 using
7514 maxmin code iterator.
7515 (<smaxmin:code><VI124_128:mode>3): Merge with <smaxmin:code>v8hi3.
7516 (<umaxmin:code><VI124_128:mode>3): Merge with umaxv4si3 and
7517 <umaxmin:code>v16qi3.
7519 2011-09-19 Alan Modra <amodra@gmail.com>
7520 Michael Meissner <meissner@linux.vnet.ibm.com>
7523 * config/rs6000/rs6000.md (call_indirect_aix<ptrsize>): Do not
7524 split the load of the indirect function's TOC from the call to
7525 prevent the compiler from moving the load of the new TOC above
7526 code that references the current function's TOC.
7527 (call_indirect_aix<ptrsize>_internal): Ditto.
7528 (call_indirect_aix<ptrsize>_nor11): Ditto.
7529 (call_indirect_aix<ptrsize>_internal2): Ditto.
7530 (call_value_indirect_aix<ptrsize>): Ditto.
7531 (call_value_indirect_aix<ptrsize>_internal): Ditto.
7532 (call_value_indirect_aix<ptrsize>_nor11): Ditto.
7533 (call_value_indirect_aix<ptrsize>_internal2): Ditto.
7535 2011-09-19 Jakub Jelinek <jakub@redhat.com>
7537 * config/i386/sse.md (*sse4_1_extractps): Change into
7538 define_insn_and_split, add =x 0 n and =x x n alternatives
7539 and split them after reload.
7541 2011-09-19 Alexandre Oliva <aoliva@redhat.com>
7543 * tree.h (TREE_NOT_CHECK4): Rename from bogus NON_TREE_CHECK4.
7545 2011-09-19 Alexandre Oliva <aoliva@redhat.com>
7547 * emit-rtl.c (copy_insn_1): Do not copy DEBUG_EXPRs.
7549 2011-09-19 Ira Rosen <ira.rosen@linaro.org>
7551 PR tree-optimization/50413
7552 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail to vectorize
7553 a basic block if one of its data-refs can't be analyzed.
7555 2011-09-19 Paul Brook <paul@codesourcery.com>
7557 * config/arm/predicates.md (shift_amount_operand): Check constant
7558 shift count is in range.
7559 (const_shift_operand): Remove.
7561 2011-09-18 Eric Botcazou <ebotcazou@adacore.com>
7562 Iain Sandoe <developer@sandoe-acoustics.co.uk>
7565 * config/rs6000/rs6000.md (probe_stack): Use explicit operand.
7566 * config/rs6000/rs6000.c (output_probe_stack_range): Likewise.
7568 2011-09-18 H.J. Lu <hongjiu.lu@intel.com>
7570 * config/i386/bmiintrin.h: Remove tmp.
7571 * config/i386/tbmintrin.h: Likewise.
7573 2011-09-18 Ira Rosen <ira.rosen@linaro.org>
7575 PR tree-optimization/50414
7576 * tree-vect-slp.c (vect_get_constant_vectors): Handle MAX_EXPR and
7579 2011-09-18 Ira Rosen <ira.rosen@linaro.org>
7581 PR tree-optimization/50412
7582 * tree-vect-data-refs.c (vect_analyze_group_access): Fail for
7583 acceses that require epilogue loop if vectorizing outer loop.
7585 2011-09-17 David S. Miller <davem@davemloft.net>
7587 * config/sparc/sparc.md (UNSPEC_EDGE8, UNSPEC_EDGE8L,
7588 UNSPEC_EDGE16, UNSPEC_EDGE16L, UNSPEC_EDGE32, UNSPEC_EDGE32L):
7590 (define_attr type): New type 'edge'.
7591 (edge8_vis, edge8l_vis, edge16_vis, edge16l_vis, edge32_vis,
7592 edge32l_vis): New patterns.
7593 * config/sparc/ultra1_2.md: Add insn reservation for 'edge'.
7594 * config/sparc/ultra3.md: Likewise.
7595 * config/sparc/niagara.md: Likewise.
7596 * config/sparc/niagara2.md: Likewise.
7597 * config/sparc/sparc.d (sparc_vis_init_builtins): Generate
7598 builtins for VIS edge instructions.
7599 * config/sparc/visintrin.h (__vis_edge8, __vis_edge8l)
7600 (__vis_edge16, __vis_edge16l, __vis_edge32, __vis_edge32l): New
7602 (__v8qi, __v4qi): Make unsigned.
7603 (__vis_faligndatadi, ___vis_faligndatav2si, __vis_faligndatav4hi,
7604 __vis_faligndatav8qi, __vis_fmul8x16au, __vis_fmul8x16al,
7605 __vis_fpack32): Fix types.
7606 * doc/extend.texi: Document new 'edge' VIS intrinsics.
7608 * gcc/config/sparc/sparc.c (niagara2_costs): Adjust integer
7610 (niagara3_costs): New.
7611 (sparc_option_override): Use it.
7612 * gcc/config/sparc/niagara2.md: Adjust with more accurate
7613 Niagara-3 reservations.
7615 2011-09-17 Jakub Jelinek <jakub@redhat.com>
7617 * config/i386/sse.md (VIMAX_AVX2): Change V4DI to V2TI.
7618 (sse2_avx, sseinsnmode): Add V2TI.
7619 (REDUC_SMINMAX_MODE): New mode iterator.
7620 (reduc_smax_v4sf, reduc_smin_v4sf, reduc_smax_v8sf,
7621 reduc_smin_v8sf, reduc_smax_v4df, reduc_smin_v4df): Remove.
7622 (reduc_<code>_<mode>): New smaxmin and umaxmin expanders.
7623 (sse2_lshrv1ti3): Rename to...
7624 (<sse2_avx2>_lshr<mode>3): ... this. Use VIMAX_AVX2 mode
7625 iterator. Move before umaxmin expanders.
7626 * config/i386/i386.h (VALID_AVX256_REG_MODE,
7627 SSE_REG_MODE_P): Accept V2TImode.
7628 * config/i386/i386.c (ix86_expand_reduc): Handle V32QImode,
7629 V16HImode, V8SImode and V4DImode.
7631 * config/i386/i386.c (ix86_build_const_vector): Handle V8SImode
7633 (ix86_build_signbit_mask): Likewise.
7634 (ix86_expand_int_vcond): Likewise. Handle V16HImode and V32QImode.
7635 (bdesc_args): Use CODE_FOR_{s,u}m{ax,in}v{32q,16h,8s}i3
7636 instead of CODE_FOR_avx2_{s,u}m{ax,in}v{32q,16h,8s}i3.
7637 * config/i386/sse.md (avx2_<code><mode>3 umaxmin expand): Rename to...
7638 (<code><mode>3) ... this.
7639 (avx2_<code><mode>3 smaxmin expand): Rename to...
7640 (<code><mode>3) ... this.
7641 (smax<mode>3, smin<mode>3): Macroize using smaxmin code iterator.
7642 (smaxv2di3, sminv2di3): Macroize using smaxmin code iterator and
7643 VI8_AVX2 mode iterator.
7644 (umaxv2di3, uminv2di3): Macroize using umaxmin code iterator and
7645 VI8_AVX2 mode iterator.
7646 (vcond<V_256:mode><VI_256:mode>, vcondu<V_256:mode><VI_256:mode>):
7649 2011-09-17 Richard Sandiford <rdsandiford@googlemail.com>
7651 * config/ia64/itanium2.md: Use match_test rather than eq/ne symbol_ref
7654 2011-09-16 David S. Miller <davem@davemloft.net>
7656 * config/sparc/visintrin.h: New file.
7657 * config.gcc: Add it to extra_headers on sparc.
7659 2011-09-16 Jakub Jelinek <jakub@redhat.com>
7661 * config/i386/i386.c (ix86_expand_reduc_v4sf): Rename to ...
7662 (ix86_expand_reduc): ... this. Handle also V8SFmode and V4DFmode.
7663 * config/i386/sse.md (reduc_splus_v4sf, reduc_smax_v4sf,
7664 reduc_smin_v4sf): Adjust callers.
7665 (reduc_smax_v8sf, reduc_smin_v8sf, reduc_smax_v4df, reduc_smin_v4df):
7668 * config/i386/sse.md (vec_extract_hi_<mode>,
7669 vec_extract_hi_v16hi, vec_extract_hi_v32qi): Use
7670 vextracti128 instead of vextractf128 for -mavx2 and
7671 integer vectors. For V4DFmode fix up mode attribute.
7672 (VEC_EXTRACT_MODE): For TARGET_AVX add 32-byte vectors.
7673 (vec_set_lo_<mode>, vec_set_hi_<mode>): For VI8F_256 modes use V4DF
7674 instead of V8SF mode attribute.
7675 (avx2_extracti128): Change into define_expand.
7676 * config/i386/i386.c (ix86_expand_vector_extract): Handle
7677 32-byte vector modes if TARGET_AVX.
7679 2011-09-16 Georg-Johann Lay <avr@gjlay.de>
7681 * config/avr/avr.md: (umulqihi3, mulqihi3): Write as one pattern.
7682 (umulqi3_highpart, smulqi3_highpart): Ditto.
7683 (*maddqihi4.const, *umaddqihi4.uconst): Ditto.
7684 (*msubqihi4.const, *umsubqihi4.uconst): Ditto.
7685 (*muluqihi3.uconst, *mulsqihi3.sconst): Ditto.
7687 2011-09-16 Georg-Johann Lay <avr@gjlay.de>
7690 * config/avr/avr.md (*ashiftqihi2.signx.1): New insn.
7691 (*maddqi4, *maddqi4.const): New insns.
7692 (*msubqi4, *msubqi4.const): New insns.
7693 * config/avr/avr.c (avr_rtx_costs): Record costs of above in cases
7694 PLUS:QI and MINUS:QI. Increase costs of multiply-add/-sub for
7695 HImode by 1 in the case of multiplying with a CONST_INT.
7696 Record cost of *ashiftqihi2.signx.1 in case ASHIFT:QI.
7698 2011-09-15 Jan Hubicka <jh@suse.cz>
7701 * gimple-fold.c (gimple_get_virt_method_for_binfo): Do not ICE on
7702 error_mark_node in the DECL_INITIAL of vtable.
7704 2011-09-15 Diego Novillo <dnovillo@google.com>
7706 * Makefile.in (SYSROOT_CFLAGS_FOR_TARGET): Define from
7707 @SYSROOT_CFLAGS_FOR_TARGET@.
7708 * configure.ac (SYSROOT_CFLAGS_FOR_TARGET): Set from build-sysroot.
7709 * configure: Regenerate.
7710 (site.exp): Add definition of TEST_ALWAYS_FLAGS.
7711 Remove setting of GCC_UNDER_TEST.
7713 2011-09-15 Uros Bizjak <ubizjak@gmail.com>
7715 * config/i386/i386.c (output_fp_compare): Return %v prefixed
7716 instruction mnemonics for TARGET_AVX.
7718 * config/i386/i386.md (*movdf_internal_rex64): use cond RTX in
7719 "type" attribute calculation.
7720 (*movdf_internal): Ditto.
7721 (*movsf_internal): Ditto.
7723 2011-09-15 James Greenhalgh <james.greenhalgh@arm.com>
7725 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): New builtin macro.
7727 2011-09-15 Jason Merrill <jason@redhat.com>
7730 * expr.c (count_type_elements): Handle NULLPTR_TYPE.
7732 2011-09-15 Jan Hubicka <jh@suse.cz>
7734 * ipa-inline-analysis.c (add_condition): Add conditions parameter;
7735 simplify obviously true clauses.
7736 (and_predicates, or_predicates): Add conditions parameter.
7737 (inline_duplication_hoook): Update.
7738 (mark_modified): New function.
7739 (unmodified_parm): New function.
7740 (eliminated_by_inlining_prob, (set_cond_stmt_execution_predicate,
7741 set_switch_stmt_execution_predicate, will_be_nonconstant_predicate):
7742 Use unmodified_parm.
7743 (estimate_function_body_sizes): Update.
7744 (remap_predicate): Update.
7746 2011-09-15 Ira Rosen <ira.rosen@linaro.org>
7748 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Allow
7749 read-after-read dependencies in basic block SLP.
7751 2011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
7753 * config/sparc/sparc.md: Use match_test rather than eq/ne symbol_ref
7756 2011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
7758 * config/sh/sh.md: Use match_test rather than eq/ne symbol_ref
7761 2011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
7763 * config/s390/s390.md: Use match_test rather than eq/ne symbol_ref
7766 2011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
7768 * config/rs6000/rs6000.md: Use match_test rather than eq/ne symbol_ref
7770 * config/rs6000/constraints.md: Likewise.
7772 2011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
7774 * config/microblaze/microblaze.md: Use match_test rather than
7775 eq/ne symbol_ref throughout file.
7777 2011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
7779 * config/bfin/bfin.md: Use match_test rather than eq/ne symbol_ref
7782 2011-09-14 Tom de Vries <tom@codesourcery.com>
7785 * explow.c (emit_stack_restore): Set crtl->need_drap if
7786 stack_restore is emitted.
7788 2011-09-14 Julian Brown <julian@codesourcery.com>
7790 * config/arm/arm.c (arm_override_options): Add unaligned_access
7792 (arm_file_start): Emit attribute for unaligned access as appropriate.
7793 * config/arm/arm.md (UNSPEC_UNALIGNED_LOAD)
7794 (UNSPEC_UNALIGNED_STORE): Add constants for unspecs.
7795 (insv, extzv): Add unaligned-access support.
7796 (extv): Change to expander. Likewise.
7797 (extzv_t1, extv_regsi): Add helpers.
7798 (unaligned_loadsi, unaligned_loadhis, unaligned_loadhiu)
7799 (unaligned_storesi, unaligned_storehi): New.
7800 (*extv_reg): New (previous extv implementation).
7801 * config/arm/arm.opt (munaligned_access): Add option.
7802 * config/arm/constraints.md (Uw): New constraint.
7803 * expmed.c (store_bit_field_1): Adjust bitfield numbering according
7804 to size of access, not size of unit, when BITS_BIG_ENDIAN !=
7805 BYTES_BIG_ENDIAN. Don't use bitfield accesses for
7806 volatile accesses when -fstrict-volatile-bitfields is in effect.
7807 (extract_bit_field_1): Likewise.
7809 2011-09-14 Richard Sandiford <richard.sandiford@linaro.org>
7811 * simplify-rtx.c (simplify_subreg): Check that the inner mode is
7812 a scalar integer before applying integer-only optimisations to
7815 2011-09-14 Bernd Schmidt <bernds@codesourcery.com>
7817 * config/mips/mips.c (mips_expand_epilogue): Generate a
7818 simple_return only if the return address is in r31.
7820 2011-09-13 Bernd Schmidt <bernds@codesourcery.com>
7822 * cfgcleanup.c (try_head_merge_bb): If get_condition returns
7823 NULL for a jump that is a cc0 insn, pick the previous insn for
7826 2011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
7828 * config/v850/v850.md: Use match_test rather than eq/ne symbol_ref
7831 2011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
7833 * config/pa/pa.md: Use match_test rather than eq/ne symbol_ref
7836 2011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
7838 * config/mn10300/mn10300.md: Use match_test rather than eq/ne
7839 symbol_ref throughout file.
7841 2011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
7843 * config/m68k/m68k.md: Use match_test rather than eq/ne symbol_ref
7846 2011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
7848 * config/h8300/h8300.md: Use match_test rather than eq/ne symbol_ref
7851 2011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
7853 * config/arm/arm.md: Use match_test rather than eq/ne symbol_ref
7855 * config/arm/neon.md: Likewise.
7856 * config/arm/vfp.md: Likewise.
7857 * config/arm/thumb2.md: Likewise.
7858 * config/arm/cortex-m4.md: Likewise.
7860 2011-09-13 Sevak Sargsyan <sevak.sargsyan@ispras.ru>
7862 * config/arm/neon.md (neon_vabd<mode>_2, neon_vabd<mode>_3): New
7863 define_insn patterns for combine.
7865 2011-09-13 Giuseppe Scrivano <gscrivano@gnu.org>
7867 * reorg.c: Always define make_return_insns.
7869 2011-09-13 Jan Hubicka <jh@suse.cz>
7872 * cgraphunit.c (assemble_thunks_and_aliases): Force alias to be output.
7874 2011-09-13 Jan Hubicka <jh@suse.cz>
7877 * ipa-inline-transform.c (can_remove_node_now_p): Fix thunkos.
7879 2011-09-13 Paul Brook <paul@codesourcery.com>
7881 * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
7882 (ARM_TARGET2_DWARF_FORMAT): Provide default definition.
7883 * config/arm/linux-eabi.h (ARM_TARGET2_DWARF_FORMAT): Define.
7884 * config/arm/symbian.h (ARM_TARGET2_DWARF_FORMAT): Define.
7885 * config/arm/uclinux-eabi.h(ARM_TARGET2_DWARF_FORMAT): Define.
7886 * config/arm/t-bpabi (EXTRA_HEADERS): Add unwind-arm-common.h.
7887 * config/arm/t-symbian (EXTRA_HEADERS): Add unwind-arm-common.h.
7888 * config/c6x/c6x.c (c6x_output_file_unwind): Don't rely on dwarf2 code
7889 enabling unwind tables.
7890 (c6x_debug_unwind_info): New function.
7891 (TARGET_ARM_EABI_UNWINDER): Define.
7892 (TARGET_DEBUG_UNWIND_INFO): Define.
7893 * config/c6x/c6x.h (DWARF_FRAME_RETURN_COLUMN): Define.
7894 (TARGET_EXTRA_CFI_SECTION): Remove.
7895 * config/c6x/t-c6x-elf (EXTRA_HEADERS): Set.
7896 * ginclude/unwind-arm-common.h: New file.
7898 2011-09-13 Georg-Johann Lay <avr@gjlay.de>
7901 * config/avr/predicates.md (const_1_to_6_operand): New predicate.
7902 * config/avr/avr.md: (extend_s): New code attribute.
7903 (mul_r_d): New code attribute.
7904 (*maddqihi4, *umaddqihi4): New insns.
7905 (*msubqihi4, *umsubqihi4): New insns.
7906 (*usmaddqihi4, *sumaddqihi4): New insns.
7907 (*usmsubqihi4, *susubdqihi4): New insns.
7908 (*umaddqihi4.uconst, *maddqihi4.sconst): New insn-and-splits.
7909 (*umsubqihi4.uconst, *msubqihi4.sconst): New insn-and-splits.
7910 (*umsubqihi4.uconst.ashift): New insn-and-split.
7911 (*msubqihi4.sconst.ashift): New insn-and-split.
7912 (*sumaddqihi4.uconst): New insn-and-split.
7913 (*sumsubqihi4.uconst): New insn-and-split.
7914 * config/avr/avr.c (avr_rtx_costs): Report costs of above in case
7915 PLUS:HI and MINUS:HI.
7917 2011-09-13 Revital Eres <revital.eres@linaro.org>
7919 modulo-sched.c (remove_node_from_ps): Return void instead of bool.
7920 (optimize_sc): Adjust call to remove_node_from_ps.
7921 (sms_schedule): Add print info.
7923 2011-09-13 Bernd Schmidt <bernds@codesourcery.com>
7925 * rtl.c (copy_rtx): Do not handle frame_related, jump or call
7928 2011-09-12 Jakub Jelinek <jakub@redhat.com>
7931 * dwarf2cfi.c (add_cfis_to_fde): Ignore non-active insns in between
7932 NOTE_INSN_CFI notes, with the exception of
7933 NOTE_INSN_SWITCH_TEXT_SECTIONS.
7935 2011-09-12 Bernd Schmidt <bernds@codesourcery.com>
7936 Richard Sandiford <rdsandiford@googlemail.com>
7938 * config/mips/mips.c (mips_epilogue): New structure.
7939 (mips16e_save_restore_reg): Queue REG_CFA_RESTORE notes when
7940 restoring registers.
7941 (mips_epilogue_emit_cfa_restores): New function.
7942 (mips_epilogue_set_cfa): Likewise.
7943 (mips_restore_reg): Queue REG_CFA_RESTORE notes. When restoring
7944 the current CFA register from the stack, redefine the CFA in terms
7945 of the stack pointer.
7946 (mips_expand_epilogue): Set up mips_epilogue. Attach CFA information
7947 to the epilogue instructions.
7949 2011-09-12 Richard Sandiford <rdsandiford@googlemail.com>
7951 * config/mips/mips.c (mips16e_save_restore_reg): Add a reg_parm_p
7953 (mips16e_build_save_restore): Update accordingly.
7955 2011-09-12 Jakub Jelinek <jakub@redhat.com>
7957 PR rtl-optimization/50212
7958 * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
7959 Skip also lps with NULL landing_pad or non-LABEL_P landing_pad.
7962 * calls.c (load_register_parameters): Use use_reg_mode instead
7963 of use_reg when adding a single register CALL_INSN_FUNCTION_USAGE
7965 (expand_call): Set EXPR_LIST mode to TYPE_MODE of the argument
7966 for stack CALL_INSN_FUNCTION_USAGE uses.
7967 * expr.h (use_reg_mode): New prototype.
7968 (use_reg): Changed into inline around use_reg_mode.
7969 * expr.c (use_reg): Renamed to...
7970 (use_reg_mode): ... this. Added MODE argument, set EXPR_LIST
7971 mode to that mode instead of VOIDmode.
7972 * var-tracking.c (prepare_call_arguments): Don't track parameters
7973 whose EXPR_LIST mode is VOIDmode, BLKmode or X mode isn't convertible
7974 to it using lowpart_subreg. Convert VALUE and REG/MEM to the
7977 2011-09-12 Georg-Johann Lay <avr@gjlay.de>
7980 * config/avr/avr.c (AVR_SECTION_PROGMEM): New Define.
7981 (progmem_section): New Variable.
7982 (avr_asm_init_sections): Initialize it.
7983 (TARGET_ASM_SELECT_SECTION): Define to...
7984 (avr_asm_select_section): ... this new Function.
7985 (avr_replace_prefix): New Function.
7986 (avr_asm_function_rodata_section): Use it.
7987 (avr_insert_attributes): Don't add section attribute for PROGMEM.
7988 (avr_section_type_flags): Use avr_progmem_p instead of section
7989 name to detect if object is in PROGMEM.
7990 (avr_asm_named_section): Set section name prefix for objects in
7993 2011-09-12 Jakub Jelinek <jakub@redhat.com>
7996 * config/arm/arm.md (*push_fp_multi): Add % before %( and %) in the
7997 sprintf format string.
7999 2011-09-12 Richard Guenther <rguenther@suse.de>
8001 PR tree-optimization/50343
8002 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Check
8003 that the reduction is over an SSA name before checking its definition.
8005 2011-09-11 Richard Sandiford <rdsandiford@googlemail.com>
8007 * config/cris/cris.md: Use match_test rather than eq/ne symbol_ref
8010 2011-09-11 Richard Sandiford <rdsandiford@googlemail.com>
8012 * config/mips/mips.md: Use match_test rather than eq/ne symbol_ref
8014 * config/mips/sb1.md: Likewise.
8015 * config/mips/predicates.md: Replace (match_test "!...")
8016 with (not (match_test "..."))
8017 * config/mips/constraints.md: Likewise.
8019 2011-09-09 Andrew Stubbs <ams@codesourcery.com>
8021 * config/arm/arm-cores.def (generic-armv7-a): New architecture.
8022 * config/arm/arm-tables.opt: Regenerate.
8023 * config/arm/arm-tune.md: Regenerate.
8024 * config/arm/arm.c (arm_file_start): Output .arch directive when
8025 user passes -mcpu=generic-*.
8026 (arm_issue_rate): Add genericv7a support.
8027 * config/arm/arm.h (EXTRA_SPECS): Add asm_cpu_spec.
8028 (ASM_CPU_SPEC): New define.
8029 * config/arm/elf.h (ASM_SPEC): Use %(asm_cpu_spec).
8030 * config/arm/semi.h (ASM_SPEC): Likewise.
8031 * doc/invoke.texi (ARM Options): Document -mcpu=generic-*
8032 and -mtune=generic-*.
8034 2011-09-09 Richard Guenther <rguenther@suse.de>
8036 PR tree-optimization/50328
8037 * tree-vect-loop.c (vect_is_simple_reduction_1): Allow one
8038 constant or default-def operand.
8040 2011-09-09 Richard Guenther <rguenther@suse.de>
8042 * tree-ssa-pre.c (create_expression_by_pieces): Fold the
8045 2011-09-09 Richard Guenther <rguenther@suse.de>
8047 * gimple.h (fold_stmt_inplace): Adjust to take a gimple_stmt_iterator
8048 instead of a statement.
8049 * gimple-fold.c (fold_stmt_inplace): Likewise.
8050 * sese.c (graphite_copy_stmts_from_block): Adjust.
8051 * tree-ssa-dom.c (propagate_rhs_into_lhs): Likewise.
8052 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Use
8054 (forward_propagate_addr_into_variable_array_index): Likewise.
8055 (forward_propagate_addr_expr_1): adjust.
8056 (associate_plusminus): Likewise.
8057 (ssa_forward_propagate_and_combine): Likewise.
8058 * tree-ssa-mathopts.c (replace_reciprocal): Adjust.
8059 (execute_cse_reciprocals): Likewise.
8060 * tree-ssa.c (insert_debug_temp_for_var_def): Adjust.
8062 2011-09-09 Nick Clifton <nickc@redhat.com>
8064 * config/mn10300/mn10300.c (mn10300_split_and_operand_count):
8065 Return a positive value to indicate that the bits at the
8066 bottom of the register should be cleared.
8068 2011-09-09 Richard Guenther <rguenther@suse.de>
8070 * tree-ssa-operands.c (swap_tree_operands): Always adjust
8071 existing operand positions.
8073 2011-09-09 Richard Guenther <rguenther@suse.de>
8076 * tree-data-ref.c (split_constant_offset): Do not try to handle
8079 2011-09-08 Andrew Stubbs <ams@codesourcery.com>
8081 PR tree-optimization/50318
8082 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Correct
8083 typo in use of mult_rhs1 and mult_rhs2.
8085 2011-09-08 Uros Bizjak <ubizjak@gmail.com>
8087 * config/i386/i386.c (standard_sse_constant_p): Handle AVX2 modes.
8088 (standard_sse_constant_opcode) <case 2>: Change vpcmpeqd template.
8090 2011-09-08 Bernd Schmidt <bernds@codesourcery.com>
8092 * config/arm/arm.md (push_multi): Emit predicates.
8093 (push_fp_multi): Likewise.
8094 * config/arm/arm.c (vfp_output_fstmd): Likewise.
8096 2011-09-08 Dodji Seketeli <dodji@redhat.com>
8098 PR c++/33255 - Support -Wunused-local-typedefs warning
8099 * c-decl.c (lookup_name): Use the new maybe_record_typedef_use.
8100 (pushdecl): Use the new record_locally_defined_typedef.
8101 (store_parm_decls): Allocate cfun->language.
8102 (finish_function): Use the new maybe_warn_unused_local_typedefs,
8103 and free cfun->language.
8104 (c_push_function_context): Allocate cfun->language here only if needed.
8105 (c_pop_function_context): Likewise, mark cfun->language
8106 for collection only when it should be done.
8107 * c-common.c (handle_used_attribute): Don't ignore TYPE_DECL nodes.
8108 * c-typeck.c (c_expr_sizeof_type, c_cast_expr): Use the new
8109 maybe_record_local_typedef_use.
8110 * doc/invoke.texi: Update documentation for
8111 -Wunused-local-typedefs.
8113 2011-09-08 Enkovich Ilya <ilya.enkovich@intel.com>
8115 * config/i386/i386-protos.h (ix86_lea_outperforms): New.
8116 (ix86_avoid_lea_for_add): Likewise.
8117 (ix86_avoid_lea_for_addr): Likewise.
8118 (ix86_split_lea_for_addr): Likewise.
8120 * config/i386/i386.c (LEA_MAX_STALL): New.
8121 (increase_distance): Likewise.
8122 (insn_defines_reg): Likewise.
8123 (insn_uses_reg_mem): Likewise.
8124 (distance_non_agu_define_in_bb): Likewise.
8125 (distance_agu_use_in_bb): Likewise.
8126 (ix86_lea_outperforms): Likewise.
8127 (ix86_ok_to_clobber_flags): Likewise.
8128 (ix86_avoid_lea_for_add): Likewise.
8129 (ix86_avoid_lea_for_addr): Likewise.
8130 (ix86_split_lea_for_addr): Likewise.
8131 (distance_non_agu_define): Search in pred BBs added.
8132 (distance_agu_use): Search in succ BBs added.
8133 (IX86_LEA_PRIORITY): Value changed from 2 to 0.
8134 (LEA_SEARCH_THRESHOLD): Now depends on LEA_MAX_STALL.
8135 (ix86_lea_for_add_ok): Use ix86_lea_outperforms to make decision.
8137 * config/i386/i386.md: Split added to transform non destructive
8138 add into move and add.
8139 (lea_1): transformed into insn_and_split to avoid AGU stalls.
8140 (lea<mode>_2): Likewise.
8142 2011-09-08 Martin Jambor <mjambor@suse.cz>
8144 PR tree-optimization/50287
8145 * ipa-split.c (split_function): Do not create SSA names for
8146 non-gimple-registers.
8148 2011-09-08 Richard Guenther <rguenther@suse.de>
8150 PR tree-optimization/19831
8151 * tree-ssa-dce.c (mark_all_reaching_defs_necessary_1): Also
8152 skip builtins with vdefs that do not really store something.
8153 (propagate_necessity): For calls to free that we can associate
8154 with an allocation function do not mark the freed pointer
8155 definition necessary.
8156 (eliminate_unnecessary_stmts): Remove a call to free if
8157 the associated call to an allocation function is not necessary.
8159 2011-09-08 Richard Guenther <rguenther@suse.de>
8161 PR tree-optimization/19831
8162 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Do not mark
8163 allocation functions as necessary.
8165 2011-09-08 Iain Sandoe <iains@gcc.gnu.org>
8167 * config/darwin-driver.c (darwin_find_version_from_kernel): New routine
8169 (darwin_default_min_version): Amended to provide defaults
8170 for the cross directory case.
8171 (darwin_driver_init): call darwin_default_min_version unconditionally.
8172 * config/darwin.h (DEF_MIN_OSX_VERSION): New.
8173 * config/darwin9.h: Likewise.
8174 * config/darwin10.h: Likewise.
8175 * config/rs6000/darwin7.h: Likewise.
8177 2011-09-08 Jakub Jelinek <jakub@redhat.com>
8180 * config/i386/i386.c (ix86_prepare_sse_fp_compare_args): Return
8181 code early if TARGET_AVX.
8182 (ix86_expand_fp_vcond): Handle LTGT and UNEQ.
8184 2011-09-07 Jakub Jelinek <jakub@redhat.com>
8186 * config/i386/sse.md (sseinsnmode): Remove 32-byte integer vector
8190 * config/i386/sse.md (*andnot<mode>3, *<code><mode>3): Fix up
8191 "mode" attribute computation.
8193 2011-09-07 Bernd Schmidt <bernds@codesourcery.com>
8195 * regrename.c (struct du_head): Make nregs signed.
8196 (closed_chains): Remove.
8197 (create_new_chain): Return the new chain.
8198 (chain_from_id): New static function.
8199 (dump_def_use_chain): Change argument to be an int, indicating
8200 the first ID to print. All callers changed.
8201 (merge_overlapping_regs): Use chain_from_id. Assert that
8202 chains don't conflict with themselves.
8203 (rename_chains): Take no argument. Iterate over id_to_chain
8204 rather to find chains to rename. Clear tick before the main loop.
8205 (struct incoming_reg_info): New struct.
8206 (struct bb_rename_info): New struct.
8207 (init_rename_info, set_incoming_from_chain, merge_chains): New
8209 (regrename_analyze): New static function, broken out of
8210 regrename_optimize. Record and make use of open chain information
8211 at basic block boundaries, and merge chains where possible.
8212 (scan_rtx_reg): Make this_nregs signed. Don't update
8214 (build_def_use): Return a bool to indicate success. All callers
8215 changed. Don't initialize global data here.
8216 (regrename_optimize): Move most code out of here into
8218 * regs.h (add_range_to_hard_reg_set, remove_range_from_hard_reg_set,
8219 range_overlaps_hard_reg_set_p, range_in_hard_reg_set_p): New
8220 static inline functions.
8221 * vec.h (FOR_EACH_VEC_ELT_FROM): New macro.
8223 * bb-reorder.c (insert_section_boundary_note): Don't check
8224 optimize_function_for_speed_p.
8225 (gate_handle_partition_blocks): Do it here instead.
8226 (gate_handle_reorder_blocks): Move preliminary checks here ...
8227 (rest_of_handle_reorder_blocks): ... from here.
8229 2011-09-07 Martin Jambor <mjambor@suse.cz>
8232 * ipa-cp.c (find_more_values_for_callers_subset): Check jump
8233 function index bounds.
8234 (perhaps_add_new_callers): Likewise.
8236 2011-09-07 Martin Jambor <mjambor@suse.cz>
8238 PR tree-optimization/49911
8239 * tree-sra.c (analyze_access_subtree): Change type of to-be-replaced
8240 enumerations to the corresponding plain integer type.
8242 2011-09-07 Richard Guenther <rguenther@suse.de>
8244 PR tree-optimization/50319
8245 * tree-if-conv.c (set_bb_predicate): Assert we only set
8246 canonical predicates.
8247 (add_to_predicate_list): Simplify. Allow TRUTH_NOT_EXPR
8248 around canonical predicates.
8249 (predicate_bbs): Do not re-gimplify already canonical
8250 predicates. Properly unshare them though.
8251 (find_phi_replacement_condition): Simplify.
8253 2011-09-07 Richard Sandiford <richard.sandiford@linaro.org>
8256 * config/arm/arm-protos.h (maybe_get_arm_condition_code): Declare.
8257 * config/arm/arm.c (maybe_get_arm_condition_code): New function,
8258 reusing the old code from get_arm_condition_code. Return ARM_NV
8259 for invalid comparison codes.
8260 (get_arm_condition_code): Redefine in terms of
8261 maybe_get_arm_condition_code.
8262 * config/arm/predicates.md (arm_comparison_operator): Use
8263 maybe_get_arm_condition_code.
8265 2011-09-07 Richard Guenther <rguenther@suse.de>
8267 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
8268 Canonicalize negated predicates by swapping edges.
8269 (forward_propagate_into_cond): Likewise.
8271 2011-09-07 Richard Guenther <rguenther@suse.de>
8273 PR tree-optimization/50213
8274 * tree-flow.h (simple_iv_increment_p): Declare.
8275 * tree-ssa-dom.c (simple_iv_increment_p): Export. Also handle
8277 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Do
8278 not propagate simple IV counter increments.
8280 2011-09-07 Eric Botcazou <ebotcazou@adacore.com>
8281 Iain Sandoe <iains@gcc.gnu.org>
8283 * config/rs6000/rs6000.c (compute_save_world_info): Test
8284 cfun->has_nonlocal_label to determine if the out-of-line save
8285 world call may be used.
8287 2011-09-07 Nick Clifton <nickc@redhat.com>
8289 * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Set the jump
8290 label on the parallel part of the insn.
8292 2011-09-07 Jakub Jelinek <jakub@redhat.com>
8295 * dwarf2out.c (mem_loc_descriptor) <case MEM>: Try
8296 avoid_constant_pool_reference first instead of last.
8298 2011-09-06 Michael Meissner <meissner@linux.vnet.ibm.com>
8300 * doc/configfiles.texi (Configuration Files): Update documentation
8301 about tm_p.h and remove FIXME comment.
8303 2011-09-06 Uros Bizjak <ubizjak@gmail.com>
8305 * config/i386/i386.c (ix86_function_value_regno_p): Use AX_REG.
8306 (function_value_32): Do not check TARGET_MMX, TARGET_SSE or TARGET_AVX.
8308 2011-09-06 Iain Sandoe <iains@gcc.gnu.org>
8310 * config/darwin10.h Remove duplicate LIB_SPEC.
8312 2011-09-06 Enkovich Ilya <ilya.enkovich@intel.com>
8315 * target.def (reassociation_width): New hook.
8317 * doc/tm.texi.in (reassociation_width): Likewise.
8319 * doc/tm.texi (reassociation_width): Likewise.
8321 * doc/invoke.texi (tree-reassoc-width): New param documented.
8323 * hooks.h (hook_int_uint_mode_1): New default hook.
8325 * hooks.c (hook_int_uint_mode_1): Likewise.
8327 * config/i386/i386.h (ix86_tune_indices): Add
8328 X86_TUNE_REASSOC_INT_TO_PARALLEL and X86_TUNE_REASSOC_FP_TO_PARALLEL.
8330 (TARGET_REASSOC_INT_TO_PARALLEL): New.
8331 (TARGET_REASSOC_FP_TO_PARALLEL): Likewise.
8333 * config/i386/i386.c (initial_ix86_tune_features): Add
8334 X86_TUNE_REASSOC_INT_TO_PARALLEL and X86_TUNE_REASSOC_FP_TO_PARALLEL.
8336 (ix86_reassociation_width): New function.
8338 * params.def (PARAM_TREE_REASSOC_WIDTH): New param added.
8340 * tree-ssa-reassoc.c (get_required_cycles): New function.
8341 (get_reassociation_width): Likewise.
8342 (swap_ops_for_binary_stmt): Likewise.
8343 (rewrite_expr_tree_parallel): Likewise.
8345 (rewrite_expr_tree): Refactored. Part of code moved into
8346 swap_ops_for_binary_stmt.
8348 (reassociate_bb): Now checks reassociation width to be used and
8349 call rewrite_expr_tree_parallel instead of rewrite_expr_tree if needed.
8351 2011-09-06 Richard Guenther <rguenther@suse.de>
8353 PR tree-optimization/47025
8354 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): BUILT_IN_VA_END
8356 (call_may_clobber_ref_p_1): BUILT_IN_VA_END is a barrier like
8358 (stmt_kills_ref_p_1): BUILT_IN_VA_END kills what its argument
8359 definitely points to.
8360 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
8361 BUILT_IN_VA_START doesn't let its va_list argument escape.
8362 * tree-ssa-dce.c (propagate_necessity): BUILT_IN_VA_END does
8363 not make any previous stores necessary.
8365 2011-09-06 Martin Jambor <mjambor@suse.cz>
8367 * ipa-inline.h (struct inline_summary): Move versionable flag...
8368 * cgraph.h (struct cgraph_local_info): ...here
8369 * ipa-cp.c (determine_versionability): Use the new versionable flag.
8370 (determine_versionability): Likewise.
8371 (ipcp_versionable_function_p): Likewise.
8372 (ipcp_generate_summary): Likewise.
8373 * ipa-inline-analysis.c (dump_inline_summary): Do not dump the
8375 (compute_inline_parameters): Do not clear the versionable flag.
8376 (inline_read_section): Do not stream the versionable flag.
8377 (inline_write_summary): Likewise.
8378 * lto-cgraph.c (lto_output_node): Stream the versionable flag.
8379 (input_overwrite_node): Likewise.
8381 2011-09-06 Richard Guenther <rguenther@suse.de>
8383 PR tree-optimization/48149
8384 * tree-ssa-sccvn.c (vn_get_expr_for): Simplify. Fix tuplification bug.
8385 (vn_valueize): Move earlier.
8386 (valueize_expr): Use vn_valueize.
8387 (simplify_binary_expression): Simplify, also combine COMPLEX_EXPR
8389 (simplify_unary_expression): Simplify.
8391 2011-09-06 Richard Guenther <rguenther@suse.de>
8393 PR tree-optimization/48317
8394 * tree-ssa-sccvn.h (struct vn_nary_op_s): Make op a true
8396 (sizeof_vn_nary_op): New inline function.
8397 (vn_nary_op_lookup_pieces): Adjust.
8398 (vn_nary_op_insert_pieces): Likewise.
8399 * tree-ssa-sccvn.c (vn_nary_op_eq): Also compare the length.
8400 (init_vn_nary_op_from_pieces): Adjust signature. Deal with
8401 any number of operands.
8402 (vn_nary_length_from_stmt): New function.
8403 (init_vn_nary_op_from_stmt): Adjust for CONSTRUCTOR handling.
8404 (vn_nary_op_lookup_pieces): Adjust signature and allocate properly
8406 (vn_nary_op_lookup): Likewise.
8407 (vn_nary_op_lookup_stmt): Likewise.
8408 (vn_nary_op_insert_into): Likewise.
8409 (vn_nary_op_insert_stmt): Likewise.
8410 (visit_use): Handle CONSTRUCTOR as nary.
8411 * tree-ssa-pre.c (phi_translate_1): Adjust.
8412 (create_expression_by_pieces): Likewise.
8413 (compute_avail): Likewise.
8415 2011-09-06 Ira Rosen <ira.rosen@linaro.org>
8417 * config/arm/arm.c (arm_preferred_simd_mode): Check
8418 TARGET_NEON_VECTORIZE_DOUBLE instead of
8419 TARGET_NEON_VECTORIZE_QUAD.
8420 (arm_autovectorize_vector_sizes): Likewise.
8421 * config/arm/arm.opt (mvectorize-with-neon-quad): Make inverse
8422 mask of mvectorize-with-neon-double. Add RejectNegative.
8423 (mvectorize-with-neon-double): New.
8425 2011-09-06 Richard Guenther <rguenther@suse.de>
8427 * tree-ssa-sccvn.c (visit_use): CSE stmt pieces and simplify matching.
8429 2011-09-06 Tom de Vries <tom@codesourcery.com>
8431 * recog.c (asm_labels_ok): New function.
8432 (check_asm_operands): Use asm_labels_ok.
8434 2011-09-05 Richard Sandiford <rdsandiford@googlemail.com>
8437 * config/mips/mips.h (ABI_HAS_64BIT_SYMBOLS): Check Pmode.
8438 (PMODE_INSN): New macro.
8439 * config/mips/mips.c (gen_load_const_gp): Use PMODE_INSN.
8440 (mips_got_load, mips_expand_synci_loop): Likewise.
8441 (mips_save_gp_to_cprestore_slot): Handle SImode and DImode
8443 (mips_emit_loadgp): Use PMODE_INSN. Handle SImode and DImode
8444 copygp_mips16 patterns.
8445 (mips_expand_prologue): Handle SImode and DImode potential_cprestore
8446 and use_cprestore patterns.
8447 (mips_override_options): Check for incompatible -mabi and -mlong
8449 * config/mips/mips.md (unspec_got<mode>): Rename to...
8450 (unspec_got_<mode>): ...this.
8451 (copygp_mips16): Use the Pmode iterator.
8452 (potential_cprestore, cprestore, use_cprestore): Likewise.
8453 (clear_cache, indirect_jump): Use PMODE_INSN.
8454 (indirect_jump<mode>): Rename to...
8455 (indirect_jump_<mode>): ...this.
8456 (tablejump): Use PMODE_INSN.
8457 (tablejump<mode>): Rename to...
8458 (tablejump_<mode>): ...this.
8459 (exception_receiver): Handle restore_gp_si and restore_gp_di.
8460 (restore_gp): Use the Pmode iterator.
8461 * config/mips/mips-dsp.md (mips_lbux, mips_lhx, mips_lwx): Use
8464 2011-09-05 Richard Sandiford <rdsandiford@googlemail.com>
8466 * config/mips/mips.c (mips_gimplify_va_arg_expr): Unshare off.
8467 Fix the type of the BIT_AND_EXPR.
8469 2011-09-05 David S. Miller <davem@davemloft.net>
8471 * config.host: Add driver-sparc.o and sparc/x-sparc on
8472 native sparc*-*-linux* builds.
8473 * config/sparc/driver-sparc.c: Correct Linux strings.
8474 * config/sparc/linux.h: Add DRIVER_SELF_SPECS.
8475 * config/sparc/linux64.h: Likewise.
8476 * doc/invoke.texi: Document that Linux also supports
8477 -mcpu=native and -mtune=native on sparc.
8479 * config/sparc/sparc-opts.h (PROCESSOR_NIAGARA3,
8480 PROCESSOR_NIAGARA4): New.
8481 * config/sparc/sparc.opt: Handle new processor types.
8482 * config/sparc/sparc.md: Add to "cpu" attribute.
8483 * config/sparc/sparc.h (TARGET_CPU_niagara3,
8484 TARGET_CPU_niagara4): New, treat as niagara2.
8485 * config/sparc/linux64.h: Handle niagara3 and niagara4 like niagara2.
8486 * config/sparc/sol2.h: Likewise.
8487 * config/sparc/niagara2.md: Schedule niagara3 like niagara2.
8488 * config/sparc/sparc.c (sparc_option_override): Add
8489 niagara3 and niagara4 handling.
8490 (sparc32_initialize_trampoline): Likewise.
8491 (sparc64_initialize_trampoline): Likewise.
8492 (sparc_use_sched_lookahead): Likewise.
8493 (sparc_issue_rate): Likewise.
8494 (sparc_register_move_cost): Likewise.
8495 * config/sparc/driver-sparc.c (cpu_names): Use niagara3
8496 and niagara4 as appropriate.
8497 * doc/invoke.texi: Document new processor types.
8498 * config.gcc: Recognize niagara3 and niagara4 in --with-cpu
8499 and --with-tune options.
8501 * config/sparc/sol2-64.h: Move ...
8502 * config/sparc/default-64.h: ... to here. Update comment.
8503 * config.gcc: Update Solaris sparc to use default-64.h, also
8504 prefix this header into the list on sparc64-*-linux.
8505 * config/sparc/linux64.h (TARGET_DEFAULT): Only override if
8506 TARGET_64BIT_DEFAULT is defined. Remove commented out reference
8509 2011-09-05 Georg-Johann Lay <avr@gjlay.de>
8512 * config/avr/avr.c (sequent_regs_live): Don't recognize sequences
8513 that contain global register variable.
8515 2011-09-05 Richard Guenther <rguenther@suse.de>
8517 * tree-cfg.c (replace_uses_by): Use fold_stmt, not fold_stmt_inplace.
8519 2011-09-05 Richard Guenther <rguenther@suse.de>
8521 * stor-layout.c (layout_type): Use size_binop for array size
8524 2011-09-05 Georg-Johann Lay <avr@gjlay.de>
8526 * config/avr/avr.h (progmem_section): Remove Declaration.
8527 * config/avr/avr.c (progmem_section): Make static and rename to
8528 progmem_swtable_section.
8529 (avr_output_addr_vec_elt): No need to switch sections.
8530 (avr_asm_init_sections): Use output_section_asm_op as section
8531 callback for progmem_swtable_section.
8532 (avr_output_progmem_section_asm_op): Remove Function.
8533 (TARGET_ASM_FUNCTION_RODATA_SECTION): New Define.
8534 (avr_asm_function_rodata_section): New static Function.
8535 * config/avr/elf.h (ASM_OUTPUT_BEFORE_CASE_LABEL): Output
8536 alignment 2**1 for jump tables.
8538 2011-09-04 Jan Hubicka <jh@suse.cz>
8540 * ipa-inline-analysis.c (set_cond_stmt_execution_predicate): Check that
8541 parameter is SSA name.
8543 2011-09-04 Richard Guenther <rguenther@suse.de>
8546 2011-08-31 Richard Guenther <rguenther@suse.de>
8548 * fold-const.c (extract_muldiv_1): Remove bogus TYPE_IS_SIZETYPE
8551 2011-09-04 Iain Sandoe <iains@gcc.gnu.org>
8554 * config/darwin.h (DEBUG_MACRO_SECTION): New macro.
8556 2011-09-04 Jakub Jelinek <jakub@redhat.com>
8557 Ira Rosen <ira.rosen@linaro.org>
8559 PR tree-optimization/50208
8560 * tree-vect-patterns.c (vect_handle_widen_mult_by_const): Add an
8561 argument. Check that def_stmt is inside the loop.
8562 (vect_recog_widen_mult_pattern): Update calls to
8563 vect_handle_widen_mult_by_cons.
8564 (vect_operation_fits_smaller_type): Check that def_stmt is
8567 2011-09-04 Ira Rosen <ira.rosen@linaro.org>
8569 * tree-vectorizer.c (vect_print_dump_info): Print line
8570 number when dumping to a file.
8571 (vectorize_loops): Add new messages to dump file.
8573 2011-09-03 Martin Jambor <mjambor@suse.cz>
8575 * ipa-prop.h (ipa_jump_func_t): New typedef.
8576 (struct ipa_edge_args): Removed field argument_count, field
8577 jump_functions turned into a vector.
8578 (ipa_set_cs_argument_count): Removed.
8579 (ipa_get_cs_argument_count): Updated to work on vectors.
8580 (ipa_get_ith_jump_func): Likewise.
8581 * ipa-prop.c (ipa_count_arguments): Removed.
8582 (compute_scalar_jump_functions): Use ipa_get_ith_jump_func to access
8583 jump functions. Update caller.
8584 (compute_pass_through_member_ptrs): Likewise.
8585 (compute_cst_member_ptr_arguments): Likewise.
8586 (ipa_compute_jump_functions_for_edge): Get number of arguments from
8587 the statement, allocate vector.
8588 (ipa_compute_jump_functions): Do not call ipa_count_arguments.
8589 (duplicate_ipa_jump_func_array): Removed.
8590 (ipa_edge_duplication_hook): Use VEC_copy, do not copy argument count.
8591 (ipa_read_node_info): Allocate vector.
8593 2011-09-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8596 * config/pa/pa.md (return): Define "return" insn pattern.
8597 (epilogue): Use it when no epilogue is needed.
8598 * config/pa/pa.c (pa_can_use_return_insn): New function.
8599 * config/pa/pa-protos.h (pa_can_use_return_insn): Declare.
8601 2011-09-03 Eric Botcazou <ebotcazou@adacore.com>
8603 * cfgexpand.c (add_stack_var): Assert that the alignment is not zero.
8604 * tree-ssa-ccp.c (fold_builtin_alloca_for_var): Revert latest change.
8605 Force at least BITS_PER_UNIT alignment on the new variable.
8607 2011-09-02 Gary Funck <gary@intrepid.com>
8609 * opts.c (print_specific_help): Fix off-by-one compare in
8611 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
8612 CL_TARGET, CL_COMMON, CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED):
8613 Increase by +5 to allow for more languages.
8614 * optc-gen.awk: Generate #if that ensures that the number of
8615 languages is within the implementation-defined limit.
8617 2011-09-02 Michael Matz <matz@suse.de>
8620 * ipa-split.c (split_function): Call add_referenced_var.
8622 * tree-ssa-phiopt.c (cond_store_replacement): Don't call get_var_ann.
8623 (cond_if_else_store_replacement_1): Ditto.
8624 * tree-ssa-pre.c (get_representative_for): Ditto.
8625 (create_expression_by_pieces): Ditto.
8626 (insert_into_preds_of_block): Ditto.
8627 * tree-sra.c (create_access_replacement): Ditto.
8628 (get_replaced_param_substitute): Ditto.
8630 2011-09-02 Bernd Schmidt <bernds@codesourcery.com>
8632 * config/c6x/c6x.md (collapse-ndfa, no-comb-vect): New
8634 (d1, l1, s1, m1, d2, l2, s2, m2): Changed to define_query_cpu_unit.
8635 (l1w, s1w, l2w, s2w): Define in the main automaton.
8636 (fps1, fpl1, adddps1, adddpl1, fps2, fpl2, adddps2, adddpl2): New
8638 * config/c6x/c6x.c (c6x_sched_insn_info): Add unit_mask member.
8639 (c6x_unit_names): Add the new units.
8640 (c6x_unit_codes): New static array.
8641 (UNIT_QID_D1, UNIT_QID_L1, UNIT_QID_S1, UNIT_QID_M1, UNIT_QID_FPS1,
8642 UNIT_QID_FPL1, UNIT_QID_ADDDPS1, UNIT_QID_ADDDPL1,
8643 UNIT_QID_SIDE_OFFSET): New macros.
8644 (RESERVATION_S2): Adjust value.
8645 (c6x_option_override): Compute c6x_unit_codes.
8646 (assign_reservations): Take the unit_mask of the last instruction
8647 into account. Detect floating point reservations by looking for
8648 the new units. Don't assign reservations if the field is already
8650 (struct c6x_sched_context): Add member prev_cycle_state_ctx.
8651 (init_sched_state): Initialize it.
8652 (c6x_clear_sched_context): Free it.
8653 (insn_set_clock): Clear reservation.
8654 (prev_cycle_state): New static variable.
8655 (c6x_init_sched_context): Save it.
8656 (c6x_sched_init): Allocate space for it and clear it.
8657 (c6x_sched_dfa_pre_cycle_insn): New static function.
8658 (c6x_dfa_new_cycle): Save state at the start of a new cycle.
8659 (c6x_variable_issue): Only record units in the unit_mask that
8660 were not set at the start of the cycle.
8661 (c6x_variable_issue): Compute and store the unit_mask from the
8663 (reorg_split_calls): Ensure the new information remains correct.
8664 (TARGET_SCHED_DFA_NEW_CYCLE, TARGET_SCHED_CLEAR_SCHED_CONTEXT,
8665 TARGET_SCHED_DFA_PRE_CYCLE_INSN): Define.
8666 * config/c6x/c6x.h (CPU_UNITS_QUERY): Define.
8667 * config/c6x/c6x-sched.md.in (fp4_ls_N__CROSS_, adddp_ls_N__CROSS_):
8668 Add special reservations.
8669 * config/c6x/c6x-sched.md: Regenerate.
8671 2011-09-02 Martin Jambor <mjambor@suse.cz>
8673 * ipa-prop.h (ipa_node_params): Removed fields
8674 called_with_var_arguments and node_versionable.
8675 (ipa_set_called_with_variable_arg): Removed.
8676 (ipa_is_called_with_var_arguments): Likewise.
8677 * ipa-cp.c (ipa_get_lattice): Fixed index check in an assert.
8678 (determine_versionability): Do not check for type attributes and va
8679 builtins. Record versionability into inline summary.
8680 (initialize_node_lattices): Do not check
8681 ipa_is_called_with_var_arguments.
8682 (propagate_constants_accross_call): Likewise, ignore arguments we do
8683 not have PARM_DECLs for, set variable flag for parameters that were
8685 (create_specialized_node): Dump info that we cannot change signature.
8686 * ipa-prop.c (ipa_compute_jump_functions): Do not care about variable
8687 number of arguments.
8688 (ipa_make_edge_direct_to_target): Likewise.
8689 (ipa_update_after_lto_read): Likewise.
8690 (ipa_node_duplication_hook): Do not copy called_with_var_arguments flag.
8691 * tree-inline.c (copy_arguments_for_versioning): Copy PARM_DECLs if
8694 2011-09-02 Richard Guenther <rguenther@suse.de>
8696 PR tree-optimization/27460
8698 * doc/md.texi (vcond): Document.
8699 * genopinit.c (optabs): Turn vcond{,u}_optab into a conversion
8700 optab with two modes.
8701 * optabs.h (enum convert_optab_index): Add COI_vcond, COI_vcondu.
8702 (enum direct_optab_index): Remove DOI_vcond, DOI_vcondu.
8703 (vcond_optab): Adjust.
8704 (vcondu_optab): Likewise.
8705 (expand_vec_cond_expr_p): Adjust prototype.
8706 * optabs.c (get_vcond_icode): Adjust.
8707 (expand_vec_cond_expr_p): Likewise.
8708 (expand_vec_cond_expr): Likewise.
8709 * tree-vect-stmts.c (vect_is_simple_cond): Return the comparison
8711 (vectorizable_condition): Allow differing types for comparison
8713 * config/i386/i386.c (ix86_expand_sse_cmp): Use proper mode
8715 * config/i386/sse.md (vcond<mode>): Split to
8716 vcond<V_256:mode><VF_256:mode>, vcond<V_128:mode><VF_128:mode>,
8717 vcond<V_128:mode><VI124_128:mode> and
8718 vcondu<V_128:mode><VI124_128:mode>.
8719 (vcondv2di): Change to vcond<VI8F_128:mode>v2di.
8720 (vconduv2di): Likewise.
8721 * config/arm/neon.md (vcond<mode>): Change to vcond*<mode><mode>.
8722 (vcondu<mode>): Likewise.
8723 * config/ia64/vect.md (vcond<mode>): Likewise.
8724 (vcondu<mode>): Likewise.
8725 (vcondv2sf): Likewise.
8726 * config/mips/mips-ps-3d.md (vcondv2sf): Likewise.
8727 * config/rs6000/paired.md (vcondv2sf): Likewise.
8728 * config/rs6000/vector.md (vcond<mode>): Likewise.
8729 (vcondu<mode>): Likewise.
8730 * config/spu/spu.md (vcond<mode>): Likewise.
8731 (vcondu<mode>): Likewise.
8733 2011-09-02 Richard Guenther <rguenther@suse.de>
8735 * pretty-print.h (pp_unsigned_wide_integer): New.
8736 * tree-pretty-print.c (dump_generic_node): Print unsigned
8737 host-wide-int fitting INTEGER_CSTs with pp_unsigned_wide_integer.
8739 2011-09-02 Richard Sandiford <richard.sandiford@linaro.org>
8742 * config/rs6000/rs6000.c (paired_expand_vector_init): Check for
8743 valid CONST_VECTOR operands.
8744 (rs6000_expand_vector_init): Likewise.
8746 2011-09-02 Martin Jambor <mjambor@suse.cz>
8748 * cgraph.h (cgraph_indirect_call_info): Removed field thunk_delta.
8749 * gimple-fold.c (gimple_get_virt_method_for_binfo): Rewritten to use
8750 BINFO_VTABLE. Parameter delta removed, all callers updated.
8751 * tree.c (free_lang_data_in_binfo): Clear BINFO_VIRTUALs instead
8753 * cgraph.c (cgraph_make_edge_direct): Removed parameter delta, updated
8755 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Removed
8756 handling of thunk_delta.
8757 * ipa-cp.c (get_indirect_edge_target): Removed parameter delta.
8758 (devirtualization_time_bonus): Do not handle thunk deltas.
8759 (ipcp_discover_new_direct_edges): Likewise.
8760 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
8761 (try_make_edge_direct_simple_call): Likewise.
8762 (try_make_edge_direct_virtual_call): Likewise.
8763 * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise. Mark
8764 parameter set as unused.
8765 (output_edge_opt_summary): Likewise. Mark both parameters as unused.
8766 * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise. Mark
8767 parameter set as unused.
8768 (output_edge_opt_summary): Likewise. Mark both parameters as unused.
8769 (input_edge_opt_summary): Likewise.
8770 * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not stream
8771 BINFO_VIRTUALS at all.
8772 * lto-streamer-in.c (lto_input_ts_binfo_tree_pointers): Likewise.
8774 2011-09-02 Richard Guenther <rguenther@suse.de>
8776 * tree-ssa-ccp.c (fold_builtin_alloca_for_var): Do not fold alloca (0).
8777 (ccp_fold_stmt): Continue replacing args when folding alloca fails.
8779 2011-08-31 Richard Guenther <rguenther@suse.de>
8781 * expr.c (expand_expr_real_2): Move COND_EXPR and VEC_COND_EXPR
8782 handling here, from ...
8783 (expand_expr_real_1): ... here.
8784 * gimple-pretty-print.c (dump_ternary_rhs): Handle COND_EXPR
8786 * gimple.c (gimple_rhs_class_table): Make COND_EXPR and VEC_COND_EXPR
8787 a GIMPLE_TERNARY_RHS.
8788 * tree-cfg.c (verify_gimple_assign_ternary): Handle COND_EXPR
8789 and VEC_COND_EXPR here ...
8790 (verify_gimple_assign_single): ... not here.
8791 * gimple-fold.c (fold_gimple_assign): Move COND_EXPR folding.
8792 * tree-object-size.c (cond_expr_object_size): Adjust.
8793 (collect_object_sizes_for): Likewise.
8794 * tree-scalar-evolution.c (interpret_expr): Don't handle ternary RHSs.
8795 * tree-ssa-forwprop.c (forward_propagate_into_cond): Fix and simplify.
8796 (ssa_forward_propagate_and_combine): Adjust.
8797 * tree-ssa-loop-im.c (move_computations_stmt): Build the COND_EXPR
8799 * tree-ssa-threadedge.c (fold_assignment_stmt): Adjust.
8800 * tree-vect-loop.c (vect_is_simple_reduction_1): Likewise.
8801 * tree-vect-stmt.c (vectorizable_condition): Likewise.
8802 * tree-vrp.c (extract_range_from_cond_expr): Likewise.
8803 (extract_range_from_assignment): Likewise.
8805 2011-08-31 Richard Sandiford <rdsandiford@googlemail.com>
8807 * config/i386/i386.md: Use (match_test ...) for attribute tests.
8808 * config/i386/mmx.md: Likewise.
8809 * config/i386/sse.md: Likewise.
8810 * config/i386/predicates.md (call_insn_operand): Use
8811 (not (match_test "...")) instead of (match_test "!...")
8812 * config/i386/constraints.md (w): Likewise.
8814 2011-08-31 Richard Sandiford <rdsandiford@googlemail.com>
8816 * doc/md.texi: Describe the use of match_tests in attribute tests.
8817 * rtl.def (MATCH_TEST): Update commentary.
8818 * genattrtab.c (attr_copy_rtx, check_attr_test, clear_struct_flag)
8819 (write_test_expr, walk_attr_value): Handle MATCH_TEST.
8821 2011-08-31 Richard Sandiford <rdsandiford@googlemail.com>
8823 * genattrtab.c (attr_rtx_1): Hash SYMBOL_REFs.
8824 (attr_string): Use copy_md_ptr_loc.
8826 2011-08-31 Martin Jambor <mjambor@suse.cz>
8829 * ipa-inline-analysis.c (compute_inline_parameters): Set
8830 can_change_signature of noes with typde attributes.
8831 * ipa-split.c (split_function): Do not skip any arguments if
8832 can_change_signature is set.
8834 2011-08-31 Martin Jambor <mjambor@suse.cz>
8836 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Alias
8839 2011-08-31 Richard Guenther <rguenther@suse.de>
8841 * fold-const.c (extract_muldiv_1): Remove bogus TYPE_IS_SIZETYPE
8844 2011-08-31 Marc Glisse <marc.glisse@inria.fr>
8846 * doc/generic.texi (Types for C++): CP_TYPE_QUALS -> cp_type_quals.
8848 2011-08-31 Tom de Vries <tom@codesourcery.com>
8851 * Makefile.in (tree-ssa-ccp.o): Add $(PARAMS_H) to rule.
8852 * tree-ssa-ccp.c (params.h): Include.
8853 (fold_builtin_alloca_for_var): New function.
8854 (ccp_fold_stmt): Use fold_builtin_alloca_for_var.
8856 2011-08-30 Uros Bizjak <ubizjak@gmail.com>
8858 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
8861 2011-08-30 Andrew Stubbs <ams@codesourcery.com>
8863 * config/arm/arm.c (optimal_immediate_sequence_1): Make b1, b2,
8866 2011-08-30 Andrew Stubbs <ams@codesourcery.com>
8868 * config/arm/arm.c (arm_gen_constant): Set can_negate correctly
8871 2011-08-30 Richard Guenther <rguenther@suse.de>
8874 * gimple.h (maybe_fold_offset_to_address): Remove.
8875 (maybe_fold_offset_to_reference): Likewise.
8876 (maybe_fold_stmt_addition): Likewise.
8877 (may_propagate_address_into_dereference): Likewise.
8878 * tree-inline.c (remap_gimple_op_r): Do not reconstruct
8880 * gimple-fold.c (canonicalize_constructor_val): Likewise.
8881 Canonicalize invariant POINTER_PLUS_EXPRs to invariant MEM_REF
8883 (may_propagate_address_into_dereference): Remove.
8884 (maybe_fold_offset_to_array_ref): Likewise.
8885 (maybe_fold_offset_to_reference): Likewise.
8886 (maybe_fold_offset_to_address): Likewise.
8887 (maybe_fold_stmt_addition): Likewise.
8888 (fold_gimple_assign): Do not reconstruct array references but
8889 instead canonicalize invariant POINTER_PLUS_EXPRs to invariant
8891 (gimple_fold_stmt_to_constant_1): Likewise.
8892 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
8893 * gimplify.c (gimplify_conversion): Likewise.
8894 (gimplify_expr): Likewise.
8896 2011-08-30 Ilya Tocar <ilya.tocar@intel.com>
8898 * config/i386/fmaintrin.h: New.
8899 * config.gcc: Add fmaintrin.h.
8900 * config/i386/i386.c
8901 (enum ix86_builtins) <IX86_BUILTIN_VFMADDSS3>: New.
8902 <IX86_BUILTIN_VFMADDSD3>: Likewise.
8903 * config/i386/sse.md (fmai_vmfmadd_<mode>): New.
8904 (*fmai_fmadd_<mode>): Likewise.
8905 (*fmai_fmsub_<mode>): Likewise.
8906 (*fmai_fnmadd_<mode>): Likewise.
8907 (*fmai_fnmsub_<mode>): Likewise.
8908 * config/i386/immintrin.h: Add fmaintrin.h.
8910 2011-08-30 Bernd Schmidt <bernds@codesourcery.com>
8912 * genautomata.c (NO_COMB_OPTION): New macro.
8913 (no_comb_flag): New static variable.
8914 (gen_automata_option): Handle NO_COMB_OPTION.
8915 (comb_vect_p): False if no_comb_flag.
8916 (add_vect): Move computation of min/max values. Return early if
8918 * doc/md.texi (automata_option): Document no-comb-vect.
8920 * config/i386/i386.c (get_pc_thunk_name): Change prefix to
8921 "__x86.get_pc_thunk".
8923 * bb-reorder.c (insert_section_boundary_note): Only do it if
8924 we reordered the blocks; i.e. not if !optimize_function_for_speed_p.
8926 2011-08-30 Christian Bruel <christian.bruel@st.com>
8928 * coverage.c (coverage_init): Check flag_branch_probabilities instead of
8931 2011-08-29 Michael Meissner <meissner@linux.vnet.ibm.com>
8933 * config/rs6000/rs6000.opt (-msave-toc-indirect): Change default
8934 to off. Document switch.
8935 * doc/invoke.texi (-msave-toc-indirect): Ditto.
8937 2011-08-29 Jakub Jelinek <jakub@redhat.com>
8939 * gthr-posix.h (__gthread_active_p): Do not use preprocessor
8940 conditionals and comments inside macro arguments.
8942 2011-08-29 Artjoms Sinkarovs <artyom.shinkaroff@gmail.com>
8943 Richard Guenther <rguenther@suse.de>
8945 * tree.h (constant_boolean_node): Adjust prototype.
8946 * fold-const.c (fold_convert_loc): Move aggregate conversion
8948 (constant_boolean_node): Make value parameter boolean, add
8949 vector type handling.
8950 (fold_unary_loc): Use constant_boolean_node.
8951 (fold_binary_loc): Preserve types properly when folding
8952 COMPLEX_EXPR <__real x, __imag x>.
8953 * gimplify.c (gimplify_expr): Handle vector comparison.
8954 * tree.def (EQ_EXPR, ...): Document behavior on vector typed
8956 * tree-cfg.c (verify_gimple_comparison): Verify vector typed
8959 2011-08-29 Jakub Jelinek <jakub@redhat.com>
8962 * emit-rtl.c (unshare_all_rtl_again): For CALL_INSNs,
8963 reset_used_flags also in CALL_INSN_FUNCTION_USAGE.
8964 (verify_rtl_sharing): Likewise and verify_rtx_sharing
8966 (unshare_all_rtl_in_chain): For CALL_INSNs
8967 copy_rtx_if_shared also CALL_INSN_FUNCTION_USAGE.
8969 2011-08-29 Richard Guenther <rguenther@suse.de>
8971 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Set a location
8972 on the built ADDR_EXPR.
8974 2011-08-29 Jakub Jelinek <jakub@redhat.com>
8977 * var-tracking.c (create_entry_value): Call cselib_lookup_from_insn
8978 before adding ENTRY_VALUE to val->locs.
8980 2011-08-28 Mikael Pettersson <mikpe@it.uu.se>
8983 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Initialize
8986 2011-08-27 Bernd Schmidt <bernds@codesourcery.com>
8988 * doc/rtl.texi (simple_return): Document.
8989 (parallel, PATTERN): Here too.
8990 * doc/md.texi (return): Mention it's allowed to expand to simple_return
8992 (simple_return): Document standard pattern.
8993 * gengenrtl.c (special_rtx): SIMPLE_RETURN is special.
8994 * final.c (final_scan_insn): Use ANY_RETURN_P on body.
8995 * reorg.c (function_return_label, function_simple_return_label):
8996 New static variables, replacing...
8997 (end_of_function_label): ... this.
8998 (simplejump_or_return_p): New static function.
8999 (optimize_skip, steal_delay_list_from_fallthrough,
9000 fill_slots_from_thread): Use it.
9001 (relax_delay_slots): Likewise. Use ANY_RETURN_P on body.
9002 (rare_destination, follow_jumps): Use ANY_RETURN_P on body.
9003 (find_end_label): Take a new arg which is one of the two return
9004 rtxs. Depending on which, set either function_return_label or
9005 function_simple_return_label. All callers changed.
9006 (make_return_insns): Make both kinds.
9007 (dbr_schedule): Adjust for two kinds of end labels.
9008 * function.c (emit_return_into_block): Set JUMP_LABEL properly.
9009 * genemit.c (gen_exp): Handle SIMPLE_RETURN.
9010 (gen_expand, gen_split): Use ANY_RETURN_P.
9011 * df-scan.c (df_uses_record): Handle SIMPLE_RETURN.
9012 * rtl.def (SIMPLE_RETURN): New code.
9013 * ifcvt.c (find_if_case_1): Be more careful about
9014 redirecting jumps to the EXIT_BLOCK.
9015 * jump.c (condjump_p, condjump_in_parallel_p, any_condjump_p,
9016 returnjump_p_1): Handle SIMPLE_RETURNs.
9017 * print-rtl.c (print_rtx): Likewise.
9018 * rtl.c (copy_rtx): Likewise.
9019 * bt-load.c (compute_defs_uses_and_gen): Use ANY_RETURN_P.
9020 * combine.c (simplify_set): Likewise.
9021 * resource.c (find_dead_or_set_registers, mark_set_resources):
9023 * emit-rtl.c (verify_rtx_sharing, classify_insn, copy_insn_1,
9024 copy_rtx_if_shared_1, mark_used_flags): Handle SIMPLE_RETURNs.
9025 (init_emit_regs): Initialize simple_return_rtx.
9026 * cfglayout.c (fixup_reorder_chain): Pass a JUMP_LABEL to
9027 force_nonfallthru_and_redirect.
9028 * rtl.h (ANY_RETURN_P): Allow SIMPLE_RETURN.
9029 (GR_SIMPLE_RETURN): New enum value.
9030 (simple_return_rtx): New macro.
9031 * basic-block.h (force_nonfallthru_and_redirect): Adjust
9033 * cfgrtl.c (force_nonfallthru_and_redirect): Take a new jump_label
9034 argument. All callers changed. Be careful about what kinds of
9035 returnjumps to generate.
9036 * config/i386/3i86.c (ix86_pad_returns, ix86_count_insn_bb,
9037 ix86_pad_short_function): Likewise.
9038 * config/arm/arm.c (arm_final_prescan_insn): Handle both kinds
9040 * config/mips/mips.md (any_return): New code_iterator.
9041 (optab): Add cases for return and simple_return.
9042 (return): Expand to a simple_return.
9043 (simple_return): New pattern.
9044 (*<optab>, *<optab>_internal for any_return): New patterns.
9045 (return_internal): Remove.
9046 * config/mips/mips.c (mips_expand_epilogue): Make the last insn
9047 a simple_return_internal.
9049 2011-08-27 Uros Bizjak <ubizjak@gmail.com>
9051 * config/i386/sse.md (*absneg<mode>2): Fix split condition.
9052 (vec_extract_lo_<mode>): Prevent both operands in memory.
9053 (vec_extract_lo_v16hi): Ditto.
9054 (*vec_extract_v4sf_mem): Add TARGET_SSE insn constraint.
9056 2011-08-27 Uros Bizjak <ubizjak@gmail.com>
9058 * config/i386/sse.md (mulv16qi3): Attach REG_EQUAL note.
9059 (*sse2_mulv4si3): Ditto.
9061 * config/i386/i386.c (legitimize_tls_address): Change REG_EQIV
9064 2011-08-27 Uros Bizjak <ubizjak@gmail.com>
9067 * config/i386/sse.md (sse4_2_pcmpestr): Emit NOTE_INSN_DELETED note
9068 when all outputs are unused.
9069 (sse4_2_pcmpistr): Ditto.
9071 2011-08-26 Uros Bizjak <ubizjak@gmail.com>
9073 * config/i386/i386.md (round<mode>2): New expander.
9074 * config/i386/i386.c (enum ix86_builtins): Add
9075 IX86_BUILTIN_ROUND{PS,PD}_AZ{,256}.
9076 (struct builtin_description): Add __builtin_ia32_round{ps,pd}_az{,256}
9078 (ix86_builtin_vectorized_function): Handle BUILT_IN_ROUND{,F} builtins.
9079 (ix86_build_const_vector): Rewrite using loop with RTVEC_ELT accessor.
9081 2011-08-26 Uros Bizjak <ubizjak@gmail.com>
9084 * convert.c (convert_to_integer) <BUIT_IN_ROUND{,F,L}>: Convert
9085 only when TARGET_C99_FUNCTIONS.
9086 <BUILT_IN_NEARBYINT{,F,L}>: Ditto.
9087 <BUILT_IN_RINT{,F,L}>: Ditto.
9089 2011-08-26 Michael Matz <matz@suse.de>
9090 Jakub Jelinek <jakub@redhat.com>
9093 * lto-streamer-in.c (canon_file_name): Initialize new_slot->len;
9094 don't call strlen twice, use memcpy.
9096 2011-08-26 H.J. Lu <hongjiu.lu@intel.com>
9098 * config/i386/bmi2intrin.h: Allow in <immintrin.h>.
9099 * config/i386/bmiintrin.h: Likewise.
9100 * config/i386/lzcntintrin.h: Likewise.
9102 * config/i386/immintrin.h: Include <lzcntintrin.h>,
9103 <bmiintrin.h> and <bmi2intrin.h>.
9105 2011-08-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9108 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Check count in main.
9109 * configure: Regenerate.
9111 2011-08-26 Jakub Jelinek <jakub@redhat.com>
9114 * c-typeck.c (c_process_expr_stmt): Skip over nops and
9115 call mark_exp_read even if exprv is ADDR_EXPR.
9117 2011-08-26 Richard Sandiford <richard.sandiford@linaro.org>
9119 * df-problems.c (df_note_bb_compute): Pass uses rather than defs
9120 to df_set_dead_notes_for_mw.
9122 2011-08-26 Richard Guenther <rguenther@suse.de>
9124 * varasm.c (decode_addr_const): Handle MEM_REF[&X, OFF].
9126 2011-08-26 Zdenek Dvorak <ook@ucw.cz>
9127 Tom de Vries <tom@codesourcery.com>
9129 * tree-ssa-loop-ivopts.c (struct cost_pair): Add comp field.
9130 (struct ivopts_data): Add loop_single_exit_p field.
9131 (niter_for_exit): Change parameter desc_p into return value. Return
9132 desc if desc->may_be_zero. Free desc if unused.
9133 (niter_for_single_dom_exit): Change return type.
9134 (find_induction_variables): Handle changed return type of
9135 niter_for_single_dom_exit. Dump may_be_zero.
9136 (add_candidate_1): Keep original base and step type for IP_ORIGINAL.
9137 (set_use_iv_cost): Add and handle comp parameter.
9138 (determine_use_iv_cost_generic, determine_use_iv_cost_address): Add
9139 comp argument to set_use_iv_cost.
9140 (strip_wrap_conserving_type_conversions, expr_equal_p)
9141 (difference_cannot_overflow_p, iv_elimination_compare_lt): New function.
9142 (may_eliminate_iv): Add comp parameter. Handle new return type of
9143 niter_for_exit. Use loop_single_exit_p. Use iv_elimination_compare_lt.
9144 (determine_use_iv_cost_condition): Add comp argument to set_use_iv_cost
9145 and may_eliminate_iv.
9146 (rewrite_use_compare): Move call to iv_elimination_compare to ...
9147 (may_eliminate_iv): Here.
9148 (tree_ssa_iv_optimize_loop): Initialize loop_single_exit_p.
9150 2011-08-26 Tom de Vries <tom@codesourcery.com>
9152 * tree-pretty-print (dump_generic_node): Test for NULL_TREE before
9153 accessing TREE_TYPE.
9155 2011-08-26 Jiangning Liu <jiangning.liu@arm.com>
9157 * config/arm/arm.md (*ior_scc_scc): Enable for Thumb2 as well.
9158 (*ior_scc_scc_cmp): Likewise
9159 (*and_scc_scc): Likewise.
9160 (*and_scc_scc_cmp): Likewise.
9161 (*and_scc_scc_nodom): Likewise.
9162 (*cmp_ite0, *cmp_ite1, *cmp_and, *cmp_ior): Handle Thumb2.
9164 2011-08-26 Jakub Jelinek <jakub@redhat.com>
9166 * rtlanal.c (nonzero_bits1): Handle CLRSB.
9168 2011-08-26 Richard Guenther <rguenther@suse.de>
9170 * expr.c (string_constant): Handle &MEM_REF.
9172 2011-08-26 Andrew Stubbs <ams@codesourcery.com>
9174 * config/arm/arm.c (struct four_ints): New type.
9175 (count_insns_for_constant): Delete function.
9176 (find_best_start): Delete function.
9177 (optimal_immediate_sequence): New function.
9178 (optimal_immediate_sequence_1): New function.
9179 (arm_gen_constant): Move constant splitting code to
9180 optimal_immediate_sequence.
9181 Rewrite constant negation/invertion code.
9183 2011-08-26 Andrew Stubbs <ams@codesourcery.com>
9185 * config/arm/arm-protos.h (const_ok_for_op): Add prototype.
9186 * config/arm/arm.c (const_ok_for_op): Add support for addw/subw.
9187 Remove prototype. Remove static function type.
9188 * config/arm/arm.md (*arm_addsi3): Add addw/subw support.
9190 * config/arm/constraints.md (Pj, PJ): New constraints.
9192 2011-08-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9194 * config/arm/cortex-a9.md ("cortex_a9_mult_long"): New.
9195 ("cortex_a9_multiply_long"): New and use above. Handle all
9196 long multiply cases.
9197 ("cortex_a9_multiply"): Handle smmul and smmulr.
9198 ("cortex_a9_mac"): Handle smmla.
9200 2011-08-25 Richard Henderson <rth@redhat.com>
9204 * cfgcleanup.c (old_insns_match_p): Don't allow cross-jump for
9205 non-constant stack adjutment.
9206 * expr.c (find_args_size_adjust): Break out from ...
9207 (fixup_args_size_notes): ... here.
9208 * rtl.h (find_args_size_adjust): Declare.
9210 2011-08-25 Uros Bizjak <ubizjak@gmail.com>
9212 * config/i386/i386.md (isa): Add sse2, sse2_noavx, sse3,
9213 sse4 and sse4_noavx.
9214 (enabled): Handle sse2, sse2_noavx, sse3, sse4 and sse4_noavx.
9215 (*pushdf_rex64): Change Y2 register constraint to x.
9216 (*movdf_internal_rex64): Ditto.
9217 (*zero_extendsidi2_rex64): Ditto.
9218 (*movdi_internal): Change Y2 register constraint to x
9219 and update "isa" attribute.
9221 (*movdf internal): Ditto.
9222 (zero_extendsidi2_1): Ditto.
9223 (*truncdfdf_mixed): Ditto.
9224 (*truncxfdf2_mixed): Ditto.
9225 * config/i386/mmx.md (*mov<mode>_internal_rex64): Change Y2
9226 register constraint to x.
9227 (*movv2sf_internal_rex64): Ditto.
9228 (*mov<mode>_internal): Change Y2 register constraint to x
9229 and add "isa" attribute.
9230 (*movv2sf_internal): Ditto.
9231 (*vec_extractv2si_1): Ditto.
9232 * config/i386/sse.md ("vec_set<mode>_0): Change Y2 and Y4 register
9233 constraints to x and update "isa" attribute.
9234 (*vec_interleave_highv2df): Change Y3 registerconstraint
9235 to x and update "isa" attribute.
9236 (*vec_interleave_lowv2df): Ditto.
9237 (*vec_concatv2df): Change Y2 register constraint to x and
9238 update "isa" attribute.
9239 (sse2_loadld): Ditto.
9240 (*vec_extractv2di_1): Ditto.
9241 (*vec_dupv4si): Ditto.
9242 (*vec_dupv2di): Ditto.
9243 (*vec_concatv4si): Ditto.
9244 (vec_concatv2di): Ditto.
9245 * config/i386/constraints.md (Y2): Remove.
9249 2011-08-25 Bernd Schmidt <bernds@codesourcery.com>
9251 * regrename.c (scan_rtx_reg, scan_rtx_address, build_def_use,
9252 dump_def_use_chain): Don't declare.
9253 (mark_conflict, create_new_chain): Move before users.
9254 (regrename_optimize): Move to near end of file.
9256 2011-08-25 Georg-Johann Lay <avr@gjlay.de>
9258 * config/avr-protos.h (byte_immediate_operand): Remove Prototype.
9259 (secondary_input_reload_class): Remove Prototype.
9260 * config/avr/avr.c (byte_immediate_operand): Remove Function.
9261 * config/avr/avr.md (setmemhi): Use u8_operand.
9262 (strlenhi): Use const0_rtx for comparison.
9263 * config/avr/avr.h (avr_reg_order): Remove Declaration.
9265 2011-08-25 Georg-Johann Lay <avr@gjlay.de>
9267 * config/avr/avr.c (reg_class_tab): Make local to
9268 avr_regno_reg_class. Return smallest register class available.
9270 2011-08-25 Georg-Johann Lay <avr@gjlay.de>
9272 * config/avr/avr.c (STR_PREFIX_P): New Define.
9273 (avr_asm_declare_function_name): Use it.
9274 (avr_asm_named_section): Use it.
9275 (avr_section_type_flags): Use it.
9277 2011-08-25 Bernd Schmidt <bernds@codesourcery.com>
9279 * doc/md.texi (automata_option): Document collapse-ndfa.
9280 * genautomata.c (COLLAPSE_OPTION): New macro.
9281 (collapse_flag): New static variable.
9282 (struct description): New member normal_decls_num.
9283 (struct automaton): New members advance_ainsn and collapse_ainsn.
9284 (gen_automata_option): Check for COLLAPSE_OPTION.
9285 (collapse_ndfa_insn_decl): New static variable.
9286 (add_collapse_ndfa_insn_decl, special_decl_p): New functions.
9287 (find_arc): If insn is the collapse-ndfa insn, accept any arc we find.
9288 (transform_insn_regexps): Call add_collapse_ndfa_insn_decl if
9289 necessary. Use normal_decls_num rather than decls_num, remove
9290 test for special decls.
9291 (create_alt_states, form_ainsn_with_same_reservs): Use special_decl_p.
9292 (make_automaton); Likewise. Use the new advance_cycle_insn member
9293 of struct automaton.
9294 (create_composed_state): Disallow advance-cycle arcs if collapse_flag
9296 (NDFA_to_DFA): Don't create composed states for the collapse-ndfa
9297 transition. Create the necessary transitions for it.
9298 (create_ainsns): Return void. Take an automaton_t argument, and
9299 update its ainsn_list, advance_ainsn and collapse_ainsn members. All
9301 (COLLAPSE_NDFA_VALUE_NAME): New macro.
9302 (output_tables): Output code to define it.
9303 (output_internal_insn_code_evaluation): Output code to accept
9304 const0_rtx as collapse-ndfa transition.
9305 (output_default_latencies, output_print_reservation_func,
9306 output_print_description): Reorganize loops to use normal_decls_num
9307 as loop bound; remove special case for advance_cycle_insn_decl.
9308 (initiate_automaton_gen): Handle COLLAPSE_OPTION.
9309 (check_automata_insn_issues): Check for collapse_ainsn.
9310 (expand_automate): Allocate sufficient space. Initialize
9313 2011-08-25 Georg-Johann Lay <avr@gjlay.de>
9315 * config/avr/avr.md: Fix indentation from r177991.
9317 2011-08-25 Bernd Schmidt <bernds@codesourcery.com>
9319 * regrename.c (struct du_head): Remove member terminated.
9320 (create_new_chain): Don't initialize it.
9321 (scan_rtx_reg): Don't set or test it, test the open_chains_set
9323 (tick, this_tick): New global variables, moved out of
9325 (current_id, open_chains, closed_chains, open_chains_set,
9326 live_in_chains, live_hard_regs): Reorder declarations.
9327 (dump_def_use_chain): Move function earlier in the file.
9328 (rename_chains): New static function, broken out of
9330 (regrename_optimize): Use it. Remove #if 0'ed code.
9332 2011-08-25 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
9334 * varasm.c: (default_binds_local_p_1): Commentary typo fix.
9336 2011-08-24 H.J. Lu <hongjiu.lu@intel.com>
9339 * config/i386/i386.c (ix86_expand_builtin): Convert to Pmode if needed.
9341 2011-08-24 Richard Guenther <rguenther@suse.de>
9343 * tree-data-ref.c (dr_analyze_indices): Avoid unsharing the
9344 ref in the basic-block case. Move stripping array-refs
9345 to the place we create an access-function for it. Remove
9346 bogus stripping down a MEM_REF to its base.
9348 2011-08-24 Richard Guenther <rguenther@suse.de>
9350 * fold-const.c (fold_comparison): Fold &a < &a + 4 even
9351 with -fno-strict-overflow.
9353 2011-08-24 Richard Guenther <rguenther@suse.de>
9355 * tree-vectorizer.c (vect_print_dump_info): Avoid the
9356 file and location clutter when dumping to dump files.
9358 2011-08-24 Simon Baldwin <simonb@google.com>
9360 * gengtype-state.c (write_state): Remove timestamped header line.
9362 2011-08-24 Joseph Myers <joseph@codesourcery.com>
9364 * Makefile.in (CFLAGS-collect2.o, CFLAGS-c-family/c-opts.o)
9365 (CFLAGS-c-family/c-pch.o, CFLAGS-prefix.o, CFLAGS-version.o)
9366 (CFLAGS-lto-compress.o, CFLAGS-toplev.o, CFLAGS-intl.o)
9367 (CFLAGS-cppbuiltin.o, CFLAGS-cppdefault.o): New.
9368 (collect2.o, c-family/c-cppbuiltin.o, c-family/c-opts.o)
9369 (c-family/c-pch.o, prefix.o, version.o, lto-compress.o, toplev.o)
9370 (intl.o, cppbuiltin.o, cppdefault.o): Remove explicit compilation
9372 (lto-wrapper$(exeext)): Use $(LINKER) not $(COMPILER).
9374 2011-08-24 Joseph Myers <joseph@codesourcery.com>
9376 * Makefile.in (ALL_CXXFLAGS): Include $(CFLAGS-$@).
9378 2011-08-24 Richard Guenther <rguenther@suse.de>
9380 PR tree-optimization/50067
9381 * tree-data-ref.c (dr_analyze_indices): Do not add an access
9382 function for a MEM_REF base that has no evolution in the loop
9383 nest or that is not analyzable.
9385 2011-08-23 Vladimir Makarov <vmakarov@redhat.com>
9387 * ira.c (ira_init_register_move_cost): Check small subclasses
9388 through ira_reg_class_max_nregs and ira_available_class_regs.
9390 2011-08-23 Uros Bizjak <ubizjak@gmail.com>
9392 * config/i386/constraints.md (Yp): New register constraint.
9393 * config/i386/i386.md (*addhi_1): Merge with *addhi_1_lea using
9394 Yp register constraint.
9395 (*addqi_1): Merge with *addqi_1_lea using Yp register constraint.
9396 (*ashlhi3_1): Merge with *ashlhi3_1_lea using Yp register constraint.
9397 (*ashlqi3_1): Merge with *ashlqi3_1_lea using Yp register constraint.
9399 2011-08-23 Kirill Yukhin <kirill.yukhin@intel.com>
9401 * config/i386/sse.md (<s>mul<mode>3_highpart): Update.
9403 2011-08-23 Mark Heffernan <meheff@google.com>
9406 * common.opt (Wfree-nonheap-object): New option.
9407 * doc/invoke.texi (Warning options): Document -Wfree-nonheap-object.
9408 * builtins.c (maybe_emit_free_warning): Add OPT_Wfree_nonheap_object
9410 (expand_builtin): Make warning conditional.
9412 2011-08-23 Uros Bizjak <ubizjak@gmail.com>
9414 * config/i386/i386.md (type): Add imulx, ishiftx and rotatex.
9415 (length_immediate): Handle imulx, ishiftx and rotatex.
9418 (enabled): Handle bmi2.
9419 (*mul<mode><dwi>3): Split from *<u>mul<mode><dwi>3.
9420 (*umul<mode><dwi>3): Ditto. Add imulx BMI2 alternative.
9421 (*bmi2_umulditi3_1): New insn pattern.
9422 (*bmi2_umulsidi3_1): Ditto.
9423 (*umul<mode><dwi>3 splitter): New splitter to avoid flags dependency.
9424 (*bmi2_ashl<mode>3_1): New insn pattern.
9425 (*ashl<mode>3_1): Add ishiftx BMI2 alternative.
9426 (*ashl<mode>3_1 splitter): New splitter to avoid flags dependency.
9427 (*bmi2_ashlsi3_1_zext): New insn pattern.
9428 (*ashlsi3_1_zext): Add ishiftx BMI2 alternative.
9429 (*ashlsi3_1_zext splitter): New splitter to avoid flags dependency.
9430 (*bmi2_<shiftrt_insn><mode>3_1): New insn pattern.
9431 (*<shiftrt_insn><mode>3_1): Add ishiftx BMI2 alternative.
9432 (*<shiftrt_insn><mode>3_1 splitter): New splitter to avoid
9434 (*bmi2_<shiftrt_insn>si3_1_zext): New insn pattern.
9435 (*<shiftrt_insn>si3_1_zext): Add ishiftx BMI2 alternative.
9436 (*<shiftrt_insn>si3_1_zext splitter): New splitter to avoid
9438 (*bmi2_rorx<mode>3_1): New insn pattern.
9439 (*<rotate_insn><mode>3_1): Add rotatex BMI2 alternative.
9440 (*rotate<mode>3_1 splitter): New splitter to avoid flags dependency.
9441 (*rotatert<mode>3_1 splitter): Ditto.
9442 (*bmi2_rorxsi3_1_zext): New insn pattern.
9443 (*<rotate_insn>si3_1_zext): Add rotatex BMI2 alternative.
9444 (*rotatesi3_1_zext splitter): New splitter to avoid flags dependency.
9445 (*rotatertsi3_1_zext splitter): Ditto.
9447 2011-08-23 Kirill Yukhin <kirill.yukhin@intel.com>
9449 * common/config/i386/i386-common.c (OPTION_MASK_ISA_BMI2_SET): New.
9450 (OPTION_MASK_ISA_BMI2_UNSET): Likewise.
9451 (ix86_handle_option): Handle OPT_mbmi2 case.
9452 * config.gcc (i[34567]86-*-*): Add bmi2intrin.h.
9453 (x86_64-*-*): Likewise.
9454 * config/i386/bmi2intrin.h: New file.
9455 * config/i386/cpuid.h (bit_BMI2): New.
9456 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
9458 * config/i386/i386-c.c (ix86_target_macros_internal):
9459 Conditionally define __BMI2__.
9460 * config/i386/i386.c (ix86_option_override_internal): Define PTA_BMI2.
9462 (ix86_valid_target_attribute_inner_p): Handle BMI2 option.
9463 (print_reg): New code.
9464 (ix86_print_operand): Likewise.
9465 (ix86_builtins): Add IX86_BUILTIN_BZHI32, IX86_BUILTIN_BZHI64,
9466 IX86_BUILTIN_PDEP32, IX86_BUILTIN_PDEP64, IX86_BUILTIN_PEXT32,
9467 IX86_BUILTIN_PEXT64.
9468 (bdesc_args): Add IX86_BUILTIN_BZHI32, IX86_BUILTIN_BZHI64,
9469 IX86_BUILTIN_PDEP32, IX86_BUILTIN_PDEP64, IX86_BUILTIN_PEXT32,
9470 IX86_BUILTIN_PEXT64.
9471 * config/i386/i386.h (TARGET_BMI2): New.
9472 * config/i386/i386.md (UNSPEC_PDEP): New.
9473 (UNSPEC_PEXT): Likewise.
9474 (*bmi2_bzhi_<mode>3): Likewise.
9475 (*bmi2_pdep_<mode>3): Likewise.
9476 (*bmi2_pext_<mode>3): Likewise.
9477 * config/i386/i386.opt (mbmi2): New.
9478 * config/i386/x86intrin.h: Include bmi2intrin.h when __BMI2__
9480 * doc/extend.texi: Document BMI2 built-in functions.
9481 * doc/invoke.texi: Document -mbmi2.
9483 2011-08-23 Jakub Jelinek <jakub@redhat.com>
9486 * simplify-rtx.c (simplify_const_unary_operation): If
9487 op is CONST_INT, don't look at op_mode, but use instead mode.
9488 * optabs.c (add_equal_note): For FFS, CLZ, CTZ,
9489 CLRSB, POPCOUNT, PARITY and BSWAP use operand mode for
9490 operation and TRUNCATE/ZERO_EXTEND if needed.
9491 * doc/rtl.texi (ffs, clrsb, clz, ctz, popcount, parity, bswap):
9492 Document that operand mode must be same as operation mode,
9494 * config/avr/avr.md (paritysi2, *parityqihi2.libgcc,
9495 *paritysihi2.libgcc, popcountsi2, *popcountsi2.libgcc,
9496 *popcountqihi2.libgcc, clzsi2, *clzsihi2.libgcc, ctzsi2,
9497 *ctzsihi2.libgcc, ffssi2, *ffssihi2.libgcc): For unary ops
9498 use the mode of operand for the operation and add truncate
9499 or zero_extend around if needed.
9500 * config/c6x/c6x.md (ctzdi2): Likewise.
9501 * config/bfin/bfin.md (clrsbsi2, signbitssi2): Likewise.
9503 2011-08-12 Michael Matz <matz@suse.de>
9505 * cfgexpand.c (expand_one_register_var): Use get_pointer_alignment.
9506 (gimple_expand_cfg): Merge alignment info for coalesced pointer
9509 2011-08-23 Richard Guenther <rguenther@suse.de>
9511 * Makefile.in (tree-data-ref.o): Add tree-affine.h dependency.
9512 * tree-affine.h (aff_comb_cannot_overlap_p): Declare.
9513 * tree-affine.c (aff_comb_cannot_overlap_p): New function, moved
9515 * tree-ssa-loop-im.c (cannot_overlap_p): ... here.
9516 (mem_refs_may_alias_p): Adjust.
9517 * tree-data-ref.h (dr_may_alias_p): Adjust.
9518 * tree-data-ref.c: Include tree-affine.h.
9519 (dr_analyze_indices): Do nothing for the non-loop case.
9520 (dr_may_alias_p): Distinguish loop and non-loop case. Disambiguate
9521 more cases in the non-loop case.
9522 * graphite-sese-to-poly.c (write_alias_graph_to_ascii_dimacs): Adjust
9523 calls to dr_may_alias_p.
9524 (write_alias_graph_to_ascii_ecc): Likewise.
9525 (write_alias_graph_to_ascii_dot): Likewise.
9526 (build_alias_set_optimal_p): Likewise.
9528 2011-08-23 Richard Guenther <rguenther@suse.de>
9530 PR tree-optimization/50162
9531 * tree-vect-stmts.c (vectorizable_call): Fix argument lookup.
9533 2011-08-23 Richard Guenther <rguenther@suse.de>
9535 * tree-data-ref.c (dr_analyze_indices): Add comments, handle
9536 REALPART_EXPR and IMAGPART_EXPR similar to ARRAY_REFs.
9537 (create_data_ref): Also dump access functions for the created data-ref.
9539 2011-08-22 Uros Bizjak <ubizjak@gmail.com>
9540 Kirill Yukhin <kirill.yukhin@intel.com>
9543 * config/i386/sse.md (VI_AVX2): New.
9544 (<plusminus_insn><mode>3): Use VI_AVX2 mode iterator.
9545 (*<plusminus_insn><mode>3): Ditto.
9546 (<sse2_avx2>_andnot<mode>3): Ditto.
9547 (*andnot<mode>3): Fix order of cond operands.
9548 Add asserts for correct TARGET_xxx.
9549 (*<any_logic:code><mode>3): Ditto.
9551 2011-08-22 Anatoly Sokolov <aesok@post.ru>
9553 * config/m32c/m32c.h (CLASS_MAX_NREGS): Remove macro.
9554 * config/m32c/m32c-protos.h (m32c_class_max_nregs): Remove.
9555 * config/m32c/m32c.c (m32c_class_max_nregs): Make static. Change
9556 regclass argument type to reg_class_t. Change 'max' and 'v' vars
9557 and return types to unsigned char. Use reg_class_contents instead
9559 (TARGET_CLASS_MAX_NREGS): Define.
9561 2011-08-22 Bernd Schmidt <bernds@codesourcery.com>
9563 * config/c6x/c6x.md (indirect_jump_shadow): Tweak representation
9564 to make computed_jump_p return true.
9566 2011-08-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9568 * configure.ac (GCC_PICFLAG_FOR_TARGET): Call it.
9569 (PICFLAG_FOR_TARGET): Substitute.
9570 * aclocal.m4: Regenerate.
9571 * configure: Regenerate.
9573 2011-08-22 Dodji Seketeli <dodji@redhat.com>
9575 * c-family/c-pch.c (c_common_read_pch): Re-set line table right
9576 after reading in the pch.
9578 2011-08-22 H.J. Lu <hongjiu.lu@intel.com>
9580 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Error if __ELF__ isn't defined.
9581 * configure: Regenerated.
9583 2011-08-22 Jakub Jelinek <jakub@redhat.com>
9585 PR tree-optimization/50133
9586 * tree-vect-stmts.c (vect_finish_stmt_generation): Copy location
9587 from stmt instead of some statement around gsi.
9590 * expr.c (get_bit_range): Only use DECL_THREAD_LOCAL_P if
9591 innerdecl is a VAR_DECL.
9593 2011-08-22 Kirill Yukhin <kirill.yukhin@intel.com>
9595 * config/i386/avx2intrin.h: New file.
9596 * config/i386/i386-builtin-types.def (PCINT, PCINT64, PV4SI,
9597 PV8SI, V32QI_FTYPE_V32QI, V32QI_FTYPE_V16QI, V16HI_FTYPE_V16HI,
9598 V16HI_FTYPE_V8HI, V8SI_FTYPE_V8SI, V16HI_FTYPE_V16QI,
9599 V8SI_FTYPE_V16QI, V4DI_FTYPE_V16QI, V8SI_FTYPE_V8HI,
9600 V4DI_FTYPE_V8HI, V4DI_FTYPE_V4SI, V4DI_FTYPE_PV4DI,
9601 V4DI_FTYPE_V2DI, V2DI_FTYPE_PCV2DI_V2DI, V4SI_FTYPE_PCV4SI_V4SI,
9602 V32QI_FTYPE_V16HI_V16HI, V16HI_FTYPE_V8SI_V8SI,
9603 V32QI_FTYPE_V32QI_V32QI, V16HI_FTYPE_V32QI_V32QI,
9604 V16HI_FTYPE_V16HI_V8HI, V16HI_FTYPE_V16HI_V16HI,
9605 V16HI_FTYPE_V16HI_INT, V16HI_FTYPE_V16HI_SI,
9606 V16HI_FTYPE_V16HI_V16HI_INT, V32QI_FTYPE_V32QI_V32QI_INT,
9607 V8SI_FTYPE_V8SI_V4SI, V8SI_FTYPE_V8SI_V8SI,
9608 V8SI_FTYPE_V16HI_V16HI, V8SI_FTYPE_V8SI_INT, V8SI_FTYPE_V8SI_SI,
9609 V8SI_FTYPE_PCV8SI_V8SI, V4DI_FTYPE_V4DI_V4DI,
9610 V4DI_FTYPE_V8SI_V8SI, V4DI_FTYPE_V4DI_V2DI,
9611 V4DI_FTYPE_PCV4DI_V4DI, V4DI_FTYPE_V4DI_INT,
9612 V2DI_FTYPE_V4DI_INT, V4DI_FTYPE_V4DI_V4DI_INT,
9613 V4DI_FTYPE_V4DI_V2DI_INT, VOID_FTYPE_PV2DI_V2DI_V2DI,
9614 VOID_FTYPE_PV4DI_V4DI_V4DI, VOID_FTYPE_PV4SI_V4SI_V4SI,
9615 VOID_FTYPE_PV8SI_V8SI_V8SI,
9616 V2DF_FTYPE_V2DF_PCDOUBLE_V4SI_V2DF_INT,
9617 V4DF_FTYPE_V4DF_PCDOUBLE_V4SI_V4DF_INT,
9618 V2DF_FTYPE_V2DF_PCDOUBLE_V2DI_V2DF_INT,
9619 V4DF_FTYPE_V4DF_PCDOUBLE_V4DI_V4DF_INT,
9620 V4SF_FTYPE_V4SF_PCFLOAT_V4SI_V4SF_INT,
9621 V8SF_FTYPE_V8SF_PCFLOAT_V8SI_V8SF_INT,
9622 V4SF_FTYPE_V4SF_PCFLOAT_V2DI_V4SF_INT,
9623 V4SF_FTYPE_V4SF_PCFLOAT_V4DI_V4SF_INT,
9624 V2DI_FTYPE_V2DI_PCINT64_V4SI_V2DI_INT,
9625 V4DI_FTYPE_V4DI_PCINT64_V4SI_V4DI_INT,
9626 V2DI_FTYPE_V2DI_PCINT64_V2DI_V2DI_INT,
9627 V4DI_FTYPE_V4DI_PCINT64_V4DI_V4DI_INT,
9628 V4SI_FTYPE_V4SI_PCINT_V4SI_V4SI_INT,
9629 V8SI_FTYPE_V8SI_PCINT_V8SI_V8SI_INT,
9630 V4SI_FTYPE_V4SI_PCINT_V2DI_V4SI_INT,
9631 V4SI_FTYPE_V4SI_PCINT_V4DI_V4SI_INT,
9632 V16HI_FTYPE_V16HI_SI_COUNT, V16HI_FTYPE_V16HI_V8HI_COUNT,
9633 V8SI_FTYPE_V8SI_SI_COUNT, V8SI_FTYPE_V8SI_V4SI_COUNT,
9634 V4DI_FTYPE_V4DI_INT_COUNT, V4DI_FTYPE_V4DI_V2DI_COUNT,
9635 V4DI_FTYPE_V4DI_INT_CONVERT,
9636 V4DI_FTYPE_V4DI_V4DI_INT_CONVERT): New.
9637 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MPSADBW256,
9638 IX86_BUILTIN_PABSB256, IX86_BUILTIN_PABSW256,
9639 IX86_BUILTIN_PABSD256, IX86_BUILTIN_PACKSSDW256,
9640 IX86_BUILTIN_PACKSSWB256, IX86_BUILTIN_PACKUSDW256,
9641 IX86_BUILTIN_PACKUSWB256, IX86_BUILTIN_PADDB256,
9642 IX86_BUILTIN_PADDW256, IX86_BUILTIN_PADDD256,
9643 IX86_BUILTIN_PADDQ256, IX86_BUILTIN_PADDSB256,
9644 IX86_BUILTIN_PADDSW256, IX86_BUILTIN_PADDUSB256,
9645 IX86_BUILTIN_PADDUSW256, IX86_BUILTIN_PALIGNR256,
9646 IX86_BUILTIN_AND256I, IX86_BUILTIN_ANDNOT256I,
9647 IX86_BUILTIN_PAVGB256, IX86_BUILTIN_PAVGW256,
9648 IX86_BUILTIN_PBLENDVB256, IX86_BUILTIN_PBLENDVW256,
9649 IX86_BUILTIN_PCMPEQB256, IX86_BUILTIN_PCMPEQW256,
9650 IX86_BUILTIN_PCMPEQD256, IX86_BUILTIN_PCMPEQQ256,
9651 IX86_BUILTIN_PCMPGTB256, IX86_BUILTIN_PCMPGTW256,
9652 IX86_BUILTIN_PCMPGTD256, IX86_BUILTIN_PCMPGTQ256,
9653 IX86_BUILTIN_PHADDW256, IX86_BUILTIN_PHADDD256,
9654 IX86_BUILTIN_PHADDSW256, IX86_BUILTIN_PHSUBW256,
9655 IX86_BUILTIN_PHSUBD256, IX86_BUILTIN_PHSUBSW256,
9656 IX86_BUILTIN_PMADDUBSW256, IX86_BUILTIN_PMADDWD256,
9657 IX86_BUILTIN_PMAXSB256, IX86_BUILTIN_PMAXSW256,
9658 IX86_BUILTIN_PMAXSD256, IX86_BUILTIN_PMAXUB256,
9659 IX86_BUILTIN_PMAXUW256, IX86_BUILTIN_PMAXUD256,
9660 IX86_BUILTIN_PMINSB256, IX86_BUILTIN_PMINSW256,
9661 IX86_BUILTIN_PMINSD256, IX86_BUILTIN_PMINUB256,
9662 IX86_BUILTIN_PMINUW256, IX86_BUILTIN_PMINUD256,
9663 IX86_BUILTIN_PMOVMSKB256, IX86_BUILTIN_PMOVSXBW256,
9664 IX86_BUILTIN_PMOVSXBD256, IX86_BUILTIN_PMOVSXBQ256,
9665 IX86_BUILTIN_PMOVSXWD256, IX86_BUILTIN_PMOVSXWQ256,
9666 IX86_BUILTIN_PMOVSXDQ256, IX86_BUILTIN_PMOVZXBW256,
9667 IX86_BUILTIN_PMOVZXBD256, IX86_BUILTIN_PMOVZXBQ256,
9668 IX86_BUILTIN_PMOVZXWD256, IX86_BUILTIN_PMOVZXWQ256,
9669 IX86_BUILTIN_PMOVZXDQ256, IX86_BUILTIN_PMULDQ256,
9670 IX86_BUILTIN_PMULHRSW256, IX86_BUILTIN_PMULHUW256,
9671 IX86_BUILTIN_PMULHW256, IX86_BUILTIN_PMULLW256,
9672 IX86_BUILTIN_PMULLD256, IX86_BUILTIN_PMULUDQ256,
9673 IX86_BUILTIN_POR256, IX86_BUILTIN_PSADBW256,
9674 IX86_BUILTIN_PSHUFB256, IX86_BUILTIN_PSHUFD256,
9675 IX86_BUILTIN_PSHUFHW256, IX86_BUILTIN_PSHUFLW256,
9676 IX86_BUILTIN_PSIGNB256, IX86_BUILTIN_PSIGNW256,
9677 IX86_BUILTIN_PSIGND256, IX86_BUILTIN_PSLLDQI256,
9678 IX86_BUILTIN_PSLLWI256, IX86_BUILTIN_PSLLW256,
9679 IX86_BUILTIN_PSLLDI256, IX86_BUILTIN_PSLLD256,
9680 IX86_BUILTIN_PSLLQI256, IX86_BUILTIN_PSLLQ256,
9681 IX86_BUILTIN_PSRAWI256, IX86_BUILTIN_PSRAW256,
9682 IX86_BUILTIN_PSRADI256, IX86_BUILTIN_PSRAD256,
9683 IX86_BUILTIN_PSRLDQI256, IX86_BUILTIN_PSRLWI256,
9684 IX86_BUILTIN_PSRLW256, IX86_BUILTIN_PSRLDI256,
9685 IX86_BUILTIN_PSRLD256, IX86_BUILTIN_PSRLQI256,
9686 IX86_BUILTIN_PSRLQ256, IX86_BUILTIN_PSUBB256,
9687 IX86_BUILTIN_PSUBW256, IX86_BUILTIN_PSUBD256,
9688 IX86_BUILTIN_PSUBQ256, IX86_BUILTIN_PSUBSB256,
9689 IX86_BUILTIN_PSUBSW256, IX86_BUILTIN_PSUBUSB256,
9690 IX86_BUILTIN_PSUBUSW256, IX86_BUILTIN_PUNPCKHBW256,
9691 IX86_BUILTIN_PUNPCKHWD256, IX86_BUILTIN_PUNPCKHDQ256,
9692 IX86_BUILTIN_PUNPCKHQDQ256, IX86_BUILTIN_PUNPCKLBW256,
9693 IX86_BUILTIN_PUNPCKLWD256, IX86_BUILTIN_PUNPCKLDQ256,
9694 IX86_BUILTIN_PUNPCKLQDQ256, IX86_BUILTIN_PXOR256,
9695 IX86_BUILTIN_MOVNTDQA256, IX86_BUILTIN_VBROADCASTSS_PS,
9696 IX86_BUILTIN_VBROADCASTSS_PS256,
9697 IX86_BUILTIN_VBROADCASTSD_PD256,
9698 IX86_BUILTIN_VBROADCASTSI256, IX86_BUILTIN_PBLENDD256,
9699 IX86_BUILTIN_PBLENDD128, IX86_BUILTIN_PBROADCASTB256,
9700 IX86_BUILTIN_PBROADCASTW256, IX86_BUILTIN_PBROADCASTD256,
9701 IX86_BUILTIN_PBROADCASTQ256, IX86_BUILTIN_PBROADCASTB128,
9702 IX86_BUILTIN_PBROADCASTW128, IX86_BUILTIN_PBROADCASTD128,
9703 IX86_BUILTIN_PBROADCASTQ128, IX86_BUILTIN_VPERMVARSI256,
9704 IX86_BUILTIN_VPERMDF256, IX86_BUILTIN_VPERMVARSF256,
9705 IX86_BUILTIN_VPERMDI256, IX86_BUILTIN_VPERMTI256,
9706 IX86_BUILTIN_VEXTRACT128I256, IX86_BUILTIN_VINSERT128I256,
9707 IX86_BUILTIN_MASKLOADD, IX86_BUILTIN_MASKLOADQ,
9708 IX86_BUILTIN_MASKLOADD256, IX86_BUILTIN_MASKLOADQ256,
9709 IX86_BUILTIN_MASKSTORED, IX86_BUILTIN_MASKSTOREQ,
9710 IX86_BUILTIN_MASKSTORED256, IX86_BUILTIN_MASKSTOREQ256,
9711 IX86_BUILTIN_PSLLVV4DI, IX86_BUILTIN_PSLLVV2DI,
9712 IX86_BUILTIN_PSLLVV8SI, IX86_BUILTIN_PSLLVV4SI,
9713 IX86_BUILTIN_PSRAVV8SI, IX86_BUILTIN_PSRAVV4SI,
9714 IX86_BUILTIN_PSRLVV4DI, IX86_BUILTIN_PSRLVV2DI,
9715 IX86_BUILTIN_PSRLVV8SI, IX86_BUILTIN_PSRLVV4SI,
9716 IX86_BUILTIN_GATHERSIV2DF, IX86_BUILTIN_GATHERSIV4DF,
9717 IX86_BUILTIN_GATHERDIV2DF, IX86_BUILTIN_GATHERDIV4DF,
9718 IX86_BUILTIN_GATHERSIV4SF, IX86_BUILTIN_GATHERSIV8SF,
9719 IX86_BUILTIN_GATHERDIV4SF, IX86_BUILTIN_GATHERDIV8SF,
9720 IX86_BUILTIN_GATHERSIV2DI, IX86_BUILTIN_GATHERSIV4DI,
9721 IX86_BUILTIN_GATHERDIV2DI, IX86_BUILTIN_GATHERDIV4DI,
9722 IX86_BUILTIN_GATHERSIV4SI, IX86_BUILTIN_GATHERSIV8SI,
9723 IX86_BUILTIN_GATHERDIV4SI, IX86_BUILTIN_GATHERDIV8SI.
9724 (bdesc_special_args): Add IX86_BUILTIN_MOVNTDQA256,
9725 IX86_BUILTIN_MASKLOADD, IX86_BUILTIN_MASKLOADQ,
9726 IX86_BUILTIN_MASKLOADD256, IX86_BUILTIN_MASKLOADQ256,
9727 IX86_BUILTIN_MASKSTORED, IX86_BUILTIN_MASKSTOREQ,
9728 IX86_BUILTIN_MASKSTORED256, IX86_BUILTIN_MASKSTOREQ256.
9729 (bdesc_args): Add IX86_BUILTIN_MPSADBW256,
9730 IX86_BUILTIN_PABSB256, IX86_BUILTIN_PABSW256,
9731 IX86_BUILTIN_PABSD256, IX86_BUILTIN_PACKSSDW256,
9732 IX86_BUILTIN_PACKSSWB256, IX86_BUILTIN_PACKUSDW256,
9733 IX86_BUILTIN_PACKUSWB256, IX86_BUILTIN_PADDB256,
9734 IX86_BUILTIN_PADDW256, IX86_BUILTIN_PADDD256,
9735 IX86_BUILTIN_PADDQ256, IX86_BUILTIN_PADDSB256,
9736 IX86_BUILTIN_PADDSW256, IX86_BUILTIN_PADDUSB256,
9737 IX86_BUILTIN_PADDUSW256, IX86_BUILTIN_PALIGNR256,
9738 IX86_BUILTIN_AND256I, IX86_BUILTIN_ANDNOT256I,
9739 IX86_BUILTIN_PAVGB256, IX86_BUILTIN_PAVGW256,
9740 IX86_BUILTIN_PBLENDVB256, IX86_BUILTIN_PBLENDVW256,
9741 IX86_BUILTIN_PCMPEQB256, IX86_BUILTIN_PCMPEQW256,
9742 IX86_BUILTIN_PCMPEQD256, IX86_BUILTIN_PCMPEQQ256,
9743 IX86_BUILTIN_PCMPGTB256, IX86_BUILTIN_PCMPGTW256,
9744 IX86_BUILTIN_PCMPGTD256, IX86_BUILTIN_PCMPGTQ256,
9745 IX86_BUILTIN_PHADDW256, IX86_BUILTIN_PHADDD256,
9746 IX86_BUILTIN_PHADDSW256, IX86_BUILTIN_PHSUBW256,
9747 IX86_BUILTIN_PHSUBD256, IX86_BUILTIN_PHSUBSW256,
9748 IX86_BUILTIN_PMADDUBSW256, IX86_BUILTIN_PMADDWD256,
9749 IX86_BUILTIN_PMAXSB256, IX86_BUILTIN_PMAXSW256,
9750 IX86_BUILTIN_PMAXSD256, IX86_BUILTIN_PMAXUB256,
9751 IX86_BUILTIN_PMAXUW256, IX86_BUILTIN_PMAXUD256,
9752 IX86_BUILTIN_PMINSB256, IX86_BUILTIN_PMINSW256,
9753 IX86_BUILTIN_PMINSD256, IX86_BUILTIN_PMINUB256,
9754 IX86_BUILTIN_PMINUW256, IX86_BUILTIN_PMINUD256,
9755 IX86_BUILTIN_PMOVMSKB256, IX86_BUILTIN_PMOVSXBW256,
9756 IX86_BUILTIN_PMOVSXBD256, IX86_BUILTIN_PMOVSXBQ256,
9757 IX86_BUILTIN_PMOVSXWD256, IX86_BUILTIN_PMOVSXWQ256,
9758 IX86_BUILTIN_PMOVSXDQ256, IX86_BUILTIN_PMOVZXBW256,
9759 IX86_BUILTIN_PMOVZXBD256, IX86_BUILTIN_PMOVZXBQ256,
9760 IX86_BUILTIN_PMOVZXWD256, IX86_BUILTIN_PMOVZXWQ256,
9761 IX86_BUILTIN_PMOVZXDQ256, IX86_BUILTIN_PMULDQ256,
9762 IX86_BUILTIN_PMULHRSW256, IX86_BUILTIN_PMULHUW256,
9763 IX86_BUILTIN_PMULHW256, IX86_BUILTIN_PMULLW256,
9764 IX86_BUILTIN_PMULLD256, IX86_BUILTIN_PMULUDQ256,
9765 IX86_BUILTIN_POR256, IX86_BUILTIN_PSADBW256,
9766 IX86_BUILTIN_PSHUFB256, IX86_BUILTIN_PSHUFD256,
9767 IX86_BUILTIN_PSHUFHW256, IX86_BUILTIN_PSHUFLW256,
9768 IX86_BUILTIN_PSIGNB256, IX86_BUILTIN_PSIGNW256,
9769 IX86_BUILTIN_PSIGND256, IX86_BUILTIN_PSLLDQI256,
9770 IX86_BUILTIN_PSLLWI256, IX86_BUILTIN_PSLLW256,
9771 IX86_BUILTIN_PSLLDI256, IX86_BUILTIN_PSLLD256,
9772 IX86_BUILTIN_PSLLQI256, IX86_BUILTIN_PSLLQ256,
9773 IX86_BUILTIN_PSRAWI256, IX86_BUILTIN_PSRAW256,
9774 IX86_BUILTIN_PSRADI256, IX86_BUILTIN_PSRAD256,
9775 IX86_BUILTIN_PSRLDQI256, IX86_BUILTIN_PSRLWI256,
9776 IX86_BUILTIN_PSRLW256, IX86_BUILTIN_PSRLDI256,
9777 IX86_BUILTIN_PSRLD256, IX86_BUILTIN_PSRLQI256,
9778 IX86_BUILTIN_PSRLQ256, IX86_BUILTIN_PSUBB256,
9779 IX86_BUILTIN_PSUBW256, IX86_BUILTIN_PSUBD256,
9780 IX86_BUILTIN_PSUBQ256, IX86_BUILTIN_PSUBSB256,
9781 IX86_BUILTIN_PSUBSW256, IX86_BUILTIN_PSUBUSB256,
9782 IX86_BUILTIN_PSUBUSW256, IX86_BUILTIN_PUNPCKHBW256,
9783 IX86_BUILTIN_PUNPCKHWD256, IX86_BUILTIN_PUNPCKHDQ256,
9784 IX86_BUILTIN_PUNPCKHQDQ256, IX86_BUILTIN_PUNPCKLBW256,
9785 IX86_BUILTIN_PUNPCKLWD256, IX86_BUILTIN_PUNPCKLDQ256,
9786 IX86_BUILTIN_PUNPCKLQDQ256, IX86_BUILTIN_PXOR256,
9787 IX86_BUILTIN_VBROADCASTSS_PS, IX86_BUILTIN_VBROADCASTSS_PS256,
9788 IX86_BUILTIN_VBROADCASTSD_PD256,
9789 IX86_BUILTIN_VBROADCASTSI256, IX86_BUILTIN_PBLENDD256,
9790 IX86_BUILTIN_PBLENDD128, IX86_BUILTIN_PBROADCASTB256,
9791 IX86_BUILTIN_PBROADCASTW256, IX86_BUILTIN_PBROADCASTD256,
9792 IX86_BUILTIN_PBROADCASTQ256, IX86_BUILTIN_PBROADCASTB128,
9793 IX86_BUILTIN_PBROADCASTW128, IX86_BUILTIN_PBROADCASTD128,
9794 IX86_BUILTIN_PBROADCASTQ128, IX86_BUILTIN_VPERMVARSI256,
9795 IX86_BUILTIN_VPERMDF256, IX86_BUILTIN_VPERMVARSF256,
9796 IX86_BUILTIN_VPERMDI256, IX86_BUILTIN_VPERMTI256,
9797 IX86_BUILTIN_VEXTRACT128I256, IX86_BUILTIN_VINSERT128I256,
9798 IX86_BUILTIN_PSLLVV4DI, IX86_BUILTIN_PSLLVV2DI,
9799 IX86_BUILTIN_PSLLVV8SI, IX86_BUILTIN_PSLLVV4SI,
9800 IX86_BUILTIN_PSRAVV8SI, IX86_BUILTIN_PSRAVV4SI,
9801 IX86_BUILTIN_PSRLVV4DI, IX86_BUILTIN_PSRLVV2DI,
9802 IX86_BUILTIN_PSRLVV8SI, IX86_BUILTIN_PSRLVV4SI.
9803 (ix86_init_mmx_sse_builtins): Add IX86_BUILTIN_GATHERSIV2DF,
9804 IX86_BUILTIN_GATHERSIV4DF, IX86_BUILTIN_GATHERDIV2DF,
9805 IX86_BUILTIN_GATHERDIV4DF, IX86_BUILTIN_GATHERSIV4SF,
9806 IX86_BUILTIN_GATHERSIV8SF, IX86_BUILTIN_GATHERDIV4SF,
9807 IX86_BUILTIN_GATHERDIV8SF, IX86_BUILTIN_GATHERSIV2DI,
9808 IX86_BUILTIN_GATHERSIV4DI, IX86_BUILTIN_GATHERDIV2DI,
9809 IX86_BUILTIN_GATHERDIV4DI, IX86_BUILTIN_GATHERSIV4SI,
9810 IX86_BUILTIN_GATHERSIV8SI, IX86_BUILTIN_GATHERDIV4SI,
9811 IX86_BUILTIN_GATHERDIV8SI.
9812 (ix86_preferred_simd_mode): Support AVX2 modes.
9813 (ix86_expand_args_builtin): Support AVX2 builtins.
9814 (ix86_expand_special_args_builtin): Likewise.
9815 (ix86_expand_builtin): Likewise.
9816 * config/i386/i386.md (UNSPEC_VPERMSI): New.
9817 (UNSPEC_VPERMDF): Likewise.
9818 (UNSPEC_VPERMSF): Likewise.
9819 (UNSPEC_VPERMDI): Likewise.
9820 (UNSPEC_VPERMTI): Likewise.
9821 (UNSPEC_GATHER): Likewise.
9822 (ssemodesuffix): Extend.
9823 * config/i386/immintrin.h: Include avx2intrin.h when __AVX2__
9825 * config/i386/predicates.md (const1248_operand): New.
9826 * config/i386/sse.md (VI1_AVX2): New mode iterator.
9827 (VI2_AVX2): Likewise.
9828 (VI4_AVX2): Likewise.
9829 (VI8_AVX2): Likewise.
9830 (VIMAX_AVX2): Likewise.
9831 (SSESCALARMODE): Likewise.
9832 (VI12_AVX2): Likewise.
9833 (VI24_AVX2): Likewise.
9834 (VI124_AVX2): Likewise.
9835 (VI248_AVX2): Likewise.
9836 (VI48_AVX2): Likewise.
9837 (VI4SD_AVX2): Likewise.
9838 (V48_AVX2): Likewise.
9839 (AVX256MODE2P): Likewise.
9840 (AVXMODE48P_DI): Likewise.
9841 (sse2_avx2): New mode attribute.
9842 (ssse3_avx2): Likewise.
9843 (sse4_1_avx2): Likewise.
9844 (avx_avx2): Likewise.
9845 (ssebytemode): Likewise.
9846 (AVXTOSSEMODE): Likewise.
9847 (AVXMODE48P_DI): Likewise.
9848 (gthrfirstp): Likewise.
9849 (gthrlastp): Likewise.
9850 (lshift): New code_iterator
9851 (lshift): New code attribute.
9853 (ssescalarmodesuffix): Update.
9854 (sseunpackmode): Likewise.
9855 (ssepackmode): Likewise.
9856 (avx2_vec_dupv4sf): New insn pattern.
9857 (avx2_vec_dupv8sf): Likewise.
9858 (avx2_interleave_highv4di): Likewise.
9859 (avx2_interleave_lowv4di): Likewise.
9860 (avx2_umulv4siv4di3): Likewise
9861 (*avx2_umulv4siv4di3): Likewise
9862 (avx2_pmaddwd): Likewise.
9863 (*avx2_pmaddwd): Likewise.
9864 (avx2_lshrqv4di3): Likewise.
9865 (avx2_lshlqv4di3): Likewise.
9866 (avx2_lshl<mode>3): Likewise.
9867 (avx2_<umaxmin:code><mode>3): Likewise.
9868 (*avx2_<umaxmin:code><mode>3): Likewise.
9869 (avx2_<smaxmin:code><mode>3): Likewise.
9870 (*avx2_<smaxmin:code><mode>3): Likewise.
9871 (avx2_eq<mode>3): Likewise.
9872 (*avx2_eq<mode>3): Likewise.
9873 (avx2_gt<mode>3): Likewise.
9874 (avx2_interleave_highv32qi): New.
9875 (avx2_interleave_lowv32qi): Likewise.
9876 (avx2_interleave_highv16hi): Likewise.
9877 (avx2_interleave_lowv16hi): Likewise.
9878 (avx2_interleave_highv8si): Likewise.
9879 (avx2_interleave_lowv8si): Likewise.
9880 (avx2_pshufd): Likewise.
9881 (avx2_pshufd_1): Likewise.
9882 (avx2_pshuflwv3): Likewise.
9883 (avx2_pshuflw_1): Likewise.
9884 (avx2_pshufhwv3): Likewise.
9885 (avx2_pshufhw_1): Likewise.
9886 (avx2_uavgv32qi3): Likewise.
9887 (*avx2_uavgv32qi3): Likewise.
9888 (avx2_uavgv16hi3): Likewise.
9889 (*avx2_uavgv16hi3): Likewise.
9890 (avx2_pmovmskb): Likewise.
9891 (avx2_phaddwv16hi3): Likewise.
9892 (avx2_phadddv8si3): Likewise.
9893 (avx2_phaddswv16hi3): Likewise.
9894 (avx2_phsubwv16hi3): Likewise.
9895 (avx2_phsubdv8si3): Likewise.
9896 (avx2_phsubswv16hi3): Likewise.
9897 (avx2_pmaddubsw256): Likewise.
9898 (avx2_umulhrswv16hi3): Likewise.
9899 (*avx2_umulhrswv16hi3): Likewise.
9900 (avx2_packusdw): Likewise.
9901 (avx2_pblendd<mode>): Likewise.
9902 (avx2_<code>v16qiv16hi2): Likewise.
9903 (avx2_<code>v8qiv8si2): Likewise.
9904 (avx2_<code>v8hiv8si2): Likewise.
9905 (avx2_<code>v4qiv4di2): Likewise.
9906 (avx2_<code>v4hiv4di2): Likewise.
9907 (avx2_<code>v4siv4di2): Likewise.
9908 (avx2_pbroadcast<mode>): Likewise.
9909 (avx2_permvarv8si): Likewise.
9910 (avx2_permv4df): Likewise.
9911 (avx2_permvarv8sf): Likewise.
9912 (avx2_permv4di): Likewise.
9913 (avx2_permv2ti): Likewise.
9914 (avx2_vec_dupv4df): Likewise.
9915 (avx2_vbroadcasti128_<mode>): Likewise.
9916 (avx2_vec_set_lo_v4di): Likewise.
9917 (avx2_vec_set_hi_v4di): Likewise.
9918 (*avx2_maskmov<avx2modesuffix><avxmodesuffix>): Likewise.
9919 (avx2_extracti128): Likewise.
9920 (avx2_inserti128): Likewise.
9921 (avx2_ashrvv8si): Likewise.
9922 (avx2_ashrvv4si): Likewise.
9923 (avx2_<lshift>vv8si): Likewise.
9924 (avx2_<lshift>v<mode>): Likewise.
9925 (avx2_<lshift>vv2di): Likewise.
9926 (avx2_gathersi<mode>): Likewise.
9927 (*avx2_gathersi<mode>): Likewise.
9928 (avx2_gatherdi<mode>): Likewise.
9929 (*avx2_gatherdi<mode>): Likewise.
9930 (avx2_gatherdi<mode>256): Likewise.
9931 (*avx2_gatherdi<mode>256): Likewise.
9932 (<plusminus_insn><mode>3): Use VI mode iterator.
9933 (*<plusminus_insn><mode>3): Use VI mode iterator.
9934 (<sse2_avx2>_<plusminus_insn><mode>3): Rename from
9935 sse2_<plusminus_insn><mode>3. Use VI12_AVX2 mode iterator.
9936 (*<sse2_avx2>_<plusminus_insn><mode>3): Rename from
9937 *sse2_<plusminus_insn><mode>3. Use VI12_AVX2 mode iterator.
9938 (mul<mode>3): Rename from mulv8hi3. Use VI2_AVX2 mode iterator.
9939 (*mul<mode>3): Rename from *mulv8hi3. Use VI2_AVX2 mode iterator.
9940 (<s>mul<mode>3_highpart): Rename from <s>mulv8hi3_highpart.
9941 Use VI2_AVX2 mode iterator.
9942 (*<s>mul<mode>3_highpart): Rename from *<s>mulv8hi3_highpart.
9943 Use VI2_AVX2 mode iterator.
9944 (mul<mode>3): Rename from mulv4si3. Use VI4_AVX2 mode iterator.
9945 (*mul<mode>3): Rename from *mulv4si3. Use VI4_AVX2 mode iterator.
9946 (*<sse4_1_avx2>_mulv2siv2di3): Rename from *sse4_1_mulv4si3.
9947 Use VI4_AVX2 mode iterator.
9948 (ashr<mode>3): Use VI24_AVX2 mode iterator.
9949 (lshr<mode>3): Use VI248_AVX2 mode iterator.
9950 (<sse2_avx2>_ashl<mode>3): Rename from sse2_ashlv1ti3.
9951 Use VIMAX_AVX2 mode iterator.
9952 (<sse2_avx2>_andnot<mode>3): Rename from sse2_andnot<mode>3.
9953 Use VI mode iterator.
9954 (*andnot<mode>3): Update for AVX2.
9955 (*<any_logic:code><mode>3): Likewise.
9956 (<sse2_avx2>_packsswb): Rename from sse2_packsswb.
9957 Use VI1_AVX mode iterator.
9958 (<sse2_avx2>_packssdw): Rename from sse2_packssdw.
9959 Use VI2_AVX mode iterator.
9960 (<sse2_avx2>_packuswb): Rename from sse2_packsswb.
9961 Use VI1_AVX mode iterator.
9962 (<sse2_avx2>_psadbw): Rename from sse2_psadbw.
9963 Use VI8_AVX2 mode iterator.
9964 (<ssse3_avx2>_pshufb<mode>3): Rename from ssse3_pshufbv16qi3.
9965 Use VI1_AVX2 mode iterator.
9966 (<ssse3_avx2>_psign<mode>3): Rename from ssse3_psign<mode>3.
9967 Use VI124_AVX2 mode iterator.
9968 (<ssse3_avx2>_palignr<mode>): Rename from ssse3_palignrti.
9969 Use SSESCALARMODE mode iterator.
9970 (abs<mode>2): Use VI124_AVX2 mode iterator.
9971 (<sse4_1_avx2>_movntdqa): Rename from sse4_1_movntdqa.
9972 Use VI8_AVX2 mode iterator.
9973 (<sse4_1_avx2>_mpsadbw): Rename from sse4_1_mpsadbw.
9974 Use VI1_AVX2 mode iterator.
9975 (<sse4_1_avx2>_pblendvb): Rename from sse4_1_pblendvb.
9976 Use VI1_AVX2 mode iterator.
9977 (<sse4_1_avx2>_pblendw): Rename from sse4_1_pblendvb.
9978 Use VI2_AVX2 mode iterator.
9979 (<avx_avx2>_maskload<avx2modesuffix><avxmodesuffix>): Rename from
9980 avx_maskload<ssemodesuffix><avxsizesuffix>. Use V48_AVX2 mode iterator.
9981 (<avx_avx2>_maskstore<avx2modesuffix><avxmodesuffix>): Rename from
9982 avx_maskstore<ssemodesuffix><avxsizesuffix>.
9983 Use V48_AVX2 mode iterator.
9984 * doc/extend.texi: Document AVX2 built-in functions.
9985 * doc/invoke.texi: Document -mavx2.
9987 2011-08-22 Matthias Klose <doko@debian.org>
9990 2011-07-11 Arthur Loiret <aloiret@debian.org>
9991 Matthias Klose <doko@debian.org>
9992 * config/mips/t-linux64 (MULTILIB_DIRNAMES): Set to 'n32 . 64' if
9993 tm_defines contains MIPS_ABI_DEFAULT ABI_32, to follow the glibc
9995 * config.gcc (tm_defines): Add MIPS_ABI_DEFAULT=ABI_32.
9997 2011-08-22 Mikael Pettersson <mikpe@it.uu.se>
10000 * ira-color.c (assign_hard_reg): Move saved_nregs declaration
10001 to #ifndef HONOR_REG_ALLOC_ORDER block.
10003 2011-08-21 Richard Henderson <rth@redhat.com>
10005 * rtl.h (INSN_ANNULLED_BRANCH_P): Only allow JUMP_INSN.
10006 * dwarf2cfi.c (scan_trace): Test JUMP_P before INSN_ANNULLED_BRANCH_P.
10007 * resource.c (next_insn_no_annul): Likewise.
10008 (mark_set_resources): Likewise.
10009 * reorg.c (delete_from_delay_slot): Likewise.
10010 (dbr_schedule, redundant_insn, try_merge_delay_insns): Likewise.
10011 (get_branch_condition): Test pc_rtx and LABEL_REF before dereferencing.
10013 2011-08-21 Uros Bizjak <ubizjak@gmail.com>
10015 * config/i386/i386.md (any_div): Remove.
10016 (sgnprefix): Update for removal.
10019 2011-08-20 Vladimir Makarov <vmakarov@redhat.com>
10021 * ira-lives.c (mark_pseudo_regno_subword_live): Use allocno class
10022 for ira_reg_class_max_nregs. Increase pressure by 1.
10023 (mark_pseudo_regno_subword_dead): Use allocno class
10024 for ira_reg_class_max_nregs.
10026 2011-08-20 Richard Henderson <rth@redhat.com>
10028 * config/c6x/eqd.c, config/c6x/eqf.c, config/c6x/ged.c,
10029 config/c6x/gef.c, config/c6x/gtd.c, config/c6x/gtf.c,
10030 config/c6x/led.c, config/c6x/lef.c, config/c6x/ltd.c,
10031 config/c6x/ltf.c: Adjust include path for soft-fp.
10033 2011-08-20 H.J. Lu <hongjiu.lu@intel.com>
10036 * config.gcc (tm_file): Add initfini-array.h if
10037 .init_arrary/.fini_array are supported.
10039 * crtstuff.c: Don't generate .ctors nor .dtors sections if
10040 USE_INITFINI_ARRAY is defined.
10042 * output.h (default_elf_init_array_asm_out_constructor): New.
10043 (default_elf_fini_array_asm_out_destructor): Likewise.
10044 * varasm.c (elf_init_array_section): Likewise.
10045 (elf_fini_array_section): Likewise.
10046 (get_elf_initfini_array_priority_section): Likewise.
10047 (default_elf_init_array_asm_out_constructor): Likewise.
10048 (default_elf_fini_array_asm_out_destructor): Likewise.
10050 * config/initfini-array.h: New.
10052 2011-08-20 Richard Sandiford <rdsandiford@googlemail.com>
10054 * config/mips/mips.c (mips_class_max_nregs): Check that the mode is
10055 OK for ST_REGS and FP_REGS before taking those classes into account.
10057 2011-08-20 Richard Sandiford <rdsandiford@googlemail.com>
10059 * config/mips/mips.c (mips_reorg_process_insns): Check for jumps
10060 before checking for annulled branches.
10062 2011-08-20 Uros Bizjak <ubizjak@gmail.com>
10064 * config/i386/i386.c (ix86_binary_operator_ok): Use
10065 satisfies_constraint_L.
10067 2011-08-20 Uros Bizjak <ubizjak@gmail.com>
10068 Michael Matz <matz@suse.de>
10070 * config/i386/i386.c (ix86_expand_round_sse4): Expand as
10071 trunc (a + copysign (nextafter (0.5, 0.0), a)).
10073 2011-08-20 Anatoly Sokolov <aesok@post.ru>
10075 * doc/tm.texi.in (PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
10076 * doc/tm.texi: Regenerate.
10077 * targhooks.c (default_preferred_output_reload_class): Don't use
10078 PREFERRED_OUTPUT_RELOAD_CLASS macro.
10079 * system.h (PREFERRED_OUTPUT_RELOAD_CLASS): Poison.
10081 2011-08-20 Jakub Jelinek <jakub@redhat.com>
10083 PR tree-optimization/48739
10084 * tree-ssa.c: Include cfgloop.h.
10085 (execute_update_addresses_taken): When updating ssa, if in loop closed
10086 SSA form, call rewrite_into_loop_closed_ssa instead of update_ssa.
10087 * Makefile.in (tree-ssa.o): Depend on $(CFGLOOP_H).
10089 2011-08-19 Vladimir Makarov <vmakarov@redhat.com>
10091 PR rtl-optimization/49936
10092 * ira.c (ira_init_register_move_cost): Ignore too small subclasses
10093 for calculation of max register move costs.
10095 2011-08-19 Joseph Myers <joseph@codesourcery.com>
10097 * c-parser.c (c_parser_postfix_expression): Convert operands of
10098 __builtin_complex to their semantic types.
10100 2011-08-19 H.J. Lu <hongjiu.lu@intel.com>
10102 PR middle-end/49721
10103 * explow.c (convert_memory_address_addr_space): Also permute the
10104 conversion and addition of constant for zero-extend.
10106 2011-08-19 Joseph Myers <joseph@codesourcery.com>
10108 * c-parser.c (c_parser_postfix_expression): Handle RID_BUILTIN_COMPLEX.
10109 * doc/extend.texi (__builtin_complex): Document.
10111 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
10113 * tree-ssa-math-opts.c (is_widening_mult_rhs_p): Handle constants
10114 beyond conversions.
10115 (convert_mult_to_widen): Convert constant inputs to the right type.
10116 (convert_plusminus_to_widen): Don't automatically reject inputs that
10117 are not an SSA_NAME.
10118 Convert constant inputs to the right type.
10120 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
10122 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Convert add_rhs
10123 to the correct type.
10125 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
10127 * tree-ssa-math-opts.c (convert_mult_to_widen): Better handle
10128 unsigned inputs of different modes.
10129 (convert_plusminus_to_widen): Likewise.
10131 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
10133 * tree-ssa-math-opts.c (is_widening_mult_rhs_p): Add new argument
10135 Use 'type' from caller, not inferred from 'rhs'.
10136 Don't reject non-conversion statements. Do return lhs in this case.
10137 (is_widening_mult_p): Add new argument 'type'.
10138 Use 'type' from caller, not inferred from 'stmt'.
10139 Pass type to is_widening_mult_rhs_p.
10140 (convert_mult_to_widen): Pass type to is_widening_mult_p.
10141 (convert_plusminus_to_widen): Likewise.
10143 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
10145 * tree-ssa-math-opts.c (is_widening_mult_p): Remove FIXME.
10146 Ensure the the larger type is the first operand.
10148 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
10150 * tree-ssa-math-opts.c (convert_mult_to_widen): Convert
10151 unsupported unsigned multiplies to signed.
10152 (convert_plusminus_to_widen): Likewise.
10154 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
10156 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Permit a single
10157 conversion statement separating multiply-and-accumulate.
10159 2011-08-19 Richard Guenther <rguenther@suse.de>
10161 PR tree-optimization/50067
10162 * tree-data-ref.c (dr_analyze_indices): Simplify, strip MEM_REF
10163 offset only if we accounted for it.
10165 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
10167 * config/arm/arm.md (maddhidi4): Remove '*' from name.
10168 * expr.c (expand_expr_real_2): Use find_widening_optab_handler.
10169 * optabs.c (find_widening_optab_handler_and_mode): New function.
10170 (expand_widen_pattern_expr): Use find_widening_optab_handler.
10171 (expand_binop_directly): Likewise.
10172 (expand_binop): Likewise.
10173 * optabs.h (find_widening_optab_handler): New macro define.
10174 (find_widening_optab_handler_and_mode): New prototype.
10175 * tree-cfg.c (verify_gimple_assign_binary): Adjust WIDEN_MULT_EXPR
10176 type precision rules.
10177 (verify_gimple_assign_ternary): Likewise for WIDEN_MULT_PLUS_EXPR.
10178 * tree-ssa-math-opts.c (build_and_insert_cast): New function.
10179 (is_widening_mult_rhs_p): Allow widening by more than one mode.
10180 Explicitly disallow mis-matched input types.
10181 (convert_mult_to_widen): Use find_widening_optab_handler, and cast
10182 input types to fit the new handler.
10183 (convert_plusminus_to_widen): Likewise.
10185 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
10187 * expr.c (expand_expr_real_2): Use widening_optab_handler.
10188 * genopinit.c (optabs): Use set_widening_optab_handler for $N.
10189 (gen_insn): $N now means $a must be wider than $b, not consecutive.
10190 * optabs.c (widened_mode): New function.
10191 (expand_widen_pattern_expr): Use widening_optab_handler.
10192 (expand_binop_directly): Likewise.
10193 (expand_binop): Likewise.
10194 * optabs.h (widening_optab_handlers): New struct.
10195 (optab_d): New member, 'widening'.
10196 (widening_optab_handler): New function.
10197 (set_widening_optab_handler): New function.
10198 * tree-ssa-math-opts.c (convert_mult_to_widen): Use
10199 widening_optab_handler.
10200 (convert_plusminus_to_widen): Likewise.
10202 2011-08-19 Joseph Myers <joseph@codesourcery.com>
10204 * c-decl.c (grokdeclarator): Diagnose _Noreturn for non-C1X if
10206 * c-parser.c (c_parser_declspecs): Include _Noreturn in syntax comment.
10207 * ginclude/stdnoreturn.h (noreturn): Don't define for C++.
10209 2011-08-19 Joseph Myers <joseph@codesourcery.com>
10211 * opth-gen.awk: Do not declare target save/restore structures and
10212 functions if IN_RTS defined.
10214 2011-08-19 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
10217 * config/arm/arm.c (arm_output_epilogue): Properly handle epilogue
10218 when stack was realigned in interrupt handler prologue.
10220 2011-08-18 Joseph Myers <joseph@codesourcery.com>
10222 * c-decl.c (shadow_tag_warned): Check for _Noreturn.
10223 (quals_from_declspecs): Assert _Noreturn not present.
10224 (grokdeclarator): Handle _Noreturn.
10225 (build_null_declspecs): Initialize noreturn_p.
10226 (declspecs_add_scspec): Handle RID_NORETURN.
10227 * c-parser.c (c_token_starts_declspecs, c_parser_declspecs)
10228 (c_parser_attributes): Handle RID_NORETURN.
10229 * c-tree.h (struct c_declspecs): Add noreturn_p.
10230 * ginclude/stdnoreturn.h: New.
10231 * Makefile.in (USER_H): Add stdnoreturn.h.
10233 2011-08-18 Kirill Yukhin <kirill.yukhin@intel.com>
10235 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX2_SET): New.
10236 (OPTION_MASK_ISA_AVX_UNSET): Update.
10237 (OPTION_MASK_ISA_AVX2_UNSET): New.
10238 (ix86_handle_option): Handle OPT_mavx2 case.
10239 * config/i386/cpuid.h (bit_AVX2): New.
10240 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
10242 * config/i386/i386-c.c (ix86_target_macros_internal):
10243 Conditionally define __AVX2__.
10244 * config/i386/i386.c (ix86_option_override_internal): Define PTA_AVX2.
10245 Define "core-avx2" processor alias. Handle avx2 option.
10246 (ix86_valid_target_attribute_inner_p): Handle avx2 option.
10247 * config/i386/i386.h (TARGET_AVX2): New.
10248 * config/i386/i386.opt (mavx2): New.
10249 * doc/invoke.texi: Document -mavx2.
10251 2011-08-18 Vladimir Makarov <vmakarov@redhat.com>
10253 PR rtl-optimization/49890
10254 * ira-costs.c (setup_regno_cost_classes_by_aclass): Don't exclude
10255 subclasses of class which is superset of a pressure class.
10257 2011-08-18 H.J. Lu <hongjiu.lu@intel.com>
10258 Igor Zamyatin <igor.zamyatin@intel.com>
10260 * config/i386/i386-c.c (ix86_target_macros_internal): Replace int
10261 with HOST_WIDE_INT for isa_flag.
10262 (ix86_pragma_target_parse): Replace int with HOST_WIDE_INT for
10265 * config/i386/i386.c (ix86_target_string): Replace int with
10266 HOST_WIDE_INT for isa. Use HOST_WIDE_INT_PRINT to print isa.
10267 (ix86_target_opts): Replace int with HOST_WIDE_INT on mask.
10268 (pta_flags): Removed.
10269 (PTA_XXX): Redefined as (HOST_WIDE_INT_1 << X).
10270 (pta): Use HOST_WIDE_INT on flags.
10271 (builtin_isa): Use HOST_WIDE_INT on isa.
10272 (ix86_add_new_builtins): Likewise.
10273 (def_builtin): Use HOST_WIDE_INT on mask.
10274 (def_builtin_const): Likewise.
10275 (builtin_description): Likewise.
10277 * config/i386/i386.opt (ix86_isa_flags): Replace int with
10279 (ix86_isa_flags_explicit): Likewise.
10280 (x_ix86_isa_flags_explicit): Likewise.
10282 2011-08-17 Vladimir Makarov <vmakarov@redhat.com>
10284 PR rtl-optimization/50107
10285 * ira-int.h (ira_hard_reg_not_in_set_p): Remove.
10286 (ira_hard_reg_in_set_p): New.
10288 * ira-color.c (calculate_saved_nregs): New.
10289 (assign_hard_reg): Use it. Set up allocated_hard_reg_p for all
10291 (allocno_reload_assign, fast_allocation): Use
10292 ira_hard_reg_set_intersection_p instead of
10293 ira_hard_reg_not_in_set_p.
10295 * ira.c (setup_reg_renumber): Use
10296 ira_hard_reg_set_intersection_p instead of
10297 ira_hard_reg_not_in_set_p.
10298 (setup_allocno_assignment_flags, calculate_allocation_cost): Use
10299 ira_hard_reg_in_set_p instead of ira_hard_reg_not_in_set_p.
10301 * ira-costs.c (ira_tune_allocno_costs): Use
10302 ira_hard_reg_set_intersection_p instead of
10303 ira_hard_reg_not_in_set_p.
10305 2011-08-18 H.J. Lu <hongjiu.lu@intel.com>
10306 Igor Zamyatin <igor.zamyatin@intel.com>
10308 * hwint.h (HOST_WIDE_INT_1): New.
10310 * opt-functions.awk (switch_bit_fields): Initialize the
10311 host_wide_int field.
10312 (host_wide_int_var_name): New.
10313 (var_type_struct): Check and return HOST_WIDE_INT.
10315 * opt-read.awk: Handle HOST_WIDE_INT for "Variable".
10317 * optc-save-gen.awk: Support HOST_WIDE_INT on var_target_other.
10319 * opth-gen.awk: Use HOST_WIDE_INT_1 on HOST_WIDE_INT. Properly
10320 check masks for HOST_WIDE_INT.
10322 * opts-common.c (set_option): Support HOST_WIDE_INT flag_var.
10323 (option_enabled): Likewise.
10324 (get_option_state): Likewise.
10326 * opts.h (cl_option): Add cl_host_wide_int. Change var_value
10329 2011-08-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10330 Marc Glisse <marc.glisse@normalesup.org>
10332 PR libstdc++-v3/1773
10333 * target.def (decl_mangling_context): New C++ hook.
10334 * doc/tm.texi: Regenerate.
10335 * config/sol2-cxx.c, config/sol2-stubs.c: New files.
10336 * config/sol2-protos.h: Group by source file.
10337 (solaris_cxx_decl_mangling_context): Declare.
10338 * config/sol2.h (TARGET_CXX_DECL_MANGLING_CONTEXT): Define.
10339 * config/t-sol2 (sol2-cxx.o, sol2-stubs.o): New targets.
10341 * config.gcc (*-*-solaris2*): Add sol2-cxx.o to cxx_target_objs.
10342 Add sol2-stubs.o to extra_objs.
10344 2011-08-18 Jakub Jelinek <jakub@redhat.com>
10347 * stor-layout.c (update_alignment_for_field): Don't ICE on
10348 packed flexible array members if ms_bitfield_layout_p.
10351 * config/i386/i386.c (assign_386_stack_local): Call validize_mem
10352 on the result before returning it.
10355 * tree-vect-stmts.c (vect_finish_stmt_generation): If gsi_stmt (*gsi)
10356 is a debug stmt, use location of the first non-debug stmt after it.
10358 2011-08-18 Richard Sandiford <richard.sandiford@linaro.org>
10360 * config/arm/arm.c (arm_rtx_costs_1): Don't modify the costs of SET.
10361 (arm_size_rtx_costs): Likewise.
10363 2011-08-18 Richard Guenther <rguenther@suse.de>
10365 * tree.h (tree_int_cst_msb): Remove.
10366 * tree.c (tree_int_cst_msb): Likewise.
10367 (tree_int_cst_sign_bit): Move from ...
10368 * tree-ssa-loop-ivopts.c (tree_int_cst_sign_bit): ... here.
10370 2011-08-18 Richard Sandiford <richard.sandiford@linaro.org>
10372 * doc/tm.texi.in (TARGET_RTX_COSTS): Add an opno paramter.
10373 * doc/tm.texi: Regenerate.
10374 * target.def (rtx_costs): Add an opno parameter.
10375 * hooks.h (hook_bool_rtx_int_int_intp_bool_false): Replace with...
10376 (hook_bool_rtx_int_int_int_intp_bool_false): ...this.
10377 * hooks.c (hook_bool_rtx_int_int_intp_bool_false): Replace with...
10378 (hook_bool_rtx_int_int_int_intp_bool_false): ...this.
10379 * cse.c (COST_IN): Add an opno parameter.
10380 (notreg_cost): Likewise. Update call to rtx_cost.
10381 (COST, fold_rtx): Update accordingly.
10382 * dojump.c (prefer_and_bit_test): Update call to rtx_cost.
10383 * expmed.c (emit_store_flag): Likewise.
10384 * optabs.c (avoid_expensive_constant): Add an opno parameter.
10385 Update call to rtx_cost.
10386 (expand_binop_directly, expand_binop): Likewise.
10387 (expand_twoval_binop, prepare_cmp_insn): Likewise.
10388 * rtl.h (rtx_cost, get_full_rtx_cost): Add opno parameters.
10389 (set_src_cost, get_full_set_src_cost): Update accordingly.
10390 * rtlanal.c (rtx_cost): Add an opno parameter. Update call
10392 (get_full_rtx_cost): Add an opno paramter. Update calls to rtx_cost.
10393 (default_adress_cost): Update calls to rtx_cost.
10395 * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs)
10396 (arm_slowmul_rtx_costs): Adjust calls to rtx_cost.
10397 (arm_rtx_costs): Add an opno parameter.
10398 * config/alpha/alpha.c (alpha_rtx_costs): Add an opno parameter and
10399 adjust any recursive rtx-cost calls.
10400 * config/avr/avr.c (avr_operand_rtx_cost, avr_rtx_costs): Likewise.
10401 * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
10402 * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
10403 * config/cris/cris.c (cris_rtx_costs): Likewise.
10404 * config/frv/frv.c (frv_rtx_costs): Likewise.
10405 * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
10406 * config/i386/i386.c (ix86_rtx_costs): Likewise.
10407 * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
10408 * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
10409 * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
10410 * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
10411 * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
10412 * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
10413 * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
10414 * config/mep/mep.c (mep_rtx_cost): Likewise.
10415 * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
10416 * config/mips/mips.c (mips_binary_cost): Update call to rtx_cost.
10417 (mips_zero_extend_cost): Add an opno parameter.
10418 * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
10419 * config/mn10300/mn10300.c (mn10300_address_cost): Update call
10421 (mn10300_rtx_costs): Add an opno parameter and adjust any recursive
10423 * config/pa/pa.c (hppa_rtx_costs): Likewise.
10424 * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
10425 * config/picochip/picochip.c (picochip_rtx_costs): Likewise.
10426 * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
10427 (rs6000_debug_rtx_costs): Likewise.
10428 * config/s390/s390.c (s390_rtx_costs): Likewise.
10429 * config/score/score-protos.h (score_rtx_costs): Likewise.
10430 * config/score/score.c (score_rtx_costs): Likewise.
10431 * config/sh/sh.c (andcosts): Update call to rtx_cost.
10432 (sh_rtx_costs): Add an opno parameter.
10433 * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
10434 * config/spu/spu.c (spu_rtx_costs): Likewise.
10435 * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
10436 * config/v850/v850.c (v850_rtx_costs): Likewise.
10437 * config/vax/vax.c (vax_rtx_costs): Likewise.
10438 * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
10440 2011-08-18 Richard Sandiford <richard.sandiford@linaro.org>
10442 * rtl.h (set_src_cost, get_full_set_src_cost): New functions.
10443 * auto-inc-dec.c (attempt_change): Use set_src_cost instead of
10445 * calls.c (precompute_register_parameters): Likewise.
10446 * combine.c (expand_compound_operation, make_extraction): Likewise.
10447 (force_to_mode, distribute_and_simplify_rtx): Likewise.
10448 * dse.c (find_shift_sequence): Likewise.
10449 * expmed.c (init_expmed, expand_mult, expand_smod_pow2): Likewise.
10450 * expr.c (compress_float_constant): Likewise.
10451 * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
10452 * gcse.c (want_to_gcse_p): Likewise.
10453 * ifcvt.c (noce_try_sign_mask): Likewise.
10454 * loop-doloop.c (doloop_optimize): Likewise.
10455 * loop-invariant.c (create_new_invariant): Likewise.
10456 * optabs.c (avoid_expensive_constant): Likewise.
10457 * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands)
10458 (try_replace_in_use, reload_cse_move2add): Likewise.
10459 * reload1.c (calculate_elim_costs_all_insns): Likewise.
10460 (note_reg_elim_costly): Likewise.
10461 * rtlanal.c (insn_rtx_cost): Likewise.
10462 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
10463 * stmt.c (lshift_cheap_p): Likewise.
10464 * tree-ssa-loop-ivopts.c (seq_cost, computation_cost): Likewise.
10465 * config/avr/avr.c (final_prescan_insn): Likewise.
10466 * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
10467 * config/mips/mips.c (mips_binary_cost, mips_rtx_costs): Likewise.
10469 2011-08-18 Richard Sandiford <richard.sandiford@linaro.org>
10471 * rtl.h (set_rtx_cost, get_full_set_rtx_cost): New functions.
10472 * auto-inc-dec.c (attempt_change): Use set_rtx_cost.
10473 * cfgloopanal.c (seq_cost): Likewise.
10474 * loop-invariant.c (create_new_invariant): Likewise.
10475 * postreload.c (move2add_use_add2_insn, move2add_use_add3_insn)
10476 (reload_cse_move2add): Use get_full_set_rtx_cost.
10478 2011-08-18 Richard Guenther <rguenther@suse.de>
10480 * expr.c (get_inner_reference): Fix typo in last change.
10482 2011-08-18 Paolo Carlini <paolo.carlini@oracle.com>
10483 Joseph Myers <joseph@codesourcery.com>
10485 PR tree-optimization/49963
10486 * hwint.c (absu_hwi): Define.
10487 * hwint.h (absu_hwi): Declare.
10488 * fold-const.c (fold_plusminus_mult_expr): Use absu_hwi instead
10490 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
10491 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Likewise.
10493 2011-08-18 Richard Guenther <rguenther@suse.de>
10495 * expr.c (get_inner_reference): Sign-extend the constant
10496 twos-complement offset before doing arbitrary precision
10498 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
10499 (get_constraint_for_1): Pass the offset of a MEM_REF unchanged
10500 to get_constraint_for_ptr_offset.
10502 2011-08-17 Kaz Kojima <kkojima@gcc.gnu.org>
10505 * config/sh/sh.c (sh_output_mi_thunk): Don't call dbr_schedule.
10507 2011-08-17 Richard Guenther <rguenther@suse.de>
10509 * tree.h (convert_to_ptrofftype_loc): New function.
10510 (convert_to_ptrofftype): Define.
10511 * builtins.c (expand_builtin_bzero): Use size_type_node.
10512 (fold_builtin_bzero): Likewise.
10513 (std_gimplify_va_arg_expr): Build the BIT_AND_EXPR on the pointer.
10514 * c-typeck.c (build_unary_op): Use convert_to_ptrofftype_loc.
10515 * cgraphunit.c (thunk_adjust): Use fold_build_pointer_plus_loc.
10516 (cgraph_redirect_edge_call_stmt_to_callee): Use size_int.
10517 * expr.c (expand_expr_addr_expr_1): Use fold_build_pointer_plus.
10518 * fold-const.c (build_range_check): Negate using the original type.
10519 (fold_unary_loc): Use fold_build_pointer_plus_loc.
10520 * gimple-fold.c (gimple_adjust_this_by_delta): Use
10521 convert_to_ptrofftype.
10522 * gimplify.c (gimplify_self_mod_expr): Likewise.
10523 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Likewise.
10524 (graphite_create_new_loop_guard): Likewise.
10525 * graphite-sese-to-poly.c (my_long_long): Remove.
10526 (scop_ivs_can_be_represented): Adjust.
10527 * tree-cfg.c (verify_gimple_assign_unary): Use ptrofftype_p.
10528 * tree-chrec.c (chrec_fold_plus_1): Use fold_build_pointer_plus.
10529 * tree-loop-distribution.c (build_size_arg_loc): Use
10531 (generate_memset_zero): Simplify.
10532 * tree-mudflap.c: Use fold_convert, not convert.
10533 * tree-predcom.c (suitable_reference_p): Expand DR_OFFSET in
10535 (determine_offset): Likewise for DR_STEP.
10536 (valid_initializer_p): Likewise.
10537 * tree-profile.c (prepare_instrumented_value): Convert the pointer
10538 to an integer type of same size.
10539 * tree-scalar-evolution.c (interpret_rhs_expr): Do not refer
10540 to sizetype without need.
10541 * tree-ssa-address.c (tree_mem_ref_addr): Likewise.
10542 * tree-ssa-loop-ivopts.c (find_bivs): Use convert_to_ptrofftype.
10543 * tree-ssa-loop-manip.c (create_iv): Likewise.
10544 (determine_exit_conditions): Adjust comment.
10545 * tree-ssa-pre.c (create_expression_by_pieces): Use
10546 convert_to_ptrofftype.
10547 * tree-ssa-structalias.c (get_constraint_for_1): Likewise.
10548 * varasm.c (array_size_for_constructor): Compute using double_ints.
10550 2011-08-16 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10552 * config/spu/spu.c (spu_emit_branch_or_set): Avoid reverse tests
10553 when generating an integer result where possible. Short-cut
10554 comparison against 0 also for QImode.
10556 2011-08-16 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10558 * config/spu/spu.h (LEGITIMIZE_RELOAD_ADDRESS): New macro.
10559 * config/spu/spu-protos.h (spu_legitimize_reload_address): Add
10561 * config/spu/spu.c (spu_legitimize_reload_address): New function.
10562 (spu_legitimate_address_p): Do not check displacement if the base
10563 is an eliminable stack register.
10565 2011-08-16 Anatoly Sokolov <aesok@post.ru>
10567 * config/m32c/m32c.h (PREFERRED_RELOAD_CLASS,
10568 PREFERRED_OUTPUT_RELOAD_CLASS): Remove macro.
10569 * config/m32c/m32c-protos.h (m32c_preferred_reload_class,
10570 m32c_preferred_output_reload_class): Remove.
10571 * config/m32c/m32c.c (m32c_preferred_reload_class): Make static.
10572 Change rclass argument and return types to reg_class_t. Use
10573 reg_class_subset_p instead of class_sizes.
10574 (m32c_preferred_output_reload_class): Make static. Change rclass
10575 argument and return types to reg_class_t.
10576 (TARGET_PREFERRED_RELOAD_CLASS,
10577 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
10579 2011-08-16 Kai Tietz <ktietz@redhat.com>
10581 * config/i386/mingw32.h (GOMP_SELF_SPEC): Add -pthread option.
10583 2011-08-16 Richard GUenther <rguenther@suse.de>
10585 PR tree-optimization/50082
10586 * tree-ssa-forwprop.c (combine_cond_expr_cond): Handle overflow
10587 warnings here, instead of ...
10588 (ssa_forward_propagate_and_combine): ... here.
10589 (forward_propagate_into_comparison_1): Adjust.
10590 (forward_propagate_into_comparison): Likewise.
10591 (forward_propagate_into_gimple_cond): Likewise.
10592 (forward_propagate_into_cond): Likewise.
10594 2011-08-16 Andreas Schwab <schwab@redhat.com>
10596 * ggc.h (ggc_alloc_rtvec_sized): Use ggc_alloc_zone_rtvec_def
10597 instead of ggc_alloc_zone_vec_rtvec_def.
10599 2011-08-16 Richard Guenther <rguenther@suse.de>
10601 * tree.h (ptrofftype_p): New helper function.
10602 * tree-cfg.c (verify_expr): Use ptrofftype_p for POINTER_PLUS_EXPR
10603 offset verification.
10604 (verify_gimple_assign_binary): Likewise.
10605 * tree.c (build2_stat): Likewise.
10606 * tree-chrec.c (chrec_fold_plus_poly_poly): Likewise.
10607 (reset_evolution_in_loop): Likewise.
10608 * tree-chrec.h (build_polynomial_chrec): Likewise.
10610 2011-08-16 Liang Wang <lwang1@marvell.com>
10612 * ggc.h (ggc_alloc_rtvec_sized): Change arguments of
10613 ggc_alloc_zone_vec_rtvec_def.
10615 2011-08-16 Richard Guenther <rguenther@suse.de>
10617 * tree-vrp.c (extract_range_from_multiplicative_op_1): New
10618 helper factored out from ...
10619 (extract_range_from_binary_expr_1): ... here. Re-structure
10620 to not glob handling too different tree codes.
10622 2011-08-15 Richard Henderson <rth@redhat.com>
10624 PR middle-end/50006
10625 * explow.c (allocate_dynamic_stack_space): Move suppress_reg_args_size
10626 setting out to include allocate_stack named pattern as well.
10627 * builtins.c (expand_builtin_apply): Add ARG_SIZE 0 note.
10628 * stmt.c (expand_stack_restore): Likewise.
10630 2011-08-15 Richard Guenther <rguenther@suse.de>
10632 PR middle-end/50082
10633 * fold-const.c (maybe_canonicalize_comparison_1): Properly
10634 convert the modified operand to the other operand type.
10635 (fold_comparison): Call maybe_canonicalize_comparison_1 with
10636 useless conversions stripped from comparison operands.
10638 2011-08-15 Richard Guenther <rguenther@suse.de>
10640 * tree-vrp.c (value_range_nonnegative_p): Fix anti-range case.
10641 (extract_range_from_unary_expr_1): Restructure.
10643 2011-08-15 Richard Guenther <rguenther@suse.de>
10645 PR tree-optimization/50058
10646 * tree-ssa-sccvn.c (vn_reference_lookup_3): Relax aggregate
10649 2011-08-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
10652 * config/arm/arm.c (output_move_double): Add 2 parameters
10653 to count the number of insns emitted and whether to emit or not.
10654 Use the flag to decide when to emit and count number of instructions
10655 that will be emitted.
10656 Handle case where output_move_double might be called for calculating
10657 lengths with an invalid constant.
10658 (arm_count_output_move_double_insns): Define.
10659 * config/arm/arm-protos.h (arm_count_output_move_double_insns): Declare.
10660 (output_move_double): Adjust prototype.
10661 * config/arm/vfp.md ("*movdi_vfp"): Adjust call to
10662 output_move_double.
10663 ("*movdi_vfp_cortexa8"): Likewise and add attribute
10665 * config/arm/arm.md ("*arm_movdi"): Adjust call to output_move_double.
10666 ("*movdf_soft_insn"): Likewise.
10667 * config/arm/cirrus.md ("*cirrus_arm_movdi"): Likewise.
10668 ("*cirrus_thumb2_movdi"): Likewise.
10669 ("*thumb2_cirrus_movdf_hard_insn"): Likewise.
10670 ("*cirrus_movdf_hard_insn"): Likewise.
10671 * config/arm/neon.md (*neon_mov<mode> VD): Likewise.
10672 * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Likewise.
10673 ("mov<mode>_internal VMMX"): Likewise.
10674 * config/arm/fpa.md (*movdf_fpa, *thumb2_movdf_fpa): Likewise.
10676 2011-08-14 Uros Bizjak <ubizjak@gmail.com>
10678 * config/i386/i386.c (ix86_expand_round_sse4): New function.
10679 * config/i386/i386-protos.h (ix86_expand_round_sse4): New prototype.
10680 * config/i386/i386.md (round<mode>2): Use ix86_expand_round_sse4
10683 (rint<mode>2): Simplify TARGET_ROUND check.
10684 (floor<mode>2): Ditto.
10685 (ceil<mode>2): Ditto.
10686 (btrunc<mode>2): Ditto.
10688 2011-08-14 Anatoly Sokolov <aesok@post.ru>
10690 * config/mmix/mmix.c (TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Redefine
10691 as mmix_preferred_output_reload_class.
10693 2011-08-14 Georg-Johann Lay <avr@gjlay.de>
10696 * config/avr/avr.md (UNSPEC_IDENTITY): New c_enum.
10697 (branch_unspec): New insn.
10698 (branch): Beauty farm.
10699 * config/avr/avr.c (compare_condition): Use JUMP_P. Test SET_SRC
10700 to be IF_THEN_ELSE.
10701 (avr_compare_pattern, avr_reorg_remove_redundant_compare):
10702 New static functions.
10703 (avr_reorg): Use them. Use next_real_insn instead of NEXT_INSN.
10704 Use CONST_INT_P. Beauty.
10706 2011-08-12 Richard Henderson <rth@redhat.com>
10709 * sched-init.h (struct deps_desc): Add sched_before_next_jump.
10710 * sched-deps.c (init_deps): Clear it.
10711 (deps_analyze_insn): Consume it.
10712 (sched_analyze_insn): Fill it.
10714 2011-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
10717 * config/arm/arm.h (CASE_VECTOR_SHORTEN_MODE): Fix distance
10718 for tbh instructions.
10720 2011-08-12 Diego Novillo <dnovillo@google.com>
10722 * data-streamer.h (streamer_write_zero): Rename from output_zero.
10723 (streamer_write_uhwi): Rename from lto_output_uleb128.
10724 (streamer_write_hwi): Rename from output_sleb128.
10725 (streamer_write_string): Rename from lto_output_string.
10726 (streamer_string_index): Rename from lto_string_index.
10727 (streamer_write_string_with_length): Rename from
10728 lto_output_string_with_length.
10729 (streamer_write_uhwi_stream): Rename from lto_output_uleb128_stream.
10730 (streamer_write_hwi_stream): Rename from lto_output_sleb128_stream.
10731 (streamer_read_string): Rename from lto_input_string.
10732 (streamer_read_indexed_string): Rename from input_string_internal.
10733 (streamer_read_uhwi): Rename from lto_input_uleb128.
10734 (streamer_read_hwi): Rename from lto_input_sleb128.
10735 (streamer_write_hwi_in_range): Rename from lto_output_int_in_range.
10736 (streamer_read_hwi_in_range): Rename from lto_input_int_in_range.
10737 (streamer_write_enum): Rename from lto_output_enum.
10738 (streamer_read_enum): Rename from lto_input_enum.
10739 (streamer_write_record_start): Rename from output_record_start.
10740 (streamer_read_record_start): Rename from input_record_start.
10741 (streamer_write_bitpack): Rename from lto_output_bitpack.
10742 (streamer_read_bitpack): Rename from lto_input_bitpack.
10743 (streamer_write_char_stream): Rename from lto_output_1_stream.
10744 (streamer_read_uchar): Rename from lto_input_1_unsigned.
10745 * tree-streamer.h (streamer_cache_d): Rename from lto_streamer_cache_d.
10746 (streamer_handle_as_builtin_p): Rename from lto_stream_as_builtin_p.
10747 (streamer_read_string_cst): Rename from input_string_cst.
10748 (streamer_read_chain): Rename from lto_input_chain.
10749 (streamer_alloc_tree): Rename from lto_materialize_tree.
10750 (streamer_read_tree_body): Rename from lto_input_tree_pointers.
10751 (streamer_get_pickled_tree): Rename from lto_get_pickled_tree.
10752 (streamer_get_builtin_tree): Rename from lto_get_builtin_tree.
10753 (streamer_read_integer_cst): Rename from lto_input_integer_cst.
10754 (streamer_read_tree_bitfields): Rename from tree_read_bitfields.
10755 (streamer_write_chain): Rename from lto_output_chain.
10756 (streamer_write_tree_header): Rename from lto_output_tree_header.
10757 (streamer_pack_tree_bitfields): Rename from pack_value_fields.
10758 (streamer_write_tree_body): Rename from lto_output_tree_pointers.
10759 (streamer_write_integer_cst): Rename from lto_output_integer_cst.
10760 (streamer_write_builtin): Rename from lto_output_builtin_tree.
10761 (streamer_check_handled_ts_structures): Rename from
10762 check_handled_ts_structures.
10763 (streamer_tree_cache_insert): Rename from lto_streamer_cache_insert.
10764 (streamer_tree_cache_insert_at): Rename from
10765 lto_streamer_cache_insert_at.
10766 (streamer_tree_cache_append): Rename from lto_streamer_cache_append.
10767 (streamer_tree_cache_lookup): Rename from lto_streamer_cache_lookup.
10768 (streamer_tree_cache_get): Rename from lto_streamer_cache_get.
10769 (streamer_tree_cache_create): Rename from lto_streamer_cache_create.
10770 (streamer_tree_cache_delete): Rename from lto_streamer_cache_delete.
10771 * tree-streamer-out.c (write_string_cst): Rename from output_string_cst.
10772 (write_identifier): Rename from output_identifier.
10773 (write_ts_common_tree_pointers): Rename from
10774 lto_output_ts_common_tree_pointers.
10775 (write_ts_vector_tree_pointers): Rename from
10776 lto_output_ts_vector_tree_pointers.
10777 (write_ts_complex_tree_pointers): Rename from
10778 lto_output_ts_complex_tree_pointers.
10779 (write_ts_decl_minimal_tree_pointers): Rename from
10780 lto_output_ts_decl_minimal_tree_pointers.
10781 (write_ts_decl_common_tree_pointers): Rename from
10782 lto_output_ts_decl_common_tree_pointers.
10783 (write_ts_decl_non_common_tree_pointers): Rename from
10784 lto_output_ts_decl_non_common_tree_pointers.
10785 (write_ts_decl_with_vis_tree_pointers): Rename from
10786 lto_output_ts_decl_with_vis_tree_pointers.
10787 (write_ts_field_decl_tree_pointers): Rename from
10788 lto_output_ts_field_decl_tree_pointers.
10789 (write_ts_function_decl_tree_pointers): Rename from
10790 lto_output_ts_function_decl_tree_pointers.
10791 (write_ts_type_common_tree_pointers): Rename from
10792 lto_output_ts_type_common_tree_pointers.
10793 (write_ts_type_non_common_tree_pointers): Rename from
10794 lto_output_ts_type_non_common_tree_pointers.
10795 (write_ts_list_tree_pointers): Rename from
10796 lto_output_ts_list_tree_pointers.
10797 (write_ts_vec_tree_pointers): Rename from
10798 lto_output_ts_vec_tree_pointers.
10799 (write_ts_exp_tree_pointers): Rename from
10800 lto_output_ts_exp_tree_pointers.
10801 (write_ts_block_tree_pointers): Rename from
10802 lto_output_ts_block_tree_pointers.
10803 (write_ts_binfo_tree_pointers): Rename from
10804 lto_output_ts_binfo_tree_pointers.
10805 (write_ts_constructor_tree_pointers): Rename from
10806 lto_output_ts_constructor_tree_pointers.
10807 (write_ts_target_option): Rename from lto_output_ts_target_option.
10808 (write_ts_translation_unit_decl_tree_pointers): Rename from
10809 lto_output_ts_translation_unit_decl_tree_pointers.
10810 * tree-streamer.c (streamer_tree_cache_add_to_node_array):
10811 Rename from lto_streamer_cache_add_to_node_array.
10812 (streamer_tree_cache_insert_1): Rename from lto_streamer_cache_insert_1.
10813 (record_common_node): Rename from lto_record_common_node.
10815 * streamer-hooks.h (bitpack_d, lto_streamer_cache_d): Remove forward
10817 * data-streamer-in.c (lto_input_widest_uint_uleb128): Remove unused
10819 * data-streamer-out.c (lto_output_widest_uint_uleb128_stream): Remove
10821 * Makefile.in (lto-section-out.o): Add dependency on DATA_STREAMER_H.
10822 (ipa-reference.o): Likewise.
10823 * lto-section-out.c: Include data-streamer.h.
10824 * ipa-reference.c: Include data-streamer.h.
10826 2011-08-12 Nick Clifton <nickc@redhat.com>
10828 * builtins.c (expand_builtin_memcmp): Do not use cmpstrnsi pattern.
10829 * doc/md.texi (cmpstrn): Note that the comparison stops if both
10830 fetched bytes are zero.
10831 (cmpstr): Likewise.
10832 (cmpmem): Note that the comparison does not stop if both of the
10833 fetched bytes are zero.
10835 2011-08-12 Uros Bizjak <ubizjak@gmail.com>
10837 * builtins.def (BUILT_IN_ICEIL{,F,L}, BUILT_IN_IFLOOR{,F,L}
10838 BUILT_IN_IRINT{,F,L}, BUILT_IN_IROUND{,F,L}: New builtin definitions.
10839 * convert.c (convert_to_integer): Convert to BUILT_IN_ICEIL,
10840 BUILT_IN_IFLOOR, BUILT_IN_IRINT or BUILT_INT_IROUND when converting
10841 to integer_type_node.
10842 * fold-const.c (tree_call_nonnegative_warnv_p): Handle BUILT_IN_ICEIL,
10843 BUILT_IN_IFLOOR, BUILT_IN_IRINT and BUILT_INT_IROUND.
10844 * builtins.c (expand_builtin_in): Ditto.
10845 (mathfn_built_in_1): Ditto.
10846 (expand_builtin_int_roundingfn): Handle BUILT_IN_ICEIL and
10848 (expand_builtin_int_roundingfn_2): Handle BUILT_IN_IRINT and
10850 (fold_fixed_mathfn): Canonicalize BUILT_IN_ICEIL, BUILTIN_IN_IFLOOR
10851 BUILT_IN_IRINT and BUILT_IN_IROUND to BUILT_IN_LCEIL,
10852 BUILTIN_IN_LFLOOR, BUILT_IN_LRINT and BUILT_IN_LROUND on ILP32 targets.
10854 2011-08-12 Richard Guenther <rguenther@suse.de>
10856 * tree-vrp.c (extract_range_from_unary_expr_1): Implement -X as 0 - X.
10858 2011-08-12 Romain Geissler <romain.geissler@gmail.com>
10860 * Makefile.in (PLUGIN_HEADERS): Add C_TREE_H.
10862 2011-08-12 Richard Sandiford <rdsandiford@googlemail.com>
10864 * config/arm/arm.c (get_label_padding): New function.
10865 (create_fix_barrier, arm_reorg): Use it.
10867 2011-08-11 Uros Bizjak <ubizjak@gmail.com>
10870 * config/i386/i386.md (*lea_5_zext): New.
10871 (*lea_6_zext): Ditto.
10872 * config/i386/predicates.md (const_32bit_mask): New predicate.
10873 (lea_address_operand): Reject AND.
10874 * config/i386/i386.c (ix86_decompose_address): Allow Dimode AND with
10875 const_32bit_mask immediate.
10876 (ix86_print_operand_address): Handle AND.
10877 (memory_address_length): Ditto.
10879 2011-08-11 Romain Geissler <romain.geissler@gmail.com>
10880 Brian Hackett <bhackett1024@gmail.com>
10882 * plugin.def: Add event for finish_decl.
10883 * plugin.c (register_callback, invoke_plugin_callbacks): Same.
10884 * c-decl.c (finish_decl): Invoke callbacks on above event.
10885 * doc/plugins.texi: Document above event.
10887 2011-08-11 Richard Guenther <rguenther@suse.de>
10889 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid redundant
10890 lookups, make looking through aggregate copies stronger.
10892 2011-08-11 Richard Henderson <rth@redhat.com>
10895 * expr.c (fixup_args_size_notes): Accept and ignore normal calls.
10897 2011-08-11 Richard Guenther <rguenther@suse.de>
10899 * lto-cgraph.c (input_node): Use DECL_BUILT_IN.
10900 * tree-vrp.c (stmt_interesting_for_vrp): Likewise.
10901 (vrp_visit_stmt): Likewise.
10903 2011-08-11 Richard Guenther <rguenther@suse.de>
10905 PR middle-end/50040
10906 * gimplify.c (gimplify_modify_expr_complex_part): Mark the
10907 load of the other piece with TREE_NO_WARNING.
10908 * tree-flow.h (warn_uninit): Adjust prototype.
10909 * tree-ssa.c (warn_uninit): Take uninitialized SSA name,
10910 the base variable and the expression that is used separately.
10911 Properly query all TREE_NO_WARNING flags.
10912 (struct walk_data): Remove.
10913 (warn_uninitialized_var): Likewise.
10914 (warn_uninitialized_vars): Do not walk gimple pieces but simply
10915 look at all SSA uses of the statement. Handle unused memory
10917 * tree-ssa-uninit.c (warn_uninitialized_phi): Adjust.
10919 2011-08-11 Kazuhiro Inaoka <kazuhiro.inaoka.ud@renesas.com>
10921 * config/rx/rx.md (movsicc): Allow register to register transfers.
10922 (*movsicc): Likewise.
10923 (*stcc): Restrict this pattern to EQ and NE compares.
10924 (*stcc_reg): New pattern. Works for any comparison but only for
10925 register transfers.
10927 2011-08-11 Diego Novillo <dnovillo@google.com>
10929 * tree-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers):
10930 Call stream_write_tree instead of output_record_start.
10931 (lto_output_ts_binfo_tree_pointers): Likewise.
10933 * streamer-hooks.h (stream_write_tree): Move from tree-streamer.h.
10934 Convert it to a macro.
10935 (stream_read_tree): Likewise.
10937 * lto-streamer.h (lto_stream_as_builtin_p): Move ...
10938 * tree-streamer.h (lto_stream_as_builtin_p): ... here.
10940 * lto-streamer-in.c (lto_read_tree): Call lto_streamer_cache_append
10941 and tree_read_bitfields.
10942 * lto-streamer-out.c (lto_is_streamable): Move from lto-streamer.c
10943 (lto_write_tree): Call it.
10944 * lto-streamer.c (lto_is_streamable): Move to lto-streamer-out.c
10945 * streamer-hooks.h (struct streamer_hooks): Remove fields
10946 name, is_streamable and alloc_tree. Update all users.
10947 * tree-streamer-in.c (tree_read_bitfields): Factor out of ...
10948 (lto_materialize_tree): ... here.
10949 Handle CALL_EXPR codes.
10950 Remove call to lto_streamer_cache_append.
10951 * tree-streamer-out.c (lto_output_tree_header): Handle CALL_EXPR nodes.
10952 * tree-streamer.h (tree_read_bitfields): Declare.
10954 * Makefile.in (TREE_STREAMER_H): Add STREAMER_HOOKS_H.
10955 (gimple-streamer-in.o): Add dependency on TREE_STREAMER_H.
10956 * tree-streamer.h (stream_read_tree): New. Replace all calls
10957 to lto_input_tree with it.
10958 (stream_write_tree): New. Replace all calls to lto_output_tree,
10959 lto_output_tree_ref and lto_output_tree_or_ref with it.
10960 * lto-streamer-in.c (lto_read_tree): Inline code from
10961 lto_streamer_read_tree.
10962 (lto_input_tree): Move from tree-streamer-in.c.
10963 * lto-streamer-out.c (lto_output_tree_ref): Make static.
10964 Remove handling of NULL values for EXPR.
10965 Do not handle EXPRs that are not indexable.
10966 (lto_write_tree): Move from tree-streamer-out.c.
10967 Inline lto_streamer_write_tree.
10968 (lto_output_tree): Move from tree-streamer-out.c.
10969 If REF_P is true and EXPR is indexable, call lto_output_tree_ref.
10970 * lto-streamer.c (lto_record_common_node): Move to tree-streamer.c.
10971 (lto_preload_common_nodes): Likewise.
10972 Remove assertions and adjustments for nodes
10973 main_identifier_node, ptrdiff_type_node and fileptr_type_node.
10974 (lto_streamer_hooks_init): Set streamer_hooks.write_tree to
10975 lto_output_tree and streamer_hooks.read_tree to lto_input_tree.
10976 * lto-streamer.h (lto_input_tree): Declare.
10977 (lto_output_tree_ref): Remove.
10978 * streamer-hooks.h (struct streamer_hooks): Remove fields
10979 preload_common_nodes, indexable_with_decls_p,
10980 pack_value_fields, unpack_value_fields and output_tree_header.
10982 * tree-streamer-in.c (lto_materialize_tree): Make extern.
10983 (lto_input_tree_pointers): Likewise.
10984 (lto_read_tree): Move to lto-streamer-in.c.
10985 (lto_input_integer_cst): Make extern.
10986 (lto_get_pickled_tree): Likewise.
10987 (lto_get_builtin_tree): Likewise.
10988 (lto_input_tree): Move to lto-streamer-in.c.
10989 * tree-streamer-out.c (pack_value_fields): Make extern.
10990 (lto_output_tree_or_ref): Remove. Replace all callers with
10991 calls to stream_write_tree.
10992 (lto_output_builtin_tree): Make extern.
10993 (lto_streamer_write_tree): Inline into lto_write_tree.
10994 (lto_output_tree_pointers): Make extern.
10995 (lto_output_tree_header): Likewise.
10996 (lto_output_integer_cst): Likewise.
10997 (lto_write_tree): Move to lto-streamer-out.c.
10998 (lto_output_tree): Likewise.
10999 * tree-streamer.c (lto_record_common_node): Move from lto-streamer.c
11000 (preload_common_nodes): Likewise.
11001 (lto_streamer_cache_create): Call it.
11002 * tree-streamer.h: Include streamer-hooks.h.
11003 (stream_write_tree): New.
11004 (stream_read_tree): New.
11005 (lto_input_tree): Remove.
11006 (lto_materialize_tree): Declare.
11007 (lto_input_tree_pointers): Declare.
11008 (lto_get_pickled_tree): Declare.
11009 (lto_get_builtin_tree): Declare.
11010 (lto_input_integer_cst): Declare.
11011 (lto_output_tree_header): Declare.
11012 (pack_value_fields): Declare.
11013 (lto_output_tree_pointers): Declare.
11014 (lto_output_integer_cst): Declare.
11015 (lto_output_builtin_tree): Declare.
11017 2011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
11019 * sel-sched-ir.c (has_dependence_note_reg_use): Call ds_full_merge
11020 only if producer writes to the register given by regno.
11022 2011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
11023 Alexander Monakov <amonakov@ispras.ru>
11025 * sched-deps.c (sched_get_condition_with_rev): Rename to ...
11026 (sched_get_condition_with_rev_uncached): ... this. Factor out
11027 condition caching logic into ...
11028 (sched_get_condition_with_rev): ... this. Reimplement. Do not
11029 attempt to use cache for instructions with zero luid.
11030 (sched_analyze_insn): Use INSN_CACHED_COND instead of INSN_COND.
11031 * sched-int.h (INSN_COND): Rename to INSN_CACHED_COND.
11033 2011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
11035 * sel-sched-ir.c (get_seqno_of_a_pred): Rename to
11036 get_seqno_for_a_jump. Update the caller.
11037 (get_seqno_by_succs): New. Use it ...
11038 (get_seqno_for_a_jump): ... here to find a seqno if looking at
11039 predecessors was not sufficient.
11040 (get_seqno_by_preds): Include head in iteration range, exclude insn.
11042 2011-08-11 Dmitry Melnik <dm@ispras.ru>
11044 * sel-sched-ir.c (invalidate_av_set): Remove the assert.
11046 2011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
11048 * sel-sched-ir.h (register_unavailable_p): Declare.
11049 * sel-sched-ir.c (register_unavailable_p): New. Use it...
11050 (set_unavailable_target_for_expr): ... here to properly test
11051 availability of a register.
11052 (speculate_expr): Ditto.
11053 * sel-sched.c (substitute_reg_in_expr): Ditto.
11054 (av_set_could_be_blocked_by_bookkeeping_p): Ditto.
11056 2011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
11058 * sel-sched.c (verify_target_availability): Fix usage of
11061 2011-08-11 Dmitry Melnik <dm@ispras.ru>
11063 * sel-sched-ir.c (init_global_and_expr_for_insn): Forbid copying of
11064 recognized by cannot_copy_insn_p hook and volatile instructions.
11066 2011-08-11 Dmitry Melnik <dm@ispras.ru>
11068 * sel-sched-ir.c (merge_expr_data): Take maximum spec.
11070 2011-08-11 Richard Sandiford <richard.sandiford@linaro.org>
11072 * doc/md.texi (define_bypass): Say that the instruction names can
11073 be filename-style globs.
11074 * Makefile.in (FNMATCH_H): Define.
11075 (build/genattrtab.o, build/genautomata.o): Depend on $(FNMATCH_H).
11076 * genattrtab.c: Include fnmatch.h.
11077 (bypass_list): Change field name from "insn" to "pattern".
11078 (gen_bypass_1): Update accordingly.
11079 (process_bypasses): Use fnmatch to check for matches between
11080 insn reservations and define_bypasses.
11081 * genautomata.c: Include fnmatch.h.
11082 (bypass_decl): Rename in_insn_name and out_insn_name to in_pattern
11083 and out_pattern respectively.
11084 (gen_bypass, insert_bypass): Update accordingly.
11085 (for_each_matching_insn, process_bypass_2, process_bypass_1)
11086 (process_bypass): New functions.
11087 (process_decls): Use process_bypass. Update after field name changes.
11089 2011-08-11 Georg-Johann Lay <avr@gjlay.de>
11092 * config/avr/avr.md (smulqi3_highpart): New insn.
11093 (umulqi3_highpart): New insn.
11094 (*subqi3.ashiftrt7): New insn.
11095 (smulhi3_highpart): New expander.
11096 (umulhi3_highpart): Nex expander.
11097 (*smulhi3_highpart_call): New insn.
11098 (*umulhi3_highpart_call): New insn.
11099 (extend_u): New code attribute.
11100 (extend_prefix): Rename code attribute to extend_su.
11101 * config/avr/avr.c (avr_rtx_costs): Report costs of highpart of
11102 widening QI/HI multiply.
11104 2011-08-11 Ira Rosen <ira.rosen@linaro.org>
11106 PR tree-optimization/50039
11107 * tree-vect-patterns.c (vect_operation_fits_smaller_type): Check
11108 that DEF_STMT has a stmt_vec_info.
11110 2011-08-10 Richard Guenther <rguenther@suse.de>
11112 * tree.h (can_trust_pointer_alignment): Remove.
11113 * builtins.c (can_trust_pointer_alignment): Remove.
11115 2011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
11117 * c-typeck.c (scalar_to_vector): New function. Try scalar to
11119 (stv_conv): New enum for scalar_to_vector return type.
11120 (build_binary_op): Adjust.
11121 * doc/extend.texi: Description of scalar to vector expansion.
11123 2011-08-10 Richard Guenther <rguenther@suse.de>
11125 * tree.h (get_pointer_alignment): Remove max-align argument.
11126 (get_object_alignment): Likewise.
11127 * builtins.c (get_object_alignment_1): Adjust.
11128 (get_object_alignment): Remove max-align argument.
11129 (get_pointer_alignment): Likewise.
11130 (expand_builtin_strlen): Adjust.
11131 (expand_builtin_memcpy): Likewise.
11132 (expand_builtin_mempcpy_args): Likewise.
11133 (expand_builtin_strncpy): Likewise.
11134 (expand_builtin_memset_args): Likewise.
11135 (expand_builtin_memcmp): Likewise.
11136 (expand_builtin_strcmp): Likewise.
11137 (expand_builtin_strncmp): Likewise.
11138 (get_builtin_sync_mem): Likewise.
11139 (fold_builtin_memset): Likewise.
11140 (fold_builtin_memory_op): Likewise.
11141 (expand_builtin_memory_chk): Likewise.
11142 * emit-rtl.c (get_mem_align_offset): Likewise.
11143 (set_mem_attributes_minus_bitpos): Likewise.
11144 * expr.c (expand_assignment): Likewise.
11145 (expand_expr_real_1): Likewise.
11146 * tree-sra.c (tree_non_mode_aligned_mem_p): Likewise.
11147 * tree-ssa-forwprop.c (simplify_builtin_call): Likewise.
11148 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Likewise.
11149 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Likewise.
11150 * value-prof.c (gimple_stringops_transform): Likewise.
11152 2011-08-10 Paulo J. Matos <paulo.matos@csr.com>
11154 * doc/tm.texi.in (CLASS_MAX_NREGS): Fix typo.
11155 * doc/tm.texi: Regenerate.
11157 2011-08-10 Georg-Johann Lay <avr@gjlay.de>
11160 * config/avr/avr.md (*ashlhiqi3): New insn-and-split.
11161 (*ashl<extend_prefix>qihiqi3): New insn-and-splits.
11162 (*ashl<extend_prefix>qihiqi3.mem): New insn-and-splits.
11163 Add peephole2 to map ashlhi3 to ashlqi3 if high part of
11164 shift target is unused.
11166 2011-08-10 Richard Guenther <rguenther@suse.de>
11168 PR tree-optimization/49937
11169 * tree-ssa-ccp.c (get_value_from_alignment): Re-implement
11170 using get_object_alignment_1.
11172 2011-08-09 Uros Bizjak <ubizjak@gmail.com>
11174 * config/i386/i386.c (ix86_emit_i387_round): New function.
11175 * config/i386/i386-protos.h (ix86_emit_i387_round): Declare.
11176 * config/i386/i386.md (round<mode>2): Use X87MODEF mode iterator.
11177 Use ix86_emit_i387_round to expand round function for i387 math.
11178 (lround<X87MODEF:mode><SWI248x:mode>2): Use X87MODEF mode iterator.
11179 Use ix86_emit_i387_round to expand {l,ll}round function for i387 math.
11181 2011-08-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11183 * config/sync.c: Move to ../libgcc.
11184 * Makefile.in (libgcc.mvars): Remove LIBGCC_SYNC, LIBGCC_SYNC_CFLAGS.
11185 * config/mips/t-libgcc-mips16 (LIBGCC_SYNC, LIBGCC_SYNC_CFLAGS):
11188 2011-08-09 Anatoly Sokolov <aesok@post.ru>
11190 * config/mmix/mmix.h (REGISTER_MOVE_COST): Remove macro.
11191 * config/mmix/mmix-protos.h (mmix_register_move_cost): Remove.
11192 * config/mmix/mmix.c (mmix_register_move_cost): Make static.
11193 Change 'from' and 'to' arguments type to reg_class_t.
11194 (TARGET_REGISTER_MOVE_COST): Define.
11196 2011-08-09 Vladimir Makarov <vmakarov@redhat.com>
11200 PR rtl-optimization/49990
11201 * ira-costs.c (print_allocno_costs, print_pseudo_costs): Don't
11202 ignore classes which can not change mode.
11203 (find_costs_and_classes): Ditto.
11205 2011-08-09 Richard Guenther <rguenther@suse.de>
11207 * tree-vrp.c (zero_nonzero_bits_from_vr): Also return precise
11208 information for ranges with only negative values.
11209 (extract_range_from_binary_expr_1): Adjust BIT_IOR_EXPR and
11210 BIT_AND_EXPR handling to handle ranges with negative values.
11212 2011-08-09 Kirill Yukhin <kirill.yukhin@intel.com>
11214 * config/i386/i386.c: Remove traling spaces.
11215 * config/i386/sse.md: Likewise.
11216 (*fma_fmadd_<mode>): Fix insn alternative 1 mnemonic.
11217 (*fma_fmsub_<mode>): Likewise.
11218 (*fma_fnmadd_<mode>): Likewise.
11219 (*fma_fnmsub_<mode>): Likewise.
11221 2011-08-09 Nick Clifton <nickc@redhat.com>
11223 * config/rx/rx.md: Disable extender peepholes at -O3.
11225 2011-08-09 Uros Bizjak <ubizjak@gmail.com>
11228 * config/i386/i386.md (reload_noff_load): New.
11229 (reload_noff_store): Ditto.
11230 * config/i386/i386.c (ix86_secondary_reload): Use
11231 CODE_FOR_reload_noff_load and CODE_FOR_reload_noff_store to handle
11232 double-word moves from/to non-offsetable addresses instead of
11233 generating XMM temporary.
11235 2011-08-09 Anatoly Sokolov <aesok@post.ru>
11237 * config/mmix/mmix.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P): Remove.
11239 2011-08-09 Ira Rosen <ira.rosen@linaro.org>
11241 PR tree-optimization/50014
11242 * tree-vect-loop.c (vectorizable_reduction): Get def type before
11243 calling vect_get_vec_def_for_stmt_copy ().
11245 2011-08-08 Vladimir Makarov <vmakarov@redhat.com>
11247 PR rtl-optimization/49990
11248 * ira-costs.c (print_allocno_costs, print_pseudo_costs): Don't
11249 ignore classes which can not change mode.
11250 (find_costs_and_classes): Ditto.
11252 2011-08-08 Richard Henderson <rth@redhat.com>
11254 PR middle-end/49990
11255 * config/i386/i386.c (ix86_expand_prologue): Call
11256 for SEH target gen_prologue_use instead of gen_blockage
11259 2011-08-08 Martin Jambor <mjambor@suse.cz>
11261 PR middle-end/49923
11262 * tree-sra.c (access_precludes_ipa_sra_p): Also check access
11265 2011-08-08 Diego Novillo <dnovillo@google.com>
11267 * Makefile.in (LTO_STREAMER_H): Add DIAGNOSTIC_H.
11268 (DATA_STREAMER_H): New.
11269 (GIMPLE_STREAMER_H): New.
11270 (TREE_STREAMER_H): New.
11271 (STREAMER_HOOKS_H): New.
11272 (OBJS): Add data-streamer.o, data-streamer-in.o, data-streamer-out.o,
11273 gimple-streamer-in.o, gimple-streamer-out.o, streamer-hooks.o,
11274 tree-streamer.o, tree-streamer-in.o and tree-streamer-out.o.
11275 (data-streamer.o): New.
11276 (data-streamer-in.o): New.
11277 (data-streamer-out.o): New.
11278 (gimple-streamer-in.o): New.
11279 (gimple-streamer-out.o): New.
11280 (streamer-hooks.o): New.
11281 (tree-streamer.o): New.
11282 (tree-streamer-in.o): New.
11283 (tree-streamer-out.o): New.
11284 (lto-cgraph.o): Add dependency on DATA_STREAMER_H and TREE_STREAMER_H.
11285 (lto-streamer-in.o): Add dependency on DATA_STREAMER_H,
11286 GIMPLE_STREAMER_H and TREE_STREAMER_H.
11287 (lto-streamer-out.o): Add dependency on DATA_STREAMER_H,
11288 GIMPLE_STREAMER_H and TREE_STREAMER_H.
11289 (lto-streamer.o): Add dependency on STREAMER_HOOKS_H.
11290 (ipa-prop.o): Add dependency on DATA_STREAMER_H and TREE_STREAMER_H.
11291 (ipa-inline-analysis.o): Likewise.
11292 (ipa-pure-const.o): Likewise.
11293 * data-streamer-in.c: New.
11294 * data-streamer-out.c: New.
11295 * data-streamer.c: New.
11296 * data-streamer.h: New.
11297 * gimple-streamer-in.c: New.
11298 * gimple-streamer-out.c: New.
11299 * gimple-streamer.h: New.
11300 * ipa-inline-analysis.c: Include data-streamer.h.
11301 * ipa-prop.c: Include data-streamer.h.
11302 * ipa-pure-const.c: Include data-streamer.h.
11303 * lto-cgraph.c: Include data-streamer.h.
11304 * lto-section-in.c (lto_input_uleb128): Move to data-streamer-in.c.
11305 (lto_input_widest_uint_uleb128): Likewise.
11306 (lto_input_sleb128): Likewise.
11307 (bp_unpack_var_len_unsigned): Likewise.
11308 (bp_unpack_var_len_int): Likewise.
11309 * lto-section-out.c (lto_output_uleb128_stream): Move to
11310 data-streamer-out.c.
11311 (lto_output_widest_uint_uleb128_stream): Likewise.
11312 (lto_output_sleb128_stream): Likewise.
11313 (bp_pack_var_len_unsigned): Likewise.
11314 (bp_pack_var_len_int): Likewise.
11315 * lto-streamer-in.c: Include data-streamer.h and gimple-streamer.h.
11316 (struct string_slot): Remove. Update all users.
11317 (lto_tag_check_set): Make extern.
11318 (lto_tag_check_range): Move to lto-streamer.h.
11319 (lto_tag_check): Likewise.
11320 (hash_string_slot_node): Remove. Update all users.
11321 (eq_string_slot_node): Remove. Update all users.
11322 (string_for_index): Move to data-streamer-in.c
11323 (input_string_internal): Likewise.
11324 (input_string_cst): Move to tree-streamer-in.c.
11325 (input_identifier): Likewise.
11326 (lto_input_string): Move to data-streamer-in.c
11327 (input_record_start): Move to data-streamer.h
11328 (canon_file_name): Use new definition of struct string_slot
11329 from data-streamer.h. Set S_SLOT.LEN.
11330 (lto_input_location): Make extern.
11331 (lto_input_chain): Move to tree-streamer-in.c.
11332 (lto_init_eh): Make extern.
11333 (input_phi): Move to gimple-streamer-in.c.
11334 (input_gimple_stmt): Likewise.
11335 (input_bb): Likewise.
11336 (unpack_ts_base_value_fields): Move to tree-streamer-in.c.
11337 (unpack_ts_real_cst_value_fields): Likewise.
11338 (unpack_ts_fixed_cst_value_fields): Likewise.
11339 (unpack_ts_decl_common_value_fields): Likewise.
11340 (unpack_ts_decl_wrtl_value_fields): Likewise.
11341 (unpack_ts_decl_with_vis_value_fields): Likewise.
11342 (unpack_ts_function_decl_value_fields): Likewise.
11343 (unpack_ts_type_common_value_fields): Likewise.
11344 (unpack_ts_block_value_fields): Likewise.
11345 (unpack_ts_translation_unit_decl_value_fields): Likewise.
11346 (unpack_value_fields): Likewise.
11347 (lto_materialize_tree): Likewise.
11348 (lto_input_ts_common_tree_pointers): Likewise.
11349 (lto_input_ts_vector_tree_pointers): Likewise.
11350 (lto_input_ts_complex_tree_pointers): Likewise.
11351 (lto_input_ts_decl_minimal_tree_pointers): Likewise.
11352 (lto_input_ts_decl_common_tree_pointers): Likewise.
11353 (lto_input_ts_decl_non_common_tree_pointers): Likewise.
11354 (lto_input_ts_decl_with_vis_tree_pointers): Likewise.
11355 (lto_input_ts_field_decl_tree_pointers): Likewise.
11356 (lto_input_ts_function_decl_tree_pointers): Likewise.
11357 (lto_input_ts_type_common_tree_pointers): Likewise.
11358 (lto_input_ts_type_non_common_tree_pointers): Likewise.
11359 (lto_input_ts_list_tree_pointers): Likewise.
11360 (lto_input_ts_vec_tree_pointers): Likewise.
11361 (lto_input_ts_exp_tree_pointers): Likewise.
11362 (lto_input_ts_block_tree_pointers): Likewise.
11363 (lto_input_ts_binfo_tree_pointers): Likewise.
11364 (lto_input_ts_constructor_tree_pointers): Likewise.
11365 (lto_input_ts_target_option): Likewise.
11366 (lto_input_ts_translation_unit_decl_tree_pointers): Likewise.
11367 (lto_input_tree_pointers): Likewise.
11368 (lto_get_pickled_tree): Likewise.
11369 (lto_get_builtin_tree): Likewise.
11370 (lto_read_tree): Likewise.
11371 (lto_input_integer_cst): Likewise.
11372 (lto_input_tree): Likewise.
11373 * lto-streamer-out.c: Include data-streamer.h,
11374 gimple-streamer.h and streamer-hooks.h.
11375 (struct string_slot): Move to data-streamer.h.
11376 (hash_string_slot_node): Likewise.
11377 (eq_string_slot_node): Likewise.
11378 (lto_string_index): Move to data-streamer-out.c.
11379 (lto_output_string_with_length): Likewise.
11380 (lto_output_string): Likewise.
11381 (output_string_cst): Move to tree-streamer-out.c.
11382 (output_identifier): Likewise.
11383 (output_zero): Move to data-streamer-out.c
11384 (output_uleb128): Likewise.
11385 (output_sleb128): Likewise.
11386 (output_record_start): Move to data-streamer.h
11387 (pack_ts_base_value_fields): Move to tree-streamer-out.c.
11388 (pack_ts_real_cst_value_fields): Likewise.
11389 (pack_ts_fixed_cst_value_fields): Likewise.
11390 (pack_ts_decl_common_value_fields): Likewise.
11391 (pack_ts_decl_wrtl_value_fields): Likewise.
11392 (pack_ts_decl_with_vis_value_fields): Likewise.
11393 (pack_ts_function_decl_value_fields): Likewise.
11394 (pack_ts_type_common_value_fields): Likewise.
11395 (pack_ts_block_value_fields): Likewise.
11396 (pack_ts_translation_unit_decl_value_fields): Likewise.
11397 (pack_value_fields): Likewise.
11398 (lto_output_chain): Likewise.
11399 (lto_output_ts_common_tree_pointers): Likewise.
11400 (lto_output_ts_vector_tree_pointers): Likewise.
11401 (lto_output_ts_complex_tree_pointers): Likewise.
11402 (lto_output_ts_decl_minimal_tree_pointers): Likewise.
11403 (lto_output_ts_decl_common_tree_pointers): Likewise.
11404 (lto_output_ts_decl_non_common_tree_pointers): Likewise.
11405 (lto_output_ts_decl_with_vis_tree_pointers): Likewise.
11406 (lto_output_ts_field_decl_tree_pointers): Likewise.
11407 (lto_output_ts_function_decl_tree_pointers): Likewise.
11408 (lto_output_ts_type_common_tree_pointers): Likewise.
11409 (lto_output_ts_type_non_common_tree_pointers): Likewise.
11410 (lto_output_ts_list_tree_pointers): Likewise.
11411 (lto_output_ts_vec_tree_pointers): Likewise.
11412 (lto_output_ts_exp_tree_pointers): Likewise.
11413 (lto_output_ts_block_tree_pointers): Likewise.
11414 (lto_output_ts_binfo_tree_pointers): Likewise.
11415 (lto_output_ts_constructor_tree_pointers): Likewise.
11416 (lto_output_ts_target_option): Likewise.
11417 (lto_output_ts_translation_unit_decl_tree_pointers): Likewise.
11418 (lto_output_tree_pointers): Likewise.
11419 (lto_output_tree_header): Likewise.
11420 (lto_output_builtin_tree): Likewise.
11421 (lto_write_tree): Likewise.
11422 (lto_output_integer_cst): Likewise.
11423 (lto_output_tree): Likewise.
11424 (output_phi): Move to gimple-streamer-out.c.
11425 (output_gimple_stmt): Likewise.
11426 (output_bb): Likewise.
11427 * lto-streamer.c: Include tree-streamer.h and streamer-hooks.h.
11428 (streamer_hooks): Move to streamer-hooks.c.
11429 (check_handled_ts_structures): Move to tree-streamer.c
11430 (lto_streamer_cache_add_to_node_array): Likewise.
11431 (lto_streamer_cache_insert_1): Likewise.
11432 (lto_streamer_cache_insert): Likewise.
11433 (lto_streamer_cache_insert_at): Likewise.
11434 (lto_streamer_cache_append): Likewise.
11435 (lto_streamer_cache_lookup): Likewise.
11436 (lto_streamer_cache_get): Likewise.
11437 (lto_record_common_node): Likewise.
11438 (lto_preload_common_nodes): Likewise.
11439 (lto_streamer_cache_create): Likewise.
11440 (lto_streamer_cache_delete): Likewise.
11441 (streamer_hooks_init): Move to streamer-hooks.c.
11442 * lto-streamer.h: Include diagnostic.h
11443 (struct output_block, struct lto_input_block,
11444 struct data_in, struct bitpack_d): Remove forward declarations.
11445 (struct bitpack_d): Move to data-streamer.h.
11446 (struct lto_streamer_cache_d): Move to tree-streamer.h.
11447 (struct streamer_hooks): Move to streamer-hooks.h.
11448 (bp_pack_var_len_unsigned): Move to data-streamer.h.
11449 (bp_pack_var_len_int): Likewise.
11450 (bp_unpack_var_len_unsigned): Likewise.
11451 (bp_unpack_var_len_int): Likewise.
11452 (lto_input_location): Declare.
11453 (lto_tag_check_set): Declare.
11454 (lto_init_eh): Declare.
11455 (lto_output_tree_ref): Declare.
11456 (lto_output_location): Declare.
11457 (bitpack_create): Move to data-streamer.h.
11458 (bp_pack_value): Likewise.
11459 (lto_output_bitpack): Likewise.
11460 (lto_input_bitpack): Likewise.
11461 (bp_unpack_value): Likewise.
11462 (lto_output_1_stream): Likewise.
11463 (lto_input_1_unsigned): Likewise.
11464 (lto_output_int_in_range): Likewise.
11465 (lto_input_int_in_range): Likewise.
11466 (bp_pack_int_in_range): Likewise.
11467 (bp_unpack_int_in_range): Likewise.
11468 (lto_output_enum): Likewise.
11469 (lto_input_enum): Likewise.
11470 (bp_pack_enum): Likewise.
11471 (bp_unpack_enum): Likewise.
11472 * streamer-hooks.c: New.
11473 * streamer-hooks.h: New.
11474 * tree-streamer-in.c: New.
11475 * tree-streamer-out.c: New.
11476 * tree-streamer.c: New.
11477 * tree-streamer.h: New.
11479 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11481 * gthr-posix95.h: Remove.
11482 * gthr.h [_PTHREADS95]: Remove.
11483 * configure.ac (enable_threads): Remove posix95.
11484 * configure: Regenerate.
11485 * doc/install.texi (Configuration, --enable-threads): Remove posix95.
11487 2011-08-08 Uros Bizjak <ubizjak@gmail.com>
11490 * config/i386/i386.c (ix86_decompose_address): Allow zero-extended
11492 (ix86_print_operand_address): Handle zero-extended addresses.
11493 (memory_address_length): Add length of addr32 prefix for
11494 zero-extended addresses.
11495 (ix86_secondary_reload): Handle moves to/from double-word general
11496 registers from/to zero-extended addresses.
11497 * config/i386/predicates.md (lea_address_operand): Reject
11498 zero-extended operands.
11500 2011-08-08 H.J. Lu <hongjiu.lu@intel.com>
11503 * config.gcc (libgcc_tm_file): Add i386/value-unwind.h for Linux/x86.
11505 * system.h (REG_VALUE_IN_UNWIND_CONTEXT): Poisoned.
11506 (ASSUME_EXTENDED_UNWIND_CONTEXT): Likewise.
11508 * unwind-dw2.c (ASSUME_EXTENDED_UNWIND_CONTEXT): New.
11509 (_Unwind_Context_Reg_Val): Likewise.
11510 (_Unwind_Get_Unwind_Word): Likewise.
11511 (_Unwind_Get_Unwind_Context_Reg_Val): Likewise.
11512 (_Unwind_Context): Use _Unwind_Context_Reg_Val on the reg field.
11513 (_Unwind_IsExtendedContext): Check ASSUME_EXTENDED_UNWIND_CONTEXT
11514 for EXTENDED_CONTEXT_BIT.
11515 (__frame_state_for): Likewise.
11516 (uw_init_context_1): Likewise.
11517 (_Unwind_GetGR): Updated.
11518 (_Unwind_SetGR): Likewise.
11519 (_Unwind_GetGRPtr): Likewise.
11520 (_Unwind_SetGRPtr): Likewise.
11521 (_Unwind_SetGRValue): Likewise.
11522 (_Unwind_GRByValue): Likewise.
11523 (uw_install_context_1): Likewise.
11525 * doc/tm.texi.in: Document REG_VALUE_IN_UNWIND_CONTEXT and
11526 ASSUME_EXTENDED_UNWIND_CONTEXT.
11527 * doc/tm.texi: Regenerated.
11529 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11531 * Makefile.in (gengtype$(exeext)): Add $(LDFLAGS).
11533 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11535 * doc/invoke.texi (DEC Alpha Options, -mcpu): native support isn't
11536 Linux/GNU-specific.
11537 (DEC Alpha Options, -mtune): Likewise.
11538 (MIPS Options, -march): native is supported on IRIX.
11540 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11542 * config/sparc/driver-sparc.c: New file.
11543 * config/sparc/x-sparc: New file.
11544 * config.host: Use driver-sparc.o, sparc/x-sparc on sparc*-*-solaris2*.
11545 * config/sparc/sparc.opt (native): New value for enum processor_type.
11546 * config/sparc/sparc-opts.h (PROCESSOR_NATIVE): Declare.
11547 * config/sparc/sparc.c (sparc_option_override): Abort if
11548 PROCESSOR_NATIVE gets here.
11549 * config/sparc/sol2.h [__sparc__] (host_detect_local_cpu): Declare.
11550 (EXTRA_SPEC_FUNCTIONS, MCPU_MTUNE_NATIVE_SPECS,
11551 DRIVER_SELF_SPECS): Define.
11552 * doc/invoke.texi (SPARC Options, -mcpu): Document native.
11553 (SPARC Options, -mtune): Likewise.
11554 * configure.ac (EXTRA_GCC_LIBS): Check for libkstat.
11556 * configure: Regenerate.
11557 * Makefile.in (EXTRA_GCC_LIBS): Set.
11558 (xgcc$(exeext)): Add $(EXTRA_GCC_LIBS).
11559 (cpp$(exeext)): Likewise.
11561 2011-08-08 Richard Guenther <rguenther@suse.de>
11563 * tree-vrp.c (extract_range_from_unary_expr_1): New function,
11565 (extract_range_from_unary_expr): ... here. Handle BIT_NOT_EXPR
11568 2011-08-08 Mikael Pettersson <mikpe@it.uu.se>
11570 PR tree-optimization/50005
11571 * ipa-inline-analysis (remap_predicate): Add cast to
11572 silence signed/unsigned comparison warning.
11574 2011-08-08 Richard Sandiford <richard.sandiford@linaro.org>
11576 * modulo-sched.c (get_sched_window): Use a table for the debug output.
11577 Print the current ii.
11578 (sms_schedule_by_order): Reduce whitespace in dump line.
11580 2011-08-08 Richard Sandiford <richard.sandiford@linaro.org>
11582 * modulo-sched.c (get_sched_window): Use just one loop for predecessors
11583 and one loop for successors. Fix upper bound of memory range.
11585 2011-08-06 Uros Bizjak <ubizjak@gmail.com>
11588 * config/alpha/alpha.c (alpha_instantiate_decls): New function.
11589 (TARGET_INSTANTIATE_DECLS): New define.
11591 2011-08-06 Paolo Bonzini <bonzini@gnu.org>
11592 Mikael Morin <mikael.morin@sfr.fr>
11594 * Makefile.in (INCLUDES_FOR_TARGET): New.
11595 (LIBGCC2_CFLAGS): Use it.
11596 (CRTSTUFF_CFLAGS): Use it instead of INCLUDES.
11598 2011-08-06 Uros Bizjak <ubizjak@gmail.com>
11600 * config/i386/i386.c (ix86_compute_frame_layout): Simplify
11601 frame->save_regs_using_mov calculation.
11603 2011-08-06 Uros Bizjak <ubizjak@gmail.com>
11605 * config/i386/i386.md (ssemodesuffix): Remove V8SI mode.
11606 * config/i386/sse.md (castmode): New mode attribute.
11607 (avx_<castmode><avxsizesuffix>_<castmode>): Rename from
11608 avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>.
11610 2011-08-05 Jan Hubicka <jh@suse.cz>
11612 PR middle-end/49494
11613 * ipa-inline-analysis.c (remap_predicate): Add bounds check.
11615 2011-08-05 Jan Hubicka <jh@suse.cz>
11617 PR middle-end/49500
11618 * tree-emultls.c (new_emutls_decl):Add alias_of parameter;
11620 (create_emultls_var):New function.
11621 (ipa_lower_emutls): Handle aliases correctly.
11623 2011-08-05 Jan Hubicka <jh@suse.cz>
11625 PR middle-end/49735
11626 * ipa-inline.c (recursive_inlining): Look through aliases.
11628 2011-08-05 Jason Merrill <jason@redhat.com>
11630 * config/i386/i386.c (setup_incoming_varargs_ms_64): Move
11631 declarations to beginning of function.
11633 2011-08-05 Bernd Schmidt <bernds@codesourcery.com>
11635 PR rtl-optimization/49900
11636 * sched-ebb.c (add_deps_for_risky_insns): Also add dependencies to
11637 ensure basic blocks stay in the same order.
11639 2011-08-05 Aldy Hernandez <aldyh@redhat.com>
11641 * config/s390/s390.c (s390_expand_cs_hqi): Add new arguments to
11643 (s390_expand_atomic): Same.
11645 2011-08-05 Richard Henderson <rth@redhat.com>
11648 * dwarf2cfi.c (scan_insn_after): Split out of ...
11649 (scan_trace): ... here. Correctly place notes wrt sequences.
11651 2011-08-05 Kaz Kojima <kkojima@gcc.gnu.org>
11652 Richard Henderson <rth@redhat.com>
11655 * expr.c (fixup_args_size_notes): Look through no-op moves.
11657 2011-08-05 Uros Bizjak <ubizjak@gmail.com>
11659 * config/i386/i386.md (*push<mode>2): Use "o" constraint instead
11660 of "m" for operand 0. Add type and mode attribute.
11661 (*pushxf_nointeger"): Use "<" constraint for operand 0.
11662 (*pushdf_rex64): New pattern, split out of *pushdf. Use "m"
11663 constraint instead of "o" for opreand 1.
11664 (*pushdf): Disable for TARGET_64BIT. Correct mode attribute.
11665 (*movdi_internal_rex64): Use "!o" constraint instead of "!m" for
11666 operand 0, alternative 4.
11667 (*movdf_internal_rex64): Ditto for operand 0, alernative 6.
11669 2011-08-05 Uros Bizjak <ubizjak@gmail.com>
11671 * config/i386/predicates.md (lea_address_operand): Rename from
11672 no_seg_address_operand.
11673 * config/i386/i386.md (*lea_1): Update operand 1 predicate for rename.
11674 (*lea_1_zext): Ditto.
11676 (*lea_2_zext): Ditto.
11678 2011-08-05 Uros Bizjak <ubizjak@gmail.com>
11680 * config/i386/i386.c (ix86_print_operand_address): Handle SUBREGs of
11681 parts.base and parts.index.
11682 * config/i386/predicates.md (aligned_operand): Ditto.
11683 (cmpxchg8b_pic_memory_operand): Ditto.
11685 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11687 * config/soft-fp: Move to ../libgcc.
11688 * Makefile.in (SFP_MACHINE): Remove.
11689 (libgcc-support): Remove $(SFP_MACHINE) dependency.
11690 * config/arm/sfp-machine.h: Move to ../libgcc/config/arm.
11691 * config/arm/t-arm-softfp: Move to
11692 ../libgcc/config/arm/t-softfp.
11693 * config/c6x/sfp-machine.h: Move to ../libgcc/config/c6x.
11694 * config/c6x/t-c6x-softfp: Remove.
11695 * config/i386/sfp-machine.h: Move to ../libgcc/config/i386.
11696 * config/i386/t-fprules-softfp: Move to
11697 ../libgcc/config/t-softfp-tf.
11698 * config/ia64/sfp-machine.h: Move to ../libgcc/config/ia64.
11699 * config/ia64/t-fprules-softfp: Remove.
11700 * config/lm32/sfp-machine.h: Move to ../libgcc/config/lm32.
11701 * config/lm32/t-fprules-softfp: Remove.
11702 * config/moxie/sfp-machine.h: Remove.
11703 * config/moxie/t-moxie-softfp: Remove.
11704 * config/rs6000/darwin-ldouble-format: Move to
11705 ../libgcc/config/rs6000/ibm-ldouble-format.
11706 * config/rs6000/darwin-ldouble.c: Move to
11707 ../libgcc/config/rs6000/ibm-ldouble.c
11708 * config/rs6000/libgcc-ppc-glibc.ver: Move to ../libgcc/config/rs6000.
11709 * config/rs6000/libgcc-ppc64.ver: Likewise.
11710 * config/rs6000/sfp-machine.h: Likewise.
11711 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Remove
11712 $(srcdir)/config/rs6000/libgcc-ppc64.ver.
11713 (LIB2FUNCS_EXTRA): Remove.
11714 (TARGET_LIBGCC2_CFLAGS): Remove.
11715 * config/rs6000/t-aix52: Likewise
11716 * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Remove
11717 $(srcdir)/config/rs6000/darwin-ldouble.c.
11718 (SHLIB_MAPFILES): Remove.
11719 * config/rs6000/t-darwin64 (LIB2FUNCS_EXTRA): Remove
11720 $(srcdir)/config/rs6000/darwin-ldouble.c.
11721 * config/rs6000/t-fprules-softfp: Move to
11722 ../libgcc/config/t-softfp-sfdf.
11723 * config/rs6000/t-freebsd: Move to ../libgcc/config/rs6000.
11724 * config/rs6000/t-linux64 (softfp_wrap_start, softfp_wrap_end): Remove.
11725 * config/rs6000/t-ppccomm (LIB2FUNCS_EXTRA): Remove
11726 $(srcdir)/config/rs6000/darwin-ldouble.c.
11727 * config/score/sfp-machine.h: Move to ../libgcc/config/score.
11728 * config/score/t-score-softfp: Remove.
11729 * config.gcc (arm*-*-linux*): Remove arm/t-arm-softfp,
11730 soft-fp/t-softfp from tmake_file.
11731 (arm*-*-uclinux*): Likewise.
11732 (arm*-*-ecos-elf): Likewise.
11733 (arm*-*-eabi*, arm*-*-symbianelf*): Likewise.
11734 (arm*-*-rtems*): Likewise.
11735 (arm*-*-elf): Likewise.
11736 (moxie-*-elf): Remove moxie/t-moxie-softfp, soft-fp/t-softfp from
11738 (moxie-*-uclinux*): Likewise.
11739 (moxie-*-rtems*): Likewise.
11740 (lm32-*-elf*): Remove lm32/t-fprules-softfp, soft-fp/t-softfp from
11742 (lm32-*-rtems*): Likewise.
11743 (lm32-*-uclinux*): Likewise.
11744 (powerpc-*-freebsd*): Remove rs6000/t-freebsd,
11745 rs6000/t-fprules-softfp, soft-fp/t-softfp from tmake_file.
11746 (powerpc-*-linux*, powerpc64-*-linux*): Remove
11747 rs6000/t-fprules-softfp, soft-fp/t-softfp from tmake_file.
11748 (score-*-elf): Remove score/t-score-softfp, soft-fp/t-softfp from
11750 (tic6x-*-elf): Remove c6x/t-c6x-softfp, soft-fp/t-softfp from
11752 (tic6x-*-uclinux): Likewise.
11753 (i[34567]86-*-darwin*, x86_64-*-darwin*): Remove i386/t-fprules-softfp,
11754 soft-fp/t-softfp from tmake_file.
11755 (i[34567]86-*-linux*, x86_64-*-linux*, i[34567]86-*-kfreebsd*-gnu)
11756 (x86_64-*-kfreebsd*-gnu, i[34567]86-*-gnu*): Likewise.
11757 (i[34567]86-*-solaris2*, x86_64-*-solaris2.1[0-9]*): Likewise.
11758 (i[34567]86-*-cygwin*, i[34567]86-*-mingw*, x86_64-*-mingw*): Likewise.
11759 (i[34567]86-*-freebsd*, x86_64-*-freebsd*): Likewise.
11761 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11763 * Makefile.in (FPBIT_FUNCS, DPBIT_FUNCS, TPBIT_FUNCS): Remove.
11764 (libgcc-support): Remove $(FPBIT), $(DPBIT), $(TPBIT) dependencies.
11765 (libgcc.mvars): Remove FPBIT, FPBIT_FUNCS, DPBIT, DPBIT_FUNCS,
11766 TPBIT, TPBIT_FUNCS.
11767 * config/fp-bit.c, config/fp-bit.h: Move to ../libgcc.
11768 * config/arm/t-strongarm-elf (FPBIT, DPBIT, dp-bit.c, fp-bit.c):
11770 * config/arm/t-vxworks: Likewise.
11771 * config/arm/t-wince-pe: Likewise.
11772 * config/avr/t-avr (fp-bit.c, FPBIT): Remove.
11773 * config/bfin/t-bfin (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
11774 * config/bfin/t-bfin-elf: Likewise.
11775 * config/bfin/t-bfin-linux: Likewise.
11776 * config/bfin/t-bfin-uclinux: Likewise.
11777 * config/cris/t-cris (FPBIT, DPBIT, dp-bit.c, tmplibgcc_fp_bit.c):
11779 * config/fr30/t-fr30: Likewise.
11780 * config/frv/t-frv: Likewise.
11781 * config/h8300/t-h8300 (FPBIT, fp-bit.c): Remove.
11782 * config/iq2000/t-iq2000 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
11783 * config/m32c/t-m32c: Likewise.
11784 * config/m32r/t-linux: (LIB2FUNCS_EXTRA, fp-bit.c, dp-bit.c): Remove.
11785 * config/m32r/t-m32r (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
11786 * config/mcore/t-mcore: Likewise.
11787 * config/mep/t-mep: Likewise.
11788 * config/microblaze/t-microblaze: Likewise.
11789 * config/mips/t-linux64 (TPBIT, tp-bit.c): Remove.
11790 * config/mips/t-mips (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
11791 * config/mips/t-sdemtk (FPBIT, DPBIT): Remove.
11792 * config/mips/t-sr71k (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
11793 * config/mn10300/t-linux: Remove.
11794 * config/mn10300/t-mn10300 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
11795 * config/pdp11/t-pdp11: Likewise.
11796 * config/picochip/t-picochip (FPBIT, fp-bit.c): Remove.
11797 * config/rs6000/ppc64-fp.c: Move to ../libgcc/config/rs6000.
11798 * config/rs6000/t-aix43 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
11799 (LIB2FUNCS_EXTRA): Remove $(srcdir)/config/rs6000/ppc64-fp.c.
11800 * config/rs6000/t-aix52: Likewise.
11801 * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Remove
11802 $(srcdir)/config/rs6000/ppc64-fp.c.
11803 * config/rs6000/t-fprules-fpbit: Remove.
11804 * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Remove.
11805 * config/rs6000/t-lynx (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
11806 * config/sh/t-netbsd (FPBIT, DPBIT): Remove.
11807 * config/sh/t-sh (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
11808 * config/sparc/t-elf: Likewise.
11809 * config/sparc/t-leon: Likewise.
11810 * config/sparc/t-leon3: Likewise.
11811 * config/spu/t-spu-elf: Likewise.
11812 (DPBIT_FUNCS): Remove.
11813 * config/stormy16/t-stormy16 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
11814 * config/v850/t-v850: Likewise.
11815 * config.gcc (avr-*-rtems*): Add avr/avr-lib.h to libgcc_tm_file.
11816 (avr-*-*): Likewise.
11817 (h8300-*-rtems*): Set libgcc_tm_file.
11818 (h8300-*-elf*): Likewise.
11819 (powerpc-*-eabisimaltivec*): Remove rs6000/t-fprules-fpbit from
11821 (powerpc-*-eabisim*): Likewise.
11822 (powerpc-*-elf*): Likewise.
11823 (powerpc-*-eabialtivec*): Likewise.
11824 (powerpc-xilinx-eabi*): Likewise.
11825 (powerpc-*-eabi*): Likewise.
11826 (powerpc-*-rtems*): Likewise.
11827 (powerpc-wrs-vxworks, powerpc-wrs-vxworksae): Likewise.
11828 (powerpcle-*-elf*): Likewise.
11829 (powerpcle-*-eabisim*): Likewise.
11830 (powerpcle-*-eabi*): Likewise.
11831 (rx-*-elf*): Add rx/rx-lib.h to libgcc_tm_file.
11832 (am33_2.0-*-linux*): Remove mn10300/t-linux from tmake_file.
11833 * doc/fragments.texi (Target Fragment, Floating Point Emulation):
11836 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11838 * Makefile.in (UNWIND_H): Remove.
11839 (LIB2ADDEH, LIB2ADDEHSTATIC, LIB2ADDEHSHARED): Move to
11840 ../libgcc/Makefile.in.
11841 (LIBUNWIND, SHLIBUNWIND_LINK, SHLIBUNWIND_INSTALL): Likewise.
11842 (LIBUNWINDDEP): Remove.
11843 (libgcc-support): Remove LIB2ADDEH, $(srcdir)/emutls.c dependencies.
11844 (libgcc.mvars): Remove LIB2ADDEH, LIB2ADDEHSTATIC, LIB2ADDEHSHARED,
11845 LIBUNWIND, SHLIBUNWIND_LINK, SHLIBUNWIND_INSTALL.
11846 (stmp-int-hdrs): Remove $(UNWIND_H) dependency.
11847 Don't copy $(UNWIND_H).
11848 * config.gcc (ia64*-*-linux*): Remove with_system_libunwind handling.
11849 * configure.ac (GCC_CHECK_UNWIND_GETIPINFO): Remove.
11850 * aclocal.m4: Regenerate.
11851 * configure: Regenerate.
11852 * emutls.c, unwind-c.c, unwind-compat.c, unwind-compat.h,
11853 unwind-dw2-fde-compat.c, unwind-dw2-fde-glibc.c, unwind-dw2-fde.c,
11854 unwind-dw2-fde.h, unwind-dw2.c, unwind-dw2.h, unwind-generic.h,
11855 unwind-pe.h, unwind-sjlj.c, unwind.inc: Move to ../libgcc.
11856 * unwind-dw2-fde-darwin.c: Move to ../libgcc/config.
11857 * config/arm/libunwind.S, config/arm/pr-support.c,
11858 config/arm/unwind-arm.c, config/arm/unwind-arm.h: Move to
11859 ../libgcc/config/arm.
11860 * config/arm/t-bpabi (UNWIND_H, LIB2ADDEH): Remove.
11861 * config/arm/t-symbian (UNWIND_H, LIB2ADDEH): Remove.
11862 * config/frv/t-frv ($(T)frvbegin$(objext)): Use
11863 $(srcdir)/../libgcc to refer to unwind-dw2-fde.h.
11864 ($(T)frvend$(objext)): Likewise.
11865 * config/ia64/t-glibc (LIB2ADDEH): Remove.
11866 * config/ia64/t-glibc-libunwind: Move to ../libgcc/config/ia64.
11867 * config/ia64/fde-glibc.c, config/ia64/fde-vms.c,
11868 config/ia64/unwind-ia64.c, config/ia64/unwind-ia64.h: Move to
11869 ../libgcc/config/ia64.
11870 * config/ia64/t-hpux (LIB2ADDEH): Remove.
11871 * config/ia64/t-ia64 (LIB2ADDEH): Remove.
11872 * config/ia64/t-vms (LIB2ADDEH): Remove.
11873 * config/ia64/vms.h (UNW_IVMS_MODE,
11874 MD_UNW_COMPATIBLE_PERSONALITY_P): Remove.
11875 * config/picochip/t-picochip (LIB2ADDEH): Remove.
11876 * config/rs6000/aix.h (R_LR, MD_FROB_UPDATE_CONTEXT): Remove.
11877 * config/rs6000/t-darwin (LIB2ADDEH): Remove.
11878 * config/rs6000/darwin-fallback.c: Move to ../libgcc/config/rs6000.
11879 * config/sh/t-sh ($(T)unwind-dw2-Os-4-200.o): Use
11880 $(srcdir)/../libgcc to refer to unwinder sources.
11881 * config/spu/t-spu-elf (LIB2ADDEH): Remove.
11882 * config/t-darwin (LIB2ADDEH): Remove.
11883 * config/t-freebsd (LIB2ADDEH): Remove.
11884 * config/t-libunwind (LIB2ADDEH, LIB2ADDEHSTATIC): Remove.
11885 * config/t-libunwind-elf: Move to ../libgcc/config.
11886 * config/t-linux (LIB2ADDEH): Remove.
11887 * config/t-sol2 (LIB2ADDEH): Remove.
11888 * config/xtensa/t-xtensa (LIB2ADDEH): Remove.
11889 * system.h (MD_FROB_UPDATE_CONTEXT): Poison.
11891 2011-08-05 H.J. Lu <hongjiu.lu@intel.com>
11893 * config/i386/i386.c (processor_alias_table): Add core-avx-i.
11895 * doc/invoke.texi: Document core-avx-i.
11897 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11899 * tsystem.h (CONST_CAST2, CONST_CAST): Define.
11901 2011-08-05 Ira Rosen <ira.rosen@linaro.org>
11903 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use the
11904 result of multiple results reduction when extracting the final
11905 value using scalar code.
11907 2011-08-05 Richard Guenther <rguenther@suse.de>
11909 PR tree-optimization/49984
11910 * tree-vrp.c (extract_range_from_binary_expr_1): Handle BIT_XOR_EXPR.
11912 2011-08-05 Richard Guenther <rguenther@suse.de>
11914 * tree-vrp.c (zero_nonzero_bits_from_vr): Make sure to always
11915 return true for constant integer ranges.
11916 (extract_range_from_binary_expr_1): Simplify BIT_AND_EXPR and
11917 BIT_IOR_EXPR handling.
11919 2011-08-04 Kai Tietz <ktietz@redhat.com>
11921 * config/i386/i386.c (setup_incoming_varargs_ms_64): Set
11922 ix86_varargs_gpr_size and ix86_varargs_fpr_size to zero.
11924 2011-08-04 Ira Rosen <ira.rosen@linaro.org>
11926 * tree-vectorizer.h (struct _stmt_vec_info): Add new field for
11927 pattern def statement, and its access macro.
11928 (NUM_PATTERNS): Set to 5.
11929 * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
11930 pattern def statement.
11931 (vect_transform_loop): Likewise.
11932 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add new
11933 function vect_recog_over_widening_pattern ().
11934 (vect_operation_fits_smaller_type): New function.
11935 (vect_recog_over_widening_pattern, vect_mark_pattern_stmts):
11937 (vect_pattern_recog_1): Move the code that marks pattern
11938 statements to vect_mark_pattern_stmts (), and call it. Update
11940 * tree-vect-stmts.c (vect_supportable_shift): New function.
11941 (vect_analyze_stmt): Handle pattern def statement.
11942 (new_stmt_vec_info): Initialize pattern def statement.
11944 2011-08-04 Richard Henderson <rth@redhat.com>
11947 * config/i386/i386.c (ix86_expand_call): Don't create nested
11948 PARALLELs for TARGET_VZEROUPPER.
11949 (ix86_split_call_vzeroupper): Fix extraction of the original call.
11950 * config/i386/i386.md (*call_rex64_ms_sysv_vzeroupper): Don't
11951 recognize nested PARALLELs.
11952 (*call_pop_vzeroupper, *sibcall_pop_vzeroupper,
11953 *call_value_rex64_ms_sysv_vzeroupper, *call_value_pop_vzeroupper,
11954 *sibcall_value_pop_vzeroupper): Likewise.
11956 2011-08-04 Richard Henderson <rth@redhat.com>
11958 PR middle-end/49968
11959 * calls.c (expand_call): Use fixup_args_size_notes for
11960 emit_stack_restore.
11961 * expr.c (fixup_args_size_notes): Allow STACK_POINTER_REGNUM sets
11962 in non-standard modes.
11964 2011-08-04 Jakub Jelinek <jakub@redhat.com>
11966 * gcc.c (self_spec): New variable.
11967 (static_specs): Add self_spec.
11968 (main): Call do_self_spec on "self_spec" specs after reading
11969 user specs files. Move compare_debug handling right after that.
11971 2011-08-04 Richard Guenther <rguenther@suse.de>
11973 * tree-vrp.c (vrp_expr_computes_nonnegative): Remove.
11974 (value_range_nonnegative_p): New function.
11975 (ssa_name_nonnegative_p): Use it.
11976 (value_range_constant_singleton): New function.
11977 (op_with_constant_singleton_value_range): Use it.
11978 (extract_range_from_binary_expr_1): New function, split out from ...
11979 (extract_range_from_binary_expr): ... this. Remove fallback
11980 constant folding done here.
11982 2011-08-04 Richard Guenther <rguenther@suse.de>
11984 PR tree-optimization/49806
11985 * tree-vrp.c (op_with_boolean_value_range_p): New function.
11986 (simplify_truth_ops_using_ranges): Simplify. Allow inserting
11987 a new statement for a final conversion to bool.
11989 2011-08-04 Romain Geissler <romain.geissler@gmail.com>
11991 * gengtype-state.c: Include "bconfig.h" if
11992 GENERATOR_FILE is defined, "config.h" otherwise.
11993 * gengtype.c: Likewise.
11994 * gengtype-lex.l: Likewise.
11995 * gengtype-parse.c: Likewise.
11996 * Makefile.in (gengtype-lex.o-warn): New variable.
11997 (plugin_resourcesdir): Likewise.
11998 (plugin_bindir): Likewise.
11999 (plugin_includedir): Use $(plugin_resourcesdir) as prefix base.
12000 (MOSTLYCLEANFILES): Add gengtype$(exeext).
12001 (native): Depend on gengtype$(exeext) is $enable_plugin
12003 (gtype.state): Depend on s-gtype. Use temporary file.
12004 (gengtype-lex.o): New rule.
12005 (gengtype-parse.o): Likewise.
12006 (gengtype-state.o): Likewise.
12007 (gengtype$(exeext)): Likewise.
12008 (install-gengtype): Likewise.
12009 (gengtype.o): Likewise.
12010 (build/gengtype.o): Depend on version.h.
12011 (build/gengtype-state): Depend on double-int.h, version.h,
12012 $(HASHTAB_H), $(OBSTACK_H), $(XREGEX_H) and build/errors.o.
12013 (install-plugin): Depend on install-gengtype.
12015 2011-08-04 Jakub Jelinek <jakub@redhat.com>
12017 PR middle-end/49905
12018 * tree.h (init_attributes): New prototype.
12019 * attribs.c (init_attributes): No longer static.
12021 2011-08-04 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
12023 * config/arm/arm.c (arm_set_fixed_optab_libfunc): Constify
12026 2011-08-03 David Li <davidxl@google.com>
12028 * tree-optimize.c (execute_fixup_cfg): Fix up entry
12029 outgoing edge counts after inlining.
12031 2011-08-03 David Li <davidxl@google.com>
12033 * profile.c (compute_branch_probabilities): Compute
12034 function frequency after profile annotation.
12036 2011-08-04 Alan Modra <amodra@gmail.com>
12038 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Simplify
12039 use_backchain_to_restore_sp initialisation.
12040 (rs6000_legitimate_offset_address_p): Simplify offset test.
12042 2011-08-03 Richard Henderson <rth@redhat.com>
12044 * config/spu/spu.md: Use define_c_enum instead of define_constants.
12045 (UNSPECV_BLOCKAGE, UNSPECV_LNOP, UNSPECV_SYNC): Rename from UNSPEC_*.
12046 (UNSPECV_NOP): New.
12048 2011-08-03 Richard Henderson <rth@redhat.com>
12051 * config/avr/avr.md: New splitter for REG_ARGS_SIZE 0.
12053 2011-08-03 Jakub Jelinek <jakub@redhat.com>
12055 PR tree-optimization/49948
12056 * gimple.c (walk_stmt_load_store_addr_ops): Walk CONSTRUCTOR elements.
12058 2011-08-03 Anatoly Sokolov <aesok@post.ru>
12060 * config/m32c/m32c.c (class_sizes): Remove.
12061 (reduce_class): Change arguments and return type to reg_class_t.
12062 Change type cc var to HARD_REG_SET. Change type best var to
12063 reg_class_t. Change type best_size var to unsigned int. Remove
12064 initialization class_sizes var. Use reg_class_size array instead
12065 of class_sizes. Use reg_class_contents array instead
12068 2011-08-03 Richard Guenther <rguenther@suse.de>
12070 PR middle-end/49958
12071 * fold-const.c (fold_binary_loc): Only associate
12072 (+ (+ (* a b) c) (* d e)) as (+ (+ (* a b) (* d e)) c) if
12075 2011-08-03 Alan Modra <amodra@gmail.com>
12077 PR rtl-optimization/49941
12078 * jump.c (mark_jump_label): Comment.
12079 (mark_jump_label_1): Set JUMP_LABEL for return jumps.
12080 * emit-rtl.c (copy_rtx_if_shared_1, copy_insn_1): Leave RETURN shared.
12081 (mark_used_flags): Don't mark RETURN.
12083 2011-08-03 Richard Guenther <rguenther@suse.de>
12085 PR tree-optimization/49938
12086 * tree-scalar-evolution.c (interpret_loop_phi): Gracefully
12087 deal with a POLYNOMIAL_CHREC.
12089 2011-08-03 Revital Eres <revital.eres@linaro.org>
12091 * modulo-sched.c (calculate_stage_count,
12092 calculate_must_precede_follow, get_sched_window,
12093 try_scheduling_node_in_cycle, remove_node_from_ps): Add
12095 (update_node_sched_params, set_must_precede_follow, optimize_sc):
12097 (reset_sched_times): Call update_node_sched_params.
12098 (sms_schedule): Call optimize_sc.
12099 (get_sched_window): Change function arguments.
12100 (sms_schedule_by_order): Update call to get_sched_window.
12101 Call set_must_precede_follow.
12102 (calculate_stage_count): Add function argument.
12104 2011-08-02 Richard Henderson <rth@redhat.com>
12108 * reg-notes.def (REG_ARGS_SIZE): New.
12109 * calls.c (emit_call_1): Emit REG_ARGS_SIZE for call_pop.
12110 (expand_call): Add REG_ARGS_SIZE to emit_stack_restore.
12111 * cfgcleanup.c (old_insns_match_p): Don't allow cross-jumping to
12112 different stack levels.
12113 * combine-stack-adj.c (adjust_frame_related_expr): Remove.
12114 (maybe_move_args_size_note): New.
12115 (combine_stack_adjustments_for_block): Use it.
12116 * combine.c (distribute_notes): Place REG_ARGS_SIZE.
12117 * dwarf2cfi.c (dw_cfi_row_struct): Remove args_size member.
12118 (dw_trace_info): Add beg_true_args_size, end_true_args_size,
12119 beg_delay_args_size, end_delay_args_size, eh_head, args_size_undefined.
12121 (queued_args_size): Remove.
12122 (add_cfi_args_size): Assert size is non-negative.
12123 (stack_adjust_offset, dwarf2out_args_size): Remove.
12124 (dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust): Remove.
12125 (notice_args_size, notice_eh_throw): New.
12126 (dwarf2out_frame_debug_def_cfa): Use cur_cfa.
12127 (dwarf2out_frame_debug_adjust_cfa): Likewise.
12128 (dwarf2out_frame_debug_cfa_offset): Likewise.
12129 (dwarf2out_frame_debug_expr): Likewise. Don't stack_adjust_offset.
12130 (dwarf2out_frame_debug): Don't handle non-frame-related-p insns.
12131 (change_cfi_row): Don't emit args_size.
12132 (maybe_record_trace_start_abnormal): Split out from ...
12133 (maybe_record_trace_start): Here. Set args_size_undefined.
12134 (create_trace_edges): Update to match.
12135 (scan_trace): Handle REG_ARGS_SIZE.
12136 (connect_traces): Connect args_size between EH insns.
12137 * emit-rtl.c (try_split): Handle REG_ARGS_SIZE.
12138 * explow.c (suppress_reg_args_size): New.
12139 (adjust_stack_1): Split out from ...
12140 (adjust_stack): ... here.
12141 (anti_adjust_stack): Use it.
12142 (allocate_dynamic_stack_space): Suppress REG_ARGS_SIZE.
12143 * expr.c (mem_autoinc_base): New.
12144 (fixup_args_size_notes): New.
12145 (emit_single_push_insn_1): Rename from emit_single_push_insn.
12146 (emit_single_push_insn): New. Generate REG_ARGS_SIZE.
12147 * recog.c (peep2_attempt): Handle REG_ARGS_SIZE.
12148 * reload1.c (reload_as_needed): Likewise.
12149 * rtl.h (fixup_args_size_notes): Declare.
12151 2011-08-02 Paolo Carlini <paolo.carlini@oracle.com>
12154 * fold-const.c (fold_plusminus_mult_expr): Use abs_hwi instead
12156 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
12157 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Likewise.
12159 2011-08-02 Richard Henderson <rth@redhat.com>
12161 * config/h8300/h8300.c (push, pop): Return the insn.
12162 (h8300_swap_into_er6): Generate correct unwind info.
12163 (h8300_swap_out_of_er6): Likewise.
12164 * dwarf2cfi.c (def_cfa_1): Clear cfa_cfi if we no longer have a
12165 complex cfa expression.
12166 (dwarf2out_frame_debug_def_cfa): Allow (plus (mem) (const_int)) too.
12168 2011-08-02 H.J. Lu <hongjiu.lu@intel.com>
12170 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
12172 2011-08-02 Richard Henderson <rth@redhat.com>
12175 * config/h8300/h8300.c (h8300_move_ok): New.
12176 * config/h8300/h8300-protos.h: Declare it.
12177 * config/h8300/h8300.md (P): New mode iterator.
12178 (*movqi_h8300, *movqi_h8300hs, movqi): Use h8300_move_ok.
12179 (*movqi_h8sx, *movhi_h8300, *movhi_h8300hs, movhi): Likewise.
12180 (movsi, *movsi_h8300, *movsi_h8300hs): Likewise.
12181 (*pushqi1_h8300): Rename from pushqi1_h8300; use PRE_MODIFY.
12182 (*pushqi1_h8300hs_<P>): Macroize from pushqi1_h8300hs_advanced
12183 and pushqi1_h8300hs_normal; use PRE_MODIFY and
12184 register_no_sp_elim_operand.
12185 (*pushhi1_h8300hs_<P>): Similarly.
12186 (pushqi1, pushhi1, pushhi1_h8300): Remove.
12187 * config/h8300/predicates.md (register_no_sp_elim_operand): New.
12189 2011-08-02 Richard Henderson <rth@redhat.com>
12192 * config/avr/avr.md (push<MPUSH>1): Don't constrain the operand.
12194 2011-08-02 Jakub Jelinek <jakub@redhat.com>
12196 * c-parser.c (enum c_parser_prec): New enum, moved from within
12197 c_parser_binary_expression.
12198 (c_parser_binary_expression): Add PREC argument. Stop parsing
12199 if operator has lower or equal precedence than PREC.
12200 (c_parser_conditional_expression, c_parser_omp_for_loop): Adjust
12202 (c_parser_omp_atomic): Handle parsing OpenMP 3.1 atomics.
12203 Adjust c_finish_omp_atomic caller.
12204 (c_parser_omp_taskyield): New function.
12205 (c_parser_pragma): Handle PRAGMA_OMP_TASKYIELD.
12206 (c_parser_omp_clause_name): Handle final and mergeable clauses.
12207 (c_parser_omp_clause_final, c_parser_omp_clause_mergeable): New
12209 (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_FINAL
12210 and PRAGMA_OMP_CLAUSE_MERGEABLE.
12211 (OMP_TASK_CLAUSE_MASK): Allow final and mergeable clauses.
12212 (c_parser_omp_clause_reduction): Handle min and max.
12213 * c-typeck.c (c_finish_omp_clauses): Don't complain about
12214 const qualified predetermined vars in firstprivate clause.
12215 andle OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
12216 Handle MIN_EXPR and MAX_EXPR.
12217 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_FINAL
12218 and OMP_CLAUSE_MERGEABLE.
12219 (dump_generic_node): Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD
12220 and OMP_ATOMIC_CAPTURE_NEW.
12221 * tree.c (omp_clause_num_ops): Add OMP_CLAUSE_FINAL and
12222 OMP_CLAUSE_MERGEABLE.
12223 (omp_clause_code_name): Likewise.
12224 (walk_tree_1): Handle OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
12225 * tree.h (enum omp_clause_code): Add OMP_CLAUSE_FINAL
12226 and OMP_CLAUSE_MERGEABLE.
12227 (OMP_CLAUSE_FINAL_EXPR): Define.
12228 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE_FINAL and
12229 OMP_CLAUSE_MERGEABLE.
12230 (expand_task_call): Likewise.
12231 (expand_omp_atomic_load, expand_omp_atomic_store): New functions.
12232 (expand_omp_atomic_fetch_op): Handle cases where old or new
12233 value is needed afterwards.
12234 (expand_omp_atomic): Call expand_omp_atomic_load resp.
12235 expand_omp_atomic_store.
12236 * gimplify.c (gimplify_omp_atomic, gimplify_expr): Handle
12237 OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and OMP_ATOMIC_CAPTURE_NEW.
12238 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
12239 OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
12240 * tree-nested.c (convert_nonlocal_omp_clauses,
12241 convert_local_omp_clauses): Likewise.
12242 * tree.def (OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD,
12243 OMP_ATOMIC_CAPTURE_NEW): New.
12244 * gimple.h (GF_OMP_ATOMIC_NEED_VALUE): New.
12245 (gimple_omp_atomic_need_value_p, gimple_omp_atomic_set_need_value):
12247 * omp-builtins.def (BUILT_IN_GOMP_TASKYIELD): New builtin.
12248 * doc/generic.texi: Mention OMP_CLAUSE_COLLAPSE,
12249 OMP_CLAUSE_UNTIED, OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
12251 2011-08-02 Kai Tietz <ktietz@redhat.com>
12253 * gimple.c (canonicalize_cond_expr_cond): Handle cast from
12255 (ssa_forward_propagate_and_combine): Interprete result of
12256 forward_propagate_comparison.
12257 * gcc/gimple-fold.c (fold_gimple_assign): Add canonicalization for
12258 boolean-typed operands for comparisons.
12260 2011-08-02 Georg-Johann Lay <avr@gjlay.de>
12262 * config/avr/libgcc.S: Gather related function in the
12263 same input section.
12264 (__mulqihi3, __mulqihi3, __divmodqi4, __divmodhi4, __udivmodsi4,
12265 __divmodsi4): Use XCALL/XJMP instead of rcall/rjmp for external
12267 (__udivmodqi4, __divmodqi4, __udivmodhi4, __divmodhi4,
12268 __udivmodsi4, __divmodsi4, __prologue_saves__,
12269 __epilogue_restores__, _exit, __tablejump2__, __tablejump__,
12270 __do_copy_data, __do_clear_bss, __do_global_ctors,
12271 __do_global_dtors, __tablejump_elpm__): Enclose in DEFUN/ENDF.
12273 2011-08-02 Uros Bizjak <ubizjak@gmail.com>
12276 * doc/md.texi (stack_protect_set): The pattern moves ptr_mode value.
12277 (stack_protect_test): The pattern compares ptr_mode value.
12279 2011-08-02 Alan Modra <amodra@gmail.com>
12281 * config/rs6000/rs6000.c (rs6000_emit_prologue): Add REG_CFA_RESTORE
12282 note for save_LR_around_toc_setup sequence.
12284 2011-08-01 H.J. Lu <hongjiu.lu@intel.com>
12286 * config/i386/lzcntintrin.h (__lzcnt64): Replace long with long long.
12288 2011-08-01 Sebastian Pop <sebastian.pop@amd.com>
12289 Joseph Myers <joseph@codesourcery.com>
12291 * Makefile.in (hwint.o): Depend on DIAGNOSTIC_CORE_H.
12292 * hwint.c: Include diagnostic-core.h.
12294 (gcd): Moved here...
12295 (pos_mul_hwi): New.
12297 (least_common_multiple): Moved here...
12298 * hwint.h (gcd): ... from here.
12299 (least_common_multiple): ... from here.
12300 (HOST_WIDE_INT_MIN): New.
12301 (HOST_WIDE_INT_MAX): New.
12302 (abs_hwi): Declared.
12304 (pos_mul_hwi): Declared.
12305 (mul_hwi): Declared.
12306 (least_common_multiple): Declared.
12307 * omega.c (check_pos_mul): Removed.
12308 (check_mul): Removed.
12309 (omega_solve_geq): Use pos_mul_hwi instead of check_pos_mul and
12310 mul_hwi instead of check_mul.
12312 2011-08-01 Richard Henderson <rth@redhat.com>
12315 * config/avr/avr.h (PUSH_ROUNDING): New.
12316 * config/avr/avr.md (pushqi1): Rename from *pushqi.
12317 (*pushhi, *pushsi, *pushsf): Remove.
12318 (MPUSH): New mode iterator.
12319 (push<MPUSH>1): New expander.
12321 2011-08-01 Anatoly Sokolov <aesok@post.ru>
12323 * config/mmix/mmix.h (PREFERRED_RELOAD_CLASS,
12324 PREFERRED_OUTPUT_RELOAD_CLASS): Remove macro.
12325 * config/mmix/mmix-protos.h (mmix_preferred_reload_class,
12326 mmix_preferred_output_reload_class): Remove.
12327 * config/mmix/mmix.c (mmix_preferred_reload_class,
12328 mmix_preferred_output_reload_class): Make static. Change rclass
12329 argument and return type to reg_class_t.
12330 (TARGET_PREFERRED_RELOAD_CLASS,
12331 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
12333 2011-08-01 Joern Rennecke <joern.rennecke@embecosm.com>
12335 * mode-switching.c (optimize_mode_switching): Fix bug in MODE_AFTER
12338 2011-08-01 H.J. Lu <hongjiu.lu@intel.com>
12341 * config/i386/i386.md (PTR): New.
12342 (stack_protect_set: Check TARGET_LP64 instead of TARGET_64BIT.
12343 (stack_protect_test): Likewise.
12344 (stack_protect_set_<mode>): Replace ":P" with ":PTR".
12345 (stack_tls_protect_set_<mode>): Likewise.
12346 (stack_tls_protect_test_<mode>): Likewise.
12348 2011-08-01 Uros Bizjak <ubizjak@gmail.com>
12351 * config/i386/i386.c (ix86_address_subreg_operand): New.
12352 (ix86_decompose_address): Use ix86_address_subreg_operand.
12353 (ix86_legitimate_address_p): Do not assert that subregs satisfy
12354 register_no_elim_operand in DImode.
12356 2011-08-01 Ira Rosen <ira.rosen@linaro.org>
12358 PR tree-optimization/49926
12359 * tree-vect-loop.c (vect_is_slp_reduction): Check that a statement
12360 in a chain doesn't have uses both inside and outside the loop.
12362 2011-08-01 Georg-Johann Lay <avr@gjlay.de>
12364 * config/avr/avr.h (mcu_type_s): Add errata_skip field.
12365 * config/avr/avr-devices.c (avr_mcu_types): Use it.
12366 * config/avr/avr-mcus.def (AVR_MCU): Use it.
12367 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use it to builtin
12368 define __AVR_ERRATA_SKIP__ and __AVR_ERRATA_SKIP_JMP_CALL__.
12369 * config/avr/libgcc.S (__mulshisi3, __ffshi2, __fmulsu_exit):
12370 Use __AVR_ERRATA_SKIP_JMP_CALL__ instead of __AVR_HAVE_JMP_CALL__
12371 to detect if XJMP must not be skipped.
12373 2011-08-02 Alan Modra <amodra@gmail.com>
12375 * config/rs6000/rs6000-protos.h (rs6000_save_toc_in_prologue_p):
12377 * config/rs6000/rs6000.c (rs6000_save_toc_in_prologue_p): Make static.
12378 (rs6000_emit_prologue): Don't prematurely return when
12379 TARGET_SINGLE_PIC_BASE. Don't emit eh_frame info in
12380 save_toc_in_prologue case.
12381 (rs6000_call_indirect_aix): Only disallow save_toc_in_prologue for
12384 2011-08-01 Georg-Johann Lay <avr@gjlay.de>
12386 * config/avr/avr-devices.c: Delete SVN property svn:executable.
12387 * config/avr/predicates.md: Ditto.
12388 * config/avr/driver-avr.c: Ditto.
12389 * config/avr/genopt.sh: Set SVN property svn:executable to *.
12391 2011-08-01 H.J. Lu <hongjiu.lu@intel.com>
12393 * calls.c (emit_library_call_value_1): Declare size only if
12394 BLOCK_REG_PADDING is defined.
12396 2011-08-01 Kirill Yukhin <kirill.yukhin@intel.com>
12399 * config.gcc (i[34567]86-*-*): Replace abmintrin.h with lzcntintrin.h.
12400 (x86_64-*-*): Likewise.
12401 * config/i386/i386.opt (mlzcnt): New.
12402 * config/i386/abmintrin.h: File removed.
12403 (__lzcnt_u16, __lzcnt, __lzcnt_u64): Moved to ...
12404 * config/i386/lzcntintrin.h: ... here. New file.
12405 (__lzcnt): Rename to ...
12406 (__lzcnt32): ... this.
12407 * config/i386/bmiintrin.h (head): Update copyright year.
12408 (__lzcnt_u16): Removed.
12409 (__lzcnt_u32): Likewise.
12410 (__lzcnt_u64): Likewise.
12411 * config/i386/x86intrin.h: Include lzcntintrin.h when __LZCNT__
12412 is defined, remove abmintrin.h.
12413 * config/i386/cpuid.h (bit_LZCNT): New.
12414 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
12416 * config/i386/i386-c.c (ix86_target_macros_internal): Define
12417 __LZCNT__ if needed.
12418 * config/i386/i386.c (ix86_target_string): New option -mlzcnt.
12419 (ix86_option_override_internal): Handle LZCNT option.
12420 (ix86_valid_target_attribute_inner_p): Likewise.
12421 (struct builtin_description bdesc_args) <IX86_BUILTIN_CLZS>: Update.
12422 * config/i386/i386.h (TARGET_LZCNT): New.
12423 (CLZ_DEFINED_VALUE_AT_ZERO): Update.
12424 * config/i386/i386.md (clz<mode>2): Update insn constraint.
12425 (clz<mode>2_lzcnt): Likewise.
12426 * doc/invoke.texi: Mention -mlzcnt option.
12427 * doc/extend.texi: Likewise.
12429 2011-08-01 Julian Brown <julian@codesourcery.com>
12431 * configure.ac (fixed-point): Add ARM support.
12432 * configure: Regenerate.
12433 * config/arm/arm.c (arm_fixed_mode_set): New struct.
12434 (arm_set_fixed_optab_libfunc): New.
12435 (arm_set_fixed_conv_libfunc): New.
12436 (arm_init_libfuncs): Initialise fixed-point helper libfuncs with
12437 ARM-specific names.
12438 (aapcs_libcall_value): Return sub-word-size fixed-point libcall
12439 return values in SImode.
12440 (arm_return_in_msb): Return fixed-point types in the msb.
12441 (arm_pad_reg_upwards, arm_pad_arg_upwards): Pad fixed-point types
12443 (arm_scalar_mode_supported_p): Support fixed-point modes.
12444 (arm_vector_mode_supported_p): Support vector fixed-point modes.
12445 * config/arm/arm.h (SHORT_FRACT_TYPE_SIZE, FRACT_TYPE_SIZE)
12446 (LONG_FRACT_TYPE_SIZE, LONG_LONG_FRACT_TYPE_SIZE)
12447 (SHORT_ACCUM_TYPE_SIZE, ACCUM_TYPE_SIZE, LONG_ACCUM_TYPE_SIZE)
12448 (LONG_LONG_ACCUM_TYPE_SIZE, MAX_FIXED_MODE_SIZE): Define.
12449 * config/arm/iterators.md (FIXED, ADDSUB, UQADDSUB, QADDSUB, QMUL):
12450 New mode iterators.
12451 (qaddsub_suf): New mode attribute.
12452 * config/arm/arm-modes.def (FRACT, UFRACT, ACCUM, UACCUM): Declare
12454 * config/arm/predicates.md (sat_shift_operator): New predicate.
12455 * config/arm/arm-fixed.md: New.
12456 * config/arm/arm.md: Include arm-fixed.md.
12457 * config/arm/t-arm (MD_INCLUDES): Add arm-fixed.md.
12459 2011-08-01 Julian Brown <julian@codesourcery.com>
12461 * calls.c (emit_library_call_value_1): Support padding for libcall
12462 arguments and return values.
12463 * config/arm/arm.c (arm_pad_arg_upward): Pad half-float values
12464 downwards in big-endian mode.
12466 2011-08-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12469 * config/sol2.c (solaris_code_end): Rename to solaris_file_end.
12470 * config/sol2-protos.h: Likewise.
12471 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Don't call
12473 * config/i386/sol2.h [!USE_GAS] (TARGET_ASM_FILE_END): Redefine.
12474 * config/sparc/sparc.c (sparc_file_end) [TARGET_SOLARIS]: Call
12476 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Remove.
12478 2011-08-01 Julian Brown <julian@codesourcery.com>
12480 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Support FIXED_CST.
12482 2011-08-01 Julian Brown <julian@codesourcery.com>
12484 * final.c (output_addr_const): Print fixed-point constants as
12487 2011-08-01 Richard Guenther <rguenther@suse.de>
12489 * stor-layout.c (initialize_sizetypes): Properly sign-extend
12490 bitsiztype TYPE_MAX_VALUE.
12492 2011-08-01 Julian Brown <julian@codesourcery.com>
12494 * optabs.c (prepare_cmp_insn): Use correct biasing for fixed-point
12495 comparison helpers.
12497 2011-07-31 Richard Henderson <rth@redhat.com>
12499 * config/h8300/crti.asm: Add flags to .section directive.
12500 * config/h8300/crtn.asm: Likewise.
12502 2011-07-31 Richard Henderson <rth@redhat.com>
12504 * stor-layout.c (initialize_sizetypes): Handle unsigned short.
12505 * tree.c (build_common_tree_nodes): Likewise.
12507 2011-07-31 Kaz Kojima <kkojima@gcc.gnu.org>
12510 * config/sh/sh.md (udivsi3_i1): Enable for TARGET_DIVIDE_CALL_DIV1.
12511 (divsi3_i1): Likewise.
12513 2011-07-31 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12515 PR tree-optimization/49749
12516 * tree-ssa-reassoc.c (get_rank): New forward declaration.
12517 (PHI_LOOP_BIAS): New macro.
12518 (phi_rank): New function.
12519 (loop_carried_phi): Likewise.
12520 (propagate_rank): Likewise.
12521 (get_rank): Add calls to phi_rank and propagate_rank.
12523 2011-07-31 H.J. Lu <hongjiu.lu@intel.com>
12525 * config/i386/x86-64.h (SIZE_TYPE): Check TARGET_LP64 instead
12527 (PTRDIFF_TYPE): Likewise.
12529 2011-07-31 Uros Bizjak <ubizjak@gmail.com>
12532 * config/i386/i386.md (strset): Do not expand strset_singleop
12533 when %eax or $edi are fixed.
12534 (*strsetdi_rex_1): Disable when %eax or %edi are fixed.
12535 (*strsetsi_1): Ditto.
12536 (*strsethi_1): Ditto.
12537 (*strsetqi_1): Ditto.
12538 (*rep_stosdi_rex64): Disable when %eax, %ecx or %edi are fixed.
12539 (*rep_stossi): Ditto.
12540 (*rep_stosqi): Ditto.
12541 (*strlenqi_1): Ditto.
12542 (cmpstrnsi): Also fail when %ecx is fixed.
12543 (*cmpstrnqi_nz_1): Disable when %ecx, %esi or %edi are fixed.
12544 (*cmpstrnqi_1): Ditto.
12545 (*strmovdi_rex_1): Disable when %esi or %edi are fixed.
12546 (*strmovsi_1): Ditto.
12547 (*strmovhi_1): Ditto.
12548 (*strmovqi_1): Ditto.
12549 (*rep_movdi_rex64): Disable when %ecx, %esi or %edi are fixed.
12550 (*rep_movsi): Ditto.
12551 (*rep_movqi): Ditto.
12553 2011-07-31 Mikael Pettersson <mikpe@it.uu.se>
12556 * config/m68k/m68k.c (m68k_override_options_after_change): New function.
12557 Disable instruction scheduling for non-ColdFire targets.
12558 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
12560 2011-07-31 Revital Eres <revital.eres@linaro.org>
12562 * ddg.c (create_ddg_dep_from_intra_loop_link): Remove the creation
12563 of anti-dep edge from a branch.
12564 (add_cross_iteration_register_deps): Create anti-dep edge from
12567 2011-07-31 Revital Eres <revital.eres@linaro.org>
12569 * modulo-sched.c: Change comment.
12570 (reset_sched_times): Fix print message.
12571 (print_partial_schedule): Add print info.
12573 2011-07-31 Tom de Vries <tom@codesourcery.com>
12575 PR middle-end/43513
12576 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Use max of
12577 get_object_alignment and TYPE_ALIGN.
12579 2011-07-30 Tom de Vries <tom@codesourcery.com>
12581 PR middle-end/43513
12582 * tree-ssa-dce.c (ref_may_be_aliased): Add assert.
12583 (propagate_necessity): Handle WITH_SIZE_EXPR call arg.
12585 2011-07-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12587 * config/mips/driver-native.c [__sgi__]: Include <invent.h>,
12589 (cpu_types): New array.
12590 (cputype): New function.
12591 (host_detect_local_cpu): Only define buf, f if !__sgi__.
12592 Use scaninvent instead of /proc/cpuinfo if __sgi__.
12593 * config.host: Also use driver-native.o, mips/x-native on
12595 * config/mips/iris6.h [__mips__] (host_detect_local_cpu): Declare.
12596 (EXTRA_SPEC_FUNCTIONS, MARCH_MTUNE_NATIVE_SPECS): Define.
12597 (DRIVER_SELF_SPECS): Add MARCH_MTUNE_NATIVE_SPECS.
12599 2011-07-29 Jakub Jelinek <jakub@redhat.com>
12601 PR middle-end/49897
12602 PR middle-end/49898
12603 * omp-low.c (use_pointer_for_field): If disallowing copy-in/out
12604 in nested parallel and outer is a gimple_reg, mark it as addressable
12605 and set its bit in task_shared_vars bitmap too.
12607 2011-07-29 Uros Bizjak <ubizjak@gmail.com>
12609 * config/i386/predicates.md (tp_or_register_operand): Remove predicate.
12611 2011-07-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12613 * config/alpha/driver-alpha.c (IMPLVER_EV4_FAMILY,
12614 IMPLVER_EV5_FAMILY, IMPLVER_EV6_FAMILY, IMPLVER_EV7_FAMILY): Define.
12615 (AMASK_BWX, AMASK_FIX, AMASK_CIX, AMASK_MVI, AMASK_PRECISE,
12616 AMASK_LOCKPFTCHOK): Define.
12617 (host_detect_local_cpu): Remove buf, f, cpu_names.
12618 Define cpu_types, implver, amask.
12619 Use __builtin_alpha_implver, __builtin_alpha_amask to determine
12621 * config.host: Also use driver-alpha.o, alpha/x-alpha on
12623 * config/alpha/osf5.h [__alpha__ || __alpha]
12624 (host_detect_local_cpu): Declare.
12625 (EXTRA_SPEC_FUNCTIONS, MCPU_MTUNE_NATIVE_SPECS)
12626 (DRIVER_SELF_SPECS): Define.
12628 2011-07-29 Uros Bizjak <ubizjak@gmail.com>
12631 * config/i386/i386.md (*load_tp_x32): New.
12632 (*load_tp_x32_zext): Ditto.
12633 (*add_tp_x32): Ditto.
12634 (*add_tp_x32_zext): Ditto.
12635 (*load_tp_<mode>): Disable for TARGET_X32 targets.
12636 (*add_tp_<mode>): Ditto.
12637 * config/i386/i386.c (get_thread_pointer): Load thread pointer in
12638 ptr_mode and convert to Pmode if needed.
12640 2011-07-29 Georg-Johann Lay <avr@gjlay.de>
12643 * config/avr/avr.md (mulsi3, *mulsi3, mulu<mode>si3,
12644 muls<mode>si3, mulohisi3, mulhisi3, umulhisi3, usmulhisi3,
12645 *<any_extend:extend_prefix><any_extend2:extend_prefix>mul<QIHI:mode><QIHI2:mode>si3):
12646 Add X to register footprint: Clobber r26/r27.
12648 2011-07-29 Richard Guenther <rguenther@suse.de>
12650 * builtins.c (fold_builtin_signbit): Build the comparison
12651 with a proper type.
12653 2011-07-29 Richard Guenther <rguenther@suse.de>
12655 PR tree-optimization/49893
12656 * tree-predcom.c (suitable_reference_p): Volatile references
12659 2011-07-29 Georg-Johann Lay <avr@gjlay.de>
12662 * config/avr/libgcc.S (__ffshi2): Don't skip 2-word instruction.
12663 (__ctzsi2): Result for 0 may be undefined.
12664 (__ctzhi2): Result for 0 may be undefined.
12665 (__popcounthi2): Don't clobber r30. Use __popcounthi2_tail.
12666 (__popcountsi2): Ditto. And don't clobber r26.
12667 (__popcountdi2): Ditto. And don't clobber r27.
12668 * config/avr/avr.md (UNSPEC_COPYSIGN): New c_enum.
12669 (parityhi2): New expand.
12670 (paritysi2): New expand.
12671 (popcounthi2): New expand.
12672 (popcountsi2): New expand.
12673 (clzhi2): New expand.
12674 (clzsi2): New expand.
12675 (ctzhi2): New expand.
12676 (ctzsi2): New expand.
12677 (ffshi2): New expand.
12678 (ffssi2): New expand.
12679 (copysignsf3): New insn.
12680 (bswapsi2): New expand.
12681 (*parityhi2.libgcc): New insn.
12682 (*parityqihi2.libgcc): New insn.
12683 (*paritysihi2.libgcc): New insn.
12684 (*popcounthi2.libgcc): New insn.
12685 (*popcountsi2.libgcc): New insn.
12686 (*popcountqi2.libgcc): New insn.
12687 (*popcountqihi2.libgcc): New insn-and-split.
12688 (*clzhi2.libgcc): New insn.
12689 (*clzsihi2.libgcc): New insn.
12690 (*ctzhi2.libgcc): New insn.
12691 (*ctzsihi2.libgcc): New insn.
12692 (*ffshi2.libgcc): New insn.
12693 (*ffssihi2.libgcc): New insn.
12694 (*bswapsi2.libgcc): New insn.
12696 2011-07-29 Richard Guenther <rguenther@suse.de>
12698 * tree-vrp.c (get_value_range): Only set parameter default
12699 definitions to varying, leave others at undefined.
12700 (extract_range_from_binary_expr): Fix undefined handling.
12701 (vrp_visit_phi_node): Handle merged undefined state.
12703 2011-07-29 Wei Guozhi <carrot@google.com>
12705 PR rtl-optimization/49799
12706 * combine.c (make_compound_operation): Check if the bit field is valid
12707 before change it to bit field extraction.
12709 2011-07-29 Bernd Schmidt <bernds@codesourcery.com>
12711 PR rtl-optimization/49891
12712 * cfgrtl.c (force_nonfallthru_and_redirect): Set JUMP_LABEL for
12713 newly created returnjumps.
12715 2011-07-28 DJ Delorie <dj@redhat.com>
12717 * expr.c (expand_expr_addr_expr_1): Detect a user request for a
12718 local frame in a naked function, and produce a suitable error for
12719 that specific case.
12721 * config/m32c/m32c.c (m32c_secondary_reload_class): Allow PSI
12722 registers to be reloaded in HI classes when the target is HI.
12724 2011-07-28 Sebastian Pop <sebastian.pop@amd.com>
12726 * graphite-clast-to-gimple.c: Replace v1, v2, lb, ub with
12727 bound_one, bound_two.
12729 2011-07-28 Sebastian Pop <sebastian.pop@amd.com>
12731 PR middle-end/48648
12732 * graphite-clast-to-gimple.c (clast_get_body_of_loop): Handle
12734 (translate_clast): Same.
12735 (translate_clast_assignment): New.
12737 2011-07-28 Sebastian Pop <sebastian.pop@amd.com>
12739 PR tree-optimization/49876
12740 * sese.c (rename_uses): Do not return false on gloog_error: set
12741 the new_expr to integer_zero_node and continue code generation.
12742 (graphite_copy_stmts_from_block): Remove early exit on gloog_error.
12744 2011-07-28 Jakub Jelinek <jakub@redhat.com>
12747 * var-tracking.c (prepare_call_arguments): For non-MODE_INT stack
12748 arguments also check if they aren't initialized with a MODE_INT
12749 mode of the same size.
12751 2011-07-28 Aldy Hernandez <aldyh@redhat.com>
12753 * expr.c (get_bit_range): Handle *MEM_REF's.
12755 2011-07-28 Bernd Schmidt <bernds@codesourcery.com>
12757 * rtlanal.c (tablejump_p): False for returns.
12758 * reorg.c (first_active_target_insn): New static function.
12759 (find_end_label): Set JUMP_LABEL for a new returnjump.
12760 (optimize_skip, get_jump_flags, rare_destination,
12761 mostly_true_jump, get_branch_condition,
12762 steal_delay_list_from_target, own_thread_p,
12763 fill_simple_delay_slots, follow_jumps, fill_slots_from_thread,
12764 fill_eager_delay_slots, relax_delay_slots, make_return_insns,
12765 dbr_schedule): Adjust to handle ret_rtx in JUMP_LABELs.
12766 * jump.c (delete_related_insns): Likewise.
12767 (jump_to_label_p): New function.
12768 (redirect_target): New static function.
12769 (redirect_exp_1): Use it. Adjust to handle ret_rtx in JUMP_LABELS.
12770 (redirect_jump_1): Assert that the new label is nonnull.
12771 (redirect_jump): Likewise.
12772 (redirect_jump_2): Check for ANY_RETURN_P rather than NULL labels.
12773 * ifcvt.c (find_if_case_1): Take care when redirecting jumps to the
12775 (dead_or_predicable): Change NEW_DEST arg to DEST_EDGE. All callers
12776 changed. Ensure that the right label is passed to redirect_jump.
12777 * function.c (emit_return_into_block,
12778 thread_prologue_and_epilogue_insns): Ensure new returnjumps have
12779 ret_rtx in their JUMP_LABEL.
12780 * print-rtl.c (print_rtx): Handle ret_rtx in a JUMP_LABEL.
12781 * emit-rtl.c (skip_consecutive_labels): Allow the caller to
12782 pass ret_rtx as label.
12783 * cfglayout.c (fixup_reorder_chain): Use
12784 force_nonfallthru_and_redirect rather than force_nonfallthru.
12785 (duplicate_insn_chain): Copy JUMP_LABELs for returns.
12786 * rtl.h (ANY_RETURN_P): New macro.
12787 (jump_to_label_p): Declare.
12788 * resource.c (find_dead_or_set_registers): Handle ret_rtx in
12790 (mark_target_live_regs): Likewise.
12791 * basic-block.h (force_nonfallthru_and_redirect): Declare.
12792 * cfgrtl.c (force_nonfallthru_and_redirect): No longer static.
12793 * config/alpha/alpha.c (alpha_tablejump_addr_vec,
12794 alpha_tablejump_best_label): Remove functions.
12795 * config/alpha/alpha-protos.c (alpha_tablejump_addr_vec,
12796 alpha_tablejump_best_label): Remove declarations.
12797 * config/sh/sh.c (barrier_align, split_branches): Adjust for
12798 ret_rtx in JUMP_LABELs.
12799 * config/arm/arm.c (is_jump_table): Likewise.
12801 2011-07-28 Uros Bizjak <ubizjak@gmail.com>
12803 * config/i386/predicates.md (pic_32bit_opreand): Do not define as
12804 special predicate. Remove explicit mode checks.
12806 2011-07-28 Jakub Jelinek <jakub@redhat.com>
12808 * dwarf2out.c (resolve_addr): For -gdwarf-2 don't optimize
12809 DW_AT_data_member_location containing just DW_OP_plus_uconst.
12812 * dwarf2out.c (size_of_die, value_format, output_die): Use
12813 DW_FORM_udata instead of DW_FORM_data[48] for
12814 dw_val_class_unsigned_const DW_AT_data_member_location for DWARF 3.
12816 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
12818 * config/i386/i386.md (*tls_global_dynamic_64): Update
12821 2011-07-28 Uros Bizjak <ubizjak@gmail.com>
12824 * config/i386/i386.md (*tls_global_dynamic_64): Remove mode from
12825 tls_symbolic_operand check. Update code sequence for TARGET_X32.
12826 (tls_global_dynamic_64): Remove mode from tls_symbolic_operand check.
12827 (tls_dynamic_gnu2_64): Ditto.
12828 (*tls_dynamic_gnu2_lea_64): Ditto.
12829 (*tls_dynamic_gnu2_call_64): Ditto.
12830 (*tls_dynamic_gnu2_combine_64): Ditto.
12832 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
12834 * config.gcc: Set need_64bit_hwint to yes for x86 targets.
12836 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
12839 * config/i386/i386.md (strlen<mode>): Replace SWI48x with P.
12841 2011-07-28 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
12843 * config/arm/vfp.md ("*movdf_vfp"): Handle the VFP constraints
12844 before the core constraints. Adjust attributes.
12845 ("*thumb2_movdf_vfp"): Likewise.
12847 2011-07-28 Kai Tietz <ktietz@redhat.com>
12849 * tree-vrp.c (simplify_stmt_using_ranges): Remove TRUTH_NOT_EXPR case.
12850 (simplify_truth_ops_using_ranges): Likewise.
12851 (build_assert_expr_for): Likewise.
12852 (build_assert_expr_for_1): Remove TRUTH_NOT_EXPR case
12853 and handle BIT_NOT_EXPR for truth-operation.
12855 2011-07-28 Georg-Johann Lay <avr@gjlay.de>
12858 Undo r176835 from trunk
12859 2011-07-27 Georg-Johann Lay
12861 2011-07-28 Georg-Johann Lay <avr@gjlay.de>
12864 * config/avr/t-avr (LIB1ASMFUNCS): Remove _xmulhisi3_exit.
12865 Add _muluhisi3, _mulshisi3, _usmulhisi3.
12866 * config/avr/libgcc.S (__mulsi3): Rewrite.
12867 (__mulhisi3): Rewrite.
12868 (__umulhisi3): Rewrite.
12869 (__usmulhisi3): New.
12870 (__muluhisi3): New.
12871 (__mulshisi3): New.
12872 (__mulohisi3): New.
12873 (__mulqi3, __mulqihi3, __umulqihi3, __mulhi3): Use DEFUN/ENDF to
12875 * config/avr/predicates.md (pseudo_register_operand): Rewrite.
12876 (pseudo_register_or_const_int_operand): New.
12877 (combine_pseudo_register_operand): New.
12878 (u16_operand): New.
12879 (s16_operand): New.
12880 (o16_operand): New.
12881 * config/avr/avr.c (avr_rtx_costs): Handle costs for mult:SI.
12882 * config/avr/avr.md (QIHI, QIHI2): New mode iterators.
12883 (any_extend, any_extend2): New code iterators.
12884 (extend_prefix): New code attribute.
12885 (mulsi3): Rewrite. Turn insn to expander.
12887 (umulhisi3): Ditto.
12888 (usmulhisi3): New expander.
12889 (*mulsi3): New insn-and-split.
12890 (mulu<mode>si3): New insn-and-split.
12891 (muls<mode>si3): New insn-and-split.
12892 (mulohisi3): New insn-and-split.
12893 (*uumulqihisi3, *uumulhiqisi3, *uumulhihisi3, *uumulqiqisi3,
12894 *usmulqihisi3, *usmulhiqisi3, *usmulhihisi3, *usmulqiqisi3,
12895 *sumulqihisi3, *sumulhiqisi3, *sumulhihisi3, *sumulqiqisi3,
12896 *ssmulqihisi3, *ssmulhiqisi3, *ssmulhihisi3, *ssmulqiqisi3): New
12898 (*mulsi3_call): Rewrite.
12899 (*mulhisi3_call): Rewrite.
12900 (*umulhisi3_call): Rewrite.
12901 (*usmulhisi3_call): New insn.
12902 (*muluhisi3_call): New insn.
12903 (*mulshisi3_call): New insn.
12904 (*mulohisi3_call): New insn.
12905 (extendqihi2): Use combine_pseudo_register_operand as predicate
12907 (extendqisi2): Ditto.
12908 (zero_extendqihi2): Ditto.
12909 (zero_extendqisi2): Ditto.
12910 (zero_extendhisi2): Ditto.
12911 (extendhisi2): Ditto. Don't early-clobber operand 0.
12913 2011-07-28 Uros Bizjak <ubizjak@gmail.com>
12915 * config/i386/i386.c (add->lea splitter): Add SWI mode to PLUS RTX.
12917 2011-07-27 Sebastian Pop <sebastian.pop@amd.com>
12919 PR tree-optimization/49471
12920 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Build an unsigned
12921 iv only when the largest type is unsigned. Do not call
12922 lang_hooks.types.type_for_size.
12924 2011-07-27 Sebastian Pop <sebastian.pop@amd.com>
12926 PR middle-end/45450
12927 * graphite-poly.c (apply_poly_transforms): Disable legality check
12928 after an openscop read.
12930 2011-07-27 Sebastian Pop <sebastian.pop@amd.com>
12932 PR middle-end/47691
12933 * graphite-clast-to-gimple.c (translate_clast_user): Update use of
12934 copy_bb_and_scalar_dependences.
12935 * sese.c (rename_uses): Do not call gcc_assert. Set gloog_error.
12936 (graphite_copy_stmts_from_block): Update call to rename_uses.
12937 (copy_bb_and_scalar_dependences): Update call to
12938 graphite_copy_stmts_from_block.
12939 * sese.h (copy_bb_and_scalar_dependences): Update declaration.
12941 2011-07-27 Georg-Johann Lay <avr@gjlay.de>
12944 * config/avr/libgcc.S (__ffshi2): Don't skip 2-word instruction.
12945 (__ctzsi2): Result for 0 may be undefined.
12946 (__ctzhi2): Result for 0 may be undefined.
12947 (__popcounthi2): Don't clobber r30. Use __popcounthi2_tail.
12948 (__popcountsi2): Ditto. And don't clobber r26.
12949 (__popcountdi2): Ditto. And don't clobber r27.
12950 * config/avr/avr.md (UNSPEC_COPYSIGN): New c_enum.
12951 (parityhi2): New expand.
12952 (paritysi2): New expand.
12953 (popcounthi2): New expand.
12954 (popcountsi2): New expand.
12955 (clzhi2): New expand.
12956 (clzsi2): New expand.
12957 (ctzhi2): New expand.
12958 (ctzsi2): New expand.
12959 (ffshi2): New expand.
12960 (ffssi2): New expand.
12961 (copysignsf3): New insn.
12962 (bswapsi2): New expand.
12963 (*parityhi2.libgcc): New insn.
12964 (*parityqihi2.libgcc): New insn.
12965 (*paritysihi2.libgcc): New insn.
12966 (*popcounthi2.libgcc): New insn.
12967 (*popcountsi2.libgcc): New insn.
12968 (*popcountqi2.libgcc): New insn.
12969 (*popcountqihi2.libgcc): New insn-and-split.
12970 (*clzhi2.libgcc): New insn.
12971 (*clzsihi2.libgcc): New insn.
12972 (*ctzhi2.libgcc): New insn.
12973 (*ctzsihi2.libgcc): New insn.
12974 (*ffshi2.libgcc): New insn.
12975 (*ffssihi2.libgcc): New insn.
12976 (*bswapsi2.libgcc): New insn.
12978 2011-07-27 Uros Bizjak <ubizjak@gmail.com>
12980 * config/i386/i386.c (ix86_expand_move): Do not explicitly check
12981 the mode of symbolic_opreand RTXes.
12983 2011-07-27 Uros Bizjak <ubizjak@gmail.com>
12985 * config/i386/predicates.md (x86_64_movabs_operand): Return false
12986 for pic_32bit_operand RTXes.
12987 * config/i386/i386.c (ix86_expand_move): Check x86_64_movabs_operand
12990 2011-07-27 Kai Tietz <ktietz@redhat.com>
12992 * config/i386/i386.c (ix86_option_override_internal): Allow -mabi
12994 (ix86_handle_abi_attribute): Allow function attributes
12995 ms_abi/sysv_abi in 32-bit mode, too.
12996 * doc/extend.texi: Adjust attribute documentation.
12998 * gimple-fold.c (or_comparisons_1): Remove TRUTH_AND/OR
12999 expression handling.
13000 (and_var_with_comparison_1): Likewise.
13002 2011-07-27 Aldy Hernandez <aldyh@redhat.com>
13004 * params.h (ALLOW_STORE_DATA_RACES): New.
13005 * params.def (PARAM_ALLOW_STORE_DATA_RACES): New.
13006 * Makefile.in (expr.o): Depend on PARAMS_H.
13007 * machmode.h (get_best_mode): Add argument.
13008 * fold-const.c (optimize_bit_field_compare): Add argument to
13010 (fold_truthop): Same.
13011 * ifcvt.c (noce_emit_move_insn): Add argument to store_bit_field.
13012 * expr.c (emit_group_store): Same.
13013 (copy_blkmode_from_reg): Same.
13014 (write_complex_part): Same.
13015 (optimize_bitfield_assignment_op): Add argument.
13016 Add argument to get_best_mode.
13017 (get_bit_range): New.
13018 (expand_assignment): Calculate maxbits and pass it down accordingly.
13019 (store_field): New argument.
13020 (expand_expr_real_2): New argument to store_field. Include params.h.
13021 * expr.h (store_bit_field): New argument.
13022 * stor-layout.c (get_best_mode): Restrict mode expansion by taking
13023 into account maxbits.
13024 * calls.c (store_unaligned_arguments_into_pseudos): New argument
13025 to store_bit_field.
13026 * expmed.c (store_bit_field_1): New argument. Use it.
13027 (store_bit_field): Same.
13028 (store_fixed_bit_field): Same.
13029 (store_split_bit_field): Same.
13030 (extract_bit_field_1): Pass new argument to get_best_mode.
13031 (extract_bit_field): Same.
13032 * stmt.c (store_bit_field): Pass new argument to store_bit_field.
13033 * doc/invoke.texi: Document parameter allow-store-data-races.
13035 2011-07-27 Jakub Jelinek <jakub@redhat.com>
13037 * dwarf2out.c (gen_producer_string): Ignore also -fverbose-asm option.
13039 2011-07-27 Kai Tietz <ktietz@redhat.com>
13041 * tree-vrp.c (extract_range_from_binary_expr): Remove
13042 TRUTH-binary cases and add new bitwise-cases.
13043 (extract_range_from_assignment): Likewise.
13044 (register_edge_assert_for_1): Likeiwise.
13045 (register_edge_assert_for): Likewise.
13046 (simplify_truth_ops_using_ranges): Likewise.
13047 (simplify_stmt_using_ranges): Likewise.
13049 2011-07-26 H.J. Lu <hongjiu.lu@intel.com>
13052 * config/i386/i386.c (ix86_delegitimize_address): Call
13053 simplify_gen_subreg for PIC with mode of x only if modes of
13054 x and orig_x are different.
13056 2011-07-26 Jakub Jelinek <jakub@redhat.com>
13058 * dwarf2out.c (output_macinfo_op): Ensure fd->filename points
13059 to GC allocated copy of the string.
13060 (dwarf2out_finish): Emit .debug_macinfo or .debug_macro sections
13061 before .debug_line, not after it.
13063 2011-07-26 Sebastian Pop <sebastian.pop@amd.com>
13065 PR middle-end/47046
13066 * tree-chrec.h (evolution_function_is_affine_p): Recursively call
13067 evolution_function_is_affine_p on CHREC_RIGHT.
13069 2011-07-26 Sebastian Pop <sebastian.pop@amd.com>
13071 * tree-data-ref.c (max_stmt_executions_tree): Do not call
13072 lang_hooks.types.type_for_size.
13074 2011-07-26 Sebastian Pop <sebastian.pop@amd.com>
13076 PR middle-end/47653
13077 * graphite-scop-detection.c (graphite_can_represent_loop): Discard
13078 loops using wrapping semantics.
13080 2011-07-26 Sebastian Pop <sebastian.pop@amd.com>
13082 PR middle-end/48805
13083 * tree-scalar-evolution.c (instantiate_scev_r): Return
13084 chrec_dont_know for ADDR_EXPR.
13086 2011-07-26 Uros Bizjak <ubizjak@gmail.com>
13087 H.J. Lu <hongjiu.lu@intel.com>
13091 * config/i386/i386.c (ix86_expand_move): Call convert_to_mode
13092 if legitimize_tls_address returned operand in wrong mode. Allow
13093 SImode and DImode symbolic operand for PIC. Call convert_to_mode
13094 if legitimize_pic_address returned operand in wrong mode.
13096 2011-07-26 Martin Jambor <mjambor@suse.cz>
13098 * tree-sra.c (tree_non_mode_aligned_mem_p): Strip conversions and
13099 return false for invariants.
13101 2011-07-26 Uros Bizjak <ubizjak@gmail.com>
13103 * config/i386/i386.md (add->lea splitter): Implement using SWI
13104 mode iterator. Change operand 2 predicate to <nonmemory_operand>.
13105 (add->lea zext splitter): Change operand 2 predicate to
13106 x86_64_nonmemory_operand.
13108 2011-07-26 Richard Guenther <rguenther@suse.de>
13110 * predict.c (maybe_hot_frequency_p): Make sure a zero entry-block
13111 frequency makes everything hot.
13113 2011-07-26 Richard Guenther <rguenther@suse.de>
13115 PR tree-optimization/49840
13116 * tree-vrp.c (range_fits_type_p): Properly handle full
13117 double-int precision.
13119 2011-07-26 Martin Jambor <mjambor@suse.cz>
13122 * ipa-cp.c (update_profiling_info): Avoid overflow when updating
13124 (update_specialized_profile): Likewise.
13126 2011-07-26 Uros Bizjak <ubizjak@gmail.com>
13127 H.J. Lu <hongjiu.lu@intel.com>
13132 * config/i386/i386.md (i): Change SImode attribute to "e".
13133 (g): Change SImode attribute to "rme".
13134 (di): Change SImode attribute to "nF".
13135 (general_operand): Change SImode attribute to x86_64_general_operand.
13136 (general_szext_operand): Change SImode attribute to
13137 x86_64_szext_general_operand.
13138 (immediate_operand): Change SImode attribute to
13139 x86_64_immediate_operand.
13140 (nonmemory_operand): Change SImode attribute to
13141 x86_64_nonmemory_operand.
13142 (*movdi_internal_rex64): Remove mode from pic_32bit_operand check.
13143 (*movsi_internal): Ditto. Use "e" constraint in alternative 2.
13144 (*lea_1): Use SWI48 mode iterator.
13145 (*lea_1_zext): New insn pattern.
13146 (testsi_ccno_1): Use x86_64_nonmemory_operand predicate for operand 2.
13147 (*bt<mode>): Ditto.
13148 (*add<mode>1): Use x86_64_general_operand predicate for operand 2.
13149 Update operand constraints.
13150 (addsi_1_zext): Ditto.
13151 (*add<mode>2): Ditto.
13152 (*addsi_3_zext): Ditto.
13153 (*subsi_1_zext): Ditto.
13154 (*subsi_2_zext): Ditto.
13155 (*subsi_3_zext): Ditto.
13156 (*addsi3_carry_zext): Ditto.
13157 (*<plusminus_insn>si3_zext_cc_overflow): Ditto.
13158 (*mulsi3_1_zext): Ditto.
13160 (*andsi_1_zext): Ditto.
13161 (*andsi_2_zext): Ditto.
13162 (*<any_or:code>si_1_zext): Ditto.
13163 (*<any_or:code>si_2_zext): Ditto.
13164 (*test<mode>_1): Use <general_operand> predicate for operand 1.
13165 (*and<mode>_2): Ditto.
13166 (mov<mode>cc): Use <general_operand> predicate for operands 1 and 2.
13167 (add->lea splitter): Check operand modes in insn constraint. Extend
13168 operands less than SImode wide to SImode.
13169 (add->lea zext splitter): Do not extend input operands to DImode.
13170 (*lea_general_1): Handle only QImode and HImode operands.
13171 (*lea_general_2): Ditto.
13172 (*lea_general_3): Ditto.
13173 (*lea_general_1_zext): Remove.
13174 (*lea_general_2_zext): Ditto.
13175 (*lea_general_3_zext): Ditto.
13176 (*lea_general_4): Check operand modes in insn constraint. Extend
13177 operands less than SImode wide to SImode.
13178 (ashift->lea splitter): Ditto.
13179 * config/i386/i386.c (ix86_print_operand_address): Print address
13180 registers with 'q' modifier on 64bit targets.
13181 * config/i386/predicates.md (pic_32bit_opreand): Define as special
13182 predicate. Reject non-SI and non-DI modes.
13184 2011-07-25 Andrew Pinski <apinski@cavium.com>
13187 * tree-inline.c (remap_gimple_op_r): Copy TREE_THIS_VOLATILE and
13188 TREE_THIS_NOTRAP into the inner most MEM_REF.
13189 Always copy TREE_THIS_VOLATILE.
13190 * tree-sra.c (ptr_parm_has_direct_uses): Check that the lhs, rhs and
13191 arguments are not volatile references.
13193 2011-07-25 Richard Henderson <rth@redhat.com>
13195 * insn-notes.def (NOTE_INSN_CFA_RESTORE_STATE): Remove.
13196 * final.c (final_scan_insn): Don't test for it.
13197 (rest_of_clean_state): Likewise.
13199 2011-07-25 Richard Henderson <rth@redhat.com>
13202 * config/rs6000/rs6000.c (rs6000_frame_related): Return the insn.
13203 (emit_frame_save): Likewise.
13204 (rs6000_emit_prologue): Move the FRAME_RELATED_EXPR from the save
13205 insn onto a dummy blockage insn after the join label.
13207 2011-07-25 Richard Henderson <rth@redhat.com>
13209 * dwarf2cfi.c (dw_trace_info): Add ID member.
13210 (get_trace_index): Remove. Change users to use ID member.
13211 (before_next_cfi_note): New.
13212 (connect_traces): Remove unreachable traces before the main loop.
13213 Look across one trace and generate remember/restore_state if needed.
13215 2011-07-25 Richard Henderson <rth@redhat.com>
13217 * dwarf2cfi.c (dump_cfi_row, debug_cfi_row): New.
13219 2011-07-25 Joern Rennecke <joern.rennecke@embecosm.com>
13221 * genattr.c (write_upcase, gen_attr <enum definition writing>):
13223 * genattr-common.c ... here.
13224 (main): Call gen_attr.
13225 * optc-gen.awk: Make generated program include insn-attr-common.h .
13226 * Makefile.in (oprions.o): Depend on insn-attr-common.h
13228 2011-07-25 Anatoly Sokolov <aesok@post.ru>
13230 * config/m32c/m32c.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
13231 PRINT_OPERAND_PUNCT_VALID_P): Remove macro.
13232 * config/m32c/m32c-protos.h (m32c_print_operand_punct_valid_p,
13233 m32c_print_operand, m32c_print_operand_address): Remove.
13234 * config/m32c/m32c.c (m32c_print_operand_punct_valid_p): Make static.
13235 Change return type to bool. Change argument type to bool.
13236 (m32c_print_operand, m32c_print_operand_address): Make static.
13237 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS,
13238 TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
13240 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13242 * doc/sourcebuild.texi (Effective-Target Keywords, Environment
13243 attributes): Document mmap.
13245 2011-07-25 Anatoly Sokolov <aesok@post.ru>
13247 * config/mmix/mmix.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
13248 PRINT_OPERAND_PUNCT_VALID_P): Remove macro.
13249 * config/mmix/mmix-protos.h (mmix_print_operand_punct_valid_p,
13250 mmix_print_operand, mmix_print_operand_address): Remove.
13251 * config/mmix/mmix.c (mmix_print_operand_punct_valid_p): Make static.
13252 Change return type to bool. Change argument type to bool.
13253 (mmix_print_operand, mmix_print_operand_address): Make static.
13254 (mmix_intval, mmix_output_condition): Change 'x' argument type
13256 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS,
13257 TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
13259 2011-07-25 Georg-Johann Lay <avr@gjlay.de>
13262 * config/avr/avr.c (out_shift_with_cnt): Use tmp_reg as
13263 shift counter for x << x and x >> x shifts.
13265 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13268 * config.gcc: Reject *-*-solaris2 configuration.
13270 2011-07-25 Richard Sandiford <richard.sandiford@linaro.org>
13272 PR tree-optimization/49809
13273 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Use
13274 gimple_get_lhs instead of gimple_assign_lhs.
13276 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13278 * system.h [__cplusplus]: Wrap C function declarations in extern "C".
13280 2011-07-25 Richard Guenther <rguenther@suse.de>
13282 PR tree-optimization/49822
13283 * tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify
13284 more. Make sure to preserve stmts with side-effects. Properly
13285 handle virtual defs, follow a longer def chain.
13287 2011-07-22 Romain Geissler <romain.geissler@gmail.com>
13292 * Makefile.in: Do not flatten c-family directory when installing
13295 2011-07-25 Eric Botcazou <ebotcazou@adacore.com>
13297 * ipa-inline.c (can_inline_edge_p): Look into DECL_STRUCT_FUNCTION of
13298 original nodes if we are dealing with virtual clones.
13300 2011-07-25 Bernd Schmidt <bernds@codesourcery.com>
13302 * common/config/c6x/c6x-common.c: New file.
13304 2011-07-25 Roman Zhuykov <zhroma@ispras.ru>
13306 * tree-flow.h (tree_ssa_loop_version): Remove unused declaration.
13308 2011-07-25 Richard Guenther <rguenther@suse.de>
13310 PR tree-optimization/49715
13311 * tree-vrp.c: Include expr.h and optabs.h.
13312 (range_fits_type_): New function.
13313 (simplify_float_conversion_using_ranges): Likewise.
13314 (simplify_stmt_using_ranges): Call it.
13315 * Makefile.in (tree-vrp.o): Add $(EXPR_H) and $(OPTABS_H) dependencies.
13316 * optabs.c (can_float_p): Export.
13317 * optabs.h (can_float_p): Declare.
13319 2011-07-25 Richard Guenther <rguenther@suse.de>
13321 * tree-vrp.c (num_vr_values, values_propagated): New global vars.
13322 (get_value_range): For out-of-range SSA names or names created
13323 after propagation return a read-only varying range.
13324 (dump_all_value_ranges): Adjust.
13325 (vrp_initialize): Likewise.
13326 (vrp_finalize): Likewise.
13328 2011-07-24 Richard Henderson <rth@redhat.com>
13331 * dwarf2cfi.c (connect_traces): Allow unvisited traces. Skip
13334 2011-07-24 Richard Henderson <rth@redhat.com>
13337 * dwarf2cfi.c (dwarf2out_stack_adjust): Move A_O_A test earlier.
13338 (dwarf2out_notice_stack_adjust): Use args_size from call_insn.
13340 2011-07-24 Richard Henderson <rth@redhat.com>
13343 * dwarf2cfi.c (create_trace_edges): Handle sequences properly.
13345 2011-07-24 Richard Henderson <rth@redhat.com>
13347 * dwarf2cfi.c (maybe_record_trace_start): Add abnormal parameter.
13348 Zero args_size for abnormal edges. Adjust all callers.
13350 2011-07-24 Richard Henderson <rth@redhat.com>
13353 * dwarf2cfi.c (cfi_row_equal_p): Don't compare args_size.
13355 2011-07-24 H.J. Lu <hongjiu.lu@intel.com>
13358 * collect2.c (demangle_flag): Removed.
13360 2011-07-24 Sandra Loosemore <sandra@codesourcery.com>
13362 * configure.ac (demangler_in_ld): Default to yes.
13363 * configure: Regenerated.
13364 * collect2.c (main): When HAVE_LD_DEMANGLE is defined, don't
13365 mess with COLLECT_NO_DEMANGLE, and just pass --demangle and
13366 --no-demangle options straight through to ld. When
13367 HAVE_LD_DEMANGLE is not defined, set COLLECT_NO_DEMANGLE in a
13368 way that has the intended effect on Windows.
13370 2011-07-23 Richard Henderson <rth@redhat.com>
13372 * dwarf2cfi.c: Include basic-block.h.
13373 (dw_label_info): Remove.
13374 (trace_work_list, trace_index): New.
13375 (remember_row, emit_cfa_remember): Remove.
13376 (dw_trace_info_hash, dw_trace_info_eq): New.
13377 (get_trace_index, get_trace_info): New.
13378 (save_point_p): New.
13379 (free_cfi_row): Remove.
13380 (add_cfi): Do not emit DW_CFA_remember_state.
13381 (cfa_row_equal_p): New.
13382 (barrier_args_size): Remove.
13383 (compute_barrier_args_size_1, compute_barrier_args_size): Remove.
13384 (dwarf2out_notice_stack_adjust): Don't compute_barrier_args_size.
13385 (maybe_record_trace_start, create_trace_edges, scan_trace): New.
13386 (dwarf2out_cfi_begin_epilogue): Remove.
13387 (dwarf2out_frame_debug_restore_state): Remove.
13388 (connect_traces, create_pseudo_cfg): New.
13389 (create_cfi_notes, execute_dwarf2_frame): Rewrite using traces.
13390 * Makefile.in (dwarf2cfi.o): Update.
13392 2011-07-23 Richard Henderson <rth@redhat.com>
13394 * dwarf2cfi.c (dw_trace_info): New.
13395 (dw_label_info): New.
13396 (cie_return_save): New.
13398 (queued_args_size): Rename from args_size. Update all users.
13399 (cfa_store, cfa_temp, regs_saved_in_regs): Remove.
13400 (def_cfa_1): Use cur_trace instead of cfa_*.
13401 (dwarf2out_stack_adjust, record_reg_saved_in_reg): Likewise.
13402 (clobbers_queued_reg_save, reg_saved_in): Likewise.
13403 (dwarf2out_frame_debug_expr): Likewise.
13404 (create_cie_data): Split out from ...
13405 (execute_dwarf2_frame): ... here. Initialize cur_trace.
13407 2011-07-23 Richard Henderson <rth@redhat.com>
13409 * dwarf2cfi.c (regs_saved_in_regs): Allocate from heap, not gc.
13410 Update all users to match.
13411 (execute_dwarf2_frame): Free reg_saved_in_data.
13413 2011-07-23 Richard Henderson <rth@redhat.com>
13415 * dwarf2cfi.c (queued_reg_save): Reorder for packing. Don't GTY.
13416 (queued_reg_saves): Don't GTY. Change to a VEC.
13417 (queue_reg_save): Update to match.
13418 (dwarf2out_flush_queued_reg_saves): Likewise.
13419 (clobbers_queued_reg_save): Likewise.
13420 (reg_saved_in): Likewise.
13421 (execute_dwarf2_frame): Free queued_reg_saves.
13423 2011-07-23 Richard Henderson <rth@redhat.com>
13425 * dwarf2cfi.c (dw_cfi_row_ref): Remove. Update all users.
13427 2011-07-23 Richard Henderson <rth@redhat.com>
13429 * dwarf2cfi.c (add_cfi_args_size): Split out from...
13430 (dwarf2out_args_size): ... here.
13431 (add_cfi_restore): Split out from ...
13432 (dwarf2out_frame_debug_cfa_restore): ... here.
13433 (def_cfa_0): Split out from ...
13434 (def_cfa_1): ... here.
13435 (cfi_oprnd_equal_p, cfi_equal_p): New.
13436 (change_cfi_row): New.
13437 (add_cfis_to_fde): Set fde->dw_fde_switch_cfi_index.
13438 (create_cfi_notes): Use change_cfi_row at SWITCH_TEXT note.
13439 (output_cfis): Remove.
13440 * dwarf2out.c (output_fde): Simplify output_cfi loop.
13441 (dwarf2out_switch_text_section): Don't call output_cfis.
13442 (dw_val_equal_p, loc_descr_equal_p_1, loc_descr_equal_p): New.
13443 * dwarf2out.h: Update decls.
13444 (enum dw_val_class): Add dw_val_class_none.
13446 2011-07-23 Richard Henderson <rth@redhat.com>
13448 * dwarf2cfi.c (update_row_reg_save): New.
13449 (dwarf2out_frame_debug_cfa_expression): Use it.
13450 (dwarf2out_frame_debug_cfa_restore): Likewise.
13451 (reg_save): Likewise. Do not emit DW_CFA_same_value.
13453 2011-07-23 Richard Henderson <rth@redhat.com>
13455 * dwarf2cfi.c (add_cfi_insn): Rename from cfi_insn. Update all users.
13457 2011-07-23 Richard Henderson <rth@redhat.com>
13459 * dwarf2cfi.c (dw_cfi_row, dw_cfi_row_ref): New.
13460 (cie_cfi_row): New.
13461 (new_cfi_row, copy_cfi_row, free_cfi_row): New.
13462 (cfa, old_cfa, cfa_remember, old_cfa_remember, old_args_size): Remove.
13463 (cur_row, remember_row): New.
13464 (def_cfa_1): Use cur_row instead of the old_* variables.
13465 (dwarf2out_frame_debug_restore_state): Similarly.
13466 (dwarf2out_args_size, dwarf2out_notice_stack_adjust): Likewise.
13467 (dwarf2out_frame_debug_def_cfa): Use a local variable instead of cfa.
13468 (dwarf2out_frame_debug_adjust_cfa): Likewise.
13469 (dwarf2out_frame_debug_cfa_offset): Likewise.
13470 (dwarf2out_frame_debug_expr): Likewise.
13471 (execute_dwarf2_frame): Set up cur_row.
13472 * dwarf2out.h (struct cfa_loc): Mark for GTY.
13474 2011-07-23 Richard Henderson <rth@redhat.com>
13476 * basic-block.h (EDGE_PRESERVE): New.
13477 (EDGE_ALL_FLAGS, EDGE_COMPLEX): Include it.
13478 * bb-reorder.c: Include except.h.
13479 (fix_up_crossing_landing_pad): New.
13480 (find_rarely_executed_basic_blocks_and_crossing_edges): Place
13481 landing pads in the right partition. Duplicate as necessary.
13482 (partition_hot_cold_basic_blocks): Fix up DF info after
13483 duplicating landing pads.
13484 * cfg.c (dump_edge_info): Add crossing and preserve to bitnames.
13485 * cfgrtl.c (rtl_verify_flow_info_1): Validate that EDGE_CROSSING
13486 is set properly. Validate that EH edges are not CROSSING.
13487 * except.c (expand_dw2_landing_pad_for_region): Split out from ...
13488 (dw2_build_landing_pads): ... here.
13489 (convert_to_eh_region_ranges): Remove code to fixup crossing
13491 * except.h (expand_dw2_landing_pad_for_region): Declare.
13492 * tree-cfg.c (gimple_can_merge_blocks_p): Don't merge PRESERVE edges.
13494 2011-07-23 Richard Earnshaw <rearnsha@arm.com>
13497 * arm.c (aapcs_vfp_allocate_return_reg): Return NULL on failure.
13499 2011-07-22 Jason Merrill <jason@redhat.com>
13501 * doc/invoke.texi (C++ Dialect Options): Document -Wno-narrowing.
13503 2011-07-22 Richard Henderson <rth@redhat.com>
13505 * bb-reorder.c (gate_handle_partition_blocks): Honor optimize.
13507 2011-07-22 Richard Henderson <rth@redhat.com>
13509 * jump.c (maybe_propagate_label_ref): Split out of...
13510 (mark_all_labels): ... here. Do not attempt label_ref
13511 propagation while in cfglayout mode.
13513 2011-07-22 Jakub Jelinek <jakub@redhat.com>
13515 * dwarf2out.c (struct macinfo_struct): Change code to unsigned char.
13516 (DEBUG_MACRO_SECTION, DEBUG_MACRO_SECTION_LABEL): Define.
13517 (dwarf_attr_name): Handle DW_AT_GNU_macros.
13518 (dwarf2out_define): If the vector is empty and
13519 lineno is 0, emit a dummy entry first.
13520 (dwarf2out_undef): Likewise. Remove redundant semicolon.
13521 (htab_macinfo_hash, htab_macinfo_eq, output_macinfo_op,
13522 optimize_macinfo_range): New functions.
13523 (output_macinfo): Use them. If !dwarf_strict and .debug_str is
13524 mergeable, optimize longer strings using
13525 DW_MACRO_GNU_{define,undef}_indirect and if HAVE_COMDAT_GROUP,
13526 optimize longer sequences of define/undef ops from headers
13527 using DW_MACRO_GNU_transparent_include. For !dwarf_strict
13528 emit a section headers.
13529 (dwarf2out_init): For !dwarf_strict set debug_macinfo_section
13530 and macinfo_section_label to DEBUG_MACRO_SECTION
13531 resp. DEBUG_MACRO_SECTION_LABEL.
13532 (dwarf2out_finish): For !dwarf_strict emit DW_AT_GNU_macros
13533 instead of DW_AT_macro_info.
13536 * common.opt (grecord-gcc-switches, gno-record-gcc-switches): New
13538 * dwarf2out.c: Include opts.h.
13539 (dchar_p): New typedef. Define heap VEC for it.
13540 (producer_string): New variable.
13541 (gen_producer_string): New function.
13542 (gen_compile_unit_die): Use it.
13543 (dwarf2out_finish): Fix up comp_unit_die () DW_AT_producer if needed.
13544 * Makefile.in (dwarf2out.o): Depend on $(OPTS_H).
13545 * doc/invoke.texi: Document -grecord-gcc-switches and
13546 -gno-record-gcc-switches, add a -grecord-gcc-switches reference
13547 to -frecord-gcc-switches description.
13549 2011-07-22 Jason Merrill <jason@redhat.com>
13552 * c-decl.c (c_linkage_bindings): Define.
13554 2011-07-22 Eric Botcazou <ebotcazou@adacore.com>
13557 * var-tracking.c (vt_finalize): Always free windowed_parm_regs.
13559 2011-07-22 H.J. Lu <hongjiu.lu@intel.com>
13561 * config/i386/i386.c (ix86_option_override_internal): Disallow
13562 MS ABI in x32 mode.
13563 (ix86_init_builtins): Call ix86_init_builtins_va_builtins_abi
13564 only for TARGET_LP64.
13565 (ix86_handle_abi_attribute): Check TARGET_LP64 instead of TARGET_64BIT.
13567 2011-07-22 Michael Meissner <meissner@linux.vnet.ibm.com>
13569 * config/rs6000/rs6000.c (rs6000_xcoff_strip_dollar): Rewrite to
13570 avoid warnings when GCC is built with a C++ compiler.
13572 2011-07-22 Martin Jambor <mjambor@suse.cz>
13575 * cgraphunit.c (verify_edge_corresponds_to_fndecl): Return false
13576 if decl node is in another partition, call cgraph_get_node only once.
13578 2011-07-22 Uros Bizjak <ubizjak@gmail.com>
13580 * config.gcc (x86_64-*-linux*): Set
13581 default_gnu_indirect_function to yes.
13583 2011-07-22 Richard Guenther <rguenther@suse.de>
13585 PR tree-optimization/45819
13586 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly
13587 preserve volatile and notrap flags.
13589 2011-07-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13590 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13593 * configure.ac: Test AM_ICONV with CXX.
13594 * configure: Regenerate.
13595 * config/sol2-c.c (solaris_format_types): Use EXPORTED_CONST.
13597 2011-07-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13600 * graphite-clast-to-gimple.c (CLOOG_LANGUAGE_C): Provide if missing.
13601 (set_cloog_options): Use it.
13603 2011-07-22 Jakub Jelinek <jakub@redhat.com>
13606 * gcc.c (main): Call stack_limit_increase (64MB).
13607 * toplev.c (toplev_main): Likewise.
13609 2011-07-21 H.J. Lu <hongjiu.lu@intel.com>
13611 * config/i386/i386.c (ix86_expand_call): Call copy_to_mode_reg
13612 instead of force_reg.
13614 2011-07-21 H.J. Lu <hongjiu.lu@intel.com>
13616 * config/i386/i386.c (ix86_expand_move): Convert to Pmode if
13617 needed and use force_reg after convert.
13618 (ix86_expand_call): Likewise.
13619 (ix86_expand_special_args_builtin): Likewise.
13620 (ix86_expand_builtin): Likewise.
13622 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
13624 PR middle-end/47654
13625 PR middle-end/49649
13626 * graphite-clast-to-gimple.c (type_for_clast_term): Pass v1 and v2
13627 in parameter. Initialize v1 and v2 based on the values returned
13628 by clast_name_to_lb_ub.
13629 (type_for_clast_red): Pass v1 and v2 in parameter, and set their
13631 (type_for_clast_bin): Same.
13632 (type_for_clast_expr): Same.
13633 (type_for_clast_eq): Update calls to type_for_clast_expr.
13634 (type_for_clast_for): Same.
13635 (build_iv_mapping): Same.
13636 * graphite-ppl.h (value_min): New.
13638 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
13640 * graphite-clast-to-gimple.c (type_for_interval): Generate signed
13641 types whenever possible.
13643 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
13645 * graphite-clast-to-gimple.c (struct clast_name_index): Add lb
13647 (new_clast_name_index): Add lb and ub parameters.
13648 (free_clast_name_index): New.
13649 (clast_name_to_lb_ub): New.
13650 (save_clast_name_index): Add lb and ub parameters.
13651 (compute_bounds_for_param): New.
13652 (type_for_level): Removed.
13653 (type_for_clast_for): Removed level parameter. Do not call
13655 (graphite_create_new_loop): Store the lb and ub for the clast_name
13656 of the iterator of the loop that has been generated.
13657 (graphite_create_new_loop_guard): Remove parameter level.
13658 (create_params_index): Store the lb and ub of each parameter.
13659 (gloog): Use free_clast_name_index. Pass to create_params_index
13662 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
13664 * graphite-clast-to-gimple.c (max_signed_precision_type): Removed.
13665 (max_precision_type): Inline max_signed_precision_type.
13666 (type_for_clast_red): Use max_precision_type.
13667 (type_for_clast_bin): Same.
13668 (type_for_clast_for): Same.
13670 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
13672 * graphite-clast-to-gimple.c (gcc_type_for_interval): Renamed
13674 (gcc_type_for_value): Renamed type_for_value.
13675 (gcc_type_for_clast_term): Renamed type_for_clast_term.
13676 (gcc_type_for_clast_expr): Renamed type_for_clast_expr.
13677 (gcc_type_for_clast_red): Renamed type_for_clast_red.
13678 (gcc_type_for_clast_bin): Renamed type_for_clast_bin.
13679 (gcc_type_for_clast_eq): Renamed type_for_clast_eq.
13680 (graphite_translate_clast_equation): Update calls.
13681 (compute_type_for_level): Renamed type_for_level.
13682 (gcc_type_for_iv_of_clast_loop): Renamed type_for_clast_for.
13683 (build_iv_mapping): Update calls.
13684 (graphite_create_new_loop_guard): Same.
13686 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
13688 * graphite-clast-to-gimple.c (clast_get_body_of_loop): Add fixme
13691 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
13693 * graphite-clast-to-gimple.c (struct ivs_params): New.
13694 (clast_name_to_gcc): Use ivs_params to pass around parameters.
13695 (clast_to_gcc_expression): Same.
13696 (clast_to_gcc_expression_red): Same.
13697 (gcc_type_for_clast_term): Same.
13698 (gcc_type_for_clast_expr): Same.
13699 (gcc_type_for_clast_red): Same.
13700 (gcc_type_for_clast_bin): Same.
13701 (gcc_type_for_clast_eq): Same.
13702 (graphite_translate_clast_equation): Same.
13703 (graphite_create_guard_cond_expr): Same.
13704 (graphite_create_new_guard): Same.
13705 (graphite_create_new_loop): Same.
13706 (build_iv_mapping): Same.
13707 (translate_clast_user): Same.
13708 (graphite_create_new_loop_guard): Same.
13709 (translate_clast): Same.
13710 (translate_clast_for_loop): Same.
13711 (translate_clast_for): Same.
13712 (translate_clast_guard): Same.
13713 (initialize_cloog_names): Fix typo.
13714 (gloog): Initialize an ivs_params struct, pass it to translate_clast.
13716 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
13718 * graphite-clast-to-gimple.c (struct clast_name_index): Add level.
13719 (new_clast_name_index): Add level parameter.
13720 (clast_name_to_level): New.
13721 (save_clast_name_index): Add level parameter.
13722 (newivs_to_depth_to_newiv): Removed.
13723 (clast_name_to_gcc): Inlined newivs_to_depth_to_newiv.
13724 (graphite_create_new_loop): Add level parameter. Pass level to
13725 save_clast_name_index.
13726 (translate_clast_for_loop): Pass level to graphite_create_new_loop.
13727 (create_params_index): Pass level to save_clast_name_index.
13729 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
13731 * graphite-clast-to-gimple.c (graphite_create_new_loop): Do not
13732 recompute type, lb, and ub. Get them from...
13733 (graphite_create_new_loop_guard): ...here. Pass in parameter
13734 pointers to type, lb, and ub.
13735 (translate_clast_for_loop): Update function calls.
13736 (translate_clast_for): Same.
13738 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
13740 * graphite-clast-to-gimple.c (compute_bounds_for_level): Call
13742 (translate_clast_for_loop): Pass loop level to dependency_in_loop_p.
13743 (gcc_type_for_iv_of_clast_loop): Update use of level.
13744 (gloog): Start counting nesting level from 0.
13745 * graphite-clast-to-gimple.h (get_scattering_level): Removed.
13746 * graphite-dependences.c (graphite_carried_dependence_level_k): Call
13747 psct_dynamic_dim on level.
13749 2011-07-21 H.J. Lu <hongjiu.lu@intel.com>
13751 * config/i386/i386.c (ix86_legitimize_address): Convert to
13754 2011-07-21 H.J. Lu <hongjiu.lu@intel.com>
13756 * config/i386/i386.c (function_value_64): Always return pointers
13758 (ix86_promote_function_mode): New.
13759 (TARGET_PROMOTE_FUNCTION_MODE): Likewise.
13761 2011-07-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13763 PR tree-optimization/49749
13764 * tree-ssa-reassoc.c (get_rank): Fix operand scan conditions and
13765 remove no-longer-used maxrank variable.
13767 2011-07-21 Georg-Johann Lay <avr@gjlay.de>
13769 * config/avr/avr.c (final_prescan_insn): Fix printing of rtx_costs.
13771 2011-07-21 Jason Merrill <jason@redhat.com>
13773 * system.h (HAVE_DESIGNATED_UNION_INITIALIZERS): New.
13774 * recog.h (struct insn_data_d): Check it instead of
13775 HAVE_DESIGNATED_INITIALIZERS.
13776 * genoutput.c (output_insn_data): Likewise.
13778 2011-07-21 Richard Guenther <rguenther@suse.de>
13780 PR tree-optimization/49770
13781 * tree-ssa-sccvn.c (valueize_refs_1): Return whether we
13782 valueized any operand. Renamed from ...
13783 (valueize_refs): ... this. New wrapper around valueize_refs_1.
13784 (valueize_shared_reference_ops_from_ref): Return whether we
13785 valueized any operand.
13786 (vn_reference_lookup): Only when we valueized any operand
13787 use the valueized reference for alias analysis. Do not preserve
13788 the original reference tree in this case.
13790 2011-07-21 Uros Bizjak <ubizjak@gmail.com>
13792 * config/i386/i386.c (ix86_decompose_address): Reject all but
13793 register operands and subregs of DImode hard registers in index.
13795 2011-07-21 Kai Tietz <ktietz@redhat.com>
13797 * fold-const.c (fold_unary_loc): Preserve indirect
13798 comparison cast to none-boolean type.
13799 * tree-ssa.c (useless_type_conversion_p): Preserve cast
13800 from/to boolean-type.
13801 * gimplify.c (gimple_boolify): Handle boolification of comparisons.
13802 (gimplify_expr): Boolifiy non aggregate-typed comparisons.
13803 * tree-cfg.c (verify_gimple_comparison): Check result
13804 type of comparison expression.
13805 * tree-ssa-forwprop.c (forward_propagate_comparison): Adjust test
13806 of condition result and disallow type-cast sinking into comparison.
13808 2011-07-21 Richard Guenther <rguenther@suse.de>
13810 * tree-ssa-forwprop.c (combine_conversions): Return whether
13811 we have to run cfg-cleanup. Properly remove dead stmts.
13812 (ssa_forward_propagate_and_combine): Adjust.
13814 2011-07-21 Richard Sandiford <richard.sandiford@linaro.org>
13816 * regcprop.c (maybe_mode_change): Check HARD_REGNO_MODE_OK.
13818 2011-07-21 Kai Tietz <ktietz@redhat.com>
13820 * tree-ssa-propagate.c (substitute_and_fold): Use
13821 do_dce flag to deside, if BB's statements are scanned
13822 in last to first, or first to last order.
13824 2011-07-21 Georg-Johann Lay <avr@gjlay.de>
13826 * config/avr/avr.c (avr_rtx_costs): Set cost of CONST, LABEL_REF to 0.
13828 2011-07-20 H.J. Lu <hongjiu.lu@intel.com>
13829 Uros Bizjak <ubizjak@gmail.com>
13830 Richard Henderson <rth@redhat.com>
13832 * config/i386/constraints.md (w): New.
13834 * config/i386/i386.c (ix86_output_addr_vec_elt): Check
13835 TARGET_LP64 instead of TARGET_64BIT for ASM_QUAD.
13837 * config/i386/i386.h (CASE_VECTOR_MODE): Check TARGET_LP64
13838 instead of TARGET_64BIT.
13840 * config/i386/i386.md (indirect_jump): Replace
13841 nonimmediate_operand with indirect_branch_operand.
13842 (*indirect_jump): Likewise. Replace constraint "m" with "w".
13843 (tablejump): Replace nonimmediate_operand with indirect_branch_operand.
13844 Convert operand 0 to Pmode for x32 if not PIC.
13845 (*tablejump_1): Replace nonimmediate_operand with
13846 indirect_branch_operand. Replace constraint "m" with "w".
13847 (*call_vzeroupper): Replace constraint "m" with "w".
13849 (*call_rex64_ms_sysv_vzeroupper): Likewise.
13850 (*call_rex64_ms_sysv): Likewise.
13851 (*call_value_vzeroupper): Likewise.
13852 (*call_value): Likewise.
13853 (*call_value_rex64_ms_sysv_vzeroupper): Likewise.
13854 (*call_value_rex64_ms_sysv): Likewise.
13855 (set_got_offset_rex64): Check TARGET_LP64 instead of TARGET_64BIT.
13857 * config/i386/predicates.md (indirect_branch_operand): New.
13858 (call_insn_operand): Support x32.
13860 2011-07-20 Michael Eager <eager@eagercon.com>
13862 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Default to 12.
13864 2011-07-20 Richard Henderson <rth@redhat.com>
13866 * cfg.c (dump_bb_info): Dump basic_block->flags.
13867 * cfgrtl.c (print_rtl_with_bb): Use dump_bb_info.
13869 2011-07-20 Uros Bizjak <ubizjak@gmail.com>
13871 * config/i386/i386.c (ix86_decompose_address): Allow only subregs
13872 of DImode hard registers in index.
13873 (ix86_legitimate_address_p): Allow subregs of base and index to span
13874 more than a word. Assert that subregs of base and index satisfy
13875 register_no_elim_operand predicates. Reject addresses where
13876 base and index have different modes.
13878 2011-07-20 Robert Millan <rmh@gnu.org>
13880 * config.gcc (mips*-*-linux*): Remove redundant tm_file entry.
13882 2011-07-20 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13884 * bb-reorder.c (fix_crossing_conditional_branches): Fix crash by
13885 removing now-unnecessary assignment.
13887 2011-07-20 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13889 * emit-rtl.c (set_mem_attributes_minus_bitpos): Restore setting
13890 memory address space to the type's address space.
13892 2011-07-20 Georg-Johann Lay <avr@gjlay.de>
13896 * config/avr/avr.md (mulhi3): Use register_or_s9_operand for operand2
13897 and expand appropriately if there is a CONST_INT in operand2.
13898 (usmulqihi3): New insn.
13899 (*sumulqihi3): New insn.
13900 (*osmulqihi3): New insn.
13901 (*oumulqihi3): New insn.
13902 (*muluqihi3.uconst): New insn_and_split.
13903 (*muluqihi3.sconst): New insn_and_split.
13904 (*mulsqihi3.sconst): New insn_and_split.
13905 (*mulsqihi3.uconst): New insn_and_split.
13906 (*mulsqihi3.oconst): New insn_and_split.
13907 (*ashifthi3.signx.const): New insn_and_split.
13908 (*ashifthi3.signx.const7): New insn_and_split.
13909 (*ashifthi3.zerox.const): New insn_and_split.
13910 (mulsqihi3): New insn.
13911 (muluqihi3): New insn.
13912 (muloqihi3): New insn.
13913 * config/avr/predicates.md (const_2_to_7_operand): New.
13914 (const_2_to_6_operand): New.
13919 (register_or_s9_operand): New.
13921 2011-07-20 Kai Tietz <ktietz@redhat.com>
13923 * builtins.c (fold_builtin_expect): See through the cast
13924 from truthvalue_type_node to long.
13926 2011-07-20 Michael Meissner <meissner@linux.vnet.ibm.com>
13928 * config/rs6000/vsx.md (vsx_fma*): Use 4 argument fma instructions
13929 where we can use them from the standard and altivec instruction
13930 sets, instead of always using the 3 operand VSX forms that require
13931 the destination to overlap one of the inputs.
13933 (vsx_fnma*): Ditto.
13934 (vsx_fnms*): Ditto.
13936 * config/rs6000/rs6000.md (fmadf4_fpr): Set fp_type fp_maddsub_d
13938 (fmsdf4_fpr): Ditto.
13939 (nfmadf4_fpr): Ditto.
13940 (nfmsdf4_fpr): Ditto.
13942 2011-07-20 Sandra Loosemore <sandra@codesourcery.com>
13944 * genrecog.c (make_insn_sequence): Correct position numbering
13945 when filtering out match_scratch and match_dup.
13947 2011-07-20 Richard Guenther <rguenther@suse.de>
13949 * tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify
13950 against already removed statements.
13951 (forward_propagate_into_comparison): Remove dead defining stmts.
13952 (forward_propagate_into_gimple_cond): Likewise.
13953 (forward_propagate_into_cond): Simplify.
13954 (ssa_forward_propagate_and_combine): Handle changed cfg from
13955 forward_propagate_into_comparison.
13956 * tree-ssa-phiopt.c (conditional_replacement): Use proper
13957 locations for newly built statements.
13959 2011-07-20 Georg-Johann Lay <avr@gjlay.de>
13961 * config/avr/avr.c (avr_rtx_costs): Set cost of SYMBOL_REF to 0.
13963 2011-07-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13965 * config/s390/s390.c (s390_class_max_nregs): Fix return type.
13966 * config/s390/s390-protos.h (s390_class_max_nregs): Likewise.
13968 2011-07-20 Richard Guenther <rguenther@suse.de>
13970 PR middle-end/18908
13971 * tree.c (integer_all_onesp): Use TYPE_PRECISION, not mode precision.
13972 * tree-ssa-forwprop.c (simplify_bitwise_binary): Remove bogus
13973 ADDR_EXPR folding. Canonicalize X ^ ~0 as ~X.
13975 2011-07-20 Vladimir Makarov <vmakarov@redhat.com>
13977 * config/frv/frv.c (frv_register_move_cost): Define explicitly
13978 costs for subclasses of GR_REGS.
13980 2011-07-20 Uros Bizjak <ubizjak@gmail.com>
13983 * config/i386/predicates.md (no_seg_addres_operand): No more special.
13984 * config/i386/i386.c (ix86_decompose_address): Allow only subregs
13985 of DImode hard registers in base.
13986 (ix86_legitimate_address_p): Allow SImode and DImode base and index
13989 2011-07-20 Richard Guenther <rguenther@suse.de>
13991 * tree-ssa-structalias.c (new_var_info): Allocate oldsolution lazily.
13992 (unify_nodes): Deal with that.
13993 (solve_graph): Likewise.
13995 2011-07-20 Chung-Lin Tang <cltang@codesourcery.com>
13997 * config/arm/arm.c (arm_canonicalize_comparison): Add case to
13998 canonicalize left operand from ZERO_EXTEND to AND.
14000 2011-07-20 Anatoly Sokolov <aesok@post.ru>
14002 * target.def (class_max_nregs): New hook.
14003 * doc/tm.texi.in (TARGET_CLASS_MAX_NREGS): Document.
14004 * doc/tm.texi: Regenerate.
14005 * targhooks.c (default_class_max_nregs): New function.
14006 * targhooks.h (default_class_max_nregs): Declare.
14007 * ira.h (target_ira): Change type x_ira_reg_class_max_nregs and
14008 x_ira_reg_class_min_nregs arrays to unsigned char.
14009 * ira.c (setup_reg_class_nregs): Use TARGET_CLASS_MAX_NREGS target
14010 hook instead of CLASS_MAX_NREGS macro.
14011 * reginfo.c (restore_register_info): Ditto.
14012 * ira-conflicts.c (process_regs_for_copy): Use
14013 ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
14014 Change type rclass and aclass vars to reg_class_t.
14015 * ira-costs.c (record_reg_classes): Use ira_reg_class_max_nregs
14016 array instead of CLASS_MAX_NREGS macro. Change type rclass var to
14018 * reload.c (combine_reloads, find_reloads, find_reloads_address_1):
14019 Use ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
14021 * config/i386/i386.h (CLASS_MAX_NREGS): Remove.
14022 * config/i386/i386.c (ix86_class_max_nregs): New function.
14023 (ix86_register_move_cost): Use TARGET_CLASS_MAX_NREGS target hook
14024 instead of CLASS_MAX_NREGS macro.
14025 (TARGET_CLASS_MAX_NREGS): Define.
14026 * config/avr/avr.h (CLASS_MAX_NREGS): Remove.
14027 * config/avr/avr-protos.h (class_max_nregs): Remove declaration.
14028 * config/avr/avr.c (class_max_nregs): Remove function.
14029 * config/alpha/alpha.h (CLASS_MAX_NREGS): Remove.
14030 * config/spu/spu.h (CLASS_MAX_NREGS): Remove.
14031 * config/mep/mep.h (CLASS_MAX_NREGS): Remove.
14032 * config/m32r/m32r.h (CLASS_MAX_NREGS): Remove.
14033 * config/microblaze/microblaze.h (CLASS_MAX_NREGS): Remove.
14034 * config/xtensa/xtensa.h (CLASS_MAX_NREGS): Remove.
14035 * config/stormy16/stormy16.h (CLASS_MAX_NREGS): Remove.
14036 * config/lm32/lm32.h (CLASS_MAX_NREGS): Remove.
14037 * config/moxie/moxie.h (CLASS_MAX_NREGS): Remove.
14038 * config/iq2000/iq2000.h (CLASS_MAX_NREGS): Remove.
14039 * config/mn10300/mn10300.h (CLASS_MAX_NREGS): Remove.
14040 * config/score/score.h (CLASS_MAX_NREGS): Remove.
14041 * config/vax/vax.h (CLASS_MAX_NREGS): Remove.
14042 * config/h8300/h8300.h (CLASS_MAX_NREGS): Remove.
14043 * config/v850/v850.h (CLASS_MAX_NREGS): Remove.
14045 2011-07-19 Eric Botcazou <ebotcazou@adacore.com>
14047 * cif-code.def (OVERWRITABLE): Fix typo and move around.
14048 (TARGET_OPTIMIZATION_MISMATCH): Delete.
14049 (EH_PERSONALITY): Fix typo.
14050 (NON_CALL_EXCEPTIONS): Fix message.
14051 (OPTIMIZATION_MISMATCH): Adjust message.
14052 * ipa-inline.c (can_inline_edge_p): Use CIF_OPTIMIZATION_MISMATCH.
14054 2011-07-19 Ian Lance Taylor <iant@google.com>
14056 * doc/install.texi (Configuration): Document
14057 --enable-build-poststage1-with-cxx.
14059 2011-07-19 Robert Millan <rmh@gnu.org>
14061 * config/mips/gnu-user.h: Copy from linux.h. Update comments.
14062 (GLIBC_DYNAMIC_LINKER): Remove.
14064 * config/mips/gnu-user64.h: Copy from linux64.h. Update comments.
14065 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
14066 (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
14067 (BIONIC_DYNAMIC_LINKERN32, GNU_USER_DYNAMIC_LINKERN32): Remove.
14068 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32,
14069 GNU_USER_DYNAMIC_LINKER64 and GNU_USER_LINK_EMULATIONN32.
14071 * config/mips/linux.h: Remove everything except for ...
14072 (GLIBC_DYNAMIC_LINKER): ... this macro.
14074 * config/mips/linux64.h: Remove everything except for ...
14075 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
14076 (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
14077 (BIONIC_DYNAMIC_LINKERN32): ... these macros.
14078 (GNU_USER_LINK_EMULATION32, GNU_USER_LINK_EMULATION64)
14079 (GNU_USER_LINK_EMULATIONN32): New macros.
14081 * config.gcc (mips64*-*-linux* | mipsisa64*-*-linux* | mips-*-linux*):
14082 Use the new headers.
14084 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
14086 * rtl.h (mem_attrs): Turn offset and size fields into HOST_WIDE_INTs.
14087 Add offset_known_p and size_known_p fields.
14088 (MEM_OFFSET_KNOWN_P): Update accordingly.
14089 (MEM_OFFSET, MEM_SIZE_KNOWN_P, MEM_SIZE): Likewise.
14090 * emit-rtl.c (mem_attrs_htab_hash): Update after mem_attrs changes.
14091 (mem_attrs_eq_p, set_mem_attributes_minus_bitpos, set_mem_offset)
14092 (clear_mem_offset, set_mem_size, clear_mem_size, change_address)
14093 (adjust_address_1, widen_memory_access, set_mem_attrs_for_spill)
14094 (init_emit_regs): Likewise.
14096 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
14098 * doc/rtl.texi (MEM_OFFSET_KNOWN_P): Document.
14099 (MEM_OFFSET): Change from returning an rtx to returning a
14101 * rtl.h (MEM_OFFSET_KNOWN_P): New macro.
14102 (MEM_OFFSET): Return a HOST_WIDE_INT rather than an rtx.
14103 * emit-rtl.h (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
14104 (clear_mem_offset): Declare.
14105 * alias.c (ao_ref_from_mem): Adjust uses of MEM_OFFSET, using
14106 MEM_OFFSET_KNOWN_P to test whether the offset is known, and
14107 MEM_OFFSET to get a HOST_WIDE_INT offset.
14108 (nonoverlapping_memrefs_p): Likewise. Adjust calls to...
14109 (adjust_offset_for_component_ref): Take a bool "known_p"
14110 parameter and a HOST_WIDE_INT "offset" parameter.
14111 * builtins.c (get_memory_rtx): As for ao_ref_from_mem.
14112 Adjust calls to set_mem_offset, passing a HOST_WIDE_INT rather
14113 than an rtx. Use clear_mem_offset to clear the offset.
14114 * cfgcleanup.c (merge_memattrs): Likewise.
14115 * dwarf2out.c (tls_mem_loc_descriptor): Likewise.
14116 * function.c (assign_parm_find_stack_rtl): Likewise.
14117 (assign_parm_setup_stack): Likewise.
14118 * print-rtl.c (print_rtx): Likewise.
14119 * reload.c (find_reloads_subreg_address): Likewise.
14120 * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
14121 * var-tracking.c (INT_MEM_OFFSET): Likewise.
14122 * emit-rtl.c (set_reg_attrs_from_value): Likewise.
14123 (get_mem_align_offset): Likewise.
14124 (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
14125 (clear_mem_offset): New function.
14126 * config/mips/mips.c (r10k_safe_mem_expr_p): Take a HOST_WIDE_INT
14127 offset rather than an rtx. Assume both the expressio and offset
14129 (r10k_needs_protection_p_1): Update accordingly, checking the
14130 expression and offset availability here instead.
14132 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
14134 * doc/rtl.texi (MEM_SIZE_KNOWN_P): Document.
14135 (MEM_SIZE): Change from returning an rtx to returning a HOST_WIDE_INT.
14136 * rtl.h (MEM_SIZE_KNOWN_P): New macro.
14137 (MEM_SIZE): Return a HOST_WIDE_INT rather than an rtx.
14138 * emit-rtl.h (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
14139 (clear_mem_size): Declare.
14140 * emit-rtl.c (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
14141 (clear_mem_size): New function.
14142 * alias.c (ao_ref_from_mem): Adjust uses of MEM_SIZE, using
14143 MEM_SIZE_KNOWN_P to test whether the size is known, and MEM_SIZE
14144 to get a HOST_WIDE_INT size. Adjust calls to set_mem_size,
14145 passing a HOST_WIDE_INT rather than an rtx. Use clear_mem_size
14147 (nonoverlapping_memrefs_p): Likewise.
14148 * builtins.c (get_memory_rtx, expand_builtin_memcmp): Likewise.
14149 (expand_builtin_init_trampoline): Likewise.
14150 * calls.c (compute_argument_addresses): Likewise.
14151 * cfgcleanup.c (merge_memattrs): Likewise.
14152 * dce.c (find_call_stack_args): Likewise.
14153 * dse.c (record_store, scan_insn): Likewise.
14154 * dwarf2out.c (dw_sra_loc_expr): Likewise.
14155 * expr.c (emit_block_move_hints): Likewise.
14156 * function.c (assign_parm_find_stack_rtl): Likewise.
14157 * print-rtl.c (print_rtx): Likewise.
14158 * reload.c (find_reloads_subreg_address): Likewise.
14159 * rtlanal.c (may_trap_p_1): Likewise.
14160 * var-tracking.c (track_expr_p): Likewise.
14161 * varasm.c (assemble_trampoline_template): Likewise.
14162 * config/arm/arm.c (arm_print_operand): Likewise.
14163 * config/h8300/h8300.c (h8sx_emit_movmd): Likewise.
14164 * config/i386/i386.c (expand_movmem_via_rep_mov): Likewise.
14165 (expand_setmem_via_rep_stos, expand_constant_movmem_prologue)
14166 (expand_constant_setmem_prologue): Likewise.
14167 * config/mips/mips.c (mips_get_unaligned_mem): Likewise.
14168 * config/rs6000/rs6000.c (expand_block_move): Likewise.
14169 (adjacent_mem_locations): Likewise.
14170 * config/s390/s390.c (s390_expand_setmem): Likewise.
14171 (s390_expand_insv): Likewise.
14172 * config/s390/s390.md (*extzv<mode>, *extv<mode>): Likewise.
14173 (*extendqi<mode>2_short_displ): Likewise.
14174 * config/sh/sh.c (expand_block_move): Likewise.
14175 * config/sh/sh.md (extv, extzv): Likewise.
14177 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
14179 * emit-rtl.c (mem_attrs_eq_p): New function, split out from...
14180 (mem_attrs_htab_eq): ...here.
14181 (find_mem_attrs): Replace with...
14182 (set_mem_attrs): ...this function. Take a mem_attrs structure
14183 rather than individual fields.
14184 (set_mem_attributes_minus_bitpos, set_mem_alias_set)
14185 (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
14186 (set_mem_size, change_address, adjust_address_1, offset_address)
14187 (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
14188 Update accordingly.
14190 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
14192 * rtl.h (MEM_ALIAS_SET, MEM_EXPR, MEM_OFFSET, MEM_ADDR_SPACE)
14193 (MEM_SIZE, MEM_ALIGN): Redefine in terms of get_mem_attrs.
14194 Provide a dummy definition of MEM_ADDR_SPACE for generators.
14195 (target_rtl): Add x_mode_mem_attrs.
14196 (mode_mem_attrs): New macro.
14197 (get_mem_attrs): New function.
14198 * emit-rtl.c (get_mem_attrs): Rename to...
14199 (find_mem_attrs): ...this.
14200 (set_mem_attributes_minus_bitpos, set_mem_alias_set)
14201 (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
14202 (set_mem_size, change_address, adjust_address_1, offset_address)
14203 (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
14204 Update accordingly.
14205 (init_emit_regs): Initialize mode_mem_attrs.
14207 2011-07-19 Richard Guenther <rguenther@suse.de>
14209 * tree-ssa-forwprop.c (lookup_logical_inverted_value): Remove
14210 TRUTH_*_EXPR handling.
14211 * tree-ssa-operands.c (get_expr_operands): Likewise.
14212 * tree-ssa-pre.c (fully_constant_expression): Likewise.
14213 * tree-ssa-uninit.c (use_pred_not_overlap_with_undef_path_pre):
14215 (is_and_or_or): Likewise.
14216 (is_norm_cond_subset_of): Likewise.
14218 2011-07-19 Richard Guenther <rguenther@suse.de>
14220 * tree.h (fold_build_pointer_plus_loc): New helper function.
14221 (fold_build_pointer_plus_hwi_loc): Likewise.
14222 (fold_build_pointer_plus): Define.
14223 (fold_build_pointer_plus_hwi): Likewise.
14224 * builtins.c (std_gimplify_va_arg_expr): Use fold_build_pointer_plus.
14225 (fold_builtin_memory_op): Likewise.
14226 (fold_builtin_stpcpy): Likewise.
14227 (fold_builtin_memchr): Likewise.
14228 (fold_builtin_strstr): Likewise.
14229 (fold_builtin_strchr): Likewise.
14230 (fold_builtin_strrchr): Likewise.
14231 (fold_builtin_strpbrk): Likewise.
14232 (fold_builtin_strcat): Likewise.
14233 (expand_builtin_memory_chk): Likewise.
14234 (fold_builtin_memory_chk): Likewise.
14235 * c-typeck.c (build_unary_op): Likewise.
14236 * cgraphunit.c (thunk_adjust): Likewise.
14237 * fold-const.c (build_range_check): Likewise.
14238 (fold_binary_loc): Likewise.
14239 * omp-low.c (extract_omp_for_data): Likewise.
14240 (expand_omp_for_generic): Likewise.
14241 (expand_omp_for_static_nochunk): Likewise.
14242 (expand_omp_for_static_chunk): Likewise.
14243 * tree-affine.c (add_elt_to_tree): Likewise.
14244 * tree-data-ref.c (split_constant_offset_1): Likewise.
14245 * tree-loop-distribution.c (generate_memset_zero): Likewise.
14246 * tree-mudflap.c (mf_xform_derefs_1): Likewise.
14247 * tree-predcom.c (ref_at_iteration): Likewise.
14248 * tree-ssa-address.c (tree_mem_ref_addr): Likewise.
14249 (add_to_parts): Likewise.
14250 (create_mem_ref): Likewise.
14251 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
14252 * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Likewise.
14253 (number_of_iterations_le): Likewise.
14254 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Likewise.
14255 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
14256 (vect_create_addr_base_for_vector_ref): Likewise.
14257 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Likewise.
14258 (vect_create_cond_for_alias_checks): Likewise.
14259 * tree-vrp.c (extract_range_from_assert): Likewise.
14260 * config/alpha/alpha.c (alpha_va_start): Likewise.
14261 (alpha_gimplify_va_arg_1): Likewise.
14262 * config/i386/i386.c (ix86_va_start): Likewise.
14263 (ix86_gimplify_va_arg): Likewise.
14264 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
14265 * config/mep/mep.c (mep_expand_va_start): Likewise.
14266 (mep_gimplify_va_arg_expr): Likewise.
14267 * config/mips/mips.c (mips_va_start): Likewise.
14268 (mips_gimplify_va_arg_expr): Likewise.
14269 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
14270 * config/rs6000/rs6000.c (rs6000_va_start): Likewise.
14271 (rs6000_gimplify_va_arg): Likewise.
14272 * config/s390/s390.c (s390_va_start): Likewise.
14273 (s390_gimplify_va_arg): Likewise.
14274 * config/sh/sh.c (sh_va_start): Likewise.
14275 (sh_gimplify_va_arg_expr): Likewise.
14276 * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
14277 * config/spu/spu.c (spu_va_start): Likewise.
14278 (spu_gimplify_va_arg_expr): Likewise.
14279 * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
14281 (xstormy16_gimplify_va_arg_expr): Likewise.
14282 * config/xtensa/xtensa.c (xtensa_va_start): Likewise.
14283 (xtensa_gimplify_va_arg_expr): Likewise.
14285 2011-07-19 Richard Guenther <rguenther@suse.de>
14287 * expr.c (expand_expr_real_2): Remove TRUTH_*_EXPR handling.
14288 (expand_expr_real_1): Remove TRUTH_*IF_EXPR and STATEMENT_LIST
14291 PR middle-end/18908
14292 * expr.c (expand_expr_real_2): Do not unnecessarily truncate the
14293 result of BIT_*_EXPR to bitfield precision.
14295 2011-07-19 Richard Sandiford <richard.sandiford@linaro.org>
14297 PR tree-optimization/49742
14298 * tree-data-ref.c (get_references_in_stmt): Treat the lhs of a call
14299 as a potential write.
14301 2011-07-19 Richard Guenther <rguenther@suse.de>
14303 * Makefile.in (tree-ssa-forwprop.o): Depend on gimple-pretty-print.h.
14304 * tree-ssa-forwprop.c: Include gimple-pretty-print.h.
14305 (forward_propagate_comparison): Simplify, remove obsolete code.
14307 2011-07-19 Richard Guenther <rguenther@suse.de>
14309 * gimplify.c (gimplify_expr): Gimplify TRUTH_NOT_EXPR as
14310 BIT_XOR_EXPR, same as the RTL expander does.
14311 * tree-cfg.c (verify_expr): Disallow TRUTH_NOT_EXPR in the gimple IL.
14312 (verify_gimple_assign_unary): Likewise.
14313 * tree-ssa-propagate.c (valid_gimple_rhs_p): Disallow TRUTH_*_EXPR.
14314 * tree-ssa-forwprop.c (forward_propagate_comparison): Handle
14315 BIT_NOT_EXPR and BIT_XOR_EXPR instead of TRUTH_NOT_EXPR.
14317 2011-07-19 Jakub Jelinek <jakub@redhat.com>
14319 PR tree-optimization/49768
14320 * gimple-fold.c (fold_nonarray_ctor_reference): Return NULL
14321 if offset is smaller than bitoffset, but offset+size is bigger
14324 2011-07-19 Ira Rosen <ira.rosen@linaro.org>
14326 PR tree-optimization/49771
14327 * tree-vect-loop-manip.c (vect_vfa_segment_size): In case of
14328 zero step, set segment length to the size of the data-ref's type.
14330 2011-07-18 Martin Jambor <mjambor@suse.cz>
14332 * ipa-prop.h: Include alloc-pool.h, all sorts of updates to general
14334 (ipcp_values_pool): Declare.
14335 (ipcp_sources_pool): Likewise.
14336 (ipcp_lattice): Changed to forward declaration.
14337 (ipa_param_descriptor): Removed fields ipcp_lattice, types and
14338 cannot_devirtualize.
14339 (ipa_node_params): New fields descriptors, lattices, known_vals,
14340 clone_for_all_contexts and node dead, removed fields params and
14342 (ipa_set_param_count): Removed.
14343 (ipa_get_param_count): Made to work with descriptors vector.
14344 (ipa_get_param): Updated.
14345 (ipa_param_cannot_devirtualize_p): Removed.
14346 (ipa_param_types_vec_empty): Likewise.
14347 (ipa_set_param_used): New function.
14348 (ipa_get_param_used): Updated to use descriptors vector.
14349 (ipa_func_list): Removed.
14350 (ipa_init_func_list): Removed declaration.
14351 (ipa_push_func_to_list_1): Likewise.
14352 (ipa_pop_func_from_list): Likewise.
14353 (ipa_push_func_to_list): Removed.
14354 (ipa_lattice_from_jfunc): Remove declaration.
14355 (ipa_get_jf_pass_through_result): Declare.
14356 (ipa_get_jf_ancestor_result): Likewise.
14357 (ipa_value_from_jfunc): Likewise.
14358 (ipa_get_lattice): Update.
14359 (ipa_lat_is_single_const): New function.
14360 * ipa-prop.c (ipa_push_func_to_list_1): Removed.
14361 (ipa_init_func_list): Likewise.
14362 (ipa_pop_func_from_list): Likewise.
14363 (ipa_get_param_decl_index): Fix coding style.
14364 (count_formal_params): Removed.
14365 (count_formal_params_1): Renamed to count_formal_params.
14366 (ipa_populate_param_decls): Update to use descriptors vector.
14367 (ipa_initialize_node_params): Likewise.
14368 (visit_ref_for_mod_analysis): Use ipa_set_param_used.
14369 (ipa_analyze_params_uses): Likewise.
14370 (ipa_free_node_params_substructures): Likewise and free also lattices
14372 (duplicate_array): Removed.
14373 (ipa_edge_duplication_hook): Add the new edge to the list of edge
14375 (ipa_node_duplication_hook): Update to use new lattices.
14376 (ipa_free_all_structures_after_ipa_cp): Free alloc pools.
14377 (ipa_free_all_structures_after_iinln): Likewise.
14378 (ipa_write_node_info): Update to use new lattices.
14379 (ipa_read_node_info): Likewise.
14380 (ipa_get_jf_pass_through_result): New function.
14381 (ipa_get_jf_ancestor_result): Likewise.
14382 (ipa_value_from_jfunc): Likewise.
14383 (ipa_cst_from_jfunc): Reimplemented using ipa_value_from_jfunc.
14384 * ipa-cp.c: Reimplemented.
14385 * params.def (PARAM_DEVIRT_TYPE_LIST_SIZE): Removed.
14386 (PARAM_IPA_CP_VALUE_LIST_SIZE): New parameter.
14387 (PARAM_IPA_CP_EVAL_THRESHOLD): Likewise.
14388 * Makefile.in (IPA_PROP_H): Added alloc-pool.h to dependencies.
14389 * doc/invoke.texi (devirt-type-list-size): Removed description.
14390 (ipa-cp-value-list-size): Added description.
14392 2011-07-18 Richard Henderson <rth@redhat.com>
14394 * bb-reorder.c (fix_crossing_conditional_branches): Emit all insns
14395 before calling create_basic_block.
14397 2011-07-18 Jakub Jelinek <jakub@redhat.com>
14399 PR middle-end/49675
14400 * tree.c (build_common_builtin_nodes): Register
14401 __builtin_return_address, __cyg_profile_func_enter
14402 and __cyg_profile_func_exit.
14404 2011-07-18 Richard Henderson <rth@redhat.com>
14406 * bb-reorder.c (emit_barrier_after_bb): Split out of ...
14407 (add_labels_and_missing_jumps): ... here.
14408 (fix_up_fall_thru_edges, fix_crossing_conditional_branches): Use it.
14410 2011-07-18 Uros Bizjak <ubizjak@gmail.com>
14413 * config/i386/i386.c (ix86_decompose_address): Allow only subregs
14414 of DImode hard registers in PLUS address chains.
14416 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14419 * config.gcc (alpha*-*-linux*): Add crtfastmath.o to extra_parts.
14420 (alpha*-*-freebsd*): Likewise.
14421 (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
14422 i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
14423 i[34567]86-*-kopensolaris*-gnu): Add crtprec32.o, crtprec64.o,
14424 crtprec80.o, crtfastmath.o to extra_parts for all targets.
14425 (ia64*-*-elf*): Remove extra_parts.
14426 (sparc-*-linux*): Add crtfastmath.o to extra_parts.
14427 (sparc64-*-linux*): Likewise.
14428 (sparc64-*-freebsd*): Likewise.
14431 * config.gcc (ia64*-*-freebsd*): Remove crtfastmath.o from extra_parts.
14432 (ia64*-*-linux*): Likewise.
14433 (mips64*-*-linux*): Likewise.
14434 (mips*-*-linux*): Likewise.
14436 2011-07-18 David Edelsohn <dje.gcc@gmail.com>
14438 * doc/install.texi (Specific, *-ibm-aix*): AIX assembler bug.
14440 2011-07-18 Richard Guenther <rguenther@suse.de>
14442 * gimplify.c (gimplify_expr): Use input_location, not saved_location
14443 when building new trees.
14445 2011-07-18 Richard Guenther <rguenther@suse.de>
14447 * expr.c (expand_expr_real_2): Properly truncate the BIT_NOT_EXPR
14448 expansion result to bitfield precision if required.
14450 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14452 * config.gcc (i[3456x]86-*-netware*): Remove.
14454 * gthr-nks.h: Remove.
14455 * configure.ac (enable_threads): Remove nks.
14456 * configure: Regenerate.
14458 * config/i386/i386.c (ix86_encode_section_info): Remove netware
14460 * config/i386/i386.h (KEEP_AGGREGATE_RETURN_POINTER): Remove
14461 <netware.h> reference.
14463 * config/i386/netware-libgcc.c,
14464 gcc/config/i386/netware-libgcc.def,
14465 gcc/config/i386/netware-libgcc.exp, gcc/config/i386/netware.c,
14466 gcc/config/i386/netware.h, gcc/config/i386/netware.opt,
14467 gcc/config/i386/nwld.c, gcc/config/i386/nwld.h,
14468 gcc/config/i386/t-netware, gcc/config/i386/t-nwld: Remove
14470 * doc/extend.texi (Function Attributes,
14471 callee_pop_aggregate_return): Remove i?86-netware reference.
14472 * doc/install.texi (Configuration, --enable-threads): Remove nks.
14474 2011-07-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14478 2010-12-30 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14480 * config/pa/pa.md: Add ",*" condition to 64-bit add/subtract boolean
14483 2011-07-17 Eric Botcazou <ebotcazou@adacore.com>
14485 PR middle-end/49732
14486 * tree.c (walk_tree_1) <DECL_EXPR>: Do not walk a pointed-to type.
14488 2011-07-16 Matthias Klose <doko@ubuntu.com>
14490 * doc/install.texi: Document --enable-static-libjava.
14492 2011-07-15 Richard Henderson <rth@redhat.com>
14494 * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
14495 Replace all three arguments by returning a VEC of edges.
14496 (add_labels_and_missing_jumps): Accept a VEC of edges, not bare
14497 pointers and counts.
14498 (fix_edges_for_rarely_executed_code): Merge ...
14499 (rest_of_handle_partition_blocks): ... into...
14500 (partition_hot_cold_basic_blocks): ... here. Return todo items if
14501 any work was performed.
14502 (pass_partition_blocks): Clear todo_flags_finish.
14504 2011-07-15 Paolo Carlini <paolo.carlini@oracle.com>
14505 Jakub Jelinek <jakub@redhat.com>
14506 Jonathan Wakely <jwakely.gcc@gmail.com>
14509 * gthr-posix.h: Do not include <unistd.h> unconditionally; use
14510 _GTHREADS_USE_MUTEX_TIMEDLOCK instead of _POSIX_TIMEOUTS.
14512 2011-07-15 Jason Merrill <jason@redhat.com>
14515 * Makefile.in ($(lang_checks_parallelized)): Allow --extra_opts
14516 rather than --tool_opts.
14518 2011-07-15 Basile Starynkevitch <basile@starynkevitch.net>
14520 * doc/plugins.texi (Building GCC plugins): gengtype needs its
14521 corresponding gtype.state.
14523 2011-07-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14526 * config/pa/pa.md (casesi): Use gen_int_mode instead of GEN_INT.
14528 2011-07-15 Eric Botcazou <ebotcazou@adacore.com>
14531 * doc/md.texi (Standard Names): Document window_save.
14532 * cfgexpand.c (expand_debug_parm_decl): New function extracted from
14533 expand_debug_expr and expand_debug_source_expr. If the target has
14534 a window_save instruction, adjust the ENTRY_VALUE_EXP.
14535 (expand_debug_expr) <SSA_NAME>: Call expand_debug_parm_decl if the
14536 SSA_NAME_VAR is a parameter.
14537 (expand_debug_source_expr) <PARM_DECL>: Call expand_debug_parm_decl.
14538 * var-tracking.c (parm_reg_t): New type and associated vector type.
14539 (windowed_parm_regs): New variable.
14540 (adjust_insn): If the target has a window_save instruction and this
14541 is the instruction, make its effect on parameter registers explicit.
14542 (next_non_note_insn_var_location): New function.
14543 (emit_notes_in_bb): Use it instead of NEXT_INSN throughout.
14544 (vt_add_function_parameter): If the target has a window_save insn,
14545 adjust the incoming RTL and record that in windowed_parm_regs.
14546 (vt_finalize): Free windowed_parm_regs.
14548 2011-07-15 Bernd Schmidt <bernds@codesourcery.com>
14550 * doc/invoke.texi (C6X Options): New section.
14551 * doc/md.texi (TI C6X family): New section.
14552 * config.gcc: Handle tic6x, in particular tic6x-*-elf and
14554 * longlong.h (add_ssaaaa, __umulsidi3, umul_ppmm,
14555 count_leading_zeros, count_trailing_zeros, UMUL_TIME, UDIV_TIME):
14556 Provide C6X definitions.
14557 * config/c6x/c6x.md: New file.
14558 * config/c6x/constraints.md: New file.
14559 * config/c6x/predicates.md: New file.
14560 * config/c6x/c6x-sched.md.in: New file.
14561 * config/c6x/c6x-sched.md: New file.
14562 * config/c6x/gensched.sh: New file.
14563 * config/c6x/c6x-mult.md.in: New file.
14564 * config/c6x/genmult.sh: New file.
14565 * config/c6x/c6x-mult.md: New file.
14566 * config/c6x/sync.md: New file.
14567 * config/c6x/c6x-protos.h: New file.
14568 * config/c6x/sfp-machine.h: New file.
14569 * config/c6x/c6x.c: New file.
14570 * config/c6x/c6x.h: New file.
14571 * config/c6x/crti.s: New file.
14572 * config/c6x/crtn.s: New file.
14573 * config/c6x/lib1funcs.asm: New file.
14574 * config/c6x/c6x-modes.def: New file.
14575 * config/c6x/genopt.sh: New file.
14576 * config/c6x/c6x.opt: New file.
14577 * config/c6x/c6x-tables.opt: New file.
14578 * config/c6x/c6x-opts.h: New file.
14579 * config/c6x/c6x-isas.def: New file.
14580 * config/c6x/elf.h: New file.
14581 * config/c6x/elf-common.h: New file.
14582 * config/c6x/uclinux-elf.h: New file.
14583 * config/c6x/t-c6x: New file.
14584 * config/c6x/t-c6x-elf: New file.
14585 * config/c6x/t-c6x-uclinux: New file.
14586 * config/c6x/t-c6x-softfp: New file.
14587 * config/c6x/gtd.c: New file.
14588 * config/c6x/gtf.c: New file.
14589 * config/c6x/ltd.c: New file.
14590 * config/c6x/ltf.c: New file.
14591 * config/c6x/ged.c: New file.
14592 * config/c6x/gef.c: New file.
14593 * config/c6x/led.c: New file.
14594 * config/c6x/lef.c: New file.
14595 * config/c6x/eqd.c: New file.
14596 * config/c6x/eqf.c: New file.
14597 * config/c6x/libgcc-c6xeabi.ver: New file.
14600 2003-07-10 Eric Botcazou <ebotcazou@libertysurf.fr>
14601 PR rtl-optimization/11320
14602 * sched-int.h (struct deps) [reg_conditional_sets]: New field.
14603 (struct sched_info) [compute_jump_reg_dependencies]: New prototype.
14604 * sched-deps.c (sched_analyze_insn) [JUMP_INSN]: Update call to
14605 current_sched_info->compute_jump_reg_dependencies. Record which
14606 registers are used and which registers are set by the jump.
14607 Clear deps->reg_conditional_sets after a barrier.
14608 Set deps->reg_conditional_sets if the insn is a COND_EXEC.
14609 Clear deps->reg_conditional_sets if the insn is not a COND_EXEC.
14610 (init_deps): Initialize reg_conditional_sets.
14611 (free_deps): Clear reg_conditional_sets.
14612 * sched-ebb.c (compute_jump_reg_dependencies): New prototype.
14613 Mark registers live on entry of the fallthrough block and conditionally
14614 set as set by the jump. Mark registers live on entry of non-fallthrough
14615 blocks as used by the jump.
14616 * sched-rgn.c (compute_jump_reg_dependencies): New prototype.
14617 Mark new parameters as unused.
14619 2011-07-14 Andrew Pinski <pinskia@gmail.com>
14622 * tree-mudflap.c (mf_xform_derefs_1 <case MEM_REF>):
14623 Use fold_build2_loc instead of build2.
14624 Use the correct type for the new tree.
14626 2011-07-14 Bernd Schmidt <bernds@codesourcery.com>
14628 PR rtl-optimization/11320
14629 * config/ia64/ia64.md (load_symptr_low): Show a MEM.
14630 * config/ia64/ia64.c (ia64_expand_load_address): Generate it.
14632 2011-07-14 Georg-Johann Lay <avr@gjlay.de>
14635 * config/avr/avr.md (rotl<mode>3): Generate SCRATCH instead
14637 (*rotw<mode>): Use const_int_operand for operand2.
14638 Use match_scatch for operand3.
14639 (*rotb<mode>): Ditto
14640 * config/avr/avr.c (avr_rotate_bytes): Treat SCRATCH.
14642 2011-07-14 Richard Guenther <rguenther@suse.de>
14644 PR tree-optimization/49651
14645 * tree-ssa-structalias.c (get_constraint_for_1): Properly
14646 handle dereferences with subvariables.
14648 2011-07-14 Richard Guenther <rguenther@suse.de>
14650 * gimple-fold.c (fold_gimple_assign): Remove operand swapping.
14651 (fold_stmt_1): Do it here directly on gimple and as a first thing.
14653 2011-07-14 Richard Guenther <rguenther@suse.de>
14655 * fold-const.c (fold_binary_loc): Convert the !bool_var result,
14656 not bool_var when folding bool_var != 1 or bool_var == 0.
14658 2011-07-14 Bernd Schmidt <bernds@codesourcery.com>
14660 * haifa-sched.c (schedule_insns): Remove outdated comment.
14661 (schedule_block): When computing a known value for TODO_SPEC,
14662 just set it rather than using logical operations.
14663 (try_ready): Likewise. Use a local variable rather than a
14664 pointer to TODO_SPEC. Reorder an if statement to move the
14665 easy case to the then block.
14666 * sched-deps.c (dep_spec_p): New static function.
14667 (update_dep): Use it to decide whether to call
14668 change_spec_dep_to_hard.
14669 (get_back_and_forw_lists): Use it.
14670 (sd_resolve_dep): Likewise.
14671 (init_dep): If !USE_DEPS_LIST, use zero to initialize status.
14672 (haifa_note_mem_dep): Likewise.
14673 (check_dep): Likewise.
14674 (sd_add_dep): Also clear SPECULATIVE bits if not DO_SPECULATION.
14675 (sched_free_deps): Free in two passes.
14677 2011-07-14 Richard Sandiford <richard.sandiford@linaro.org>
14679 PR middle-end/49736
14680 * expr.c (all_zeros_p): Undo bogus part of last change.
14682 2011-07-14 Matthias Klose <doko@ubuntu.com>
14684 * doc/extend.texi (optimize attribute): Fix typo.
14686 2011-07-14 Richard Guenther <rguenther@suse.de>
14688 * gimplify.c (gimplify_expr): Only do required conversions.
14690 2011-07-14 Georg-Johann Lay <avr@gjlay.de>
14693 * config/avr/elf.h (TARGET_ASM_SELECT_SECTION): Remove,
14694 i.e. use default_elf_select_section.
14695 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Remove.
14696 (READONLY_DATA_SECTION_ASM_OP): Remove.
14697 (TARGET_ASM_NAMED_SECTION): Move from here...
14698 * config/avr/avr.c: ...to here.
14699 (avr_asm_init_sections): Set unnamed callback of readonly_data_section.
14700 (avr_asm_named_section): Make static.
14702 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14705 * config.gcc (extra_parts): Add crtprec32.o crtprec64.o crtprec80.o
14706 and crtfastmath.o for Linux/x86.
14708 2011-07-14 Bernd Schmidt <bernds@codesourcery.com>
14710 * haifa-sched.c: Include "hashtab.h"
14711 (sched_no_dce): New global variable.
14712 (INSN_EXACT_TICK, INSN_TICK_ESTIMATE, FEEDS_BACKTRACK_INSN,
14713 SHADOW_P): New macros.
14714 (last_clock_var, cycle_issued_insns): Move declarations.
14715 (must_backtrack): New static variable.
14716 (struct delay_pair): New structure.
14717 (delay_htab, delay_htab_i2): New static variables.
14718 (delay_hash_i1, delay_hash_i2, delay_i1_eq, delay_i2_eq,
14719 record_delay_slot_pair, pair_delay, add_delay_dependencies): New
14721 (dep_cost_1): If delay pairs exist, try to look up the insns and
14722 use the correct pair delay if we find them.
14723 (rank-for_schedule): Tweak priority for insns that must be scheduled
14724 soon to avoid backtracking.
14725 (queue_insn): Detect conditions which force backtracking.
14726 (ready_add): Likewise.
14727 (struct sched_block_state): Add member shadows_only_p.
14728 (struct haifa_save_data): New structure.
14729 (backtrack_queue): New static variable.
14730 (mark_backtrack_feeds, copy_insn_list, save_backtrack_point,
14731 unschedule_insns_until, restore_last_backtrack_point,
14732 free_topmost_backtrack_point, free_backtrack_queue,
14733 estimate_insn_tick, estimate_shadow_tick): New functions.
14734 (prune_ready_list): New arg shadows_only_p. All callers changed.
14735 If true, remove everything that isn't SHADOW_P. Look up delay
14736 pairs and estimate ticks to avoid scheduling the first insn too early.
14737 (verify_shadows): New function.
14738 (schedule_block): Add machinery to enable backtracking.
14739 (sched_init): Take sched_no_dce into account when setting
14741 (free_delay_pairs): New function.
14742 (init_h_i_d): Initialize INSN_EXACT_TICK.
14743 * Makefile.in (haifa-sched.o): Add $(HASHTAB_H).
14744 * sched-deps.c (sd_unresolve_dep): New function.
14745 * sched-int. (struct haifa_sched_info): New fields save_state
14747 (struct _haifa_insn_data): New fields exact_tick, tick_estimate,
14748 feeds_backtrack_insn and shadow_p.
14749 (DO_BACKTRACKING): New value in enum SCHED_FLAGS.
14750 (sched_no_dce): Declare variable.
14751 (record_delay_slot_pair, free_delay_pairs, add_delay_dependencies,
14752 sd_unresolve_dep): Declare functions.
14753 * modulo-sched.c (sms_sched_info): Clear the two new fields.
14754 * sched-rgn.c (rgn_const_sched_info): Likewise.
14755 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
14756 * sched-ebb.c (save_ebb_state, restore_ebb_state): New functions.
14757 (ebb_sched_info): Add them for the two new fields.
14758 (add_deps_for_risky_insns): Call add_delay_dependencies.
14760 2011-07-13 Michael Meissner <meissner@linux.vnet.ibm.com>
14762 * config/rs6000/rs6000.opt (-mpointers-to-nested-functions):
14764 * config/rs6000/rs6000.c (rs6000_trampoline_init): Ditto.
14765 (rs6000_call_indirect_aix): Ditto.
14766 * config/rs6000/rs6000.md (call_indirect_aix<ptrsize>): Ditto.
14767 (call_indirect_aix<ptrsize>_internal): Ditto.
14768 (call_indirect_aix<ptrsize>_nor11): Ditto.
14769 (call_indirect_aix<ptrsize>_internal2): Ditto.
14770 (call_value_indirect_aix<ptrsize>): Ditto.
14771 (call_value_indirect_aix<ptrsize>_internal): Ditto.
14772 (call_value_indirect_aix<ptrsize>_nor11): Ditto.
14773 (call_value_indirect_aix<ptrsize>_internal2): Ditto.
14774 * doc/invoke.texi (RS/6000 and PowerPC Options): Ditto.
14776 2011-07-13 Jason Merrill <jason@redhat.com>
14778 * Makefile.in ($(lang_checks_parallelized)): Allow --tool_opts.
14780 2011-07-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14782 * config/spu/spu.c (spu_init_libfuncs): Install __clrsbdi2.
14783 * config/spu/spu.md ("clrsb<mode>2"): New expander.
14785 2011-07-13 Thomas Schwinge <thomas@schwinge.name>
14787 * acinclude.m4 (gcc_GAS_CHECK_FEATURE): Use AS_ECHO instead of echo.
14788 * configure: Regenerate.
14790 2011-07-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14792 * config/spu/spu.c (TARGET_ASM_FILE_START): Do not define.
14793 (asm_file_start): Remove.
14794 (spu_machine_dependent_reorg): Call compute_bb_for_insn and
14795 free_bb_for_insn around code that modifies insns before
14796 restarting df analysis.
14798 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14801 * config/sol2.h (LIB_SPEC): Simplify. Move LIB_THREAD_LDFLAGS_SPEC ...
14802 (LINK_SPEC): ... here.
14804 2011-07-13 Bernd Schmidt <bernds@codesourcery.com>
14806 * haifa-sched.c (struct sched_block_state): New.
14807 (schedule_block): Move some local variables into such a structure.
14809 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14811 * config/i386/crtprec.c: Move to ../libgcc/config/i386.
14812 * config/i386/t-crtpc: Remove.
14813 * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
14814 * config.gcc (i[34567]86-*-darwin*): Remove i386/t-crtpc from
14816 (x86_64-*-darwin*): Likewise.
14817 (i[34567]86-*-linux*): Likewise.
14818 (x86_64-*-linux*): Likewise.
14820 * config/i386/sol2.h (ENDFILE_SPEC): Redefine.
14821 Handle -mpc32, -mpc64, -mpc80.
14823 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14825 * config/alpha/crtfastmath.c: Move to ../libgcc/config/alpha.
14826 * config/alpha/t-crtfm: Remove.
14827 * config/i386/crtfastmath.c: Move to ../libgcc/config/i386.
14828 * config/i386/t-crtfm: Remove.
14829 * config/ia64/crtfastmath.c: Move to ../libgcc/config/ia64.
14830 * config/mips/crtfastmath.c: Move to ../libgcc/config/mips.
14831 * config/sparc/crtfastmath.c: Move to ../libgcc/config/sparc.
14832 * config/sparc/t-crtfm: Remove.
14834 * config.gcc (alpha*-*-linux*): Remove alpha/t-crtfm from tmake_file.
14835 (alpha*-*-freebsd*): Likewise.
14836 (i[34567]86-*-darwin*): Remove i386/t-crtfm from tmake_file.
14837 (x86_64-*-darwin*): Likewise.
14838 (i[34567]86-*-linux*): Likewise.
14839 (x86_64-*-linux*): Likewise.
14840 (x86_64-*-mingw*): Likewise.
14841 (ia64*-*-elf*): Remove crtfastmath.o from extra_parts.
14842 (ia64*-*-freebsd*): Likewise.
14843 (ia64*-*-linux*): Likewise.
14844 (mips64*-*-linux*): Likewise.
14845 (mips*-*-linux*): Likewise.
14846 (sparc-*-linux*): Remove sparc/t-crtfm from tmake_file.
14847 (sparc64-*-linux*): Likewise.
14848 (sparc64-*-freebsd*): Likewise.
14850 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14852 * config/darwin-crt2.c: Move to ../libgcc/config/rs6000.
14853 * config/darwin-crt3.c: Move to ../libgcc/config.
14854 * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
14855 ($(T)crt3$(objext)): Remove.
14856 * config/rs6000/t-darwin (DARWIN_EXTRA_CRT_BUILD_CFLAGS): Remove.
14857 ($(T)crt2$(objext)): Remove.
14858 * config.gcc (powerpc-*-darwin*): Remove extra_parts.
14859 (powerpc64-*-darwin*): Likewise.
14861 2011-07-13 H.J. Lu <hongjiu.lu@intel.com>
14863 * config/i386/i386.c (x86_output_mi_thunk): Support ptr_mode != Pmode.
14865 * config/i386/i386.md (*addsi_1_zext): Renamed to ...
14866 (addsi_1_zext): This.
14868 2011-07-13 Bernd Schmidt <bernds@codesourcery.com>
14870 * doc/tm.texi.in (TARGET_ASM_MERGEABLE_RODATA_PREFIX): Add hook.
14871 * doc/tm.texi: Regenerate.
14872 * target.def (mergeable_rodata_prefix): New defhookpod.
14873 * varasm.c (mergeable_string_section, mergeable_constant_section):
14874 Use it. Allocate name with alloca.
14876 2011-07-13 H.J. Lu <hongjiu.lu@intel.com>
14878 * doc/invoke.texi (x86): Remove -mfused-madd and add -mfma.
14880 2011-07-13 Richard Sandiford <richard.sandiford@linaro.org>
14882 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Tighten
14885 2011-07-13 Richard Sandiford <richard.sandiford@linaro.org>
14887 * tree.h (categorize_ctor_elements): Remove comment. Fix long line.
14888 (count_type_elements): Delete.
14889 (complete_ctor_at_level_p): Declare.
14890 * expr.c (flexible_array_member_p): New function, split out from...
14891 (count_type_elements): ...here. Make static. Replace allow_flexarr
14892 parameter with for_ctor_p. When for_ctor_p is true, return the
14893 number of elements that should appear in the top-level constructor,
14894 otherwise return an estimate of the number of scalars.
14895 (categorize_ctor_elements): Replace p_must_clear with p_complete.
14896 (categorize_ctor_elements_1): Likewise. Use complete_ctor_at_level_p.
14897 (complete_ctor_at_level_p): New function, borrowing union logic
14898 from old categorize_ctor_elements_1.
14899 (mostly_zeros_p): Return true if the constructor is not complete.
14900 (all_zeros_p): Update call to categorize_ctor_elements.
14901 * gimplify.c (gimplify_init_constructor): Update call to
14902 categorize_ctor_elements. Don't call count_type_elements.
14903 Unconditionally prevent clearing for variable-sized types,
14904 otherwise rely on categorize_ctor_elements to detect
14905 incomplete initializers.
14907 2011-07-13 Richard Guenther <rguenther@suse.de>
14909 * tree-vrp.c (simplify_conversion_using_ranges): Make sure
14910 the final type is integral.
14912 2011-07-13 Bernd Schmidt <bernds@codesourcery.com>
14914 * sched-int.h (struct _dep): Add member cost.
14915 (DEP_COST, UNKNOWN_DEP_COST): New macros.
14916 * sched-deps.c (init_dep_1): Initialize DEP_COST.
14917 * haifa-sched.c (dep_cost_1): Use and set DEP_COST.
14918 (sched_change_pattern): Reset it for dependent insns.
14920 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14922 * Makefile.in (CRT0STUFF_T_CFLAGS): Remove.
14923 ($(T)crt0.o, $(T)mcrt0.o, s-crt0): Remove.
14924 * config/i386/netware-crt0.c: Move to ../libgcc/config/i386.
14925 * config/i386/t-nwld (CRTSTUFF_T_CFLAGS, CRT0STUFF_T_CFLAGS): Remove.
14926 (CRT0_S, MCRT0_S): Remove.
14927 ($(T)libgcc.def, $(T)libc.def, $(T)libcpre.def, $(T)posixpre.def):
14930 * config.gcc (i[3456x]86-*-netware*): Remove extra_parts.
14932 2011-07-12 Eric Botcazou <ebotcazou@adacore.com>
14934 * cse.c (insert_with_costs): Put semi-colon after empty loop body
14936 * emit-rtl.c (push_to_sequence): Likewise.
14937 * haifa-sched.c (max_issue): Likewise.
14938 * matrix-reorg.c (add_allocation_site): Likewise.
14939 * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
14940 * reload.c (alternative_allows_const_pool_ref): Likewise.
14941 * sched-rgn.c (rgn_add_block): Likewise.
14942 (rgn_fix_recovery_cfg): Likewise.
14943 * tree.c (attribute_list_contained): Likewise.
14945 2011-07-12 Uros Bizjak <ubizjak@gmail.com>
14947 * config/i386/i386.c: Tidy processor feature bitmasks.
14948 (m_P4_NOCONA): New.
14950 2011-07-12 Andrew Pinski <pinskia@gmail.com>
14953 * cprop.c (find_implicit_sets): Correct the condition.
14955 2011-07-12 Richard Henderson <rth@redhat.com>
14958 * dwarf2out.h (dwarf_frame_regnum): Remove.
14959 * dwarf2out.c (based_loc_descr): Revert last change. Initialize regno
14960 earlier from DWARF_FRAME_REGNUM. Never use dbx_reg_number.
14961 * dwarf2cfi.c (dw_stack_pointer_regnum, dw_frame_pointer_regnum): New.
14962 (execute_dwarf2_frame): Initialize them.
14963 (DW_STACK_POINTER_REGNUM, DW_FRAME_POINTER_REGNUM): Remove; replace
14964 users of the macros with the variables.
14965 (expand_builtin_dwarf_sp_column): Revert last change.
14966 (expand_builtin_init_dwarf_reg_sizes): Likewise. Compute the
14967 result of DWARF_FRAME_REGNUM into a local variable.
14969 2011-07-12 Richard Henderson <rth@redhat.com>
14972 * config/i386/i386.c (x86_output_mi_thunk): Use
14973 machopic_indirect_call_target instead of machopic_indirection_name
14976 2011-07-12 Laurent GUERBY <laurent@guerby.net>
14977 Eric Botcazou <ebotcazou@adacore.com>
14979 * prefix.h: Wrap up in extern "C" block.
14981 2011-07-12 Harsha Jagasia <harsha.jagasia@amd.com>
14983 AMD bdver2 Enablement
14984 * config.gcc (i[34567]86-*-linux* | ...): Add bdver2.
14985 (case ${target}): Add bdver2.
14986 * config/i386/driver-i386.c (host_detect_local_cpu): Let
14987 -march=native recognize bdver2 processors.
14988 * config/i386/i386-c.c (ix86_target_macros_internal): Add
14989 bdver2 def_and_undef
14990 * config/i386/i386.c (struct processor_costs bdver2_cost): New
14992 (m_BDVER2): New definition.
14993 (m_AMD_MULTIPLE): Includes m_BDVER2.
14994 (initial_ix86_tune_features): Add bdver2 tuning.
14995 (processor_target_table): Add bdver2 entry.
14996 (static const char *const cpu_names): Add bdver2 entry.
14997 (ix86_option_override_internal): Add bdver2 instruction sets.
14998 (ix86_issue_rate): Add bdver2.
14999 (ix86_adjust_cost): Add bdver2.
15000 (has_dispatch): Add bdver2.
15001 * config/i386/i386.h (TARGET_BDVER2): New definition.
15002 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_bdver2.
15003 (enum processor_type): Add PROCESSOR_BDVER2.
15004 * config/i386/i386.md (define_attr "cpu"): Add bdver2.
15005 * config/i386/i386.opt ( mdispatch-scheduler): Add bdver2 to
15008 2011-07-12 Richard Henderson <rth@redhat.com>
15011 * config/i386/i386.c (x86_output_mi_thunk): Fix mode for
15012 destination address in memory on some paths.
15014 2011-07-12 Bernd Schmidt <bernds@codesourcery.com>
15016 * doc/tm.texi.in (FUNCTION_ARG_PADDING): Mention
15017 TARGET_FUNCTION_ARG_ROUND_BOUNDARY.
15018 (TARGET_FUNCTION_ARG_ROUND_BOUNDARY): Add hook.
15019 * function.c (locate_and_pad_parm): Take it into account.
15020 * target.def (function_arg_round_boundary): New hook.
15021 * targhooks.c (default_function_arg_round_boundary): New function.
15022 * targhooks.h (default_function_arg_round_boundary): Declare.
15023 * doc/tm.texi: Regenerate.
15025 2011-07-12 Richard Guenther <rguenther@suse.de>
15027 * tree-ssa-copyrename.c (rename_ssa_copies): Zero statistics.
15028 Do not perform no-op changes.
15030 2011-07-12 Richard Sandiford <richard.sandiford@linaro.org>
15032 * config/arm/predicates.md (neon_struct_operand): Make a normal
15034 (neon_struct_or_register_operand): New predicate.
15035 * config/arm/neon.md (movmisalign<mode>): Replace predicates
15036 with neon_struct_or_register_operand.
15037 (*movmisalign<mode>_neon_store, *movmisalign<mode>_neon_load): Use
15038 neon_struct_operand instead of memory_operand.
15040 2011-07-12 Martin Jambor <mjambor@suse.cz>
15042 * cgraph.h (cgraph_get_node_or_alias): Removed declaration.
15043 * cgraph.c (cgraph_get_node_or_alias): Removed.
15044 (change_decl_assembler_name): Changed all calls to
15045 cgraph_get_node_or_alias to a call to cgraph_get_node.
15046 (cgraph_make_decl_local): Likewise.
15047 * lto-symtab.c (lto_symtab_resolve_symbols): Likewise.
15048 * varasm.c (default_binds_local_p_1): Likewise.
15049 (decl_binds_to_current_def_p): Likewise.
15051 2011-07-12 Jakub Jelinek <jakub@redhat.com>
15053 PR tree-optimization/49712
15054 * tree-ssa-loop-im.c (gen_lsm_tmp_name): Handle TARGET_MEM_REF.
15056 2011-07-11 Bernd Schmidt <bernds@codesourcery.com>
15058 * genautomata.c (add_arc): Return void. All callers changed.
15059 (make_automaton): Remove dead code.
15061 2011-07-11 Richard Henderson <rth@redhat.com>
15063 * dwarf2cfi.c (DW_STACK_POINTER_REGNUM): New.
15064 (DW_FRAME_POINTER_REGNUM): New.
15065 (expand_builtin_init_dwarf_reg_sizes): Use unsigned for rnum.
15066 (def_cfa_1): Do not convert reg to DWARF_FRAME_REGNUM here.
15068 (dwarf2out_flush_queued_reg_saves, dwarf2out_frame_debug_def_cfa,
15069 dwarf2out_frame_debug_adjust_cfa, dwarf2out_frame_debug_cfa_register,
15070 dwarf2out_frame_debug_cfa_expression, dwarf2out_frame_debug_expr):
15072 * dwarf2out.c (based_loc_descr): Use dwarf_frame_regnum.
15073 * dwarf2out.h (dwarf_frame_regnum): New.
15074 (struct cfa_loc): Document the domain of the reg member.
15076 2011-07-11 Uros Bizjak <ubizjak@gmail.com>
15078 * config/i386/i386.c (ix86_trampoline_init): Switch arms of if expr.
15079 Use offset everywhere. Always assert that offset <= TRAMPOLINE_SIZE.
15081 2011-07-11 Jakub Jelinek <jakub@redhat.com>
15084 * dwarf2out.c (int_shift_loc_descriptor): New function.
15085 (int_loc_descriptor): If shorter, emit i as
15086 (i >> shift), shift, DW_OP_shl for suitable shift value.
15087 Similarly, try to optimize large negative values using
15088 DW_OP_neg of a positive value if shorter.
15089 (size_of_int_shift_loc_descriptor): New function.
15090 (size_of_int_loc_descriptor): Adjust to match int_loc_descriptor
15092 (mem_loc_descriptor) <case CONST_INT>: Emit zero-extended constants
15093 that fit into DWARF2_ADDR_SIZE bytes as int_loc_descriptor +
15094 DW_OP_GNU_convert instead of DW_OP_GNU_const_type if the former
15096 (resolve_addr_in_expr): Optimize DW_OP_plus_uconst with a large
15097 addend as added DW_OP_plus if it is shorter.
15099 2011-07-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15101 * config/i386/sol2.h [!USE_GLD] (CTORS_SECTION_ASM_OP): Define.
15102 (DTORS_SECTION_ASM_OP): Define.
15104 2011-07-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15106 * config/dfp-bit.c, config/dfp-bit.h: Move to ../libgcc.
15107 * config/t-dfprules: Move to ../libgcc/config.
15108 * config.gcc (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
15109 i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
15110 i[34567]86-*-kopensolaris*-gnu): Remove t-dfprules from tmake_file.
15111 (x86_64-*-linux*, x86_64-*-kfreebsd*-gnu, x86_64-*-knetbsd*-gnu):
15113 (i[34567]86-*-cygwin*): Likewise.
15114 (i[34567]86-*-mingw*, x86_64-*-mingw*): Likewise.
15115 (powerpc-*-linux*, powerpc64-*-linux*): Likewise.
15116 * Makefile.in (D32PBIT_FUNCS, D64PBIT_FUNCS, D128PBIT_FUNCS): Remove.
15117 (libgcc.mvars): Remove DFP_ENABLE, DFP_CFLAGS, D32PBIT_FUNCS,
15118 D64PBIT_FUNCS, D128PBIT_FUNCS.
15120 2011-07-11 Richard Guenther <rguenther@suse.de>
15122 * tree-vrp.c (simplify_conversion_using_ranges): Manually
15123 translate the source value-range through the conversion chain.
15125 2011-07-11 Richard Sandiford <richard.sandiford@linaro.org>
15127 * expr.c (expand_expr_real_1): Use expand_insn for movmisalign.
15129 2011-07-11 Arthur Loiret <aloiret@debian.org>
15131 * config.gcc (s390-*-linux*): If 'enabled_targets' is 'all', build
15132 a bi-arch compiler defaulting to 31-bit. In this case:
15133 (tmake_file): Add s390/t-linux64.
15134 * doc/install.texi: Add s390-linux to the list of targets supporting
15135 --enable-targets=all.
15137 2011-07-11 Arthur Loiret <aloiret@debian.org>
15138 Matthias Klose <doko@debian.org>
15140 * config.gcc (mips*-*-linux*): If 'enabled_targets' is 'all', build
15141 a tri-arch compiler defaulting to 32-bit (ABI o32). In this case:
15142 (tm_file): Add mips/linux64.h.
15143 (tmake_file): Add mips/t-linux64.
15144 (tm_defines): Add MIPS_ABI_DEFAULT=ABI_32.
15145 * config/mips/linux64.h (DRIVER_SELF_SPECS): Use MULTILIB_ABI_DEFAULT
15146 instead of hardcoded mabi=n32.
15147 * config/mips/t-linux64 (MULTILIB_DIRNAMES): Set to 'n32 . 64' if
15148 tm_defines contains MIPS_ABI_DEFAULT ABI_32, to follow the glibc
15151 2011-07-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15153 * passes.c (init_optimization_passes): Add invariant motion pass
15154 after induction variable optimization.
15156 2011-07-11 Georg-Johann Lay <avr@gjlay.de>
15159 * config/avr/avr.c (notice_update_cc): For ashiftrt:QI, only
15160 offsets 1..5 set cc0 in a usable way.
15162 2011-07-11 Romain Geissler <romain.geissler@gmail.com>
15164 * tree.h (call_expr_arg): Remove.
15165 (call_expr_argp): Likewise.
15167 2011-07-11 Eric Botcazou <ebotcazou@adacore.com>
15169 * config/sparc/sparc.md (save_register_window_1): Rename to...
15170 (window_save): ...this.
15171 * config/sparc/sparc.c (emit_save_register_window): Rename to...
15172 (emit_window_save): ...this.
15173 (sparc_expand_prologue): Adjust to above renaming.
15175 2011-07-10 H.J. Lu <hongjiu.lu@intel.com>
15177 * config/i386/i386.c (ix86_trampoline_init): Use movl instead
15180 2011-07-10 Richard Henderson <rth@redhat.com>
15182 * config/i386/i386.c (x86_output_mi_thunk): Generate rtl and
15183 run final, instead of emitting text directly.
15185 2011-07-10 H.J. Lu <hongjiu.lu@intel.com>
15187 * config/i386/i386.c (ix86_option_override_internal): Turn on
15188 OPTION_MASK_ISA_64BIT for TARGET_X32. Only allow small and
15189 small PIC models for TARGET_X32.
15191 2011-07-10 Hans-Peter Nilsson <hp@axis.com>
15194 * config/cris/t-elfmulti (CRTSTUFF_T_CFLAGS): Don't include
15198 * config/cris/cris.c (cris_asm_output_case_end): Robustify against
15199 stray notes and debug insns by using prev_nonnote_nondebug_insn
15200 instead of PREV_INSN.
15202 2011-07-09 Richard Henderson <rth@redhat.com>
15204 * defaults.h (DWARF2_ADDR_SIZE, DWARF_OFFSET_SIZE,
15205 DWARF_TYPE_SIGNATURE_SIZE): Move from ...
15206 * dwarf2out.c: ... here.
15207 (output_all_cfis): Remove.
15208 (dwarf2out_switch_text_section): Use output_cfis directly.
15209 (size_of_locs): Export.
15210 (output_loc_sequence, output_loc_sequence_raw): Export.
15211 (div_data_align, need_data_align_sf_opcode, dwarf_cfi_name, output_cfi,
15212 output_cfi_directive, dwarf2out_emit_cfi, output_cfis, output_cfa_loc,
15213 output_cfa_loc_raw): Move to ...
15214 * dwarfcfi.c: ... here.
15215 * dwarf2out.h: Update decls.
15217 2011-07-09 Richard Henderson <rth@redhat.com>
15219 * defaults.h (DWARF_CIE_DATA_ALIGNMENT, DWARF_FRAME_RETURN_COLUMN,
15220 DWARF_FRAME_REGNUM, DWARF2_FRAME_REG_OUT): Move from ...
15221 * dwarf2cfi.c: ... here.
15222 (PTR_SIZE, DWARF_OFFSET_SIZE, DWARF_INITIAL_LENGTH_SIZE): Remove.
15223 (DWARF_ROUND, DWARF_CIE_ID): Remove.
15224 * dwarf2out.c (INCOMING_RETURN_ADDR_RTX): Remove.
15225 (DWARF2_FRAME_REG_OUT, DWARF_CIE_DATA_ALIGNMENT): Remove.
15226 (DWARF_FRAME_RETURN_COLUMN, DWARF_FRAME_REGNUM): Remove.
15228 2011-07-09 Richard Henderson <rth@redhat.com>
15230 * dwarf2cfi.c (cie_return_save): New.
15231 (queue_reg_save): Use compare_reg_or_pc.
15232 (dwarf2out_flush_queued_reg_saves): Handle pc_rtx as return column.
15233 (dwarf2out_frame_debug_expr): Likewise.
15234 (dwarf2out_frame_debug_cfa_register): Record saved reg for pc too.
15235 (initial_return_save): Likewise.
15236 (execute_dwarf2_frame): Save and restore initial return save from
15237 the cie to the fde.
15238 * config/mips/mips.c (mips_frame_set): Remove special case for
15239 DWARF_FRAME_RETURN_COLUMN.
15241 2011-07-09 Richard Henderson <rth@redhat.com>
15243 * dwarf2cfi.c (lookup_cfa): Remove.
15244 (execute_dwarf2_frame): Assert queues are empty on entry.
15245 Setup initial cfa directly, not via lookup_cfa.
15246 Don't clear args_size state here.
15248 2011-07-09 Richard Henderson <rth@redhat.com>
15250 * dwarf2cfi.c (add_cfi_vec): New.
15251 (add_cfi): Rename from add_fde_cfi. Add the element to add_cfi_vec.
15252 (def_cfa_1, reg_save): Remove for_cie argument. Update all callers.
15253 (execute_dwarf2_frame): Set add_cfi_vec.
15255 2011-07-09 Richard Henderson <rth@redhat.com>
15257 * defaults.h (ASM_COMMENT_START): Move here...
15258 * dwarf2asm.c: ... from here.
15259 * dwarf2out.c, final.c, vmsdbgout.c: Remove duplicates.
15260 * toplev.c: Remove ifndef tests of ASM_COMMENT_START.
15261 * varasm.c: Likewise.
15263 2011-07-09 Richard Henderson <rth@redhat.com>
15266 * dwarf2cfi.c (dwarf2out_frame_debug): Don't set cfi_insn here...
15267 (create_cfi_notes): ... do it here instead.
15269 2011-07-09 Jakub Jelinek <jakub@redhat.com>
15272 * dwarf2out.c (size_of_int_loc_descriptor): New function.
15273 (address_of_int_loc_descriptor): Use it.
15274 (scompare_loc_descriptor): Optimize EQ/NE comparison with constant.
15276 2011-07-09 Richard Henderson <rth@redhat.com>
15278 * config/pdp11/pdp11.md (define_c_enum "unspecv"): New.
15279 (prologue, epilogue): New.
15280 (return, *rts): New.
15281 (blockage, setd, seti): New.
15282 * config/pdp11/pdp11.c (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
15283 (TARGET_ASM_FUNCTION_EPILOGUE): Remove.
15284 (pdp11_saved_regno): New.
15285 (pdp11_expand_prologue): Rename from pdp11_output_function_prologue;
15286 generate rtl instead of text.
15287 (pdp11_expand_epilogue): Similarly from pdp11_output_function_epilogue.
15288 (pdp11_sp_frame_offset): Export. Use pdp11_saved_regno.
15289 * config/pdp11/pdp11-protos.h: Update.
15291 2011-07-09 Richard Henderson <rth@redhat.com>
15293 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Don't
15294 try to insert an rtl prologue here.
15295 (rs6000_output_function_epilogue): Similarly.
15296 * config/rs6000/rs6000.md (prologue): Emit a barrier to
15297 satisfy !TARGET_SCHED_PROLOG.
15298 (epilogue, sibcall_epilogue): Likewise.
15300 2011-07-09 Eric Botcazou <ebotcazou@adacore.com>
15302 * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Move around.
15303 (FP_REG_P): Delete.
15304 (IN_OR_GLOBAL_P): Likewise.
15306 2011-07-08 Jason Merrill <jason@redhat.com>
15309 * gimplify.c (goa_stabilize_expr): Handle RHS preevaluation in
15310 compound assignment.
15312 * cgraph.c (cgraph_add_to_same_comdat_group): New.
15313 * cgraph.h: Declare it.
15314 * ipa.c (function_and_variable_visibility): Make sure thunks
15315 have the right visibility.
15317 2011-07-08 Richard Henderson <rth@redhat.com>
15320 * dwarf2cfi.c (dwarf2out_frame_debug): Insert cfi notes after
15321 any tablejump vector.
15324 * dwarf2cfi.c (create_cfi_notes): Flush queued saves at the
15325 end of the prologue.
15327 2011-07-08 Jakub Jelinek <jakub@redhat.com>
15330 * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Use
15331 CONST0_RTX (dest_mode) instead of const0_rtx as second operand of NE.
15332 * config/rs6000/vector.md (vector_select_<mode>,
15333 vector_select_<mode>_uns): Change second operand of NE to
15334 CONST0_RTX (<MODE>mode) instead of const0_rtx.
15335 * config/rs6000/altivec.md (*altivec_vsel<mode>,
15336 *altivec_vsel<mode>_uns): Expect second operand of NE to be
15337 zero_constant of the corresponding vector mode.
15338 * config/rs6000/vsx.md (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns):
15341 2011-07-08 Sebastian Pop <sebastian.pop@amd.com>
15343 * graphite-dependences.c (build_alias_set_powerset): Remove
15344 continue from loop, add one more assert.
15346 2011-07-08 Georg-Johann Lay <avr@gjlay.de>
15349 * config/avr/avr.c (avr_hard_regno_mode_ok): Rewrite.
15350 In particular, allow 8-bit values in r28 and r29.
15351 (avr_hard_regno_scratch_ok): Disallow any register that might be
15352 part of the frame pointer.
15353 (avr_hard_regno_rename_ok): Same.
15354 (avr_legitimate_address_p): Don't allow SUBREGs.
15356 2011-07-08 Julian Brown <julian@codesourcery.com>
15358 * config/arm/neon.md (vec_shr_<mode>, vec_shl_<mode>): Disable in
15360 (reduc_splus_<mode>, reduc_uplus_<mode>, reduc_smin_<mode>)
15361 (reduc_smax_<mode>, reduc_umin_<mode>, reduc_umax_<mode>)
15362 (neon_vec_unpack<US>_lo_<mode>, neon_vec_unpack<US>_hi_<mode>)
15363 (vec_unpack<US>_hi_<mode>, vec_unpack<US>_lo_<mode>)
15364 (neon_vec_<US>mult_lo_<mode>, vec_widen_<US>mult_lo_<mode>)
15365 (neon_vec_<US>mult_hi_<mode>, vec_widen_<US>mult_hi_<mode>)
15366 (vec_pack_trunc_<mode>, neon_vec_pack_trunc_<mode>): Disable for Q
15367 registers in big-endian mode.
15369 2011-07-08 Bernd Schmidt <bernds@codesourcery.com>
15371 * genattrtab.c (evaluate_eq_attr): Allow an attribute to be defined
15372 in terms of another.
15373 (write_attr_value): Write a cast if necessary.
15375 * defaults.h (REG_WORDS_BIG_ENDIAN): Provide a default.
15376 * doc/tm.texi.in (WORDS_BIG_ENDIAN): Mention REG_WORDS_BIG_ENDIAN.
15377 (REG_WORDS_BIG_ENDIAN): Document.
15378 * doc/tm.texi: Regenerate.
15379 * reload.c (operands_match_p): Take it into account.
15380 (reload_adjust_reg_for_mode): Likewise.
15381 * rtlanal.c (subreg_get_info): Likewise.
15383 2011-07-08 Richard Guenther <rguenther@suse.de>
15385 * fold-const.c (fold_binary_loc): Remove index +p PTR -> PTR +p index
15388 2011-07-08 Kai Tietz <ktietz@redhat.com>
15390 * fold-const.c (fold_truth_andor): Factored out truth_andor
15391 label from fold_binary as function.
15392 (fold_binary_loc): Replace truth_andor lable
15393 by function fold_truth_andor.
15395 2011-07-08 Kirill Yukhin <kirill.yukhin@intel.com>
15397 PR middle-end/49519
15398 * calls.c (mem_overlaps_already_clobbered_arg_p): Additional
15399 check if address is stored in register. If so - give up.
15400 (check_sibcall_argument_overlap_1): Do not perform check of
15401 overlapping when it is call to address.
15403 2011-07-08 Georg-Johann Lay <avr@gjlay.de>
15405 * config/avr/avr.c (output_reload_insisf): Use 'REG_Z+1' instead
15408 2011-07-08 Bernd Schmidt <bernds@codesourcery.com>
15410 * optabs.c (expand_binop): Use GET_MODE_PRECISION instead of
15411 GET_MODE_BITSIZE where appropriate.
15412 (widen_leading, expand_parity, expand_ctz, expand_ffs,
15413 expand_unop, expand_abs_nojump, expand_one_cmpl_abs_nojump,
15414 expand_float, expand_fix): Likewise.
15415 * expr.c (convert_move, convert_modes, expand_expr_real_2,
15416 expand_expr_real_1, reduce_to_bit_field_precision): Likewise.
15417 * stor-layout.c (get_mode_bounds): Likewise.
15418 * cfgexpand.c (convert_debug_memory_address, expand_debug_expr):
15420 * convert.c (convert_to_integer): Likewise.
15421 * expmed.c (expand_shift_1): Likewise.
15423 * rtlanal.c (nonzero_bits1): Don't compare GET_MODE_SIZE against
15426 * optabs.c (expand_binop): Tighten conditions for doubleword
15428 (widen_bswap): Assert that mode bitsize and precision are the same.
15429 * stor-layout.c (get_best_mode): Skip modes that have lower
15430 precision than bitsize.
15431 * recog.c (simplify_while_replacing): Assert that bitsize and
15432 precision are the same.
15434 2011-07-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15436 * Makefile.in (LIBGCOV): Remove.
15437 (libgcc.mvars): Remove LIBGCOV.
15438 * libgov.c: Move to ../libgcc.
15440 2011-07-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15442 * config/fixed-bit.c, config/fixed-bit.h: Move to ../libgcc.
15444 2011-07-08 Martin Jambor <mjambor@suse.cz>
15446 * tree-sra.c (analyze_all_variable_accesses): Dump that a struture
15447 is too big for total scalarization.
15449 2011-07-07 Richard Henderson <rth@redhat.com>
15451 * config/alpha/elf.h (MIPS_DEBUGGING_INFO): Undef.
15452 (DBX_DEBUGGING_INFO): Undef.
15454 2011-07-07 Richard Henderson <rth@redhat.com>
15456 * dwarf2out.c (output_cfi_directive): Export. Add FILE parameter.
15457 Handle some opcodes specially for debugging.
15458 * print-rtl.c: Include dwarf2out.h
15459 (print_rtx): Handle NOTE_INSN_CFI.
15460 * Makefile.in (print-rtl.o): Update.
15462 2011-07-07 Richard Henderson <rth@redhat.com>
15464 * tree-pass.h (pass_dwarf2_frame): Declare.
15465 * passes.c (init_optimization_passes): Add it.
15466 * dwarf2cfi.c (dwarf2out_frame_debug): Make static.
15467 (create_cfi_notes): Rename from dwarf2out_frame_debug_after_prologue;
15468 make static, do not call add_cfis_to_fde.
15469 (dwarf2out_frame_debug_init, dwarf2cfi_function_init,
15470 dwarf2out_frame_init): Merge into...
15471 (execute_dwarf2_frame): ... here. New function.
15472 (dwarf2out_do_frame, dwarf2out_do_cfi_asm): Make boolean. Change
15473 saved_do_cfi_asm to a tri-state variable.
15474 (gate_dwarf2_frame, pass_dwarf2_frame): New.
15475 * dwarf2out.c (dwarf2out_begin_prologue): Only allocate the fde
15476 if it has yet to be done. Don't call dwarf2cfi_function_init.
15477 * dwarf2out.h, debug.h: Update decls.
15478 * final.c (final_start_function): Don't call
15479 dwarf2out_frame_debug_init or dwarf2out_frame_debug_after_prologue.
15480 * lto-streamer-in.c (lto_init_eh): Don't call dwarf2out_frame_init.
15481 * toplev.c (lang_dependent_init): Likewise.
15483 2011-07-07 Richard Henderson <rth@redhat.com>
15485 * dwarf2out.c (fde_table, fde_table_allocated, fde_table_in_use,
15486 FDE_TABLE_INCREMENT): Replace with...
15487 (fde_vec): ... this, a new vector.
15488 (current_fde): Remove. Replace all users with cfun->fde.
15489 (output_call_frame_info): Use FOR_EACH_VEC_ELT over fde_vec.
15490 (size_of_aranges, dwarf2out_finish): Likewise.
15491 (dwarf2out_alloc_current_fde): Break out from ...
15492 (dwarf2out_begin_prologue): ... here.
15493 (dwarf2out_frame_init): Remove.
15494 * dwarf2cfi.c: Update all users of current_fde.
15495 (dwarf2out_frame_init): Rename from dwarf2cfi_frame_init.
15496 * dwarf2out.h: Update decls.
15497 (dw_fde_node): Add fde_index member.
15498 * function.h (struct function): Add fde member.
15500 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
15501 Richard Henderson <rth@redhat.com>
15503 * dwarf2cfi.c (add_cfi): Remove.
15504 (dwarf2out_cfi_label): Remove force argument. Only generate the
15506 (add_fde_cfi): Simplify the different code paths.
15507 (add_cie_cfi): New.
15508 (old_cfa, old_cfa_remember): New.
15509 (def_cfa_1, reg_save): Remove label, add for_cie parameter.
15510 (last_reg_save_label): Remove.
15511 (dwarf2out_args_size, dwarf2out_stack_adjust, queue_reg_save,
15512 dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
15513 dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
15514 dwarf2out_frame_debug_cfa_expression,
15515 dwarf2out_frame_debug_cfa_restore,
15516 dwarf2out_frame_debug_cfa_window_save,
15517 dwarf2out_frame_debug_expr): Remove label parameter.
15518 (cfi_label_required_p, add_cfis_to_fde): New.
15519 (dwarf2out_frame_debug_after_prologue): New.
15520 (dwarf2cfi_frame_init): Initialize old_cfa.
15521 (dwarf2out_frame_debug_restore_state): Likewise.
15522 * dwarf2out.c (dwarf2out_emit_cfi): Only do output for cfi_asm.
15523 (dwarf2out_switch_text_section): Don't clear dw_fde_current_label here.
15524 * final.c (final_start_function): Call
15525 dwarf2out_frame_debug_after_prologue.
15527 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
15528 Richard Henderson <rth@redhat.com>
15530 * dwarf2cfi.c (cfi_insn): New.
15531 (dwarf2out_cfi_label): Don't emit cfi label here.
15532 (add_fde_cfi): Create a NOTE_INSN_CFI.
15533 (dwarf2out_frame_debug): Setup cfi_insn.
15534 (dwarf2out_frame_debug_init): Loop over insns creating CFI notes.
15535 (dwarf2out_cfi_begin_epilogue): Make static.
15536 (dwarf2out_frame_debug_restore_state): Make static.
15537 * dwarf2out.c (output_cfi_directive): Make static.
15538 (dwarf2out_emit_cfi): New.
15539 * dwarf2out.h: Update.
15540 * final.c (final): Remove CFI notes.
15541 (final_scan_insn): Don't call dwarf2out_cfi_begin_epilogue,
15542 dwarf2out_frame_debug_restore_state, dwarf2out_frame_debug.
15543 Handle NOTE_INSN_CFI and NOTE_INSN_CFI_LABEL.
15544 * insn-notes.def (NOTE_INSN_CFI): New.
15545 (NOTE_INSN_CFI_LABEL): New.
15546 * rtl.h (union rtunion_def): Add rt_cfi member.
15547 (XCFI, XCCFI, NOTE_CFI, NOTE_LABEL_NUMBER): New.
15549 2011-07-07 Richard Henderson <rth@redhat.com>
15551 * dwarf2cfi.c: New file.
15552 * Makefile.in (OBJS): Add it.
15553 (GTFILES): Add dwarf2cfi.c and dwarf2out.h.
15554 * gengtype.c (open_base_files): Include dwarf2out.h.
15555 * coretypes.h (enum var_init_status): Move from ...
15557 * dwarf2out.c (saved_do_cfi_asm, dwarf2out_do_frame,
15558 dwarf2out_do_cfi_asm, cie_cfi_vec, dwarf2out_cfi_label_num,
15559 expand_builtin_dwarf_sp_column, init_return_column_size,
15560 expand_builtin_init_dwarf_reg_sizes, new_cfi, add_cfi,
15561 dwarf2out_cfi_label, emit_cfa_remember, any_cfis_emitted, add_fde_cfi,
15562 lookup_cfa_1, lookup_cfa, cfa, cfa_store, cfa_remember, args_size,
15563 old_args_size, cfa_equal_p, def_cfa_1, reg_save, initial_return_save,
15564 stack_adjust_offset, barrier_args_size, compute_barrier_args_size_1,
15565 compute_barrier_args_size, dwarf2out_args_size,
15566 dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust,
15567 queued_reg_saves, reg_saved_in_data, regs_saved_in_regs,
15568 compare_reg_or_pc, record_reg_saved_in_reg, last_reg_save_label,
15569 queue_reg_save, dwarf2out_flush_queued_reg_saves,
15570 clobbers_queued_reg_save, reg_saved_in, cfa_temp,
15571 dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
15572 dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
15573 dwarf2out_frame_debug_cfa_expression,
15574 dwarf2out_frame_debug_cfa_restore,
15575 dwarf2out_frame_debug_cfa_window_save, dwarf2out_frame_debug_expr,
15576 dwarf2out_frame_debug, dwarf2out_frame_debug_init,
15577 dwarf2out_cfi_begin_epilogue, dwarf2out_frame_debug_restore_state,
15578 get_cfa_from_loc_descr): Move to dwarf2cfi.c.
15579 (dw_cfi_ref, dw_fde_ref, dw_cfi_oprnd_ref, enum dw_cfi_oprnd_type,
15580 dw_cfi_oprnd, dw_cfi_node, cfi_vec, dw_cfa_location, dw_fde_node,
15581 dw_val_ref, dw_die_ref, const_dw_die_ref, dw_loc_descr_ref,
15582 dw_loc_list_ref, enum dw_val_class, dw_vec_const, dw_val_node,
15583 dw_loc_descr_node): Move to dwarf2out.h.
15584 (current_fde, output_cfi_directive, build_cfa_loc, get_address_mode,
15585 mem_loc_descriptor): Export.
15586 (build_cfa_aligned_loc): Export. Take CFA as a parameter.
15587 (dwarf2out_frame_init): Extract CIE generation code to
15588 dwarf2cfi_frame_init.
15590 2011-07-07 Eric Botcazou <ebotcazou@adacore.com>
15593 * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Add
15594 MASK_V8PLUS, remove commented out flag and reorder.
15596 2011-07-07 Jakub Jelinek <jakub@redhat.com>
15599 * c-typeck.c (build_binary_op): For MULT_EXPR and TRUNC_DIV_EXPR with
15600 one non-complex and one complex argument, call c_save_expr on both
15603 2011-07-07 Martin Jambor <mjambor@suse.cz>
15605 PR middle-end/49495
15606 * cgraphunit.c (verify_edge_corresponds_to_fndecl): New function.
15607 (verify_cgraph_node): Some functinality moved to
15608 verify_edge_corresponds_to_fndecl, call it.
15610 2011-07-07 Joseph Myers <joseph@codesourcery.com>
15612 * config.gcc (*local*): Remove.
15613 * doc/install-old.texi: Don't mention local configurations.
15615 2011-07-07 Jakub Jelinek <jakub@redhat.com>
15618 * df-problems.c (dead_debug_reset): Remove dead_debug_uses
15619 referencing debug insns that have been reset.
15620 (dead_debug_insert_before): Don't assert reg is non-NULL,
15621 instead return immediately if it is NULL.
15623 2011-07-07 Joseph Myers <joseph@codesourcery.com>
15625 * config/i386/t-crtpic, config/i386/t-svr3dbx, config/pa/t-pa: Remove.
15627 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
15629 * hw-doloop.c: New file.
15630 * hw-doloop.h: New file.
15631 * Makefile.in (OBJS): Add hw-doloop.o.
15632 (hw-doloop.o): New rule.
15633 ($(obj_out_file)): Add hw-doloop.h dependency.
15634 * config/bfin/bfin.c: Include "hw-doloop.h".
15635 (loop_info, DEF_VEC_P for loop_info, loop_info_d): Remove.
15636 (bfin_dump_loops, bfin_bb_in_loop, bfin_scan_loop): Remove.
15637 (hwloop_optimize): Renamed from bfin_optimize_loop. Argument
15638 type changed to hwloop_info. Return bool, true if the loop was
15639 successfully optimized. Remove code that was moved to
15640 hw-doloop.c, and adjust other parts.
15641 (hwloop_fail): New static function, containing parts that used
15642 to be in bfin_optimize_loop.
15643 (bfin_discover_loop, bfin_discover_loops, free_loops,
15644 bfin_reorder_loops): Remove.
15645 (hwloop_pattern_reg): New static function.
15646 (bfin_doloop_hooks): New variable.
15647 (bfin_reorg_loops): Remove most code, call reorg_loops.
15648 * config/bfin/bfin.md (doloop_end splitter): Also enable if
15649 loop counter is a memory_operand.
15651 2011-07-07 H.J. Lu <hongjiu.lu@intel.com>
15653 * config.gcc: Support --with-multilib-list for x86 Linux targets.
15655 * configure.ac: Mention x86-64 for --with-multilib-list.
15656 * configure: Regenerated.
15658 * config/i386/gnu-user64.h (SPEC_64): Support x32.
15659 (SPEC_32): Likewise.
15660 (ASM_SPEC): Likewise.
15661 (LINK_SPEC): Likewise.
15662 (TARGET_THREAD_SSP_OFFSET): Likewise.
15663 (TARGET_THREAD_SPLIT_STACK_OFFSET): Likewise.
15666 * config/i386/i386.h (TARGET_X32): New.
15667 (TARGET_LP64): New.
15668 (LONG_TYPE_SIZE): Likewise.
15669 (POINTER_SIZE): Likewise.
15670 (POINTERS_EXTEND_UNSIGNED): Likewise.
15671 (OPT_ARCH64): Support x32.
15672 (OPT_ARCH32): Likewise.
15674 * config/i386/i386.opt (mx32): New.
15676 * config/i386/kfreebsd-gnu64.h (GNU_USER_LINK_EMULATIONX32): New.
15677 (GLIBC_DYNAMIC_LINKERX32): Likewise.
15678 * config/i386/linux64.h (GNU_USER_LINK_EMULATIONX32): Likewise.
15679 (GLIBC_DYNAMIC_LINKERX32): Likewise.
15681 * config/linux.h (UCLIBC_DYNAMIC_LINKERX32): New.
15682 (BIONIC_DYNAMIC_LINKERX32): Likewise.
15683 (GNU_USER_DYNAMIC_LINKERX32): Likewise.
15685 * config/i386/t-linux64: Support TM_MULTILIB_CONFIG.
15687 * doc/install.texi: Document --with-multilib-list for Linux/x86-64.
15689 * doc/invoke.texi: Document -mx32.
15691 2011-07-07 Richard Sandiford <richard.sandiford@linaro.org>
15693 * doc/invoke.texi (mwords-little-endian): Deprecate.
15694 * config/arm/arm.opt (mwords-little-endian): Likewise.
15695 * config/arm/arm.c (arm_option_override): Warn about the deprecation
15696 of -mwords-little-endian.
15698 2011-07-07 Richard Sandiford <richard.sandiford@linaro.org>
15700 * reload1.c (choose_reload_regs): Use mode sizes to check whether
15701 an old reload register completely defines the required value.
15703 2011-07-07 Richard Guenther <rguenther@suse.de>
15705 * fold-const.c (fold_unary_loc): Do not strip sign-changes
15708 2011-07-07 Richard Guenther <rguenther@suse.de>
15710 * tree-vrp.c (simplify_conversion_using_ranges): New function.
15711 (simplify_stmt_using_ranges): Call it.
15713 2011-07-07 Kai Tietz <ktietz@redhat.com>
15715 * tree-ssa-forwprop.c (truth_valued_ssa_name): New function.
15716 (lookup_logical_inverted_value): Likewise.
15717 (simplify_bitwise_binary_1): Likewise.
15718 (simplify_bitwise_binary): Use simplify_bitwise_binary_1.
15720 2011-07-07 Joseph Myers <joseph@codesourcery.com>
15722 * gcc.c (%[Spec]): Don't document.
15723 (struct spec_list): Update comment.
15724 (do_spec_1): Don't handle %[Spec].
15725 * doc/invoke.texi (%[@var{name}]): Remove documentation of spec.
15727 2011-07-07 Joseph Myers <joseph@codesourcery.com>
15729 * common/common-target-def.h (TARGET_HAVE_NAMED_SECTIONS): Don't
15730 default based on TARGET_ASM_NAMED_SECTION.
15731 * common/common-target.def (have_named_sections): Default to true.
15732 * common/config/default-common.c: Don't include tm.h.
15733 * common/config/picochip/picochip-common.c
15734 (TARGET_HAVE_NAMED_SECTIONS): Don't define.
15735 * common/config/m32c/m32c-common.c: Remove.
15736 * config.gcc (m32c*-*-*): Set target_has_targetm_common=no.
15737 * config/alpha/osf5.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
15738 * config/i386/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
15739 * config/m68k/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
15740 * config/pa/som.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
15741 * config/pdp11/pdp11.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
15742 * config/vax/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
15744 2011-07-07 Jakub Jelinek <jakub@redhat.com>
15746 PR middle-end/49640
15747 * gimplify.c (gimplify_compound_lval): For last 2 ARRAY_*REF operands
15748 and last COMPONENT_REF operand call gimplify_expr on it if non-NULL.
15750 2011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15752 PR libmudflap/49550
15753 * gcc.c (MFWRAP_SPEC): Also wrap mmap64.
15755 2011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15758 * configure.ac (gcc_cv_as_hidden): Also accept
15759 x86_64-*-solaris2.1[0-9]*.
15760 (gcc_cv_as_cfi_directive): Likewise.
15761 (gcc_cv_as_comdat_group_group): Likewise.
15762 (set_have_as_tls): Likewise.
15763 * configure: Regenerate.
15764 * config.gcc (i[34567]86-*-solaris2*): Also handle
15765 x86_64-*-solaris2.1[0-9]*.
15766 * config.host (i[34567]86-*-solaris2*): Likewise.
15767 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
15768 * config/sol2-bi.h (ASM_CPU_DEFAULT_SPEC): Redefine.
15769 [USE_GLD] (ARCH_DEFAULT_EMULATION): Define.
15770 (TARGET_LD_EMULATION): Use it.
15771 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC): Define.
15772 (SUBTARGET_CPU_EXTRA_SPECS): Add asm_cpu_default.
15773 * config/i386/sol2-bi.h (ASM_CPU32_DEFAULT_SPEC): Define.
15774 (ASM_CPU64_DEFAULT_SPEC): Define.
15775 (ASM_CPU_SPEC): Use %(asm_cpu_default).
15776 (ASM_SPEC): Redefine.
15777 (DEFAULT_ARCH32_P): Define using TARGET_64BIT_DEFAULT.
15778 * config/host-solaris.c [__x86_64__] (TRY_EMPTY_VM_SPACE): Reduce.
15779 * doc/install.texi (Specific, amd64-*-solaris2.1[0-9]*): Document.
15780 (Specific, i?86-*-solaris2.10): Mention x86_64-*-solaris2.1[0-9]*
15782 (Specific, x86_64-*-solaris2.1[0-9]*): Document.
15784 2011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15786 * config/sol2.h (ASM_SPEC): Split into ...
15787 (ASM_SPEC_BASE, ASM_PIC_SPEC): ... this.
15788 * config/i386/sol2.h (ASM_SPEC): Define using ASM_SPEC_BASE.
15789 * config/i386/sol2-bi.h (ASM_CPU_SPEC): Redefine.
15790 (ASM_SPEC): Use ASM_SPEC_BASE.
15791 * config/sparc/sol2.h (ASM_SPEC): Redefine.
15793 2011-07-07 Georg-Johann Lay <avr@gjlay.de>
15795 * config/avr/avr.md (*reload_insi): Change predicate #1 to
15796 const_int_operand. Ditto for peep2 producing this insn.
15797 Add argument to output_reload_insisf call.
15798 (*movsi,*movsf): Add argument to output_movsisf call.
15799 (*reload_insf): New insn and new peep2 to produce it.
15800 * config/avr/avr-protos.h (output_movsisf): Change prototype.
15801 (output_reload_insisf): Change prototype.
15802 * config/avr/avr.c (avr_asm_len): New function.
15803 (output_reload_insisf): Rewrite.
15804 (output_movsisf): Change prototype. output_reload_insisf for
15805 all CONST_INT and CONST_DOUBLE. ALlow moving 0.0f to memory.
15806 (adjust_insn_length): Add argument to output_movsisf and
15807 output_reload_insisf call.
15809 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
15811 * emit-rtl.c (paradoxical_subreg_p): New function.
15812 * rtl.h (paradoxical_subreg_p): Declare.
15813 * combine.c (set_nonzero_bits_and_sign_copies, get_last_value,
15814 apply_distributive_law, simplify_comparison, simplify_set): Use it.
15815 * cse.c (record_jump_cond, cse_insn): Likewise.
15816 * expr.c (force_operand): Likewise.
15817 * rtlanal.c (num_sign_bit_copies1): Likewise.
15818 * reload1.c (eliminate_regs_1, strip_paradoxical_subreg): Likewise.
15819 * reload.c (push_secondary_reload, find_reloads_toplev): Likewise.
15820 (push_reload): Use precision to check for paradoxical subregs.
15821 * expmed.c (extract_bit_field_1): Likewise.
15823 * machmode.h (HWI_COMPUTABLE_MODE_P): New macro.
15824 * combine.c (set_nonzero_bits_and_sign_copies): Use it.
15825 (find_split-point, combine_simplify_rtx, simplify_if_then_else,
15826 simplify_set, simplify_logical, expand_compound_operation,
15827 make_extraction, force_to_mode, if_then_else_cond, extended_count,
15828 try_widen_shift_mode, simplify_shift_const_1, simplify_comparison,
15829 record_value_for_reg): Likewise.
15830 * expmed.c (expand_widening_mult, expand_mult_highpart): Likewise.
15831 * simplify-rtx. c (simplify_unary_operation_1,
15832 simplify_binary_operation_1, simplify_const_relational_operation):
15835 * explow.c (trunc_int_for_mode): Use GET_MODE_PRECISION
15836 instead of GET_MODE_BITSIZE where appropriate.
15837 * rtlanal.c (subreg_lsb_1, subreg_get_info, nonzero_bits1,
15838 num_sign_bit_copies1, canonicalize_condition, low_bitmask_len,
15839 init_num_sign_bit_copies_in_rep): Likewise.
15840 * cse.c (fold_rtx, cse_insn): Likewise.
15841 * loop-doloop.c (doloop_modify, doloop_optimize): Likewise.
15842 * simplify-rtx.c (simplify_unary_operation_1,
15843 simplify_const_unary_operation, simplify_binary_operation_1,
15844 simplify_const_binary_operation, simplify_ternary_operation,
15845 simplify_const_relational_operation, simplify_subreg): Likewise.
15846 * combine.c (try_combine, find_split_point, combine_simplify_rtx,
15847 simplify_if_then_else, simplify_set, expand_compound_operation,
15848 expand_field_assignment, make_extraction, if_then_else_cond,
15849 make_compound_operation, force_to_mode, make_field_assignment,
15850 reg_nonzero_bits_for_combine, reg_num_sign_bit_copies_for_combine,
15851 extended_count, try_widen_shift_mode, simplify_shift_const_1,
15852 simplify_comparison, record_promoted_value, simplify_compare_const,
15853 record_dead_and_set_regs_1): Likewise.
15856 * simplify-rtx.c (simplify_const_binary_operation): Use the
15857 shift_truncation_mask hook instead of performing modulo by width.
15858 Compare against mode precision, not bitsize.
15859 * combine.c (combine_simplify_rtx, simplify_shift_const_1):
15860 Use shift_truncation_mask instead of constructing the value manually.
15862 2011-07-06 Michael Meissner <meissner@linux.vnet.ibm.com>
15864 * config/rs6000/rs6000-protos.h (rs6000_call_indirect_aix): New
15866 (rs6000_save_toc_in_prologue_p): Ditto.
15868 * config/rs6000/rs6000.opt (-mr11): New switch to disable loading
15869 up the static chain (r11) during indirect function calls.
15870 (-msave-toc-indirect): New undocumented debug switch.
15872 * config/rs6000/rs6000.c (struct machine_function): Add
15873 save_toc_in_prologue field to note whether the prologue needs to
15874 save the TOC value in the reserved stack location.
15875 (rs6000_emit_prologue): Use TOC_REGNUM instead of 2. If we need
15876 to save the TOC in the prologue, do so.
15877 (rs6000_trampoline_init): Don't allow creating AIX style
15878 trampolines if -mno-r11 is in effect.
15879 (rs6000_call_indirect_aix): New function to create AIX style
15880 indirect calls, adding support for -mno-r11 to suppress loading
15881 the static chain, and saving the TOC in the prologue instead of
15883 (rs6000_save_toc_in_prologue_p): Return true if we are saving the
15884 TOC in the prologue.
15886 * config/rs6000/rs6000.md (STACK_POINTER_REGNUM): Add more fixed
15888 (TOC_REGNUM): Ditto.
15889 (STATIC_CHAIN_REGNUM): Ditto.
15890 (ARG_POINTER_REGNUM): Ditto.
15891 (SFP_REGNO): Delete, unused.
15892 (TOC_SAVE_OFFSET_32BIT): Add constants for AIX TOC save and
15893 function descriptor offsets.
15894 (TOC_SAVE_OFFSET_64BIT): Ditto.
15895 (AIX_FUNC_DESC_TOC_32BIT): Ditto.
15896 (AIX_FUNC_DESC_TOC_64BIT): Ditto.
15897 (AIX_FUNC_DESC_SC_32BIT): Ditto.
15898 (AIX_FUNC_DESC_SC_64BIT): Ditto.
15899 (ptrload): New mode attribute for the appropriate load of a pointer.
15900 (call_indirect_aix32): Delete, rewrite AIX indirect function calls.
15901 (call_indirect_aix64): Ditto.
15902 (call_value_indirect_aix32): Ditto.
15903 (call_value_indirect_aix64): Ditto.
15904 (call_indirect_nonlocal_aix32_internal): Ditto.
15905 (call_indirect_nonlocal_aix32): Ditto.
15906 (call_indirect_nonlocal_aix64_internal): Ditto.
15907 (call_indirect_nonlocal_aix64): Ditto.
15908 (call): Rewrite AIX indirect function calls. Add support for
15909 eliminating the static chain, and for moving the save of the TOC
15910 to the function prologue.
15911 (call_value): Ditto.
15912 (call_indirect_aix<ptrsize>): Ditto.
15913 (call_indirect_aix<ptrsize>_internal): Ditto.
15914 (call_indirect_aix<ptrsize>_internal2): Ditto.
15915 (call_indirect_aix<ptrsize>_nor11): Ditto.
15916 (call_value_indirect_aix<ptrsize>): Ditto.
15917 (call_value_indirect_aix<ptrsize>_internal): Ditto.
15918 (call_value_indirect_aix<ptrsize>_internal2): Ditto.
15919 (call_value_indirect_aix<ptrsize>_nor11): Ditto.
15920 (call_nonlocal_aix32): Relocate in the rs6000.md file.
15921 (call_nonlocal_aix64): Ditto.
15923 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mr11 and
15924 -mno-r11 documentation.
15926 2011-07-06 Jonathan Wakely <jwakely.gcc@gmail.com>
15929 * doc/extend.texi (Compound Literals): Fix typo.
15931 2011-07-06 James Greenhalgh <james.greenhalgh@arm.com>
15933 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Add __ARM_FEATURE_DSP.
15935 2011-07-06 Basile Starynkevitch <basile@starynkevitch.net>
15937 * configure.ac (plugin-version.h): Generate
15938 GCCPLUGIN_VERSION_MAJOR, GCCPLUGIN_VERSION_MINOR,
15939 GCCPLUGIN_VERSION_PATCHLEVEL, GCCPLUGIN_VERSION constant integer
15942 * configure: Regenerate.
15944 * doc/plugins.texi (Building GCC plugins): Mention
15945 GCCPLUGIN_VERSION ... constant macros in plugin-version.h.
15947 2011-07-06 Bernd Schmidt <bernds@codesourcery.com>
15949 * machmode.h (TRULY_NOOP_TRUNCATION_MODES_P): New macro.
15950 * combine.c (make_extraction, gen_lowpart_or_truncate,
15951 apply_distributive_law, simplify_comparison,
15952 reg_truncated_to_mode, record_truncated_value): Use it.
15953 * cse.c (notreg_cost): Likewise.
15954 * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
15955 * expr.c (convert_move, convert_modes): Likewise.
15956 * optabs.c (expand_binop, expand_unop): Likewise.
15957 * postreload.c (move2add_last_label): Likewise.
15958 * regmove.c (optimize_reg_copy_3): Likewise.
15959 * rtlhooks.c (gen_lowpart_general): Likewise.
15960 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
15962 2011-07-06 Joseph Myers <joseph@codesourcery.com>
15964 * config/rs6000/vxworks.h (WORDS_BIG_ENDIAN): Define.
15966 2011-07-06 Bernd Schmidt <bernds@codesourcery.com>
15968 * cse.c (find_comparison_args): Use val_mode_signbit_set_p.
15969 * simplify-rtx.c (mode_signbit_p): Use GET_MODE_PRECISION.
15970 (val_mode_signbit_p, val_mode_signbit_set_p): New functions.
15971 (simplify_const_unary_operation, simplify_binary_operation_1,
15972 simplify_const_binary_operation, simplify_const_relational_operation):
15973 Use them. Use GET_MODE_MASK for masking and sign-extensions.
15974 * combine.c (set_nonzero_bits_and_sign_copies, simplify_set,
15975 combine_simplify_rtx, force_to_mode, reg_nonzero_bits_for_combine,
15976 simplify_shift_const_1, simplify_comparison): Likewise.
15977 * expr.c (convert_modes): Likewise.
15978 * rtlanal.c (nonzero_bits1, canonicalize_condition): Likewise.
15979 * expmed.c (emit_cstore, emit_store_flag_1, emit_store_flag): Likewise.
15980 * rtl.h (val_mode_signbit_p, val_mode_signbit_set_p): Declare.
15982 * simplify-rtx.c (simplify_ternary_operation): Remove dead code.
15984 2011-07-06 Richard Guenther <rguenther@suse.de>
15986 PR tree-optimization/49645
15987 * c-decl.c (finish_decl): Also set DECL_HARD_REGISTER for global
15988 register variables.
15989 * tree-ssa-sccvn.c (vn_reference_op_eq): Disregard differences
15990 in type qualification here ...
15991 (copy_reference_ops_from_ref): ... not here.
15992 (vn_reference_lookup_3): ... or here.
15993 (copy_reference_ops_from_ref): Record decl bases as MEM[&decl].
15994 (vn_reference_lookup): Do the lookup with a valueized ao-ref.
15996 2011-07-06 Ian Lance Taylor <iant@google.com>
15998 * doc/install.texi (Configuration): It's
15999 --enable-gnu-indirect-function, not --enable-indirect-function.
16001 2011-07-06 Bernd Schmidt <bernds@codesourcery.com>
16003 * simplify-rtx.c (simplify_const_binary_operation): Use the
16004 shift_truncation_mask hook instead of performing modulo by width.
16005 Compare against mode precision, not bitsize.
16006 * combine.c (combine_simplify_rtx, simplify_shift_const_1):
16007 Use shift_truncation_mask instead of constructing the value manually.
16009 2011-07-06 H.J. Lu <hongjiu.lu@intel.com>
16011 PR middle-end/47383
16012 * tree-ssa-address.c (addr_for_mem_ref): Use pointer_mode for
16013 address computation and convert to address_mode if needed.
16015 2011-07-06 Richard Guenther <rguenther@suse.de>
16017 * tree.c (build_common_tree_nodes_2): Merge with
16018 build_common_tree_nodes.
16019 * tree.h (build_common_tree_nodes): Adjust prototype.
16020 (build_common_tree_nodes_2): Remove.
16021 * doc/tm.texi.in (lang_hooks.builtin_function): Adjust.
16022 * doc/tm.texi (lang_hooks.builtin_function): Regenerate.
16024 2011-07-05 Jakub Jelinek <jakub@redhat.com>
16026 PR tree-optimization/49618
16027 * tree-eh.c (tree_could_trap_p) <case CALL_EXPR>: For DECL_WEAK
16028 t recurse on the decl.
16029 <case FUNCTION_DECL, case VAR_DECL>: For DECL_WEAK decls
16030 return true if expr isn't known to be defined in current
16031 TU or some other LTO partition.
16033 2011-07-05 Michael Meissner <meissner@linux.vnet.ibm.com>
16035 * params.def (PARAM_CASE_VALUES_THRESHOLD): New parameter to
16036 override CASE_VALUES_THRESHOLD.
16038 * stmt.c (toplevel): Include params.h.
16039 (case_values_threshold): Use the --param case-values-threshold
16040 value if non-zero, otherwise use machine dependent value.
16041 (expand_case): Use case_values_threshold.
16043 * Makefile.in (stmt.o): Add $(PARAMS_H) dependency.
16045 * doc/invoke.texi (--param case-values-threshold): Document.
16047 2011-07-05 Richard Henderson <rth@redhat.com>
16049 * dwarf2out.c (dwarf2out_cfi_label): Make static.
16050 (dwarf2out_flush_queued_reg_saves): Make static.
16051 (dwarf2out_reg_save): Remove.
16052 (dwarf2out_return_save): Remove.
16053 (dwarf2out_return_reg): Remove.
16054 (dwarf2out_reg_save_reg): Remove.
16055 (dwarf2out_def_cfa): Merge into ...
16056 (dwarf2out_frame_init): ... here.
16057 * dwarf2out.h, tree.h: Remove declarations as necessary.
16059 2011-07-05 Richard Henderson <rth@redhat.com>
16061 * config/ia64/ia64.c (ia64_dwarf_handle_frame_unspec): Remove.
16062 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
16063 (ia64_expand_epilogue): Emit an empty FRAME_RELATED_EXPR for
16066 * config/ia64/ia64.c (ia64_emit_deleted_label_after_insn): Remove.
16067 (IA64_CHANGE_CFA_IN_EPILOGUE): Remove.
16068 (process_epilogue): Don't call dwarf2out_def_cfa.
16070 * config/ia64/ia64.c (ia64_expand_prologue): Use pc_rtx to
16071 indicate the return address save.
16072 (process_cfa_register): Likewise.
16074 * config/ia64/ia64.c (ia64_dwarf2out_def_steady_cfa): Remove.
16075 (process_cfa_adjust_cfa, ia64_asm_unwind_emit): Don't call it.
16077 * config/ia64/ia64.c (ia64_expand_prologue): Emit REG_CFA_REGISTER
16078 for ar.pfs save at alloc insn.
16080 2011-07-05 Richard Henderson <rth@redhat.com>
16082 * config/arm/arm.c (arm_dwarf_handle_frame_unspec): Remove.
16083 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
16084 (arm_expand_prologue): Use REG_CFA_REGISTER to mark the
16085 stack pointer save.
16086 (arm_unwind_emit_set): Don't recognize UNSPEC_STACK_ALIGN.
16087 (arm_unwind_emit): Walk REG_NOTES for unwinding notes. Emit
16088 proper unwind info for a REG_CFA_REGISTER save of stack pointer.
16089 * config/arm/arm.md (UNSPEC_STACK_ALIGN): Remove.
16091 2011-07-05 Richard Henderson <rth@redhat.com>
16093 * config/vax/vax.md (define_c_enum unspecv): New. Define the
16094 VUNSPEC_* constants here instead of via define_constants.
16095 (VUNSPEC_PEM): New constant.
16096 (procedure_entry_mask): New insn.
16097 (prologue): New expander.
16098 * config/vax/vax.c (vax_add_reg_cfa_offset): New.
16099 (vax_expand_prologue): Rename from vax_output_function_prologue;
16100 emit rtl instead of text.
16101 (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
16102 (print_operand): Add 'x' prefix.
16104 2011-07-05 H.J. Lu <hongjiu.lu@intel.com>
16106 PR middle-end/47715
16107 * calls.c (precompute_register_parameters): Promote the function
16108 argument before checking non-legitimate constant.
16110 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
16112 PR tree-optimization/47654
16113 * graphite-blocking.c (pbb_strip_mine_time_depth): Do not return bool.
16114 (lst_do_strip_mine_loop): Return an int.
16115 (lst_do_strip_mine): Same.
16116 (scop_do_strip_mine): Same.
16117 (scop_do_block): Loop blocking should strip-mine at least two loops.
16118 * graphite-interchange.c (lst_interchange_select_outer): Return an int.
16119 (scop_do_interchange): Same.
16120 * graphite-poly.h (scop_do_interchange): Update declaration.
16121 (scop_do_strip_mine): Same.
16123 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
16125 * graphite-clast-to-gimple.c (precision_for_value): Removed.
16126 (precision_for_interval): Removed.
16127 (gcc_type_for_interval): Use mpz_sizeinbase.
16129 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
16131 * graphite-ppl.h (value_max): Correct computation of max.
16133 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
16135 * graphite-clast-to-gimple.c (clast_name_to_index): Add missing space.
16137 2011-07-05 Richard Guenther <rguenther@suse.de>
16139 * c-decl.c (c_init_decl_processing): Defer building common
16140 tree nodes to c_common_nodes_and_builtins.
16142 2011-07-05 Razya Ladelsky <razya@il.ibm.com>
16144 PR tree-optimization/49580
16145 * tree-cfg.c (gimple_duplicate_sese_tail): Remove handling of
16146 the loop's number of iterations.
16147 * tree-parloops.c (transform_to_exit_first_loop): Add the
16148 handling of the loop's number of iterations before the call
16149 to gimple_duplicate_sese_tail.
16150 Insert the stmt caclculating the new rhs of the loop's
16151 condition stmt to the preheader instead of iters_bb.
16153 2011-07-05 H.J. Lu <hongjiu.lu@intel.com>
16155 PR rtl-optimization/47449
16156 * fwprop.c (forward_propagate_subreg): Don't propagate hard
16157 register nor zero/sign extended hard register.
16159 2011-07-05 Richard Guenther <rguenther@suse.de>
16161 PR tree-optimization/49518
16162 PR tree-optimization/49628
16163 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Skip
16164 irrelevant and invariant data-references.
16165 (vect_analyze_data_ref_access): For invariant loads clear the
16168 2011-07-04 Jakub Jelinek <jakub@redhat.com>
16170 PR rtl-optimization/49619
16171 * combine.c (combine_simplify_rtx): In PLUS -> IOR simplification
16172 pass VOIDmode as op0_mode to recursive call, and return temp even
16173 when different from tor, just if it is not IOR of the original
16176 PR rtl-optimization/49472
16177 * simplify-rtx.c (simplify_unary_operation_1) <case NEG>: When
16178 negating MULT, negate the second operand instead of first.
16179 (simplify_binary_operation_1) <case MULT>: If one operand is
16180 a NEG and the other is MULT, don't attempt to optimize by negation
16181 of the MULT operand if it only moves the NEG operation around.
16184 * tree-into-ssa.c (rewrite_debug_stmt_uses): Disregard
16185 get_current_def return value if it can't be trusted to be
16186 the current value of the variable in the current bb.
16188 2011-07-04 Uros Bizjak <ubizjak@gmail.com>
16191 * config/i386/i386.md (SSE2 int->float split): Push operand 1 in
16192 general register to memory for !TARGET_INTER_UNIT_MOVES.
16194 2011-07-04 Georg-Johann Lay <avr@gjlay.de>
16197 * config/avr/avr.c (avr_insert_attributes): Use TYPE_READONLY
16198 instead of TREE_READONLY.
16200 2011-07-04 Georg-Johann Lay <avr@gjlay.de>
16202 * doc/extend.texi (AVR Built-in Functions): Update documentation
16203 of __builtin_avr_fmul*.
16204 * config/avr/avr.c (avr_init_builtins): Don't depend on AVR_HAVE_MUL.
16205 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Ditto.
16206 * config/avr/avr.md (fmul): Rename to fmul_insn.
16207 (fmuls): Rename to fmuls_insn.
16208 (fmulsu): Rename to fmulsu_insn.
16209 (fmul,fmuls,fmulsu): New expander.
16210 (*fmul.call,*fmuls.call,*fmulsu.call): New Insn.
16211 * config/avr/t-avr (LIB1ASMFUNCS): Add _fmul, _fmuls, _fmulsu.
16212 * config/avr/libgcc.S (__fmul): New function.
16213 (__fmuls): New function.
16214 (__fmulsu,__fmulsu_exit): New function.
16216 2011-07-04 Richard Guenther <rguenther@suse.de>
16218 PR tree-optimization/49615
16219 * tree-cfgcleanup.c (split_bbs_on_noreturn_calls): Fix
16220 basic-block index check.
16222 2011-07-04 Georg-Johann Lay <avr@gjlay.de>
16224 * longlong.h (count_leading_zeros, count_trailing_zeros,
16225 COUNT_LEADING_ZEROS_0): Define for target avr if W_TYPE_SIZE is 16
16228 2011-07-03 Ira Rosen <ira.rosen@linaro.org>
16230 PR tree-optimization/49610
16231 * tree-vect-loop.c (vect_is_slp_reduction): Check that DEF_STMT has
16234 2011-07-02 Eric Botcazou <ebotcazou@adacore.com>
16235 Olivier Hainque <hainque@adacore.com>
16236 Nicolas Setton <setton@adacore.com>
16238 * tree.h (TYPE_ARTIFICIAL): New flag.
16239 * dwarf2out.c (modified_type_die): Add a DW_AT_artificial attribute to
16240 the DIE of the type if it is artificial.
16241 (gen_array_type_die): Likewise.
16242 (gen_enumeration_type_die): Likewise.
16243 (gen_struct_or_union_type_die): Likewise.
16244 * lto-streamer-in.c (unpack_ts_base_value_fields): Use TYPE_ARTIFICIAL.
16245 * lto-streamer-out.c (pack_ts_base_value_fields): Likewise.
16247 2011-07-01 Jakub Jelinek <jakub@redhat.com>
16249 * tree-object-size.c (pass_through_call): Handle
16250 BUILT_IN_ASSUME_ALIGNED.
16252 2011-07-01 Martin Jambor <mjambor@suse.cz>
16254 * tree-sra.c (tree_non_mode_aligned_mem_p): Also ignore MEM_REFs.
16256 2011-07-01 H.J. Lu <hongjiu.lu@intel.com>
16258 PR middle-end/48016
16259 * explow.c (update_nonlocal_goto_save_area): Use proper mode
16260 for stack save area.
16261 * function.c (expand_function_start): Likewise.
16263 2011-07-01 Richard Guenther <rguenther@suse.de>
16265 PR middle-end/49596
16266 * cgraph.h (varpool_all_refs_explicit_p): Not analyzed nodes
16267 may have unknown refs.
16269 2011-07-01 Kai Tietz <ktietz@redhat.com>
16271 * tree-ssa-forwprop.c (simplify_bitwise_binary): Fix typo.
16273 2011-07-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16275 * config.gcc: Obsolete alpha*-dec-osf5.1, mips-sgi-irix6.5.
16276 * doc/install.texi (Specific, alpha*-dec-osf5.1): Document it.
16277 (Specific, mips-sgi-irix6): Likewise.
16279 2011-07-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16281 PR libmudflap/49549
16282 * doc/sourcebuild.texi (Effective-Target Keywords): Document gld.
16284 2011-07-01 Jakub Jelinek <jakub@redhat.com>
16286 * tree-pretty-print.c (dump_generic_code) <case CONSTRUCTOR>: Print
16287 [idx]= and [idx1 ... idx2]= before initializers if needed for
16288 array initializers.
16290 2011-07-01 Chen Liqin <liqin.gcc@gmail.com>
16292 * config.gcc (score-*-elf): Remove score7.o.
16293 * config/score/t-score-elf: Likewise.
16294 * config/score/score.c: Merge score7 to score.c and
16295 remove forwarding functions.
16296 * config/score/score7.c: Deleted.
16297 * config/score/score7.h: Deleted.
16299 2011-07-01 Richard Guenther <rguenther@suse.de>
16301 PR tree-optimization/49603
16302 * tree-vect-stmts.c (vectorizable_load): Remove unnecessary assert.
16304 2011-06-30 Martin Jambor <mjambor@suse.cz>
16306 * tree-sra.c (struct access): Rename total_scalarization to
16307 grp_total_scalarization
16308 (completely_scalarize_var): New function.
16309 (sort_and_splice_var_accesses): Set total_scalarization in the
16310 representative access.
16311 (analyze_access_subtree): Propagate total scalarization accross the
16312 tree, no holes in totally scalarized trees, simplify coverage
16314 (analyze_all_variable_accesses): Call completely_scalarize_var instead
16315 of completely_scalarize_record.
16317 2011-06-30 Richard Henderson <rth@redhat.com>
16319 * config/i386/i386.h (X86_TUNE_DEEP_BRANCH_PREDICTION): Remove.
16320 (TARGET_DEEP_BRANCH_PREDICTION): Remove.
16321 * config/i386/i386.c: Don't include dwarf2out.h.
16322 (initial_ix86_tune_features): Remove X86_TUNE_DEEP_BRANCH_PREDICTION.
16323 (output_set_got): Don't test TARGET_DEEP_BRANCH_PREDICTION, delete
16324 all code dead thereafter. Don't do dwarf2out_flush_queued_reg_saves.
16325 (ix86_expand_prologue): Set REG_CFA_FLUSH_QUEUE on set_got insn.
16326 (machopic_output_stub): Don't test TARGET_DEEP_BRANCH_PREDICTION.
16328 2011-06-30 Richard Henderson <rth@redhat.com>
16330 * reg-notes.def (REG_CFA_FLUSH_QUEUE): New.
16331 * dwarf2out.c (dwarf2out_frame_debug): Handle it.
16332 * final.c (final_scan_insn): Look for it, and invoke
16333 dwarf2out_frame_debug before the insn if found.
16335 2011-06-30 Richard Henderson <rth@redhat.com>
16337 * dwarf2out.c (dwarf2out_frame_debug_cfa_offset): Allow PC_RTX
16338 as a source, and interpret that as DWARF_FRAME_RETURN_COLUMN.
16340 2011-06-30 Richard Henderson <rth@redhat.com>
16342 * dwarf2out.c (struct reg_saved_in_data): Provide a typedef.
16343 Define a vector of this type.
16344 (regs_saved_in_regs): Use a VEC.
16345 (num_regs_saved_in_regs): Remove.
16346 (compare_reg_or_pc): New.
16347 (record_reg_saved_in_reg): Split out from...
16348 (dwarf2out_flush_queued_reg_saves): ... here.
16349 (clobbers_queued_reg_save): Update for VEC.
16350 (reg_saved_in): Likewise.
16351 (dwarf2out_frame_debug_init): Likewise.
16352 (dwarf2out_reg_save_reg): Use record_reg_saved_in_reg.
16353 (dwarf2out_frame_debug_cfa_register): Likewise.
16355 2011-06-30 Eric Botcazou <ebotcazou@adacore.com>
16357 PR tree-optimization/49572
16358 * tree-ssa-dom.c (initialize_hash_element) <GIMPLE_SINGLE_RHS>: Use the
16359 type of the RHS instead of that of the LHS for the expression type.
16361 2011-06-30 Eric Botcazou <ebotcazou@adacore.com>
16363 * df-scan.c (df_get_entry_block_def_set): Use INCOMING_REGNO macro
16366 2011-06-30 Richard Guenther <rguenther@suse.de>
16368 * opts.c (finish_options): Do not disable IPA-PTA during ltrans.
16369 * tree-ssa-structalias.c (create_variable_info_for): Do not
16370 add initial constraints for non-var-decls. Properly handle
16371 globals in other ltrans partitions.
16372 (intra_create_variable_infos): Manually create constraints for
16373 the fake no-alias parameter.
16374 (ipa_pta_execute): Dump the cgraph, handle ltrans partitions properly
16375 and assert there are no clones.
16377 2011-06-30 Richard Guenther <rguenther@suse.de>
16379 PR tree-optimization/46787
16380 * tree-data-ref.c (dr_address_invariant_p): Remove.
16381 (find_data_references_in_stmt): Invariant accesses are ok now.
16382 * tree-vect-stmts.c (vectorizable_load): Handle invariant loads.
16383 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
16386 2011-06-30 Martin Jambor <mjambor@suse.cz>
16388 PR tree-optimization/49094
16389 * tree-sra.c (tree_non_mode_aligned_mem_p): New function.
16390 (build_accesses_from_assign): Use it.
16392 2011-06-30 Jakub Jelinek <jakub@redhat.com>
16394 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
16395 handling of BUILT_IN_ASSUME_ALIGNED.
16398 * dwarf2out.c (output_abbrev_section): Don't return early
16399 if abbrev_die_table_in_use is 1.
16400 (dwarf2out_finish): Instead don't call output_abbrev_section
16401 nor emit abbrev_section_label in that case.
16403 2011-06-30 Nick Clifton <nickc@redhat.com>
16405 * config/v850/v850.h (CPP_SPEC): Define __v850e__ when compiling
16408 2011-06-30 Jakub Jelinek <jakub@redhat.com>
16410 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
16411 handling of BUILT_IN_MEMPCPY_CHK and BUILT_IN_STPCPY_CHK.
16413 2011-06-30 Ira Rosen <ira.rosen@linaro.org>
16415 * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
16416 both pattern and original statements if necessary.
16417 (vect_transform_loop): Likewise.
16418 * tree-vect-patterns.c (vect_pattern_recog): Update documentation.
16419 * tree-vect-stmts.c (vect_mark_relevant): Add new argument.
16420 Mark the pattern statement only if the original statement doesn't
16422 (process_use): Call vect_mark_relevant with additional parameter.
16423 (vect_mark_stmts_to_be_vectorized): Likewise.
16424 (vect_get_vec_def_for_operand): Use vectorized pattern statement.
16425 (vect_analyze_stmt): Handle both pattern and original statements
16427 (vect_transform_stmt): Don't store vectorized pattern statement
16428 in the original statement.
16429 (vect_is_simple_use_1): Use related pattern statement only if the
16430 original statement is irrelevant.
16431 * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
16433 2011-06-29 Changpeng Fang <changpeng.fang@amd.com>
16435 * config/i386/i386.opt (mprefer-avx128): Redefine the flag as a Mask
16437 * config/i386/i386.h (ix86_tune_indices): Add X86_TUNE_AVX128_OPTIMAL
16439 (TARGET_AVX128_OPTIMAL): New definition.
16440 * config/i386/i386.c (initial_ix86_tune_features): Initialize
16441 X86_TUNE_AVX128_OPTIMAL entry.
16442 (ix86_option_override_internal): Enable the generation
16443 of the 128-bit instructions when TARGET_AVX128_OPTIMAL is set.
16444 (ix86_preferred_simd_mode): Use TARGET_PREFER_AVX128.
16445 (ix86_autovectorize_vector_sizes): Use TARGET_PREFER_AVX128.
16447 2011-06-29 Eric Botcazou <ebotcazou@adacore.com>
16449 PR tree-optimization/49539
16450 * tree-ssa-forwprop.c (can_propagate_from): Check for abnormal SSA
16451 names by means of stmt_references_abnormal_ssa_name.
16452 (associate_plusminus): Call can_propagate_from before propagating
16453 from definition statements.
16454 (ssa_forward_propagate_and_combine): Remove superfluous newline.
16456 2011-06-29 Richard Guenther <rguenther@suse.de>
16458 * doc/invoke.texi: Document -scev dump modifier.
16459 * tree-pass.h (TDF_SCEV): New dump flag.
16460 * tree-dump.c (dump_option_value_in): Add scev.
16461 * tree-chrec.c: Replace all TDF_DETAILS checks with TDF_SCEV.
16462 * tree-scalar-evolution.c: Likewise.
16464 2011-06-29 Nathan Sidwell <nathan@codesourcery.com>
16466 * config/arm/unwind-arm.c (enum __cxa_type_match_result): New.
16467 (cxa_type_match): Correct declaration.
16468 (__gnu_unwind_pr_common): Reconstruct additional indirection
16469 when __cxa_type_match returns succeeded_with_ptr_to_base.
16471 2011-06-29 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16473 PR rtl-optimization/49114
16474 * reload.c (struct replacement): Remove SUBREG_LOC member.
16475 (push_reload): Do not set it.
16476 (push_replacement): Likewise.
16477 (subst_reload): Remove dead code.
16478 (copy_replacements): Remove assertion.
16479 (copy_replacements_1): Do not handle SUBREG_LOC.
16480 (move_replacements): Likewise.
16481 (find_replacement): Remove dead code. Use reload_adjust_reg_for_mode.
16482 Detect subregs via recursive descent instead of via SUBREG_LOC.
16484 2011-06-29 Georg-Johann Lay <avr@gjlay.de>
16486 * config/avr/avr.c (avr_encode_section_info): Dispatch to
16487 default_encode_section_info.
16489 2011-06-29 Richard Sandiford <richard.sandiford@linaro.org>
16491 PR tree-optimization/49545
16492 * builtins.c (get_object_alignment_1): Update function comment.
16493 Do not use DECL_ALIGN for functions, but test
16494 TARGET_PTRMEMFUNC_VBIT_LOCATION instead.
16495 * fold-const.c (get_pointer_modulus_and_residue): Don't check
16496 for functions here.
16497 * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
16499 2011-06-29 Jakub Jelinek <jakub@redhat.com>
16502 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTEND>: Give up for
16503 non-MODE_INT modes instead of asserting the mode has MODE_INT class.
16505 2011-06-29 Georg-Johann Lay <avr@gjlay.de>
16508 * config/avr/avr.c (avr_handle_progmem_attribute): Move warning
16509 about uninitialized data attributed 'progmem' from here...
16510 (avr_encode_section_info): ...to this new function.
16511 (TARGET_ENCODE_SECTION_INFO): New define.
16512 (avr_section_type_flags): For data in ".progmem.data", remove
16513 section flag SECTION_WRITE.
16515 2011-06-29 Georg-Johann Lay <avr@gjlay.de>
16517 * config/avr/t-avr (LIB1ASMFUNCS): Add _mulhisi3, _umulhisi3,
16519 * config/avr/libgcc.S (_xmulhisi3_exit): New Function.
16520 (__mulhisi3): Optimize if have MUL*. Use XJMP instead of rjmp.
16521 (__umulhisi3): Ditto.
16522 * config/avr/avr.md (mulhisi3): New insn expender.
16523 (umulhisi3): New insn expender.
16524 (*mulhisi3_call): New insn.
16525 (*umulhisi3_call): New insn.
16527 2011-06-28 Joseph Myers <joseph@codesourcery.com>
16529 * Makefile.in (LIBGCC2_CFLAGS): Remove -D__GCC_FLOAT_NOT_NEEDED.
16531 2011-06-28 Richard Henderson <rth@redhat.com>
16533 * config/arm/arm.c (thumb_pop): Rename from thumb_pushpop. Delete
16534 all code and arguments that handled pushes. Update all callers.
16536 2011-06-28 Richard Henderson <rth@redhat.com>
16538 * config/arm/arm.c (arm_output_function_prologue): Don't call
16539 thumb1_output_function_prologue.
16540 (arm_expand_prologue): Avoid dead store.
16541 (number_of_first_bit_set): Use ctz_hwi.
16542 (thumb1_emit_multi_reg_push): New.
16543 (thumb1_expand_prologue): Merge thumb1_output_function_prologue
16544 to emit the entire prologue as rtl.
16545 (thumb1_output_interwork): Split out from
16546 thumb1_output_function_prologue.
16547 (thumb1_output_function_prologue): Remove.
16548 (arm_attr_length_push_multi): Handle thumb1.
16549 * config/arm/arm.md (VUNSPEC_THUMB1_INTERWORK): New.
16550 (prologue_thumb1_interwork): New.
16551 (*push_multi): Allow thumb1; use push_mult_memory_operand.
16552 * config/arm/predicates.md (push_mult_memory_operand): New.
16554 2011-06-28 Eric Botcazou <ebotcazou@adacore.com>
16556 * config/sparc/sync.md (*stbar): Delete.
16557 (*membar_v8): New insn to implement UNSPEC_MEMBAR in SPARC-V8.
16559 2011-06-28 Eric Botcazou <ebotcazou@adacore.com>
16561 * tree-ssa-dom.c (initialize_hash_element): Fix oversight.
16563 2011-06-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16565 * config/sparc/sol2-64.h (TARGET_DEFAULT): Remove.
16566 (TARGET_64BIT_DEFAULT): Define.
16567 * config.gcc (sparc*-*-solaris2*): Move sparc/sol2-64.h to front
16569 * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Define.
16571 2011-06-28 Joseph Myers <joseph@codesourcery.com>
16573 * common.opt (in_lto_p): New Variable entry.
16574 * flags.h (in_lto_p): Move to common.opt.
16575 * gcc.c: Include params.h.
16576 (set_option_handlers): Also use common_handle_option and
16577 target_handle_option.
16578 (main): Call global_init_params, finish_params and init_options_struct.
16579 * opts.c (debug_type_names): Move from toplev.c.
16580 (print_filtered_help): Access quiet_flag through opts pointer.
16581 (common_handle_option): Return early in the driver for some options.
16582 Access in_lto_p, dwarf_version and warn_maybe_uninitialized through
16584 * toplev.c (in_lto_p): Move to common.opt.
16585 (debug_type_names): Move to opts.c.
16586 * Makefile.in (OBJS): Remove opts.o.
16587 (OBJS-libcommon-target): Add opts.o.
16588 (gcc.o): Update dependencies.
16590 2011-06-28 Kai Tietz <ktietz@redhat.com>
16592 * tree-ssa-forwprop.c (simplify_bitwise_binary): Improve type sinking.
16594 2011-06-28 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
16596 * config/arm/vfp.md ("*divsf3_vfp"): Replace '+' constraint modifier
16597 with '=' constraint modifier.
16598 (*divdf3_vfp): Likewise.
16599 ("*mulsf3_vfp"): Likewise.
16600 ("*muldf3_vfp"): Likewise.
16601 ("*mulsf3negsf_vfp"): Likewise.
16602 ("*muldf3negdf_vfp"): Likewise.
16604 2011-06-28 Nick Clifton <nickc@redhat.com>
16606 * config/mn10300/mn10300.h (LINK_SPEC): Do not use linker
16607 relaxation when performing an incremental link.
16609 2011-06-28 Kai Tietz <ktietz@redhat.com>
16611 * tree-ssa-math-opts.c (execute_optimize_bswap): Search
16612 within BB from last to first.
16614 2011-06-28 Joseph Myers <joseph@codesourcery.com>
16616 * genattr-common.c: New. Based on genattr.c.
16617 * Makefile.in (INSN_ATTR_H): Include insn-attr-common.h.
16618 (MOSTLYCLEANFILES): Add insn-attr-common.h.
16619 (opts.o): Update dependencies.
16620 (.PRECIOUS): Add insn-attr-common.h.
16621 (simple_rtl_generated_h): Add insn-attr-common.h.
16622 (build/genattr-common.o): New.
16623 (genprogrtl): Add attr-common.
16624 * genattr.c (main): Include insn-attr-common.h. Don't generate
16625 definitions of DELAY_SLOTS or INSN_SCHEDULING.
16626 * opts.c: Include insn-attr-common.h instead of rtl.h and insn-attr.h.
16628 2011-06-28 Georg-Johann Lay <avr@gjlay.de>
16630 * config.gcc (tm_file): Add elfos.h and avr/elf.h for
16631 avr-*-* and avr-*-rtems* targets.
16633 * config/avr/elf.h: New file.
16634 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define.
16635 (TARGET_ASM_SELECT_SECTION): Define.
16636 (INIT_SECTION_ASM_OP): Undefine.
16637 (FINI_SECTION_ASM_OP): Undefine.
16638 (READONLY_DATA_SECTION_ASM_OP): Undefine.
16639 (PCC_BITFIELD_TYPE_MATTERS): Undefine.
16640 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Undefine.
16641 * config/avr/avr.h:
16642 (PREFERRED_DEBUGGING_TYPE): Move to elf.h.
16643 (TARGET_ASM_NAMED_SECTION): Move to elf.h.
16644 (MAX_OFILE_ALIGNMENT): Move to elf.h.
16645 (STRING_LIMIT): Move to elf.h.
16646 (ASM_DECLARE_FUNCTION_NAME): Move to elf.h.
16647 (ASM_DECLARE_OBJECT_NAME): Remove.
16649 (ASM_OUTPUT_SKIP): Remove.
16650 (DWARF2_DEBUGGING_INFO): Remove.
16651 (OBJECT_FORMAT_ELF): Remove.
16652 (USER_LABEL_PREFIX): Remove.
16653 (ASM_OUTPUT_EXTERNAL): Remove.
16654 (ASM_OUTPUT_ASCII): Remove.
16655 (TYPE_ASM_OP): Remove.
16656 (SIZE_ASM_OP): Remove.
16657 (WEAK_ASM_OP): Remove.
16658 (STRING_ASM_OP): Remove.
16659 (SET_ASM_OP): Remove.
16660 (ASM_WEAKEN_LABEL): Remove.
16661 (TYPE_OPERAND_FMT): Remove.
16662 (ASM_DECLARE_FUNCTION_SIZE): Remove.
16663 (ASM_FINISH_DECLARE_OBJECT): Remove.
16664 (NO_DOLLAR_IN_LABEL): Remove.
16665 (ASM_GENERATE_INTERNAL_LABEL): Remove.
16666 (ASM_OUTPUT_CASE_LABEL): Remove.
16667 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Use
16668 ASM_OUTPUT_ALIGNED_LOCAL, ASM_OUTPUT_ALIGNED_COMMON.
16669 (gas_output_ascii): Remove.
16670 (gas_output_limited_string): Remove.
16671 (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Remove.
16672 * config/avr/avr-protos.h
16673 (gas_output_ascii): Remove prototye.
16674 (gas_output_limited_string): Remove prototype.
16676 2011-06-27 Richard Earnshaw <rearnsha@arm.com>
16679 * arm.c (arm_print_operand): Allow sym+offset. Don't abort on invalid
16682 2011-06-27 Jan Hubicka <jh@suse.cz>
16684 * ipa.c (cgraph_address_taken_from_non_vtable_p): Walk references of
16685 node instead of references in node.
16687 2011-06-27 Richard Henderson <rth@redhat.com>
16689 * config/alpha/alpha.c (vms_patch_builtins): Provide dummy definition.
16690 * config/ia64/ia64.c (ia64_init_builtins): Call vms_patch_builtins
16693 2011-06-27 Jakub Jelinek <jakub@redhat.com>
16695 * c-decl.c (union lang_tree_node): Use it in chain_next expression.
16697 * builtin-types.def (BT_FN_PTR_CONST_PTR_SIZE_VAR): New.
16698 * builtins.def (BUILT_IN_ASSUME_ALIGNED): New builtin.
16699 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call,
16700 find_func_clobbers): Handle BUILT_IN_ASSUME_ALIGNED.
16701 * tree-ssa-ccp.c (bit_value_assume_aligned): New function.
16702 (evaluate_stmt, execute_fold_all_builtins): Handle
16703 BUILT_IN_ASSUME_ALIGNED.
16704 * tree-ssa-dce.c (propagate_necessity): Likewise.
16705 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
16706 call_may_clobber_ref_p_1): Likewise.
16707 * builtins.c (is_simple_builtin, expand_builtin): Likewise.
16708 (expand_builtin_assume_aligned): New function.
16709 * doc/extend.texi (__builtin_assume_aligned): Document.
16712 * cselib.c (promote_debug_loc): If cselib_preserve_constants
16713 and l has two DEBUG_INSN owned locs instead of just one, adjust
16714 the second location's setting_insn too.
16716 2011-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16718 PR libmudflap/38738
16719 * config/sol2.h [!USE_GLD] (MFLIB_SPEC): Define.
16721 2011-06-27 Nick Clifton <nickc@redhat.com>
16723 * config/mn10300/mn10300.md (clzsi2): Use XOR after BSCH to convert
16724 bit position of highest bit set into a count of the high zero bits.
16726 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
16728 * dwarf2out.c (TYPE_DECL_IS_STUB): Extend mechanism to all types.
16730 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
16733 * dwarf2out.c (dwarf2out_finish): Do not attach a DIE on the limbo list
16736 2011-06-27 Richard Guenther <rguenther@suse.de>
16738 PR tree-optimization/49394
16739 * passes.c (execute_one_pass): Restore current_pass after
16740 applying IPA transforms.
16742 2011-06-27 Kai Tietz <ktietz@redhat.com>
16744 * tree-ssa-math-opts.c (do_shift_rotate): Zero bits
16745 out of type precision after operation.
16746 (find_bswap): Take for limit value the integer auto-promotion
16749 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
16751 * reorg.c (fill_simple_delay_slots): Use stop_search_p to stop the
16752 forward scan as well.
16754 2011-06-27 Tristan Gingold <gingold@adacore.com>
16757 * config/vms/vms-protos.h: New file.
16758 * config/vms/vms-crtlmap.map: New file.
16759 * config/vms/vms.c: New file.
16760 * config/vms/make-crtlmap.awk: New file.
16761 * config/vms/vms-crtl.h: File removed.
16762 * config/vms/vms-crtl-64.h: File removed.
16763 * config/vms/t-vms (vms-crtlmap.h, vms.o): New targets.
16764 * config/alpha/vms64.h: Do not include vms-crtl-64.h
16765 * config/alpha/alpha.c (alpha_init_builtins): Remove code to
16766 clear some builtins on VMS. Calls vms_patch_builtins.
16767 (avms_asm_output_external): Remove.
16768 * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Remove.
16769 (struct crtl_name_spec): Remove
16770 (DO_CTRL_NAMES): Remove.
16771 * config/ia64/vms.h (struct crtl_name_spec): Remove
16772 (DO_CTRL_NAMES): Remove.
16773 * config/ia64/ia64.c (alpha_init_builtins): Remove code to
16774 clear some builtins on VMS. Calls vms_patch_builtins.
16775 (ia64_asm_output_external): Remove DO_CRTL_NAME.
16776 * config/ia64/vms64.h: Do not include vms-crtl-64.h
16777 * config.gcc (*-*-*vms*): Define extra_objs, target_gtfiles, tm_p_file.
16779 2011-06-27 Tristan Gingold <gingold@adacore.com>
16781 * config/alpha/alpha.c (alpha_end_function): Always generate .end
16784 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
16786 * config/sparc/sparc.c (sparc_frame_pointer_required): Return true if
16787 the function receives nonlocal gotos.
16789 2011-06-27 Richard Guenther <rguenther@suse.de>
16791 PR tree-optimization/49536
16792 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
16793 For non-scalar inner types use a scalar type according to
16794 the scalar inner mode.
16796 2011-06-27 Richard Guenther <rguenther@suse.de>
16798 PR tree-optimization/49365
16799 * params.def (min-insn-to-prefetch-ratio): Reduce from 10 to 9.
16801 2011-06-27 Richard Guenther <rguenther@suse.de>
16803 PR tree-optimization/49169
16804 * fold-const.c (get_pointer_modulus_and_residue): Don't rely on
16805 the alignment of function decls.
16807 2011-06-26 Iain Sandoe <iains@gcc.gnu.org>
16810 * config/darwin.c (darwin_mergeable_string_section): Place string
16811 constants in '.cstring' rather than '.const' when CF/NSStrings are
16814 2011-06-26 Eric Botcazou <ebotcazou@adacore.com>
16816 * config/sparc/sparc.c (save_local_or_in_reg_p): Adjust comment.
16817 (emit_save_register_window): Likewise.
16818 (sparc_expand_prologue): Use SIZE_INT_RTX and SIZE_RTX variables.
16819 (sparc_flat_expand_prologue): Add comment. Always emit blockage.
16820 Swap back %o7/%i7 in register naming.
16822 2011-06-25 Iain Sandoe <iains@gcc.gnu.org>
16825 * config/darwin.c (darwin_override_options): Improve warning when
16826 mdynamic-no-pic is given together with fPIC/fpic, also warn when it
16827 is given with fpie/fPIE.
16828 * config/darwin.h (PIE_SPEC): New, (LINK_SPEC): Use PIE_SPEC.
16829 * config/darwin9.h (PIE_SPEC): New.
16831 2011-06-25 Basile Starynkevitch <basile@starynkevitch.net>
16833 * timevar.c (timevar_print): Increase width for display of timevar
16836 2011-06-24 Jakub Jelinek <jakub@redhat.com>
16839 * c-decl.c (union lang_tree_node): Use TYPE_NEXT_VARIANT
16840 instead of TYPE_CHAIN for chain_next for types.
16842 2011-06-24 Richard Henderson <rth@redhat.com>
16844 * config/sparc/sparc.md (create_flat_frame_1<P:mode>): Remove.
16845 (create_flat_frame_2<P:mode>, create_flat_frame_3<P:mode>): Remove.
16846 * config/sparc/sparc.c (gen_create_flat_frame_1): Remove.
16847 (gen_create_flat_frame_2, gen_create_flat_frame_3): Remove.
16848 (sparc_flat_expand_prologue): Emit individual instructions
16849 instead of one of the above.
16851 2011-06-24 Easwaran Raman <eraman@google.com>
16853 PR rtl-optimization/49429
16855 * expr.c (emit_block_move_hints): Mark MEM_EXPR(x) and
16856 MEM_EXPR(y) addressable if emit_block_move_via_libcall is
16857 used to copy y into x.
16858 * calls.c (initialize_argument_information): Mark
16859 an argument addressable if it is passed by invisible reference.
16860 (emit_library_call_value_1): Mark MEM_EXPR (val) addressable
16861 if it is passed by reference.
16863 2011-06-24 H.J. Lu <hongjiu.lu@intel.com>
16865 PR rtl-optimization/49504
16866 * rtlanal.c (nonzero_bits1): Properly handle addition or
16867 subtraction of a pointer in Pmode if pointers extend unsigned.
16868 (num_sign_bit_copies1): Likewise.
16870 2011-06-24 Martin Jambor <mjambor@suse.cz>
16872 PR tree-optimizations/49516
16873 * tree-sra.c (sra_modify_assign): Choose the safe path for
16874 aggregate copies if we also did scalar replacements.
16876 2011-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
16879 * config/arm/predicates.md (add_operator): New.
16880 * config/arm/arm.md ("*arith_shiftsi"): Fix for SP reg usage in Thumb2.
16882 2011-06-24 Andi Kleen <ak@linux.intel.com>
16884 * tree-sra.c (type_internals_preclude_sra_p): Add msg
16885 parameter. Split up ifs and report reason in *msg.
16887 (find_var_candiate): Add msg variable.
16888 Split up ifs and report reason to reject.
16889 (find_param_candidates): Add msg variable.
16890 Pass msg to type_internals_preclude_sra_p.
16892 2011-06-23 Jeff Law <law@redhat.com>
16894 PR middle-end/48770
16895 * reload.h (reload): Change to return a bool.
16896 * ira.c (ira): If requested by reload, run a fast DCE pass after
16897 reload has completed. Fix comment typo.
16898 * reload1.c (need_dce): New file scoped static.
16899 (reload): Set reload_completed here. Return whether or not a DCE
16900 pass after reload is needed.
16901 (delete_dead_insn): Set need_dce as needed.
16903 PR middle-end/49465
16904 * tree-ssa-threadupate.c (fix_duplicate_block_edges): Fix condition
16905 to detect threading through joiner block. If there was already
16906 an edge to the new target, then do not change the PHI nodes.
16908 2011-06-23 Jakub Jelinek <jakub@redhat.com>
16910 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Use
16911 get_pointer_alignment to see if base isn't sufficiently aligned.
16913 2011-06-23 Jan Hubicka <jh@suse.cz>
16915 PR tree-optimize/49373
16916 * tree-pass.h (all_late_ipa_passes): Declare.
16917 * cgraphunit.c (init_lowered_empty_function): Fix properties.
16918 (cgraph_optimize): Execute late passes; remove unreachable funcions
16919 after materialization.
16920 * ipa-inline.c (gate_ipa_inline): Enable only when optimizing or
16922 * passes.c (all_late_ipa_passes): Declare.
16923 (dump_passes, register_pass): Handle late ipa passes.
16924 (init_optimization_passes): Move ipa_pta to late passes; schedule
16925 fixup_cfg at beggining of all_passes.
16926 (apply_ipa_transforms): New function.
16927 (execute_one_pass): When doing simple ipa pass, apply all transforms.
16929 2011-06-23 Joseph Myers <joseph@codesourcery.com>
16931 * params.c: Include common/common-target.h. Don't include tm.h.
16932 (lang_independent_params): Move from toplev.c.
16933 (global_init_params): New.
16934 * params.h (global_init_params): Declare.
16935 * target.def (default_params): Move to common-target.def.
16936 * toplev.c (lang_independent_options): Remove.
16937 (lang_independent_params): Move to params.c.
16938 (general_init): Use global_init_params.
16939 * common/common-target.def (option_default_params): Move from
16941 * common/config/ia64/ia64-common.c: Include params.h.
16942 (ia64_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
16944 * common/config/rs6000/rs6000-common.c: Include params.h.
16945 (rs6000_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
16947 * common/config/sh/sh-common.c: Include params.h.
16948 (sh_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
16950 * common/config/spu/spu-common.c: Include params.h.
16951 (spu_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
16953 * config/ia64/ia64.c (ia64_option_default_params,
16954 TARGET_OPTION_DEFAULT_PARAMS): Move to ia64-common.c.
16955 * config/rs6000/rs6000.c (rs6000_option_default_params,
16956 TARGET_OPTION_DEFAULT_PARAMS): Move to rs6000-common.c.
16957 * config/sh/sh.c (sh_option_default_params,
16958 TARGET_OPTION_DEFAULT_PARAMS): Move to sh-common.c.
16959 * config/spu/spu.c (spu_option_default_params,
16960 TARGET_OPTION_DEFAULT_PARAMS): Move to spu-common.c.
16961 * Makefile.in (OBJS): Remove params.o.
16962 (OBJS-libcommon-target): Add params.o.
16963 (params.o, $(common_out_object_file)): Update dependencies.
16964 * doc/tm.texi: Regenerate.
16966 2011-06-23 Alan Modra <amodra@gmail.com>
16969 * config/rs6000/rs6000.c (call_ABI_of_interest): Adjust cgraph
16970 invocation for 2011-06-09 changes.
16972 2011-06-22 Jakub Jelinek <jakub@redhat.com>
16975 * omp-low.c (expand_omp_for_static_nochunk): Only
16976 use n ceil/ nthreads size for the first n % nthreads threads in the
16977 team instead of all threads except for the last few ones which
16978 get less work or none at all.
16981 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Ignore debug
16984 2011-06-22 Richard Guenther <rguenther@suse.de>
16986 PR tree-optimization/49493
16987 * tree-ssa-structalias.c (get_constraint_for_ssa_var):
16988 Refer to the alias target of variables.
16989 (associate_varinfo_to_alias_1): Remove.
16990 (ipa_pta_execute): Do not associate aliases with anything.
16991 * cgraph.h (varpool_alias_aliased_node): Fix cut&paste errors.
16992 (cgraph_function_node): Likewise.
16993 (cgraph_function_or_thunk_node): Likewise.
16994 (varpool_variable_node): Likewise.
16996 2011-06-22 Nathan Sidwell <nathan@codesourcery.com>
16998 * config/arm/arm.h (OPTION_DEFAULT_SPECS): Fix -mtls-dialect typo.
16999 * config.gcc (arm*-*-linux*): Default to gnu tls.
17000 (arm*-*-*): Add --with-tls option.
17001 (all_defaults): Add 'tls'.
17003 2011-06-22 Richard Henderson <rth@redhat.com>
17005 * reg-notes.def (REG_CFA_WINDOW_SAVE): New.
17006 * dwarf2out.c (dwarf2out_frame_debug): Handle it.
17007 (dwarf2out_frame_debug_cfa_window_save): Rename from
17008 dwarf2out_window_save; make static.
17009 * tree.h (dwarf2out_window_save): Don't declare.
17011 * config/sparc/sparc.c (sparc_dwarf_handle_frame_unspec): Remove.
17012 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
17013 (emit_save_register_window): Rename from gen_save_register_window;
17014 emit the insn and add REG_CFA_* notes.
17015 (sparc_expand_prologue): Update to match.
17016 * config/sparc/sparc.md (save_register_window_1): Simplify from
17017 save_register_window<P:mode>.
17019 2011-06-22 H.J. Lu <hongjiu.lu@intel.com>
17022 * config/i386/i386.md (*lea_general_2): Always allow SImode.
17023 (*lea_general_2_zext): Likewise.
17024 (imul to lea peepholes): Use const359_operand and check
17025 TARGET_PARTIAL_REG_STALL.
17027 * config/i386/predicates.md (const359_operand): New.
17029 2011-06-22 Michael Matz <matz@suse.de>
17031 * cgraphunit.c (assemble_thunk): Use correct return type.
17033 2011-06-22 Dmitry Plotnikov <dplotnikov@ispras.ru>
17034 Dmitry Melnik <dm@ispras.ru>
17036 * config/arm/arm.c (neon_immediate_valid_for_shift): New function.
17037 (neon_output_shift_immediate): Ditto.
17038 * config/arm/arm-protos.h (neon_immediate_valid_for_shift): New
17040 (neon_output_shift_immediate): Ditto.
17041 * config/arm/neon.md (vashl<mode>3): Modified constraint.
17042 (vashr<mode>3_imm): New insn pattern.
17043 (vlshr<mode>3_imm): Ditto.
17044 (vashr<mode>3): Modified constraint.
17045 (vlshr<mode>3): Ditto.
17046 * config/arm/predicates.md (imm_for_neon_lshift_operand): New
17048 (imm_for_neon_rshift_operand): Ditto.
17049 (imm_lshift_or_reg_neon): Ditto.
17050 (imm_rshift_or_reg_neon): Ditto.
17052 * optabs.c (init_optabs): Init optab codes for vashl, vashr, vlshr.
17054 2011-06-22 Jakub Jelinek <jakub@redhat.com>
17056 * tree-ssa-ccp.c (evaluate_stmt): Try bitwise tracking for
17057 builtin calls even if likelyvalue is not CONSTANT.
17058 Handle BUILT_IN_STRDUP and BUILT_IN_STRNDUP like BUILT_IN_MALLOC.
17059 Return get_value_for_expr of first operand
17060 for BUILT_IN_{MEM{CPY,MOVE,SET},STR{,N}CPY}{,_CHK}.
17061 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
17062 BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK like
17063 their non-checking counterparts.
17064 (call_may_clobber_ref_p_1): Likewise.
17065 (stmt_kills_ref_p_1): Handle BUILT_IN_MEM{{,P}CPY,MOVE,SET}_CHK
17066 like their non-checking counterparts.
17067 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
17068 Handle BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK
17069 like their non-checking counterparts.
17070 (find_func_clobbers): Likewise.
17071 * tree-ssa-dce.c (propagate_necessity): Handle BUILT_IN_MEMSET_CHK
17072 like BUILT_IN_MEMSET and BUILT_IN_CALLOC like BUILT_IN_MALLOC.
17074 * dwarf2out.c (size_of_loc_descr, output_loc_operands,
17075 mark_base_types, hash_loc_operands, compare_loc_operands): Allow
17076 DW_OP_GNU_convert and DW_OP_GNU_reinterpret to use constant instead
17077 of base type reference as argument.
17078 (resolve_addr_in_expr): Likewise. Fix keep computation.
17079 (convert_descriptor_to_signed): Renamed to...
17080 (convert_descriptor_to_mode): ... this. For wider types convert to
17081 unsigned instead of signed, for <= DWARF2_ADDR_SIZE convert to untyped.
17082 (typed_binop): New function.
17083 (scompare_loc_descriptor, ucompare_loc_descriptor,
17084 minmax_loc_descriptor, mem_loc_descriptor): For wider integer modes
17085 default to unsigned type instead of signed.
17088 * gimple.h (enum gimple_debug_subcode): Add GIMPLE_DEBUG_SOURCE_BIND.
17089 (gimple_build_debug_source_bind_stat): New prototype.
17090 (gimple_build_debug_source_bind): Define.
17091 (gimple_debug_source_bind_p, gimple_debug_source_bind_get_var,
17092 gimple_debug_source_bind_get_value,
17093 gimple_debug_source_bind_get_value_ptr,
17094 gimple_debug_source_bind_set_var,
17095 gimple_debug_source_bind_set_value): New inlines.
17096 * gimple.c (gimple_build_debug_source_bind_stat): New function.
17097 * gimple-pretty-print.c (dump_gimple_debug): Handle
17098 GIMPLE_DEBUG_SOURCE_BIND.
17099 * sese.c (rename_uses): Handle gimple_debug_source_bind_p.
17100 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
17101 * tree-parloops.c (eliminate_local_variables,
17102 separate_decls_in_region): Likewise.
17103 (separate_decls_in_region_debug): Renamed from
17104 separate_decls_in_region_debug_bind. Handle
17105 gimple_debug_source_bind_p.
17106 * tree.h (decl_debug_args_lookup, decl_debug_args_insert): New
17108 (DECL_HAS_DEBUG_ARGS_P): Define.
17109 (struct tree_function_decl): Add has_debug_args_flag field.
17110 * tree.c (debug_args_for_decl): New variable.
17111 (decl_debug_args_lookup, decl_debug_args_insert): New functions.
17112 * tree-into-ssa.c (mark_def_sites): Handle uses in debug stmts.
17113 (rewrite_debug_stmt_uses): New function.
17114 (rewrite_stmt): Use it to rewrite debug stmt uses.
17115 * rtl.def (DEBUG_PARAMETER_REF): New.
17116 * rtl.h (DEBUG_PARAMETER_REF_DECL): Define.
17117 * cselib.c (rtx_equal_for_cselib_1, cselib_hash_rtx): Handle
17118 DEBUG_PARAMETER_REF.
17119 * rtl.c (rtx_equal_p_cb, rtx_equal_p, iterative_hash_rtx): Likewise.
17120 * print-rtl.c (print_rtx): Likewise.
17121 * tree-sra.c (sra_ipa_reset_debug_stmts): Prefer replacing of
17122 SSA_NAMEs with DEBUG_EXPR_DECLs initialized in source bind
17123 debug stmts in the first bb.
17124 * tree-inline.c (remap_ssa_name): If remapping default def
17125 of a PARM_DECL fails, map to a DEBUG_EXPR_DECL set in
17126 a source bind debug stmt.
17127 (remap_gimple_stmt): Handle gimple_debug_source_bind_p.
17128 (maybe_move_debug_stmts_to_successors): Likewise.
17129 (copy_debug_stmt): Likewise. Avoid shadowing a variable.
17130 (tree_function_versioning): If DECL_HAS_DEBUG_ARGS_P, copy
17131 debug args vector from old_decl to new_decl.
17132 * ipa-prop.c (ipa_modify_call_arguments): For optimized away
17133 or modified parameters, add debug bind stmts before call
17134 setting DEBUG_EXPR_DECL which is remembered in debug args vector.
17135 * cfgexpand.c (expand_call_stmt): Call expand_debug_expr
17136 on DECL_DEBUG_EXPRs from debug args vector.
17137 (expand_debug_source_expr): New function.
17138 (expand_debug_locations): Use it for source bind insns.
17139 (expand_gimple_basic_block): Handle gimple_debug_source_bind_p.
17140 * var-tracking.c (prepare_call_arguments): Add debug args
17141 to call_arguments if any.
17142 * dwarf2out.c (dwarf_stack_op_name, size_of_loc_descr,
17143 output_loc_operands, output_loc_operands_raw, resolve_addr_in_expr,
17144 compare_loc_operands): Handle DW_OP_GNU_parameter_ref.
17145 (get_ref_die_offset, parameter_ref_descriptor): New functions.
17146 (mem_loc_descriptor): Handle DEBUG_PARAMETER_REF.
17147 (gen_subprogram_die): Handle parameters identified by
17148 DEBUG_PARAMETER_REF.
17150 2011-06-22 Nathan Sidwell <nathan@codesourcery.com>
17152 * doc/invoke.texi (ARM Options): Document -mtls-dialect option.
17153 * doc/install.texi (Configuration): Document --with-tls.
17154 * config/arm/arm.c (enum tls_reloc): Add TLS_DESCSEQ.
17155 (arm_call_tls_get_addr): Clean up. Assert not tls descriptor.
17156 (arm_tls_descseq_addr): New.
17157 (legitimize_tls_address): Add tlsdesc support.
17158 (arm_cannot_copy_insn_p): Check for tlscall.
17159 (arm_emit_tls_decoration): Likewise.
17160 * config/arm/arm.h (TARGET_GNU2_TLS): New.
17161 (OPTION_DEFAULT_SPECS): Add with-tls support.
17162 * config/arm/arm.md (R1_REGNUM): Define.
17164 * config/arm/arm.opt (tls_type): New enumeration type and values.
17165 (mtls-dialect): New switch.
17166 * config/arm/arm-opts.h (enum tls_type): New.
17168 2011-06-21 Nicola Pero <nicola.pero@meta-innovation.com>
17170 * attribs.c (register_attribute): Added assert to check that all
17171 attribute specs are registered with a name that is not empty and
17172 does not start with '_'.
17173 (decl_attributes): Avoid the lookup of the "naked" attribute spec
17174 if the function has no attributes.
17175 * tree.c (is_attribute_with_length_p): Removed.
17176 (is_attribute_p): Removed.
17177 (private_is_attribute_p): New.
17178 (private_lookup_attribute): New.
17179 (lookup_attribute): Removed.
17180 (lookup_ident_attribute): New.
17181 (remove_attribute): Require the first argument to be in the form
17182 'text', not '__text__'. Updated asserts.
17183 (merge_attributes): Use lookup_ident_attributes instead of
17185 (merge_dllimport_decl_attributes): Use remove_attribute.
17186 (attribute_list_contained): Likewise.
17187 (attribute_list_equal): Immediately return 1 if the arguments are
17188 identical pointers.
17189 * tree.h (is_attribute_p): Made inline. Return a 'bool', not an
17190 'int'. Require the first argument to be in the form 'text', not
17191 '__text__'. Require the second argument to be an identifier.
17192 (lookup_attribute): Made inline. Require the first argument to be
17193 in the form 'text', not '__text__'.
17194 (private_is_attribute_p, private_lookup_attribute): New.
17197 2011-06-21 Andrew MacLeod <amacleod@redhat.com>
17199 * builtins.c: Add sync_ or SYNC__ to builtin names.
17200 * sync-builtins.def: Add sync_ or SYNC__ to builtin names.
17201 * omp-low.c: Add sync_ or SYNC__ to builtin names.
17203 2011-06-21 Georg-Johann Lay <avr@gjlay.de>
17206 * config/avr/avr.md (extzv): New expander.
17207 (*extzv): New insn.
17208 (*extzv.qihi1, *extzv.qihi2): New insn-and-split.
17209 * config/avr/constraints.md (C04): New constraint.
17210 * doc/md.texi (Machine Constraints): Document it.
17212 2011-06-21 Jakub Jelinek <jakub@redhat.com>
17214 PR middle-end/49489
17215 * builtins.c (expand_builtin_unop): Call expand_unop with 0 as
17216 unsignedp argument instead of 1 for clrsb_optab.
17217 (fold_builtin_bitop): Fix masking for width > HOST_BITS_PER_WIDE_INT
17218 and < 2 * HOST_BITS_PER_WIDE_INT. Optimize BUILT_IN_CLRSB*.
17219 (fold_builtin_1): Call fold_builtin_binop for BUILT_IN_CLRSB*.
17220 * optabs.c (widen_leading): Call widen_operand and expand_unop
17221 with 0 as unsignedp argument instead of 1 for clrsb_optab.
17222 (expand_unop): Subtract difference of mode sizes also for clrsb_optab.
17224 2011-06-21 Georg-Johann Lay <avr@gjlay.de>
17226 * config/avr/avr.md (*jcindirect_jump): Fix build warning.
17228 2011-06-21 Bernd Schmidt <bernds@codesourcery.com>
17230 * gensupport.c (add_define_attr): New static function.
17231 (is_predicable): Allow multi-alternative lists for the "predicable"
17233 (modify_attr_enabled_ce, alter_attrs_for_insn): New static functions.
17234 (process_one_cond_exec): Call alter_attrs_for_insn.
17235 * doc/md.texi (Defining Attributes): Mention some standard names.
17236 (Conditional Execution): Update documentation for "predicable".
17238 * doc/extend.texi (__builtin_clrsb, __builtin_clrsbl,
17239 __builtin_clrsbll): Document.
17240 * doc/rtl.texi (clrsb): New entry.
17241 * optabs.c (widen_leading): Renamed from widen_clz. New argument
17242 UNOPTAB. All callers changed. Use UNOPTAB instead of clz_optab.
17243 (expand_unop): Handle clrsb_optab.
17244 (init_optabs): Initialize it.
17245 * optabs.h (enum optab_index): New entry OTI_clrsb.
17246 (clrsb_optab): Define.
17247 * genopinit.c (optabs): Add an entry for it.
17248 * builtins.c (expand_builtin): Handle clrsb builtin functions.
17249 * builtins.def (BUILT_IN_CLRSB, BUILT_IN_CLRSBIMAX, BUILT_IN_CLRSBL,
17250 BUILT_IN_CLRSBLL): New.
17251 * rtl.def (CLRSB): New code.
17252 * dwarf2out.c (mem_loc_descriptor): Handle it.
17253 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
17254 Use op_mode rather than mode when optimizing ffs, clz, ctz, parity
17256 * libgcc2.c (__clrsbSI2, __clrsbDI2): New functions.
17257 * libgcc2.h (__clrsbSI2, __clrsbDI2): Define and declare.
17258 (__ctzDI2): Move declaration.
17259 * config/bfin/bfin.md (clrsbsi2): New expander.
17260 (signbitssi2): Use the CLRSB rtx.
17261 (clrsbhi2): Renamed from signbitshi2. Use the CLRSB rtx.
17262 * config/bfin/bfin.c (bdesc_1arg): Changed accordingly.
17264 2011-06-21 Richard Guenther <rguenther@suse.de>
17266 * ipa-inline-transform.c (inline_transform): Fix previous change.
17268 2011-06-21 Ira Rosen <ira.rosen@linaro.org>
17270 PR tree-optimization/49478
17271 * tree-vect-loop.c (vectorizable_reduction): Handle DOT_PROD_EXPR
17272 with constant operand.
17274 2011-06-21 Richard Guenther <rguenther@suse.de>
17276 * ipa-inline-transform.c (inline_transform): Fix typo.
17278 2011-06-21 Richard Guenther <rguenther@suse.de>
17280 PR tree-optimization/49483
17281 * tree-vect-stmts.c (vectorizable_assignment): Also handle
17282 VIEW_CONVERT_EXPR conversions.
17284 2011-06-21 Joseph Myers <joseph@codesourcery.com>
17286 * config/avr/avr-mcus.def, config/avr/genopt.sh: New files.
17287 * config/avr/avr-tables.opt: New file (generated).
17288 * config.gcc (avr-*-*): Use avr/avr-tables.opt.
17289 * config/avr/avr-devices.c (avr_mcu_types): Move contents to
17291 * config/avr/avr.c (avr_help, TARGET_HELP): Remove.
17292 (avr_option_override): Don't process -mmcu= argument here. Set
17293 avr_current_device using avr_mcu_index.
17294 (avr_file_start): Use avr_current_device->name instead of avr_mcu_name.
17295 * config/avr/avr.opt (mmcu=): Use Enum.
17296 * config/avr/t-avr (avr-devices.o): Update dependencies.
17297 ($(srcdir)/config/avr/avr-tables.opt): New.
17298 * target.def (help): Remove.
17299 * doc/tm.texi.in (TARGET_HELP): Remove.
17300 * doc/tm.texi: Regenerate.
17301 * opts.c: Don't include target.h.
17302 (common_handle_option): Don't call targetm.help.
17303 * system.h (TARGET_HELP): Poison.
17304 * Makefile.in (opts.o): Update dependencies.
17306 2011-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17308 * config/usegld.h: New file.
17309 * config/sol2.h (PREFERRED_DEBUGGING_TYPE): Remove.
17310 (CPP_SUBTARGET_SPEC): Remove -compat-bsd support.
17311 (LIB_SPEC): Likewise. Search /lib.
17312 (LINK_ARCH32_SPEC_BASE): Remove -compat-bsd support.
17313 (RDYNAMIC_SPEC): Handle GNU ld.
17314 [HAVE_LD_EH_FRAME_HDR && TARGET_DL_ITERATE_PHDR] (LINK_EH_SPEC):
17316 (SUPPORTS_INIT_PRIORITY): Only disable for Sun ld.
17317 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Define.
17318 [!USE_GAS] (NO_DBX_BNSYM_ENSYM): Redefine.
17319 (STACK_CHECK_STATIC_BUILTIN): Define.
17320 * config/sol2.opt (compat-bsd): Remove.
17321 * config/sol2-10.h (TARGET_C99_FUNCTIONS): Remove undef.
17322 * config/sol2-bi.h: New file.
17323 * config/sol2-gld.h: Remove.
17324 * config/i386/sol2.h (TLS_COMMON_ASM_OP): Only define if !USE_GAS.
17325 (NO_DBX_BNSYM_ENSYM): Remove.
17326 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
17327 (STACK_CHECK_STATIC_BUILTIN): Remove.
17328 Test USE_GLD instead of TARGET_GNU_LD.
17329 * config/i386/sol2-10.h: Rename to ...
17330 * config/i386/sol2-bi.h .. this.
17331 (SUBTARGET_EXTRA_SPECS): Redefine.
17332 (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Remove.
17333 (MULTILIB_DEFAULTS): Remove.
17334 (DEFAULT_ARCH32_P): Define.
17335 (LINK_ARCH64_SPEC_BASE, LINK_ARCH64_SPEC): Remove.
17336 (ARCH64_SUBDIR): Define.
17337 Test USE_GLD instead of TARGET_GNU_LD.
17338 (I386_EMULATION): Rename to ...
17339 (ARCH32_EMULATION): ... this.
17340 (X86_64_EMULATION): Rename to ...
17341 (ARCH64_EMULATION): ... this.
17342 (TARGET_LD_EMULATION): Remove.
17343 (LINK_ARCH_SPEC): Remove.
17344 * config/i386/sol2-gas.h: Remove.
17345 * config/i386/t-sol2-10: Rename to ...
17346 * config/i386/t-sol2-64: ... this.
17347 * config/sparc/sol2.h (SPARC_DEFAULT_CMODEL): Redefine.
17348 (AS_SPARC64_FLAG): Define.
17349 (ASM_CPU32_DEFAULT_SPEC, ASM_CPU64_DEFAULT_SPEC): Redefine.
17350 (CPP_CPU64_DEFAULT_SPEC, ASM_CPU32_DEFAULT_SPEC): Redefine
17351 depending on TARGET_CPU_DEFAULT.
17352 (CPP_CPU_SPEC): Redefine.
17353 (ASM_CPU_SPEC): Handle DEFAULT_ARCH32_P.
17354 (CPP_CPU_DEFAULT_SPEC, ASM_CPU_DEFAULT_SPEC): Redefine.
17355 (CPP_ARCH32_SPEC, CPP_ARCH64_SPEC, CPP_ARCH_SPEC): Redefine.
17356 (ASM_ARCH_SPEC, ASM_ARCH32_SPEC, ASM_ARCH64_SPEC,
17357 ASM_ARCH_DEFAULT_SPEC): Redefine.
17358 (SUBTARGET_EXTRA_SPECS): Add LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
17359 LINK_ARCH_DEFAULT_SPEC.
17360 [USE_GLD] (ARCH32_EMULATION, ARCH64_EMULATION): Define.
17361 [USE_GLD] (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC): Redefine.
17362 (ARCH64_SUBDIR): Define.
17363 (LINK_ARCH64_SPEC): Redefine.
17364 (CC1_SPEC): Redefine.
17365 (OPTION_DEFAULT_SPECS): Redefine.
17366 (MULTILIB_DEFAULTS): Define.
17367 (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Redefine.
17368 [USE_GAS && HAVE_AS_TLS] (TARGET_SUN_TLS, TARGET_GNU_TLS): Redefine.
17369 [USE_GLD] (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undef.
17370 (NO_DBX_BNSYM_ENSYM): Remove.
17371 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
17372 (ASM_OUTPUT_ALIGN_WITH_NOP): Only define if !USE_GAS.
17373 (TARGET_ASM_NAMED_SECTION): Likewise.
17374 (STACK_CHECK_STATIC_BUILTIN): Remove.
17375 * config/sparc/sol2-bi.h: Remove.
17376 * config/sparc/sol2-gas-bi.h: Remove.
17377 * config/sparc/sol2-gas.h: Remove.
17378 * config/sparc/sol2-gld-bi.h: Remove.
17379 * config.gcc (i[34567]86-*-solaris2*, sparc*-*-solaris2*): Move
17381 (*-*-solaris2*): ... here.
17383 2011-06-21 Christian Bruel <christian.bruel@st.com>
17386 * ipa-inline.c (can_inline_edge_p): Check
17387 !DECL_DISREGARD_INLINE_LIMITS.
17389 2011-06-21 Christian Bruel <christian.bruel@st.com>
17391 PR middle-end/49139
17392 * cgraphunit.c (process_function_and_variable_attributes): warn when
17393 always_inline functions that are not inline.
17394 * ipa-inline-transform.c (inline_transform): Always call
17396 * tree-inline.c (tree_inlinable_function_p): Use error instead
17398 (expand_call_inline): Likewise.
17400 2011-06-21 Jakub Jelinek <jakub@redhat.com>
17402 * Makefile.in (dg_target_exps): Set.
17403 (check_gcc_parallelize): Parallelize gcc testing into 10 jobs
17404 instead of 7, try to divide it more evenly.
17406 2011-06-20 Changpeng Fang <changpeng.fang@amd.com>
17409 * config/i386/i386.c (avx256_split_unaligned_load): New definition.
17410 (avx256_split_unaligned_store): New definition.
17411 (ix86_option_override_internal): Enable avx256 unaligned load/store
17412 splitting only when avx256_split_unaligned_load/store is set.
17414 2011-06-20 Bernd Schmidt <bernds@codesourcery.com>
17416 * regrename.c (scan_rtx_reg): Handle the case where we write to an
17417 open chain in a smaller mode without failing the entire block.
17419 2011-06-21 Alan Modra <amodra@gmail.com>
17421 * config/rs6000/rs6000.c (rs6000_cannot_force_const_mem): Match
17422 CONST high part large-toc address.
17423 (rs6000_tls_referenced_p): Make static.
17424 * config/rs6000/rs6000-protos.h (rs6000_tls_referenced_p): Delete.
17426 2011-06-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
17429 * config/arm/thumb2.md (*thumb2_movhi_insn): Make sure atleast
17430 one of the operands is a register.
17432 2011-06-20 Kai Tietz <ktietz@redhat.com>
17434 * fold-const.c (fold_binary_loc): Add missing folding for truth-not
17435 operations in combination with binary and.
17437 2011-06-20 Bernd Schmidt <bernds@codesourcery.com>
17439 * regrename.c (do_replace): Don't update notes.
17441 2011-06-20 Alan Modra <amodra@gmail.com>
17443 * config/rs6000/rs6000.c (create_TOC_reference): Wrap high part
17444 of toc-relative address in CONST.
17445 (rs6000_delegitimize_address): Recognize changed address.
17446 (rs6000_legitimize_reload_address): Likewise.
17447 (rs6000_emit_move): Don't force these constants to memory.
17448 * config/rs6000/rs6000.md (tls_gd, tls_gd_high): Wrap high part of
17449 toc-relative address in CONST.
17450 (tls_ld, tls_ld_high, tls_got_dtprel, tls_got_dtprel_high): Likewise.
17451 (tls_got_tprel, tls_got_tprel_high, largetoc_high): Likewise.
17453 2011-06-18 H.J. Lu <hongjiu.lu@intel.com>
17455 * longlong.h (count_leading_zeros): Use long long builtin for x86-64.
17456 (count_trailing_zeros): Likewise.
17458 2011-06-18 H.J. Lu <hongjiu.lu@intel.com>
17461 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Properly check if
17462 .init_array can be used with .ctors on targets.
17463 * configure: Regenerated.
17465 2011-06-18 Eric Botcazou <ebotcazou@adacore.com>
17467 * tree-sra.c (type_internals_preclude_sra_p) <ARRAY_TYPE>: Return true
17468 if the element type is volatile.
17470 2011-06-18 Jan Hubicka <jh@suse.cz>
17472 * lto-symtab.c (lto_varpool_replace_node): Remove code handling
17473 extra name aliases.
17474 (lto_symtab_resolve_can_prevail_p): Likewise.
17475 (lto_symtab_merge_cgraph_nodes): Update alias_of pointers.
17476 * cgraphbuild.c (record_reference): Remove extra body alias code.
17477 (mark_load): Likewise.
17478 (mark_store): Likewise.
17479 * cgraph.h (varpool_node): Remove extra_name filed;
17480 add alias_of and extraname_alias.
17481 (varpool_create_variable_alias, varpool_for_node_and_aliases): Declare.
17482 (varpool_alias_aliased_node): New inline function.
17483 (varpool_variable_node): New function.
17484 * cgraphunit.c (handle_alias_pairs): Handle also variable aliases.
17485 * ipa-ref.c (ipa_record_reference): Allow aliases on variables.
17486 * lto-cgraph.c (lto_output_varpool_node): Update streaming.
17487 (input_varpool_node): Likewise.
17488 * lto-streamer-out.c (produce_symtab): Remove extra name aliases.
17489 (varpool_externally_visible_p): Remove extra body alias code.
17490 (function_and_variable_visibility): Likewise.
17491 * tree-ssa-structalias.c (associate_varinfo_to_alias_1): New function.
17492 (ipa_pta_execute): Use it.
17493 * varpool.c (varpool_remove_node): Remove extra name alias code.
17494 (varpool_mark_needed_node): Likewise.
17495 (varpool_analyze_pending_decls): Analyze aliases.
17496 (assemble_aliases): New functoin.
17497 (varpool_assemble_decl): Use it.
17498 (varpool_create_variable_alias): New function.
17499 (varpool_extra_name_alias): Rewrite.
17500 (varpool_for_node_and_aliases): New function.
17502 2011-06-18 Jakub Jelinek <jakub@redhat.com>
17505 * config/i386/i386.c (ix86_expand_multi_arg_builtins): If
17506 last_arg_constant and last argument doesn't match its predicate,
17507 for xop_vpermil2<mode>3 error out and for xop_rotl<mode>3
17508 if it is CONST_INT, mask it, otherwise expand using rotl<mode>3.
17509 (ix86_expand_sse_pcmpestr, ix86_expand_sse_pcmpistr): Fix
17510 spelling of error message.
17511 * config/i386/sse.md (sse4a_extrqi, sse4a_insertqi,
17512 vcvtps2ph, *vcvtps2ph, *vcvtps2ph_store, vcvtps2ph256): Use
17513 const_0_to_255_operand instead of const_int_operand.
17516 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
17518 * config/i386/sse.md (blendbits): Remove mode attribute.
17519 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
17520 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
17521 Check integer value of operand 3 in insn constraint.
17523 2011-06-17 Hans-Peter Nilsson <hp@axis.com>
17525 PR rtl-optimization/48542
17526 * reload.c (find_equiv_reg): Stop looking when finding a
17528 * reload1.c (reload_as_needed): Invalidate all reload
17529 registers when crossing a setjmp-type call.
17531 2011-06-16 Jeff Law <law@redhat.com>
17533 * tree-ssa-threadupdate.c (struct redirection_data): New field
17535 (THREAD_TARGET2): Define.
17536 (redirection_data_eq): Also check that the intermediate edge is equal.
17537 (lookup_redirection_data): Drop useless argument. Extract the
17538 outgoing_edge and intermediate edge from E. Callers updated.
17539 (copy_phi_args, update_destination_phis): New functions.
17540 (fix_duplicate_block_edges): Likewise.
17541 (create_edge_and_update_destination_phis): Duplicate all the edges
17542 hung off e->aux. Use copy_phi_args.
17543 (create_duplicates): Use fix_duplicate_block_edges.
17544 (fixup_template_block): Likewise.
17545 (redirect_edges): If necessary, redirect the joiner block's incoming
17546 edge to the duplicate of the joiner block.
17547 (thread_block): Don't muck up loops when threading through a joiner
17549 (thread_through_loop_header): Handle threading through a joiner block.
17550 (mark_threaded_blocks, register_jump_thread): Likewise.
17551 * tree-flow.h (register_jump_thread): Add new argument. Callers
17553 * tree-ssa-threadedge.c (phi_args_equal_on_edges): New function.
17554 (thread_across_edge): Handle threading through a joiner block.
17556 2011-06-16 Martin Jambor <mjambor@suse.cz>
17558 PR tree-optimization/49343
17559 * tree-sra.c (build_ref_for_model): Use component_ref_field_offset to
17560 calculate offset, provide 2nd operand for the new COMPONENT_REF.
17562 2011-06-16 Iain Sandoe <iains@gcc.gnu.org>
17564 * config/darwin-protos.h (machopic_select_rtx_section): Move to
17565 inside RTX_CODE ifdef.
17567 2011-06-16 Tom de Vries <tom@codesourcery.com>
17570 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith):
17571 Disallow NULL pointer for pointer arithmetic.
17573 2011-06-16 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
17577 2011-06-10 Wei Guozhi <carrot@google.com>
17580 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
17581 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
17582 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
17584 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
17586 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
17587 (arm_legitimate_ldrd_p): New prototype.
17588 (arm_output_ldrd): New prototype.
17589 * config/arm/arm.c (arm_check_ldrd_operands): New function.
17590 (arm_legitimate_ldrd_p): New function.
17591 (arm_output_ldrd): New function.
17593 2011-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
17595 PR middle-end/46500
17596 * doc/tm.texi.in: Update Copyright date.
17597 * doc/tm.texi: Regenerate.
17598 * targhooks.c (default_setup_incoming_varargs): Replace
17599 CUMULATIVE_ARGS* argument type with cumulative_args_t.
17600 (default_pretend_outgoing_varargs_named): Likewise.
17601 (hook_pass_by_reference_must_pass_in_stack): Likewise.
17602 (hook_callee_copies_named): Likewise.
17603 (default_function_arg_advance): Likewise.
17604 (default_function_arg): Likewise.
17605 (default_function_incoming_arg): Likewise.
17606 (hook_bool_CUMULATIVE_ARGS_false): Likewise.
17607 (hook_bool_CUMULATIVE_ARGS_true): Likewise.
17608 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
17609 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
17610 (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
17611 * targhooks.h (default_setup_incoming_varargs): Likewise.
17612 (default_pretend_outgoing_varargs_named): Likewise.
17613 (hook_pass_by_reference_must_pass_in_stack): Likewise.
17614 (hook_callee_copies_named): Likewise.
17615 (default_function_arg_advance): Likewise.
17616 (default_function_arg): Likewise.
17617 (default_function_incoming_arg): Likewise.
17618 (hook_bool_CUMULATIVE_ARGS_false): Likewise.
17619 (hook_bool_CUMULATIVE_ARGS_true): Likewise.
17620 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
17621 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
17622 (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
17623 * target.def (pass_by_reference): Likewise.
17624 (setup_incoming_varargs, strict_argument_naming): Likewise.
17625 (pretend_outgoing_varargs_named, callee_copies): Likewise.
17626 (arg_partial_bytes, function_arg_advance, function_arg): Likewise.
17627 (function_incoming_arg): Likewise.
17628 * target.h: Don't include "tm.h" .
17629 (cumulative_args_t): New typedef.
17630 [GCC_TM_H] (get_cumulative_args): New static inline function.
17631 [GCC_TM_H] (pack_cumulative_args): Likewise.
17632 * config/alpha/alpha.c (alpha_function_arg): Replace CUMULATIVE_ARGS*
17633 argument type with cumulative_args_t.
17634 (alpha_function_arg_advance, alpha_arg_partial_bytes): Likewise.
17635 (alpha_pass_by_reference, alpha_setup_incoming_varargs): Likewise.
17636 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
17637 (frv_arg_partial_bytes, frv_function_arg): Likewise.
17638 (frv_function_incoming_arg, frv_function_arg_advance): Likewise.
17639 (frv_function_arg_1): Likewise.
17640 * config/s390/s390.c (s390_pass_by_reference): Likewise.
17641 (s390_function_arg_advance, s390_function_arg): Likewise.
17642 * config/m32c/m32c.c (m32c_function_arg): Likewise.
17643 (m32c_pass_by_reference, m32c_function_arg_advance): Likewise.
17644 (m32c_strict_argument_naming): Likewise.
17645 * config/spu/spu.c (spu_pass_by_reference, spu_function_arg): Likewise.
17646 (spu_function_arg_advance): Likewise.
17647 (spu_setup_incoming_varargs): Likewise. Make static.
17648 * config/spu/spu-protos.h (spu_setup_incoming_varargs):
17650 * config/sparc/sparc.c (sparc_strict_argument_naming): Replace
17651 CUMULATIVE_ARGS* argument type with cumulative_args_t.
17652 (sparc_pass_by_reference, sparc_function_arg_advance): Likewise.
17653 (sparc_function_arg, sparc_function_incoming_arg): Likewise.
17654 (sparc_arg_partial_bytes, sparc_function_arg_1): Likewise.
17655 * config/mep/mep.c (mep_setup_incoming_varargs): Likewise.
17656 (mep_pass_by_reference, mep_function_arg): Likewise.
17657 (mep_function_arg_advance): Likewise.
17658 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
17659 (m32r_pass_by_reference, m32r_arg_partial_bytes): Likewise.
17660 (m32r_function_arg, m32r_function_arg_advance): Likewise.
17661 * config/rx/rx.c (rx_function_arg, rx_function_arg_advance): Likewise.
17662 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
17663 (ix86_function_arg, ix86_pass_by_reference): Likewise.
17664 (ix86_setup_incoming_varargs): Likewise.
17665 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
17666 (sh_strict_argument_naming): Likewise.
17667 (sh_pretend_outgoing_varargs_named, sh_pass_by_reference): Likewise.
17668 (sh_callee_copies, sh_arg_partial_bytes): Likewise.
17669 (sh_function_arg_advance, sh_function_arg): Likewise.
17670 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
17671 (pdp11_function_arg_advance): Likewise.
17672 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
17674 (microblaze_function_arg, function_arg_partial_bytes): Likewise.
17675 * config/avr/avr.c (avr_function_arg): Likewise.
17676 (avr_function_arg_advance): Likewise.
17677 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
17678 (xtensa_function_arg, xtensa_function_incoming_arg): Likewise.
17679 (xtensa_function_arg_1): Likewise.
17680 * config/stormy16/stormy16.c (xstormy16_function_arg_advance):
17682 (xstormy16_function_arg): Likewise.
17683 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
17684 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
17685 (fr30_function_arg_advance): Likewise.
17686 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
17687 (lm32_function_arg, lm32_function_arg_advance): Likewise.
17688 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
17689 (moxie_function_arg, moxie_function_arg_advance): Likewise.
17690 (moxie_pass_by_reference, moxie_arg_partial_bytes): Likewise.
17691 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
17692 (cris_pass_by_reference, cris_arg_partial_bytes): Likewise.
17693 (cris_function_arg, cris_function_incoming_arg): Likewise.
17694 (cris_function_arg_advance, cris_function_arg_1): Likewise.
17695 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
17696 (iq2000_pass_by_reference, iq2000_arg_partial_bytes): Likewise.
17697 (iq2000_function_arg, iq2000_function_arg_advance): Likewise.
17698 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
17699 (mn10300_function_arg, mn10300_function_arg_advance): Likewise.
17700 (mn10300_arg_partial_bytes): Likewise.
17701 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
17702 (ia64_arg_partial_bytes, ia64_function_arg): Likewise.
17703 (ia64_function_incoming_arg, ia64_function_arg_advance): Likewise.
17704 (ia64_function_arg_1): Likewise.
17705 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
17706 (m68k_function_arg): Likewise.
17707 * config/rs6000/rs6000.c (rs6000_function_arg_advance): Likewise.
17708 (rs6000_function_arg, setup_incoming_varargs): Likewise.
17709 (rs6000_pass_by_reference, rs6000_arg_partial_bytes): Likewise.
17710 * config/picochip/picochip.c (picochip_arg_partial_bytes): Likewise.
17711 (picochip_function_arg, picochip_incoming_function_arg): Likewise.
17712 (picochip_arg_advance): Likewise.
17713 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
17714 (mcore_arg_partial_bytes, mcore_function_arg): Likewise.
17715 (mcore_function_arg_advance): Likewise.
17716 * config/score/score.c (score_pass_by_reference): Likewise.
17717 (score_function_arg_advance): Likewise.
17718 (score_arg_partial_bytes): Likewise. Make static.
17719 * config/score/score-protos.h (score_arg_partial_bytes): Don't declare.
17720 * config/arm/arm.c (arm_arg_partial_bytes): Replace
17721 CUMULATIVE_ARGS* argument type with cumulative_args_t.
17722 (arm_function_arg, arm_function_arg_advance): Likewise.
17723 (arm_setup_incoming_varargs, arm_pass_by_reference): Likewise.
17724 * config/pa/pa.c (pa_pass_by_reference): Likewise.
17725 (pa_arg_partial_bytes, pa_function_arg_advance): Likewise.
17726 (pa_function_arg): Likewise.
17727 * config/mips/mips.c (mips_strict_argument_naming): Likewise.
17728 (mips_function_arg, mips_function_arg_advance): Likewise.
17729 (mips_arg_partial_bytes, mips_pass_by_reference): Likewise.
17730 (mips_callee_copies, mips_setup_incoming_varargs): Likewise.
17731 * config/vax/vax.c (vax_function_arg): Likewise.
17732 (vax_function_arg_advance): Likewise.
17733 * config/h8300/h8300.c (h8300_function_arg): Likewise.
17734 (h8300_function_arg_advance): Likewise.
17735 * config/v850/v850.c (v850_pass_by_reference): Likewise.
17736 (v850_strict_argument_naming, v850_function_arg): Likewise.
17737 (v850_arg_partial_bytes, v850_function_arg_advance): Likewise.
17738 (v850_setup_incoming_varargs): Likewise.
17739 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
17740 (mmix_function_arg_advance, mmix_function_incoming_arg): Likewise.
17741 (mmix_function_arg, mmix_pass_by_reference): Likewise.
17742 (mmix_function_arg_1): Replace const CUMULATIVE_ARGS* argument type
17744 * config/bfin/bfin.c (setup_incoming_varargs): Replace
17745 CUMULATIVE_ARGS* argument type with cumulative_args_t.
17746 (bfin_function_arg_advance, bfin_function_arg): Likewise.
17747 (bfin_arg_partial_bytes, bfin_pass_by_reference): Likewise.
17748 * calls.c (emit_call_1): Change type of args_so_far to
17749 cumulative_args_t. Changed all callers.
17750 (initialize_argument_information): Likewise.
17751 (expand_call, emit_library_call_value_1): Use pack_cumulative_args.
17752 * dse.c (get_call_args): Likewise.
17753 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
17754 * function.c (pass_by_reference, reference_callee_copied): Likewise.
17755 (struct assign_parm_data_all): Rename args_so_far to args_so_far_v.
17756 New member args_so_far_v. Changed all users.
17757 * var-tracking.c (prepare_call_arguments): Use pack_cumulative_args.
17758 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
17759 * config/mips/mips.c (mips_output_args_xfer): Likewise.
17760 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
17761 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
17762 * config/microblaze/microblaze.c (microblaze_expand_prologue):
17764 * config/m32r/m32r.c (m32r_return_in_memory): Adjust for changed
17765 m32r_pass_by_reference.
17767 2011-06-16 Ira Rosen <ira.rosen@linaro.org>
17769 * tree-vectorizer.h (vect_recog_func_ptr): Change the first
17770 argument to be a VEC of statements.
17771 * tree-vect-loop.c (vect_determine_vectorization_factor): Remove the
17772 assert that pattern statements have to have their vector type set.
17773 * tree-vect-patterns.c (vect_recog_widen_sum_pattern):
17774 Change the first argument to be a VEC of statements. Update
17776 (vect_recog_dot_prod_pattern, vect_recog_pow_pattern): Likewise.
17777 (vect_handle_widen_mult_by_const): New function.
17778 (vect_recog_widen_mult_pattern): Change the first argument to be a
17779 VEC of statements. Update documentation. Check that the constant is
17780 INTEGER_CST. Support multiplication by a constant that fits an
17781 intermediate type - call vect_handle_widen_mult_by_const.
17782 (vect_pattern_recog_1): Update vect_recog_func_ptr and its
17783 call. Handle additional pattern statements if necessary.
17785 2011-06-16 Nick Clifton <nickc@redhat.com>
17788 * config.gcc: Set cpu_type to v850 for any V850 architecture.
17789 (v850*-*-*): Delete explicit setting of tm_p_file, tmake_file,
17790 md_file, extra_modes, out_file and extra_options are these are all
17791 deduced from cpu_type.
17793 2011-06-16 Georg-Johann Lay <avr@gjlay.de>
17795 * config/avr/libgcc.S (__ashldi3, __ashrdi3, __lshrdi3): Set shift
17796 truncation mask to 63.
17798 2011-06-16 Georg-Johann Lay <avr@gjlay.de>
17802 * longlong.h: Add AVR support:
17803 (count_leading_zeros): New macro.
17804 (count_trailing_zeros): New macro.
17805 (COUNT_LEADING_ZEROS_0): New macro.
17806 * config/avr/t-avr (LIB1ASMFUNCS): Add _ffssi2, _ffshi2, _loop_ffsqi2,
17807 _ctzsi2, _ctzhi2, _clzdi2, _clzsi2, _clzhi2, _paritydi2, _paritysi2,
17808 _parityhi2, _popcounthi2,_popcountsi2, _popcountdi2, _popcountqi2,
17809 _bswapsi2, _bswapdi2, _ashldi3, _ashrdi3, _lshrdi3.
17810 (LIB2FUNCS_EXCLUDE): Add _clz.
17811 * config/avr/libgcc.S (XCALL): Move up in file.
17812 (XJMP): New C Macro.
17813 (DEFUN): New asm macro.
17814 (ENDF): New asm macro.
17815 (__ffssi2): New function.
17816 (__ffshi2): New function.
17817 (__loop_ffsqi2): New function.
17818 (__ctzsi2): New function.
17819 (__ctzhi2): New function.
17820 (__clzdi2): New function.
17821 (__clzsi2): New function.
17822 (__clzhi2): New function.
17823 (__paritydi2): New function.
17824 (__paritysi2): New function.
17825 (__parityhi2): New function.
17826 (__parityqi2): New function.
17827 (__popcounthi2): New function.
17828 (__popcountsi2): New function.
17829 (__popcountdi2): New function.
17830 (__popcountqi2): New function.
17831 (__bswapsi2): New function.
17832 (__bswapdi2): New function.
17833 (__ashldi3): New function.
17834 (__ashrdi3): New function.
17835 (__lshrdi3): New function.
17836 Fix suspicous lines.
17838 2011-06-16 Richard Guenther <rguenther@suse.de>
17840 * gimple.c (canonicalize_cond_expr_cond): (bool)x is not
17841 the same as x != 0.
17842 * fold-const.c (fold_binary_loc): Do not fold X & 1 != 0
17844 * ipa-prop.c (ipa_analyze_indirect_call_uses): Also allow
17845 equality compares against zero for the lower bit.
17847 2011-06-16 Jakub Jelinek <jakub@redhat.com>
17849 PR tree-optimization/49419
17850 * tree-vrp.c (execute_vrp): Call init_range_assertions
17851 before estimate_numbers_of_iterations, call
17852 free_number_of_iterations_estimates before calling
17853 remove_range_assertions.
17855 2011-06-16 Revital Eres <revital.eres@linaro.org>
17857 * modulo-sched.c (struct ps_insn): Remove row_rest_count field.
17858 (struct partial_schedule): Add rows_length field.
17859 (verify_partial_schedule): Check rows_length.
17860 (ps_insert_empty_row): Handle rows_length.
17861 (create_partial_schedule): Likewise.
17862 (free_partial_schedule): Likewise.
17863 (reset_partial_schedule): Likewise.
17864 (create_ps_insn): Remove rest_count argument.
17865 (remove_node_from_ps): Update rows_length.
17866 (add_node_to_ps): Update rows_length and call create_ps_insn
17867 without passing row_rest_count.
17868 (rotate_partial_schedule): Update rows_length.
17870 2011-06-16 Revital Eres <revital.eres@linaro.org>
17872 * ddg.c (add_intra_loop_mem_dep): New function.
17873 (build_intra_loop_deps): Call it.
17875 2011-06-13 Jeff Law <law@redhat.com>
17877 * df-problems.c (df_lr_local_compute): Manually CSE
17878 PIC_OFFSET_TABLE_REGNUM.
17879 * df-scan.c (df_get_regular_block_artificial_uses): Likewise.
17880 (df_get_entry_block_def_set, df_get_exit_block_use_set): Likewise.
17882 2011-06-13 Jan Hubicka <jh@suse.cz>
17884 * cgraphunit.c (handle_alias_pairs): New function.
17885 (cgraph_finalize_compilation_unit): Use it.
17886 * ipa.c (cgraph_externally_visible_p): Remove hack marking asm names
17887 as externally visible.
17889 2011-06-15 Richard Guenther <rguenther@suse.de>
17891 * expr.c (expand_expr_real_2): Reduce all integral types to
17892 bitfield precision.
17893 (expand_expr_real_1): Likewise.
17895 2011-06-15 Martin Jambor <mjambor@suse.cz>
17897 PR tree-optimization/48613
17898 * ipa-prop.c (ipa_prop_write_jump_functions): Return immediately if
17899 ipa_node_params_vector is NULL.
17901 2011-06-15 Jakub Jelinek <jakub@redhat.com>
17904 * dwarf2out.c (dw_loc_list_node): Add force field.
17905 (add_var_loc_to_decl): For PARM_DECL, attempt to keep the incoming
17906 location in the list, even if it is modified before first real insn.
17907 (output_loc_list): Emit empty ranges with force flag set.
17908 (dw_loc_list): If first range of a PARM_DECL is empty, set force flag.
17910 2011-06-15 Alexander Monakov <amonakov@ispras.ru>
17913 * sel-sched.c (find_place_for_bookkeeping): Add new parameter
17914 (fence_to_rewind). Use it to notice when bookkeeping will be placed
17915 above a fence. Update comments.
17916 (generate_bookkeeping_insn): Rewind fence when bookkeeping code is
17917 placed just above it. Do not allow NULL place_to_insert.
17919 2011-06-15 Ira Rosen <ira.rosen@linaro.org>
17921 * tree-vect-loop-manip.c (remove_dead_stmts_from_loop): Remove.
17922 (slpeel_tree_peel_loop_to_edge): Don't call
17923 remove_dead_stmts_from_loop.
17924 * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
17925 remove irrelevant pattern statements. For irrelevant statements
17926 check if it is the last statement of a detected pattern, use
17927 corresponding pattern statement instead.
17928 (destroy_loop_vec_info): No need to remove pattern statements,
17929 only free stmt_vec_info.
17930 (vect_transform_loop): For irrelevant statements check if it is
17931 the last statement of a detected pattern, use corresponding
17932 pattern statement instead.
17933 * tree-vect-patterns.c (vect_pattern_recog_1): Don't insert
17934 pattern statements. Set basic block for the new statement.
17935 (vect_pattern_recog): Update documentation.
17936 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Scan
17937 operands of pattern statements.
17938 (vectorizable_call): Fix printing. In case of a pattern statement
17939 use the lhs of the original statement when creating a dummy
17940 statement to replace the original call.
17941 (vect_analyze_stmt): For irrelevant statements check if it is
17942 the last statement of a detected pattern, use corresponding
17943 pattern statement instead.
17944 * tree-vect-slp.c (vect_schedule_slp_instance): For pattern
17945 statements use gsi of the original statement.
17947 2011-06-14 Joseph Myers <joseph@codesourcery.com>
17949 * target-def.h (TARGET_HAVE_NAMED_SECTIONS): Move to
17950 common/common-target-def.h.
17951 * target.def (default_target_flags, handle_option,
17952 supports_split_stack, optimization_table, init_struct,
17953 except_unwind_info, unwind_tables_default, have_named_sections):
17954 Move to common/common-target.def.
17955 * target.h (enum opt_levels, struct default_options): Move to
17956 common/common-target.h.
17957 * targhooks.c (default_except_unwind_info,
17958 dwarf2_except_unwind_info, sjlj_except_unwind_info,
17959 default_target_handle_option, empty_optimization_table): Move to
17960 common/common-targhooks.c.
17961 * targhooks.h (default_except_unwind_info,
17962 dwarf2_except_unwind_info, sjlj_except_unwind_info,
17963 default_target_handle_option, empty_optimization_table): Move to
17964 common/common-targhooks.h.
17965 * common/common-target-def.h: Include common/common-targhooks.h.
17966 (TARGET_HAVE_NAMED_SECTIONS): Define if TARGET_ASM_NAMED_SECTION
17968 * common/common-target.def (handle_option, option_init_struct,
17969 option_optimization_table, default_target_flags,
17970 except_unwind_info, supports_split_stack, unwind_tables_default,
17971 have_named_sections): Move from target.def.
17972 (HOOK_PREFIX): Undefine at end of file.
17973 * common/common-target.h: Include input.h.
17974 (enum opt_levels, struct default_options): Move from target.h.
17975 * common/common-targhooks.c, common/common-targhooks.h: New.
17976 * config.gcc (target_has_targetm_common): Default to yes.
17977 (moxie*): Set target_has_targetm_common=no.
17978 (hppa*-*-*): Don't set target_has_targetm_common=yes.
17979 * doc/tm.texi: Regenerate.
17980 * Makefile.in (COMMON_TARGET_H): Add $(INPUT_H).
17981 (C_TARGET_DEF_H): Add common/common-targhooks.h.
17982 (GCC_OBJS): Remove vec.o.
17983 (OBJS): Remove hooks.o and vec.o.
17984 (OBJS-libcommon-target): Add vec.o, hooks.o and
17985 common/common-targhooks.o.
17986 (c-family/c-common.o, c-family/c-cppbuiltin.o, lto-opts.o, tree.o,
17987 tree-tailcall.o, opts.o, toplev.o, varasm.o, function.o, except.o,
17988 expr.o, explow.o, dbxout.o, dwarf2out.o, cfgrtl.o, haifa-sched.o,
17989 cfglayout.o, $(out_object_file), $(common_out_object_file)):
17990 Update dependencies.
17991 (common/common-targhooks.o): New.
17992 * common/config/default-common.c: Include tm.h. Add FIXME comment.
17993 * common/config/pa/pa-common.c: Include more headers. Take
17994 copyright dates from pa.c.
17995 (pa_option_optimization_table, pa_handle_option,
17996 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS,
17997 TARGET_HANDLE_OPTION): Move from pa.c.
17998 * common/config/alpha/alpha-common.c,
17999 common/config/arm/arm-common.c, common/config/avr/avr-common.c,
18000 common/config/bfin/bfin-common.c,
18001 common/config/cris/cris-common.c,
18002 common/config/fr30/fr30-common.c, common/config/frv/frv-common.c,
18003 common/config/h8300/h8300-common.c,
18004 common/config/i386/i386-common.c,
18005 common/config/ia64/ia64-common.c,
18006 common/config/iq2000/iq2000-common.c,
18007 common/config/lm32/lm32-common.c,
18008 common/config/m32c/m32c-common.c,
18009 common/config/m32r/m32r-common.c,
18010 common/config/m68k/m68k-common.c,
18011 common/config/mcore/mcore-common.c,
18012 common/config/mep/mep-common.c,
18013 common/config/microblaze/microblaze-common.c,
18014 common/config/mips/mips-common.c,
18015 common/config/mmix/mmix-common.c,
18016 common/config/mn10300/mn10300-common.c,
18017 common/config/pdp11/pdp11-common.c,
18018 common/config/picochip/picochip-common.c,
18019 common/config/rs6000/rs6000-common.c,
18020 common/config/rx/rx-common.c, common/config/s390/s390-common.c,
18021 common/config/score/score-common.c, common/config/sh/sh-common.c,
18022 common/config/sparc/sparc-common.c,
18023 common/config/spu/spu-common.c, common/config/v850/v850-common.c,
18024 common/config/vax/vax-common.c,
18025 common/config/xstormy16/xstormy16-common.c,
18026 common/config/xtensa/xtensa-common.c: New.
18027 * config/alpha/alpha.c: Include common/common-target.h.
18028 (alpha_option_optimization_table, alpha_handle_option,
18029 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
18030 TARGET_OPTION_OPTIMIZATION_TABLE): Move to alpha-common.c.
18031 * config/arm/arm-protos.h (arm_except_unwind_info): Declare.
18032 * config/arm/arm.c (arm_option_optimization_table,
18033 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
18034 TARGET_EXCEPT_UNWIND_INFO, arm_except_unwind_info): Move to
18036 * config/avr/avr.c (avr_option_optimization_table,
18037 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
18039 * config/bfin/bfin.c (struct bfin_cpu): Move to bfin.h.
18040 (bfin_cpus, bfin_handle_option, TARGET_HANDLE_OPTION,
18041 TARGET_DEFAULT_TARGET_FLAGS): Move to bfin-common.c.
18042 * config/bfin/bfin.h struct bfin_cpu): Move from bfin.c.
18043 * config/cris/cris.c (cris_option_optimization_table,
18044 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
18045 TARGET_OPTION_OPTIMIZATION_TABLE, cris_handle_option): Move to
18047 * config/fr30/fr30.c (fr30_option_optimization_table,
18048 TARGET_EXCEPT_UNWIND_INFO, TARGET_OPTION_OPTIMIZATION_TABLE): Move
18050 * config/frv/frv.c (frv_option_optimization_table,
18051 MASK_DEFAULT_ALLOC_CC, TARGET_DEFAULT_TARGET_FLAGS,
18052 TARGET_OPTION_OPTIMIZATION_TABLE): Move to frv-common.c.
18053 * config/h8300/h8300.c (h8300_option_optimization_table,
18054 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
18055 TARGET_EXCEPT_UNWIND_INFO): Move to h8300-common.c.
18056 * config/i386/i386-protos.h (ix86_handle_option): Declare.
18057 * config/i386/i386.c: Include common/common-target.h.
18058 (OPTION_MASK_ISA_MMX_SET, OPTION_MASK_ISA_3DNOW_SET,
18059 OPTION_MASK_ISA_SSE_SET, OPTION_MASK_ISA_SSE2_SET,
18060 OPTION_MASK_ISA_SSE3_SET, OPTION_MASK_ISA_SSSE3_SET,
18061 OPTION_MASK_ISA_SSE4_1_SET, OPTION_MASK_ISA_SSE4_2_SET,
18062 OPTION_MASK_ISA_AVX_SET, OPTION_MASK_ISA_FMA_SET,
18063 OPTION_MASK_ISA_SSE4_SET, OPTION_MASK_ISA_SSE4A_SET,
18064 OPTION_MASK_ISA_FMA4_SET, OPTION_MASK_ISA_XOP_SET,
18065 OPTION_MASK_ISA_LWP_SET, OPTION_MASK_ISA_AES_SET,
18066 OPTION_MASK_ISA_PCLMUL_SET, OPTION_MASK_ISA_ABM_SET,
18067 OPTION_MASK_ISA_BMI_SET, OPTION_MASK_ISA_TBM_SET,
18068 OPTION_MASK_ISA_POPCNT_SET, OPTION_MASK_ISA_CX16_SET,
18069 OPTION_MASK_ISA_SAHF_SET, OPTION_MASK_ISA_MOVBE_SET,
18070 OPTION_MASK_ISA_CRC32_SET, OPTION_MASK_ISA_FSGSBASE_SET,
18071 OPTION_MASK_ISA_RDRND_SET, OPTION_MASK_ISA_F16C_SET,
18072 OPTION_MASK_ISA_MMX_UNSET, OPTION_MASK_ISA_3DNOW_UNSET,
18073 OPTION_MASK_ISA_3DNOW_A_UNSET, OPTION_MASK_ISA_SSE_UNSET,
18074 OPTION_MASK_ISA_SSE2_UNSET, OPTION_MASK_ISA_SSE3_UNSET,
18075 OPTION_MASK_ISA_SSSE3_UNSET, OPTION_MASK_ISA_SSE4_1_UNSET,
18076 OPTION_MASK_ISA_SSE4_2_UNSET, OPTION_MASK_ISA_AVX_UNSET,
18077 OPTION_MASK_ISA_FMA_UNSET, OPTION_MASK_ISA_SSE4_UNSET,
18078 OPTION_MASK_ISA_SSE4A_UNSET, OPTION_MASK_ISA_FMA4_UNSET,
18079 OPTION_MASK_ISA_XOP_UNSET, OPTION_MASK_ISA_LWP_UNSET,
18080 OPTION_MASK_ISA_AES_UNSET, OPTION_MASK_ISA_PCLMUL_UNSET,
18081 OPTION_MASK_ISA_ABM_UNSET, OPTION_MASK_ISA_BMI_UNSET,
18082 OPTION_MASK_ISA_TBM_UNSET, OPTION_MASK_ISA_POPCNT_UNSET,
18083 OPTION_MASK_ISA_CX16_UNSET, OPTION_MASK_ISA_SAHF_UNSET,
18084 OPTION_MASK_ISA_MOVBE_UNSET, OPTION_MASK_ISA_CRC32_UNSET,
18085 OPTION_MASK_ISA_FSGSBASE_UNSET, OPTION_MASK_ISA_RDRND_UNSET,
18086 OPTION_MASK_ISA_F16C_UNSET, ix86_handle_option,
18087 ix86_option_optimization_table, ix86_option_init_struct,
18088 ix86_supports_split_stack, TARGET_DEFAULT_TARGET_FLAGS,
18089 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
18090 TARGET_OPTION_INIT_STRUCT, TARGET_SUPPORTS_SPLIT_STACK): Move to
18092 * config/i386/t-i386 (i386.o): Update dependencies.
18093 * config/ia64/ia64-protos.h (ia64_except_unwind_info): Declare.
18094 * config/ia64/ia64.c (ia64_option_optimization_table,
18095 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
18096 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
18097 ia64_handle_option): Move to ia64-common.c.
18098 * config/iq2000/iq2000.c (iq2000_option_optimization_table,
18099 TARGET_OPTION_OPTIMIZATION_TABLE): Move to iq2000-common.c.
18100 * config/lm32/lm32.c (lm32_option_optimization_table,
18101 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
18103 * config/m32c/m32c.c (TARGET_HAVE_NAMED_SECTIONS): Move to
18105 * config/m32r/m32r.c (m32r_option_optimization_table,
18106 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
18107 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
18108 m32r_handle_option): Move to m32r-common.c.
18109 (m32r_memory_move_cost): Remove comment referring to
18110 TARGET_HANDLE_OPTION.
18111 * config/m68k/m68k.c (TARGET_HANDLE_OPTION, m68k_handle_option):
18112 Move to m68k-common.c.
18113 * config/mcore/mcore.c (mcore_option_optimization_table,
18114 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
18115 TARGET_EXCEPT_UNWIND_INFO): Move to mcore-common.c.
18116 * config/mep/mep.c (mep_option_optimization_table,
18117 mep_handle_option, TARGET_HANDLE_OPTION,
18118 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS):
18119 Move to mep-common.c.
18120 * config/microblaze/microblaze.c
18121 (microblaze_option_optimization_table,
18122 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
18123 TARGET_EXCEPT_UNWIND_INFO): Move to microblaze-common.c.
18124 * config/mips/mips.c (mips_handle_option,
18125 mips_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
18126 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Move to
18128 * config/mmix/mmix.c (mmix_option_optimization_table,
18129 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
18130 Move to mmix-common.c.
18131 * config/mn10300/mn10300.c (mn10300_option_optimization_table,
18132 mn10300_handle_option, TARGET_EXCEPT_UNWIND_INFO,
18133 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
18134 TARGET_OPTION_OPTIMIZATION_TABLE): Move to mn10300-common.c.
18135 * config/pa/pa.c: Include common/common-target.h.
18136 (pa_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
18137 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
18138 pa_handle_option): Move to pa-common.c.
18139 (pa_option_override): Use targetm_common.except_unwind_info.
18140 (pa_asm_output_mi_thunk, pa_function_section): Use
18141 targetm_common.have_named_sections.
18142 * config/pdp11/pdp11.c (pdp11_option_optimization_table,
18143 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
18144 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
18145 pdp11_handle_option, pdp11_option_init_struct): Move to
18147 * config/picochip/picochip.c (picochip_option_optimization_table,
18148 TARGET_HAVE_NAMED_SECTIONS, TARGET_OPTION_OPTIMIZATION_TABLE,
18149 TARGET_EXCEPT_UNWIND_INFO): Move to picochip-common.c.
18150 * config/rs6000/rs6000.c: Include common/common-target.h.
18151 (rs6000_option_optimization_table, TARGET_HANDLE_OPTION,
18152 TARGET_OPTION_INIT_STRUCT, TARGET_OPTION_OPTIMIZATION_TABLE,
18153 TARGET_DEFAULT_TARGET_FLAGS, rs6000_option_init_struct,
18154 rs6000_handle_option): Move to rs6000-common.c.
18155 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
18156 * config/rx/rx.c (rx_handle_option, rx_option_optimization_table,
18157 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
18158 TARGET_EXCEPT_UNWIND_INFO): Move to rx-common.c.
18159 * config/s390/s390.c (processor_flags_table,
18160 s390_option_optimization_table, s390_option_init_struct,
18161 s390_handle_option, TARGET_DEFAULT_TARGET_FLAGS,
18162 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
18163 TARGET_OPTION_INIT_STRUCT): Move to s390-common.c.
18164 * config/s390/s390.h (processor_flags_table): Declare.
18165 * config/score/score.c (score_option_optimization_table,
18166 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
18167 TARGET_OPTION_OPTIMIZATION_TABLE, MASK_ALL_CPU_BITS,
18168 score_handle_option): Move to score-common.c.
18169 * config/sh/sh.c (sh_option_optimization_table,
18170 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
18171 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
18172 sh_handle_option, sh_option_init_struct): Move to sh-common.c.
18173 * config/sparc/sparc.c: Include common/common-target.h.
18174 (sparc_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
18175 TARGET_OPTION_OPTIMIZATION_TABLE): Move to sparc-common.c.
18176 * config/spu/spu.c (TARGET_DEFAULT_TARGET_FLAGS,
18177 TARGET_OPTION_INIT_STRUCT, TARGET_EXCEPT_UNWIND_INFO,
18178 spu_option_init_struct): Move to spu-common.c.
18179 * config/stormy16/stormy16.c (xstorym16_option_optimization_table,
18180 TARGET_OPTION_OPTIMIZATION_TABLE): Move to xstormy16-common.c.
18181 * config/v850/v850.c (small_memory_physical_max,
18182 v850_handle_memory_optionn v850_handle_option,
18183 v850_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
18184 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE): Move to
18186 * config/vax/vax.c (TARGET_DEFAULT_TARGET_FLAGS): Move to vax-common.c.
18187 * config/xtensa/xtensa.c (xtensa_option_optimization_table,
18188 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
18189 Move to xtensa-common.c.
18190 * cfglayout.c: Include common/common-target.h.
18191 (fixup_reorder_chain): Use targetm_common.have_named_sections.
18192 * cfgrtl.c: Include common/common-target.h.
18193 (force_nonfallthru_and_redirect, commit_one_edge_insertion): Use
18194 targetm_common.have_named_sections.
18195 * dbxout.c: Include common/common-target.h.
18196 (dbxout_function_end): Use targetm_common.have_named_sections.
18197 * defaults.h (STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT): Use
18198 targetm_common.except_unwind_info.
18199 * dwarf2out.c: Include common/common-target.h.
18200 (dwarf2out_do_frame, dwarf2out_do_cfi_asm,
18201 dwarf2out_begin_prologue, dwarf2out_frame_init,
18202 dwarf2out_frame_finish, dwarf2out_assembly_start): Use
18203 targetm_common.except_unwind_info.
18204 * except.c: Include common/common-target.h.
18205 (init_eh, finish_eh_generation,
18206 output_one_function_exception_table): Use
18207 targetm_common.except_unwind_info.
18208 (switch_to_exception_section): Use targetm_common.have_named_sections.
18209 * explow.c: Include common/common-target.h.
18210 * expr.c: Include common/common-target.h.
18211 (build_personality_function): Use targetm_common.except_unwind_info.
18212 * function.c: Include common/common-target.h.
18213 (expand_function_end): Use targetm_common.except_unwind_info.
18214 * haifa-sched.c: Include common/common-target.h.
18215 (sched_create_recovery_edges): Use targetm_common.have_named_sections.
18216 * lto-opts.c: Include common/common-target.h instead of target.h.
18217 (lto_reissue_options): Use targetm_common.handle_option.
18218 * opts.c: Include common/common-target.h.
18219 (target_handle_option): Use targetm_common.handle_option.
18220 (init_options_struct): Update comment referring to
18221 targetm.target_option.optimization. Use
18222 targetm_common.default_target_flags,
18223 targetm_common.unwind_tables_default and
18224 targetm_common.option_init_struct.
18225 (default_options_optimization): Use
18226 targetm_common.option_optimization_table.
18227 (finish_options): Use targetm_common.except_unwind_info,
18228 targetm_common.unwind_tables_default,
18229 targetm_common.have_named_sections and
18230 targetm_common.supports_split_stack.
18231 * toplev.c: Include common/common-target.h.
18232 (process_options): Use targetm_common.have_named_sections.
18233 * tree-tailcall.c: Include common/common-target.h.
18234 (suitable_for_tail_call_opt_p): Use targetm_common.except_unwind_info.
18235 * tree.c: Include common/common-target.h.
18236 (build_common_builtin_nodes): Use targetm_common.except_unwind_info.
18237 * varasm.c: Include common/common-target.h.
18238 (resolve_unique_section, hot_function_section,
18239 default_function_section): Use targetm_common.have_named_sections.
18241 2011-06-14 Easwaran Raman <eraman@google.com>
18243 PR rtl-optimization/44194
18244 * dse.c: Include tree-flow.h
18245 (insn_info): Add new field non_frame_wild_read.
18246 (group_info): Add new fields escaped_n and escaped_p.
18247 (kill_on_calls): New variable.
18248 (get_group_info): Initialize gi->escaped_n and gi->escaped_p.
18249 (dse_step0): Initialize kill_on_calls.
18250 (can_escape): New function.
18251 (set_usage_bits): Add additional parameter; record information
18252 about escaped locations.
18253 (record_store): Pass EXPR corresponding to MEM to set_usage_bits.
18254 (dse_step2_nospill): Set kill_on_calls based on
18255 group->escaped_n and group->escaped_n.
18256 (add_wild_read): Refactor into...
18257 (reset_active_stores): ... New function, and
18258 (free_read_records): ... New function.
18259 (add_non_frame_wild_read): New function.
18260 (scan_insn): Call add_non_frame_wild_read on non-const calls.
18261 (scan_reads_nospill): Handle instructions with non_frame_wild_read.
18262 (dse_step5_nospill): Call scan_reads_nospill for instructions
18263 marked as non_frame_wild_read.
18264 (dse_step7): Free escaped_n, escaped_p and kill_on_calls bitmaps.
18266 2011-06-14 Joseph Myers <joseph@codesourcery.com>
18268 * common/common-target-def.h, common/common-target.def,
18269 common/common-target.h, common/config/default-common.c,
18270 common/config/pa/pa-common.c: New files.
18271 * Makefile.in (common_out_file, common_out_object_file,
18272 COMMON_TARGET_H, COMMON_TARGET_DEF_H): New.
18273 (OBJS-libcommon-target): Include $(common_out_object_file).
18274 (prefix.o): Update dependencies.
18275 ($(common_out_object_file), common/common-target-hooks-def.h,
18276 s-common-target-hooks-def-h): New.
18277 (s-tm-texi): Also check timestamp on common-target.def.
18278 (build/genhooks.o): Update dependencies.
18279 * config.gcc (common_out_file, target_has_targetm_common): Define.
18280 * config/pa/som.h (ALWAYS_STRIP_DOTDOT): Replace with
18281 TARGET_ALWAYS_STRIP_DOTDOT.
18282 * configure.ac (common_out_object_file): Define.
18283 (common_out_file, common_out_object_file): Substitute.
18284 (common): Create directory.
18285 * configure: Regenerate.
18286 * doc/tm.texi.in (targetm_common): Document.
18287 (TARGET_ALWAYS_STRIP_DOTDOT): Add @hook entry.
18288 * doc/tm.texi: Regenerate.
18289 * genhooks.c (hook_array): Also include common/common-target.def.
18290 * prefix.c (tm.h): Don't include.
18291 (common/common-target.h): Include.
18292 (ALWAYS_STRIP_DOTDOT): Don't define.
18293 (update_path): Use targetm_common.always_strip_dotdot instead of
18294 ALWAYS_STRIP_DOTDOT.
18295 * system.h (ALWAYS_STRIP_DOTDOT): Poison.
18297 2011-06-14 David Li <davidxl@google.com>
18299 * passes.c (execute_function_todo): Remove TODO_dump_func.
18300 (execute_one_pass): Remove TODO_dump_func.
18301 (execute_function_dump): New function.
18302 * tree-vrp.c: Remove TODO_dump_func.
18303 * regrename.c: Remove TODO_dump_func.
18304 * fwprop.c: Remove TODO_dump_func.
18305 * tree-into-ssa.c: Remove TODO_dump_func.
18306 * tree-complex.c: Remove TODO_dump_func.
18307 * tracer.c: Remove TODO_dump_func.
18308 * tree-loop-distribution.c: Remove TODO_dump_func.
18309 * postreload-gcse.c: Remove TODO_dump_func.
18310 * postreload.c: Remove TODO_dump_func.
18311 * tree-ssa-loop-ch.c: Remove TODO_dump_func.
18312 * tree-tailcall.c: Remove TODO_dump_func.
18313 * ipa-cp.c: Remove TODO_dump_func.
18314 * final.c: Remove TODO_dump_func.
18315 * tree-emutls.c: Remove TODO_dump_func.
18316 * omp-low.c: Remove TODO_dump_func.
18317 * tree-ssa-dse.c: Remove TODO_dump_func.
18318 * tree-ssa-uncprop.c: Remove TODO_dump_func.
18319 * auto-inc-dec.c: Remove TODO_dump_func.
18320 * reorg.c: Remove TODO_dump_func.
18321 * tree-ssa-copyrename.c: Remove TODO_dump_func.
18322 * tree-ssa-ccp.c: Remove TODO_dump_func.
18323 * compare-elim.c: Remove TODO_dump_func.
18324 * mode-switching.c: Remove TODO_dump_func.
18325 * modulo-sched.c: Remove TODO_dump_func.
18326 * tree-call-cdce.c: Remove TODO_dump_func.
18327 * cse.c: Remove TODO_dump_func.
18328 * web.c: Remove TODO_dump_func.
18329 * tree-stdarg.c: Remove TODO_dump_func.
18330 * lto-streamer-out.c: Remove TODO_dump_func.
18331 * tree-ssa-math-opts.c: Remove TODO_dump_func.
18332 * tree-ssa-dom.c: Remove TODO_dump_func.
18333 * tree-nrv.c: Remove TODO_dump_func.
18334 * loop-init.c: Remove TODO_dump_func.
18335 * gimple-low.c: Remove TODO_dump_func.
18336 * ipa-inline.c: Remove TODO_dump_func.
18337 * tree-ssa-sink.c: Remove TODO_dump_func.
18338 * jump.c: Remove TODO_dump_func.
18339 * ifcvt.c: Remove TODO_dump_func.
18340 * tree-ssa-loop.c: Remove TODO_dump_func.
18341 * recog.c: Remove TODO_dump_func.
18342 * dse.c: Remove TODO_dump_func.
18343 * tree-ssa-ifcombine.c: Remove TODO_dump_func.
18344 * matrix-reorg.c: Remove TODO_dump_func.
18345 * tree-eh.c: Remove TODO_dump_func.
18346 * regmove.c: Remove TODO_dump_func.
18347 * function.c: Remove TODO_dump_func.
18348 * tree-vectorizer.c: Remove TODO_dump_func.
18349 * ipa-split.c: Remove TODO_dump_func.
18350 * gcse.c: Remove TODO_dump_func.
18351 * tree-if-conv.c: Remove TODO_dump_func.
18352 * init-regs.c: Remove TODO_dump_func.
18353 * tree-ssa-phiopt.c: Remove TODO_dump_func.
18354 * implicit-zee.c: Remove TODO_dump_func.
18355 * lower-subreg.c: Remove TODO_dump_func.
18356 * bt-load.c: Remove TODO_dump_func.
18357 * tree-dfa.c: Remove TODO_dump_func.
18358 * except.c: Remove TODO_dump_func.
18359 * emit-rtl.c: Remove TODO_dump_func.
18360 * store-motion.c: Remove TODO_dump_func.
18361 * cfgexpand.c: Remove TODO_dump_func.
18362 * tree-cfgcleanup.c: Remove TODO_dump_func.
18363 * cfgcleanup.c: Remove TODO_dump_func.
18364 * tree-ssa-pre.c: Remove TODO_dump_func.
18365 * tree-sra.c: Remove TODO_dump_func.
18366 * tree-mudflap.c: Remove TODO_dump_func.
18367 * tree-ssa-copy.c: Remove TODO_dump_func.
18368 * cfglayout.c: Remove TODO_dump_func.
18369 * tree-ssa-forwprop.c: Remove TODO_dump_func.
18370 * tree-ssa-dce.c: Remove TODO_dump_func.
18371 * ira.c: Remove TODO_dump_func.
18372 * tree-ssa.c: Remove TODO_dump_func.
18373 * integrate.c: Remove TODO_dump_func.
18374 * tree-optimize.c: Remove TODO_dump_func.
18375 * tree-ssa-phiprop.c: Remove TODO_dump_func.
18376 * tree-object-size.c: Remove TODO_dump_func.
18377 * combine.c: Remove TODO_dump_func.
18378 * bb-reorder.c: Remove TODO_dump_func.
18379 * cprop.c: Remove TODO_dump_func.
18380 * var-tracking.c: Remove TODO_dump_func.
18381 * tree-profile.c: Remove TODO_dump_func.
18382 * tree-vect-generic.c: Remove TODO_dump_func.
18383 * reg-stack.c: Remove TODO_dump_func.
18384 * sched-rgn.c: Remove TODO_dump_func.
18385 * tree-ssa-structalias.c: Remove TODO_dump_func.
18386 * tree-switch-conversion.c: Remove TODO_dump_func.
18387 * tree-cfg.c: Remove TODO_dump_func.
18388 * tree-ssa-reassoc.c: Remove TODO_dump_func.
18389 * combine-stack-adj.c: Remove TODO_dump_func.
18390 * dce.c: Remove TODO_dump_func.
18391 * tree-ssanames.c: Remove TODO_dump_func.
18392 * regcprop.c: Remove TODO_dump_func.
18394 2011-06-14 H.J. Lu <hongjiu.lu@intel.com>
18396 PR middle-end/47364
18397 * builtins.c (expand_builtin_strlen): Expand strlen to Pmode
18398 and properly handle result not in Pmode.
18400 2011-06-14 Robert Millan <rmh@gnu.org>
18402 * config/i386/kfreebsd-gnu.h: Resync with `config/i386/linux.h'.
18403 * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER): Resync with
18406 * config/i386/kfreebsd-gnu64.h: New file.
18407 * config.gcc (x86_64-*-kfreebsd*-gnu): Replace `i386/kfreebsd-gnu.h'
18408 with `i386/kfreebsd-gnu64.h'.
18410 * config/i386/linux64.h (GNU_USER_LINK_EMULATION32)
18411 (GNU_USER_LINK_EMULATION64): New macros.
18412 * config/i386/gnu-user64.h (LINK_SPEC): Rely on
18413 `GNU_USER_LINK_EMULATION32' and `GNU_USER_LINK_EMULATION64' instead
18414 of hardcoding `elf_i386' and `elf_x86_64'.
18416 2011-06-14 Nick Clifton <nickc@redhat.com>
18419 * config/v850/v850.c (v850_memory_move_cost): Add reg_class_t parameter.
18422 * config.gcc(v850*-*-*): Avoid duplication of v850.opt.
18424 2011-06-14 Jakub Jelinek <jakub@redhat.com>
18427 * tree.h (DECL_NONSHAREABLE): Define.
18428 (struct tree_decl_common): Change decl_common_unused to
18429 decl_nonshareable_flag.
18430 * cfgexpand.c (expand_used_vars_for_block, clear_tree_used):
18431 Ignore vars with DECL_NONSHAREABLE bit set.
18432 * tree-cfg.c (gimple_duplicate_bb): Set DECL_NONSHAREABLE
18433 on stores to automatic aggregate vars.
18435 PR rtl-optimization/49390
18437 2010-06-29 Bernd Schmidt <bernds@codesourcery.com>
18439 * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
18442 2011-06-14 Zdenek Dvorak <ook@ucw.cz>
18443 Tom de Vries <tom@codesourcery.com>
18446 * cfgloop.h (nb_iterations_upper_bound, nb_iterations_estimate):
18447 Document changed semantics.
18448 (max_stmt_executions, max_stmt_executions_int): Declare.
18449 * tree-data-ref.c (estimated_loop_iterations)
18450 (estimated_loop_iterations_int): Move functions...
18451 * tree-ssa-loop-niter.c (estimated_loop_iterations)
18452 (estimated_loop_iterations_int): here.
18453 (record_estimate): Change nb_iterations_upper_bound and
18454 nb_iterations_estimate semantics.
18455 (max_stmt_executions, max_stmt_executions_int): New function.
18456 * tree-data-ref.c (estimated_loop_iterations_tree): Rename to ...
18457 (max_stmt_executions_tree): this.
18458 (analyze_miv_subscript): Use max_stmt_executions_tree instead of
18459 estimated_loop_iterations_tree.
18460 tree-ssa-loop-ivopts.c (avg_loop_niter): Use
18461 max_stmt_executions_int instead of estimated_loop_iterations_int.
18462 * predict.c (predict_loops): Idem.
18463 * tree-parloops.c (parallelize_loops): Idem.
18464 * tree-data-ref.c (analyze_siv_subscript_cst_affine)
18465 (compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine)
18466 (init_omega_for_ddr_1): Idem.
18467 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse)
18468 (loop_prefetch_arrays): Idem
18469 * graphite-sese-to-poly.c (build_loop_iteration_domains): Use
18470 max_stmt_executions instead of estimated_loop_iterations.
18471 * tree-data-ref.c (estimated_loop_iterations_tree): Idem.
18472 * tree-vrp.c (adjust_range_with_scev): Use estimated_loop_iterations
18473 instead of nb_iterations_upper_bound.
18475 2011-06-13 Jan Hubicka <jh@suse.cz>
18477 * ipa.c (cgraph_address_taken_from_non_vtable_p): Check the ref type.
18479 2011-06-14 Richard Henderson <rth@redhat.com>
18482 * dwarf2out.c (frame_pointer_fb_offset_valid): New.
18483 (based_loc_descr): Assert it's true.
18484 (compute_frame_pointer_to_fb_displacement): Set it, rather than
18485 aborting immediately.
18487 2011-06-14 Sanjin Liu <scliu@faraday-tech.com>
18488 Mingfeng Wu <mingfeng@faraday-tech.com>
18490 * doc/invoke.texi: Re-add missing -mcpu docs for Faraday cores.
18492 2011-06-13 Jan Hubicka <jh@suse.cz>
18494 * ipa-cp.c (ipcp_iterate_stage): Revert accidental commit.
18496 2011-06-13 Jan Hubicka <jh@suse.cz>
18498 * cgraph.c (cgraph_make_decl_local): Handle DECL_ONE_ONLY
18499 similarly to DECL_COMDAT.
18500 * cgraphunit.c (cgraph_analyze_function): Likewise.
18501 * ipa.c (function_and_variable_visibility): Likewise.
18503 2011-06-13 Jan Hubicka <jh@suse.cz>
18505 * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not output
18506 BINFO_VIRTUALS when streaming for ltrans unit.
18508 2011-06-13 David Edelsohn <dje.gcc@gmail.com>
18510 * config/rs6000/rs6000.md (movdi_mfpgpr): Remove POWER mnemonic.
18511 (movdi_internal64): Same.
18513 2011-06-13 Edmar Wienskoski <edmar@freescale.com>
18516 * config/rs6000/rs6000.md (save_gpregs_<mode>): Replaced pattern with
18517 a set of similar patterns, where the MATCH_OPERAND for the function
18518 argument is replaced with individual references to hardware registers.
18519 (save_fpregs_<mode>): Ditto
18520 (restore_gpregs_<mode>): Ditto
18521 (return_and_restore_gpregs_<mode>): Ditto
18522 (return_and_restore_fpregs_<mode>): Ditto
18523 (return_and_restore_fpregs_aix_<mode>): Ditto
18525 2011-06-13 Jan Hubicka <jh@suse.cz>
18527 * ipa-utils.c (postorder_stack): New structure.
18528 (ipa_reverse_postorder): Handle aliases.
18530 2011-06-13 Jan Hubicka <jh@suse.cz>
18532 * ipa-inline.c (reset_edge_caches): Walk aliases.
18533 (update_caller_keys): Do not test inlinability of aliases.
18534 * ipa-inline-analysis.c (do_estimate_edge_time): Look through alias.
18535 (do_estimate_growth): Fix typo.
18537 2011-06-13 Jan Hubicka <jh@suse.cz>
18539 * ipa-inline-transform.c (+can_remove_node_now_p_1): Break out from...
18540 (can_remove_node_now_p): ... here; handle same comdat groups.
18541 (clone_inlined_nodes): Update use of can_remove_node_now_p add TODO.
18542 (inline_call): Update use of can_remove_node_now_p.
18544 2011-06-13 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
18546 * config/h8300/h8300.md (bsetqi_msx, bclrqi_msx, bnotqi_msx): Added
18547 condition to disallow non-identical memory locations.
18548 (*andqi3_2, andqi3_1, iorqi3_1, xorqi3_1): Reorder insn to give
18549 preference to bit manipulation instructions.
18551 2011-06-13 Jan Hubicka <jh@suse.cz>
18553 * cgraph.c (cgraph_for_node_thunks_and_aliases,
18554 cgraph_for_node_and_aliases): Fix thinko in recursive walking.
18555 (nonremovable_p): New function.
18556 (cgraph_can_remove_if_no_direct_calls_p): New function.
18557 (used_from_object_file_p): New functoin.
18558 (cgraph_will_be_removed_from_program_if_no_direct_calls): Look for
18559 references from aliases.
18560 * cgraph.h (cgraph_can_remove_if_no_direct_calls_p): Bring offline.
18561 * ipa-inline.c (check_caller_edge): New function.
18562 (want_inline_function_called_once_p): Use it; accept aliases called
18564 * ipa-inline-analysis.c (do_estimate_growth): Remove FIXME.
18566 2011-06-13 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
18569 * config/arm/neon.md (vec_pack_trunc): Set the lengths
18570 correctly for the case with Quad vectors.
18572 2011-06-13 Jakub Jelinek <jakub@redhat.com>
18573 Ira Rosen <ira.rosen@linaro.org>
18575 PR tree-optimization/49352
18576 * tree-vect-loop.c (vect_is_slp_reduction): Don't count debug uses at
18577 all, make sure loop_use_stmt after the loop is a def stmt of a used
18578 SSA_NAME that is the only one defined inside of the loop. Don't
18579 check for COND_EXPR and GIMPLE_BINARY_RHS.
18580 (vect_is_simple_reduction_1): Call vect_is_slp_reduction only if
18581 check_reduction is true.
18583 2011-06-11 Jan Hubicka <jh@suse.cz>
18585 PR middle-end/49373
18586 * ipa.c (cgraph_externally_visible_p): Check resolution info.
18588 2011-06-11 Jan Hubicka <jh@suse.cz>
18590 PR middle-end/48836
18591 * ipa-inline-transform.c: Include tree-pass.h
18592 (inline_transform): Set TODO_update_ssa_only_virtuals.
18593 * Makefile.in (ipa-inline-transform.o): Add tree-pass.h.
18595 2011-06-11 Jan Hubicka <jh@suse.cz>
18597 PR middle-end/49378
18598 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p): Rule out
18599 aliases and thunks.
18601 2011-06-12 Ira Rosen <ira.rosen@linaro.org>
18603 * tree-vect-data-refs.c (vect_peeling_hash_get_most_frequent):
18604 Take number of iterations to peel into account for equally frequent
18605 misalignment values.
18607 2011-06-11 Jan Hubicka <jh@suse.cz>
18609 * lto-streamer-out.c (produce_symtab): Stream out the newly
18610 represented aliases.
18612 2011-06-11 Jan Hubicka <jh@suse.cz>
18614 * ipa-prop.c (ipa_make_edge_direct_to_target): Fix code setting
18616 (ipa_update_after_lto_read): Likewise.
18617 (ipa_write_node_info): Do not sream call_with_var_arguments.
18618 (ipa_read_node_info): Likewise.
18620 2011-06-11 Jan Hubicka <jh@suse.cz>
18622 * ipa.c (cgraph_comdat_can_be_unshared_p): Fix pasto.
18624 2011-06-11 Jan Hubicka <jh@suse.cz>
18626 * lto-symtab.c (lto_cgraph_replace_node): Kill same body alias code.
18627 (lto_symtab_resolve_can_prevail_p): Likewise.
18628 (lto_symtab_merge_cgraph_nodes): Update merging of aliases.
18629 * cgraph.c (same_body_aliases_done): New global var.
18630 (cgraph_same_body_alias_1): Rename to ...
18631 (cgraph_create_function_alias): ... this one; reorg to new
18633 (cgraph_same_body_alias): Use cgraph_create_function_alias;
18634 record references when asked to.
18635 (cgraph_add_thunk): Fix formating.
18636 (cgraph_get_node): Kill same body alias code.
18637 (cgraph_node_for_asm): Likewise.
18638 (cgraph_remove_same_body_alias): Remove.
18639 (cgraph_remove_node): Kill same body alias code.
18640 (cgraph_mark_address_taken_node): Mark also the aliased function
18641 as having address taken.
18642 (dump_cgraph_node): Dump same body aliases.
18643 (cgraph_for_node_thunks_and_aliases): Update for new alias
18645 (cgraph_for_node_and_aliases): Likewise.
18646 * cgraph.h (same_body): Kll pointer.
18647 (same_body_alias): Update comment.
18648 (same_body_aliases_done): Declare.
18649 (cgraph_remove_same_body_alias): Remove declaration.
18650 (cgraph_create_function_alias): Declare.
18651 (cgraph_process_same_body_aliases): Declare.
18652 (cgraph_function_with_gimple_body_p): Check for alias.
18653 (cgraph_can_remove_if_no_direct_calls_p): Look for aliases.
18654 (cgraph_alias_aliased_node): New function.
18655 (cgraph_function_node): Update for new aliases.
18656 (cgraph_function_or_thunk_node): Likewise.
18657 * ipa-inline-transform.c (can_remove_node_now_p): Look for aliases.
18658 (inline_call): Remove dead aliases.
18659 * cgraphunit.c (cgraph_decide_is_function_needed): Disable assembler
18660 name hack for same body aliases.
18661 (clone_of_p): Look through aliases.
18662 (verify_cgraph_node): Verify aliases.
18663 (cgraph_analyze_function): Analyze aliases; fixup C++ bugs.
18664 (cgraph_process_same_body_aliases): New function.
18665 (process_function_and_variable_attributes): Disable weakref warning on
18667 (cgraph_analyze_functions): Handle aliases.
18668 (cgraph_mark_functions_to_output): Handle aliases same way as thunks.
18669 (assemble_thunks): Rename to ...
18670 (assemble_thunks_and_aliases): ... this one; handle aliases, too.
18671 (cgraph_expand_function): Remove alias output code.
18672 (cgraph_output_in_order): Skip aliases.
18673 (cgraph_preserve_function_body_p): Aliases don't need preserving.
18674 * ipa-ref.c (ipa_ref_use_name): Add alias reference.
18675 (ipa_record_reference): Do not assert on alias references.
18676 (ipa_ref_has_aliases_p): New function.
18677 * ipa-ref.h (enum ipa_ref_use): Add IPA_REF_ALIAS.
18678 (ipa_ref_has_aliases_p): Declare.
18679 * lto-cgraph.c (lto_output_node): Handle aliases.
18680 (input_node): Likewise.
18681 * lto-streamer-out.c (lto_output): Skip aliases.
18682 (produce_symtab): Kill same_body_alias code.
18683 * ipa-utils.c (ipa_reverse_postorder): Add FIXME.
18684 (ipa_reverse_postorder): Use cgraph_only_called_directly_or_aliased_p.
18685 * ipa-inline.c (update_caller_keys): Walk aliases.
18686 (inline_small_functions): Fix thinko in previous patch.
18687 * ipa.c (cgraph_externally_visible_p): Do not walk aliases.
18688 (function_and_variable_visibility): Do not walk same body aliases.
18689 * tree-ssa-structalias.c (associate_varinfo_to_alias): New function.
18690 (ipa_pta_execute): Use it.
18692 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
18694 * config/i386/sse.md (vec_dupv4sf): Correct mode of forced register.
18695 (*vec_dupv2df): Rename from vec_dupv2df.
18696 (vec_dupv2df): New expander.
18698 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
18700 * config/i386/sse.md (AVX_VEC_DUP_MODE): Rename from AVX256MODE24P.
18702 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
18704 * config/i386/i386.md: Use default value in "isa" attribute.
18705 * config/i386/sse.md: Ditto.
18706 * config/i386/mmx.md: Ditto.
18708 2011-06-10 Wei Guozhi <carrot@google.com>
18711 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
18712 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
18713 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
18715 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
18717 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
18718 (arm_legitimate_ldrd_p): New prototype.
18719 (arm_output_ldrd): New prototype.
18720 * config/arm/arm.c (arm_check_ldrd_operands): New function.
18721 (arm_legitimate_ldrd_p): New function.
18722 (arm_output_ldrd): New function.
18724 2011-06-10 David Li <davidxl@google.com>
18726 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
18727 * passes.c (passr_eq): New function.
18728 (create_pass_tab): New function.
18729 (pass_traverse): New function.
18730 (dump_one_pass): New function.
18731 (dump_pass_list): New function.
18732 (dump_passes): New function.
18734 2011-06-10 Jan Hubicka <jh@suse.cz>
18736 * cgraph.c (cgraph_set_nothrow_flag_1): Update cgraph after
18737 setting the nothrow flag.
18738 * ipa-reference.c (propagate): Skip aliases.
18739 * ipa-pure-const.c (propagate_pure_const): Skip aliases.
18740 (propagate_nothrow): Skip aliases; do not update cgraph.
18741 (local_pure_const): Do not update cgraph.
18742 * tree-profile.c (tree_profiling): Do fixup_cfg.
18744 2011-06-10 Jan Hubicka <jh@suse.cz>
18746 * ipa.c (cgraph_non_local_node_p_1): Break out from ...;
18747 (cgraph_local_node_p): ... here; handle aliases.
18748 (has_addr_references_p): Break out from ...;
18749 (cgraph_remove_unreachable_nodes) ... here.
18751 2011-06-10 Jan Hubicka <jh@suse.cz>
18753 * opts.c (default_options): Enlist OPT_finline_functions_called_once.
18754 * common.opt (flag_inline_functions_called_once): Do not
18757 2011-06-10 Jan Hubicka <jh@suse.cz>
18759 * ipa-cp.c (ipcp_versionable_function_p): Thunks are not versionable.
18760 (ipcp_initialize_node_lattices): Do not deal with aliases;
18761 Do not try to propagate through thunks.
18762 (ipcp_change_tops_to_bottom): Do not deal with aliases.
18764 2011-06-10 Jan Hubicka <jh@suse.cz>
18766 * ipa-prop.c (ipa_write_node_info): Stream jump functions
18767 for indirect calls.
18768 (ipa_read_node_info): Likewise.
18770 2011-06-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18773 * tree-ssa-math-opts.c (powi_as_mults): Minor cleanup.
18774 (build_and_insert_call): Likewise.
18775 (build_and_insert_ref): New.
18776 (gimple_expand_builtin_pow): Minor cleanup.
18777 (gimple_expand_builtin_cabs): New.
18778 (execute_cse_sincos): Add case for BUILT_IN_CABS.
18780 2011-06-10 Jan Hubicka <jh@suse.cz>
18782 * ipa-cp.c (ipcp_versionable_function_p): Aliases are not versionable.
18783 (ipcp_cloning_candidate_p): Aliases are not clonning candidates.
18784 (ipcp_initialize_node_lattices): We don't propagate through an aliases.
18785 (ipcp_propagate_stage): Skip aliases when propagating.
18786 (ipcp_need_redirect_p): Skip aliases.
18787 (ipcp_insert_stage): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY and
18788 collect_callers_of_node.
18789 * ipa-prop.c (ipa_init_func_list): Do not analyze datastructures
18791 (ipa_compute_jump_functions): Look through aliases.
18793 2011-06-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18795 * doc/sourcebuild.texi (Effective-Target Keywords, pie): Document it.
18797 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
18799 * ira-costs.c: Remove #ifdefs on dead FORBIDDEN_INC_DEC_CLASSES.
18801 * system.h (FORBIDDEN_INC_DEC_CLASSES): Poison.
18803 2011-06-10 Jan Hubicka <jh@suse.cz>
18805 * ipa-cp.c (ipcp_process_devirtualization_opportunities):
18806 Update call of gimple_get_virt_method_for_binfo.
18807 * gimple-fold.c (gimple_get_virt_method_for_binfo): Remove
18808 refuse_thunks parameter.
18809 (gimple_fold_call): Update.
18810 * ipa-prop.c (try_make_edge_direct_virtual_call): Update.
18812 2011-06-10 Jan Hubicka <jh@suse.cz>
18814 * tree-sra.c (all_callers_have_enough_arguments_p): Rename to ...
18815 (not_all_callers_have_enough_arguments_p): ... this one; turn into
18816 worker for cgraph_for_node_and_aliases.
18817 (convert_callers_for_node): Break out from ...
18818 (convert_callers): ... here.
18819 (modify_function): Use collect_callers_of_node.
18820 (ipa_early_sra): Use cgraph_for_node_and_aliases.
18822 2011-06-10 Richard Guenther <rguenther@suse.de>
18824 PR tree-optimization/49361
18825 * fold-const.c (fold_binary_loc): Only fold x * x to pow (x, 2.0)
18826 when not already in gimple form.
18828 2011-06-10 Richard Guenther <rguenther@suse.de>
18831 * tree-ssa-math-opts.c (convert_mult_to_fma): Use
18832 FOR_EACH_PHI_OR_STMT_USE.
18834 2011-06-10 Jan Hubicka <jh@suse.cz>
18836 * ipa-inline-transform.c (can_remove_node_now_p): Move out of...
18837 (clone_inlined_nodes): ... here.
18838 (inline_call): Use cgraph_function_or_thunk_node; redirect edge
18839 to real destination prior inlining.
18840 * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
18841 can_early_inline_edge_p, want_early_inline_function_p,
18842 want_early_inline_function_p, want_inline_small_function_p,
18843 want_inline_self_recursive_call_p, want_inline_function_called_once_p,
18844 edge_badness, update_all_callee_keys, lookup_recursive_calls,
18845 add_new_edges_to_heap, inline_small_functions, flatten_function,
18846 inline_always_inline_functions, early_inline_small_functions): Use
18847 cgraph_function_or_thunk_node.
18848 * ipa-inline-analysis.c (evaluate_conditions_for_edge,
18849 dump_inline_edge_summary, estimate_function_body_sizes): Likewise.
18850 (do_estimate_edge_growth_1): Break out from ...
18851 (do_estimate_growth) ... here; walk aliases.
18852 (inline_generate_summary): Skip aliases.
18854 2011-06-10 Richard Guenther <rguenther@suse.de>
18856 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Scan stmts
18857 forward when combining, visit inserted stmts when a stmt was changed.
18859 2011-06-10 Paolo Carlini <paolo.carlini@oracle.com>
18861 * tree.h (error_operand_p): Add.
18862 * dbxout.c (dbxout_type_fields): Use the latter.
18863 * c-decl.c (add_stmt): Likewise.
18864 * gimplify.c (omp_add_variable, omp_notice_variable,
18865 gimplify_scan_omp_clauses): Likewise.
18867 2011-06-10 Georg-Johann Lay <avr@gjlay.de>
18869 * config/avr/avr.c (avr_function_arg_advance): Fix thinko about
18870 when a value is actually passed in regs.
18872 2011-06-10 Eric Botcazou <ebotcazou@adacore.com>
18873 Laurent Rougé <laurent.rouge@menta.fr>
18875 * doc/invoke.texi (SPARC options): Add -mflat.
18876 * config/sparc/sparc.opt: Likewise.
18877 * config/sparc/sparc-protos.h (sparc_expand_epilogue): Add parameter.
18878 (sparc_flat_expand_prologue): Declare.
18879 (sparc_flat_expand_epilogue): Likewise.
18880 * config/sparc/sparc.h (CPP_CPU_SPEC): Do not handle -msoft-float.
18881 (CPP_ENDIAN_SPEC): Replace with...
18882 (CPP_OTHER_SPEC): ...this. Also handle -mflat and -msoft-float.
18883 (CPP_SPEC): Adjust to above change.
18884 (EXTRA_SPECS): Likewise.
18885 (SPARC_INCOMING_INT_ARG_FIRST): Add TARGET_FLAT handling.
18886 (INCOMING_REGNO): Likewise.
18887 (OUTGOING_REGNO): Likewise.
18888 (LOCAL_REGNO): Likewise.
18889 (SETUP_FRAME_ADDRESSES): Likewise.
18890 (FIXED_REGISTERS): Set 0 for %fp.
18891 (CALL_USED_REGISTERS): Likewise.
18892 (INITIAL_ELIMINATION_OFFSET): Pass current_function_is_leaf.
18893 (EXIT_IGNORE_STACK): Define to 1 unconditionally.
18894 (RETURN_ADDR_REGNUM): Define.
18895 (RETURN_ADDR_RTX): Use it.
18896 (INCOMING_RETURN_ADDR_REGNUM): Define.
18897 (INCOMING_RETURN_ADDR_RTX): Use it.
18898 (DWARF_FRAME_RETURN_COLUMN): Likewise.
18899 (EH_RETURN_REGNUM): Define.
18900 (EH_RETURN_STACKADJ_RTX): Use it.
18901 (EH_RETURN_HANDLER_RTX): Delete.
18902 (EPILOGUE_USES): Use them and add TARGET_FLAT handling.
18903 * config/sparc/sparc.c (apparent_fsize, actual_fsize, num_gfregs):
18905 (struct machine_function): Add frame_size, apparent_frame_size,
18906 frame_base_reg, frame_base_offset, n_global_fp_regs and
18907 save_local_in_regs_p fields.
18908 (sparc_frame_size, sparc_apparent_frame_size, sparc_frame_base_reg,
18909 sparc_frame_base_offset, sparc_n_global_fp_regs,
18910 sparc_save_local_in_regs_p): New macros.
18911 (sparc_option_override): Error out if -fcall-saved-REG is specified
18913 (eligible_for_restore_insn): Fix formatting.
18914 (eligible_for_return_delay): Likewise. Add TARGET_FLAT handling.
18915 (eligible_for_sibcall_delay): Likewise.
18916 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Add MODE parameter.
18917 (sparc_legitimate_address_p): Adjust to above change.
18918 (save_global_or_fp_reg_p): New predicate.
18919 (return_addr_reg_needed_p): Likewise.
18920 (save_local_or_in_reg_p): Likewise.
18921 (sparc_compute_frame_size): Use them. Add TARGET_FLAT handling.
18922 (SORR_SAVE, SORR_RESTORE): Delete.
18923 (sorr_pred_t): New typedef.
18924 (sorr_act_t): New enum.
18925 (save_or_restore_regs): Rename to...
18926 (emit_save_or_restore_regs): ...this. Change type of LOW and HIGH
18927 parameters, remove ACTION parameter, add LEAF_FUNCTION_P, SAVE_P,
18928 ACTION_TRUE and ACTION_FALSE parameters. Implement more general
18929 mechanism. Add CFI information for double-word saves in 32-bit mode.
18930 (emit_adjust_base_to_offset): New function extracted from...
18931 (emit_save_or_restore_regs): ...this. Rename the rest to...
18932 (emit_save_or_restore_regs_global_fp_regs): ...this.
18933 (emit_save_or_restore_regs_local_in_regs): New function.
18934 (gen_create_flat_frame_[123]): New functions.
18935 (sparc_expand_prologue): Use SIZE local variable. Adjust.
18936 (sparc_flat_expand_prologue): New function.
18937 (sparc_asm_function_prologue): Add TARGET_FLAT handling.
18938 (sparc_expand_epilogue): Use SIZE local variable. Adjust.
18939 (sparc_flat_expand_epilogue): New function.
18940 (sparc_can_use_return_insn_p): Add TARGET_FLAT handling.
18941 (output_return): Likewise.
18942 (output_sibcall): Likewise.
18943 (sparc_output_mi_thunk): Likewise.
18944 (sparc_frame_pointer_required): Likewise.
18945 (sparc_conditional_register_usage): If TARGET_FLAT, disable the leaf
18946 function optimization.
18947 * config/sparc/sparc.md (flat): New attribute.
18948 (prologue): Add TARGET_FLAT handling.
18949 (save_register_window): Disable if TARGET_FLAT.
18950 (create_flat_frame_[123]): New patterns.
18951 (epilogue): Add TARGET_FLAT handling.
18952 (sibcall_epilogue): Likewise.
18953 (eh_return): New expander.
18954 (eh_return_internal): New insn and splitter.
18955 (return_internal): Add TARGET_FLAT handling.
18956 (untyped_return): Remove bogus test and use RETURN_ADDR_REGNUM.
18957 (save_stack_nonlocal): Use RETURN_ADDR_REGNUM.
18958 (nonlocal_goto): Add TARGET_FLAT handling.
18959 * config/sparc/t-elf: Add -mflat multilib.
18960 * config/sparc/t-leon: Likewise.
18962 2011-06-10 Jan Hubicka <jh@suse.cz>
18964 * ipa-utils.c (searchc): Use cgraph_function_or_thunk_node.
18965 * ipa-pure-const.c (analyze_function): Aliases don't need analysis.
18966 (self_recursive_p): Use cgraph_function_node.
18967 (propagate_pure_const): Likewise.
18968 (propagate_nothrow): Likewise.
18969 * ipa-reference.c (ipa_reference_get_not_read_global): Use
18970 cgraph_function_node.
18971 (propagate_bits): Likewise.
18972 (propagate): Likewise.
18974 2011-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
18975 Richard Earnshaw <rearnsha@arm.com>
18977 * config/arm/arm.c (const_ok_for_op): Check to see if mvn can be used.
18978 * config/arm/vfp.md (*arm_movdi_vfp): Delete.
18979 (*thumb2_movdi_vfp): Delete.
18980 (*arm_movdi_vfp_cortexa8): Delete.
18981 (*movdi_vfp): Consolidate from *arm_movdi_vfp and *thumb2_movdi_vfp.
18982 (*movdi_vfp_cortexa8): Likewise.
18984 2011-06-10 Richard Guenther <rguenther@suse.de>
18986 * stor-layout.c (initialize_sizetypes): Give names to all
18989 2011-06-10 Ira Rosen <ira.rosen@linaro.org>
18991 PR tree-optimization/49318
18992 * tree-vect-loop.c (vect_determine_vectorization_factor): Remove
18993 irrelevant pattern statements.
18995 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
18997 * system.h (SETJMP_VIA_SAVE_AREA): Poison.
19000 * ira-costs.c (setup_regno_cost_classes_by_mode): Add missing cast
19001 to last assignment.
19003 2011-06-09 Jan Hubicka <jh@suse.cz>
19005 * cgraphunit.c (cgraph_reset_node): Do not set redefined_extern_inline;
19006 do not recompute reachable flag.
19007 (cgraph_finalize_function, cgraph_analyze_functions): Set
19008 redefined_extern_inline here.
19010 2011-06-09 Jan Hubicka <jh@suse.cz>
19012 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Rename from ...
19013 (cgraph_only_called_directly_p): ... this one; bring offline.
19014 (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
19015 varpool_used_from_object_file_p): Drop names from the declaratoin.
19016 (cgraph_for_node_thunks_and_aliases, cgraph_for_node_and_aliases,
19017 collect_callers_of_node): New.
19018 (cgraph_function_node, cgraph_function_or_thunk_node): New functions.
19019 (cgraph_edge_recursive_p): Use cgraph_function_node.
19020 * cgraph.c (cgraph_add_thunk): Check that thunk is not already alias.
19021 (cgraph_node_cannot_be_local_p_1): Break out from ...
19022 (cgraph_node_can_be_local_p): ... here; walk aliases.
19023 (cgraph_for_node_thunks_and_aliases): New function.
19024 (cgraph_for_node_and_aliases): New function.
19025 (cgraph_make_node_local_1): Break out from ...
19026 (cgraph_make_node_local) ... here; use
19027 cgraph_for_node_thunks_and_aliases.
19028 (cgraph_set_nothrow_flag_1): Break out from ...
19029 (cgraph_set_nothrow_flag) ... here;
19030 use cgraph_for_node_thunks_and_aliases.
19031 (cgraph_set_const_flag_1): Break out from ...
19032 (cgraph_set_const_flag) ... here;
19033 use cgraph_for_node_thunks_and_aliases.
19034 (cgraph_set_pure_flag_1): Break out from ...
19035 (cgraph_set_pure_flag) ... here;
19036 use cgraph_for_node_thunks_and_aliases.
19037 (cgraph_propagate_frequency_1): Break out from ...
19038 (cgraph_propagate_frequency) ... here; use
19039 cgraph_for_node_thunks_and_aliases.
19040 (cgraph_used_from_object_file_p): Do not care about aliases.
19041 (cgraph_not_only_called_directly_p_1, cgraph_only_called_directly_p):
19043 (collect_callers_of_node_1, collect_callers_of_node): New functions.
19045 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
19047 PR rtl-optimization/49154
19048 * config/cris/cris.h (FIXED_REGISTERS): Include CRIS_CC0_REGNUM.
19049 (enum reg_class): Add SRP_REGS and MOF_SRP_REGS.
19050 (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
19051 (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Adjust to fit.
19052 * config/cris/cris.h (cris_register_move_cost): Remove
19053 !TARGET_V32 code. Tweak comments.
19055 2011-06-09 Jan Hubicka <jh@suse.cz>
19057 * cgraphbuild.c (record_eh_tables): Mark personality function as having
19060 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
19062 PR rtl-optimization/49154
19063 * ira-costs.c (setup_regno_cost_classes_by_mode): If there already
19064 is a matching slot in the hashtable, assign it to classes_ptr.
19066 PR rtl-optimization/49154
19067 * doc/tm.texi.in (Register Classes): Document rule for the narrowest
19069 * doc/tm.texi: Regenerate.
19071 2011-06-09 Kaz Kojima <kkojima@gcc.gnu.org>
19074 * config/sh/sh.md (UNSPEC_CHKADD): New.
19075 (chk_guard_add): New define_insn_and_split.
19076 (symGOT_load): Use chk_guard_add instead of blockage.
19078 2011-06-09 Kai Tietz <ktietz@redhat.com>
19080 * libgcc2.c (L_trampoline): Include windows.h for mingw targets.
19082 2011-06-09 Eric Botcazou <ebotcazou@adacore.com>
19084 * config/sparc/sparc.md (return_internal): Adjust 'length' attribute.
19086 2011-06-09 Wei Guozhi <carrot@google.com>
19089 * config/arm/arm.md (*addsi3_carryin_compare0_<optab>): New pattern.
19090 (peephole2 for conditional move): Generate 16 bit instructions.
19092 2011-06-09 Uros Bizjak <ubizjak@gmail.com>
19094 * config/i386/i386.md (*movdi_internal_rex64): Merge
19095 alternatives 6 and 8.
19097 2011-06-09 David Li <davidxl@google.com>
19099 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
19100 * passes.c (passr_eq): New function.
19101 (create_pass_tab): New function.
19102 (pass_traverse): New function.
19103 (dump_one_pass): New function.
19104 (dump_pass_list): New function.
19105 (dump_passes): New function.
19107 2011-06-09 David Li <davidxl@google.com>
19109 * tree-complex.c (tree_lower_complex): Gate cleanup.
19110 * tree-stdarg.c (check_all_va_list_escapes): Ditto.
19111 (execute_optimize_stdarg): Ditto.
19112 * tree-eh.c (execute_lower_eh_dispatch): Ditto.
19113 (execute_cleanup_eh_1): Ditto.
19114 (execute_cleanup_eh): Ditto.
19115 * gcse.c (gate_rtl_pre): Ditto.
19116 (execute_rtl_pre): Ditto.
19117 * except.c (finish_eh_generation): Ditto.
19118 (convert_to_eh_region_ranges): Ditto.
19119 * cprop.c (one_cprop_pass): Ditto.
19121 2011-06-09 Bernd Schmidt <bernds@codesourcery.com>
19124 * config/ia64/ia64.c (ia64_reorg): Clear BB_DISABLE_SCHEDULE flag
19125 in all basic blocks.
19127 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19129 * config/alpha/netbsd.h (ENABLE_EXECUTE_STACK): Remove.
19130 (HAVE_ENABLE_EXECUTE_STACK): Define.
19131 * config/alpha/osf5.h (ENABLE_EXECUTE_STACK): Remove.
19132 (HAVE_ENABLE_EXECUTE_STACK): Define.
19133 * config/darwin.h (ENABLE_EXECUTE_STACK): Remove.
19134 (HAVE_ENABLE_EXECUTE_STACK): Define.
19135 * config/i386/mingw32.h (MINGW_ENABLE_EXECUTE_STACK): Remove.
19136 (ENABLE_EXECUTE_STACK): Remove.
19137 (HAVE_ENABLE_EXECUTE_STACK): Define.
19138 [IN_LIBGCC2]: Don't include <windows.h>.
19139 * config/i386/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
19140 (HAVE_ENABLE_EXECUTE_STACK): Define.
19141 * config/i386/netbsd64.h (ENABLE_EXECUTE_STACK): Remove.
19142 (HAVE_ENABLE_EXECUTE_STACK): Define.
19143 * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): Remove.
19144 * config/openbsd.h (ENABLE_EXECUTE_STACK): Remove.
19145 (HAVE_ENABLE_EXECUTE_STACK): Define.
19146 * config/sol2.h (ENABLE_EXECUTE_STACK): Remove.
19147 (HAVE_ENABLE_EXECUTE_STACK): Define.
19148 * config/sparc/freebsd.h (ENABLE_EXECUTE_STACK): Remove.
19149 (HAVE_ENABLE_EXECUTE_STACK): Define.
19150 * config/sparc/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
19151 (HAVE_ENABLE_EXECUTE_STACK): Define.
19152 * config/alpha/alpha.c (alpha_trampoline_init): Test
19153 HAVE_ENABLE_EXECUTE_STACK.
19154 * config/i386/i386.c (ix86_trampoline_init): Likewise.
19155 * config/sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
19156 (sparc64_initialize_trampoline): Likewise.
19157 * libgcc2.c [L_enable_execute_stack]: Remove.
19158 * system.h (ENABLE_EXECUTE_STACK): Poison.
19159 * doc/tm.texi.in (Trampolines, ENABLE_EXECUTE_STACK): Remove.
19160 * doc/tm.texi: Regenerate.
19161 * Makefile.in (LIBGCC2_CFLAGS): Add -fbuilding-libgcc.
19163 2011-06-09 Jakub Jelinek <jakub@redhat.com>
19165 PR middle-end/49308
19166 * dce.c (reset_unmarked_insns_debug_uses): Avoid shadowing insn
19167 variable. After resetting and rescanning insn continue with previous
19170 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19172 * configure.ac (gcc_cv_as_hidden): Enable on *-*-darwin*.
19173 (gcc_cv_ld_hidden): Likewise.
19174 * configure: Regenerate.
19175 * config/i386/i386.c (USE_HIDDEN_LINKONCE): Remove TARGET_MACHO.
19176 (ix86_stack_protect_fail): Mark unused.
19177 (TARGET_STACK_PROTECT_FAIL) [TARGET_MACHO]: Don't redefine.
19178 * config/rs6000/rs6000.c (rs6000_assemble_visibility)
19179 [TARGET_MACHO]: Don't define.
19180 (TARGET_ASM_ASSEMBLE_VISIBILITY): Likewise.
19181 (TARGET_STACK_PROTECT_FAIL): Likewise.
19182 (rs6000_stack_protect_fail): Mark unused.
19183 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark decl hidden if
19184 USE_LINKONCE_INDIRECT. Don't emit .hidden expicitly.
19186 2011-06-08 Andi Kleen <ak@linux.intel.com>
19188 * varasm.c (get_section): Print location of other conflict
19189 for section conflicts.
19191 2011-06-08 Andi Kleen <ak@linux.intel.com>
19193 * config/i386/driver-i386.c (host_detect_local_cpu):
19194 Add model 0x2d Intel CPU.
19196 2011-06-08 Andi Kleen <ak@linux.intel.com>
19198 * reginfo.c (global_regs_decl): Add.
19199 (globalize_reg): Add decl parameter. Compute location. Pass location
19200 to warnings and add inform. Store decl in global_regs_decl.
19201 * rtl.h (globalize_reg): Update prototype.
19202 * varasm.c (make_decl_rtl): Pass decl to globalize_reg().
19204 2011-06-09 Mingjie Xing <mingjie.xing@gmail.com>
19206 * treestruct.def (TS_TYPE_DECL): Fix the printable name typo.
19208 2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
19211 * config/sh/predicates.md (general_movsrc_operand): Check
19212 mode for memory with indexed address for QI and HImode.
19213 (general_movdst_operand): Likewise.
19215 2011-06-09 Nicola Pero <nicola.pero@meta-innovation.com>
19217 * doc/objc.texi (Traditional GNU Objective-C runtime API): Updated.
19219 2011-06-08 Alexandre Oliva <aoliva@redhat.com>
19221 * tree-flow-inline.h (op_iter_init): Reject GIMPLE_PHI stmts.
19222 (num_ssa_operands): Likewise.
19223 (op_iter_init_phiuse): Forward-declare.
19224 (delink_stmt_imm_use): Iterate with FOR_EACH_PHI_OR_STMT_USE.
19226 2011-06-08 Nick Clifton <nickc@redhat.com>
19228 * doc/invoke.texi (ARM Options): Update description of
19231 2011-06-08 H.J. Lu <hongjiu.lu@intel.com>
19233 * config/i386/driver-i386.c (host_detect_local_cpu): Support
19234 unknown Intel family 0x6 CPUs.
19236 2011-06-08 Martin Jambor <mjambor@suse.cz>
19238 * tree-sra.c (mark_rw_status): Removed.
19239 (analyze_access_subtree): New parameter parent instead of
19240 mark_read and mark_write, propagate from that.
19242 2011-06-08 Julian Brown <julian@codesourcery.com>
19244 * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
19245 for double-precision helper functions in hard-float mode if only
19246 single-precision arithmetic is supported in hardware.
19248 2011-06-08 Alexander Monakov <amonakov@ispras.ru>
19250 PR rtl-optimization/49303
19251 * sel-sched.c (move_op): Use correct type for 'res'. Verify that
19252 code_motion_path_driver returned 0 or 1.
19253 (sel_region_finish): Clear h_d_i_d.
19255 2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
19257 * config/sh/sh.c (prepare_move_operands): Set pic register
19258 appropriately for global and local dynamic tls models even
19259 if flag_pic is unset.
19261 2011-06-07 Jason Merrill <jason@redhat.com>
19263 * pretty-print.h (ATTRIBUTE_GCC_PPDIAG): Use GCC_DIAG_STYLE if set.
19265 2011-06-07 Xinliang David Li <davidxl@google.com>
19266 * passes.c (enable_disable_pass): Handle assembler name.
19267 (is_pass_explicitly_enabled_or_disabled): Ditto.
19269 2011-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19271 PR tree-optimization/48497
19272 * doc/sourcebuild.texi (Directives, dg-additional-options): Document.
19274 2011-06-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19276 PR tree-optimization/46728
19277 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Change FIXME
19278 to use gimple_val_nonnegative_real_p.
19279 * gimple-fold.c (gimple_val_nonnegative_real_p): New function.
19280 * gimple.h (gimple_val_nonnegative_real_p): New declaration.
19282 2011-06-07 H.J. Lu <hongjiu.lu@intel.com>
19284 * config/i386/i386.md (*movsf_internal): Optimize AVX check.
19286 2011-06-07 Sergey Grechanik <mouseentity@ispras.ru>
19288 * config/arm/arm.c (coproc_secondary_reload_class): Return NO_REGS for
19291 2011-06-07 Richard Guenther <rguenther@suse.de>
19293 * stor-layout.c (initialize_sizetypes): Initialize all
19294 sizetypes based on target definitions.
19295 (set_sizetype): Remove.
19296 * tree.c (build_common_tree_nodes): Do not call set_sizetype.
19297 * tree.h (set_sizetype): Remove.
19299 2011-06-07 Nick Clifton <nickc@redhat.com>
19301 * config.gcc: Unify V850 architecture options and add support for
19302 newer V850 architectures.
19303 * config/v850/t-v850e: Delete.
19305 2011-06-07 Richard Guenther <rguenther@suse.de>
19307 * tree.c (build_common_tree_nodes): Also initialize size_type_node.
19308 Call set_sizetype from here.
19310 2011-06-07 Andrew Stubbs <ams@codesourcery.com>
19312 * config/arm/arm.md (*maddhidi4tb, *maddhidi4tt): New define_insns.
19313 (*maddhisi4tb, *maddhisi4tt): New define_insns.
19315 2011-06-07 Bernd Schmidt <bernds@codesourcery.com>
19316 Andrew Stubbs <ams@codesourcery.com>
19318 * simplify-rtx.c (simplify_unary_operation_1): Canonicalize widening
19320 * doc/md.texi (Canonicalization of Instructions): Document widening
19321 multiply canonicalization.
19323 2011-06-07 Jakub Jelinek <jakub@redhat.com>
19325 PR gcov-profile/49299
19326 * value-prof.c (gimple_ic): Don't assume icall has a fallthru edge.
19328 2011-06-07 Ira Rosen <ira.rosen@linaro.org>
19330 * tree-vectorizer.h (vect_recog_func_ptr): Make last argument to be
19332 * tree-vect-patterns.c (vect_recog_widen_sum_pattern,
19333 vect_recog_widen_mult_pattern, vect_recog_dot_prod_pattern,
19334 vect_recog_pow_pattern): Likewise.
19335 (vect_pattern_recog_1): Remove declaration.
19336 (widened_name_p): Remove declaration. Add new argument to specify
19337 whether to check that both types are either signed or unsigned.
19338 (vect_recog_widen_mult_pattern): Update documentation. Handle
19339 unsigned patterns and multiplication by constants.
19340 (vect_pattern_recog_1): Update vect_recog_func references. Use
19341 statement information from the statement returned from pattern
19342 detection functions.
19343 (vect_pattern_recog): Update vect_recog_func reference.
19344 * tree-vect-stmts.c (vectorizable_type_promotion): For widening
19345 multiplication by a constant use the type of the other operand.
19347 2011-06-06 Richard Sandiford <rdsandiford@googlemail.com>
19349 PR rtl-optimization/49145
19350 * combine.c (make_compound_operation): Handle ZERO_EXTEND specially.
19352 2011-06-06 Jakub Jelinek <jakub@redhat.com>
19355 * dwarf2out.c (native_encode_initializer): Decrement count in each
19359 * dwarf2out.c (mem_loc_descriptor) <do_shift>: Give up for
19360 non-MODE_INT modes.
19363 * gimple-fold.c (fold_stmt_1): Don't try to fold *& on the lhs
19364 if stmt folded into nothing.
19365 * tree-inline.c (fold_marked_statements): If a builtin at the end of
19366 a bb folded into nothing, just update cgraph edges and move to next bb.
19367 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Allow new_stmt
19368 to be NULL. Don't compute count and frequency if new_call is NULL.
19370 2011-06-04 Diego Novillo <dnovillo@google.com>
19372 * Makefile.in (lto-compress.o): Add dependency on LTO_STREAMER_H.
19373 (cgraph.o): Likewise.
19374 (cgraphunit.o): Likewise.
19375 * cgraphunit.c: Include lto-streamer.h
19376 (cgraph_finalize_compilation_unit): Call lto_streamer_hooks_init
19378 * lto-streamer-in.c (unpack_value_fields): Call
19379 streamer_hooks.unpack_value_fields if set.
19380 (lto_materialize_tree): For unhandled nodes, first try to
19381 call lto_streamer_hooks.alloc_tree, if it exists.
19382 (lto_input_ts_decl_common_tree_pointers): Move reading of
19383 DECL_INITIAL to lto_streamer_read_tree.
19384 (lto_read_tree): Call lto_streamer_hooks.read_tree if set.
19385 (lto_streamer_read_tree): New.
19386 (lto_reader_init): Rename from lto_init_reader.
19387 Move initialization code to lto/lto.c.
19388 * lto-streamer-out.c (pack_value_fields): Call
19389 streamer_hooks.pack_value_fields if set.
19390 (lto_output_tree_ref): For tree nodes that are not normally indexable,
19391 call streamer_hooks.indexable_with_decls_p before giving up.
19392 (lto_output_ts_decl_common_tree_pointers): Move handling
19393 for FUNCTION_DECL and TRANSLATION_UNIT_DECL to lto_streamer_write_tree.
19394 (lto_output_tree_header): Call streamer_hooks.is_streamable instead of
19395 lto_is_streamable. Call lto_streamer_hooks.output_tree_header if set.
19396 (lto_write_tree): Call lto_streamer_hooks.write_tree if set.
19397 (lto_streamer_write_tree): New.
19398 (lto_output): Call lto_streamer_init directly.
19399 (lto_writer_init): Remove.
19400 * lto-streamer.c (streamer_hooks): New.
19401 (lto_streamer_cache_create): Call streamer_hooks.preload_common_nodes
19402 instead of lto_preload_common_nodes.
19403 (lto_is_streamable): Move from lto-streamer.h
19404 (lto_streamer_hooks_init): New.
19405 (streamer_hooks): New.
19406 (streamer_hooks_init): New.
19407 * lto-streamer.h (struct output_block): Forward declare.
19408 (struct lto_input_block): Likewise.
19409 (struct data_in): Likewise.
19410 (struct bitpack_d): Likewise.
19411 (struct streamer_hooks): Declare.
19412 (streamer_hooks): Declare.
19413 (lto_streamer_hooks_init): Declare.
19414 (lto_streamer_write_tree): Declare.
19415 (lto_streamer_read_tree): Declare.
19416 (streamer_hooks_init): Declare.
19417 (lto_is_streamable): Move to lto-streamer.c
19419 2011-06-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19421 * longlong.h (smul_ppmm): The resulting register pair contains the
19422 higher order word first.
19424 2011-06-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19426 PR tree-optimization/46728
19427 * builtins.c (powi_table): Remove.
19428 (powi_lookup_cost): Remove.
19429 (powi_cost): Remove.
19430 (expand_powi_1): Remove.
19431 (expand_powi): Remove.
19432 (expand_builtin_pow_root): Remove.
19433 (expand_builtin_pow): Remove.
19434 (expand_builtin_powi): Eliminate handling of constant exponent.
19435 (expand_builtin): Use expand_builtin_mathfn_2 for BUILT_IN_POW.
19437 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
19439 * cprop.c (local_cprop_pass): Don't set changed for debug insns.
19441 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
19443 * dce.c (reset_unmarked_insns_debug_uses): New.
19444 (delete_unmarked_insns): Skip debug insns.
19445 (prescan_insns_for_dce): Likewise.
19446 (rest_of_handle_ud_dce): Reset debug uses of removed sets.
19447 * reg-stack.c (subst_stack_regs_in_debug_insn): Signal when no
19448 active reg can be found.
19449 (subst_all_stack_regs_in_debug_insn): New. Reset debug insn then.
19450 (convert_regs_1): Use it.
19452 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
19454 * tree-pretty-print.c (dump_function_header): Add flags.
19455 Don't dump decl_uid with nouid.
19456 * tree-pretty-print.h (dump_function_header): Adjust.
19457 * final.c (rest_of_clean_state): Pass dump_flags on, with nouid.
19458 * passes.c (pass_init_dump_file): Pass dump_flags on.
19459 * tree-cfg.c (gimple_dump_cfg): Pass flags on.
19461 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
19464 * ipa-inline-analysis.c (read_predicate): Initialize all clauses.
19466 2011-06-06 Mikael Pettersson <mikpe@it.uu.se>
19468 PR tree-optimization/49243
19469 * calls.c (setjmp_call_p): Also check if fndecl has the
19470 returns_twice attribute.
19472 2011-06-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19474 * config/mips/iris6.h (ENDFILE_SPEC): Use crtfastmath.o if
19477 2011-06-06 Richard Henderson <rth@redhat.com>
19478 Georg-Johann Lay <avr@gjlay.de>
19481 * config/avr/predicates.md (const1_operand, const_0_to_7_operand):
19483 * config/avr/avr.md ("insv"): New insn expander.
19484 ("*movbitqi.1-6.a", "*movbitqi.1-6.b", "*movbitqi.0", "*insv.io",
19485 "*insv.not.io", "*insv.reg"): New insns.
19487 2011-06-06 Hans-Peter Nilsson <hp@bitrange.com>
19490 * config/mmix/mmix.md ("truncdfsf2", "extendsfdf2"): Correct predicate
19491 to nonimmediate_operand from memory_operand for the operand that is to
19492 be forced to memory by the expander. Lose the constraints.
19494 2011-06-05 Eric Botcazou <ebotcazou@adacore.com>
19496 * config/sparc/sparc.c (output_return): Fix thinko in the output of an
19497 EH return when delayed branches are disabled.
19499 2011-06-05 Uros Bizjak <ubizjak@gmail.com>
19501 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>:
19502 Remove MODE_TI handling. Remove SSE1 handling in attribute "mode"
19504 (*movdf_internal_rex64) <case 6,7,8>: Remove MODE_TI handling.
19505 Simplify MODE_V1DF and MODE_V2SF handling.
19506 (*movsf_internal): Remove x constraint from alternative 7 of operand 1.
19507 Simplify MODE_SF handling.
19509 2011-06-04 Jan Hubicka <jh@suse.cz>
19511 PR tree-optimization/48893
19512 PR tree-optimization/49091
19513 PR tree-optimization/49179
19514 * ipa-inline-analysis.c (evaluate_conditions_for_known_args):
19517 2011-06-04 Jan Hubicka <jh@suse.cz>
19520 * lto-cgraph.c (output_node_opt_summary): Handle NULL skip args
19523 2011-06-04 Jonathan Wakely <jwakely.gcc@gmail.com>
19525 * doc/invoke.texi: Document -Wdelete-non-virtual-dtor.
19527 2011-06-04 Jakub Jelinek <jakub@redhat.com>
19530 * config/i386/i386.md (*lea_general_4): Require INTVAL (operands[3])
19531 to be strictly smaller than 1 << shiftcount.
19533 2011-06-04 Jan Hubicka <jh@suse.cz>
19535 PR tree-optimize/48929
19536 * ipa-inline-analysis.c (remap_edge_predicates): Fix handling
19537 of empty predicate.
19539 2011-06-04 Alexandre Oliva <aoliva@redhat.com>
19542 * calls.c (emit_call_1): Prefer the __builtin declaration of
19545 2011-06-03 Diego Novillo <dnovillo@google.com>
19547 * lto-streamer-in.c (unpack_value_fields): Remove unneeded asserts.
19548 (lto_input_tree_pointers): Likewise.
19549 * lto-streamer-out.c (pack_value_fields): Likewise.
19550 (lto_output_tree_pointers): Likewise.
19551 * lto-streamer.h (lto_is_streamable): Add check for OMP_CLAUSE
19552 and OPTIMIZATION_NODE.
19554 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19556 * config/alpha/linux.h (MD_UNWIND_SUPPORT): Remove.
19557 * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Remove.
19558 * config/alpha/vms.h (MD_UNWIND_SUPPORT): Remove.
19559 * config/bfin/linux.h (MD_UNWIND_SUPPORT): Remove.
19560 * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Remove.
19561 * config/i386/linux.h (MD_UNWIND_SUPPORT): Remove.
19562 * config/i386/linux64.h (MD_UNWIND_SUPPORT): Remove.
19563 * config/i386/sol2.h (MD_UNWIND_SUPPORT): Remove.
19564 * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Remove.
19565 * config/ia64/linux.h (MD_UNWIND_SUPPORT): Remove.
19566 * config/ia64/vms.h (MD_UNWIND_SUPPORT): Remove.
19567 * config/m68k/linux.h (MD_UNWIND_SUPPORT): Remove.
19568 * config/mips/linux.h (MD_UNWIND_SUPPORT): Remove.
19569 * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): Remove.
19570 * config/pa/pa32-linux.h (MD_UNWIND_SUPPORT): Remove.
19571 * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Remove.
19572 * config/rs6000/linux.h (MD_UNWIND_SUPPORT): Remove.
19573 * config/rs6000/linux64.h (MD_UNWIND_SUPPORT): Remove.
19574 * config/s390/linux.h (MD_UNWIND_SUPPORT): Remove.
19575 * config/s390/tpf.h (MD_UNWIND_SUPPORT): Remove.
19576 * config/sh/linux.h (MD_UNWIND_SUPPORT): Remove.
19577 * config/sparc/linux.h (MD_UNWIND_SUPPORT): Remove.
19578 * config/sparc/linux64.h (MD_UNWIND_SUPPORT): Remove.
19579 * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Remove.
19580 * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Remove.
19581 * config/alpha/linux-unwind.h: Move to ../libgcc/config/alpha.
19582 * config/alpha/osf5-unwind.h: Move to ../libgcc/config/alpha.
19583 * config/alpha/vms-unwind.h: Move to ../libgcc/config/alpha.
19584 * config/bfin/linux-unwind.h: Move to ../libgcc/config/bfin.
19585 * config/i386/linux-unwind.h: Move to ../libgcc/config/i386.
19586 * config/i386/sol2-unwind.h: Move to ../libgcc/config/i386.
19587 * config/i386/w32-unwind.h: Move to ../libgcc/config/i386.
19588 * config/ia64/linux-unwind.h: Move to ../libgcc/config/ia64.
19589 * config/ia64/vms-unwind.h: Move to ../libgcc/config/ia64.
19590 * config/m68k/linux-unwind.h: Move to ../libgcc/config/m68k.
19591 * config/mips/linux-unwind.h: Move to ../libgcc/config/mips.
19592 * config/pa/hpux-unwind.h: Move to ../libgcc/config/pa.
19593 * config/pa/linux-unwind.h: Move to ../libgcc/config/pa.
19594 * config/rs6000/darwin-unwind.h: Move to ../libgcc/config/rs6000.
19595 * config/rs6000/linux-unwind.h: Move to ../libgcc/config/rs6000.
19596 * config/s390/linux-unwind.h: Move to ../libgcc/config/s390.
19597 * config/s390/tpf-unwind.h: Move to ../libgcc/config/s390.
19598 * config/sh/linux-unwind.h: Move to ../libgcc/config/sh.
19599 * config/sparc/linux-unwind.h: Move to ../libgcc/config/sparc.
19600 * config/sparc/sol2-unwind.h: Move to ../libgcc/config/sparc.
19601 * config/xtensa/linux-unwind.h: Move to ../libgcc/config/xtensa.
19602 * config/darwin9.h (DARWIN_LIBSYSTEM_HAS_UNWIND): Remove.
19603 * system.h (MD_UNWIND_SUPPORT): Poison.
19604 * doc/tm.texi.in (Exception Handling, MD_UNWIND_SUPPORT): Remove.
19605 * doc/tm.texi: Regenerate.
19606 * unwind-dw2.c: Include md-unwind-support.h instead of
19608 * config/ia64/unwind-ia64.c: Likewise.
19609 * config/xtensa/unwind-dw2-xtensa.c: Likewise.
19611 2011-06-03 Jack Howarth <howarth@bromo.med.uc.edu>
19613 * varpool.c (varpool_extra_name_alias): Return NULL, not false.
19615 2011-06-03 Richard Henderson <rth@redhat.com>
19616 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19618 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
19619 (sigill_hdlr): Correct insn, insn size.
19620 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
19622 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19624 * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
19626 * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
19627 * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
19628 * config/mips/t-iris: Remove.
19629 * config/mips/t-irix6: New file.
19630 * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
19632 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19634 * Makefile.in (LIB2ADDEHDEP): Remove.
19635 * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
19636 * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
19637 * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
19638 * config/t-darwin (LIB2ADDEHDEP): Remove.
19639 * config/t-freebsd (LIB2ADDEHDEP): Remove.
19640 * config/t-linux (LIB2ADDEHDEP): Remove.
19642 2011-06-03 Diego Novillo <dnovillo@google.com>
19644 * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
19645 (lto_register_var_decl_in_symtab): Likewise.
19646 (lto_register_function_decl_in_symtab): Likewise.
19647 (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
19648 logic to uniquify_nodes.
19650 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19652 * config/alpha/t-osf5: Remove.
19653 * config/alpha/t-osf-pthread: Remove.
19654 * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
19655 * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
19657 2011-06-03 Julian Brown <julian@codesourcery.com>
19659 * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
19660 (strongarm1110): Use strongarm tuning.
19661 * config/arm/arm-protos.h (tune_params): Add max_insns_skipped field.
19662 * config/arm/arm.c (arm_strongarm_tune): New.
19663 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
19664 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
19665 (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
19666 setting, using previous defaults or 1 for Cortex-A5.
19667 (arm_option_override): Set max_insns_skipped from current tuning.
19669 2011-06-03 Nathan Sidwell <nathan@codesourcery.com>
19671 * doc/install.texi (Options specification): Document --with-specs.
19673 2011-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
19675 * config/arm/neon.md (orndi3_neon): Actually split it.
19677 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
19679 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
19680 * var-tracking.c (reverse_op): Limite recurse depth to 5.
19682 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
19685 * target.def (delay_sched2, delay_vartrack): New.
19686 * doc/tm.texi.in: Update.
19687 * doc/tm.texi: Rebuild.
19688 * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
19689 * var-tracking.c (gate_handle_var_tracking): Likewise.
19690 * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
19691 (bfin_flag_var_tracking): Drop.
19692 (output_file_start): Don't save and override flag_var_tracking.
19693 (bfin_option_override): Ditto flag_schedule_insns_after_reload.
19694 (bfin_reorg): Test original variables.
19695 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
19696 * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
19697 (ia64_flag_var_tracking): Drop.
19698 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
19699 (ia64_file_start): Don't save and override flag_var_tracking.
19700 (ia64_override_options_after_change): Ditto
19701 flag_schedule_insns_after_reload.
19702 (ia64_reorg): Test original variables.
19703 * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
19704 (picochip_flag_var_tracking): Drop.
19705 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
19706 (picochip_option_override): Don't save and override
19707 flag_schedule_insns_after_reload.
19708 (picochip_asm_file_start): Ditto flag_var_tracking.
19709 (picochip_reorg): Test original variables.
19710 * config/spu/spu.c (spu_flag_var_tracking): Drop.
19711 (TARGET_DELAY_VARTRACK): Define.
19712 (spu_var_tracking): New.
19713 (spu_machine_dependent_reorg): Call it.
19714 (asm_file_start): Don't save and override flag_var_tracking.
19716 2011-06-02 Kaz Kojima <kkojima@gcc.gnu.org>
19719 * config/sh/predicates.md (general_movsrc_operand): Return 0
19720 for memory and memory subreg of which address is an invalid
19721 indexed address for QI and HImode.
19722 (general_movdst_operand): Likewise.
19724 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
19726 * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
19727 edges only, when there is a non-local label in the function.
19728 * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
19730 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
19732 * config/i386/constraints.md (Y3): New register constraint.
19733 * config/i386/sse.md (*vec_interleave_highv2df): Merge with
19734 *sse3_interleave_highv2df and *sse2_interleave_highv2df.
19735 (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
19736 *sse2_interleave_lowv2df.
19738 2011-06-02 Julian Brown <julian@codesourcery.com>
19740 * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
19741 * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
19742 (arm_cortex_a5_tune): New.
19744 2011-06-02 Julian Brown <julian@codesourcery.com>
19746 * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
19747 * config/arm/arm.c (arm_default_branch_cost): New.
19748 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
19749 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
19750 (arm_fa726_tune): Set branch_cost field using
19751 arm_default_branch_cost.
19752 * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
19753 current_tune structure.
19754 * dojump.c (tm_p.h): Include file.
19756 2011-06-02 Julian Brown <julian@codesourcery.com>
19758 * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
19760 (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
19761 (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
19762 * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
19764 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
19765 (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
19766 (arm_fa726te_tune): Add prefer_constant_pool setting.
19767 (arm_v6t2_tune, arm_cortex_tune): New.
19768 * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
19769 prefer_constant_pool setting.
19771 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
19773 * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
19775 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
19776 (*movdf_internal) <case 6,7,8>: Ditto.
19778 * config/i386/constraints.md (Y4): New register constraint.
19779 * config/i386/sse.md (vec_set<mode>_0): Merge with
19780 *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
19781 (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
19782 *vec_extractv2di_1_sse.
19783 (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
19784 and *vec_concatv2di_rex64_sse.
19786 2011-06-02 Stuart Henderson <shenders@gcc.gnu.org>
19789 * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
19790 of cgraph_local_info for null before attempting to use it.
19792 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
19794 * function.h (struct stack_usage): Remove dynamic_alloc_count field.
19795 (current_function_dynamic_alloc_count): Delete.
19796 * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
19797 (expand_builtin_nonlocal_goto): Remove obsolete comment.
19798 (expand_builtin_update_setjmp_buf): Remove dead code.
19799 * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
19800 * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
19802 * function.c (instantiate_virtual_regs): Likewise.
19803 * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
19804 for a block with a single abnormal incoming edge.
19805 * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
19806 (SETJMP_VIA_SAVE_AREA): Delete.
19807 * config/sparc/sparc-protos.h (load_got_register): Declare.
19808 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
19809 (load_got_register): Make global.
19810 (sparc_frame_pointer_required): Add 'static'.
19811 (sparc_can_eliminate): Likewise. Call sparc_frame_pointer_required.
19812 (sparc_builtin_setjmp_frame_value): New function.
19813 * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
19814 (save_stack_nonlocal): New expander.
19815 (restore_stack_nonlocal): Likewise.
19816 (nonlocal_goto): Remove modes, adjust predicates and reimplement.
19817 (nonlocal_goto_internal): New insn.
19818 (goto_handler_and_restore): Delete.
19819 (builtin_setjmp_setup): Likewise.
19820 (do_builtin_setjmp_setup): Likewise.
19821 (setjmp): Likewise.
19822 (builtin_setjmp_receiver): New expander.
19824 2011-06-01 David Li <davidxl@google.com>
19826 PR middle-end/49261
19827 * tree-pretty-print.c (dump_function_header): Format cleanup.
19829 2011-06-01 Kaz Kojima <kkojima@gcc.gnu.org>
19832 * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
19833 needed when original operands are used for msw_skip comparison.
19835 2011-06-01 Jakub Jelinek <jakub@redhat.com>
19838 * var-tracking.c (add_uses, add_stores): Don't call
19839 cselib_subst_to_values on ENTRY_VALUE.
19841 2011-06-01 Diego Novillo <dnovillo@google.com>
19843 * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
19844 output_record_start with LTO_null instead of output_zero.
19845 (lto_output_ts_binfo_tree_pointers): Likewise.
19846 (lto_output_tree): Likewise.
19847 (output_eh_try_list): Likewise.
19848 (output_eh_region): Likewise.
19849 (output_eh_lp): Likewise.
19850 (output_eh_regions): Likewise.
19851 (output_bb): Likewise.
19852 (output_function): Likewise.
19853 (output_unreferenced_globals): Likewise.
19854 * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
19855 instead of NUM_TREE_CODES.
19856 (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
19857 (lto_output_int_in_range): Change << to >> when shifting VAL.
19859 2011-06-01 Diego Novillo <dnovillo@google.com>
19861 * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
19862 Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
19864 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
19867 * optabs.h (valid_multiword_target_p): Declare.
19868 * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
19869 doing multi-word operations.
19870 * optabs.c (expand_binop): Likewise.
19871 (expand_doubleword_bswap): Likewise.
19872 (expand_absneg_bit): Likewise.
19873 (expand_unop): Likewise.
19874 (expand_copysign_bit): Likewise.
19875 (multiword_target_p): New function.
19877 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
19879 PR rtl-optimization/48830
19880 PR rtl-optimization/48808
19881 PR rtl-optimization/48792
19882 * reload.c (push_reload): Check contains_reg_of_mode.
19883 * reload1.c (strip_paradoxical_subreg): New function.
19884 (gen_reload_chain_without_interm_reg_p): Use it to handle
19885 paradoxical subregs.
19886 (emit_output_reload_insns, gen_reload): Likewise.
19888 2011-06-01 David Li <davidxl@google.com>
19890 * predict.c : Change pass name
19893 * tree-profile.c: Ditto.
19896 2011-06-01 David Li <davidxl@google.com>
19898 * tree-pretty-print.c (dump_function_header): New function.
19899 * final.c (rest_of_clean_state): Use header dumper.
19900 * tree-cfg.c (gimple_dump_cfg): Use header dumper.
19901 * passes.c (pass_init_dump_file): Use header dumper.
19903 2011-06-01 Jakub Jelinek <jakub@redhat.com>
19905 * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
19906 ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
19907 popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
19909 (mem_loc_descriptor): Use them.
19911 * var-tracking.c (create_entry_value): New function.
19912 (vt_add_function_parameter): Use it.
19914 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19916 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
19917 Include <signal.h>, <ucontext.h>.
19918 (sigill_caught): Define.
19919 (sigill_hdlr): New function.
19920 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
19921 insns can be executed.
19922 * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
19923 * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
19925 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19927 * config/t-slibgcc-darwin: Move to ...
19928 * config/t-slibgcc-dummy: ... this. Clarify comments.
19929 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
19930 powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
19931 (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
19932 (i[34567]86-*-rtems*): Remove extra_parts. Use i386/t-rtems.
19933 Remove i386/t-crtstuff from tmake_file.
19934 (i[34567]86-*-solaris2*): Remove t-svr4,
19935 t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
19937 (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
19938 (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
19939 sparc/t-crtfm from tmake_file.
19940 (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
19941 t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
19942 Remove extra_parts.
19943 * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
19944 * config/i386/t-nwld (SHLIB_LINK): Remove.
19945 * config/i386/t-rtems-i386: Rename to ...
19946 * config/i386/t-rtems: ... this.
19947 ($(T)crti.o, $(T)crtn.o): Remove.
19948 (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
19949 (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
19950 (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
19951 * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
19952 EXTRA_MULTILIB_PARTS): Remove.
19953 * config/sparc/t-sol2-64: Likewise.
19954 * config/sparc/t-sol2: Remove.
19955 * config/sparc/t-crtin: Remove.
19956 * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
19957 * config/i386/gmon-sol2.c: Remove.
19958 * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
19959 * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
19960 * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
19961 * config/i386/sol2-gc1.asm: Remove.
19962 * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
19963 * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
19964 * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
19965 * config/t-slibgcc-sld: Remove.
19967 2011-06-01 Jakub Jelinek <jakub@redhat.com>
19969 * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
19970 base_type_for_mode with op_mode instead of mode.
19972 2011-06-01 Paul Brook <paul@cpodesourcery.com>
19974 * config/arm/arm-cores.def: Add cortex-r5. Add DIV flags to
19976 * config/arm/arm-tune.md: Regenerate.
19977 * config/arm/arm-tables.opt: Regenerate.
19978 * config/arm/arm.c (FL_DIV): Rename...
19979 (FL_THUMB_DIV): ... to this.
19980 (FL_ARM_DIV): Define.
19981 (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
19982 (arm_arch_hwdiv): Remove.
19983 (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
19984 (arm_issue_rate): Add cortexr5.
19985 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
19986 __ARM_ARCH_EXT_IDIV__.
19987 (TARGET_IDIV): Define.
19988 (arm_arch_hwdiv): Remove.
19989 (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
19990 * config/arm/arm.md (tune_cortexr4): Add cortexr5.
19991 (divsi3, udivsi3): New patterns.
19992 * config/arm/thumb2.md (divsi3, udivsi3): Remove.
19993 * doc/invoke.texi: Document ARM -mcpu=cortex-r5
19995 2011-06-01 Martin Jambor <mjambor@suse.cz>
19997 * ipa-utils.c (ipa_dfs_info): New field scc_no.
19998 * ipa-utils.c (searchc): Set scc_no.
20000 2011-06-01 Martin Jambor <mjambor@suse.cz>
20002 * ipa-utils.c (searchc_env): New field allow_overwritable.
20003 (searchc): do not ignore edges to overwritable nodes if indicated
20004 by env->allow_overwritable.
20005 (ipa_reduced_postorder): Set env.allow_overwritable.
20007 2011-06-01 Richard Guenther <rguenther@suse.de>
20009 * tree.c (free_lang_data): Do not reset boolean_type_node nor
20011 * lto-streamer.c (lto_record_common_node): Take node pointer,
20012 do not register types.
20013 (lto_preload_common_nodes): Explicitly skip preloading nodes
20014 that differ between frontends.
20016 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
20018 * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
20021 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
20023 * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
20024 parameter value for dump. Dump cost on outermost call only.
20025 (rs6000_memory_move_cost): Dump cost on outermost call only.
20027 2011-05-31 Jakub Jelinek <jakub@redhat.com>
20029 * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
20030 DW_OP_GNU_convert ops.
20032 * cselib.c (promote_debug_loc): Allow l->next non-NULL for
20033 cselib_preserve_constants.
20034 (cselib_lookup_1): If cselib_preserve_constants,
20035 a new VALUE is being created for REG and there is a VALUE for the
20036 same register in wider mode, add another loc with lowpart SUBREG of
20038 (cselib_subst_to_values): Handle ENTRY_VALUE.
20039 * var-tracking.c (replace_expr_with_values): Return NULL for
20041 * dwarf2out.c (convert_descriptor_to_signed): New function.
20042 (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
20043 instead of two shifts.
20044 (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
20045 the right mode if needed.
20046 (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
20047 (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
20048 convert_descriptor_to_signed.
20049 (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
20050 BSWAP, ROTATE, ROTATERT>: Handle these rtls.
20053 * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
20055 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
20057 * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
20058 of X87MODEI12 and SWI48x instead of SSEMODEI24.
20059 (SWI248x): New mode iterator, rename from X87MODEI.
20060 (X87MODEI): Remove mode iterator.
20061 (X87MODEI12): Ditto.
20062 (SSEMODEI24): Ditto.
20064 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
20066 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
20067 * doc/invoke.texi: Document max-vartrack-expr-depth.
20068 * var-tracking.c (EXPR_DEPTH): New.
20069 (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
20071 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
20073 * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
20074 * config/i386/sse.md: Add n to negated FMA pattern names.
20076 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
20078 * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
20080 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
20082 * gengtype-state.c (read_state_params_structs): Initialize previous.
20084 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
20086 * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
20087 (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
20089 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
20091 * config/i386/i386.md (*movtf_internal): Avoid allocating general
20092 registers. Penalize F*r->o alternative to prevent partial memory
20093 stalls. Slightly penalize *roF->*r alternative. Generate SSE
20094 CONST_DOUBLE immediates when optimizing function for size. Do not move
20095 CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
20096 (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
20097 (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
20098 (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
20100 (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
20102 (fp_register_operand splitters): Use fp_register_operand
20103 constraint. Do not use FP_REG_P in insn condition.
20104 (any_fp_register_operand splitters): Use any_fp_register_operand
20105 constraint. Do not use ANY_FP_REG_P in insn condition.
20107 2011-05-31 Jan Hubicka <jh@suse.cz>
20109 * cgraph.h (cgraph_inline_failed_t): Give enum a name
20110 * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
20111 (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
20112 (lto_output_edge): Use output_enum and var_len_unsigned.
20113 (lto_output_varpool_node): Likewise.
20114 (input_overwrite_node): Do not take resolution parameter;
20115 extract it from a bitpack.
20116 (input_node): Do not read resolution; use input_enum and
20118 (input_varpool_node): Likewise.
20119 (input_edge): Likewise.
20120 (input_cgraph_1): Likewise.
20122 2011-05-31 Richard Guenther <rguenther@suse.de>
20124 * gimple.c (gimple_register_canonical_type): Do not register
20125 any types via gimple_register_type.
20127 2011-05-31 Jan Hubicka <jh@suse.cz>
20129 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
20132 2011-05-31 Jakub Jelinek <jakub@redhat.com>
20134 PR rtl-optimization/49235
20135 * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
20136 (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
20138 2011-05-31 Ira Rosen <ira.rosen@linaro.org>
20140 PR tree-optimization/49093
20141 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
20144 2011-05-31 Dodji Seketeli <dodji@redhat.com>
20147 * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
20148 for concrete functions containing the code of cloned functions.
20150 2011-05-31 Richard Guenther <rguenther@suse.de>
20152 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
20154 (forward_propagate_into_comparison_1): ... this.
20155 (forward_propagate_comparison): Rename to ...
20156 (forward_propagate_into_comparison): ... this. Split out
20157 real forward propagation code to ...
20158 (forward_propagate_comparison): ... this.
20159 (forward_propagate_into_gimple_cond): Remove looping.
20160 (forward_propagate_into_cond): Likewise.
20161 (simplify_not_neg_expr): Return whether we have done something.
20162 (simplify_gimple_switch): Likewise.
20163 (tree_ssa_forward_propagate_single_use_vars): Rename to ...
20164 (ssa_forward_propagate_and_combine): ... this. Re-structure
20165 to do a forward forward-propagation walk on BBs and a backward
20166 stmt combining walk on BBs. Consistently re-scan changed statements.
20167 (pass_forwprop): Adjust.
20169 2011-05-30 Ian Lance Taylor <iant@google.com>
20171 * godump.c (go_format_type): Correct length of name added to
20172 obstack for anonymous field.
20174 2011-05-30 Kaz Kojima <kkojima@gcc.gnu.org>
20177 * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
20178 part of the second operand is 0.
20180 2011-05-30 Uros Bizjak <ubizjak@gmail.com>
20182 * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
20183 to prevent partial memory stalls. Do not move CONST_DOUBLEs directly
20184 to memory for !TARGET_MEMORY_MISMATCH_STALL.
20185 (*movdf_internal_rex64): Do not penalize F->r alternative.
20186 (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
20187 memory stalls. Generate SSE and x87 CONST_DOUBLE immediates only
20188 when optimizing function for size. Do not move CONST_DOUBLEs
20189 directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
20190 (FP move splitters): Merge {TF,XF,DF}mode splitters. Do not handle
20191 SUBREGs. Do not check for MEM_P operands in the insn condition,
20192 check for ANY_FP_REGNO_P instead.
20193 * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
20194 TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
20195 function for speed.
20196 * config/i386/i386.c (ix86_option_override_internal): Do not
20197 set TARGET_INTEGER_DFMODE_MOVES here.
20199 2011-05-30 H.J. Lu <hongjiu.lu@intel.com>
20202 * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
20204 2011-05-30 Jakub Jelinek <jakub@redhat.com>
20206 * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
20207 DW_TAG_rvalue_reference_type even for
20208 -gdwarf-4 -fno-debug-types-section.
20210 2011-05-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20212 PR tree-optimization/46728
20213 * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
20214 (build_and_insert_binop): New.
20215 (gimple_expand_builtin_pow): Reorder args for
20216 build_and_insert_call; use build_and_insert_binop; add more
20217 optimizations for fractional exponents.
20219 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
20224 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
20226 * tree.h (struct tree_identifier): Inherit from tree_typed, not
20228 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
20229 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
20230 TS_BASE instead of TS_COMMON.
20231 * varasm.c (assemble_name): Remove assert.
20233 2011-05-30 Richard Sandiford <rdsandiford@googlemail.com>
20235 * config.gcc: Keep obselete list sorted.
20237 2011-05-30 Jakub Jelinek <jakub@redhat.com>
20238 Eric Botcazou <ebotcazou@adacore.com>
20240 * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
20241 crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
20242 there is a DRAP register and arg_pointer_rtx is the CFA pointer.
20243 (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
20244 (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
20246 2011-05-30 Richard Guenther <rguenther@suse.de>
20248 * gimple.c (gimple_types_compatible_p_1): Compare record
20249 and union type members properly.
20251 2011-05-30 Richard Guenther <rguenther@suse.de>
20253 PR tree-optimization/49210
20254 * ipa-split.c (split_function): Care for the case where the call
20255 result is not trivially convertible to the result holding variable.
20257 2011-05-30 Richard Guenther <rguenther@suse.de>
20259 PR tree-optimization/49218
20260 * tree-vrp.c (adjust_range_with_scev): Properly check whether
20263 2011-05-30 Richard Guenther <rguenther@suse.de>
20265 * tree-ssa-forwprop.c (forward_propagate_into_comparison):
20266 New function split out from ...
20267 (forward_propagate_into_gimple_cond): ... here. Adjust.
20268 (forward_propagate_into_cond): Likewise.
20269 (forward_propagate_comparison): Also propagate into
20270 comparisons on assignment RHS. Change return value to
20271 behave similar to forward_propagate_into_cond.
20272 (tree_ssa_forward_propagate_single_use_vars): Handle
20273 strict-overflow warnings properly for forward_propagate_comparison.
20275 2011-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20277 * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
20278 from plugin linker.
20279 * configure: Regenerate.
20281 2011-05-30 Ira Rosen <ira.rosen@linaro.org>
20283 PR tree-optimization/49199
20284 * tree-vect-loop.c (vect_is_slp_reduction): Check that the
20285 non-reduction operands are either defined in the loop or by induction.
20287 2011-05-29 Xinliang David Li <davidxl@google.com>
20289 * opts-global.c (handle_common_deferred_options): Handle new options.
20290 * passes.c (register_one_dump_file): Call register_pass_name.
20291 (execute_one_pass): Check explicit enable/disable flag.
20292 (passr_hash): New function.
20294 (register_pass_name): Ditto.
20295 (get_pass_by_name): Ditto.
20296 (pass_hash): Ditto.
20298 (enable_pass): Ditto.
20299 (disable_pass): Ditto.
20300 (is_pass_explicitly_enabled_or_disabled): Ditto.
20302 2011-05-29 Uros Bizjak <ubizjak@gmail.com>
20304 * config/i386/i386.md (*movoi_internal_avx): Use
20305 standard_sse_constant_opcode for alternative 0.
20306 (*movti_internal_sse): Ditto.
20307 (*movti_internal_rex64): Use standard_sse_constant_opcode for
20309 (*movdi_internal_rex64): Use standard_sse_constant_opcode for
20310 sselog1 type moves.
20311 (*movsi_internal): Ditto.
20312 (*movdi_internal): Ditto. Add ssecvt type moves.
20314 2011-05-29 Eric Botcazou <ebotcazou@adacore.com>
20317 * rtlanal.c (simplify_subreg_regno): Adjust comment.
20319 2011-05-29 Jakub Jelinek <jakub@redhat.com>
20321 PR rtl-optimization/49095
20322 * config/i386/predicates.md (plusminuslogic_operator): New predicate.
20323 * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
20325 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
20328 * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
20329 recurse_p argument. Only follow register copies if it is set,
20330 and prevent mips_find_pic_call_symbol from recursing.
20331 (mips_find_pic_call_symbol): Add a recurse_p argument.
20332 Pass it to mips_pic_call_symbol_from_set.
20333 (mips_annotate_pic_calls): Update accordingly.
20335 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
20337 * emit-rtl.c (try_split): Use a loop to search for
20338 NOTE_INSN_CALL_ARG_LOCATIONs.
20340 2011-05-29 Richard Guenther <rguenther@suse.de>
20342 PR tree-optimization/49217
20343 * ipa-pure-const.c (propagate_pure_const): Fix typos.
20345 2011-05-28 Jan Hubicka <jh@suse.cz>
20347 * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
20349 (string_slot_free): Remove
20350 (create_output_block): Initialize obstack.
20351 (destroy_output_block): Free obstack.
20352 (lto_string_index): Add PERSISTENT parameter; do not duplicate
20353 the string unless it needs to be added into the hash.
20354 (lto_output_string_with_length): Add persistent attribute;
20355 handle NULL strings.
20356 (lto_output_string): Add PERSISTENT parameter.
20357 (output_string_cst, output_identifier): Simplify.
20358 (lto_output_location_bitpack): Update.
20359 (lto_output_builtin_tree): Update.
20360 * lto-streamer.h (struct output_block): Add obstack.
20361 (lto_output_string, lto_output_string_with_length): Remove
20362 declarations; functions are static now.
20364 2011-05-28 Jan Hubicka <jh@suse.cz>
20366 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
20367 pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
20368 pack_ts_function_decl_value_fields, lto_output_builtin_tree,
20369 output_cfg, output_gimple_stmt): Use enum and variable length i/o.
20370 * lto-streamer-in.c (input_cfg, input_gimple_stmt,
20371 unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
20372 unpack_ts_decl_with_vis_value_fields,
20373 unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
20374 lto_get_builtin_tree): Use enum and variable length i/o.
20375 * basic-block.h (profile_status_d): Add PROFILE_LAST.
20376 * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
20378 (bp_pack_enum, bp_unpack_enum): New macros.
20380 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
20382 * genrecog.c: Remove redundant forward declarations.
20384 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
20386 * config.gcc: Deprecate mips*-*-openbsd*.
20388 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
20391 * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
20394 2011-05-27 Andrew Pinski <pinskia@gmail.com>
20396 PR middle-end/48981
20397 * gengtype.c (vec_prefix_type): New function.
20398 (note_def_vec): Use vec_prefix_type and change the length
20399 attribute to be based on the prefix.
20400 * vec.c: Include coretypes.h before vec.h.
20401 (struct vec_prefix): Remove.
20402 (vec_gc_p_reserve): Change the offsetof to sizeof.
20403 (vec_gc_p_reserve_exact): Likewise.
20404 (vec_heap_p_reserve): Likewise.
20405 (vec_heap_p_reserve_exact): Likewise.
20406 (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
20407 (vec_stack_p_reserve): Change the offsetof to sizeof.
20408 (vec_stack_p_reserve_exact): Likewise.
20409 * vec.h (struct vec_prefix): New struct definition.
20410 (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
20411 (VEC_T_GTY(T,B)): Likewise.
20412 (DEF_VEC_FUNC_P(T)): Use prefix field.
20413 (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
20414 (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
20416 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20418 PR tree-optimization/46728
20419 * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
20420 (powi_as_mults): Add gimple_set_location.
20421 (build_and_insert_call): New.
20422 (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
20423 0.5, 0.25, 0.75, 1./3., or 1./6.
20425 2011-05-27 Alexander Monakov <amonakov@ispras.ru>
20427 * doc/contrib.texi: Update copyright years.
20428 (Contributors): Add Zdenek Sojka.
20430 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
20432 * c-decl.c (c_push_function_context): Copy the current statement
20434 (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
20435 (finish_struct): Call building_stmt_list_p instead of checking
20437 * c-parser.c (c_parser_postfix_expression): Likewise.
20438 * c-typeck.c (c_end_compound_stmt): Likewise.
20439 * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
20440 * tree-iterator.c (stmt_list_cache): Change to a VEC.
20441 (alloc_stmt_list): Adjust for stmt_list_cache's new type.
20442 (free_stmt_list): Likewise.
20443 * tree.h (struct tree_statement_list): Include typed_tree instead
20445 * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
20446 as TS_TYPED instead of TS_COMMON.
20448 2011-05-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20449 Uros Bizjak <ubizjak@gmail.com>
20451 * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
20452 (HAVE_AS_IX86_TLSGDPTL): Define.
20453 (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
20454 (HAVE_AS_IX86_TLSLDMPLT): Define.
20455 * configure: Regenerate.
20456 * config.in: Regenerate.
20457 * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
20458 * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
20459 TARGET_SUN_TLS, use @tlsgdplt or @plt.
20460 (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
20461 (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
20462 @tlsldmplt or @plt.
20463 (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
20465 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
20467 * sched-int.h (struct _haifa_deps_insn_data): New members cond
20469 (INSN_COND, INSN_REVERSE_COND): New macros.
20470 * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
20472 (sched_get_condition_with_rev): Cache the results, and look them up
20474 (sched_analyze_insn): Destroy INSN_COND of previous insns if they
20475 are clobbered by the current insn.
20476 * target.def (exposed_pipline): New sched data hook.
20477 * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
20478 * doc/tm.texi: Regenerate.
20480 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20482 PR tree-optimization/49170
20483 * tree-ssa-math-opts.c (execute_cse_sincos): Add checks for
20486 2011-05-27 Richard Guenther <rguenther@suse.de>
20488 PR middle-end/49189
20489 * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
20492 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
20494 * haifa-sched.c (sched_scan_info): Remove.
20495 (schedule_block): Call sched_extend_luids rather than sched_init_luids
20497 (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
20499 (sched_scan): Remove.
20500 (sched_extend_luids): Renamed from luids_extend_insn and no longer
20501 static. All callers changed.
20502 (sched_init_insn_luid): Renamed from luids_init_insn and no longer
20503 static. All callers changed.
20504 (sched_init_luids): Remove all arguments except the first. All
20505 callers changed. Don't use sched_scan.
20506 (haifa_init_h_i_d): Likewise.
20507 (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
20508 manually rather than using sched_init_luids. Likewise with
20509 extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
20510 * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
20511 rather than sched_init_luids with NULL args.
20512 * sel-sched-ir.c (new_insns): Remove variable.
20513 (sched_scan): New static function, previously in haifa-sched.c. Remove
20514 all arguments but the first two; all callers changed.
20515 (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
20516 rather than sched_init_luids.
20517 (sel_init_bbs): Remove second argument. All callers changed.
20518 (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
20519 with NULL arguments.
20520 (create_insn_rtx_from_pattern): Likewise.
20521 * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
20522 * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
20523 (sched_init_insn_luid, sched_extend_luids): Declare.
20524 (sched_scan_info_def, sched_scan_info, sched_scan): Remove
20527 2011-05-27 Richard Guenther <rguenther@suse.de>
20529 PR middle-end/49177
20530 * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
20531 A CMP B ? (T) true : (T) false for non-integral types T again.
20533 2011-05-27 Jan Hubicka <jh@suse.cz>
20535 * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
20536 so 0 means NULL string.
20537 (lto_output_string_with_length): ... here.
20538 (lto_output_string, output_string_cst, output_identifier): Update
20539 handling of NULL strings.
20540 (lto_output_location_bitpack): New function.
20541 (lto_output_location): Use it.
20542 (lto_output_tree_ref): Use output_record_start.
20543 (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
20545 * lto-streamer-in.c (string_for_index): Break out from ...; offset
20547 (input_string_internal): ... here;
20548 (input_string_cst, input_identifier, lto_input_string): Update handling
20550 (lto_input_location_bitpack): New function
20551 (lto_input_location): Use it.
20552 (unpack_ts_type_common_value_fields): Pack align & alias in var len
20554 * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
20555 bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
20556 (bp_pack_value): Sanity check the value range.
20557 * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
20559 * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
20562 2011-05-27 Hariharan Sandanagobalane <hariharan@picochip.com>
20564 * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
20565 call_arg_location instructions down the floor.
20567 2011-05-26 Vladimir Makarov <vmakarov@redhat.com>
20569 PR rtl-optimization/49154
20570 * ira.c (setup_pressure_classes): Process class without sublcasses
20571 as a candidate for pressure classes.
20573 2011-05-26 Richard Sandiford <rdsandiford@googlemail.com>
20575 PR rtl-optimization/48575
20576 * genrecog.c (position_type): New enum.
20577 (position): New structure.
20578 (decision): Use position structure instead of a string.
20579 (root_pos, peep2_insn_pos_list): New variables.
20580 (next_position, compare_positions): New functions.
20581 (new_decision): Use position structures instead of strings.
20582 (maybe_both_true): Likewise.
20583 (change_state): Likewise.
20584 (write_tree): Likewise.
20585 (make_insn_sequence): Likewise.
20587 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
20589 * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
20590 TS_BASE instead of TS_COMMON.
20591 (find_decls_types_r): Check for TS_TYPED structure before looking at
20593 * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
20595 (BLOCK_CHAIN): Use new chain field.
20597 2011-05-26 Pat Haugen <pthaugen@us.ibm.com>
20599 * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
20600 moves expensive on Power7 also.
20602 2011-05-26 Richard Guenther <rguenther@suse.de>
20604 * fold-const.c (fold_unary_loc): Remove bogus code.
20606 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
20608 * tree.h (struct tree_identifier): Inherit from tree_typed, not
20610 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
20611 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
20612 TS_BASE instead of TS_COMMON.
20613 * varasm.c (assemble_name): Remove assert.
20615 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
20617 * Makefile.in (srcdirify): Change order so that libgcc_objdir is
20619 * libgcc-std.ver: Delete file.
20621 2011-05-26 Richard Guenther <rguenther@suse.de>
20623 PR tree-optimization/48702
20624 * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
20625 only when we know the base address is within bounds.
20626 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
20627 assume the base address of TARGET_MEM_REFs is in bounds.
20629 2011-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20632 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
20633 declaration in TARGET_SOLARIS.
20635 2011-05-26 Hariharan Sandanagobalane <hariharan@picochip.com>
20637 * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
20638 The instruction is then expanded explicitly.
20639 (supported_compare): Callable instruction.
20640 (compare): Likewise.
20642 2011-05-26 Jakub Jelinek <jakub@redhat.com>
20645 * gimplify.c (shortcut_cond_r): Don't special case
20646 COND_EXPRs if they have void type on one of their arms.
20648 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
20650 * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
20651 to reduce duplication, and to achieve a slightly more logical order
20654 2011-05-26 Jakub Jelinek <jakub@redhat.com>
20656 PR tree-optimization/49161
20657 * tree-vrp.c (struct case_info): New type.
20658 (compare_case_labels): Sort case_info structs instead of
20659 trees, and not primarily by CASE_LABEL uids but by
20660 label_for_block indexes.
20661 (find_switch_asserts): Put case labels into struct case_info
20662 array instead of TREE_VEC, adjust sorting, compare label_for_block
20663 values instead of CASE_LABELs.
20665 2011-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
20667 * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
20668 ("orndi3_neon"): Likewise.
20669 ("bic<mode>3_neon"): Likewise.
20671 2011-05-26 Ira Rosen <ira.rosen@linaro.org>
20673 PR tree-optimization/49038
20674 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
20675 Ensure at least one epilogue iteration if required by data
20676 accesses with gaps.
20677 * tree-vectorizer.h (struct _loop_vec_info): Add new field
20678 to mark loops that require peeling for gaps.
20679 * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
20680 (vect_get_known_peeling_cost): Take peeling for gaps into
20682 (vect_transform_loop): Generate epilogue if required by data
20684 * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
20685 loop as requiring an epilogue if there are gaps in the end of
20688 2011-05-25 Ian Lance Taylor <iant@google.com>
20690 * godump.c (go_format_type): Output the first field with a usable
20693 2011-05-25 Ian Lance Taylor <iant@google.com>
20695 * godump.c (go_format_type): Check for invalid type names, pointer
20696 target types, and struct field types.
20698 2011-05-25 Jason Merrill <jason@redhat.com>
20700 * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
20702 2011-05-25 Uros Bizjak <ubizjak@gmail.com>
20704 * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
20706 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
20708 * config/i386/i386.md (*movqi_extv_1)): Put back
20709 "register_operand" check in "type" calculation.
20710 (*movqi_extzv_2): Likewise.
20712 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
20714 * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
20716 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
20719 * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
20720 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
20721 __divxc3, __divtc3): Wrap definitions in #ifndef.
20723 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
20726 * config/i386/i386.md (*movqi_extv_1_rex64): Remove
20727 "register_operand" check and replace q_regs_operand with
20728 QIreg_operand in "type" calculation.
20729 (*movqi_extv_1): Likewise.
20730 (*movqi_extzv_2_rex64): Likewise.
20731 (*movqi_extzv_2): Likewise.
20733 * config/i386/predicates.md (QIreg_operand): New.
20735 2011-05-25 Richard Guenther <rguenther@suse.de>
20737 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
20738 type-based offset disambiguation, streamline MEM_REF and
20739 TARGET_MEM_REF handling.
20741 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
20743 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
20744 (bdesc_special_args): Add pause intrinsic.
20746 * config/i386/i386.md (UNSPEC_PAUSE): New.
20748 (*pause): Likewise.
20749 * config/i386/ia32intrin.h (__pause): Likewise.
20751 * doc/extend.texi (X86 Built-in Functions): Add documentation for
20754 2011-05-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20756 PR tree-optimization/46728
20757 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
20758 (execute_cse_sincos): Add switch case for BUILT_IN_POW.
20760 2011-05-25 Nathan Froyd <froydnj@codesourcery.com>
20762 * tree.h (struct tree_exp): Inherit from struct tree_typed.
20763 * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
20764 instead of TS_COMMON.
20766 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
20768 * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
20769 LIBGCC2_GNU_PREFIX is defined.
20771 (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
20772 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
20773 __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
20774 __clz_tab): Define using __N.
20775 (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
20776 COMPAT_SIMODE_TRAPPING_ARITHMETIC.
20777 * target.def (libfunc_gnu_prefix): New hook.
20778 * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
20779 (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
20780 * doc/tm.texi: Regenerate.
20781 * system.h (LIBGCC2_GNU_PREFIX): Poison.
20782 * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
20784 (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
20785 (init_optabs): Likewise for the bswap libfuncs.
20786 * tree.c (build_common_builtin_nodes): Likewise for complex multiply
20788 * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
20789 * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
20790 * libgcc-std.ver: Remove.
20791 * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
20792 * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
20794 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
20795 * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
20796 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
20797 * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
20798 * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
20799 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
20800 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
20801 * config/fixed-bit.h (FIXED_OP): Define differently depending on
20802 LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
20803 (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
20805 2011-05-25 Jan Hubicka <jh@suse.cz>
20807 * lto-streamer-out.c (output_record_start): Use lto_output_enum
20808 (lto_output_tree): Use output_record_start.
20809 * lto-streamer-in.c (input_record_start): Use lto_input_enum
20810 (lto_get_pickled_tree): Use input_record_start.
20811 * lto-section-in.c (lto_section_overrun): Turn into fatal error.
20812 (lto_value_range_error): New function.
20813 * lto-streamer.h (lto_value_range_error): Declare.
20814 (lto_output_int_in_range, lto_input_int_in_range): New functions.
20815 (lto_output_enum, lto_input_enum): New macros.
20817 2011-05-25 Eric Botcazou <ebotcazou@adacore.com>
20819 * common.opt (flag_stack_usage_info): New variable.
20820 (-Wstack-usage): New option.
20821 * doc/invoke.texi (Warning options): Document -Wstack-usage.
20822 * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
20823 <OPT_fstack_usage>: Likewise.
20824 * toplev.c (output_stack_usage): Handle -Wstack-usage.
20825 * calls.c (expand_call): Test flag_stack_usage_info variable instead
20826 of flag_stack_usage.
20827 (emit_library_call_value_1): Likewise.
20828 * explow.c (allocate_dynamic_stack_space): Likewise.
20829 * function.c (instantiate_virtual_regs ): Likewise.
20830 (prepare_function_start): Likewise.
20831 (rest_of_handle_thread_prologue_and_epilogue): Likewise.
20832 * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
20833 * config/arm/arm.c (arm_expand_prologue): Likewise.
20834 (thumb1_expand_prologue): Likewise.
20835 * config/avr/avr.c (expand_prologue): Likewise.
20836 * config/i386/i386.c (ix86_expand_prologue): Likewise.
20837 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
20838 * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
20839 * config/mips/mips.c (mips_expand_prologue): Likewise.
20840 * config/pa/pa.c (hppa_expand_prologue): Likewise.
20841 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
20842 * config/s390/s390.c (s390_emit_prologue): Likewise.
20843 * config/sh/sh.c (sh_expand_prologue): Likewise.
20844 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
20845 * config/spu/spu.c (spu_expand_prologue): Likewise.
20847 2011-05-25 Richard Guenther <rguenther@suse.de>
20849 * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
20850 (gimple_canonical_types_compatible_p): Likewise.
20852 2011-05-25 Jan Hubicka <jh@suse.cz>
20854 PR middle-end/49062
20855 * ipa.c (function_and_variable_visibility): Only add to same
20856 comdat group list if DECL_ONE_ONLY.
20858 2011-05-25 Andrey Belevantsev <abel@ispras.ru>
20860 PR rtl-optimization/49014
20861 * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
20863 2011-05-25 Jakub Jelinek <jakub@redhat.com>
20866 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
20868 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
20870 PR rtl-optimization/48757
20871 * ira-build.c (loop_with_eh_edge_p): Rename to
20872 loop_with_complex_edge_p, check edges on complexity, make function
20874 (mark_loops_for_removal): Make call of loop_with_complex_edge_p
20877 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
20879 * config/sparc/sparc.c (sparc_option_override): If not set by the user,
20880 force flag_ira_share_save_slots to 0.
20882 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
20884 * var-tracking.c (compute_cfa_pointer): Adjust head comment.
20885 (vt_initialize): Set PROLOGUE_BB unconditionally.
20886 Add block comment about CFA_BASE_RTX machinery.
20887 Reset FP_CFA_OFFSET to -1 on all invalid paths.
20888 Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
20890 2011-05-24 Nicola Pero <nicola.pero@meta-innovation.com>
20893 * c-parser.c (c_parser_objc_class_instance_variables): More robust
20894 parsing of syntax error in ObjC instance variable lists. In
20895 particular, avoid an infinite loop if there is a stray ']'.
20896 Updated error message.
20898 2011-05-24 Ian Lance Taylor <iant@google.com>
20900 * godump.c (go_define): Don't accept a string immediately after
20903 2011-05-24 Ian Lance Taylor <iant@google.com>
20905 * godump.c (struct godump_container): Add invalid_hash field.
20906 (go_format_type): Return false if type is found in invalid_hash.
20907 (go_output_typedef): Add invalid type to invalid_hash.
20908 (go_finish): Create and delete invalid_hash.
20910 2011-05-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20912 PR tree-optimization/46728
20913 * tree-ssa-math-opts.c (powi_table): New.
20914 (powi_lookup_cost): New.
20916 (powi_as_mults_1): New.
20917 (powi_as_mults): New.
20918 (gimple_expand_builtin_powi): New.
20919 (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
20920 (gate_cse_sincos): Remove sincos/cexp restriction.
20922 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20925 * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
20927 * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
20928 * mips-tdump.c: Likewise.
20930 2011-05-24 H.J. Lu <hongjiu.lu@intel.com>
20933 * config/i386/driver-i386.c (host_detect_local_cpu): Always
20934 add -mno-XXX. Handle FMA.
20936 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
20938 PR rtl-optimization/48633
20939 * ira-build.c (loop_with_eh_edge_p): New function.
20940 (mark_loops_for_removal): Use it.
20942 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
20944 PR rtl-optimization/48971
20945 * ira.c (setup_pressure_classes): Don't check register move cost
20946 for classes with one registers. Don't add pressure class if there
20947 is a pressure class with the same available hard registers.
20948 Check contains_reg_of_mode. Fix a typo in collecting
20949 temp_hard_regset. Ignore hard registers not belonging to a class.
20951 2011-05-24 Uros Bizjak <ubizjak@gmail.com>
20954 * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
20956 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
20957 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20959 PR gcov-profile/48845
20960 * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
20962 2011-05-24 Richard Guenther <rguenther@suse.de>
20964 * gimple.c (compare_type_names_p): Remove for_completion_p arg.
20965 (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
20966 (gimple_types_compatible_p_1): Adjust.
20967 (iterative_hash_canonical_type): Do not bother about complete vs.
20969 (gimple_canonical_types_compatible_p): Likewise.
20971 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20973 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
20975 2011-05-24 Richard Guenther <rguenther@suse.de>
20978 * gimple.c (gimple_register_canonical_type): Revert
20980 * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
20981 does not for a tree for the case where it matters. Cache
20982 pointer-type alias-sets.
20984 2011-05-24 Joseph Myers <joseph@codesourcery.com>
20986 * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
20987 (OBJS): Remove options.o, opts-common.o and prefix.o.
20988 (OBJS-libcommon-target): New.
20989 (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
20990 (BACKEND): Include libcommon-target.a.
20991 (MOSTLYCLEANFILES): Include libcommon-target.a.
20992 (libcommon-target.a): New.
20993 (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
20996 2011-05-23 Joseph Myers <joseph@codesourcery.com>
20998 * optc-save-gen.awk: New. Based on optc-gen.awk. Don't generate
20999 parts of output shared with the driver.
21000 * optc-gen.awk: Don't generate parts of output not shared with the
21002 * opth-gen.awk: Remove GCC_DRIVER conditionals.
21003 * doc/options.texi (SourcerInclude): Mention options-save.c.
21004 * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
21005 (OBJS): Add options-save.o.
21006 (options-save.c, options-save.o): New.
21007 (options.o): Update dependencies.
21008 (gcc-options.o): Remove.
21009 (mostlyclean): Remove options-save.c.
21011 2011-05-23 Jakub Jelinek <jakub@redhat.com>
21014 * dbxout.c: Include cgraph.h.
21015 (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
21016 and without value expr, return NULL if no varpool node exists for
21017 it or if it is not needed.
21018 * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
21021 * c-decl.c (start_decl): Convert expr to void_type_node.
21023 2011-05-23 Richard Sandiford <rdsandiford@googlemail.com>
21025 PR rtl-optimization/48826
21026 * emit-rtl.c (try_split): When splitting a call that is followed
21027 by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
21029 2011-05-23 Jakub Jelinek <jakub@redhat.com>
21031 * cfgexpand.c (expand_debug_expr): For unused non-addressable
21032 parameters passed in memory prefer using DECL_INCOMING_RTL over
21033 the pseudos it will be copied into.
21035 2011-05-23 H.J. Lu <hongjiu.lu@intel.com>
21038 * config/i386/i386.c (ix86_option_override_internal): Save the
21039 initial options after checking vzeroupper.
21041 2011-05-23 David Li <davidxl@google.com>
21043 PR tree-optimization/48988
21044 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
21045 Initialize has_valid_pred for each pred chain.
21047 2011-05-23 Richard Guenther <rguenther@suse.de>
21049 * gimple.c (gimple_types_compatible_p_1): Always compare type names.
21050 (iterative_hash_gimple_type): Always hash type names.
21052 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
21054 * c-typeck.c (build_function_call_vec): Tweak call to
21055 check_function_arguments.
21057 2011-05-23 Richard Guenther <rguenther@suse.de>
21059 PR tree-optimization/49115
21060 * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
21061 is not necessarily carried out, do not claim it kills the ref.
21062 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
21064 2011-05-23 Richard Guenther <rguenther@suse.de>
21066 PR middle-end/15419
21067 * builtins.c (fold_builtin_memory_op): Be less restrictive about
21068 what pointer types we accept for folding.
21070 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21072 * gthr-gnat.c: Remove.
21073 * gthr-gnat.h: Remove.
21074 * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
21075 * config/t-freebsd (LIB2ADDEH): Likewise.
21076 * config/t-linux (LIB2ADDEH): Likewise.
21077 * config/t-sol2 (LIB2ADDEH): Likewise.
21078 * config/ia64/t-vms (LIB2ADDEH): Likewise.
21079 * configure.ac (target_thread_file): Remove gnat handling.
21080 * configure: Regenerate.
21081 * doc/install.texi (Configuration, --enable-threads): Remove gnat.
21083 2011-05-23 Tristan Gingold <gingold@adacore.com>
21084 Eric Botcazou <ebotcazou@adacore.com>
21086 * gcov.c (create_file_names): If no object directory is specified,
21087 keep the directory of the file.
21089 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21091 * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
21092 * configure: Regenerate.
21094 2011-05-23 Jakub Jelinek <jakub@redhat.com>
21096 PR middle-end/48973
21097 * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
21098 failed and the comparison has a single bit signed type, use
21099 constm1_rtx instead of const1_rtx for true value.
21100 (do_store_flag): If ops->type is single bit signed type, disable
21101 signel bit test optimization and pass -1 instead of 1 as last
21102 parameter to emit_store_flag_force.
21104 2011-05-23 Tom de Vries <tom@codesourcery.com>
21107 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
21109 (infer_loop_bounds_from_undefined): Use new function.
21111 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
21113 * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
21114 (ASM_SPEC): Add a -O* option here. Pass -O0 for -noasmopt,
21115 -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
21117 (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
21119 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
21121 * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
21122 (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
21125 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
21127 * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
21129 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
21131 * config/sparc/sparc.c (sparc_delegitimize_address): Handle
21132 UNSPEC_MOVE_PIC pattern.
21134 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
21136 * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
21137 (sparc-*-rtems*): Likewise.
21138 (sparc64-*-elf*): Likewise.
21139 (sparc64-*-rtems*): Likewise.
21140 (sparc*-*-solaris2*): Likewise. Remove crti.o crtn.o extra parts.
21141 * config/sparc/t-crtin: New file.
21142 * config/sparc/t-sol2 (crti.o): Delete rule.
21143 (crtn.o): Likewise.
21144 * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
21145 * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
21146 * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
21147 (ENDFILE_SPEC): Add crtn.o.
21149 2011-05-22 Tom de Vries <tom@codesourcery.com>
21151 PR middle-end/48689
21152 * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
21153 CODE_CONTAINS_STRUCT (TS_COMMON).
21155 2011-05-22 Jakub Jelinek <jakub@redhat.com>
21157 PR middle-end/49029
21158 * expmed.c (extract_fixed_bit_field): Test whether target can be used
21159 only after deciding which mode to use.
21161 2011-05-22 Tom de Vries <tom@codesourcery.com>
21164 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
21165 for call to get_shiftadd_cost.
21167 2011-05-22 Uros Bizjak <ubizjak@gmail.com>
21170 * config/i386/cpuid.h (bit_MMXEXT): New define.
21172 2011-05-22 Nick Clifton <nickc@redhat.com>
21174 * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
21175 initialisation of non-existant args[2] element. Use args[] array
21176 not arg[] array to pass arguments to build_function_type_list.
21178 2011-05-22 Ira Rosen <ira.rosen@linaro.org>
21180 PR tree-optimization/49087
21181 * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
21183 2011-05-21 Jason Merrill <jason@redhat.com>
21186 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
21187 static storage duration.
21189 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
21191 * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
21194 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
21196 * config/sparc/sparc.c (eligible_for_return_delay): Do not return
21197 false if there are call-saved registers here...
21198 (sparc_can_use_return_insn_p): ...but here instead.
21199 (save_or_restore_regs): Fix thinko.
21200 (sparc_expand_prologue): Use current_function_is_leaf.
21201 (sparc_frame_pointer_required): Likewise.
21203 2011-05-21 Nick Clifton <nickc@redhat.com>
21206 * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
21208 2011-05-21 Nicola Pero <nicola.pero@meta-innovation.com>
21210 * gengtype.c (walk_type): Implemented "atomic" GTY option.
21211 * doc/gty.texi (GTY Options): Document "atomic" GTY option.
21213 2011-05-21 Joseph Myers <joseph@codesourcery.com>
21215 * opt-read.awk: New. Split out of optc-gen.awk and opth-gen.awk.
21216 * optc-gen.awk: Move common code to opt-read.awk.
21217 * opth-gen.awk: Likewise.
21218 * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
21220 2011-05-20 Nathan Froyd <froydnj@codesourcery.com>
21222 * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
21224 2011-05-20 Tom de Vries <tom@codesourcery.com>
21227 * tree-ssa-loop-ivopts.c: Include expmed.h.
21228 (get_shiftadd_cost): New function.
21229 (force_expr_to_var_cost): Declare forward. Use get_shiftadd_cost.
21231 2011-05-20 Jakub Jelinek <jakub@redhat.com>
21234 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
21235 for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
21237 2011-05-20 Joseph Myers <joseph@codesourcery.com>
21239 * Makefile.in: Update comment referring to $(OBJS-common).
21241 2011-05-20 Ian Lance Taylor <iant@google.com>
21243 * godump.c (go_output_typedef): Put enum constants in the macro
21244 hash table to avoid duplicate Go const definitions.
21246 2011-05-20 Joseph Myers <joseph@codesourcery.com>
21248 * Makefile.in (LIBDEPS): Add libcommon.a.
21250 (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
21251 (OBJS-common): Remove diagnostic.o, input.o, intl.o,
21252 pretty-print.o and version.o.
21253 (OBJS-libcommon): New.
21254 (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
21255 (BACKEND): Add libcommon.a.
21256 (MOSTLYCLEANFILES): Likewise.
21257 (libcommon.a): New.
21258 (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
21259 (cpp$(exeext)): Likewise.
21260 (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
21261 pretty-print.o and input.o.
21262 (lto-wrapper$(exeext)): Don't explicitly use intl.o.
21263 (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
21264 (errors.o): Remove.
21265 (mips-tfile): Don't explicitly use version.o.
21266 (mips-tdump): Likewise.
21267 (gcov.o): Depend on $(DIAGNOSTIC_H).
21268 (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
21269 (GCOV_OBJS): Remove intl.o, version.o and errors.o.
21270 (GCOV_DUMP_OBJS): Remove version.o and errors.o.
21271 * gcov-dump.c: Include intl.h and diagnostic.h.
21272 (main): Initialize diagnostics.
21273 * gcov.c: Include diagnostic.h.
21275 (main): Initialize diagnostics.
21276 * lto-wrapper.c: Include diagnostic.h.
21277 (main): Initialize diagnostics.
21279 2011-05-20 Michael Matz <matz@suse.de>
21281 * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
21283 2011-05-20 Michael Matz <matz@suse.de>
21284 Richard Guenther <rguenther@suse.de>
21286 * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
21287 use lto_streamer_cache_append directly instead of returning a VEC.
21288 (preload_common_node): Remove.
21289 (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
21291 (lto_streamer_cache_create): Call lto_preload_common_nodes.
21293 2011-05-20 Richard Guenther <rguenther@suse.de>
21295 PR tree-optimization/49079
21296 * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
21297 MEM_REFs correctly for the trailing array access detection.
21298 Special case constants the same way as decls for overall size
21301 2011-05-20 Uros Bizjak <ubizjak@gmail.com>
21303 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
21304 argument expansion.
21306 2011-05-20 Jakub Jelinek <jakub@redhat.com>
21308 PR tree-optimization/49073
21309 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
21310 PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
21311 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
21313 2011-05-20 Richard Guenther <rguenther@suse.de>
21315 PR middle-end/48849
21316 * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
21317 of pointer types the same way the middle-end does.
21319 2011-05-20 Richard Guenther <rguenther@suse.de>
21321 * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
21322 or pointer-to chains. Delay all fixup to uniquify_nodes.
21324 2011-05-19 Quentin Neill <quentin.neill@amd.com>
21326 * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
21327 (fma4_fmaddsub): Likewise
21329 2011-05-19 Jan Hubicka <jh@suse.cz>
21331 * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
21332 (GIMPLE_TYPE_PAIR_SIZE): New macro.
21333 (type_pair_cache): New static var.
21334 (lookup_type_pair): Use fixed sized custom hash; make inline.
21335 (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
21336 calls of lookup_type_pair.
21337 (print_gimple_types_stats): Remove cache stats.
21338 (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
21341 2011-05-19 Uros Bizjak <ubizjak@gmail.com>
21343 * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
21344 when TARGET_RDRND is active.
21345 (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
21346 Generate dummy SImode target register when target is NULL.
21348 2011-05-19 Joseph Myers <joseph@codesourcery.com>
21350 * config/arm/arm-fpus.def: New.
21351 * config/arm/genopt.sh: Generate Enum and EnumValue entries from
21353 * config/arm/arm-tables.opt: Regenerate.
21354 * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
21355 (arm_option_override): Don't decode FPU name to string here.
21356 * config/arm/arm.opt (mfpu=): Use Enum.
21357 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
21358 Update dependencies.
21360 2011-05-19 Joseph Myers <joseph@codesourcery.com>
21362 * collect2.c: Include diagnostic.h.
21363 (fatal_perror, fatal, error, fancy_abort): Remove.
21364 (main): Set progname. Call xmalloc_set_program_name and
21365 diagnostic_initialize.
21366 (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
21367 scan_libraries, resolve_lib_name): Call fatal_error instead of
21368 fatal and fatal_perror.
21369 * collect2.h (error, fatal, fatal_perror): Don't declare.
21370 * tlink.c: Include diagnostic-core.h.
21371 (recompile_files): Call fatal_error instead of fatal_perror.
21372 * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
21373 pretty-print.o and input.o.
21374 (collect2.o, tlink.o): Update dependencies.
21376 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21378 * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
21380 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21383 * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
21384 COMDAT group syntax, both SPARC and x86 variants.
21385 (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
21386 * configure: Regenerate.
21387 * config/sol2.h (TARGET_SOLARIS): Define.
21388 (PUSHSECTION_FORMAT): Remove.
21389 (SECTION_NAME_FORMAT): Define.
21390 * config/sol2.c: Include hashtab.h.
21391 (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
21392 expansion, using SECTION_NAME_FORMAT.
21393 (solaris_comdat_htab): New variable.
21394 (struct comdat_entry): Define.
21395 (comdat_hash): New function.
21396 (comdat_eq): New function.
21397 (solaris_elf_asm_comdat_section): New function.
21398 (solaris_define_comdat_signature): New function.
21399 (solaris_code_end): New function.
21400 * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
21401 (solaris_code_end): Declare.
21402 * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
21403 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
21405 (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
21406 Remove ATTRIBUTE_UNUSED.
21407 [!USE_GAS]: Call solaris_elf_asm_comdat_section for
21408 SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
21409 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
21410 * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
21411 * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
21412 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
21413 (PUSHSECTION_FORMAT): Remove.
21414 (SECTION_NAME_FORMAT): Redefine.
21416 2011-05-19 Kai Tietz <ktietz@redhat.com>
21418 * tree-cfg.c (verify_gimple_assign_binary): Barf on
21419 TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
21420 (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
21422 2011-05-19 Anatoly Sokolov <aesok@post.ru>
21423 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21425 * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
21427 2011-05-19 Richard Guenther <rguenther@suse.de>
21429 PR middle-end/48985
21430 * tree-object-size.c (addr_object_size): If the pointed-to
21431 variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
21433 2011-05-19 Richard Guenther <rguenther@suse.de>
21435 * gimple.c (gimple_types_compatible_p_1): Compare names of
21436 the types themselves.
21437 (iterative_hash_gimple_type): And hash them that way.
21438 (gimple_register_type_1): If we register a main variant properly
21439 initialize the leader to ourselves.
21441 2011-05-19 Tom de Vries <tom@codesourcery.com>
21444 * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
21445 get_loop_invariant_expr_id.
21446 (get_loop_invariant_expr_id): Use get_expr_id.
21447 (parm_decl_cost): New function.
21448 (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
21449 Improve bound cost estimation. Use different inv_expr_id for elim and
21452 2011-05-19 Tom de Vries <tom@codesourcery.com>
21455 * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
21456 cost_base.cost == 0.
21458 2011-05-18 H.J. Lu <hongjiu.lu@intel.com>
21461 * config/i386/sse.md
21462 (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
21465 2011-05-18 Jakub Jelinek <jakub@redhat.com>
21467 PR tree-optimization/49039
21468 * tree-vrp.c (extract_range_from_binary_expr): For
21469 MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
21470 return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
21472 2011-05-18 Tom de Vries <tom@codesourcery.com>
21475 * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
21477 2011-05-18 Uros Bizjak <ubizjak@gmail.com>
21479 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
21480 (*tls_global_dynamic_64): Ditto.
21481 (*tls_local_dynamic_base_32_gnu): Ditto.
21482 (*tls_local_dynamic_base_64): Ditto.
21483 (tls_initial_exec_64_sun): Ditto.
21485 2011-05-18 Stuart Henderson <shenders@gcc.gnu.org>
21487 * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
21488 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
21490 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
21491 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
21492 * config/bfin/bfin.c (bfin_cpus): Add bf592.
21493 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
21494 __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
21495 * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
21496 * config/bfin/elf.h (LIB_SPEC): Add bf592.
21498 2011-05-18 Joseph Myers <joseph@codesourcery.com>
21500 * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
21501 arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
21502 * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
21503 target_thread_pointer, arm_structure_size_boundary, struct
21504 float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
21505 struct abi_name, arm_all_abis): Remove.
21506 (arm_option_override) Don't process most enumerated option values here.
21507 Don't process target_fpe_name here. Work with integer not string for
21508 structure size boundary; use separate diagnostics for each case.
21509 * config/arm/arm.h (enum float_abi_type, enum
21510 arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
21512 (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
21513 arm_structure_size_boundary): Remove.
21514 * config/arm/arm.opt (mabi=): Use Enum and Init.
21515 (arm_abi_type): New Enum and EnumValue entries.
21516 (mfloat-abi=): Use Enum and Init.
21517 (float_abi_type): New Enum and EnumValue entries.
21518 (mfp=, mfpe=): Replace by separate Alias entries for each argument.
21519 (mfp16-format=): Use Enum and Init.
21520 (arm_fp16_format_type): New Enum and EnumValue entries.
21521 (mstructure-size-boundary=): Use UInteger and Init.
21522 (mtp=): Use Enum and Init.
21523 (arm_tp_type): New Enum and EnumValue entries.
21525 2011-05-18 Richard Guenther <rguenther@suse.de>
21527 PR tree-optimization/49018
21528 * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
21529 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
21530 gimple_has_side_effects.
21532 2011-05-18 Richard Guenther <rguenther@suse.de>
21534 * gimple.c (gimple_register_type_1): New function, split out from ...
21535 (gimple_register_type): ... here. Avoid infinite recursion.
21537 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
21539 PR tree-optimization/41881
21540 * tree-vectorizer.h (struct _loop_vec_info): Add new field
21541 reduction_chains along with a macro for its access.
21542 * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
21543 (destroy_loop_vec_info): Free reduction chains.
21544 (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
21545 (vect_is_slp_reduction): New function.
21546 (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
21547 (vect_create_epilog_for_reduction): Support SLP reduction chains.
21548 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
21549 definition types for reduction chains.
21550 (vect_supported_load_permutation_p): Don't allow permutations for
21552 (vect_analyze_slp_instance): Support reduction chains.
21553 (vect_analyze_slp): Try to build SLP instance from reduction chains.
21554 (vect_get_constant_vectors): Handle reduction chains.
21555 (vect_schedule_slp_instance): Mark the first statement of the
21556 reduction chain as reduction.
21558 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
21560 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
21561 names for group elements access.
21562 * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
21563 reduction chains as well. Remove data reference and interleaving
21564 related words from the fields names.
21565 * tree-vect-loop.c (vect_transform_loop): Use new names for group
21567 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
21568 vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
21569 vect_update_interleaving_chain, vect_same_range_drs,
21570 vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
21571 vect_verify_datarefs_alignment, vector_alignment_reachable_p,
21572 vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
21573 vect_analyze_group_access, vect_analyze_data_ref_access,
21574 vect_create_data_ref_ptr, vect_transform_strided_load,
21575 vect_record_strided_load_vectors): Likewise.
21576 * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
21577 vect_model_load_cost, vectorizable_store, vectorizable_load,
21578 vect_remove_stores, new_stmt_vec_info): Likewise.
21579 * tree-vect-slp.c (vect_build_slp_tree,
21580 vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
21582 2011-05-18 Richard Guenther <rguenther@suse.de>
21584 PR middle-end/48989
21585 * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
21586 operand verification.
21587 (verify_gimple_assign_binary): Likewise.
21588 * tree-ssa.c (useless_type_conversion_p): Preserve conversions
21589 to non-1-precision BOOLEAN_TYPEs.
21591 2011-05-18 Tom de Vries <tom@codesourcery.com>
21594 * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
21596 2011-05-18 Jakub Jelinek <jakub@redhat.com>
21598 PR tree-optimization/49000
21599 * tree-ssa.c (execute_update_addresses_taken): Call
21600 maybe_rewrite_mem_ref_base on debug stmt value. If it couldn't
21601 be rewritten and decl has been marked for renaming, reset
21604 2011-05-17 Joseph Myers <joseph@codesourcery.com>
21606 * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
21607 enum_opts_set when testing if attributes have set -mfpmath=.
21609 2011-05-17 Richard Sandiford <rdsandiford@googlemail.com>
21611 * config/mips/mips.c (mips_handle_option): Remove unused variable.
21613 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
21615 * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
21617 * tree-inline.c (maybe_inline_call_in_expr): Initialize
21618 id.transform_lang_insert_block with NULL.
21620 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
21622 * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
21623 (output_fp_compare): Change args 3 and 4 to bool.
21624 (ix86_expand_call): Change arg 6 to bool.
21625 (ix86_attr_length_immediate_default): Change arg 2 to bool.
21626 (ix86_attr_length_vex_default): Change arg 3 to bool.
21627 * config/i386/i386.md: Update all uses.
21628 * config/i386/i386.c: Ditto.
21629 (ix86_flags_dependent): Change return type to bool.
21631 2011-05-17 Richard Guenther <rguenther@suse.de>
21633 * gimple.c (type_hash_pair_compare): Fix comparison.
21635 2011-05-17 Richard Guenther <rguenther@suse.de>
21637 * gimple.c (iterative_hash_gimple_type): Simplify singleton
21638 case some more, fix final hash value of the non-singleton case.
21640 2011-05-17 Richard Guenther <rguenther@suse.de>
21644 2011-05-16 Richard Guenther <rguenther@suse.de>
21646 * gimple.c (gimple_types_compatible_p_1): Use names of the
21647 type itself, not its main variant.
21648 (iterative_hash_gimple_type): Likewise.
21650 2011-05-17 Richard Guenther <rguenther@suse.de>
21652 * gimple.c (gimple_register_canonical_type): Use the main-variant
21653 leader for computing the canonical type.
21655 2011-05-17 Nick Clifton <nickc@redhat.com>
21657 * config/rx/rx.c (rx_memory_move_cost): Include cost of register
21660 * config/rx/rx.md: Add peephole to remove redundant extensions
21662 (bitset_in_memory): Use rx_restricted_mem_operand.
21663 (bitinvert_in_memory): Likewise.
21664 (bitclr_in_memory): Likewise.
21666 2011-05-17 Kazuhio Inaoka <kazuhiro.inaoka.ud@renesas.com>
21667 Nick Clifton <nickc@redhat.com>
21669 * config/rx/rx.md: Add peepholes to match a register move followed
21670 by a comparison of the moved register. Replace these with an
21671 addition of zero that does both actions in one instruction.
21673 2011-05-17 Jakub Jelinek <jakub@redhat.com>
21676 * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
21677 predicate to allow CONST_INT.
21678 (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
21680 2011-05-16 Joseph Myers <joseph@codesourcery.com>
21682 * opts-common.c (opt_enum_arg_to_value): New.
21683 * opts.h (opt_enum_arg_to_value): Declare.
21684 * config/i386/i386.opt (fpmath): Remove.
21685 (mfpmath=): Use Enum, Init and Save.
21686 (fpmath_unit): New Enum and EnumValue entries.
21687 * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
21688 name for function fpmath state.
21689 * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
21690 * config/i386/i386.c: Include diagnostic.h.
21691 (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
21692 (ix86_target_string): Take enum fpmath_unit value instead of string.
21693 (ix86_debug_options): Update call to ix86_target_string.
21694 (ix86_option_override_internal): Don't process fpmath strings here.
21695 (x86_function_specific_save, ix86_function_specific_restore):
21696 Don't handle fpmath state specially.
21697 (ix86_function_specific_print): Pass fpmath state to
21698 ix86_target_string instead of printing in this function.
21699 (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
21700 Handle enum attributes.
21701 (IX86_ATTR_ENUM, ix86_opt_enum): New.
21702 (ix86_valid_target_attribute_tree): Update option_strings
21703 handling. Handle fpmath as enum option.
21704 (ix86_can_inline_p): Update field names for function fpmath state.
21705 (ix86_expand_builtin): Update call to ix86_target_string.
21706 * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
21707 (ix86_fpmath): Remove.
21708 * config/i386/t-i386 (i386.o): Update dependencies.
21710 2011-05-16 Joseph Myers <joseph@codesourcery.com>
21712 PR preprocessor/48677
21713 * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
21714 from decoded_options[0], not from itself.
21716 2011-05-16 Uros Bizjak <ubizjak@gmail.com>
21718 * config/i386/constraints.md (z): New constraint.
21719 * config/i386/i386.c (c): New mode attribute.
21720 (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
21721 *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
21722 constraint for operand 0.
21723 (*call_vzeroupper): Ditto.
21724 (*call_rex64_ms_sysv): Ditto. Use "rzm" constraint for operand 0.
21725 (*call_rex64_ms_sysv_vzeroupper): Ditto.
21726 (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
21727 Use "lzm" constraint for operand 0.
21728 (*call_pop_vzeroupper): Ditto.
21729 (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
21730 *sibcall_1_rex64 patterns using "P" mode iterator. Use "Uz"
21731 constraint for operand 0.
21732 (*sibcall_vzeroupper): Ditto.
21733 (*sibcall_rex64_ms_sysv): Ditto.
21734 (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
21735 (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
21736 *sibcall_pop_1. Use "Uz" constraint for operand 0.
21737 (*sibcall_pop_vzeroupper): Ditto.
21738 (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
21739 *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
21740 mode iterator. Use "<c>zm" constraint for operand 1.
21741 (*call_value_vzeroupper): Ditto.
21742 (*call_value_rex64_ms_sysv): Ditto. Use "rzm" constraint
21744 (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
21745 (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
21746 *call_value_pop_1. Use "lzm" constraint for operand 1.
21747 (*call_value_pop_vzeroupper): Ditto.
21748 (*sibcall_value): Merge insn pattern from *sibcall_value_0,
21749 *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
21750 mode iterator. Use "Uz" constraint for operand 1.
21751 (*sibcall_value_vzeroupper): Ditto.
21752 (*sibcall_value_rex64_ms_sysv): Ditto.
21753 (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
21754 (*sibcall_value_pop): Rename from *sibcall_pop_1. Use "Uz"
21755 constraint for operand 1.
21756 (*sibcall_value_pop_vzeroupper): Ditto.
21757 (*tls_global_dynamic_64): Use constant_call_address_operand predicate
21758 and "z" constraint for operand 2.
21759 (*tls_global_dynamic_32_gnu): Ditto.
21760 (*tls_local_dynamic_base_32_gnu): Ditto.
21761 (*tls_local_dynamic_base_64): Ditto.
21762 (*tls_local_dynamic_32_once): Ditto.
21763 * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
21764 Update all callers.
21765 * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
21767 2011-05-16 Richard Guenther <rguenther@suse.de>
21769 * gimple.c (gimple_types_compatible_p_1): Use names of the
21770 type itself, not its main variant.
21771 (iterative_hash_gimple_type): Likewise.
21773 2011-05-16 Richard Guenther <rguenther@suse.de>
21775 * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
21776 always visit pointer target and function result and argument types.
21778 2011-05-16 Jason Merrill <jason@redhat.com>
21781 * tree-inline.c (copy_statement_list): Put back recursion.
21783 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
21787 * config/avr/predicates.md (const_8_16_24_operand): New predicate.
21788 * config/avr/avr.md ("*ior<mode>qi.byte0",
21789 "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
21791 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
21794 * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
21795 register is needed for a function argument.
21797 2011-05-16 Richard Guenther <rguenther@suse.de>
21799 * gimple.c (struct type_hash_pair): New type.
21800 (type_hash_pair_compare): New function.
21801 (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
21803 2011-05-16 Revital Eres <revital.eres@linaro.org>
21805 * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
21807 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
21809 * config/i386/i386.md (floating point move splitters): Fix
21810 usage of standard_80387_constant_p.
21811 * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
21813 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
21815 * config/i386/i386.md (*movdf_internal): Simplify insn condition.
21817 2011-05-14 Eric Botcazou <ebotcazou@adacore.com>
21819 * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
21820 (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
21821 (tree_ssa_lim_finalize): Likewise.
21823 2011-05-14 Uros Bizjak <ubizjak@gmail.com>
21825 * config/i386/constraint.md (Yd, Yx): New register constraints.
21826 * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger. Use
21827 Yd conditional register constraint.
21828 (*movtf_internal): Use standard_sse_constant_opcode.
21829 (*movxf_internal): Merge with *movxf_internal_nointeger. Use
21830 Yx conditional register constraint.
21831 (*movdf_internal): Merge with *movdf_internal_nointeger. Use
21832 Yd conditional register constraint. Use standard_sse_constant_p to
21833 check for valid SSE constants and call standard_sse_constant_opcode to
21835 (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
21836 constants and call standard_sse_constant_opcode to output SSE insn.
21837 * config/i386/i386.c (ix86_option_ovverride_internal): Set
21838 TARGET_INTEGER_DFMODE_MOVES for 64bit targets. Clear it when
21839 optimize_size is set.
21840 (standard_sse_constant_opcode): Output conditional AVX insn templates.
21842 2011-05-14 Tobias Burnus <burnus@net-b.de>
21844 * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
21846 2011-05-13 Martin Jambor <mjambor@suse.cz>
21848 * ipa-prop.c (ipa_cst_from_jfunc): New function.
21849 * ipa-prop.h (ipa_cst_from_jfunc): Declare.
21850 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
21851 (evaluate_conditions_for_ipcp_clone): Removed.
21852 (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
21853 * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
21854 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
21856 2011-05-13 Eric Botcazou <ebotcazou@adacore.com>
21858 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
21859 * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
21860 lieu of MAY_HAVE_DEBUG_STMTS.
21861 * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
21862 debug statements if !MAY_HAVE_DEBUG_STMTS.
21864 2011-05-13 Martin Thuresson <martint@google.com>
21866 PR gcov-profile/47793
21867 * libgcov.c (gcov_exit): Support relative profile paths.
21868 * doc/invoke.texi (-fprofile-dir): Update for above change.
21870 2011-05-13 Richard Guenther <rguenther@suse.de>
21872 * gimple.c (gimple_canonical_types_compatible_p): Do not use
21873 type-pair caching, do not compare hashes.
21875 2011-05-13 Nathan Froyd <froydnj@codesourcery.com>
21877 PR middle-end/48965
21878 * tree-cfg.c (edge_to_cases_cleanup): Return true.
21879 (verify_expr) [CASE_LABEL_EXPR]: Add checking.
21881 2011-05-13 Kai Tietz <ktietz@redhat.com>
21883 * gimplify.c (gimplify_expr): Make sure operand is boolified.
21884 * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
21885 compatible type for TRUTH_NOT_EXPR.
21887 2011-05-13 H.J. Lu <hongjiu.lu@intel.com>
21889 * config/i386/i386.c (ix86_save_reg): Change return type to bool.
21890 (ix86_hard_regno_mode_ok): Change return value to bool. Use
21891 can_create_pseudo_p ().
21893 2011-05-13 Richard Guenther <rguenther@suse.de>
21896 * gimple.c (iterative_hash_gimple_type): Revert change in
21897 pointer target and function result and argument hashing.
21899 2011-05-13 Uros Bizjak <ubizjak@gmail.com>
21901 * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
21902 (*movxf_internal_nointeger): Ditto.
21903 (*movdf_internal_rex64): Ditto.
21904 (*movdf_internal): Ditto.
21905 (*movdf_internal_nointeger): Ditto.
21906 (*movsf_internal): Ditto.
21907 (sincos splitters): Use can_create_pseudo ().
21909 2011-05-13 Joseph Myers <joseph@codesourcery.com>
21911 * config/i386/i386-opts.h: New.
21912 * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
21913 ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
21914 ix86_section_threshold): Remove.
21915 (ix86_handle_option): Move MAX_CODE_ALIGN define here. Handle
21916 OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
21918 (ix86_option_override_internal): Don't decode strings for options
21919 other than -march=, -mtune= and -mfpmath=. Don't allow for
21920 __attribute__ uses in remaining diagnostics for options with
21921 string arguments. Don't check for integer arguments being negative.
21922 * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
21923 enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
21924 (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
21925 ix86_branch_cost, ix86_section_threshold): Remove.
21926 * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
21928 (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
21930 (masm=): Use Enum and Init.
21931 (asm_dialect): New Enum and EnumValue entries.
21932 (mbranch-cost=): Use UInteger.
21933 (mlarge-data-threshold=): Use UInteger and Init.
21934 (mcmodel=): Use Enum and Init.
21935 (cmodel): New Enum and EnumValue entries.
21936 (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
21937 (mpreferred-stack-boundary=, mincoming-stack-boundary=,
21938 mregparm=): Use UInteger.
21939 (mstringop-strategy=): Use Enum and Init.
21940 (stringop_alg): New Enum and EnumValue entries.
21941 (mtls-dialect=): Use Enum and Init.
21942 (tls_dialect): New Enum and EnumValue entries.
21943 (mabi=): Use Enum and Init.
21944 (calling_abi): New Enum and EnumValue entries.
21945 (mveclibabi=): Use Enum and Init.
21946 (ix86_veclibabi): New Enum and EnumValue entries.
21948 2011-05-13 Nick Clifton <nickc@redhat.com>
21950 * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
21951 * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
21953 2011-05-13 Kai Tietz <ktietz@redhat.com>
21955 PR middle-end/48984
21956 * gimplify.c (gimplify_expr): Check for boolean_type_node instead
21957 for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
21958 (gimple_boolify): Check for cast for boolean_type_node instead for
21961 2011-05-13 Richard Guenther <rguenther@suse.de>
21963 PR tree-optimization/48172
21964 * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
21965 multiplying by number of iterations for equal step.
21966 (vect_create_cond_for_alias_checks): Likewise.
21968 2011-05-13 Andreas Schwab <schwab@redhat.com>
21970 * configure.ac: Use AS_HELP_STRING throughout.
21971 * configure: Regenerate.
21973 2011-05-12 H.J. Lu <hongjiu.lu@intel.com>
21975 * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
21976 (ix86_emit_restore_regs_using_mov): Likewise.
21977 (ix86_emit_restore_sse_regs_using_mov): Likewise.
21979 2011-05-12 Anatoly Sokolov <aesok@post.ru>
21981 * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
21982 SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
21983 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
21984 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
21985 RTX_OK_FOR_OLO10_P): ...here.
21986 (sparc_mode_dependent_address_p): Use symbolic_operand instead of
21989 2011-05-12 Kai Tietz <ktietz@redhat.com>
21991 * gimplify.c (gimple_boolify): Re-boolify expression
21992 arguments even if expression type is of kind BOOLEAN_TYPE.
21993 (gimplify_boolean_expr): Removed.
21994 (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
21995 and XOR. Additional take care that we keep expression's type.
21996 * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
21997 of TRUTH_AND|OR|XOR_EXPR.
21999 2011-05-12 Jakub Jelinek <jakub@redhat.com>
22001 PR tree-optimization/48975
22002 * tree-if-conv.c (combine_blocks): Call free_bb_predicate
22003 on all bbs here and free and clear ifc_bbs at the end.
22005 2011-05-12 Richard Guenther <rguenther@suse.de>
22007 * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
22008 NULLPTR_TYPE similar to VOID_TYPE. Defer type-leader lookup
22009 until after simple checks.
22010 (gimple_types_compatible_p): Likewise.
22011 (iterative_hash_gimple_type): Always hash pointer targets
22012 and function return and argument types.
22013 (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
22014 hash TYPE_ALIGN. Do not hash TYPE_MIN/MAX_VALUE.
22015 (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
22016 handle NULLPTR_TYPE similar to VOID_TYPE. Handle non-aggregates
22017 completely in the simple compare section.
22018 (gimple_register_canonical_type): Query the cache again after
22021 2011-05-12 Richard Guenther <rguenther@suse.de>
22023 PR tree-optimization/48172
22024 * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
22025 the number of iterations from the segment size calculation.
22026 (vect_create_cond_for_alias_checks): Adjust.
22028 2011-05-12 Jakub Jelinek <jakub@redhat.com>
22031 * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
22032 if validate_subreg fails.
22034 2011-05-12 Hariharan Sandanagobalane <hariharan@picochip.com>
22036 * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
22037 accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
22040 2011-05-12 DJ Delorie <dj@redhat.com>
22042 * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
22043 (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
22044 created builtin into rx_builtins array.
22045 (rx_builtin_decl): New function.
22046 (TARGET_BUITLIN_DECL): Define. Include gt-rx.h.
22048 2011-05-12 DJ Delorie <dj@redhat.com>
22049 Nick Clifton <nickc@redhat.com>
22051 * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
22052 * config/rx/rx.c (CC_FLAG_FP): Fix comment.
22053 (rx_is_legitimate_address): Add pre-decrement and post-increment
22054 addressing in HImode and QImode. Fix test for out of range
22055 REG+INT addressing.
22056 (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
22057 (rx_align_for_label): Test label before extracting its usage count.
22058 (rx_adjust_insn_lengths): Fix selection of insn codes.
22059 (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
22061 2011-05-11 Jason Merrill <jason@redhat.com>
22063 * tree.c (type_hash_canon): Use struct tree_type_non_common.
22065 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
22067 * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
22068 reindent the subsequent block.
22070 2011-05-11 Satoru Takabayashi <satorux@google.com>
22071 Paul Pluzhnikov <ppluzhnikov@google.com>
22073 * doc/install.texi (Configuration): Document --with-linker-hash-style.
22074 * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
22075 * config.in: Add LINKER_HASH_STYLE.
22076 * configure.ac: Add --with-linker-hash-style.
22077 * configure: Regenerate.
22079 2011-05-11 Richard Guenther <rguenther@suse.de>
22081 PR middle-end/48964
22082 * gimple.c (iterative_hash_canonical_type): Fix typo.
22084 2011-05-11 Uros Bizjak <ubizjak@gmail.com>
22086 * config/i386/i386.c (legitimize_tls_address)
22087 <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
22088 expanders directly for TARGET_GNU2_TLS. Determine pic and
22089 __tls_get_addr symbol reference here. Update call to
22090 gen_tls_global_dynamic_{32,64} for added arguments.
22091 <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
22092 expanders directly for TARGET_GNU2_TLS. Determine
22093 __tls_get_addr symbol reference here. Update call to
22094 gen_tls_local_dynamic_base_{32,64} for added arguments. Attach
22095 unique UNSPEC REG_EQUIV to libcall block.
22096 (ix86_tls_get_addr): Declare static.
22097 * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
22098 * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
22099 Do not determine pic and __tls_get_addr symbol reference here. Do not
22100 call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
22101 (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
22102 (tls_global_dynamic_64): Add operand 2. Do not determine
22103 __tls_get_addr symbol reference here. Do not call
22104 gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
22105 (tls_local_dynamic_base64): Ditto for operand 1.
22107 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
22109 * function.c (expand_function_start): Initialize stack_check_probe_note
22110 only if the generic stack checking mechanism is used.
22112 2011-05-11 Richard Guenther <rguenther@suse.de>
22114 PR tree-optimization/15256
22115 * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
22116 (A & B) | C, combine (A op CST1) op CST2.
22117 (tree_ssa_forward_propagate_single_use_vars): Only bother to
22118 visit assigns that have uses.
22120 2011-05-11 Nathan Froyd <froydnj@codesourcery.com>
22122 * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
22123 * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
22124 (unpack_ts_type_common_value_fields): ...this. Update comment.
22125 (unpack_value_fields): Adjust for renaming.
22126 (lto_input_ts_type_tree_pointers): Split into...
22127 (lto_input_ts_type_common_tree_pointer): ...this and...
22128 (lto_input_ts_type_non_common_tree_pointers): ...this.
22129 (lto_input_tree_pointers): Adjust for above split.
22130 * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
22131 (pack_ts_type_common_value_fields): ...this. Update comment.
22132 (lto_output_ts_type_tree_pointers): Split into...
22133 (lto_output_ts_type_common_tree_pointers): ...this and...
22134 (lto_output_ts_type_non_common_tree_pointers): ...this.
22135 (lto_output_tree_pointers): Adjust for above split.
22136 * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
22137 TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
22138 * stor-layout.c (vector_type_mode): Adjust location of mode field.
22139 * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
22141 (struct tree_type): Split into...
22142 (struct tree_type_common: ...this and...
22143 (struct tree_type_with_lang_specific): ...this and...
22144 (struct tree_type_non_common): ...this. Adjust accessor macros
22146 (TYPE_VALUES_RAW): Define.
22147 (union tree_node): Update for above changes.
22148 * tree.c (tree_node_structure_for_code) [tcc_type]: Return
22149 TS_TYPE_NON_COMMON.
22150 (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
22151 Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
22152 (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
22153 * treestructu.def (TS_TYPE): Remove.
22154 (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
22157 2011-05-11 Jakub Jelinek <jakub@redhat.com>
22160 * tree-ssa.c (reset_debug_uses): New function.
22161 * tree-flow.h (reset_debug_uses): New prototype.
22162 * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
22163 * tree-loop-distribution.c (generate_loops_for_partition): Call
22164 reset_debug_uses on the stmts that will be removed. Keep around
22165 all debug stmts, don't count them as bits in partition bitmap.
22166 (generate_builtin): Don't count debug stmts or labels as bits in
22169 2011-05-11 Richard Guenther <rguenther@suse.de>
22171 * gimple.c (gimple_type_hash_1): Merge with ...
22172 (gimple_type_hash): ... this.
22173 (gtc_visit): Remove mode parameter and simplify accordingly.
22174 (gimple_types_compatible_p_1): Likewise.
22175 (gimple_types_compatible_p): Likewise.
22176 (iterative_hash_gimple_type): Likewise.
22178 (gimple_type_eq): Adjust.
22180 2011-05-11 Revital Eres <revital.eres@linaro.org>
22182 * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
22183 enters the branch create an anti edge in the opposite direction
22184 to prevent the creation of reg-moves.
22185 * modulo-sched.c: Adjust comment to reflect the fact we are
22186 scheduling closing branch.
22187 (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
22188 (stage_count): New field in struct partial_schedule.
22189 (calculate_stage_count): New function.
22190 (normalize_sched_times): Rename to reset_sched_times and handle
22191 incrementing the sched time of the nodes by a constant value
22192 passed as parameter.
22193 (duplicate_insns_of_cycles): Skip closing branch.
22194 (sms_schedule_by_order): Schedule closing branch.
22195 (ps_insn_find_column): Handle closing branch.
22196 (sms_schedule): Call reset_sched_times and adjust the code to
22197 support scheduling of the closing branch.
22198 (ps_insert_empty_row): Update calls to normalize_sched_times
22199 and rotate_partial_schedule functions.
22201 2011-05-11 Richard Guenther <rguenther@suse.de>
22203 PR middle-end/48953
22204 * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
22206 2011-05-11 Joseph Myers <joseph@codesourcery.com>
22208 * opts.c (finish_options): Move warning settings from process_options.
22209 * toplev.c (process_options): Move warning settings to finish_options.
22211 2011-05-11 Richard Guenther <rguenther@suse.de>
22213 PR tree-optimization/18041
22214 * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
22215 (simplify_bitwise_binary): ... this. Handle operand conversions
22216 by applying them to the result instead.
22217 (tree_ssa_forward_propagate_single_use_vars): Adjust. CSE tree code.
22219 2011-05-11 Richard Guenther <rguenther@suse.de>
22221 * gimple.c (gimple_canonical_types_compatible_p): Split out
22222 from gimple_types_compatible_p and friends. Do not recurse
22223 to pointed-to types.
22224 (gimple_canonical_type_eq): Use it.
22225 (iterative_hash_canonical_type): Split out from
22226 iterative_hash_gimple_type and friends. Do not recurse
22227 to pointed-to types.
22228 (gimple_canonical_type_hash): Use it, allocate the hash here.
22230 2011-05-11 Revital Eres <revital.eres@linaro.org>
22232 * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
22233 recognizing doloop.
22235 2011-05-11 Revital Eres <revital.eres@linaro.org>
22237 * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
22238 instead of PREV_INSN.
22240 2011-05-11 Revital Eres <revital.eres@linaro.org>
22242 * modulo-sched.c (sms_schedule): Support new form of doloop pattern
22243 * loop-doloop.c (doloop_condition_get): Likewise.
22244 * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
22246 * config/arm/arm.md (*addsi3_compare0): Remove "*".
22248 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
22250 * tree.def (CASE_LABEL_EXPR): Add an operand.
22251 * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
22253 2011-05-10 Joseph Myers <joseph@codesourcery.com>
22255 * c-decl.c (c_override_global_bindings_to_false): Remove.
22256 (global_bindings_p): Don't check
22257 c_override_global_bindings_to_false.
22258 * c-tree.h (c_override_global_bindings_to_false): Remove.
22259 * c-typeck.c (composite_type): Don't set
22260 c_override_global_bindings_to_false.
22262 2011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
22264 PR target/48857, 48495
22265 * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
22267 (VSX_MOVE_MODE): Ditto.
22268 (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
22269 VSX vector types. Add V2DImode.
22270 (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
22271 ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
22272 (MODES_TIEABLE_P): Ditto.
22274 * config/rs6000/rs6000.c (rs6000_emit_move): Use
22275 ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
22277 (init_cumulative_args): Ditto.
22278 (rs6000_function_arg_boundary): Ditto.
22279 (rs6000_function_arg_advance_1): Ditto.
22280 (rs6000_function_arg): Ditto.
22281 (rs6000_function_ok_for_sibcall): Ditto.
22282 (emit_frame_save): Ditto.
22283 (rs6000_function_value): Ditto.
22284 (rs6000_libcall_value): Ditto.
22286 2011-05-10 Joseph Myers <joseph@codesourcery.com>
22288 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
22289 i386/darwin-lib.h to $libgcc_tm_file.
22290 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
22292 2011-05-10 Joseph Myers <joseph@codesourcery.com>
22294 * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
22296 2011-05-10 Joseph Myers <joseph@codesourcery.com>
22298 * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
22299 * config/rs6000/rs6000-tables.opt: New file (generated).
22300 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
22301 rs6000/rs6000-tables.opt to extra_options.
22302 * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
22303 * config/rs6000/rs6000.c (rs6000_select): Remove.
22304 (processor_target_table): Move contents to rs6000-cpus.def.
22305 (darwin_rs6000_override_options): Check
22306 global_options_set.x_rs6000_cpu_index instead of
22307 rs6000_select[1].string.
22308 (rs6000_option_override_internal): Likewise.
22309 (rs6000_handle_option): Don't assert that global structures are in
22310 use. Don't handle OPT_mcpu_ and OPT_mtune_ here.
22311 (rs6000_default_cpu): New variable.
22312 (rs6000_file_start): Set it instead of local default_cpu. Check
22313 rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
22314 global_options_set.x_rs6000_tune_index instead of rs6000_select.
22315 (rs6000_darwin_file_start): Check rs6000_default_cpu and
22316 global_options_set.x_rs6000_cpu_index instead of rs6000_select.
22317 * config/rs6000/rs6000.h (struct rs6000_cpu_select,
22318 rs6000_select): Remove.
22319 * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
22321 (mcpu=, mtune=): Use Var, Init, Enum and Save.
22322 * config/rs6000/t-rs6000
22323 ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
22324 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
22325 global_options_set.x_rs6000_cpu_index instead of
22326 rs6000_select[1].string.
22327 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
22328 global_options_set.x_rs6000_cpu_index instead of
22329 rs6000_select[1].string.
22331 2011-05-10 Joseph Myers <joseph@codesourcery.com>
22333 * config.gcc (libgcc_tm_file): Define instead of including files
22334 from ../../libgcc/config/ in tm_file.
22335 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
22336 * configure: Regenerate.
22337 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
22338 libgcc_tm.h, cs-libgcc_tm.h): New.
22339 (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
22340 (clean): Remove libgcc_tm.h.
22341 * config/arm/symbian.h (RENAME_LIBRARY): Remove.
22342 * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
22343 * system.h (DECLARE_LIBRARY_RENAMES): Poison.
22345 2011-05-10 Georg-Johann Lay <avr@gjlay.de>
22348 * config/avr/avr.c (avr_ret_register): Return unsigned int
22350 (avr_function_value): Mark fn_decl_or_type as unused, don't pass
22351 it to avr_libcall_value.
22352 avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
22354 (avr_expand_binop_builtin): Ditto.
22355 (avr_expand_unop_builtin): Ditto.
22357 2011-05-10 DJ Delorie <dj@redhat.com>
22359 * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
22360 (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
22361 * config/rx/rx.c (rx_align_for_label): Add label and
22362 uses_threshold parameters. Do not align when the label is not
22364 * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
22366 2011-05-10 Richard Guenther <rguenther@suse.de>
22368 * tree-ssa-forwprop.c (combine_conversions): Pattern-match
22369 a series of conversions and apply foldings similar to what
22371 (tree_ssa_forward_propagate_single_use_vars): Call it.
22373 2011-05-10 Jakub Jelinek <jakub@redhat.com>
22375 PR tree-optimization/48611
22376 PR tree-optimization/48794
22377 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
22378 referenced from RESX or EH_DISPATCH arguments.
22381 * dfp.c (decimal_to_decnumber): Handle conversion from
22382 dconst{1,2,m1,half}.
22384 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
22386 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
22387 for !flag_prefer_avx128.
22388 (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
22390 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
22392 * fold-const.c (fold_range_test): Pass LOC to build_range_check.
22393 (fold_ternary_loc): Use expr_location_or.
22395 2011-05-09 H.J. Lu <hongjiu.lu@intel.com>
22398 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
22399 POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
22400 Pmode and mem_mode is not VOIDmode.
22402 2011-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
22404 * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
22405 TYPE_QUAL_RESTRICT): Convert to enum.
22407 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
22409 * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
22410 (const_pow2_1_to_8_operand): Ditto.
22411 (const_pow2_1_to_128_operand): Ditto.
22412 (const_pow2_1_to_32768_operand): Ditto.
22413 * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
22414 const_pow2_1_to_8_operand for operand 3 predicate. Use exact_log2
22415 in insn constraint to check integer value of operand 3.
22416 * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
22418 (PINSR_MODE): New mode iterator.
22419 (sse2p4_1): New mode attribute.
22420 (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
22421 sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
22422 iterator. Use const_int_operand instead of
22423 const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate. Use
22424 exact_log2 in insn constraint to check integer value of operand 3.
22426 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
22428 * config/i386/sse.md (blendbits): Remove mode attribute.
22429 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
22430 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
22431 Check integer value of operand 3 in insn constraint.
22433 2011-05-09 Richard Guenther <rguenther@suse.de>
22435 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
22437 (lto_symtab_merge): Likewise. Do not register types here.
22438 (lto_symtab_merge_decls_2): Likewise.
22439 (lto_symtab_merge_decls_1): Likewise.
22440 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
22441 * gimple.c (enum gtc_mode): Declare.
22442 (gimple_types_compatible_p): Make static.
22444 2011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22446 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
22447 temporary register to match Pmode.
22449 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
22451 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
22452 and *vec_concatv4si_1_avx.
22454 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
22456 PR rtl-optimization/48927
22457 * ira-conflicts.c (commutative_constraint_p): Use
22458 recog_data.alternative_enabled_p to disable alternatives where
22459 "enabled" attribute is false.
22460 (get_dup_num): Ditto.
22461 * ira-lives.c (single_reg_class): Ditto.
22462 (ira_implicitly_set_insn_hard_regs): Ditto.
22464 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
22466 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
22467 (dataflow_set_preserve_mem_locs): Likewise.
22469 2011-05-09 Philipp Thomas <pth@suse.de>
22471 * config/mep/mep.c (mep_validate_vliw): Syntax description
22472 should not be translated.
22474 2011-05-09 Joseph Myers <joseph@codesourcery.com>
22476 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
22477 * config/mips/mips-tables.opt: New file (generated).
22478 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
22479 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
22480 MIPS_ARCH_OPTION_NATIVE): Define.
22481 * config/mips/mips.c (mips_cpu_info_table): Move contents to
22483 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
22484 mips_parse_cpu): Remove.
22485 (mips_cpu_info_from_opt, mips_default_arch): New.
22486 (mips_handle_option): Don't assert that global structures are in
22487 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
22488 (mips_option_override): Use new variables and functions to set
22489 state of these options. Use strcmp to check for individual CPU names.
22490 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
22492 * config/mips/mips.opt (march=): Use ToLower and Enum.
22493 (mips): Use ToLower, Enum and Var.
22494 (mtune=): Use ToLower and Enum.
22495 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
22497 2011-05-08 Jan Hubicka <jh@suse.cz>
22499 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
22500 Arrange type pairs to be UID ordered.
22501 (gimple_lookup_type_leader): Make inline.
22503 2011-05-09 Nick Clifton <nickc@redhat.com>
22506 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
22510 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
22513 2011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
22515 * combine.c (simplify_comparison): Abstract out parts into...
22516 (simplify_compare_const): ... new function.
22517 (try_combine): Generalize parallel arithmetic/compare combining
22518 to call simplify_compare_const() and CANONICALIZE_COMPARE().
22520 2011-05-08 Jan Hubicka <jh@suse.cz>
22522 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
22523 (cgraph_create_virtual_clone): Call hooks once virtual clone
22525 * cgraph.h (cgraph_clone_node): Update prototype.
22526 * ipa-cp.c (ipcp_estimate_growth): Use
22527 estimate_ipcp_clone_size_and_time.
22528 * ipa-inline-transform.c (clone_inlined_nodes): Update.
22529 * lto-cgraph.c (input_node): Update.
22530 * ipa-inline.c (recursive_inlining): Update.
22531 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
22532 (evaluate_conditions_for_known_args): Break out from ...
22533 (evaluate_conditions_for_edge): ... here.
22534 (evaluate_conditions_for_ipcp_clone): New function.
22535 (inline_node_duplication_hook): Update clone summary based
22537 (estimate_callee_size_and_time): Rename to ...
22538 (estimate_node_size_and_time): take NODE instead of EDGE;
22539 take POSSIBLE_TRUTHS as argument.
22540 (estimate_callee_size_and_time): Update.
22541 (estimate_ipcp_clone_size_and_time): New function.
22542 (do_estimate_edge_time): Update.
22544 2011-05-08 Richard Guenther <rguenther@suse.de>
22546 PR middle-end/48908
22547 PR middle-end/48905
22548 * expmed.c (expand_shift_1): Compute adjusted constant shift
22551 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
22553 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
22555 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
22557 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
22559 2011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
22561 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
22563 2011-05-07 Jan Hubicka <jh@suse.cz>
22565 * ipa-inline-transform.c (inline_call): Account when program size
22567 * ipa-inline.c (relative_time_benefit): New function.
22568 (edge_badness): Reorganize to be power 2 based; fix thinko when
22569 computing badness for negative growth; update comments to match
22570 reality; better dumps.
22572 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
22574 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
22575 type to bool and adjust comment.
22576 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
22577 (fold_mathfn_compare): Remove calls to global_bindings_p.
22578 (fold_inf_compare): Likewise.
22579 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
22580 * c-tree.h (global_bindings_p): Adjust prototype.
22581 * c-decl.c (global_bindings_p): Return bool and simplify.
22583 2011-05-07 Zdenek Dvorak <ook@ucw.cz>
22585 PR tree-optimization/48837
22586 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
22587 when accumulator transformation is performed.
22589 2011-05-06 Jan Hubicka <jh@suse.cz>
22591 * i386.h (ix86_tune_indices): Add
22592 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
22593 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
22594 * i386.c (initial_ix86_tune_features): Add
22595 X86_SOFTARE_PREFETCHING_BENEFICIAL.
22596 (software_prefetching_beneficial_p): Remove predicate.
22597 (ix86_option_override_internal): Use new macro.
22599 2011-05-06 Jan Hubicka <jh@suse.cz>
22601 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
22603 2011-05-06 Jan Hubicka <jh@suse.cz>
22605 * cgraph.c (cgraph_add_thunk): Create real function node instead
22606 of alias node; finalize it and mark needed/reachale; arrange visibility
22607 to be right and add it into the corresponding same comdat group list.
22608 (dump_cgraph_node): Dump thunks.
22609 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
22610 cgraph_function_with_gimple_body_p,
22611 cgraph_first_function_with_gimple_body,
22612 cgraph_next_function_with_gimple_body): New functions.
22613 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
22615 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
22616 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
22617 * cgraphunit.c (cgraph_finalize_function): Only look into possible
22618 devirtualization when optimizing.
22619 (verify_cgraph_node): Verify thunks.
22620 (cgraph_analyze_function): Analyze thunks.
22621 (cgraph_mark_functions_to_output): Output thunks only in combination
22622 with function they are assigned to.
22623 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
22624 alias into normal node.
22625 (assemble_thunks): New functoin.
22626 (cgraph_expand_function): Use it.
22627 * lto-cgraph.c (lto_output_node): Stream thunks.
22628 (input_overwrite_node): Stream in thunks.
22629 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
22630 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
22631 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
22632 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
22633 (inline_analyze_function): Do not care about thunk jump functions.
22634 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
22635 * ipa-prop.c (ipa_prop_write_jump_functions): Use
22636 cgraph_function_with_gimple_body_p.
22637 * passes.c (do_per_function_toporder): Use
22638 cgraph_function_with_gimple_body_p.
22639 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
22640 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
22641 (function_called_by_processed_nodes_p): Likewise.
22643 2011-05-06 Joseph Myers <joseph@codesourcery.com>
22645 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
22646 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
22648 (mabi=): Replace with separate entries for mabi=altivec,
22649 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
22650 mabi=ieeelongdouble and mabi=ibmlongdouble.
22651 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
22652 check for -mabi=spe without SPE ABI support here.
22653 (rs6000_handle_option): Replace OPT_mabi_ handling with
22654 OPT_mabi_altivec and OPT_mabi_spe handling.
22656 2011-05-06 Cary Coutant <ccoutant@google.com>
22658 * dwarf2out.c (contains_subprogram_definition): New function.
22659 (should_move_die_to_comdat): Call it.
22661 2011-05-06 Jeff Law <law@redhat.com>
22663 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
22664 remove_ctrl_stmt_and_useless_edges.
22665 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
22666 (fixup_template_block, thread_single_edge): Likewise.
22667 (mark_threaded_blocks): Use THREAD_TARGET.
22669 2011-05-06 Alan Modra <amodra@gmail.com>
22672 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
22673 const0_rtx as the arg to the dummy __tls_get_addr libcall.
22675 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
22677 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
22678 constraint modifier to "r".
22680 2011-05-06 Joseph Myers <joseph@codesourcery.com>
22682 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
22683 fall through for OPT_mcmodel_.
22685 2011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22687 * config/s390/s390.c (s390_asm_trampoline_template): Comment
22689 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
22691 2011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
22694 * config/arm/arm.opt (marm): Document it.
22695 (mthumb): Reject negative variant.
22697 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
22700 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
22701 Fix typo in "ccvt" variable name.
22703 2011-05-06 Tristan Gingold <gingold@adacore.com>
22706 * config/vms/vms-ar.c (main): Remove cwd variable.
22708 2011-05-06 Jakub Jelinek <jakub@redhat.com>
22711 * var-tracking.c (prepare_call_arguments): Move else before #endif.
22713 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
22715 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
22716 * gimplify.c (gimplify_switch_expr): Likewise.
22717 * omp-low.c (expand_omp_sections): Likewise.
22718 * tree-eh.c (lower_try_finally_switch): Likewise.
22719 (lower_eh_dispatch): Likewise.
22720 * tree.h (build_case_label): Declare.
22721 * tree.c (build_case_label): Define.
22723 2011-05-05 Jason Merrill <jason@redhat.com>
22726 * tree-inline.c (copy_tree_r): Use copy_statement_list.
22727 (copy_statement_list): Don't recurse.
22728 * stor-layout.c (copy_self_referential_tree_r): Don't allow
22731 2011-05-05 Joseph Myers <joseph@codesourcery.com>
22733 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
22734 through from -mfpu= handling.
22735 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
22737 2011-05-05 Bernd Schmidt <bernds@codesourcery.com>
22739 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
22742 2011-05-05 Steve Ellcey <sje@cup.hp.com>
22744 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
22746 (hppa[12]*-*-hpux11*): Ditto.
22747 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
22748 * config/ia64/hpux-unix2003.h: New.
22749 * config/pa/pa-hpux1131.opt: New.
22750 * config/pa/pa-hpux1131.h: New.
22751 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
22752 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
22753 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
22755 2011-05-05 Jakub Jelinek <jakub@redhat.com>
22758 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
22759 instead of mode as 3rd argument to recursive call.
22760 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
22761 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
22763 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
22764 don't give up if mode is Pmode and mem_mode is not VOIDmode.
22765 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
22766 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
22768 2011-05-05 Julian Brown <julian@codesourcery.com>
22770 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
22771 parenthesis in D-register case.
22773 2011-05-05 Joseph Myers <joseph@codesourcery.com>
22775 * opt-functions.awk (var_type_struct): Handle Enum options.
22776 * optc-gen.awk: Don't check range of variables of character type.
22777 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
22778 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
22779 rs6000_sdata_name, rs6000_explicit_options): Remove.
22780 (rs6000_option_override_internal): Check for -malign-power here.
22781 Use global_options_set instead of rs6000_explicit_options.
22782 (rs6000_parse_fpu_option): Remove.
22783 (rs6000_handle_option): Access variables via opts and opts_set
22784 pointers. Use error_at and warning_at. Add fall-through
22785 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
22786 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
22787 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
22788 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
22789 here. Don't use rs6000_parse_fpu_option.
22790 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
22791 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
22792 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
22793 (mrecip=): Use Var.
22794 (mspe): Use Var and Save.
22795 (mtraceback=): Use Enum and Var.
22796 (rs6000_traceback_type): New Enum and EnumValue entries.
22797 (mfloat-gprs=): Use Enum, Var and Save.
22798 (rs6000_float_gprs): New Enum and EnumValue entries.
22799 (mlong-double-): use Var and Save.
22800 (msched-costly-dep=, minsert-sched-nops=): Use Var.
22801 (malign-): Use Enum and Var.
22802 (rs6000_alignment_flags): New Enum and EnumValue entries.
22804 (fpu_type_t): New Enum and EnumValue entries.
22805 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
22806 global_options_set instead of rs6000_explicit_options.
22807 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
22808 global_options_set instead of rs6000_explicit_options.
22809 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
22810 global_options_set instead of rs6000_explicit_options.
22811 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
22812 global_options_set instead of rs6000_explicit_options.
22813 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
22814 global_options_set instead of rs6000_explicit_options.
22815 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
22816 global_options_set instead of rs6000_explicit_options.
22817 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
22819 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
22820 global_options_set instead of rs6000_explicit_options.
22821 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
22822 (rs6000_cmodel): New Enum and EnumValue entries.
22823 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
22824 global_options_set instead of rs6000_explicit_options.
22825 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
22826 (mtls-size=): Use Enum and Var.
22827 (rs6000_tls_size): New Enum and EnumValue entries.
22829 2011-05-05 Michael Matz <matz@suse.de>
22831 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
22832 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
22833 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
22834 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
22835 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
22836 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
22837 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
22838 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
22839 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
22840 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
22841 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
22842 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
22843 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
22844 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
22845 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
22846 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
22848 2011-05-05 Richard Guenther <rguenther@suse.de>
22850 * expmed.c (expand_variable_shift): Rename to ...
22851 (expand_shift_1): ... this. Take an expanded shift amount.
22852 For rotates recurse directly not building trees for the shift amount.
22853 (expand_variable_shift): Wrap around expand_shift_1.
22854 (expand_shift): Adjust.
22856 2011-05-05 Jakub Jelinek <jakub@redhat.com>
22858 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
22860 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
22862 * tree.h (get_pending_sizes): Remove prototype.
22863 (put_pending_size): Likewise.
22864 (put_pending_sizes): Likewise.
22865 * stor-layout.c (pending_sizes): Delete.
22866 (get_pending_sizes): Likewise.
22867 (put_pending_size): Likewise.
22868 (put_pending_sizes): Likewise.
22869 (variable_size): Do not call put_pending_size and tidy up.
22870 * function.h (struct function): Remove dont_save_pending_sizes_p.
22871 * lto-streamer-in.c (input_function): Do not stream it.
22872 * lto-streamer-out.c (output_function): Likewise.
22873 * tree-inline.c (initialize_cfun): Do not copy it.
22874 * c-decl.c (store_parm_decls): Do not set it.
22875 * omp-low.c (create_task_copyfn): Likewise.
22876 * tree-optimize.c (tree_rest_of_compilation): Likewise.
22878 2011-05-05 Uros Bizjak <ubizjak@gmail.com>
22880 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
22882 (*movdf_internal): Ditto.
22883 (*movdf_internal_nointeger): Ditto.
22884 (*movsf_internal): Ditto.
22886 2011-05-05 Joseph Myers <joseph@codesourcery.com>
22888 * c-decl.c (finish_decl): Don't call get_pending_sizes.
22889 (grokparm): Add parameter expr. Pass it to grokdeclarator.
22890 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
22891 (c_variable_size): Remove.
22892 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
22893 call put_pending_sizes.
22894 (get_parm_info): Add parameter expr. Use it to set
22895 arg_info->pending_sizes.
22896 (store_parm_decls): Use arg_info->pending_sizes instead or calling
22898 * c-parser.c (c_parser_parms_declarator): Update call to
22899 c_parser_parms_list_declarator.
22900 (c_parser_parms_list_declarator): Take parameter expr. Update
22901 call to push_parm_decl. Update recursive call. Don't call
22902 get_pending_sizes. Update calls to get_parm_info.
22903 (c_parser_objc_method_definition): Update calls to
22904 c_parser_objc_method_decl and objc_start_method_definition.
22905 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
22906 (c_parser_objc_method_decl): Add parameter expr. Update call to
22908 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
22909 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
22910 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
22912 2011-05-05 Michael Hope <michael.hope@linaro.org>
22915 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
22916 __ARM_EABI__ hosts.
22918 2011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
22920 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
22921 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
22922 (spu_output_mi_thunk): New function.
22924 2011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22926 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
22927 targetm.asm_out.print_operand.
22928 * config/sol2.c: Include target.h.
22930 2011-05-04 Jan Hubicka <jh@suse.cz>
22932 * ipa-inline.c (reset_edge_caches): New function.
22933 (update_caller_keys): Add check_inlinablity_for; do not
22934 reset edge caches; remove now unnecesary loop.
22935 (update_callee_keys): Add comments; reset node_growth_cache of callee.
22936 (update_all_callee_keys): Likewise.
22937 (inline_small_functions): Sanity check cache; update code
22940 2011-05-04 Bernd Schmidt <bernds@codesourcery.com>
22942 PR rtl-optimization/47612
22943 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
22944 as the last insn of the sequence to be moved.
22946 2011-05-04 Tobias Burnus <burnus@net-b.de>
22949 * doc/invoke.texi (Ofast): Document that it
22950 enables Fortran's -fno-protect-parens.
22952 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
22954 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
22956 2011-05-04 Eric Botcazou <ebotcazou@adacore.com>
22958 * stor-layout.c (variable_size): Do not issue errors.
22960 2011-05-04 Richard Guenther <rguenther@suse.de>
22962 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
22963 for array-ref indices.
22964 (tree_coverage_counter_addr): Likewise.
22965 (build_fn_info_type): Use size_int for index types.
22966 (build_gcov_info): Likewise.
22968 2011-05-04 Richard Guenther <rguenther@suse.de>
22970 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
22972 * c-typeck.c (really_start_incremental_init): Use bitsize_int
22973 for constructor indices.
22974 (push_init_level): Likewise.
22976 2011-05-04 Richard Guenther <rguenther@suse.de>
22978 * explow.c (promote_mode): Move variable declarations before code.
22980 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
22982 * tree.h (build_function_type_array): Declare.
22983 (build_varargs_function_type_array): Declare.
22984 (build_function_type_vec, build_varargs_function_type_vec): Define.
22985 * tree.c (build_function_type_array_1): New function.
22986 (build_function_type_array): New function.
22987 (build_varargs_function_type_array): New function.
22989 2011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
22991 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
22992 before setting STMT_VINFO_TYPE.
22994 2011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
22996 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
22997 instead of spu_pass_by_reference.
22999 2011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23001 * calls.c (emit_library_call_value_1): Invoke
23002 promote_function_mode hook on libcall arguments.
23003 * explow.c (promote_function_mode, promote_mode): Handle TYPE
23004 argument being NULL.
23005 * targhooks.c (default_promote_function_mode): Lisewise.
23006 * config/s390/s390.c (s390_promote_function_mode): Likewise.
23007 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
23009 * doc/tm.texi: Document that TYPE argument might be NULL.
23011 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
23013 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
23015 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
23018 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
23020 2011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23022 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
23023 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
23025 * mips-tfile.c: ... here.
23026 Don't include coretypes.h, tm.h, filenames.h.
23027 (saber_stop): Remove definition and all calls.
23028 [__SABER__]: Remove.
23029 (__LINE__): Remove default.
23030 (Size_t, Ptrdiff_t): Remove definitions.
23031 Replace by size_t, ptrdiff_t.
23032 [!MIPS_DEBUGGING_INFO]: Remove.
23033 (SHASH_SIZE, THASH_SIZE): Remove defaults.
23034 (progname): Add const.
23036 Replace all uses by static.
23037 (ALIGN_SYMTABLE_OFFSET): Remove default.
23038 * mips-tdump.c: Don't include coretypes.h, tm.h.
23039 Remove !MIPS_IS_STAB guard.
23040 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
23041 $(TM_H), filenames.h dependencies.
23042 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
23044 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
23047 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
23048 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
23050 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
23053 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
23054 account and save/restore RETS.
23055 (PROFILE_BEFORE_PROLOGUE): Define.
23056 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
23057 the push insn to use predecrement.
23059 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
23062 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
23064 2011-05-04 Nick Clifton <nickc@redhat.com>
23066 * config/mn10300/mn10300.c: Include cfgloop.h.
23068 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
23069 Lcc or a FLcc insn into the instruction stream.
23070 (mn10300_block_contains_call): New function. Returns true if the
23071 given basic block contains a CALL insn.
23072 (mn10300_loop_contains_call_insn): New function. Returns true if
23073 the given loop contains a CALL insn.
23074 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
23075 to use the SETLB and Lcc or FLcc insns.
23076 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
23077 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
23078 * config/mn10300/mn10300.opt (msetlb): New option. Used to
23079 disable the SETLB optimization.
23080 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
23081 __SETLB__ or __NO_SETLB__.
23082 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
23083 (movsf_internal): Handle MDR register.
23084 (cmpsi): Make visible.
23085 (setlb): New pattern.
23086 (Lcc): New pattern.
23087 (FLcc): New pattern.
23089 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
23092 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
23093 for reg<->xmm moves.
23094 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
23095 (vec_concatv2di_rex64_sse): Ditto.
23096 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
23097 (*vec_extractv2di_1_rex64): Ditto.
23100 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
23102 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
23104 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
23106 2011-05-04 Richard Guenther <rguenther@suse.de>
23108 * tree.h (int_const_binop): Remove notrunc argument.
23109 * fold-const.c (int_const_binop): Remove notrunc argument. Always
23110 create integer constants that are properly truncated.
23111 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
23112 (const_binop): Remove zero notrunc argument to int_const_binop.
23113 (size_binop_loc): Likewise.
23114 (fold_div_compare): Likewise.
23115 (maybe_canonicalize_comparison_1): Likewise.
23116 (fold_comparison): Likewise.
23117 (fold_binary_loc): Likewise.
23118 (multiple_of_p): Likewise.
23119 * expr.c (store_constructor): Likewise.
23120 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
23121 (maybe_fold_stmt_addition): Likewise.
23122 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
23123 * stor-layout.c (layout_type): Likewise.
23124 * tree-data-ref.c (tree_fold_divides_p): Likewise.
23125 * tree-sra.c (build_ref_for_offset): Likewise.
23126 (build_user_friendly_ref_for_offset): Likewise.
23127 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
23128 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
23129 * tree-ssa-loop-niter.c (inverse): Likewise.
23130 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
23131 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
23132 * tree-switch-conversion.c (check_range): Likewise.
23133 (build_constructors): Likewise.
23134 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
23135 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
23136 (extract_range_from_assert): Likewise.
23137 (vrp_int_const_binop): Likewise.
23138 (extract_range_from_binary_expr): Likewise.
23139 (extract_range_from_unary_expr): Likewise.
23140 (check_array_ref): Likewise.
23141 (find_case_label_range): Likewise.
23142 (simplify_div_or_mod_using_ranges): Likewise.
23143 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
23144 comparing case labels for merging.
23146 2011-05-03 Mark Wielaard <mjw@redhat.com>
23148 * dwarf2out.c (debug_str_hash_forced): Removed.
23149 (gen_label_for_indirect_string): Removed.
23150 (get_debug_string_label): Removed.
23151 (AT_string_form): Generate label directly.
23152 (output_indirect_string): Test indirect_string_node for
23153 DW_FORM_strp instead of checking label and refcount.
23154 (prune_indirect_string): Removed.
23155 (prune_unused_types): Don't check debug_str_hash_forced or
23156 call prune_indirect_string.
23158 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
23161 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
23163 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
23167 * combine.c (try_combine): Skip debug insns at m_split tests.
23169 2011-04-26 Mark Wielaard <mjw@redhat.com>
23172 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
23173 when info_section_emitted.
23175 2011-05-03 Joseph Myers <joseph@codesourcery.com>
23177 * config/mips/mips-opts.h: New.
23178 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
23180 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
23181 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
23182 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
23184 * config/mips/mips.h (enum mips_code_readable_setting): Move to
23186 (mips_abi, mips_code_readable): Don't declare.
23187 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
23188 (mabi=): Use Enum and Var.
23189 (mips_abi): New Enum and EnumValue entries.
23190 (mcode-readable=): Use Enum and Var.
23191 (mips_code_readable_setting): New Enum and EnumValue entries.
23192 (mr10k-cache-barrier=): Use Enum and Var.
23193 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
23195 2011-05-03 Jan Hubicka <jh@suse.cz>
23197 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
23198 replace hash by pointer map.
23199 (cgraph_node_set_element_def, cgraph_node_set_element,
23200 const_cgraph_node_set_element, varpool_node_set_element_def,
23201 varpool_node_set_element, const_varpool_node_set_element): Remove.
23202 (free_cgraph_node_set, free_varpool_node_set): New function.
23203 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
23204 * tree-emutls.c: Free varpool node set.
23205 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
23206 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
23207 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
23208 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
23209 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
23210 Move here from ipa.c; implement using pointer_map
23211 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
23212 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
23213 debug_cgraph_node_set, varpool_node_set_new,
23214 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
23215 dump_varpool_node_set, debug_varpool_node_set):
23216 Move to ipa-uitls.c.
23217 * passes.c (ipa_write_summaries): Update.
23219 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
23221 From Mike Frysinger:
23222 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
23223 bf542/bf544/bf547/bf548/bf549.
23225 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
23227 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
23229 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
23231 From Bernd Schmidt:
23232 * config/bfin/bfin.md (MOVCC): New mode_macro.
23233 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
23234 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
23235 comments from generated assembly.
23237 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
23240 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
23241 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
23242 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
23243 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
23244 * config/bfin/lib1funcs.asm (___muldi3): New function.
23246 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
23248 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
23249 build_function_type_list instead of build_function_type.
23250 Rearrange initialization of `args' to do so.
23252 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
23254 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
23255 instead of build_function_type.
23257 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
23259 * config/rs6000/rs6000.c (spe_init_builtins): Call
23260 build_function_type_list instead of build_function_type.
23261 (paired_init_builtins, altivec_init_builtins): Likewise.
23262 (builtin_function_type): Likewise.
23264 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
23266 * config/sh/sh.c (sh_media_init_builtins): Call
23267 build_function_type_list instead of build_function_type.
23269 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
23271 * config/sparc/sparc.c (sparc_file_end): Call
23272 build_function_type_list instead of build_function_type.
23274 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
23276 * config/alpha/alpha.c (alpha_init_builtins): Call
23277 build_function_type_list instead of build_function_type.
23279 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
23281 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
23282 build_function_type_list instead of build_function_type.
23284 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
23286 * config/iq2000/i2000.c (iq2000_init_builtins): Call
23287 build_function_type_list instead of build_function_type.
23288 Delete `endlink' variable.
23290 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
23292 * config/avr/avr.c (avr_init_builtins): Call
23293 build_function_type_list instead of build_function_type.
23295 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
23297 * config/picochip/picochip.c (picochip_init_builtins): Call
23298 build_function_type_list instead of build_function_type.
23299 Delete `endlink' variable.
23301 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
23303 * config/bfin/bfin.c (bfin_init_builtins): Call
23304 build_function_type_list instead of build_function_type.
23306 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
23309 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
23310 that's not CONST_INT. Seemingly redundant check is due to PR39768.
23312 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
23315 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
23316 libbffastfp overrides libgcc when -mfast-fp.
23318 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
23320 Originally from Bernd Schmidt
23321 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
23322 * config/bfin/bfin.c (override_options): Test it and error if
23325 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
23327 Originally From Bernd Schmidt
23328 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
23331 2011-05-03 Jeff Law <law@redhat.com>
23333 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
23334 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
23335 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
23336 than accessing AUX field directly. Free the AUX field before
23338 (thread_block, thread_through_loop_header): Likewise.
23339 (thread_single_edge, mark_threaded_blocks): Likewise.
23340 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
23341 (register_jump_thread): Do not attempt to thread to a NULL edge.
23343 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
23345 * function.c (init_function_start): Call decide_function_section.
23346 * varasm.c (decide_function_section): New function.
23347 (assemble_start_function): When not using
23348 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
23349 or first_function_block_is_cold.
23350 * rtl.h (decide_function_section): Declare.
23352 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
23353 Jakub Jelinek <jakub@redhat.com>
23356 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
23357 only succeed if req_mode is the same as set_mode.
23359 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
23361 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
23362 * genemit.c (gen_exp): Handle RETURN.
23363 * emit-rtl.c (verify_rtx_sharing): Likewise.
23364 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
23365 * rtl.c (copy_rtx): RETURN is shared.
23366 * rtl.h (enum global_rtl_index): Add GR_RETURN.
23368 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
23369 * config/s390/s390.c (s390_emit_epilogue): Likewise.
23370 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
23371 * config/cris/cris.c (cris_expand_return): Likewise.
23372 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
23373 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
23374 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
23375 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
23376 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
23378 * config/v850/v850.c (expand_epilogue): Likewise.
23379 * config/bfin/bfin.c (bfin_expand_call): Likewise.
23380 * config/arm/arm.md (epilogue): Likewise.
23381 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
23382 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
23383 variable to ret_reg.
23385 2011-05-03 Richard Guenther <rguenther@suse.de>
23388 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
23389 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
23390 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
23392 2011-05-03 Richard Guenther <rguenther@suse.de>
23394 * c-decl.c (grokdeclarator): Instead of looking at
23395 TREE_OVERFLOW check if the constant fits in the index type.
23397 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
23399 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
23400 (vec_store_lanes<mode><mode>): Likewise.
23402 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
23404 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
23405 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
23406 convert_optab_index values.
23407 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
23408 * genopinit.c (optabs): Initialize the new optabs.
23409 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
23410 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
23411 (expand_STORE_LANES): New functions.
23412 * tree.h (build_array_type_nelts): Declare.
23413 * tree.c (build_array_type_nelts): New function.
23414 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
23415 (vect_model_load_cost): Likewise.
23416 (vect_store_lanes_supported, vect_load_lanes_supported)
23417 (vect_record_strided_load_vectors): Declare.
23418 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
23419 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
23420 (vect_transform_strided_load): Split out statement recording into...
23421 (vect_record_strided_load_vectors): ...this new function.
23422 * tree-vect-stmts.c (create_vector_array, read_vector_array)
23423 (write_vector_array, create_array_ref): New functions.
23424 (vect_model_store_cost): Add store_lanes_p argument.
23425 (vect_model_load_cost): Add load_lanes_p argument.
23426 (vectorizable_store): Try to use store-lanes functions for
23427 interleaved stores.
23428 (vectorizable_load): Likewise load-lanes and loads.
23429 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
23430 to vect_model_store_cost.
23431 (vect_build_slp_tree): Likewise vect_model_load_cost.
23433 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
23435 * hooks.h (hook_bool_mode_uhwi_false): Declare.
23436 * hooks.c (hook_bool_mode_uhwi_false): New function.
23437 * target.def (array_mode_supported_p): New hook.
23438 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
23439 * doc/tm.texi: Regenerate.
23440 * stor-layout.c (mode_for_array): New function.
23441 (layout_type): Use it.
23442 * config/arm/arm.c (arm_array_mode_supported_p): New function.
23443 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
23445 2011-05-03 Eric Botcazou <ebotcazou@adacore.com>
23448 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
23449 for -fstack-check if the size to allocate is negative.
23451 2011-05-02 Lawrence Crowl <crowl@google.com>
23453 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
23454 (timevar_cond_start): New for starting a timer only when it is not
23456 (timevar_cond_stop): New for stopping a timer when it was not already
23459 * timevar.c (timevar_stop): Enable start/stop timers to start again.
23460 (timevar_cond_start): New as above.
23461 (timevar_cond_stop): New as above.
23463 * timevar.def: Add start/stop timers for compiler phases,
23464 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
23465 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
23466 and TV_PHASE_FINALIZE.
23467 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
23468 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
23469 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
23470 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
23471 Make unused TV_OVERLOAD into a start/stop timer.
23473 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
23474 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
23475 to indicate that they are start/stop timers.
23477 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
23478 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
23479 Move initialization to do_compile.
23480 (do_compile): Add initialization from above.
23481 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
23483 * c-decl.c (c_write_global_declarations): Add start/stop of
23484 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
23486 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
23487 or TV_PARSE_INLINE, as appropriate.
23488 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
23489 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
23491 2011-05-02 Jason Merrill <jason@redhat.com>
23494 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
23496 2011-05-02 Simon Martin <simartin@users.sourceforge.net>
23499 * c-decl.c (finish_decl): Only create a composite if the types are
23502 2011-05-02 Joseph Myers <joseph@codesourcery.com>
23504 * config/fr30/fr30-protos.h (Mmode): Don't define.
23505 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
23506 definition where used.
23507 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
23508 define. Expand definitions where used.
23509 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
23510 Expand definitions where used.
23511 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
23512 rx_function_arg, rx_function_arg_advance,
23513 rx_function_arg_boundary): Expand definitions of those macros.
23514 * config/v850/v850-protos.h (Mmode): Don't define. Expand
23515 definition where used.
23517 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
23519 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
23521 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
23522 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
23523 with *movv2sf_internal_rex64_avx.
23524 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
23525 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
23526 Use %v prefix in insn mnemonic to handle TARGET_AVX.
23527 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
23528 "vex" in "prefix" attribute calculation.
23529 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
23531 2011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
23534 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
23535 inputs match the output.
23537 2011-05-02 Andreas Schwab <schwab@linux-m68k.org>
23540 * config/m68k/m68k.c (m68k_expand_prologue): Set
23541 current_function_static_stack_size.
23543 2011-05-02 Jan Hubicka <jh@suse.cz>
23545 * lto-streamer.c (lto_streamer_cache_insert_1,
23546 lto_streamer_cache_lookup, lto_streamer_cache_create,
23547 lto_streamer_cache_delete): Use pointer map instead of hashtable.
23548 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
23550 2011-05-02 Joseph Myers <joseph@codesourcery.com>
23552 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
23553 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
23554 config/m68k/t-opts: New files.
23555 * config/m68k/m68k-tables.opt: New file (generated).
23556 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
23557 extra_options and m68k/t-opts to tmake_file.
23558 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
23559 (all_isas): Initialize using m68k-isas.def.
23560 (all_microarchs): Initialize using m68k-microarchs.def.
23561 (m68k_find_selection): Remove.
23562 (m68k_handle_option): Don't assert that global structures are in
23563 use. Use error_at. Access variables via opts pointer. Don't
23564 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
23565 directly for -m68020-40 and -m68020-60.
23566 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
23567 m68k_tune_entry here.
23568 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
23570 (m68k_library_id_string): Remove declaration.
23571 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
23572 (m68k_library_id_string): New Variable.
23573 (march=, mcpu=, mtune=): Use Enum and Var.
23575 2011-05-02 Richard Guenther <rguenther@suse.de>
23577 * varasm.c (output_constructor_regular_field): Compute zero-based
23578 index with double-ints. Make sure to ICE instead of producing
23580 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
23581 in asserts. Properly use a signed type.
23583 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
23585 * config/i386/sse.md (V): New mode iterator.
23586 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
23588 (V_256): Rename from AVX256MODE.
23589 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
23590 condition to all users.
23592 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
23593 condition to all users.
23594 (VF_128): Make V4SF mode unconditional.
23595 (VF_256): Rename from AVX256MODEF2P.
23596 (VI4F_128): Rename from SSEMODE4S.
23597 (VI8F_128): Rename from SSEMODE2D.
23598 (VI4F_256): Rename from AVX256MODE8P.
23599 (VI8F_256): Rename from AVX256MODE4P.
23600 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
23601 (ssescalarmodesuffix): Remove SF and DF modes.
23602 (SSEMODE124): Remove.
23603 (SSEMODE1248): Ditto.
23604 (SSEMODEF2P): Ditto.
23605 (AVXMODEF2P): Ditto.
23606 (AVXMODEFDP): Ditto.
23607 (AVXMODEFSP): Ditto.
23608 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
23610 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
23612 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
23613 xop_pcmov_<mode>256. Use V mode iterator.
23615 Adjust RTX patterns globally for renamed mode attributes.
23617 2011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
23619 * haifa-sched.c (sched_emit_insn): Emit insn before first
23620 non-scheduled insn. Inform back-end about new insn. Add
23621 new insn to scheduled_insns list.
23623 2011-05-02 Richard Guenther <rguenther@suse.de>
23625 PR tree-optimization/48822
23626 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
23627 (process_scc): Indicate which iteration we start.
23629 2011-05-02 Jan Hubicka <jh@suse.cz>
23631 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
23632 (lto_section_overrun): New.
23633 * lto-section-out.c (append_block): Rename to ...
23634 (lto_append_block): ... this one; export.
23635 (lto_output_1_stream): Move lto lto-streamer.h
23636 (lto_output_data_stream): Update.
23637 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
23638 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
23641 2011-05-02 Richard Guenther <rguenther@suse.de>
23643 * tree.c (tree_code_counts): New global array.
23644 (record_node_allocation_statistics): Count individual tree codes.
23645 (dump_tree_statistics): Dump individual code stats.
23647 2011-05-01 Jan Hubicka <jh@suse.cz>
23649 * ipa-inline.c (caller_growth_limits): Fix thinko when
23650 looking for largest stack frame.
23651 * ipa-inline.h (dump_inline_summary): Declare.
23652 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
23654 (dump_inline_summary): Export.
23655 (debug_inline_summary): Declare as DEBUG_FUNCTION.
23657 2011-05-01 Anatoly Sokolov <aesok@post.ru>
23659 * reginfo.c (memory_move_cost): Change rclass argument type form
23660 'enum reg_class' to reg_class_t.
23661 * reload.h (memory_move_cost): Update prototype.
23662 * postreload.c reload_cse_simplify_set): Change type dclass var to
23664 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
23666 (ira_allocate_and_set_costs): Change aclass argument type form
23667 'enum reg_class' to reg_class_t.
23668 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
23669 Change aclass argument type to reg_class_t.
23670 (update_conflict_hard_reg_costs): Change type aclass and pref vars
23672 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
23673 memory_move_cost call.
23675 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
23676 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
23677 Change type tmp var to reg_class_t.
23679 2011-04-30 Jan Hubicka <jh@suse.cz>
23681 * ipa-inline.c (can_inline_edge_p): Disregard limits when
23682 inlining into function with flatten attribute.
23683 (want_inline_small_function_p): Be more realistic about inlining
23684 cold calls where callee size grows.
23686 2011-04-30 Jan Hubicka <jh@suse.cz>
23688 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
23691 2011-04-30 Anatoly Sokolov <aesok@post.ru>
23693 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
23694 PRINT_OPERAND_PUNCT_VALID_P): Remove.
23695 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
23696 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
23697 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
23698 (print_operand): Rename to...
23699 (sparc_print_operand): ...this. Make static. Adjust
23700 sparc_print_operand function call.
23701 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
23704 2011-04-30 Jan Hubicka <jh@suse.cz>
23706 PR middle-end/48752
23707 * ipa-inline.c (early_inliner): Disable when doing late
23708 addition of function.
23710 2011-04-30 Jakub Jelinek <jakub@redhat.com>
23712 * dwarf2out.c (get_address_mode): New inline.
23713 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
23714 if not dwarf_strict emit
23715 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
23716 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
23717 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
23718 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
23719 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
23720 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
23721 mem_loc_descriptor callers.
23722 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
23723 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
23724 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
23725 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
23726 (base_types): New variable.
23727 (get_base_type_offset, calc_base_type_die_sizes,
23728 base_type_for_mode, mark_base_types, base_type_cmp,
23729 move_marked_base_types): New functions.
23730 (calc_die_sizes): Assert that die_offset is 0 or equal to
23732 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
23733 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
23734 callers. If not dwarf_strict, call mem_loc_descriptor even for
23735 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
23736 (gen_subprogram_die): Don't give up on call site parameters
23737 with non-integral or large integral modes. Adjust
23738 mem_loc_descriptor callers.
23739 (prune_unused_types): Call prune_unused_types_mark on base_types
23741 (resolve_addr): Call mark_base_types.
23742 (dwarf2out_finish): Call move_marked_base_types.
23744 PR tree-optimization/48809
23745 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
23747 (gen_inbound_check): Don't compute index_expr - range_min in utype
23748 again, instead reuse SSA_NAME initialized in build_arrays.
23749 Remove two useless gsi_for_stmt calls.
23751 2011-04-29 Jeff Law <law@redhat.com>
23753 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
23755 2011-04-29 Martin Jambor <mjambor@suse.cz>
23757 * cgraph.h (cgraph_postorder): Remove declaration.
23758 * ipa-utils.h (ipa_free_postorder_info): Declare.
23759 (ipa_reverse_postorder): Likewise.
23760 * cgraphunit.c: Include ipa-utils.h.
23761 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
23762 * ipa-inline.c: Include ipa-utils.h.
23763 (ipa_inline): Update call to ipa_reverse_postorder.
23764 * ipa-pure-const.c (propagate_pure_const): Update call to
23765 ipa_reduced_postorder and ipa_print_order. Call
23766 ipa_free_postorder_info to clean up.
23767 (propagate_nothrow): Likewise.
23768 * ipa-reference.c (propagate): Removed a useless call to
23769 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
23770 and ipa_print_order. Call ipa_free_postorder_info to clean up.
23771 * ipa.c: Include ipa-utils.h.
23772 (ipa_profile): Update call to ipa_reverse_postorder.
23773 (cgraph_postorder): Moved to...
23774 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
23775 (ipa_utils_print_order): Renamed to ipa_print_order.
23776 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
23778 (ipa_free_postorder_info): New function.
23779 * passes.c: Include ipa-utils.h.
23780 (do_per_function_toporder): Update call to ipa_reverse_postorder.
23781 (ipa_write_summaries): Likewise.
23782 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
23783 (cgraphunit.o): Likewise.
23785 (ipa-inline.o): Likewise.
23787 2011-04-29 Jan Hubicka <jh@suse.cz>
23789 * ipa-inline.h (clause_t): Turn into unsigned int.
23790 * ipa-inline-analysis.c (add_clause): Do more simplification.
23791 (and_predicates): Shortcut more cases.
23792 (predicates_equal_p): Move forward; check that clauses are properly
23794 (or_predicates): Shortcut more cases.
23795 (edge_execution_predicate): Rewrite as...
23796 (set_cond_stmt_execution_predicate): ... this function; handle
23797 __builtin_constant_p.
23798 (set_switch_stmt_execution_predicate): New .
23799 (compute_bb_predicates): New.
23800 (will_be_nonconstant_predicate): Update TODO.
23801 (estimate_function_body_sizes): Use compute_bb_predicates
23802 and free them later, always try to estimate if stmt is constant.
23803 (estimate_time_after_inlining, estimate_size_after_inlining):
23804 Gracefully handle optimized out edges.
23805 (read_predicate): Fix off by one error.
23807 2011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
23809 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
23811 2011-04-27 Xinliang David Li <davidxl@google.com>
23813 * tree-profile.c (init_ic_make_global_vars): Set
23814 tls attribute on ic vars.
23815 * coverage.c (coverage_end_function): Initialize
23816 function_list with zero.
23818 2011-04-29 Richard Guenther <rguenther@suse.de>
23820 * builtins.c (fold_builtin_classify_type): Use integer_type_node
23821 for the type of the result.
23822 (fold_builtin_isascii): Likewise.
23823 (fold_builtin_toascii): Use integer_type_node where appropriate.
23824 (fold_builtin_logb): Likewise.
23825 (fold_builtin_frexp): Likewise.
23826 (fold_builtin_strstr): Likewise.
23827 (fold_builtin_strpbrk): Likewise.
23828 (fold_builtin_fputs): Likewise.
23829 (fold_builtin_sprintf): Likewise.
23830 (fold_builtin_snprintf): Likewise.
23831 (fold_builtin_printf): Likewise.
23832 (do_mpfr_remquo): Use a proper type for the assigned constant.
23833 (do_mpfr_lgamma_r): Likewise.
23834 * dwarf2out.c (resolve_one_addr): Use size_int.
23835 * except.c (init_eh): Likewise.
23836 (assign_filter_values): Use integer_type_node for filter values.
23837 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
23839 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
23840 for EH region numbers.
23841 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
23842 for the shift amount.
23844 2011-04-29 Richard Guenther <rguenther@suse.de>
23846 * expr.h (expand_shift): Rename to ...
23847 (expand_variable_shift): ... this.
23848 (expand_shift): Take a constant shift amount.
23849 * expmed.c (expand_shift): Rename to ...
23850 (expand_variable_shift): ... this.
23851 (expand_shift): New wrapper around expand_variable_shift.
23852 * expr.c (convert_move, emit_group_load_1, emit_group_store,
23853 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
23854 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
23855 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
23856 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
23857 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
23858 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
23859 emit_store_flag_1, emit_store_flag): Likewise.
23860 * builtins.c (expand_builtin_signbit): Likewise.
23861 * calls.c (load_register_parameters): Likewise.
23862 * function.c (assign_parm_setup_block): Likewise.
23863 * lower-subreg.c (resolve_shift_zext): Likewise.
23864 * optabs.c (widen_bswap, expand_abs_nojump,
23865 expand_one_cmpl_abs_nojump, expand_float): Likewise.
23866 * spu/spu.c (spu_expand_extv): Likewise.
23867 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
23869 2011-04-29 Richard Guenther <rguenther@suse.de>
23871 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
23872 for the remapped region number.
23873 * predict.c (build_predict_expr): Use integer_type_node for the
23875 * fold-const.c (fold_binary_loc): Use integer_type_node for
23876 the shift amount. Use a proper type for the PLUS_EXPR operand.
23878 2011-04-29 Michael Matz <matz@suse.de>
23880 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
23881 other trees that just builtins.
23882 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
23884 2011-04-29 Richard Guenther <rguenther@suse.de>
23886 * tree-nested.c (get_trampoline_type): Use size_int.
23887 (get_nl_goto_field): Likewise.
23888 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
23890 (lower_eh_constructs_2): Likewise.
23891 (lower_resx): Likewise.
23892 (lower_eh_dispatch): Likewise.
23893 * tree-mudflap.c (mf_build_string): Use size_int.
23894 (mudflap_register_call): Use integer_type_node for the flag.
23895 (mudflap_enqueue_constant): Use size_int.
23896 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
23897 instead of rebuilding it.
23899 2011-04-29 Richard Guenther <rguenther@suse.de>
23901 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
23902 Handle OBJ_TYPE_REF.
23903 (find_func_aliases_for_call): Use it more consistently.
23905 2011-04-29 Alexandre Oliva <aoliva@redhat.com>
23907 * haifa-sched.c (last_nondebug_scheduled_insn): New.
23908 (rank_for_schedule): Use it.
23909 (schedule_block): Set it.
23911 2011-04-28 David Li <davidxl@google.com>
23913 * tree.c (crc32_string): Use crc32_byte.
23914 (crc32_byte): New function.
23915 * tree.h (crc32_byte): New function.
23916 * gcov.c (read_graph_file): Handle new cfg_cksum.
23917 (read_count_file): Ditto.
23918 * profile.c (instrument_values): Ditto.
23919 (get_exec_counts): Ditto.
23920 (read_profile_edge_counts): Ditto.
23921 (compute_branch_probabilities): Ditto.
23922 (compute_value_histograms): Ditto.
23923 (branch_prob): Ditto.
23924 (end_branch_prob): Ditto.
23925 * coverage.c (read_counts_file): Ditto.
23926 (get_coverage_counts): Ditto.
23927 (tree_coverage_counter_addr): Ditto.
23928 (coverage_checksum_string): Ditto.
23929 (coverage_begin_output): Ditto.
23930 (coverage_end_function): Ditto.
23931 (build_fn_info_type): Ditto.
23932 (build_fn_info_value): Ditto.
23933 * libgcov.c (gcov_exit): Ditto.
23934 * gcov-dump.c (tag_function): Ditto.
23935 (compute_checksum): Remove.
23937 2011-04-29 Alan Modra <amodra@gmail.com>
23939 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
23940 unspec plus offset. Tidy macho code.
23942 2011-04-29 Martin Jambor <mjambor@suse.cz>
23944 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
23945 node instead of a decl. Update all callers.
23946 * cgraph.h: Update declaration.
23948 2011-04-28 Ira Rosen <ira.rosen@linaro.org>
23950 PR tree-optimization/48765
23951 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
23952 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
23953 to indicate if loop aware SLP is being used. Scan the statements
23954 and update the vectorization factor according to the type of
23955 vectorization before statement analysis.
23956 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
23957 pass it to vect_analyze_loop_operations.
23958 (vectorizable_reduction): Set number of copies to 1 in case of pure
23960 * tree-vect-stmts.c (vectorizable_conversion,
23961 vectorizable_assignment, vectorizable_shift,
23962 vectorizable_operation, vectorizable_type_demotion,
23963 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
23965 (vectorizable_condition): Move the check that it is not SLP
23966 vectorization before the number of copies check.
23967 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
23968 to vectorize the loop using SLP.
23970 2011-04-28 Jakub Jelinek <jakub@redhat.com>
23972 PR middle-end/48597
23973 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
23976 2011-04-28 Joseph Myers <joseph@codesourcery.com>
23978 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
23979 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
23980 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
23981 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
23982 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
23984 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
23985 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
23986 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
23987 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
23988 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
23989 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
23991 * config/i386/linux.h (REG_NAME): Don't define.
23992 * config/i386/linux64.h (REG_NAME): Don't define.
23993 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
23994 Undefine before defining.
23996 2011-04-28 Jan Hubicka <jh@suse.cz>
23998 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
23999 nonconstant_names array.
24000 (estimate_function_body_sizes): Build nonconstant_names array; handle
24001 BUILT_IN_CONSTANT_P.
24003 2011-04-28 Richard Guenther <rguenther@suse.de>
24007 2011-04-28 Richard Guenther <rguenther@suse.de>
24009 * tree-ssa-structalias.c (solve_constraints): Build succ graph
24010 as late as possible.
24012 2011-04-28 Richard Guenther <rguenther@suse.de>
24014 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
24015 (debug_constraint): Do it here.
24016 (dump_constraints): And here.
24017 (rewrite_constraints): And here.
24018 (dump_constraint_edge): Remove.
24019 (dump_constraint_graph): Rewrite to produce DOT output.
24020 (solve_constraints): Build succ graph as late as possible.
24021 Dump constraint graphs before and after solving.
24023 2011-04-28 Richard Guenther <rguenther@suse.de>
24025 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
24026 New function split out from ...
24027 (find_func_aliases): ... here. Call it.
24028 (find_func_aliases_for_call): Likewise.
24030 2011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
24032 * internal-fn.h (internal_fn_name_array): Declare.
24033 (internal_fn_flags_array): Likewise.
24035 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
24037 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
24038 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
24040 (ssemodefsuffix): Remove.
24041 (ssevecmodesuffix): New mode attribute.
24042 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
24043 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
24044 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
24045 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
24046 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
24047 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
24048 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
24049 ssemodesuffix mode attribute.
24050 (float splitters): Use ssevecmodesuffix mode attribute.
24051 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
24052 (sseinsmode): Rename from avxvecmode.
24053 (avxsizesuffix): Rename from avxmodesuffix.
24054 (sseintvecmode): Rename from avxpermvecmode.
24055 (ssedoublevecmode): Rename from ssedoublesizemode.
24056 (ssehalfvecmode): Rename from avxhalfvecmode.
24057 (ssescalarmode): Rename from avxscalarmode.
24058 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
24059 templates for ssemodesuffix mode attribute.
24060 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
24063 Adjust RTX patterns globally for renamed mode attributes.
24065 2011-04-27 Jan Hubcika <jh@suse.cz>
24067 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
24068 * ipa-inline-analysis.c: Include alloc-pool.h.
24069 (edge_predicate_pool): New.
24070 (trye_predicate_p): New function
24071 (false_predicate_p): New function.
24072 (add_clause): Sanity check that false clauses are "optimized";
24073 never add clauses to predicate that is already known to be false.
24074 (and_predicate): Use flase_predicate_p.
24075 (evaulate_predicate): Rename to ...
24076 (evaluate_predicate): ... this one; update all callers; assert
24077 that false is not listed among possible truths.
24078 (dump_predicate): Use true_predicate_p.
24079 (account_size_time): Use false_predicate_p.
24080 (evaulate_conditions_for_edge): Rename to ...
24081 (evaluate_conditions_for_edge) ... this one.
24082 (edge_set_predicate): New function.
24083 (inline_edge_duplication_hook): Duplicate edge predicates.
24084 (inline_edge_removal_hook): Free edge predicates.
24085 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
24086 (dump_inline_summary): Update.
24087 (estimate_function_body_sizes): Set edge predicates.
24088 (estimate_calls_size_and_time): Handle predicates.
24089 (estimate_callee_size_and_time): Update.
24090 (remap_predicate): Add toplev_predicate; update comment.
24091 (remap_edge_predicates): New function.
24092 (inline_merge_summary): Compute toplev predicate; update.
24093 (read_predicate): New function.
24094 (read_inline_edge_summary): Use it.
24095 (inline_read_section): Likewise.
24096 (write_predicate): New function.
24097 (write_inline_edge_summary): Use it.
24098 (inline_write_summary): Likewise.
24099 (inline_free_summary): Free alloc pool and edge summary vec.
24101 2011-04-27 Richard Guenther <rguenther@suse.de>
24103 * tree-ssa-structalias.c (changed_count): Remove.
24104 (changed): Use a bitmap.
24105 (unify_nodes): Adjust.
24106 (do_sd_constraint): Likewise.
24107 (do_ds_constraint): Likewise.
24108 (do_complex_constraint): Likewise.
24109 (solve_graph): Likewise.
24111 2011-04-27 Jan Hubicka <jh@suse.cz>
24113 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
24115 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
24117 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
24118 (avx_vperm2f128_*_operand): Ditto.
24119 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
24120 Use avx_vpermilp_parallel in insn condition.
24121 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
24122 Use avx_vperm2f128_parallel in insn condition.
24124 2011-04-27 Richard Guenther <rguenther@suse.de>
24126 * Makefile.in (tree-ssa-structalias.o): Remove
24127 gt-tree-ssa-structalias.h dependency.
24128 (GTFILES): Remove tree-ssa-structalias.c.
24129 * tree.c (allocate_decl_uid): New function.
24130 (make_node_stat): Use it.
24131 (copy_node_stat): Likewise.
24132 * tree.h (allocate_decl_uid): Declare.
24133 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
24134 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
24135 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
24136 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
24137 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
24138 (struct heapvar_map): Likewise.
24139 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
24140 heapvar_insert): Likewise.
24141 (make_heapvar_for): Rename to ...
24142 (make_heapvar): ... this. Simplify.
24143 (fake_var_decl_obstack): New global var.
24144 (build_fake_var_decl): New function.
24145 (make_constraint_from_heapvar): Adjust.
24146 (handle_lhs_call): Likewise.
24147 (create_function_info_for): Likewise.
24148 (intra_create_variable_infos): Likewise.
24149 (init_alias_vars): Allocate fake_var_decl_obstack.
24150 (init_alias_heapvars, delete_alias_heapvars): Remove.
24151 (compute_points_to_sets): Do not call init_alias_heapvars.
24152 (ipa_pta_execute): Likewise.
24153 (delete_points_to_sets): Free fake_var_decl_obstack.
24155 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
24157 * config/spu/divmovti4.c (union qword_UTItype): New data type.
24158 (si_from_UTItype, si_to_UTItype): New functions.
24159 (__udivmodti4): Use them to implement type-punning.
24160 * config/spu/multi3.c (union qword_TItype): New data type.
24161 (si_from_TItype, si_to_TItype): New functions.
24162 (__multi3): Use them to implement type-punning.
24164 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
24166 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
24168 2011-04-27 Jan Hubicka <jh@suse.cz>
24170 * ipa-prop.c (function_insertion_hook_holder): New holder.
24171 (ipa_add_new_function): New function.
24172 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
24173 Register/deregister holder.
24175 2011-04-27 Richard Guenther <rguenther@suse.de>
24177 PR tree-optimization/48772
24178 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
24180 2011-04-27 Richard Guenther <rguenther@suse.de>
24182 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
24183 TARGET_MEM_REF handling.
24185 2011-04-27 Nick Clifton <nickc@redhat.com>
24187 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
24188 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
24189 (REG_CLASS_NAMES): Likewise.
24190 (REG_CLASS_CONTENTS): Likewise.
24191 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
24192 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
24193 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
24194 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
24195 (EVEN_REGS): New macro. Alias for QUAD_REGS.
24196 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
24197 duplicate register classes.
24198 (frv_class_likely_spilled_p): Likewise.
24199 (frv_register_move_cost): Likewise.
24201 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
24202 end of the regno_reg_class array.
24204 2011-04-27 Jakub Jelinek <jakub@redhat.com>
24207 * c-typeck.c (build_binary_op): Don't wrap arguments if
24208 int_operands is true.
24210 2011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
24213 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
24214 targetm.calls.must_pass_in_stack for void type.
24216 2011-04-26 Jan Hubicka <jh@suse.cz>
24218 * cgraphbuild.c (build_cgraph_edges): Update call
24219 of cgraph_create_edge and cgraph_create_indirect_edge.
24220 * cgraph.c (cgraph_create_edge_including_clones,
24221 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
24222 cgraph_update_edges_for_call_stmt_node): Do not take nest
24223 argument; do not initialize call_stmt_size/time.
24224 (dump_cgraph_node): Do not dump nest.
24225 (cgraph_clone_edge): Do not take loop_nest argument;
24226 do not propagate it; do not clone call_stmt_size/time.
24227 (cgraph_clone_node): Likewise.
24228 (cgraph_create_virtual_clone): Update.
24229 * cgraph.h (struct cgraph_edge): Remove
24230 call_stmt_size/call_stmt_time/loop_nest.
24231 (cgraph_create_edge, cgraph_create_indirect_edge,
24232 cgraph_create_edge_including_clones, cgraph_clone_node): Update
24234 * tree-emutls.c (gen_emutls_addr): Update.
24235 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
24236 loop_nest; handle indirect calls, too.
24237 (clone_inlined_nodes): Do not care about updating inline summaries.
24238 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
24239 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
24240 stream call_stmt_size/call_stmt_time/loop_nest.
24241 * ipa-inline.c (edge_badness): Update.
24242 (ipa_inline): dump summaries after inlining.
24243 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
24245 (inline_edge_summary): New function.
24246 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
24247 (inline_edge_removal_hook): Handle edge summaries.
24248 (inline_edge_duplication_hook): New hook.
24249 (inline_summary_alloc): Alloc hooks.
24250 (initialize_growth_caches): Do not register removal hooks.
24251 (free_growth_caches); Do not free removal hook.
24252 (dump_inline_edge_summary): New function.
24253 (dump_inline_summary): Use it.
24254 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
24255 (inline_update_callee_summaries): New function.
24256 (inline_merge_summary): Use it.
24257 (do_estimate_edge_time, do_estimate_edge_growth): Update.
24258 (read_inline_edge_summary): New function.
24259 (inline_read_section): Use it.
24260 (write_inline_edge_summary): New function.
24261 (inline_write_summary): Use it.
24262 (inline_free_summary): Free edge new holders.
24263 * tree-inline.c (copy_bb): Update.
24265 2011-04-26 Jason Merrill <jason@redhat.com>
24267 * tree-eh.c (lower_try_finally_switch): Create the label along with
24268 the CASE_LABEL_EXPR.
24270 2011-04-26 David S. Miller <davem@davemloft.net>
24271 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24273 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
24274 * configure: Regenerate.
24276 2011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
24279 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
24281 (VEC_reduc): New code iterator and splitters for vector reduction.
24282 (VEC_reduc_name): Ditto.
24283 (VEC_reduc_rtx): Ditto.
24284 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
24285 (reduc_<VEC_reduc_name>_v4sf): Ditto.
24287 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
24288 support for extracting SF on VSX.
24290 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
24291 generating xscvspdp.
24292 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
24293 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
24294 double add, minimum, maximum vector reduction.
24295 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
24296 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
24297 optimize double vector reduction.
24298 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
24300 2011-04-26 Joseph Myers <joseph@codesourcery.com>
24302 * config/fr30/fr30.h (inhibit_libc): Don't define.
24303 * config/m32r/m32r-protos.h: Correct comment.
24304 * config/v850/v850.h (GHS_default_section_names,
24305 GHS_current_section_names): Use tree, not union tree_node *.
24307 2011-04-26 Xinliang David Li <davidxl@google.com>
24309 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
24310 * c-family/c-opts.c (c_common_handle_option): Set
24311 warn_maybe_uninitialized.
24312 * opts.c (common_handle_option): Ditto.
24313 * common.opt: New option.
24314 * tree-ssa.c (warn_uninit): Add one more parameter.
24315 (warn_uninitialized_var): Pass warning code.
24316 * tree-flow.h: Interface change.
24318 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24320 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
24321 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
24322 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
24324 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24326 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
24327 * config/mips/mips.opt (mmips-tfile): Remove.
24329 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
24330 mips-tdump reference to ...
24331 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
24332 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
24333 reference by Tru64 UNIX.
24335 2011-04-26 Jakub Jelinek <jakub@redhat.com>
24338 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
24339 is error_mark_node, set value to NULL.
24341 PR tree-optimization/48734
24342 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
24343 if return value from maybe_fold_*_comparsions isn't something
24344 the code is prepared to handle.
24346 2011-04-26 Uros Bizjak <ubizjak@gmail.com>
24348 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
24350 (ext_QIreg_nomode_operands): Remove.
24351 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
24355 2011-04-26 Andrew Stubbs <ams@codesourcery.com>
24357 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
24359 2011-04-26 Richard Guenther <rguenther@suse.de>
24361 * c-typeck.c (build_unary_op): Do not expand array-refs via
24362 pointer arithmetic. Only adjust qualifiers for function types.
24364 2011-04-26 Richard Guenther <rguenther@suse.de>
24366 PR middle-end/48694
24367 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
24368 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
24369 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
24370 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
24372 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
24374 * doc/extend.texi: Document __underlying_type.
24376 2011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
24378 * config/rs6000/titan.md (automata_option "progress"): Remove.
24380 2011-04-25 Jeff Law <law@redhat.com>
24382 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
24384 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
24386 * system.h (ENUM_BITFIELD): Remove.
24388 2011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
24389 Eric Botcazou <ebotcazou@adacore.com>
24391 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
24392 for STORE_FLAG_VALUE==-1 case.
24394 2011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
24397 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
24398 LEGITIMATE_PIC_OPERAND_P.
24400 2011-04-24 Jan Hubicka <jh@suse.cz>
24402 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
24404 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
24405 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
24406 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
24407 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
24408 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
24409 Sanity check predicate length.
24410 (remap_predicate): Likewise; sanity check jump functions.
24411 (inline_read_section, inline_write_summary): Sanity check
24414 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
24417 * doc/extend.texi (Type Traits): Document __is_standard_layout,
24418 __is_literal_type, and __is_trivial; update throughout about
24419 possibly cv-qualified void types.
24421 2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
24423 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
24424 testsuite and make it version agnostic.
24426 2011-04-22 Jan Hubicka <jh@suse.cz>
24428 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
24430 2011-04-23 Jakub Jelinek <jakub@redhat.com>
24433 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
24434 to VOID_TYPE even around MODIFY_EXPR.
24436 2011-04-22 Mike Stump <mikestump@comcast.net>
24438 * gensupport.c (read_md_rtx): Fix typo in comment.
24439 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
24442 2011-04-22 Jan Hubicka <jh@suse.cz>
24444 * gengtype.c (open_base_files): Add ipa-inline.h include.
24445 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
24446 ipa-prop.c; update all uses.
24447 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
24448 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
24449 merge summary of inlined function into former caller.
24450 * ipa-inline.c (max_benefit): Remove.
24451 (edge_badness): Compensate for removal of benefits.
24452 (update_caller_keys): Use
24453 reset_node_growth_cache/reset_edge_growth_cache.
24454 (update_callee_keys): Likewise.
24455 (update_all_callee_keys): Likewise.
24456 (inline_small_functions): Do not collect max_benefit; do not reset
24457 estimated_growth; call free_growth_caches and initialize_growth_caches.
24458 * ipa-inline.h (struct condition, type clause_t, struct predicate,
24459 struct size_time_entry): New structures.
24460 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
24461 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
24462 and estimated_growth.
24463 (edge_growth_cache_entry): New structure.
24464 (node_growth_cache, edge_growth_cache): New global vars.
24465 (estimate_growth): Turn into inline.
24466 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
24467 initialize_growth_caches, free_growth_caches): Declare.
24468 (estimate_edge_growth): Rewrite.
24469 (estimate_edge_time): Implement as inline cache lookup.
24470 (reset_node_growth_cache, reset_edge_growth_cache): New inline
24472 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
24473 (NUM_CONDITIONS): New constant.
24474 (predicate_conditions): New enum.
24475 (IS_NOT_CONSTANT): New constant.
24476 (edge_removal_hook_holder): New var.
24477 (node_growth_cache, edge_growth_cache): New global vars.
24478 (true_predicate, single_cond_predicate, false_predicate,
24479 not_inlined_predicate, add_condition, add_clause, and_predicates,
24480 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
24481 dump_clause, dump_predicate, account_size_time,
24482 evaulate_conditions_for_edge): New functions.
24483 (inline_summary_alloc): Move to heap.
24484 (inline_node_removal_hook): Clear condition and entry vectors.
24485 (inline_edge_removal_hook): New function.
24486 (initialize_growth_caches, free_growth_caches): New function.
24487 (dump_inline_summary): Update.
24488 (edge_execution_predicate): New function.
24489 (will_be_nonconstant_predicate): New function.
24490 (estimate_function_body_sizes): Compute BB and constantness predicates.
24491 (compute_inline_parameters): Do not clear estimated_growth.
24492 (estimate_edge_size_and_time): New function.
24493 (estimate_calls_size_and_time): New function.
24494 (estimate_callee_size_and_time): New function.
24495 (remap_predicate): New function.
24496 (inline_merge_summary): New function.
24497 (do_estimate_edge_time): New function based on...
24498 (estimate_edge_time): ... this one.
24499 (do_estimate_edge_growth): New function.
24500 (do_estimate_growth): New function based on....
24501 (estimate_growth): ... this one.
24502 (inline_analyze_function): Analyze after deciding on jump functions.
24503 (inline_read_section): New function.
24504 (inline_read_summary): Use it.
24505 (inline_write_summary): Write all the new data.
24506 * ipa-prop.c (ipa_get_param_decl_index): Export.
24507 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
24508 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
24510 (ipa_get_lattice): Move here from ipa-cp.c
24511 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
24512 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
24513 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
24514 cgraph_edge_inlinable_p): Remove.
24515 * cgraphunit.c: Include ipainline.h
24516 (cgraph_process_new_functions): Update call of
24517 compute_inline_parameters.
24519 2011-04-22 Richard Guenther <rguenther@suse.de>
24521 * tree.c (build_int_cst): Properly create canonicalized integer
24523 (build_int_cst_type): Remove scary comments.
24525 2011-04-22 Xinliang David Li <davidxl@google.com>
24527 * toplev.c (process_options): Enable -Werror=coverage-mismatch
24528 by default when -Wno-error is not specified.
24529 * opts-global.c (decode_options): Remove call to
24530 control_warning_options.
24532 2011-04-22 Jakub Jelinek <jakub@redhat.com>
24534 PR tree-optimization/48717
24535 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
24536 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
24538 2011-04-22 Joseph Myers <joseph@codesourcery.com>
24540 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
24541 definition where used.
24543 2011-04-22 Jakub Jelinek <jakub@redhat.com>
24546 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
24547 TREE_STATIC variables declared inside of some OpenMP construct.
24549 2011-04-22 Martin Jambor <mjambor@suse.cz>
24551 PR middle-end/48585
24552 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
24554 2011-04-22 Alexander Monakov <amonakov@ispras.ru>
24557 * c-typeck.c (pop_init_level): Do not warn about initializing
24560 2011-04-22 Alan Modra <amodra@gmail.com>
24562 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
24563 when returning call_cookie.
24564 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
24565 pointers, to functions with no more vector args than the current
24566 function, and some non-local calls for ABI_V4.
24567 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
24568 sibcall_nonlocal_aix64): Combine to ..
24569 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
24570 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
24571 (sibcall_value_nonlocal_aix<mode>): ..likewise.
24572 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
24573 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
24575 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
24576 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
24577 sibcall_value_symbolic_64): Delete.
24579 2011-04-21 Xinliang David Li <davidxl@google.com>
24581 * cgraph.h: Remove pid.
24582 * cgraph.c: Remove pid.
24583 * value-prof.c (init_node_map): New function.
24584 (del_node_map): New function.
24585 (find_func_by_funcdef_no): New function.
24586 (gimple_ic_transform): Call new function.
24587 * cgraphunit.c (cgraph_finalize_function): Remove pid.
24588 * function.c (get_last_funcdef_no): New function.
24589 * function.h (get_last_funcdef_no): New function.
24590 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
24591 to libgcov function.
24592 (tree-profiling): Call node map init and delete function.
24594 2011-04-21 Ian Lance Taylor <iant@google.com>
24596 * godump.c (go_format_type): Use exported Go name for anonymous
24599 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
24601 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
24602 Call builtin_function_type_list instead of builtin_function_type.
24603 (UNARY, BINARY, TRINARY, QUAD): Likewise.
24605 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
24607 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
24608 build_function_type_list instead of build_function_type.
24609 Delete variable `endlink'.
24611 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
24613 * config/s390/s390.c (s390_init_builtins): Call
24614 build_function_type_list instead of build_function_type.
24616 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
24618 * config/ia64/ia64.c (ia64_init_builtins): Call
24619 build_function_type_list instead of builtin_function_type.
24621 2011-04-21 Easwaran Raman <eraman@google.com>
24623 * cfgexpand.c (stack_var): Remove OFFSET...
24624 (add_stack_var): ...and its reference here...
24625 (expand_stack_vars): ...and here.
24626 (stack_var_cmp): Sort by descending order of size.
24627 (partition_stack_vars): Change heuristic.
24628 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
24629 (dump_stack_var_partition): Add newline after each partition.
24631 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
24632 Jeff Law <law@redhat.com>
24634 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
24635 * gengtype.c (matching_file_name_substitute): Likewise.
24637 2011-04-21 Richard Guenther <rguenther@suse.de>
24640 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
24642 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
24644 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
24646 2011-04-21 Richard Guenther <rguenther@suse.de>
24648 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
24651 2011-04-21 Richard Guenther <rguenther@suse.de>
24653 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
24654 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
24655 Use DECL_P, not SSA_VAR_P.
24656 (ptr_derefs_may_alias_p): Likewise.
24657 (ptr_deref_may_alias_ref_p_1): Likewise.
24658 (decl_refs_may_alias_p): Likewise.
24659 (refs_may_alias_p_1): Likewise.
24660 (ref_maybe_used_by_call_p_1): Likewise.
24661 (call_may_clobber_ref_p_1): Likewise.
24662 (indirect_ref_may_alias_decl_p): Assume indirect refrences
24663 are either MEM_REF or TARGET_MEM_REF.
24664 (indirect_refs_may_alias_p): Likewise.
24665 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
24666 for MEM_EXPR of indirect calls.
24668 2011-04-21 Tristan Gingold <gingold@adacore.com>
24670 * vmsdbgout.c (write_srccorr): Compute file length from the string.
24671 (dst_file_info_struct): Remove flen field.
24672 (lookup_filename): Remove code that set flen field.
24674 2011-04-21 Tristan Gingold <gingold@adacore.com>
24676 * config/ia64/ia64.c (ia64_start_function): Add a guard.
24678 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
24681 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
24682 vec_extract and vec_concat for non-SSE4_1 targets.
24684 2011-04-21 Richard Guenther <rguenther@suse.de>
24686 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
24689 2011-04-21 Joseph Myers <joseph@codesourcery.com>
24691 * config/i386/cygming.h (union tree_node, TREE): Don't define or
24693 (FILE): Don't undefine.
24695 2011-04-21 Joseph Myers <joseph@codesourcery.com>
24697 * config/alpha/alpha.c (struct machine_function): Use rtx, not
24699 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
24701 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
24702 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
24703 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
24705 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
24706 definitions where used.
24707 * config/microblaze/microblaze.h (struct microblaze_args): Use
24708 rtx, not struct rtx_def *.
24709 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
24711 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
24712 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
24713 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
24714 not struct rtx_def *.
24715 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
24717 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
24719 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
24721 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
24723 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
24724 operand_equal_p to compare DR_BASE_ADDRESSes.
24725 (vect_check_interleaving): Likewise.
24727 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
24730 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
24731 for all Neon struct constants.
24733 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
24735 * target.def (legitimate_constant_p): New hook.
24736 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
24737 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
24738 * doc/tm.texi: Regenerate.
24739 * hooks.h (hook_bool_mode_rtx_true): Declare.
24740 * hooks.c (hook_bool_mode_rtx_true): Define.
24741 * system.h (LEGITIMATE_CONSTANT_P): Poison.
24742 * calls.c (precompute_register_parameters): Replace uses of
24743 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
24744 (emit_library_call_value_1): Likewise.
24745 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
24746 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
24747 * ira-costs.c (scan_one_insn): Likewise.
24748 * recog.c (general_operand, immediate_operand): Likewise.
24749 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
24750 * reload1.c (init_eliminable_invariants): Likewise.
24752 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
24754 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
24755 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
24757 (TARGET_LEGITIMATE_CONSTANT_P): Define.
24758 * config/alpha/predicates.md (input_operand): Update call to
24759 alpha_legitimate_constant_p.
24761 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
24762 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
24763 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
24764 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
24765 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
24766 (arm_legitimate_constant_p): New functions.
24767 (arm_cannot_force_const_mem): Make static.
24769 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
24771 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
24772 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
24773 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
24774 instead of bfin_legitimate_constant_p.
24775 (bfin_legitimate_constant_p): Make static. Add a mode argument.
24776 (TARGET_LEGITIMATE_CONSTANT_P): Define.
24778 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
24780 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
24782 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
24783 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
24784 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
24785 (frv_legitimate_constant_p): Make static. Add a mode argument.
24787 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
24788 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
24789 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
24791 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
24792 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
24793 * config/i386/i386.c (legitimate_constant_p): Rename to...
24794 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
24796 (ix86_cannot_force_const_mem): Update accordingly.
24797 (ix86_legitimate_address_p): Likewise.
24798 (TARGET_LEGITIMATE_CONSTANT_P): Define.
24799 * config/i386/i386.md: Update commentary.
24801 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
24802 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
24803 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
24804 (ia64_legitimate_constant_p): Make static. Add a mode argument.
24806 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
24808 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
24809 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
24810 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
24811 (lm32_legitimate_constant_p): Make static. Add a mode argument.
24813 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
24814 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
24815 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
24817 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
24818 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
24819 (m32r_legitimate_constant_p): New function.
24821 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
24822 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
24823 LEGITIMATE_CONSTANT_P.
24824 (LEGITIMATE_CONSTANT_P): Delete.
24825 * config/m68k/m68k.c (m68k_expand_prologue): Call
24826 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
24827 (m68k_legitimate_constant_p): New function.
24828 * config/m68k/m68k.md: Update comments.
24830 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
24831 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
24832 (mcore_legitimate_constant_p): New function.
24834 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
24835 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
24836 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
24837 Add a mode argument.
24838 (mep_legitimate_address): Update accordingly.
24839 (TARGET_LEGITIMATE_CONSTANT_P): Define.
24841 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
24843 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
24844 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
24845 static. Check OP's mode for VOIDmode.
24846 (microblaze_legitimate_constant_p): New function.
24847 (TARGET_LEGITIMATE_CONSTANT_P): Define.
24849 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
24850 * config/mips/mips.c (mips_legitimate_constant_p): New function.
24851 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
24852 (TARGET_LEGITIMATE_CONSTANT_P): Define.
24853 * config/mips/predicates.md: Update comments.
24855 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
24856 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
24857 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
24858 (mmix_legitimate_constant_p): Make static, return a bool, and take
24860 (mmix_print_operand_address): Update accordingly.
24862 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
24864 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
24865 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
24866 static. Add a mode argument.
24867 (TARGET_LEGITIMATE_CONSTANT_P): Define.
24869 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
24871 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
24872 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
24873 (pa_legitimate_constant_p): New function.
24875 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
24877 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
24878 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
24879 (pdp11_legitimate_constant_p): New function.
24881 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
24882 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
24883 (rs6000_legitimate_constant_p): New function.
24885 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
24886 (rx_legitimate_constant_p): ...this.
24887 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
24888 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
24889 (rx_legitimate_constant_p): ...this.
24890 (TARGET_LEGITIMATE_CONSTANT_P): Define.
24891 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
24893 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
24894 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
24895 * config/s390/s390.c (legitimate_constant_p): Rename to...
24896 (s390_legitimate_constant_p): ...this. Make static, return a bool,
24897 and add a mode argument.
24898 (TARGET_LEGITIMATE_CONSTANT_P): Define.
24900 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
24902 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
24903 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
24904 (sh_legitimate_constant_p): New function.
24906 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
24907 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
24908 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
24909 (legitimate_constant_p): Rename to...
24910 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
24912 (constant_address_p): Update accordingly.
24914 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
24915 argument and return a bool.
24916 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
24917 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
24918 (spu_legitimate_constant_p): Add a mode argument and return a bool.
24919 (spu_rtx_costs): Update accordingly.
24920 * config/spu/predicates.md (vec_imm_operand): Likewise.
24922 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
24924 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
24925 * config/v850/v850.c (v850_legitimate_constant_p): New function.
24926 (TARGET_LEGITIMATE_CONSTANT_P): Define.
24928 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
24929 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
24930 * config/vax/vax.c (legitimate_constant_p): Likewise.
24932 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
24933 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
24934 (xtensa_legitimate_constant_p): New function.
24936 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
24938 * target.def (cannot_force_const_mem): Add a mode argument.
24939 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
24940 * doc/tm.texi: Regenerate.
24941 * hooks.h (hook_bool_mode_rtx_false): Declare.
24942 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
24943 (hook_bool_mode_const_rtx_true): Likewise.
24944 (hook_bool_mode_rtx_false): New function.
24945 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
24946 to be non-VOID. Update call to cannot_force_const_mem.
24947 (find_reloads): Update accordingly.
24948 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
24949 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
24951 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
24952 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
24953 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
24954 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
24955 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
24956 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
24957 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
24958 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
24959 (m68k_cannot_force_const_mem): ...this new function.
24960 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
24962 (mips_const_insns, mips_legitimize_const_move): Update calls.
24963 (mips_secondary_reload_class): Likewise.
24964 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
24965 (pa_cannot_force_const_mem): ...this new function.
24966 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
24967 (rs6000_cannot_force_const_mem): ...this new function.
24968 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
24970 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
24971 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
24973 (xtensa_cannot_force_const_mem): ...this new function.
24975 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
24977 * config/mips/mips.c (mips16_build_function_stub): Call
24978 build_function_type_list instead of build_function_type.
24979 (mips16_build_call_stub): Likewise.
24981 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
24983 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
24984 instead of build_function_type.
24986 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
24988 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
24989 instead of build_function_type.
24991 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
24994 * config/i386/i386.md (insv): Change operand 0 constraint to
24995 "register_operand". Change operand 1 and 2 constraint to
24996 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
24997 * config/i386/sse.md (sse4_1_pinsrb): Export.
24998 (sse2_pinsrw): Ditto.
24999 (sse4_1_pinsrd): Ditto.
25000 (sse4_1_pinsrq): Ditto.
25001 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
25002 * config/i386/i386.c (ix86_expand_pinsr): New.
25004 2011-04-20 Easwaran Raman <eraman@google.com>
25006 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
25007 containing union type only with -fstrict-aliasing.
25009 2011-04-20 Jim Meyering <meyering@redhat.com>
25011 Remove useless if-before-free tests.
25012 * calls.c (expand_call, save_area): Likewise.
25013 * cfgcleanup.c (try_forward_edges): Likewise.
25014 * collect2.c (collect_execute): Likewise.
25015 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
25016 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
25017 * coverage.c (coverage_checksum_string): Likewise.
25018 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
25019 * cselib.c (cselib_init): Likewise.
25020 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
25021 (df_set_clean_cfg): Likewise.
25022 * function.c (free_after_compilation): Likewise.
25023 * gcc.c (do_spec_1, main): Likewise.
25024 * gcov.c (create_file_names): Likewise.
25025 * gensupport.c (identify_predicable_attribute): Likewise.
25026 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
25027 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
25028 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
25029 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
25030 * ipa-pure-const.c (local_pure_const): Likewise.
25031 * ipa-reference.c (propagate): Likewise.
25032 * ira-costs.c (free_ira_costs): Likewise.
25033 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
25034 * matrix-reorg.c (mat_free): Likewise.
25035 * prefix.c (get_key_value): Likewise.
25036 * profile.c (compute_value_histograms): Likewise.
25037 * reload1.c (free_reg_equiv): Likewise.
25038 * sched-deps.c (free_deps): Likewise.
25039 * sel-sched-ir.c (fence_clear): Likewise.
25040 * sese.c (set_rename, if_region_set_false_region): Likewise.
25041 * tree-data-ref.c (free_rdg): Likewise.
25042 * tree-eh.c (lower_try_finally): Likewise.
25043 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
25044 * tree-ssa-live.c (delete_var_map): Likewise.
25045 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
25046 * tree-ssa-pre.c (phi_trans_add): Likewise.
25048 2011-04-20 Jakub Jelinek <jakub@redhat.com>
25050 PR tree-optimization/48611
25051 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
25052 beyond ERT_MUST_NOT_THROW region.
25054 2011-04-20 Catherine Moore <clm@codesourcery.com>
25056 * config/mips/mips.opt (mfix-24k): New.
25057 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
25058 * config/mips/mips.md (length): Increase by 4 for stores if
25060 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
25061 all noreorder if fixing 24K errata.
25062 * doc/invoke.texi: Document mfix-24k.
25064 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
25066 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
25067 quad-word modes, reduce to 9-bit index range when above 1016 limit.
25069 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
25071 * config/arm/arm.c (arm_gen_constant): Move movw support ....
25072 (const_ok_for_op): ... to here.
25074 2011-04-20 Kai Tietz <ktietz@redhat.com>
25076 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
25077 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
25079 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
25081 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
25083 2011-04-20 Richard Guenther <rguenther@suse.de>
25085 PR tree-optimization/47892
25086 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
25087 are if-convertible.
25089 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
25091 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
25093 2011-04-20 Tristan Gingold <gingold@adacore.com>
25095 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
25097 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
25101 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
25102 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
25103 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
25104 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
25105 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
25107 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
25110 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
25111 (avr_asm_named_section, avr_asm_output_aligned_common,
25112 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
25113 New functions to update...
25114 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
25115 (avr_asm_init_sections): Overwrite section callbacks for
25116 data_section, bss_section.
25117 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
25119 (avr_file_end): ...here.
25121 2011-04-20 Richard Guenther <rguenther@suse.de>
25123 PR middle-end/48695
25124 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
25125 objects and types here. Adjust for their offset before comparing.
25127 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
25129 * tree-vect-stmts.c (vectorizable_store): Only chain one related
25130 statement per copy.
25132 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
25134 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
25135 (GIMPLE_H): Include $(INTERNAL_FN_H).
25136 (OBJS-common): Add internal-fn.o.
25137 (internal-fn.o): New rule.
25138 * internal-fn.def: New file.
25139 * internal-fn.h: Likewise.
25140 * internal-fn.c: Likewise.
25141 * gimple.h: Include internal-fn.h.
25142 (GF_CALL_INTERNAL): New gf_mask.
25143 (gimple_statement_call): Put fntype into a union with a new
25145 (gimple_build_call_internal): Declare.
25146 (gimple_build_call_internal_vec): Likewise.
25147 (gimple_call_same_target_p): Likewise.
25148 (gimple_call_internal_p): New function.
25149 (gimple_call_internal_fn): Likewise.
25150 (gimple_call_fntype): Return null for internal calls.
25151 (gimple_call_set_fntype): Assert that the function is not internal.
25152 (gimple_call_set_fn): Likewise.
25153 (gimple_call_set_fndecl): Likewise.
25154 (gimple_call_set_internal_fn): New function.
25155 (gimple_call_addr_fndecl): Handle null functions.
25156 (gimple_call_return_type): Likewise null types.
25157 * gimple.c (gimple_build_call_internal_1): New function.
25158 (gimple_build_call_internal): Likewise.
25159 (gimple_build_call_internal_vec): Likewise.
25160 (gimple_call_same_target_p): Likewise.
25161 (gimple_call_flags): Handle calls to internal functions.
25162 (gimple_call_fnspec): New function.
25163 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
25164 (gimple_has_side_effects): Handle null functions.
25165 (gimple_rhs_has_side_effects): Likewise.
25166 (gimple_call_copy_skip_args): Handle calls to internal functions.
25167 * cfgexpand.c (expand_call_stmt): Likewise.
25168 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
25169 * gimple-fold.c (gimple_fold_call): Handle null functions.
25170 (gimple_fold_stmt_to_constant_1): Don't fold
25171 calls to internal functions.
25172 * gimple-low.c (gimple_check_call_args): Handle calls to internal
25174 * gimple-pretty-print.c (dump_gimple_call): Likewise.
25175 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
25176 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
25177 (do_warn_unused_result): Likewise.
25178 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
25179 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
25180 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
25181 the target of a call.
25182 (initialize_hash_element): Update accordingly.
25183 (hashable_expr_equal_p): Use gimple_call_same_target_p.
25184 (iterative_hash_hashable_expr): Handle calls to internal functions.
25185 (print_expr_hash_elt): Likewise.
25186 * tree-ssa-pre.c (can_value_number_call): Likewise.
25187 (eliminate): Handle null functions.
25188 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
25189 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
25190 (find_func_aliases): Likewise.
25191 * value-prof.c (gimple_ic_transform): Likewise.
25192 (gimple_indirect_call_to_profile): Likewise.
25193 * lto-streamer-in.c (input_gimple_stmt): Likewise.
25194 * lto-streamer-out.c (output_gimple_stmt): Likewise.
25196 2011-04-19 Jan Hubicka <jh@suse.cz>
25198 * ipa-inline-transform.c (save_inline_function_body): Add comments.
25199 * ipa-inline.c (inline_small_functions): Compute summaries first,
25200 populate heap later.
25202 2011-04-19 Jan Hubicka <jh@suse.cz>
25204 * cgraph.h (save_inline_function_body): Remove.
25205 * ipa-inline-transform.c: New file, broke out of...
25206 * ipa-inline.c: ... this one; Update toplevel comment.
25207 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
25209 (update_noncloned_frequencies): Move to ipa-inline-transform.c
25210 (cgraph_mark_inline_edge): Rename to inline_call; move to
25211 ipa-inline-transform.c.
25212 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
25213 move to ipa-inline-transform.c
25214 (recursive_inlining, inline_small_functions, flatten_function,
25215 ipa_inline, inline_always_inline_functions,
25216 early_inline_small_functions): Update.
25217 (inline_transform): Move to ipa-inline-transform.c.
25218 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
25220 * Makefile.in (ipa-inline-transform.o): New file.
25221 * cgraphunit.c (save_inline_function_body): Move to
25222 ipa-inline-transform.c
25224 2011-04-19 DJ Delorie <dj@redhat.com>
25226 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
25227 registers if we already know there aren't any.
25228 (m32c_emit_epilogue): Don't emit a barrier here.
25229 (m32c_emit_eh_epilogue): Likewise.
25230 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
25231 operands at expand time.
25232 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
25234 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
25235 duplicates. Provide aliases instead.
25236 * config/m32c/prologue.md (eh_return): Emit a barrier here.
25237 (eh_epilogue): Add a "(return)" here as a hint to other parts of
25240 2011-04-19 Anatoly Sokolov <aesok@post.ru>
25242 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
25243 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
25244 (general_or_i64_p, sparc_register_move_cost): New function.
25246 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25248 * doc/install.texi (Configuration, --enable-threads): Remove mach.
25249 Add lynx, mipssde. Sort table.
25251 2011-04-19 Xinliang David Li <davidxl@google.com>
25253 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
25256 2011-04-19 Jakub Jelinek <jakub@redhat.com>
25259 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
25260 is a SUBREG with non-MODE_INT mode inside of it.
25262 2011-04-19 Martin Jambor <mjambor@suse.cz>
25264 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
25265 also according to actual contants.
25266 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
25267 (gimple_fold_call): Use it.
25268 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
25270 2011-04-19 Martin Jambor <mjambor@suse.cz>
25272 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
25273 non-pointer assignments.
25275 2011-04-19 Martin Jambor <mjambor@suse.cz>
25277 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
25278 account anc_offset and otr_type from the indirect edge info.
25279 * ipa-prop.c (get_ancestor_addr_info): New function.
25280 (compute_complex_ancestor_jump_func): Assignment analysis moved to
25281 get_ancestor_addr_info, call it.
25282 (ipa_note_param_call): Do not initialize information about polymorphic
25283 calls, return the indirect call graph edge. Remove the last
25284 parameter, adjust all callers.
25285 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
25286 parameters. Initialize polymorphic information in the indirect edge.
25288 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
25291 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
25292 the types if they have different enumeration identifiers.
25294 2011-04-19 Jan Hubicka <jh@suse.cz>
25296 * cgraph.h (cgraph_optimize_for_size_p): Declare.
25297 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
25298 * predict.c (cgraph_optimize_for_size_p): Break out from ...
25299 (optimize_function_for_size_p) ... here.
25301 2011-04-19 Richard Guenther <rguenther@suse.de>
25304 * tree.c (free_lang_data): Do not reset the decl-assembler-name
25307 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
25309 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
25310 if DECL_NO_INLINE_WARNING_P is set on the function.
25312 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
25315 * reload1.c (inc_for_reload): Return void. All callers changed.
25316 (emit_input_reload_insns): Don't try to delete previous output
25317 reloads to a register, or record spill_reg_store for autoincs.
25319 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
25321 * gengtype.h: Updated copyright year.
25322 (struct input_file_st): Add inpisplugin field.
25323 (type_fileloc): New function.
25325 (write_typed_struct_alloc_def): Add gcc_assert.
25326 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
25327 (write_typed_alloc_defns): Don't output for plugin files.
25328 (input_file_by_name): Clear inpisplugin field.
25329 (main): Set inpisplugin field for plugin files.
25331 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
25333 * gengtype-state.c (string_eq): New.
25334 (read_state): Use string_eq instead of strcmp when creating the
25337 2011-04-19 Wei Guozhi <carrot@google.com>
25340 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
25341 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
25343 * config/arm/constraints.md (Uu): New constraint.
25344 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
25346 2011-04-19 Tristan Gingold <gingold@adacore.com>
25348 * config.gcc (-*-*-*vms): Added.
25349 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
25351 * config/vms/vms-ld.c: New file.
25352 * config/vms/vms-ar.c: New file.
25353 * config/vms/t-vmsnative: New file.
25355 2011-04-18 Xinliang David Li <davidxl@google.com>
25357 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
25359 2011-04-18 Jakub Jelinek <jakub@redhat.com>
25361 PR middle-end/48661
25362 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
25363 if TREE_TYPE (v) is non-NULL.
25365 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
25366 gimple_get_virt_mehtod_for_binfo.
25367 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
25368 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
25370 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
25372 2011-04-18 Michael Matz <matz@suse.de>
25373 Steve Ellcey <sje@cup.hp.com>
25375 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
25376 use its mode as source mode if it isn't VOIDmode.
25378 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
25380 * doc/passes.texi: Fill crossref nodes.
25382 2011-04-18 Jim Meyering <meyering@redhat.com>
25384 Fix doubled-word typos in comments and strings
25385 * config/alpha/vms-unwind.h: s/for for/for/
25386 * config/arm/unwind-arm.h: Likewise.
25387 * config/microblaze/microblaze.c: Likewise.
25388 * config/sh/constraints.md: s/in in/in/
25389 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
25391 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
25393 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
25394 (AVX_FLOAT_MODE_P): Ditto.
25395 (AVX128_VEC_FLOAT_MODE_P): Ditto.
25396 (AVX256_VEC_FLOAT_MODE_P): Ditto.
25397 (AVX_VEC_FLOAT_MODE_P): Ditto.
25398 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
25399 (UNSPEC_MASKSTORE): Ditto.
25400 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
25401 Merge from <sse>_movmsk<ssemodesuffix> and
25402 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
25403 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
25405 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
25406 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
25407 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
25409 2011-04-18 Jan Hubicka <jh@suse.cz>
25411 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
25413 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
25414 (want_inline_function_called_once_p): Break out the logic from
25416 (edge_badness): Ensure that profile is not misupdated.
25417 (lookup_recursive_calls): Prioritize by call frequencies.
25418 (inline_small_functions): Move program size estimates here;
25419 actually process whole queue even when unit growth has been
25420 met. (to properly compute inline_failed reasons and for the
25421 case unit size decrease.) Revisit comments on recursive inlining.
25422 (ipa_inline): Remove unit summary code; first inline hot calls
25423 of functions called once, cold calls next.
25424 (order, nnodes): Remove unused variables.
25425 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
25426 (GTFILES): Remove ipa-inline.c
25427 * sel-sched.c (fill_insns): Silence uninitialized var warning.
25429 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
25431 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
25433 2011-04-18 Jie Zhang <jie@codesourcery.com>
25434 Richard Earnshaw <rearnsha@arm.com>
25436 * arm.c (neon_builtin_type_bits): Remove.
25437 (typedef enum neon_builtin_mode): New.
25438 (T_MAX): Don't define.
25439 (typedef enum neon_builtin_datum): Remove bits, codes[],
25440 num_vars and base_fcode. Add mode, code and fcode.
25441 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
25442 VAR10): Change accordingly.
25443 (neon_builtin_data[]): Change accordingly
25444 (arm_init_neon_builtins): Change accordingly.
25445 (neon_builtin_compare): Remove.
25446 (locate_neon_builtin_icode): Remove.
25447 (arm_expand_neon_builtin): Change accordingly.
25449 * arm.h (enum arm_builtins): Move to ...
25450 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
25452 * arm.c (arm_builtin_decl): Declare.
25453 (TARGET_BUILTIN_DECL): Define.
25454 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
25455 (arm_builtin_decls[]): New.
25456 (arm_init_neon_builtins): Store builtin declarations in
25457 arm_builtin_decls[].
25458 (arm_init_tls_builtins): Likewise.
25459 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
25460 (arm_builtin_decl): New.
25462 2011-04-18 Richard Guenther <rguenther@suse.de>
25464 * tree.c (upper_bound_in_type): Build properly canonicalized
25466 (lower_bound_in_type): Likewise.
25468 2011-04-18 Richard Guenther <rguenther@suse.de>
25470 * gimple.h (gimple_call_addr_fndecl): New function.
25471 (gimple_call_fndecl): Use it.
25472 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
25474 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
25475 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
25477 2011-04-18 Richard Guenther <rguenther@suse.de>
25479 PR middle-end/48650
25480 * tree.c (build_string): STRING_CST is now derived from tree_typed.
25482 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
25485 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
25486 DECL_IN_CONSTANT_POOL without RTL.
25488 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
25489 Ira Rosen <ira.rosen@linaro.org>
25492 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
25493 to match neon_vzip/vuzp/vtrn_internal.
25494 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
25495 outputs explicitly dependent on both inputs.
25496 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
25498 2011-04-18 Jakub Jelinek <jakub@redhat.com>
25500 PR tree-optimization/48616
25501 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
25502 whether the shift is by scalar or vector based on whether all SLP
25503 scalar stmts have the same rhs.
25505 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
25507 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
25510 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
25513 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
25516 2011-04-17 Jan Hubicka <jh@suse.cz>
25518 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
25519 * cgrpahunit.c (cgraph_finalize_function): Do not set
25520 finalized_by_frontend.
25521 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
25522 finalized_by_frontend.
25524 2011-04-17 Jan Hubicka <jh@suse.cz>
25526 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
25527 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
25528 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
25529 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
25531 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
25533 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
25535 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
25538 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
25539 is non-null before accessing it.
25540 (input_cgraph): Remove trailing spaces.
25542 2011-04-17 Revital Eres <revital.eres@linaro.org>
25544 * params.def (sms-min-sc): New param flag.
25545 * modulo-sched.c (sms_schedule): Use it.
25546 * doc/invoke.texi (sms-min-sc): Document it.
25548 2011-04-17 Jan Hubicka <jh@suse.cz>
25550 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
25551 present, also set gimple_call_set_cannot_inline.
25552 * ipa-inline.c: Update toplevel comment.
25553 (MAX_TIME): Remove.
25554 (cgraph_clone_inlined_nodes): Fix linebreaks.
25555 (cgraph_check_inline_limits): Restructure to ...
25556 (caller_growth_limits): ... this one; be more tolerant
25557 on growth in nested inline chains; add explanatory comment;
25558 fix stack accounting thinko introduced by previous patch.
25559 (cgraph_default_inline_p): Remove.
25560 (report_inline_failed_reason): New function.
25561 (can_inline_edge_p): New function.
25562 (can_early_inline_edge_p): New function.
25563 (leaf_node_p): Move upwards in file.
25564 (want_early_inline_function_p): New function.
25565 (want_inline_small_function_p): New function.
25566 (want_inline_self_recursive_call_p): New function.
25567 (cgraph_edge_badness): Rename to ...
25568 (edge_badness) ... this one; fix linebreaks.
25569 (update_edge_key): Update call of edge_baddness; add
25570 detailed dump about queue updates.
25571 (update_caller_keys): Use can_inline_edge_p and
25572 want_inline_small_function_p.
25573 (cgraph_decide_recursive_inlining): Rename to...
25574 (recursive_inlining): Use can_inline_edge_p and
25575 want_inline_self_recursive_call_p; simplify and remove no longer
25577 (cgraph_set_inline_failed): Remove.
25578 (add_new_edges_to_heap): Use can_inline_edge_p and
25579 want_inline_small_function_p.
25580 (cgraph_decide_inlining_of_small_functions): Rename to ...
25581 (inline_small_functions): ... this one; cleanup; use
25582 can/want predicates; cleanup debug ouput; work edges till fibheap
25583 is exhausted and do not stop once unit growth is reached; remove
25584 later loop processing remaining edges.
25585 (cgraph_flatten): Rename to ...
25586 (flatten_function): ... this one; use can_inline_edge_p
25587 and can_early_inline_edge_p predicates.
25588 (cgraph_decide_inlining): Rename to ...
25589 (ipa_inline): ... this one; remove unreachable nodes before
25590 inlining functions called once; simplify the pass.
25591 (cgraph_perform_always_inlining): Rename to ...
25592 (inline_always_inline_functions): ... this one; use
25593 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
25594 (cgraph_decide_inlining_incrementally): Rename to ...
25595 (early_inline_small_functions): ... this one; simplify
25596 using new predicates; cleanup; make dumps prettier.
25597 (cgraph_early_inlining): Rename to ...
25598 (early_inliner): newer inline regular functions into always-inlines;
25599 fix updating of call stmt summaries.
25600 (pass_early_inline): Update for new names.
25601 (inline_transform): Fix formating.
25602 (gate_cgraph_decide_inlining): Rename to ...
25603 (pass_ipa_inline): ... this one.
25604 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
25605 * ipa-inline-analysis.c (dump_inline_summary): Update.
25606 (compute_inline_parameters): Do not compute disregard_inline_limits;
25607 look for mismatching arguments.
25608 (estimate_growth): Fix handlig of non-trivial self recursion.
25609 (inline_read_summary): Do not read info->disregard_inline_limits.
25610 (inline_write_summary): Do not write info->disregard_inline_limits.
25611 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
25612 and move all checks into can_inline_edge_p predicate; re-enable code
25613 comparing optimization levels.
25614 (expand_call_inline): Do not test inline_forbidden_into_p.
25615 * Makefile.in (ipa-inline.o): Update arguments.
25617 2011-04-17 Revital Eres <revital.eres@linaro.org>
25619 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
25621 2011-04-17 Revital Eres <revital.eres@linaro.org>
25623 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
25625 2011-04-17 Michael Matz <matz@suse.de>
25627 PR tree-optimization/48622
25629 * ipa-inline-analysis.c (inline_read_summary): Read size/time
25630 in same order as they're written.
25632 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
25634 * config/pa/predicates.md: Reorganize and simplify predicates.
25635 Eliminate duplicate code checks.
25636 (arith_operand): Rename to arith14_operand
25637 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
25638 * config/pa/pa.md: Use renamed operands.
25639 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
25640 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
25641 arith11_operand, adddi3_operand, indexed_memory_operand,
25642 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
25643 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
25644 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
25645 move_dest_operand, move_src_operand, prefetch_cc_operand,
25646 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
25647 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
25648 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
25649 div_operand, int5_operand, movb_comparison_operator,
25650 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
25651 arith_double_operand, ireg_operand, lhs_lshift_operand,
25652 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
25653 integer_store_memory_operand): Likewise.
25654 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
25655 (integer_store_memory_operand, read_only_operand,
25656 function_label_operand, borx_reg_operand,
25657 non_hard_reg_operand): Likewise.
25658 (eq_neq_comparison_operator): Delete unused operator.
25659 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
25660 function_label_operand.
25661 (emit_move_sequence): Likewise.
25663 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
25665 * config/i386/sse.md (sseunpackmode): New mode attribute.
25666 (ssepackmode): Ditto.
25667 (vec_pack_trunc_<mode>): Macroize expander from
25668 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
25669 (vec_unpacks_lo_<mode>): Macroize expander from
25670 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
25671 (vec_unpacks_hi_<mode>): Macroize expander from
25672 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
25673 (vec_unpacku_lo_<mode>): Macroize expander from
25674 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
25675 (vec_unpacku_hi_<mode>): Macroize expander from
25676 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
25677 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
25678 ix86_expand_sse4_unpack.
25679 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
25681 2011-04-16 Jan Hubicka <jh@suse.cz>
25683 * cgraphbuild.c: Include ipa-inline.h.
25684 (reset_inline_failed): Use initialize_inline_failed.
25685 * cgraph.c: Include ipa-inline.h.
25686 (cgraph_create_node_1): Do not initialize estimated_growth.
25687 (initialize_inline_failed): More to ipa-inline-analysis.c
25688 (dump_cgraph_node): Do not dump inline flags.
25689 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
25690 and disregard_inline_limits flags.
25691 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
25692 time, size, estimated_growth.
25693 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
25695 * cgraphunit.c (cgraph_decide_is_function_needed): Use
25696 DECL_DISREGARD_INLINE_LIMITS.
25697 (cgraph_analyze_function): Do not initialize
25698 node->local.disregard_inline_limits.
25699 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
25700 inlinable, versionable and disregard_inline_limits.
25701 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
25702 cgraph_check_inline_limits, cgraph_default_inline_p,
25703 cgraph_edge_badness, update_caller_keys, update_callee_keys,
25704 add_new_edges_to_heap): Update.
25705 (cgraph_decide_inlining_of_small_function): Update; set
25706 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
25707 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
25708 cgraph_decide_inlining_incrementally): Update.
25709 * ipa-inline.h (inline_summary): Add inlinable, versionable,
25710 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
25711 time, size and estimated_growth parameters.
25712 (estimate_edge_growth): Update.
25713 (initialize_inline_failed): Declare.
25714 * ipa-split.c: Include ipa-inline.h
25715 (execute_split_functions): Update.
25716 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
25717 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
25718 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
25719 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
25720 estimated_growth to INT_MIN.
25721 (inline_node_duplication_hook): Likewise.
25722 (dump_inline_summary): Dump new fields.
25723 (compute_inline_parameters): Update.
25724 (estimate_edge_time, estimate_time_after_inlining,
25725 estimate_size_after_inlining, estimate_growth, inline_read_summary,
25726 inline_write_summary):
25727 (initialize_inline_failed): Move here from cgraph.c.
25728 * tree-sra.c: Include ipa-inline.h.
25729 (ipa_sra_preliminary_function_checks): Update.
25730 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
25733 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
25735 * config/i386/sse.md (V16): New mode iterator.
25737 (AVXMODEQI, AVXMODEDI): Remove.
25738 (sse2, sse3): New mode attribute.
25739 (mov<mode>): Use V16 mode iterator.
25740 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
25741 (push<mode>1): Use V16 mode iterator.
25742 (movmisalign<mode>): Ditto.
25743 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
25744 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
25745 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
25746 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
25747 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
25748 avx_movdqu<avxmodesuffix>.
25749 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
25750 *avx_movdqu<avxmodesuffix>.
25751 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
25752 avx_lddqu<avxmodesuffix>.
25753 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
25754 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
25755 avx_movnt<AVXMODEDI:mode>.
25756 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
25757 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
25759 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
25762 * haifa-sched.c (prune_ready_list, schedule_block): Use
25763 sched_pressure_p rather than flag_sched_pressure.
25765 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
25767 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
25768 cgraph_get_node instead of cgraph_get_create_node.
25770 2011-04-15 Jakub Jelinek <jakub@redhat.com>
25772 * cfgexpand.c (expand_debug_expr): Use
25773 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
25775 2011-04-15 Michael Matz <matz@suse.de>
25777 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
25778 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
25779 * function.c (gimplify_parameters): Ditto.
25780 * gimplify.c (gimplify_vla_decl): Ditto.
25782 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
25783 (gimple_call_set_alloca_for_var): New inline function.
25784 (gimple_call_alloca_for_var_p): Ditto.
25785 * gimple.c (gimple_build_call_from_tree): Remember
25786 CALL_ALLOCA_FOR_VAR_P state.
25787 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
25789 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
25790 calls if they were for VLA objects.
25792 2011-04-15 Martin Jambor <mjambor@suse.cz>
25794 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
25797 2011-04-15 Martin Jambor <mjambor@suse.cz>
25799 PR middle-end/48601
25800 * tree-emutls.c (lower_emutls_function_body): Call
25801 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
25802 result is non-NULL.
25804 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
25806 * c-decl.c (detect_field_duplicates): Call
25807 objc_detect_field_duplicates instead of objc_get_interface_ivars.
25809 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
25811 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
25812 * gimple.c (gimple_asm_clobbers_memory_p): Define.
25813 * ipa-pure-const.c (check_stmt): Call it.
25814 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
25816 2011-04-15 Richard Guenther <rguenther@suse.de>
25818 PR tree-optimization/48290
25819 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
25820 Properly decide inhibiting propagation based on the valueized
25821 operand. Do loop-closed SSA form preserving here ...
25822 (init_copy_prop): ... not here.
25824 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
25827 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
25828 (*ieee_smax<mode>3): Likewise.
25830 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25832 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
25833 Replace match_operand with match_dup for the third operand in
25836 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
25838 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
25839 to track processing of conditionals. Update all callers.
25840 (try_combine, simplify_if_then_else): Update.
25842 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
25844 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
25847 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
25849 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
25850 instead of match_operand for operand 3.
25852 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
25854 * recog.h (insn_operand_data): Add an "allows_mem" field.
25855 * genoutput.c (output_operand_data): Initialize it.
25856 * optabs.c (maybe_legitimize_operand_same_code): New function.
25857 (maybe_legitimize_operand): Use it when matching the original
25860 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
25862 * gimplify.c: Fix issues in comments throughout.
25863 (voidify_wrapper_expr): Fix long line.
25864 (build_stack_save_restore): Likewise.
25865 (gimplify_loop_expr): Likewise.
25866 (gimplify_compound_lval): Likewise.
25867 (gimplify_init_ctor_eval): Likewise.
25868 (gimplify_modify_expr_rhs): Likewise.
25869 (omp_notice_threadprivate_variable): Likewise.
25871 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
25873 * cfgexpand.c (expand_call_stmt): Convert the function type to the
25874 original one if this is not a builtin function.
25876 2011-04-14 Jakub Jelinek <jakub@redhat.com>
25879 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
25880 offset it as needed based on top 2 bits in operands[3], change
25881 MEM mode to SFmode and mask those 2 bits away from operands[3].
25883 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
25885 * c-parser.c (c_parser_objc_protocol_definition): Updated for
25886 change from objc_declare_protocols() to objc_declare_protocol().
25888 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
25890 * config/i386/sse.md (sse4_1): New mode attribute.
25891 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
25892 avx_blend<ssemodesuffix><avxmodesuffix> and
25893 sse4_1_blend<ssemodesuffix> using VF mode iterator.
25894 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
25895 avx_blendv<ssemodesuffix><avxmodesuffix> and
25896 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
25897 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
25898 avx_dp<ssemodesuffix><avxmodesuffix> and
25899 sse4_1_dp<ssemodesuffix> using VF mode iterator.
25900 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
25901 (sse4_1_packusdw): Merge with *avx_packusdw.
25902 (sse4_1_pblendvb): Merge with *avx_pblendvb.
25903 (sse4_1_pblendw): Merge with *avx_pblendw.
25904 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
25905 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
25906 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
25908 (sse4_1_round<ssescalarmodesuffix>): Merge with
25909 *avx_round<ssescalarmodesuffix>.
25910 (aesenc): Merge with *avx_aesenc.
25911 (aesenclast): Merge with *avx_aesenclast.
25912 (aesdec): Merge with *avx_aesdec.
25913 (aesdeclast): Merge with *avx_aesdeclast.
25914 (pclmulqdq): Merge with *pclmulqdq.
25915 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
25917 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
25919 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
25921 PR middle-end/48608
25922 * cfgexpand.c (get_decl_align_unit): Renamed to ...
25923 (align_local_variable): This. Update DECL_ALIGN.
25924 (add_stack_var): Updated.
25925 (expand_one_stack_var): Likewise.
25927 2011-04-14 Richard Guenther <rguenther@suse.de>
25929 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
25931 (dse_initialize_block_local_data, dse_leave_block,
25932 record_voperand_set, get_stmt_uid): Likewise.
25933 (dse_possible_dead_store_p): Allow any kind of killing stmt.
25934 (dse_optimize_stmt): Remove voperand set handling code.
25935 Simplify and improve to handle any kind of killing stmt.
25936 (dse_record_phi): Remove.
25937 (dse_enter_block): Simplify.
25938 (tree_ssa_dse): Likewise.
25939 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
25941 2011-04-14 Jan Hubicka <jh@suse.cz>
25943 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
25944 * cgraph.h (struct inline_summary): Move to ipa-inline.h
25945 (cgraph_local_info): Remove inline_summary.
25946 * ipa-cp.c: Include ipa-inline.h.
25947 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
25948 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
25950 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
25951 (input_overwrite_node): Do not set inline summary.
25952 (input_node): Do not stream inline summary.
25953 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
25954 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
25955 growth; we do not have inline parameters computed for that anyway.
25956 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
25957 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
25958 (inline_summary_t): New type and VECtor.
25959 (debug_inline_summary, dump_inline_summaries): Declare.
25960 (inline_summary): Use VOCtor.
25961 (estimate_edge_growth): Kill hack computing call stmt size directly.
25962 * lto-section-in.c (lto_section_name): Add inline section.
25963 * ipa-inline-analysis.c: Include lto-streamer.h
25964 (node_removal_hook_holder, node_duplication_hook_holder): New holders
25965 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
25966 (inline_summary_vec): Define.
25967 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
25968 dump_inline_summaries): New functions.
25969 (estimate_function_body_sizes): Properly compute size/time of outgoing
25971 (compute_inline_parameters): Alloc inline_summary; do not compute
25972 size/time of incomming calls.
25973 (estimate_edge_time): Avoid missing time summary hack.
25974 (inline_read_summary): Read inline summary info.
25975 (inline_write_summary): Write inline summary info.
25976 (inline_free_summary): Free all hooks and inline summary vector.
25977 * lto-streamer.h: Add LTO_section_inline_summary section.
25978 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
25979 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
25981 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
25983 * tree-vectorizer.h (vect_strided_store_supported): Add a
25984 HOST_WIDE_INT argument.
25985 (vect_strided_load_supported): Likewise.
25986 (vect_permute_store_chain): Return void.
25987 (vect_transform_strided_load): Likewise.
25988 (vect_permute_load_chain): Delete.
25989 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
25990 count argument. Check that the count is a power of two.
25991 (vect_strided_load_supported): Likewise.
25992 (vect_permute_store_chain): Return void. Update after above changes.
25993 Assert that the access is supported.
25994 (vect_permute_load_chain): Likewise.
25995 (vect_transform_strided_load): Return void.
25996 * tree-vect-stmts.c (vectorizable_store): Update calls after
25997 above interface changes.
25998 (vectorizable_load): Likewise.
25999 (vect_analyze_stmt): Don't check for strided powers of two here.
26001 2011-04-14 Richard Guenther <rguenther@suse.de>
26003 PR tree-optimization/48590
26004 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
26005 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
26006 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
26007 BUILT_IN_STACK_SAVE.
26008 * tree-ssa-dce.c (propagate_necessity): Handle
26009 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
26011 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
26013 * c-parser.c (c_parser_objc_class_declaration): Updated call to
26014 objc_declare_class.
26016 2011-04-14 Richard Guenther <rguenther@suse.de>
26018 * tree.h (get_object_alignment_1): Declare.
26019 * builtins.c (get_object_alignment_1): Split out worker from ...
26020 (get_object_alignment): ... here.
26021 * fold-const.c (get_pointer_modulus_and_residue): Use
26022 get_object_alignment_1.
26024 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
26026 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
26028 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
26029 parameter. Generalise code to handle arrays as well as vectors.
26030 (vect_setup_realignment): Update accordingly.
26031 * tree-vect-stmts.c (vectorizable_store): Likewise.
26032 (vectorizable_load): Likewise.
26034 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
26036 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
26037 within the per-copy loop.
26039 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
26041 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
26044 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
26046 * doc/options.texi (Negative): Explicitly mention that the
26047 Negative chain must be circular.
26049 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
26051 * function.h (block_chainon): Declare.
26052 * function.c (block_chainon): Define.
26054 2011-04-14 Anatoly Sokolov <aesok@post.ru>
26055 Eric Weddington <eric.weddington@atmel.com>
26056 Georg-Johann Lay <avr@gjlay.de>
26058 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
26060 (avr_init_builtins, avr_expand_builtin,
26061 avr_expand_delay_cycles, avr_expand_unop_builtin,
26062 avr_expand_binop_builtin ): New functions.
26063 (avr_builtin_id): New enum
26064 (struct avr_builtin_description): New struct
26065 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
26066 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
26068 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
26069 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
26070 UNSPECV_DELAY_CYCLES): new enumeration values
26071 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
26072 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
26073 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
26074 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
26075 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
26076 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
26077 "fmulsu"): New insns
26079 * config/avr/avr-c.c: fix line endings
26080 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
26081 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
26082 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
26083 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
26084 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
26086 * doc/extend.texi (AVR Built-in Functions): New node
26087 (Target Builtins): Add documentation of AVR
26088 built-in functions.
26090 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
26093 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
26094 alone. Error if non-const data has attribute progmem.
26096 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
26098 * tree.h (struct tree_constructor): Include tree_typed instead of
26100 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
26101 TS_TYPED instead of TS_COMMON.
26103 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
26105 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
26106 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
26107 (sse2_psadbw): Merge with *avx_psadbw.
26108 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
26109 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
26110 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
26111 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
26112 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
26113 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
26114 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
26115 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
26116 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
26117 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
26118 (ssse3_palignrti): Merge with *avx_palignrti.
26120 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
26122 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
26123 * tree-ssanames.c (fini_ssanames): VEC_free it.
26124 (make_ssa_name_fn): Update for VECness of free_ssanames.
26125 (release_ssa_name, release_dead_ssa_names): Likewise.
26126 * tree.h (struct tree_ssa_name): Include tree_typed instead of
26128 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
26129 TS_TYPED instead of TS_COMMON.
26131 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
26133 * postreload-gcse.c (gcse_after_reload_main): Add calls to
26134 statistics_counter_event.
26135 * tree-ssa-copyrename.c (stats): Define.
26136 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
26137 statistics_counter_event.
26138 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
26139 (bswap_stats, widen_mul_stats): Define.
26140 (insert_reciprocals): Increment rdivs_inserted.
26141 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
26142 rfuncs_inserted. Add calls to statistics_counter_event.
26143 (execute_cse_sincos_1): Increment inserted.
26144 (execute_cse_sincos): Zeroize sincos_stats. Add call to
26145 statistics_counter_event.
26146 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
26147 of bswap_stats. Add calls to statistics_counter_event.
26148 (convert_mult_to_widen): Increment widen_mults_inserted.
26149 (convert_plusminus_to_widen): Increment maccs_inserted.
26150 (convert_mult_to_fma): Increment fmas_inserted.
26151 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
26152 calls to statistics_counter_event.
26154 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
26156 PR rtl-optimization/48455
26157 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
26158 `temp_costs->mem_cost'.
26160 2011-04-13 Jan Hubicka <jh@suse.cz>
26162 * ipa-inline.h: New file.
26163 * ipa-inline-analysis.c: New file. Broken out of ...
26164 * ipa-inline.c: ... this file; update toplevel comment;
26165 include ipa-inline.h
26166 (inline_summary): Move to ipa-inline.h
26167 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
26168 ipa-inline-analysis.c.
26169 (cgraph_estimate_time_after_inlining): Rename to
26170 estiamte_time_after_inlining; move to ipa-inline-analysis.c
26171 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
26172 to estimate_edge_growth.
26173 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
26174 rename to estimate_size_after_inlining.
26175 (cgraph_mark_inline_edge): Update for new naming convention.
26176 (cgraph_check_inline_limits): Likewise.
26177 (cgraph_edge_badness): Likewise.
26178 (cgraph_decide_recursive_inlining): Likewise.
26179 (cgraph_decide_inlining_of_small_functions): Likewise.
26180 (cgraph_decide_inlining_incrementally): Likewise.
26181 (cgraph_estimate_growth): Rename to estimate_growth; move to
26182 ipa-inline-analysis.c.
26183 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
26184 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
26185 (compute_inline_parameters): Likewise.
26186 (compute_inline_parameters_for_current): Likewise.
26187 (pass_inline_parameters): Likewise.
26188 (inline_indirect_intraprocedural_analysis): Likewise.
26189 (analyze_function): Rename to inline_analyze_function; likewise.
26190 (add_new_function): Move to ipa-inline-analysis.c.
26191 (inline_generate_summary): Likewise.
26192 (inline_read_summary): Likewise.
26193 (inline_write_summary): Likewise.
26194 * Makefile.in (ipa-inline-analysis.c): New file.
26196 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26198 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
26199 * configure: Regenerate.
26201 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
26203 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
26204 instead of tree_common.
26205 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
26207 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
26208 TS_TYPED rather than TS_COMMON.
26209 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
26211 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
26214 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
26215 r20 around calls of __tablejump_elpm__
26217 2011-04-13 Jakub Jelinek <jakub@redhat.com>
26219 PR middle-end/48591
26220 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
26222 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
26224 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
26226 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
26227 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
26228 (cfi_vec): New typedef.
26229 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
26230 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
26231 (cie_cfi_vec): New static variable.
26232 (cie_cfi_head): Delete.
26233 (add_cfi): Accept a cfi_vec * as first argument. All callers and
26234 declaration changed. Use vector rather than list operations.
26235 (new_cfi): Don't initialize the dw_cfi_next field.
26236 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
26237 rather than list operations.
26238 (lookup_cfa): Use vector rather than list operations.
26239 (output_cfis): New argument upto. Accept a cfi_vec rather than
26240 a dw_cfi_ref list head as argument. All callers changed.
26241 Iterate over the vector using upto as a maximum index.
26242 (output_all_cfis): New static function.
26243 (output_fde): Use vector rather than list operations. Use the
26244 new upto argument for output_cfis rather than manipulating a
26246 (dwarf2out_begin_prologue): Change initializations to match
26247 new struct members.
26248 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
26249 from the vector length rather than searching for the end of a list.
26250 Use output_all_cfis.
26251 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
26253 2011-04-13 Nick Clifton <nickc@redhat.com>
26255 * config/rx/rx.md (movmemsi): Do not use this pattern when
26256 volatile pointers are involved.
26258 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
26260 * config/i386/sse.md (pinsrbits): Remove.
26261 (sse2_packsswb): Merge with *avx_packsswb.
26262 (sse2_packssdw): Merge with *avx_packssdw.
26263 (sse2_packuswb): Merge with *avx_packuswb.
26264 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
26265 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
26266 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
26267 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
26268 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
26269 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
26270 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
26271 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
26272 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
26273 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
26274 (sse2_loadld): Merge with *avx_loadld.
26275 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
26276 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
26277 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
26278 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
26279 (vec_concatv2di): Merge with *vec_concatv2di_avx.
26281 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
26283 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
26284 calling TREE_CHAIN.
26285 * print-tree.c (print_node): Likewise.
26286 * tree-inline.c (copy_tree_r): Likewise.
26287 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
26288 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
26289 instead of TS_COMMON.
26290 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
26291 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
26292 (copy_node_stat): Zero TREE_CHAIN only if necessary.
26293 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
26294 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
26296 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
26298 (TREE_CHAIN): Check for a TS_COMMON structure.
26299 (TREE_TYPE): Check for a TS_TYPED structure.
26301 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
26303 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
26304 cgraph_get_create_node instead of cgraph_node.
26306 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
26308 * c-parser.c (c_parser_initelt): Updated call to
26309 objc_build_message_expr.
26310 (c_parser_postfix_expression): Likewise.
26312 2011-04-12 Kai Tietz <ktietz@redhat.com>
26314 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
26315 MASK_MS_BITFIELD_LAYOUT bit.
26317 2011-04-12 Jakub Jelinek <jakub@redhat.com>
26319 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
26320 assert it is always true.
26321 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
26324 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
26326 * c-parser.c (c_lex_one_token): Rewritten conditional used when
26327 compiling Objective-C to be more efficient.
26329 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
26331 * opts-common.c (decode_cmdline_options_to_array): Remove variable
26334 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
26336 * recog.h, genoutput.c, optabs.c: Revert last patch.
26338 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
26341 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
26343 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
26345 * recog.h (insn_operand_data): Add an "allows_mem" field.
26346 * genoutput.c (output_operand_data): Initialize it.
26347 * optabs.c (maybe_legitimize_operand_same_code): New function.
26348 (maybe_legitimize_operand): Use it when matching the original
26351 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
26353 * genpreds.c (process_define_predicate): Move most processing
26354 to gensupport.c. Continue to validate the expression.
26355 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
26356 (process_define_predicate): Move processing to gensupport.c.
26357 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
26358 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
26359 (compute_predicate_codes): Moved from genrecog.c. Add lineno
26361 (valid_predicate_name_p): New function, split out from old
26362 genpreds.c:process_define_predicate.
26363 (process_define_predicate): New function, combining code from
26364 old genpreds.c and genrecog.c functions.
26365 (process_rtx): Call it for DEFINE_PREDICATE and
26366 DEFINE_SPECIAL_PREDICATE.
26368 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
26370 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
26371 size of a '%A' memory reference.
26372 (T_DREG, T_QREG): New neon_builtin_type_bits.
26373 (arm_init_neon_builtins): Assert that the load and store operands
26374 are neon_struct_operands.
26375 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
26376 (NEON_ARG_MEMORY): New builtin_arg.
26377 (neon_dereference_pointer): New function.
26378 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
26379 Handle NEON_ARG_MEMORY.
26380 (arm_expand_neon_builtin): Update after above interface changes.
26381 Use NEON_ARG_MEMORY for loads and stores.
26382 * config/arm/predicates.md (neon_struct_operand): New predicate.
26383 * config/arm/iterators.md (V_two_elem): Tweak formatting.
26384 (V_three_elem): Use BLKmode for accesses that have no associated mode.
26385 (V_four_elem): Tweak formatting.
26386 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
26387 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
26388 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
26389 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
26390 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
26391 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
26392 (neon_vst4<mode>): Replace pointer operand with a memory operand.
26393 Use %A in the output template.
26394 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
26395 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
26396 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
26397 the width of the memory access. Remove post-increment.
26398 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
26400 2011-04-12 Nick Clifton <nickc@redhat.com>
26402 * config/v850/v850.c (expand_prologue): Do not use the CALLT
26403 instruction for interrupt handlers if the target is the basic V850
26405 (expand_epilogue): Likewise.
26407 2011-04-12 Jakub Jelinek <jakub@redhat.com>
26409 PR rtl-optimization/48549
26410 * combine.c (propagate_for_debug): Also stop after BB_END of
26411 this_basic_block. Process LAST and just stop processing after it.
26412 (combine_instructions): If last_combined_insn has been deleted,
26413 set last_combined_insn to its PREV_INSN.
26415 2011-04-12 Richard Guenther <rguenther@suse.de>
26417 PR tree-optimization/46076
26418 * gimple.h (struct gimple_statement_call): Add fntype field.
26419 (gimple_call_fntype): Adjust.
26420 (gimple_call_set_fntype): New function.
26421 * gimple.c (gimple_build_call_1): Set the call function type.
26422 * gimplify.c (gimplify_call_expr): Preserve the function
26423 type the frontend used for the call.
26424 (gimplify_modify_expr): Likewise.
26425 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
26427 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
26429 * tree-ssa.c (useless_type_conversion_p): Function pointer
26430 conversions are useless.
26432 2011-04-12 Martin Jambor <mjambor@suse.cz>
26434 * cgraph.h (cgraph_node): Remove function declaration.
26435 (cgraph_create_node): Declare.
26436 (cgraph_get_create_node): Likewise.
26437 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
26438 Updated all callers.
26439 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
26440 the decl does not already exist. Call cgraph_get_create_node instead
26442 (cgraph_get_create_node): New function.
26443 (cgraph_same_body_alias): Update comment.
26444 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
26445 assert it does not return NULL.
26446 (cgraph_update_edges_for_call_stmt): Likewise.
26447 (cgraph_clone_edge): Likewise.
26448 (cgraph_create_virtual_clone): Likewise.
26449 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
26450 instead of cgraph_node.
26451 (cgraph_add_new_function): Call cgraph_create_node or
26452 cgraph_get_create_node instead of cgraph_node.
26453 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
26454 instead of cgraph_node.
26455 (record_eh_tables): Likewise.
26456 (mark_address): Likewise.
26457 (mark_load): Likewise.
26458 (build_cgraph_edges): Call cgraph_get_create_node instead
26460 (rebuild_cgraph_edges): Likewise.
26461 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
26462 instead of cgraph_node.
26463 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
26465 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
26466 cgraph_create_node instead of cgraph_node.
26467 * c-decl.c (finish_function): Call cgraph_get_create_node instead
26469 * lto-cgraph.c (input_node): Likewise.
26470 * lto-streamer-in.c (input_function): Likewise.
26471 * varasm.c (mark_decl_referenced): Likewise.
26472 (assemble_alias): Likewise.
26474 2011-04-12 Martin Jambor <mjambor@suse.cz>
26476 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
26477 instead of cgraph_node and assert it does not return NULL.
26478 * lto-streamer-in.c (lto_read_body): Likewise.
26479 * omp-low.c (new_omp_context): Likewise.
26480 (create_task_copyfn): Likewise.
26481 * tree-emutls.c (lower_emutls_function_body): Likewise.
26482 * matrix-reorg.c (transform_allocation_sites): Likewise.
26484 2011-04-12 Jakub Jelinek <jakub@redhat.com>
26487 * c-typeck.c (build_asm_expr): Error out on attempts to use
26488 void type outputs or inputs for constraints that allow reg or
26489 don't allow memory.
26491 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
26492 Richard Earnshaw <rearnsha@arm.com>
26495 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
26496 to use sign-magnitude offsets. Reject unsupported unaligned
26497 cases. Add detailed description in comments.
26498 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
26499 condition from TARGET_32BIT to TARGET_ARM.
26501 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
26503 * tree.h (struct typed_tree): New.
26504 (struct tree_common): Include it instead of tree_base.
26505 (TREE_TYPE): Update for new location of type field.
26506 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
26507 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
26508 (union tree_node): Add typed field.
26509 * treestruct.def (TS_TYPED): New.
26510 * lto-streamer.c (check_handled_ts_structures): Handle it.
26511 * tree.c (MARK_TS_TYPED): New macro.
26512 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
26514 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
26516 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
26517 (force_nonfallthru): Do not alter the loop nest if no basic block
26520 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
26522 * config/i386/sse.md (VI): New mode iterator.
26523 (SSEMODEI): Remove.
26524 (AVX256MODEI): Ditto.
26525 (AVXMODEF4P): Ditto.
26526 (avxvecpsmode): Ditto.
26527 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
26528 (sse2_andnot<mode>3): New expander.
26529 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
26530 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
26531 (<any_logic:code><mode>3): Use VI mode iterator.
26532 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
26533 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
26534 (*andnottf3): Handle AVX three-operand constraints.
26535 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
26537 2011-04-11 Joseph Myers <joseph@codesourcery.com>
26538 Robert Millan <rmh@gnu.org>
26540 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
26541 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
26542 GNU_USER_DYNAMIC_LINKER64): Define.
26543 (REG_NAME): Don't undefine.
26544 (MD_UNWIND_SUPPORT): Undefine.
26545 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
26546 (REG_NAME): Don't undefine.
26547 (MD_UNWIND_SUPPORT): Undefine.
26548 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
26550 2011-04-11 Joseph Myers <joseph@codesourcery.com>
26552 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
26553 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
26555 2011-04-11 Xinliang David Li <davidxl@google.com>
26557 * value-profile.c (check_ic_target): New function.
26558 (gimple_ic_transform): Sanity check indirect call target.
26559 * gimple-low.c (gimple_check_call_args): Interface change.
26560 (gimple_check_call_matching_types): New function.
26561 * tree-inline.c (tree_can_inline_p): Call new function.
26563 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
26565 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
26566 tree-pretty-print.h & realmpfr.h.
26568 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
26570 PR middle-end/48464
26571 * ira.c (setup_pressure_classes): Fix typo in loop condition.
26572 (setup_allocno_and_important_classes): Ditto.
26574 2011-04-11 Joseph Myers <joseph@codesourcery.com>
26576 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
26577 GNU_USER_DYNAMIC_LINKER.
26578 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
26579 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
26580 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
26581 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
26582 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
26583 GNU_USER_TARGET_OS_CPP_BUILTINS.
26584 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
26585 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
26586 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
26587 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
26588 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
26589 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
26590 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
26591 GNU_USER_TARGET_OS_CPP_BUILTINS.
26592 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
26593 GNU_USER_DYNAMIC_LINKER.
26594 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
26595 GNU_USER_TARGET_OS_CPP_BUILTINS.
26596 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
26597 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
26598 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
26599 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
26600 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
26601 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
26602 GNU_USER_DYNAMIC_LINKER64): Remove.
26603 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
26604 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
26605 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
26606 GNU_USER_DYNAMIC_LINKER.
26607 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
26608 GNU_USER_TARGET_OS_CPP_BUILTINS.
26609 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
26610 GNU_USER_TARGET_OS_CPP_BUILTINS.
26611 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
26612 to GNU_USER_TARGET_OS_CPP_BUILTINS.
26613 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
26614 GNU_USER_TARGET_OS_CPP_BUILTINS.
26615 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
26616 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
26617 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
26618 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
26619 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
26620 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
26621 GNU_USER_DYNAMIC_LINKER.
26622 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
26623 GNU_USER_TARGET_OS_CPP_BUILTINS.
26624 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
26625 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
26626 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
26627 GNU_USER_DYNAMIC_LINKER.
26628 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
26629 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
26630 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
26631 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
26632 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
26633 GNU_USER_DYNAMIC_LINKER.
26634 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
26635 GNU_USER_DYNAMIC_LINKERN32.
26636 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
26637 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
26638 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
26639 GNU_USER_DYNAMIC_LINKER32.
26640 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
26641 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
26642 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
26643 GNU_USER_DYNAMIC_LINKER.
26644 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
26645 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
26646 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
26647 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
26648 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
26649 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
26650 GNU_USER_DYNAMIC_LINKER32.
26651 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
26652 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
26653 GNU_USER_DYNAMIC_LINKER.
26654 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
26655 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
26656 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
26657 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
26658 GNU_USER_DYNAMIC_LINKER64.
26659 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
26660 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
26661 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
26662 GNU_USER_DYNAMIC_LINKER.
26663 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
26664 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
26665 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
26666 GNU_USER_DYNAMIC_LINKER.
26667 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
26668 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
26669 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
26670 GNU_USER_DYNAMIC_LINKER32.
26671 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
26672 GNU_USER_DYNAMIC_LINKER64.
26673 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
26674 GNU_USER_DYNAMIC_LINKER64.
26675 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
26676 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
26677 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
26678 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
26679 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
26681 2011-04-11 Joseph Myers <joseph@codesourcery.com>
26683 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
26684 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
26685 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
26686 GNU_USER_DYNAMIC_LINKER.
26687 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
26688 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
26689 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
26690 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
26691 GNU_USER_DYNAMIC_LINKER64.
26692 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
26693 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
26694 GNU_USER_LINK_EMULATION.
26695 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
26696 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
26697 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
26698 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
26699 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
26700 CPP_SPEC, CC1_SPEC): Remove.
26701 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
26702 (GNU_USER_DYNAMIC_LINKER): Define.
26703 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
26704 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
26705 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
26706 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
26707 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
26708 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
26709 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
26710 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
26711 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
26712 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
26713 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
26714 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
26715 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
26716 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
26717 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
26718 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
26719 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
26720 GNU_USER_DYNAMIC_LINKER.
26721 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
26722 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
26723 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
26724 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
26725 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
26726 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
26727 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
26728 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
26729 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
26730 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
26732 2011-04-11 Kai Tietz <ktietz@redhat.com>
26736 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
26737 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
26739 (ix86_is_msabi_thiscall): Removed.
26740 (ix86_is_type_thiscall): Likewise.
26741 (ix86_get_callcvt): New function.
26742 (ix86_comp_type_attributes): Simplify check.
26743 (ix86_function_regparm): Use ix86_get_callcvt for calling
26744 convention attribute checks.
26745 (ix86_return_pops_args): Likewise.
26746 (ix86_static_chain): Likewise.
26747 (x86_this_parameter): Likewise.
26748 (x86_output_mi_thunk): Likewise.
26749 (ix86_function_type_abi): Optimize check for types without attributes.
26750 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
26751 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
26752 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
26754 (IX86_BASE_CALLCVT): Helper macro.
26755 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
26756 Use ix86_get_callcvt for calling convention attribute checks and avoid
26757 symbol-decoration for stdcall in TARGET_RTD case.
26758 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
26760 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
26763 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
26765 * config/i386/sse.md (VI_128): New mode iterator.
26766 (VI12_128): Rename from SSEMODE12.
26767 (VI14_128): Rename from SSEMODE14.
26768 (VI124_128): New mode iterator.
26769 (VI24_128): Rename from SSEMODE248.
26770 (VI248_128): Rename from SSEMODE248.
26771 (SSEMODE124C8): Remove.
26772 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
26773 (*sse2_<plusminus_insn><mode>3): Merge with
26774 *avx_<plusminus_insn><mode>3.
26775 (*mulv8hi3): Merge with *avx_mulv8hi3.
26776 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
26777 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
26778 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
26779 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
26780 (ashr<mode>3): Merge with *avx_ashr<mode>3.
26781 (lshr<mode>3): Merge with *avx_lshr<mode>3.
26782 (ashl<mode>3): Merge with *avx_ashl<mode>3.
26783 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
26784 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
26785 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
26786 (*<smaxmin:code>v8hi3): Ditto.
26787 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
26788 (*<smaxmin:code>v16qi3): Ditto.
26789 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
26790 (*sse2_eq<mode>3): Ditto.
26791 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
26792 (*sse2_gt<mode>3): Ditto.
26793 (vcondv2di): Split out of vcond<mode>.
26794 (vconduv2di): Split out of vcondu<mode>.
26796 2011-04-11 Richard Guenther <rguenther@suse.de>
26798 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
26799 before calling tree_low_cst.
26801 2011-04-11 Richard Guenther <rguenther@suse.de>
26803 * stor-layout.c (layout_type): Compute all array index size operations
26804 in the original type.
26805 (initialize_sizetypes): Add comment.
26806 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
26808 2011-04-11 Joseph Myers <joseph@codesourcery.com>
26810 * common.opt (Tbss=, Tdata=, Ttext=): New options.
26812 2011-04-11 Martin Jambor <mjambor@suse.cz>
26814 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
26815 of cgraph_node, handle NULL return value.
26816 (cgraph_global_info): Likewise.
26817 (cgraph_rtl_info): Likewise.
26818 * tree-inline.c (estimate_num_insns): Likewise.
26819 * gimplify.c (unshare_body): Likewise.
26820 (unvisit_body): Likewise.
26821 (gimplify_body): Likewise.
26822 * predict.c (optimize_function_for_size_p): Likewise.
26823 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
26824 (call_may_clobber_ref_p_1): Likewise.
26825 * varasm.c (function_section_1): Likewise.
26826 (assemble_start_function): Likewise.
26828 2011-04-11 Martin Jambor <mjambor@suse.cz>
26830 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
26832 * final.c (rest_of_clean_state): Likewise.
26833 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
26834 * passes.c (pass_init_dump_file): Likewise.
26835 (execute_all_ipa_transforms): Likewise.
26836 (function_called_by_processed_nodes_p): Likewise.
26837 * predict.c (maybe_hot_frequency_p): Likewise.
26838 (probably_never_executed_bb_p): Likewise.
26839 (compute_function_frequency): Likewise.
26840 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
26841 (unnest_nesting_tree_1): Likewise.
26842 (lower_nested_functions): Likewise.
26843 * tree-optimize.c (execute_fixup_cfg): Likewise.
26844 (tree_rest_of_compilation): Likewise.
26845 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
26846 * tree-sra.c (ipa_early_sra): Likewise.
26847 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
26848 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
26849 * ipa.c (record_cdtor_fn): Likewise.
26850 * ipa-inline.c (cgraph_early_inlining): Likewise.
26851 (compute_inline_parameters_for_current): Likewise.
26852 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
26853 * ipa-pure-const.c (local_pure_const): Likewise.
26854 * ipa-split.c (split_function): Likewise.
26855 (execute_split_functions): Likewise.
26856 * cgraphbuild.c (build_cgraph_edges): Likewise.
26857 (rebuild_cgraph_edges): Likewise.
26858 (cgraph_rebuild_references): Likewise.
26859 (remove_cgraph_callee_edges): Likewise.
26860 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
26861 (verify_cgraph_node): Likewise.
26862 (cgraph_analyze_functions): Likewise.
26863 (cgraph_preserve_function_body_p): Likewise.
26864 (save_inline_function_body): Likewise.
26865 (save_inline_function_body): Likewise.
26866 * tree-inline.c (copy_bb): Likewise.
26867 (optimize_inline_calls): Likewise.
26869 2011-04-11 Martin Jambor <mjambor@suse.cz>
26871 PR tree-optimization/48195
26872 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
26873 ipa_check_create_edge_args.
26874 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
26875 ipa_check_create_edge_args.
26876 * ipa-inline.c (inline_generate_summary): Do not call
26877 ipa_check_create_node_params and ipa_check_create_edge_args.
26878 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
26879 ipa_check_create_edge_args.
26881 2011-04-09 Anatoly Sokolov <aesok@post.ru>
26883 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
26885 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
26886 * function.c (record_hard_reg_sets): Likewise.
26887 * ira.c (compute_regs_asm_clobbered): Likewise.
26888 * sched-deps.c (sched_analyze_1): Likewise.
26889 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
26891 2011-04-09 Xinliang David Li <davidxl@google.com>
26893 PR tree-optimization/PR48484
26894 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
26895 has_valid_pred lazily
26897 2011-04-09 Duncan Sands <baldrick@free.fr>
26899 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
26901 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
26903 * combine.c (combine_validate_cost): Adjust comments. Set registered
26904 cost of I0 to zero at the end, if any.
26906 2011-04-08 Xinliang David Li <davidxl@google.com>
26908 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
26909 to insane profile data.
26911 2011-04-08 Xinliang David Li <davidxl@google.com>
26913 * ipa-cp.c (ipcp_update_profiling): Correct
26914 negative scale factor due to insane profile data.
26916 2011-04-08 Xinliang David Li <davidxl@google.com>
26918 * final.c (dump_basic_block_info): New function.
26919 (final): Dump basic block.
26920 (final_scan_insn): Remove old dump.
26922 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
26925 * config.gcc (i386-*-freebsd): Disable unwind table generation for
26928 2011-04-08 Michael Matz <matz@suse.de>
26930 PR middle-end/48389
26931 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
26933 (rebuild_jump_labels): Call rebuild_jump_labels_1.
26934 * rtl.h (rebuild_jump_labels_chain): Declare.
26935 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
26936 insns inserted on edges.
26938 2011-04-08 Joseph Myers <joseph@codesourcery.com>
26940 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
26941 * config/arm/arm-arches.def: New.
26942 * config/arm/arm-opts.h: New.
26943 * config/arm/genopt.sh: New.
26944 * config/arm/arm-tables.opt: New (generated).
26945 * config/arm/arm.c (arm_handle_option, arm_target_help,
26946 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
26947 (all_architectures): Get most table contents from arm-arches.def.
26948 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
26949 arm_selected_tune here.
26950 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
26951 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
26952 (march=, mcpu=, mtune=): Use Enum and Var.
26953 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
26954 (arm.o): Update dependencies.
26956 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
26958 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
26960 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
26961 (write_typed_alloc_defns): Likewise.
26962 (main): Calls write_typed_alloc_defns with output_header.
26964 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
26966 PR inline-asm/48435
26967 * ira-color.c (setup_profitable_hard_regs): Add comments.
26968 Don't take prohibited hard regs into account.
26969 (setup_conflict_profitable_regs): Rename to
26970 get_conflict_profitable_regs.
26971 (check_hard_reg_p): Check prohibited hard regs.
26973 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
26975 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
26976 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
26977 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
26979 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
26982 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
26983 move from floating point to shift amount register.
26984 (emit_move_sequence): Remove secondary reload support for floating
26985 point to shift amount amount register copies.
26986 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
26987 amount register copies.
26988 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
26989 register, return false if mode isn't a scalar integer mode.
26990 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
26992 2011-04-08 Richard Guenther <rguenther@suse.de>
26994 * gimple.c (gimple_call_flags): Remove kludge.
26996 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
26998 * sel-sched.c (sel_region_init): Move call to
26999 sel_setup_region_sched_flags after setup_current_loop_nest.
27001 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
27003 PR rtl-optimization/48272
27004 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
27005 init_insn_reg_pressure_info. Adjust a caller.
27006 * sched-int.h (init_insn_reg_pressure_info): Declare.
27007 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
27008 when sched-pressure is enabled.
27010 2011-04-08 Richard Guenther <rguenther@suse.de>
27012 * gimple.c (gimple_set_modified): Do not queue calls to
27013 MODIFIED_NORETURN_CALLS here ...
27014 * tree-ssa-operands.c (update_stmt_operands): ... but here.
27016 2011-04-08 Richard Guenther <rguenther@suse.de>
27019 * toplev.c (lang_dependent_init): Do not open asm_out_file
27020 in WPA mode, nor perform debug machinery initialization.
27021 (finalize): Do not unlink asm_out_file in WPA mode.
27023 2011-04-08 Richard Guenther <rguenther@suse.de>
27025 * gimple.h (gimple_call_fntype): New function.
27026 (gimple_call_return_type): Use it.
27027 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
27028 * gimple-low.c (gimple_check_call_args): Likewise.
27029 * gimple.c (gimple_call_flags): Likewise.
27030 (gimple_call_arg_flags): Likewise.
27031 (gimple_call_return_flags): Likewise.
27032 * tree-cfg.c (verify_gimple_call): Likewise.
27033 (do_warn_unused_result): Likewise.
27034 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
27035 * value-prof.c (gimple_ic_transform): Fix fndecl check.
27037 2011-04-08 Dmitry Melnik <dm@ispras.ru>
27039 PR rtl-optimization/48235
27040 * sel-sched.c (code_motion_process_successors): Recompute the last
27041 insn in basic block if control flow changed.
27042 (code_motion_path_driver): Ditto. Recompute the first insn as well.
27043 Update condition for ilist_remove.
27045 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
27047 PR rtl-optimization/48302
27048 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
27049 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
27050 it to record added preheader blocks.
27051 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
27052 on to sel_add_loop_preheaders.
27053 (sel_region_init): Move call to setup_current_loop_nest after
27056 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
27059 * cfgloop.h (loop_has_exit_edges): New helper.
27060 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
27062 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
27063 that have no exit edges.
27065 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
27067 PR rtl-optimization/48442
27068 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
27069 all callers. Adjust assert.
27071 2011-04-08 Jakub Jelinek <jakub@redhat.com>
27073 PR tree-optimization/48377
27074 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
27075 is_packed to true even for types with smaller TYPE_ALIGN than
27078 2011-04-08 Richard Guenther <rguenther@suse.de>
27081 * doc/tm.texi: Re-generate.
27083 2011-04-08 Wei Guozhi <carrot@google.com>
27086 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
27087 * config/arm/arm.c (arm_attr_length_push_multi): New function.
27088 * config/arm/arm.md (*push_multi): Change the length computation to
27091 2011-04-08 Anatoly Sokolov <aesok@post.ru>
27093 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
27094 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
27095 * doc/tm.texi: Regenerate.
27096 * system.h (ASM_OUTPUT_BSS): Poison.
27097 * varasm.c (asm_output_bss): Remove function.
27098 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
27100 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
27101 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
27102 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
27103 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
27105 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
27107 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
27109 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
27111 2011-04-07 Joseph Myers <joseph@codesourcery.com>
27113 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
27116 2011-04-07 Joseph Myers <joseph@codesourcery.com>
27118 * config/m68k/m68k.c (m68k_handle_option): Don't handle
27119 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
27120 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
27122 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
27123 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
27124 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
27125 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
27126 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
27127 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
27128 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
27129 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
27130 options. Don't map other m68k options manually. Don't handle
27131 old-style options as canonical.
27132 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
27133 * doc/install.texi (m68k-*-*): Document binutils version requirement.
27135 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
27137 * basic-block.h (force_nonfallthru): Move to...
27138 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
27139 (force_nonfallthru): ...here.
27140 * cfghooks.c (force_nonfallthru): New function.
27141 * cfgrtl.c (force_nonfallthru): Rename into...
27142 (rtl_force_nonfallthru): ...this.
27143 (commit_one_edge_insertion): Do not set AUX field.
27144 (commit_edge_insertions): Do not discover new basic blocks.
27145 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
27146 (cfg_layout_rtl_cfg_hooks): Likewise.
27147 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
27148 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
27149 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
27151 2011-04-07 Anatoly Sokolov <aesok@post.ru>
27153 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
27156 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
27158 * config/i386/sse.md: Update copyright year.
27159 (avxcvtvecmode): Remove.
27160 (sse_movhlps): Merge with *avx_movhlps.
27161 (sse_movlhps): Merge with *avx_movlhps.
27162 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
27163 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
27164 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
27165 (sse_loadhps): Merge with *avx_loadhps.
27166 (sse_storelps): Merge with *avx_storelps.
27167 (sse_loadlps): Merge with *avx_loadlps.
27168 (sse_movss): Merge with *avx_movss.
27169 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
27170 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
27171 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
27172 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
27173 (vec_set<mode>_0): Ditto.
27174 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
27175 (sse4_1_insertps): Merge with *avx_insertps.
27176 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
27177 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
27178 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
27179 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
27180 (sse2_storehpd): Merge with *avx_storehpd.
27181 (sse2_loadhpd): Merge with *avx_loadhpd.
27182 (sse2_loadlpd): Merge with *avx_loadlpd.
27183 (sse2_movsd): Merge with *avx_movsd.
27184 (*vec_concatv2df): Merge with *vec_concatv2df.
27186 2011-04-07 Jakub Jelinek <jakub@redhat.com>
27189 * combine.c (combine_instructions): Add last_combined_insn,
27190 update it if insn is after it, pass it to all try_combine calls.
27191 (try_combine): Add last_combined_insn parameter, pass it instead of
27192 i3 to propagate_for_debug.
27194 2011-04-07 Nick Clifton <nickc@redhat.com>
27196 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
27197 to handle MDR <-> data register transfers.
27198 (movhi_internal): Likewise.
27200 2011-04-07 Alan Modra <amodra@gmail.com>
27202 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
27203 previous stack info.
27205 2011-04-07 Tom de Vries <tom@codesourcery.com>
27208 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
27209 flow_find_cross_jump. Swap variables to implement backward replacement.
27210 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
27212 2011-04-07 Tom de Vries <tom@codesourcery.com>
27215 * cfgcleanup.c (walk_to_nondebug_insn): New function.
27216 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
27218 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
27219 src1 or src2. Redirect edges to the last basic block. Update
27220 frequency and count on multiple basic blocks in case of fallthru.
27222 2011-04-07 Tom de Vries <tom@codesourcery.com>
27225 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
27227 (old_insns_match_p): Change return type. Replace return false/true
27228 with return dir_none/dir_both. Use can_replace_by.
27229 (flow_find_cross_jump): Add dir_p parameter. Init replacement
27230 direction from dir_p. Register replacement direction in dir, last_dir
27231 and afterlast_dir. Handle new return type of old_insns_match_p using
27232 merge_dir. Return replacement direction in dir_p.
27233 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
27234 return type of old_insns_match_p.
27235 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
27236 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
27237 flow_find_cross_jump.
27238 * basic-block.h (enum replace_direction): New type.
27239 (flow_find_cross_jump): Add parameter to declaration.
27241 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
27243 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
27244 (AVXMODEDCVTPS2DQ): Ditto.
27245 (VEC_FLOAT_MODE): Ditto.
27246 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
27247 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
27248 (<any_logic:code><mode>3): Use VF mode iterator.
27249 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
27250 Use VF mode iterator.
27251 (copysign<mode>3): Use VF mode iterator.
27252 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
27253 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
27254 (*<any_logic:code><MODEF:mode>3): Merge with
27255 *avx_<any_logic:code><MODEF:mode>3.
27256 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
27257 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
27258 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
27259 (avx_cvtdq2ps<avxmodesuffix>): Remove.
27260 (sse2_cvtdq2ps): Use %v modifier.
27261 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
27262 (avx_cvtps2dq<avxmodesuffix>): Remove.
27263 (sse2_cvtps2dq): Use %v modifier.
27264 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
27265 (avx_cvttps2dq<avxmodesuffix>): Remove.
27266 (sse2_cvttps2dq): Use %v modifier.
27267 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
27268 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
27269 (sse2_cvtsd2siq): Fix insn template.
27270 (sse2_cvtsd2siq_2): Ditto.
27271 (sse2_cvttsd2siq): Ditto.
27272 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
27273 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
27275 2011-04-06 Joseph Myers <joseph@codesourcery.com>
27277 * gcov-io.c: Use GCC Runtime Library Exception.
27279 2011-04-06 Jakub Jelinek <jakub@redhat.com>
27282 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
27283 as base_reg whatever register reg has been eliminated to, instead
27284 of hardcoding STACK_POINTER_REGNUM.
27286 2011-04-06 Joseph Myers <joseph@codesourcery.com>
27288 * doc/tm.texi.in: Document C target hooks as separate from general
27290 * doc/tm.texi: Regenerate.
27291 * genhooks.c (struct hook_desc): Add docname field.
27292 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
27294 (hook_array): Include c-target.def.
27295 (emit_documentation): Use docname field in output.
27296 (emit_init_macros): Take docname argument. Only emit definitions
27297 for hooks matching docname.
27298 (main): Expect additional arguments in all cases. Pass argument
27299 to emit_init_macros.
27300 * target.def: Move initial macro definitions and comments to
27301 target-hooks-macros.h.
27302 (gcc_targetcm): Move to c-family/c-target.def.
27303 * target.h (targetcm): Move declaration to c-family/c-target.h.
27304 * targhooks.c (default_handle_c_option): Move to
27306 * targhooks.h (default_handle_c_option): Move declaration to
27307 c-family/c-common.h.
27308 * target-hooks-macros.h: New file.
27309 * config.gcc (target_has_targetcm): Define and use to add to
27310 c_target_objs and cxx_target_objs.
27311 * config/default-c.c: New file.
27312 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
27313 of target.h and target-def.h.
27314 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
27315 (darwin_objc_construct_string, darwin_cfstring_ref_p,
27316 darwin_check_cfstring_format_arg): Make static.
27317 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
27318 TARGET_STRING_OBJECT_REF_TYPE_P,
27319 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
27320 * config/darwin-protos.h (darwin_objc_construct_string,
27321 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
27323 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
27324 TARGET_STRING_OBJECT_REF_TYPE_P,
27325 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
27326 * config/t-darwin (darwin-c.o): Update dependencies.
27327 * system.h (TARGET_HAS_TARGETCM): Poison.
27328 * Makefile.in (TARGET_H): Update.
27329 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
27330 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
27331 (default-c.o): New target.
27332 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
27333 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
27334 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
27336 (build/genhooks.o): Update dependencies.
27338 2011-04-06 Richard Guenther <rguenther@suse.de>
27340 * ipa-inline.c (enum inlining_mode): Remove.
27341 (cgraph_flatten): Use some other token.
27342 (cgraph_edge_early_inlinable_p): New function, split out from ...
27343 (cgraph_perform_always_inlining): New function, split out from ...
27344 (cgraph_decide_inlining_incrementally): ... here.
27345 (cgraph_mark_inline_edge): Adjust.
27346 (cgraph_early_inlining): Re-structure.
27347 (pass_early_inline): Require SSA form.
27349 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
27350 Julian Brown <julian@codesourcery.com>
27351 Mark Shinwell <shinwell@codesourcery.com>
27353 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
27354 LO_REGS only for Thumb-1.
27355 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
27356 be used in short instructions when optimising for size on Thumb-2.
27358 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
27360 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
27361 associated with user returns to be preserved.
27363 2011-04-06 Tristan Gingold <gingold@adacore.com>
27365 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
27366 symbol_queue_size, DBXOUT_DECR_NESTING,
27367 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
27368 if XCOFF_DEBUGGING_INFO.
27370 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
27372 * config/i386/i386.md (attribute isa): New.
27373 (attribute enabled): New.
27374 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
27375 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
27376 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
27377 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
27378 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
27379 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
27380 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
27381 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
27383 * config/i386/sse.md (VF): New mode iterator.
27387 (SSEMODEF4): Remove.
27388 (attribute sse): Handle V8SF and V4DF modes.
27389 (<absneg:code><mode>2): Use VF mode iterator.
27390 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
27392 (<plusminus_insn><mode>3): Use VF mode iterator.
27393 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
27394 Use VF mode iterator.
27395 (<sse>_vm<plusminus_insn><mode>3): Merge with
27396 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
27397 (mul<mode>3): Use VF mode iterator.
27398 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
27399 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
27401 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
27402 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
27403 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
27404 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
27406 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
27407 Use VF1 mode iterator.
27408 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
27409 (sqrt<VF2:mode>2): New expander.
27410 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
27411 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
27412 and sqrtv2df2. Use VF mode iterator.
27413 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
27415 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
27416 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
27417 Use VF1 mode iterator.
27418 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
27419 (<smaxmin:code><mode>3): Use VF mode iterator.
27420 (*<smaxmin:code><mode>3_finite): Merge with
27421 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
27422 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
27423 (<sse>_vm<smaxmin:code><mode>2): Merge with
27424 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
27425 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
27427 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
27429 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
27430 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
27431 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
27432 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
27433 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
27435 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
27436 Use VF_128 mode iterator.
27437 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
27439 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
27440 VF_128 mode iterator.
27441 (vcond<mode>): Use VF mode iterator.
27442 * config/i386/predicates.md (sse_comparison_operator): Merge with
27443 avx_comparison_float_operator. Do not declare as special_predicate.
27444 * config/i386/i386.c (struct builtin_description): Update for renamed
27446 (ix86_expand_args_builtin): Ditto.
27447 (ix86_expand_sse_compare_mask): Ditto.
27449 2011-04-06 Richard Guenther <rguenther@suse.de>
27451 * tree-inline.c (estimate_num_insns): For calls simply account
27452 for all passed arguments and a used return value.
27454 2011-04-06 Richard Guenther <rguenther@suse.de>
27456 PR tree-optimization/47663
27457 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
27458 call_stmt_time fields.
27459 (cgraph_edge_inlinable_p): Declare.
27460 (cgraph_edge_recursive_p): New inline function.
27461 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
27462 (cgraph_clone_edge): Copy it.
27463 * ipa-inline.c (cgraph_estimate_edge_time): New function.
27464 Account for call stmt time.
27465 (cgraph_estimate_time_after_inlining): Take edge argument.
27466 (cgraph_estimate_edge_growth): Account call stmt size.
27467 (cgraph_estimate_size_after_inlining): Take edge argument.
27468 (cgraph_mark_inline_edge): Adjust.
27469 (cgraph_check_inline_limits): Likewise.
27470 (cgraph_recursive_inlining_p): Remove.
27471 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
27472 (cgraph_decide_recursive_inlining): Take edge argument and
27474 (cgraph_decide_inlining_of_small_functions): Do not avoid
27475 diags for recursive inlining here.
27476 (cgraph_flatten): Adjust.
27477 (cgraph_decide_inlining_incrementally): Likewise.
27478 (estimate_function_body_sizes): Remove call cost handling.
27479 (compute_inline_parameters): Initialize caller edge call costs.
27480 (cgraph_estimate_edge_growth): New function.
27481 (cgraph_estimate_growth): Use it.
27482 (cgraph_edge_badness): Likewise.
27483 (cgraph_check_inline_limits): Take an edge argument.
27484 (cgraph_decide_inlining_of_small_functions): Adjust.
27485 (cgraph_decide_inlining): Likewise.
27486 * tree-inline.c (estimate_num_insns): Only account for call
27487 return value if it is used.
27488 (expand_call_inline): Avoid diagnostics on recursive inline
27490 * lto-cgraph.c (lto_output_edge): Output edge call costs.
27491 (input_edge): Input edge call costs.
27493 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27495 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
27497 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
27499 * doc/invoke.texi (Spec Files): Fix typo.
27501 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
27503 * profile.c (branch_prob): Move declaration of local variable. Remove
27504 obsolete ??? comment. Expand the location explicitly instead of using
27505 the LOCATION_FILE and LOCATION_LINE macros.
27507 2011-04-06 Wei Guozhi <carrot@google.com>
27510 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
27511 (arm_cond_branch): Likewise.
27512 (arm_cond_branch_reversed): Likewise.
27513 (arm_jump): Likewise.
27514 (push_multi): Likewise.
27515 * config/arm/constraints.md (Py): New constraint.
27517 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
27520 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
27522 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
27523 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
27524 #ifdef DBX_DEBUGGING_INFO.
27526 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
27529 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
27530 if old and new states differ.
27532 2011-04-05 Joseph Myers <joseph@codesourcery.com>
27534 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
27535 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
27536 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
27537 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
27538 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
27539 mcfv4e): Use Alias.
27540 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
27541 ColdFire options to -mcpu= options.
27543 2011-04-05 Jeff Law <law@redhat.com>
27545 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
27546 check if BB is a successor of LOOP->header and return
27547 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
27549 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
27551 * cprop.c (struct reg_use): Remove.
27552 (reg_use_table): Make an array of RTX.
27553 (find_used_regs, constprop_register, local_cprop_pass,
27554 bypass_block): Simplify users of reg_use_table.
27555 (cprop_insn): Likewise. Iterate if copy propagation succeeded
27556 on one of the uses found by find_used_regs.
27558 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
27561 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
27564 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
27566 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
27568 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
27570 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
27572 PR middle-end/48441
27573 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
27575 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
27577 * combine.c: Include obstack.h.
27578 (struct insn_link): Define.
27579 (uid_log_links): Adjust type.
27580 (FOR_EACH_LOG_LINK): New macro.
27581 (insn_link_obstack): Declare.
27582 (alloc_insn_link): Define.
27583 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
27584 type of link variables.
27585 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
27586 (try_combine, record_promoted_values, distribute_notes): Likewise.
27587 (distribute_links): Likewise. Tweak prototype.
27588 (clear_log_links): Delete.
27589 (adjust_for_new_dest): Call alloc_insn_link.
27590 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
27592 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
27594 * gcse.c (modify_mem_list): Convert to an array of VECs.
27595 (canon_modify_mem_list, compute_transp): Tweak formatting.
27596 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
27597 (load_killed_in_block_p): Likewise.
27598 (record_last_mem_set_info): Likewise.
27599 (clear_modify_mem_tables): Likewise.
27601 2011-04-05 Tom de Vries <tom@codesourcery.com>
27603 PR middle-end/48461
27604 * function.c (emit_use_return_register_into_block): Only define if
27607 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
27609 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
27611 2011-04-05 Joseph Myers <joseph@codesourcery.com>
27613 * config/rx/rx-opts.h: New.
27614 * config/rx/rx.c (rx_cpu_type): Remove.
27615 (rx_handle_option): Don't assert that global structures are in
27616 use. Access variables via opts pointer. Defer most handling of
27617 OPT_mint_register_. Use error_at.
27618 (rx_option_override): Handle deferred OPT_mint_register_ here.
27619 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
27620 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
27621 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
27622 (rx_cpu_types): New Enum and EnumValue entries.
27623 (mint-register=): Use Defer and use Var accordingly.
27625 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
27627 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
27628 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
27629 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
27631 (debug_free_queue, debug_nesting, symbol_queue_index):
27633 * dbxout.c: ...to here. Make static.
27635 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
27637 * gcse.c (modify_pair): Define. Define a VEC of it.
27638 (canon_modify_mem_list): Convert to an array of VECs.
27639 (free_insn_expr_list_list): Delete.
27640 (clear_modify_mem_tables): Call VEC_free instead.
27641 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
27642 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
27643 (canon_list_insert, compute_transp): Likewise.
27645 2011-04-05 Tom de Vries <tom@codesourcery.com>
27648 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
27651 2011-04-05 Tom de Vries <tom@codesourcery.com>
27654 * function.c (emit_use_return_register_into_block): New function.
27655 (thread_prologue_and_epilogue_insns): Use
27656 emit_use_return_register_into_block.
27658 2011-04-05 Tom de Vries <tom@codesourcery.com>
27661 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
27664 2011-04-05 Tom de Vries <tom@codesourcery.com>
27666 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
27668 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
27670 * config/arm/arm.md (define_constants for unspec): Replace with
27672 (define_constants for unspecv): Replace with define_c_enum.
27673 * config/arm/neon.md (define_constants for unspec): Replace with
27676 2011-04-04 Richard Henderson <rth@redhat.com>
27679 * dwarf2out.c (output_line_info): Always emit line info from
27680 at least one section.
27681 (dwarf2out_init): Create text_section_line_info here ...
27682 (set_cur_line_info_table): ... not here.
27684 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
27687 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
27690 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
27692 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
27694 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
27695 (expr_equiv_p): Remove.
27696 (insert_set_in_table): Look at <dest, src> pair instead of expr.
27697 (hash_scan_set): Update call to insert_set_in_table.
27698 (dump_hash_table): Dump <dest, src> pair.
27699 (lookup_set): Simplify. Lookup <dest, src> pair.
27700 (compute_transp): Remove, fold heavily simplified code into...
27701 (compute_local_properties): ...here. Expect COMP and TRANSP
27703 (find_avail_set): Take set directly from struct expr.
27704 (find_bypass-set): Likewise.
27705 (bypass_block): Likewise.
27706 (cprop_insn): Likewise. Remove redundant INSN_P test.
27708 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
27709 checks on form of COND from find_implicit_sets to here.
27710 (find_implicit_sets): Cleanup control flow. Split critical edges
27711 if it exposes implicit sets. Allocate/resize implicit_sets as
27713 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
27714 changed something. Run df_analyze after find_implicit_sets if any
27715 edges were split. Do not allocate implicit_sets here.
27717 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
27718 (gcse_obstack): Renamed to cprop_obstack.
27719 (GNEW, GNEWVEC, GNEWVAR): Remove.
27721 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
27722 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
27723 (gcse_alloc): Likewise, and rename to cprop_alloc.
27724 (alloc_gcse_men, free_gcse_mem): Remove.
27725 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
27726 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
27727 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
27729 * cprop.c (oprs_not_set_p): Remove.
27730 (mark_set, mark_clobber): Remove.
27731 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
27732 (reg_not_set_p): New function.
27733 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
27734 (cprop_insn): Likewise.
27735 (cprop_jump): Use FOR_EACH_EDGE.
27737 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
27740 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
27741 (rank_for_schedule): Use scheduled_insns vector instead of
27742 last_scheduled_insn.
27743 (ok_for_early_queue_removal): Likewise.
27744 (queue_to_ready): Search forward in nonscheduled_insns_begin if
27746 (choose_ready): Likewise.
27747 (commit_schedule): Use VEC_iterate.
27748 (schedule_block): Initialize nonscheduled_insns_begin. If we have
27749 a dbg_cnt, use it and ensure the first insn is in the ready list.
27750 (haifa_sched_init): Allocate scheduled_insns.
27751 (sched_extend_ready_list): Don't allocate it; reserve space.
27752 (haifa_sched_finish): Free it.
27754 2011-04-04 Joseph Myers <joseph@codesourcery.com>
27756 * optc-gen.awk: Always remove type from Variable entry before
27757 recording in var_seen.
27759 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
27761 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
27762 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
27763 call to tidy_fallthru_edges.
27765 2011-04-04 Joseph Myers <joseph@codesourcery.com>
27767 * doc/options.texi (ToLower): Document.
27768 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
27769 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
27770 * opts.h (cl_option): Add cl_tolower field.
27771 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
27772 arguments with lowercase strings.
27773 * config/rx/rx.opt (mcpu=): Add ToLower.
27774 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
27777 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
27779 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
27781 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
27783 * config/vax/vax.c: Include reload.h.
27785 2011-04-04 Anatoly Sokolov <aesok@post.ru>
27787 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
27788 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
27789 (sparc_preferred_reload_class): New function.
27791 2011-04-04 Jakub Jelinek <jakub@redhat.com>
27794 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
27795 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
27797 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
27799 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
27800 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
27802 2011-04-03 Anatoly Sokolov <aesok@post.ru>
27804 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
27805 (ASM_OUTPUT_ALIGNED_BSS): Define.
27807 2011-04-03 Michael Matz <matz@suse.de>
27809 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
27810 and next_slot members.
27811 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
27812 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
27813 (lto_streamer_cache_append): Declare.
27814 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
27815 unsigned index, remove offset parameter, ensure that we append
27816 or update existing entries.
27817 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
27818 parameter, update next_slot for append.
27819 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
27821 (lto_streamer_cache_insert_at): Likewise.
27822 (lto_streamer_cache_append): New function.
27823 (lto_streamer_cache_lookup): Use unsigned index.
27824 (lto_streamer_cache_get): Likewise.
27825 (lto_record_common_node): Don't test tree_node_can_be_shared.
27826 (preload_common_node): Adjust call to lto_streamer_cache_insert.
27827 (lto_streamer_cache_delete): Don't free offsets member.
27828 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
27829 (lto_output_string_with_length): Use lto_output_data_stream.
27830 (lto_output_tree_header): Remove ix parameter, don't write it.
27831 (lto_output_builtin_tree): Likewise.
27832 (lto_write_tree): Adjust callers to above, don't track and write
27833 offset, write unsigned index.
27834 (output_unreferenced_globals): Don't emit all global vars.
27835 (write_global_references): Use unsigned indices.
27836 (lto_output_decl_state_refs): Likewise.
27837 (write_symbol): Likewise.
27838 * lto-streamer-in.c (lto_input_chain): Move earlier.
27839 (input_function): Use unsigned index.
27840 (input_alias_pairs): Don't read and then ignore all global vars.
27841 (lto_materialize_tree): Remove ix_p parameter, don't read index,
27842 don't pass it back, use lto_streamer_cache_append.
27843 (lto_register_var_decl_in_symtab): Use unsigned index.
27844 (lto_register_function_decl_in_symtab): Likewise.
27845 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
27847 (lto_get_builtin_tree): Don't read index, use
27848 lto_streamer_cache_append.
27849 (lto_read_tree): Adjust call to lto_materialize_tree.
27851 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
27852 don't use function calls in arguments to MIN.
27854 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
27857 * gimple.c (gimple_type_leader_entry): Mark deletable.
27859 2011-04-03 Alan Modra <amodra@gmail.com>
27861 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
27863 2011-04-03 Michael Matz <matz@suse.de>
27865 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
27867 * tree.h (tree_decl_non_common.vindex): Adjust comment.
27869 2011-04-03 Michael Matz <matz@suse.de>
27871 * cgraphbuild.c (record_reference): Canonicalize constructor values.
27872 * gimple-fold.c (canonicalize_constructor_val): Accept being called
27873 without function context.
27874 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
27875 current_function_decl and cfun.
27877 2011-04-03 Michael Matz <matz@suse.de>
27879 * tree.c (decl_init_priority_insert): Don't create entry for
27881 (decl_fini_priority_insert): Ditto.
27882 (fields_compatible_p, find_compatible_field): Remove.
27883 * tree.h (fields_compatible_p, find_compatible_field): Remove.
27884 * gimple.c (gimple_compare_field_offset): Adjust block comment.
27886 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
27888 * combine.c (try_combine): Remove useless local variable.
27890 2011-04-03 Richard Guenther <rguenther@suse.de>
27891 Ira Rosen <ira.rosen@linaro.org>
27893 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
27894 non-variable offsets and compare the remaining bases of the two
27895 accesses instead of looking for exact same data-ref.
27897 2011-04-02 Kai Tietz <ktietz@redhat.com>
27900 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
27902 * i386.c (ix86_is_msabi_thiscall): New helper function.
27903 (ix86_is_type_thiscall): New helper function.
27904 (ix86_comp_type_attributes): Handle thiscall for method-functions
27906 (init_cumulative_args): Likewise.
27907 (find_drap_reg): Likewise.
27908 (ix86_static_chain): Likewise.
27909 (x86_this_parameter): Likewise.
27910 (x86_output_mi_thunk): Likewise.
27912 2011-04-01 Olivier Hainque <hainque@adacore.com>
27913 Nicolas Setton <setton@adacore.com>
27914 Eric Botcazou <ebotcazou@adacore.com>
27916 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
27917 (add_gnat_descriptive_type_attribute): New function.
27918 (gen_array_type_die): Call it.
27919 (gen_enumeration_type_die): Likewise.
27920 (gen_struct_or_union_type_die): Likewise.
27921 (modified_type_die): Likewise.
27922 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
27923 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
27924 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
27926 2011-04-01 Jakub Jelinek <jakub@redhat.com>
27929 * dwarf2out.c (resolve_addr): Don't call force_decl_die
27930 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
27933 2011-03-17 Richard Guenther <rguenther@suse.de>
27936 * lto-cgraph.c (input_overwrite_node): Clear the abstract
27937 origin for decls in other ltrans units.
27938 (input_varpool_node): Likewise.
27940 2011-04-01 Jakub Jelinek <jakub@redhat.com>
27942 PR middle-end/48335
27943 * expr.c (expand_assignment): Handle all possibilities
27944 if TO_RTX is CONCAT.
27945 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
27946 (store_split_bit_field): If SUBREG_REG (op0) or
27947 op0 itself has smaller mode than word, return it
27948 for offset 0 and const0_rtx for out-of-bounds stores.
27949 If word is const0_rtx, skip it.
27951 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
27953 * config/h8300/h8300.c (print_operand_address): Rename to...
27954 (h8300_print_operand_address): ...this. Make static. Adjust comments.
27955 Call h8300_print_operand and h8300_print_operand_address instead of
27956 print_operand and print_operand_address. Declare.
27957 (print_operand): Renake to...
27958 (h8300_print_operand): ...this. Make static. Adjust comments.
27959 Call h8300_print_operand instead of print_operand. Declare.
27960 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
27961 (h8300_register_move_cost): Likewise.
27962 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
27963 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
27964 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
27965 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
27966 * config/h8300/h8300-protos.h (print_operand): Delete.
27967 (print_operand_address): Delete.
27969 2011-04-01 Richard Henderson <rth@redhat.com>
27972 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
27973 in strict mode before dwarf4. Re-order tests to early out
27974 before switching sections.
27976 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
27978 * config/h8300/constraints.md: New file.
27979 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
27980 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
27981 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
27982 * config/h8300/predicates.md (bit_operand): Likewise.
27983 (incdec_operand): Use satisfies_constraint_M and
27984 satisfies_constraint_O. Don't use C code block.
27985 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
27986 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
27987 (compute_mov_length): Use satisfies_constraint_G.
27988 (fix_bit_operand): Use satisfies_constraint_U.
27989 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
27990 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
27991 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
27992 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
27993 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
27994 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
27995 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
27996 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
27997 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
27998 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
27999 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
28000 (EXTRA_MEMORY_CONSTRAINT): Delete.
28002 2011-04-01 Andrew Pinski <pinskia@gmail.com>
28003 Michael Meissner <meissner@linux.vnet.ibm.com>
28006 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
28007 operands, as per the specifications.
28009 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
28010 (vec_extract_evenv4sf): Ditto.
28011 (vec_extract_evenv8hi): Ditto.
28012 (vec_extract_evenv16qi): Ditto.
28013 (vec_extract_oddv4si): Ditto.
28015 2011-03-31 Mark Wielaard <mjw@redhat.com>
28017 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
28018 high_pc attribute if the CU has no associated code. Only output
28019 DW_AT_entry_pc for CU if not generating strict dwarf and
28022 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
28024 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
28025 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
28027 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
28028 * final.c (final_start_function): Call the new function rather
28029 than using a NULL argument for dwarf2out_frame_debug.
28031 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
28032 that contains the prologue.
28034 * haifa-sched.c (queue_insn): New arg REASON. All callers
28035 changed. Print it in debugging output.
28037 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
28039 * sched-ebb.c (begin_schedule_ready): Remove second argument.
28040 Split most of the code into...
28041 (begin_move_insn): ... here. New function.
28042 (ebb_sched_info): Add a pointer to it.
28043 * haifa-sched.c (scheduled_insns): New static variable.
28044 (sched_extend_ready_list): Allocate it.
28045 (schedule_block): Use it to record the order of scheduled insns.
28046 Perform RTL changes to move insns only after all scheduling
28047 decisions have been made.
28048 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
28049 begin_move_insn field.
28050 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
28051 * sched-int.h (struct haifa_sched_info): Remove second argument
28052 from begin_schedule_ready hook. Add new member begin_move_insn.
28053 * sched-rgn.c (begin_schedule_ready): Remove second argument.
28054 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
28056 * haifa-sched.c (prune_ready_list): New function, broken out of
28058 (schedule_block): Use it.
28060 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
28062 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
28064 2011-04-01 Kai Tietz <ktietz@redhat.com>
28066 * config.gcc (*-*-mingw*): Allow as option the
28067 posix threading model.
28068 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
28069 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
28071 (CPP_SPEC): Add pthread/no-pthread handling.
28072 (LIB_SPEC): Likewise.
28073 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
28074 (LIB_SPEC): Likewise.
28075 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
28076 flag to pass -pthread option for shared libgcc build.
28077 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
28078 for shared libgcc build.
28079 * config/i386/t-mingw-pthread: New file.
28080 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
28081 New define to enable use of library pthread by default.
28082 * config/i386/mingw.opt (pthread): New driver option.
28083 (no-pthread): New driver option.
28084 * config/i386/cygming.opt: Make sure trailing empty line is retained.
28085 * config/i386/mingw-w64.opt: Likewise.
28087 2011-04-01 Gary Funck <gary@intrepid.com>
28089 * c-decl.c (grokdeclarator): Fix formatting.
28091 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
28093 * expr.c (emit_block_move_via_movmem): Use n_generator_args
28094 instead of n_operands.
28095 (set_storage_via_setmem): Likewise.
28096 * optabs.c (maybe_gen_insn): Likewise.
28097 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
28098 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
28099 (mips_expand_builtin_direct): Likewise.
28100 * config/spu/spu.c (expand_builtin_args): Likewise.
28102 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
28104 * recog.h (insn_data_d): Add n_generator_args.
28105 * genoutput.c (data): Likewise.
28106 (output_insn_data): Print it.
28107 (max_opno, num_dups): Delete.
28108 (scan_operands): Just fill in "d->operand[...]".
28109 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
28111 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
28113 * gensupport.h (pattern_stats): New structure.
28114 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
28115 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
28116 (max_operand_1, max_operand_vec): Delete.
28117 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
28119 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
28121 * emit-rtl.c (emit_pattern_after_setloc): New function.
28122 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
28123 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
28124 (emit_pattern_after): New function.
28125 (emit_insn_after, emit_jump_insn_after): Call it.
28126 (emit_call_insn_after, emit_debug_insn_after): Likewise.
28127 (emit_pattern_before_setloc): New function.
28128 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
28129 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
28131 (emit_pattern_before): New function.
28132 (emit_insn_before, emit_jump_insn_before): Call it.
28133 (emit_call_insn_before, emit_debug_insn_before): Likewise.
28135 2011-03-31 Richard Henderson <rth@redhat.com>
28137 * dwarf2out.c (dw_separate_line_info_ref): Remove.
28138 (dw_separate_line_info_entry): Remove.
28139 (enum dw_line_info_opcode): New.
28140 (dw_line_info_entry): Use it.
28141 (dw_line_info_table, dw_line_info_table_p): New.
28142 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
28143 (line_info_table, line_info_label_num): Remove.
28144 (line_info_table_in_use): Remove.
28145 (separate_line_info_table): Remove.
28146 (separate_line_info_table_allocated): Remove.
28147 (separate_line_info_table_in_use): Remove.
28148 (LINE_INFO_TABLE_INCREMENT): Remove.
28149 (line_info_label_num): New.
28150 (cur_line_info_table): New.
28151 (text_section_line_info, cold_text_section_line_info): New.
28152 (separate_line_info): New.
28153 (SEPARATE_LINE_CODE_LABEL): Remove.
28154 (print_dwarf_line_table): Remove.
28155 (debug_dwarf): Don't dump it.
28156 (output_one_line_info_table): New.
28157 (output_line_info): Use it.
28158 (new_line_info_table): New.
28159 (set_cur_line_info_table): New.
28160 (dwarf2out_switch_text_section): Use it.
28161 (dwarf2out_begin_function): Likewise.
28162 (push_dw_line_info_entry): New.
28163 (dwarf2out_source_line): Rewrite for new line info tables.
28164 (dwarf2out_init): Remove dead initailizations.
28166 2011-03-31 Joseph Myers <joseph@codesourcery.com>
28168 * opts.h (cl_option): Add comments to fields. Add bit-fields for
28170 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
28171 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
28172 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
28173 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
28174 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
28175 * opt-functions.awk (flag_init, switch_bit_fields): New.
28176 (switch_flags): Don't handle flags moved to bit-fields. Don't
28177 generate CL_MISSING_OK or CL_SAVE.
28178 * optc-gen.awk: Update to generate bit-field output as well as
28180 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
28181 bit-field instead of CL_REJECT_DRIVER flag.
28182 * opts-common.c (generate_canonical_option,
28183 decode_cmdline_option): Use bit-fields instead of CL_* flags.
28184 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
28185 instead of CL_REJECT_NEGATIVE flag.
28186 * toplev.c (print_switch_values): Use cl_report bit-field instead
28189 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
28191 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
28192 a zero minimum index only if it is redundant.
28194 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
28196 PR rtl-optimization/48381
28197 * ira-color.c (assign_hard_reg): Use hard reg set intersection
28198 instead of ira_class_hard_reg_index for calculating conflicting
28201 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
28203 * cprop.c: Clean up hash table building.
28204 (reg_avail_info): Remove.
28205 (oprs_available_p): Remove.
28206 (record_last_reg_set_info): Remove.
28207 (record_last_set_info): Remove.
28208 (reg_available_p): New function.
28209 (gcse_constant_p): Do not treat unfolded conditions as constants.
28210 (make_set_regs_unavailable): New function.
28211 (hash_scan_set): Simplify with new reg_available_p.
28212 (compute_hash_table_work): Traverse insns stream only once.
28213 Do not compute reg_avail_info. Traverse insns in reverse order.
28214 Record implicit sets after recording explicit sets from the block.
28216 2011-03-31 Michael Matz <matz@suse.de>
28218 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
28220 2011-03-31 Anatoly Sokolov <aesok@post.ru>
28222 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
28223 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
28224 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
28225 (h8300_mode_dependent_address_p): New function.
28226 (h8300_get_index): Make static.
28228 2011-03-31 Jeff Law <law@redhat.com>
28230 * reload1.c (elimination_effects): Fix typo in recent change.
28232 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
28233 typo potentially leading to null pointer dereference.
28235 * caller-save.c (new_saved_hard_reg): Eliminate return value.
28236 (setup_save_areas): Corresponding changes to avoid useless
28239 * jump.c (reversed_comparison_code_parts): Avoid successive return
28240 statements when REVERSE_CONDITION is defined.
28242 * expr.c (expand_assignment): Avoid useless assignments.
28243 (expand_expr_real_1): Likewise.
28244 (expand_expr_real_2): Avoid useless statements.
28246 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
28248 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
28250 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
28253 * stmt.c (expand_expr_stmt): Avoid useless assignment.
28255 2011-03-31 Joseph Myers <joseph@codesourcery.com>
28258 * doc/tm.texi.in (TARGET_VERSION): Remove.
28259 * doc/tm.texi: Regenerate.
28260 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
28261 * collect2.c (main): Don't use TARGET_VERSION.
28262 * mips-tdump.c (main): Don't use TARGET_VERSION.
28263 * mips-tfile.c (main): Don't use TARGET_VERSION.
28264 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
28265 * config/rs6000/vxworksae.h: Remove.
28266 * config/alpha/alpha.h (TARGET_VERSION): Remove.
28267 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
28268 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
28269 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
28270 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
28271 * config/arm/arm.h (TARGET_VERSION): Remove.
28272 * config/arm/coff.h (TARGET_VERSION): Remove.
28273 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
28274 * config/arm/elf.h (TARGET_VERSION): Remove.
28275 * config/arm/freebsd.h (TARGET_VERSION): Remove.
28276 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
28277 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
28278 * config/arm/pe.h (TARGET_VERSION): Remove.
28279 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
28280 * config/arm/semi.h (TARGET_VERSION): Remove.
28281 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
28282 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
28283 * config/arm/vxworks.h (TARGET_VERSION): Remove.
28284 * config/avr/avr.h (TARGET_VERSION): Remove.
28285 * config/bfin/bfin.h (TARGET_VERSION): Remove.
28286 * config/fr30/fr30.h (TARGET_VERSION): Remove.
28287 * config/frv/frv.h (TARGET_VERSION): Remove.
28288 * config/h8300/h8300.h (TARGET_VERSION): Remove.
28289 * config/i386/cygwin.h (TARGET_VERSION): Remove.
28290 * config/i386/darwin.h (TARGET_VERSION): Remove.
28291 * config/i386/darwin64.h (TARGET_VERSION): Remove.
28292 * config/i386/djgpp.h (TARGET_VERSION): Remove.
28293 * config/i386/freebsd.h (TARGET_VERSION): Remove.
28294 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
28295 * config/i386/gnu.h (TARGET_VERSION): Remove.
28296 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
28297 * config/i386/i386elf.h (TARGET_VERSION): Remove.
28298 * config/i386/linux.h (TARGET_VERSION): Remove.
28299 * config/i386/linux64.h (TARGET_VERSION): Remove.
28300 * config/i386/lynx.h (TARGET_VERSION): Remove.
28301 * config/i386/mingw32.h (TARGET_VERSION): Remove.
28302 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
28303 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
28304 * config/i386/netware.h (TARGET_VERSION): Remove.
28305 * config/i386/nto.h (TARGET_VERSION): Remove.
28306 * config/i386/openbsd.h (TARGET_VERSION): Remove.
28307 * config/i386/vxworks.h (TARGET_VERSION): Remove.
28308 * config/ia64/elf.h (TARGET_VERSION): Remove.
28309 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
28310 * config/ia64/hpux.h (TARGET_VERSION): Remove.
28311 * config/ia64/linux.h (TARGET_VERSION): Remove.
28312 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
28313 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
28314 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
28315 * config/lm32/lm32.h (TARGET_VERSION): Remove.
28316 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
28317 * config/m32c/m32c.h (TARGET_VERSION): Remove.
28318 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
28319 * config/m32r/m32r.h (TARGET_VERSION): Remove.
28320 * config/m68k/linux.h (TARGET_VERSION): Remove.
28321 * config/m68k/m68k.h (TARGET_VERSION): Remove.
28322 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
28323 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
28324 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
28325 * config/mep/mep.h (TARGET_VERSION): Remove.
28326 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
28327 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
28328 * config/mips/iris6.h (MACHINE_TYPE): Remove.
28329 * config/mips/linux.h (TARGET_VERSION): Remove.
28330 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
28331 * config/mips/vxworks.h (TARGET_VERSION): Remove.
28332 * config/mmix/mmix.h (TARGET_VERSION): Remove.
28333 * config/mn10300/linux.h (TARGET_VERSION): Remove.
28334 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
28335 * config/pa/pa.h (TARGET_VERSION): Remove.
28336 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
28337 * config/picochip/picochip.h (TARGET_VERSION): Remove.
28338 * config/rs6000/aix.h (TARGET_VERSION): Remove.
28339 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
28340 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
28341 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
28342 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
28343 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
28344 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
28345 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
28346 * config/rs6000/linux.h (TARGET_VERSION): Remove.
28347 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
28348 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
28349 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
28350 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
28351 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
28352 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
28353 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
28354 * config/s390/linux.h (TARGET_VERSION): Remove.
28355 * config/s390/s390.h (TARGET_VERSION): Remove.
28356 * config/s390/tpf.h (TARGET_VERSION): Remove.
28357 * config/score/score.h (TARGET_VERSION): Remove.
28358 * config/sh/linux.h (TARGET_VERSION): Remove.
28359 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
28360 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
28361 * config/sh/sh.h (TARGET_VERSION): Remove.
28362 * config/sh/sh64.h (TARGET_VERSION): Remove.
28363 * config/sh/superh.h (TARGET_VERSION): Remove.
28364 * config/sh/vxworks.h (TARGET_VERSION): Remove.
28365 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
28366 * config/sparc/linux.h (TARGET_VERSION): Remove.
28367 * config/sparc/linux64.h (TARGET_VERSION): Remove.
28368 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
28369 TARGET_NAME32, TARGET_NAME): Remove.
28370 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
28371 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
28372 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
28373 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
28374 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
28375 * config/spu/spu.h (TARGET_VERSION): Remove.
28376 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
28377 * config/v850/v850.h (TARGET_VERSION): Remove.
28378 * config/vax/linux.h (TARGET_VERSION): Remove.
28379 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
28380 * config/xtensa/elf.h (TARGET_VERSION): Remove.
28381 * config/xtensa/linux.h (TARGET_VERSION): Remove.
28383 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
28386 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
28387 frame-related from frame-unrelated adjustments to the stack pointer.
28389 2011-03-31 Jakub Jelinek <jakub@redhat.com>
28391 * common.opt (fdebug-types-section): Move earlier.
28392 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
28394 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
28396 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
28399 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
28401 * tree.h (CASE_CHAIN): Define.
28402 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
28403 (gimple_redirect_edge_and_branch): Likewise.
28405 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
28407 PR middle-end/48367
28408 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
28411 2011-03-30 Jeff Law <law@redhat.com>
28413 * PR bootstrap/48371
28414 * reload1.c (reload): Fix botch in last change.
28416 * reload.h (struct reload): Fix typo introduced in last change.
28418 2011-03-30 Joseph Myers <joseph@codesourcery.com>
28420 * config/arm/arm.opt (mhard-float, msoft-float): Mark
28421 Undocumented. Remove help text.
28422 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
28425 2011-03-30 Joseph Myers <joseph@codesourcery.com>
28427 * doc/options.texi (NegativeAlias): Document.
28428 (Alias): Mention NegativeAlias.
28429 * opt-functions.awk: Handle NegativeAlias.
28430 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
28431 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
28432 * opts.h (CL_NEGATIVE_ALIAS): Define.
28433 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
28434 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
28436 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
28438 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
28439 mno-spe and mno-isel instead of mspe=no and -misel=no.
28441 2011-03-29 Mark Wielaard <mjw@redhat.com>
28443 * common.opt (fdebug-types-section): New flag.
28444 * doc/invoke.texi: Document new -fno-debug-types-section flag.
28445 * dwarf2out.c (use_debug_types): New define.
28446 (struct die_struct): Mark die_id with GTY desc use_debug_types.
28447 (print_die): Guard output of type unit signatures using
28449 (build_abbrev_table): Replace assert of dwarf_version >= 4
28450 with assert on use_debug_types.
28451 (size_of_die): Likewise.
28452 (unmark_dies): Likewise.
28453 (value_format): Decide AT_ref_external form on use_debug_types.
28454 (output_die): Replace dwarf_version version check guard with
28455 use_debug_types where appropriate.
28456 (modified_type_die): Likewise.
28457 (gen_reference_type_die): Likewise.
28458 (dwarf2out_start_source_file): Likewise.
28459 (dwarf2out_end_source_file): Likewise.
28460 (prune_unused_types_walk_attribs): Likewise.
28461 (dwarf2out_finish): Likewise.
28463 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
28465 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
28467 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
28469 PR rtl-optimization/48332
28470 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
28471 mode of input operand N and modeN to its actual mode.
28473 2011-03-30 Jeff Law <law@redhat.com>
28475 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
28476 define accessor macro.
28477 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
28478 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
28479 (reg_equiv_init): Likewise.
28480 (reg_equivs_size): New variable.
28481 (reg_equiv_init_size): Remove.
28482 (allocate_initial_values): Move prototype to here from....
28483 * integrate.h (allocate_initial_values): Remove prototype.
28484 * integrate.c: Include reload.h.
28485 (allocate_initial_values): Corresponding changes.
28486 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
28487 (fix_reg_equiv_init, no_equiv): Corresponding changes.
28488 (update_equiv_regs): Corresponding changes.
28489 (ira): Corresponding changes.
28490 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
28491 (push_secondary_reload): Corresponding changes.
28492 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
28493 (make_memloc, find_reloads_address): Corresponding changes.
28494 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
28495 (find_reloads_address_1): Corresponding changes.
28496 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
28497 (refers_to_regno_for_reload_p): Corresponding changes.
28498 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
28499 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
28500 * reload1.c: Include ggc.h.
28501 (grow_reg_equivs): New function.
28502 (replace_pseudos_in, reload): Corresponding changes.
28503 (calculate_needs_all_insns, alter_regs): Corresponding changes.
28504 (eliminate_regs_1, elimination_effects): Corresponding changes.
28505 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
28506 (delete_output_reload): Likewise.
28507 * caller-save.c (mark_referenced_regs): Corresponding changes.
28508 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
28509 * frv/predicates.md (frv_load_operand): Corresponding changes.
28510 * microblaze/microblaze.c (double_memory_operand): Corresponding
28512 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
28513 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
28514 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
28515 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
28516 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
28518 * pa/pa.c (emit_move_sequence): Corresponding changes.
28519 * vax/vax.c (nonindexed_address_p): Corresponding changes.
28521 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
28524 * config/arm/arm.c (coproc_secondary_reload_class): Handle
28525 structure modes. Don't check neon_vector_mem_operand for
28526 vector or structure modes.
28528 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
28529 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
28532 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
28533 operand 1 and reshuffle the operands to match.
28534 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
28536 2011-03-30 Christian Schüler <cschueler@gmx.de>
28539 * config/c.opt (F): Added 'Driver' to -F option.
28542 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
28544 * config/darwin.opt: Added '-arch' option.
28546 2011-03-30 Nick Clifton <nickc@redhat.com>
28548 * config/rx/rx.md: Add peepholes and patterns to combine
28549 extending loads and simple arithmetic instructions.
28550 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
28551 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
28552 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
28553 modes to use pre-decrement and post-increment addressing.
28554 (rx_is_restricted_memory_address): Add range checking of REG+INT
28556 (rx_print_operand): Add support for %Q. Fix handling of %Q.
28557 (rx_memory_move_cost): Adjust cost of stores.
28558 (rx_adjust_insn_length): New function.
28560 2011-03-30 Jakub Jelinek <jakub@redhat.com>
28563 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
28564 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
28565 matching arg00/arg01 types.
28567 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
28569 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
28570 last_location to UNKNOWN_LOCATION.
28572 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
28575 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
28578 2011-03-30 Joseph Myers <joseph@codesourcery.com>
28579 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28582 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
28583 Init(PROCESSOR_V7).
28584 (sparc_cpu): Likewise.
28585 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
28588 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
28591 PR middle-end/48342
28592 PR rtl-optimization/48345
28593 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
28594 hard regs for given mode from profitable regs when doing secondary
28597 2011-03-29 Jeff Law <law@redhat.com>
28600 * tree-ssa-threadupdate.c (struct redirection_data): Remove
28601 do_not_duplicate field.
28602 (lookup_redirection_data): Corresponding changes.
28603 (create_duplicates): Always create a template block.
28604 (redirect_edges): Remove code which reused the original block
28605 when it was going to become unreachable code.
28606 (thread_block): Don't set do_not_duplicate field.
28608 2011-03-29 Joseph Myers <joseph@codesourcery.com>
28610 * lto-opts.c (register_user_option_p, lto_register_user_option):
28611 Make type argument unsigned.
28612 * lto-streamer.h (lto_register_user_option): Make type argument
28614 * opth-gen.awk: Make CL_* macros unsigned.
28615 * opts-common.c (find_opt): Make lang_mask argument unsigned.
28616 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
28617 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
28618 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
28619 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
28620 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
28621 (find_opt): Make lang_mask argument unsigned.
28623 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
28625 PR rtl-optimization/48331
28626 PR rtl-optimization/48334
28627 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
28628 for any used algorithm.
28630 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
28632 * ira-conflicts.c (build_object_conflicts): Add unused attribute
28635 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
28637 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
28638 (alpha_option_override): Don't set alpha_sr_alias_set.
28639 (emit_frame_store_1): Use gen_frame_mem rather than calling
28641 (alpha_expand_epilogue): Ditto.
28643 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
28645 PR tree-optimization/48290
28646 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
28647 vectorization, check that relevant phis in the basic block after
28648 the inner loop are really inner loop's exit phis.
28650 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
28653 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
28654 (cached_dw_loc_list_def): New structure.
28655 (cached_dw_loc_list): New typedef.
28656 (cached_dw_loc_list_table): New variable.
28657 (cached_dw_loc_list_table_hash): New function.
28658 (cached_dw_loc_list_table_eq): Likewise.
28659 (add_location_or_const_value_attribute): Take a bool cache_p.
28660 Cache the list when the parameter is true.
28661 (gen_formal_parameter_die): Update caller.
28662 (gen_variable_die): Likewise.
28663 (dwarf2out_finish): Likewise.
28664 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
28665 while generating debug info for the decl.
28666 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
28667 (dwarf2out_init): Initialize cached_dw_loc_list_table.
28668 (resolve_addr): Cache the result of resolving a chain of
28671 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
28673 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
28674 conflict object hard regset nodes have intersecting hard reg sets.
28676 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
28677 after regstat_init_n_sets_and_refs.
28679 * ira.c: Add more comments at the top.
28680 (setup_stack_reg_pressure_class, setup_pressure_classes):
28681 Add comments how we compute the register pressure classes.
28682 (setup_allocno_and_important_classes): Add more comments.
28683 (setup_class_translate_array, reorder_important_classes)
28684 (setup_reg_class_relations): Add comments.
28686 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
28689 * ira-color.c: Add 2011 to the Copyright line.
28690 (assign_hard_reg): Add more comments.
28691 (improve_allocation): Ditto.
28693 * ira-costs.c: Add 2011 to the Copyright line.
28694 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
28696 (setup_regno_cost_classes_by_mode): Ditto.
28698 Initial patches from ira-improv branch:
28700 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
28702 * ira-build.c (ira_create_object): Remove initialization of
28703 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
28704 (ira_create_allocno): Remove initialization of
28705 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
28706 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
28707 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
28708 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
28709 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
28710 Initialize ALLOCNO_ADD_DATA.
28711 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
28712 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
28714 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
28715 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
28717 * ira.c (ira_reallocate): Remove.
28718 (setup_pressure_classes): Call
28719 ira_init_register_move_cost_if_necessary. Use
28720 ira_register_move_cost instead of ira_get_register_move_cost.
28721 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
28722 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
28724 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
28725 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
28726 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
28727 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
28728 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
28729 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
28731 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
28732 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
28733 (struct allocno_color_data): New.
28734 (allocno_color_data_t): New typedef.
28735 (allocno_color_data): New definition.
28736 (ALLOCNO_COLOR_DATA): New macro.
28737 (struct object_color_data): New.
28738 (object_color_data_t): New typedef.
28739 (object_color_data): New definition.
28740 (OBJECT_COLOR_DATA): New macro.
28741 (update_copy_costs, calculate_allocno_spill_cost): Call
28742 ira_init_register_move_cost_if_necessary. Use
28743 ira_register_move_cost instead of ira_get_register_move_cost.
28744 (move_spill_restore, update_curr_costs): Ditto.
28745 (allocno_spill_priority): Make it inline.
28746 (color_pass): Allocate and free allocno_color_dat and object_color_data.
28747 (struct coalesce_data, coalesce_data_t): New.
28748 (allocno_coalesce_data): New definition.
28749 (ALLOCNO_COALESCE_DATA): New macro.
28750 (merge_allocnos, coalesced_allocno_conflict_p): Use
28751 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
28752 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
28753 (coalesce_allocnos): Ditto.
28754 (setup_coalesced_allocno_costs_and_nums): Ditto.
28755 (collect_spilled_coalesced_allocnos): Ditto.
28756 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
28757 (setup_slot_coalesced_allocno_live_ranges): Ditto.
28758 (coalesce_spill_slots): Ditto.
28759 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
28760 free allocno_coalesce_data.
28762 * ira-conflicts.c: Fix formatting.
28763 (process_regs_for_copy): Call
28764 ira_init_register_move_cost_if_necessary. Use
28765 ira_register_move_cost instead of ira_get_register_move_cost.
28766 (build_object_conflicts): Optimize.
28768 * ira-costs.c (record_reg_classes): Optimize. Call
28769 ira_init_register_move_cost_if_necessary. Use
28770 ira_register_move_cost, ira_may_move_in_cost, and
28771 ira_may_move_out_cost instead of ira_get_register_move_cost and
28772 ira_get_may_move_cost.
28773 (record_address_regs): Ditto.
28774 (scan_one_insn): Optimize.
28775 (find_costs_and_classes): Optimize.
28776 (process_bb_node_for_hard_reg_moves): Call
28777 ira_init_register_move_cost_if_necessary. Use
28778 ira_register_move_cost instead of ira_get_register_move_cost.
28780 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
28781 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
28782 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
28783 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
28785 (ira_initiate_emit_data, ira_finish_emit_data)
28786 (create_new_allocno): New functions.
28787 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
28788 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
28789 Use ira_register_move_cost instead of ira_get_register_move_cost.
28791 * ira-int.h: Fix some comments.
28792 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
28793 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
28794 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
28795 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
28797 (struct ira_allocno): Make mode and aclass a bitfield. Move other
28798 bitfield after mode. Make hard_regno a short int. Make
28799 hard_regno short. Remove first_coalesced_allocno and
28800 next_coalesced_allocno. Move mem_optimized_dest_p,
28801 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
28802 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
28803 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
28804 temp, colorable_p. Add new member add_data.
28805 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
28806 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
28807 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
28808 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
28809 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
28810 (ALLOCNO_ADD_DATA): New macro.
28811 (ira_emit_data_t): New typedef.
28812 (struct ira_emit_data): New. Move mem_optimized_dest_p,
28813 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
28814 from struct ira_allocno.
28815 (ALLOCNO_EMIT_DATA): New macro.
28816 (ira_allocno_emit_data, allocno_emit_reg): New.
28817 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
28818 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
28819 (OBJECT_ADD_DATA): New macro.
28820 (ira_reallocate): Remove.
28821 (ira_initiate_emit_data, ira_finish_emit_data): New.
28822 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
28823 (ira_init_register_move_cost_if_necessary): New.
28824 (ira_object_conflict_iter_next): Merge into
28825 ira_object_conflict_iter_cond.
28826 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
28828 * ira-live.c (process_single_reg_class_operands): Call
28829 ira_init_register_move_cost_if_necessary. Use
28830 ira_register_move_cost instead of ira_get_register_move_cost.
28832 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
28834 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
28836 * ira-costs.c: Fix formatting.
28837 (cost_classes, cost_classes_num): Remove.
28838 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
28839 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
28840 (cost_classes_del, cost_classes_htab): New.
28841 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
28842 (initiate_regno_cost_classes, setup_cost_classes): New.
28843 (setup_regno_cost_classes_by_aclass): New.
28844 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
28845 (record_reg_classes): Use regno_cost_classes instead of
28846 cost_classes. Move checking opposite operand up.
28847 (record_address_regs): Use regno_cost_classes
28848 instead of cost_classes.
28849 (scan_one_insn): Ditto. Use always general register.
28850 (print_allocno_costs): Use regno_cost_classes instead of
28852 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
28853 (find_costs_and_classes): Set up cost classes for each registers.
28854 Use also their mode for this. Use regno_cost_classes instead of
28856 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
28858 (free_ira_costs, ira_init_costs): Don't use cost_classes.
28859 (ira_costs, ira_set_pseudo_classes): Call
28860 initiate_regno_cost_classes and finish_regno_cost_classes.
28862 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
28864 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
28866 * target.def (ira_cover_classes): Remove.
28868 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
28870 * doc/tm.texi.in: Ditto.
28872 * ira-conflicts.c: Remove mentioning cover classes from the file.
28873 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
28874 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
28876 * targhooks.c (default_ira_cover_classes): Remove.
28878 * targhooks.h (default_ira_cover_classes): Ditto.
28880 * haifa-sched.c: Remove mentioning cover classes from the file.
28881 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
28882 ira_pressure_classes and ira_pressure_classes_num instead of
28883 ira_reg_class_cover_size and ira_reg_class_cover. Use
28884 sched_regno_pressure_class instead of sched_regno_cover_class.
28885 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
28886 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
28888 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
28889 classes from the file.
28890 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
28891 (struct object_hard_regs, struct object_hard_regs_node): New.
28892 (struct ira_object): New members profitable_hard_regs,
28893 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
28894 (struct ira_allocno): Rename cover_class to aclass. Rename
28895 cover_class_cost and updated_cover_class_cost to class_cost and
28896 updated_class_cost. Remove splay_removed_p and
28897 left_conflict_size. Add new members colorable_p.
28898 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
28899 (ALLOCNO_COLORABLE_P): New macro.
28900 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
28901 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
28902 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
28903 (OBJECT_...): Rename parameter C to O.
28904 (OBJECT_PROFITABLE_HARD_REGS): New macro.
28905 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
28906 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
28907 (struct target_ira_int): New members x_ira_max_memory_move_cost,
28908 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
28909 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
28910 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
28911 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
28912 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
28913 x_ira_reg_class_subunion.
28914 (ira_max_memory_move_cost, ira_max_register_move_cost)
28915 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
28916 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
28917 (ira_important_class_nums, ira_reg_class_superunion): New macros.
28918 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
28919 (ira_reg_class_union): Rename to ira_reg_class_subunion.
28920 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
28921 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
28922 (ira_tune_allocno_costs_and_cover_classes): Rename to
28923 ira_tune_allocno_costs.
28924 (ira_debug_hard_regs_forest): New.
28925 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
28926 (ira_object_conflict_iter_next): Fix comments.
28927 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
28928 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
28929 cover_class to aclass.
28930 (ira_allocate_and_accumulate_costs): Ditto.
28931 (ira_allocate_and_set_or_copy_costs): Ditto.
28933 * opts.c (decode_options): Remove ira_cover_class check.
28935 * ira-color.c: Remove mentioning cover classes from the file. Use
28936 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
28937 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
28938 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
28939 (splay-tree.h): Remove include.
28940 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
28941 before copy_freq_compare_func.
28942 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
28943 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
28945 (hard_regs_roots, hard_regs_node_vec): Ditto.
28946 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
28947 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
28948 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
28949 (create_new_object_hard_regs_node): Ditto.
28950 (add_new_object_hard_regs_node_to_forest): Ditto.
28951 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
28952 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
28954 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
28955 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
28956 (remove_unused_object_hard_regs_nodes): Ditto.
28957 (enumerate_object_hard_regs_nodes): Ditto.
28958 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
28959 (object_hard_regs_subnode_t): Ditto.
28960 (struct object_hard_regs_subnode): Ditto.
28961 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
28962 (setup_object_hard_regs_subnode_index): Ditto.
28963 (get_object_hard_regs_subnodes_num): Ditto.
28964 (form_object_hard_regs_nodes_forest): Ditto.
28965 (finish_object_hard_regs_nodes_tree): Ditto.
28966 (finish_object_hard_regs_nodes_forest): Ditto.
28967 (allocnos_have_intersected_live_ranges_p): Rename to
28968 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
28969 (pseudos_have_intersected_live_ranges_p): Rename to
28970 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
28971 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
28972 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
28973 (update_copy_costs): Remove assert. Skip cost update if the hard
28974 reg does not belong the class.
28975 (assign_hard_reg): Process only profitable hard regs.
28976 (uncolorable_allocnos_num): Make it scalar.
28977 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
28978 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
28979 and ira_reg_class_max_nregs.
28980 (bucket_allocno_compare_func): Check frequency first.
28981 (sort_bucket): Add compare function as a parameter.
28982 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
28983 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
28984 (push_allocno_to_stack): Rewrite for checking new allocno
28986 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
28987 (push_only_colorable): Pass new parameter to sort_bucket.
28988 (push_allocno_to_spill): Remove.
28989 (allocno_spill_priority_compare): Make it inline and rewrite.
28990 (splay_tree_allocate, splay_tree_free): Remove.
28991 (allocno_spill_sort_compare): New function.
28992 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
28993 build and use splay tree. Choose first allocno in uncolorable
28994 allocno bucket to spill. Remove setting spill cost.
28995 (all_conflicting_hard_regs): Remove.
28996 (setup_allocno_available_regs_num): Check only profitable hard
28997 regs. Print info about hard regs nodes.
28998 (setup_allocno_left_conflicts_size): Remove.
28999 (put_allocno_into_bucket): Don't call
29000 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
29001 (improve_allocation): New.
29002 (color_allocnos): Call setup_profitable_hard_regs,
29003 form_object_hard_regs_nodes_forest, improve_allocation,
29004 finish_object_hard_regs_nodes_forest. Setup spill cost.
29005 (print_loop_title): Use pressure classes.
29006 (color_allocnso): Ditto.
29007 (do_coloring): Remove allocation and freeing splay_tree_node_pool
29008 and allocnos_for_spilling.
29009 (ira_sort_regnos_for_alter_reg): Don't setup members
29010 {first,next}_coalesced_allocno.
29011 (color): Remove allocating and freeing removed_splay_allocno_vec.
29012 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
29013 prohibited_class_mode_regs.
29015 * ira-lives.c: Remove mentioning cover classes from the file. Fix
29017 (update_allocno_pressure_excess_length): Use pressure classes.
29018 (inc_register_pressure, dec_register_pressure): Check for pressure
29020 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
29021 pressure class. Use ira_reg_class_nregs instead of
29022 ira_reg_class_max_nregs.
29023 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
29024 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
29025 (single_reg_class): Use ira_reg_class_nregs instead of
29026 ira_reg_class_max_nregs.
29027 (process_bb_node_lives): Use pressure classes.
29029 * ira-emit.c: Remove mentioning cover classes from the file. Use
29030 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
29031 (change_loop): Use pressure classes.
29032 (modify_move_list): Call ira_set_allocno_class instead of
29033 ira_set_allocno_cover_class.
29035 * ira-build.c: Remove mentioning cover classes from the file. Use
29036 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
29037 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
29038 ALLOCNO_UPDATED_CLASS_COST instead of
29039 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
29040 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
29041 (ira_create_allocno): Remove initialization of
29042 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
29043 ALLOCNO_COLORABLE_P.
29044 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
29045 Update conflict regs for the objects.
29046 (create_cap_allocno): Remove assert. Don't propagate
29047 ALLOCNO_AVAILABLE_REGS_NUM.
29048 (ira_free_allocno_costs): New function.
29049 (finish_allocno): Change a part of code into call of
29050 ira_free_allocno_costs.
29051 (low_pressure_loop_node_p): Use pressure classes.
29052 (object_range_compare_func): Don't compare classes.
29053 (setup_min_max_conflict_allocno_ids): Ditto.
29055 * loop-invariant.c: Remove mentioning cover classes from the file.
29056 Use ira_pressure_classes and ira_pressure_classes_num instead of
29057 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
29058 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
29059 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
29060 Use reg_allocno_class instead of reg_cover_class.
29061 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
29062 STACK_REG_COVER_CLASS.
29063 (get_regno_cover_class): Rename to get_regno_pressure_class.
29064 (move_loop_invariants): Initialize and finalize regstat.
29066 * ira.c: Remove mentioning cover classes from the file. Add
29067 comments about coloring without cover classes. Use ALLOCNO_CLASS
29068 instead of ALLOCNO_COVER_CLASS. Fix formatting.
29069 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
29070 setup_class_subset_and_memory_move_costs.
29071 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
29072 (setup_cover_and_important_classes): Rename to
29073 setup_allocno_and_important_classes.
29074 (setup_class_translate_array): New.
29075 (setup_class_translate): Call it for allocno and pressure classes.
29076 (cover_class_order): Rename to allocno_class_order.
29077 (comp_reg_classes_func): Use ira_allocno_class_translate instead
29078 of ira_class_translate.
29079 (reorder_important_classes): Set up ira_important_class_nums.
29080 (setup_reg_class_relations): Set up ira_reg_class_superunion.
29081 (print_class_cover): Rename to print_classes. Add parameter.
29082 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
29083 Print pressure classes too.
29084 (find_reg_class_closure): Rename to find_reg_classes. Don't call
29085 setup_reg_subclasses.
29086 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
29087 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
29088 (setup_prohibited_class_mode_regs): Use
29089 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
29090 (clarify_prohibited_class_mode_regs): New function.
29091 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
29092 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
29093 (ira_init_once): Initialize them.
29094 (free_register_move_costs): Process them.
29095 (ira_init): Move calls of find_reg_classes and
29096 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
29097 Call clarify_prohibited_class_mode_regs.
29098 (ira_no_alloc_reg): Remove.
29099 (too_high_register_pressure_p): Use pressure classes.
29101 * sched-deps.c: Remove mentioning cover classes from the file.
29102 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
29103 ira_pressure_classes and ira_pressure_classes_num instead of
29104 ira_reg_class_cover_size and ira_reg_class_cover.
29105 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
29106 sched_regno_pressure_class instead of sched_regno_cover_class.
29107 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
29108 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
29110 * ira.h: Add 2010 to Copyright.
29111 (ira_no_alloc_reg): Remove external.
29112 (struct target_ira): Rename x_ira_hard_regno_cover_class,
29113 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
29114 x_ira_class_translate to x_ira_hard_regno_allocno_class,
29115 x_ira_allocno_classes_num, x_ira_allocno_classes, and
29116 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
29117 x_ira_pressure_classes, x_ira_pressure_class_translate, and
29118 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
29119 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
29120 x_ira_no_alloc_regs.
29121 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
29122 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
29123 ira_allocno_classes_num and ira_allocno_classes.
29124 (ira_class_translate): Rename to ira_allocno_class_translate.
29125 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
29126 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
29127 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
29128 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
29129 (ira_no_alloc_regs): New.
29131 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
29132 classes from the file. Use ALLOCNO_CLASS instead of
29133 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
29134 ALLOCNO_COVER_CLASS_COST.
29135 (regno_cover_class): Rename to regno_aclass.
29136 (record_reg_classes): Use ira_reg_class_subunion instead of
29137 ira_reg_class_union.
29138 (record_address_regs): Check overflow.
29139 (scan_one_insn): Ditto.
29140 (print_allocno_costs): Print total mem cost fore regional allocation.
29141 (print_pseudo_costs): Use REG_N_REFS.
29142 (find_costs_and_classes): Use classes intersected with them on the
29143 1st pass. Check overflow. Use ira_reg_class_subunion instead of
29144 ira_reg_class_union. Use ira_allocno_class_translate and
29145 regno_aclass instead of ira_class_translate and regno_cover_class.
29146 Modify code for finding regno_aclass. Setup preferred classes for
29148 (setup_allocno_cover_class_and_costs): Rename to
29149 setup_allocno_class_and_costs. Use regno_aclass instead of
29150 regno_cover_class. Use ira_set_allocno_class instead of
29151 ira_set_allocno_cover_class.
29152 (init_costs, finish_costs): Use regno_aclass instead of
29154 (ira_costs): Use setup_allocno_class_and_costs instead of
29155 setup_allocno_cover_class_and_costs.
29156 (ira_tune_allocno_costs_and_cover_classes): Rename to
29157 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
29158 by processing objects. Use ira_reg_class_max_nregs instead of
29159 ira_reg_class_nregs.
29161 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
29163 * sched-int.h: Remove mentioning cover classes from the file.
29164 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
29166 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
29167 classes from the file.
29168 (struct reg_pref): Rename coverclass into allocnoclass.
29169 (reg_cover_class): Rename to reg_allocno_class.
29171 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
29173 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
29175 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
29177 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
29179 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
29181 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
29183 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
29185 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
29187 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
29189 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
29191 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
29192 (i386_ira_cover_classes): Ditto.
29194 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
29196 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
29198 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
29200 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
29202 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
29204 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
29206 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
29207 (mips_ira_cover_classes): Ditto.
29209 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
29211 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
29213 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
29215 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
29217 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
29219 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
29220 (IRA_COVER_CLASSES_VSX): Ditto.
29222 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
29223 (rs6000_ira_cover_classes): Ditto.
29225 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
29227 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
29229 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
29231 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
29233 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
29235 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
29237 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
29239 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
29241 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
29243 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
29245 2011-03-29 Jakub Jelinek <jakub@redhat.com>
29248 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
29249 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
29250 dw_fde_unlikely_section_end_label, cold_in_std_section,
29251 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
29252 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
29254 (output_fde): Use dw_fde_second_{begin,end} if second is
29255 true, otherwise dw_fde_{begin,end}.
29256 (output_call_frame_info): Test dw_fde_second_begin != NULL
29257 instead of dw_fde_switched_sections.
29258 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
29259 fields, initialize new fields. Initialize in_std_section
29260 unconditionally from the first partition.
29261 (dwarf2out_end_epilogue): Don't override dw_fde_end when
29262 dw_fde_second_begin is non-NULL.
29263 (dwarf2out_switch_text_section): Stop initializing removed
29264 dw_fde_struct fields, initialize new fields, initialize
29265 also dw_fde_end here. Set dw_fde_switch_cfi even when
29266 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
29267 (struct var_loc_list_def): Add last_before_switch field.
29268 (arange_table, arange_table_allocated, arange_table_in_use,
29269 ARANGE_TABLE_INCREMENT, add_arange): Removed.
29270 (size_of_aranges): Count !in_std_section and !second_in_std_section
29271 hunks in fdes, instead of looking at arange_table_in_use.
29272 (output_aranges): Add aranges_length argument, don't call
29273 size_of_aranges here. Instead of using aranges_table*
29274 emit ranges for fdes when !in_std_section resp.
29275 !second_in_std_section.
29276 (dw_loc_list): Break ranges crossing section switch.
29277 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
29278 use dw_fde_second_end instead of dw_fde_end as end of last range.
29279 (gen_subprogram_die): Don't call add_arange. Use
29280 dw_fde_{begin,end} for first partition and if switched
29281 section dw_fde_second_{begin,end} for the second.
29282 (var_location_switch_text_section_1,
29283 var_location_switch_text_section): New functions.
29284 (dwarf2out_begin_function): Initialize cold_text_section even
29285 when function_section () isn't text_section.
29286 (prune_unused_types): Don't walk arange_table.
29287 (dwarf2out_finish): Don't needlessly test
29288 flag_reorder_blocks_and_partition when testing cold_text_section_used.
29289 If info_section_emitted, call size_of_aranges and if it indicates
29290 non-empty .debug_aranges, call output_aranges with the computed
29291 size. Stop using removed dw_fde_struct fields, use
29292 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
29296 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
29297 create ENTRY_VALUE if incoming or address of incoming's MEM
29299 * dwarf2out.c (mem_loc_descriptor): Don't emit
29300 DW_OP_GNU_entry_value of DW_OP_fbreg.
29301 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
29302 on ENTRY_VALUE is able to find the canonical parameter VALUE.
29303 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
29304 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
29306 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
29307 is a REG_P or MEM_P with REG_P address, compute hash directly
29308 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
29309 (preserve_only_constants): Don't clear VALUES forwaring
29310 ENTRY_VALUE to some other VALUE.
29312 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
29314 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
29315 instead of GEN_INT.
29317 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
29319 * cfgexpand.c (expand_gimple_cond): Always set the source location and
29320 block before expanding the statement.
29321 (expand_gimple_stmt_1): Likewise. Set them here...
29322 (expand_gimple_stmt): ...and not here. Tidy.
29323 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
29326 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
29328 * Makefile.in: New rule for cprop.o.
29329 * gcse.c: Move constant/copy propagation to cprop.c.
29330 (compute_local_properties): Only handle expression tables.
29331 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
29332 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
29333 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
29334 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
29335 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
29336 compute_cprop_data, find_used_regs, try_replace_reg,
29337 find_avail_set, cprop_jump, constprop_register, cprop_insn,
29338 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
29339 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
29340 find_bypass_set, reg_killed_on_edge, bypass_block,
29341 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
29342 execute_rtl_cprop, pass_rtl_cprop): Move to...
29343 * cprop.c: ...here. New file, constant/copy propagation for RTL
29344 moved from gcse.c to here with minor cleanups in duplicated code.
29346 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
29348 * config/i386/i386.c (flag_opts): Fix a typo in
29349 -mavx256-split-unaligned-store.
29351 2011-03-28 Anatoly Sokolov <aesok@post.ru>
29353 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
29354 LIBCALL_VALUE): Remove macros.
29355 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
29356 TARGET_FUNCTION_VALUE_REGNO_P): Define.
29357 (h8300_function_value, h8300_libcall_value,
29358 h8300_function_value_regno_p): New functions.
29360 2011-03-28 Anatoly Sokolov <aesok@post.ru>
29362 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
29364 2011-03-28 Jeff Law <law@redhat.com>
29366 * tree-ssa-threadupdate.c (redirect_edges): Call
29367 create_edge_and_update_destination_phis as needed.
29368 (create_edge_and_update_destination_phis): Accept new BB argument.
29369 All callers updated.
29370 (thread_block): Do not update the profile when threading around
29371 intermediate blocks.
29372 (thread_single_edge): Likewise.
29373 (determine_bb_domination_status): If BB is not a successor of the
29374 loop header, return NONDOMINATING.
29375 (register_jump_thread): Note when we register a jump thread around
29376 an intermediate block.
29377 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
29378 (thread_across_edge): Use it.
29380 2011-03-28 Tristan Gingold <gingold@adacore.com>
29382 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
29383 when for_return is 2.
29385 2011-03-28 Jeff Law <law@redhat.com>
29387 * var-tracking.c (canonicalize_values_mark): Delete unused
29389 (canonicalize_values_star, set_variable_part): Likewise.
29390 (clobber_variable_part, delete_variable_part): Likewise.
29392 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
29394 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
29396 2011-03-28 Martin Jambor <mjambor@suse.cz>
29398 * tree-inline.c (expand_call_inline): Do not check that destination
29400 (optimize_inline_calls): Assert that destination node is analyzed.
29401 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
29402 not call tree_lowering_passes.
29403 * cgraph.h (cgraph_analyze_function): Declare.
29404 * cgraphunit.c (cgraph_analyze_function): Make public.
29406 2011-03-28 Joseph Myers <joseph@codesourcery.com>
29408 * config/sparc/sparc-opts.h: New.
29409 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
29410 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
29411 (sparc_option_override): Store processor_type enumeration rather
29412 than string in cpu_default. Remove name and enumeration from
29413 cpu_table. Directly default -mcpu then default -mtune from -mcpu
29414 without using sparc_select. Use target_flags_explicit instead of
29416 * config/sparc/sparc.h (enum processor_type): Move to
29418 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
29419 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
29420 HeaderInclude entry.
29421 (mcpu=, mtune=): Use Var and Enum.
29422 (sparc_processor_type): New Enum and EnumValue entries.
29424 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29425 Iain Sandoe <iains@gcc.gnu.org>
29428 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
29430 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
29432 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
29433 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
29434 Insert new statements at it in lieu of STMT.
29435 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
29436 * tree-vect-stmts.c (vectorizable_store): Likewise.
29437 (vectorizable_load): Likewise.
29439 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
29441 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
29446 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
29448 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
29449 unaligned 256bit load/store.
29450 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
29451 (*avx_movdqu<avxmodesuffix>): Likewise.
29453 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
29456 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
29457 * config/pa/pa.md (iordi3): Use new predicate in expander.
29458 (iorsi3): Likewise.
29460 2011-03-27 Anatoly Sokolov <aesok@post.ru>
29462 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
29463 FUNCTION_VALUE_REGNO_P): Remove macros.
29464 * config/mips/mips-protos.h (mips_function_value): Remove.
29465 * config/mips/mips.c (mips_function_value): Rename to...
29466 (mips_function_value_1): ... this. Make static. Handle receiving
29467 the function type in 'fn_decl_or_type' argument.
29468 (mips_function_value, mips_libcall_value,
29469 mips_function_value_regno_p): New function.
29470 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
29471 TARGET_FUNCTION_VALUE_REGNO_P): Define.
29473 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
29475 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
29476 and -mavx256-split-unaligned-store.
29477 (ix86_option_override_internal): Split 32-byte AVX unaligned
29478 load/store by default.
29479 (ix86_avx256_split_vector_move_misalign): New.
29480 (ix86_expand_vector_move_misalign): Use it.
29482 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
29483 -mavx256-split-unaligned-store.
29485 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
29486 256bit load/store. Generate unaligned store on misaligned memory
29488 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
29490 (*avx_movdqu<avxmodesuffix>): Likewise.
29492 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
29493 -mavx256-split-unaligned-store.
29495 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
29498 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
29501 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
29503 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
29504 opno arguments with an expand_operand. Use create_input_operand.
29505 (mips_prepare_builtin_target): Delete.
29506 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
29508 (mips_expand_builtin_direct): Use create_output_operand and
29509 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
29510 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
29511 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
29513 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
29515 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
29517 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
29519 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
29521 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
29522 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
29523 basic blocks and call commit_edge_insertions directly.
29524 (fixup_abnormal_edges): Move from here to...
29525 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
29526 on the edges and return whether some have actually been inserted.
29527 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
29530 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
29532 PR rtl-optimization/48144
29533 * sel-sched-ir.c (merge_history_vect): Factor out from ...
29534 (merge_expr_data): ... here.
29535 (av_set_intersect): Rename to av_set_code_motion_filter.
29536 Update all callers. Call merge_history_vect when an expression
29537 is found in both sets.
29538 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
29540 2011-03-26 Alan Modra <amodra@gmail.com>
29542 * config/rs6000/predicates.md (word_offset_memref_op): Handle
29543 cmodel medium addresses.
29544 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
29545 64-bit gpr loads and stores.
29546 (rs6000_secondary_reload_ppc64): New function.
29547 * config/rs6000/rs6000-protos.h: Declare it.
29548 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
29550 2011-03-26 Alan Modra <amodra@gmail.com>
29553 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
29554 GNU Go in traceback table.
29556 2011-03-25 Richard Henderson <rth@redhat.com>
29558 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
29559 if there are exactly 6 operands.
29560 (set_storage_via_setmem): Similarly.
29562 2011-03-25 Kai Tietz <ktietz@redhat.com>
29564 * collect2.c (write_c_file_stat): Handle backslash
29565 as right-hand directory separator.
29566 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
29567 checking just for slash.
29568 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
29569 instead of checking for trailing slash.
29570 * gcc.c (record_temp_file): Use filename_cmp instead
29572 (do_spec_1): Likewise.
29573 (replace_outfile_spec_function): Likewise.
29574 (is_directory): Use filename_ncmp instead of strncmp.
29575 (print_multilib_info): Likewise.
29576 * gcov.c (find_source): Use filename_cmp instead
29578 (make_gcov_file_name): Fix order of slash/backslash
29580 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
29581 (add_standard_paths): Likewise.
29582 * mips-tfile.c (saber_stop): Handle backslash.
29583 * prefix.c (update_path): Use filename_ncmp instead of
29585 * profile.c (output_location): Use filename_cmp instead
29587 * read-md.c (handle_toplevel_file): Handle backslash.
29588 * tlink.c (frob_extension): Likewise.
29589 * tree-cfg.c (same_line_p): Use filename_cmp instead of
29591 * tree-dump.c (dequeue_and_dump): Handle backslash.
29592 * tree.c (get_file_function_name): Likewise.
29593 * gengtype.c (read_input_list): Likewise.
29594 (get_file_realbasename): Likewise.
29595 (get_output_file_with_visibility): Use filename_cmp
29598 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
29600 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
29603 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
29605 * fold-const.c (expr_location_or): New function.
29606 (fold_truth_not_expr): Call it.
29608 2011-03-25 Jeff Law <law@redhat.com>
29610 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
29612 * c-family/c-common.c (def_fn_type): Likewise.
29613 * emit-rtl.c (gen_rtvec): Likewise.
29614 * lto/lto-lang.c (def_fn_type): Likewise.
29616 2011-03-25 Richard Guenther <rguenther@suse.de>
29618 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
29619 also generate copies.
29620 (fini_copy_prop): Handle constant values properly.
29622 2011-03-25 Jakub Jelinek <jakub@redhat.com>
29624 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
29625 mode size instead of bitsize with DWARF2_ADDR_SIZE.
29626 (hash_loc_operands, compare_loc_operands): Handle
29627 DW_OP_GNU_entry_value.
29629 2011-03-25 Kai Tietz <ktietz@redhat.com>
29631 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
29632 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
29633 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
29634 comment and use macro TARGET_64BIT_MS_ABI instead.
29635 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
29636 and change default behavior for 32-bit MS_ABI.
29637 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
29638 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
29640 (ix86_cfun_abi): Likewise.
29641 (ix86_maybe_switch_abi): Adjust comment.
29642 (init_cumulative_args): Check for bit-ness in MS_ABI case.
29643 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
29644 instead of checking for SYSV_ABI.
29645 (ix86_nsaved_sseregs): Likewise.
29646 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
29648 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
29649 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
29650 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
29651 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
29652 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
29654 2011-03-25 Richard Guenther <rguenther@suse.de>
29656 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
29657 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
29658 (verify_gimple): Remove.
29659 * tree-cfg.c (verify_gimple_call): Merge verification
29661 (verify_gimple_phi): Merge verification from verify_stmts.
29662 (verify_gimple_label): New function.
29663 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
29664 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
29665 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
29666 (verify_stmts): Rename to verify_gimple_in_cfg.
29667 (verify_gimple_in_cfg): New function.
29668 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
29669 * tree-ssa.c (verify_ssa): Likewise.
29670 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
29672 2011-03-25 Richard Guenther <rguenther@suse.de>
29674 * passes.c (init_optimization_passes): Add FRE pass after
29677 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
29678 Andrew Stubbs <ams@codesourcery.com>
29680 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
29682 (arm_movdi_vfp_cortexa8): New pattern.
29683 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
29684 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
29685 instructions when tuning for Cortex-A8. Set attribute "arch".
29686 * config/arm/arm.md: Move include arm-tune.md up a bit.
29687 (define_attr "arch"): Add "onlya8" and "nota8" values.
29688 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
29690 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
29694 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
29696 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
29697 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
29698 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
29699 * passes.c (init_optimization_passes): Move
29700 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
29702 2011-03-25 Kai Tietz <ktietz@redhat.com>
29704 * c-typeck.c (comptypes_internal): Replace target
29705 hook call of comp_type_attributes by version in tree.c file.
29706 * gimple.c (gimple_types_compatible_p_1): Likewise.
29707 * tree-ssa.c (useless_type_conversion_p): Likewise.
29708 * tree.c (build_type_attribute_qual_variant): Likewise.
29709 (attribute_value_equal): New static helper function.
29710 (comp_type_attributes): New function.
29711 (merge_attributes): Use attribute_value_equal for comparison.
29712 (attribute_list_contained): Likewise.
29713 * tree.h (comp_type_attributes): New prototype.
29715 2011-03-25 Richard Guenther <rguenther@suse.de>
29717 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
29718 of complex types at -O0.
29719 (verify_gimple_assign_binary): Likewise.
29720 (verify_gimple_assign_ternary): Likewise.
29722 2011-03-24 Mark Wielaard <mjw@redhat.com>
29724 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
29725 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
29727 2011-03-24 Mark Wielaard <mjw@redhat.com>
29730 * dwarf2out.c (output_abbrev_section): Only write table when
29731 abbrev_die_table_in_use > 1.
29733 2011-02-24 Richard Henderson <rth@redhat.com>
29735 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
29736 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
29737 (alpha_expand_unaligned_load_words): Use extql.
29738 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
29739 (emit_insxl): Handle all modes for consistency.
29741 2011-02-24 Richard Henderson <rth@redhat.com>
29743 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
29744 (alpha_expand_unaligned_load): Likewise.
29745 (alpha_expand_unaligned_store): Likewise.
29746 (alpha_expand_unaligned_load_words): Likewise.
29747 (alpha_expand_unaligned_store_words): Likewise.
29748 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
29749 (alpha_split_lock_test_and_set_12): Likewise.
29750 (print_operand, alpha_fold_builtin_extxx): Likewise.
29751 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
29752 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
29753 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
29754 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
29755 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
29756 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
29757 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
29758 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
29759 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
29760 (extwl, extll, extql): Similarly.
29761 (inswh, inslh, insqh): Similarly.
29762 (mskbl, mskwl, mskll, mskql): Similarly.
29763 (mskwh, msklh, mskqh): Similarly.
29765 2011-02-24 Richard Henderson <rth@redhat.com>
29767 * config/alpha/alpha.md (attribute isa): Add er, ner.
29768 (attribute enabled): Handle them.
29769 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
29771 2011-02-24 Richard Henderson <rth@redhat.com>
29773 * config/alpha/alpha.md (attribute isa): Add vms.
29774 (attribute enabled): Handle it.
29775 (*movsf): Merge *movsf_{nofix,fix,nofp}.
29776 (*movdf): Merge *movdf_{nofix,fix,nofp}.
29777 (*movtf): Rename from *movtf_internal for consistency.
29778 (*movsi): Merge with *movsi_nt_vms.
29779 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
29780 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
29781 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
29782 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
29784 2011-02-24 Richard Henderson <rth@redhat.com>
29786 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
29787 (extendqisi2, extendhisi2): Likewise.
29788 (extendqidi2): Simplify BWX/non-BWX expansions.
29789 (extendhidi2): Similarly.
29791 2011-02-24 Richard Henderson <rth@redhat.com>
29793 * config/alpha/alpha.md (attribute isa): New.
29794 (attribute enabled): New.
29795 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
29796 (zero_extendqisi2, zero_extendqidi2): Similarly.
29797 (zero_extendhisi2, zero_extendhidi2): Similarly.
29798 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
29800 2011-02-24 Richard Henderson <rth@redhat.com>
29802 * config/alpha/predicates.md (input_operand): Revert last change;
29803 update comment to mention 32-bit VMS rather than Windows.
29805 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
29807 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
29808 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
29809 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
29810 * passes.c (init_optimization_passes): Move
29811 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
29813 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
29815 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
29817 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
29819 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
29822 2011-03-24 Jakub Jelinek <jakub@redhat.com>
29825 * simplify-rtx.c (simplify_const_unary_operation): Call
29826 real_convert when changing mode class with FLOAT_EXTEND.
29828 2011-03-24 Nick Clifton <nickc@redhat.com>
29830 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
29831 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
29832 * config/rx/rx.c (rx_option_override): Set align_jumps,
29833 align_loops and align_labels if not set by the user.
29834 (rx_align_for_label): New function.
29835 (rx_max_skip_for_label): New function.
29836 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
29837 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
29838 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
29839 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
29840 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
29842 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
29844 PR rtl-optimization/48263
29845 * optabs.c (expand_binop_directly): Reinstate convert_modes code
29846 and original commutative_p handling. Use maybe_gen_insn.
29848 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
29850 * reload.c (find_reloads_subreg_address): Add address_reloaded
29851 parameter and return true there if the full address has been
29853 (find_reloads_toplev): Pass address_reloaded flag.
29854 (find_reloads_address_1): Don't use address_reloaded parameter.
29856 2011-03-24 Jeff Law <law@redhat.com>
29858 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
29859 unused variable "ann".
29860 (remove_unused_locals): Likewise.
29862 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
29865 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
29868 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
29870 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
29871 for invalid symbolic addresses.
29872 (s390_secondary_reload): Don't use s390_check_symref_alignment for
29875 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
29877 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
29878 the argument in calls to fold_truth_not_expr.
29880 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
29882 * tree.c (record_node_allocation_statistics): New function.
29883 (make_node_stat, copy_node_stat, build_string): Call it.
29884 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
29885 (build1_stat, build_omp_clause): Likewise.
29887 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
29889 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
29892 2011-03-24 Richard Guenther <rguenther@suse.de>
29894 PR tree-optimization/48271
29895 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
29896 blocks that still exist.
29898 2011-03-24 Richard Guenther <rguenther@suse.de>
29900 PR tree-optimization/48270
29901 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
29902 not free datarefs before ddrs.
29904 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
29906 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
29907 from the address built for a reference with variable offset.
29909 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
29912 * config/i386/i386.md (*movdf_internal_rex64): Do not split
29913 alternatives that can be handled with movq or movabsq insn.
29914 (*movdf_internal): Disable for !TARGET_64BIT.
29915 (*movdf_internal_nointeger): Ditto.
29916 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
29918 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
29920 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
29921 (FUNCTION_ARG_ADVANCE): Likewise.
29922 * tm.texi.in: Change references to them to hook references.
29923 * tm.texi: Regenerate.
29924 * targhooks.c (default_function_arg): Eliminate check for target macro.
29925 (default_function_incoming_arg): Likewise.
29926 (default_function_arg_advance): Likewise.
29927 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
29928 (function_arg_advance): Likewise.
29929 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
29931 2011-03-24 Richard Guenther <rguenther@suse.de>
29933 PR middle-end/48269
29934 * tree-object-size.c (addr_object_size): Do not double-account
29935 for MEM_REF offsets.
29937 2011-03-24 Diego Novillo <dnovillo@google.com>
29939 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
29940 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
29941 (lto_input_data_block): Move from lto-opts.c. Make extern.
29943 (lto_input_string): Rename from input_string. Make extern.
29945 * lto-streamer-out.c (lto_output_string_with_length): Rename from
29946 output_string_with_length.
29947 Output 0 to indicate a non-NULL string. Update all callers to
29949 (lto_output_string): Rename from output_string. Make extern.
29951 (lto_output_decl_state_streams): Make extern.
29952 (lto_output_decl_state_refs): Make extern.
29953 * lto-streamer.h (lto_input_string): Declare.
29954 (lto_input_data_block): Declare.
29955 (lto_output_string): Declare.
29956 (lto_output_string_with_length): Declare.
29957 (lto_output_decl_state_streams): Declare.
29958 (lto_output_decl_state_refs): Declare.
29960 2011-03-24 Richard Guenther <rguenther@suse.de>
29962 PR tree-optimization/46562
29963 * tree.c (build_invariant_address): New function.
29964 * tree.h (build_invariant_address): Declare.
29965 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
29966 a renamed function moved ...
29967 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
29968 Take valueization callback parameter.
29969 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
29970 * gimple-fold.h: New file.
29971 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
29972 (ccp_fold, fold_const_aggregate_ref,
29973 fold_ctor_reference, fold_nonarray_ctor_reference,
29974 fold_array_ctor_reference, fold_string_cst_ctor_reference,
29975 get_base_constructor): Move ...
29976 * gimple-fold.c: ... here.
29977 (gimple_fold_stmt_to_constant_1): New function
29978 split out from ccp_fold. Take a valueization callback parameter.
29979 Valueize all operands.
29980 (gimple_fold_stmt_to_constant): New wrapper function.
29981 (fold_const_aggregate_ref_1): New function split out from
29982 fold_const_aggregate_ref. Take a valueization callback parameter.
29983 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
29984 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
29985 invariant POINTER_PLUS_EXPRs to invariant form.
29986 (vn_valueize): New function.
29987 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
29988 * tree-vrp.c (vrp_valueize): New function.
29989 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
29990 to fold statements to constants.
29991 * tree-ssa-pre.c (eliminate): Properly guard propagation of
29992 function declarations.
29993 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
29994 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
29996 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
29998 * config/h8300/predicates.md (jump_address_operand): Fix register
30001 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
30003 * doc/invoke.texi (max-stores-to-sink): Document.
30004 * params.h (MAX_STORES_TO_SINK): Define.
30005 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
30006 if either vectorization or if-conversion is disabled.
30007 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
30008 tree-vect-data-refs.c vect_equal_offsets.
30009 (dr_equal_offsets_p): New function.
30010 (find_data_references_in_bb): Remove static.
30011 * tree-data-ref.h (find_data_references_in_bb): Declare.
30012 (dr_equal_offsets_p): Likewise.
30013 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
30014 (vect_drs_dependent_in_basic_block): Update calls to
30015 vect_equal_offsets.
30016 (vect_check_interleaving): Likewise.
30017 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
30018 (cond_if_else_store_replacement): Rename to...
30019 (cond_if_else_store_replacement_1): ... this. Change arguments and
30021 (cond_if_else_store_replacement): New function.
30022 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
30023 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
30025 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
30028 * config/arm/arm.md (casesi): Use the gen_int_mode() function
30029 to subtract lower bound instead of GEN_INT().
30031 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
30036 * doc/extend.texi (Alignment): Move section to match order in TOC.
30037 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
30038 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
30040 2011-03-23 Jeff Law <law@redhat.com>
30042 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
30043 before removing the edge.
30045 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
30046 it may have been freed by redirect_branch_edge or
30047 redirect_edge_succ_nodup.
30049 2011-03-23 Richard Guenther <rguenther@suse.de>
30051 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
30052 (check_va_list_escapes): Likewise.
30053 (check_all_va_list_escapes): Likewise.
30055 2011-03-23 Richard Guenther <rguenther@suse.de>
30057 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
30058 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
30059 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
30060 (alias.o): Likewise.
30061 (ipa-type-escape.o): Remove.
30062 (ipa-struct-reorg.o): Likewise.
30063 (GTFILES): Remove ipa-struct-reorg.c.
30064 * alias.c: Do not include ipa-type-escape.h.
30065 * tree-ssa-alias.c: Likewise.
30066 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
30067 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
30068 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
30069 and ipa-type-escape passes.
30070 * tree-pass.h (pass_ipa_type_escape): Remove.
30071 (pass_ipa_struct_reorg): Likewise.
30072 * ipa-struct-reorg.h: Remove.
30073 * ipa-struct-reorg.c: Likewise.
30074 * ipa-type-escape.h: Likewise.
30075 * ipa-type-escape.c: Likewise.
30076 * doc/invoke.texi (-fipa-struct-reorg): Remove.
30077 (--param struct-reorg-cold-struct-ratio): Likewise.
30078 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
30079 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
30080 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
30082 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
30084 * config/s390/2084.md: Enable all insn reservations also for z9_ec
30085 cpu attribute value.
30086 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
30087 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
30088 * config/s390/s390.c (processor_flags_table): New constant array.
30089 (s390_handle_arch_option): Remove.
30090 (s390_handle_option): Remove s390_handle_arch_option invocations
30091 and OPT_mwarn_framesize_ handling.
30092 (s390_option_override): Remove s390_handle_arch_option invocation.
30093 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
30095 * config/s390/s390.md (cpu attribute): Add z9_ec value.
30096 * config/s390/s390.opt (s390_tune, s390_arch)
30097 (march=): Replace s390_arch_option enum and values with
30098 processor_type. Set variable name to s390_arch. Set
30099 initialization value.
30100 (mtune=): Replace s390_arch_option with processor_type. Set
30101 variable name to s390_tune. Set initialization value.
30103 2011-03-23 Julian Brown <julian@codesourcery.com>
30105 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
30106 accesses which are not naturally aligned.
30108 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
30111 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
30113 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
30115 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
30116 parameter from "int" to "enum insn_code".
30117 (expand_operand_type): New enum.
30118 (expand_operand): New structure.
30119 (create_expand_operand): New function.
30120 (create_fixed_operand, create_output_operand): Likewise
30121 (create_input_operand, create_convert_operand_to): Likewise.
30122 (create_convert_operand_from, create_address_operand): Likewise.
30123 (create_integer_operand): Likewise.
30124 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
30125 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
30126 (expand_insn, expand_jump_insn): Likewise.
30127 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
30128 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
30129 (expand_movstr, expand_builtin___clear_cache): Likewise.
30130 (expand_builtin_lock_release): Likewise.
30131 * explow.c (allocate_dynamic_stack_space): Likewise.
30132 (probe_stack_range): Likewise. Allow check_stack to FAIL,
30133 and use the default handling in that case.
30134 * expmed.c (check_predicate_volatile_ok): Delete.
30135 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
30136 (emit_cstore): Likewise.
30137 * expr.c (emit_block_move_via_movmem): Likewise.
30138 (set_storage_via_setmem, expand_assignment): Likewise.
30139 (emit_storent_insn, try_casesi): Likewise.
30140 (emit_single_push_insn): Likewise. Allow the expansion to fail.
30141 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
30142 (expand_vec_shift_expr, expand_binop_directly): Likewise.
30143 (expand_twoval_unop, expand_twoval_binop): Likewise.
30144 (expand_unop_direct, emit_indirect_jump): Likewise.
30145 (emit_conditional_move, vector_compare_rtx): Likewise.
30146 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
30147 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
30148 (expand_sync_lock_test_and_set): Likewise.
30149 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
30150 (emit_unop_insn): Likewise.
30151 (expand_copysign_absneg): Change icode to an insn_code.
30152 (create_convert_operand_from_type): New function.
30153 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
30154 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
30155 (expand_insn, expand_jump_insn): Likewise.
30156 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
30157 than const_int_operand for operand 2.
30159 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
30161 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
30164 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
30166 * emit-rtl.c (emit_pattern_before_noloc): New function.
30167 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
30168 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
30169 (emit_pattern_after_noloc): New function.
30170 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
30171 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
30173 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
30175 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
30176 (__ffsDI2): Likewise.
30178 2011-03-22 Richard Henderson <rth@redhat.com>
30180 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
30181 of !TARGET_ABI_OPEN_VMS.
30182 (alpha_trampoline_init, alpha_start_function): Likewise.
30183 (alpha_expand_epilogue, alpha_file_start): Likewise.
30184 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
30185 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
30186 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
30187 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
30188 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
30190 2011-03-22 Joseph Myers <joseph@codesourcery.com>
30192 * config/s390/s390-opts.h: New.
30193 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
30194 s390_arch_flags, s390_warn_framesize, s390_stack_size,
30195 s390_stack_guard): Remove.
30196 (s390_handle_arch_option): Return void. Take enum
30197 s390_arch_option value instead of string and searching array.
30198 (s390_handle_option): Don't assert that global structures are in
30199 use. Access variables via opts pointer. Use error_at. Don't use
30200 sscanf for -mstack-guard= or -mstack-size=. Update call to
30201 s390_handle_arch_option.
30202 (s390_option_override): Update call to s390_handle_arch_option.
30203 (s390_emit_prologue): Use %d format for s390_stack_size in
30204 diagnostic. Use %wd for HOST_WIDE_INT.
30205 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
30206 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
30207 * config/s390/s390.opt (config/s390/s390-opts.h): New
30208 HeaderInclude entry.
30209 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
30210 s390_arch_flags, s390_warn_framesize): New Variable entries.
30211 (s390_arch_option): New Enum and EnumValue entries.
30212 (march=): Use Enum instead of Var.
30213 (mstack-guard=, mstack-size=): Use UInteger and Var.
30214 (mtune=): Use Enum.
30216 2011-03-22 Joseph Myers <joseph@codesourcery.com>
30218 * config/score/score.c (score_handle_option): Don't assert that
30219 global structures are in use. Access target_flags via opts
30220 pointer. Use value of -march= option to determine target_flags
30222 * config/score/score.opt (march=): Use Enum.
30223 (score_arch): New Enum and EnumValue entries.
30225 2011-03-22 Joseph Myers <joseph@codesourcery.com>
30227 * config/mep/mep.c (option_mtiny_specified): Remove.
30228 (mep_option_override): Move register handling for -mivc2 from
30229 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
30230 instead of option_mtiny_specified.
30231 (mep_handle_option): Access target_flags via opts pointer. Don't
30232 assert that global structures are in use. Defer part of -mivc2
30233 handling and move it to mep_option_override.
30234 * config/mep/mep.opt (IVC2): New Mask entry.
30235 (mivc2): Use Var and Defer instead of Mask.
30237 2011-03-22 Joseph Myers <joseph@codesourcery.com>
30239 * config/v850/v850-opts.h: New.
30240 * config/v850/v850.c (small_memory): Replace with
30241 small_memory_physical_max array. Make that array static const.
30242 (v850_handle_memory_option): Take integer value of argument. Take
30243 gcc_options pointer, option text and location. Return void.
30244 Update for changes to small memory structures.
30245 (v850_handle_option): Access target_flags via opts pointer. Don't
30246 assert that global structures are in use. Update calls to
30247 v850_handle_memory_option.
30248 (v850_encode_data_area): Update references to small memory settings.
30249 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
30250 (enum small_memory_type): Move to v850-opts.h.
30251 * config/v850/v850.opt (config/v850/v850-opts.h): New
30252 HeaderInclude entry.
30253 (small_memory_max): New Variable entry.
30254 (msda): Replace by pair of options msda= and msda-. Use UInteger.
30255 (mtda, mzda): Likewise.
30257 2011-03-22 Joseph Myers <joseph@codesourcery.com>
30259 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
30260 pointer. Don't assert that global structures are in use.
30262 2011-03-22 Joseph Myers <joseph@codesourcery.com>
30264 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
30265 via opts pointer. Don't assert that global structures are in use.
30267 2011-03-22 Joseph Myers <joseph@codesourcery.com>
30269 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
30270 (munix=93): Use Var.
30271 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
30272 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
30273 * config/pa/pa-opts.h: New.
30274 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
30275 (pa_handle_option): Don't assert that global structures are in
30276 use. Access target_flags via opts pointer. Don't handle
30277 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
30279 (pa_option_override): Handle deferred OPT_mfixed_range_.
30281 2011-03-22 Joseph Myers <joseph@codesourcery.com>
30283 * config/mn10300/mn10300-opts.h: New.
30284 * config/mn10300/mn10300.c (mn10300_processor,
30285 mn10300_tune_string): Remove.
30286 (mn10300_handle_option): Don't assert that global structures are
30287 in use. Access mn10300_processor via opts pointer. Don't handle
30289 * config/mn10300/mn10300.h (enum processor_type): Move to
30291 (mn10300_processor): Remove.
30292 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
30293 HeaderInclude entry.
30294 (mn10300_processor): New Variable entry.
30297 2011-03-22 Joseph Myers <joseph@codesourcery.com>
30299 * config/microblaze/microblaze.c: Don't include opts.h.
30300 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
30301 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
30302 (mno-clearbss): Use Var and Warn.
30304 2011-03-22 Joseph Myers <joseph@codesourcery.com>
30306 * config/m32r/m32r-opts.h: New.
30307 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
30308 (m32r_handle_option): Don't assert that global structures are in
30309 use. Access target_flags and m32r_cache_flush_func via opts
30310 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
30311 OPT_mno_flush_trap here.
30312 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
30313 include of m32r-opts.h.
30314 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
30315 HeaderInclude entry.
30316 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
30317 (mmodel=): Use Enum and Var.
30318 (m32r_model): New Enum and EnumValue entries.
30319 (mno-flush-trap): Use Var.
30320 (msdata=): Use Enum and Var.
30321 (m32r_sdata): New Enum and EnumValue entries.
30323 2011-03-22 Joseph Myers <joseph@codesourcery.com>
30325 * config/m32c/m32c.c: Don't include opts.h.
30326 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
30327 m32c_handle_option): Remove.
30328 (m32c_option_override): Check global_options_set.x_target_memregs
30329 instead of target_memregs_set.
30330 * config/m32c/m32c.h (target_memregs): Remove.
30331 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
30334 2011-03-22 Joseph Myers <joseph@codesourcery.com>
30336 * config/iq2000/iq2000-opts.h: New.
30337 * config/iq2000/iq2000.c: Don't include opts.h.
30338 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
30339 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
30340 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
30341 HeaderInclude entry.
30342 (iq2000_tune): New Variable entry.
30343 (march=): Add comment. Use Enum.
30344 (iq2000_arch): New Enum and EnumValue entries.
30345 (mcpu=): Use Enum and Var.
30346 (iq2000_tune): New Enum and EnumValue entries.
30348 2011-03-22 Joseph Myers <joseph@codesourcery.com>
30350 * config/ia64/ia64-opts.h: New.
30351 * config/ia64/ia64.c (ia64_tune): Remove.
30352 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
30353 here. Use error_at.
30354 (ia64_option_override): Handle deferred OPT_mfixed_range_.
30355 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
30356 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
30357 HeaderInclude entry.
30358 (ia64_tune): New Variable entry.
30359 (mfixed-range=): Use Defer and Var.
30360 (mtune=): Use Enum and Var.
30361 (ia64_tune): New Enum and EnumValue entries.
30363 2011-03-22 Joseph Myers <joseph@codesourcery.com>
30365 * config/frv/frv-opts.h: New.
30366 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
30368 (frv_cpu_type): Remove.
30369 * config/frv/frv.c: Don't include opts.h.
30370 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
30371 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
30372 (frv_cpu_type): New Variable entry.
30373 (frv_cpu): New Enum and EnumValue entries.
30375 2011-03-22 Joseph Myers <joseph@codesourcery.com>
30377 * config/cris/cris.c (cris_handle_option): Access target_flags via
30378 opts pointer. Don't assert that global structures are in use.
30379 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
30380 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
30382 2011-03-22 Joseph Myers <joseph@codesourcery.com>
30384 * config/bfin/bfin-opts.h: New.
30385 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
30386 bfin_si_revision, bfin_workarounds): Remove.
30387 (bfin_cpus): Make static const.
30388 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
30389 not bfin_lib_id_given.
30390 (bfin_handle_option): Don't set bfin_lib_id_given. Access
30391 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
30392 pointer. Use error_at. Don't assert that global structures are in use.
30393 * config/bfin/bfin.h: Include bfin-opts.h.
30394 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
30395 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
30396 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
30397 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
30400 2011-03-22 Joseph Myers <joseph@codesourcery.com>
30402 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
30403 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
30404 or -msoft-float here.
30405 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
30406 -msoft-float and -mhard-float.
30407 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
30408 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
30410 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
30412 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
30413 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
30415 (LIBGCC_SPEC): Don't handle -msoft-float.
30416 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
30418 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
30420 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
30421 -mfloat-abi=*, not -msoft-float and -mhard-float.
30422 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
30424 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
30425 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
30426 mhard-float and msoft-float.
30427 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
30428 mfloat-abi=soft in comments, not mhard-float and msoft-float.
30429 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
30430 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
30432 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
30433 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
30435 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
30437 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
30440 2011-03-22 Richard Henderson <rth@redhat.com>
30442 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
30443 TARGET_ABI_WINDOWS_NT.
30444 (alpha_output_function_end_prologue): Likewise.
30445 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
30446 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
30447 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
30448 (trap, *movsi_nt_vms): Likewise.
30449 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
30450 (*tablejump_osf_nt_internal): Remove.
30451 * config/alpha/predicates.md (input_operand): Only test Pmode.
30453 2011-03-22 Joseph Myers <joseph@codesourcery.com>
30455 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
30456 via opts pointer. Use error_at. Don't assert that global
30457 structures are in use.
30459 2011-03-22 Joseph Myers <joseph@codesourcery.com>
30461 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
30462 (ix86_handle_option): Access ix86_isa_flags and
30463 ix86_isa_flags_explicit via opts pointer. Don't assert that
30464 global structures are in use.
30465 (ix86_function_specific_save, ix86_function_specific_restore):
30466 Update ix86_isa_flags_explicit field name.
30467 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
30468 (ix86_isa_flags_explicit): Rename TargetSave entry to
30469 x_ix86_isa_flags_explicit.
30471 2011-03-22 Richard Henderson <rth@redhat.com>
30473 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
30474 (alpha_option_override, direct_return): Likewise.
30475 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
30476 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
30477 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
30478 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
30479 (alpha_expand_epilogue, alpha_end_function): Likewise.
30480 (alpha_init_libfuncs): Likewise.
30481 (struct machine_function): Remove unicosmk members.
30482 (print_operand) ['t']: Remove.
30483 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
30484 unicosmk_output_module_name, unicosmk_output_common,
30485 current_section_align, unicosmk_output_text_section_asm_op,
30486 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
30487 unicosmk_section_type_flags, unicosmk_unique_section,
30488 unicosmk_asm_named_section, unicosmk_insert_attributes,
30489 unicosmk_output_align, unicosmk_defer_case_vector,
30490 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
30491 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
30492 unicosmk_output_ssib, unicosmk_add_call_info_word,
30493 unicosmk_extern_head, unicosmk_output_default_externs,
30494 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
30495 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
30496 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
30497 * config/alpha/alpha-protos.h: Update.
30498 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
30499 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
30500 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
30501 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
30502 (*mulsi_se, mulvsi3): Likewise.
30503 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
30504 (*divmodsi_internal, call, call_value, realign): Likewise.
30505 (moddi3, umoddi3): Likewise; remove duplicate expander.
30506 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
30507 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
30508 (*movdi_nofix): Remove r/U alternative.
30509 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
30510 * config/alpha/constraints.md ("U"): Remove.
30511 * config/alpha/predicates.md (call_operand"): Don't test
30512 TARGET_ABI_UNICOSMK.
30514 2011-03-22 Joseph Myers <joseph@codesourcery.com>
30516 * target.def (handle_option): Take gcc_options and
30517 cl_decoded_option pointers and location_t.
30518 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
30519 * doc/tm.texi: Regenerate.
30520 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
30521 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
30522 * lto-opts.c (lto_reissue_options): Generate option structure for
30523 targetm.handle_option call.
30524 * opts.c (target_handle_option): Update call to
30525 targetm.handle_option. Remove assertions about values now passed
30527 * targhooks.c (default_target_handle_option): New.
30528 * targhooks.h (default_target_handle_option): Declare.
30529 * config/alpha/alpha.c: Include opts.h.
30530 (alpha_handle_option): Update to new hook interface.
30531 * config/arm/arm.c: Include opts.h.
30532 (arm_handle_option): Update to new hook interface.
30533 * config/arm/t-arm (arm.o): Update dependencies.
30534 * config/bfin/bfin.c: Include opts.h.
30535 (bfin_handle_option): Update to new hook interface.
30536 * config/cris/cris.c: Include opts.h.
30537 (cris_handle_option): Update to new hook interface.
30538 * config/frv/frv.c: Include opts.h.
30539 (frv_handle_option): Update to new hook interface.
30540 * config/i386/i386.c: Include opts.h.
30541 (ix86_handle_option): Update to new hook interface.
30542 (ix86_valid_target_attribute_inner_p): Generate option structure
30543 for call to ix86_handle_option.
30544 * config/i386/t-i386 (i386.o): Update dependencies.
30545 * config/ia64/ia64.c: Include opts.h.
30546 (ia64_handle_option): Update to new hook interface.
30547 * config/ia64/t-ia64 (ia64.o): Update dependencies.
30548 * config/iq2000/iq2000.c: Include opts.h.
30549 (iq2000_handle_option): Update to new hook interface.
30550 * config/m32c/m32c.c: Include opts.h.
30551 (m32c_handle_option): Update to new hook interface.
30552 * config/m32r/m32r.c: Include opts.h.
30553 (m32r_handle_option): Update to new hook interface.
30554 * config/m68k/m68k.c: Include opts.h.
30555 (m68k_handle_option): Update to new hook interface.
30556 * config/mep/mep.c: Include opts.h.
30557 (mep_handle_option): Update to new hook interface.
30558 * config/microblaze/microblaze.c: Include opts.h.
30559 (microblaze_handle_option): Update to new hook interface.
30560 * config/mips/mips.c: Include opts.h.
30561 (mips_handle_option): Update to new hook interface.
30562 * config/mn10300/mn10300.c: Include opts.h.
30563 (mn10300_handle_option): Update to new hook interface.
30564 * config/pa/pa.c: Include opts.h.
30565 (pa_handle_option): Update to new hook interface.
30566 * config/pdp11/pdp11.c: Include opts.h.
30567 (pdp11_handle_option): Update to new hook interface.
30568 * config/rs6000/rs6000.c: Include opts.h.
30569 (rs6000_handle_option): Update to new hook interface.
30570 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
30571 * config/rx/rx.c: Include opts.h.
30572 (rx_handle_option): Update to new hook interface.
30573 * config/s390/s390.c: Include opts.h.
30574 (s390_handle_option): Update to new hook interface.
30575 * config/score/score.c: Include opts.h.
30576 (score_handle_option): Update to new hook interface.
30577 * config/sh/sh.c: Include opts.h.
30578 (sh_handle_option): Update to new hook interface.
30579 * config/sparc/sparc.c: Include opts.h.
30580 (sparc_handle_option): Update to new hook interface.
30581 * config/v850/v850.c: Include opts.h.
30582 (v850_handle_option): Update to new hook interface.
30584 2011-03-22 Joseph Myers <joseph@codesourcery.com>
30586 * gcc.c (driver_unknown_option_callback): Only permit and save
30587 unknown -Wno- options.
30588 (driver_wrong_lang_callback): Save options directly instead of via
30589 driver_unknown_option_callback.
30591 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
30593 * combine.c (simplify_set): Try harder to find the best CC mode when
30594 simplifying a nested COMPARE on the RHS.
30596 2011-03-22 Joseph Myers <joseph@codesourcery.com>
30598 * config/alpha/gnu.h: Remove.
30599 * config/arc: Remove directory.
30600 * config/arm/netbsd.h: Remove.
30601 * config/arm/t-pe: Remove.
30602 * config/crx: Remove directory.
30603 * config/i386/netbsd.h: Remove.
30604 * config/m68hc11: Remove directory.
30605 * config/m68k/uclinux-oldabi.h: Remove.
30606 * config/mcore/mcore-pe.h: Remove.
30607 * config/mcore/t-mcore-pe: Remove.
30608 * config/netbsd-aout.h: Remove.
30609 * config/rs6000/gnu.h: Remove.
30610 * config/sh/sh-symbian.h: Remove.
30611 * config/sh/symbian-base.c: Remove.
30612 * config/sh/symbian-c.c: Remove.
30613 * config/sh/symbian-cxx.c: Remove.
30614 * config/sh/symbian-post.h: Remove.
30615 * config/sh/symbian-pre.h: Remove.
30616 * config/sh/t-symbian: Remove.
30617 * config/svr3.h: Remove.
30618 * config/vax/netbsd.h: Remove.
30619 * config.build: Don't handle i[34567]86-*-pe.
30620 * config.gcc: Remove handling of deprecations for most deprecated
30622 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
30623 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
30624 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
30625 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
30626 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
30627 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
30629 * config.host: Don't handle i[34567]86-*-pe.
30630 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
30631 (ASM_SPEC32): Don't handle -mcall-gnu.
30632 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
30634 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
30635 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
30636 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
30637 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
30638 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
30639 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
30640 conditional on SYMBIAN.
30641 * configure.ac: Don't handle powerpc*-*-gnu*.
30642 * configure: Regenerate.
30643 * doc/extend.texi (interrupt attribute): Don't mention CRX.
30644 * doc/install-old.texi (m6811, m6812): Don't mention.
30645 * doc/install.texi (arc-*-elf*): Don't document multilib option.
30646 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
30647 (m68k-uclinuxoldabi): Don't mention.
30648 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
30650 (-mcall-gnu): Remove.
30651 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
30652 families): Remove constraint documentation.
30654 2011-03-22 Marius Strobl <marius@FreeBSD.org>
30656 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
30657 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
30658 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
30660 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
30663 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
30664 vector when peeking at the next token for vector, don't expand the
30667 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
30669 * config/avr/avr-protos.h (expand_epilogue): Change prototype
30670 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
30671 * config/avr/avr.c (init_cumulative_args)
30672 (avr_function_arg_advance): Use it.
30673 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
30675 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
30676 (avr_function_ok_for_sibcall): ...this new function.
30677 (avr_lookup_function_attribute1): New static Function.
30678 (avr_naked_function_p, interrupt_function_p)
30679 (signal_function_p, avr_OS_task_function_p)
30680 (avr_OS_main_function_p): Use it.
30681 * config/avr/avr.md ("sibcall", "sibcall_value")
30682 ("sibcall_epilogue"): New expander.
30683 ("*call_insn", "*call_value_insn"): New insn.
30684 ("call_insn", "call_value_insn"): Remove
30685 ("call", "call_value", "epilogue"): Change expander to handle
30688 2011-03-21 Nick Clifton <nickc@redhat.com>
30690 * doc/invoke.texi (Overall Options): Move closing brace to end of
30692 (Optimization Options): Add missing @gol.
30693 (Directory Options): Likewise.
30694 (i386 and x86-64 Options): Likewise.
30695 (RS6000 and PowerPC Options): Likewise.
30696 (i386 and x86-64 Windows Options): Likewise.
30697 (V850 Options): Add text missing from descriptions.
30699 2011-03-22 Richard Henderson <rth@redhat.com>
30701 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
30702 (avr_incoming_return_addr_rtx): New.
30703 (emit_push_byte): New.
30704 (expand_prologue): Use it. Remove incorrect dwarf annotation for
30705 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
30706 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
30707 (emit_pop_byte): New.
30708 (expand_epilogue): Use it. Pop frame pointer by bytes.
30709 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
30710 (INCOMING_RETURN_ADDR_RTX): New.
30711 (INCOMING_FRAME_SP_OFFSET): New.
30712 (ARG_POINTER_CFA_OFFSET): New.
30713 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
30714 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
30717 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
30719 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
30721 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
30722 (FUNCTION_ARG_ADVANCE): Likewise.
30723 * tm.texi.in: Change references to them to hook references.
30724 * tm.texi: Regenerate.
30725 * targhooks.c (default_function_arg): Eliminate check for target
30727 (default_function_incoming_arg): Likewise.
30728 (default_function_arg_advance): Likewise.
30729 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
30730 (function_arg_advance): Likewise.
30731 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
30733 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
30735 * tree.c (build_call_1): New function.
30736 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
30738 2011-03-22 Richard Guenther <rguenther@suse.de>
30740 PR tree-optimization/48228
30741 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
30742 for single-arg PHIs.
30744 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
30746 PR rtl-optimization/48143
30747 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
30748 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
30749 sse2_cvtps2pd): Likewise.
30751 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
30753 * recog.c (canonicalize_change_group): Use validate_unshare_change.
30755 2011-03-22 Richard Guenther <rguenther@suse.de>
30757 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
30758 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
30759 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
30760 and REALIGN_LOAD_EXPR.
30761 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
30762 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
30763 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
30764 DOT_PROD_EXPR case ...
30765 (expand_expr_real_2): ... here.
30766 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
30767 and REALIGN_LOAD_EXPR.
30768 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
30769 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
30770 (vect_create_epilog_for_reduction): Likewise.
30771 (vectorizable_reduction): Likewise.
30772 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
30773 * tree-vect-stmts.c (vectorizable_load): Likewise.
30775 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
30777 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
30779 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
30781 * config/s390/s390.c (s390_delegitimize_address): Fix offset
30782 handling for PLTOFF/GOTOFF.
30784 2011-03-22 Nick Clifton <nickc@redhat.com>
30786 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
30787 trailing backslash from the end of the macro definition.
30789 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
30791 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
30794 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
30796 * expr.h (prepare_operand): Move to...
30797 * optabs.h (prepare_operand): ...here and change the insn code
30798 parameter from "int" to "enum insn_code".
30799 (insn_operand_matches): Declare.
30800 * expr.c (init_expr_target): Use insn_operand_matches.
30801 (compress_float_constant): Likewise.
30802 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
30803 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
30804 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
30805 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
30807 (gen_cond_trap): Likewise.
30808 (prepare_operand): Likewise. Change icode to an insn_code.
30809 (insn_operand_matches): New function.
30810 * reload.c (find_reloads_address_1): Use insn_operand_matches.
30811 * reload1.c (gen_reload): Likewise.
30812 * targhooks.c (default_secondary_reload): Likewise.
30814 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
30816 * config/alpha/alpha.md (unspec): New define_c_enum.
30819 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
30822 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
30823 between a call and its CALL_ARG_LOCATION note.
30825 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
30827 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
30829 2011-03-21 Jakub Jelinek <jakub@redhat.com>
30833 * c-common.c (shorten_compare): If primopN is first sign-extended
30834 to opN and then zero-extended to result type, set primopN to opN.
30836 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
30838 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
30839 for barrier handlers.
30841 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
30843 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
30844 UNSPEC constants to be in the unspec enumeration, and redefine
30845 all UNSPECV constants to be in the unspecv enumeration, so that
30846 dumps print which unspec/unspec_volatile this is.
30847 * config/rs6000/vector.md (UNSPEC_*): Ditto.
30848 * config/rs6000/paired.md (UNSPEC_*): Ditto.
30849 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
30850 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
30851 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
30853 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
30854 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
30855 UNSPECV_LWSYNC, since these are used as unspec_volatile.
30856 * config/rs6000/sync.md (isync, lwsync): Ditto.
30858 2011-03-21 Richard Guenther <rguenther@suse.de>
30860 * params.def (lto-min-partition): Fix typo.
30862 2011-03-21 Richard Guenther <rguenther@suse.de>
30865 * c-decl.c (grokdeclarator): Drop to the main variant only
30866 for array types. Drop flag_gen_aux_info check.
30868 2011-03-21 Richard Guenther <rguenther@suse.de>
30870 PR translation/47911
30871 * params.def (lto-partitions): Fix typo.
30872 (lto-min-partition): Fix wording.
30874 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
30876 * config/rs6000/t-freebsd: Remove duplication from file.
30878 2011-03-21 Richard Guenther <rguenther@suse.de>
30880 PR middle-end/47661
30881 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
30883 2011-03-21 Richard Guenther <rguenther@suse.de>
30886 * params.def (lto-partitions): Require at least 1 partition.
30888 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30890 * gthr-solaris.h: Remove.
30891 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
30892 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
30893 (LIB_SPEC): Likewise.
30894 * config/sol2.opt (threads): Remove.
30895 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
30896 (sparc*-*-solaris2*): Likewise.
30897 * configure.ac (enable_threads): Enable solaris support.
30898 * configure: Regenerate.
30899 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
30900 * doc/install.texi (Configuration, --enable-threads=lib): Remove
30903 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30905 * config.gcc: Obsolete *-*-solaris2.8*.
30906 * doc/install.texi (Specific, *-*-solaris2*): Document it.
30908 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30911 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
30912 reference. Solaris 8 perl works.
30914 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30917 * doc/install.texi (Prerequisites): Move jar etc. up.
30918 Explain support library version requirements.
30920 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30923 * doc/install.texi (Prerequisites): Move Perl to build
30924 requirements. Always necessary on Solaris 2 with Sun ld.
30926 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30928 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
30930 (Specific, i?86-*-solaris2.[89]): Likewise.
30931 (Specific, i?86-*-solaris2.10): Likewise.
30932 (Specific, mips-sgi-irix6): Likewise.
30933 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
30934 Update for binutils 2.21.
30936 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30938 * configure.ac (gcc_cv_lto_plugin): Fix typo.
30939 Allow -fuse-linker-plugin for non-default plugin linker.
30940 * configure: Regenerate.
30942 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
30945 * gengtype.c (files_rules): Added rule for cp/parser.h.
30947 2011-03-21 Jakub Jelinek <jakub@redhat.com>
30950 * config/s390/s390.c (s390_delegitimize_address): Don't call
30951 lowpart_subreg if orig_x has BLKmode.
30953 2011-03-21 Kai Tietz <ktietz@redhat.com>
30956 * doc/plugins.texi: Adjust documentation for plugin register_callback.
30957 * tree.h (attribute_spec): Add new member affects_type_identity.
30958 * attribs.c (empty_attribute_table): Adjust attribute_spec
30960 * config/alpha/alpha.c: Likewise.
30961 * config/arc/arc.c: Likewise.
30962 * config/arm/arm.c: Likewise.
30963 * config/avr/avr.c: Likewise.
30964 * config/bfin/bfin.c: Likewise.
30965 * config/crx/crx.c: Likewise.
30966 * config/darwin.h: Likewise.
30967 * config/h8300/h8300.c: Likewise.
30968 * config/i386/cygming.h: Likewise.
30969 * config/i386/i386.c: Likewise.
30970 * config/ia64/ia64.c: Likewise.
30971 * config/m32c/m32c.c: Likewise.
30972 * config/m32r/m32r.c: Likewise.
30973 * config/m68hc11/m68hc11.c: Likewise.
30974 * config/m68k/m68k.c: Likewise.
30975 * config/mcore/mcore.c: Likewise.
30976 * config/mep/mep.c: Likewise.
30977 * config/microblaze/microblaze.c: Likewise.
30978 * config/mips/mips.c: Likewise.
30979 * config/rs6000/rs6000.c: Likewise.
30980 * config/rx/rx.c: Likewise.
30981 * config/sh/sh.c: Likewise.
30982 * config/sol2.h: Likewise.
30983 * config/sparc/sparc.c: Likewise.
30984 * config/spu/spu.c: Likewise.
30985 * config/stormy16/stormy16.c: Likewise.
30986 * config/v850/v850.c: Likewise.
30988 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
30990 * simplify-rtx.c (simplify_binary_operation_1): Handle
30991 (xor (and A B) C) case when B and C are both constants.
30993 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
30995 * tree-dfa.c (add_referenced_var): Fix typo in comment.
30997 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
31000 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
31002 2011-03-20 Jakub Jelinek <jakub@redhat.com>
31004 PR rtl-optimization/48156
31005 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
31006 assume df and df_lr are not NULL.
31008 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
31011 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
31012 between a call and its CALL_ARG_LOCATION note.
31014 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
31017 * config/sh/sh.c (find_barrier): Don't emit a constant pool
31018 between a call and its corresponding CALL_ARG_LOCATION note.
31020 2011-03-19 Anatoly Sokolov <aesok@post.ru>
31022 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
31023 instead of loop. Use HARD_REGISTER_NUM_P predicate.
31024 * haifa-sched.c (setup_ref_regs): Ditto.
31025 * caller-save.c (add_used_regs_1): Ditto.
31026 * dse.c (look_for_hardregs): Ditto.
31027 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
31028 * sched-rgn.c (check_live_1): Ditto.
31030 2011-03-18 Joseph Myers <joseph@codesourcery.com>
31032 * c-decl.c (diagnose_mismatched_decls): Give an error for
31033 redefining a typedef with variably modified type.
31035 2011-03-18 Joseph Myers <joseph@codesourcery.com>
31037 * c-decl.c (grokfield): Don't allow typedefs for structures or
31038 unions with no tag by default.
31039 * doc/extend.texi (Unnamed Fields): Update.
31041 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
31043 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
31044 Rewrite using indirect functions.
31045 (lwp_slwpcb): Ditto.
31046 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
31047 (avx_vinsertf128<mode>): Ditto.
31049 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
31051 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
31054 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
31056 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
31057 splitting between a call and its corresponding CALL_ARG_LOCATION note.
31059 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
31061 PR rtl-optimization/48170
31062 * gcse.c (hoist_code): Remove bogus asserts.
31064 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
31066 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
31067 computation for prologue/epilogue.
31069 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31071 * Makefile.in (check-consistency): Remove.
31073 2011-03-18 Jakub Jelinek <jakub@redhat.com>
31076 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
31077 arange_table_in_use is 0, but either text_section_used or
31078 cold_text_section_used is true. Don't call it if
31079 !info_section_emitted.
31081 2011-03-18 Anatoly Sokolov <aesok@post.ru>
31083 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
31084 FUNCTION_VALUE_REGNO_P): Remove.
31085 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
31087 * config/avr/avr.c (avr_ret_register): Make static inline.
31088 (avr_function_value_regno_p): New function.
31089 (avr_libcall_value): Make static. Add 'func' argument.
31090 (avr_function_value): Make static. Rename 'func' argument to
31091 'fn_decl_or_type', forward it to avr_libcall_value. Call
31092 avr_ret_register function instead of RET_REGISTER macro.
31093 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
31095 2011-03-18 Jason Merrill <jason@redhat.com>
31098 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
31100 2011-03-18 Richard Guenther <rguenther@suse.de>
31102 * doc/install.texi (--enable-gold): Remove.
31103 (--with-plugin-ld): Document.
31104 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
31106 2011-03-18 Andrew Pinski <pinskia@gmail.com>
31108 PR middle-end/47790
31109 * expr.c (optimize_bitfield_assignment_op): Revamp to work
31110 again after expansion changes.
31112 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
31114 * combine.c (try_combine): Do simplification only call of
31115 subst() on i2 even when i1 is present. Update comments.
31117 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
31119 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
31120 and UNSPEC_PCREL_SYMOFF.
31122 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
31124 * config/s390/s390.md: Use define_c_enum for the unspec constant
31127 2011-03-18 Richard Henderson <rth@redhat.com>
31128 Jakub Jelinek <jakub@redhat.com>
31131 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
31132 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
31134 2011-03-17 Anatoly Sokolov <aesok@post.ru>
31136 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
31137 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
31138 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
31139 Change return type to bool.
31140 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
31142 2011-03-17 Jakub Jelinek <jakub@redhat.com>
31145 * var-tracking.c (prepare_call_arguments): If CALL target
31146 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
31147 pc instead of looking it up using cselib_lookup and use
31148 Pmode for it if x has VOIDmode.
31149 * dwarf2out.c (gen_subprogram_die): If also both first and
31150 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
31153 * function.c (assign_parms): For data.passed_pointer parms
31154 use MEM of data.entry_parm instead of data.entry_parm itself
31155 as DECL_INCOMING_RTL.
31156 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
31157 also when passed and declared mode is the same, DECL_RTL
31158 is a MEM with pseudo as address and DECL_INCOMING_RTL is
31161 2011-03-16 Jeff Law <law@redhat.com>
31163 PR rtl-optimization/37273
31164 * ira-costs.c (scan_one_insn): Detect constants living in memory and
31165 handle them like argument loads from stack slots. Do not double
31166 count memory for memory constants and argument loads from stack slots.
31168 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
31171 * var-tracking.c (prepare_call_arguments): Check SUBREG.
31173 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
31176 * config/i386/i386.opt: Add Save to -mavx and -mfma.
31178 2011-03-17 Jakub Jelinek <jakub@redhat.com>
31181 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
31183 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
31184 Clear call_arg_locations and call_arg_loc_last always.
31186 PR middle-end/48152
31187 * var-tracking.c (prepare_call_arguments): If argument needs to be
31188 passed by reference, adjust argtype and mode.
31190 2011-03-17 Richard Guenther <rguenther@suse.de>
31192 PR middle-end/48134
31193 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
31194 a value make sure to fold the statement.
31196 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
31199 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
31200 return condition with !cfun->calls_alloca.
31202 2011-03-17 Richard Guenther <rguenther@suse.de>
31205 * lto-cgraph.c (input_overwrite_node): Clear the abstract
31206 origin for decls in other ltrans units.
31207 (input_varpool_node): Likewise.
31209 2011-03-17 Richard Guenther <rguenther@suse.de>
31211 PR middle-end/48165
31212 * tree-object-size.c (compute_object_offset): Properly return
31213 the offset operand of MEM_REFs as sizetype.
31215 2011-03-17 Jakub Jelinek <jakub@redhat.com>
31217 PR rtl-optimization/48141
31218 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
31219 * dse.c: Include params.h.
31220 (active_local_stores_len): New variable.
31221 (add_wild_read, dse_step1): Clear it when setting active_local_stores
31223 (record_store, check_mem_read_rtx): Decrease it when removing
31225 (scan_insn): Likewise. Increase it when adding to chain, if it
31226 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
31227 set active_local_stores to NULL before the addition.
31228 * Makefile.in (dse.o): Depend on $(PARAMS_H).
31230 PR rtl-optimization/48141
31231 * dse.c (record_store): If no positions are needed in an insn
31232 that cannot be deleted, at least unchain it from active_local_stores.
31234 2011-03-16 Dodji Seketeli <dodji@redhat.com>
31237 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
31238 (lookup_type_die_strip_naming_typedef): ... here.
31239 (get_context_die): Use it.
31240 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
31241 the anonymous struct named by the naming typedef.
31243 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
31246 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
31247 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
31249 2011-03-16 Jeff Law <law@redhat.com>
31251 * tree-vrp.c (identify_jump_threads): Slightly simplify type
31252 check for operands of conditional. Allow type to be a pointer.
31254 2011-03-16 Richard Guenther <rguenther@suse.de>
31256 PR tree-optimization/48149
31257 * fold-const.c (fold_binary_loc): Fold
31258 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
31260 2011-03-16 Richard Guenther <rguenther@suse.de>
31262 PR tree-optimization/26134
31263 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
31264 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
31265 (non_rewritable_mem_ref_base): Handle complex type component
31266 accesses, constrain offsets for vector and complex extracts
31269 2011-03-16 Richard Guenther <rguenther@suse.de>
31271 PR tree-optimization/48146
31272 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
31273 operands avoiding the need for renaming.
31275 2011-03-16 Richard Guenther <rguenther@suse.de>
31277 * gimple-fold.c (maybe_fold_reference): Open-code relevant
31278 constant folding. Move MEM_REF canonicalization first.
31279 Rely on fold_const_aggregate_ref for initializer folding.
31280 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
31282 2011-03-16 Jakub Jelinek <jakub@redhat.com>
31284 PR middle-end/48136
31285 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
31286 arg0/arg1 or their arguments are always fold converted to matching
31289 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
31292 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31295 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
31296 Handle in-tree gold.
31297 (ld_vers): Extract binutils version for gold.
31298 (gcc_cv_ld_hidden): Handle gold here.
31299 (gcc_cv_lto_plugin): Determine level of linker plugin support.
31300 * configure: Regenerate.
31301 * config.in: Regenerate.
31302 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
31303 -fuse-linker-plugin otherwise.
31304 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
31305 (LINK_COMMAND_SPEC): Use it.
31306 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
31308 2011-03-16 Jakub Jelinek <jakub@redhat.com>
31310 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
31311 * calls.c: Remove debug.h include.
31312 (emit_call_1): Don't call virtual_call_token debug hook.
31313 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
31314 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
31315 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
31316 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
31317 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
31318 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
31319 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
31320 dwarf2out_virtual_call): Remove.
31321 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
31322 copy_call_info and virtual_call hooks.
31323 (dwarf2out_init): Don't initialize vcall_insn_table,
31324 debug_dcall_section and debug_vcall_section.
31325 (prune_unused_types): Don't mark nodes from dcall_table.
31326 (dwarf2out_finish): Don't output dcall or vcall tables.
31327 * final.c (final_scan_insn): Don't call direct_call or
31328 virtual_call debug hooks.
31329 * debug.h (struct gcc_debug_hooks): Remove direct_call,
31330 virtual_call_token, copy_call_info and virtual_call hooks.
31331 (debug_nothing_uid): Remove prototype.
31332 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
31333 copy_call_info and virtual_call hooks.
31334 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
31335 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
31336 * debug.c (do_nothing_debug_hooks): Likewise.
31337 (debug_nothing_uid): Remove.
31338 * doc/invoke.texi (-fenable-icf-debug): Remove.
31339 * common.opt (-fenable-icf-debug): Likewise.
31341 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
31342 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
31343 call's MEM. Handle functions returning aggregate through a hidden
31344 first pointer. For virtual calls add clobbered pc to call arguments
31346 * dwarf2out.c (gen_subprogram_die): Emit
31347 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
31351 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
31352 * rtl.h (ENTRY_VALUE_EXP): Define.
31353 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
31354 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
31355 * print-rtl.c (print_rtx): Likewise.
31356 * gengtype.c (adjust_field_rtx_def): Likewise.
31357 * var-tracking.c (vt_add_function_parameter): Adjust
31358 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
31359 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
31360 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
31361 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
31362 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
31364 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
31365 Call var_location debug hook even on CALL_INSNs.
31366 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
31367 * rtl.def (ENTRY_VALUE): New.
31368 * dwarf2out.c: Include cfglayout.h.
31369 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
31370 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
31371 (struct call_arg_loc_node): New type.
31372 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
31373 tail_call_site_count): New variables.
31374 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
31375 DW_TAG_GNU_call_site_parameter.
31376 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
31377 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
31378 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
31379 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
31380 and DW_AT_GNU_all_source_call_sites.
31381 (mem_loc_descriptor): Handle ENTRY_VALUE.
31382 (add_src_coords_attributes): Don't add enything if
31383 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
31384 (dwarf2out_abstract_function): Save and clear call_arg_location,
31385 call_site_count and tail_call_site_count around dwarf2out_decl call.
31386 (gen_call_site_die): New function.
31387 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
31388 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
31389 (dwarf2out_function_decl): Clear call_arg_locations,
31390 call_arg_loc_last, set call_site_count and tail_call_site_count
31391 to -1 and free block_map.
31392 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
31393 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
31394 followed by any real instructions.
31395 (dwarf2out_begin_function): Set call_site_count and
31396 tail_call_site_count to 0.
31397 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
31398 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
31399 attempt to force a DIE for it and worst case remove the attribute.
31400 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
31401 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
31403 * var-tracking.c: Include tm_p.h.
31404 (vt_stack_adjustments): For calls call note_register_arguments.
31405 (argument_reg_set): New variable.
31406 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
31407 ensure the VALUE is resolved.
31408 (call_arguments): New variable.
31409 (prepare_call_arguments): New function.
31410 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
31411 (struct expand_loc_callback_data): Add ignore_cur_loc field.
31412 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
31413 always use the best expression.
31414 (vt_expand_loc): Add ignore_cur_loc argument.
31415 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
31416 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
31417 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
31418 note for all calls.
31419 (vt_add_function_parameter): Use cselib_lookup_from_insn.
31420 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
31421 argument. Don't call cselib_preserve_only_values and
31422 cselib_reset_table.
31423 (note_register_arguments): New function.
31424 (vt_initialize): Compute argument_reg_set. Call
31425 vt_add_function_parameters before processing basic blocks instead of
31426 afterwards. For calls call prepare_call_arguments before calling
31427 cselib_process_insn.
31428 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
31429 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
31430 (var-tracking.o): Depend on $(TM_P_H).
31431 * cfglayout.h (insn_scope): New prototype.
31432 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
31433 * cfglayout.c (insn_scope): No longer static.
31434 * insn-notes.def (CALL_ARG_LOCATION): New.
31435 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
31436 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
31437 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
31438 nothing for DECL_EXTERNAL BLOCK_VARS.
31440 2011-03-16 Alan Modra <amodra@gmail.com>
31443 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
31444 create invalid offset address for vsx splat insn.
31445 * config/rs6000/predicates.md (splat_input_operand): New.
31446 * config/rs6000/vsx.md (vsx_splat_*): Use it.
31448 2011-03-15 Xinliang David Li <davidxl@google.com>
31451 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
31452 (normalize_preds): New function.
31453 (is_use_properly_guarded): Normalize def predicates.
31455 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
31458 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
31459 in the output template.
31461 2011-03-15 Richard Guenther <rguenther@suse.de>
31463 PR middle-end/47650
31464 * tree-pretty-print.c (dump_function_declaration): Properly
31465 dump unprototyped and varargs function types.
31467 2011-03-15 Richard Guenther <rguenther@suse.de>
31469 PR tree-optimization/13954
31470 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
31473 2011-03-15 Richard Guenther <rguenther@suse.de>
31475 PR tree-optimization/48037
31476 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
31477 selects into BIT_FIELD_REFs.
31478 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
31481 2011-03-15 Jakub Jelinek <jakub@redhat.com>
31483 PR tree-optimization/48129
31484 * builtins.c (fold_builtin_snprintf): Convert to type of
31485 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
31486 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
31488 2011-03-15 Richard Guenther <rguenther@suse.de>
31490 PR tree-optimization/41490
31491 * tree-ssa-dce.c (propagate_necessity): Handle returns without
31492 value but with VUSE.
31493 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
31495 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
31496 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
31497 * tree-tailcall.c (find_tail_calls): Ignore returns.
31499 2011-03-15 Richard Guenther <rguenther@suse.de>
31501 PR middle-end/48031
31502 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
31503 or variable-indexed array accesses when in gimple form.
31505 2011-03-15 Richard Guenther <rguenther@suse.de>
31507 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
31509 2011-03-15 Alan Modra <amodra@gmail.com>
31512 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
31513 presume symbol_refs without a symbol_ref_decl are suitably
31514 aligned, nor other trees we may see here. Handle anchor symbols.
31515 (legitimate_constant_pool_address_p): Comment. Add mode param.
31516 Check cmodel=medium addresses. Adjust all calls.
31517 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
31518 creating cmodel=medium optimized access to locals.
31519 * config/rs6000/constraints.md (R): Pass QImode to
31520 legitimate_constant_pool_address_p.
31521 * config/rs6000/predicates.md (input_operand): Pass mode to
31522 legitimate_constant_pool_address_p.
31523 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
31526 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
31529 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
31530 64-bit constants being loaded into registers other than GPRs such
31531 as loading 0 into a VSX register.
31533 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31535 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
31537 2011-03-14 Jakub Jelinek <jakub@redhat.com>
31539 PR middle-end/47917
31540 * builtins.c (fold_builtin_snprintf): New function.
31541 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
31542 (fold_builtin_4): Likewise.
31544 PR middle-end/38878
31545 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
31546 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
31547 and C - X == X also strip nops from +/-/p+ operand.
31548 When optimizing -X == C, fold C to arg0's type.
31551 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
31552 emit it as add_AT_int instead of add_AT_unsigned.
31554 2011-03-14 Tom Tromey <tromey@redhat.com>
31556 * unwind-dw2.c: Include sys/sdt.h if it exists.
31557 (_Unwind_DebugHook): Use STAP_PROBE2.
31558 * config.in, configure: Rebuild.
31559 * configure.ac: Check for sys/sdt.h.
31561 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
31563 * config/i386/i386.md (ROUND_FLOOR): New constant.
31564 (ROUND_CEIL): Ditto.
31565 (ROUND_TRUNC): Ditto.
31566 (ROUND_MXCSR): Ditto.
31567 (ROUND_NO_EXC): Ditto.
31568 (rint<mode>2): Use new defines instead of numerical constants.
31569 (floor<mode>2): Ditto.
31570 (ceil<mode>2): Ditto.
31571 (btrunc<mode>2): Ditto.
31572 * config/i386/i386-builtin-types.def: Define ROUND function type
31574 * config/i386/i386.c (enum ix86_builtins): Add
31575 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
31576 (struct builtin_description): Add
31577 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
31578 (ix86_expand_sse_round): New static function.
31579 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
31581 (ix86_builtin_vectorized_function): Handle
31582 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
31584 2011-03-14 Tom Tromey <tromey@redhat.com>
31586 * c-parser.c (c_parser_asm_string_literal): Clear
31587 warn_overlength_strings.
31589 2011-03-14 Tom Tromey <tromey@redhat.com>
31591 * c-parser.c (disable_extension_diagnostics): Save
31592 warn_overlength_strings.
31593 (restore_extension_diagnostics): Restore warn_overlength_strings.
31595 2011-03-14 Jakub Jelinek <jakub@redhat.com>
31597 * BASE-VER: Change to 4.7.0.
31599 2011-03-14 Richard Guenther <rguenther@suse.de>
31601 PR middle-end/48098
31602 * tree.c (build_vector_from_val): Adjust assert to requirements
31605 2011-03-14 Jakub Jelinek <jakub@redhat.com>
31608 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
31610 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
31612 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
31613 terms of target_flags_explicit. Adjust copyright year.
31615 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
31616 * config/rs6000/t-freebsd: New file. Add override for
31619 2011-03-13 Chris Demetriou <cgd@google.com>
31621 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
31622 (-fno-diagnostics-show-option): this, to reflect current default.
31623 (-Werror=): Update text about -fno-diagnostics-show-option.
31625 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
31628 * config/rs6000/predicates.md (easy_vector_constant_add_self,
31629 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
31630 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
31631 mode is not V2DImode or V2DFmode.
31632 (vspltis_constant): Do not handle V2DImode and V2DFmode.
31633 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
31634 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
31636 (movdi_internal64): Likewise.
31638 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
31640 PR tree-optimization/47127
31641 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
31643 (set_cloog_options): Same.
31644 (scop_to_clast): Same.
31645 (print_clast_stmt): Do not call cloog_state_malloc and
31647 (print_generated_program): Same.
31649 * graphite-clast-to-gimple.h (cloog_state): Declared.
31650 (scop_to_clast): Adjust declaration.
31651 * graphite.c (cloog_state): Defined here.
31652 (graphite_initialize): Call cloog_state_malloc.
31653 (graphite_finalize): Call cloog_state_free.
31655 2011-03-11 Jason Merrill <jason@redhat.com>
31657 * attribs.c (lookup_attribute_spec): Take const_tree.
31660 2011-03-11 Joseph Myers <joseph@codesourcery.com>
31662 * config/sparc/sparc.c (sparc_option_override): Use
31663 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
31665 2011-03-11 Richard Guenther <rguenther@suse.de>
31667 PR tree-optimization/48067
31668 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
31669 multiplication result will be only used once on the target
31672 2011-03-11 Richard Guenther <rguenther@suse.de>
31674 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
31676 2011-03-11 Richard Guenther <rguenther@suse.de>
31679 * tree.c (find_decls_types_r): Do not walk types only reachable
31680 from IDENTIFIER_NODEs.
31682 2011-03-11 Jakub Jelinek <jakub@redhat.com>
31684 PR middle-end/48044
31685 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
31686 all vnode->force_output nodes as needed.
31688 2011-03-11 Jason Merrill <jason@redhat.com>
31691 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
31692 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
31694 2011-03-11 Martin Jambor <mjambor@suse.cz>
31696 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
31699 2011-03-11 Jakub Jelinek <jakub@redhat.com>
31701 PR tree-optimization/48063
31702 * ipa-inline.c (cgraph_decide_inlining): Don't try to
31703 inline functions called once if !tree_can_inline_p (node->callers).
31705 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
31707 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
31709 * config/score/score3.c: Delete.
31710 * config/score/score3.h: Delete.
31711 * config/score/mul-div.S: Delete.
31712 * config/score/sfp-machine.h: Add new file.
31713 * config/score/constraints.md: Add new file.
31714 * config/score/t-score-softfp: Add new file.
31715 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
31716 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
31717 (score7_extra_constraint): Delete.
31718 (score7_option_override): Remove unused code.
31719 * config/score/score.c: Remove score3 and score5 define and code.
31720 * config/score/score.h: Remove score3 and score5 define and code.
31721 * config/score/score.md: Remove score3 template and unusual insn.
31722 * config/score/score.opt: Remove score3 and score5 options.
31724 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
31726 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
31727 when _HPUX_SOURCE is defined.
31728 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
31730 2011-03-10 Jason Merrill <jason@redhat.com>
31733 * stor-layout.c (layout_type): Don't set structural equality
31734 on arrays of incomplete type.
31735 * tree.c (type_hash_eq): Handle comparing them properly.
31737 2011-03-10 Jakub Jelinek <jakub@redhat.com>
31740 * config/s390/s390.c (s390_delegitimize_address): Make sure the
31741 result mode matches original rtl mode.
31743 2011-03-10 Nick Clifton <nickc@redhat.com>
31745 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
31746 (andsi3, andsi3_flags): Fix timings for three operand alternative.
31748 2011-03-09 Jakub Jelinek <jakub@redhat.com>
31750 PR rtl-optimization/47866
31751 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
31752 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
31753 if target wasn't scalar.
31754 * function.c (assign_stack_temp_for_type): Assert that neither
31755 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
31756 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
31758 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
31760 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
31762 * config/s390/s390-protos.h (s390_label_align): New prototype.
31763 * config/s390/s390.c (s390_label_align): New function.
31764 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
31766 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
31769 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
31770 V2DI/V2DF constants. Only all 0's or all 1's are easy.
31771 (output_vec_const_move): Ditto.
31773 2011-03-08 Anatoly Sokolov <aesok@post.ru>
31775 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
31776 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
31777 * config/mips/mips.c (mips_preferred_reload_class): Make static.
31778 Change 'rclass' argument and result type to reg_class_t.
31779 (TARGET_PREFERRED_RELOAD_CLASS): Define.
31781 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
31783 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
31784 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
31785 (TARGET_MEMORY_MOVE_COST): Define.
31786 (avr_register_move_cost, avr_memory_move_cost): New Functions.
31788 2011-03-08 Jakub Jelinek <jakub@redhat.com>
31791 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
31794 PR tree-optimization/48022
31795 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
31798 2011-03-07 Jakub Jelinek <jakub@redhat.com>
31801 * var-tracking.c (find_use_val): Return NULL for
31802 cui->sets && cui->store_p BLKmode MEMs.
31804 2011-03-07 Anatoly Sokolov <aesok@post.ru>
31806 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
31808 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
31809 xstormy16_print_operand_address): Remove.
31810 * config/stormy16/stormy16.c (xstormy16_print_operand,
31811 xstormy16_print_operand_address): Make static.
31812 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
31814 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
31817 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
31818 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
31821 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
31824 * cfgloopmanip.c (fix_bb_placements): Return immediately
31825 if FROM is BASE_LOOP's header.
31827 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
31829 * gimplify.c (gimplify_function_tree): Fix building calls
31830 to __builtin_return_address.
31832 2011-03-07 Alan Modra <amodra@gmail.com>
31834 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
31835 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
31836 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
31837 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
31839 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
31840 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
31841 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
31842 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
31843 * config/rs6000/rs6000.c
31844 (rs6000_elf_end_indicate_exec_stack): Rename to..
31845 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
31846 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
31847 (rs6000_file_start): ..here.
31848 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
31849 file scope variables.
31850 (call_ABI_of_interest): New function.
31851 (init_cumulative_args): Set above vars when function return value
31852 is a float, vector, or small struct.
31853 (rs6000_function_arg_advance_1): Likewise for function args.
31854 (rs6000_va_start): Set rs6000_passes_float if variable arg function
31855 references float args.
31857 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
31859 * doc/cfg.texi: Remove "See" before @ref.
31860 * doc/invoke.texi: Likewise.
31862 2011-03-05 Jason Merrill <jason@redhat.com>
31864 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
31866 2011-03-05 Anthony Green <green@moxielogic.com>
31868 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
31870 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
31872 PR rtl-optimization/47899
31873 * cfgloopmanip.c (fix_bb_placements): Fix first argument
31874 to flow_loop_nested_p when moving the loop upward.
31876 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
31879 * arm.md (movhi_insn_arch4): Accept any immediate constant.
31881 2011-03-05 Jakub Jelinek <jakub@redhat.com>
31883 PR tree-optimization/47967
31884 * ipa-cp.c (build_const_val): Return NULL instead of creating
31885 VIEW_CONVERT_EXPR for mismatching sizes.
31886 (ipcp_create_replace_map): Return NULL if build_const_val failed.
31887 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
31888 give up on versioning.
31890 2011-03-05 Alan Modra <amodra@gmail.com>
31893 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
31894 full cmodel medium/large lo_sum + high addresses.
31896 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
31898 * config/s390/s390.c (s390_decompose_address): Reject non-literal
31899 pool references in UNSPEC_LTREL_OFFSET.
31901 2011-03-04 Jan Hubicka <jh@suse.cz>
31904 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
31905 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
31906 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
31908 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
31909 cgraph_add_thunk): Add node pointers.
31910 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
31911 associated to right node.
31912 (input_node): Update use of cgraph_same_body_alias
31913 and cgraph_add_thunk.
31915 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
31917 * config/i386/i386.opt (mprefer-avx128): New flag.
31918 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
31919 modes when the flag -mprefer-avx128 is on.
31921 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
31923 * dwarf2out.c (compare_loc_operands): Fix address handling.
31925 2011-03-04 Alan Modra <amodra@gmail.com>
31927 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
31929 2011-03-04 Richard Guenther <rguenther@suse.de>
31931 PR middle-end/47968
31932 * expmed.c (extract_bit_field_1): Prefer vector modes that
31933 vec_extract patterns can handle.
31935 2011-03-04 Richard Guenther <rguenther@suse.de>
31937 PR middle-end/47975
31938 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
31940 2011-03-04 Richard Henderson <rth@redhat.com>
31942 * explow.c (emit_stack_save): Remove 'after' parameter.
31943 (emit_stack_restore): Likewise.
31944 * expr.h: Update to match.
31945 * builtins.c, calls.c, stmt.c: Likewise.
31946 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
31947 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
31948 * function.c (expand_function_end): Insert the emit_stack_save
31949 sequence before parm_birth_insn instead of after.
31951 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
31953 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
31954 (ssse3_pmaddubsw128): Ditto.
31955 (ssse3_pmaddubsw): Ditto.
31957 2011-03-03 Steve Ellcey <sje@cup.hp.com>
31959 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
31961 2011-03-03 Jakub Jelinek <jakub@redhat.com>
31964 * gimplify.c (omp_add_variable): Only call omp_notice_variable
31965 on TYPE_SIZE_UNIT if it is a DECL.
31968 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
31969 first operand is not is_gimple_mem_ref_addr, try to fold it.
31970 If the operand still isn't is_gimple_mem_ref_addr, clear
31973 2011-03-03 Richard Guenther <rguenther@suse.de>
31975 PR middle-end/47283
31976 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
31978 (refs_may_alias_p_1): For release branches return true if
31979 we are confused by our input.
31981 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
31983 * config/s390/s390.c (s390_function_value): Rename to ...
31984 (s390_function_and_libcall_value): ... this.
31985 (s390_function_value): New function.
31986 (s390_libcall_value): New function.
31987 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
31988 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
31989 target macro definitions.
31990 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
31992 2011-03-02 Joseph Myers <joseph@codesourcery.com>
31994 * config/i386/freebsd64.h (CC1_SPEC): Define.
31995 * config/i386/linux64.h (CC1_SPEC): Define.
31996 * config/i386/x86-64.h (CC1_SPEC): Don't define.
31998 2011-03-02 Anatoly Sokolov <aesok@post.ru>
32000 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
32002 * config/stormy16/stormy16.c: Include reload.h.
32003 (xstormy16_memory_move_cost): New function.
32004 (TARGET_MEMORY_MOVE_COST): Define.
32006 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
32008 PR rtl-optimization/47925
32009 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
32010 with side effects. Remove the more-specific check for volatile asms.
32012 2011-03-02 Alan Modra <amodra@gmail.com>
32015 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
32016 toc relative addresses for valid offsets.
32018 2011-03-01 Richard Guenther <rguenther@suse.de>
32020 PR tree-optimization/47890
32021 * tree-vect-loop.c (get_initial_def_for_induction): Set
32022 related stmt properly.
32024 2011-03-01 Richard Guenther <rguenther@suse.de>
32027 * lto-streamer.c (lto_record_common_node): Also register
32028 the canonical type.
32030 2011-03-01 Richard Guenther <rguenther@suse.de>
32033 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
32034 Do not stream DECL_ABSTRACT_ORIGIN.
32035 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
32036 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
32037 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
32038 Do not stream DECL_ABSTRACT_ORIGIN.
32039 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
32040 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
32042 2011-02-28 Anatoly Sokolov <aesok@post.ru>
32044 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
32045 FUNCTION_VALUE_REGNO_P): Remove.
32046 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
32047 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
32048 Add 'outgoing' argument.
32049 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
32051 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
32052 TARGET_FUNCTION_VALUE_REGNO_P): Define.
32054 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
32057 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
32058 (lookup_filename): Likewise.
32059 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
32061 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
32062 Jakub Jelinek <jakub@redhat.com>
32064 PR middle-end/47893
32065 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
32066 (assign_stack_local_1): Change last argument type to int.
32067 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
32068 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
32069 don't record padding space into frame_space_list nor use those areas.
32070 (assign_stack_local): Adjust caller.
32071 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
32072 of assign_stack_local, pass 0 as last argument.
32073 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
32076 2011-02-28 Jakub Jelinek <jakub@redhat.com>
32079 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
32080 Use target address_mode and pointer_mode hooks instead of hardcoded
32081 Pmode and ptr_mode. Handle some simple cases of extending if
32082 POINTERS_EXTEND_UNSIGNED < 0.
32083 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
32084 Call convert_debug_memory_address.
32085 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
32086 convert_debug_memory_address.
32088 PR middle-end/46790
32089 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
32090 * configure: Regenerated.
32091 * config.in: Regenerated.
32092 * varasm.c (default_function_section): Return NULL
32093 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
32095 2011-02-28 Martin Jambor <mjambor@suse.cz>
32097 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
32098 the description to match the printed values.
32100 2011-02-28 Richard Guenther <rguenther@suse.de>
32102 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
32103 of the copied scope tree.
32105 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
32107 * doc/extend.texi (Function Attributes): Avoid deeply (and
32108 wrongly) nested tables.
32110 2011-02-27 Jakub Jelinek <jakub@redhat.com>
32112 PR middle-end/47903
32113 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
32114 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
32115 r isn't op0 nor op1.
32117 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
32119 * config/avr/avr.md: Remove magic comment for emacs.
32121 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
32124 * config/avr/avr.c (avr_option_override): Use error on bad options.
32125 (avr_help): New function.
32126 (TARGET_HELP): Define.
32128 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
32131 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
32132 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
32134 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
32136 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
32137 (ARM Options): Ditto.
32138 (i386 and x86-64 Options): Ditto.
32139 (RX Options): Ditto.
32140 (SPARC Options): Ditto.
32142 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
32144 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
32145 FreeBSD 6 and later. Generally use cpu generic.
32147 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
32149 * doc/cpp.texi: Update copyright years.
32151 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
32154 * config/lm32/lm32.md (ashrsi3): Added needed variable.
32156 2011-02-25 Jon Beniston <jon@beniston.com>
32159 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
32160 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
32161 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
32162 (lm32_block_move_inline): Add type cast to remove warning.
32163 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
32164 (gen_int_relational): Move declarations to start of function.
32166 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
32168 PR tree-optimization/45470
32169 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
32170 can throw internally only.
32171 * tree-vect-stmts.c (vectorizable_call): Likewise.
32173 2011-02-24 Anatoly Sokolov <aesok@post.ru>
32175 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
32176 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
32177 * config/stormy16/stormy16-protos.h
32178 (xstormy16_preferred_reload_class): Remove.
32179 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
32180 static. Change 'rclass' argument and return type to reg_class_t.
32181 (TARGET_PREFERRED_RELOAD_CLASS,
32182 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
32184 2011-02-24 Richard Guenther <rguenther@suse.de>
32186 * lto-streamer-in.c (input_bb): Do not find referenced vars
32187 in debug statements.
32189 2011-02-23 Jason Merrill <jason@redhat.com>
32191 * common.opt (fabi-version): Document v5 and v6.
32193 2011-02-23 Richard Guenther <rguenther@suse.de>
32195 PR tree-optimization/47849
32196 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
32198 2011-02-23 Jie Zhang <jie@codesourcery.com>
32200 * opts-common.c (decode_cmdline_option): Print empty string
32201 argument as "" in decoded->orig_option_with_args_text.
32202 * gcc.c (execute): Print empty string argument as ""
32203 in the verbose output.
32204 (do_spec_1): Keep empty string argument.
32206 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
32208 * config.gcc: Declare score-* and crx-* obsolete.
32210 2011-02-23 Jie Zhang <jie@codesourcery.com>
32212 PR rtl-optimization/47763
32213 * web.c (web_main): Ignore naked clobber when replacing register.
32215 2011-02-22 Anatoly Sokolov <aesok@post.ru>
32217 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
32220 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
32223 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
32225 2011-02-22 Mike Stump <mikestump@comcast.net>
32227 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
32229 * configure: Regenerate.
32231 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
32233 PR rtl-optimization/46002
32234 * ira-color.c (update_copy_costs): Change class intersection
32235 test to reg_class_contents[] test of 'hard_regno'.
32237 2011-02-21 Joseph Myers <joseph@codesourcery.com>
32239 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
32240 than Driver option.
32241 * config/hpux11.opt (mt): Likewise.
32242 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
32243 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
32244 * config/vax/elf.opt (mno-asm-pic): Likewise.
32245 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
32247 2011-02-21 Mike Stump <mikestump@comcast.net>
32250 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
32251 tree so we can get save the type.
32252 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
32253 for CFString instead of trying to use past the end of the builtins.
32254 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
32255 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
32256 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
32257 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
32258 Rename to darwin_builtin_cfstring.
32259 (darwin_init_cfstring_builtins): Return the built type.
32261 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
32264 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
32265 (_mm256_insert_epi64): Use _mm_insert_epi64.
32267 2011-02-21 Anatoly Sokolov <aesok@post.ru>
32269 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
32270 * config/stormy16/stormy16-protos.h
32271 (xstormy16_mode_dependent_address_p): Remove.
32272 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
32273 Make static. Change return type to bool. Change argument type to
32274 const_rtx. Remove dead code.
32275 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
32277 2011-02-21 Richard Guenther <rguenther@suse.de>
32280 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
32281 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
32282 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
32284 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
32285 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
32287 2011-02-20 Richard Guenther <rguenther@suse.de>
32290 * tree.c (free_lang_data_in_decl): Clean builtins from
32291 the TU decl BLOCK_VARS.
32293 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
32297 * haifa-sched.c (fix_tick_ready): Skip tick computation
32300 2011-02-19 Richard Guenther <rguenther@suse.de>
32303 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
32304 Remove lazy BLOCK_VARS streaming.
32305 (lto_input_ts_block_tree_pointers): Likewise.
32306 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
32308 2011-02-19 Joseph Myers <joseph@codesourcery.com>
32310 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
32312 2011-02-19 Joseph Myers <joseph@codesourcery.com>
32314 * config/i386/biarch32.h, config/i386/mach.h,
32315 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
32317 2011-02-19 Jakub Jelinek <jakub@redhat.com>
32320 * config/i386/i386.md (peephole2 for shift and plus): Use
32321 operands[1] original mode in the first insn.
32323 2011-02-18 Mike Stump <mikestump@comcast.net>
32325 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
32327 2011-02-18 Jan Hubicka <jh@suse.cz>
32329 PR middle-end/47788
32330 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
32331 to zero when the function is not inlinable at all.
32333 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
32335 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
32336 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
32337 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
32338 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
32339 * config/pa/t-pa64: Likewise.
32340 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
32342 2011-02-18 Jakub Jelinek <jakub@redhat.com>
32345 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
32347 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
32350 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
32352 2011-02-18 Anatoly Sokolov <aesok@post.ru>
32354 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
32355 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
32356 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
32357 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
32358 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
32359 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
32360 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
32361 m32r_load_postinc_p, m32r_store_preinc_predec_p,
32362 m32r_legitimate_address_p): New functions.
32363 * config/m32r/constraints.md (constraint "S"): Don't use
32364 STORE_PREINC_PREDEC_P.
32365 (constraint "U"): Don't use LOAD_POSTINC_P.
32367 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
32369 PR rtl-optimization/46178
32370 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
32371 compute ira_hard_regno_cover_class[].
32373 2011-02-18 Richard Guenther <rguenther@suse.de>
32376 * lto-streamer.h (lto_global_var_decls): Declare.
32377 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
32378 statics for global var processing.
32380 2011-02-18 Richard Guenther <rguenther@suse.de>
32382 PR tree-optimization/47737
32383 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
32384 edge dominance check.
32386 2011-02-18 Jakub Jelinek <jakub@redhat.com>
32389 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
32390 avoid invalid rtx sharing.
32392 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
32394 * doc/cpp.texi (Obsolete Features): Add background on the
32395 origin of assertions.
32397 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
32399 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
32401 * config/darwin.c (output_objc_section_asm_op): Added support for
32403 (is_objc_metadata): New.
32404 (darwin_objc2_section): New.
32405 (darwin_objc1_section): New.
32406 (machopic_select_section): Added support for ABI v1 and v2.
32407 (darwin_emit_objc_zeroed): New.
32408 (darwin_output_aligned_bss): Detect objc metadata and treat it
32410 (darwin_asm_output_aligned_decl_common): Same.
32411 (darwin_asm_output_aligned_decl_local): Same.
32412 * config/darwin-sections.def: Updated for ABI v1 and v2.
32413 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
32414 compiling Objective-C code for the NeXT runtime, default to using
32415 ABI version 0 for 32-bit, and version 2 for 64-bit.
32417 2011-02-17 Joseph Myers <joseph@codesourcery.com>
32419 * common.opt (optimize_fast): New Variable.
32420 * opts.c (default_options_optimization): Use opts->x_optimize_fast
32421 instead of local variable ofast.
32423 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
32425 * doc/invoke.texi (fobjc-abi-version): Documented.
32426 (fobjc-nilcheck): Documented.
32427 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
32430 2011-02-17 Joseph Myers <joseph@codesourcery.com>
32433 * common.opt (export-dynamic): New Driver option.
32434 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
32436 2011-02-17 Joseph Myers <joseph@codesourcery.com>
32438 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
32440 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
32441 Jan Hubicka <jh@suse.cz>
32445 * cfgexpand.c (account_used_vars_for_block): Remove.
32446 (estimated_stack_frame_size): Use referenced vars.
32447 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
32448 that were referenced in the original function. Test src_fn
32449 rather than cfun. Drop redundant get_var_ann.
32450 (setup_one_parameter): Drop redundant get_var_ann.
32451 (declare_return_variable): Likewise.
32452 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
32453 (copy_arguments_for_versioning): Drop redundant get_var_ann.
32454 * ipa-inline.c (compute_inline_parameters): Do not compute
32455 disregard_inline_limits here.
32456 (compute_inlinable_for_current, pass_inlinable): New.
32457 (pass_inline_parameters): Require PROP_referenced_vars.
32458 * cgraphunit.c (cgraph_process_new_functions): Don't run
32459 compute_inline_parameters explicitly unless function is in SSA form.
32460 (cgraph_analyze_function): Set .disregard_inline_limits.
32461 * tree-sra.c (convert_callers): Compute inliner parameters
32462 only for functions already in SSA form.
32464 2011-02-17 Joseph Myers <joseph@codesourcery.com>
32466 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
32467 -mlittle-endian-data.
32469 2011-02-17 Joseph Myers <joseph@codesourcery.com>
32471 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
32472 -mno-fpu, not -fpu and -no-fpu.
32473 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
32474 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
32476 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
32479 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
32480 input reload with PLUS RTX.
32482 2011-02-16 Joseph Myers <joseph@codesourcery.com>
32484 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
32485 of InverseVar(MDMX).
32487 2011-02-16 Joseph Myers <joseph@codesourcery.com>
32489 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
32492 2011-02-16 Joseph Myers <joseph@codesourcery.com>
32494 * config/mn10300/mn10300.opt (mno-crt0): New.
32496 2011-02-16 Joseph Myers <joseph@codesourcery.com>
32498 * config/m68k/uclinux.opt (static-libc): New Driver option.
32500 2011-02-16 Joseph Myers <joseph@codesourcery.com>
32502 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
32504 2011-02-16 Joseph Myers <joseph@codesourcery.com>
32506 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
32507 %{muser-extend-enabled}.
32509 2011-02-16 Richard Guenther <rguenther@suse.de>
32511 PR tree-optimization/47738
32512 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
32513 the TODO from tree_predictive_commoning.
32515 2011-02-15 Jeff Law <law@redhat.com>
32518 2011-01-25 Jeff Law <law@redhat.com>
32520 PR rtl-optimization/37273
32521 * ira-costs.c (scan_one_insn): Detect constants living in memory and
32522 handle them like argument loads from stack slots. Do not double
32523 count memory for memory constants and argument loads from stack slots.
32525 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
32528 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
32529 mode for vector constants. Remove code that checks for TImode.
32531 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
32535 * cgraph.h (compute_inline_parameters): Return void.
32536 * ipa-inline.c (compute_inline_parameters): Adjust.
32538 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
32542 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
32544 * cfgexpand.c (estimated_stack_frame_size): Likewise.
32545 * ipa-inline.c (compute_inline_parameters): Adjust.
32547 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
32551 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
32552 Adjust all users. Pass FN to...
32553 * tree-flow-inline.h (first_referenced_var): ... this. Add
32555 * ipa-struct-reorg.c: Adjust.
32556 * tree-dfa.c: Adjust.
32557 * tree-into-ssa.c: Adjust.
32558 * tree-sra.c: Adjust.
32559 * tree-ssa-alias.c: Adjust.
32560 * tree-ssa-live.c: Adjust.
32561 * tree-ssa.c: Adjust.
32562 * tree-ssanames.c: Adjust.
32563 * tree-tailcall.c: Adjust.
32565 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
32569 * tree-flow.h (referenced_var_lookup): Add fn parameter.
32570 Adjust all callers.
32571 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
32572 * tree-flow-inline.h: Adjust.
32573 * gimple-pretty-print.c: Adjust.
32574 * tree-into-ssa.c: Adjust.
32575 * tree-ssa.c: Adjust.
32576 * cfgexpand.c: Adjust.
32578 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
32580 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
32581 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
32582 (EXTRA_CONSTRAINT): Delete.
32583 * config/iq2000/constraints.md: New file.
32584 * config/iq2000/iq2000.md: Include it.
32585 (define_insn ""): Delete.
32586 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
32587 unsupported constraint letters from patterns.
32588 (call_value, call_value_internal1): Likewise.
32589 (call_value_multiple_internal1): Likewise.
32591 2011-02-15 Nick Clifton <nickc@redhat.com>
32593 * config/mn10300/mn10300.c: Include tm-constrs.h.
32594 (struct liw_data): New data structure describing an LIW candidate
32596 (extract_bundle): Use struct liw_data. Allow small integer
32597 operands for some instructions.
32598 (check_liw_constraints): Use struct liw_data. Remove swapped
32599 parameter. Add comments describing the checks. Fix bug when
32600 assigning the source of liw1 to the source of liw2.
32601 (liw_candidate): Delete. Code moved into extract_bundle.
32602 (mn10300_bundle_liw): Use struct liw_data. Check constraints
32604 * config/mn10300/predicates.md (liw_operand): New predicate.
32605 Allows registers and small integer constants.
32606 * config/mn10300/constraints.md (O): New constraint. Accetps
32607 integers in the range -8 to +7 inclusive.
32608 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
32609 for moving a small integer into a register. Give this alternative
32611 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
32612 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
32613 using the J,K,L and M constraints,
32614 (liw): Remove SI mode on second operands to allow for HI and QI
32616 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
32619 2011-02-15 Richard Guenther <rguenther@suse.de>
32621 PR tree-optimization/47743
32622 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
32623 for a non-type-compatible VN lookup bail out.
32625 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
32627 * config/fr30/constraints.md: New file.
32628 * config/fr30/fr30.md: Include it.
32629 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
32630 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
32631 (EXTRA_CONSTRAINT): Delete.
32633 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
32635 * config/frv/constraints.md: New file.
32636 * config/frv/predicates.md: Include it.
32637 * config/frv/frv.c (reg_class_from_letter): Delete.
32638 (frv_option_override): Don't initialize it.
32639 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
32640 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
32641 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
32642 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
32643 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
32644 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
32645 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
32646 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
32647 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
32648 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
32649 (REG_CLASS_FROM_CONSTRAINT): Delete.
32651 2011-02-15 Jakub Jelinek <jakub@redhat.com>
32653 PR middle-end/47581
32654 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
32655 if frame size is 0 in a leaf function.
32657 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32660 * config/alpha/host-osf.c: New file.
32661 * config/alpha/x-osf: New file.
32662 * config.host (alpha*-dec-osf*): Use it.
32664 2011-02-14 Anatoly Sokolov <aesok@post.ru>
32666 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
32667 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
32668 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
32669 (rx_mode_dependent_address_p): ...this. Make static. Change argument
32671 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
32673 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
32675 * config/stormy16/constraints.md: New file.
32676 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
32677 Use satisfies_constraint_Q and satisfies_constraint_R.
32678 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
32680 (xstormy16_legitiamte_address_p): Declare.
32681 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
32682 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
32683 (EXTRA_CONSTRAINT): Delete.
32684 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
32686 (xstormy16_extra_constraint_p): Delete.
32688 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
32690 PR tree-optimization/46494
32691 * loop-unroll.c (split_edge_and_insert): Adjust comment.
32692 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
32693 (pass_rtl_loop_done): Add TODO_verify_flow.
32694 * fwprop.c (pass_rtl_fwprop): Likewise.
32695 * modulo-sched.c (pass_sms): Likewise.
32696 * tree-ssa-dom.c (pass_dominator): Likewise.
32697 * tree-ssa-loop-ch.c (pass_ch): Likewise.
32698 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
32699 (pass_tree_loop_done): Likewise.
32700 * tree-ssa-pre.c (execute_pre): Likewise.
32701 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
32702 * tree-ssa-sink.c (pass_sink_code): Likewise.
32703 * tree-vrp.c (pass_vrp): Likewise.
32705 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
32707 * config/v850/constraints.md: New file.
32708 * config/v850/v850.md: Include it.
32709 * config/v850/predicates.md (reg_or_0_operand): Use
32710 satisfies_constraint_G.
32711 (special_symbolref_operand): Use satisfies_constraint_K.
32712 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
32713 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
32714 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
32715 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
32716 (EXTRA_CONSTRAINT): Delete.
32717 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
32718 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
32719 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
32721 2011-02-14 Anatoly Sokolov <aesok@post.ru>
32724 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
32727 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
32729 * config/mcore/constraints.md: New file.
32730 * config/mcore/mcore.md: Include it.
32731 * config/mcore/mcore.c (reg_class_from_letter): Delete.
32732 * config/mcore/mcore.h (reg_class_from_letter): Delete.
32733 (REG_CLASS_FROM_LETTER): Delete.
32734 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
32735 insn_const_int_ok_for_constraint.
32736 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
32737 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
32738 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
32739 (EXTRA_CONSTRAINT): Delete.
32741 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32744 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
32745 (IS_SIGHANDLER): Define.
32746 (sparc64_is_sighandler): New function, split off from
32747 sparc64_fallback_frame_state.
32748 (sparc_is_sighandler): New function, split off from
32749 sparc_fallback_frame_state.
32750 (sparc64_fallback_frame_state): Merge with ...
32751 (sparc_fallback_frame_state): ... this into ...
32752 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
32753 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
32754 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
32755 stack instead of hardcoded offsets.
32757 2011-02-14 Andriy Gapon <avg@freebsd.org>
32760 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
32762 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
32764 * configure: Regenerate.
32766 2011-02-12 Joseph Myers <joseph@codesourcery.com>
32769 * gcc.c (asm_options): Correct spec matching --target-help.
32771 2011-02-12 Martin Jambor <mjambor@suse.cz>
32773 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
32774 to gimple call error.
32776 2011-02-12 Mike Stump <mikestump@comcast.net>
32778 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
32779 comments in backslash regions.
32781 2011-02-12 Mike Stump <mikestump@comcast.net>
32782 Jakub Jelinek <jakub@redhat.com>
32783 Iain Sandoe <iains@gcc.gnu.org>
32786 * dwarf2out.c (output_cfa_loc): When required, apply the
32787 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
32788 (output_loc_sequence): Likewise.
32789 (output_loc_operands_raw): Likewise.
32790 (output_loc_sequence_raw): Likewise.
32791 (output_cfa_loc): Likewise.
32792 (output_loc_list): Suppress register number adjustment when
32793 calling output_loc_sequence()
32794 (output_die): Likewise.
32796 2011-02-12 Anatoly Sokolov <aesok@post.ru>
32798 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
32800 * config/xtensa/xtensa.c (xtensa_register_move_cost,
32801 xtensa_memory_move_cost): New functions.
32802 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
32804 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
32807 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
32808 in the current directory.
32809 * configure: Rebuilt.
32811 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
32813 * config/darwin.c (darwin_override_options): Add a hunk missed
32814 from the commit of r168571. Trim comment line lengths and
32815 correct indents of the preceding block.
32817 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
32819 * gcc.c (driver_handle_option): Concatenate the argument to -F with
32822 2011-02-11 Joseph Myers <joseph@codesourcery.com>
32824 * common.opt (nostartfiles): New Driver option.
32826 2011-02-11 Xinliang David Li <davidxl@google.com>
32828 PR tree-optimization/47707
32829 * tree-chrec.c (convert_affine_scev): Keep type precision.
32831 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
32833 PR tree-optimization/47420
32834 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
32836 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
32838 PR rtl-optimization/47614
32839 * rtl.h (check_for_inc_dec): Declare.
32840 * dse.c (check_for_inc_dec): Externalize...
32841 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
32842 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
32844 2011-02-11 Joseph Myers <joseph@codesourcery.com>
32847 * gcc.c (main): Do not compile inputs if there were errors in
32849 * opts-common.c (read_cmdline_option): Check for wrong language
32850 after other error checks.
32852 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
32854 * cgraph.c: Fix comment typos.
32855 * cgraph.h: Likewise.
32856 * cgraphunit.c: Likewise.
32857 * ipa-cp.c: Likewise.
32858 * ipa-inline.c: Likewise.
32859 * ipa-prop.c: Likewise.
32860 * ipa-pure-const.c: Likewise.
32861 * ipa-ref.c: Likewise.
32862 * ipa-reference.c: Likewise.
32864 2011-02-11 Jakub Jelinek <jakub@redhat.com>
32867 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
32869 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32872 * doc/sourcebuild.texi (Require Support): Document
32873 dg-require-ascii-locale.
32875 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
32877 * doc/lto.texi (Write summary): Fix missing parentheses.
32879 2011-02-10 DJ Delorie <dj@redhat.com>
32881 * config/m32c/m32c.c (m32c_option_override): Disable
32882 -fcombine-stack-adjustments until flag value tracking and compare
32883 optimization can be rewritten.
32885 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
32887 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
32889 (PROCESSOR_DEFAULT64): Likewise.
32891 2011-02-10 Richard Henderson <rth@redhat.com>
32893 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
32894 change from 2011-02-03.
32895 * config/rx/rx.c (flags_from_code): Likewise.
32896 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
32897 is valid, n/pz otherwise.
32898 (rx_select_cc_mode): Return CCmode if Y is not zero.
32900 2011-02-10 Richard Guenther <rguenther@suse.de>
32902 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
32904 2011-02-10 Richard Guenther <rguenther@suse.de>
32906 PR tree-optimization/47677
32907 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
32909 2011-02-10 Jakub Jelinek <jakub@redhat.com>
32912 * combine.c (make_compound_operation): Only change shifts into
32913 multiplication for SCALAR_INT_MODE_P.
32915 2011-02-10 Jie Zhang <jie@codesourcery.com>
32919 2011-02-05 Jie Zhang <jie@codesourcery.com>
32921 * web.c (entry_register): Don't clobber the number of the
32922 first uninitialized reference in used[].
32924 2011-02-09 Richard Guenther <rguenther@suse.de>
32926 PR tree-optimization/47664
32927 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
32930 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
32934 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
32936 (PROCESSOR_DEFAULT64): Same.
32937 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
32939 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32941 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
32943 2011-02-09 Martin Jambor <mjambor@suse.cz>
32945 PR middle-end/45505
32946 * tree-sra.c (struct access): New flags grp_scalar_read and
32947 grp_scalar_write. Changed description of assignment read and write
32949 (dump_access): Dump new flags, reorder all of them.
32950 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
32951 to detect multiple scalar reads.
32952 (analyze_access_subtree): Use the new scalar read write flags instead
32953 of the old flags. Adjusted comments.
32955 2011-02-08 DJ Delorie <dj@redhat.com>
32958 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
32961 2011-02-08 Joseph Myers <joseph@codesourcery.com>
32963 * config/m68k/uclinux.opt: New.
32964 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
32966 2011-02-08 Joseph Myers <joseph@codesourcery.com>
32968 * config/cris/elf.opt (sim): New Driver option.
32970 2011-02-08 Joseph Myers <joseph@codesourcery.com>
32972 * config/xtensa/elf.opt: New.
32973 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
32975 2011-02-08 Joseph Myers <joseph@codesourcery.com>
32977 * config/vax/elf.opt: New.
32978 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
32980 2011-02-08 Joseph Myers <joseph@codesourcery.com>
32982 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
32984 2011-02-08 Joseph Myers <joseph@codesourcery.com>
32986 * config/gnu-user.opt: New.
32987 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
32988 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
32989 *-*-uclinux*): Use gnu-user.opt.
32991 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
32993 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
32994 * config/i386/gnu.h (CPP_SPEC): Likewise.
32996 2011-02-08 Ian Lance Taylor <iant@google.com>
32998 * common.opt (fcx-limited-range): Add SetByCombined flag.
32999 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
33000 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
33001 (fassociative-math, freciprocal-math): Likewise.
33002 (funsafe-math-optimizations): Likewise.
33003 * opth-gen.awk: Handle SetByCombined.
33004 * optc-gen.awk: Likewise.
33005 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
33006 (set_unsafe_math_optimizations_flags): Likewise.
33007 * doc/options.texi (Option properties): Document SetByCombined.
33009 2011-02-08 Joseph Myers <joseph@codesourcery.com>
33011 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
33012 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
33013 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
33014 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
33015 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
33017 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
33019 PR tree-optimization/46834
33020 PR tree-optimization/46994
33021 PR tree-optimization/46995
33022 * graphite-sese-to-poly.c (used_outside_reduction): New.
33023 (detect_commutative_reduction): Call used_outside_reduction.
33024 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
33025 translate_scalar_reduction_to_array only when at least one
33026 loop-phi/close-phi tuple has been detected.
33028 2011-02-08 Richard Guenther <rguenther@suse.de>
33030 PR middle-end/47639
33031 * tree-vect-generic.c (expand_vector_operations_1): Update
33033 (expand_vector_operations): ... not here. Cleanup EH info
33034 and the CFG if required.
33036 2011-02-08 Richard Guenther <rguenther@suse.de>
33038 PR tree-optimization/47641
33039 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
33040 require type compatibility.
33042 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
33044 * gimple-low.c (lower_function_body): Don't remove the location of
33045 the return statement here.
33046 (lower_gimple_return): Do it here instead but only if the return
33047 statement is actually used twice.
33049 2011-02-08 Richard Guenther <rguenther@suse.de>
33051 PR tree-optimization/47632
33052 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
33053 unused up_to_stmt parameter, return whether cfg-cleanup is
33054 necessary, remove EH info properly.
33055 (forward_propagate_into_gimple_cond): Adjust caller.
33056 (forward_propagate_into_cond): Likewise.
33057 (forward_propagate_comparison): Likewise.
33058 (tree_ssa_forward_propagate_single_use_vars): Make
33059 forward_propagate_comparison case similar to the two others.
33061 2011-02-08 Nick Clifton <nickc@redhat.com>
33063 * config/mn10300/mn10300.opt (mliw): New command line option.
33064 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
33065 (liw_bundling): New automaton.
33066 (liw): New attribute.
33067 (liw_op): New attribute.
33068 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
33069 (movsi_internal): Add LIW attributes.
33070 (andsi3): Likewise.
33071 (iorsi3): Likewise.
33072 (xorsi3): Likewise.
33073 (addsi3): Separate register and immediate alternatives.
33074 Add LIW attributes.
33075 (subsi3): Likewise.
33077 (aslsi3): Likewise.
33078 (lshrsi3): Likewise.
33079 (ashrsi3): Likewise.
33080 (liw): New pattern.
33081 * config/mn10300/mn10300.c (liw_op_names): New
33082 (mn10300_print_operand): Handle 'W' operand descriptor.
33083 (extract_bundle): New function.
33084 (check_liw_constraints): New function.
33085 (liw_candidate): New function.
33086 (mn10300_bundle_liw): New function.
33087 (mn10300_reorg): New function.
33088 (TARGET_MACHINE_DEPENDENT_REORG): Define.
33089 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
33090 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
33091 __LIW__ or __NO_LIW__.
33092 * doc/invoke.texi: Describe the -mliw command line option.
33094 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
33096 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
33097 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
33098 pthread_mutex_unlock): Remove.
33099 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
33100 * config/pa/t-pa64: Likewise.
33101 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
33102 shared libc if not linking against libpthread.
33103 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
33105 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
33108 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
33109 on 10.6 and later to ensure that we always use the unwinder from
33110 the system. Only add -no_compact_unwind when tarteting darwin
33113 2011-02-07 Steve Ellcey <sje@cup.hp.com>
33116 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
33117 (vec_interleave_lowv2sf): Ditto.
33118 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
33119 (vec_extract_oddv2sf): Ditto.
33121 2011-02-07 Mike Stump <mikestump@comcast.net>
33124 Add __ieee_divdc3 entry point.
33125 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
33127 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
33128 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
33129 * config/darwin.c (darwin_rename_builtins): Add.
33130 * config/darwin-protos.h (darwin_rename_builtins): Add.
33132 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
33135 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
33138 2011-02-07 Mike Stump <mikestump@comcast.net>
33140 * config/darwin.opt (mmacosx-version-min): Update default OS version.
33142 2011-02-07 Denis Chertykov <chertykov@gmail.com>
33145 * config/avr/libgcc.S (exit): Move .endfunc
33147 2011-02-07 Richard Guenther <rguenther@suse.de>
33149 PR tree-optimization/47615
33150 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
33151 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
33152 (run_scc_vn): Initialize it.
33153 (visit_reference_op_load): Use it.
33154 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
33156 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
33158 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
33159 DImode trapping arithmetic libfuncs.
33161 2011-02-07 Richard Guenther <rguenther@suse.de>
33163 PR tree-optimization/47621
33164 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
33166 (execute_update_addresses_taken): ... here. Make it more
33167 conservative in what we accept.
33169 2011-02-06 Joseph Myers <joseph@codesourcery.com>
33171 * config/sparc/freebsd.h (ASM_SPEC): Define.
33172 * config/sparc/vxworks.h (ASM_SPEC): Define.
33174 2011-02-06 Joseph Myers <joseph@codesourcery.com>
33176 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
33178 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
33180 * doc/invoke.texi: Remove reference to compiler internals from
33181 user documentation.
33183 * reg-notes.def: Remove REG_VALUE_PROFILE.
33184 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
33186 2011-02-05 Jakub Jelinek <jakub@redhat.com>
33188 PR middle-end/47610
33189 * varasm.c (default_section_type_flags): If decl is NULL,
33190 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
33192 2011-02-05 Jie Zhang <jie@codesourcery.com>
33195 * web.c (entry_register): Don't clobber the number of the
33196 first uninitialized reference in used[].
33198 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
33200 PR tree-optimization/46194
33201 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
33202 (build_classic_dist_vector_1): Do not represent classic distance
33203 vectors when the access functions are variating in different loops.
33205 2011-02-04 Joseph Myers <joseph@codesourcery.com>
33207 * config/mips/iris6.opt: New.
33208 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
33210 2011-02-04 Richard Henderson <rth@redhat.com>
33211 Steve Ellcey <sje@cup.hp.com>
33214 * config/ia64/predicates.md (mux1_brcst_element): New.
33215 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
33216 * config/ia64/ia64.c (ia64_unpack_assemble): New.
33217 (ia64_unpack_sign): New.
33218 (ia64_expand_unpack): Rewrite using new routines.
33219 (ia64_expand_widen_sum): Ditto.
33220 (ia64_expand_dot_prod_v8qi): Ditto.
33221 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
33222 routines, add endian check.
33223 (pmpy2_even): Rename from pmpy2_r, add endian check.
33224 (pmpy2_odd): Rename from pmpy2_l, add endian check.
33225 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
33226 (vec_widen_smult_hi_v4hi): Ditto.
33227 (vec_widen_umult_lo_v4hi): Ditto.
33228 (vec_widen_umult_hi_v4hi): Ditto.
33229 (mulv2si3): Change endian checks.
33230 (sdot_prodv4hi): Rewrite with new calls.
33231 (udot_prodv4hi): New.
33232 (vec_pack_ssat_v4hi): Add endian check.
33233 (vec_pack_usat_v4hi): Ditto.
33234 (vec_pack_ssat_v2si): Ditto.
33235 (max1_even): Rename from max1_r, add endian check.
33236 (max1_odd): Rename from max1_l, add endian check.
33237 (*mux1_rev): Format change.
33238 (*mux1_mix): Ditto.
33239 (*mux1_shuf): Ditto.
33240 (*mux1_alt): Ditto.
33241 (*mux1_brcst_v8qi): Use new predicate.
33242 (vec_extract_evenv8qi): Remove endian check.
33243 (vec_extract_oddv8qi): Ditto.
33244 (vec_interleave_lowv4hi): Format change.
33245 (vec_interleave_highv4hi): Ditto.
33246 (mix2_even): Rename from mix2_r, add endian check.
33247 (mix2_odd): Rename from mux2_l, add endian check.
33248 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
33249 (vec_extract_evenodd_helper): Format change.
33250 (vec_extract_evenv4hi): Remove endian check.
33251 (vec_extract_oddv4hi): Remove endian check.
33252 (vec_interleave_lowv2si): Format change.
33253 (vec_interleave_highv2si): Format change.
33254 (vec_initv2si): Remove endian check.
33255 (vecinit_v2si): Add endian check.
33256 (reduc_splus_v2sf): Add endian check.
33257 (reduc_smax_v2sf): Ditto.
33258 (reduc_smin_v2sf): Ditto.
33259 (vec_initv2sf): Remove endian check.
33260 (fpack): Add endian check.
33261 (fswap): Add endian check.
33262 (vec_interleave_highv2sf): Add endian check.
33263 (vec_interleave_lowv2sf): Add endian check.
33264 (fmix_lr): Add endian check.
33265 (vec_setv2sf): Format change.
33266 (*vec_extractv2sf_0_be): Use shift to extract operand.
33267 (*vec_extractv2sf_1_be): New.
33268 (vec_pack_trunc_v4hi): Add endian check.
33269 (vec_pack_trunc_v2si): Format change.
33271 2011-02-04 Jakub Jelinek <jakub@redhat.com>
33273 PR inline-asm/23200
33274 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
33275 do bb, locus and block comparison and disallow loads if it is not set.
33276 (stmt_is_replaceable_p): New function.
33277 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
33279 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
33280 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
33282 * tree-flow.h (stmt_is_replaceable_p): New prototype.
33284 2011-02-04 Joseph Myers <joseph@codesourcery.com>
33286 * config/rs6000/xilinx.opt: New.
33287 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
33289 2011-02-04 Joseph Myers <joseph@codesourcery.com>
33291 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
33293 2011-02-03 Anatoly Sokolov <aesok@post.ru>
33295 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
33296 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
33297 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
33298 secondary_reload_info, xtensa_secondary_reload): Remove.
33299 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
33300 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
33301 (xtensa_preferred_reload_class): Make static. Change return and
33302 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
33303 Use CONST_DOUBLE_P predicate.
33304 (xtensa_preferred_output_reload_class): New function.
33305 (xtensa_secondary_reload): Make static.
33307 2011-02-03 Joseph Myers <joseph@codesourcery.com>
33309 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
33310 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
33311 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
33313 2011-02-03 Jakub Jelinek <jakub@redhat.com>
33315 PR middle-end/31490
33316 * output.h (SECTION_RELRO): Define.
33317 (SECTION_MACH_DEP): Adjust.
33318 (get_variable_section): New prototype.
33319 * varpool.c (varpool_finalize_named_section_flags): New function.
33320 (varpool_assemble_pending_decls): Call it.
33321 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
33322 * cgraphunit.c (cgraph_output_in_order): Call
33323 varpool_finalize_named_section_flags.
33324 * varasm.c (get_section): Allow section flags conflicts between
33325 relro and read-only sections if the section hasn't been declared yet.
33326 Set SECTION_OVERRIDE after diagnosing section type conflict.
33327 (get_variable_section): No longer static.
33328 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
33329 readonly sections that need relocations.
33330 (decl_readonly_section_1): New function.
33331 (decl_readonly_section): Use it.
33334 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
33335 Steve Ellcey <sje@cup.hp.com>
33337 PR middle-end/31490
33338 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
33339 if section attribute used.
33341 2011-02-03 Jakub Jelinek <jakub@redhat.com>
33343 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
33344 * config/darwin.c (SECTION_NO_ANCHOR): Define.
33345 (darwin_init_sections): Remove assertion.
33347 2011-02-03 Nick Clifton <nickc@redhat.com>
33349 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
33351 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
33352 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
33353 instead of "n" and "pz".
33354 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
33357 2011-02-03 Jakub Jelinek <jakub@redhat.com>
33360 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
33361 fma, expand FMA_EXPR as fma{,f,l} call.
33364 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
33365 copy them into a unsigned char variable and pass address of it to
33366 lto_output_data_stream.
33369 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
33370 around backend_init_target and lang_dependent_init_target calls.
33371 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
33372 (verify_cgraph_node): Don't call set_cfun here. Use
33373 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
33374 Set error_found for incorrectly represented calls to thunks.
33376 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
33379 PR rtl-optimization/43494
33380 * rtl.h (for_each_inc_dec_fn): New type.
33381 (for_each_inc_dec): Declare.
33382 * rtlanal.c (struct for_each_inc_dec_ops): New type.
33383 (for_each_inc_dec_find_inc_dec): New fn.
33384 (for_each_inc_dec_find_mem): New fn.
33385 (for_each_inc_dec): New fn.
33386 * dse.c (struct insn_size): Remove.
33387 (replace_inc_dec, replace_inc_dec_mem): Remove.
33388 (emit_inc_dec_insn_before): New fn.
33389 (check_for_inc_dec): Use it, along with for_each_inc_dec.
33390 (canon_address): Pass mem modes to cselib_lookup.
33391 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
33392 (cselib_lookup_from_insn): Likewise.
33393 (cselib_subst_to_values): Likewise.
33394 * cselib.c (find_slot_memmode): New var.
33395 (cselib_find_slot): New fn. Use it instead of
33396 htab_find_slot_with_hash everywhere.
33397 (entry_and_rtx_equal_p): Use find_slot_memmode.
33398 (autoinc_split): New fn.
33399 (rtx_equal_for_cselib_p): Rename and implement in terms of...
33400 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
33401 Deal with autoinc. Special-case recursion into MEMs.
33402 (cselib_hash_rtx): Likewise.
33403 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
33404 address and MEM modes.
33405 (cselib_subst_to_values): Add memmode, pass it on.
33407 (cselib_lookup): Add memmode argument, pass it on.
33408 (cselib_lookup_from_insn): Add memmode.
33409 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
33410 (struct cselib_record_autoinc_data): New.
33411 (cselib_record_autoinc_cb): New fn.
33412 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
33413 mode to cselib_lookup. Reset autoinced REGs here instead of...
33414 (cselib_process_insn): ... here.
33415 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
33417 (add_uses): Likewise, also to cselib_subst_to_values.
33418 (add_stores): Likewise.
33419 * sched-deps.c (add_insn_mem_dependence): Pass mode to
33420 cselib_subst_to_values.
33421 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
33422 * gcse.c (do_local_cprop): Adjusted.
33423 * postreload.c (reload_cse_simplify_set): Adjusted.
33424 (reload_cse_simplify_operands): Adjusted.
33425 * sel-sched-dump (debug_mem_addr_value): Pass mode.
33427 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
33429 PR tree-optimization/45122
33430 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
33431 unsafe assumptions when there's more than one loop exit.
33433 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
33436 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
33437 Document using vector double with the load/store builtins, and
33438 that the load/store builtins always use Altivec instructions.
33440 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
33441 to use altivec memory instructions, even on VSX.
33442 (vector_altivec_store_<mode>): Ditto.
33444 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
33447 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
33448 V2DF, V2DI support to load/store overloaded builtins.
33450 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
33451 altivec load/store builtins for V2DF/V2DI types.
33453 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
33454 set avoid indexed addresses on power6 if -maltivec.
33455 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
33456 vector_altivec_load/vector_altivec_store builtins.
33457 (altivec_expand_st_builtin): Ditto.
33458 (altivec_expand_builtin): Add VSX memory builtins.
33459 (rs6000_init_builtins): Add V2DI types to internal types.
33460 (altivec_init_builtins): Add support for V2DF/V2DI altivec
33461 load/store builtins.
33462 (rs6000_address_for_altivec): Insure memory address is appropriate
33465 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
33466 vec_vsx_ld and vec_vsx_st.
33467 (vsx_store_<mode>): Ditto.
33469 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
33470 variables to hold long long types for VSX vector memory builtins.
33471 (RS6000_BTI_unsigned_long_long): Ditto.
33472 (long_long_integer_type_internal_node): Ditti.
33473 (long_long_unsigned_type_internal_node): Ditti.
33475 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
33476 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
33477 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
33479 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
33481 (vec_vsx_st): Ditto.
33483 2011-02-02 Joseph Myers <joseph@codesourcery.com>
33485 * config/pa/pa-hpux10.opt: New.
33486 * config/hpux11.opt (pthread): New Driver option.
33487 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
33488 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
33490 2011-02-02 Joseph Myers <joseph@codesourcery.com>
33492 * config/ia64/vms.opt: New.
33493 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
33495 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
33498 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
33499 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
33500 generator functions.
33501 (vsx_floatuns<VSi><mode>2): Ditto.
33502 (vsx_fix_trunc<mode><VSi>2): Ditto.
33503 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
33505 2011-02-02 Joseph Myers <joseph@codesourcery.com>
33507 * config/i386/djgpp.opt (posix): New Driver option.
33509 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
33511 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
33512 Move to the unsupported targets list.
33514 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
33516 PR rtl-optimization/47525
33517 * df-scan.c: Update copyright years.
33518 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
33519 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
33521 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
33523 * config/i386/sysv4.h (TARGET_VERSION): Remove.
33524 (SUBTARGET_RETURN_IN_MEMORY): Remove.
33525 (ASM_OUTPUT_ASCII): Remove.
33526 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
33528 2011-02-02 Jeff Law <law@redhat.com>
33530 PR middle-end/47543
33531 * reload.c (find_reloads_address): Handle reg+d address where both
33532 components are invalid by reloading the entire address.
33534 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
33535 Richard Guenther <rguenther@suse.de>
33537 PR tree-optimization/40979
33539 * passes.c (init_optimization_passes): After LIM call copy_prop
33540 and DCE to clean up.
33541 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
33543 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
33545 PR tree-optimization/47576
33546 PR tree-optimization/47555
33547 * doc/invoke.texi (scev-max-expr-complexity): Documented.
33548 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
33549 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
33550 * tree-scalar-evolution.c (follow_ssa_edge): Use
33551 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
33553 2011-02-02 Richard Guenther <rguenther@suse.de>
33555 PR tree-optimization/47566
33556 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
33558 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
33562 * tree-inline.c (declare_return_variable): Remove unused caller
33567 * tree-flow-inline.h (clear_is_used, is_used_p): New.
33568 * cfgexpand.c (account_used_vars_for_block): Use them.
33569 * tree-nrv.c (tree_nrv): Likewise.
33570 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
33571 (dump_scope_block): Likewise.
33572 (remove_unused_locals): Likewise.
33576 * tree-inline.c (declare_return_variable): Add result decl to
33577 local decls only once.
33578 * gimple-low.c (record_vars_into): Mark newly-created variables
33581 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
33587 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
33589 (no_real_insns_p, schedule_block, set_priorities): Drop special
33590 treatment of boundary debug insns.
33591 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
33592 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
33593 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
33594 (BOUNDARY_DEBUG_INSN_P): Likewise.
33595 (SCHEDULE_DEBUG_INSN_P): Likewise.
33596 * sched-rgn.c (init_ready_list): Drop special treatment of
33597 boundary debug insns.
33598 * final.c (rest_of_clean_state): Clear notes' BB.
33600 2011-02-01 Joseph Myers <joseph@codesourcery.com>
33602 * config/openbsd.opt (assert=): New Driver option.
33604 2011-02-01 Joseph Myers <joseph@codesourcery.com>
33606 * config/i386/nto.opt: New.
33607 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
33609 2011-02-01 Joseph Myers <joseph@codesourcery.com>
33611 * config/i386/netware.opt: New.
33612 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
33614 2011-02-01 Joseph Myers <joseph@codesourcery.com>
33616 * config/interix.opt (posix): New Driver option.
33618 2011-02-01 DJ Delorie <dj@redhat.com>
33620 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
33622 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
33625 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
33627 PR tree-optimization/47561
33628 * toplev.c (process_options): Print the Graphite flags. Add
33629 flag_loop_flatten to the list of options requiring Graphite.
33631 2011-02-01 Joseph Myers <joseph@codesourcery.com>
33633 * config/i386/cygming.opt (posix): New Driver option.
33635 2011-02-01 Joseph Myers <joseph@codesourcery.com>
33637 * config/arm/vxworks.opt: New.
33638 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
33640 2011-02-01 Joseph Myers <joseph@codesourcery.com>
33642 * config/alpha/elf.opt: New.
33643 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
33644 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
33646 2011-02-01 Richard Guenther <rguenther@suse.de>
33648 PR tree-optimization/47559
33649 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
33650 store-motion on references that can throw.
33652 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
33654 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
33655 * tree-pass.h (TDF_CSELIB): New macro.
33656 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
33657 cselib_lookup): Check for it rather than for TDF_DETAILS.
33659 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
33662 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
33663 is HOST_BIT_BUCKET.
33665 * opts.c (finish_options): Don't add x_aux_base_name if it is
33668 2011-02-01 Richard Guenther <rguenther@suse.de>
33670 PR tree-optimization/47555
33672 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
33674 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
33676 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
33679 * config/lm32/t-lm32: Add multilib for all CPU options.
33681 2011-02-01 Richard Guenther <rguenther@suse.de>
33683 PR tree-optimization/47541
33684 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
33685 sure to have a field at offset zero.
33687 2011-01-31 Joseph Myers <joseph@codesourcery.com>
33689 * config/arc/arc.opt (EB, EL): New Driver options.
33691 2011-01-31 Joseph Myers <joseph@codesourcery.com>
33693 * config/alpha/osf5.opt: New.
33694 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
33696 2011-01-31 Joseph Myers <joseph@codesourcery.com>
33698 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
33700 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
33702 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
33703 -floop-interchange.
33704 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
33705 is an alias of -floop-interchange and that it requires the
33706 Graphite infrastructure.
33707 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
33708 flag_loop_interchange based on the value of flag_tree_loop_linear.
33710 2011-01-31 Jakub Jelinek <jakub@redhat.com>
33711 Richard Guenther <rguenther@suse.de>
33713 PR tree-optimization/47538
33714 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
33715 type instead of r1type, except for comparisons. For right
33716 shifts and comparisons punt if there are mismatches in
33717 sizetype vs. non-sizetype types.
33719 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
33721 * doc/sourcebuild.texi (Effective-Target Keywords): Document
33724 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
33726 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
33728 * configure: Regenerate.
33730 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
33732 * configure.ac (gcc_cv_ld_static_option): Define.
33733 (gcc_cv_ld_dynamic_option): Define.
33734 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
33736 (HAVE_LD_STATIC_DYNAMIC): Update message.
33737 (LD_STATIC_OPTION): Define.
33738 (LD_DYNAMIC_OPTION): Define.
33739 * configure: Regenerate.
33740 * config.in: Regenerate.
33741 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
33742 HAVE_LD_STATIC_DYNAMIC]: Use them.
33744 2011-01-31 Nick Clifton <nickc@redhat.com>
33746 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
33747 registers inside interrupt handlers if the handler is not a leaf
33750 2011-01-31 Nick Clifton <nickc@redhat.com>
33752 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
33753 reg_renumber returning an INVALID_REGNUM.
33755 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
33758 * doc/install.texi: Document host options discarded when cross
33759 configuring target libraries.
33761 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
33764 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
33767 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
33769 (no_real_insns_p, schedule_block, set_priorities): Drop special
33770 treatment of boundary debug insns.
33771 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
33772 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
33773 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
33774 (BOUNDARY_DEBUG_INSN_P): Likewise.
33775 (SCHEDULE_DEBUG_INSN_P): Likewise.
33776 * sched-rgn.c (init_ready_list): Drop special treatment of
33777 boundary debug insns.
33778 * final.c (rest_of_clean-state): Clear notes' BB.
33780 2011-01-31 Alan Modra <amodra@gmail.com>
33782 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
33783 toc relative expressions as we do in print_operand_address.
33785 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
33787 * doc/extend.texi: Follow spelling conventions.
33788 * doc/invoke.texi: Fix a typo.
33790 2011-01-30 Joseph Myers <joseph@codesourcery.com>
33792 * config/hpux11.opt: New.
33793 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
33794 ia64*-*-hpux*): Use hpux11.opt.
33796 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
33798 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
33801 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
33803 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
33806 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
33808 * doc/install.texi (Binaries): Remove outdated reference for
33809 Motorola 68HC11/68HC12 downloads.
33811 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
33813 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
33816 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
33819 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
33822 2011-01-28 Ahmad Sharif <asharif@google.com>
33824 * value-prof.c (check_counter): Corrected error message.
33826 2011-01-29 Jie Zhang <jie@codesourcery.com>
33828 * config/arm/arm.c (arm_legitimize_reload_address): New.
33829 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
33830 arm_legitimize_reload_address.
33831 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
33833 2011-01-28 Ian Lance Taylor <iant@google.com>
33835 * godump.c (go_define): Ignore macros whose definitions include
33836 two adjacent operands.
33838 2011-01-28 Jakub Jelinek <jakub@redhat.com>
33841 * varasm.c (force_const_mem): Store copy of x in desc->constant
33842 instead of x itself.
33843 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
33844 itself into REG_EQUAL note.
33846 2011-01-28 Joseph Myers <joseph@codesourcery.com>
33848 * config/freebsd.opt (posix, rdynamic): New Driver options.
33850 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
33852 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
33853 -Bstatic/-Bdynamic.
33854 * configure: Regenerate.
33856 2011-01-27 Joseph Myers <joseph@codesourcery.com>
33858 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
33859 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
33861 2011-01-27 Anatoly Sokolov <aesok@post.ru>
33863 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
33864 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
33865 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
33866 (s390_preferred_reload_class): Make static. Change return and
33867 'rclass' argument type to reg_class_t.
33869 2011-01-27 Jan Hubicka <jh@suse.cz>
33871 PR middle-end/46949
33872 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
33873 (process_function_and_variable_attributes): Check defined weakrefs.
33875 2011-01-27 Martin Jambor <mjambor@suse.cz>
33877 PR tree-optimization/47228
33878 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
33879 build_ref_for_offset.
33881 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
33883 * config/spu/spu-elf.h (ASM_SPEC): Remove.
33885 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
33887 PR rtl-optimization/46856
33888 * postreload.c (reload_combine_recognize_const_pattern): Do not
33889 separate cc0 setter and user on cc0 targets.
33891 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
33894 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
33895 passed a VOID_TYPE expression, immediately emit an error and
33896 return error_mark_node.
33898 2011-01-26 Jeff Law <law@redhat.com>
33900 PR rtl-optimization/47464
33901 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
33902 rather than may_trap_p as needed.
33904 2011-01-26 DJ Delorie <dj@redhat.com>
33906 PR rtl-optimization/46878
33907 * combine.c (insn_a_feeds_b): Check for the implicit cc0
33908 setter/user dependency as well.
33910 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
33912 PR rtl-optimization/44469
33913 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
33914 after removing trivially dead basic blocks.
33916 2011-01-26 Joseph Myers <joseph@codesourcery.com>
33918 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
33919 * config/frv/frv.h (LINK_SPEC): Likewise.
33920 * config/i386/netware.h (LINK_SPEC): Likewise.
33921 * config/m68k/linux.h (ASM_SPEC): Likewise.
33922 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
33923 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
33924 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
33925 * config/sparc/linux.h (ASM_SPEC): Likewise.
33926 * config/sparc/linux64.h (ASM_SPEC): Likewise.
33927 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
33929 2011-01-26 Joseph Myers <joseph@codesourcery.com>
33931 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
33932 * config/frv/frv.h (ASM_SPEC): Likewise.
33933 * config/m68k/linux.h (ASM_SPEC): Likewise.
33934 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
33935 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
33936 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
33937 * config/sparc/linux.h (ASM_SPEC): Likewise.
33938 * config/sparc/linux64.h (ASM_SPEC): Likewise.
33939 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
33941 2011-01-26 Joseph Myers <joseph@codesourcery.com>
33943 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
33944 * config/frv/frv.h (LINK_SPEC): Likewise.
33945 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
33947 2011-01-26 Joseph Myers <joseph@codesourcery.com>
33949 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
33950 * config/frv/frv.h (ASM_SPEC): Likewise.
33951 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
33952 * config/m68k/linux.h (ASM_SPEC): Likewise.
33953 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
33954 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
33955 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
33956 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
33957 * config/sparc/linux.h (ASM_SPEC): Likewise.
33958 * config/sparc/linux64.h (ASM_SPEC): Likewise.
33959 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
33960 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
33962 2011-01-26 Steve Ellcey <sje@cup.hp.com>
33965 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
33967 (vec_extract_evenodd_help): Ditto.
33968 (vec_extract_evenv4hi): Ditto.
33969 (vec_extract_oddv4hi): Ditto.
33970 (vec_interleave_lowv2si): Ditto.
33971 (vec_interleave_highv2si): Ditto.
33972 (vec_extract_evenv2si): Ditto.
33973 (vec_extract_oddv2si: Ditto.
33974 (vec_pack_trunc_v2si): Ditto.
33976 2011-01-22 Jan Hubicka <jh@suse.cz>
33979 * cgraph.h (cgraph_local_info): New field can_change_signature.
33980 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
33981 signature can change.
33982 (ipcp_estimate_growth): Call sequence simplify only if calle signature
33984 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
33985 (cgraph_function_versioning): We can not change signature of functions
33986 that don't allow that.
33987 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
33988 (lto_input_node): Likewise.
33989 * ipa-inline.c (compute_inline_parameters): Compute
33990 local.can_change_signature.
33991 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
33992 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
33993 functions that can not change signature.
33994 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
33995 init_cumulative_args): Do not use local calling conventions
33996 for functions that can not change signature.
33998 2011-01-22 Jan Hubicka <jh@suse.cz>
34000 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
34002 2011-01-26 Richard Guenther <rguenther@suse.de>
34004 PR tree-optimization/47190
34005 * cgraphunit.c (process_common_attributes): New function.
34006 (process_function_and_variable_attributes): Use it.
34008 2011-01-26 Richard Guenther <rguenther@suse.de>
34011 * cgraphbuild.c (record_eh_tables): Record reference to personality
34014 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
34017 * sel-sched.c (moveup_expr): Don't let debug insns prevent
34018 non-debug insns from moving up.
34020 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
34023 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
34024 t-dlldir{,-x} fragment for build and add it to tmake_file.
34025 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
34026 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
34027 * config/i386/t-dlldir: New file.
34028 (SHLIB_DLLDIR): Define.
34029 * config/i386/t-dlldir-x: New file.
34030 (SHLIB_DLLDIR): Define.
34031 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
34032 (SHLIB_INSTALL): Use it.
34034 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
34037 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
34038 lower bound of the allowed Thumb-2 coprocessor load/store
34039 index range to -256. Add explaining comment.
34041 2011-01-25 Ian Lance Taylor <iant@google.com>
34043 * godump.c (go_define): Improve lexing of macro expansion to only
34044 accept expressions which match Go spec.
34046 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
34049 * tree.c (handle_dll_attribute): Handle it.
34050 * doc/extend.texi (@item dllexport): Mention it.
34051 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
34053 2011-01-25 Ian Lance Taylor <iant@google.com>
34055 PR tree-optimization/26854
34056 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
34057 (decl_jump_unsafe): Move higher in file, with no other change.
34058 (bind): Set has_jump_unsafe_decl if appropriate.
34059 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
34060 (check_earlier_gotos): Likewise.
34061 (c_check_switch_jump_warnings): Likewise.
34063 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
34065 * doc/invoke.texi (Warning Options): Add missing hyphen.
34066 (-fprofile-dir): Minor grammatical fixes.
34067 (-fbranch-probabilities): Likewise.
34069 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
34073 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
34075 (no_real_insns_p, schedule_block, set_priorities): Drop special
34076 treatment of boundary debug insns.
34077 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
34078 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
34079 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
34080 (BOUNDARY_DEBUG_INSN_P): Likewise.
34081 (SCHEDULE_DEBUG_INSN_P): Likewise.
34082 * sched-rgn.c (init_ready_list): Drop special treatment of
34083 boundary debug insns.
34084 * final.c (rest_of_clean-state): Clear notes' BB.
34086 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
34088 * Makefile.in (LAMBDA_H): Removed.
34089 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
34090 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
34091 lambda-trans.o, and tree-loop-linear.o.
34092 (lto-symtab.o): Remove dependence on LAMBDA_H.
34093 (tree-loop-linear.o): Remove rule.
34094 (lambda-mat.o): Same.
34095 (lambda-trans.o): Same.
34096 (lambda-code.o): Same.
34097 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
34098 (tree-vect-slp.o): Same.
34099 * hwint.h (gcd): Moved here.
34100 (least_common_multiple): Same.
34101 * lambda-code.c: Removed.
34102 * lambda-mat.c: Removed.
34103 * lambda-trans.c: Removed.
34104 * lambda.h: Removed.
34105 * tree-loop-linear.c: Removed.
34106 * lto-symtab.c: Do not include lambda.h.
34107 * omega.c (gcd): Removed.
34108 * passes.c (init_optimization_passes): Remove pass_linear_transform.
34109 * tree-data-ref.c (print_lambda_vector): Moved here.
34110 (lambda_vector_copy): Same.
34111 (lambda_matrix_copy): Same.
34112 (lambda_matrix_id): Same.
34113 (lambda_vector_first_nz): Same.
34114 (lambda_matrix_row_add): Same.
34115 (lambda_matrix_row_exchange): Same.
34116 (lambda_vector_mult_const): Same.
34117 (lambda_vector_negate): Same.
34118 (lambda_matrix_row_negate): Same.
34119 (lambda_vector_equal): Same.
34120 (lambda_matrix_right_hermite): Same.
34121 * tree-data-ref.h: Do not include lambda.h.
34122 (lambda_vector): Moved here.
34123 (lambda_matrix): Same.
34124 (dependence_level): Same.
34125 (lambda_transform_legal_p): Removed declaration.
34126 (lambda_collect_parameters): Same.
34127 (lambda_compute_access_matrices): Same.
34128 (lambda_vector_gcd): Same.
34129 (lambda_vector_new): Same.
34130 (lambda_vector_clear): Same.
34131 (lambda_vector_lexico_pos): Same.
34132 (lambda_vector_zerop): Same.
34133 (lambda_matrix_new): Same.
34134 * tree-flow.h (least_common_multiple): Removed declaration.
34135 * tree-parloops.c (lambda_trans_matrix): Moved here.
34136 (LTM_MATRIX): Same.
34137 (LTM_ROWSIZE): Same.
34138 (LTM_COLSIZE): Same.
34139 (LTM_DENOMINATOR): Same.
34140 (lambda_trans_matrix_new): Same.
34141 (lambda_matrix_vector_mult): Same.
34142 (lambda_transform_legal_p): Same.
34143 * tree-pass.h (pass_linear_transform): Removed declaration.
34144 * tree-ssa-loop.c (tree_linear_transform): Removed.
34145 (gate_tree_linear_transform): Removed.
34146 (pass_linear_transform): Removed.
34147 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
34148 flag_loop_interchange.
34150 2011-01-25 Jakub Jelinek <jakub@redhat.com>
34152 PR tree-optimization/47265
34153 PR tree-optimization/47443
34154 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
34155 if name still has some uses.
34157 2011-01-25 Martin Jambor <mjambor@suse.cz>
34159 PR tree-optimization/47382
34160 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
34161 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
34163 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
34165 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
34166 sjlj_except_unwind_info.
34168 2011-01-25 Richard Guenther <rguenther@suse.de>
34170 PR tree-optimization/47426
34171 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
34172 visible functions results escape.
34174 2011-01-25 Jakub Jelinek <jakub@redhat.com>
34177 * config/arm/arm.c (any_sibcall_uses_r3): New function.
34178 (arm_get_frame_offsets): Use it.
34180 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
34181 Jakub Jelinek <jakub@redhat.com>
34183 PR tree-optimization/47271
34184 * tree-if-conv.c (bb_postdominates_preds): New.
34185 (if_convertible_bb_p): Call bb_postdominates_preds.
34186 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
34187 (predicate_scalar_phi): Call bb_postdominates_preds.
34189 2011-01-25 Nick Clifton <nickc@redhat.com>
34191 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
34192 * config/rx/rx.c (rx_function_value): Likewise.
34193 (rx_promote_function_mode): Likewise.
34194 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
34195 in order to make it legitimate.
34196 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
34197 make sure that the first operand is the same as the result register.
34198 (addsi3_unspec): Delete.
34199 (subdi3): Do not accept immediate operands.
34200 (subdi3_internal): Likewise.
34202 2011-01-25 Jeff Law <law@redhat.com>
34204 PR rtl-optimization/37273
34205 * ira-costs.c (scan_one_insn): Detect constants living in memory and
34206 handle them like argument loads from stack slots. Do not double
34207 count memory for memory constants and argument loads from stack slots.
34209 2011-01-25 Jakub Jelinek <jakub@redhat.com>
34211 PR tree-optimization/47427
34212 PR tree-optimization/47428
34213 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
34214 coalesce if the new root var would be TREE_READONLY.
34216 2011-01-25 Richard Guenther <rguenther@suse.de>
34218 PR middle-end/47414
34219 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
34220 correct type for TBAA.
34222 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
34224 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
34225 (close_phi_written_to_memory): Call for_each_index with
34226 dr_indices_valid_in_loop.
34228 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
34230 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
34231 when it is initialized.
34233 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
34235 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
34236 call to graphite_find_data_references_in_stmt.
34237 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
34238 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
34239 call to graphite_find_data_references_in_stmt.
34240 (analyze_drs_in_stmts): Same.
34241 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
34242 in which the scalar analysis of indices is performed.
34243 (create_data_ref): Same. Update call to dr_analyze_indices.
34244 (find_data_references_in_stmt): Update call to create_data_ref.
34245 (graphite_find_data_references_in_stmt): Same.
34246 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
34248 (create_data_ref): Same.
34249 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
34250 call to create_data_ref.
34252 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
34254 * graphite-sese-to-poly.c (build_poly_scop): Move
34255 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
34257 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
34259 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
34260 VAR_DECL, PARM_DECL, and RESULT_DECL.
34262 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
34264 * graphite-dependences.c (reduction_dr_1): Allow several reductions
34265 in a reduction PBB.
34266 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
34267 that have already been marked as PBB_IS_REDUCTION.
34269 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
34271 * graphite-scop-detection.c (same_close_phi_node): New.
34272 (remove_duplicate_close_phi): New.
34273 (make_close_phi_nodes_unique): New.
34274 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
34276 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
34278 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
34279 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
34280 of both data references to be the same.
34282 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
34284 * graphite-dependences.c (build_lexicographical_constraint): Remove
34285 the gdim parameter.
34286 (build_lexicographical_constraint): Adjust call to
34287 ppl_powerset_is_empty.
34288 (dependence_polyhedron): Same.
34289 (graphite_legal_transform_dr): Same.
34290 (graphite_carried_dependence_level_k): Same.
34291 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
34293 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
34295 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
34297 * graphite-sese-to-poly.c
34298 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
34299 (close_phi_written_to_memory): New.
34300 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
34303 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
34305 * doc/install.texi: Update the expected version number of PPL to 0.11.
34306 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
34307 #if PPL_VERSION_MINOR < 11.
34309 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
34311 * graphite-dependences.c: Include graphite-cloog-util.h.
34312 (new_poly_ddr): Inlined into dependence_polyhedron.
34313 (free_poly_ddr): Moved close by new_poly_ddr.
34314 (dependence_polyhedron_1): Renamed dependence_polyhedron.
34315 Early return NULL when ppl_powerset_is_empty returns true.
34316 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
34317 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
34318 (graphite_legal_transform_dr): Call new_poly_ddr.
34319 (graphite_carried_dependence_level_k): Same.
34320 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
34321 (dot_transformed_deps_stmt_1): Removed.
34322 (dot_deps_stmt_1): Call dot_deps_stmt_2.
34323 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
34324 (dot_deps_1): Call dot_deps_2.
34325 * Makefile.in (graphite-dependences.o): Add missing dependence on
34326 graphite-cloog-util.h.
34328 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
34330 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
34331 (build_lexicographical_constraint): Same.
34332 (dependence_polyhedron_1): Same.
34333 (graphite_legal_transform_dr): Same.
34334 (graphite_carried_dependence_level_k): Same.
34335 * graphite-ppl.c (ppl_powerset_is_empty): New.
34336 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
34337 * tree-data-ref.c (dump_data_reference): Print the basic block index.
34339 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
34341 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
34342 the "a followed by b" relation and document it.
34344 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
34346 * graphite-dependences.c (build_lexicographical_constraint): Stop the
34347 iteration when the bag of constraints is empty.
34349 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
34351 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
34353 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
34355 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
34356 nest and two loop depths as parameters.
34357 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
34358 lst_perfect_nestify.
34360 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
34362 * graphite-dependences.c (print_pddr): Call
34363 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
34365 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
34367 * graphite-ppl.c (debug_gmp_value): New.
34368 * graphite-ppl.h (debug_gmp_value): Declared.
34370 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
34372 * doc/install.texi: Document availability of cloog-0.16.
34374 2011-01-25 Vladimir Kargov <kargov@gmail.com>
34376 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
34377 invalid postdominance info.
34379 2011-01-24 Jan Hubicka <jh@suse.cz>
34382 * doc/extend.texi (weak pragma): Drop claim that it must
34383 appear before definition.
34384 * varasm.c (merge_weak, declare_weak): Only sanity check
34385 that DECL is not output at a time it is declared weak.
34387 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
34389 * machmode.def: Fixed comments.
34391 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
34393 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
34395 2011-01-24 Paul Koning <ni1d@arrl.net>
34397 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
34400 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
34403 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
34404 (block_info): Add scanned and prev.
34405 (move_or_delete_vzeroupper_2): Return if the basic block
34406 has been scanned and the upper 128bit state is unchanged
34407 from the last scan.
34408 (move_or_delete_vzeroupper_1): Return true if the exit
34410 (move_or_delete_vzeroupper): Visit basic blocks using the
34411 work-list based algorithm based on vt_find_locations in
34414 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
34416 2011-01-24 Nick Clifton <nickc@redhat.com>
34418 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
34419 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
34420 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
34421 then define __v850e1__.
34422 * doc/invoke.texi: Document -mv850es.
34424 2011-01-24 Richard Henderson <rth@redhat.com>
34426 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
34427 compound unordered comparisons.
34428 * config/rx/rx.c (rx_split_fp_compare): Remove.
34429 * config/rx/rx-protos.h: Update.
34430 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
34431 (cbranchsf4): Don't call rx_split_fp_compare.
34432 (*cbranchsf4): Use rx_split_cbranch.
34433 (*cmpsf): Don't accept "i" constraint.
34434 (*conditional_branch): Only valid after reload.
34435 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
34437 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
34440 * config/rs6000/altivec.md (vector constant splitters): Add
34441 support for creating vector single precision constants if -mvsx is
34442 used and we would create the constant using Altivec primitives.
34444 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
34445 Richard Sandiford <rdsandiford@googlemail.com>
34447 PR rtl-optimization/47166
34448 * reload1.c (emit_reload_insns): Disable the spill_reg_store
34449 mechanism for PRE_MODIFY and POST_MODIFY.
34450 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
34453 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
34455 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
34457 2011-01-22 Jan Hubicka <jh@suse.cz>
34460 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
34462 2011-01-22 Jan Hubicka <jh@suse.cz>
34464 PR tree-optimization/43884
34466 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
34467 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
34469 2011-01-22 Anatoly Sokolov <aesok@post.ru>
34471 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
34472 * config/s390/s390.c (s390_register_move_cost,
34473 s390_memory_move_cost): New.
34474 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
34476 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
34478 PR middle-end/47401
34479 * except.c (sjlj_assign_call_site_values): Move setting the
34480 crtl->uses_eh_lsda flag to ...
34481 (sjlj_mark_call_sites): ... here.
34482 (sjlj_emit_function_enter): Support NULL dispatch label.
34483 (sjlj_build_landing_pads): In a function with no landing pads
34484 that still has must-not-throw regions, generate code to register
34485 a personality function with empty LSDA.
34487 2011-01-21 Richard Henderson <rth@redhat.com>
34489 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
34491 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
34493 * compare-elim.c: New file.
34494 * Makefile.in (OBJS-common): Add it.
34495 (compare-elim.o): New.
34496 * common.opt (fcompare-elim): New.
34497 * opts.c (default_options_table): Add OPT_fcompare_elim.
34498 * tree-pass.h (pass_compare_elim_after_reload): New.
34499 * passes.c (init_optimization_passes): Add it.
34500 * recog.h: Protect against re-inclusion.
34501 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
34502 * doc/invoke.texi (-fcompare-elim): Document it.
34503 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
34504 * doc/tm.texi: Rebuild.
34506 2011-01-22 Nick Clifton <nickc@redhat.com>
34508 * config/rx/rx.md (cstoresf4): Pass comparison operator to
34509 rx_split_fp_compare.
34511 2011-01-22 Nick Clifton <nickc@redhat.com>
34513 * config/rx/rx.md (UNSPEC_CONST): New.
34514 (deallocate_and_return): Wrap the amount popped off the stack in
34515 an UNSPEC_CONST in order to stop it being rejected by
34516 -mmax-constant-size.
34517 (pop_and_return): Add a "(return)" rtx.
34518 (call): Drop the immediate operand.
34519 (call_internal): Likewise.
34520 (call_value): Likewise.
34521 (call_value_internal): Likewise.
34522 (sibcall_internal): Likewise.
34523 (sibcall_value_internal): Likewise.
34524 (sibcall): Likewise. Generate an explicit call using
34526 (sibcall_value): Likewise.
34527 (mov<>): FAIL if a constant operand is not legitimate.
34528 (addsi3_unpsec): New pattern.
34530 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
34531 (ok_for_max_constant): New function.
34532 (gen_safe_add): New function.
34533 (rx_expand_prologue): Use gen_safe_add.
34534 (rx_expand_epilogue): Likewise.
34535 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
34538 2011-01-21 Jeff Law <law@redhat.com>
34540 PR tree-optimization/47053
34541 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
34542 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
34543 statements are deleted.
34544 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
34545 is nonempty, then purge dead edges and cleanup the CFG.
34547 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
34550 Temporarily revert:
34551 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
34553 * tree-dfa.c (create_var_ann): Mark variable as used.
34555 2011-01-21 Jakub Jelinek <jakub@redhat.com>
34557 PR middle-end/45566
34558 * except.c (convert_to_eh_region_ranges): Emit queued no-region
34559 notes from other section in hot/cold partitioning even if
34560 last_action is -3. Increment call_site_base.
34562 PR rtl-optimization/47366
34563 * fwprop.c (forward_propagate_into): Return bool. If
34564 any changes are made, -fnon-call-exceptions is used and
34565 REG_EH_REGION note is present, call purge_dead_edges
34566 and return true if it purged anything.
34567 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
34568 any EH edges were purged.
34570 2011-01-21 Jeff Law <law@redhat.com>
34572 PR rtl-optimization/41619
34573 * caller-save.c (setup_save_areas): Break out code to determine
34574 which hard regs are live across calls by examining the reload chains
34575 so that it is always used.
34576 Eliminate code which checked REG_N_CALLS_CROSSED.
34578 2011-01-21 Jakub Jelinek <jakub@redhat.com>
34580 PR tree-optimization/47355
34581 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
34582 NOP has non-debug uses beyond PHIs in new_bb.
34584 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
34587 * cfgexpand.c (account_used_vars_for_block): Only account vars
34588 that are annotated as used.
34589 (estimated_stack_frame_size): Don't set TREE_USED.
34590 * tree-dfa.c (create_var_ann): Mark variable as used.
34592 2011-01-21 Richard Guenther <rguenther@suse.de>
34594 PR middle-end/47395
34595 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
34597 2011-01-21 Richard Guenther <rguenther@suse.de>
34599 PR tree-optimization/47365
34600 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
34601 (vn_reference_lookup_pieces): Adjust.
34602 (vn_reference_lookup): Likewise.
34603 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
34604 (vn_reference_lookup_3): Only look through kills if in
34605 VN_WALKREWRITE mode.
34606 (vn_reference_lookup_pieces): Adjust.
34607 (vn_reference_lookup): Likewise.
34608 (visit_reference_op_load): Likewise.
34609 (visit_reference_op_store): Likewise.
34610 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
34611 (compute_avail): Likewise.
34612 (eliminate): Likewise.
34614 2011-01-21 Jakub Jelinek <jakub@redhat.com>
34616 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
34617 DECL_IGNORED_P non-reg vars if they are used.
34619 PR tree-optimization/47391
34620 * varpool.c (const_value_known_p): Return false if
34623 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
34626 * config/i386/i386.c (ix86_local_alignment): Handle
34627 case for va_list_type_node is nil.
34628 (ix86_canonical_va_list_type): Likewise.
34630 2011-01-21 Alan Modra <amodra@gmail.com>
34632 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
34633 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
34635 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
34637 * config/arm/arm.md (define_attr type): Rename f_load
34638 and f_store to f_fpa_load and f_fpa_store. Update.
34639 (write_conflict): Deal with rename fallout.
34640 (*push_fp_multi): Likewise.
34641 * config/arm/fpa.md (f_load): Use f_fpa_load.
34642 (f_store): Use f_fpa_store.
34643 (*movsf_fpa): Likewise.
34644 (*movdf_fpa): Likewise.
34645 (*movxf_fpa): Likewise.
34646 (*thumb2_movsf_fpa): Likewise.
34647 (*thumb2_movdf_fpa): Likewise.
34648 (*thumb2_movxf_fpa): Likewise.
34649 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
34650 f_loadd and f_stored.
34651 (*thumb2_movdi_vfp): Likewise.
34652 (*thumb2_movsf_vfp): Fix attribute to f_loads.
34653 (*thumb2_movsi_vfp): Likewise.
34654 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
34655 Use f_loads instead of f_load.
34656 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
34658 2011-01-20 Anatoly Sokolov <aesok@post.ru>
34660 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
34661 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
34662 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
34663 (xtensa_mode_dependent_address_p): New function.
34664 (constantpool_address_p): Make static. Change return type to bool.
34665 Change argument type to const_rtx. Use CONST_INT_P predicate.
34667 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
34670 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
34672 2011-01-20 Jakub Jelinek <jakub@redhat.com>
34675 * cfgexpand.c (expand_debug_expr): Instead of generating
34676 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
34679 2011-01-20 Richard Guenther <rguenther@suse.de>
34681 PR middle-end/47370
34682 * tree-inline.c (remap_gimple_op_r): Recurse manually for
34683 the pointer operand of MEM_REFs.
34685 2011-01-20 Jakub Jelinek <jakub@redhat.com>
34687 PR tree-optimization/46130
34688 * ipa-split.c (consider_split): If return_bb contains non-virtual
34689 PHIs other than for retval or if split_function would not adjust it,
34692 2011-01-20 Richard Guenther <rguenther@suse.de>
34694 PR tree-optimization/47167
34695 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
34696 Revert previous change, only avoid enumeral type changes.
34698 2011-01-19 Mike Stump <mikestump@comcast.net>
34700 * doc/tm.texi.in (BRANCH_COST): Englishify.
34701 * doc/tm.texi (BRANCH_COST): Likewise.
34703 2011-01-19 Dodji Seketeli <dodji@redhat.com>
34706 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
34707 (gen_scheduled_generic_parms_dies): New functions.
34708 (gen_struct_or_union_type_die): Schedule template parameters DIEs
34709 generation for the end of CU compilation.
34710 (dwarf2out_finish): Generate template parameters DIEs here.
34712 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
34715 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
34716 debug bind stmt on merge edges.
34718 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
34722 * function.c (instantiate_expr): Instantiate incoming rtl of
34723 implicit arguments, and recurse on VALUE_EXPRs.
34724 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
34725 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
34727 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
34729 * c-parser.c (c_parser_for_statement): Initialize
34730 collection_expression.
34732 2011-01-19 Joseph Myers <joseph@codesourcery.com>
34734 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
34736 2011-01-19 Joseph Myers <joseph@codesourcery.com>
34738 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
34739 (LINK_SHLIB_SPEC): Don't use %(link_path).
34740 (SUBTARGET_EXTRA_SPECS): Remove link_path.
34742 2011-01-19 Joseph Myers <joseph@codesourcery.com>
34744 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
34745 (NO_SHARED_LIB_SUPPORT): Remove.
34746 (LINK_SHLIB_SPEC): Remove one conditional definition.
34748 2011-01-19 Joseph Myers <joseph@codesourcery.com>
34750 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
34752 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
34753 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
34754 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
34755 %{call_shared} and conditionals on these options not being passed.
34756 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
34759 2011-01-19 Jakub Jelinek <jakub@redhat.com>
34761 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
34764 * ipa-split.c: Spelling fixes.
34766 2011-01-19 Richard Henderson <rth@redhat.com>
34768 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
34769 (*mulsi3): Likewise.
34771 * longlong.h [__mn10300__] (count_leading_zeros): New.
34772 [__mn10300__] (umul_ppmm, smul_ppmm): New.
34773 [__mn10300__] (add_ssaaaa, subddmmss): New.
34774 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
34775 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
34777 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
34779 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
34781 2011-01-19 Richard Henderson <rth@redhat.com>
34783 * config/mn10300/mn10300.md (addsi3_flags): New.
34784 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
34785 (subsi3_flags, subc_internal, subdi3): New.
34786 (subdi3_internal, *subdi3_degenerate): New.
34787 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
34789 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
34790 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
34791 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
34792 * config/mn10300/mn10300-protos.h: Update.
34793 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
34794 (return_ret): Likewise. Rename from return_internal_regs.
34795 (return_internal): Remove.
34797 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
34798 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
34799 (mn10300_legitimate_constant_p): Likewise.
34800 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
34801 (mn10300_frame_size): New.
34802 (mn10300_expand_prologue): Use it.
34803 (mn10300_expand_epilogue): Likewise.
34804 (mn10300_initial_offset): Likewise.
34805 * config/mn10300/mn10300-protos.h: Update.
34806 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
34807 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
34808 (prologue, epilogue, return_internal): Tidy output code.
34809 (mn10300_store_multiple_operation, return): Likewise.
34810 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
34811 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
34812 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
34813 (load_pic, am33_load_pic): New.
34814 (mn10300_load_pic0, mn10300_load_pic1): New.
34816 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
34817 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
34818 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
34819 (cc_flags_for_mode, cc_flags_for_code): New.
34820 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
34821 overflow flag is not valid. Validate that the flags we need
34822 for the comparison are valid.
34823 (mn10300_output_cmp): Remove.
34824 (mn10300_output_add): New.
34825 (mn10300_select_cc_mode): Use cc_flags_for_code.
34826 (mn10300_split_cbranch): New.
34827 (mn10300_match_ccmode): New.
34828 (mn10300_split_and_operand_count): New.
34829 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
34831 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
34832 (addsi3): ... here. Use mn10300_output_add.
34833 (*addsi3_flags): New.
34834 (*am33_subsi3, *mn10300_subsi3): Merge...
34835 (subsi3): ... here. Use attribute isa.
34836 (*subsi3_flags): New.
34837 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
34839 (*am33_andsi3, *mn10300_andsi3): Merge...
34840 (andsi3): ... here.
34841 (*andsi3_flags): New.
34842 (andsi3 splitters): New.
34843 (*am33_iorsi3, *mn10300_iorsi3): Merge...
34844 (iorsi3): ... here.
34845 (*iorsi3_flags): New.
34846 (*am33_xorsi3, *mn10300_xorsi3): Merge...
34847 (xorsi3): ... here.
34848 (*xorsi3_flags): New.
34849 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
34850 (one_cmplsi2): ... here.
34851 (*one_cmplsi2_flags): New.
34852 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
34853 instead of "dax" in constraints. Use mn10300_split_cbranch.
34854 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
34855 use matching constraints to eliminate a self-comparison.
34856 (*integer_conditional_branch): Rename from integer_conditional_branch.
34857 Use int_mode_flags to match CC_REG.
34858 (*cbranchsi4_btst, *btstsi): New.
34859 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
34860 mn10300_split_cbranch.
34861 (*am33_cmpsf): Rename from am33_cmpsf.
34862 (*float_conditional_branch): Rename from float_conditional_branch.
34863 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
34864 (zero_extendqisi2): ... here.
34865 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
34866 (zero_extendhisi2): ... here.
34867 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
34868 (extendqisi2): ... here.
34869 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
34870 (extendhisi2): ... here.
34871 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
34872 (ashlsi3): ... here.
34873 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
34874 (lshrsi3): ... here.
34875 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
34876 (ashrsi3): ... here.
34877 (consecutive add peephole): Remove.
34878 * config/mn10300/predicates.md (label_ref_operand): New.
34879 (int_mode_flags): New.
34880 (CCZN_comparison_operator): New.
34882 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
34883 (throughput_42_latency_43): New reservation.
34884 (mulsidi3, umulsidi3): New expanders.
34885 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
34886 the MDR register to allocation; separately allocate the low and
34887 high parts of the DImode result.
34888 (umulsidi3_internal): Similarly.
34889 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
34890 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
34891 (udivsi3, umodsi3): Remove.
34892 (udivmodsi4, divmodsi4): New expanders.
34893 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
34894 (*divmodsi4): Simiarly.
34895 (ext_internal): New.
34897 * config/mn10300/constraints.md ("z"): New constraint.
34898 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
34899 (FIXED_REGISTERS): Don't fix MDR.
34900 (CALL_USED_REGSITERS): Reformat nicely.
34901 (REG_ALLOC_ORDER): Add MDR.
34902 (enum regclass): Add MDR_REGS.
34903 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
34904 (IRA_COVER_CLASSES): Add MDR_REGS.
34905 (REGNO_REG_CLASS): Handle MDR_REG.
34906 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
34907 (mn10300_register_move_cost): Likewise.
34908 * config/mn10300/mn10300.md (MDR_REG): New.
34909 (*movsi_internal): Handle moves to/from MDR_REGS.
34911 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
34913 (mn10300_secondary_reload): Tidy combination reload classes.
34914 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
34915 addresses for AM33. Allow symbolic offsets for reg+imm.
34916 (mn10300_regno_in_class_p): New.
34917 (mn10300_legitimize_reload_address): New.
34918 * config/mn10300/mn10300.h (enum reg_class): Remove
34919 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
34920 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
34921 SP_OR_GENERAL_REGS.
34922 (REG_CLASS_NAMES): Update to match.
34923 (REG_CLASS_CONTENTS): Likewise.
34924 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
34925 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
34926 (REGNO_IN_RANGE_P): Remove.
34927 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
34928 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
34929 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
34930 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
34931 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
34932 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
34933 (REGNO_GENERAL_P): New.
34934 (HAVE_POST_MODIFY_DISP): New.
34935 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
34936 (LEGITIMIZE_RELOAD_ADDRESS): New.
34937 * config/mn10300/mn10300-protos.h: Update.
34939 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
34940 DATA_REGS for AM33 stack-pointer destination.
34941 (mn10300_preferred_output_reload_class): Likewise.
34942 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
34943 into a form appropriate for ...
34944 (TARGET_SECONDARY_RELOAD): New.
34945 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
34946 * config/mn10300/mn10300-protos.h: Update.
34947 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
34948 reload_insi; use the "A" constraint for the scratch; handle AM33
34949 moves of sp to non-address registers.
34951 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
34952 (*movqi_internal): ... here.
34953 (*am33_movhi, *mn10300_movhi): Merge into...
34954 (*movhi_internal): ... here.
34955 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
34956 as the source/destination of moves from/to SP.
34957 (movsf): Only allow for AM33-2.
34958 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
34959 any integer constant constraint. Only allow for AM33-2. Tidy
34960 all of the alternative outputs.
34961 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
34962 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
34964 (udivsi3, umodsi3): New patterns for MN103 only.
34966 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
34968 * doc/tm.texi.in: Spell out that a lack of register class unions
34970 * doc/tm.texi: Regenerate.
34972 2011-01-19 Jakub Jelinek <jakub@redhat.com>
34974 PR rtl-optimization/47337
34975 * dce.c (check_argument_store): New function.
34976 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
34978 PR tree-optimization/47290
34979 * tree-eh.c (infinite_empty_loop_p): New function.
34980 (cleanup_empty_eh): Use it.
34982 2011-01-18 Steve Ellcey <sje@cup.hp.com>
34985 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
34986 (a64_expand_widen_sum): Ditto.
34987 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
34988 (vec_extract_evenodd_help): Ditto.
34989 (vec_extract_evenv4hi): Ditto.
34990 (vec_extract_oddv4hi): Ditto.
34991 (vec_extract_evenv2si): Ditto.
34992 (vec_extract_oddv2si): Ditto.
34993 (vec_extract_evenv2sf): Ditto.
34994 (vec_extract_oddv2sf): Ditto.
34995 (vec_pack_trunc_v4hi: Ditto.
34996 (vec_pack_trunc_v2si): Ditto.
34997 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
34998 (vec_interleave_highv8qi): Ditto.
35000 (vec_extract_oddv8qi): Ditto.
35001 (vec_interleave_lowv4hi): Ditto.
35002 (vec_interleave_highv4hi): Ditto.
35003 (vec_interleave_lowv2si): Ditto.
35004 (vec_interleave_highv2si): Ditto.
35006 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
35008 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
35009 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
35010 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
35011 (pa_c_mode_for_suffix): New.
35012 (TARGET_EXPAND_BUILTIN): Define.
35013 (TARGET_C_MODE_FOR_SUFFIX): Define.
35014 (pa_builtins): Define.
35015 (pa_init_builtins): Register __float128 type and init new support
35017 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
35018 * config/pa/quadlib.c (_U_Qfcopysign): New.
35020 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
35022 PR middle-end/46894
35023 * explow.c (allocate_dynamic_stack_space): Do not assume more than
35024 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
35027 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
35029 PR tree-optimization/47179
35030 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
35031 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
35033 2011-01-18 Richard Guenther <rguenther@suse.de>
35035 PR rtl-optimization/47216
35036 * emit-rtl.c: Include tree-flow.h.
35037 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
35038 of replicating it with different semantics.
35039 * Makefile.in (emit-rtl.o): Adjust.
35041 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
35043 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
35044 (cortex_a9_dp): Handle neon types correctly.
35046 2011-01-18 Jakub Jelinek <jakub@redhat.com>
35048 PR rtl-optimization/47299
35049 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
35050 subtarget. Use normal multiplication if both operands are constants.
35051 * expmed.c (expand_widening_mult): Don't try to optimize constant
35052 multiplication if op0 has VOIDmode. Convert op1 constant to mode
35055 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
35057 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
35058 spacing after 'e.g.', typos, comma, hyphenation.
35060 2011-01-17 Richard Henderson <rth@redhat.com>
35062 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
35063 (rx_restricted_mem_operand): New.
35064 (rx_shift_operand): Use register_operand.
35065 (rx_source_operand, rx_compare_operand): Likewise.
35066 * config/rx/rx.md (addsi3_flags): New expander.
35067 (adddi3): Rewrite as expander.
35068 (adc_internal, *adc_flags, adddi3_internal): New patterns.
35069 (subsi3_flags): New expander.
35070 (subdi3): Rewrite as expander.
35071 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
35073 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
35074 (rx_init_builtins): Remove sat builtin.
35075 (rx_expand_builtin): Likewise.
35076 * config/rx/rx.md (ssaddsi3): New.
35077 (*sat): Rename from sat. Represent the CC_REG input.
35079 * config/rx/predicates.md (rshift_operator): New.
35080 * config/rx/rx.c (rx_expand_insv): Remove.
35081 * config/rx/rx-protos.h: Update.
35082 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
35083 operand to the canonical position.
35084 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
35085 (*bitclr, *bitclr_in_memory): Similarly.
35086 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
35087 (insv): Retain the zero_extract in the expansion.
35089 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
35090 (bswaphi2, bitinvert, revw): Likewise.
35092 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
35093 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
35094 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
35095 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
35096 (bitset, bitset_in_memory): Likewise.
35097 (bitinvert, bitinvert_in_memory): Likewise.
35098 (bitclr, bitclr_in_memory): Likewise.
35099 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
35100 (rx_strend, rx_cmpstrn): Likewise.
35101 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
35102 (bitop peep2 patterns): Remove.
35104 * config/rx/rx.c (rx_match_ccmode): New.
35105 * config/rx/rx-protos.h: Update.
35106 * config/rx/rx.md (abssi2): Clobber, don't set flags.
35107 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
35108 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
35109 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
35110 (fix_truncsfsi2, floatsisf2): Likewise.
35111 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
35112 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
35113 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
35114 (*subsi3_flags, *xorsi3_flags): New.
35116 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
35118 * config/rx/rx.c (rx_print_operand): Remove workaround for
35119 unsplit comparison operations.
35121 * config/rx/rx.md (movsicc): Split after reload.
35122 (*movsicc): Merge *movsieq and *movsine via match_operator.
35123 (*stcc): New pattern.
35125 * config/rx/rx.c (rx_float_compare_mode): Remove.
35126 * config/rx/rx.h (rx_float_compare_mode): Remove.
35127 * config/rx/rx.md (cstoresi4): Split after reload.
35128 (*sccc): New pattern.
35130 * config/rx/predicates.md (label_ref_operand): New.
35131 (rx_z_comparison_operator): New.
35132 (rx_zs_comparison_operator): New.
35133 (rx_fp_comparison_operator): New.
35134 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
35135 Validate that the flags are set properly for the comparison.
35136 (rx_gen_cond_branch_template): Remove.
35137 (rx_cc_modes_compatible): Remove.
35138 (mode_from_flags): New.
35139 (flags_from_code): Rename from flags_needed_for_conditional.
35140 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
35141 (rx_select_cc_mode): Likewise.
35142 (rx_split_fp_compare): New.
35143 (rx_split_cbranch): New.
35144 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
35145 (*cbranchsi4): Use match_operator and rx_split_cbranch.
35146 (*cbranchsf4): Similarly.
35147 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
35148 match_operator and rx_split_cbranch.
35149 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
35150 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
35151 (*cmpsi): Rename from cmpsi.
35152 (*tstsi): Rename from tstsi.
35153 (*cmpsf): Rename from cmpsf; use CC_Fmode.
35154 (*conditional_branch): Rename from conditional_branch.
35155 (*reveresed_conditional_branch): Remove.
35156 (b<code>): Remove expander.
35157 * config/rx/rx-protos.h: Update.
35159 * config/rx/rx.c (rx_compare_redundant): Remove.
35160 * config/rx/rx.md (cmpsi): Don't use it.
35161 * config/rx/rx-protos.h: Update.
35163 * config/rx/rx-modes.def (CC_F): New mode.
35164 * config/rx/rx.c (rx_select_cc_mode): New.
35165 * config/rx/rx.h (SELECT_CC_MODE): Use it.
35166 * config/rx/rx-protos.h: Update.
35168 2011-01-17 Richard Henderson <rth@redhat.com>
35170 * except.c (dump_eh_tree): Fix stray ; after for statement.
35172 2011-01-17 Richard Guenther <rguenther@suse.de>
35174 PR tree-optimization/47313
35175 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
35176 handling before copying the body. Properly deal with
35177 by-reference result in SSA form.
35179 2011-01-17 Ian Lance Taylor <iant@google.com>
35182 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
35183 (struct_value_alias_set): Don't define.
35184 (sparc_option_override): Don't set sparc_sr_alias_set and
35185 struct_value_alias_set.
35186 (save_or_restore_regs): Use gen_frame_mem rather than calling
35188 (sparc_struct_value_rtx): Likewise.
35190 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
35193 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
35194 (_mm_maskstore_pd): Likewise.
35195 (_mm_maskload_ps): Likewise.
35196 (_mm_maskstore_ps): Likewise.
35197 (_mm256_maskload_pd): Change mask to __m256i.
35198 (_mm256_maskstore_pd): Likewise.
35199 (_mm256_maskload_ps): Likewise.
35200 (_mm256_maskstore_ps): Likewise.
35202 * config/i386/i386-builtin-types.def: Updated.
35203 (ix86_expand_special_args_builtin): Likewise.
35205 * config/i386/i386.c (bdesc_special_args): Update
35206 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
35207 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
35208 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
35209 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
35211 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
35212 Use <avxpermvecmode> on mask register.
35213 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
35215 2011-01-17 Olivier Hainque <hainque@adacore.com>
35216 Michael Haubenwallner <michael.haubenwallner@salomon.at>
35217 Eric Botcazou <ebotcazou@adacore.com>
35220 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
35221 if <= USHRT_MAX in 32-bit mode.
35223 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
35225 * doc/install.texi (Configuration, Specific): Wrap long
35226 lines in examples. Allow line wrapping in long options
35227 and URLs where beneficial for PDF output.
35229 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
35231 * config/mips/mips.c (mips_classify_symbol): Don't return
35232 SYMBOL_PC_RELATIVE for nonlocal labels.
35234 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
35236 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
35238 2011-01-15 Jan Hubicka <jh@suse.cz>
35240 PR tree-optimization/47276
35241 * ipa.c (function_and_variable_visibility): Do not try to mark alias
35242 declarations as needed.
35244 2011-01-15 Martin Jambor <mjambor@suse.cz>
35246 * common.opt (fdevirtualize): New flag.
35247 * doc/invoke.texi (Option Summary): Document it.
35248 * opts.c (default_options_table): Add devirtualize flag.
35249 * ipa-prop.c (detect_type_change): Return immediately if
35250 devirtualize flag is not set.
35251 (detect_type_change_ssa): Likewise.
35252 (compute_known_type_jump_func): Likewise.
35253 (ipa_analyze_virtual_call_uses): Likewise.
35255 2011-01-14 Martin Jambor <mjambor@suse.cz>
35257 PR tree-optimization/45934
35258 PR tree-optimization/46302
35259 * ipa-prop.c (type_change_info): New type.
35260 (stmt_may_be_vtbl_ptr_store): New function.
35261 (check_stmt_for_type_change): Likewise.
35262 (detect_type_change): Likewise.
35263 (detect_type_change_ssa): Likewise.
35264 (compute_complex_assign_jump_func): Check for dynamic type change.
35265 (compute_complex_ancestor_jump_func): Likewise.
35266 (compute_known_type_jump_func): Likewise.
35267 (compute_scalar_jump_functions): Likewise.
35268 (ipa_analyze_virtual_call_uses): Likewise.
35269 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
35271 2011-01-14 Joseph Myers <joseph@codesourcery.com>
35273 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
35274 * config/i386/i386.opt (msse5): New Alias.
35276 2011-01-14 Joseph Myers <joseph@codesourcery.com>
35278 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
35279 * config/sparc/linux64.h (CC1_SPEC): Likewise.
35280 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
35281 * config/sparc/sparc.h (CC1_SPEC): Likewise.
35283 2011-01-14 Joseph Myers <joseph@codesourcery.com>
35285 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
35287 * config/sparc/linux64.h (CC1_SPEC): Likewise.
35288 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
35289 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
35290 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
35292 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
35294 2011-01-14 Joseph Myers <joseph@codesourcery.com>
35296 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
35298 2011-01-14 Mike Stump <mikestump@comcast.net>
35300 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
35301 * config/fr30/fr30.md: Likweise
35302 (movsi_push): Likewise.
35303 (movsi_pop): Likewise.
35304 (enter_func): Likewise.
35305 * config/moxie/moxie.md (movsi_push): Likewise.
35306 (movsi_pop): Likewise.
35308 2011-01-14 Joseph Myers <joseph@codesourcery.com>
35310 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
35311 %{no_archive} %{exact_version}.
35312 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
35313 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
35314 %{no_archive} %{exact_version}.
35315 * config/mips/openbsd.h (LINK_SPEC): Likewise.
35316 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
35317 * config/mips/vxworks.h: Likewise.
35319 2011-01-14 Joseph Myers <joseph@codesourcery.com>
35321 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
35323 2011-01-14 Joseph Myers <joseph@codesourcery.com>
35325 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
35326 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
35328 2011-01-14 Joseph Myers <joseph@codesourcery.com>
35330 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
35333 2011-01-14 Joseph Myers <joseph@codesourcery.com>
35335 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
35337 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
35338 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
35340 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
35341 Don't handle -shlib.
35343 2011-01-14 Joseph Myers <joseph@codesourcery.com>
35345 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
35346 (CC1_SPEC): Don't handle -profile.
35348 2011-01-14 Joseph Myers <joseph@codesourcery.com>
35350 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
35351 * config/mips/mips.h (CC1_SPEC): Likewise.
35353 2011-01-14 Joseph Myers <joseph@codesourcery.com>
35355 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
35356 * config/mips/mips.h (CC1_SPEC): Likewise.
35358 2011-01-14 Joseph Myers <joseph@codesourcery.com>
35360 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
35361 * config/m32r/linux.h (LINK_SPEC): Likewise.
35362 * config/mips/linux.h (LINK_SPEC): Likewise.
35363 * config/mips/linux64.h (LINK_SPEC): Likewise.
35364 * config/sparc/linux.h (LINK_SPEC): Likewise.
35365 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
35366 LINK_SPEC): Likewise.
35367 * config/xtensa/linux.h (LINK_SPEC): Likewise.
35369 2011-01-14 Joseph Myers <joseph@codesourcery.com>
35371 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
35373 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
35375 2011-01-14 Joseph Myers <joseph@codesourcery.com>
35377 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
35378 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
35380 2011-01-14 Joseph Myers <joseph@codesourcery.com>
35382 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
35384 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
35386 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
35387 supports -Bstatic/-Bdynamic.
35388 * configure: Regenerate.
35390 2011-01-14 Jan Hubicka <jh@suse.cz>
35391 Jack Howarth <howarth@bromo.med.uc.edu>
35394 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
35395 when checking debug_info_level. Test write_symbols instead of
35396 debug_hooks->var_location when setting flag_var_tracking_uninit.
35398 2011-01-14 Richard Guenther <rguenther@suse.de>
35400 PR tree-optimization/47179
35401 * target.def (ref_may_alias_errno): New target hook.
35402 * targhooks.h (default_ref_may_alias_errno): Declare.
35403 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
35404 (default_ref_may_alias_errno): New function.
35405 * target.h (struct ao_ref_s): Declare.
35406 * tree-ssa-alias.c: Include target.h.
35407 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
35408 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
35409 (targhooks.o): Likewise.
35410 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
35411 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
35413 2011-01-14 Richard Guenther <rguenther@suse.de>
35415 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
35417 2011-01-14 Richard Guenther <rguenther@suse.de>
35419 PR tree-optimization/47280
35420 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
35421 return CFG changes.
35422 (tree_ssa_forward_propagate_single_use_vars): Deal with
35423 CFG changes from associate_plusminus.
35425 2011-01-14 Richard Guenther <rguenther@suse.de>
35427 PR middle-end/47281
35429 2011-01-11 Richard Guenther <rguenther@suse.de>
35431 PR tree-optimization/46076
35432 * tree-ssa.c (useless_type_conversion_p): Conversions from
35433 unprototyped to empty argument list function types are useless.
35435 2011-01-14 Richard Guenther <rguenther@suse.de>
35437 PR tree-optimization/47286
35438 * tree-ssa-structalias.c (new_var_info): Register variables are global.
35440 2011-01-14 Martin Jambor <mjambor@suse.cz>
35442 PR middle-end/46823
35443 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
35445 2011-01-13 Anatoly Sokolov <aesok@post.ru>
35447 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
35448 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
35449 * config/xtensa/xtensa.c (xtensa_libcall_value,
35450 xtensa_function_value_regno_p): New functions.
35451 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
35453 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
35456 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
35458 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
35459 New function prototype.
35460 * config/i386/winnt.c (i386_pe_assemble_visibility):
35461 Warn only if attribute was specified by user.
35463 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
35466 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
35468 (floatunsdidf2_fcfidu): Ditto.
35470 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
35472 * config/s390/s390.c (print_operand_address): Replace 'error' with
35473 'output_operand_lossage'.
35474 (print_operand): Likewise.
35476 2011-01-13 Jeff Law <law@redhat.com>
35478 PR rtl-optimization/39077
35479 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
35480 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
35481 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
35482 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
35483 * gcse.c (prune_insertions_deletions): New function.
35484 (compute_pre_data): Use it.
35486 2011-01-13 Dodji Seketeli <dodji@redhat.com>
35489 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
35491 (prune_unused_types_mark): Use it.
35493 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
35495 PR rtl-optimization/45352
35496 * sel-sched.c: Update copyright years.
35497 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
35498 in the advancing loop when we have issued issue_rate insns.
35500 2011-01-12 Richard Henderson <rth@redhat.com>
35502 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
35503 (TARGET_MD_ASM_CLOBBERS): New.
35505 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
35506 (TARGET_DELEGITIMIZE_ADDRESS): New.
35508 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
35509 (clzsi2, *bsch): New patterns.
35511 * config/mn10300/mn10300.md (INT): New mode iterator.
35512 (*mov<INT>_clr): New pattern, and peep2 to generate it.
35514 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
35515 flag_split_wide_types.
35517 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
35518 (mn10300_trampoline_init): Rewrite without a template, an immediate
35519 load and a direct branch.
35520 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
35522 2011-01-12 Anatoly Sokolov <aesok@post.ru>
35524 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
35525 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
35526 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
35527 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
35529 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
35532 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
35535 2011-01-12 Jan Hubicka <jh@suse.cz>
35538 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
35539 (PLUGIN_COND_CLOSE): New macro.
35540 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
35542 2011-01-12 Richard Guenther <rguenther@suse.de>
35545 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
35546 register variables in a MEM_REF.
35548 2011-01-12 Joseph Myers <joseph@codesourcery.com>
35550 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
35551 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
35552 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
35553 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
35554 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
35555 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
35556 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
35557 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
35558 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
35559 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
35560 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
35561 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
35562 * config/gnu-user.h: New. Copied from linux.h.
35563 (LINUX_TARGET_STARTFILE_SPEC): Rename to
35564 GNU_USER_TARGET_STARTFILE_SPEC.
35565 (LINUX_TARGET_ENDFILE_SPEC): Rename to
35566 GNU_USER_TARGET_ENDFILE_SPEC.
35567 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
35568 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
35569 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
35570 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
35571 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
35572 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
35573 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
35574 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
35575 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
35576 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
35577 * config/arm/linux-eabi.h (CC1_SPEC): Use
35578 GNU_USER_TARGET_CC1_SPEC.
35579 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
35580 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
35581 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
35582 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
35583 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
35584 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
35585 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
35586 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
35588 2011-01-12 Richard Guenther <rguenther@suse.de>
35591 * doc/invoke.texi (ffast-math): Document it is turned on
35594 2011-01-12 Jan Hubicka <jh@suse.cz>
35596 PR tree-optimization/47233
35597 * opts.c (common_handle_option): Disable ipa-reference with profile
35600 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
35602 * c-parser.c (c_parser_objc_at_property_declaration): Improved
35605 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
35607 * c-parser.c (c_lex_one_token): Updated and reindented some
35608 comments. No changes in code.
35610 2011-01-11 Ian Lance Taylor <iant@google.com>
35612 * godump.c (go_output_var): Don't output the variable if there is
35613 already a type with the same name.
35615 2011-01-11 Ian Lance Taylor <iant@google.com>
35617 * godump.c (go_format_type): Don't generate float80.
35619 2011-01-11 Richard Henderson <rth@redhat.com>
35621 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
35622 declaration. Rewrite for both speed and size.
35623 (mn10300_address_cost_1): Remove.
35624 (mn10300_register_move_cost): New.
35625 (mn10300_memory_move_cost): New.
35626 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
35627 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
35628 extensions, shifts, BSWAP, CLZ.
35629 (mn10300_wide_const_load_uses_clr): Remove.
35630 (TARGET_REGISTER_MOVE_COST): New.
35631 (TARGET_MEMORY_MOVE_COST): New.
35632 * config/mn10300/mn10300-protos.h: Update.
35633 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
35635 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
35636 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
35637 * config/mn10300/mn10300-protos.h: Update.
35638 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
35639 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
35640 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
35641 (*test_int_bitfield, *test_byte_bitfield): Remove.
35642 (*bit_test, *subreg_bit_test): Remove.
35643 * config/mn10300/predicates.md (const_8bit_operand): Remove.
35645 * config/mn10300/constraints.md ("c"): Rename from "A".
35646 ("A", "D"): New constraint letters.
35647 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
35648 (fmssf4, fnmasf4, fnmssf4): Likewise.
35650 * config/mn10300/mn10300.md (isa): New attribute.
35651 (enabled): New attribute.
35653 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
35654 (abssf2, negsf2): Define only for hardware fp.
35655 (sqrtsf2): Reformat.
35656 (addsf3, subsf3, mulsf3): Merge expander and insn.
35658 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
35659 (DEBUGGER_AUTO_OFFSET): Remove.
35660 (DEBUGGER_ARG_OFFSET): Remove.
35662 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
35663 Emit register stores with the same offsets as the hardware.
35664 (mn10300_store_multiple_operation): Don't check that the register
35665 save offsets are monotonic.
35666 * config/mn10300/mn10300-protos.h: Update.
35668 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
35670 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
35671 in terms of the value on the stack, not the MDR register.
35673 2011-01-11 Jan Hubicka <jh@suse.cz>
35677 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
35678 (symbol_alias_set_destroy, symbol_alias_set_contains,
35679 propagate_aliases_backward): Declare.
35680 * lto-streamer-out.c (struct sets): New sturcture.
35681 (trivally_defined_alias): New function.
35682 (output_alias_pair_p): Rewrite.
35683 (output_unreferenced_globals): Fix output of alias pairs.
35684 (produce_symtab): Likewise.
35685 * ipa.c (function_and_variable_visibility): Set weak alias destination
35687 * varasm.c (symbol_alias_set_t): Remove.
35688 (symbol_alias_set_destroy): Export.
35689 (propagate_aliases_forward, propagate_aliases_backward): New functions
35691 (compute_visible_aliases): ... this one; remove.
35692 (trivially_visible_alias): New
35693 (trivially_defined_alias): New.
35694 (remove_unreachable_alias_pairs): Rewrite.
35695 (finish_aliases_1): Reorganize code checking if alias is defined.
35696 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
35699 2011-01-11 Richard Guenther <rguenther@suse.de>
35701 PR tree-optimization/46076
35702 * tree-ssa.c (useless_type_conversion_p): Conversions from
35703 unprototyped to empty argument list function types are useless.
35705 2011-01-11 Richard Guenther <rguenther@suse.de>
35707 PR middle-end/45235
35708 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
35709 volatile MEMs as MEM_READONLY_P.
35711 2011-01-11 Richard Guenther <rguenther@suse.de>
35713 PR tree-optimization/47239
35714 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
35716 2011-01-11 Jeff Law <law@redhat.com>
35718 PR tree-optimization/47086
35719 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
35720 IVs from statements that might throw.
35722 2011-01-10 Jan Hubicka <jh@suse.cz>
35725 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
35727 2011-01-10 Jan Hubicka <jh@suse.cz>
35730 * profile.c (read_profile_edge_counts): Ignore profile inconistency
35731 when correcting profile.
35733 2011-01-10 Jan Hubicka <jh@suse.cz>
35736 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
35737 DECL_FINI_PRIORITY.
35738 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
35739 Restore DECL_FINI_PRIORITY.
35741 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
35743 * doc/gimple.texi: Fix quoting of multi-word return values in
35744 @deftypefn statements. Ensure presence of return value. Wrap
35745 overlong @deftypefn lines.
35746 (is_gimple_operand, is_gimple_min_invariant_address): Remove
35747 descriptions of removed functions.
35748 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
35749 of multi-word return value in @deftypefn statement.
35751 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
35753 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
35754 (Conditional Expressions, Logical Operators)
35755 (Statement and operand traversals): Do not indent smallexample
35756 code. Fix duplicate function argument in example.
35758 2011-01-10 Jeff Law <law@redhat.com>
35760 PR tree-optimization/47141
35761 * ipa-split.c (split_function): Handle case where we are
35762 returning a value and the return block has a virtual operand phi.
35764 2011-01-10 Jan Hubicka <jh@suse.cz>
35766 PR tree-optimization/47234
35767 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
35768 (pass_feedback_split_functions): Declare.
35769 * passes.c (init_optimization_passes): Add ipa-split as subpass of
35771 * ipa-split.c (gate_split_functions): Update comments; disable
35772 split-functions for profile_arc_flag and branch_probabilities.
35773 (gate_feedback_split_functions): New function.
35774 (execute_feedback_split_functions): New function.
35775 (pass_feedback_split_functions): New global var.
35777 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
35780 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
35781 calling gimple_call_set_cannot_inline.
35783 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
35785 * config/darwin-sections.def: Remove unused section.
35787 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
35790 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
35792 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
35795 * c-parser.c (c_parser_declaration_or_fndef): Improved
35798 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
35800 * config/i386/winnt.c (i386_pe_start_function): Make sure
35801 to switch back to function's section.
35803 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
35807 * plugin.c: Move include of dlfcn.h from here...
35808 * system.h: ... to here.
35810 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
35812 * doc/cpp.texi (C++ Named Operators): Fix markup for header
35814 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
35815 two extra empty pages in PDF output.
35817 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
35820 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
35821 for error recovery purposes behave as if it was not specified so
35822 that the default type is usd.
35824 2011-01-07 Jan Hubicka <jh@suse.cz>
35826 PR tree-optmization/46469
35827 * ipa.c (function_and_variable_visibility): Clear needed flags on
35828 nodes with external decls; handle weakrefs merging correctly.
35830 2011-01-07 Joseph Myers <joseph@codesourcery.com>
35832 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
35835 2011-01-07 Jan Hubicka <jh@suse.cz>
35837 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
35838 and no longer claim that gold is required for linker plugin.
35839 * configure: Regenerate.
35840 * gcc.c (PLUGIN_COND): New macro.
35841 (LINK_COMMAND_SPEC): Use it.
35842 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
35843 * config.in (HAVE_LTO_PLUGIN): New.
35844 * configure.ac (--with-lto-plugin): New parameter; autodetect
35847 2011-01-07 Jan Hubicka <jh@suse.cz>
35849 PR tree-optimization/46367
35850 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
35851 when we can update original.
35852 (cgraph_mark_inline_edge): Sanity check.
35853 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
35855 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
35857 * config/spu/spu.h (ASM_COMMENT_START): Define.
35859 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
35862 * gcc.c (%>S): New.
35863 (SWITCH_KEEP_FOR_GCC): Likewise.
35864 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
35865 (do_spec_1): Handle "%>".
35867 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
35869 2011-01-07 Jakub Jelinek <jakub@redhat.com>
35872 * config/i386/i386.c (ix86_delegitimize_address): If
35873 simplify_gen_subreg fails, return orig_x.
35876 * value-prof.c (gimple_stringop_fixed_value): Handle
35877 lhs of the call properly.
35879 2011-01-07 Jan Hubicka <jh@suse.cz>
35882 * lto-opt.c (lto_reissue_options): Set flag_shlib.
35884 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
35886 * target.def (function_switched_text_sections): New hook.
35887 * doc/tm.texi: Regenerated.
35888 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
35889 * final.c (default_function_switched_text_sections): New.
35890 (final_scan_insn): Call function_switched_text_sections when a
35891 mid-function section change occurs.
35892 * output.h (default_function_switched_text_sections): Declare.
35893 * config/darwin-protos.h (darwin_function_switched_text_sections):
35895 * config/darwin.c (darwin_function_switched_text_sections): New.
35896 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
35898 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
35900 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
35901 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
35902 the secondary code fragment when outputting for DWARF == 2.
35904 2011-01-07 Anatoly Sokolov <aesok@post.ru>
35906 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
35907 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
35909 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
35910 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
35912 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
35915 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
35916 when it is not empty.
35918 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
35921 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
35922 (case ${target}): Add btver1.
35923 * config/i386/driver-i386.c (host_detect_local_cpu): Let
35924 -march=native recognize btver1 processors.
35925 * config/i386/i386-c.c (ix86_target_macros_internal): Add
35926 btver1 def_and_undef
35927 * config/i386/i386.c (struct processor_costs btver1_cost): New
35929 (m_BTVER1): New definition.
35930 (m_AMD_MULTIPLE): Includes m_BTVER1.
35931 (initial_ix86_tune_features): Add btver1 tune.
35932 (processor_target_table): Add btver1 entry.
35933 (static const char *const cpu_names): Add btver1 entry.
35934 (software_prefetching_beneficial_p): Add btver1.
35935 (ix86_option_override_internal): Add btver1 instruction sets.
35936 (ix86_issue_rate): Add btver1.
35937 (ix86_adjust_cost): Add btver1.
35938 * config/i386/i386.h (TARGET_BTVER1): New definition.
35939 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
35940 (enum processor_type): Add PROCESSOR_BTVER1.
35941 * config/i386/i386.md (define_attr "cpu"): Add btver1.
35943 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
35946 * config/i386/i386.c (legitimize_tls_address)
35947 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
35948 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
35949 (tls_initial_exec_64_sun): New pattern.
35951 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
35953 * doc/invoke.texi (Overall Options): Improve wording and markup
35954 of the description of -wrapper.
35956 2011-01-06 Joseph Myers <joseph@codesourcery.com>
35958 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
35959 rdynamic, threads): New Driver options.
35961 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
35964 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
35965 if coming from .tdata.
35966 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
35968 2011-01-06 Jan Hubicka <jh@suse.cz>
35971 * collect2.c (main): Do not enable LTOmode when plugin is active.
35973 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
35976 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
35977 --version output if supported.
35978 * configure: Regenerate.
35980 2011-01-06 Joseph Myers <joseph@codesourcery.com>
35982 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
35985 2011-01-06 Jakub Jelinek <jakub@redhat.com>
35988 * c-convert.c (convert): When converting a complex expression
35989 other than COMPLEX_EXPR to a different complex type, ensure
35990 c_save_expr is called instead of save_expr, unless in_late_binary_op.
35991 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
35992 when converting COMPLEX_TYPE.
35994 2011-01-06 Ira Rosen <irar@il.ibm.com>
35996 PR tree-optimization/47139
35997 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
35998 only the last reduction value is used outside the loop. Update
36001 2011-01-05 Joseph Myers <joseph@codesourcery.com>
36003 * config/rtems.opt: New.
36004 * config.gcc (*-*-rtems*): Use rtems.opt.
36006 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
36008 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
36009 processors do not support 3DNow instructions.
36011 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
36013 * config/spu/spu.c (spu_option_override): Set parameter
36014 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
36016 2011-01-05 Jan Hubicka <jh@suse.cz>
36018 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
36019 at the command line.
36021 2011-01-05 Martin Jambor <mjambor@suse.cz>
36024 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
36025 deltas on streamed outgoing edges.
36026 (output_node_opt_summary): Output info for outgoing edges only when
36027 the node is in new parameter set.
36028 (output_cgraph_opt_summary): New parameter set, passed to the two
36029 aforementioned functions. Update its forward declaration and its
36032 2011-01-05 Tom Tromey <tromey@redhat.com>
36034 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
36035 operator to c_finish_omp_atomic.
36036 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
36037 (build_unary_op): Update.
36038 (build_modify_expr): Update.
36039 (build_asm_expr): Update.
36041 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
36043 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
36044 newly inserted insns.
36045 (pad_bb): Likewise.
36046 (spu_emit_branch_hint): Likewise.
36047 (insert_hbrp_for_ilb_runout): Likewise.
36048 (spu_machine_dependent_reorg): Call df_finish_pass after
36049 schedule_insns returns.
36051 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
36053 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
36055 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
36057 PR tree-optimization/47005
36058 * tree-sra.c (struct access): Add 'non_addressable' bit.
36059 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
36060 (decide_one_param_reduction): Return 0 if the parameter is passed by
36061 reference and one of the accesses in the group is non_addressable.
36063 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
36065 PR tree-optimization/47056
36066 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
36067 (mark_load): Likewise. Handle FUNCTION_DECL specially.
36068 (mark_store): Likewise. Pass STMT to ipa_record_reference.
36070 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
36072 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
36073 initializer. Skip view conversions from aggregate types.
36075 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
36078 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
36080 2011-01-04 Philipp Thomas <pth@suse.de>
36082 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
36085 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
36087 * function.c (thread_prologue_and_epilogue_insns): Do not crash
36088 on empty epilogue sequences.
36090 2011-01-04 Joseph Myers <joseph@codesourcery.com>
36092 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
36093 non-static): New Driver options.
36095 2011-01-04 Jie Zhang <jie@codesourcery.com>
36098 * gcc.c (default_compilers[]): Set combinable field to 0
36099 for all assembly languages.
36101 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
36103 * config/mips/loongson3a.md: New file.
36104 * config/mips/mips.md: Include loongson3a.md.
36105 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
36108 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
36110 PR middle-end/47017
36111 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
36112 instead of convert_memory_address_addr_space on the base expression.
36114 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
36116 * config/spu/spu.c (spu_option_override): Update error text
36117 for bad -march= / -mtune= values.
36119 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
36121 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
36122 if branch-hint optimization will be performed.
36124 2011-01-03 Jakub Jelinek <jakub@redhat.com>
36126 PR tree-optimization/47148
36127 * ipa-split.c (split_function): Convert arguments to
36128 DECL_ARG_TYPE if possible.
36130 PR tree-optimization/47155
36131 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
36132 when computing uns.
36134 PR rtl-optimization/47157
36135 * combine.c (try_combine): If undobuf.other_insn becomes
36136 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
36137 and set *new_direct_jump_p too.
36139 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
36141 PR tree-optimization/47021
36142 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
36144 2011-01-03 Jakub Jelinek <jakub@redhat.com>
36146 * gcc.c (process_command): Update copyright notice dates.
36147 * gcov.c (print_version): Likewise.
36148 * gcov-dump.c (print_version): Likewise.
36149 * mips-tfile.c (main): Likewise.
36150 * mips-tdump.c (main): Likewise.
36152 2011-01-03 Martin Jambor <mjambor@suse.cz>
36154 PR tree-optimization/46801
36155 * tree-sra.c (type_internals_preclude_sra_p): Check whether
36156 aggregate fields start at byte boundary instead of the bit-field flag.
36158 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
36161 * gcc.c (main): Revert revision 168407.
36163 2011-01-03 Martin Jambor <mjambor@suse.cz>
36165 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
36167 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
36169 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
36170 vector optab to expand vector/scalar shift, update gimple to vector.
36172 2011-01-03 Martin Jambor <mjambor@suse.cz>
36174 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
36177 2011-01-03 Martin Jambor <mjambor@suse.cz>
36179 PR tree-optimization/46984
36180 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
36182 (cgraph_create_indirect_edge): Fixed line length.
36183 (cgraph_indirect_call_info): Declare.
36184 (cgraph_make_edge_direct) Update declaration.
36185 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
36186 (cgraph_create_indirect_edge): Use it.
36187 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
36189 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
36190 the new thunk_delta representation.
36191 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
36193 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
36194 (ipa_read_indirect_edge_info): Likewise.
36195 * lto-cgraph.c (output_edge_opt_summary): New function.
36196 (output_node_opt_summary): Call it on all outgoing edges.
36197 (input_edge_opt_summary): New function.
36198 (input_node_opt_summary): Call it on all outgoing edges.
36200 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
36203 * gcc.c (main): Don't check have_o when settting combine_inputs.
36205 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
36207 * regrename.c: Add general comment describing the pass.
36208 (struct du_head): Remove 'length' field.
36209 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
36210 (regrename_optimize): Do not sort chains. Rework comments, add others.
36211 Force renaming to the preferred class (if any) in the first pass and do
36212 not consider registers that belong to it in the second pass.
36213 (create_new_chain): Do not set 'length' field.
36214 (scan_rtx_reg): Likewise.
36216 2011-01-02 Jakub Jelinek <jakub@redhat.com>
36218 PR tree-optimization/47140
36219 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
36220 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
36221 to bit_value_binop.
36223 PR rtl-optimization/47028
36224 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
36225 parm_birth_insn instead of at the beginning of first bb.
36227 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
36229 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
36230 Remove the word "see" before "@pxref".
36231 * doc/rtl.texi: Remove the word "see" before "@pxref".
36233 2011-01-01 Jan Hubicka <jh@suse.cz>
36235 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
36238 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
36241 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
36244 Copyright (C) 2011 Free Software Foundation, Inc.
36246 Copying and distribution of this file, with or without modification,
36247 are permitted in any medium without royalty provided the copyright
36248 notice and this notice are preserved.