OSDN Git Service

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