OSDN Git Service

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