OSDN Git Service

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