OSDN Git Service

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