OSDN Git Service

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