OSDN Git Service

2011-11-09 Richard Guenther <rguenther@suse.de>
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2011-11-09  Richard Guenther  <rguenther@suse.de>
2
3         Revert
4         2011-11-09  Richard Guenther  <rguenther@suse.de>
5
6         * tree-cfg.c (verify_gimple_call): Verify that
7         gimple_call_cannot_inline_p is returning a conservative
8         correct result according to gimple_check_call_matching_types.
9
10 2011-11-09  Richard Guenther  <rguenther@suse.de>
11
12         PR tree-optimization/51039
13         * tree-cfg.c (verify_gimple_call): Verify that
14         gimple_call_cannot_inline_p is returning a conservative
15         correct result according to gimple_check_call_matching_types.
16         * ipa-inline-analysis.c (estimate_function_body_sizes): Remove
17         code dealing with un-inlinablility.
18         * gimple-streamer-in.c (input_gimple_stmt): Update the
19         non-inlinable flag.
20
21 2011-11-09  Richard Guenther  <rguenther@suse.de>
22
23         PR tree-optimization/51039
24         * tree-inline.c (setup_one_parameter): Always perform a
25         valid gimple type change.
26         (declare_return_variable): Likewise.
27
28 2011-11-09  Jakub Jelinek  <jakub@redhat.com>
29
30         * config/rs6000/vector.md (vcondv4sfv4si, vcondv4siv4sf,
31         vconduv4sfv4si): New patterns.
32         * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Handle
33         different dest_mode from comparison mode.
34
35 2011-11-09  Richard Guenther  <rguenther@suse.de>
36
37         * gimple-fold.c (canonicalize_constructor_val): Mark
38         address-taken variables addressable.
39
40 2011-11-09  Ira Rosen  <ira.rosen@linaro.org>
41
42         PR tree-optimization/51015
43         * tree-vect-loop.c (vect_determine_vectorization_factor): Expect
44         vectype to be set for pattern def stmts.
45
46 2011-11-09  Alan Modra  <amodra@gmail.com>
47
48         * function.c (bb_active_p): Delete.
49         (dup_block_and_redirect, active_insn_between): New functions.
50         (convert_jumps_to_returns, emit_return_for_exit): New functions,
51         split out from..
52         (thread_prologue_and_epilogue_insns): ..here.  Delete
53         shadowing variables.  Don't do prologue register clobber tests
54         when shrink wrapping already failed.  Delete all last_bb_active
55         code.  Instead compute tail block candidates for duplicating
56         exit path.  Remove these from antic set.  Duplicate tails when
57         reached from both blocks needing a prologue/epilogue and
58         blocks not needing such.
59         * ifcvt.c (dead_or_predicable): Test both flag_shrink_wrap and
60         HAVE_simple_return.
61         * bb-reorder.c (get_uncond_jump_length): Make global.
62         * bb-reorder.h (get_uncond_jump_length): Declare.
63         * cfgrtl.c (rtl_create_basic_block): Comment typo fix.
64         (rtl_split_edge): Likewise.  Warning fix.
65         (rtl_duplicate_bb): New function.
66         (rtl_cfg_hooks): Enable can_duplicate_block_p and duplicate_block.
67         * Makefile.in (function.o): Update dependencies.
68
69 2011-11-08  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
70             Georg-Johann Lay  <avr@gjlay.de>
71
72         * doc/tm.texi.in (MODE_CODE_BASE_REG_CLASS): Add address space
73         argument.
74         (REGNO_MODE_CODE_OK_FOR_BASE_P): Likewise.
75         * doc/tm.texi: Regenerate.
76
77         * config/cris/cris.h (MODE_CODE_BASE_REG_CLASS): Add address
78         space argument.
79         (REGNO_MODE_CODE_OK_FOR_BASE_P): Likewise.
80         * config/bfin/bfin.h (MODE_CODE_BASE_REG_CLASS): Likewise.
81         (REGNO_MODE_CODE_OK_FOR_BASE_P): Likewise.
82         * config/avr/avr.h (MODE_CODE_BASE_REG_CLASS): Add address space
83         argument.
84         (REGNO_MODE_CODE_OK_FOR_BASE_P): Ditto.
85         * config/avr/avr-protos.h (avr_mode_code_base_reg_class): Ditto.
86         (avr_regno_mode_code_ok_for_base_p): Ditto.
87         * config/avr/avr.c (avr_mode_code_base_reg_class): Ditto.
88         (avr_regno_mode_code_ok_for_base_p): Ditto.
89         (avr_reg_ok_for_addr_p): Pass AS down to
90         avr_regno_mode_code_ok_for_base_p.
91
92         * addresses.h (base_reg_class): Add address space argument.
93         Pass to MODE_CODE_BASE_REG_CLASS.
94         (ok_for_base_p_1): Add address space argument.  Pass to
95         REGNO_MODE_CODE_OK_FOR_BASE_P.
96         (regno_ok_for_base_p): Add address space argument.  Pass to
97         ok_for_base_p_1.
98
99         * regrename.c (scan_rtx_address): Add address space argument.
100         Pass address space to regno_ok_for_base_p and base_reg_class.
101         Update recursive calls.
102         (scan_rtx): Pass address space to scan_rtx_address.
103         (build_def_use): Likewise.
104         * regcprop.c (replace_oldest_value_addr): Add address space
105         argument.  Pass to regno_ok_for_base_p and base_reg_class.
106         Update recursive calls.
107         (replace_oldest_value_mem): Pass address space to
108         replace_oldest_value_addr.
109         (copyprop_hardreg_forward_1): Likewise.
110
111         * reload.c (find_reloads_address_1): Add address space argument.
112         Pass address space to base_reg_class and regno_ok_for_base_p.
113         Update recursive calls.
114         (find_reloads_address): Pass address space to base_reg_class,
115         regno_ok_for_base_p, and find_reloads_address_1.
116         (find_reloads): Pass address space to base_reg_class.
117         (find_reloads_subreg_address): Likewise.
118
119         * ira-costs.c (record_reg_classes): Update calls to base_reg_class.
120         (ok_for_base_p_nonstrict): Add address space argument.  Pass to
121         ok_for_base_p_1.
122         (record_address_regs): Add address space argument.  Pass to
123         base_reg_class and ok_for_base_p_nonstrict.  Update recursive calls.
124         (record_operand_costs): Pass address space to record_address_regs.
125         (scan_one_insn): Likewise.
126
127         * caller-save.c (init_caller_save): Update call to base_reg_class.
128         * ira-conflicts.c (ira_build_conflicts): Likewise.
129         * reload1.c (maybe_fix_stack_asms): Likewise.
130
131 2011-11-08  Michael Matz  <matz@suse.de>
132
133         * gengtype.c (write_field_root): Avoid out-of-scope access of newv.
134
135         * tree-stdarg.c (execute_optimize_stdarg): Accept clobbers.
136
137         * tree.h (TREE_CLOBBER_P): New macro.
138         * gimple.h (gimple_clobber_p): New inline function.
139         * gimplify.c (gimplify_bind_expr): Add clobbers for all variables
140         that go out of scope and live in memory.
141         * tree-ssa-operands.c (get_expr_operands): Transfer volatility also
142         for constructors.
143         * cfgexpand.c (decl_to_stack_part): New static variable.
144         (add_stack_var): Allocate it, and remember mapping.
145         (fini_vars_expansion): Deallocate it.
146         (stack_var_conflict_p): Add early outs.
147         (visit_op, visit_conflict, add_scope_conflicts_1,
148         add_scope_conflicts): New static functions.
149         (expand_used_vars_for_block): Don't call add_stack_var_conflict, tidy.
150         (expand_used_vars): Add scope conflicts.
151         (expand_gimple_stmt_1): Expand clobbers to nothing.
152         (expand_debug_expr): Ditto.
153
154         * tree-pretty-print.c (dump_generic_node): Dump clobbers nicely.
155         * tree-ssa-live.c (remove_unused_locals): Remove clobbers that
156         refer to otherwise unused locals.
157         * tree-sra.c (build_accesses_from_assign): Ignore clobbers.
158         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Clobbers of
159         SSA names aren't necessary.
160         (propagate_necessity): Accept and ignore constructors on the rhs,
161         tidy.
162         * gimple.c (walk_gimple_op): Accept constructors like mem_rhs.
163         * tree-ssa-structalias.c (find_func_aliases): Clobbers don't store
164         any known value.
165         * tree-ssa-sccvn.c (vn_reference_lookup_3): Ditto, in particular they
166         don't zero-initialize something.
167         * tree-ssa-phiopt.c (cond_if_else_store_replacement_1): Ignore
168         clobber RHS, we don't want PHI nodes with those.
169
170 2011-11-08  Jakub Jelinek  <jakub@redhat.com>
171
172         * config/i386/i386.c (ix86_preferred_simd_mode): Even for TARGET_AVX
173         if not TARGET_PREFER_AVX128 return 32-byte integer vectors.
174
175 2011-11-08  Richard Guenther  <rguenther@suse.de>
176
177         PR tree-optimization/51012
178         * ipa-prop.c (update_indirect_edges_after_inlining): Fixup
179         non-inlinable state.
180         * cgraph.c (cgraph_make_edge_direct): Likewise.
181
182 2011-11-08  Eric Botcazou  <ebotcazou@adacore.com>
183
184         PR rtl-optimization/47698
185         * ifcvt.c (noce_operand_ok): Move around comment.
186
187 2011-11-08  Richard Guenther  <rguenther@suse.de>
188
189         PR lto/50999
190         * lto-opts.c (append_to_collect_gcc_options): Split out from...
191         (lto_write_options): ... here.  Prepend frontend specific flags.
192
193 2011-11-08  Jakub Jelinek  <jakub@redhat.com>
194
195         * config/i386/sse.md (*avx_vperm2f128<mode>3_nozero): Emit mask
196         0x12 and 0x20 as vinsert[fi]128 instead of vperm2[fi]128.
197
198         * tree-vect-stmts.c (vectorizable_call): Add SLP_NODE argument.
199         Handle vectorization of SLP calls.
200         (vect_analyze_stmt): Adjust caller, add call to it for SLP too.
201         (vect_transform_stmt): Adjust vectorizable_call caller, remove
202         assertion.
203         * tree-vect-slp.c (vect_get_and_check_slp_defs): For calls start
204         with op_idx 3.
205         (vect_build_slp_tree): Allow CALL_EXPR.
206
207 2011-11-08  Richard Guenther  <rguenther@suse.de>
208
209         * gimple-fold.c (canonicalize_constructor_val): Make sure
210         we have referenced vars setup before adding to them.
211
212 2011-11-07  Richard Henderson  <rth@redhat.com>
213             Aldy Hernandez  <aldyh@redhat.com>
214             Andrew MacLeod  <amacleod@redhat.com>
215             Torvald Riegel  <triegel@redhat.com>
216
217         Merged from transactional-memory.
218
219         * gtm-builtins.def: New file.
220         * trans-mem.c: New file.
221         * trans-mem.h: New file.
222
223         * opts.c (finish_options): Error out when using -flto and
224         -fgnu-tm.
225
226         * config/i386/i386.c: Define TARGET_VECTORIZE* transactional variants.
227         (ix86_handle_tm_regparm_attribute, struct bdesc_tm,
228         ix86_builtin_tm_load, ix86_builtin_tm_store,
229         ix86_init_tm_builtins): New.
230         (ix86_init_builtins): Initialize TM builtins.
231         (struct ix86_attribute_table): Add "*tm regparm".
232         * config/i386/i386-builtin-types.def (PV2SI): Define.
233         (PCV2SI): Define.
234         Define V2SI_FTYPE_PCV2SI.
235         Define V4SF_FTYPE_PCV4SF.
236         Define V8SF_FTYPE_PCV8SF.
237         Define VOID_PV2SI_V2SI.
238
239         * doc/invoke.texi (C Dialect Options): Document -fgnu-tm and
240         tm-max-aggregate-size.
241         * doc/tm.texi.in: Add TARGET_VECTORIZE_BUILTIN_TM_LOAD and
242         TARGET_VECTORIZE_BUILTIN_TM_STORE hooks.
243         * doc/tm.texi: Regenerate.
244
245         * attribs.c (apply_tm_attr): New.
246         (init_attributes): Allow '*' prefix for overrides.
247         (register_attribute): Likewise.
248         * builtin-attrs.def (ATTR_TM_TMPURE, ATTR_TM_REGPARM): New.
249         (ATTR_TM_NOTHROW_LIST, ATTR_TM_TMPURE_NOTHROW_LIST,
250         ATTR_TM_PURE_TMPURE_NOTHROW_LIST, ATTR_TM_NORETURN_NOTHROW_LIST,
251         ATTR_TM_CONST_NOTHROW_LIST, ATTR_TMPURE_MALLOC_NOTHROW_LIST,
252         ATTR_TMPURE_NOTHROW_LIST): New.
253         * builtin-types.def (BT_FN_I[1248]_VPTR, BT_FN_FLOAT_VPTR,
254         BT_FN_DOUBLE_VPTR, BT_FN_LDOUBLE_VPTR, BT_FN_VOID_VPTR_I[1248],
255         BT_FN_VOID_VPTR_FLOAT, BT_FN_VOID_VPTR_DOUBLE,
256         BT_FN_VOID_VPTR_LDOUBLE, BT_FN_VOID_VPTR_SIZE): New.
257         * builtins.def: Include gtm-builtins.def. Add comments regarding
258         transactional memory synchronization.
259         (DEF_TM_BUILTIN): New.
260         * c-parser.c (struct c_parser): Add in_transaction.
261         (c_parser_transaction, c_parser_transaction_expression,
262         c_parser_transaction_cancel, c_parser_transaction_attributes): New.
263         (c_parser_attribute_any_word): Split out from c_parser_attributes.
264         (c_parser_statement_after_labels): Handle RID_TRANSACTION*.
265         (c_parser_unary_expression): Same.
266         * c-tree.h (c_finish_transaction): Declare.
267         * c-typeck.c (c_finish_transaction): New.
268         (build_function_call_vec): Call tm_malloc_replacement.
269         * calls.c (is_tm_builtin): New.
270         (flags_from_decl_or_type): Add ECF_TM_BUILTIN and ECF_TM_PURE.
271         * cfgbuild.c (make_edges): Add edges for REG_TM notes.
272         * cfgexpand.c (expand_call_stmt): Call
273         mark_transaction_restart_calls.
274         (gimple_expand_cfg): Free the tm_restart map.
275         (mark_transaction_restart_calls): New.
276         * cfgrtl.c (purge_dead_edges): Look for REG_TM notes.
277         * cgraph.c (dump_cgraph_node): Handle tm_clone.
278         * cgraph.h (struct cgraph_node): Add tm_clone field.
279         (decl_is_tm_clone): New.
280         (struct cgraph_local_info): Add tm_may_enter_irr.
281         (cgraph_copy_node_for_versioning): Declare.
282         * cgraphunit.c (cgraph_copy_node_for_versioning): Export;
283         copy analyzed from old version.
284         * combine.c (distribute_notes): Handle REG_TM notes.
285         * common.opt: Add -fgnu-tm.
286         * crtstuff.c (__TMC_LIST__, __TMC_END__): New.
287         (__do_global_dtors_aux): Deregister clone table.
288         (frame_dummy): Register clone table.
289         * emit-rtl.c (try_split): Handle REG_TM. Early return if no function
290         body.
291         * gimple-low.c (lower_stmt): Handle GIMPLE_EH_ELSE and
292         GIMPLE_TRANSACTION.
293         (gimple_stmt_may_fallthru): Handle GIMPLE_EH_ELSE.
294         * gimple-pretty-print.c: Include trans-mem.h.
295         (dump_gimple_fmt): Add %x.
296         (dump_gimple_call): Dump arguments for calls to _ITM_beginTransaction.
297         (dump_gimple_eh_else, dump_gimple_transaction): New.
298         (dump_gimple_stmt): Handle GIMPLE_EH_ELSE and GIMPLE_TRANSACTION.
299         * gimple.c (gimple_build_eh_else, gimple_build_transaction): New.
300         (walk_gimple_seq): Honor removed_stmt. Document usage of removed_stmt
301         field.
302         (walk_gimple_op): Handle GIMPLE_TRANSACTION.
303         (walk_gimple_stmt): Initialize and honor removed_stmt.
304         Handle GIMPLE_EH_ELSE and GIMPLE_TRANSACTION.
305         (gimple_copy): Handle GIMPLE_EH_ELSE and GIMPLE_TRANSACTION.
306         * gimple.def (GIMPLE_TRANSACTION, GIMPLE_EH_ELSE): New.
307         * gimple.h (struct gimple_statement_eh_else,
308         gimple_statement_transaction, GTMA_*): New.
309         (gimple_statement_d): Add gimple_statement_eh_else and
310         gimple_transaction.
311         (gimple_build_eh_else, gimple_build_transaction,
312         gimple_fold_call, diagnose_tm_safe_errors): Declare.
313         (get_call_expr_in): Remove prototype.
314         (gimple_has_substatements): Add GIMPLE_EH_ELSE and GIMPLE_TRANSACTION.
315         (gimple_eh_else_n_body, gimple_eh_else_e_body,
316         gimple_eh_else_set_n_body, gimple_eh_else_set_e_body,
317         gimple_transaction_body, gimple_transaction_label,
318         gimple_transaction_label_ptr, gimple_transaction_subcode,
319         gimple_transaction_set_body, gimple_transaction_set_label,
320         gimple_transaction_set_subcode): New.
321         (struct walk_stmt_info): Use BOOL_BITFIELD; add removed_stmt.
322         * gimplify.c (create_tmp_var_name): Use clean_symbol_name.
323         (voidify_wrapper_expr): Handle TRANSACTION_EXPR.
324         (gimplify_transaction): New.
325         (gimplify_expr): Handle TRANSACTION_EXPR.
326         * gsstruct.def (GSS_EH_ELSE, GSS_TRANSACTION): New.
327         * ipa-inline.c (can_inline_edge_p): Do not inline TM safe calling
328         TM pure functions.
329         * Makefile.in: Add trans-mem.o and dependencies.
330         (BUILTINS_DEF): Add gtm-builtins.def.
331         (gimple-pretty-print.o): Depend on TRANS_MEM_H.
332         (GTFILES): Add trans-mem.c.
333         * omp-low.c (WALK_SUBSTMTS): Add GIMPLE_TRANSACTION.
334         * output.h (record_tm_clone_pair, finish_tm_clone_pairs,
335         get_tm_clone_pair): Declare.
336         * params.def (PARAM_TM_MAX_AGGREGATE_SIZE): New.
337         * passes.c (init_optimization_passes): Place transactional memory
338         passes.
339         * print-tree.c (print_node): Dump tm-clone.
340         * recog.c (peep2_attempt): Handle REG_TM.
341         * reg-notes.def (TM): New.
342         * rtlanal.c (alloc_reg_note): Handle REG_TM.
343         * target.def (builtin_tm_load, builtin_tm_store): New.
344         * targhooks.c (default_builtin_tm_load_store): New.
345         * targhooks.h (default_builtin_tm_load_store): Declare.
346         * timevar.def (TV_TRANS_MEM): New.
347         * toplev.c (compile_file): Call finish_tm_clone_pairs.
348         * tree-cfg.c (make_edges): Handle GIMPLE_TRANSACTION.
349         (cleanup_dead_labels): Handle GIMPLE_TRANSACTION. Avoid unnecessary
350         writes into the statements to update labels.
351         (is_ctrl_altering_stmt): Add TM ending statements. Handle
352         GIMPLE_TRANSACTION.
353         (verify_gimple_transaction): New.
354         (verify_gimple_stmt): Handle GIMPLE_TRANSACTION.
355         (verify_gimple_in_seq_2): Handle GIMPLE_EH_ELSE and GIMPLE_TRANSACTION.
356         (gimple_redirect_edge_and_branch): Handle TM_TRANSACTION.
357         (dump_function_to_file): Display [tm-clone] if applicable.
358         * tree-eh.c (struct_ptr_eq): Make inline and move to tree.h.
359         (struct_ptr_hash): Same.
360         (collect_finally_tree): Handle GIMPLE_EH_ELSE.
361         (replace_goto_queue_1): Likewise.
362         (get_eh_else): New.
363         (honor_protect_cleanup_actions): Handle GIMPLE_EH_ELSE.
364         (lower_try_finally_nofallthru): Likewise.
365         (lower_try_finally_onedest): Likewise.
366         (lower_try_finally_copy): Likewise.
367         (lower_try_finally_switch): Likewise.
368         (lower_try_finally): Likewise.
369         (decide_copy_try_finally): Likewise.
370         (lower_eh_constructs_2): Likewise.
371         (refactor_eh_r): Likewise.
372         * tree-flow.h (struct gimple_df): Add tm_restart field.
373         Define tm_restart_node.
374         * tree-inline.c (remap_gimple_stmt): Handle GIMPLE_TRANSACTION.
375         (estimate_num_insns): Likewise.
376         (init_inline_once): Init tm_cost.
377         * tree-inline.h (struct eni_weights_d): Add tm_cost.
378         * tree-pass.h (pass_diagnose_tm_blocks, pass_lower_tm, pass_tm_init,
379         pass_tm_mark, pass_tm_memopt, pass_tm_edges, pass_ipa_tm): Declare.
380         * tree-pretty-print.c (dump_generic_node): Handle TRANSACTION_EXPR.
381         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
382         BUILT_IN_TM_MEMSET, BUILT_IN_TM_MEMCPY, BUILT_IN_TM_MEMMOVE.
383         Add support for TM vector loads.  Add support for TM logging builtins.
384         (call_may_clobber_ref_p_1): Add support for vector stores.
385         * tree-ssa-structalias.c (find_func_aliases): Add support for TM
386         vector stores and loads. Handle BUILT_IN_TM_MEMSET,
387         BUILT_IN_TM_MEMCPY, BUILT_IN_TM_MEMMOVE.
388         * tree.c (strip_invariant_refs): Moved from gimple.c to here.
389         (local_define_builtin): Handle ECF_TM_PURE.
390         (build_common_builtin_nodes): Set __builtin_eh_pointer to ECF_TM_PURE.
391         * tree.def (TRANSACTION_EXPR): New.
392         * tree.h (strip_invariant_refs): Moved from gimple.h to here.
393         (TRANSACTION_EXPR_BODY, TRANSACTION_EXPR_CHECK,
394         TRANSACTION_EXPR_OUTER, TRANSACTION_EXPR_RELAXED,
395         BUILTIN_TM_LOAD_STORE_P, BUILTIN_TM_LOAD_P, BUILTIN_TM_STORE_P,
396         CASE_BUILT_IN_TM_LOAD, CASE_BUILT_IN_TM_STORE): New.
397         (ECF_TM_PURE, ECF_TM_BUILTIN): New.
398         (struct tree_function_decl): Add tm_clone_flag.
399         (struct_ptr_eq, struct_ptr_hash): New.
400         (apply_tm_attr): Declare.
401         (is_tm_safe_or_pure): New.
402         (build_tm_abort_call, is_tm_safe, is_tm_pure,
403         is_tm_may_cancel_outer, is_tm_ending_fndecl, record_tm_replacement,
404         tm_malloc_replacement): Declare.
405         * varasm.c (tm_clone_hash): New.
406         (record_tm_clone_pair, finish_tm_clone_pairs, get_tm_clone_pair,
407         dump_tm_clone_to_vec, dump_tm_clone_pairs, tm_alias_pair_cmp): New.
408         (struct tm_alias_pair): New.  Declare VEC types for object.
409
410 2011-11-07  Richard Henderson  <rth@redhat.com>
411
412         * optabs.h (OTI_sync_compare_and_swap, OTI_sync_lock_test_and_set,
413         OTI_sync_old_add, OTI_sync_old_sub, OTI_sync_old_ior,
414         OTI_sync_old_and, OTI_sync_old_xor, OTI_sync_old_nand,
415         OTI_sync_new_add, OTI_sync_new_sub, OTI_sync_new_ior,
416         OTI_sync_new_and, OTI_sync_new_xor, OTI_sync_new_nand): Move and
417         rename from the direct_optab_index enum.
418         (sync_compare_and_swap_optab, sync_lock_test_and_set_optab,
419         sync_old_add_optab, sync_old_sub_optab, sync_old_ior_optab,
420         sync_old_and_optab, sync_old_xor_optab, sync_old_nand_optab,
421         sync_new_add_optab, sync_new_sub_optab, sync_new_ior_optab,
422         sync_new_and_optab, sync_new_xor_optab, sync_new_nand_optab): Read
423         from the optab_table, not the direct_optab_table.
424         (init_sync_libfuncs): Declare.
425         (can_compare_and_swap_p): Update parameters.
426         * optabs.c (init_sync_libfuncs_1, init_sync_libfuncs): New.
427         (can_compare_and_swap_p): Add allow_libcall parameter; if true,
428         test for the legacy compare-and-swap libcall.
429         (expand_atomic_exchange): Use the legacy test-and-set libcall.
430         (expand_atomic_compare_and_swap): Use the legacy CAS libcall.
431         (struct atomic_op_functions): Update for optab type changes.
432         (maybe_emit_op): Likewise.
433         (expand_atomic_fetch_op): Use the legacy fetch-op libcalls.
434         * builtins.c (fold_builtin_atomic_always_lock_free): Update call
435         to can_compare_and_swap_p.
436         * omp-low.c (expand_omp_atomic_fetch_op): Likewise.
437         (expand_omp_atomic_pipeline): Likewise.
438         * genopinit.c (optabs): Make sync_old_*_optab, sync_new_*_optab,
439         sync_compare_and_swap_optab, sync_lock_test_and_set_optab regular
440         optabs.
441         * doc/md.texi (sync_compare_and_swap): Update docs for libcalls.
442
443 2011-11-07  Jakub Jelinek  <jakub@redhat.com>
444
445         * config/i386/i386-bultin-types.def (V8SI_FTYPE_V4DF_V4DF): Add.
446         * config/i386/i386.c (enum ix86_builtins): Add
447         IX86_BUILTIN_VEC_PACK_SFIX256.
448         (bdesc_args): Add __builtin_ia32_vec_pack_sfix256.
449         (ix86_expand_args_builtin): Handle V8SI_FTYPE_V4DF_V4DF.
450         (ix86_builtin_vectorized_function): Also vectorize lrint using
451         256-bit vectors for -mavx.
452
453 2011-11-07  Anatoly Sokolov  <aesok@post.ru>
454
455         * config/cris/constraints.md: New file.
456         * config/cris/cris.h (REG_CLASS_FROM_LETTER, CONSTRAINT_LEN,
457         CRIS_CONST_OK_FOR_LETTER_P, CONST_OK_FOR_CONSTRAINT_P,
458         CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_MEMORY_CONSTRAINT,
459         EXTRA_CONSTRAINT, EXTRA_CONSTRAINT_Q, EXTRA_CONSTRAINT_R,
460         EXTRA_CONSTRAINT_T, EXTRA_CONSTRAINT_S, EXTRA_CONSTRAINT_U): Remove.
461         * config/cris/cris.c: Incule "tm-constrs.h".
462         (cris_print_operand): Use satisfies_constraint_O.
463         (cris_normal_notice_update_cc, cris_rtx_costs): Use
464         satisfies_constraint_I.
465         (cris_address_cost): Use satisfies_constraint_L.
466         * config/cris/cris.md: Include "constraints.md".
467         (*mov_side<mode>, *mov_sidesisf, *mov_side<mode>_mem,
468         *mov_sidesisf_mem, *clear_side<mode>, *ext_sideqihi,
469         *ext_side<mode>si, *op_side<mode>, *op_swap_side<mode>,
470         *extopqihi_side, *extop<mode>si_side, *extopqihi_swap_side,
471         *extop<mode>si_swap_side): Use satisfies_constraint_N and
472         satisfies_constraint_J.
473         (moversideqi movemsideqi mover2side peephole2): Use
474         satisfies_constraint_N and satisfies_constraint_J.
475         (andu peephole2): Use satisfies_constraint_I and
476         satisfies_constraint_O.
477
478 2011-11-07  Uros Bizjak  <ubizjak@gmail.com>
479
480         * config/i386/i386.c (ix86_builtin_vectorized_function): Handle
481         BUILT_IN_IRINT, BUILT_IN_IRINTF, BUILT_IN_LLRINT and BUILT_IN_LLRINTF.
482
483 2011-11-07  Andrew MacLeod  <amacleod@redhat.com>
484
485         * optabs.c (get_atomic_op_for_code): Fill in optab table at runtime so
486         SWITCHABLE_TARGET can change the values during compilation.
487         (expand_atomic_fetch_op): Handle parameter change ripples for
488         get_atomic_op_for_code call.
489
490 2011-11-07  Andrew MacLeod  <amacleod@redhat.com>
491
492         * doc/extend.texi: Docuemnt behaviour change for __atomic_exchange and
493         __atomic_store.
494         * optabs.c (expand_atomic_exchange): Expand to __sync_lock_test_and_set
495         only when originated from that builtin.
496         (expand_atomic_store): Expand to __sync_lock_release when originated
497         from that builtin.
498         * builtins.c (expand_builtin_sync_lock_test_and_set): Add flag that
499         expand_atomic_exchange call originated from here.
500         (expand_builtin_sync_lock_release): Add flag that expand_atomic_store
501         call originated from here.
502         (expand_builtin_atomic_exchange): Add origination flag.
503         (expand_builtin_atomic_store): Add origination flag.
504         * expr.h (expand_atomic_exchange, expand_atomic_store): Add boolean
505         parameters to indicate implementation fall back options.
506
507 2011-11-07  Georg-Johann Lay  <avr@gjlay.de>
508
509         * config/avr/avr.c (output_reload_in_const): Can handle CONSTANT_P
510         now, not only CONST_INT and CONST_DOUBLE.
511         (output_movqi): Use output_reload_in_const.
512         (output_reload_inhi): Ditto.
513         (output_reload_insisf): Move assertion to output_reload_in_const.
514         (avr_out_reload_inpsi): Ditto.
515
516 2011-11-07  Nathan Sidwell  <nathan@acm.org>
517
518         * gcov.c (object_summary): Replace with ...
519         (object_runs): ... this.
520         (process_file): Remove functions with no data.
521         (generate_results): Ignore files with no lines.
522         (release_function): New helper, broken out of ...
523         (release_structures): ... here.  Use it.
524         (read_count_file): Adjust for new data file format.
525         (output_lines): Use object_runs.
526         * gcov-io.h (GCOV_TAG_OBJECT_SUMMARY): Obsolete.
527         (struct gcov_ctr_info): Move definition.
528         (struct gcov_fn_info): Add key field, use gcov_ctr_info for
529         trailing array.
530         (struct gcov_info): Add merge function array, remove mask and
531         counts.  Trailing array is array of pointers to function info.
532         * coverage.c (struct function_list): Replace counter numbers with
533         counter arrays.  Add fndecl field.  GTYify.
534         (counts_entry): Remove chain workspace.
535         (functions_head): GTYify.
536         (prg_n_ctrs): Remove.
537         (fn_v_ctrs): New.
538         (tree_ctr_tables): Remove.
539         (read_counts_file): Cope with blank entries and expect program
540         summaries before functions.  Don't warn on missing entries.
541         (coverage_counter_alloc): Allocate individual function arrays.
542         (tree_coverage_counter_ref, tree_coverage_counter_addr): Adjust
543         for individual function arrays.
544         (coverage_end_function): GTYify function list object. Finalize
545         function's counter arrays.
546         (build_var): New.  Create a counter-related variable with
547         appropriate linkage.
548         (build_fn_info_type): Adjust for new runtime structure.
549         (build_fn_info_value): Rename to ...
550         (build_fn_info): ... here.  Build new format data.
551         (build_ctr_info_type, build_ctr_info_value): Remove.
552         (build_info_type): New. Build new format data structure.
553         (build_info): Adjust for new format data.
554         (create_coverage): Likewise.
555         * gcov-dump.c (tag_function): Recognize placeholders.
556
557 2011-11-07  Georg-Johann Lay  <avr@gjlay.de>
558
559         * config/avr/constraints.md (Cm2): New constraint for int -2.
560         * config/avr/avr.md (addqi3): Use it. New alternatives for +/-2.
561         (*negqihi2): New insn.
562
563 2011-11-07  H.J. Lu  <hongjiu.lu@intel.com>
564
565         * dwarf2cfi.c (dwarf2out_frame_debug_expr): Check
566         HARD_FRAME_POINTER_REGNUM instead of hard_frame_pointer_rtx
567         in Rule 18.
568
569 2011-11-07  Jakub Jelinek  <jakub@redhat.com>
570
571         * config/i386/i386.c (ix86_expand_builtin): If gather mask
572         argument is known to have all high bits set, pass pc_rtx as
573         second argument to the expander instead of op0.
574         * config/i386/sse.md (*avx2_gathersi<mode>_2,
575         *avx2_gatherdi<mode>_2): New patterns.
576         * config/i386/avx2intrin.h (_mm256_i32gather_pd,
577         _mm256_i64gather_pd, _mm256_i32gather_ps): Set mask using
578         _mm256_cmp_pd with zero vector arguments and _CMP_EQ_OQ instead of
579         _mm256_set1_pd.
580
581         PR tree-optimization/50789
582         * tree-vect-stmts.c (process_use): Add force argument, avoid
583         exist_non_indexing_operands_for_use_p check if true.
584         (vect_mark_stmts_to_be_vectorized): Adjust callers.  Handle
585         STMT_VINFO_GATHER_P.
586         (gen_perm_mask): New function.
587         (perm_mask_for_reverse): Use it.
588         (reverse_vec_element): Rename to...
589         (permute_vec_elements): ... this.  Add Y and MASK_VEC arguments,
590         generalize for any permutations.
591         (vectorizable_load): Adjust caller.  Handle STMT_VINFO_GATHER_P.
592         * target.def (TARGET_VECTORIZE_BUILTIN_GATHER): New hook.
593         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_GATHER): Document it.
594         * doc/tm.texi: Regenerate.
595         * tree-data-ref.c (initialize_data_dependence_relation,
596         compute_self_dependence): No longer static.
597         * tree-data-ref.h (initialize_data_dependence_relation,
598         compute_self_dependence): New prototypes.
599         * tree-vect-data-refs.c (vect_check_gather): New function.
600         (vect_analyze_data_refs): Detect possible gather load data
601         refs.
602         * tree-vectorizer.h (struct _stmt_vec_info): Add gather_p field.
603         (STMT_VINFO_GATHER_P): Define.
604         (vect_check_gather): New prototype.
605         * config/i386/i386-builtin-types.def: Add types for alternate
606         gather builtins.
607         * config/i386/sse.md (AVXMODE48P_DI): Remove.
608         (VEC_GATHER_MODE): Rename mode_attr to...
609         (VEC_GATHER_IDXSI): ... this.
610         (VEC_GATHER_IDXDI, VEC_GATHER_SRCDI): New mode_attrs.
611         (avx2_gathersi<mode>, *avx2_gathersi<mode>): Use <VEC_GATHER_IDXSI>
612         instead of <VEC_GATHER_MODE>.
613         (avx2_gatherdi<mode>): Use <VEC_GATHER_IDXDI> instead of
614         <<AVXMODE48P_DI> and <VEC_GATHER_SRCDI> instead of VEC_GATHER_MODE
615         on src and mask operands.
616         (*avx2_gatherdi<mode>): Likewise.  Use VEC_GATHER_MODE iterator
617         instead of AVXMODE48P_DI.
618         (avx2_gatherdi<mode>256, *avx2_gatherdi<mode>256): Removed.
619         * config/i386/i386.c (enum ix86_builtins): Add
620         IX86_BUILTIN_GATHERALTSIV4DF, IX86_BUILTIN_GATHERALTDIV8SF,
621         IX86_BUILTIN_GATHERALTSIV4DI and IX86_BUILTIN_GATHERALTDIV8SI.
622         (ix86_init_mmx_sse_builtins): Create those builtins.
623         (ix86_expand_builtin): Handle those builtins and adjust expansions
624         of other gather builtins.
625         (ix86_vectorize_builtin_gather): New function.
626         (TARGET_VECTORIZE_BUILTIN_GATHER): Define.
627
628 2011-11-07  Uros Bizjak  <ubizjak@gmail.com>
629
630         * config/i386/f16cintrin: Remove extra _X86INTRIN_H_INCLUDED check.
631
632 2011-11-07  Tristan Gingold  <gingold@adacore.com>
633
634         * config.gcc (*-*-*vms*): Set c_target_objs, cxx_target_objs.
635         * config/vms/t-vms: Add vms-c.o rule.
636         * config/vms/vms-c.c: New file.
637         * config/vms/vms-protos.h (vms_c_register_pragma): New prototype.
638         * config/vms/vms.h (REGISTER_TARGET_PRAGMAS): Define.
639
640 2011-11-07  Tristan Gingold  <gingold@adacore.com>
641
642         * config/alpha/vms.h (TARGET_OBJECT_SUFFIX,
643         TARGET_EXECUTABLE_SUFFIX, TARGET_OS_CPP_BUILTINS,
644         TARGET_ABI_OPEN_VMS, LONG_TYPE_SIZE, ADA_LONG_TYPE_SIZE,
645         POINTER_SIZE, POINTERS_EXTEND_UNSIGNED): Move to config/vms/vms.h
646         (SUBTARGET_OS_CPP_BUILTINS): Define.
647         (TARGET_DEFAULT): Tune according to POINTER_SIZE.
648         (MASK_RETURN_ADDR): Define in 64 bit mode.
649         * config/ia64/vms.h: Likewise.
650         * config/vms/vms.h: New file.
651         * config/vms/vms64.h: New file.
652         * config/alpha/vms64.h: Removed.
653         * config/ia64/vms64.h: Removed.
654         * config.gcc (alpha64-dec-*vms*, alpha*-dec-*vms*, ia64-hp-*vms*):
655         Adjust for above change.
656
657 2011-11-07  Enkovich Ilya  <ilya.enkovich@intel.com>
658
659         PR target/50962
660         * config/i386/i386-protos.h (ix86_use_lea_for_mov): New.
661         * config/i386/i386.c (ix86_use_lea_for_mov): Likewise.
662         * config/i386/i386.md (movsi_internal): Emit lea if profitable.
663         (movdi_internal_rex64): Likewise.
664
665 2011-11-07  Sergey Ostanevich  <sergos.gnu@gmail.com>
666
667         PR rtl-optimization/47698
668         * ifcvt.c (noce_operand_ok): Return false for mems with side effects.
669
670 2011-11-07  Tristan Gingold  <gingold@adacore.com>
671
672         * common/config/alpha/alpha-common.c (alpha_option_init_struct):
673         New function.
674         (TARGET_OPTION_INIT_STRUCT): Define.
675         * config/alpha/alpha.c (TARGET_MIN_ANCHOR_OFFSET)
676         (TARGET_MAX_ANCHOR_OFFSET)
677         (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Redefine.
678
679 2011-11-06  Quentin Neill  <quentin.neill@amd.com>
680
681         Fix r180999, update ChangeLog
682         * config.gcc: Add f16cintrin.h.
683         * config/i386/f16cintrin.h: Add missing endif.
684
685 2011-11-06  Sebastian Huber  <sebastian.huber@embedded-brains.de>
686
687         * config.gcc (arm*-*-rtemseabi*): New target.
688         * config/arm/rtems-eabi.h: New.
689         * config/arm/t-rtems-eabi: New.
690
691 2011-11-06  David S. Miller  <davem@davemloft.net>
692
693         * config/sparc/sparc.md (UNSPEC_SHORT_LOAD): Delete.
694         (zero_extend_v8qi_vis, zero_extend_v4hi_vis,
695         *zero_extend_v8qi_<P:mode>_insn,
696         *zero_extend_v4hi_<P:mode>_insn): Express using vec_merge
697         and vec_duplicate instead of using an UNSPEC.
698
699 2011-11-07  Alan Modra  <amodra@gmail.com>
700
701         PR target/30282
702         * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Always emit
703         blockage for ABI_V4.
704
705 2011-11-06  Dave Korn  <dave.korn.cygwin@gmail.com>
706
707         * config/i386/cygwin.h (LIBGCJ_SONAME): Updated to match recent
708         libgcj version bump.
709         * config/i386/mingw32.h (LIBGCJ_SONAME): Likewise.
710
711 2011-11-06  Eric Botcazou  <ebotcazou@adacore.com>
712
713         * gcse.c: Adjust outdated comments throughout.
714         (struct mem_conflict_info): New structure.
715         (mems_conflict_for_gcse_p): Use it to communicate with caller.
716         (load_killed_in_block_p): Pass it to note_stores.
717         (hash_expr): Remove superfluous line break.
718         (hash_scan_set): Rename PAT parameter into SET.
719         (hash_scan_insn): Reorder cases.
720         (canon_list_insert): Fix long line.
721         (edge_list): Delete.
722         (prune_expressions): Rename E local variable into EXPR.
723         (compute_pre_data): Return struct edge_list * object.
724         (pre_expr_reaches_here_p_work): Fix formatting.
725         (process_insert_insn): Move around comment.
726         (pre_edge_insert): Fix long line.
727         (pre_insert_copies): Likewise.
728         (gcse_emit_move_after): Swap SRC and DEST parameters.
729         (pre_delete): Adjust call to gcse_emit_move_after.
730         (pre_gcse): Take struct edge_list * parameter.  Fix long line.
731         (one_pre_gcse_pass): Use flag_gcse_lm condition for all routines.
732         Use a local list of edges.
733         (hoist_code): Fix long line.  Adjust call to gcse_emit_move_after.
734         (pre_ldst_expr_hash): Fix long line.
735         (free_ldst_mems): Rename into...
736         (free_ld_motion_mems): ...this.
737         (first_ls_expr): Delete.
738         (next_ls_expr): Likewise.
739         (print_ldst_list): Do not use above two functions.
740         (simple_mem): Adjust interface.
741         (compute_ld_motion_mems): Fix formatting.
742         (update_ld_motion_stores): Reuse local variable.
743
744 2011-11-06  Joseph Myers  <joseph@codesourcery.com>
745
746         * c-decl.c (shadow_tag_warned, grokdeclarator): Handle _Alignas
747         specifiers.
748         (build_null_declspecs): Initialize align_log and alignas_p fields.
749         (declspecs_add_alignas): New.
750         * c-parser.c (c_token_starts_declspecs): Handle RID_ALIGNAS.
751         (c_parser_declspecs): Handle _Alignas specifiers.
752         (c_parser_alignas_specifier): New.
753         (c_parser_alignof_expression): Diagnose alignof use for non-C1X.
754         Diagnose _Alignof (expression).
755         * c-tree.h (struct c_declspecs): Add align_log and alignas_p fields.
756         (declspecs_add_alignas): Declare.
757         * ginclude/stddef.h (max_align_t): Define for C1X and C++11.
758         * ginclude/stdalign.h: New.
759         * Makefile.in (USER_H): Add stdalign.h.
760
761 2011-11-06  Joern Rennecke  <joern.rennecke@embecosm.com>
762
763         * regset.h (fixed_reg_set_regset): Declare.
764         * dse.c: Include regset.h .
765         (struct insn_info): Add member fixed_regs_live.
766         (note_add_store_info): New typedef.
767         (note_add_store): New function.
768         (emit_inc_dec_insn_before): Expect arg to be of type insn_info_t.
769         Use gen_add3_insn / gen_move_insn.
770         Check new insn for unwanted clobbers before emitting it.
771         (check_for_inc_dec): Rename to...
772         (check_for_inc_dec_1:) ... this.  Return bool.  Take insn_info
773         parameter.  Changed all callers in file.
774         (check_for_inc_dec, copy_fixed_regs): New functions.
775         (scan_insn): Set fixed_regs_live field of insn_info.
776         * rtl.h (check_for_inc_dec): Update prototype.
777         * postreload.c (reload_cse_simplify): Take new signature of
778         check_ind_dec into account.
779         * reginfo.c (fixed_reg_set_regset): New variable.
780         (init_reg_sets_1): Initialize it.
781
782 2011-11-06  Jakub Jelinek  <jakub@redhat.com>
783
784         * tree-cfg.c (gimple_can_merge_blocks_p): For -O0 don't remove
785         any user labels.
786
787 2011-11-06  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
788
789         * config/pa/pa.c (pa_hpux_init_libfuncs): Rename to pa_init_libfuncs.
790         Remove dependence of declaration and target define on definition of
791         HPUX_LONG_DOUBLE_LIBRARY.  Update implementation.
792
793 2011-11-06  Andrew Macleod  <amacleod@redhat.com>
794             Richard Henderson  <rth@redhat.com>
795             Aldy Hernandez  <aldyh@redhat.com>
796
797         Merged from cxx-mem-model.
798
799         * cppbuiltin.c (define__GNUC__): Define __ATOMIC memory models
800         * coretypes.h (enum memmodel): New.  enumerated memory model type.
801         * Makefile.in (cppbuiltin.o) Add missing dependency on $(TREE_H)
802         * genopinit,c (optabs): Add atomic direct optab handlers.
803         * sync-builtins.def (BUILT_IN_ATOMIC_*): New builtins.
804         * builtin-types.def (BT_CONST_VOLATILE_PTR,
805         BT_FN_I{1,2,4,8,16}_CONST_VPTR_INT, BT_FN_VOID_VPTR_INT,
806         BT_FN_BOOL_VPTR_INT, BT_FN_BOOL_SIZE_CONST_VPTR,
807         BT_FN_I{1,2,4,8,16}_VPTR_I{1,2,4,8,16}_INT,
808         BT_FN_VOID_VPTR_I{1,2,4,8,16}_INT, BT_FN_VOID_SIZE_VPTR_PTR_INT,
809         BT_FN_VOID_SIZE_CONST_VPTR_PTR_INT, BT_FN_VOID_SIZE_VPTR_PTR_PTR_INT,
810         BT_FN_BOOL_VPTR_PTR_I{1,2,4,8,16}_BOOL_INT_INT): New builtin types.
811         * expr.h (expand_atomic_*): Add prototypes.
812         (expand_{bool,val}_compare_and_swap): Remove prototypes.
813         * c-typeck.c (build_function_call_vec): Don't reprocess __atomic
814         parameters.
815         * common.opt (Winvalid-memory-model): New warning flag.
816         (finline-atomics): New. Flag to disable atomic inlining.
817         * params.h (ALLOW_LOAD_DATA_RACES): New.
818         (ALLOW_PACKED_LOAD_DATA_RACES): New.
819         (ALLOW_PACKED_STORE_DATA_RACES): New.
820         * params.def (PARAM_ALLOW_LOAD_DATA_RACES): New.
821         (PARAM_ALLOW_PACKED_LOAD_DATA_RACES): New.
822         (PARAM_ALLOW_PACKED_STORE_DATA_RACES): New.
823         * builtins.c (is_builtin_name): Handle __atomic.
824         (get_memmodel): New.  Extract memory model.
825         (expand_expr_force_mode): New. Factor out common code for ensuring an
826         integer argument is in the proper mode.
827         (expand_builtin_sync_operation): Remove ignore param.  Always call
828         expand_atomic_fetch_op instead of the old expanders.
829         (expand_builtin_compare_and_swap,
830         expand_builtin_sync_lock_test_and_set): Use expand_expr_force_mode,
831         call atomic expanders instead of sync expanders.
832         (expand_builtin_sync_lock_release): Call atomic_store expander.
833         (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
834         expand_builtin_atomic_store, expand_builtin_atomic_fetch_op): New.
835         (expand_builtin_atomic_exchange): New.
836         (fold_builtin_atomic_always_lock_free,
837         expand_builtin_atomic_always_lock_free,
838         fold_builtin_atomic_is_lock_free, expand_builtin_atomic_is_lock_free):
839         New.
840         (expand_builtin_mem_thread_fence, expand_builtin_atomic_thread_fence,
841         expand_builtin_atomic_signal_fence): New.
842         (expand_builtin_mem_signal_fence): New.
843         (expand_builtin): Add cases for BUILT_IN_ATOMIC_*.
844         (fold_builtin_2): Add cases for BUILT_IN_ATOMIC_{IS,ALWAYS}_LOCK_FREE.
845         * optabs.h (DOI_atomic_*): Define new atomics.
846         (atomic_*_optab): Define.
847         (can_compare_and_swap_p, expand_atomic_compare_and_swap): New
848         prototypes.
849         * optabs.c (expand_sync_operation, expand_sync_fetch_operation): Remove.
850         (expand_sync_lock_test_and_set): Remove.
851         (expand_atomic_load, expand_atomic_store): New.
852         (expand_atomic_exchange): New.
853         (expand_atomic_compare_and_swap): New.  Implements
854         atomic_compare_exchange via compare and swap.
855         (struct atomic_op_functions): Opcode table struct for fetch ops.
856         (get_atomic_op_for_code): New.  Return an opcode table entry.
857         (maybe_emit_op): New.  Try to emit a fetch op.
858         (expand_atomic_fetch_op): New.
859         (expand_val_compare_and_swap_1): Remove.
860         (expand_val_compare_and_swap, expand_bool_compare_and_swap): Remove.
861         (expand_atomic_compare_and_swap): Rename from
862         expand_atomic_compare_exchange.  Rewrite to return both success and
863         oldval return values; expand via both atomic and sync optabs.
864         (can_compare_and_swap_p): New.
865         (expand_compare_and_swap_loop): Use expand_atomic_compare_and_swap.
866         (maybe_gen_insn): Handle 7 and 8 operands.
867         * omp-low.c (expand_omp_atomic_fetch_op): Don't test individual
868         fetch_op optabs, only test can_compare_and_swap_p.  Use __atomic
869         builtins instead of __sync builtins.
870         (expand_omp_atomic_pipeline): Use can_compare_and_swap_p.
871         * doc/extend.texi: Document __atomic built-in functions.
872         * doc/invoke.texi: Document data race parameters.
873         * doc/md.texi: Document atomic patterns.
874         * config/i386/i386.md (UNSPEC_MOVA): New.
875         (UNSPECV_CMPXCHG): Split into ...
876         (UNSPECV_CMPXCHG_1, UNSPECV_CMPXCHG_2,
877         UNSPECV_CMPXCHG_3, UNSPECV_CMPXCHG_4): New.
878         * config/i386/sync.md (ATOMIC): New mode iterator.
879         (atomic_load<ATOMIC>, atomic_store<ATOMIC>): New.
880         (atomic_loaddi_fpu, atomic_storedi_fpu, movdi_via_fpu): New.
881         (mem_thread_fence): Rename from memory_barrier.
882         Handle the added memory model parameter.
883         (mfence_nosse): Rename from memory_barrier_nosse.
884         (sync_compare_and_swap<CASMODE>): Split into ...
885         (atomic_compare_and_swap<SWI124>): this and ...
886         (atomic_compare_and_swap<CASMODE>): this.  Handle the new parameters.
887         (atomic_compare_and_swap_single<SWI>): Rename from
888         sync_compare_and_swap<SWI>; rewrite to use split unspecs.
889         (atomic_compare_and_swap_double<DCASMODE>): Rename from
890         sync_double_compare_and_swap<DCASMODE>; rewrite to use split unspecs.
891         (*atomic_compare_and_swap_doubledi_pic): Rename from
892         sync_double_compare_and_swapdi_pic; rewrite to use split unspecs.
893         (atomic_fetch_add<SWI>): Rename from sync_old_add<SWI>; add memory
894         model parameter.
895         (*atomic_fetch_add_cmp<SWI>): Similarly.
896         (atomic_add<SWI>, atomic<any_logic><SWI>): Similarly.
897         (atomic_sub<SWI>): Similarly.  Use x86_maybe_negate_const_int.
898         (sync_lock_test_and_set<SWI>): Merge with ...
899         (atomic_exchange<SWI>): ... this.
900
901 2011-11-6  Richard Guenther  <rguenther@suse.de>
902
903         * ipa-prop.c (ipa_modify_call_arguments): Re-compute
904         inlinable flag.
905
906 2011-11-06  Ira Rosen  <ira.rosen@linaro.org>
907
908         * tree-vectorizer.h (vectorizable_condition): Add argument.
909         * tree-vect-loop.c (vectorizable_reduction): Fail for condition
910         in SLP.  Update calls to vectorizable_condition.
911         * tree-vect-stmts.c (vect_is_simple_cond): Add basic block info to
912         the arguments.  Pass it to vect_is_simple_use_1.
913         (vectorizable_condition): Add slp_node to the arguments.  Support
914         vectorization of basic blocks.  Fail for reduction in SLP.  Update
915         calls to vect_is_simple_cond and vect_is_simple_use.  Support SLP:
916         call vect_get_slp_defs to get vector operands.
917         (vect_analyze_stmt): Update calls to vectorizable_condition.
918         (vect_transform_stmt): Likewise.
919         * tree-vect-slp.c (vect_create_new_slp_node): Handle COND_EXPR.
920         (vect_get_and_check_slp_defs): Handle COND_EXPR.  Allow pattern
921         def stmts.
922         (vect_build_slp_tree): Handle COND_EXPR.
923         (vect_analyze_slp_instance): Push pattern statements to root node.
924         (vect_get_constant_vectors): Fix comments.  Handle COND_EXPR.
925
926 2011-11-05  David S. Miller  <davem@davemloft.net>
927
928         * config/sparc/sparc.md (UNSPEC_SHORT_LOAD): New unspec.
929         (zero-extend_v8qi_vis, zero_extend_v4hi_vis): New expanders.
930         (*zero_extend_v8qi_<P:mode>_insn,
931         *zero_extend_v4hi_<P:mode>_insn): New insns.
932         * config/sparc/sparc.c (vector_init_move_words,
933         vector_init_prepare_elts, sparc_expand_vector_init_vis2,
934         sparc_expand_vector_init_vis1): New functions.
935         (vector_init_bshuffle): Rewrite to handle more cases and make use
936         of locs[] array prepared by vector_init_prepare_elts.
937         (vector_init_fpmerge, vector_init_faligndata): Delete.
938         (sparc_expand_vector_init): Rewrite using new infrastructure.
939
940 2011-11-05  Joern Rennecke  <joern.rennecke@embecosm.com>
941
942         * config.gcc (epiphany-*-*): New architecture.
943         (epiphany-*-elf): New configuration.
944         * config/epiphany, common/config/epiphany : New directories.
945         * doc/extend.texi (disinterrupt attribute): Add Epiphany.
946         (interrupt attribute): Add Epiphany.
947         (long_call, short_call attribute): Add Epiphany.
948         * doc/invoke.texi (Options): Add Epiphany options.
949         * doc/md.texi (Machine Constraints): Add Epiphany constraints.
950         * doc/install.texi (Options specification):
951         Add --with-stack-offset=@var{num} description.
952         (host/target specific issues): Add epiphany-*-elf.
953         * doc/contrib.texi (Contributors): Mention Epiphany port.
954
955 2011-11-05  Jakub Jelinek  <jakub@redhat.com>
956
957         PR tree-optimization/50693
958         * tree-cfg.c (gimple_can_merge_blocks_p): Allow merging with
959         non-forced user labels.
960         (gimple_merge_blocks): Turn non-forced user labels into
961         debug bind stmt with the label as first operand and reset value.
962         (gimple_duplicate_bb): Don't duplicate label debug stmts.
963         * dwarf2out.c (gen_label_die): Handle NOTE_INSN_DELETED_DEBUG_LABEL.
964         * final.c (final_scan_insn): Likewise.
965         (rest_of_clean_state): Don't dump NOTE_INSN_DELETED_DEBUG_LABEL.
966         * var-tracking.c (debug_label_num): New variable.
967         (delete_debug_insns): Don't delete DEBUG_INSNs for LABEL_DECLs,
968         instead turn them into NOTE_INSN_DELETED_DEBUG_LABEL notes.
969         * cfglayout.c (skip_insns_after_block, duplicate_insn_chain): Handle
970         NOTE_INSN_DELETED_DEBUG_LABEL.
971         (duplicate_insn_chain): Don't duplicate LABEL_DECL DEBUG_INSNs.
972         * insn-notes.def (DELETED_DEBUG_LABEL): New note kind.
973         * print-rtl.c (print_rtx): Handle NOTE_INSN_DELETED_DEBUG_LABEL.
974         * gengtype.c (adjust_field_rtx_def): Likewise.
975         * config/i386/i386.c (ix86_output_function_epilogue): For MachO
976         clear CODE_LABEL_NUMBER of NOTE_INSN_DELETED_DEBUG_LABEL
977         if their are at the end of function and nop hasn't been emitted.
978         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Likewise.
979
980 2011-11-05  Georg-Johann Lay  <avr@gjlay.de>
981
982         PR rtl-optimization/50448
983         * cprop.c (try_replace_reg): Also try to replace uses of FROM that
984         appear in SET_DEST.
985
986 2011-11-05  Peter Dufault  <dufault@hda.com>,
987             Sebastian Huber  <sebastian.huber@embedded-brains.de>
988
989         * config/rs6000/rtems.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
990         Extend rs6000_spe handling.
991
992 2011-11-05  Ralf Cors├ępius  <ralf.corsepius@rtems.org>
993
994         * config/rs6000/t-rtems: Add -mcpu=8540/-mfloat-gprs=double multilib.
995         Remove -mcpu=601 multilib.
996         Remove -Dmpc8260 multilib.
997         * config/rs6000/rtems.h: Allow --float-gprs=... to override grps
998         on E500 targets.
999
1000 2011-11-05  Quentin Neill  <quentin.neill@amd.com>
1001
1002         Piledriver f16cintrin.h fix.
1003         * config/i386/f16cintrin.h: Contents moved from immintrin.h.
1004         * config/i386/immintrin.h: Include f16cintrin.h.
1005         * config.gcc (i[34567]86-*-*, x86_64-*-*): Add f16cintrin.h.
1006
1007
1008 2011-11-04  Eric Botcazou  <ebotcazou@adacore.com>
1009
1010         PR c++/50608
1011         * c-parser.c (c_parser_postfix_expression) <RID_OFFSETOF>: Adjust call
1012         to fold_offsetof.
1013         * c-typeck.c (build_unary_op) <ADDR_EXPR>: Call fold_offsetof_1.
1014
1015 2011-11-04  Alan Modra  <amodra@gmail.com>
1016
1017         * reload1.c (gen_reload): Don't use REGNO on SUBREGs.
1018         * print-rtl.c (print_rtx): Don't segfault on negative regno.
1019
1020 2011-11-04  David S. Miller  <davem@davemloft.net>
1021
1022         PR target/49965
1023         * config/sparc/sparc.c (sparc_expand_conditional_move): Handle the
1024         fact that sparc_emit_float_lib_cmp modifies the comparison in
1025         operands[1].
1026
1027 2011-11-04  Ralf Cors├ępius  <ralf.corsepius@rtems.org>
1028
1029         * config/lm32/t-rtems: New.
1030         * config.gcc (lm32-*-rtems*): Add t-rtems.
1031
1032 2011-11-04  Eric Botcazou  <ebotcazou@adacore.com>
1033
1034         PR target/50979
1035         * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=v8.
1036
1037 2011-11-04  Jiangning Liu  <jiangning.liu@arm.com>
1038
1039         PR rtl-optimization/38644
1040         * config/arm/arm.c (thumb1_expand_epilogue): Add memory barrier
1041         for epilogue having stack adjustment.
1042
1043 2011-11-04  Georg-Johann Lay  <avr@gjlay.de>
1044
1045         PR target/50931
1046         * config/avr/avr-modes.def: New file defining PSImode.
1047         * config/avr/avr-c.c (__INT24_MAX__, __INT24_MIN__,
1048         __UINT24_MAX__): New built-in defines.
1049         * config/avr/avr.md (adjust_len): Add tstpsi, mov24,  reload_in24,
1050         ashlpsi, ashrpsi, lshrpsi.
1051         (QISI, QIDI, HISI, HIDI, MPUSH, rotx, rotsmode): Add PSI.
1052         (MOVMODE): New mode iterator.
1053         (movpsi): New expander.
1054         (movqi, movhi, movsi, movsf, movpsi): Write as one using MOVMODE.
1055         (*reload_inpsi, *movpsi): New insns.
1056         (*reload_inpsi): New RTL peephole.
1057         (addpsi3, *addpsi3_zero_extend.qi, *addpsi3_zero_extend.hi,
1058         *addpsi3_sign_extend.hi): New insns.
1059         (subpsi3, *subpsi3_zero_extend.qi, *subpsi3_zero_extend.hi,
1060         *subpsi3_sign_extend.hi): New insns.
1061         (divmodpsi4, udivmodpsi4): New define insn-and-split.
1062         (*divmodpsi4_call, *udivmodpsi4_call): New insns.
1063         (andpsi3, iorpsi3, xorpsi3): New insns.
1064         (*rotlpsi2.1, *rotlpsi2.23): New insns.
1065         (*rotw<mode>): Insn condition only allow even-sized modes.
1066         (*rotb<mode>): Insn condition allows odd-sized modes.
1067         (ashlpsi3, ashrpsi3, lshrpsi3, *addpsi3.lt0): New insns.
1068         (negpsi2, one_cmplpsi2): New insns.
1069         (extendqipsi2, extendhipsi2, extendpsisi2): New insns.
1070         (zero_extendqipsi2, zero_extendhipsi2, zero_extendpsisi2): New
1071         insn-and-splits.
1072         (*cmppsi, *negated_tstpsi, *reversed_tstpsi): New insns.
1073         (cbranchpsi4): New expander.
1074         * config/avr/constraints.md (Ca3, Co3, Cx3): New constraints.
1075         * config/avr/avr-protos.h (avr_out_tstpsi, avr_out_movpsi,
1076         avr_out_ashlpsi3, avr_out_ashrpsi3, avr_out_lshrpsi3,
1077         avr_out_reload_inpsi): New prototypes.
1078
1079         * config/avr/avr.c (TARGET_SCALAR_MODE_SUPPORTED_P): Define to...
1080         (avr_scalar_mode_supported_p): ...this new static function.
1081         (avr_asm_len): Always return "".
1082         (avr_out_load_psi, avr_out_store_psi): New static functions.
1083         (avr_out_movpsi, avr_out_reload_inpsi): New functions.
1084         (avr_out_tstpsi): New function.
1085         (avr_out_ashlpsi3, avr_out_ashrpsi3, avr_out_lshrpsi3): New functions.
1086         (avr_out_plus_1, output_reload_in_const): Handle 3-byte types.
1087         (avr_simplify_comparison_p): Ditto.
1088         (adjust_insn_length): Handle ADJUST_LEN_RELOAD_IN24,
1089         ADJUST_LEN_MOV24, ADJUST_LEN_TSTPSI, ADJUST_LEN_ASHLPSI,
1090         ADJUST_LEN_ASHRPSI, ADJUST_LEN_LSHRPSI.
1091         (avr_rtx_costs_1): Report PSI costs.
1092         (avr_libcall_value): Handle odd-sized parameters.
1093         (avr_init_builtin_int24): New static function to define built-in
1094         24-bit types __int24 and __uint24.
1095         (avr_init_builtins): Use it.
1096
1097 2011-11-04  Thomas Doerfler <thomas.doerfler@embedded-brains.de>
1098
1099         PR target/50989
1100         * config/arm/rtems-elf.h, config/arm/t-rtems: Add optional
1101         support for VFP floating point model.
1102
1103 2011-11-04  Tristan Gingold  <gingold@adacore.com>
1104
1105         * config/alpha/vms.h (ASM_OUTPUT_DEF): Do not switch section.
1106
1107 2011-11-04  Ira Rosen  <ira.rosen@linaro.org>
1108
1109         Unrevert:
1110         2011-10-24  Ira Rosen  <ira.rosen@linaro.org>
1111
1112         PR tree-optimization/50730
1113         * tree-vect-data-refs.c (vect_analyze_data_refs): Stop basic block
1114         analysis if encountered unsupported data-ref.
1115
1116 2011-11-04  Jakub Jelinek  <jakub@redhat.com>
1117
1118         * config/i386/i386.c (ix86_expand_vector_convert_uns_vsivsf): New
1119         function.
1120         * config/i386/i386-protos.h (ix86_expand_vector_convert_uns_vsivsf):
1121         New prototype.
1122         * config/i386/sse.md (floatuns<sseintvecmodelower><mode>2): Use it.
1123         For floatunsv8siv8sf2 require TARGET_AVX2.
1124
1125         * config/i386/i386.c (ix86_expand_adjust_ufix_to_sfix_si): Add
1126         XORP argument.  Subtract 0x1p31 instead of 0x1p32.  Use normal
1127         signalling comparison instead of non-signalling.  Store into
1128         *XORP pseudo holding 0x80000000 integers if 0x1p31 has been
1129         subtracted and 0 otherwise.
1130         * config/i386/i386-protos.h (ix86_expand_adjust_ufix_to_sfix_si):
1131         Adjust prototype.
1132         * config/i386/sse.md (fixuns_trunc<mode><sseintvecmodelower>2): Enable
1133         already for TARGET_SSE2.  Xor in vector initialized by
1134         ix86_expand_adjust_ufix_to_sfix_si at the end.
1135         (vec_pack_ufix_trunc_<mode>): Likewise.
1136
1137         * tree-vect-stmts.c (vectorizable_conversion): Rewritten to handle
1138         not just FLOAT_EXPR and FIX_TRUNC_EXPR, but also CONVERT_EXPR_CODE_P,
1139         WIDEN_MULT_EXPR and WIDEN_LSHIFT_EXPR to handle what
1140         vectorizable_type_demotion and vectorizable_type_promotion did.
1141         Additionally handle FLOAT_EXPR and FIX_TRUNC_EXPR where the integer
1142         is {,un}signed {char,short}.
1143         (vect_create_vectorized_demotion_stmts): Fix comment typo.  For
1144         recursive calls unconditionally use VEC_PACK_TRUNC_EXPR.
1145         Push vec_dest back to the vec_dsts vector at the end.
1146         (vect_create_vectorized_promotion_stmts): Don't recurse, do just
1147         one step.  Removed multi_step_cvt, vec_dsts, slp_node and
1148         prev_stmt_info arguments, add vec_dest argument.  Push always
1149         into vec_tmp, not just when multi_step_cvt != 0, replace *vec_oprdn0
1150         with vec_tmp at the end after freeing old *vec_oprnd0 vector.
1151         (vectorizable_type_demotion, vectorizable_type_promotion): Removed.
1152         (vect_analyze_stmt): Don't call vectorizable_type_demotion and
1153         vectorizable_type_promotion.  Call vectorizable_conversion even
1154         for SLP bb vectorization.
1155         (vect_transform_stmt): Call vectorizable_conversion instead of
1156         vectorizable_type_demotion and vectorizable_type_promotion.
1157         (supportable_widening_operation): Clear *multi_step_cvt first,
1158         simplify c1/c2 computation, free *interm_types vector on failure.
1159         (supportable_narrowing_operation): Clear *multi_step_cvt first,
1160         free *interm_types vector on failure, handle multi-step
1161         FIX_TRUNC_EXPR.
1162
1163 2011-11-04  Tristan Gingold  <gingold@adacore.com>
1164
1165         * config/alpha/alpha.c (alpha_write_linkage): Remove fundecl
1166         argument.  Conditionally generate crash debug info.  Adjust
1167         for alpha_funcs_tree removal.
1168         (machine_function): Add links field.
1169         (alpha_start_function): Conditionally generate crash debug info.
1170         (alpha_end_function): Adjust call to alpha_write_linkage.
1171         (alpha_funcs): Remove.
1172         (links_kind): Remove.
1173         (alpha_links): Remove num, target and lkind field.  Add func field.
1174         (alpha_links_tree): Remove.
1175         (alpha_funcs_tree): Remove.
1176         (alpha_need_linkage): Remove.
1177         (alpha_use_linkage): Change prototype.  Adjust.
1178         (alpha_write_one_linkage): Use ASM_OUTPUT_INTERNAL_LABEL.
1179         Use SYMBOL_REF_EXTERNAL_P and SYMBOL_REF_LOCAL_P macro.
1180         * config/alpha/alpha-protos.h (alpha_use_linkage): Update.
1181         (alpha_need_linkage): Remove.
1182         * config/alpha/alpha.md: Update calls to alpha_use_linkage.
1183         Adjust calls to alpha_need_linkage.
1184
1185 2011-11-03  Uros Bizjak  <ubizjak@gmail.com>
1186
1187         * sched-vis.c (print_value): Handle STRICT_LOW_PART.
1188
1189 2011-11-03  Uros Bizjak  <ubizjak@gmail.com>
1190
1191         * config/i386/i386.md (lround<X87MODEF:mode><SWI248x:mode>2,
1192         rint<mode>2, floor<mode>2, lfloor<MODEF:mode><SWI48:mode>2,
1193         btrunc<mode>2, lwp_lwpval<mode>3): Use operands[N] instead of operandN.
1194
1195 2011-11-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1196
1197         PR target/50978
1198         * config/arm/t-bpabi: New file.
1199         * config.gcc (arm*-*-linux*): Add arm/t-bpabi to tmake_file for
1200         arm*-*-linux-*eabi.
1201         (arm*-*-uclinux*): Add arm/t-bpabi to tmake_file for
1202         arm*-*-uclinux*eabi.
1203         (arm*-*-eabi*, arm*-*-symbianelf*): Add arm/t-bpabi to tmake_file
1204         for arm*-*-eabi*.
1205
1206 2011-11-03  Michael Matz  <matz@suse.de>
1207
1208         PR bootstrap/50857
1209         * configure.ac: Check for -fno-exceptions -fno-rtti.
1210         * configure: Regenerate.
1211         * Makefile.in (NOEXCEPTION_FLAGS): New flag.
1212         (ALL_CXXFLAGS): Use it.
1213
1214 2011-11-03  Uros Bizjak  <ubizjak@gmail.com>
1215
1216         * config/i386/i386.md: Use {} for multi-line preparation statements.
1217
1218 2011-11-03  Eric Botcazou  <ebotcazou@adacore.com>
1219
1220         * config/sparc/sparc.md (movtf_insn_sp32_no_fpu): Consolidate into...
1221         (movtf_insn_sp32): ...this.
1222         (movtf_insn_sp64_no_fpu): Consolidate into...
1223         (movtf_insn_sp64): ...this.
1224         (movtf_insn_sp64_hq): Do not test TARGET_FPU.
1225         * config/sparc/sparc.c (sparc_legitimate_address_p): Likewise.
1226
1227 2011-11-03  Tristan Gingold  <gingold@adacore.com>
1228
1229         * config/vms/vms.c (vms_patch_builtins): Fix typo.
1230
1231 2011-11-03  Richard Guenther  <rguenther@suse.de>
1232
1233         PR lto/44965
1234         * lto-opts.c: Re-implement.
1235         * lto-streamer.h (lto_register_user_option): Remove.
1236         (lto_read_file_options): Likewise.
1237         (lto_reissue_options): Likewise.
1238         (lto_clear_user_options): Likewise.
1239         (lto_clear_file_options): Likewise.
1240         * opts-global.c (post_handling_callback): Remove.
1241         (set_default_handlers): Do not set post_handling_callback.
1242         (decode_options): Remove LTO specific code.
1243         * lto-wrapper.c (merge_and_complain): New function.
1244         (run_gcc): Read all input file options and
1245         prepend a merged set before the linker driver options.
1246         * gcc.c (driver_post_handling_callback): Remove.
1247         (set_option_handlers): Do not set post_handling_callback.
1248         * opts-common.c (handle_option): Do not call post_handling_callback.
1249         * opts.h (struct cl_option_handlers): Remove post_handling_callback.
1250
1251 2011-11-03  Richard Guenther  <rguenther@suse.de>
1252
1253         * collect2.c (main): Guard object_nbr variable with TARGET_AIX_VERSION.
1254
1255 2011-11-03  Martin Jambor  <mjambor@suse.cz>
1256
1257         * ipa-prop.c (type_change_info): New fields offset, object,
1258         known_current_type and multiple_types_encountered.
1259         (extr_type_from_vtbl_ptr_store): New function.
1260         (check_stmt_for_type_change): Use it, set multiple_types_encountered if
1261         the result is different from the previous one.
1262         (detect_type_change): Renamed to detect_type_change_1. New parameter
1263         comp_type.  Set up new fields in tci, build known type jump
1264         functions if the new type can be identified.
1265         (detect_type_change): New function.
1266         * tree.h (DECL_CONTEXT): Comment new use.
1267
1268 2011-11-03  Richard Guenther  <rguenther@suse.de>
1269
1270         PR lto/48217
1271         * lto-wrapper.c (get_options_from_collect_gcc_options): Properly
1272         decode an encoded literal '.
1273
1274 2011-11-03  Tristan Gingold  <gingold@adacore.com>
1275
1276         * collect2.c (main): Add support of -f (response file) on AIX.
1277
1278 2011-11-03  Ira Rosen  <ira.rosen@linaro.org>
1279
1280         PR tree-optimization/50912
1281         * tree-vectorizer.h (slp_void_p): New.
1282         (struct _slp_tree): Replace left and right with children.  Update
1283         documentation.
1284         (struct _slp_oprnd_info): New.
1285         (vect_get_vec_defs): Declare.
1286         (vect_get_slp_defs): Update arguments.
1287         * tree-vect-loop.c (vect_create_epilog_for_reduction): Call
1288         vect_get_vec_defs instead of vect_get_slp_defs.
1289         (vectorizable_reduction): Likewise.
1290         * tree-vect-stmts.c (vect_get_vec_defs): Remove static, add argument.
1291         Update call to vect_get_slp_defs.
1292         (vectorizable_conversion): Update call to vect_get_vec_defs.
1293         (vectorizable_assignment, vectorizable_shift,
1294         vectorizable_operation): Likewise.
1295         (vectorizable_type_demotion): Call vect_get_vec_defs instead of
1296         vect_get_slp_defs.
1297         (vectorizable_type_promotion, vectorizable_store): Likewise.
1298         (vect_analyze_stmt): Fix typo.
1299         * tree-vect-slp.c (vect_free_slp_tree): Update SLP tree traversal.
1300         (vect_print_slp_tree, vect_mark_slp_stmts,
1301         vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
1302         vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
1303         vect_schedule_slp_instance): Likewise.
1304         (vect_create_new_slp_node): New.
1305         (vect_create_oprnd_info, vect_free_oprnd_info): Likewise.
1306         (vect_get_and_check_slp_defs): Pass information about defs using
1307         oprnds_info, allow any number of operands.
1308         (vect_build_slp_tree): Likewise.  Update calls to
1309         vect_get_and_check_slp_defs.  Fix comments.
1310         (vect_analyze_slp_instance): Move node creation to
1311         vect_create_new_slp_node.
1312         (vect_get_slp_defs): Allow any number of operands.
1313
1314 2011-11-02  Peter Bergner  <bergner@vnet.ibm.com>
1315             Iain Sandoe  <iains@gcc.gnu.org>
1316
1317         * config/rs6000/rs6000.c (USE_HIDDEN_LINKONCE): New define.
1318         (get_ppc476_thunk_name): Use it.
1319         (rs6000_code_end): Likewise.
1320         (macho_branch_islands): Fix typo.
1321
1322 2011-11-02  Paolo Carlini  <paolo.carlini@oracle.com>
1323             Jason Merrill  <jason@redhat.com>
1324
1325         PR c++/50810
1326         * configure.ac: Add -Wno-narrowing to warning options.
1327         * doc/invoke.texi ([-Wnarrowing], [-Wc++0x-compat]): Update.
1328
1329 2011-11-02  Eric Botcazou  <ebotcazou@adacore.com>
1330
1331         PR target/50945
1332         * config/sparc/sparc.md (movsf_insn): Reindent constraints.
1333         (movdf_insn_sp32): Likewise.  Remove redundant G constraint.
1334         (movdf_insn_sp64): Likewise.
1335         (DFmode splitter): Do not test TARGET_FPU.
1336         (movtf_insn_sp32): Reindent constraints.
1337         (movtf_insn_sp32_no_fpu): Likewise.
1338         (movtf_insn_sp64): Likewise.
1339         (movtf_insn_sp64_hq): Likewise.
1340         (movtf_insn_sp64_no_fpu): Likewise.
1341
1342 2011-11-02  Paolo Carlini  <paolo.carlini@oracle.com>
1343
1344         PR c++/50956
1345         * builtins.c (fold_builtin_memchr): Fix cast.
1346
1347 2011-11-02  Teresa Johnson  <tejohnson@google.com>
1348
1349         * config/i386/predicates.md (promotable_binary_operator): Add minus
1350         to the list of promotable operators.
1351
1352 2011-11-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1353
1354         * gthr-single.h, gthr.h: Move to ../libgcc.
1355         * gthr-aix.h: Move to ../libgcc/config/rs6000.
1356         * gthr-dce.h: Move to ../libgcc/config/pa.
1357         * gthr-lynx.h: Move to ../libgcc/config.
1358         * gthr-mipssde.h: Move to ../libgcc/config/mips.
1359         * gthr-posix.h: Move to ../libgcc/config.
1360         * gthr-rtems.h: Likewise.
1361         * gthr-tpf.h: Move to ../libgcc/config/s390.
1362         * gthr-vxworks.h: Move to ../libgcc/config.
1363         * gthr-win32.h: Move to ../libgcc/config/i386.
1364         * configure.ac (gthread_flags): Remove
1365         (gthr-default.h): Don't create.
1366         (thread_file): Don't substitute.
1367         * configure: Regenerate.
1368         * Makefile.in (GCC_THREAD_FILE): Remove.
1369         (GTHREAD_FLAGS): Remove.
1370         (libgcc.mvars): Remove GTHREAD_FLAGS.
1371         * config/t-vxworks (EXTRA_HEADERS): Remove.
1372
1373 2011-11-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1374             Paolo Bonzini  <bonzini@gnu.org>
1375
1376         * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Remove.
1377         * configure: Regenerate.
1378         * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list): Remove.
1379         (TM_H): Remove libgcc_tm.h, $(libgcc_tm_file_list).
1380         (libgcc_tm.h, cs-libgcc_tm.h): Remove.
1381         (clean): Remove libgcc_tm.h
1382         * mkconfig.sh: Don't include libgcc_tm.h in tm.h.
1383         * config.gcc (libgcc_tm_file): Remove.
1384         (arm*-*-linux*): Remove libgcc_tm_file for arm*-*-linux-*eabi.
1385         (arm*-*-uclinux*): Remove libgcc_tm_file for arm*-*-uclinux*eabi.
1386         (arm*-*-eabi*, arm*-*-symbianelf*): Remove libgcc_tm_file.
1387         (avr-*-rtems*): Likewise.
1388         (avr-*-*): Likewise.
1389         (frv-*-elf): Likewise.
1390         (frv-*-*linux*): Likewise.
1391         (h8300-*-rtems*): Likewise.
1392         (h8300-*-elf*): Likewise.
1393         (i[34567]86-*-darwin*): Likewise.
1394         (x86_64-*-darwin*): Likewise.
1395         (rx-*-elf*): Likewise.
1396         (tic6x-*-elf): Likewise.
1397         (tic6x-*-uclinux): Likewise.
1398         (i[34567]86-*-linux*, x86_64-*-linux*): Likewise.
1399
1400 2011-11-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1401
1402         * Makefile.in (LIBGCC2_DEBUG_CFLAGS LIBGCC2_CFLAGS)
1403         (LIBGCC2_INCLUDES, TARGET_LIBGCC2_CFLAGS, LIB2FUNCS_EXTRA)
1404         (LIB2FUNCS_STATIC_EXTRA, LIB2FUNCS_EXCLUDE, T, T_TARGET)
1405         (INCLUDES_FOR_TARGET): Remove.
1406         (LIBGCC2_CFLAGS): Don't export.
1407         (LIB2FUNCS_ST, LIB2_DIVMOD_FUNCS, LIB2ADD, LIB2ADD_ST, srcdirify):
1408         Remove.
1409         (libgcc-support): Remove $(LIB2ADD), $(LIB2ADD_ST) dependencies.
1410         (libgcc.mvars): Likewise.
1411         Don't emit LIB2FUNCS_ST, LIB2FUNCS_EXCLUDE, LIB2ADD, LIB2ADD_ST,
1412         LIB2_SIDITI_CONV_FUNCS, LIB2_DIVMOD_FUNCS, LIBGCC2_CFLAGS,
1413         TARGET_LIBGCC2_CFLAGS.
1414         Emit GTHREAD_FLAGS.
1415         * libgcc2.c, libgcc2.h, gbl-ctors.h, longlong.h: Move to ../libgcc.
1416         * config/darwin-64.c: Move to ../libgcc/config.
1417         * config/divmod.c, config/floatunsidf.c, config/floatunsisf.c,
1418         config/floatunsitf.c, config/floatunsixf.c, config/udivmod.c,
1419         config/udivmodsi4.c: Move to ../libgcc/config.
1420         * config/gthr-posix.c: Move to ../libgcc/config/alpha.
1421         * config/memcmp.c, config/memcpy.c, config/memmove.c,
1422         config/memset.c: Move to ../libgcc/config.
1423         * config/t-darwin (TARGET_LIBGCC2_CFLAGS): Remove.
1424         * config/t-freebsd: Remove.
1425         * config/t-freebsd-thread: Move to ../libgcc/config.
1426         * config/t-libgcc-pic: Move to ../libgcc/config.
1427         * config/t-libunwind (TARGET_LIBGCC2_CFLAGS): Remove.
1428         * config/t-linux: Remove.
1429         * config/t-lynx (TARGET_LIBGCC2_CFLAGS, LIBGCC, INSTALL_LIBGCC):
1430         Remove.
1431         * config/t-openbsd-thread: Move to ../libgcc/config.
1432         * config/t-rtems (LIBGCC2_INCLUDES): Remove.
1433         * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Remove.
1434         * config/t-svr4: Remove.
1435         * config/t-vxworks (LIBGCC, INSTALL_LIBGCC, TARGET_LIBGCC2_CFLAGS)
1436         (LIBGCC2_DEBUG_CFLAGS, LIB2FUNCS_EXTRA, LIBGCC2_INCLUDES): Remove.
1437         * config/vxlib.c, config/vxlib-tls.c: Move to ../libgcc/config.
1438         * config/alpha/qrnnd.asm: Move to ../libgcc/config/alpha/qrnnd.S.
1439         * config/alpha/t-alpha, config/alpha/t-ieee: Remove.
1440         * config/alpha/t-vms (LIB2FUNCS_EXTRA, LIBGCC, INSTALL_LIBGCC): Remove.
1441         * config/alpha/vms-gcc_shell_handler.c: Move to ../libgcc/config/alpha.
1442         * config/arm/bpabi.c, config/arm/unaligned-funcs.c,
1443         config/arm/fp16.c, config/arm/linux-atomic.c,
1444         config/arm/linux-atomic-64bit.c: Move to ../libgcc/config/arm.
1445         * config/arm/t-arm-elf (LIBGCC, INSTALL_LIBGCC)
1446         (TARGET_LIBGCC2_CFLAGS): Remove.
1447         * config/arm/t-bpabi, config/arm/t-linux: Remove.
1448         * config/arm/t-linux-eabi (TARGET_LIBGCC2_CFLAGS)
1449         (LIB2FUNCS_STATIC_EXTRA): Remove.
1450         * config/arm/t-netbsd: Remove.
1451         * config/arm/t-strongarm-elf (LIBGCC, INSTALL_LIBGCC)
1452         (TARGET_LIBGCC2_CFLAGS): Remove.
1453         * config/arm/t-symbian (LIB2FUNCS_STATIC_EXTRA): Remove.
1454         * config/arm/t-wince-pe (LIBGCC, INSTALL_LIBGCC)
1455         (TARGET_LIBGCC2_CFLAGS): Remove.
1456         * config/avr/t-avr (LIB2FUNCS_EXCLUDE, TARGET_LIBGCC2_CFLAGS)
1457         (LIBGCC, INSTALL_LIBGCC): Remove.
1458         * config/bfin/t-bfin-elf (TARGET_LIBGCC2_CFLAGS): Remove.
1459         * config/bfin/t-bfin-linux: Likewise.
1460         * config/bfin/t-bfin-uclinux: Likewise.
1461         * config/c6x/eqd.c, config/c6x/eqf.c, config/c6x/ged.c,
1462         config/c6x/gef.c, config/c6x/gtd.c, config/c6x/gtf.c,
1463         config/c6x/led.c, config/c6x/lef.c, config/c6x/ltd.c,
1464         config/c6x/ltf.c: Move to ../libgcc/config/c6x.
1465         * config/c6x/t-c6x-elf (LIB2FUNCS_EXCLUDE, LIB2FUNCS_EXTRA): Remove.
1466         * config/c6x/t-c6x-uclinux (TARGET_LIBGCC2_CFLAGS): Remove.
1467         * config/cris/arit.c: Move to ../libgcc/config/cris.
1468         * config/cris/cris_abi_symbol.c: Remove.
1469         * config/cris/cris.h: Remove obsolete comment.
1470         * config/cris/mulsi3.asm: Move to ../libgcc/config/cris/mulsi3.S.
1471         * config/cris/t-cris (LIB2FUNCS_EXTRA, CRIS_LIB1CSRC)
1472         ($(LIB2FUNCS_EXTRA)): Remove.
1473         * config/cris/t-elfmulti (LIB2FUNCS_STATIC_EXTRA, INSTALL_LIBGCC)
1474         (LIBGCC): Remove.
1475         * config/cris/t-linux (TARGET_LIBGCC2_CFLAGS): Remove.
1476         * config/fr30/t-fr30: Remove.
1477         * config/frv/cmovd.c, config/frv/cmovh.c, config/frv/cmovw.c,
1478         config/frv/modi.c, config/frv/uitod.c, config/frv/uitof.c,
1479         config/frv/ulltod.c, config/frv/ulltof.c, config/frv/umodi.c: Move
1480         to ../libgcc/config/frv.
1481         * config/frv/t-frv (LIB2FUNCS_EXTRA, TARGET_LIBGCC2_CFLAGS)
1482         (cmovh.c, cmovw.c, cmovd.c, modi.c, umodi.c, uitof.c, uitod.c)
1483         (ulltof.c, LIBGCC, INSTALL_LIBGCC): Remove.
1484         * config/frv/t-linux (TARGET_LIBGCC2_CFLAGS): Remove.
1485         * config/h8300/clzhi2.c, config/h8300/ctzhi2.c,
1486         config/h8300/fixunssfsi.c, config/h8300/parityhi2.c,
1487         config/h8300/popcounthi2.c: Move to ../libgcc/config/h8300.
1488         * config/h8300/t-h8300 (LIB2FUNCS_EXTRA, TARGET_LIBGCC2_CFLAGS)
1489         (LIBGCC, INSTALL_LIBGCC): Remove.
1490         * config/i386/gthr-win32.c: Move to ../libgcc/config/i386.
1491         * config/i386/t-cygming (LIBGCC2_INCLUDES): Remove.
1492         * config/i386/t-cygwin: Remove.
1493         * config/i386/t-darwin (LIB2_SIDITI_CONV_FUNCS, LIB2FUNCS_EXTRA)
1494         (LIB2FUNCS_EXCLUDE): Remove.
1495         * config/i386/t-darwin64 (LIB2_SIDITI_CONV_FUNCS, LIB2FUNCS_EXTRA)
1496         (LIBGCC, INSTALL_LIBGCC): Remove.
1497         * config/i386/t-gthr-win32: Move to ../libgcc/config/i386.
1498         * config/i386/t-linux64 (LIBGCC, INSTALL_LIBGCC): Remove.
1499         * config/i386/t-mingw-w32: Likewise.
1500         * config/i386/t-mingw-w64: Likewise.
1501         * config/i386/t-openbsd: Likewise.
1502         * config/i386/t-nto: Remove.
1503         * config/ia64/quadlib.c: Move to ../libgcc/config/ia64.
1504         * config/ia64/t-hpux (LIBGCC, INSTALL_LIBGCC, LIB2FUNCS_EXTRA)
1505         (quadlib.c): Remove.
1506         * config/ia64/t-ia64: Remove comment.
1507         * config/iq2000/lib2extra-funcs.c: Move to
1508         ../libgcc/config/iq2000/lib2funcs.c.
1509         * config/iq2000/t-iq2000: Remove.
1510         * config/m32c/m32c-lib2.c: Move to ../libgcc/config/m32c/lib2funcs.c.
1511         * config/m32c/m32c-lib2-trapv.c: Move to ../libgcc/config/m32c/trapv.c.
1512         * config/m32r/t-linux (TARGET_LIBGCC2_CFLAGS): Remove.
1513         * config/m32c/t-m32c (LIB2FUNCS_EXTRA): Remove.
1514         * config/m32r/t-m32r (TARGET_LIBGCC2_CFLAGS, LIBGCC)
1515         (INSTALL_LIBGCC): Remove.
1516         * config/m68k/fpgnulib.c: Move to ../libgcc/config/m68k.
1517         * config/m68k/t-floatlib: Remove.
1518         * config/m68k/t-mlibs (LIBGCC, INSTALL_LIBGCC): Remove.
1519         * config/mcore/t-mcore (TARGET_LIBGCC2_CFLAGS): Remove.
1520         Fix typo.
1521         (LIBGCC, INSTALL_LIBGCC): Remove.
1522         * config/mep/mep-lib2.c: Move to ../libgcc/config/mep/lib2funcs.c.
1523         * config/mep/mep-tramp.c: Move to ../libgcc/config/mep/tramp.c.
1524         * config/mep/t-mep (LIB2FUNCS_EXTRA): Remove.
1525         * config/mips/t-elf (TARGET_LIBGCC2_CFLAGS, LIBGCC)
1526         (INSTALL_LIBGCC): Remove.
1527         * config/mips/t-isa3264: Likewise.
1528         * config/mips/t-mips (LIB2_SIDITI_CONV_FUNCS): Remove.
1529         * config/mips/t-r3900 (TARGET_LIBGCC2_CFLAGS, LIBGCC)
1530         (INSTALL_LIBGCC): Remove.
1531         * config/mips/t-sde (LIBGCC, INSTALL_LIBGCC): Remove.
1532         * config/mips/t-sr71k (TARGET_LIBGCC2_CFLAGS, LIBGCC)
1533         (INSTALL_LIBGCC): Remove.
1534         * config/mips/t-vr (TARGET_LIBGCC2_CFLAGS)
1535         (LIB2FUNCS_STATIC_EXTRA): Remove.
1536         * config/mips/vr4120-div.S: Move to ../libgcc/config/mips.
1537         * config/mmix/t-mmix (TARGET_LIBGCC2_CFLAGS): Remove.
1538         * config/mn10300/t-mn10300 (LIBGCC, INSTALL_LIBGCC): Remove.
1539         * config/pa/fptr.c, config/pa/linux-atomic.c: Move to
1540         ../libgcc/config/pa.
1541         * config/pa/lib2funcs.asm: Move to ../libgcc/config/pa/lib2funcs.S.
1542         * config/pa/quadlib.c: Move to ../libgcc/config/pa.
1543         * config/pa/t-dce-thr (LIBGCC, INSTALL_LIBGCC): Remove.
1544         * config/pa/t-linux, config/pa/t-linux64: Remove.
1545         * config/pa/t-pa-hpux, config/pa/t-pa-hpux10,
1546         config/pa/t-pa-hpux11, config/pa/t-pa64: Remove.
1547         * config/pdp11/t-pdp11 (TARGET_LIBGCC2_CFLAGS, LIB2FUNCS_EXTRA):
1548         Remove.
1549         * config/picochip/libgccExtras: Move to ../libgcc/config/picochip.
1550         * config/picochip/t-picochip (LIB2FUNCS_EXTRA, RANLIB_FOR_TARGET)
1551         (TARGET_LIBGCC2_CFLAGS, LIBGCC2_DEBUG_CFLAGS): Remove.
1552         * config/rs6000/crtresfpr.asm: Move to
1553         ../libgcc/config/rs6000/crtresfpr.S.
1554         * config/rs6000/crtresgpr.asm: Move to
1555         ../libgcc/config/rs6000/crtresgpr.S.
1556         * config/rs6000/crtresxfpr.asm: Move to
1557         ../libgcc/config/rs6000/crtresxfpr.S.
1558         * config/rs6000/crtresxgpr.asm: Move to
1559         ../libgcc/config/rs6000/crtresxgpr.S.
1560         * config/rs6000/crtsavfpr.asm: Move to
1561         ../libgcc/config/rs6000/crtsavfpr.S.
1562         * config/rs6000/crtsavgpr.asm: Move to
1563         ../libgcc/config/rs6000/crtsavgpr.S.
1564         * config/rs6000/darwin-asm.h: Move to ../libgcc/config/rs6000.
1565         * config/rs6000/darwin-fpsave.asm: Move to
1566         ../libgcc/config/rs6000/darwin-fpsave.S.
1567         * config/rs6000/darwin-gpsave.asm: Move to
1568         ../libgcc/config/rs6000/darwin-gpsave.S.
1569         * config/rs6000/darwin-tramp.asm: Move to
1570         ../libgcc/config/rs6000/darwin-tramp.S.
1571         * config/rs6000/darwin-vecsave.asm: Move to
1572         ../libgcc/config/rs6000/darwin-vecsave.S.
1573         * config/rs6000/darwin-world.asm: Move to
1574         ../libgcc/config/rs6000/darwin-world.S.
1575         * config/rs6000/e500crtres32gpr.asm: Move to
1576         ../libgcc/config/rs6000/e500crtres32gpr.S.
1577         * config/rs6000/e500crtres64gpr.asm: Move to
1578         ../libgcc/config/rs6000/e500crtres64gpr.S.
1579         * config/rs6000/e500crtres64gprctr.asm: Move to
1580         ../libgcc/config/rs6000/e500crtres64gprctr.S.
1581         * config/rs6000/e500crtrest32gpr.asm: Move to
1582         ../libgcc/config/rs6000/e500crtrest32gpr.S.
1583         * config/rs6000/e500crtrest64gpr.asm: Move to
1584         ../libgcc/config/rs6000/e500crtrest64gpr.S.
1585         * config/rs6000/e500crtresx32gpr.asm: Move to
1586         ../libgcc/config/rs6000/e500crtresx32gpr.S.
1587         * config/rs6000/e500crtresx64gpr.asm: Move to
1588         ../libgcc/config/rs6000/e500crtresx64gpr.S.
1589         * config/rs6000/e500crtsav32gpr.asm: Move to
1590         ../libgcc/config/rs6000/e500crtsav32gpr.S.
1591         * config/rs6000/e500crtsav64gpr.asm: Move to
1592         ../libgcc/config/rs6000/e500crtsav64gpr.S.
1593         * config/rs6000/e500crtsav64gprctr.asm: Move to
1594         ../libgcc/config/rs6000/e500crtsav64gprctr.S.
1595         * config/rs6000/e500crtsavg32gpr.asm: Move to
1596         ../libgcc/config/rs6000/e500crtsavg32gpr.S.
1597         * config/rs6000/e500crtsavg64gpr.asm: Move to
1598         ../libgcc/config/rs6000/e500crtsavg64gpr.S.
1599         * config/rs6000/e500crtsavg64gprctr.asm: Move to
1600         ../libgcc/config/rs6000/e500crtsavg64gprctr.S.
1601         * config/rs6000/eabi.asm: Move to ../libgcc/config/rs6000/eabi.S.
1602         * config/rs6000/t-aix43 (LIBGCC, INSTALL_LIBGCC, LIB2FUNCS_EXTRA)
1603         (TARGET_LIBGCC2_CFLAGS): Remove.
1604         * config/rs6000/t-aix52: Likewise.
1605         * config/rs6000/t-darwin: Remove.
1606         * config/rs6000/t-darwin64 (LIB2_SIDITI_CONV_FUNCS)
1607         (LIB2FUNCS_EXTRA): Remove.
1608         * config/rs6000/t-fprules (LIBGCC, INSTALL_LIBGCC): Remove.
1609         * config/rs6000/t-linux64 (TARGET_LIBGCC2_CFLAGS): Remove.
1610         * config/rs6000/t-lynx (LIB2FUNCS_EXTRA, tramp.S, LIBGCC)
1611         (INSTALL_LIBGCC): Remove.
1612         * config/rs6000/t-netbsd (LIB2FUNCS_EXTRA)
1613         (LIB2FUNCS_STATIC_EXTRA, tramp.S, crtsavfpr.S, crtresfpr.S)
1614         (crtsavgpr.S, crtresgpr.S, crtresxfpr.S, crtresxgpr.S, LIBGCC)
1615         (INSTALL_LIBGCC, $(T)crtsavfpr$(objext), $(T)crtresfpr$(objext))
1616         ($(T)crtsavgpr$(objext), $(T)crtresgpr$(objext))
1617         ($(T)crtresxfpr$(objext), $(T)crtresxgpr$(objext)): Remove.
1618         * config/rs6000/t-ppccomm (LIB2FUNCS_EXTRA)
1619         (LIB2FUNCS_STATIC_EXTRA, eabi.S, tramp.S): Remove.
1620         * config/rs6000/t-spe (LIBGCC, INSTALL_LIBGCC): Remove.
1621         * config/rs6000/t-vxworks: Remove comment.
1622         * config/rs6000/tramp.asm: Move to ../libgcc/config/rs6000/tramp.S.
1623         * config/rx/t-rx (LIBGCC, INSTALL_LIBGCC): Remove.
1624         * config/sh/linux-atomic.asm: Move to
1625         ../libgcc/config/sh/linux-atomic.S.
1626         * config/sh/t-linux (LIB2FUNCS_EXTRA): Remove.
1627         * config/sh/t-netbsd: Remove.
1628         * config/sh/t-sh (TARGET_LIBGCC2_CFLAGS, LIBGCC, INSTALL_LIBGCC):
1629         Remove.
1630         * config/sparc/t-elf (LIBGCC, INSTALL_LIBGCC): Remove.
1631         * config/sparc/t-leon: Likewise.
1632         * config/sparc/t-leon3: Likewise.
1633         * config/sparc/t-linux64: Likewise.
1634         * config/sparc/t-netbsd64: Fix typo.
1635         Remove comment.
1636         * config/spu/divmodti4.c, config/spu/divv2df3.c,
1637         config/spu/float_disf.c, config/spu/float_unsdidf.c,
1638         config/spu/float_unsdisf.c, config/spu/float_unssidf.c,
1639         config/spu/mfc_multi_tag_release.c,
1640         config/spu/mfc_multi_tag_reserve.c, config/spu/mfc_tag_release.c,
1641         config/spu/mfc_tag_reserve.c, config/spu/mfc_tag_table.c,
1642         config/spu/multi3.c: Move to ../libgcc/config/spu.
1643         * config/spu/t-spu-elf (TARGET_LIBGCC2_CFLAGS, LIB2FUNCS_EXCLUDE)
1644         (LIB2FUNCS_STATIC_EXTRA, LIB2_SIDITI_CONV_FUNCS, LIBGCC)
1645         (INSTALL_LIBGCC): Remove.
1646         * config/stormy16/stormy16-lib2.c: Move to
1647         ../libgcc/config/stormy16/lib2.c.
1648         * config/stormy16/stormy16-lib2-ashlsi3.c: Move to
1649         ../libgcc/config/stormy16/ashlsi3.c.
1650         * config/stormy16/stormy16-lib2-ashrsi3.c: Move to
1651         ../libgcc/config/stormy16/ashrsi3.c.
1652         * config/stormy16/stormy16-lib2-clzhi2.c: Move to
1653         ../libgcc/config/stormy16/clzhi2.c.
1654         * config/stormy16/stormy16-lib2-cmpsi2.c: Move to
1655         ../libgcc/config/stormy16/cmpsi2.c.
1656         * config/stormy16/stormy16-lib2-ctzhi2.c: Move to
1657         ../libgcc/config/stormy16/ctzhi2.c.
1658         * config/stormy16/stormy16-lib2-divsi3.c: Move to
1659         ../libgcc/config/stormy16/divsi3.c.
1660         * config/stormy16/stormy16-lib2-ffshi2.c: Move to
1661         ../libgcc/config/stormy16/ffshi2.c.
1662         * config/stormy16/stormy16-lib2-lshrsi3.c: Move to
1663         ../libgcc/config/stormy16/lshrsi3.c.
1664         * config/stormy16/stormy16-lib2-modsi3.c: Move to
1665         ../libgcc/config/stormy16/modsi3.c.
1666         * config/stormy16/stormy16-lib2-parityhi2.c: Move to
1667         ../libgcc/config/stormy16/parityhi2.c.
1668         * config/stormy16/stormy16-lib2-popcounthi2.c: Move to
1669         ../libgcc/config/stormy16/popcounthi2.c.
1670         * config/stormy16/stormy16-lib2-ucmpsi2.c: Move to
1671         ../libgcc/config/stormy16/ucmpsi2.c.
1672         * config/stormy16/stormy16-lib2-udivmodsi4.c: Move to
1673         ../libgcc/config/stormy16/udivmodsi4.c.
1674         * config/stormy16/stormy16-lib2-udivsi3.c: Move to
1675         ../libgcc/config/stormy16/udivsi3.c.
1676         * config/stormy16/stormy16-lib2-umodsi3.c: Move to
1677         ../libgcc/config/stormy16/umodsi3.c.
1678         * config/stormy16/t-stormy16: Move to ../libgcc/config/t-stormy16.
1679         * config/v850/t-v850 (INSTALL_LIBGCC): Remove.
1680         * config/xtensa/lib2funcs.S: Move to ../libgcc/config/xtensa.
1681         * config/xtensa/t-elf: Remove.
1682         * config/xtensa/t-xtensa (LIB2FUNCS_EXTRA): Remove.
1683         * config.gcc (*-*-freebsd*): Remove t-freebsd, t-freebsd-thread
1684         from tmake_file.
1685         (*-*-linux*, frv-*-*linux*, *-*-kfreebsd*-gnu, *-*-knetbsd*-gnu,
1686         *-*-gnu*, *-*-kopensolaris*-gnu): Remove t-linux from tmake_file.
1687         (*-*-netbsd*): Remove t-libgcc-pic from tmake_file.
1688         (*-*-openbsd*): Likewise.
1689         Remove t-openbsd-thread for posix threads.
1690         (alpha*-*-linux*): Remove alpha/t-alpha, alpha/t-ieee from tmake_file.
1691         (alpha*-*-freebsd*): Likewise.
1692         (alpha*-*-netbsd*): Likewise.
1693         (alpha*-*-openbsd*): Likewise.
1694         (alpha64-dec-*vms*): Likewise.
1695         (alpha*-dec-*vms*): Likewise.
1696         (arm*-*-netbsdelf*): Remove arm/t-netbsd from tmake_file.
1697         (arm*-*-linux*): Remove t-linux from tmake_file.
1698         Remove arm/t-bpabi from tmake_file for arm*-*-linux-*eabi.
1699         (arm*-*-uclinux*): Remove arm/t-bpabi from tmake_file for
1700         arm*-*-uclinux*eabi.
1701         (arm*-*-eabi*, arm*-*-symbianelf* ): Remove arm/t-bpabi from
1702         tmake_file for arm*-*-eabi*.
1703         (fr30-*-elf): Remove tmake_file.
1704         (hppa*64*-*-linux*): Remove tmake_file.
1705         (hppa*-*-linux*): Likewise.
1706         (hppa[12]*-*-hpux10*): Remove pa/t-pa-hpux10, pa/t-pa-hpux from
1707         tmake_file.
1708         (hppa*64*-*-hpux11*): Remove pa/t-pa64, pa/t-pa-hpux from tmake_file.
1709         (hppa[12]*-*-hpux11*): Remove pa/t-pa-hpux11, pa/t-pa-hpux from
1710         tmake_file.
1711         (i[34567]86-*-elf*): Remove tmake_file.
1712         (x86_64-*-elf*): Likewise.
1713         (i[34567]86-*-nto-qnx*): Likewise.
1714         (i[34567]86-*-cygwin*): Remove i386/t-cygwin from tmake_file.
1715         (i[34567]86-*-mingw*, x86_64-*-mingw*): Remove i386/t-gthr-win32
1716         from tmake_file if using win32 threads.
1717         (iq2000*-*-elf*): Remove tmake-file.
1718         (microblaze*-linux*): Likewise.
1719         (sh-*-elf*, sh[12346l]*-*-elf*, sh-*-linux*)
1720         (sh[2346lbe]*-*-linux*, sh-*-netbsdelf*, shl*-*-netbsdelf*)
1721         (sh5-*-netbsd*, sh5l*-*-netbsd*, sh64-*-netbsd*)
1722         (sh64l*-*-netbsd*): Remove sh/t-netbsd from tmake_file for
1723         sh5*-*-netbsd*, sh64*-netbsd*, *-*-netbsd.
1724         (xtensa*-*-elf*): Remove tmake_file.
1725
1726 2011-11-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1727
1728         * Makefile.in (LIB1ASMSRC): Don't export.
1729         (libgcc.mvars): Don't emit LIB1ASMFUNCS, LIB1ASMSRC.
1730         * config/arm/arm.c: Update lib1funcs.asm filename.
1731         * config/arm/linux-eabi.h: Likewise.
1732         * config/arm/bpabi-v6m.S, config/arm/bpabi.S,
1733         config/arm/ieee754-df.S, config/arm/ieee754-sf.S: Move to
1734         ../libgcc/config/arm.
1735         * config/arm/lib1funcs.asm: Move to ../libgcc/config/arm/lib1funcs.S.
1736         * config/arm/t-arm (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
1737         * config/arm/t-arm-elf (LIB1ASMFUNCS): Remove.
1738         * config/arm/t-bpabi: Likewise.
1739         * config/arm/t-linux (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
1740         * config/arm/t-linux-eabi (LIB1ASMFUNCS): Remove.
1741         * config/arm/t-strongarm-elf: Likewise.
1742         * config/arm/t-symbian: Likewise.
1743         * config/arm/t-vxworks: Likewise.
1744         * config/arm/t-wince-pe: Likewise.
1745         * config/avr/libgcc.S: Move to ../libgcc/config/avr.
1746         * config/avr/t-avr (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
1747         * config/bfin/lib1funcs.asm: Move to ../libgcc/config/bfin/lib1funcs.S.
1748         * config/bfin/t-bfin: Remove.
1749         * config/bfin/t-bfin-elf (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
1750         * config/bfin/t-bfin-linux: Likewise.
1751         * config/bfin/t-bfin-uclinux: Likewise.
1752         * config/c6x/lib1funcs.asm: Move to ../libgcc/config/c6x/lib1funcs.S.
1753         * config/c6x/t-c6x-elf (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
1754         * config/fr30/lib1funcs.asm: Move to ../libgcc/config/fr30/lib1funcs.S.
1755         * config/fr30/t-fr30 (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
1756         * config/frv/lib1funcs.asm: Move to ../libgcc/config/frv/lib1funcs.S.
1757         * config/frv/t-frv (CROSS_LIBGCC1, LIB1ASMSRC, LIB1ASMFUNCS): Remove.
1758         * config/h8300/fixunssfsi.c: Update lib1funcs.asm filename.
1759         * config/h8300/lib1funcs.asm: Move to
1760         ../libgcc/config/h8300/lib1funcs.S.
1761         * config/h8300/t-h8300 (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
1762         * config/i386/cygwin.asm: Move to ../libgcc/config/i386/cygwin.S.
1763         * config/i386/t-cygming (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
1764         * config/i386/t-interix: Likewise.
1765         * config/ia64/lib1funcs.asm: Move to ../libgcc/config/ia64/lib1funcs.S.
1766         * config/ia64/t-hpux (LIB1ASMFUNCS, LIBGCC1_TEST): Remove.
1767         * config/ia64/t-ia64 (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
1768         * config/iq2000/t-iq2000 (LIBGCC1, CROSS_LIBGCC1): Remove.
1769         * config/m32c/m32c.c: Update m32c-lib1.S filename.
1770         * config/m32c/m32c-lib1.S: Move to ../libgcc/config/m32c/lib1funcs.S.
1771         * config/m32c/t-m32c (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
1772         * config/m32r/t-linux (CROSS_LIBGCC1, LIBGCC1, LIBGCC1_TEST): Remove.
1773         * config/m68k/lb1sf68.asm: Move to ../libgcc/config/m68k/lb1sf68.S.
1774         * config/m68k/t-floatlib (LIB1ASMSRC, LIB1ASMFUNCS): New file.
1775         * config/mcore/lib1.asm: Move to ../libgcc/config/mcore/lib1funcs.S.
1776         * config/mcore/t-mcore (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
1777         * config/mep/mep-lib1.asm: Move to ../libgcc/config/mep/lib1funcs.S.
1778         * config/mep/t-mep (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
1779         * config/mips/mips16.S: Move to ../libgcc/config/mips.
1780         * config/mips/t-libgcc-mips16: Remove.
1781         * config/mips/t-sr71k (LIBGCC1, CROSS_LIBGCC1): Remove.
1782         * config/pa/milli64.S: Move to ../libgcc/config/pa.
1783         * config/pa/t-linux (LIB1ASMFUNCS, LIB1ASMSRC): Remove.
1784         * config/pa/t-linux64: Likewise.
1785         * config/picochip/libgccExtras/fake_libgcc.asm: Move to
1786         ../libgcc/config/picochip/lib1funcs.S.
1787         * config/picochip/t-picochip (LIB1ASMFUNCS, LIB1ASMSRC): Remove.
1788         * config/sh/lib1funcs.asm: Move to ../libgcc/config/sh/lib1funcs.S.
1789         * config/sh/lib1funcs.h: Move to ../libgcc/config/sh.
1790         * config/sh/sh.h: Update lib1funcs.asm filename.
1791         * config/sh/t-linux (LIB1ASMFUNCS_CACHE): Remove.
1792         * config/sh/t-netbsd: Likewise.
1793         * config/sh/t-sh (LIB1ASMSRC, LIB1ASMFUNCS, LIB1ASMFUNCS_CACHE):
1794         Remove.
1795         * config/sh/t-sh64 (LIB1ASMFUNCS): Remove.
1796         * config/sparc/lb1spc.asm: Move to ../libgcc/config/sparc/lb1spc.S.
1797         * config/sparc/lb1spl.asm: Remove.
1798         * config/sparc/t-elf (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
1799         * config/sparc/t-leon: Likewise.
1800         * config/spu/t-spu-elf (LIBGCC1, CROSS_LIBGCC1): Remove.
1801         * config/v850/lib1funcs.asm: Move to ../libgcc/config/v850/lib1funcs.S.
1802         * config/v850/t-v850 (LIB1ASMSRC, LIB1ASMFUNCS): Remove
1803         * config/vax/lib1funcs.asm: Move to ../libgcc/config/vax/lib1funcs.S.
1804         * config/vax/t-linux: Remove.
1805         * config/xtensa/ieee754-df.S, config/xtensa/ieee754-sf.S: Move to
1806         ../libgcc/config/xtensa.
1807         * config/xtensa/lib1funcs.asm: Move to
1808         ../libgcc/config/xtensa/lib1funcs.S.
1809         * config/xtensa/t-xtensa (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
1810         * config.gcc (bfin*-rtems*): Remove bfin/t-bfin from tmake_file.
1811         (bfin*-*): Likewise.
1812         (mips64*-*-linux*, mipsisa64*-*-linux*): Remove
1813         mips/t-libgcc-mips16 from tmake_file.
1814         (mips*-*-linux*): Likewise.
1815         (mips*-sde-elf*): Likewise.
1816         (mipsisa32-*-elf*, mipsisa32el-*-elf*, mipsisa32r2-*-elf*)
1817         (mipsisa32r2el-*-elf*, mipsisa64-*-elf*, mipsisa64el-*-elf*)
1818         (mipsisa64r2-*-elf*, mipsisa64r2el-*-elf*): Likewise.
1819         (mipsisa64sb1-*-elf*, mipsisa64sb1el-*-elf*): Likewise.
1820         (mips-*-elf*, mipsel-*-elf*): Likewise.
1821         (mips64-*-elf*, mips64el-*-elf*): Likewise.
1822         (mips64orion-*-elf*, mips64orionel-*-elf*): Likewise.
1823         (mips*-*-rtems*): Likewise.
1824         (mipstx39-*-elf*, mipstx39el-*-elf*): Likewise.
1825         (vax-*-linux*): Remove vax/t-linux from tmake_file.
1826
1827 2011-11-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1828
1829         * config.gcc (extra_parts): Remove.
1830         (*-*-freebsd*): Remove extra_parts.
1831         (*-*-linux*, frv-*-*linux*, *-*-kfreebsd*-gnu, *-*-knetbsd*-gnu,
1832         *-*-gnu*, *-*-kopensolaris*-gnu): Likewise.
1833         (*-*-netbsd*): Remove t-libc-ok, t-netbsd from tmake_file.
1834         Remove extra_parts for *-*-netbsd*1.[7-9]*, *-*-netbsd[2-9]*,
1835         *-*-netbsdelf[2-9]*.
1836         (*-*-openbsd*): Remove t-libc-ok from tmake_file.
1837         (alpha*-*-linux*): Remove extra_parts.
1838         (alpha*-*-freebsd*): Likewise.
1839         (bfin*-linux-uclibc*): Likewise.
1840         (fr30-*-elf): Likewise.
1841         (moxie-*-elf): Likewise.
1842         (moxie-*-uclinux*): Likewise.
1843         (h8300-*-rtems*): Remove h8300/t-elf from tmake_file.
1844         (h8300-*-elf*): Likewise.
1845         (hppa*64*-*-hpux11*): Remove extra_parts.
1846         (i[34567]86-*-elf*): Remove i386/t-i386elf, i386/t-crtstuff from
1847         tmake_file.
1848         (x86_64-*-elf*): Likewise.
1849         (i[34567]86-*-freebsd*): Remove tmake_file.
1850         (x86_64-*-freebsd*): Likewise.
1851         (x86_64-*-netbsd*): Likewise.
1852         (i[34567]86-*-openbsd2.*, i[34567]86-*openbsd3.[0123]): Remove
1853         t-libc-ok from tmake_file.
1854         (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
1855         i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
1856         i[34567]86-*-kopensolaris*-gnu): Remove i386/t-crtstuff from
1857         tmake_file.
1858         Remove extra_parts.
1859         (x86_64-*-linux*, x86_64-*-kfreebsd*-gnu, x86_64-*-knetbsd*-gnu):
1860         Remove i386/t-crtstuff from tmake_file.
1861         (i[34567]86-*-lynxos*): Likewise.
1862         Remove extra_parts.
1863         (ia64*-*-elf*): Remove extra_parts.
1864         (ia64*-*-freebsd*): Likewise.
1865         (ia64*-*-linux*): Likewise.
1866         (ia64-hp-*vms*): Remove ia64/t-vms from tmake_file.
1867         (m32r-*-elf*): Remove extra_parts.
1868         (m32rle-*-elf*): Likewise.
1869         (m32r-*-rtems*): Likewise.
1870         (m68k-*-elf*, fido-*-elf*): Likewise.
1871         (m68k*-*-openbsd*): Remove t-libc-ok from tmake_file.
1872         (m68k-*-rtems*): Remove extra_parts.
1873         (mep-*-*): Likewise.
1874         (microblaze*-linux*): Likewise.
1875         (mips64*-*-linux*, mipsisa64*-*-linux*): Likewise.
1876         (mips*-*-linux*): Likewise.
1877         (powerpc-*-lynxos*): Likewise.
1878         (s390x-ibm-tpf*): Likewise.
1879         (score-*-elf): Likewise.
1880         Remove tmake_file.
1881         (sh-*-elf*, sh[12346l]*-*-elf*, sh-*-linux*, sh[2346lbe]*-*-linux*,
1882         sh-*-netbsdelf*, shl*-*-netbsdelf*, sh5-*-netbsd*, sh5l*-*-netbsd*,
1883         sh64-*-netbsd*, sh64l*-*-netbsd*): Remove sh/t-elf from tmake_file.
1884         Remove sh/t-superh from tmake_file for sh*-superh-elf.
1885         Remove sh/t-linux64 from tmake_file for sh64*-*-linux*.
1886         (sh-*-rtems*): Remove sh/t-elf from tmake_file.
1887         (sh-wrs-vxworks): Likewise.
1888         (sparc-*-linux*): Remove extra_parts.
1889         (sparc64-*-linux*): Likewise.
1890         (sparc64-*-freebsd*, ultrasparc-*-freebsd*): Likewise.
1891         (xstormy16-*-elf): Likewise.
1892         (xtensa*-*-linux*): Remove xtensa/t-linux from tmake_file.
1893         (am33_2.0-*-linux*): Remove extra_parts.
1894         * configure.ac (extra_parts): Don't substitute.
1895         * configure: Regenerate.
1896         * crtstuff.c: Move to ../libgcc.
1897         * Makefile.in (CRTSTUFF_CFLAGS): Remove.
1898         (EXTRA_PARTS): Remove.
1899         (CRTSTUFF_T_CFLAGS): Remove.
1900         (MOSTLYCLEANFILES): Remove $(EXTRA_PARTS).
1901         (GCC_EXTRA_PARTS): Remove.
1902         (libgcc.mvars): Remove GCC_EXTRA_PARTS, CRTSTUFF_CFLAGS,
1903         CRTSTUFF_T_CFLAGS, CRTSTUFF_T_CFLAGS_S.
1904         Emit GCC_CFLAGS, INHIBIT_LIBC_CFLAGS.
1905         ($(T)crtbegin.o, $(T)crtend.o, $(T)crtbeginS.o, $(T)crtendS.o)
1906         ($(T)crtbeginT.o): Remove.
1907         * config/alpha/t-vms (EXTRA_PARTS): Remove.
1908         ($(T)vms-dwarf2.o, $(T)vms-dwarf2eh.o): Remove.
1909         * config/alpha/vms-dwarf2.asm: Move to
1910         ../libgcc/config/alpha/vms-dwarf2.S.
1911         * config/alpha/vms-dwarf2eh.asm: Move to
1912         ../libgcc/config/alpha/vms-dwarf2eh.S.
1913         * config/arm/crti.asm: Move to ../libgcc/config/arm/crti.S.
1914         * config/arm/crtn.asm: Move to ../libgcc/config/arm/crtn.S.
1915         * config/arm/t-arm-elf (EXTRA_MULTILIB_PARTS): Remove.
1916         ($(T)crti.o, $(T)crtn.o): Remove.
1917         * config/arm/t-linux: Remove comment.
1918         * config/arm/t-linux-eabi (EXTRA_MULTILIB_PARTS): Remove.
1919         * config/arm/t-strongarm-elf (EXTRA_MULTILIB_PARTS): Remove.
1920         ($(T)crti.o, $(T)crtn.o): Remove.
1921         * config/arm/t-symbian (EXTRA_MULTILIB_PARTS): Remove.
1922         * config/bfin/crti.s: Move to ../libgcc/config/bfin/crti.S.
1923         * config/bfin/crtn.s: Move to ../libgcc/config/bfin/crtn.S.
1924         * config/bfin/crtlibid.s: Move to ../libgcc/config/bfin/crtlibid.S.
1925         * config/bfin/t-bfin (EXTRA_PARTS): Remove.
1926         ($(T)crti.o, $(T)crtn.o): Remove.
1927         * config/bfin/t-bfin-elf (CRTSTUFF_T_CFLAGS): Remove.
1928         ($(T)crti.o, $(T)crtn.o, $(T)crtlibid.o): Remove
1929         (EXTRA_MULTILIB_PARTS): Remove.
1930         * config/bfin/t-bfin-linux (CRTSTUFF_T_CFLAGS,
1931         EXTRA_MULTILIB_PARTS): Remove.
1932         * config/bfin/t-bfin-uclinux (CRTSTUFF_T_CFLAGS): Remove.
1933         ($(T)crtlibid.o): Remove.
1934         (EXTRA_MULTILIB_PARTS): Remove.
1935         * config/c6x/crti.s: Move to ../libgcc/config/c6x/crti.S.
1936         * config/c6x/crtn.s: Move to ../libgcc/config/c6x/crtn.S.
1937         * config/c6x/t-c6x-elf ($(T)crti.o, $(T)crtn.o): Remove.
1938         (EXTRA_MULTILIB_PARTS): Remove.
1939         (CRTSTUFF_T_CFLAGS, CRTSTUFF_T_CFLAGS_S): Remove.
1940         * config/c6x/t-c6x-uclinux (CRTSTUFF_T_CFLAGS,
1941         CRTSTUFF_T_CFLAGS_S): Remove.
1942         * config/cris/t-elfmulti (CRTSTUFF_T_CFLAGS): Remove.
1943         * config/cris/t-linux (CRTSTUFF_T_CFLAGS_S): Remove.
1944         * config/fr30/crti.asm: Move to ../libgcc/config/fr30/crti.S.
1945         * config/fr30/crtn.asm: Move to ../libgcc/config/fr30/crtn.S.
1946         * config/fr30/t-fr30 ($(T)crti.o, $(T)crtn.o): Remove.
1947         * config/frv/frvbegin.c, config/frv/frvend.c: Move to
1948         ../libgcc/config/frv.
1949         * config/frv/t-frv (EXTRA_MULTILIB_PARTS): Remove.
1950         (FRVSTUFF_CFLAGS, $(T)frvbegin$(objext), $(T)frvend$(objext)): Remove.
1951         * config/frv/t-linux (EXTRA_MULTILIB_PARTS): Remove.
1952         (CRTSTUFF_T_CFLAGS): Remove.
1953         * config/h8300/crti.asm: Move to ../libgcc/config/h8300/crti.S.
1954         * config/h8300/crtn.asm: Move to ../libgcc/config/h8300/crtn.S.
1955         * config/h8300/t-elf: Remove.
1956         * config/i386/cygming-crtbegin.c, config/i386/cygming-crtend.c:
1957         Move to ../libgcc/config/i386.
1958         * config/i386/t-crtstuff: Remove.
1959         * config/i386/t-i386elf: Remove.
1960         * config/i386/t-linux64 (EXTRA_MULTILIB_PARTS): Remove.
1961         * config/i386/t-nto (CRTSTUFF_T_CFLAGS, EXTRA_PARTS): Remove.
1962         * config/ia64/crtbegin.asm: Move to ../libgcc/config/ia64/crtbegin.S.
1963         * config/ia64/crtend.asm: Move to ../libgcc/config/ia64/crtend.S.
1964         * config/ia64/crti.asm: Move to ../libgcc/config/ia64/crti.S.
1965         * config/ia64/crtn.asm: Move to ../libgcc/config/ia64/crtn.S.
1966         * config/ia64/t-vms: Remove.
1967         * config/ia64/vms-crtinit.asm: Move to
1968         ../libgcc/config/ia64/vms-crtinit.S.
1969         * config/m32c/t-m32c (EXTRA_MULTILIB_PARTS): Remove.
1970         * config/m32r/initfini.c: Move to ../libgcc/config/m32r.
1971         * config/m32r/t-linux (CRTSTUFF_T_CFLAGS_S): Remove.
1972         * config/m32r/t-m32r (CRTSTUFF_T_CFLAGS): Remove.
1973         ($(T)crtinit.o, $(T)crtfini.o): Remove.
1974         (m32rx, m32r2): Remove.
1975         (EXTRA_MULTILIB_PARTS): Remove.
1976         * config/m68k/crti.s: Move to ../libgcc/config/m68k/crti.S.
1977         * config/m68k/crtn.s: Move to ../libgcc/config/m68k/crtn.S.
1978         * config/m68k/t-crtstuff: Remove.
1979         * config/m68k/t-linux (EXTRA_MULTILIB_PARTS): Remove.
1980         * config/m68k/t-m68kelf: Remove.
1981         * config/m68k/t-uclinux (EXTRA_MULTILIB_PARTS): Remove.
1982         * config/mcore/crti.asm: Move to ../libgcc/config/mcore/crti.S.
1983         * config/mcore/crtn.asm: Move to ../libgcc/config/mcore/crtn.S.
1984         * config/mcore/t-mcore ($(T)crti.o, $(T)crtn.o): Remove.
1985         (EXTRA_PARTS, EXTRA_MULTILIB_PARTS): Remove.
1986         * config/mep/t-mep (CRTSTUFF_CFLAGS): Remove.
1987         (EXTRA_MULTILIB_PARTS): Remove.
1988         * config/microblaze/crti.s: Move to ../libgcc/config/microblaze/crti.S.
1989         * config/microblaze/crtn.s: Move to ../libgcc/config/microblaze/crtn.S.
1990         * config/microblaze/t-microblaze (EXTRA_MULTILIB_PARTS,
1991         EXTRA_PARTS): Remove.
1992         ($(T)crti$(objext), $(T)crtn$(objext)): Remove.
1993         * config/mips/crti.asm: Move to ../libgcc/config/mips/crti.S.
1994         * config/mips/crtn.asm: Move to ../libgcc/config/mips/crtn.S.
1995         * config/mips/t-elf (CRTSTUFF_T_CFLAGS): Remove.
1996         ($(T)crti.o, $(T)crtn.o): Remove.
1997         (EXTRA_MULTILIB_PARTS): Remove.
1998         * config/mips/t-isa3264: Likewise.
1999         * config/mips/t-linux64 (EXTRA_MULTILIB_PARTS): Remove.
2000         * config/mips/t-r3900 (EXTRA_MULTILIB_PARTS): Remove.
2001         (CRTSTUFF_T_CFLAGS): Remove.
2002         * config/mips/t-sde (CRTSTUFF_T_CFLAGS): Remove.
2003         ($(T)crti.o, $(T)crtn.o): Remove.
2004         (EXTRA_MULTILIB_PARTS): Remove.
2005         * config/mips/t-sr71k (EXTRA_MULTILIB_PARTS, CRTSTUFF_T_CFLAGS):
2006         Remove.
2007         ($(T)crti.o, $(T)crtn.o): Remove.
2008         * config/mips/t-st (EXTRA_MULTILIB_PARTS): Remove.
2009         * config/mips/t-vr (CRTSTUFF_T_CFLAGS): Remove.
2010         (EXTRA_MULTILIB_PARTS): Remove.
2011         ($(T)crti.o, $(T)crtn.o): Remove.
2012         * config/mmix/crti.asm: Move to ../libgcc/config/crti.S.
2013         * config/mmix/crtn.asm: Move to ../libgcc/config/crtn.S.
2014         * config/mmix/t-mmix (CRTSTUFF_T_CFLAGS): Remove.
2015         * config/moxie/crti.asm, config/moxie/crtn.asm: Remove.
2016         * config/pa/stublib.c: Move to libgcc/config/pa.
2017         * config/pa/t-linux (CRTSTUFF_T_CFLAGS_S): Remove.
2018         * config/pa/t-linux64 (CRTSTUFF_T_CFLAGS_S): Remove.
2019         * config/pa/t-pa-hpux11 (LIBGCCSTUB_OBJS, stublib.c): Remove.
2020         (pthread_default_stacksize_np-stub.o, pthread_mutex_lock-stub.o)
2021         (pthread_mutex_unlock-stub.o, pthread_once-stub.o)
2022         ($(T)libgcc_stub.a): Remove.
2023         * config/pa/t-pa64 (LIBGCCSTUB_OBJS, stublib.c): Remove.
2024         (rfi-stub.o, dfi-stub.o, cxaf-stub.o, jvrc-stub.o)
2025         (pthread_default_stacksize_np-stub.o, pthread_mutex_lock-stub.o)
2026         (pthread_mutex_unlock-stub.o, pthread_once-stub.o)
2027         ($(T)libgcc_stub.a): Remove.
2028         * config/rs6000/eabi-cn.asm: Move to
2029         ../../../libgcc/config/rs6000/eabi-cn.S.
2030         * config/rs6000/eabi-ci.asm: Move to
2031         ../../../libgcc/config/rs6000/eabi-ci.S.
2032         * config/rs6000/sol-ci.asm: Move to
2033         ../../../libgcc/config/rs6000/sol-ci.S.
2034         * config/rs6000/sol-cn.asm: Move to
2035         ../../../libgcc/config/rs6000/sol-cn.S.
2036         * config/rs6000/t-lynx (EXTRA_MULTILIB_PARTS): Remove.
2037         (CRTSTUFF_T_CFLAGS, CRTSTUFF_T_CFLAGS_S): Remove.
2038         * config/rs6000/t-netbsd (CRTSTUFF_T_CFLAGS, CRTSTUFF_T_CFLAGS_S):
2039         Remove.
2040         (EXTRA_MULTILIB_PARTS): Remove.
2041         * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Remove.
2042         (ecrti.S, ecrtn.S, ncrti.S, ncrtn.S): Remove.
2043         ($(T)ecrti$(objext), $(T)ecrtn$(objext), $(T)ncrti$(objext),
2044         ($(T)ncrtn$(objext)): Remove.
2045         (CRTSTUFF_T_CFLAGS, CRTSTUFF_T_CFLAGS_S): Remove.
2046         * config/rs6000/t-vxworks (EXTRA_MULTILIB_PARTS): Remove.
2047         * config/rx/t-rx (EXTRA_MULTILIB_PARTS): Remove.
2048         * config/score/crti.asm: Move to ../libgcc/config/score/crti.S.
2049         * config/score/crtn.asm: Move to ../libgcc/config/score/crtn.S.
2050         * config/score/t-score-elf: Remove.
2051         * config/sh/crt1.asm: Move to ../libgcc/config/sh/crt1.S.
2052         * config/sh/crti.asm: Move to ../libgcc/config/sh/crti.S.
2053         * config/sh/crtn.asm: Move to ../libgcc/config/sh/crtn.S.
2054         * config/sh/lib1funcs-4-300.asm: Move to
2055         ../../../libgcc/config/sh/lib1funcs-4-300.S.
2056         * config/sh/lib1funcs-Os-4-200.asm: Move to
2057         ../libgcc/config/sh/lib1funcs-Os-4-200.S.
2058         * config/sh/t-elf: Remove.
2059         * config/sh/t-linux (EXTRA_MULTILIB_PARTS): Remove.
2060         * config/sh/t-linux64: Remove.
2061         * config/sh/t-netbsd (EXTRA_MULTILIB_PARTS): Remove.
2062         * config/sh/t-sh ($(T)crt1.o, $(T)crti.o, $(T)crtn.o): Remove.
2063         (IC_EXTRA_PARTS, OPT_EXTRA_PARTS, EXTRA_MULTILIB_PARTS): Remove.
2064         ($(T)ic_invalidate_array_4-100.o)
2065         ($(T)libic_invalidate_array_4-100.a)
2066         ($(T)ic_invalidate_array_4-200.o)
2067         ($(T)libic_invalidate_array_4-200.a, $(T)ic_invalidate_array_4a.o)
2068         ($(T)libic_invalidate_array_4a.a, $(T)sdivsi3_i4i-Os-4-200.o)
2069         ($(T)udivsi3_i4i-Os-4-200.o, $(T)unwind-dw2-Os-4-200.o)
2070         ($(T)libgcc-Os-4-200.a, $(T)div_table-4-300.o)
2071         ($(T)libgcc-4-300.a): Remove.
2072         * config/sh/t-superh: Remove.
2073         * config/sh/t-vxworks (EXTRA_MULTILIB_PARTS): Remove.
2074         * config/sparc/t-linux64 (CRTSTUFF_T_CFLAGS): Remove.
2075         * config/spu/cache.S: Move to ../libgcc/config/spu.
2076         * config/spu/cachemgr.c: Move to ../libgcc/config/spu.
2077         * config/spu/t-spu-elf (CRTSTUFF_T_CFLAGS): Remove.
2078         (EXTRA_MULTILIB_PARTS): Remove.
2079         ($(T)cachemgr.o, $(T)cachemgr_nonatomic.o, $(T)libgcc_%.a): Remove.
2080         ($(T)cache8k.o, $(T)cache16k.o, $(T)cache32k.o, $(T)cache32k.o)
2081         ($(T)cache64k.o, $(T)cache128k.o): Remove.
2082         * config/t-freebsd (CRTSTUFF_T_CFLAGS_S): Remove.
2083         * config/t-libc-ok: Remove.
2084         * config/t-linux (CRTSTUFF_T_CFLAGS_S): Remove.
2085         * config/t-lynx (CRTSTUFF_T_CFLAGS_S): Remove.
2086         * config/t-netbsd: Remove.
2087         * config/t-svr4 (CRTSTUFF_T_CFLAGS_S): Remove.
2088         * config/t-vxworks (EXTRA_MULTILIB_PARTS): Remove.
2089         * config/vms/t-vms (VMS_EXTRA_PARTS): Remove.
2090         ($(T)vcrt0.o, $(T)pcrt0.o): Remove.
2091         * config/vms/vms-ucrt0.c: Move to ../libgcc/config/vms.
2092         * config/xtensa/crti.asm: Move to ../libgcc/config/xtensa/crti.S.
2093         * config/xtensa/crtn.asm: Move to ../libgcc/config/xtensa/crtn.S.
2094         * config/xtensa/t-elf (CRTSTUFF_T_CFLAGS, CRTSTUFF_T_CFLAGS_S): Remove.
2095         (EXTRA_MULTILIB_PARTS): Remove.
2096         * config/xtensa/t-linux: Remove.
2097         * config/xtensa/t-xtensa ($(T)crti.o, $(T)crtn.o): Remove.
2098
2099 2011-11-02  Uros Bizjak  <ubizjak@gmail.com>
2100
2101         * config/i386/i386.c (bdesc_args) [IX86_BUILTIN_CVTTPD2DQ256]: Use
2102         CODE_FOR_fix_truncv4dfv4si2, not CODE_FOR_fix_truncv4sfv4si2.
2103
2104 2011-11-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2105
2106         PR translation/45116
2107         * Makefile.in (slibdir): Remove, don't export.
2108         (SHLIB_NM_FLAGS): Remove.
2109         (libgcc.mvars): Don't emit SHLIB_LINK, SHLIB_INSTALL,
2110         SHLIB_DLLDIR, SHLIB_EXT, SHLIB_MKMAP, SHLIB_MKMAP_OPTS,
2111         SHLIB_MAPFILES, SHLIB_NM_FLAGS.
2112         (DRIVER_DEFINES): Test SHLIB instead of SHLIB_LINK.
2113         (gcc.o): Pass SHLIB instead of SHLIB_LINK.
2114         (gccspec.o): Likewise.
2115         (installdirs): Don't create $(DESTDIR)$(slibdir).
2116         * configure.ac (slibdir): Remove.
2117         * configure: Regenerate.
2118         * libgcc-libsystem.ver: Move to ../libgcc/config.
2119         * mkmap-flat.awk, mkmap-symver.awk: Move to ../libgcc.
2120         * config/libgcc-glibc.ver: Move to ../libgcc/config.
2121         * config/t-libunwind (SHLIB_LC): Remove.
2122         * config/t-linux (SHLIB_MAPFILES): Remove.
2123         * config/t-slibgcc-dummy: Rename to config/t-slibgcc.
2124         * config/t-slibgcc-elf-ver: Remove.
2125         * config/t-slibgcc-libgcc, config/t-slibgcc-nolc-override: Move to
2126         ../libgcc/config.
2127         * config/alpha/libgcc-alpha-ldbl.ver, config/alpha/t-linux: Move
2128         to ../libgcc/config/alpha.
2129         * config/alpha/t-vms (shlib_version, SHLIB_EXT, SHLIB_OBJS,
2130         SHLIB_NAME, SHLIB_MULTILIB, SHLIB_INSTALL, SHLIB_SYMVEC,
2131         SHLIB_SYMVECX2, SHLIB_LINK): Remove.
2132         * config/arm/libgcc-bpabi.ver: Move to ../libgcc/config/arm.
2133         * config/arm/t-bpabi (SHLIB_MAPFILES): Remove.
2134         * config/arm/t-netbsd (SHLIB_EXT, SHLIB_NAME, SHLIB_SONAME,
2135         SHLIB_OBJS, SHLIB_LINK, SHLIB_INSTALL): Remove.
2136         * config/arm/t-symbian (SHLIB_LC): Remove.
2137         * config/bfin/libgcc-bfin.ver: Move to
2138         ../libgcc/config/bfin/libgcc-glibc.ver.
2139         * config/bfin/t-bfin-linux (SHLIB_MAPFILES): Remove.
2140         * config/c6x/libgcc-c6xeabi.ver: Move to
2141         ../libgcc/config/c6x/libgcc-eabi.ver.
2142         * config/c6x/t-c6x-elf (SHLIB_MAPFILES): Remove.
2143         * config/cris/libgcc.ver: Move to
2144         ../libgcc/config/cris/libgcc-glibc.ver.
2145         * config/cris/t-linux (SHLIB_MAPFILES): Remove.
2146         * config/frv/libgcc-frv.ver: Move to ../libgcc/config/frv.
2147         * config/frv/t-linux (SHLIB_MAPFILES): Remove.
2148         * config/i386/darwin-libgcc.10.4.ver: Move to
2149         ../libgcc/config/i386/libgcc-darwin.10.4.ver.
2150         * config/i386/darwin-libgcc.10.5.ver: Move to
2151         ../libgcc/config/i386/libgcc-darwin.10.5.ver.
2152         * config/i386/libgcc-glibc.ver: Move to ../libgcc/config/i386.
2153         * config/i386/t-cygming (SHLIB_EXT, SHLIB_IMPLIB, SHLIB_SOVERSION,
2154         SHLIB_SONAME, SHLIB_MAP, SHLIB_OBJS, SHLIB_DIR, SHLIB_SLIBDIR_QUAL)
2155         SHLIB_PTHREAD_CFLAG, SHLIB_PTHREAD_LDFLAG, SHLIB_LINK,
2156         SHLIB_INSTALL, SHLIB_MKMAP, SHLIB_MKMAP_OPTS, SHLIB_MAPFILES): Remove.
2157         * config/i386/t-cygwin (SHLIB_LC, SHLIB_EH_EXTENSION,
2158         SHLIB_IMPLIB, SHLIB_SONAME, SHLIB_MKMAP_OPTS): Remove.
2159         * config/i386/t-dlldir, config/i386/t-dlldir-x: Move to
2160         ../libgcc/config/i386.
2161         * config/i386/t-dw2-eh, config/i386/t-sjlj-eh: Move to
2162         ../libgcc/config/i386.
2163         * config/i386/t-linux: Move to ../libgcc/config/i386.
2164         * config/i386/t-mingw-pthread: Move to ../libgcc/config/i386.
2165         * config/i386/t-mingw-w32 (SHLIB_LC): Remove.
2166         * config/i386/t-mingw-w64: Likewise.
2167         * config/i386/t-mingw32: Remove.
2168         * config/ia64/libgcc-glibc.ver, config/ia64/libgcc-ia64.ver: Move
2169         to ../libgcc/config/ia64.
2170         * config/ia64/t-glibc: Remove.
2171         * config/ia64/t-hpux (SHLIB_EXT, SHLIB_LINK, SHLIB_INSTALL): Remove.
2172         * config/ia64/t-ia64 (SHLIB_MAPFILES): Remove.
2173         * config/ia64/t-vms (shlib_version, SHLIB_EXT, SHLIB_OBJS,
2174         SHLIB_NAME, SHLIB_MULTILIB, SHLIB_INSTALL, SHLIB_LINK): Remove.
2175         * config/ia64/vms_symvec_libgcc_s.opt: Remove.
2176         * config/m32r/libgcc-glibc.ver: Move to ../libgcc/config/m32r.
2177         * config/m32r/t-linux (SHLIB_MAPFILES): Remove.
2178         * config/m68k/t-slibgcc-elf-ver: Move to ../libgcc/config/m68k.
2179         * config/mips/t-libgcc-mips16 (SHLIB_MAPFILES): Remove.
2180         * config/pa/t-hpux-shlib: Move to ../libgcc/config/pa/t-slibgcc-hpux.
2181         * config/pa/t-slibgcc-dwarf-ver, config/pa/t-slibgcc-sjsj-ver:
2182         Move to ../libgcc/config/pa.
2183         * config/rs6000/darwin-libgcc.10.4.ver: Move to
2184         ../libgcc/config/rs6000/libgcc-darwin.10.4.ver.
2185         * config/rs6000/darwin-libgcc.10.5.ver: Move to
2186         ../libgcc/config/rs6000/libgcc-darwin.10.5.ver.
2187         * config/rs6000/t-aix43 (SHLIB_EXT, SHLIB_LINK, SHLIB_INSTALL,
2188         SHLIB_LIBS, SHLIB_MKMAP, SHLIB_NM_FLAGS, AR_FLAGS_FOR_TARGET): Remove.
2189         * config/rs6000/t-aix52: Likewise.
2190         * config/sh/libgcc-excl.ver, config/sh/libgcc-glibc.ver: Move to
2191         ../libgcc/config/sh.
2192         * config/sparc/libgcc-sparc-glibc.ver: Move to
2193         ../libgcc/config/sparc/libgcc-glibc.ver.
2194         * config/sparc/t-linux: Move to ../libgcc/config/sparc.
2195         * config/xtensa/t-linux (SHLIB_MAPFILES): Remove.
2196         * config/xtensa/libgcc-xtensa.ver: Move to
2197         ../libgcc/config/xtensa/libgcc-glibc.ver.
2198         * config.gcc (*-*-freebsd*): Replace t-slibgcc-elf-ver with
2199         t-slibgcc in tmake_file.
2200         Remove t-slibgcc-nolc-override for *-*-freebsd[34],
2201         *-*-freebsd[34].* with pthreads.
2202         (*-*-linux*, frv-*-*linux*, *-*-kfreebsd*-gnu,
2203         *-*-knetbsd*-gnu, *-*-gnu*, *-*-kopensolaris*-gnu): Replace
2204         t-slibgcc-elf-ver with t-slibgcc in tmake_file.
2205         (*-*-netbsd*): Likewise.
2206         (*-*-solaris2*): Replace t-slibgcc-dummy with t-slibgcc in tmake_file.
2207         (*-*-*vms*): Add t-slibgcc to tmake_file.
2208         (alpha*-*-linux*): Remove alpha/t-linux from tmake_file.
2209         (alpha*-dec-osf5.1*): Replace t-slibgcc-dummy with t-slibgcc in
2210         tmake_file.
2211         (arm*-*-linux*): Remove t-slibgcc-libgcc from tmake_file for
2212         arm*-*-linux-*eabi.
2213         (bfin*-linux-uclibc*): Replace t-slibgcc-dummy with t-slibgcc in
2214         tmake_file.
2215         (crisv32-*-linux*, cris-*-linux*): Likewise.
2216         (hppa*-*-linux*): Remove t-slibgcc-libgcc, pa/t-slibgcc-sjlj-ver,
2217         pa/t-slibgcc-dwarf-ver from tmake_file.
2218         (hppa[12]*-*-hpux10*): Replace pa/t-hpux-shlib with t-slibgcc in
2219         tmake_file.
2220         Remove pa/t-slibgcc-sjlj-ver, pa/t-slibgcc-dwarf-ver from tmake_file.
2221         (hppa*64*-*-hpux11*): Likewise.
2222         (hppa[12]*-*-hpux11*): Likewise.
2223         (i[34567]86-*-darwin*): Replace t-slibgcc-dummy in t-slibgcc in
2224         tmake_file.
2225         (x86_64-*-darwin*): Likewise.
2226         (i[34567]86-*-cygwin*): Remove tmake_eh_file, tmake_dlldir_file.
2227         Add t-slibgcc to tmake_file.
2228         (i[34567]86-*-mingw*, x86_64-*-mingw*): Likewise.
2229         Remove i386/t-mingw32 from tmake_file unless x86_64-w64-*,
2230         i[34567]86-w64-*.
2231         Remove i386/t-mingw-pthread from tmake_file.
2232         (ia64*-*-linux*): Remove ia64/t-glibc from tmake_file.
2233         (ia64*-*-hpux*): Add t-slibgcc to tmake_file.
2234         (ia64-hp-*vms*): Likewise.
2235         (m32r-*-linux*): Replace t-slibgcc-elf-ver with t-slibgcc in
2236         tmake_file.
2237         (m32rle-*-linux*): Likewise.
2238         (m68k-*-linux*): Remove m68k/t-slibgcc-elf-ver from tmake_file.
2239         (microblaze*-linux*): Remove t-slibgcc-elf-ver,
2240         t-slibgcc-nolc-override from tmake_file.
2241         (mips-sgi-irix6.5*): Replace t-slibgcc-dummy with t-slibgcc in
2242         tmake_file.
2243         (powerpc-*-darwin*): Likewise.
2244         (powerpc64-*-darwin*): Likewise.
2245         (powerpc-*-freebsd*): Remove t-slibgcc-libgcc from tmake_file.
2246         (powerpc-*-linux*, powerpc64-*-linux*): Likewise.
2247         (rs6000-ibm-aix4.[3456789]*, powerpc-ibm-aix4.[3456789]*): Add
2248         t-slibgcc to tmake_file.
2249         (rs6000-ibm-aix5.1.*, powerpc-ibm-aix5.1.*): Likewise.
2250         (rs6000-ibm-aix5.2.*, powerpc-ibm-aix5.2.*): Likewise.
2251         (rs6000-ibm-aix5.3.*, powerpc-ibm-aix5.3.*): Likewise.
2252         (rs6000-ibm-aix[6789].*, powerpc-ibm-aix[6789].*): Likewise.
2253         (sparc-*-linux*): Remove sparc/t-linux from tmake_file.
2254         (sparc64-*-linux*): Likewise.
2255         (tic6x-*-uclinux): Replace t-slibgcc-elf-ver with t-slibgcc in
2256         tmake_file.
2257         (i[34567]86-*-linux*, x86_64-*-linux*, i[34567]86-*-kfreebsd*-gnu,
2258         x86_64-*-kfreebsd*-gnu, i[34567]86-*-gnu*): Remove i386/t-linux
2259         from tmake_file.
2260
2261 2011-11-02  Richard Guenther  <rguenther@suse.de>
2262
2263         PR tree-optimization/50902
2264         * tree-vect-stmts.c (vectorizable_load): Properly convert
2265         an invariant initializer element.
2266
2267 2010-11-02  Richard Guenther  <rguenther@suse.de>
2268
2269         PR tree-optimization/50890
2270         * gimple.h (gimple_fold_call): Remove.
2271         * gimple-fold.c (fold_stmt_1): Move all call related code to ...
2272         (gimple_fold_call): ... here.  Make static.  Update the
2273         cannot-inline flag on direct calls.
2274         * ipa-inline.c (early_inliner): Copy the cannot-inline flag
2275         from the statements to the edges.
2276
2277 2011-11-01  Ian Lance Taylor  <iant@google.com>
2278
2279         * godump.c (struct macro_hash_value): Define.
2280         (macro_hash_hashval): New static function.
2281         (macro_hash_eq, macro_hash_del): New static functions.
2282         (go_define): Use macro_hash_value to store values in macro_hash.
2283         Replace an old value on a redefinition.  Don't print anything to
2284         go_dump_file.
2285         (go_undef): Delete the entry from the hash table.
2286         (go_output_typedef): For an enum, use macro_hash_value, and don't
2287         print anything to go_dump_file.
2288         (go_print_macro): New static function.
2289         (go_finish): Traverse macro_hash with go_print_macro.
2290         (dump_go_spec_init): Update macro_hash creation for macro_hash_value.
2291
2292 2011-11-02  Alan Modra  <amodra@gmail.com>
2293
2294         * config/rs6000/rs6000.c (rs6000_code_end): Declare ATTRIBUTE_UNUSED.
2295
2296 2011-11-01  Paolo Carlini  <paolo.carlini@oracle.com>
2297
2298         PR c++/44277
2299         * doc/invoke.texi: Document -Wzero-as-null-pointer-constant.
2300
2301 2011-11-01  Andrew Stubbs  <ams@codesourcery.com>
2302
2303         * config/arm/bpabi.h (BE8_LINK_SPEC): Recognize generic-armv7 tuning.
2304
2305 2011-11-01  Uros Bizjak  <ubizjak@gmail.com>
2306
2307         * config/i386/i386.md (splitters for int-float conversion): Use
2308         SUBREG_REG on SUBREGs in splitter constraints.
2309
2310 2011-11-01  Jakub Jelinek  <jakub@redhat.com>
2311
2312         * config/i386/i386-protos.h (ix86_expand_adjust_ufix_to_sfix_si): New
2313         prototype.
2314         * config/i386/i386.c (ix86_expand_adjust_ufix_to_sfix_si): New
2315         function.
2316         * config/i386/sse.md (fixuns_trunc<mode><sseintvecmodelower>2): Use it.
2317         (ssepackfltmode): New mode attr.
2318         (vec_pack_ufix_trunc_<mode>): New expander.
2319
2320 2011-11-01  Uros Bizjak  <ubizjak@gmail.com>
2321
2322         PR target/50940
2323         * config/i386/i386.md (floatsi<mode>2_vector_sse_with_temp splitter):
2324         Compare <ssevecmode>mode to V4SFmode, not V4SImode.
2325
2326 2011-11-01  Peter Bergner  <bergner@vnet.ibm.com>
2327
2328         * config.gcc (powerpc*-*-linux*): Add powerpc*-*-linux*ppc476* variant.
2329         * config/rs6000/476.h: New file.
2330         * config/rs6000/476.opt: Likewise.
2331         * config/rs6000/rs6000.h (TARGET_LINK_STACK): New define.
2332         (SET_TARGET_LINK_STACK): Likewise.
2333         (TARGET_ASM_CODE_END): Define.
2334         * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
2335         TARGET_LINK_STACK for -mtune=476 and -mtune=476fp.
2336         (rs6000_legitimize_tls_address): Emit the link stack preserving GOT
2337         code if TARGET_LINK_STACK.
2338         (rs6000_emit_load_toc_table): Likewise.
2339         (output_function_profiler): Likewise
2340         (macho_branch_islands): Likewise
2341         (machopic_output_stub): Likewise
2342         (get_ppc476_thunk_name): New function.
2343         (rs6000_code_end): Likewise.
2344         * config/rs6000/rs6000.md (load_toc_v4_PIC_1, load_toc_v4_PIC_1b):
2345         Convert to a define_expand.
2346         (load_toc_v4_PIC_1_normal): New define_insn.
2347         (load_toc_v4_PIC_1_476): Likewise.
2348         (load_toc_v4_PIC_1b_normal): Likewise.
2349         (load_toc_v4_PIC_1b_476): Likewise.
2350
2351 2011-11-01  Georg-Johann Lay  <avr@gjlay.de>
2352
2353         PR target/50910
2354         * config/avr/avr.opt (-mbranch-cost=): New option.
2355         * config/avr/avr.h (BRANCH_COST): Define to avr_branch_cost.
2356         * config/avr/avr.c (avr_rtx_costs_1): Adjust [U]DIV/[U]MOD costs.
2357         * config/avr/avr.md (*addqi3.lt0, *addhi3.lt0, *addsi3.lt0): New insns.
2358         (*addhi3_zero_extend1): Remove % in constraint of operand 1.
2359         (*addhi3.sign_extend1, *subhi3.sign_extend2): New insns.
2360
2361 2011-11-01  Tom de Vries  <tom@codesourcery.com>
2362
2363         PR tree-optimization/50908
2364         * tree-ssa-tail-merge.c (update_vuses): Now that edges are removed
2365         before update_vuses, test for 1 predecessor rather than two.
2366         (delete_block_update_dominator_info): New function, part of it factored
2367         out of ...
2368         (replace_block_by): Use delete_block_update_dominator_info.  Call
2369         update_vuses after deleting bb1 and updating dominator info, instead of
2370         before.
2371
2372 2011-11-01  David S. Miller  <davem@davemloft.net>
2373
2374         * config/sparc/sparc.c (vector_init_faligndata): New function.
2375         (sparc_expand_vector_init): Use it for V4HImode on VIS1.
2376
2377         * config/sparc/sparc.c (sparc_expand_vcond): New function.
2378         * config/sparc/sparc-protos.h (sparc_expand_vcond): Declare it.
2379         * config/sparc/sparc.md (vcond<mode><mode>): New VIS3 expander.
2380         (vconduv8qiv8qi): Likewise.
2381
2382 2011-11-01  Alexandre Oliva  <aoliva@redhat.com>
2383
2384         PR debug/50869
2385         * cselib.c (cfa_base_preserved_regno): Initialize.
2386         (cselib_expand_value_rtx_1): Don't expand it.
2387         * var-tracking.c (vt_expand_var_loc_chain): Initialize depth.
2388         Check it's only zero if result is NULL.
2389
2390 2011-11-01  Jakub Jelinek  <jakub@redhat.com>
2391
2392         * config/i386/sse.md (fixuns_trunc<mode><sseintvecmodelower>2): New
2393         expander.
2394
2395         * config/i386/sse.md (sseintvecmode): Remove duplicate modes.
2396         (sseintvecmodelower): New mode iterator.
2397         (floatv8siv8sf2, floatunsv4siv4sf2): Macroize into...
2398         (float<sseintvecmodelower><mode>2): ... this using VF1 iterator.
2399         (floatunsv4siv4sf2): Macroize into...
2400         (floatuns<sseintvecmodelower><mode>2): ... this using VF1 iterator.
2401
2402 2011-10-31  David S. Miller  <davem@davemloft.net>
2403
2404         * config/sparc/sparc.md (cmask patterns): Allow zero operand.
2405
2406         * dwarf2out.c (cached_next_real_insn): New.
2407         (dwarf2out_end_epilogue): Set it to NULL_RTX.
2408         (dwarf2out_var_location): Remove cached_next_real_insn local static.
2409
2410 2011-10-31  Richard Henderson  <rth@redhat.com>
2411
2412         * config/i386/sse.md (floatv8siv8sf2): Rename from avx_cvtdq2ps256.
2413         (floatv4siv4sf2): Rename from sse2_cvtdq2ps.
2414         (floatunsv4siv4sf2): Rename from sse2_cvtudq2ps.
2415         (fix_truncv8sfv8si2): Rename from avx_cvttps2dq256.
2416         (fix_truncv4sfv4si2): Rename from sse2_cvttps2dq.
2417         (floatv4siv4df2): Rename from avx_cvtdq2pd256.
2418         (fix_truncv4dfv4si2): Rename from avx_cvttpd2dq256.
2419         (vec_unpacku_float_hi_v8si): Update for insn pattern name changes.
2420         * config/i386/i386.md (splitters for int-float conversion): Likewise.
2421         * config/i386/i386.c (ix86_split_convert_uns_si_sse): Likewise.
2422         (bdesc_args): Likewise.
2423         (enum ix86_builtins) [IX86_BUILTIN_CVTUDQ2PS]: Remove.
2424         (ix86_vectorize_builtin_conversion): Remove.
2425         (TARGET_VECTORIZE_BUILTIN_CONVERSION): Remove.
2426
2427 2011-10-31  Martin Jambor  <mjambor@suse.cz>
2428
2429         * ipa-prop.c (mark_modified): Moved up in the file.
2430         (is_parm_modified_before_call): Renamed to
2431         is_parm_modified_before_stmt, moved up in the file.
2432         (load_from_unmodified_param): New function.
2433         (compute_complex_assign_jump_func): Also attempt to create pass
2434         through jump functions for values loaded from (addressable)
2435         parameters.
2436
2437 2011-10-31  Jakub Jelinek  <jakub@redhat.com>
2438
2439         * tree-vect-stmts.c (vectorizable_shift): If op1 is vect_external_def
2440         in a loop and has different type from op0, cast it to op0's type
2441         before the loop first.  For slp give up.  Don't crash if op1_vectype
2442         is NULL.
2443
2444 2011-10-31  Paul Brook  <paul@codesourcery.com>
2445
2446         * cgraphunit.c: Don't mark clones as static constructors.
2447
2448 2011-10-31  David Edelsohn  <dje.gcc@gmail.com>
2449
2450         * gcc-ar: Do not include stdio.h.
2451
2452 2011-10-31  Diego Novillo  <dnovillo@google.com>
2453
2454         * tree-streamer-out.c (pack_ts_base_value_fields): Emit
2455         TYPE_ADDR_SPACE.
2456         * tree-streamer-in.c (unpack_ts_base_value_fields): Read
2457         TYPE_ADDR_SPACE.
2458
2459 2011-10-30  David S. Miller  <davem@davemloft.net>
2460
2461         * config/sparc/sparc.c (vector_init_bshuffle): New function.
2462         (vector_init_fpmerge): New function.
2463         (sparc_expand_vector_init): Use them to improve non-const cases.
2464
2465         * dwarf2out.c (dwarf2out_var_location): When processing several
2466         consecutive location notes, cache the result of next_real_insn().
2467
2468 2011-10-30  Uros Bizjak  <ubizjak@gmail.com>
2469
2470         * config/i386/i386.md (avx2_vec_dup<mode>): Macroize insn from
2471         avx2_vec_dup{v8sf,v4sf} using VF1 mode iterator.
2472         (vec_dupv4sf): Remove expander.
2473         (vec_dupv4sf): Merge from *vec_dupv4sf and *vec_dupv4sf_avx.
2474         (vec_dupv2df): Remove expander.
2475         (vec_dupv2df): Merge from *vec_dupv2df and *vec_dupv2df_sse3.
2476         (*vec_concatv2df): Merge *vec_concatv2df_sse3.
2477         (*vec_dupv4si): Merge *vec_dupv4si_avx.
2478         (*vec_dupv2di): Merge *vec_dupv2di_sse3.
2479
2480 2011-10-30  Dmitry Plotnikov  <dplotnikov@ispras.ru>
2481
2482         * tree-cfg.c (verify_gimple_assign_unary): Allow vector conversions.
2483         * optabs.c (supportable_convert_operation): New function.
2484         * optabs.h (supportable_convert_operation): New prototype.
2485         * tree-vect-stmts.c (vectorizable_conversion): Change condition and
2486         behavior for NONE modifier case.
2487         * tree.h (VECTOR_INTEGER_TYPE_P): New macro.
2488
2489 2011-10-30  Jakub Jelinek  <jakub@redhat.com>
2490
2491         * tree-vectorizer.h (NUM_PATTERNS): Bump to 9.
2492         * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): New
2493         function.
2494         (vect_vect_recog_func_ptrs): Add it.
2495
2496 2011-10-30  David S. Miller  <davem@davemloft.net>
2497
2498         * reorg.c (label_before_next_insn): New function.
2499         (relax_delay_slots): Use it instead of prev_label.
2500         * rtl.h (prev_label): Delete declaration.
2501         * emit-rtl.c (prev_label): Remove.
2502
2503 2011-10-30  Revital Eres  <revital.eres@linaro.org>
2504
2505         * modulo-sched.c (generate_prolog_epilog): Mark prolog and epilog
2506         as BB_DISABLE_SCHEDULE.
2507         (mark_loop_unsched): New function.
2508         (sms_schedule): Call it.
2509
2510 2011-10-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2511
2512         PR target/50617
2513         * config/pa/protos.h (attr_length_save_restore_dltp): Delete.
2514         (cmpib_comparison_operator): Likewise.
2515         (following_cal, output_and, output_ior, output_move_double,
2516         output_fp_move_double, output_block_move, output_block_clear,
2517         output_cbranch, output_lbranch, output_bb, output_bvb, output_dbra,
2518         output_movb, output_parallel_movb, output_parallel_addb, output_call,
2519         output_indirect_call, output_millicode_call, output_mul_insn,
2520         output_div_insn, output_mod_insn, singlemove_string,
2521         output_arg_descriptor, output_global_address, print_operand,
2522         legitimize_pic_address, hppa_encode_label, symbolic_expression_p,
2523         fmpyaddoperands, fmpysuboperands, emit_bcond_fp, emit_move_sequence,
2524         emit_hpdiv_const, is_function_label_plus_const, jump_in_call_delay,
2525         hppa_fpstore_bypass_p, attr_length_millicode_call, attr_length_call,
2526         attr_length_indirect_call, return_addr_rtx, function_arg_padding,
2527         insn_refs_are_delayed, get_deferred_plabel, ldil_cint_p, zdepi_cint_p,
2528         output_ascii, compute_frame_size, and_mask_p, cint_ok_for_move,
2529         hppa_expand_prologue, hppa_expand_epilogue, ior_mask_p,
2530         compute_zdepdi_operands, output_64bit_and, output_64bit_ior,
2531         reloc_needed, magic_milli, shadd_constant_p): Consistently prefix
2532         exported functions and variables with "pa_".
2533         * config/pa/predicates.md: Likewise.
2534         * config/pa/pa64-hpux.h: likewise.
2535         * config/pa/som.h: Likewise.
2536         * config/pa/elf.h: Likewise.
2537         * config/pa/pa64-linux.h: Likewise.
2538         * config/pa/pa.md: Likewise.
2539         * config/pa/pa.c: Likewise.
2540         * config/pa/pa-linux.h: Likewise.
2541         * config/pa/pa.h: Likewise.
2542         * config/pa/constraints.md: Likewise.
2543
2544 2011-10-29  Uros Bizjak  <ubizjak@gmail.com>
2545
2546         * config/i386/i386.md (xop_sha<mode>3): Rename from xop_ashl<mode>3.
2547         Update all uses.
2548         (xop_shl<mode>3): Rename from xop_lshl<mode>3.  Update all uses.
2549         * config/i386/i386.c: Update all uses.
2550
2551 2011-10-29  Uros Bizjak  <ubizjak@gmail.com>
2552
2553         * config/i386/i386.md (lshlv16qi3): Remove expander.
2554         (lshrv16qi3): New expander.
2555         (<shift_insn>v16qi3): Macroize expander from ashrv16qi3 and lshrv16qi3
2556         using any_shiftrt code iterator. Cleanup.
2557         (ashlv16qi3): Cleanup.
2558         (ashrv2di3): Ditto.
2559
2560 2011-10-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2561
2562         PR target/50691
2563         * config/pa/pa.c (emit_move_sequence): Legitimize TLS symbol
2564         references.
2565         (pa_legitimate_constant_p): Return false for TLS_MODEL_GLOBAL_DYNAMIC
2566         and TLS_MODEL_LOCAL_DYNAMIC symbol references.
2567
2568 2011-10-29  Georg-Johann Lay  <avr@gjlay.de>
2569
2570         PR target/50887
2571         * config/avr/avr.opt (-maccumulate-args): New option.
2572         * config/avr/avr.h (STARTING_FRAME_OFFSET): Redefine to
2573         avr_starting_frame_offset.
2574         (ACCUMULATE_OUTGOING_ARGS): Define to avr_accumulate_outgoing_args.
2575         * config/avr/avr.md (UNSPECV_WRITE_SP_IRQ_ON): Remove.
2576         (UNSPECV_WRITE_SP_IRQ_OFF): Remove.
2577         (UNSPECV_WRITE_SP): New constant.
2578         (*addhi3_sp_R): Rewrite to...
2579         (*addhi3_sp): ...this new insn.
2580         (movhi_sp_r_irq_off, movhi_sp_r_irq_on): Combine to...
2581         (movhi_sp_r): ...this new insn.
2582         * config/avr/avr-protos.h (avr_accumulate_outgoing_args): New.
2583         (avr_starting_frame_offset): New.
2584         * config/avr/avr.c (avr_accumulate_outgoing_args): New function.
2585         (avr_starting_frame_offset): New function.
2586         (avr_outgoing_args_size): New static function.
2587         (avr_initial_elimination_offset): Use it.
2588         (avr_simple_epilogue): Use it.
2589         (avr_asm_function_end_prologue): Use it.
2590         (expand_epilogue): Use it.
2591         (expand_prologue): Use it.  Break out code to...
2592         (avr_prologue_setup_frame): ...this new static function.
2593         (avr_can_eliminate): Allow eliminating to frame pointer if there
2594         is one.
2595         (avr_frame_pointer_required_p): Use frame pointer if target has a
2596         nonlocal label.
2597         * config/avr/constraints.md (R): Remove.
2598         (Csp): New constraint.
2599         * config/avr/predicates.md (avr_sp_immediate_operand): Use it.
2600
2601 2011-10-29  Andi Kleen  <ak@linux.intel.com>
2602
2603         * gcc-ar.c (target_machine): Add.
2604
2605 2011-10-29  Anatoly Sokolov  <aesok@post.ru>
2606
2607         * config/cris/cris.c (reg_ok_for_base_p, reg_ok_for_index_p,
2608         cris_constant_index_p, cris_base_p, cris_index_p,
2609         cris_base_or_autoincr_p, cris_bdap_index_p, cris_biap_index_p,
2610         cris_legitimate_address_p): New functions.
2611         (TARGET_LEGITIMATE_ADDRESS_P): Define.
2612         (cris_pic_symbol_type, cris_valid_pic_const): Change arguments type
2613         from rtx to const_rtx.
2614         (cris_print_operand_address, cris_address_cost,
2615         cris_side_effect_mode_ok):  Use
2616         cris_constant_index_p, cris_base_p, cris_base_or_autoincr_p,
2617         cris_biap_index_p and cris_bdap_index_p.
2618         * config/cris/cris.h (CONSTANT_INDEX_P, BASE_P, BASE_OR_AUTOINCR_P,
2619         BDAP_INDEX_P, BIAP_INDEX_P, GO_IF_LEGITIMATE_ADDRESS,
2620         REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P): Remove.
2621         (EXTRA_CONSTRAINT_Q, EXTRA_CONSTRAINT_R, EXTRA_CONSTRAINT_T): Use
2622         cris_constant_index_p, cris_base_p, cris_base_or_autoincr_p,
2623         cris_biap_index_p and cris_bdap_index_p.
2624         * config/cris/cris.md (moversideqi movemsideqi peephole2): Use
2625         cris_base_p.
2626         * config/cris/cris-protos.h (cris_constant_index_p, cris_base_p,
2627         cris_base_or_autoincr_p, cris_bdap_index_p, cris_biap_index_p): New
2628         prototype.
2629         (cris_pic_symbol_type, cris_valid_pic_const): Update prototype.
2630
2631 2011-10-21  Andi Kleen  <ak@linux.intel.com>
2632
2633         * ggc-page (PAGE_ALIGN): Add.
2634         (alloc_page, ggc_pch_total_size, ggc_pch_this_base, ggc_pch_read):
2635         Replace ROUND_UP with PAGE_ALIGN.
2636
2637 2011-10-20  Andi Kleen  <ak@linux.intel.com>
2638
2639         * ggc-page (alloc_anon): Add check argument.
2640         (alloc_page): Add fallback to 1 page allocation.
2641         Adjust alloc_anon calls to new argument.
2642
2643 2011-10-18  Andi Kleen  <ak@linux.intel.com>
2644
2645         * ggc-page (release_pages): First free large continuous
2646         chunks in the madvise path.
2647
2648 2011-10-18  Andi Kleen  <ak@linux.intel.com>
2649
2650         * ggc-page.c (alloc_pages): Always round up entry_size.
2651
2652 2011-10-19  Andi Kleen  <ak@linux.intel.com>
2653
2654         * Makefile.in (MOSTLYCLEANFILES): Add gcc-ar/nm/ranlib.
2655         (native): Add gcc-ar, gcc-nm, gcc-ranlib.
2656         (AR_LIBS, gcc-ar, gcc-ar.o, gcc-ranlib, gcc-ranlib.o,
2657         gcc-nm, gcc-nm.o, gcc-ranlib.c, gcc-nm.c): Add.
2658         (install): Depend on install-gcc-ar.
2659         (install-gcc-ar): Add.
2660         (uninstall): Uninstall gcc-ar, gcc-nm, gcc-ranlib.
2661         * gcc-ar.c: Add new file.
2662
2663 2011-10-28  Pat Haugen <pthaugen@us.ibm.com>
2664
2665         * config/rs6000/rs6000.md (define_attr "type"): Add vecdouble.
2666         * config/rs6000/vsx.md (VStype_simple, VStype_mul): Use vecdouble
2667         type for V2DF.
2668         (VStype_div): Use vector types for V2DF/V4SF.
2669         (VStype_sqrt): Use *sqrt types.
2670         (VS_spdp_type): Change type to vecdouble.
2671         (*vsx_fmav2df4, *vsx_nfmsv2df4, vsx_xvcvdpsxws, vsx_xvcvdpuxws,
2672         vsx_xvcvuxdsp, vsx_xvcvsxwdp, vsx_xvcvuxwdp, vsx_xvcvspsxds,
2673         vsx_xvcvspuxds): Likewise.
2674         (*vsx_fms<mode>4): Set type via <VStype_mul>.
2675         (*vsx_eq_<mode>_p, *vsx_gt_<mode>_p, *vsx_ge_<mode>_p): Set type via
2676         <VStype_simple>.
2677         * config/rs6000/power7.md (power7-vecstore): Correct VSU pipe.
2678         (power7-fpcompare, power7-sdiv, power7-ddiv, power7-sqrt,
2679         power7-dsqrt): Correct insn latency.
2680         (power7-vecsimple): Add veccmp type and correct dispatch/VSU values.
2681         (power7-veccmp): Delete.
2682         (power7-vecfloat): Correct latency/dispatch/VSU values.
2683         (define_bypass "power7-vecfloat"): Correct latency and types.
2684         (power7-veccomplex, power7-vecperm): Correct dispatch/VSU values.
2685         (power7-vecdouble, power7-vecfdiv, power7-vecdiv): New.
2686
2687 2011-10-28  Uros Bizjak  <ubizjak@gmail.com>
2688
2689         * config/i386/i386.md (shift_insn): Rename code attribute from
2690         shiftrt_insn.  Also handle ashift RTX.
2691         (shift): Rename code attribute from shiftrt.  Also handle ashift RTX.
2692         (vshift): New code attribute.
2693         (<shift_insn>*): Rename from <shiftrt_insn>*. Update asm templates.
2694         (any_lshift): Move and rename code iterator from ...
2695         * config/i386/sse.md (lshift): ... here.
2696         (lshift_insn): Remove code attribute.
2697         (lshift): Remove code attribute.
2698         (vlshr<mode>3): Use lshiftrt RTX.
2699         (vashr<mode>3, ashrv16qi3, ashrv2di3): Use ashiftrt RTX.
2700         (vashl<mode>3, ashlv16qi3): Use ashift RTX.
2701         (avx2_<lshift>v<mode>): Rename from avx2_<shift_insn>v<mode>.  Use
2702         any_lshift code iterator.  Update asm template.
2703         (<shift_insn><mode>3): Macroize insn from lshr<mode>3 and ashl<mode>3
2704         usign any_lshift code iterator.
2705         * config/i386/mmx.md (mmx_<shift_insn><mode>3): Macroize insn from
2706         mmx_lshr<mode>3 and mmx_ashl<mode>3 usign any_lshift code iterator.
2707         * config/i386/i386.c (bdesc_args) <__builtin_ia32_psll>: Update.
2708
2709 2011-10-28  Georg-Johann Lay  <avr@gjlay.de>
2710
2711         PR target/49313
2712         * config/avr/avr.md (parityhi2): Expand allowing pseudos.
2713         (*parityhi2): New pre-reload insn-and-split to map 16-bit parity
2714         to the libgcc insn.
2715         (*parityqihi2): Same for 8-bit parity.
2716
2717 2011-10-28  Julian Brown  <julian@codesourcery.com>
2718
2719         PR rtl-optimization/47918
2720         * reload1.c (set_initial_label_offsets): Use initial offsets
2721         for labels on the nonlocal_goto_handler_labels chain.
2722
2723 2011-10-28  Iain Sandoe  <iains@gcc.gnu.org>
2724
2725         * config/rs6000/t-darwin (LIB2FUNCS_STATIC_EXTRA):
2726         Move darwin-fpsave.asm from here to ... LIB2FUNCS_EXTRA.
2727         (LIB2FUNCS_EXTRA):  Add darwin-gpsave.asm.
2728         (TARGET_LIBGCC2_CFLAGS): Ensure that fPIC and -pipe are inherited from
2729         config/t-darwin.
2730         * config/rs6000/darwin.h (FP_SAVE_INLINE): Adjust to enable.
2731         (GP_SAVE_INLINE): Likewise.
2732         (SAVE_FP_PREFIX,  SAVE_FP_SUFFIX, RESTORE_FP_PREFIX,
2733         RESTORE_FP_SUFFIX): Set to empty strings.
2734         * config/rs6000/rs6000.c (rs6000_savres_strategy): Implement for Darwin.
2735         (debug_stack_info): Print savres_strategy.
2736         (rs6000_savres_routine_name): Implement for Darwin.
2737         (rs6000_make_savres_rtx): Adjust used register for Darwin.
2738         (rs6000_emit_prologue): Implement out-of-line saves for Darwin.
2739         (rs6000_output_function_prologue): Don't emit .extern for Mach-O.
2740         (rs6000_emit_epilogue): Implement out-of-line saves for Darwin.
2741         * config/rs6000/darwin-gpsave.asm: New file.
2742
2743 2011-10-28  Jakub Jelinek  <jakub@redhat.com>
2744
2745         * config/i386/sse.md (VI4SD_AVX2): Removed.
2746         (VI48_AVX2, VI128_128, VI48_128, VI48_256): New mode iterators.
2747         (vashl<mode>3): Use VI12_128 iterator instead of VI124_128.
2748         Add another expander using VI48_128 iterator for
2749         TARGET_AVX2 || TARGET_XOP and another using VI48_256 iterator
2750         for TARGET_AVX2.
2751         (vlshr<mode>3): Likewise.  Change register_operand predicate to
2752         nonimmediate_operand on last operand in the VI12_128 expander.
2753         (vashr<mode>3): Use VI128_128 iterator instead of VI124_128.
2754         (vashrv4si3, vashrv8si3): New expanders.
2755         (avx2_ashrvv8si, avx2_ashrvv4si, avx2_<lshift>vv8si,
2756         avx2_<lshift>vv2di): Removed.
2757         (avx2_ashrv<mode>): New insn with VI4_AVX2 iterator.
2758         (avx2_<lshift>v<mode>): Macroize using VI48_AVX2
2759         iterator.  Simplify pattern.
2760
2761 2010-10-28  Richard Guenther  <rguenther@suse.de>
2762
2763         PR driver/50876
2764         * lto-wrapper.c (get_options_from_collect_gcc_options):
2765         Properly count arguments.
2766         (run_gcc): Use an obstack to collect argv, properly separate
2767         switches and their arguments.
2768
2769 2011-10-28  Jakub Jelinek  <jakub@redhat.com>
2770
2771         * tree-vect-stmts.c (vectorizable_shift): Give up if op1 has different
2772         vector mode from vectype's mode.
2773
2774 2011-10-28  Chung-Lin Tang  <cltang@codesourcery.com>
2775
2776         PR rtl-optimization/49720
2777         * simplify-rtx.c (simplify_relational_operation_1): Detect
2778         infinite recursion condition in "(eq/ne (plus x cst1) cst2)
2779         simplifies to (eq/ne x (cst2 - cst1))" case.
2780
2781 2011-10-27  David S. Miller  <davem@davemloft.net>
2782
2783         * config/sparc/sparc.md (snedi_special): Only match when not VIS3.
2784         (*snedi_zero): Likewise.
2785         (*snedi_zero_trunc): Likewise.
2786         (snedi_special_vis3): New expander.
2787         (*snedi_zero_vis3): New insn.
2788         (*snedi_zero_trunc_vis3): Likewise.
2789         (*sltu_insn_vis3): Likewise.
2790         (*sltu_insn_vis3_trunc): Likewise.
2791         (addxc): Likewise.
2792         (*addxc_trunc_sp64_vis3): Likewise.
2793         * config/sparc/sparc.c (emit_scc_insn): When VIS3 use the
2794         gen_snedi_special_vis3 expander, and try GTU/LTU addx based
2795         sequences on DImode values.
2796
2797         * config/sparc/sparc.md (64-bit vector moves): Use 'e' not 'f'
2798         constraint.
2799
2800         * regcprop.c (copyprop_hardreg_forward_1): Reject the
2801         transformation when we narrow the mode on big endian.
2802
2803 2011-10-27  Jakub Jelinek  <jakub@redhat.com>
2804
2805         * config/i386/sse.md (avx_cvtpd2dq256_2, avx_cvttpd2dq256_2,
2806         vec_pack_sfix_trunc_v4df, vec_pack_sfix_v4df): New expanders.
2807         (*avx_cvtpd2dq256_2, *avx_cvttpd2dq256_2): New insns.
2808
2809         * config/i386/i386.c (ix86_print_operand): Handle 'q' and 'x'
2810         overrides for -masm=intel memory.
2811         * config/i386/sse.md (sse2_cvtdq2pd, sse2_cvtps2pd,
2812         sse4_1_<code>v8qiv8hi2, avx2_<code>v8qiv8si2,
2813         sse4_1_<code>v4hiv4si2, avx2_<code>v4hiv4di2,
2814         sse4_1_<code>v2siv2di2): Use %q1 instead of %1 for -masm=intel.
2815         (sse4_1_<code>v4qiv4si2, avx2_<code>v4qiv4di2,
2816         sse4_1_<code>v2hiv2di2): Use %k1 instead of %1 for -masm=intel.
2817         (sse4_1_<code>v2qiv2di2): Use %w1 instead of %1 for -masm=intel.
2818
2819 2011-10-27  Martin Jambor  <mjambor@suse.cz>
2820
2821         * ipa-prop.c (compute_pass_through_member_ptrs): Rename parm_info
2822         to parm_ainfo.
2823         (ipa_compute_jump_functions_for_edge): Likewise.
2824         (ipa_compute_jump_functions): Likewise.
2825         (ipa_analyze_indirect_call_uses): Likewise.
2826         (ipa_analyze_call_uses): Likewise.
2827         (ipa_analyze_params_uses): Likewise.
2828         (ipa_analyze_node): Likewise.
2829
2830 2011-10-27  Uros Bizjak  <ubizjak@gmail.com>
2831
2832         PR target/50875
2833         * config/i386/sse.md (*avx_unpcklpd256): Remove extra insn
2834         constraints.  Change alternative 1 to "x,m,1".
2835
2836 2011-10-27  Jakub Jelinek  <jakub@redhat.com>
2837
2838         * Makefile.in (build/gencheck.o): Depend on tree.def and
2839         c-family/c-common.def.
2840
2841         * tree-ssa-strlen.c: Include expr.h.
2842         (get_stridx): Don't use c_strlen, instead use string_constant
2843         and compute string length from it.
2844         * Makefile.in (tree-ssa-strlen.o): Depend on $(EXPR_H).
2845
2846 2011-10-27  Eric Botcazou  <ebotcazou@adacore.com>
2847
2848         PR rtl-optimization/46603
2849         PR bootstrap/50879
2850         * reload.c (push_reload): In the out case, restore previous behavior
2851         for subregs that don't have word mode.
2852
2853 2011-10-27  Ian Lance Taylor  <iant@google.com>
2854
2855         * cppdefault.c: Undef NATIVE_SYSTEM_HEADER_DIR if
2856         CROSS_DIRECTORY_STRUCTURE is defined and TARGET_SYSTEM_ROOT is not.
2857         (cpp_include_defaults): Only use NATIVE_SYSTEM_HEADER_DIR if it is
2858         defined.
2859
2860 2011-10-27  Richard Henderson  <rth@redhat.com>
2861
2862         * optabs.c (expand_vec_perm): Use the correct mode for scaling the
2863         selector.  Save the qimode constant selector for later use by the
2864         qimode vec_perm pattern.
2865
2866 2011-10-27  Bernd Schmidt  <bernds@codesourcery.com>
2867
2868         * config/c6x/c6x.c (unit_req_imbalance, res_mii): Cast the first arg
2869         to unit_req_factor to the right enum type.
2870         (get_unit_operand_masks, reshuffle_units, try_rename_operands,
2871         hwloop_optimize): Remove unused variables.
2872
2873 2010-10-27  Richard Guenther  <rguenther@suse.de>
2874
2875         PR middle-end/50731
2876         * tree-vect-generic.c (do_binop): Handle scalar operands.
2877
2878 2011-08-27  Uros Bizjak  <ubizjak@gmail.com>
2879
2880         PR target/37191
2881         * config/i386/sse.md (*vec_extract_v4sf_mem): Avoid combining registers
2882         from different units in a single alternative.
2883
2884 2011-10-26  David S. Miller  <davem@davemloft.net>
2885
2886         * config/sparc/sparc.c (emit_scc_insn): Force attempt of v9 sequences
2887         if we're comparing DImode and comparison is other than EQ or NE.
2888
2889         * config/sparc/sparc.c (emit_scc_insn): Do not try v9 sequences until
2890         LEU/LTU/GEU/GTU is attempted.
2891         * config/sparc/sparc.md (*neg_snesi_sign_extend): New 64-bit insn
2892         and split.
2893         (*neg_seqsi_sign_extend): Likewise.
2894         (*sltu_extend_sp64, *neg_sltu_extend_sp64, *sgeu_extend_sp64,
2895         *neg_sgeu_extend_sp64): New insns.
2896
2897         * config/sparc/sparc-protos.h (sparc_expand_conditional_move): Declare.
2898         * config/sparc/sparc.md (mov<I:mode>cc, mov<F:mode>cc): Call it.
2899         (*mov<I:mode>_cc_v9): Normalize to expect operand 0 always in operand 4.
2900         (*mov<I:mode>_cc_reg_sp64): Likewise.
2901         (*movsf_cc_v9): Likewise.
2902         (*movsf_cc_reg_sp64): Likewise.
2903         (*movdf_cc_v9): Likewise.
2904         (*movdf_cc_reg_sp64): Likewise.
2905         (*movtf_cc_hq_v9): Likewise.
2906         (*movtf_cc_reg_hq_sp64): Likewise.
2907         (*movtf_cc_v9): Likewise.
2908         (*movtf_cc_reg_sp64): Likewise.
2909         * config/sparc/sparc.c (sparc_expand_conditional_move): New function.
2910         (sparc_print_operand): Delete 'c' and 'd' handling, no longer used.
2911
2912 2011-10-26  Eric Botcazou  <ebotcazou@adacore.com>
2913
2914         * reload.c (reload_inner_reg_of_subreg): Change type of return value
2915         and type of OUTPUT parameter to bool and adjust.  Document MODE and
2916         OUTPUT parameters.  Use HARD_REGISTER_P.  Reorder final condition
2917         and improve associated comment.
2918         (push_reload): Clarify and update comments about reloading of subregs.
2919         Adjust calls to reload_inner_reg_of_subreg.  Compute the class upfront
2920         for the reloading of subregs in the out case as well.
2921
2922 2011-10-26  Alexandre Oliva  <aoliva@redhat.com>
2923
2924         PR debug/50826
2925         * var-tracking.c (rtx_debug_expr_p): New.
2926         (use_type): Don't use debug exprs to track non-VTA variables.
2927
2928 2011-10-26  Jeff Law  <law@redhat.com>
2929
2930         * doc/invoke.texi (sink-frequency-threshold): Document.
2931         * tree-ssa-sink.c: Include params.h.
2932         (select_best_block): New function.
2933         (statement_sink_location): Use it.
2934         * params.def (SINK_FREQUENCY_THRESHOLD): New PARAM.
2935
2936 2011-10-26  Iain Sandoe  <iains@gcc.gnu.org>
2937
2938         PR target/48108
2939         * config/darwin.c (top level): Amend comments concerning LTO output.
2940         (lto_section_num): New variable.  (darwin_lto_section_e): New GTY.
2941         (LTO_SECTS_SECTION, LTO_INDEX_SECTION): New.
2942         (LTO_NAMES_SECTION): Rename.
2943         (darwin_asm_named_section): Record LTO section counts and switches
2944         in a vec of darwin_lto_section_e.
2945         (darwin_file_start): Remove unused code.
2946         (darwin_file_end): Put an LTO section termination label.  Handle
2947         output of the wrapped LTO sections, index and names table.
2948
2949 2011-10-26  Alan Modra  <amodra@gmail.com>
2950
2951         * config/rs6000/rs6000.c (rs6000_make_savres_rtx): Delete unneeded
2952         declaration.
2953         (rs6000_emit_stack_reset): Only return insn emitted when it adjusts sp.
2954         (rs6000_make_savres_rtx): Rename to rs6000_emit_savres_rtx.  Use
2955         simple_return in pattern, emit instruction, and set jump_label.
2956         (rs6000_emit_prologue): Update for rs6000_emit_savres_rtx.  Use
2957         simple_return rather than return.
2958         (emit_cfa_restores): New function.
2959         (rs6000_emit_epilogue): Emit cfa_restores when flag_shrink_wrap.
2960         Add missing cfa_restores for SAVE_WORLD.  Add missing LR cfa_restore
2961         when using out-of-line gpr restore.  Add missing LR and FP regs
2962         cfa_restores for out-of-line fpr restore.  Consolidate code setting
2963         up cfa_restores.  Formatting.  Use LR_REGNO define.
2964         (rs6000_output_mi_thunk): Use simple_return rather than return.
2965         * config/rs6000/rs6000.md (sibcall*, sibcall_value*): Likewise.
2966         (return_internal*): Likewise.
2967         (any_return, return_pred, return_str): New iterators.
2968         (return, conditional return insns): Provide both return and
2969         simple_return variants.
2970         * config/rs6000/rs6000.h (EARLY_R12, LATE_R12): Define.
2971         (REG_ALLOC_ORDER): Move r12 before call-saved regs when FIXED_R13.
2972         Move r11 and r0 later to suit shrink-wrapping.
2973
2974 2011-10-26  Richard Guenther  <rguenther@suse.de>
2975
2976         * lto-wrapper.c (run_gcc): Properly init/free obstack.
2977
2978 2011-10-26  Jakub Jelinek  <jakub@redhat.com>
2979
2980         * config/i386/i386.md (UNSPEC_VSIBADDR): New.
2981         * config/i386/predicates.md (vsib_address_operand,
2982         vsib_mem_operator): New predicates.
2983         * config/i386/i386.c (ix86_print_operand_address): Handle
2984         UNSPEC_VSIBADDR addresses.
2985         * config/i386/sse.md (avx2_gathersi<mode>, avx2_gatherdi<mode>,
2986         avx2_gatherdi<mode>256): Adjust expanders to use MEM with
2987         UNSPEC_VSIBADDR address.
2988         (*avx2_gathersi<mode>, *avx2_gatherdi<mode>, *avx2_gatherdi<mode>256):
2989         Adjust insns to use MEM with UNSPEC_VSIBADDR address.
2990
2991 2011-10-26  Tom de Vries  <tom@codesourcery.com>
2992
2993         PR tree-optimization/50763
2994         * tree-ssa-tail-merge.c (replace_block_by): Update vops if phi_vuse1 or
2995         phi_vuse2 is NULL_TREE only if bb1 dominates or is dominated by bb2.
2996
2997 2011-10-26  Richard Guenther  <rguenther@suse.de>
2998
2999         PR lto/41844
3000         * Makefile.in (lto-wrapper): Depend on and link against opts-common.o.
3001         (lto-wrapper.o): Depend on $(OPTS_H) and $(OPTIONS_H).
3002         * lto-wrapper.c (get_options_from_collect_gcc_options): New function.
3003         (run_gcc): Use it.  Filter out language specific options.
3004
3005 2011-10-26  Andreas Tobler  <andreast@fgznet.ch>
3006
3007         * config/i386/freebsd64.h (LINK_SPEC): Emit the same warning as the
3008         32-bit target does.
3009
3010 2011-10-25  Paolo Carlini  <paolo.carlini@oracle.com>
3011
3012         PR driver/46617
3013         * gcc.c (main): Fix fatal_error string for translation.
3014
3015 2011-10-25  Ian Lance Taylor  <iant@google.com>
3016
3017         * tree-eh.c (do_return_redirection): Remove return_value_p
3018         parameter.  Change all callers.
3019         (lower_try_finally_nofallthru): Remove local return_val.
3020         (lower_try_finally_onedest): Likewise.
3021         (lower_try_finally_copy): Likewise.
3022         (lower_try_finally_switch): Likewise.
3023
3024 2011-10-25  H.J. Lu  <hongjiu.lu@intel.com>
3025
3026         * config/i386/mmx.md (*mmx_maskmovq): Replace :SI with :P and
3027         remove "&& !TARGET_64BIT"
3028         (*mmx_maskmovq_rex): Removed.
3029
3030 2011-10-25  Eric Botcazou  <ebotcazou@adacore.com>
3031
3032         PR rtl-optimization/46603
3033         * reload.c (push_reload): In the out case, reload the subreg as well
3034         as the reg if it has word mode.
3035
3036 2011-10-25  Eric Botcazou  <ebotcazou@adacore.com>
3037
3038         * dwarf2out.c (add_gnat_descriptive_type_attribute): Temporarily
3039         suppress debug info for the parent type.
3040
3041 2011-10-25  Eric Botcazou  <ebotcazou@adacore.com>
3042
3043         * config/ia64/ia64.c (ia64_profile_hook): Fix thinko.
3044
3045 2011-10-25  Richard Henderson  <rth@redhat.com>
3046
3047         * config/i386/sse.md (VEC_EXTRACT_EVENODD_MODE): Remove.
3048         (vec_extract_even<mode>, vec_extract_odd<mode>): Remove.
3049
3050         * config/rs6000/altivec.md (vec_extract_evenv8hi,
3051         vec_extract_evenv16qi, vec_extract_oddv4si,
3052         vec_extract_oddv4sf): Remove.
3053
3054         * config/spu/spu.md (vec_extract_evenv4si, vec_extract_evenv4sf,
3055         vec_extract_evenv8hi, vec_extract_evenv16qi, vec_extract_oddv4si,
3056         vec_extract_oddv4sf, vec_extract_oddv8hi, vec_extract_oddv16qi,
3057         vec_interleave_highv4sf, vec_interleave_lowv4sf,
3058         vec_interleave_highv4si, vec_interleave_lowv4si,
3059         vec_interleave_highv8hi, vec_interleave_lowv8hi,
3060         vec_interleave_highv16qi, vec_interleave_lowv16qi): Remove.
3061
3062         * expr.c (expand_expr_real_2) [VEC_EXTRACT_EVEN_EXPR]: Use binop.
3063         [VEC_EXTRACT_ODD_EXPR, VEC_INTERLEAVE_HIGH_EXPR]: Likewise.
3064         [VEC_INTERLEAVE_LOW_EXPR]: Likewise.
3065         * optabs.c (expand_binop): Implement vec_interleave_high_optab,
3066         vec_interleave_low_optab, vec_extract_even_optab,
3067         vec_extract_odd_optab with expand_vec_perm.
3068         (can_vec_perm_for_code_p): New.
3069         * optabs.h: Update.
3070         * tree-vect-data-refs.c (vect_strided_store_supported): Allow for
3071         fallback via can_vec_perm_for_code_p.
3072         (vect_strided_load_supported): Likewise.
3073         * tree-vect-generic.c (expand_vector_operations_1): Never lower
3074         VEC_INTERLEAVE_HIGH_EXPR, VEC_INTERLEAVE_LOW_EXPR,
3075         VEC_EXTRACT_EVEN_EXPR, VEC_EXTRACT_ODD_EXPR.
3076
3077         * target.def (vec_perm_const_ok): Change parameters to mode and
3078         array of indicies.
3079         * doc/tm.texi: Rebuild.
3080         * config/i386/i386.c (ix86_vectorize_vec_perm_const_ok): Change
3081         parameters to mode and array of indicies.
3082         * expr.c (expand_expr_real_2) [VEC_PERM_EXPR]: Expand operands here.
3083         * optabs.c (can_vec_perm_p): Rename from can_vec_perm_expr_p.
3084         Change parameters to mode and array of indicies.
3085         (expand_vec_perm_1): Rename from expand_vec_perm_expr_1.
3086         (expand_vec_perm): Rename from expand_vec_perm_expr.  Change
3087         parameters to mode and rtx inputs.  Try lowering to QImode
3088         vec_perm_const before trying fully variable permutation.
3089         * optabs.h: Update decls.
3090         * tree-vect-generic.c (lower_vec_perm): Extract array of indices from
3091         VECTOR_CST to pass to can_vec_perm_p.
3092         * tree-vect-slp.c (vect_get_mask_element): Change mask parameter type
3093         from int pointer to unsigned char pointer.
3094         (vect_transform_slp_perm_load): Update for change to can_vec_perm_p.
3095         * tree-vect-stmts.c (perm_mask_for_reverse): Likewise.
3096
3097         * tree.def (VEC_EXTRACT_EVEN_EXPR): Fix typo in text name.
3098         (VEC_EXTRACT_ODD_EXPR, VEC_INTERLEAVE_HIGH_EXPR,
3099         VEC_INTERLEAVE_LOW_EXPR): Likewise.
3100
3101 2011-10-25  Mike Stump  <mikestump@comcast.net>
3102
3103         * reload.c (regno_clobbered_p): Fix typo.
3104
3105 2011-10-25  Dodji Seketeli  <dodji@redhat.com>
3106
3107         * input.c (expand_location): Rewrite using linemap_resolve_location
3108         and linemap_expand_location.  Add a comment.
3109
3110 2011-10-25  Jakub Jelinek  <jakub@redhat.com>
3111
3112         PR tree-optimization/50596
3113         * tree-vect-stmts.c (vect_mark_relevant): Only use
3114         FOR_EACH_IMM_USE_FAST if lhs is SSA_NAME.
3115         (vectorizable_store): If is_pattern_stmt_p look through
3116         VIEW_CONVERT_EXPR on lhs.
3117         * tree-vect-patterns.c (check_bool_pattern, adjust_bool_pattern):
3118         Use unsigned type instead of signed.
3119         (vect_recog_bool_pattern): Optimize also stores into bool memory in
3120         addition to casts from bool to integral types.
3121         (vect_mark_pattern_stmts): If pattern_stmt already has vinfo
3122         created, don't create it again.
3123
3124 2011-10-25  Kai Tietz  <ktietz@redhat.com>
3125
3126         * config/i386/i386.c (ix86_frame_pointer_required): Require
3127         frame-pointer, if setjmp is used for 32-bit ms-abi.
3128
3129 2011-10-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
3130
3131         * builtins.c (set_builtin_user_assembler_name): Remove extra
3132         newline added in October 11th, 2011 change.
3133
3134 2011-10-24  David S. Miller  <davem@davemloft.net>
3135
3136         * config/sparc/little-endian.opt: Delete.
3137         * config.gcc: Remove references to config/sparc/little-endian.opt
3138         * doc/invoke.texi: Remove documentation of -mlittl-endian on sparc.
3139         * config/sparc/linux64.h: Delete references to -mlittle-endian.
3140         * config/sparc/netbsd-elf.h: Likewise.
3141         * config/sparc/openbsd64.h: Likewise.
3142         * config/sparc/sparc.h: Likewise.
3143         * config/sparc/sp64-elf.h: Likewise and delete overrides for
3144         BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
3145         * config/sparc/sparc.c (dump_target_flag_bits): Remove reference
3146         to MASK_LITTLE_ENDIAN.
3147         * config/sparc/sparc.opt (Mask(LITTLE_ENDIAN)): Delete.
3148
3149         * config/sparc/sparc.md: Only use F, G, and C constraints in FP insns.
3150         Only use D, Y, and Z constraints in vector insns.
3151
3152         * config/sparc/sparc.md (cpu_feature, enabled): New attributes.
3153         (*movsi_insn_novis3, *movsi_insn_vis3): Consolidate into one pattern
3154         called *movsi_insn.
3155         (*movdi_insn_sp32_v9_novis3, *movdi_insn_sp32_v9_vis3): Consolidate
3156         into *movdi_insn_sp32.
3157         (*movdi_insn_sp64_novis3, *movdi_insn_sp64_vis3): Consolidate into
3158         one pattern called *movdi_insn_sp64.
3159         (*movsf_insn_novis3, *movsf_insn_vis3, *movsf_insn_no_fpu):
3160         Consolidate into one pattern called *movsf_insn.
3161         (*movdf_insn_sp32_no_fpu, *movdf_insn_sp32_v9_novis3,
3162         *movdf_insn_sp32_v9_vis3, *movdf_insn_sp32_v9_no_fpu): Consolidate
3163         into *movdf_insn_sp32.
3164         (*movdf_insn_sp64_novis3, *movdf_insn_sp64_vis3,
3165         *movdf_insn_sp64_no_fpu): Consolidate into one pattern called
3166         *movdf_insn_sp64.
3167         (*zero_extendsidi2_insn_sp64_novis3,
3168         *zero_extendsidi2_insn_sp64_vis3): Consolidate into one pattern
3169         called *zero_extendsidi2_insn_sp64.
3170         (*sign_extendsidi2_insn_novis3, *sign_extendsidi2_insn_vis3):
3171         Consolidate into one pattern named *sign_extendsidi2_insn.
3172         (*mov<VM32:mode>_insn_novis3, *mov<VM32:mode>_insn_vis3):
3173         Consolidate into one pattern named *mov<VM32:mode>_insn.
3174         (*mov<VM64:mode>_insn_sp64_novis3,
3175         *mov<VM64:mode>_insn_sp64_novis3): Consolidate into one pattern
3176         named *mov<VM64:mode>_insn_sp64.
3177         (*mov<VM64:mode>_insn_sp32_novis3,
3178         *mov<VM64:mode>_insn_sp32_vis3): Consolidate into one pattern
3179         named *mov<VM64:mode>_insn_sp32.
3180
3181 2011-10-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3182
3183         * tree-ssa-strlen.c (get_string_length): Change assertion to STPCPY.
3184         (zero_length_string): Change assertion to accept strinfo without
3185         length but with stmt instead.
3186         Set the endptr pointer also if starting a new chain.
3187         (adjust_related_strinfos): Ignore strinfos marked for delayed
3188         length computation.
3189         (handle_builtin_strcpy): Mark earlier strinfo elements also for
3190         delayed length computation.
3191
3192 2011-10-24  Georg-Johann Lay  <avr@gjlay.de>
3193
3194         PR target/50820
3195         Port from 4.6 branch r180379
3196         * doc/invoke.texi (AVR Options): New subsubsection to explain EIND
3197         handling and indirect jump/calls on devices > 128k.
3198
3199 2011-10-24  Anatoly Sokolov  <aesok@post.ru>
3200             Georg-Johann Lay  <avr@gjlay.de>
3201
3202         PR target/49824
3203         * doc/extend.texi (Declaring Attributes of Functions):
3204         Document OS_main and OS_task attributes.
3205         (Specifying Attributes of Variables): Move up
3206         subsection "AVR Variable Attributes" as of alphabetical order.
3207
3208 2011-10-24  Richard Guenther  <rguenther@suse.de>
3209
3210         * tree-vect-stmts.c (vect_get_vec_def_for_operand): Convert constants
3211         to vector element type.
3212         (vectorizable_assignment): Bail out for non-mode-precision operations.
3213         (vectorizable_shift): Likewise.
3214         (vectorizable_operation): Likewise.
3215         (vectorizable_type_demotion): Likewise.
3216         (vectorizable_type_promotion): Likewise.
3217         (vectorizable_store): Handle non-mode-precision stores.
3218         (vectorizable_load): Handle non-mode-precision loads.
3219         (get_vectype_for_scalar_type_and_size): Return a vector type
3220         for non-mode-precision integers.
3221         * tree-vect-loop.c (vectorizable_reduction): Bail out for
3222         non-mode-precision reductions.
3223
3224 2011-10-24  Julian Brown  <julian@codesourcery.com>
3225
3226         * config/m68k/m68k.c (notice_update_cc): Tighten condition for
3227         setting CC_REVERSED for FP comparisons.
3228
3229 2011-10-24  Richard Guenther  <rguenther@suse.de>
3230
3231         PR tree-optimization/50838
3232         * tree-data-ref.c (dr_analyze_indices): Properly canonicalize
3233         a MEM_REF base if we change it.
3234
3235 2011-10-24  Bernd Schmidt  <bernds@codesourcery.com>
3236
3237         PR bootstrap/50836
3238         * rtlanal.c: Swap includes of "hard-reg-set.h" and "rtl.h".
3239
3240         PR rtl-optimization/50833
3241         * function.c (thread_prologue_and_epilogue_insns): Expect the
3242         return insn optimization only if optimize.
3243
3244 2011-10-24  Georg-Johann Lay  <avr@gjlay.de>
3245
3246         * config/avr/avr.c: Break long lines.
3247         Define target hooks on the fly if applicable.
3248         (TARGET_ASM_FUNCTION_RODATA_SECTION): Remove first definition
3249         overridden later.
3250         (targetm): Move definition to end of file.
3251         (avr_can_eliminate): Make static on the fly.
3252         (avr_frame_pointer_required_p): Ditto.
3253         (avr_hard_regno_scratch_ok): Ditto.
3254         (avr_builtin_setjmp_frame_value): Make static on the fly.
3255         Indent according to coding rules.
3256         (avr_case_values_threshold): Ditto.
3257         (avr_attribute_table): Move down.
3258
3259 2011-10-24  Ira Rosen  <ira.rosen@linaro.org>
3260
3261         PR tree-optimization/50730
3262         * tree-vect-data-refs.c (vect_analyze_data_refs): Stop basic block
3263         analysis if encountered unsupported data-ref.
3264
3265 2011-10-23  David S. Miller  <davem@davemloft.net>
3266
3267         * config/sparc/sparc.c (sparc_option_override): Remove -mv8plus
3268         cpu adjustment.
3269         * config/sparc/linux64.h (CC1_SPEC): When defaulting to 64-bit,
3270         append -mcpu=v9 when -mv8plus is given.
3271
3272         * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): We can move
3273         between float and non-float regs when VIS3.
3274         * config/sparc/sparc.c (eligible_for_restore_insn): We can't
3275         use a restore when the source is a float register.
3276         (sparc_split_regreg_legitimate): When VIS3 allow moves between
3277         float and integer regs.
3278         (sparc_register_move_cost): Adjust to account for VIS3 moves.
3279         (sparc_preferred_reload_class): On 32-bit with VIS3 when moving an
3280         integer reg to a class containing EXTRA_FP_REGS, constrain to FP_REGS.
3281         (sparc_secondary_reload): On 32-bit with VIS3 when moving between
3282         float and integer regs we sometimes need a FP_REGS class
3283         intermediate move to satisfy the reload.  When this happens
3284         specify an extra cost of 2.
3285         (*movsi_insn): Rename to have "_novis3" suffix and add !VIS3 guard.
3286         (*movdi_insn_sp32_v9): Likewise.
3287         (*movdi_insn_sp64): Likewise.
3288         (*movsf_insn): Likewise.
3289         (*movdf_insn_sp32_v9): Likewise.
3290         (*movdf_insn_sp64): Likewise.
3291         (*zero_extendsidi2_insn_sp64): Likewise.
3292         (*sign_extendsidi2_insn): Likewise.
3293         (*movsi_insn_vis3): New insn.
3294         (*movdi_insn_sp32_v9_vis3): New insn.
3295         (*movdi_insn_sp64_vis3): New insn.
3296         (*movsf_insn_vis3): New insn.
3297         (*movdf_insn_sp32_v9_vis3): New insn.
3298         (*movdf_insn_sp64_vis3): New insn.
3299         (*zero_extendsidi2_insn_sp64_vis3): New insn.
3300         (*sign_extendsidi2_insn_vis3): New insn.
3301         (TFmode reg/reg split): Make sure both REG operands are float.
3302         (*mov<VM32:mode>_insn): Add "_novis3" suffix and !VIS3 guard. Remove
3303         easy constant to integer reg alternatives.
3304         (*mov<VM64:mode>_insn_sp64): Likewise.
3305         (*mov<VM64:mode>_insn_sp32_novis3): Likewise.
3306         (*mov<VM32:mode>_insn_vis3): New insn.
3307         (*mov<VM64:mode>_insn_sp64_vis3): New insn.
3308         (*mov<VM64:mode>_insn_sp32_vis3): New insn.
3309         (VM64 reg<-->reg split): New splitter for 32-bit.
3310
3311         * config/sparc/sparc.c (sparc_split_regreg_legitimate): New function.
3312         * config/sparc/sparc-protos.h (sparc_split_regreg_legitimate):
3313         Declare it.
3314         * config/sparc/sparc.md (DImode reg/reg split): Use it.
3315         (DFmode reg/reg split): Likewise.
3316
3317         * config/sparc/sparc.md (*movdi_insn_sp32_v9): Add alternatives for
3318         generating fzero and fone instructions.
3319         (DImode const_int --> reg splitter): Only trigger for integer regs.
3320
3321         * config/sparc/predicates.md (input_operand): Disallow vector
3322         constants other than 0 and -1.
3323         * config/sparc/sparc.c (sparc_preferred_reload_class): Return
3324         NO_REGS for vector constants other than 0 and -1.
3325
3326         * config/sparc/sparc.h (SPARC_FIRST_INT_REG, SPARC_LAST_INT_REG,
3327         SPARC_INT_REG_P): Define.
3328         (HARD_REGNO_NREGS): Use SPARC_INT_REG_P.