OSDN Git Service

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