OSDN Git Service

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