OSDN Git Service

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