OSDN Git Service

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