OSDN Git Service

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