OSDN Git Service

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