OSDN Git Service

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