OSDN Git Service

gcc/
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2011-11-27  Richard Sandiford  <rdsandiford@googlemail.com>
2
3         PR target/51278
4         * config/mips/mips.c (mips_rtx_costs): Handle baddu.
5
6 2011-11-27  Richard Sandiford  <rdsandiford@googlemail.com>
7
8         * config/mips/mips.c (mips16_unextended_reference_p): Test for BLKmode.
9
10 2011-11-27  Richard Sandiford  <rdsandiford@googlemail.com>
11
12         * config/mips/mips-protos.h (mips_emit_binary): Declare.
13         * config/mips/mips.c (mips_emit_binary): Make global.
14         (mips_set_mips16_mode): Turn off -mfix-r4000 in MIPS16 mode.
15         (mips_conditional_register_usage): Don't treat LO and HI as
16         register operands in MIPS16 mode.
17         (mips_mulsidi3_gen_fn): Use {u,}mulsidi3_{32,64}bit_mips16
18         for MIPS16 code.
19         * config/mips/predicates.md (muldiv_target_operand): New predicate.
20         (move_operand): Allow hilo_operand.
21         * config/mips/mips.md (mul<mode>3): Explicitly specify LO as the
22         target of MIPS16 multiplies, then move it into the target register.
23         (mul<mode>3_internal, *macc2, *msac2): Use muldiv_target_operand.
24         (<u>mulsidi3_32bit_mips16): New expander.
25         (<u>mulsidi3_32bit): Use muldiv_target_operand.
26         (<u>mulsidi3_32bit_r4000): Disable for ISA_HAS_DSP.
27         (<u>mulsidi3_64bit): Require !TARGET_MIPS16.  Split into
28         <u>mulsidi3_64bit_split.
29         (<u>mulsidi3_64bit_mips16): New expander.
30         (<u>mulsidi3_64bit_split): Likewise, using expansions from
31         two previous define_splits.
32         (<u>mulsidi3_64bit_hilo, *muls<u>_di, <u>msubsidi4): Use
33         muldiv_target_operand.
34         (<su>mulsi3_highpart): Use <su>mulsi3_highpart_split for MIPS16 code.
35         (<su>mulsi3_highpart_internal): Require !TARGET_MIPS16.
36         Split into <su>mulsi3_highpart_split.
37         (<su>mulsi3_highpart_split): New expander.
38         (<su>muldi3_highpart): Turn into a define_expand.
39         Use <su>muldi3_highpart_split for MIPS16 code.
40         (<su>muldi3_highpart_internal): Renamed from <su>muldi3_highpart.
41         Require !TARGET_MIPS16.  Split into <su>muldi3_highpart_split.
42         (<su>muldi3_highpart_split): New expander.
43         (<u>mulditi3): Explicitly specify LO as the target of MIPS16
44         multiplies, then move it into the target register.
45         (<u>mulditi3_internal, <u>maddsidi4): Use muldiv_target_operand.
46         (divmod<mode>4, udivmod<mode>4): Turn into define_expands.
47         Use <u>divmod<mode>4_split for MIPS16 code, then explicitly
48         move LO into operand 0.
49         (divmod<mode>4_internal, udivmod<mode>4_internal): Renamed
50         from <u>divmod<mode>4.  Use muldiv_target_operand.
51         Require !TARGET_MIPS16.  Split into <u>divmod<mode>4_split.
52         (<u>divmod<mode>4_split): New expander.
53         (<u>divmod<GPR:mode>4_hilo_<HILO:mode>): Use muldiv_target_operand.
54         (mfhi<GPR:mode>_<HILO:mode>): Use hilo_operand.
55
56 2011-11-27  Richard Sandiford  <rdsandiford@googlemail.com>
57
58         * hard-reg-set.h (target_hard_regs): Add x_accessible_reg_set
59         and x_operand_reg_set.
60         (accessible_reg_set, operand_reg_set): New macros.
61         * reginfo.c (init_reg_sets): Initialize accessible_reg_set and
62         operand_reg_set.
63         (saved_accessible_reg_set, saved_operand_reg_set): New variables.
64         (save_register_info): Save them.
65         (restore_register_info): Restore them.
66         (init_reg_sets_1): Limit operand_reg_set to accessible_reg_set.
67         Remove NO_REGS registers from operand_reg_set.  Treat members
68         of operand_reg_set as fixed.
69         * recog.c (general_operand): Check operand_reg_set rather than
70         NO_REGS.
71         (register_operand, nonmemory_operand): Likewise.
72         * varasm.c (make_decl_rtl): Always use DECL_MODE as the mode of
73         register variables.  Check accessible_reg_set and operand_reg_set.
74         * config/mips/mips.c (mips_conditional_register_usage): Remove
75         inaccessible register from accessible_reg_set, rather than just
76         making them fixed.
77
78 2011-11-27  Gerald Pfeifer  <gerald@pfeifer.com>
79
80         * config/pa/pa-linux.h (TARGET_GAS): Remove comment.
81
82 2011-11-26  Richard Henderson  <rth@redhat.com>
83
84         * config/arm/arm.c (arm_init_libfuncs): Call init_sync_libfuncs
85         for Linux.
86
87 2011-11-26  Richard Henderson  <rth@redhat.com>
88
89         * optabs.c (expand_atomic_fetch_op): Always return result.
90
91         * optabs.c (init_sync_libfuncs_1): Include max in iteration.
92
93         * omp-low.c (expand_omp_atomic): Assume anything aligned to
94         BIGGEST_ALIGNMENT is aligned.
95
96 2011-11-26  Richard Henderson  <rth@redhat.com>
97
98         * config/m68k/m68k.md (UNSPECV_CAS_1, UNSPECV_CAS_2): New.
99         (UNSPECV_TAS_1, UNSPECV_TAS_2): New.
100         (I): New mode iterator.
101         (xz): New mode attribute.
102         * config/m68k/sync.md: New file.
103
104         * config/m68k/linux.h (TARGET_INIT_LIBFUNCS): New.
105         * config/m68k/m68k.c (m68k_init_sync_libfuncs): New.
106
107 2011-11-26  Nathan Sidwell  <nathan@acm.org>
108
109         PR gcov-profile/51297
110         * gcov.c (main): Allocate initial names and sources arrays.
111         (find_source): Don't check for null name or source arrays here.
112
113 2011-11-26  Jakub Jelinek  <jakub@redhat.com>
114
115         PR rtl-optimization/49912
116         * cfgrtl.c (rtl_verify_flow_info_1): Ignore also EDGE_PRESERVE bit
117         when counting n_branch.
118
119 2011-11-26  Uros Bizjak  <ubizjak@gmail.com>
120
121         * config/i386/sync.md (movdi_via_fpu): Add %Z insn suffixes.
122
123 2011-11-26  Joern Rennecke  <joern.rennecke@embecosm.com>
124
125         PR middle-end/50074
126         * calls.c (mem_overlaps_already_clobbered_arg_p):
127         Return false if no outgoing arguments have been stored so far.
128
129 2011-11-25  Georg-Johann Lay  <avr@gjlay.de>
130
131         * config/avr/avr.c (print_operand): Support code = 'i' for CONST_INT.
132
133 2011-11-24  Andrew MacLeod  <amacleod@redhat.com>
134
135         PR other/51011
136         * tree.h (is_builtin_name): No longer external.
137         * builtins.c (is_builtin_name): Make static.
138         * varasm.c (incorporeal_function_p): __sync and __atomic external calls
139         are not incorporeal and may need asm label processing.
140
141 2011-11-25  Georg-Johann Lay  <avr@gjlay.de>
142
143         PR target/50566
144         * config/avr/avr-protos.h (avr_log_t): Add field .builtin.
145         * config/avr/avr-log.c (avr_log_set_avr_log): Initialize it.
146         Don't bypass TARGET_ALL_DEBUG.  Print self-info with ?.
147         (avr_log_vadump): Support %D and %X to print double_int.
148         (avr_double_int_pop_digit): New static function.
149         (avr_dump_double_int_hex): New static function.
150
151 2011-11-24  Enkovich Ilya  <ilya.enkovich@intel.com>
152
153         PR target/51287
154         * config/i386/i386.c (distance_non_agu_define_in_bb): Fix insn
155         attr check.
156
157 2011-11-24  Andrew MacLeod  <amacleod@redhat.com>
158
159         * optab.c (maybe_emit_atomic_exchange): New.  Try to emit an
160         atomic_exchange pattern.
161         (maybe_emit_sync_lock_test_and_set): New.  Try to emit an exchange
162         using __sync_lock_test_and_set.
163         (maybe_emit_compare_and_swap_exchange_loop): New. Try to emit an
164         exchange using a compare_and_swap loop.
165         (expand_sync_lock_test_and_set): New.  Expand sync_lock_test_and_set.
166         (expand_atomic_test_and_set): New.  Expand test_and_set operation.
167         (expand_atomic_exchange): Use new maybe_emit_* functions.
168         (expand_atomic_store): Use new maybe_emit_* functions.
169         * builtins.c (expand_builtin_sync_lock_test_and_set): Call
170         expand_sync_lock_test_and_set routine.
171         (expand_builtin_atomic_exchange): Remove parameter from call.
172         (expand_builtin_atomic_clear): Use atomic_clear pattern if present.
173         (expand_builtin_atomic_test_and_set): Add target and simply call
174         expand_atomic_test_and_set.
175         (expand_builtin): Add target to expand_builtin_atomic_test_and_set.
176         * expr.h (expand_atomic_exchange): Add parameter.
177         (expand_sync_lock_test_and_set): New prototype.
178         (expand_atomic_test_and_set, expand_atomic_clear): New prototypes.
179
180 2011-11-24  H.J. Lu  <hongjiu.lu@intel.com>
181
182         PR target/51134
183         * config/i386/i386.h (processor_costs): Revert revision 181357.
184         * config/i386/i386.c (cost models): Likewise.
185         (core_cost): Likewise.
186         (promote_duplicated_reg): Likewise.
187         (promote_duplicated_reg_to_size): Likewise.
188         (processor_target): Likewise.
189         (expand_set_or_movmem_via_loop_with_iter): Likewise.
190         (expand_set_or_movmem_via_loop): Likewise.
191         (emit_strset): Likewise.
192         (expand_movmem_epilogue): Likewise.
193         (expand_setmem_epilogue): Likewise.
194         (expand_movmem_prologue): Likewise.
195         (expand_setmem_prologue): Likewise.
196         (expand_constant_movmem_prologue): Likewise.
197         (expand_constant_setmem_prologue): Likewise.
198         (decide_alg): Likewise.
199         (decide_alignment): Likewise.
200         (ix86_expand_movmem): Likewise.
201         (ix86_expand_setmem): Likewise.
202         (ix86_slow_unaligned_access): Likewise.
203         * config/i386/i386.md (strset): Likewise.
204         * config/i386/sse.md (vec_dupv4si): Likewise.
205         (vec_dupv2di): Likewise.
206
207 2011-11-24  Georg-Johann Lay  <avr@gjlay.de>
208
209         * config/avr/avr.md (*rotlhi2.15): Set length to 4.
210
211 2011-11-24  Razya Ladelsky  <razya@il.ibm.com>
212
213         * tree-data-ref.c (initialize_data_dependence_relation): Update
214         comment for the self dependence case.
215         (compute_self_dependence): Remove.
216         * tree-vect-data-refs.c (vect_analyze_data_refs): Remove call to
217         compute_self_dependenc.
218
219 2011-11-24  Alan Modra  <amodra@gmail.com>
220
221         * c-decl.c (warn_if_shadowing): Don't warn if shadowed
222         identifier is from system header.
223
224 2011-11-23  Jakub Jelinek  <jakub@redhat.com>
225
226         PR target/51261
227         * config/i386/i386.c (decide_alg): Initialize *dynamic_check
228         even if !optimize.
229
230 2011-11-23  Vladimir Makarov  <vmakarov@redhat.com>
231
232         PR rtl-optimization/48455
233         * doc/invoke.texi (-fira-region): Document default values.
234
235         * flags-types.h (enum ira_region): Add new value
236         IRA_REGION_AUTODETECT.
237
238         * common.opt (fira-region): Set up initial value to
239         IRA_REGION_AUTODETECT.
240
241         * toplev.c (process_options): Set up flag_ira_region depending on
242         -O options.
243
244         * ira.c (ira.c): Remove optimize guard for ira_build.
245
246 2011-11-23  Chung-Lin Tang  <cltang@codesourcery.com>
247
248         PR rtl-optimization/50496
249         * jump.c (redirect_jump): Assert fail on nlabel == NULL_RTX
250         only after epilogue is created. Add comments.
251
252 2011-11-22  Richard Henderson  <rth@redhat.com>
253
254         * config/ia64/ia64.c (ia64_expand_atomic_op): Add model parameter.
255         Generate the barrier required for the memory model.
256         (rtx_needs_barrier): Handle UNSPEC_FETCHADD_REL, UNSPEC_CMPXCHG_REL.
257         * config/ia64/ia64-protos.h: Update.
258         * config/ia64/ia64.md (UNSPEC_FETCHADD_REL): New.
259         (UNSPEC_CMPXCHG_REL): New.
260         * config/ia64/sync.md (mem_thread_fence): New.
261         (atomic_load<IMODE>, atomic_store<IMODE>): New.
262         (atomic_compare_and_swap<IMODE>): New.
263         (cmpxchg_acq_<I124MODE>, cmpxchg_acq_di): New.
264         (atomic_exchange<IMODE>): New.
265         (xchg_acq_<IMODE>): Rename from sync_lock_test_and_set<IMODE>.
266         (atomic_<FETCHOP><IMODE>, atomic_nand<IMODE>): New.
267         (atomic_fetch_<FETCHOP><IMODE>, atomic_fetch_nand<IMODE>): New.
268         (atomic_<FETCHOP>_fetch<IMODE>, atomic_nand_fetch<IMODE>): New.
269         (fetchadd_rel_<I48MODE>): New.
270         (sync_<FETCHOP><IMODE>, sync_nand<IMODE>): Remove.
271         (sync_old_<FETCHOP><IMODE>, sync_old_nand<IMODE>): Remove.
272         (sync_new_<FETCHOP><IMODE>, sync_new_nand<IMODE>): Remove.
273         (sync_compare_and_swap<IMODE>): Remove.
274         (sync_lock_release<IMODE>): Remove.
275
276         * config/ia64/ia64.md: Use define_c_enum for UNSPEC_*
277         and UNSPECV_* constants.
278
279 2011-11-22  Tom de Vries  <tom@codesourcery.com>
280
281         PR rtl-optimization/50764
282         * sched-deps.c (sched_analyze_insn): Make sure frame-related insns are
283         not moved past preceding jump.
284
285 2011-11-22  Jeff Law  <law@redhat.com>
286
287         * doc/contrib.texi: Add entry for David Binderman.
288
289 2011-11-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
290
291         * postreload.c (reload_combine): Mark reg_state as invalid at
292         volatile insns if there has been a use already.
293
294 2011-11-21  Aldy Hernandez  <aldyh@redhat.com>
295
296         * opts.c (finish_options): Do not fail for -fgnu-tm.
297         * gimple-streamer-out.c (output_gimple_stmt): Handle
298         GIMPLE_TRANSACTION.
299         * gimple-streamer-in.c (input_gimple_stmt): Same.
300         * lto-cgraph.c (input_overwrite_node): Read tm_clone bit.
301         (lto_output_node): Write tm_clone bit.
302
303 2011-11-22  Ian Lance Taylor  <iant@google.com>
304
305         * doc/install.texi (Configuration): Correct doc of
306         --enable-build-poststage1-with-cxx: it is not experimental.
307
308 2011-11-22  Jakub Jelinek  <jakub@redhat.com>
309
310         PR tree-optimization/51074
311         * fold-const.c (fold_binary_loc): Fix up VEC_INTERLEAVE_*_EXPR
312         handling for BYTES_BIG_ENDIAN.
313         * optabs.c (can_vec_perm_for_code_p): Likewise.
314
315 2011-11-22  Michael Matz  <matz@suse.de>
316
317         PR other/51125
318         * trans-mem.c (expand_block_tm): Ignore clobbers.
319
320 2011-11-22  Iain Sandoe  <iains@gcc.gnu.org>
321
322         *  config/darwin.h (ENDFILE_SPEC): New.
323         (DARWIN_CRT1_SPEC): Add crttms.o.
324         (STARTFILE_SPEC): Likewise for dynamic libs and bundles.
325         * config/i386.h (ENDFILE_SPEC): Amend to include crttme.o.
326
327 2011-11-22  Michael Matz  <matz@suse.de>
328
329         PR c++/51264
330         * tree.c (iterative_hash_expr): Remove break after return.
331
332 2011-11-22  Iain Sandoe  <iains@gcc.gnu.org>
333
334         * target.def (tm_clone_table_section): New hook.
335         * doc/tm.texi.in (TARGET_ASM_TM_CLONE_TABLE_SECTION): Define.
336         * doc/tm.texi: Regenerate.
337         * varasm.c (dump_tm_clone_pairs): Use target tm_clone_table_section.
338         * output.h (default_clone_table_section): New prototype.
339         * config/darwin.h (TARGET_ASM_TM_CLONE_TABLE_SECTION): New.
340         * config/darwin-protos.h (darwin_tm_clone_table_section): New prototype.
341         * config/darwin.c (darwin_tm_clone_table_section): New.
342
343 2011-11-21  Torvald Riegel  <triegel@redhat.com>
344
345         * trans-mem.c (diagnose_tm_1): Print an expression instead of a
346         declaration in error messages for indirect calls.
347
348 2011-11-21  David S. Miller  <davem@davemloft.net>
349
350         * config/sparc/sparc.c (sparc_regmode_natural_size): New function
351         implementing REGMODE_NATURAL_SIZE taking into consideration vector
352         modes.
353         (sparc_modes_tieable_p): Similarly for MODES_TIEABLE_P.
354         * config/sparc/sparc-protos.h (sparc_regmode_natural_size,
355         sparc_modes_tieable_p): Declare.
356         * gcc/config/sparc/sparc.h (REGMODE_NATURAL_SIZE,
357         MODES_TIEABLE_P): Use new helper functions.
358
359         Revert
360         2011-11-16  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
361
362         PR middle-end/50325
363         * expmed.c (store_bit_field_1): Use extract_bit_field on big
364         endian targets if the source cannot be exactly covered by word
365         mode chunks.
366
367 2011-11-21  Jakub Jelinek  <jakub@redhat.com>
368
369         PR debug/50827
370         * var-tracking.c (loc_cmp): For ENTRY_VALUEs use ENTRY_VALUE_EXP
371         macro instead of XEXP.
372
373 2011-11-21  Andreas Tobler  <andreast@fgznet.ch>
374
375         * configure: Regenerate.
376
377 2011-11-21  Georg-Johann Lay  <avr@gjlay.de>
378
379         * config/avr/avr.c (output_reload_in_const): Loading a byte with 0
380         must not affect cc0.
381         * config/avr/avr.md (*movhi, *movpsi, *movsi, *movsf): Zero to any
382         register does not change cc0. Same for any constant to ld-register.
383
384 2011-11-21  Uros Bizjak  <ubizjak@gmail.com>
385
386         * config/i386/mmx.md (unspec) <UNSPEC_MOVNTQ, UNSPEC_PFRCP,
387         UNSPEC_PFRCPIT1, UNSPEC_PFRCPIT2, UNSPEC_PFRSQRT, UNSPEC_PFRSQIT1>:
388         Move from config/i386/i386.md
389         (unspecv) <UNSPECV_EMMS, UNSPECV_FEMMS>: Ditto.
390         * config/i386/sse.md (unspec) <UNSPEC_MOVNT,UNSPEC_MOVU, UNSPEC_LDDQU,
391         UNSPEC_PSHUFB, UNSPEC_PSIGN, UNSPEC_PALIGNR, UNSPEC_EXTRQI,
392         UNSPEC_EXTRQ, UNSPEC_INSERTQI, UNSPEC_INSERTQ, UNSPEC_BLENDV,
393         UNSPEC_INSERTPS, UNSPEC_DP, UNSPEC_MOVNTDQA, UNSPEC_MPSADBW,
394         UNSPEC_PHMINPOSUW, UNSPEC_PTEST, UNSPEC_PCMPESTR, UNSPEC_PCMPISTR,
395         UNSPEC_FMADDSUB, UNSPEC_XOP_UNSIGNED_CMP, UNSPEC_XOP_TRUEFALSE,
396         UNSPEC_XOP_PERMUTE, UNSPEC_FRCZ, UNSPEC_AESENC, UNSPEC_AESENCLAST,
397         UNSPEC_AESDEC, UNSPEC_AESDECLAST, UNSPEC_AESIMC,
398         UNSPEC_AESKEYGENASSIST, UNSPEC_PCLMUL, UNSPEC_PCMP, UNSPEC_VPERMIL,
399         UNSPEC_VPERMIL2, UNSPEC_VPERMIL2F128, UNSPEC_CAST, UNSPEC_VTESTP,
400         UNSPEC_VCVTPH2PS, UNSPEC_VCVTPS2PH, UNSPEC_VPERMSI, UNSPEC_VPERMDF,
401         UNSPEC_VPERMSF, UNSPEC_VPERMTI, UNSPEC_GATHER, UNSPEC_VSIBADDR>: Ditto.
402         (unspecv) <UNSPECV_LDMXCSR, UNSPECV_STMXCSR, UNSPECV_CLFLUSH,
403         UNSPECV_MONITOR, UNSPECV_MWAIT, UNSPECV_VZEROALL, UNSPECV_VZEROUPPER>:
404         Ditto.
405         * config/i386/sync.md (unspec) <UNSPEC_LFENCE, UNSPEC_SFENCE,
406         UNSPEC_MFENCE, UNSPEC_MOVA>: Ditto.
407         (unspecv) <UNSPECV_CMPXCHG_1, UNSPECV_CMPXCHG_2, UNSPECV_CMPXCHG_3,
408         UNSPECV_CMPXCHG_4, UNSPECV_XCHG, UNSPECV_LOCK>: Ditto.
409         (sse2_lfence): Move from config/i386/sse.md.
410         (*sse2_lfence): Ditto.
411         (sse_sfence): Ditto.
412         (*sse_sfence): Ditto.
413         (sse2_mfence): Ditto.
414         (mfence_sse2): Ditto.  Rename from *sse2_mfence.  Enable also
415         for TARGET_64BIT.
416         (mem_thread_fence): Use mfence_sse2.
417
418 2011-11-21  Georg-Johann Lay  <avr@gjlay.de>
419
420         * config/avr/avr.h (struct base_arch_s): Add field sfr_offset.
421         * config/avr/avr-devices.c: Ditto. And initialize it.
422         * config/avr/avr-c.c (avr_cpu_cpp_builtins): New built-in define
423         __AVR_SFR_OFFSET__.
424         * config/avr/avr-protos.h (out_movqi_r_mr, out_movqi_mr_r): Remove.
425         (out_movhi_r_mr, out_movhi_mr_r): Remove.
426         (out_movsi_r_mr, out_movsi_mr_r): Remove.
427         * config/avr/avr.md (*cbi, *sbi): Use %i instead of %m-0x20.
428         (*insv.io, *insv.not.io): Ditto.
429         * config/avr/avr.c (out_movsi_r_mr, out_movsi_mr_r): Make static.
430         (print_operand): Implement "%i" to print address as I/O address.
431         (output_movqi): Clean up call of out_movqi_mr_r.
432         (output_movhi): Clean up call of out_movhi_mr_r.
433         (avr_file_start): Use avr_current_arch->sfr_offset instead of
434         magic -0x20. Use TMP_REGNO, ZERO_REGNO instead of 0, 1.
435         (avr_out_sbxx_branch): Use %i instead of %m-0x20.
436         (out_movqi_r_mr, out_movqi_mr_r): Ditto. And make static.
437         (out_movhi_r_mr, out_movhi_mr_r): Ditto. And use avr_asm_len.
438         (out_shift_with_cnt): Clean up code: Use avr_asm_len.
439         (output_movsisf): Use output_reload_insisf for all CONSTANT_P sources.
440         (avr_out_movpsi): USE avr_out_reload_inpsi for all CONSTANT_P sources.
441         Clean up call of avr_out_store_psi.
442         (output_reload_in_const): Don't cut symbols longer than 2 bytes.
443         (output_reload_insisf): Filter CONST_INT_P or CONST_DOUBLE_P to
444         try if setting pre-cleared register is advantageous.
445         (avr_out_plus_1): Use gen_int_mode instead of GEN_INT.
446
447 2011-11-20  Joey Ye  <joey.ye@arm.com>
448
449         * expr.c (expand_expr_real_1): Correctly handle strict volatile
450         bitfield loads smaller than mode size.
451
452 2011-11-20  Richard Henderson  <rth@redhat.com>
453
454         * config/mips/mips.c (mips_init_libfuncs): Call init_sync_libfuncs.
455
456 2011-11-20  Uros Bizjak  <ubizjak@gmail.com>
457
458         PR target/51235
459         * config/i386/i386.c (ix86_expand_vcond): Generate TARGET_XOP
460         patterns for supported mode only.
461
462         PR target/51236
463         * config/i386/i386.c (ix86_expand_builtin)
464         <IX86_BUILTIN_GATHERALTSIV4DI>: Use CODE_FOR_avx2_gathersiv4di.
465
466 2011-11-20  Uros Bizjak  <ubizjak@gmail.com>
467
468         * config/i386/i386.md (UNSPEC_MOVNTI): Remove.
469         (UNSPEC_MOVNTQ): New unspec.
470         * config/i386/mmx.md (sse_movntq): Rename from sse_movntdi.
471         Use UNSPEC_MOVNTQ instead of UNSPEC_MOVNT.
472         * config/i386/sse.md (sse2_movnti<mode>): Use UNSPEC_MOVNT instead of
473         UNSPEC_MOVNTI.
474         (STORENT_MODE): Add DI and V4DI modes.
475
476 2011-11-20  Nathan Sidwell  <nathan@acm.org>
477
478         PR gcov-profile/51113
479         * coverage.c (build_var): Propagate visibility for public
480         decls.  Use make_decl_one_only for PIC correctness.
481
482         testsuite/
483         * gcc.misc-tests/gcov-13.c: Check gcovpart-13b coverage
484         * gcc.misc-tests/gcov-16.c: New.
485         * gcc.misc-tests/gcov-17.c: New.
486         * g++.dg/gcov/gcov-8.C: New.
487         * g++.dg/gcov/gcov-9.C: New.
488         * g++.dg/gcov/gcov-10.C: New.
489
490 2011-11-19  Eric Botcazou  <ebotcazou@adacore.com>
491
492         PR rtl-optimization/51187
493         * reorg.c (relax_delay_slots): Do not consider a jump useless if there
494         is a barrier between the jump and its target label.
495
496 2011-11-19  Patrick Marlier  <patrick.marlier@gmail.com>
497
498         PR middle-end/51211
499         * tracer.c (ignore_bb_p): Don't copy GIMPLE_TRANSACTION.
500
501 2011-11-19  Eric Botcazou  <ebotcazou@adacore.com>
502
503         * expmed.c (store_bit_field_1): Revert bogus formatting change.
504
505 2011-11-19  Richard Earnshaw  <rearnsha@arm.com>
506
507         PR target/50493
508         * config/arm/arm.c (neon_disambiguate_copy): Correctly handle partial
509         overlap of src and dest operands.
510
511 2011-11-19  Iain Sandoe  <iains@gcc.gnu.org>
512
513         * config/darwin.h (ASM_DEBUG_SPEC): New.
514         * config/darwin9.h (ASM_DEBUG_SPEC): New.
515
516 2011-11-18  Jan Hubicka  <jh@suse.cz>
517
518         * config/i386/i386.c (atom_cost): Disable SSE loop until alignment
519         issues are fixed.
520
521 2011-11-18  Anatoly Sokolov  <aesok@post.ru>
522
523         * config/cris/cris.c (cris_function_value_regno_p): Make static.
524         (TARGET_FUNCTION_VALUE_REGNO_P): Define.
525         * config/cris/cris.h (FUNCTION_VALUE_REGNO_P): Remove.
526         * config/cris/cris-protos.h (cris_function_value_regno_p): Remove.
527
528 2011-11-18  H.J. Lu  <hongjiu.lu@intel.com>
529
530         PR target/33944
531         * doc/extend.texi: Document __builtin_ia32_movnti64.
532
533         * config/i386/emmintrin.h (_mm_stream_si64): New.
534
535         * config/i386/i386-builtin-types.def: Add VOID_FTYPE_PLONGLONG_LONGLONG.
536
537         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MOVNTI64.
538         (bdesc_special_args): Update __builtin_ia32_movnti.  Add
539         __builtin_ia32_movnti64.
540         (ix86_expand_special_args_builtin): Handle
541         VOID_FTYPE_PLONGLONG_LONGLONG.
542
543         * config/i386/i386.md (UNSPEC_MOVNTI): New.
544
545         * config/i386/sse.md (sse2_movntsi): Renamed to ...
546         (sse2_movnti<mode>): This.
547
548 2011-11-18  Georg-Johann Lay  <avr@gjlay.de>
549
550         PR target/49868
551         * config/avr/avr.h (base_arch_s): Add field n_segments.
552         (ADDR_SPACE_PGM1, ADDR_SPACE_PGM2, ADDR_SPACE_PGM3,
553         ADDR_SPACE_PGM4, ADDR_SPACE_PGM5, ADDR_SPACE_PGMX): New address spaces.
554         (AVR_HAVE_ELPM, AVR_HAVE_ELPMX): New defines.
555         (INIT_EXPANDERS): New define.
556         * config/avr/avr-protos.h (avr_mem_pgmx_p): New.
557         (avr_init_expanders): New.
558         (avr_emit_movmemhi, avr_out_movmem): New.
559         (avr_xload_libgcc_p): New.
560         * config/avr/avr-c.c (avr_register_target_pragmas): Register
561         address spaces __pgm1, __pgm2,  __pgm3,  __pgm4  __pgm5,  __pgmx.
562         (avr_cpu_cpp_builtins): Add built-in defines __PGM1,
563         __PGM2, __PGM3, __PGM4, __PGM5, __PGMX.
564         * config/avr/avr-devices.c (avr_arch_types): Set field n_segments.
565
566         * config/avr/avr.c (AVR_SECTION_PROGMEM): Change define to cover
567         3 bits instead of just 1.
568         (xstring_empty, xstring_e, rampz_rtx): New static GTYed variables.
569         (progmem_section): Change from section to array of sections.
570         (progmem_section_prefix): New static variable.
571         (avr_file_start): Print set for __RAMPZ__
572         (avr_option_override): Move initialization of RTXes from here...
573         (avr_init_expanders): ...to this new function.
574         (avr_pgm_segment): New static function.
575         (avr_decl_pgm_p): Handle error_mark_node.
576         (avr_mem_pgmx_p, avr_decl_pgmx_p): New static functions.
577         (avr_out_xload, avr_find_unused_d_reg): New static functions.
578         (expand_prologue, expand_epilogue): Use rampz_rtx.
579         (print_operand): Hande CONST_STRING.
580         (avr_xload_libgcc_p): New static function.
581         (avr_out_lpm_no_lpmx, avr_out_lpm): Handle ELPM.
582         (avr_progmem_p): Return 2 for 24-bit flash address space.
583         (avr_out_sbxx_branch): Clean-up code from ASn macros.
584         (out_movqi_r_mr, out_movqi_mr_r): Ditto. And recognize RAMPZ's
585         address and print symbolically.
586         (avr_asm_named_section, avr_section_type_flags,
587         avr_encode_section_info, avr_asm_select_section,
588         avr_addr_space_address_mode, avr_addr_space_pointer_mode,
589         avr_addr_space_legitimate_address_p, avr_addr_space_convert,
590         avr_addr_space_legitimize_address): Handle new address spaces.
591         (avr_output_progmem_section_asm_op): New static function.
592         (avr_asm_init_sections): Initialize progmem_section[].
593         (adjust_insn_length): Handle ADJUST_LEN_XLOAD, ADJUST_LEN_MOVMEM.
594         (avr_const_address_lo16): New static function.
595         (avr_assemble_integer): Use it to handle 3-byte integers.
596         (avr_emit_movmemhi, avr_out_movmem): New functions.
597
598         * config/avr/predicates.md (nox_general_operand): Handle new
599         address spaces.
600         * config/avr/avr.md (unspec): Add UNSPEC_MOVMEM.
601         (adjust_len): Add xload, movmem.
602         (SP_ADDR): New define_constants.
603         (isa): Add "lpm", "lpmx", "elpm", "elpmx".
604         (enabled): Handle them.
605         (load<mode>_libgcc): New expander.
606         (*load.<mode>.libgcc): Rename to load_<mode>_libgcc.
607         (xload8_A, xload<mode>_A): New insn-and-splits.
608         (xload_8, xload_<mode>_libgcc, xload_<mode>, loadmem_elpm): New insns.
609         (mov<mode>): Handle new address spaces.
610         (movmemhi): Rewrite using avr_emit_movmemhi.
611         (MOVMEM_r_d): New mode attribute.
612         (movmem_<mode>, movmem_qi_elpm): New insns.
613         (setmemhi, *clrmemqi, *clrmemhi, strlenhi, *strlenhi): Unquote
614         C-code.  Use label instead of hard-coded instrunction lengths.
615
616 2011-11-18  Martin Jambor  <mjambor@suse.cz>
617
618         PR tree-optimization/50605
619         * gimple.c (is_gimple_ip_invariant_address): Also handle MEM_REFs
620         of IPA invariant decls.
621
622 2011-11-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
623
624         * tree-outof-ssa.c (insert_back_edge_copies):  Add call to
625         mark_dfs_back_edges.
626
627 2011-11-18  Iain Sandoe  <iains@gcc.gnu.org>
628
629         PR target/49992
630         * configure.ac: Remove ranlib special-casing for Darwin.
631         * configure: Regenerate.
632
633 2011-11-18  Uros Bizjak  <ubizjak@gmail.com>
634
635         PR tree-optimization/51118
636         * fold-const.c (fold_checksum_tree): Check for TS_TYPED structure
637         before using TREE_TYPE accessor on expr.
638
639 2011-11-17  Jan Hubicka  <jh@suse.cz>
640
641         PR bootstrap/51134
642         * i386.c (atom_cost): Fix 32bit memset description.
643         (expand_set_or_movmem_via_loop_with_iter): Output proper bounds check
644         for epilogue loops.
645         (expand_movmem_epilogue): Handle epilogues up to size 15 w/o producing
646         byte loop.
647         (decide_alg): sse_loop is not useable wthen SSE2 is disabled;
648         when not optimizing always use rep movsb or lincall; do not produce
649         word sized loops when optimizing memset for size (to avoid need
650         for large constants).
651         (ix86_expand_movmem): Get into sync with ix86_expand_setmem;
652         choose unroll factors better; always do 128bit moves when producing
653         SSE loops; do not produce loopy epilogue when size is too small.
654         (promote_duplicated_reg_to_size): Do not look into desired alignments
655         when doing vector expansion.
656         (ix86_expand_setmem): Track better when promoted value is available;
657         choose unroll factors more sanely. Output loopy epilogue only
658         when needed.
659
660 2011-11-17  Steve Ellcey  <sje@cup.hp.com>
661
662         PR middle-end/51144
663         * output.h (fprint_w): Remove.
664         * final.c (fprint_w): Remove.
665         (output_addr_const): Change fprint_w back to fprintf.
666
667 2011-11-17  Andrew Pinski  <apinski@cavium.com>
668
669         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for MIPS.
670
671 2011-11-17  Andrew MacLeod  <amacleod@redhat.com>
672
673         * builtins.c (expand_builtin): Remove 4th parameter representing
674         weak/strong mode when __atomic_compare_exchange becomes a library call.
675
676 2011-11-17  Richard Henderson  <rth@redhat.com>
677
678         * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap): Get
679         new pseudo for target after convert_modes.
680         (rs6000_expand_atomic_exchange, rs6000_expand_atomic_op): Likewise.
681
682 2011-11-17  Richard Henderson  <rth@redhat.com>
683
684         * builtins.c (expand_builtin_mem_thread_fence): Remove.
685         (expand_builtin_mem_signal_fence): Remove.
686         (expand_builtin_atomic_thread_fence): Use expand_mem_thread_fence.
687         (expand_builtin_sync_synchronize): Likewise.
688         (expand_builtin_atomic_signal_fence): Use expand_mem_signal_fence.
689         * optabs.c (expand_asm_memory_barrier): Split out from
690         expand_builtin_mem_signal_fence.
691         (expand_mem_thread_fence): New, a combination of code from
692         expand_builtin_mem_thread_fence and expand_builtin_sync_synchronize.
693         (expand_mem_signal_fence): Moved and renamed from
694         expand_builtin_mem_signal_fence.
695         (expand_atomic_exchange): Use expand_mem_thread_fence.
696         (expand_atomic_load, expand_atomic_store): Likewise.
697         * expr.h, optabs.h: Update decls.
698
699 2011-11-17  Bin Cheng  <bin.cheng@arm.com>
700
701         PR rtl-optimization/50663
702         * cprop.c (implicit_set_indexes): New global variable.
703         (insert_set_in_table): Add additional parameter and record implicit
704         set information.
705         (hash_scan_set): Add additional parameter and pass it to above.
706         (hash_scan_insn): Pass false to hash_scan_set.
707         (compute_hash_table_work): Pass true to hash_scan_set.
708         (compute_cprop_data): Add implicit set to AVIN of block which the
709         implicit set is recorded for.
710         (one_cprop_pass): Handle implicit_set_indexes array.
711
712 2011-11-17  Michael Matz  <matz@suse.de>
713
714         PR middle-end/50644
715         PR middle-end/50741
716         * tree-ssa-live.c (mark_all_vars_used_1): Recurse only for decls of
717         current function.
718         (remove_unused_locals): Ditto.
719
720 2011-11-16  Richard Henderson  <rth@redhat.com>
721
722         * config/alpha/alpha.c (alpha_split_compare_and_swap_12): Copy
723         ALIAS_SET_MEMORY_BARRIER when creating a new memory.
724         (alpha_split_atomic_exchange_12): Likewise.
725         * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Likewise.
726
727 2011-11-16  Joseph Myers  <joseph@codesourcery.com>
728
729         * config/i386/i386elf.h (PREFERRED_DEBUGGING_TYPE): Remove.
730
731 2011-11-16  David Edelsohn  <dje.gcc@gmail.com>
732
733         * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags):
734         Default to minimum alignment if decl is NULL.
735
736 2011-11-16  Uros Bizjak  <ubizjak@gmail.com>
737
738         * config/i386/sse.md (round<mode>2_vec_pack_sfix): Optimize V2DFmode
739         sequence for AVX.
740         (<sse4_1>_round<ssemodesuffix>_vec_pack_sfix<avxsizesuffix>): Ditto.
741
742 2011-11-16  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
743
744         * doc/invoke.texi: Document AMD bdver1 and btver1.
745
746 2011-11-16  Richard Earnshaw  <rearnsha@arm.com>
747             Bernd Schmidt <bernds@coudesourcery.com>
748             Sebastian Huber <sebastian.huber@embedded-brains.de>
749
750         PR target/49641
751         * config/arm/arm.c (store_multiple_sequence): Avoid cases where
752         the base reg is stored iff compiling for Thumb1.
753
754 2011-11-16  Razya Ladelsky  <razya@il.ibm.com>
755
756         PR tree-optimization/49960
757         * tree-data-ref.c (initialize_data_dependence_relation): Add
758         initializations.
759         Remove call to compute_self_dependence.
760         (compute_affine_dependence): Remove the !DDR_SELF_REFERENCE condition.
761         (compute_self_dependence): Remove old code. Add call to
762         compute_affine_dependence.
763         (compute_all_dependences): Remove call to compute_self_dependence.
764         Add call to compute_affine_dependence.
765
766 2011-11-16  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
767
768         PR middle-end/50325
769         * expmed.c (store_bit_field_1): Use extract_bit_field on big
770         endian targets if the source cannot be exactly covered by word
771         mode chunks.
772
773 2011-11-15  Joseph Myers  <joseph@codesourcery.com>
774
775         * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Change STRING_LIMIT to
776         ELF_STRING_LIMIT.
777
778 2011-11-15  Richard Henderson  <rth@redhat.com>
779
780         * config/alpha/alpha.c (alpha_pre_atomic_barrier): New.
781         (alpha_post_atomic_barrier): New.
782         (alpha_split_atomic_op): New memmodel argument; honor it.
783         (alpha_split_compare_and_swap): Take array of operands.  Honor
784         memmodel; always set bool output
785         (alpha_expand_compare_and_swap_12): Similarly.
786         (alpha_split_compare_and_swap_12): Similarly.
787         (alpha_split_atomic_exchange): Similarly.  Rename from
788         alpha_split_lock_test_and_set.
789         (alpha_expand_atomic_exchange_12): Similarly.  Rename from
790         alpha_expand_lock_test_and_set_12.
791         (alpha_split_atomic_exchange_12): Similarly.  Rename from
792         alpha_split_lock_test_and_set_12.
793         * config/alpha/alpha-protos.h: Update.
794         * config/alpha/alpha.md (UNSPECV_CMPXCHG): New.
795         * config/alpha/constraints.md ("w"): New.
796         * config/alpha/predicates.md (mem_noofs_operand): New.
797         * config/alpha/sync.md (atomic_compare_and_swap<mode>): Rename from
798         sync_compare_and_swap<mode>; add the new parameters.
799         (atomic_exchange<mode>): Update from sync_test_and_set<mode>.
800         (atomic_fetch_<op><mode>): Update from sync_old_<op><mode>.
801         (atomic_<op>_fetch<mode>): Update from sync_new_<op><mode>.
802         (atomic_<op><mode>): Update from sync_<op><mode>.
803
804 2011-11-16  Tom de Vries  <tom@codesourcery.com>
805
806         * tree-ssa-tail-merge.c (replace_block_by): Add frequency of bb2 to bb1.
807
808 2011-11-16  Alan Modra  <amodra@gmail.com>
809
810         PR rtl-optimization/51051
811         PR bootstrap/51086
812         * function.c (thread_prologue_and_epilogue_insns): Guard
813         emitting return with single_succ_p test.
814
815 2011-11-15  Joern Rennecke  <joern.rennecke@embecosm.com>
816
817         * config/epiphany/epiphany.md (mov<mode>cc): Fix code to
818         get mode from CMP_OP1 if CMP_OP0 is VOIDmode.
819
820 2011-11-15  Uros Bizjak  <ubizjak@gmail.com>
821
822         * config/i386/sse.md (vec_pack_trunc_v2df): Optimize sequence for AVX.
823         (vec_pack_sfix_trunc_v2df): Ditto.
824         (vec_pack_sfix_v2df): Ditto.
825         (vec_pack_sfix_trunc_v4df): Generate fix_truncv4dfv4si2 and
826         avx_vec_concatv8si patterns.
827         (vec_pack_sfix_v4df): Generate avx_cvtpd2dq256 and
828         avx_vec_concatv8si patterns.
829
830 2011-11-15  Torvald Riegel  <triegel@redhat.com>
831
832         * c-parser.c (c_parser_transaction_expression): Require parentheses
833         when parsing transaction expressions.
834
835 2011-11-15  Tristan Gingold  <gingold@adacore.com>
836
837         * incpath.c (get_added_cpp_dirs): New function.
838         * incpath.h (get_added_cpp_dirs): Declare.
839         * config/vms/vms-c.c (vms_c_register_includes): New function.
840         (vms_std_modules): New variable.
841         * config/vms/vms.h (TARGET_EXTRA_INCLUDES): Define.
842         (vms_c_register_includes): Declare.
843
844 2011-11-15  Tristan Gingold  <gingold@adacore.com>
845
846         * c-family/c-pragma.h (pragma_extern_prefix): Declare.
847         * c-family/c-pragma.c (pragma_extern_prefix): Make it public.
848         * config/vms/vms-c.c (saved_extern_prefix): New variable.
849         (vms_pragma_extern_prefix): New function.
850         (vms_c_register_pragma): Register vms_pragma_extern_prefix.
851
852 2011-11-15  Georg-Johann Lay  <avr@gjlay.de>
853
854         PR target/49868
855         * config/avr/avr.h (ADDR_SPACE_PGM): New address spaces.
856         (REGISTER_TARGET_PRAGMAS): New define.
857         * config/avr/avr-protos.h (avr_mem_pgm_p): New.
858         (avr_load_libgcc_p): New.
859         (avr_register_target_pragmas): New.
860         (asm_output_external_libcall): Remove.
861         (avr_log_t): Add field "progmem".  Order alphabetically.
862         * config/avr/avr-log.c (avr_log_set_avr_log): Set avr_log.progmem.
863         * config/avr/avr-c.c (langhooks.h): New include.
864         (avr_register_target_pragmas): New function. Register address
865         space __pgm.
866         (avr_cpu_cpp_builtins): Add built-in define __PGM.
867
868         * config/avr/avr.c: Include "c-family/c-common.h".
869         (TARGET_LEGITIMATE_ADDRESS_P): Remove define.
870         (TARGET_LEGITIMIZE_ADDRESS): Remove define.
871         (TARGET_ADDR_SPACE_SUBSET_P): Define to...
872         (avr_addr_space_subset_p): ...this new static function.
873         (TARGET_ADDR_SPACE_CONVERT): Define to...
874         (avr_addr_space_convert): ...this new static function.
875         (TARGET_ADDR_SPACE_ADDRESS_MODE): Define to...
876         (avr_addr_space_address_mode): ...this new static function.
877         (TARGET_ADDR_SPACE_POINTER_MODE): Define to...
878         (avr_addr_space_pointer_mode): ...this new static function.
879         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define to...
880         (avr_addr_space_legitimate_address_p): ...this new static function.
881         (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Define to...
882         (avr_addr_space_legitimize_address): ...this new static function.
883         (avr_mode_code_base_reg_class): Handle address spaces.
884         (avr_regno_mode_code_ok_for_base_p): Ditto.
885         (lpm_addr_reg_rtx, lpm_reg_rtx, all_regs_rtx): New static variables.
886         (avr_option_override): Initialize them.
887         (output_reload_in_const): Use all_regs_rtx. Fix signedness of loop
888         variables.
889         (avr_pgm_segment): New static function.
890         (avr_decl_pgm_p, avr_mem_pgm_p): New static functions.
891         (avr_out_lpm, avr_out_lpm_no_lpmx): New static functions.
892         (output_movqi, output_movhi, output_movsisf, avr_out_movpsi): Call
893         avr_out_lpm to handle loads from progmem.
894         (avr_load_libgcc_p): New static function.
895         (avr_progmem_p): Test if decl is in flash.
896         (avr_pgm_pointer_const_p): New static function.
897         (avr_nonconst_pointer_addrspace): New static function.
898         (avr_pgm_check_var_decl): New static function.
899         (avr_insert_attributes): Use it.  Change error message to report
900         cause (progmem or address space) when code wants to write to flash.
901         (avr_section_type_flags): Unset section flag SECTION_BSS for
902         data in progmem.
903
904         * config/avr/predicates.md (nop_general_operand): New predicate.
905         (nox_general_operand): New predicate.
906         * config/avr/avr.md (LPM_REGNO): New define_constant.
907         (load<mode>_libgcc): New expander.
908         (*load.<mode>.libgcc): New insn.
909         (mov<mode>): Handle loads from non-generic AS.
910         (movmemhi): Ditto.  Propagate address space information to newly
911         created MEM.
912         (movqi_insn, *movhi, *movpsi, *movsi, *movsf): Change predicate #1
913         to nox_general_operand.
914         (ashrqi3, ashrhi3, ashrsi3): Change predicate #1 to
915         nop_general_operand.
916         (ashlqi3, *ashlqi3, ashlhi3, ashlsi3): Ditto.
917         (lshrqi3, *lshrqi3, lshrhi3, lshrsi3): Ditto.
918         (split-lpmx): New split.
919         (*ashlhi3_const, *ashlsi3_const, *ashrhi3_const, *ashrsi3_const,
920         *lshrhi3_const, *lshrsi3_const): Indent, unquote C.
921
922 2011-11-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
923
924         * ipa-cp.c (ipa_value_from_jfunc): Make global.
925         (ipa_cst_from_jfunc): Remove, use ipa_value_from_jfunc instead.
926         (get_indirect_edge_target): Rename, make global.
927         (devirtualization_time_bonus, estimate_local_effects,)
928         (ipcp_discover_new_direct_edges): Update.
929         * ipa-inline-analysis.c (evaluate_conditions_for_edge):
930         Generalize to also handle types.  Rename to ...
931         (evaluate_properties_for_edge): Use instead of
932         evaluate_conditions_for_edge.
933         (estimate_edge_devirt_benefit): New function.
934         (estimate_calls_size_and_time): Use it.
935         (estimate_node_size_and_time, estimate_ipcp_clone_size_and_time,)
936         (inline_merge_summary): Update.
937         (do_estimate_edge_time, do_estimate_edge_growth): Update.  Calculate
938         parameter information at the call site and pass it on to subroutines.
939         * tree-inline.c (estimate_num_insns): Distinguish between direct and
940         indirect calls.
941         (init_inline_once): Set size and time costs or indirect calls.
942         * tree-inline.h (eni_weights): Add indirect_call_cost.
943
944 2011-11-15  Tom de Vries  <tom@codesourcery.com>
945
946         PR tree-optimization/51005
947         * tree-ssa-tail-merge.c (delete_basic_block_same_succ): Rename to
948         mark_basic_block_deleted.
949         (update_worklist): Inline purge_bbs.
950         (purge_bbs, unlink_virtual_phi, update_vuses, vop_at_entry)
951         (delete_block_update_dominator_info): Remove.
952         (replace_block_by): Remove update_vops parameter.  Partially evaluate
953         for update_vops == false.
954         (apply_clusters): Remove update_vops parameter.  Remove update_vops
955         argument in replace_block_by call.
956         (update_debug_stmts): Remove MAY_HAVE_DEBUG_STMTS test.
957         (tail_merge_optimize): Remove update_vops argument to apply_clusters.
958         Remove call to purge_bbs.  Add calls to calculate_dominance_info and
959         free_dominance_info.  Add MAY_HAVE_DEBUG_STMTS  before calling
960         update_debug_stmts.  Mark vop var for renaming, if necessary.
961
962 2011-11-15  Bernd Schmidt  <bernds@codesourcery.com>
963
964         PR rtl-optimization/51051
965         * cfgrtl.c (cfg_layout_can_merge_blocks_p): Return FALSE if the
966         move would cause fallthrough into the exit block.
967
968 2011-11-14  Richard Henderson  <rth@redhat.com>
969
970         * config/rs6000/rs6000.c (emit_load_locked): Assert the mode is
971         handled.
972         (emit_store_conditional): Likewise.
973         (rs6000_pre_atomic_barrier, rs6000_post_atomic_barrier): New.
974         (rs6000_adjust_atomic_subword): New.
975         (rs6000_mask_atomic_subword, rs6000_finish_atomic_subword): New.
976         (rs6000_expand_atomic_op): Rename from rs6000_emit_sync; rewrite
977         for pre-reload expansion.
978         (rs6000_split_compare_and_swap, rs6000_split_compare_and_swapqhi,
979         rs6000_expand_compare_and_swapqhi): Merge into ...
980         (rs6000_expand_atomic_compare_and_swap): ... here.  New function.
981         rs6000_split_lock_test_and_set; expand immediately.  Handle
982         QImode and HImode.
983         * config/rs6000/rs6000.md (UNSPEC_LWSYNC): Move and rename
984         from UNSPECV_LWSYNC.
985         * config/rs6000/sync.md (fetchopsi_constr, fetchopdi_constr): Remove.
986         (mem_thread_fence): New.
987         (hwsync): Rename from memory_barrier.
988         (*hwsync): Rename from *sync_internal.
989         (lwsync, *lwsync): Mirror hwsync implementation.
990         (isync): Don't reference memory.
991         (loadsync): New.
992         (atomic_load<INT>, atomic_store<INT>): New.
993         (ATOMIC): New mode iterator.
994         (load_locked<ATOMIC>): Rename from load_locked_<GPR>.
995         (store_conditional<ATOMIC>): Rename from store_conditional_<GPR>.
996         (sync_compare_and_swap<GPR>): Remove.
997         (sync_compare_and_swaphi, sync_compare_and_swapqi): Remove.
998         (sync_compare_and_swapqhi_internal): Remove.
999         (sync_lock_test_and_set<GPR>): Remove.
1000         (sync_<FETCHOP><INT1>): Remove.
1001         (*sync_<FETCHOP>si_internal, *sync_<FETCHOP>di_internal): Remove.
1002         (sync_nand<INT1>, *sync_nand<GPR>_internal): Remove.
1003         (sync_old_<FETCHOP><GPR>): Remove.
1004         (*sync_old_<FETCHOP>si_internal): Remove.
1005         (*sync_old_<FETCHOP>di_internal): Remove.
1006         (sync_old_nand<INT1>): Remove.
1007         (*sync_old_nand<GPR>_internal): Remove.
1008         (sync_new_<FETCHOP><GPR>): Remove.
1009         (*sync_new_<FETCHOP>si_internal): Remove.
1010         (*sync_new_<FETCHOP>di_internal): Remove.
1011         (sync_new_nand<INT1>): Remove.
1012         (*sync_new_nand<GPR>_internal): Remove.
1013         (*atomic_andsi, *atomic_anddi): Remove.
1014         (*sync_addshort_internal, *sync_subshort_internal): Remove.
1015         (*sync_andsi_internal, *sync_boolsi_internal): Remove.
1016         (*sync_boolcshort_internal): Remove.
1017         (sync_lock_release<INT1>): Remove.
1018         (atomic_compare_and_swap<INT1>): New.
1019         (atomic_exchange<INT1>): New.
1020         (atomic_<FETCHOP><INT1>, atomic_nand<INT1>): New.
1021         (atomic_fetch_<FETCHOP><INT1>, atomic_fetch_nand<INT1>): New.
1022         (atomic_<FETCHOP>_fetch<INT1>, atomic_nand_fetch<INT1>): New.
1023
1024 2011-11-14  Uros Bizjak  <ubizjak@gmail.com>
1025
1026         * config/i386/sse.md (round<mode>2): Use register_operand for
1027         operand 1 predicate.
1028         (round<mode>2_sfix): Ditto.
1029         (round<mode>2_vec_pack_sfix): Ditto for operand 1 and operand 2.
1030
1031 2011-11-14  Nathan Sidwell  <nathan@acm.org>
1032
1033         * gcov.c (canonicalize_name): Protect use of S_ISLNK.
1034
1035 2011-11-14  Jan Hubicka  <jh@suse.cz>
1036
1037         PR target/51126
1038         * config/i386/i386.c (core cost model): Correct pasto.
1039
1040 2011-11-14  Uros Bizjak  <ubizjak@gmail.com>
1041
1042         * config/i386/sse.md (round<mode>2_sfix): New expander.
1043         (round<mode>2_vec_pack_sfix): Ditto.
1044         (<sse4_1>_round<ssemodesuffix>_sfix<avxsizesuffix>): Ditto.
1045         (<sse4_1>_round<ssemodesuffix>_vec_pack_sfix<avxsizesuffix>): Ditto.
1046         * config/i386/builtin-types.def (V4SI_FTYPE_V4SF_ROUND,
1047         V8SI_FTYPE_V8SF_ROUND, V4SI_FTYPE_V2DF_V2DF_ROUND,
1048         V8SI_FTYPE_V4DF_V4DF_ROUND): New builtin types.
1049         * config/i386/i386.c (ix86_builtins): Add
1050         IX86_BUILTIN_{FLOORPD,CEILPD,ROUNDPD_AZ}_VEC_PACK_SFIX{,256} and
1051         IX86_BUILTIN_{FLOORPS,CEILPS,ROUNDPS_AZ}_SFIX{,256} defines.
1052         (bdesc_args): Add __builtin_ia32_{floorpd,ceilpd}_vec_pack_sfix{,256},
1053         __builtin_ia32_roundpd_az_vec_pack_sfix{,256},
1054         __builtin_ia32_{floorps,ceilps}_sfix{,256}and
1055         __builtin_ia32_roundps_az_sfix{,256} descriptions.
1056         (ix86_expand_sse_round_vec_pack_sfix): New.
1057         (ix86_expand_args_builtin): Handle V4SI_FTYPE_V4SF_ROUND,
1058         V8SI_FTYPE_V8SF_ROUND, V4SI_FTYPE_V2DF_V2DF_ROUND and
1059         V8SI_FTYPE_V4DF_V4DF_ROUND types.  Check last argument of
1060         CODE_FOR_sse4_1_roundpd_vec_pack_sfix, CODE_FOR_sse4_1_roundps_sfix,
1061         CODE_FOR_avx_roundpd_vec_pack_sfix256 and CODE_FOR_avx_roundps_sfix256.
1062         (ix86_builtin_vectorized_function): Handle
1063         BUILT_IN_{I,L,LL}FLOOR{,F}, BUILT_IN_{I,L,LL}CEIL{,F} and
1064         BUILT_IN_{I,L,LL}ROUND{,F}
1065
1066 2011-11-14  Jan Hubicka  <jh@suse.cz>
1067
1068         PR middle-end/50598
1069         * cgraph.h (varpool_externally_visible_p): Declare.
1070         (varpool_add_new_variable): Declare.
1071         * tree-emultls.c (get_emutls_init_templ_addr,
1072         new_emutls_decl): Use varpool_add_new_variable.
1073         * ipa.c (varpool_externally_visible_p): Export.
1074         * varpool.c (varpool_add_new_variable): New function.
1075
1076 2011-11-14  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
1077             Jan Hubicka  <jh@suse.cz>
1078
1079         * config/i386/i386.h (processor_costs): Add second dimension to
1080         stringop_algs array.
1081         * config/i386/i386.c (cost models): Initialize second dimension of
1082         stringop_algs arrays.
1083         (core_cost): New costs based on generic64 costs with updated stringop
1084         values.
1085         (promote_duplicated_reg): Add support for vector modes, add
1086         declaration.
1087         (promote_duplicated_reg_to_size): Likewise.
1088         (processor_target): Set core costs for core variants.
1089         (expand_set_or_movmem_via_loop_with_iter): New function.
1090         (expand_set_or_movmem_via_loop): Enable reuse of the same iters in
1091         different loops, produced by this function.
1092         (emit_strset): New function.
1093         (expand_movmem_epilogue): Add epilogue generation for bigger sizes,
1094         use SSE-moves where possible.
1095         (expand_setmem_epilogue): Likewise.
1096         (expand_movmem_prologue): Likewise for prologue.
1097         (expand_setmem_prologue): Likewise.
1098         (expand_constant_movmem_prologue): Likewise.
1099         (expand_constant_setmem_prologue): Likewise.
1100         (decide_alg): Add new argument align_unknown.  Fix algorithm of
1101         strategy selection if TARGET_INLINE_ALL_STRINGOPS is set; Skip sse_loop
1102         (decide_alignment): Update desired alignment according to chosen move
1103         mode.
1104         (ix86_expand_movmem): Change unrolled_loop strategy to use SSE-moves.
1105         (ix86_expand_setmem): Likewise.
1106         (ix86_slow_unaligned_access): Implementation of new hook
1107         slow_unaligned_access.
1108         * config/i386/i386.md (strset): Enable half-SSE moves.
1109         * config/i386/sse.md (vec_dupv4si): Add expand for vec_dupv4si.
1110         (vec_dupv2di): Add expand for vec_dupv2di.
1111
1112 2011-11-14  Dimitrios Apostolou  <jimis@gmx.net>
1113
1114         PR bootstrap/51094
1115         PR middle-end/51116
1116         * config/elfos.h (TARGET_ASM_INTERNAL_LABEL): Remove.
1117         * varasm.c (default_elf_internal_label): Remove.
1118
1119 2011-11-14  Kai Tietz  <ktietz@redhat.com>
1120
1121         * gcov.c (generate_results): Add missing semicolon and correct indent.
1122
1123 2011-11-14  Ira Rosen  <ira.rosen@linaro.org>
1124
1125         PR bootstrap/51112
1126         * tree-vect-stmts.c (vectorizable_condition): Initialize comp_vectype.
1127
1128 2011-11-14  Mingjie Xing  <mingjie.xing@gmail.com>
1129
1130         * doc/invoke.texi (Wunused-result): Change @pxref{Variable Attributes}
1131         to @pxref{Function Attributes}.
1132
1133 2011-11-13  Oleg Endo  <oleg.endo@t-online.de>
1134
1135         PR target/50694
1136         * config/sh/sh.h (IS_LITTLE_ENDIAN_OPTION, UNSUPPORTED_SH2A):
1137         New macros.
1138         (DRIVER_SELF_SPECS): Use new macros to filter out unsupported options
1139         taking the default configuration into account.
1140
1141 2011-11-13  Jonathan Wakely  <jwakely.gcc@gmail.com>
1142
1143         * doc/install.texi (Specific): Fix anchor for
1144         x86_64-*-solaris2.1[0-9]*.
1145
1146 2011-11-13  Nathan Sidwell  <nathan@acm.org>
1147
1148         * gcov.c (source_prefix, source_length): New globals.
1149         (flag_relative_only): Likewise.
1150         (print_usage, options, process_args): Update.
1151         (generate_results): Use coverage.name, check
1152         flag_relative_only. Adjust messages.
1153         (find_source): Check source_prefix.
1154         (output_lines): Use coverage.name, adjust messages.
1155         * doc/gcov.texi (Invoking Gcov): Document new options.
1156
1157 2011-11-12  Jason Merrill  <jason@redhat.com>
1158
1159         PR c++/51060
1160         * gimplify.c (gimplify_target_expr): Add a clobber to the cleanup.
1161         (gimplify_modify_expr): Don't try to simplify it.
1162
1163 2011-11-12  Dimitrios Apostolou  <jimis@gmx.net>
1164
1165         PR bootstrap/51094
1166         * config/elfos.h (STRING_ASM_OP): Define.
1167         * varasm.c (default_elf_asm_output_limited_string): Use it.
1168
1169         PR bootstrap/51094
1170         * gcc/configure.ac: Check for stpcpy declaration.
1171         * system.h: Declare it if not.
1172         * config.in, configure: Regenerate.
1173
1174 2011-11-12  Richard Henderson  <rth@redhat.com>
1175
1176         * config/rs6000/rs6000.md (fix_trunc<SFDF>si2_stfiwx): Use
1177         nonimmediate_operand for the destination.
1178         (fixuns_trunc<SFDF>si2_stfiwx): Likewise.
1179
1180         * builtins.c (expand_builtin_compare_and_swap): If target is const0,
1181         don't pass the target to expand_atomic_compare_and_swap.
1182         (expand_builtin_atomic_compare_exchange): Likewise.
1183
1184         * config/sh/linux.h (TARGET_INIT_LIBFUNCS): New.
1185         * config/sh/sh.c (sh_init_sync_libfuncs): New.
1186
1187         * config/pa/pa-linux.h (TARGET_SYNC_LIBCALL): New.
1188         * config/pa/pa.h (TARGET_SYNC_LIBCALL): New default.
1189         * config/pa/pa.c (pa_init_libfuncs): Use init_sync_libfuncs.
1190
1191 2011-11-12  Iain Sandoe  <iains@gcc.gnu.org>
1192
1193         PR target/45233
1194         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address):
1195         Only expand a symbol ref. into an access when the entity is defined
1196         in the TU.
1197
1198 2011-11-12  Jan Hubicka  <jh@suse.cz>
1199
1200         PR bootstrap/50822
1201         * cgraphunit.c (output_weakrefs): Output really only weakrefs.
1202
1203 2011-11-12  Nathan Sidwell  <nathan@acm.org>
1204
1205         * gcov.c (struct name_map): New.
1206         (names, n_names, a_names): New global vars.
1207         (print_usage): Adjust usage.
1208         (generate_results): Canonicalize main file name.
1209         (release_structures): Adjust.
1210         (name_search, name_sort): New callbacks.
1211         (find_source): Look for and create a canonical name.
1212         (canonicalize_name): New.
1213         (make_gcov_file_name): Reimplement and fix mangling.
1214         (mangle_name): New.
1215         * doc/gcov.texi: Update documentation about path preservation.
1216
1217 2011-11-11  David S. Miller  <davem@davemloft.net>
1218
1219         * config/sparc/linux.h (ASM_GENERATE_INTERNAL_LABEL): Delete.
1220         * config/sparc/linux64.h (ASM_GENERATE_INTERNAL_LABEL): Delete.
1221
1222 2011-11-11  Jakub Jelinek  <jakub@redhat.com>
1223
1224         * config/i386/i386-protos.h (ix86_maybe_emit_epilogue_vzeroupper):
1225         New prototype.
1226         * config/i386/i386.c (ix86_maybe_emit_epilogue_vzeroupper): New
1227         function.
1228         (ix86_expand_epilogue): Use it.
1229         * config/i386/i386.md (return, simple_return): Call it in the
1230         expanders.
1231
1232         PR tree-optimization/51091
1233         * tree-stdarg.c (execute_optimize_stdarg): Ignore TREE_CLOBBER_P
1234         rhs also in the va_list_simple_ptr case.
1235
1236         PR tree-optimization/51058
1237         * tree-vect-slp.c (vect_remove_slp_scalar_calls): New function.
1238         (vect_schedule_slp): Call it.
1239         * tree-vect-stmts.c (vectorizable_call): If slp_node != NULL,
1240         don't replace scalar calls with setting of their lhs to zero here.
1241
1242         PR tree-optimization/51074
1243         * fold-const.c (vec_cst_ctor_to_array, fold_vec_perm): New functions.
1244         (fold_binary_loc): Handle VEC_EXTRACT_EVEN_EXPR,
1245         VEC_EXTRACT_ODD_EXPR, VEC_INTERLEAVE_HIGH_EXPR and
1246         VEC_INTERLEAVE_LOW_EXPR with VECTOR_CST or CONSTRUCTOR operands.
1247         (fold_ternary_loc): Handle VEC_PERM_EXPR with VECTOR_CST or
1248         CONSTRUCTOR operands.
1249         * tree-ssa-propagate.c (valid_gimple_rhs_p): Handle ternary
1250         expressions.
1251         * tree-vect-generic.c (lower_vec_perm): Mask sel_int elements
1252         to 0 .. 2 * elements - 1.
1253
1254 2011-11-11  Richard Henderson  <rth@redhat.com>
1255
1256         * gimple-pretty-print.c (dump_gimple_omp_atomic_load): Dump needed.
1257         (dump_gimple_omp_atomic_store): Likewise.
1258         * optabs.c (can_atomic_exchange_p): New.
1259         * optabs.h (can_atomic_exchange_p): Declare.
1260         * omp-low.c (expand_omp_atomic_load): Implement.
1261         (expand_omp_atomic_store): Likewise.
1262         (expand_omp_atomic): Update for new arguments to load/store.
1263
1264 2011-11-11  Eric Botcazou  <ebotcazou@adacore.com>
1265
1266         * cprop.c: Adjust outdated comments throughout.
1267         (hash_scan_set): Rename PAT parameter into SET.
1268         (cprop_pavloc): Rename into...
1269         (cprop_avloc): ...this.
1270         (cprop_absaltered): Rename into...
1271         (cprop_kill): ...this.
1272         (alloc_cprop_mem): Adjust for above renaming.
1273         (free_cprop_mem): Likewise.
1274         (compute_cprop_data): Likewise.
1275         (compute_local_properties): Rename TRANSP parameter into KILL and
1276         adjust throughout.  Rework comments.
1277         (try_replace_reg): Fix long line.
1278         (cprop_jump): Likewise.
1279         (constprop_register): Fix prototype and take INSN last.
1280         (cprop_insn): Adjust calls to above function.  Fix long lines.
1281         (bypass_block): Likewise.
1282         (one_cprop_pass): Likewise.
1283
1284 2011-11-11  Uros Bizjak  <ubizjak@gmail.com>
1285
1286         * config/alpha/elf.h (ELF_ASCII_ESCAPES): Rename from ESCAPES.
1287         (ELF_STRING_LIMIT): Rename from STRING_LIMIT.
1288
1289 2011-11-11  Jason Merrill  <jason@redhat.com>
1290
1291         * varasm.c (default_elf_asm_output_limited_string): #ifdef
1292         ELF_ASCII_ESCAPES.
1293         (default_elf_asm_output_ascii): Likewise.
1294
1295 2011-11-11  Uros Bizjak  <ubizjak@gmail.com>
1296
1297         PR target/50762
1298         * config/i386/constraints.md (j): New address constraint.
1299         * config/i386/predicates.md (lea_address_operand): Redefine as
1300         special predicate.
1301         * config/i386/i386.md (*lea_3_zext): Use "j" constraint for operand 1.
1302         (*lea_4_zext): Ditto.
1303
1304 2011-11-11  David S. Miller  <davem@davemloft.net>
1305
1306         Revert
1307         2011-11-05  David S. Miller  <davem@davemloft.net>
1308
1309         * config/sparc/sparc.md (UNSPEC_SHORT_LOAD): New unspec.
1310         (zero-extend_v8qi_vis, zero_extend_v4hi_vis): New expanders.
1311         (*zero_extend_v8qi_<P:mode>_insn,
1312         *zero_extend_v4hi_<P:mode>_insn): New insns.
1313         * config/sparc/sparc.c (vector_init_move_words,
1314         vector_init_prepare_elts, sparc_expand_vector_init_vis2,
1315         sparc_expand_vector_init_vis1): New functions.
1316         (vector_init_bshuffle): Rewrite to handle more cases and make use
1317         of locs[] array prepared by vector_init_prepare_elts.
1318         (vector_init_fpmerge, vector_init_faligndata): Delete.
1319         (sparc_expand_vector_init): Rewrite using new infrastructure.
1320
1321 2011-11-11  Jakub Jelinek  <jakub@redhat.com>
1322
1323         * opts-common.c (generate_canonical_option): Free opt_text
1324         it it has been allocated here and not stored anywhere.
1325
1326         * tree-vect-slp.c (vect_free_slp_tree): Also free SLP_TREE_CHILDREN
1327         vector.
1328         (vect_create_new_slp_node): Don't allocate node before checking stmt
1329         type.
1330         (vect_free_oprnd_info): Remove FREE_DEF_STMTS argument, always
1331         free def_stmts vectors and additionally free oprnd_info.
1332         (vect_build_slp_tree): Adjust callers.  Call it even if
1333         stop_recursion.  If vect_create_new_slp_node or
1334         vect_build_slp_tree fails, properly handle freeing memory.
1335         If it succeeded, clear def_stmts in oprnd_info.
1336
1337 2011-11-11  Dimitrios Apostolou  <jimis@gmx.net>
1338
1339         * defaults.h (ASM_OUTPUT_LABEL, ASM_OUTPUT_INTERNAL_LABEL): Expand on
1340         multiple lines for readability.
1341         * output.h (fprint_whex, fprint_w, fprint_ul, sprint_ul): Declare.
1342         (ASM_OUTPUT_LABELREF): Call fputs instead of asm_fprintf.
1343         * dwarf2asm.c (dw2_assemble_integer, dw2_asm_output_data,
1344         dw2_asm_data_uleb128, dw2_asm_delta_uleb128,
1345         dw2_asm_delta_sleb128): Convert fprintf calls to the new functions.
1346         * dwarf2out.c (dwarf2out_source_line): Call fprint_ul instead of
1347         fprintf.
1348         * final.c (fprint_whex, fprint_w, fprint_ul, sprint_ul): New functions
1349         serving as fast replacements for fprintf integer to string conversions.
1350         (sprint_ul_rev): Internal helper for the above.
1351         (output_addr_const) <CONST_INT>: Don't use fprintf.
1352         * varasm.c: Fix some whitespace inconsistencies.
1353         (default_elf_asm_output_limited_string): New.
1354         (default_elf_asm_output_ascii): Likewise.
1355         (default_elf_internal_label): Likewise.
1356         * config/elfos.h (ASM_GENERATE_INTERNAL_LABEL): Use sprint_ul and
1357         stpcpy instead of sprintf.
1358         (TARGET_ASM_INTERNAL_LABEL): Define as default_elf_internal_label.
1359         (ELF_ASCII_ESCAPES, ELF_STRING_LIMIT): Rename from old ESCAPES and
1360         STRING_LIMIT macros.
1361         (ASM_OUTPUT_LIMITED_STRING, ASM_OUTPUT_ASCII): Call functions that
1362         provide the same functionality.
1363         * config/i386/i386.c (print_reg): Call fprint_ul instead of fprintf.
1364
1365 2011-11-10  Andrew MacLeod  <amacleod@redhat.com>
1366
1367         * doc/extend.texi: Document __atomic_test_and_set and __atomic_clear.
1368
1369 2011-11-10  Andrew MacLeod  <amacleod@redhat.com>
1370
1371         PR middle-end/51038
1372         * builtins.c (expand_builtin_atomic_clear): New.  Expand atomic_clear.
1373         (expand_builtin_atomic_test_and_set): New.  Expand atomic test_and_set.
1374         (expand_builtin): Add cases for test_and_set and clear.
1375         * sync-builtins.def (BUILT_IN_ATOMIC_TEST_AND_SET): New.
1376         (BUILT_IN_ATOMIC_CLEAR): New.
1377
1378 2011-11-10  Roberto Agostino Vitillo  <ravitillo@lbl.gov>
1379
1380         PR debug/50983
1381         * dwarf2out.c (set_cur_line_info_table): Restore the last is_stmt
1382         value in the current line table.
1383
1384 2011-11-10  Nathan Sidwell  <nathan@acm.org>
1385
1386         * gcov.c (struct function_info): Make src an index, not a pointer.
1387         (struct source_info): Remove index and next source fields.
1388         (fn_end): New static var.
1389         (sources_index): Remove.
1390         (sources): Now a pointer to an array, not a list.
1391         (n_sources, a_sources): New.
1392         (process_file): Adjust for changes to read_graph_file. Insert
1393         functions into source lists and check line numbers here.
1394         (generate_results): Only allocate lines for sources with
1395         contents.  Adjust for source array.
1396         (release_structures): Likewise.
1397         (find_source): Return source index, adjust for source array.
1398         (read_graph_file): Return function list.  Don't insert into source
1399         lists here.
1400         (read_count_file): Take list of functions.
1401         (solve_flow_graph): Reverse the arc lists here.
1402         (add_line_counts): Adjust for source array.
1403
1404 2011-11-10  Jakub Jelinek  <jakub@redhat.com>
1405
1406         PR middle-end/51077
1407         * tree-object-size.c (addr_object_size): Check TREE_CODE of
1408         MEM_REF's operand rather than code of the MEM_REF itself.
1409
1410 2011-11-10  Andrew MacLeod  <amacleod@redhat.com>
1411
1412         PR rtl-optimization/51040
1413         * optabs.c (expand_atomic_fetch_op): Patchup code for NAND should
1414         be AND followed by NOT.
1415         * builtins.c (expand_builtin_atomic_fetch_op): Patchup code for NAND
1416         should be AND followed by NOT.
1417
1418 2011-11-10  Jakub Jelinek  <jakub@redhat.com>
1419
1420         * vec.h (VEC_BASE): If base is at offset 0 in the structure,
1421         use &(P)->base even if P is NULL.
1422
1423         PR rtl-optimization/51023
1424         * combine.c (simplify_comparison) <case SIGN_EXTEND>: Don't use
1425         val_signbit_known_clear_p for signed comparison narrowing
1426         optimization.  Don't check for non-VOIDmode, use
1427         HWI_COMPUTABLE_MODE_P macro.
1428         <case ZERO_EXTEND>: Don't check for non-VOIDmode.
1429         Optimize even when const_op is equal to GET_MODE_MASK (mode),
1430         don't optimize if const_op is negative.
1431
1432 2011-11-10  Richard Guenther  <rguenther@suse.de>
1433
1434         PR tree-optimization/51042
1435         * tree-ssa-pre.c (phi_translate_1): Avoid recursing on
1436         self-referential expressions.  Refactor code to avoid duplication.
1437
1438 2011-11-10  Richard Guenther  <rguenther@suse.de>
1439
1440         PR tree-optimization/51070
1441         * tree-loop-distribution.c (generate_builtin): Do not replace
1442         the loop with a builtin if the partition contains statements which
1443         results are used outside of the loop.
1444         (pass_loop_distribution): Verify and collect.
1445
1446 2011-11-10  Richard Guenther  <rguenther@suse.de>
1447
1448         PR tree-optimization/51030
1449         * tree-ssa-phiopt.c (jump_function_from_stmt): New function.
1450         (value_replacement): Use it to handle trivial non-empty
1451         intermediate blocks.
1452
1453 2011-11-10  Richard Guenther  <rguenther@suse.de>
1454
1455         PR middle-end/51071
1456         * gimple.c (gimple_has_side_effects): Remove checking code
1457         that doesn't belong here.
1458
1459 2011-11-10  Ira Rosen  <ira.rosen@linaro.org>
1460
1461         PR tree-optimization/51058
1462         * tree-vect-slp.c (vect_get_constant_vectors): Handle CALL_EXPR.
1463
1464 2011-11-10  Jakub Jelinek  <jakub@redhat.com>
1465
1466         PR tree-optimization/51000
1467         * tree-vect-patterns.c (vect_recog_bool_pattern): If adding
1468         a pattern stmt for a bool store, adjust DR_STMT too.
1469         Don't handle bool conversions to single bit precision lhs.
1470         * tree-vect-stmts.c (vect_remove_stores): If next is a pattern
1471         stmt, remove its related stmt and free its stmt_vinfo.
1472         (free_stmt_vec_info): Free also pattern stmt's vinfo and
1473         pattern def stmt's vinfo.
1474         * tree-vect-loop.c (destroy_loop_vec_info): Don't try to
1475         free pattern stmt's vinfo here.
1476         (vect_transform_loop): When calling vect_remove_stores,
1477         do gsi_next first and don't call gsi_remove.  If not strided
1478         store, free stmt vinfo for gsi_stmt (si) rather than stmt.
1479
1480 2011-11-09  Jakub Jelinek  <jakub@redhat.com>
1481
1482         PR target/50911
1483         * config/i386/i386.c (expand_vec_perm_interleave2): If d->vmode is
1484         V4SImode, !TARGET_SSE2 and punpck[lh]* is needed, change dremap.vmode
1485         to V4SFmode.
1486
1487         * function.h (requires_stack_frame_p): New prototype.
1488         * function.c (requires_stack_frame_p): No longer static.
1489         * config/i386/i386.c (ix86_finalize_stack_realign_flags): If
1490         stack_realign_fp was just a conservative guess for a function
1491         which doesn't use sp/fp/argp at all, clear frame_pointer_needed
1492         and stack realignment.
1493
1494 2011-11-09  Paolo Carlini  <paolo.carlini@oracle.com>
1495
1496         PR preprocessor/51061
1497         * incpath.c (merge_include_chains): Make sure to not pass null
1498         pointers to free_path.
1499
1500 2011-11-09  Paolo Carlini  <paolo.carlini@oracle.com>
1501
1502         * doc/invoke.texi ([Option Summary, C++ Language Options]):
1503         Add -Wzero-as-null-pointer-constant.
1504
1505 2011-11-07  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
1506
1507         * config/arm/arm-cores.def: Add -mcpu=cortex-a7.
1508         * config/arm/arm-tables.opt: Regenerate.
1509         * config/arm/arm-tune.md: Likewise.
1510         * config/arm/bpabi.h (BE8_LINK_SPEC): Add Cortex A-7.
1511         * doc/invoke.texi: Document -mcpu=cortex-a7.
1512
1513 2011-11-09  Richard Guenther  <rguenther@suse.de>
1514
1515         Revert
1516         2011-11-09  Richard Guenther  <rguenther@suse.de>
1517
1518         * tree-cfg.c (verify_gimple_call): Verify that
1519         gimple_call_cannot_inline_p is returning a conservative
1520         correct result according to gimple_check_call_matching_types.
1521
1522 2011-11-09  Richard Guenther  <rguenther@suse.de>
1523
1524         PR tree-optimization/51039
1525         * tree-cfg.c (verify_gimple_call): Verify that
1526         gimple_call_cannot_inline_p is returning a conservative
1527         correct result according to gimple_check_call_matching_types.
1528         * ipa-inline-analysis.c (estimate_function_body_sizes): Remove
1529         code dealing with un-inlinablility.
1530         * gimple-streamer-in.c (input_gimple_stmt): Update the
1531         non-inlinable flag.
1532
1533 2011-11-09  Richard Guenther  <rguenther@suse.de>
1534
1535         PR tree-optimization/51039
1536         * tree-inline.c (setup_one_parameter): Always perform a
1537         valid gimple type change.
1538         (declare_return_variable): Likewise.
1539
1540 2011-11-09  Jakub Jelinek  <jakub@redhat.com>
1541
1542         * config/rs6000/vector.md (vcondv4sfv4si, vcondv4siv4sf,
1543         vconduv4sfv4si): New patterns.
1544         * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Handle
1545         different dest_mode from comparison mode.
1546
1547 2011-11-09  Richard Guenther  <rguenther@suse.de>
1548
1549         * gimple-fold.c (canonicalize_constructor_val): Mark
1550         address-taken variables addressable.
1551
1552 2011-11-09  Ira Rosen  <ira.rosen@linaro.org>
1553
1554         PR tree-optimization/51015
1555         * tree-vect-loop.c (vect_determine_vectorization_factor): Expect
1556         vectype to be set for pattern def stmts.
1557
1558 2011-11-09  Alan Modra  <amodra@gmail.com>
1559
1560         * function.c (bb_active_p): Delete.
1561         (dup_block_and_redirect, active_insn_between): New functions.
1562         (convert_jumps_to_returns, emit_return_for_exit): New functions,
1563         split out from..
1564         (thread_prologue_and_epilogue_insns): ..here.  Delete
1565         shadowing variables.  Don't do prologue register clobber tests
1566         when shrink wrapping already failed.  Delete all last_bb_active
1567         code.  Instead compute tail block candidates for duplicating
1568         exit path.  Remove these from antic set.  Duplicate tails when
1569         reached from both blocks needing a prologue/epilogue and
1570         blocks not needing such.
1571         * ifcvt.c (dead_or_predicable): Test both flag_shrink_wrap and
1572         HAVE_simple_return.
1573         * bb-reorder.c (get_uncond_jump_length): Make global.
1574         * bb-reorder.h (get_uncond_jump_length): Declare.
1575         * cfgrtl.c (rtl_create_basic_block): Comment typo fix.
1576         (rtl_split_edge): Likewise.  Warning fix.
1577         (rtl_duplicate_bb): New function.
1578         (rtl_cfg_hooks): Enable can_duplicate_block_p and duplicate_block.
1579         * Makefile.in (function.o): Update dependencies.
1580
1581 2011-11-08  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1582             Georg-Johann Lay  <avr@gjlay.de>
1583
1584         * doc/tm.texi.in (MODE_CODE_BASE_REG_CLASS): Add address space
1585         argument.
1586         (REGNO_MODE_CODE_OK_FOR_BASE_P): Likewise.
1587         * doc/tm.texi: Regenerate.
1588
1589         * config/cris/cris.h (MODE_CODE_BASE_REG_CLASS): Add address
1590         space argument.
1591         (REGNO_MODE_CODE_OK_FOR_BASE_P): Likewise.
1592         * config/bfin/bfin.h (MODE_CODE_BASE_REG_CLASS): Likewise.
1593         (REGNO_MODE_CODE_OK_FOR_BASE_P): Likewise.
1594         * config/avr/avr.h (MODE_CODE_BASE_REG_CLASS): Add address space
1595         argument.
1596         (REGNO_MODE_CODE_OK_FOR_BASE_P): Ditto.
1597         * config/avr/avr-protos.h (avr_mode_code_base_reg_class): Ditto.
1598         (avr_regno_mode_code_ok_for_base_p): Ditto.
1599         * config/avr/avr.c (avr_mode_code_base_reg_class): Ditto.
1600         (avr_regno_mode_code_ok_for_base_p): Ditto.
1601         (avr_reg_ok_for_addr_p): Pass AS down to
1602         avr_regno_mode_code_ok_for_base_p.
1603
1604         * addresses.h (base_reg_class): Add address space argument.
1605         Pass to MODE_CODE_BASE_REG_CLASS.
1606         (ok_for_base_p_1): Add address space argument.  Pass to
1607         REGNO_MODE_CODE_OK_FOR_BASE_P.
1608         (regno_ok_for_base_p): Add address space argument.  Pass to
1609         ok_for_base_p_1.
1610
1611         * regrename.c (scan_rtx_address): Add address space argument.
1612         Pass address space to regno_ok_for_base_p and base_reg_class.
1613         Update recursive calls.
1614         (scan_rtx): Pass address space to scan_rtx_address.
1615         (build_def_use): Likewise.
1616         * regcprop.c (replace_oldest_value_addr): Add address space
1617         argument.  Pass to regno_ok_for_base_p and base_reg_class.
1618         Update recursive calls.
1619         (replace_oldest_value_mem): Pass address space to
1620         replace_oldest_value_addr.
1621         (copyprop_hardreg_forward_1): Likewise.
1622
1623         * reload.c (find_reloads_address_1): Add address space argument.
1624         Pass address space to base_reg_class and regno_ok_for_base_p.
1625         Update recursive calls.
1626         (find_reloads_address): Pass address space to base_reg_class,
1627         regno_ok_for_base_p, and find_reloads_address_1.
1628         (find_reloads): Pass address space to base_reg_class.
1629         (find_reloads_subreg_address): Likewise.
1630
1631         * ira-costs.c (record_reg_classes): Update calls to base_reg_class.
1632         (ok_for_base_p_nonstrict): Add address space argument.  Pass to
1633         ok_for_base_p_1.
1634         (record_address_regs): Add address space argument.  Pass to
1635         base_reg_class and ok_for_base_p_nonstrict.  Update recursive calls.
1636         (record_operand_costs): Pass address space to record_address_regs.
1637         (scan_one_insn): Likewise.
1638
1639         * caller-save.c (init_caller_save): Update call to base_reg_class.
1640         * ira-conflicts.c (ira_build_conflicts): Likewise.
1641         * reload1.c (maybe_fix_stack_asms): Likewise.
1642
1643 2011-11-08  Michael Matz  <matz@suse.de>
1644
1645         * gengtype.c (write_field_root): Avoid out-of-scope access of newv.
1646
1647         * tree-stdarg.c (execute_optimize_stdarg): Accept clobbers.
1648
1649         * tree.h (TREE_CLOBBER_P): New macro.
1650         * gimple.h (gimple_clobber_p): New inline function.
1651         * gimplify.c (gimplify_bind_expr): Add clobbers for all variables
1652         that go out of scope and live in memory.
1653         * tree-ssa-operands.c (get_expr_operands): Transfer volatility also
1654         for constructors.
1655         * cfgexpand.c (decl_to_stack_part): New static variable.
1656         (add_stack_var): Allocate it, and remember mapping.
1657         (fini_vars_expansion): Deallocate it.
1658         (stack_var_conflict_p): Add early outs.
1659         (visit_op, visit_conflict, add_scope_conflicts_1,
1660         add_scope_conflicts): New static functions.
1661         (expand_used_vars_for_block): Don't call add_stack_var_conflict, tidy.
1662         (expand_used_vars): Add scope conflicts.
1663         (expand_gimple_stmt_1): Expand clobbers to nothing.
1664         (expand_debug_expr): Ditto.
1665
1666         * tree-pretty-print.c (dump_generic_node): Dump clobbers nicely.
1667         * tree-ssa-live.c (remove_unused_locals): Remove clobbers that
1668         refer to otherwise unused locals.
1669         * tree-sra.c (build_accesses_from_assign): Ignore clobbers.
1670         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Clobbers of
1671         SSA names aren't necessary.
1672         (propagate_necessity): Accept and ignore constructors on the rhs, tidy.
1673         * gimple.c (walk_gimple_op): Accept constructors like mem_rhs.
1674         * tree-ssa-structalias.c (find_func_aliases): Clobbers don't store
1675         any known value.
1676         * tree-ssa-sccvn.c (vn_reference_lookup_3): Ditto, in particular they
1677         don't zero-initialize something.
1678         * tree-ssa-phiopt.c (cond_if_else_store_replacement_1): Ignore
1679         clobber RHS, we don't want PHI nodes with those.
1680
1681 2011-11-08  Jakub Jelinek  <jakub@redhat.com>
1682
1683         * config/i386/i386.c (ix86_preferred_simd_mode): Even for TARGET_AVX
1684         if not TARGET_PREFER_AVX128 return 32-byte integer vectors.
1685
1686 2011-11-08  Richard Guenther  <rguenther@suse.de>
1687
1688         PR tree-optimization/51012
1689         * ipa-prop.c (update_indirect_edges_after_inlining): Fixup
1690         non-inlinable state.
1691         * cgraph.c (cgraph_make_edge_direct): Likewise.
1692
1693 2011-11-08  Eric Botcazou  <ebotcazou@adacore.com>
1694
1695         PR rtl-optimization/47698
1696         * ifcvt.c (noce_operand_ok): Move around comment.
1697
1698 2011-11-08  Richard Guenther  <rguenther@suse.de>
1699
1700         PR lto/50999
1701         * lto-opts.c (append_to_collect_gcc_options): Split out from...
1702         (lto_write_options): ... here.  Prepend frontend specific flags.
1703
1704 2011-11-08  Jakub Jelinek  <jakub@redhat.com>
1705
1706         * config/i386/sse.md (*avx_vperm2f128<mode>3_nozero): Emit mask
1707         0x12 and 0x20 as vinsert[fi]128 instead of vperm2[fi]128.
1708
1709         * tree-vect-stmts.c (vectorizable_call): Add SLP_NODE argument.
1710         Handle vectorization of SLP calls.
1711         (vect_analyze_stmt): Adjust caller, add call to it for SLP too.
1712         (vect_transform_stmt): Adjust vectorizable_call caller, remove
1713         assertion.
1714         * tree-vect-slp.c (vect_get_and_check_slp_defs): For calls start
1715         with op_idx 3.
1716         (vect_build_slp_tree): Allow CALL_EXPR.
1717
1718 2011-11-08  Richard Guenther  <rguenther@suse.de>
1719
1720         * gimple-fold.c (canonicalize_constructor_val): Make sure
1721         we have referenced vars setup before adding to them.
1722
1723 2011-11-07  Richard Henderson  <rth@redhat.com>
1724             Aldy Hernandez  <aldyh@redhat.com>
1725             Andrew MacLeod  <amacleod@redhat.com>
1726             Torvald Riegel  <triegel@redhat.com>
1727
1728         Merged from transactional-memory.
1729
1730         * gtm-builtins.def: New file.
1731         * trans-mem.c: New file.
1732         * trans-mem.h: New file.
1733
1734         * opts.c (finish_options): Error out when using -flto and -fgnu-tm.
1735
1736         * config/i386/i386.c: Define TARGET_VECTORIZE* transactional variants.
1737         (ix86_handle_tm_regparm_attribute, struct bdesc_tm,
1738         ix86_builtin_tm_load, ix86_builtin_tm_store,
1739         ix86_init_tm_builtins): New.
1740         (ix86_init_builtins): Initialize TM builtins.
1741         (struct ix86_attribute_table): Add "*tm regparm".
1742         * config/i386/i386-builtin-types.def (PV2SI): Define.
1743         (PCV2SI): Define.
1744         Define V2SI_FTYPE_PCV2SI.
1745         Define V4SF_FTYPE_PCV4SF.
1746         Define V8SF_FTYPE_PCV8SF.
1747         Define VOID_PV2SI_V2SI.
1748
1749         * doc/invoke.texi (C Dialect Options): Document -fgnu-tm and
1750         tm-max-aggregate-size.
1751         * doc/tm.texi.in: Add TARGET_VECTORIZE_BUILTIN_TM_LOAD and
1752         TARGET_VECTORIZE_BUILTIN_TM_STORE hooks.
1753         * doc/tm.texi: Regenerate.
1754
1755         * attribs.c (apply_tm_attr): New.
1756         (init_attributes): Allow '*' prefix for overrides.
1757         (register_attribute): Likewise.
1758         * builtin-attrs.def (ATTR_TM_TMPURE, ATTR_TM_REGPARM): New.
1759         (ATTR_TM_NOTHROW_LIST, ATTR_TM_TMPURE_NOTHROW_LIST,
1760         ATTR_TM_PURE_TMPURE_NOTHROW_LIST, ATTR_TM_NORETURN_NOTHROW_LIST,
1761         ATTR_TM_CONST_NOTHROW_LIST, ATTR_TMPURE_MALLOC_NOTHROW_LIST,
1762         ATTR_TMPURE_NOTHROW_LIST): New.
1763         * builtin-types.def (BT_FN_I[1248]_VPTR, BT_FN_FLOAT_VPTR,
1764         BT_FN_DOUBLE_VPTR, BT_FN_LDOUBLE_VPTR, BT_FN_VOID_VPTR_I[1248],
1765         BT_FN_VOID_VPTR_FLOAT, BT_FN_VOID_VPTR_DOUBLE,
1766         BT_FN_VOID_VPTR_LDOUBLE, BT_FN_VOID_VPTR_SIZE): New.
1767         * builtins.def: Include gtm-builtins.def. Add comments regarding
1768         transactional memory synchronization.
1769         (DEF_TM_BUILTIN): New.
1770         * c-parser.c (struct c_parser): Add in_transaction.
1771         (c_parser_transaction, c_parser_transaction_expression,
1772         c_parser_transaction_cancel, c_parser_transaction_attributes): New.
1773         (c_parser_attribute_any_word): Split out from c_parser_attributes.
1774         (c_parser_statement_after_labels): Handle RID_TRANSACTION*.
1775         (c_parser_unary_expression): Same.
1776         * c-tree.h (c_finish_transaction): Declare.
1777         * c-typeck.c (c_finish_transaction): New.
1778         (build_function_call_vec): Call tm_malloc_replacement.
1779         * calls.c (is_tm_builtin): New.
1780         (flags_from_decl_or_type): Add ECF_TM_BUILTIN and ECF_TM_PURE.
1781         * cfgbuild.c (make_edges): Add edges for REG_TM notes.
1782         * cfgexpand.c (expand_call_stmt): Call
1783         mark_transaction_restart_calls.
1784         (gimple_expand_cfg): Free the tm_restart map.
1785         (mark_transaction_restart_calls): New.
1786         * cfgrtl.c (purge_dead_edges): Look for REG_TM notes.
1787         * cgraph.c (dump_cgraph_node): Handle tm_clone.
1788         * cgraph.h (struct cgraph_node): Add tm_clone field.
1789         (decl_is_tm_clone): New.
1790         (struct cgraph_local_info): Add tm_may_enter_irr.
1791         (cgraph_copy_node_for_versioning): Declare.
1792         * cgraphunit.c (cgraph_copy_node_for_versioning): Export;
1793         copy analyzed from old version.
1794         * combine.c (distribute_notes): Handle REG_TM notes.
1795         * common.opt: Add -fgnu-tm.
1796         * crtstuff.c (__TMC_LIST__, __TMC_END__): New.
1797         (__do_global_dtors_aux): Deregister clone table.
1798         (frame_dummy): Register clone table.
1799         * emit-rtl.c (try_split): Handle REG_TM. Early return if no function
1800         body.
1801         * gimple-low.c (lower_stmt): Handle GIMPLE_EH_ELSE and
1802         GIMPLE_TRANSACTION.
1803         (gimple_stmt_may_fallthru): Handle GIMPLE_EH_ELSE.
1804         * gimple-pretty-print.c: Include trans-mem.h.
1805         (dump_gimple_fmt): Add %x.
1806         (dump_gimple_call): Dump arguments for calls to _ITM_beginTransaction.
1807         (dump_gimple_eh_else, dump_gimple_transaction): New.
1808         (dump_gimple_stmt): Handle GIMPLE_EH_ELSE and GIMPLE_TRANSACTION.
1809         * gimple.c (gimple_build_eh_else, gimple_build_transaction): New.
1810         (walk_gimple_seq): Honor removed_stmt. Document usage of removed_stmt
1811         field.
1812         (walk_gimple_op): Handle GIMPLE_TRANSACTION.
1813         (walk_gimple_stmt): Initialize and honor removed_stmt.
1814         Handle GIMPLE_EH_ELSE and GIMPLE_TRANSACTION.
1815         (gimple_copy): Handle GIMPLE_EH_ELSE and GIMPLE_TRANSACTION.
1816         * gimple.def (GIMPLE_TRANSACTION, GIMPLE_EH_ELSE): New.
1817         * gimple.h (struct gimple_statement_eh_else,
1818         gimple_statement_transaction, GTMA_*): New.
1819         (gimple_statement_d): Add gimple_statement_eh_else and
1820         gimple_transaction.
1821         (gimple_build_eh_else, gimple_build_transaction,
1822         gimple_fold_call, diagnose_tm_safe_errors): Declare.
1823         (get_call_expr_in): Remove prototype.
1824         (gimple_has_substatements): Add GIMPLE_EH_ELSE and GIMPLE_TRANSACTION.
1825         (gimple_eh_else_n_body, gimple_eh_else_e_body,
1826         gimple_eh_else_set_n_body, gimple_eh_else_set_e_body,
1827         gimple_transaction_body, gimple_transaction_label,
1828         gimple_transaction_label_ptr, gimple_transaction_subcode,
1829         gimple_transaction_set_body, gimple_transaction_set_label,
1830         gimple_transaction_set_subcode): New.
1831         (struct walk_stmt_info): Use BOOL_BITFIELD; add removed_stmt.
1832         * gimplify.c (create_tmp_var_name): Use clean_symbol_name.
1833         (voidify_wrapper_expr): Handle TRANSACTION_EXPR.
1834         (gimplify_transaction): New.
1835         (gimplify_expr): Handle TRANSACTION_EXPR.
1836         * gsstruct.def (GSS_EH_ELSE, GSS_TRANSACTION): New.
1837         * ipa-inline.c (can_inline_edge_p): Do not inline TM safe calling
1838         TM pure functions.
1839         * Makefile.in: Add trans-mem.o and dependencies.
1840         (BUILTINS_DEF): Add gtm-builtins.def.
1841         (gimple-pretty-print.o): Depend on TRANS_MEM_H.
1842         (GTFILES): Add trans-mem.c.
1843         * omp-low.c (WALK_SUBSTMTS): Add GIMPLE_TRANSACTION.
1844         * output.h (record_tm_clone_pair, finish_tm_clone_pairs,
1845         get_tm_clone_pair): Declare.
1846         * params.def (PARAM_TM_MAX_AGGREGATE_SIZE): New.
1847         * passes.c (init_optimization_passes): Place transactional memory
1848         passes.
1849         * print-tree.c (print_node): Dump tm-clone.
1850         * recog.c (peep2_attempt): Handle REG_TM.
1851         * reg-notes.def (TM): New.
1852         * rtlanal.c (alloc_reg_note): Handle REG_TM.
1853         * target.def (builtin_tm_load, builtin_tm_store): New.
1854         * targhooks.c (default_builtin_tm_load_store): New.
1855         * targhooks.h (default_builtin_tm_load_store): Declare.
1856         * timevar.def (TV_TRANS_MEM): New.
1857         * toplev.c (compile_file): Call finish_tm_clone_pairs.
1858         * tree-cfg.c (make_edges): Handle GIMPLE_TRANSACTION.
1859         (cleanup_dead_labels): Handle GIMPLE_TRANSACTION. Avoid unnecessary
1860         writes into the statements to update labels.
1861         (is_ctrl_altering_stmt): Add TM ending statements. Handle
1862         GIMPLE_TRANSACTION.
1863         (verify_gimple_transaction): New.
1864         (verify_gimple_stmt): Handle GIMPLE_TRANSACTION.
1865         (verify_gimple_in_seq_2): Handle GIMPLE_EH_ELSE and GIMPLE_TRANSACTION.
1866         (gimple_redirect_edge_and_branch): Handle TM_TRANSACTION.
1867         (dump_function_to_file): Display [tm-clone] if applicable.
1868         * tree-eh.c (struct_ptr_eq): Make inline and move to tree.h.
1869         (struct_ptr_hash): Same.
1870         (collect_finally_tree): Handle GIMPLE_EH_ELSE.
1871         (replace_goto_queue_1): Likewise.
1872         (get_eh_else): New.
1873         (honor_protect_cleanup_actions): Handle GIMPLE_EH_ELSE.
1874         (lower_try_finally_nofallthru): Likewise.
1875         (lower_try_finally_onedest): Likewise.
1876         (lower_try_finally_copy): Likewise.
1877         (lower_try_finally_switch): Likewise.
1878         (lower_try_finally): Likewise.
1879         (decide_copy_try_finally): Likewise.
1880         (lower_eh_constructs_2): Likewise.
1881         (refactor_eh_r): Likewise.
1882         * tree-flow.h (struct gimple_df): Add tm_restart field.
1883         Define tm_restart_node.
1884         * tree-inline.c (remap_gimple_stmt): Handle GIMPLE_TRANSACTION.
1885         (estimate_num_insns): Likewise.
1886         (init_inline_once): Init tm_cost.
1887         * tree-inline.h (struct eni_weights_d): Add tm_cost.
1888         * tree-pass.h (pass_diagnose_tm_blocks, pass_lower_tm, pass_tm_init,
1889         pass_tm_mark, pass_tm_memopt, pass_tm_edges, pass_ipa_tm): Declare.
1890         * tree-pretty-print.c (dump_generic_node): Handle TRANSACTION_EXPR.
1891         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
1892         BUILT_IN_TM_MEMSET, BUILT_IN_TM_MEMCPY, BUILT_IN_TM_MEMMOVE.
1893         Add support for TM vector loads.  Add support for TM logging builtins.
1894         (call_may_clobber_ref_p_1): Add support for vector stores.
1895         * tree-ssa-structalias.c (find_func_aliases): Add support for TM
1896         vector stores and loads. Handle BUILT_IN_TM_MEMSET,
1897         BUILT_IN_TM_MEMCPY, BUILT_IN_TM_MEMMOVE.
1898         * tree.c (strip_invariant_refs): Moved from gimple.c to here.
1899         (local_define_builtin): Handle ECF_TM_PURE.
1900         (build_common_builtin_nodes): Set __builtin_eh_pointer to ECF_TM_PURE.
1901         * tree.def (TRANSACTION_EXPR): New.
1902         * tree.h (strip_invariant_refs): Moved from gimple.h to here.
1903         (TRANSACTION_EXPR_BODY, TRANSACTION_EXPR_CHECK,
1904         TRANSACTION_EXPR_OUTER, TRANSACTION_EXPR_RELAXED,
1905         BUILTIN_TM_LOAD_STORE_P, BUILTIN_TM_LOAD_P, BUILTIN_TM_STORE_P,
1906         CASE_BUILT_IN_TM_LOAD, CASE_BUILT_IN_TM_STORE): New.
1907         (ECF_TM_PURE, ECF_TM_BUILTIN): New.
1908         (struct tree_function_decl): Add tm_clone_flag.
1909         (struct_ptr_eq, struct_ptr_hash): New.
1910         (apply_tm_attr): Declare.
1911         (is_tm_safe_or_pure): New.
1912         (build_tm_abort_call, is_tm_safe, is_tm_pure,
1913         is_tm_may_cancel_outer, is_tm_ending_fndecl, record_tm_replacement,
1914         tm_malloc_replacement): Declare.
1915         * varasm.c (tm_clone_hash): New.
1916         (record_tm_clone_pair, finish_tm_clone_pairs, get_tm_clone_pair,
1917         dump_tm_clone_to_vec, dump_tm_clone_pairs, tm_alias_pair_cmp): New.
1918         (struct tm_alias_pair): New.  Declare VEC types for object.
1919
1920 2011-11-07  Richard Henderson  <rth@redhat.com>
1921
1922         * optabs.h (OTI_sync_compare_and_swap, OTI_sync_lock_test_and_set,
1923         OTI_sync_old_add, OTI_sync_old_sub, OTI_sync_old_ior,
1924         OTI_sync_old_and, OTI_sync_old_xor, OTI_sync_old_nand,
1925         OTI_sync_new_add, OTI_sync_new_sub, OTI_sync_new_ior,
1926         OTI_sync_new_and, OTI_sync_new_xor, OTI_sync_new_nand): Move and
1927         rename from the direct_optab_index enum.
1928         (sync_compare_and_swap_optab, sync_lock_test_and_set_optab,
1929         sync_old_add_optab, sync_old_sub_optab, sync_old_ior_optab,
1930         sync_old_and_optab, sync_old_xor_optab, sync_old_nand_optab,
1931         sync_new_add_optab, sync_new_sub_optab, sync_new_ior_optab,
1932         sync_new_and_optab, sync_new_xor_optab, sync_new_nand_optab): Read
1933         from the optab_table, not the direct_optab_table.
1934         (init_sync_libfuncs): Declare.
1935         (can_compare_and_swap_p): Update parameters.
1936         * optabs.c (init_sync_libfuncs_1, init_sync_libfuncs): New.
1937         (can_compare_and_swap_p): Add allow_libcall parameter; if true,
1938         test for the legacy compare-and-swap libcall.
1939         (expand_atomic_exchange): Use the legacy test-and-set libcall.
1940         (expand_atomic_compare_and_swap): Use the legacy CAS libcall.
1941         (struct atomic_op_functions): Update for optab type changes.
1942         (maybe_emit_op): Likewise.
1943         (expand_atomic_fetch_op): Use the legacy fetch-op libcalls.
1944         * builtins.c (fold_builtin_atomic_always_lock_free): Update call
1945         to can_compare_and_swap_p.
1946         * omp-low.c (expand_omp_atomic_fetch_op): Likewise.
1947         (expand_omp_atomic_pipeline): Likewise.
1948         * genopinit.c (optabs): Make sync_old_*_optab, sync_new_*_optab,
1949         sync_compare_and_swap_optab, sync_lock_test_and_set_optab regular
1950         optabs.
1951         * doc/md.texi (sync_compare_and_swap): Update docs for libcalls.
1952
1953 2011-11-07  Jakub Jelinek  <jakub@redhat.com>
1954
1955         * config/i386/i386-bultin-types.def (V8SI_FTYPE_V4DF_V4DF): Add.
1956         * config/i386/i386.c (enum ix86_builtins): Add
1957         IX86_BUILTIN_VEC_PACK_SFIX256.
1958         (bdesc_args): Add __builtin_ia32_vec_pack_sfix256.
1959         (ix86_expand_args_builtin): Handle V8SI_FTYPE_V4DF_V4DF.
1960         (ix86_builtin_vectorized_function): Also vectorize lrint using
1961         256-bit vectors for -mavx.
1962
1963 2011-11-07  Anatoly Sokolov  <aesok@post.ru>
1964
1965         * config/cris/constraints.md: New file.
1966         * config/cris/cris.h (REG_CLASS_FROM_LETTER, CONSTRAINT_LEN,
1967         CRIS_CONST_OK_FOR_LETTER_P, CONST_OK_FOR_CONSTRAINT_P,
1968         CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_MEMORY_CONSTRAINT,
1969         EXTRA_CONSTRAINT, EXTRA_CONSTRAINT_Q, EXTRA_CONSTRAINT_R,
1970         EXTRA_CONSTRAINT_T, EXTRA_CONSTRAINT_S, EXTRA_CONSTRAINT_U): Remove.
1971         * config/cris/cris.c: Incule "tm-constrs.h".
1972         (cris_print_operand): Use satisfies_constraint_O.
1973         (cris_normal_notice_update_cc, cris_rtx_costs): Use
1974         satisfies_constraint_I.
1975         (cris_address_cost): Use satisfies_constraint_L.
1976         * config/cris/cris.md: Include "constraints.md".
1977         (*mov_side<mode>, *mov_sidesisf, *mov_side<mode>_mem,
1978         *mov_sidesisf_mem, *clear_side<mode>, *ext_sideqihi,
1979         *ext_side<mode>si, *op_side<mode>, *op_swap_side<mode>,
1980         *extopqihi_side, *extop<mode>si_side, *extopqihi_swap_side,
1981         *extop<mode>si_swap_side): Use satisfies_constraint_N and
1982         satisfies_constraint_J.
1983         (moversideqi movemsideqi mover2side peephole2): Use
1984         satisfies_constraint_N and satisfies_constraint_J.
1985         (andu peephole2): Use satisfies_constraint_I and
1986         satisfies_constraint_O.
1987
1988 2011-11-07  Uros Bizjak  <ubizjak@gmail.com>
1989
1990         * config/i386/i386.c (ix86_builtin_vectorized_function): Handle
1991         BUILT_IN_IRINT, BUILT_IN_IRINTF, BUILT_IN_LLRINT and BUILT_IN_LLRINTF.
1992
1993 2011-11-07  Andrew MacLeod  <amacleod@redhat.com>
1994
1995         * optabs.c (get_atomic_op_for_code): Fill in optab table at runtime so
1996         SWITCHABLE_TARGET can change the values during compilation.
1997         (expand_atomic_fetch_op): Handle parameter change ripples for
1998         get_atomic_op_for_code call.
1999
2000 2011-11-07  Andrew MacLeod  <amacleod@redhat.com>
2001
2002         * doc/extend.texi: Docuemnt behaviour change for __atomic_exchange and
2003         __atomic_store.
2004         * optabs.c (expand_atomic_exchange): Expand to __sync_lock_test_and_set
2005         only when originated from that builtin.
2006         (expand_atomic_store): Expand to __sync_lock_release when originated
2007         from that builtin.
2008         * builtins.c (expand_builtin_sync_lock_test_and_set): Add flag that
2009         expand_atomic_exchange call originated from here.
2010         (expand_builtin_sync_lock_release): Add flag that expand_atomic_store
2011         call originated from here.
2012         (expand_builtin_atomic_exchange): Add origination flag.
2013         (expand_builtin_atomic_store): Add origination flag.
2014         * expr.h (expand_atomic_exchange, expand_atomic_store): Add boolean
2015         parameters to indicate implementation fall back options.
2016
2017 2011-11-07  Georg-Johann Lay  <avr@gjlay.de>
2018
2019         * config/avr/avr.c (output_reload_in_const): Can handle CONSTANT_P
2020         now, not only CONST_INT and CONST_DOUBLE.
2021         (output_movqi): Use output_reload_in_const.
2022         (output_reload_inhi): Ditto.
2023         (output_reload_insisf): Move assertion to output_reload_in_const.
2024         (avr_out_reload_inpsi): Ditto.
2025
2026 2011-11-07  Nathan Sidwell  <nathan@acm.org>
2027
2028         * gcov.c (object_summary): Replace with ...
2029         (object_runs): ... this.
2030         (process_file): Remove functions with no data.
2031         (generate_results): Ignore files with no lines.
2032         (release_function): New helper, broken out of ...
2033         (release_structures): ... here.  Use it.
2034         (read_count_file): Adjust for new data file format.
2035         (output_lines): Use object_runs.
2036         * gcov-io.h (GCOV_TAG_OBJECT_SUMMARY): Obsolete.
2037         (struct gcov_ctr_info): Move definition.
2038         (struct gcov_fn_info): Add key field, use gcov_ctr_info for
2039         trailing array.
2040         (struct gcov_info): Add merge function array, remove mask and
2041         counts.  Trailing array is array of pointers to function info.
2042         * coverage.c (struct function_list): Replace counter numbers with
2043         counter arrays.  Add fndecl field.  GTYify.
2044         (counts_entry): Remove chain workspace.
2045         (functions_head): GTYify.
2046         (prg_n_ctrs): Remove.
2047         (fn_v_ctrs): New.
2048         (tree_ctr_tables): Remove.
2049         (read_counts_file): Cope with blank entries and expect program
2050         summaries before functions.  Don't warn on missing entries.
2051         (coverage_counter_alloc): Allocate individual function arrays.
2052         (tree_coverage_counter_ref, tree_coverage_counter_addr): Adjust
2053         for individual function arrays.
2054         (coverage_end_function): GTYify function list object. Finalize
2055         function's counter arrays.
2056         (build_var): New.  Create a counter-related variable with
2057         appropriate linkage.
2058         (build_fn_info_type): Adjust for new runtime structure.
2059         (build_fn_info_value): Rename to ...
2060         (build_fn_info): ... here.  Build new format data.
2061         (build_ctr_info_type, build_ctr_info_value): Remove.
2062         (build_info_type): New. Build new format data structure.
2063         (build_info): Adjust for new format data.
2064         (create_coverage): Likewise.
2065         * gcov-dump.c (tag_function): Recognize placeholders.
2066
2067 2011-11-07  Georg-Johann Lay  <avr@gjlay.de>
2068
2069         * config/avr/constraints.md (Cm2): New constraint for int -2.
2070         * config/avr/avr.md (addqi3): Use it. New alternatives for +/-2.
2071         (*negqihi2): New insn.
2072
2073 2011-11-07  H.J. Lu  <hongjiu.lu@intel.com>
2074
2075         * dwarf2cfi.c (dwarf2out_frame_debug_expr): Check
2076         HARD_FRAME_POINTER_REGNUM instead of hard_frame_pointer_rtx in Rule 18.
2077
2078 2011-11-07  Jakub Jelinek  <jakub@redhat.com>
2079
2080         * config/i386/i386.c (ix86_expand_builtin): If gather mask
2081         argument is known to have all high bits set, pass pc_rtx as
2082         second argument to the expander instead of op0.
2083         * config/i386/sse.md (*avx2_gathersi<mode>_2,
2084         *avx2_gatherdi<mode>_2): New patterns.
2085         * config/i386/avx2intrin.h (_mm256_i32gather_pd,
2086         _mm256_i64gather_pd, _mm256_i32gather_ps): Set mask using
2087         _mm256_cmp_pd with zero vector arguments and _CMP_EQ_OQ instead of
2088         _mm256_set1_pd.
2089
2090         PR tree-optimization/50789
2091         * tree-vect-stmts.c (process_use): Add force argument, avoid
2092         exist_non_indexing_operands_for_use_p check if true.
2093         (vect_mark_stmts_to_be_vectorized): Adjust callers.  Handle
2094         STMT_VINFO_GATHER_P.
2095         (gen_perm_mask): New function.
2096         (perm_mask_for_reverse): Use it.
2097         (reverse_vec_element): Rename to...
2098         (permute_vec_elements): ... this.  Add Y and MASK_VEC arguments,
2099         generalize for any permutations.
2100         (vectorizable_load): Adjust caller.  Handle STMT_VINFO_GATHER_P.
2101         * target.def (TARGET_VECTORIZE_BUILTIN_GATHER): New hook.
2102         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_GATHER): Document it.
2103         * doc/tm.texi: Regenerate.
2104         * tree-data-ref.c (initialize_data_dependence_relation,
2105         compute_self_dependence): No longer static.
2106         * tree-data-ref.h (initialize_data_dependence_relation,
2107         compute_self_dependence): New prototypes.
2108         * tree-vect-data-refs.c (vect_check_gather): New function.
2109         (vect_analyze_data_refs): Detect possible gather load data refs.
2110         * tree-vectorizer.h (struct _stmt_vec_info): Add gather_p field.
2111         (STMT_VINFO_GATHER_P): Define.
2112         (vect_check_gather): New prototype.
2113         * config/i386/i386-builtin-types.def: Add types for alternate
2114         gather builtins.
2115         * config/i386/sse.md (AVXMODE48P_DI): Remove.
2116         (VEC_GATHER_MODE): Rename mode_attr to...
2117         (VEC_GATHER_IDXSI): ... this.
2118         (VEC_GATHER_IDXDI, VEC_GATHER_SRCDI): New mode_attrs.
2119         (avx2_gathersi<mode>, *avx2_gathersi<mode>): Use <VEC_GATHER_IDXSI>
2120         instead of <VEC_GATHER_MODE>.
2121         (avx2_gatherdi<mode>): Use <VEC_GATHER_IDXDI> instead of
2122         <AVXMODE48P_DI> and <VEC_GATHER_SRCDI> instead of VEC_GATHER_MODE
2123         on src and mask operands.
2124         (*avx2_gatherdi<mode>): Likewise.  Use VEC_GATHER_MODE iterator
2125         instead of AVXMODE48P_DI.
2126         (avx2_gatherdi<mode>256, *avx2_gatherdi<mode>256): Removed.
2127         * config/i386/i386.c (enum ix86_builtins): Add
2128         IX86_BUILTIN_GATHERALTSIV4DF, IX86_BUILTIN_GATHERALTDIV8SF,
2129         IX86_BUILTIN_GATHERALTSIV4DI and IX86_BUILTIN_GATHERALTDIV8SI.
2130         (ix86_init_mmx_sse_builtins): Create those builtins.
2131         (ix86_expand_builtin): Handle those builtins and adjust expansions
2132         of other gather builtins.
2133         (ix86_vectorize_builtin_gather): New function.
2134         (TARGET_VECTORIZE_BUILTIN_GATHER): Define.
2135
2136 2011-11-07  Uros Bizjak  <ubizjak@gmail.com>
2137
2138         * config/i386/f16cintrin.h: Remove extra _X86INTRIN_H_INCLUDED check.
2139
2140 2011-11-07  Tristan Gingold  <gingold@adacore.com>
2141
2142         * config.gcc (*-*-*vms*): Set c_target_objs, cxx_target_objs.
2143         * config/vms/t-vms: Add vms-c.o rule.
2144         * config/vms/vms-c.c: New file.
2145         * config/vms/vms-protos.h (vms_c_register_pragma): New prototype.
2146         * config/vms/vms.h (REGISTER_TARGET_PRAGMAS): Define.
2147
2148 2011-11-07  Tristan Gingold  <gingold@adacore.com>
2149
2150         * config/alpha/vms.h (TARGET_OBJECT_SUFFIX,
2151         TARGET_EXECUTABLE_SUFFIX, TARGET_OS_CPP_BUILTINS,
2152         TARGET_ABI_OPEN_VMS, LONG_TYPE_SIZE, ADA_LONG_TYPE_SIZE,
2153         POINTER_SIZE, POINTERS_EXTEND_UNSIGNED): Move to config/vms/vms.h
2154         (SUBTARGET_OS_CPP_BUILTINS): Define.
2155         (TARGET_DEFAULT): Tune according to POINTER_SIZE.
2156         (MASK_RETURN_ADDR): Define in 64 bit mode.
2157         * config/ia64/vms.h: Likewise.
2158         * config/vms/vms.h: New file.
2159         * config/vms/vms64.h: New file.
2160         * config/alpha/vms64.h: Removed.
2161         * config/ia64/vms64.h: Removed.
2162         * config.gcc (alpha64-dec-*vms*, alpha*-dec-*vms*, ia64-hp-*vms*):
2163         Adjust for above change.
2164
2165 2011-11-07  Enkovich Ilya  <ilya.enkovich@intel.com>
2166
2167         PR target/50962
2168         * config/i386/i386-protos.h (ix86_use_lea_for_mov): New.
2169         * config/i386/i386.c (ix86_use_lea_for_mov): Likewise.
2170         * config/i386/i386.md (movsi_internal): Emit lea if profitable.
2171         (movdi_internal_rex64): Likewise.
2172
2173 2011-11-07  Sergey Ostanevich  <sergos.gnu@gmail.com>
2174
2175         PR rtl-optimization/47698
2176         * ifcvt.c (noce_operand_ok): Return false for mems with side effects.
2177
2178 2011-11-07  Tristan Gingold  <gingold@adacore.com>
2179
2180         * common/config/alpha/alpha-common.c (alpha_option_init_struct):
2181         New function.
2182         (TARGET_OPTION_INIT_STRUCT): Define.
2183         * config/alpha/alpha.c (TARGET_MIN_ANCHOR_OFFSET)
2184         (TARGET_MAX_ANCHOR_OFFSET)
2185         (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Redefine.
2186
2187 2011-11-06  Quentin Neill  <quentin.neill@amd.com>
2188
2189         Fix r180999, update ChangeLog
2190         * config.gcc: Add f16cintrin.h.
2191         * config/i386/f16cintrin.h: Add missing endif.
2192
2193 2011-11-06  Sebastian Huber  <sebastian.huber@embedded-brains.de>
2194
2195         * config.gcc (arm*-*-rtemseabi*): New target.
2196         * config/arm/rtems-eabi.h: New.
2197         * config/arm/t-rtems-eabi: New.
2198
2199 2011-11-06  David S. Miller  <davem@davemloft.net>
2200
2201         * config/sparc/sparc.md (UNSPEC_SHORT_LOAD): Delete.
2202         (zero_extend_v8qi_vis, zero_extend_v4hi_vis,
2203         *zero_extend_v8qi_<P:mode>_insn,
2204         *zero_extend_v4hi_<P:mode>_insn): Express using vec_merge
2205         and vec_duplicate instead of using an UNSPEC.
2206
2207 2011-11-07  Alan Modra  <amodra@gmail.com>
2208
2209         PR target/30282
2210         * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Always emit
2211         blockage for ABI_V4.
2212
2213 2011-11-06  Dave Korn  <dave.korn.cygwin@gmail.com>
2214
2215         * config/i386/cygwin.h (LIBGCJ_SONAME): Updated to match recent
2216         libgcj version bump.
2217         * config/i386/mingw32.h (LIBGCJ_SONAME): Likewise.
2218
2219 2011-11-06  Eric Botcazou  <ebotcazou@adacore.com>
2220
2221         * gcse.c: Adjust outdated comments throughout.
2222         (struct mem_conflict_info): New structure.
2223         (mems_conflict_for_gcse_p): Use it to communicate with caller.
2224         (load_killed_in_block_p): Pass it to note_stores.
2225         (hash_expr): Remove superfluous line break.
2226         (hash_scan_set): Rename PAT parameter into SET.
2227         (hash_scan_insn): Reorder cases.
2228         (canon_list_insert): Fix long line.
2229         (edge_list): Delete.
2230         (prune_expressions): Rename E local variable into EXPR.
2231         (compute_pre_data): Return struct edge_list * object.
2232         (pre_expr_reaches_here_p_work): Fix formatting.
2233         (process_insert_insn): Move around comment.
2234         (pre_edge_insert): Fix long line.
2235         (pre_insert_copies): Likewise.
2236         (gcse_emit_move_after): Swap SRC and DEST parameters.
2237         (pre_delete): Adjust call to gcse_emit_move_after.
2238         (pre_gcse): Take struct edge_list * parameter.  Fix long line.
2239         (one_pre_gcse_pass): Use flag_gcse_lm condition for all routines.
2240         Use a local list of edges.
2241         (hoist_code): Fix long line.  Adjust call to gcse_emit_move_after.
2242         (pre_ldst_expr_hash): Fix long line.
2243         (free_ldst_mems): Rename into...
2244         (free_ld_motion_mems): ...this.
2245         (first_ls_expr): Delete.
2246         (next_ls_expr): Likewise.
2247         (print_ldst_list): Do not use above two functions.
2248         (simple_mem): Adjust interface.
2249         (compute_ld_motion_mems): Fix formatting.
2250         (update_ld_motion_stores): Reuse local variable.
2251
2252 2011-11-06  Joseph Myers  <joseph@codesourcery.com>
2253
2254         * c-decl.c (shadow_tag_warned, grokdeclarator): Handle _Alignas
2255         specifiers.
2256         (build_null_declspecs): Initialize align_log and alignas_p fields.
2257         (declspecs_add_alignas): New.
2258         * c-parser.c (c_token_starts_declspecs): Handle RID_ALIGNAS.
2259         (c_parser_declspecs): Handle _Alignas specifiers.
2260         (c_parser_alignas_specifier): New.
2261         (c_parser_alignof_expression): Diagnose alignof use for non-C1X.
2262         Diagnose _Alignof (expression).
2263         * c-tree.h (struct c_declspecs): Add align_log and alignas_p fields.
2264         (declspecs_add_alignas): Declare.
2265         * ginclude/stddef.h (max_align_t): Define for C1X and C++11.
2266         * ginclude/stdalign.h: New.
2267         * Makefile.in (USER_H): Add stdalign.h.
2268
2269 2011-11-06  Joern Rennecke  <joern.rennecke@embecosm.com>
2270
2271         * regset.h (fixed_reg_set_regset): Declare.
2272         * dse.c: Include regset.h .
2273         (struct insn_info): Add member fixed_regs_live.
2274         (note_add_store_info): New typedef.
2275         (note_add_store): New function.
2276         (emit_inc_dec_insn_before): Expect arg to be of type insn_info_t.
2277         Use gen_add3_insn / gen_move_insn.
2278         Check new insn for unwanted clobbers before emitting it.
2279         (check_for_inc_dec): Rename to...
2280         (check_for_inc_dec_1:) ... this.  Return bool.  Take insn_info
2281         parameter.  Changed all callers in file.
2282         (check_for_inc_dec, copy_fixed_regs): New functions.
2283         (scan_insn): Set fixed_regs_live field of insn_info.
2284         * rtl.h (check_for_inc_dec): Update prototype.
2285         * postreload.c (reload_cse_simplify): Take new signature of
2286         check_ind_dec into account.
2287         * reginfo.c (fixed_reg_set_regset): New variable.
2288         (init_reg_sets_1): Initialize it.
2289
2290 2011-11-06  Jakub Jelinek  <jakub@redhat.com>
2291
2292         * tree-cfg.c (gimple_can_merge_blocks_p): For -O0 don't remove
2293         any user labels.
2294
2295 2011-11-06  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2296
2297         * config/pa/pa.c (pa_hpux_init_libfuncs): Rename to pa_init_libfuncs.
2298         Remove dependence of declaration and target define on definition of
2299         HPUX_LONG_DOUBLE_LIBRARY.  Update implementation.
2300
2301 2011-11-06  Andrew Macleod  <amacleod@redhat.com>
2302             Richard Henderson  <rth@redhat.com>
2303             Aldy Hernandez  <aldyh@redhat.com>
2304
2305         Merged from cxx-mem-model.
2306
2307         * cppbuiltin.c (define__GNUC__): Define __ATOMIC memory models
2308         * coretypes.h (enum memmodel): New.  enumerated memory model type.
2309         * Makefile.in (cppbuiltin.o) Add missing dependency on $(TREE_H)
2310         * genopinit,c (optabs): Add atomic direct optab handlers.
2311         * sync-builtins.def (BUILT_IN_ATOMIC_*): New builtins.
2312         * builtin-types.def (BT_CONST_VOLATILE_PTR,
2313         BT_FN_I{1,2,4,8,16}_CONST_VPTR_INT, BT_FN_VOID_VPTR_INT,
2314         BT_FN_BOOL_VPTR_INT, BT_FN_BOOL_SIZE_CONST_VPTR,
2315         BT_FN_I{1,2,4,8,16}_VPTR_I{1,2,4,8,16}_INT,
2316         BT_FN_VOID_VPTR_I{1,2,4,8,16}_INT, BT_FN_VOID_SIZE_VPTR_PTR_INT,
2317         BT_FN_VOID_SIZE_CONST_VPTR_PTR_INT, BT_FN_VOID_SIZE_VPTR_PTR_PTR_INT,
2318         BT_FN_BOOL_VPTR_PTR_I{1,2,4,8,16}_BOOL_INT_INT): New builtin types.
2319         * expr.h (expand_atomic_*): Add prototypes.
2320         (expand_{bool,val}_compare_and_swap): Remove prototypes.
2321         * c-typeck.c (build_function_call_vec): Don't reprocess __atomic
2322         parameters.
2323         * common.opt (Winvalid-memory-model): New warning flag.
2324         (finline-atomics): New. Flag to disable atomic inlining.
2325         * params.h (ALLOW_LOAD_DATA_RACES): New.
2326         (ALLOW_PACKED_LOAD_DATA_RACES): New.
2327         (ALLOW_PACKED_STORE_DATA_RACES): New.
2328         * params.def (PARAM_ALLOW_LOAD_DATA_RACES): New.
2329         (PARAM_ALLOW_PACKED_LOAD_DATA_RACES): New.
2330         (PARAM_ALLOW_PACKED_STORE_DATA_RACES): New.
2331         * builtins.c (is_builtin_name): Handle __atomic.
2332         (get_memmodel): New.  Extract memory model.
2333         (expand_expr_force_mode): New. Factor out common code for ensuring an
2334         integer argument is in the proper mode.
2335         (expand_builtin_sync_operation): Remove ignore param.  Always call
2336         expand_atomic_fetch_op instead of the old expanders.
2337         (expand_builtin_compare_and_swap,
2338         expand_builtin_sync_lock_test_and_set): Use expand_expr_force_mode,
2339         call atomic expanders instead of sync expanders.
2340         (expand_builtin_sync_lock_release): Call atomic_store expander.
2341         (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
2342         expand_builtin_atomic_store, expand_builtin_atomic_fetch_op): New.
2343         (expand_builtin_atomic_exchange): New.
2344         (fold_builtin_atomic_always_lock_free,
2345         expand_builtin_atomic_always_lock_free,
2346         fold_builtin_atomic_is_lock_free, expand_builtin_atomic_is_lock_free):
2347         New.
2348         (expand_builtin_mem_thread_fence, expand_builtin_atomic_thread_fence,
2349         expand_builtin_atomic_signal_fence): New.
2350         (expand_builtin_mem_signal_fence): New.
2351         (expand_builtin): Add cases for BUILT_IN_ATOMIC_*.
2352         (fold_builtin_2): Add cases for BUILT_IN_ATOMIC_{IS,ALWAYS}_LOCK_FREE.
2353         * optabs.h (DOI_atomic_*): Define new atomics.
2354         (atomic_*_optab): Define.
2355         (can_compare_and_swap_p, expand_atomic_compare_and_swap): New
2356         prototypes.
2357         * optabs.c (expand_sync_operation, expand_sync_fetch_operation): Remove.
2358         (expand_sync_lock_test_and_set): Remove.
2359         (expand_atomic_load, expand_atomic_store): New.
2360         (expand_atomic_exchange): New.
2361         (expand_atomic_compare_and_swap): New.  Implements
2362         atomic_compare_exchange via compare and swap.
2363         (struct atomic_op_functions): Opcode table struct for fetch ops.
2364         (get_atomic_op_for_code): New.  Return an opcode table entry.
2365         (maybe_emit_op): New.  Try to emit a fetch op.
2366         (expand_atomic_fetch_op): New.
2367         (expand_val_compare_and_swap_1): Remove.
2368         (expand_val_compare_and_swap, expand_bool_compare_and_swap): Remove.
2369         (expand_atomic_compare_and_swap): Rename from
2370         expand_atomic_compare_exchange.  Rewrite to return both success and
2371         oldval return values; expand via both atomic and sync optabs.
2372         (can_compare_and_swap_p): New.
2373         (expand_compare_and_swap_loop): Use expand_atomic_compare_and_swap.
2374         (maybe_gen_insn): Handle 7 and 8 operands.
2375         * omp-low.c (expand_omp_atomic_fetch_op): Don't test individual
2376         fetch_op optabs, only test can_compare_and_swap_p.  Use __atomic
2377         builtins instead of __sync builtins.
2378         (expand_omp_atomic_pipeline): Use can_compare_and_swap_p.
2379         * doc/extend.texi: Document __atomic built-in functions.
2380         * doc/invoke.texi: Document data race parameters.
2381         * doc/md.texi: Document atomic patterns.
2382         * config/i386/i386.md (UNSPEC_MOVA): New.
2383         (UNSPECV_CMPXCHG): Split into ...
2384         (UNSPECV_CMPXCHG_1, UNSPECV_CMPXCHG_2,
2385         UNSPECV_CMPXCHG_3, UNSPECV_CMPXCHG_4): New.
2386         * config/i386/sync.md (ATOMIC): New mode iterator.
2387         (atomic_load<ATOMIC>, atomic_store<ATOMIC>): New.
2388         (atomic_loaddi_fpu, atomic_storedi_fpu, movdi_via_fpu): New.
2389         (mem_thread_fence): Rename from memory_barrier.
2390         Handle the added memory model parameter.
2391         (mfence_nosse): Rename from memory_barrier_nosse.
2392         (sync_compare_and_swap<CASMODE>): Split into ...
2393         (atomic_compare_and_swap<SWI124>): this and ...
2394         (atomic_compare_and_swap<CASMODE>): this.  Handle the new parameters.
2395         (atomic_compare_and_swap_single<SWI>): Rename from
2396         sync_compare_and_swap<SWI>; rewrite to use split unspecs.
2397         (atomic_compare_and_swap_double<DCASMODE>): Rename from
2398         sync_double_compare_and_swap<DCASMODE>; rewrite to use split unspecs.
2399         (*atomic_compare_and_swap_doubledi_pic): Rename from
2400         sync_double_compare_and_swapdi_pic; rewrite to use split unspecs.
2401         (atomic_fetch_add<SWI>): Rename from sync_old_add<SWI>; add memory
2402         model parameter.
2403         (*atomic_fetch_add_cmp<SWI>): Similarly.
2404         (atomic_add<SWI>, atomic<any_logic><SWI>): Similarly.
2405         (atomic_sub<SWI>): Similarly.  Use x86_maybe_negate_const_int.
2406         (sync_lock_test_and_set<SWI>): Merge with ...
2407         (atomic_exchange<SWI>): ... this.
2408
2409 2011-11-6  Richard Guenther  <rguenther@suse.de>
2410
2411         * ipa-prop.c (ipa_modify_call_arguments): Re-compute inlinable flag.
2412
2413 2011-11-06  Ira Rosen  <ira.rosen@linaro.org>
2414
2415         * tree-vectorizer.h (vectorizable_condition): Add argument.
2416         * tree-vect-loop.c (vectorizable_reduction): Fail for condition
2417         in SLP.  Update calls to vectorizable_condition.
2418         * tree-vect-stmts.c (vect_is_simple_cond): Add basic block info to
2419         the arguments.  Pass it to vect_is_simple_use_1.
2420         (vectorizable_condition): Add slp_node to the arguments.  Support
2421         vectorization of basic blocks.  Fail for reduction in SLP.  Update
2422         calls to vect_is_simple_cond and vect_is_simple_use.  Support SLP:
2423         call vect_get_slp_defs to get vector operands.
2424         (vect_analyze_stmt): Update calls to vectorizable_condition.
2425         (vect_transform_stmt): Likewise.
2426         * tree-vect-slp.c (vect_create_new_slp_node): Handle COND_EXPR.
2427         (vect_get_and_check_slp_defs): Handle COND_EXPR.  Allow pattern
2428         def stmts.
2429         (vect_build_slp_tree): Handle COND_EXPR.
2430         (vect_analyze_slp_instance): Push pattern statements to root node.
2431         (vect_get_constant_vectors): Fix comments.  Handle COND_EXPR.
2432
2433 2011-11-05  David S. Miller  <davem@davemloft.net>
2434
2435         * config/sparc/sparc.md (UNSPEC_SHORT_LOAD): New unspec.
2436         (zero-extend_v8qi_vis, zero_extend_v4hi_vis): New expanders.
2437         (*zero_extend_v8qi_<P:mode>_insn,
2438         *zero_extend_v4hi_<P:mode>_insn): New insns.
2439         * config/sparc/sparc.c (vector_init_move_words,
2440         vector_init_prepare_elts, sparc_expand_vector_init_vis2,
2441         sparc_expand_vector_init_vis1): New functions.
2442         (vector_init_bshuffle): Rewrite to handle more cases and make use
2443         of locs[] array prepared by vector_init_prepare_elts.
2444         (vector_init_fpmerge, vector_init_faligndata): Delete.
2445         (sparc_expand_vector_init): Rewrite using new infrastructure.
2446
2447 2011-11-05  Joern Rennecke  <joern.rennecke@embecosm.com>
2448
2449         * config.gcc (epiphany-*-*): New architecture.
2450         (epiphany-*-elf): New configuration.
2451         * config/epiphany, common/config/epiphany : New directories.
2452         * doc/extend.texi (disinterrupt attribute): Add Epiphany.
2453         (interrupt attribute): Add Epiphany.
2454         (long_call, short_call attribute): Add Epiphany.
2455         * doc/invoke.texi (Options): Add Epiphany options.
2456         * doc/md.texi (Machine Constraints): Add Epiphany constraints.
2457         * doc/install.texi (Options specification):
2458         Add --with-stack-offset=@var{num} description.
2459         (host/target specific issues): Add epiphany-*-elf.
2460         * doc/contrib.texi (Contributors): Mention Epiphany port.
2461
2462 2011-11-05  Jakub Jelinek  <jakub@redhat.com>
2463
2464         PR tree-optimization/50693
2465         * tree-cfg.c (gimple_can_merge_blocks_p): Allow merging with
2466         non-forced user labels.
2467         (gimple_merge_blocks): Turn non-forced user labels into
2468         debug bind stmt with the label as first operand and reset value.
2469         (gimple_duplicate_bb): Don't duplicate label debug stmts.
2470         * dwarf2out.c (gen_label_die): Handle NOTE_INSN_DELETED_DEBUG_LABEL.
2471         * final.c (final_scan_insn): Likewise.
2472         (rest_of_clean_state): Don't dump NOTE_INSN_DELETED_DEBUG_LABEL.
2473         * var-tracking.c (debug_label_num): New variable.
2474         (delete_debug_insns): Don't delete DEBUG_INSNs for LABEL_DECLs,
2475         instead turn them into NOTE_INSN_DELETED_DEBUG_LABEL notes.
2476         * cfglayout.c (skip_insns_after_block, duplicate_insn_chain): Handle
2477         NOTE_INSN_DELETED_DEBUG_LABEL.
2478         (duplicate_insn_chain): Don't duplicate LABEL_DECL DEBUG_INSNs.
2479         * insn-notes.def (DELETED_DEBUG_LABEL): New note kind.
2480         * print-rtl.c (print_rtx): Handle NOTE_INSN_DELETED_DEBUG_LABEL.
2481         * gengtype.c (adjust_field_rtx_def): Likewise.
2482         * config/i386/i386.c (ix86_output_function_epilogue): For MachO
2483         clear CODE_LABEL_NUMBER of NOTE_INSN_DELETED_DEBUG_LABEL
2484         if their are at the end of function and nop hasn't been emitted.
2485         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Likewise.
2486
2487 2011-11-05  Georg-Johann Lay  <avr@gjlay.de>
2488
2489         PR rtl-optimization/50448
2490         * cprop.c (try_replace_reg): Also try to replace uses of FROM that
2491         appear in SET_DEST.
2492
2493 2011-11-05  Peter Dufault  <dufault@hda.com>,
2494             Sebastian Huber  <sebastian.huber@embedded-brains.de>
2495
2496         * config/rs6000/rtems.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
2497         Extend rs6000_spe handling.
2498
2499 2011-11-05  Ralf Corsépius  <ralf.corsepius@rtems.org>
2500
2501         * config/rs6000/t-rtems: Add -mcpu=8540/-mfloat-gprs=double multilib.
2502         Remove -mcpu=601 multilib.
2503         Remove -Dmpc8260 multilib.
2504         * config/rs6000/rtems.h: Allow --float-gprs=... to override grps
2505         on E500 targets.
2506
2507 2011-11-05  Quentin Neill  <quentin.neill@amd.com>
2508
2509         Piledriver f16cintrin.h fix.
2510         * config/i386/f16cintrin.h: Contents moved from immintrin.h.
2511         * config/i386/immintrin.h: Include f16cintrin.h.
2512         * config.gcc (i[34567]86-*-*, x86_64-*-*): Add f16cintrin.h.
2513
2514
2515 2011-11-04  Eric Botcazou  <ebotcazou@adacore.com>
2516
2517         PR c++/50608
2518         * c-parser.c (c_parser_postfix_expression) <RID_OFFSETOF>: Adjust call
2519         to fold_offsetof.
2520         * c-typeck.c (build_unary_op) <ADDR_EXPR>: Call fold_offsetof_1.
2521
2522 2011-11-04  Alan Modra  <amodra@gmail.com>
2523
2524         * reload1.c (gen_reload): Don't use REGNO on SUBREGs.
2525         * print-rtl.c (print_rtx): Don't segfault on negative regno.
2526
2527 2011-11-04  David S. Miller  <davem@davemloft.net>
2528
2529         PR target/49965
2530         * config/sparc/sparc.c (sparc_expand_conditional_move): Handle the
2531         fact that sparc_emit_float_lib_cmp modifies the comparison in
2532         operands[1].
2533
2534 2011-11-04  Ralf Corsépius  <ralf.corsepius@rtems.org>
2535
2536         * config/lm32/t-rtems: New.
2537         * config.gcc (lm32-*-rtems*): Add t-rtems.
2538
2539 2011-11-04  Eric Botcazou  <ebotcazou@adacore.com>
2540
2541         PR target/50979
2542         * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=v8.
2543
2544 2011-11-04  Jiangning Liu  <jiangning.liu@arm.com>
2545
2546         PR rtl-optimization/38644
2547         * config/arm/arm.c (thumb1_expand_epilogue): Add memory barrier
2548         for epilogue having stack adjustment.
2549
2550 2011-11-04  Georg-Johann Lay  <avr@gjlay.de>
2551
2552         PR target/50931
2553         * config/avr/avr-modes.def: New file defining PSImode.
2554         * config/avr/avr-c.c (__INT24_MAX__, __INT24_MIN__,
2555         __UINT24_MAX__): New built-in defines.
2556         * config/avr/avr.md (adjust_len): Add tstpsi, mov24,  reload_in24,
2557         ashlpsi, ashrpsi, lshrpsi.
2558         (QISI, QIDI, HISI, HIDI, MPUSH, rotx, rotsmode): Add PSI.
2559         (MOVMODE): New mode iterator.
2560         (movpsi): New expander.
2561         (movqi, movhi, movsi, movsf, movpsi): Write as one using MOVMODE.
2562         (*reload_inpsi, *movpsi): New insns.
2563         (*reload_inpsi): New RTL peephole.
2564         (addpsi3, *addpsi3_zero_extend.qi, *addpsi3_zero_extend.hi,
2565         *addpsi3_sign_extend.hi): New insns.
2566         (subpsi3, *subpsi3_zero_extend.qi, *subpsi3_zero_extend.hi,
2567         *subpsi3_sign_extend.hi): New insns.
2568         (divmodpsi4, udivmodpsi4): New define insn-and-split.
2569         (*divmodpsi4_call, *udivmodpsi4_call): New insns.
2570         (andpsi3, iorpsi3, xorpsi3): New insns.
2571         (*rotlpsi2.1, *rotlpsi2.23): New insns.
2572         (*rotw<mode>): Insn condition only allow even-sized modes.
2573         (*rotb<mode>): Insn condition allows odd-sized modes.
2574         (ashlpsi3, ashrpsi3, lshrpsi3, *addpsi3.lt0): New insns.
2575         (negpsi2, one_cmplpsi2): New insns.
2576         (extendqipsi2, extendhipsi2, extendpsisi2): New insns.
2577         (zero_extendqipsi2, zero_extendhipsi2, zero_extendpsisi2): New
2578         insn-and-splits.
2579         (*cmppsi, *negated_tstpsi, *reversed_tstpsi): New insns.
2580         (cbranchpsi4): New expander.
2581         * config/avr/constraints.md (Ca3, Co3, Cx3): New constraints.
2582         * config/avr/avr-protos.h (avr_out_tstpsi, avr_out_movpsi,
2583         avr_out_ashlpsi3, avr_out_ashrpsi3, avr_out_lshrpsi3,
2584         avr_out_reload_inpsi): New prototypes.
2585
2586         * config/avr/avr.c (TARGET_SCALAR_MODE_SUPPORTED_P): Define to...
2587         (avr_scalar_mode_supported_p): ...this new static function.
2588         (avr_asm_len): Always return "".
2589         (avr_out_load_psi, avr_out_store_psi): New static functions.
2590         (avr_out_movpsi, avr_out_reload_inpsi): New functions.
2591         (avr_out_tstpsi): New function.
2592         (avr_out_ashlpsi3, avr_out_ashrpsi3, avr_out_lshrpsi3): New functions.
2593         (avr_out_plus_1, output_reload_in_const): Handle 3-byte types.
2594         (avr_simplify_comparison_p): Ditto.
2595         (adjust_insn_length): Handle ADJUST_LEN_RELOAD_IN24,
2596         ADJUST_LEN_MOV24, ADJUST_LEN_TSTPSI, ADJUST_LEN_ASHLPSI,
2597         ADJUST_LEN_ASHRPSI, ADJUST_LEN_LSHRPSI.
2598         (avr_rtx_costs_1): Report PSI costs.
2599         (avr_libcall_value): Handle odd-sized parameters.
2600         (avr_init_builtin_int24): New static function to define built-in
2601         24-bit types __int24 and __uint24.
2602         (avr_init_builtins): Use it.
2603
2604 2011-11-04  Thomas Doerfler <thomas.doerfler@embedded-brains.de>
2605
2606         PR target/50989
2607         * config/arm/rtems-elf.h, config/arm/t-rtems: Add optional
2608         support for VFP floating point model.
2609
2610 2011-11-04  Tristan Gingold  <gingold@adacore.com>
2611
2612         * config/alpha/vms.h (ASM_OUTPUT_DEF): Do not switch section.
2613
2614 2011-11-04  Ira Rosen  <ira.rosen@linaro.org>
2615
2616         Unrevert:
2617         2011-10-24  Ira Rosen  <ira.rosen@linaro.org>
2618
2619         PR tree-optimization/50730
2620         * tree-vect-data-refs.c (vect_analyze_data_refs): Stop basic block
2621         analysis if encountered unsupported data-ref.
2622
2623 2011-11-04  Jakub Jelinek  <jakub@redhat.com>
2624
2625         * config/i386/i386.c (ix86_expand_vector_convert_uns_vsivsf): New
2626         function.
2627         * config/i386/i386-protos.h (ix86_expand_vector_convert_uns_vsivsf):
2628         New prototype.
2629         * config/i386/sse.md (floatuns<sseintvecmodelower><mode>2): Use it.
2630         For floatunsv8siv8sf2 require TARGET_AVX2.
2631
2632         * config/i386/i386.c (ix86_expand_adjust_ufix_to_sfix_si): Add
2633         XORP argument.  Subtract 0x1p31 instead of 0x1p32.  Use normal
2634         signalling comparison instead of non-signalling.  Store into
2635         *XORP pseudo holding 0x80000000 integers if 0x1p31 has been
2636         subtracted and 0 otherwise.
2637         * config/i386/i386-protos.h (ix86_expand_adjust_ufix_to_sfix_si):
2638         Adjust prototype.
2639         * config/i386/sse.md (fixuns_trunc<mode><sseintvecmodelower>2): Enable
2640         already for TARGET_SSE2.  Xor in vector initialized by
2641         ix86_expand_adjust_ufix_to_sfix_si at the end.
2642         (vec_pack_ufix_trunc_<mode>): Likewise.
2643
2644         * tree-vect-stmts.c (vectorizable_conversion): Rewritten to handle
2645         not just FLOAT_EXPR and FIX_TRUNC_EXPR, but also CONVERT_EXPR_CODE_P,
2646         WIDEN_MULT_EXPR and WIDEN_LSHIFT_EXPR to handle what
2647         vectorizable_type_demotion and vectorizable_type_promotion did.
2648         Additionally handle FLOAT_EXPR and FIX_TRUNC_EXPR where the integer
2649         is {,un}signed {char,short}.
2650         (vect_create_vectorized_demotion_stmts): Fix comment typo.  For
2651         recursive calls unconditionally use VEC_PACK_TRUNC_EXPR.
2652         Push vec_dest back to the vec_dsts vector at the end.
2653         (vect_create_vectorized_promotion_stmts): Don't recurse, do just
2654         one step.  Removed multi_step_cvt, vec_dsts, slp_node and
2655         prev_stmt_info arguments, add vec_dest argument.  Push always
2656         into vec_tmp, not just when multi_step_cvt != 0, replace *vec_oprdn0
2657         with vec_tmp at the end after freeing old *vec_oprnd0 vector.
2658         (vectorizable_type_demotion, vectorizable_type_promotion): Removed.
2659         (vect_analyze_stmt): Don't call vectorizable_type_demotion and
2660         vectorizable_type_promotion.  Call vectorizable_conversion even
2661         for SLP bb vectorization.
2662         (vect_transform_stmt): Call vectorizable_conversion instead of
2663         vectorizable_type_demotion and vectorizable_type_promotion.
2664         (supportable_widening_operation): Clear *multi_step_cvt first,
2665         simplify c1/c2 computation, free *interm_types vector on failure.
2666         (supportable_narrowing_operation): Clear *multi_step_cvt first,
2667         free *interm_types vector on failure, handle multi-step
2668         FIX_TRUNC_EXPR.
2669
2670 2011-11-04  Tristan Gingold  <gingold@adacore.com>
2671
2672         * config/alpha/alpha.c (alpha_write_linkage): Remove fundecl
2673         argument.  Conditionally generate crash debug info.  Adjust
2674         for alpha_funcs_tree removal.
2675         (machine_function): Add links field.
2676         (alpha_start_function): Conditionally generate crash debug info.
2677         (alpha_end_function): Adjust call to alpha_write_linkage.
2678         (alpha_funcs): Remove.
2679         (links_kind): Remove.
2680         (alpha_links): Remove num, target and lkind field.  Add func field.
2681         (alpha_links_tree): Remove.
2682         (alpha_funcs_tree): Remove.
2683         (alpha_need_linkage): Remove.
2684         (alpha_use_linkage): Change prototype.  Adjust.
2685         (alpha_write_one_linkage): Use ASM_OUTPUT_INTERNAL_LABEL.
2686         Use SYMBOL_REF_EXTERNAL_P and SYMBOL_REF_LOCAL_P macro.
2687         * config/alpha/alpha-protos.h (alpha_use_linkage): Update.
2688         (alpha_need_linkage): Remove.
2689         * config/alpha/alpha.md: Update calls to alpha_use_linkage.
2690         Adjust calls to alpha_need_linkage.
2691
2692 2011-11-03  Uros Bizjak  <ubizjak@gmail.com>
2693
2694         * sched-vis.c (print_value): Handle STRICT_LOW_PART.
2695
2696 2011-11-03  Uros Bizjak  <ubizjak@gmail.com>
2697
2698         * config/i386/i386.md (lround<X87MODEF:mode><SWI248x:mode>2,
2699         rint<mode>2, floor<mode>2, lfloor<MODEF:mode><SWI48:mode>2,
2700         btrunc<mode>2, lwp_lwpval<mode>3): Use operands[N] instead of operandN.
2701
2702 2011-11-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2703
2704         PR target/50978
2705         * config/arm/t-bpabi: New file.
2706         * config.gcc (arm*-*-linux*): Add arm/t-bpabi to tmake_file for
2707         arm*-*-linux-*eabi.
2708         (arm*-*-uclinux*): Add arm/t-bpabi to tmake_file for
2709         arm*-*-uclinux*eabi.
2710         (arm*-*-eabi*, arm*-*-symbianelf*): Add arm/t-bpabi to tmake_file
2711         for arm*-*-eabi*.
2712
2713 2011-11-03  Michael Matz  <matz@suse.de>
2714
2715         PR bootstrap/50857
2716         * configure.ac: Check for -fno-exceptions -fno-rtti.
2717         * configure: Regenerate.
2718         * Makefile.in (NOEXCEPTION_FLAGS): New flag.
2719         (ALL_CXXFLAGS): Use it.
2720
2721 2011-11-03  Uros Bizjak  <ubizjak@gmail.com>
2722
2723         * config/i386/i386.md: Use {} for multi-line preparation statements.
2724
2725 2011-11-03  Eric Botcazou  <ebotcazou@adacore.com>
2726
2727         * config/sparc/sparc.md (movtf_insn_sp32_no_fpu): Consolidate into...
2728         (movtf_insn_sp32): ...this.
2729         (movtf_insn_sp64_no_fpu): Consolidate into...
2730         (movtf_insn_sp64): ...this.
2731         (movtf_insn_sp64_hq): Do not test TARGET_FPU.
2732         * config/sparc/sparc.c (sparc_legitimate_address_p): Likewise.
2733
2734 2011-11-03  Tristan Gingold  <gingold@adacore.com>
2735
2736         * config/vms/vms.c (vms_patch_builtins): Fix typo.
2737
2738 2011-11-03  Richard Guenther  <rguenther@suse.de>
2739
2740         PR lto/44965
2741         * lto-opts.c: Re-implement.
2742         * lto-streamer.h (lto_register_user_option): Remove.
2743         (lto_read_file_options): Likewise.
2744         (lto_reissue_options): Likewise.
2745         (lto_clear_user_options): Likewise.
2746         (lto_clear_file_options): Likewise.
2747         * opts-global.c (post_handling_callback): Remove.
2748         (set_default_handlers): Do not set post_handling_callback.
2749         (decode_options): Remove LTO specific code.
2750         * lto-wrapper.c (merge_and_complain): New function.
2751         (run_gcc): Read all input file options and
2752         prepend a merged set before the linker driver options.
2753         * gcc.c (driver_post_handling_callback): Remove.
2754         (set_option_handlers): Do not set post_handling_callback.
2755         * opts-common.c (handle_option): Do not call post_handling_callback.
2756         * opts.h (struct cl_option_handlers): Remove post_handling_callback.
2757
2758 2011-11-03  Richard Guenther  <rguenther@suse.de>
2759
2760         * collect2.c (main): Guard object_nbr variable with TARGET_AIX_VERSION.
2761
2762 2011-11-03  Martin Jambor  <mjambor@suse.cz>
2763
2764         * ipa-prop.c (type_change_info): New fields offset, object,
2765         known_current_type and multiple_types_encountered.
2766         (extr_type_from_vtbl_ptr_store): New function.
2767         (check_stmt_for_type_change): Use it, set multiple_types_encountered if
2768         the result is different from the previous one.
2769         (detect_type_change): Renamed to detect_type_change_1. New parameter
2770         comp_type.  Set up new fields in tci, build known type jump
2771         functions if the new type can be identified.
2772         (detect_type_change): New function.
2773         * tree.h (DECL_CONTEXT): Comment new use.
2774
2775 2011-11-03  Richard Guenther  <rguenther@suse.de>
2776
2777         PR lto/48217
2778         * lto-wrapper.c (get_options_from_collect_gcc_options): Properly
2779         decode an encoded literal '.
2780
2781 2011-11-03  Tristan Gingold  <gingold@adacore.com>
2782
2783         * collect2.c (main): Add support of -f (response file) on AIX.
2784
2785 2011-11-03  Ira Rosen  <ira.rosen@linaro.org>
2786
2787         PR tree-optimization/50912
2788         * tree-vectorizer.h (slp_void_p): New.
2789         (struct _slp_tree): Replace left and right with children.  Update
2790         documentation.
2791         (struct _slp_oprnd_info): New.
2792         (vect_get_vec_defs): Declare.
2793         (vect_get_slp_defs): Update arguments.
2794         * tree-vect-loop.c (vect_create_epilog_for_reduction): Call
2795         vect_get_vec_defs instead of vect_get_slp_defs.
2796         (vectorizable_reduction): Likewise.
2797         * tree-vect-stmts.c (vect_get_vec_defs): Remove static, add argument.
2798         Update call to vect_get_slp_defs.
2799         (vectorizable_conversion): Update call to vect_get_vec_defs.
2800         (vectorizable_assignment, vectorizable_shift,
2801         vectorizable_operation): Likewise.
2802         (vectorizable_type_demotion): Call vect_get_vec_defs instead of
2803         vect_get_slp_defs.
2804         (vectorizable_type_promotion, vectorizable_store): Likewise.
2805         (vect_analyze_stmt): Fix typo.
2806         * tree-vect-slp.c (vect_free_slp_tree): Update SLP tree traversal.
2807         (vect_print_slp_tree, vect_mark_slp_stmts,
2808         vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
2809         vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
2810         vect_schedule_slp_instance): Likewise.
2811         (vect_create_new_slp_node): New.
2812         (vect_create_oprnd_info, vect_free_oprnd_info): Likewise.
2813         (vect_get_and_check_slp_defs): Pass information about defs using
2814         oprnds_info, allow any number of operands.
2815         (vect_build_slp_tree): Likewise.  Update calls to
2816         vect_get_and_check_slp_defs.  Fix comments.
2817         (vect_analyze_slp_instance): Move node creation to
2818         vect_create_new_slp_node.
2819         (vect_get_slp_defs): Allow any number of operands.
2820
2821 2011-11-02  Peter Bergner  <bergner@vnet.ibm.com>
2822             Iain Sandoe  <iains@gcc.gnu.org>
2823
2824         * config/rs6000/rs6000.c (USE_HIDDEN_LINKONCE): New define.
2825         (get_ppc476_thunk_name): Use it.
2826         (rs6000_code_end): Likewise.
2827         (macho_branch_islands): Fix typo.
2828
2829 2011-11-02  Paolo Carlini  <paolo.carlini@oracle.com>
2830             Jason Merrill  <jason@redhat.com>
2831
2832         PR c++/50810
2833         * configure.ac: Add -Wno-narrowing to warning options.
2834         * doc/invoke.texi ([-Wnarrowing], [-Wc++0x-compat]): Update.
2835
2836 2011-11-02  Eric Botcazou  <ebotcazou@adacore.com>
2837
2838         PR target/50945
2839         * config/sparc/sparc.md (movsf_insn): Reindent constraints.
2840         (movdf_insn_sp32): Likewise.  Remove redundant G constraint.
2841         (movdf_insn_sp64): Likewise.
2842         (DFmode splitter): Do not test TARGET_FPU.
2843         (movtf_insn_sp32): Reindent constraints.
2844         (movtf_insn_sp32_no_fpu): Likewise.
2845         (movtf_insn_sp64): Likewise.
2846         (movtf_insn_sp64_hq): Likewise.
2847         (movtf_insn_sp64_no_fpu): Likewise.
2848
2849 2011-11-02  Paolo Carlini  <paolo.carlini@oracle.com>
2850
2851         PR c++/50956
2852         * builtins.c (fold_builtin_memchr): Fix cast.
2853
2854 2011-11-02  Teresa Johnson  <tejohnson@google.com>
2855
2856         * config/i386/predicates.md (promotable_binary_operator): Add minus
2857         to the list of promotable operators.
2858
2859 2011-11-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2860
2861         * gthr-single.h, gthr.h: Move to ../libgcc.
2862         * gthr-aix.h: Move to ../libgcc/config/rs6000.
2863         * gthr-dce.h: Move to ../libgcc/config/pa.
2864         * gthr-lynx.h: Move to ../libgcc/config.
2865         * gthr-mipssde.h: Move to ../libgcc/config/mips.
2866         * gthr-posix.h: Move to ../libgcc/config.
2867         * gthr-rtems.h: Likewise.
2868         * gthr-tpf.h: Move to ../libgcc/config/s390.
2869         * gthr-vxworks.h: Move to ../libgcc/config.
2870         * gthr-win32.h: Move to ../libgcc/config/i386.
2871         * configure.ac (gthread_flags): Remove
2872         (gthr-default.h): Don't create.
2873         (thread_file): Don't substitute.
2874         * configure: Regenerate.
2875         * Makefile.in (GCC_THREAD_FILE): Remove.
2876         (GTHREAD_FLAGS): Remove.
2877         (libgcc.mvars): Remove GTHREAD_FLAGS.
2878         * config/t-vxworks (EXTRA_HEADERS): Remove.
2879
2880 2011-11-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2881             Paolo Bonzini  <bonzini@gnu.org>
2882
2883         * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Remove.
2884         * configure: Regenerate.
2885         * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list): Remove.
2886         (TM_H): Remove libgcc_tm.h, $(libgcc_tm_file_list).
2887         (libgcc_tm.h, cs-libgcc_tm.h): Remove.
2888         (clean): Remove libgcc_tm.h
2889         * mkconfig.sh: Don't include libgcc_tm.h in tm.h.
2890         * config.gcc (libgcc_tm_file): Remove.
2891         (arm*-*-linux*): Remove libgcc_tm_file for arm*-*-linux-*eabi.
2892         (arm*-*-uclinux*): Remove libgcc_tm_file for arm*-*-uclinux*eabi.
2893         (arm*-*-eabi*, arm*-*-symbianelf*): Remove libgcc_tm_file.
2894         (avr-*-rtems*): Likewise.
2895         (avr-*-*): Likewise.
2896         (frv-*-elf): Likewise.
2897         (frv-*-*linux*): Likewise.
2898         (h8300-*-rtems*): Likewise.
2899         (h8300-*-elf*): Likewise.
2900         (i[34567]86-*-darwin*): Likewise.
2901         (x86_64-*-darwin*): Likewise.
2902         (rx-*-elf*): Likewise.
2903         (tic6x-*-elf): Likewise.
2904         (tic6x-*-uclinux): Likewise.
2905         (i[34567]86-*-linux*, x86_64-*-linux*): Likewise.
2906
2907 2011-11-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2908
2909         * Makefile.in (LIBGCC2_DEBUG_CFLAGS LIBGCC2_CFLAGS)
2910         (LIBGCC2_INCLUDES, TARGET_LIBGCC2_CFLAGS, LIB2FUNCS_EXTRA)
2911         (LIB2FUNCS_STATIC_EXTRA, LIB2FUNCS_EXCLUDE, T, T_TARGET)
2912         (INCLUDES_FOR_TARGET): Remove.
2913         (LIBGCC2_CFLAGS): Don't export.
2914         (LIB2FUNCS_ST, LIB2_DIVMOD_FUNCS, LIB2ADD, LIB2ADD_ST, srcdirify):
2915         Remove.
2916         (libgcc-support): Remove $(LIB2ADD), $(LIB2ADD_ST) dependencies.
2917         (libgcc.mvars): Likewise.
2918         Don't emit LIB2FUNCS_ST, LIB2FUNCS_EXCLUDE, LIB2ADD, LIB2ADD_ST,
2919         LIB2_SIDITI_CONV_FUNCS, LIB2_DIVMOD_FUNCS, LIBGCC2_CFLAGS,
2920         TARGET_LIBGCC2_CFLAGS.
2921         Emit GTHREAD_FLAGS.
2922         * libgcc2.c, libgcc2.h, gbl-ctors.h, longlong.h: Move to ../libgcc.
2923         * config/darwin-64.c: Move to ../libgcc/config.
2924         * config/divmod.c, config/floatunsidf.c, config/floatunsisf.c,
2925         config/floatunsitf.c, config/floatunsixf.c, config/udivmod.c,
2926         config/udivmodsi4.c: Move to ../libgcc/config.
2927         * config/gthr-posix.c: Move to ../libgcc/config/alpha.
2928         * config/memcmp.c, config/memcpy.c, config/memmove.c,
2929         config/memset.c: Move to ../libgcc/config.
2930         * config/t-darwin (TARGET_LIBGCC2_CFLAGS): Remove.
2931         * config/t-freebsd: Remove.
2932         * config/t-freebsd-thread: Move to ../libgcc/config.
2933         * config/t-libgcc-pic: Move to ../libgcc/config.
2934         * config/t-libunwind (TARGET_LIBGCC2_CFLAGS): Remove.
2935         * config/t-linux: Remove.
2936         * config/t-lynx (TARGET_LIBGCC2_CFLAGS, LIBGCC, INSTALL_LIBGCC):
2937         Remove.
2938         * config/t-openbsd-thread: Move to ../libgcc/config.
2939         * config/t-rtems (LIBGCC2_INCLUDES): Remove.
2940         * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Remove.
2941         * config/t-svr4: Remove.
2942         * config/t-vxworks (LIBGCC, INSTALL_LIBGCC, TARGET_LIBGCC2_CFLAGS)
2943         (LIBGCC2_DEBUG_CFLAGS, LIB2FUNCS_EXTRA, LIBGCC2_INCLUDES): Remove.
2944         * config/vxlib.c, config/vxlib-tls.c: Move to ../libgcc/config.
2945         * config/alpha/qrnnd.asm: Move to ../libgcc/config/alpha/qrnnd.S.
2946         * config/alpha/t-alpha, config/alpha/t-ieee: Remove.
2947         * config/alpha/t-vms (LIB2FUNCS_EXTRA, LIBGCC, INSTALL_LIBGCC): Remove.
2948         * config/alpha/vms-gcc_shell_handler.c: Move to ../libgcc/config/alpha.
2949         * config/arm/bpabi.c, config/arm/unaligned-funcs.c,
2950         config/arm/fp16.c, config/arm/linux-atomic.c,
2951         config/arm/linux-atomic-64bit.c: Move to ../libgcc/config/arm.
2952         * config/arm/t-arm-elf (LIBGCC, INSTALL_LIBGCC)
2953         (TARGET_LIBGCC2_CFLAGS): Remove.
2954         * config/arm/t-bpabi, config/arm/t-linux: Remove.
2955         * config/arm/t-linux-eabi (TARGET_LIBGCC2_CFLAGS)
2956         (LIB2FUNCS_STATIC_EXTRA): Remove.
2957         * config/arm/t-netbsd: Remove.
2958         * config/arm/t-strongarm-elf (LIBGCC, INSTALL_LIBGCC)
2959         (TARGET_LIBGCC2_CFLAGS): Remove.
2960         * config/arm/t-symbian (LIB2FUNCS_STATIC_EXTRA): Remove.
2961         * config/arm/t-wince-pe (LIBGCC, INSTALL_LIBGCC)
2962         (TARGET_LIBGCC2_CFLAGS): Remove.
2963         * config/avr/t-avr (LIB2FUNCS_EXCLUDE, TARGET_LIBGCC2_CFLAGS)
2964         (LIBGCC, INSTALL_LIBGCC): Remove.
2965         * config/bfin/t-bfin-elf (TARGET_LIBGCC2_CFLAGS): Remove.
2966         * config/bfin/t-bfin-linux: Likewise.
2967         * config/bfin/t-bfin-uclinux: Likewise.
2968         * config/c6x/eqd.c, config/c6x/eqf.c, config/c6x/ged.c,
2969         config/c6x/gef.c, config/c6x/gtd.c, config/c6x/gtf.c,
2970         config/c6x/led.c, config/c6x/lef.c, config/c6x/ltd.c,
2971         config/c6x/ltf.c: Move to ../libgcc/config/c6x.
2972         * config/c6x/t-c6x-elf (LIB2FUNCS_EXCLUDE, LIB2FUNCS_EXTRA): Remove.
2973         * config/c6x/t-c6x-uclinux (TARGET_LIBGCC2_CFLAGS): Remove.
2974         * config/cris/arit.c: Move to ../libgcc/config/cris.
2975         * config/cris/cris_abi_symbol.c: Remove.
2976         * config/cris/cris.h: Remove obsolete comment.
2977         * config/cris/mulsi3.asm: Move to ../libgcc/config/cris/mulsi3.S.
2978         * config/cris/t-cris (LIB2FUNCS_EXTRA, CRIS_LIB1CSRC)
2979         ($(LIB2FUNCS_EXTRA)): Remove.
2980         * config/cris/t-elfmulti (LIB2FUNCS_STATIC_EXTRA, INSTALL_LIBGCC)
2981         (LIBGCC): Remove.
2982         * config/cris/t-linux (TARGET_LIBGCC2_CFLAGS): Remove.
2983         * config/fr30/t-fr30: Remove.
2984         * config/frv/cmovd.c, config/frv/cmovh.c, config/frv/cmovw.c,
2985         config/frv/modi.c, config/frv/uitod.c, config/frv/uitof.c,
2986         config/frv/ulltod.c, config/frv/ulltof.c, config/frv/umodi.c: Move
2987         to ../libgcc/config/frv.
2988         * config/frv/t-frv (LIB2FUNCS_EXTRA, TARGET_LIBGCC2_CFLAGS)
2989         (cmovh.c, cmovw.c, cmovd.c, modi.c, umodi.c, uitof.c, uitod.c)
2990         (ulltof.c, LIBGCC, INSTALL_LIBGCC): Remove.
2991         * config/frv/t-linux (TARGET_LIBGCC2_CFLAGS): Remove.
2992         * config/h8300/clzhi2.c, config/h8300/ctzhi2.c,
2993         config/h8300/fixunssfsi.c, config/h8300/parityhi2.c,
2994         config/h8300/popcounthi2.c: Move to ../libgcc/config/h8300.
2995         * config/h8300/t-h8300 (LIB2FUNCS_EXTRA, TARGET_LIBGCC2_CFLAGS)
2996         (LIBGCC, INSTALL_LIBGCC): Remove.
2997         * config/i386/gthr-win32.c: Move to ../libgcc/config/i386.
2998         * config/i386/t-cygming (LIBGCC2_INCLUDES): Remove.
2999         * config/i386/t-cygwin: Remove.
3000         * config/i386/t-darwin (LIB2_SIDITI_CONV_FUNCS, LIB2FUNCS_EXTRA)
3001         (LIB2FUNCS_EXCLUDE): Remove.
3002         * config/i386/t-darwin64 (LIB2_SIDITI_CONV_FUNCS, LIB2FUNCS_EXTRA)
3003         (LIBGCC, INSTALL_LIBGCC): Remove.
3004         * config/i386/t-gthr-win32: Move to ../libgcc/config/i386.
3005         * config/i386/t-linux64 (LIBGCC, INSTALL_LIBGCC): Remove.
3006         * config/i386/t-mingw-w32: Likewise.
3007         * config/i386/t-mingw-w64: Likewise.
3008         * config/i386/t-openbsd: Likewise.
3009         * config/i386/t-nto: Remove.
3010         * config/ia64/quadlib.c: Move to ../libgcc/config/ia64.
3011         * config/ia64/t-hpux (LIBGCC, INSTALL_LIBGCC, LIB2FUNCS_EXTRA)
3012         (quadlib.c): Remove.
3013         * config/ia64/t-ia64: Remove comment.
3014         * config/iq2000/lib2extra-funcs.c: Move to
3015         ../libgcc/config/iq2000/lib2funcs.c.
3016         * config/iq2000/t-iq2000: Remove.
3017         * config/m32c/m32c-lib2.c: Move to ../libgcc/config/m32c/lib2funcs.c.
3018         * config/m32c/m32c-lib2-trapv.c: Move to ../libgcc/config/m32c/trapv.c.
3019         * config/m32r/t-linux (TARGET_LIBGCC2_CFLAGS): Remove.
3020         * config/m32c/t-m32c (LIB2FUNCS_EXTRA): Remove.
3021         * config/m32r/t-m32r (TARGET_LIBGCC2_CFLAGS, LIBGCC)
3022         (INSTALL_LIBGCC): Remove.
3023         * config/m68k/fpgnulib.c: Move to ../libgcc/config/m68k.
3024         * config/m68k/t-floatlib: Remove.
3025         * config/m68k/t-mlibs (LIBGCC, INSTALL_LIBGCC): Remove.
3026         * config/mcore/t-mcore (TARGET_LIBGCC2_CFLAGS): Remove.
3027         Fix typo.
3028         (LIBGCC, INSTALL_LIBGCC): Remove.
3029         * config/mep/mep-lib2.c: Move to ../libgcc/config/mep/lib2funcs.c.
3030         * config/mep/mep-tramp.c: Move to ../libgcc/config/mep/tramp.c.
3031         * config/mep/t-mep (LIB2FUNCS_EXTRA): Remove.
3032         * config/mips/t-elf (TARGET_LIBGCC2_CFLAGS, LIBGCC)
3033         (INSTALL_LIBGCC): Remove.
3034         * config/mips/t-isa3264: Likewise.
3035         * config/mips/t-mips (LIB2_SIDITI_CONV_FUNCS): Remove.
3036         * config/mips/t-r3900 (TARGET_LIBGCC2_CFLAGS, LIBGCC)
3037         (INSTALL_LIBGCC): Remove.
3038         * config/mips/t-sde (LIBGCC, INSTALL_LIBGCC): Remove.
3039         * config/mips/t-sr71k (TARGET_LIBGCC2_CFLAGS, LIBGCC)
3040         (INSTALL_LIBGCC): Remove.
3041         * config/mips/t-vr (TARGET_LIBGCC2_CFLAGS)
3042         (LIB2FUNCS_STATIC_EXTRA): Remove.
3043         * config/mips/vr4120-div.S: Move to ../libgcc/config/mips.
3044         * config/mmix/t-mmix (TARGET_LIBGCC2_CFLAGS): Remove.
3045         * config/mn10300/t-mn10300 (LIBGCC, INSTALL_LIBGCC): Remove.
3046         * config/pa/fptr.c, config/pa/linux-atomic.c: Move to
3047         ../libgcc/config/pa.
3048         * config/pa/lib2funcs.asm: Move to ../libgcc/config/pa/lib2funcs.S.
3049         * config/pa/quadlib.c: Move to ../libgcc/config/pa.
3050         * config/pa/t-dce-thr (LIBGCC, INSTALL_LIBGCC): Remove.
3051         * config/pa/t-linux, config/pa/t-linux64: Remove.
3052         * config/pa/t-pa-hpux, config/pa/t-pa-hpux10,
3053         config/pa/t-pa-hpux11, config/pa/t-pa64: Remove.
3054         * config/pdp11/t-pdp11 (TARGET_LIBGCC2_CFLAGS, LIB2FUNCS_EXTRA):
3055         Remove.
3056         * config/picochip/libgccExtras: Move to ../libgcc/config/picochip.
3057         * config/picochip/t-picochip (LIB2FUNCS_EXTRA, RANLIB_FOR_TARGET)
3058         (TARGET_LIBGCC2_CFLAGS, LIBGCC2_DEBUG_CFLAGS): Remove.
3059         * config/rs6000/crtresfpr.asm: Move to
3060         ../libgcc/config/rs6000/crtresfpr.S.
3061         * config/rs6000/crtresgpr.asm: Move to
3062         ../libgcc/config/rs6000/crtresgpr.S.
3063         * config/rs6000/crtresxfpr.asm: Move to
3064         ../libgcc/config/rs6000/crtresxfpr.S.
3065         * config/rs6000/crtresxgpr.asm: Move to
3066         ../libgcc/config/rs6000/crtresxgpr.S.
3067         * config/rs6000/crtsavfpr.asm: Move to
3068         ../libgcc/config/rs6000/crtsavfpr.S.
3069         * config/rs6000/crtsavgpr.asm: Move to
3070         ../libgcc/config/rs6000/crtsavgpr.S.
3071         * config/rs6000/darwin-asm.h: Move to ../libgcc/config/rs6000.
3072         * config/rs6000/darwin-fpsave.asm: Move to
3073         ../libgcc/config/rs6000/darwin-fpsave.S.
3074         * config/rs6000/darwin-gpsave.asm: Move to
3075         ../libgcc/config/rs6000/darwin-gpsave.S.
3076         * config/rs6000/darwin-tramp.asm: Move to
3077         ../libgcc/config/rs6000/darwin-tramp.S.
3078         * config/rs6000/darwin-vecsave.asm: Move to
3079         ../libgcc/config/rs6000/darwin-vecsave.S.
3080         * config/rs6000/darwin-world.asm: Move to
3081         ../libgcc/config/rs6000/darwin-world.S.
3082         * config/rs6000/e500crtres32gpr.asm: Move to
3083         ../libgcc/config/rs6000/e500crtres32gpr.S.
3084         * config/rs6000/e500crtres64gpr.asm: Move to
3085         ../libgcc/config/rs6000/e500crtres64gpr.S.
3086         * config/rs6000/e500crtres64gprctr.asm: Move to
3087         ../libgcc/config/rs6000/e500crtres64gprctr.S.
3088         * config/rs6000/e500crtrest32gpr.asm: Move to
3089         ../libgcc/config/rs6000/e500crtrest32gpr.S.
3090         * config/rs6000/e500crtrest64gpr.asm: Move to
3091         ../libgcc/config/rs6000/e500crtrest64gpr.S.
3092         * config/rs6000/e500crtresx32gpr.asm: Move to
3093         ../libgcc/config/rs6000/e500crtresx32gpr.S.
3094         * config/rs6000/e500crtresx64gpr.asm: Move to
3095         ../libgcc/config/rs6000/e500crtresx64gpr.S.
3096         * config/rs6000/e500crtsav32gpr.asm: Move to
3097         ../libgcc/config/rs6000/e500crtsav32gpr.S.
3098         * config/rs6000/e500crtsav64gpr.asm: Move to
3099         ../libgcc/config/rs6000/e500crtsav64gpr.S.
3100         * config/rs6000/e500crtsav64gprctr.asm: Move to
3101         ../libgcc/config/rs6000/e500crtsav64gprctr.S.
3102         * config/rs6000/e500crtsavg32gpr.asm: Move to
3103         ../libgcc/config/rs6000/e500crtsavg32gpr.S.
3104         * config/rs6000/e500crtsavg64gpr.asm: Move to
3105         ../libgcc/config/rs6000/e500crtsavg64gpr.S.
3106         * config/rs6000/e500crtsavg64gprctr.asm: Move to
3107         ../libgcc/config/rs6000/e500crtsavg64gprctr.S.
3108         * config/rs6000/eabi.asm: Move to ../libgcc/config/rs6000/eabi.S.
3109         * config/rs6000/t-aix43 (LIBGCC, INSTALL_LIBGCC, LIB2FUNCS_EXTRA)
3110         (TARGET_LIBGCC2_CFLAGS): Remove.
3111         * config/rs6000/t-aix52: Likewise.
3112         * config/rs6000/t-darwin: Remove.
3113         * config/rs6000/t-darwin64 (LIB2_SIDITI_CONV_FUNCS)
3114         (LIB2FUNCS_EXTRA): Remove.
3115         * config/rs6000/t-fprules (LIBGCC, INSTALL_LIBGCC): Remove.
3116         * config/rs6000/t-linux64 (TARGET_LIBGCC2_CFLAGS): Remove.
3117         * config/rs6000/t-lynx (LIB2FUNCS_EXTRA, tramp.S, LIBGCC)
3118         (INSTALL_LIBGCC): Remove.
3119         * config/rs6000/t-netbsd (LIB2FUNCS_EXTRA)
3120         (LIB2FUNCS_STATIC_EXTRA, tramp.S, crtsavfpr.S, crtresfpr.S)
3121         (crtsavgpr.S, crtresgpr.S, crtresxfpr.S, crtresxgpr.S, LIBGCC)
3122         (INSTALL_LIBGCC, $(T)crtsavfpr$(objext), $(T)crtresfpr$(objext))
3123         ($(T)crtsavgpr$(objext), $(T)crtresgpr$(objext))
3124         ($(T)crtresxfpr$(objext), $(T)crtresxgpr$(objext)): Remove.
3125         * config/rs6000/t-ppccomm (LIB2FUNCS_EXTRA)
3126         (LIB2FUNCS_STATIC_EXTRA, eabi.S, tramp.S): Remove.
3127         * config/rs6000/t-spe (LIBGCC, INSTALL_LIBGCC): Remove.
3128         * config/rs6000/t-vxworks: Remove comment.
3129         * config/rs6000/tramp.asm: Move to ../libgcc/config/rs6000/tramp.S.
3130         * config/rx/t-rx (LIBGCC, INSTALL_LIBGCC): Remove.
3131         * config/sh/linux-atomic.asm: Move to
3132         ../libgcc/config/sh/linux-atomic.S.
3133         * config/sh/t-linux (LIB2FUNCS_EXTRA): Remove.
3134         * config/sh/t-netbsd: Remove.
3135         * config/sh/t-sh (TARGET_LIBGCC2_CFLAGS, LIBGCC, INSTALL_LIBGCC):
3136         Remove.
3137         * config/sparc/t-elf (LIBGCC, INSTALL_LIBGCC): Remove.
3138         * config/sparc/t-leon: Likewise.
3139         * config/sparc/t-leon3: Likewise.
3140         * config/sparc/t-linux64: Likewise.
3141         * config/sparc/t-netbsd64: Fix typo.
3142         Remove comment.
3143         * config/spu/divmodti4.c, config/spu/divv2df3.c,
3144         config/spu/float_disf.c, config/spu/float_unsdidf.c,
3145         config/spu/float_unsdisf.c, config/spu/float_unssidf.c,
3146         config/spu/mfc_multi_tag_release.c,
3147         config/spu/mfc_multi_tag_reserve.c, config/spu/mfc_tag_release.c,
3148         config/spu/mfc_tag_reserve.c, config/spu/mfc_tag_table.c,
3149         config/spu/multi3.c: Move to ../libgcc/config/spu.
3150         * config/spu/t-spu-elf (TARGET_LIBGCC2_CFLAGS, LIB2FUNCS_EXCLUDE)
3151         (LIB2FUNCS_STATIC_EXTRA, LIB2_SIDITI_CONV_FUNCS, LIBGCC)
3152         (INSTALL_LIBGCC): Remove.
3153         * config/stormy16/stormy16-lib2.c: Move to
3154         ../libgcc/config/stormy16/lib2.c.
3155         * config/stormy16/stormy16-lib2-ashlsi3.c: Move to
3156         ../libgcc/config/stormy16/ashlsi3.c.
3157         * config/stormy16/stormy16-lib2-ashrsi3.c: Move to
3158         ../libgcc/config/stormy16/ashrsi3.c.
3159         * config/stormy16/stormy16-lib2-clzhi2.c: Move to
3160         ../libgcc/config/stormy16/clzhi2.c.
3161         * config/stormy16/stormy16-lib2-cmpsi2.c: Move to
3162         ../libgcc/config/stormy16/cmpsi2.c.
3163         * config/stormy16/stormy16-lib2-ctzhi2.c: Move to
3164         ../libgcc/config/stormy16/ctzhi2.c.
3165         * config/stormy16/stormy16-lib2-divsi3.c: Move to
3166         ../libgcc/config/stormy16/divsi3.c.
3167         * config/stormy16/stormy16-lib2-ffshi2.c: Move to
3168         ../libgcc/config/stormy16/ffshi2.c.
3169         * config/stormy16/stormy16-lib2-lshrsi3.c: Move to
3170         ../libgcc/config/stormy16/lshrsi3.c.
3171         * config/stormy16/stormy16-lib2-modsi3.c: Move to
3172         ../libgcc/config/stormy16/modsi3.c.
3173         * config/stormy16/stormy16-lib2-parityhi2.c: Move to
3174         ../libgcc/config/stormy16/parityhi2.c.
3175         * config/stormy16/stormy16-lib2-popcounthi2.c: Move to
3176         ../libgcc/config/stormy16/popcounthi2.c.
3177         * config/stormy16/stormy16-lib2-ucmpsi2.c: Move to
3178         ../libgcc/config/stormy16/ucmpsi2.c.
3179         * config/stormy16/stormy16-lib2-udivmodsi4.c: Move to
3180         ../libgcc/config/stormy16/udivmodsi4.c.
3181         * config/stormy16/stormy16-lib2-udivsi3.c: Move to
3182         ../libgcc/config/stormy16/udivsi3.c.
3183         * config/stormy16/stormy16-lib2-umodsi3.c: Move to
3184         ../libgcc/config/stormy16/umodsi3.c.
3185         * config/stormy16/t-stormy16: Move to ../libgcc/config/t-stormy16.
3186         * config/v850/t-v850 (INSTALL_LIBGCC): Remove.
3187         * config/xtensa/lib2funcs.S: Move to ../libgcc/config/xtensa.
3188         * config/xtensa/t-elf: Remove.
3189         * config/xtensa/t-xtensa (LIB2FUNCS_EXTRA): Remove.
3190         * config.gcc (*-*-freebsd*): Remove t-freebsd, t-freebsd-thread
3191         from tmake_file.
3192         (*-*-linux*, frv-*-*linux*, *-*-kfreebsd*-gnu, *-*-knetbsd*-gnu,
3193         *-*-gnu*, *-*-kopensolaris*-gnu): Remove t-linux from tmake_file.
3194         (*-*-netbsd*): Remove t-libgcc-pic from tmake_file.
3195         (*-*-openbsd*): Likewise.
3196         Remove t-openbsd-thread for posix threads.
3197         (alpha*-*-linux*): Remove alpha/t-alpha, alpha/t-ieee from tmake_file.
3198         (alpha*-*-freebsd*): Likewise.
3199         (alpha*-*-netbsd*): Likewise.
3200         (alpha*-*-openbsd*): Likewise.
3201         (alpha64-dec-*vms*): Likewise.
3202         (alpha*-dec-*vms*): Likewise.
3203         (arm*-*-netbsdelf*): Remove arm/t-netbsd from tmake_file.
3204         (arm*-*-linux*): Remove t-linux from tmake_file.
3205         Remove arm/t-bpabi from tmake_file for arm*-*-linux-*eabi.
3206         (arm*-*-uclinux*): Remove arm/t-bpabi from tmake_file for
3207         arm*-*-uclinux*eabi.
3208         (arm*-*-eabi*, arm*-*-symbianelf* ): Remove arm/t-bpabi from
3209         tmake_file for arm*-*-eabi*.
3210         (fr30-*-elf): Remove tmake_file.
3211         (hppa*64*-*-linux*): Remove tmake_file.
3212         (hppa*-*-linux*): Likewise.
3213         (hppa[12]*-*-hpux10*): Remove pa/t-pa-hpux10, pa/t-pa-hpux from
3214         tmake_file.
3215         (hppa*64*-*-hpux11*): Remove pa/t-pa64, pa/t-pa-hpux from tmake_file.
3216         (hppa[12]*-*-hpux11*): Remove pa/t-pa-hpux11, pa/t-pa-hpux from
3217         tmake_file.
3218         (i[34567]86-*-elf*): Remove tmake_file.
3219         (x86_64-*-elf*): Likewise.
3220         (i[34567]86-*-nto-qnx*): Likewise.
3221         (i[34567]86-*-cygwin*): Remove i386/t-cygwin from tmake_file.
3222         (i[34567]86-*-mingw*, x86_64-*-mingw*): Remove i386/t-gthr-win32
3223         from tmake_file if using win32 threads.
3224         (iq2000*-*-elf*): Remove tmake-file.
3225         (microblaze*-linux*): Likewise.
3226         (sh-*-elf*, sh[12346l]*-*-elf*, sh-*-linux*)
3227         (sh[2346lbe]*-*-linux*, sh-*-netbsdelf*, shl*-*-netbsdelf*)
3228         (sh5-*-netbsd*, sh5l*-*-netbsd*, sh64-*-netbsd*)
3229         (sh64l*-*-netbsd*): Remove sh/t-netbsd from tmake_file for
3230         sh5*-*-netbsd*, sh64*-netbsd*, *-*-netbsd.
3231         (xtensa*-*-elf*): Remove tmake_file.
3232
3233 2011-11-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3234
3235         * Makefile.in (LIB1ASMSRC): Don't export.
3236         (libgcc.mvars): Don't emit LIB1ASMFUNCS, LIB1ASMSRC.
3237         * config/arm/arm.c: Update lib1funcs.asm filename.
3238         * config/arm/linux-eabi.h: Likewise.
3239         * config/arm/bpabi-v6m.S, config/arm/bpabi.S,
3240         config/arm/ieee754-df.S, config/arm/ieee754-sf.S: Move to
3241         ../libgcc/config/arm.
3242         * config/arm/lib1funcs.asm: Move to ../libgcc/config/arm/lib1funcs.S.
3243         * config/arm/t-arm (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
3244         * config/arm/t-arm-elf (LIB1ASMFUNCS): Remove.
3245         * config/arm/t-bpabi: Likewise.
3246         * config/arm/t-linux (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
3247         * config/arm/t-linux-eabi (LIB1ASMFUNCS): Remove.
3248         * config/arm/t-strongarm-elf: Likewise.
3249         * config/arm/t-symbian: Likewise.
3250         * config/arm/t-vxworks: Likewise.
3251         * config/arm/t-wince-pe: Likewise.
3252         * config/avr/libgcc.S: Move to ../libgcc/config/avr.
3253         * config/avr/t-avr (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
3254         * config/bfin/lib1funcs.asm: Move to ../libgcc/config/bfin/lib1funcs.S.
3255         * config/bfin/t-bfin: Remove.
3256         * config/bfin/t-bfin-elf (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
3257         * config/bfin/t-bfin-linux: Likewise.
3258         * config/bfin/t-bfin-uclinux: Likewise.
3259         * config/c6x/lib1funcs.asm: Move to ../libgcc/config/c6x/lib1funcs.S.
3260         * config/c6x/t-c6x-elf (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
3261         * config/fr30/lib1funcs.asm: Move to ../libgcc/config/fr30/lib1funcs.S.
3262         * config/fr30/t-fr30 (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
3263         * config/frv/lib1funcs.asm: Move to ../libgcc/config/frv/lib1funcs.S.
3264         * config/frv/t-frv (CROSS_LIBGCC1, LIB1ASMSRC, LIB1ASMFUNCS): Remove.
3265         * config/h8300/fixunssfsi.c: Update lib1funcs.asm filename.
3266         * config/h8300/lib1funcs.asm: Move to
3267         ../libgcc/config/h8300/lib1funcs.S.
3268         * config/h8300/t-h8300 (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
3269         * config/i386/cygwin.asm: Move to ../libgcc/config/i386/cygwin.S.
3270         * config/i386/t-cygming (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
3271         * config/i386/t-interix: Likewise.
3272         * config/ia64/lib1funcs.asm: Move to ../libgcc/config/ia64/lib1funcs.S.
3273         * config/ia64/t-hpux (LIB1ASMFUNCS, LIBGCC1_TEST): Remove.
3274         * config/ia64/t-ia64 (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
3275         * config/iq2000/t-iq2000 (LIBGCC1, CROSS_LIBGCC1): Remove.
3276         * config/m32c/m32c.c: Update m32c-lib1.S filename.
3277         * config/m32c/m32c-lib1.S: Move to ../libgcc/config/m32c/lib1funcs.S.
3278         * config/m32c/t-m32c (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
3279         * config/m32r/t-linux (CROSS_LIBGCC1, LIBGCC1, LIBGCC1_TEST): Remove.
3280         * config/m68k/lb1sf68.asm: Move to ../libgcc/config/m68k/lb1sf68.S.
3281         * config/m68k/t-floatlib (LIB1ASMSRC, LIB1ASMFUNCS): New file.
3282         * config/mcore/lib1.asm: Move to ../libgcc/config/mcore/lib1funcs.S.
3283         * config/mcore/t-mcore (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
3284         * config/mep/mep-lib1.asm: Move to ../libgcc/config/mep/lib1funcs.S.
3285         * config/mep/t-mep (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
3286         * config/mips/mips16.S: Move to ../libgcc/config/mips.
3287         * config/mips/t-libgcc-mips16: Remove.
3288         * config/mips/t-sr71k (LIBGCC1, CROSS_LIBGCC1): Remove.
3289         * config/pa/milli64.S: Move to ../libgcc/config/pa.
3290         * config/pa/t-linux (LIB1ASMFUNCS, LIB1ASMSRC): Remove.
3291         * config/pa/t-linux64: Likewise.
3292         * config/picochip/libgccExtras/fake_libgcc.asm: Move to
3293         ../libgcc/config/picochip/lib1funcs.S.
3294         * config/picochip/t-picochip (LIB1ASMFUNCS, LIB1ASMSRC): Remove.
3295         * config/sh/lib1funcs.asm: Move to ../libgcc/config/sh/lib1funcs.S.
3296         * config/sh/lib1funcs.h: Move to ../libgcc/config/sh.
3297         * config/sh/sh.h: Update lib1funcs.asm filename.
3298         * config/sh/t-linux (LIB1ASMFUNCS_CACHE): Remove.
3299         * config/sh/t-netbsd: Likewise.
3300         * config/sh/t-sh (LIB1ASMSRC, LIB1ASMFUNCS, LIB1ASMFUNCS_CACHE):
3301         Remove.
3302         * config/sh/t-sh64 (LIB1ASMFUNCS): Remove.
3303         * config/sparc/lb1spc.asm: Move to ../libgcc/config/sparc/lb1spc.S.
3304         * config/sparc/lb1spl.asm: Remove.
3305         * config/sparc/t-elf (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
3306         * config/sparc/t-leon: Likewise.
3307         * config/spu/t-spu-elf (LIBGCC1, CROSS_LIBGCC1): Remove.
3308         * config/v850/lib1funcs.asm: Move to ../libgcc/config/v850/lib1funcs.S.
3309         * config/v850/t-v850 (LIB1ASMSRC, LIB1ASMFUNCS): Remove
3310         * config/vax/lib1funcs.asm: Move to ../libgcc/config/vax/lib1funcs.S.
3311         * config/vax/t-linux: Remove.
3312         * config/xtensa/ieee754-df.S, config/xtensa/ieee754-sf.S: Move to
3313         ../libgcc/config/xtensa.
3314         * config/xtensa/lib1funcs.asm: Move to
3315         ../libgcc/config/xtensa/lib1funcs.S.
3316         * config/xtensa/t-xtensa (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
3317         * config.gcc (bfin*-rtems*): Remove bfin/t-bfin from tmake_file.
3318         (bfin*-*): Likewise.
3319         (mips64*-*-linux*, mipsisa64*-*-linux*): Remove
3320         mips/t-libgcc-mips16 from tmake_file.
3321         (mips*-*-linux*): Likewise.
3322         (mips*-sde-elf*): Likewise.
3323         (mipsisa32-*-elf*, mipsisa32el-*-elf*, mipsisa32r2-*-elf*)
3324         (mipsisa32r2el-*-elf*, mipsisa64-*-elf*, mipsisa64el-*-elf*)
3325         (mipsisa64r2-*-elf*, mipsisa64r2el-*-elf*): Likewise.
3326         (mipsisa64sb1-*-elf*, mipsisa64sb1el-*-elf*): Likewise.
3327         (mips-*-elf*, mipsel-*-elf*): Likewise.
3328         (mips64-*-elf*, mips64el-*-elf*): Likewise.
3329         (mips64orion-*-elf*, mips64orionel-*-elf*): Likewise.
3330         (mips*-*-rtems*): Likewise.
3331         (mipstx39-*-elf*, mipstx39el-*-elf*): Likewise.
3332         (vax-*-linux*): Remove vax/t-linux from tmake_file.
3333
3334 2011-11-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3335
3336         * config.gcc (extra_parts): Remove.
3337         (*-*-freebsd*): Remove extra_parts.
3338         (*-*-linux*, frv-*-*linux*, *-*-kfreebsd*-gnu, *-*-knetbsd*-gnu,
3339         *-*-gnu*, *-*-kopensolaris*-gnu): Likewise.
3340         (*-*-netbsd*): Remove t-libc-ok, t-netbsd from tmake_file.
3341         Remove extra_parts for *-*-netbsd*1.[7-9]*, *-*-netbsd[2-9]*,
3342         *-*-netbsdelf[2-9]*.
3343         (*-*-openbsd*): Remove t-libc-ok from tmake_file.
3344         (alpha*-*-linux*): Remove extra_parts.
3345         (alpha*-*-freebsd*): Likewise.
3346         (bfin*-linux-uclibc*): Likewise.
3347         (fr30-*-elf): Likewise.
3348         (moxie-*-elf): Likewise.
3349         (moxie-*-uclinux*): Likewise.
3350         (h8300-*-rtems*): Remove h8300/t-elf from tmake_file.
3351         (h8300-*-elf*): Likewise.
3352         (hppa*64*-*-hpux11*): Remove extra_parts.
3353         (i[34567]86-*-elf*): Remove i386/t-i386elf, i386/t-crtstuff from
3354         tmake_file.
3355         (x86_64-*-elf*): Likewise.
3356         (i[34567]86-*-freebsd*): Remove tmake_file.
3357         (x86_64-*-freebsd*): Likewise.
3358         (x86_64-*-netbsd*): Likewise.
3359         (i[34567]86-*-openbsd2.*, i[34567]86-*openbsd3.[0123]): Remove
3360         t-libc-ok from tmake_file.
3361         (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
3362         i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
3363         i[34567]86-*-kopensolaris*-gnu): Remove i386/t-crtstuff from
3364         tmake_file.
3365         Remove extra_parts.
3366         (x86_64-*-linux*, x86_64-*-kfreebsd*-gnu, x86_64-*-knetbsd*-gnu):
3367         Remove i386/t-crtstuff from tmake_file.
3368         (i[34567]86-*-lynxos*): Likewise.
3369         Remove extra_parts.
3370         (ia64*-*-elf*): Remove extra_parts.
3371         (ia64*-*-freebsd*): Likewise.
3372         (ia64*-*-linux*): Likewise.
3373         (ia64-hp-*vms*): Remove ia64/t-vms from tmake_file.
3374         (m32r-*-elf*): Remove extra_parts.
3375         (m32rle-*-elf*): Likewise.
3376         (m32r-*-rtems*): Likewise.
3377         (m68k-*-elf*, fido-*-elf*): Likewise.
3378         (m68k*-*-openbsd*): Remove t-libc-ok from tmake_file.
3379         (m68k-*-rtems*): Remove extra_parts.
3380         (mep-*-*): Likewise.
3381         (microblaze*-linux*): Likewise.
3382         (mips64*-*-linux*, mipsisa64*-*-linux*): Likewise.
3383         (mips*-*-linux*): Likewise.
3384         (powerpc-*-lynxos*): Likewise.
3385         (s390x-ibm-tpf*): Likewise.
3386         (score-*-elf): Likewise.
3387         Remove tmake_file.
3388         (sh-*-elf*, sh[12346l]*-*-elf*, sh-*-linux*, sh[2346lbe]*-*-linux*,
3389         sh-*-netbsdelf*, shl*-*-netbsdelf*, sh5-*-netbsd*, sh5l*-*-netbsd*,
3390         sh64-*-netbsd*, sh64l*-*-netbsd*): Remove sh/t-elf from tmake_file.
3391         Remove sh/t-superh from tmake_file for sh*-superh-elf.
3392         Remove sh/t-linux64 from tmake_file for sh64*-*-linux*.
3393         (sh-*-rtems*): Remove sh/t-elf from tmake_file.
3394         (sh-wrs-vxworks): Likewise.
3395         (sparc-*-linux*): Remove extra_parts.
3396         (sparc64-*-linux*): Likewise.
3397         (sparc64-*-freebsd*, ultrasparc-*-freebsd*): Likewise.
3398         (xstormy16-*-elf): Likewise.
3399         (xtensa*-*-linux*): Remove xtensa/t-linux from tmake_file.
3400         (am33_2.0-*-linux*): Remove extra_parts.
3401         * configure.ac (extra_parts): Don't substitute.
3402         * configure: Regenerate.
3403         * crtstuff.c: Move to ../libgcc.
3404         * Makefile.in (CRTSTUFF_CFLAGS): Remove.
3405         (EXTRA_PARTS): Remove.
3406         (CRTSTUFF_T_CFLAGS): Remove.
3407         (MOSTLYCLEANFILES): Remove $(EXTRA_PARTS).
3408         (GCC_EXTRA_PARTS): Remove.
3409         (libgcc.mvars): Remove GCC_EXTRA_PARTS, CRTSTUFF_CFLAGS,
3410         CRTSTUFF_T_CFLAGS, CRTSTUFF_T_CFLAGS_S.
3411         Emit GCC_CFLAGS, INHIBIT_LIBC_CFLAGS.
3412         ($(T)crtbegin.o, $(T)crtend.o, $(T)crtbeginS.o, $(T)crtendS.o)
3413         ($(T)crtbeginT.o): Remove.
3414         * config/alpha/t-vms (EXTRA_PARTS): Remove.
3415         ($(T)vms-dwarf2.o, $(T)vms-dwarf2eh.o): Remove.
3416         * config/alpha/vms-dwarf2.asm: Move to
3417         ../libgcc/config/alpha/vms-dwarf2.S.
3418         * config/alpha/vms-dwarf2eh.asm: Move to
3419         ../libgcc/config/alpha/vms-dwarf2eh.S.
3420         * config/arm/crti.asm: Move to ../libgcc/config/arm/crti.S.
3421         * config/arm/crtn.asm: Move to ../libgcc/config/arm/crtn.S.
3422         * config/arm/t-arm-elf (EXTRA_MULTILIB_PARTS): Remove.
3423         ($(T)crti.o, $(T)crtn.o): Remove.
3424         * config/arm/t-linux: Remove comment.
3425         * config/arm/t-linux-eabi (EXTRA_MULTILIB_PARTS): Remove.
3426         * config/arm/t-strongarm-elf (EXTRA_MULTILIB_PARTS): Remove.
3427         ($(T)crti.o, $(T)crtn.o): Remove.
3428         * config/arm/t-symbian (EXTRA_MULTILIB_PARTS): Remove.
3429         * config/bfin/crti.s: Move to ../libgcc/config/bfin/crti.S.
3430         * config/bfin/crtn.s: Move to ../libgcc/config/bfin/crtn.S.
3431         * config/bfin/crtlibid.s: Move to ../libgcc/config/bfin/crtlibid.S.
3432         * config/bfin/t-bfin (EXTRA_PARTS): Remove.
3433         ($(T)crti.o, $(T)crtn.o): Remove.
3434         * config/bfin/t-bfin-elf (CRTSTUFF_T_CFLAGS): Remove.
3435         ($(T)crti.o, $(T)crtn.o, $(T)crtlibid.o): Remove
3436         (EXTRA_MULTILIB_PARTS): Remove.
3437         * config/bfin/t-bfin-linux (CRTSTUFF_T_CFLAGS,
3438         EXTRA_MULTILIB_PARTS): Remove.
3439         * config/bfin/t-bfin-uclinux (CRTSTUFF_T_CFLAGS): Remove.
3440         ($(T)crtlibid.o): Remove.
3441         (EXTRA_MULTILIB_PARTS): Remove.
3442         * config/c6x/crti.s: Move to ../libgcc/config/c6x/crti.S.
3443         * config/c6x/crtn.s: Move to ../libgcc/config/c6x/crtn.S.
3444         * config/c6x/t-c6x-elf ($(T)crti.o, $(T)crtn.o): Remove.
3445         (EXTRA_MULTILIB_PARTS): Remove.
3446         (CRTSTUFF_T_CFLAGS, CRTSTUFF_T_CFLAGS_S): Remove.
3447         * config/c6x/t-c6x-uclinux (CRTSTUFF_T_CFLAGS,
3448         CRTSTUFF_T_CFLAGS_S): Remove.
3449         * config/cris/t-elfmulti (CRTSTUFF_T_CFLAGS): Remove.
3450         * config/cris/t-linux (CRTSTUFF_T_CFLAGS_S): Remove.
3451         * config/fr30/crti.asm: Move to ../libgcc/config/fr30/crti.S.
3452         * config/fr30/crtn.asm: Move to ../libgcc/config/fr30/crtn.S.
3453         * config/fr30/t-fr30 ($(T)crti.o, $(T)crtn.o): Remove.
3454         * config/frv/frvbegin.c, config/frv/frvend.c: Move to
3455         ../libgcc/config/frv.
3456         * config/frv/t-frv (EXTRA_MULTILIB_PARTS): Remove.
3457         (FRVSTUFF_CFLAGS, $(T)frvbegin$(objext), $(T)frvend$(objext)): Remove.
3458         * config/frv/t-linux (EXTRA_MULTILIB_PARTS): Remove.
3459         (CRTSTUFF_T_CFLAGS): Remove.
3460         * config/h8300/crti.asm: Move to ../libgcc/config/h8300/crti.S.
3461         * config/h8300/crtn.asm: Move to ../libgcc/config/h8300/crtn.S.
3462         * config/h8300/t-elf: Remove.
3463         * config/i386/cygming-crtbegin.c, config/i386/cygming-crtend.c:
3464         Move to ../libgcc/config/i386.
3465         * config/i386/t-crtstuff: Remove.
3466         * config/i386/t-i386elf: Remove.
3467         * config/i386/t-linux64 (EXTRA_MULTILIB_PARTS): Remove.
3468         * config/i386/t-nto (CRTSTUFF_T_CFLAGS, EXTRA_PARTS): Remove.
3469         * config/ia64/crtbegin.asm: Move to ../libgcc/config/ia64/crtbegin.S.
3470         * config/ia64/crtend.asm: Move to ../libgcc/config/ia64/crtend.S.
3471         * config/ia64/crti.asm: Move to ../libgcc/config/ia64/crti.S.
3472         * config/ia64/crtn.asm: Move to ../libgcc/config/ia64/crtn.S.
3473         * config/ia64/t-vms: Remove.
3474         * config/ia64/vms-crtinit.asm: Move to
3475         ../libgcc/config/ia64/vms-crtinit.S.
3476         * config/m32c/t-m32c (EXTRA_MULTILIB_PARTS): Remove.
3477         * config/m32r/initfini.c: Move to ../libgcc/config/m32r.
3478         * config/m32r/t-linux (CRTSTUFF_T_CFLAGS_S): Remove.
3479         * config/m32r/t-m32r (CRTSTUFF_T_CFLAGS): Remove.
3480         ($(T)crtinit.o, $(T)crtfini.o): Remove.
3481         (m32rx, m32r2): Remove.
3482         (EXTRA_MULTILIB_PARTS): Remove.
3483         * config/m68k/crti.s: Move to ../libgcc/config/m68k/crti.S.
3484         * config/m68k/crtn.s: Move to ../libgcc/config/m68k/crtn.S.
3485         * config/m68k/t-crtstuff: Remove.
3486         * config/m68k/t-linux (EXTRA_MULTILIB_PARTS): Remove.
3487         * config/m68k/t-m68kelf: Remove.
3488         * config/m68k/t-uclinux (EXTRA_MULTILIB_PARTS): Remove.
3489         * config/mcore/crti.asm: Move to ../libgcc/config/mcore/crti.S.
3490         * config/mcore/crtn.asm: Move to ../libgcc/config/mcore/crtn.S.
3491         * config/mcore/t-mcore ($(T)crti.o, $(T)crtn.o): Remove.
3492         (EXTRA_PARTS, EXTRA_MULTILIB_PARTS): Remove.
3493         * config/mep/t-mep (CRTSTUFF_CFLAGS): Remove.
3494         (EXTRA_MULTILIB_PARTS): Remove.
3495         * config/microblaze/crti.s: Move to ../libgcc/config/microblaze/crti.S.
3496         * config/microblaze/crtn.s: Move to ../libgcc/config/microblaze/crtn.S.
3497         * config/microblaze/t-microblaze (EXTRA_MULTILIB_PARTS,
3498         EXTRA_PARTS): Remove.
3499         ($(T)crti$(objext), $(T)crtn$(objext)): Remove.
3500         * config/mips/crti.asm: Move to ../libgcc/config/mips/crti.S.
3501         * config/mips/crtn.asm: Move to ../libgcc/config/mips/crtn.S.
3502         * config/mips/t-elf (CRTSTUFF_T_CFLAGS): Remove.
3503         ($(T)crti.o, $(T)crtn.o): Remove.
3504         (EXTRA_MULTILIB_PARTS): Remove.
3505         * config/mips/t-isa3264: Likewise.
3506         * config/mips/t-linux64 (EXTRA_MULTILIB_PARTS): Remove.
3507         * config/mips/t-r3900 (EXTRA_MULTILIB_PARTS): Remove.
3508         (CRTSTUFF_T_CFLAGS): Remove.
3509         * config/mips/t-sde (CRTSTUFF_T_CFLAGS): Remove.
3510         ($(T)crti.o, $(T)crtn.o): Remove.
3511         (EXTRA_MULTILIB_PARTS): Remove.
3512         * config/mips/t-sr71k (EXTRA_MULTILIB_PARTS, CRTSTUFF_T_CFLAGS):
3513         Remove.
3514         ($(T)crti.o, $(T)crtn.o): Remove.
3515         * config/mips/t-st (EXTRA_MULTILIB_PARTS): Remove.
3516         * config/mips/t-vr (CRTSTUFF_T_CFLAGS): Remove.
3517         (EXTRA_MULTILIB_PARTS): Remove.
3518         ($(T)crti.o, $(T)crtn.o): Remove.
3519         * config/mmix/crti.asm: Move to ../libgcc/config/crti.S.
3520         * config/mmix/crtn.asm: Move to ../libgcc/config/crtn.S.
3521         * config/mmix/t-mmix (CRTSTUFF_T_CFLAGS): Remove.
3522         * config/moxie/crti.asm, config/moxie/crtn.asm: Remove.
3523         * config/pa/stublib.c: Move to libgcc/config/pa.
3524         * config/pa/t-linux (CRTSTUFF_T_CFLAGS_S): Remove.
3525         * config/pa/t-linux64 (CRTSTUFF_T_CFLAGS_S): Remove.
3526         * config/pa/t-pa-hpux11 (LIBGCCSTUB_OBJS, stublib.c): Remove.
3527         (pthread_default_stacksize_np-stub.o, pthread_mutex_lock-stub.o)
3528         (pthread_mutex_unlock-stub.o, pthread_once-stub.o)
3529         ($(T)libgcc_stub.a): Remove.
3530         * config/pa/t-pa64 (LIBGCCSTUB_OBJS, stublib.c): Remove.
3531         (rfi-stub.o, dfi-stub.o, cxaf-stub.o, jvrc-stub.o)
3532         (pthread_default_stacksize_np-stub.o, pthread_mutex_lock-stub.o)
3533         (pthread_mutex_unlock-stub.o, pthread_once-stub.o)
3534         ($(T)libgcc_stub.a): Remove.
3535         * config/rs6000/eabi-cn.asm: Move to
3536         ../../../libgcc/config/rs6000/eabi-cn.S.
3537         * config/rs6000/eabi-ci.asm: Move to
3538         ../../../libgcc/config/rs6000/eabi-ci.S.
3539         * config/rs6000/sol-ci.asm: Move to
3540         ../../../libgcc/config/rs6000/sol-ci.S.
3541         * config/rs6000/sol-cn.asm: Move to
3542         ../../../libgcc/config/rs6000/sol-cn.S.
3543         * config/rs6000/t-lynx (EXTRA_MULTILIB_PARTS): Remove.
3544         (CRTSTUFF_T_CFLAGS, CRTSTUFF_T_CFLAGS_S): Remove.
3545         * config/rs6000/t-netbsd (CRTSTUFF_T_CFLAGS, CRTSTUFF_T_CFLAGS_S):
3546         Remove.
3547         (EXTRA_MULTILIB_PARTS): Remove.
3548         * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Remove.
3549         (ecrti.S, ecrtn.S, ncrti.S, ncrtn.S): Remove.
3550         ($(T)ecrti$(objext), $(T)ecrtn$(objext), $(T)ncrti$(objext),
3551         ($(T)ncrtn$(objext)): Remove.
3552         (CRTSTUFF_T_CFLAGS, CRTSTUFF_T_CFLAGS_S): Remove.
3553         * config/rs6000/t-vxworks (EXTRA_MULTILIB_PARTS): Remove.
3554         * config/rx/t-rx (EXTRA_MULTILIB_PARTS): Remove.
3555         * config/score/crti.asm: Move to ../libgcc/config/score/crti.S.
3556         * config/score/crtn.asm: Move to ../libgcc/config/score/crtn.S.
3557         * config/score/t-score-elf: Remove.
3558         * config/sh/crt1.asm: Move to ../libgcc/config/sh/crt1.S.
3559         * config/sh/crti.asm: Move to ../libgcc/config/sh/crti.S.
3560         * config/sh/crtn.asm: Move to ../libgcc/config/sh/crtn.S.
3561         * config/sh/lib1funcs-4-300.asm: Move to
3562         ../../../libgcc/config/sh/lib1funcs-4-300.S.
3563         * config/sh/lib1funcs-Os-4-200.asm: Move to
3564         ../libgcc/config/sh/lib1funcs-Os-4-200.S.
3565         * config/sh/t-elf: Remove.
3566         * config/sh/t-linux (EXTRA_MULTILIB_PARTS): Remove.
3567         * config/sh/t-linux64: Remove.
3568         * config/sh/t-netbsd (EXTRA_MULTILIB_PARTS): Remove.
3569         * config/sh/t-sh ($(T)crt1.o, $(T)crti.o, $(T)crtn.o): Remove.
3570         (IC_EXTRA_PARTS, OPT_EXTRA_PARTS, EXTRA_MULTILIB_PARTS): Remove.
3571         ($(T)ic_invalidate_array_4-100.o)
3572         ($(T)libic_invalidate_array_4-100.a)
3573         ($(T)ic_invalidate_array_4-200.o)
3574         ($(T)libic_invalidate_array_4-200.a, $(T)ic_invalidate_array_4a.o)
3575         ($(T)libic_invalidate_array_4a.a, $(T)sdivsi3_i4i-Os-4-200.o)
3576         ($(T)udivsi3_i4i-Os-4-200.o, $(T)unwind-dw2-Os-4-200.o)
3577         ($(T)libgcc-Os-4-200.a, $(T)div_table-4-300.o)
3578         ($(T)libgcc-4-300.a): Remove.
3579         * config/sh/t-superh: Remove.
3580         * config/sh/t-vxworks (EXTRA_MULTILIB_PARTS): Remove.
3581         * config/sparc/t-linux64 (CRTSTUFF_T_CFLAGS): Remove.
3582         * config/spu/cache.S: Move to ../libgcc/config/spu.
3583         * config/spu/cachemgr.c: Move to ../libgcc/config/spu.
3584         * config/spu/t-spu-elf (CRTSTUFF_T_CFLAGS): Remove.
3585         (EXTRA_MULTILIB_PARTS): Remove.
3586         ($(T)cachemgr.o, $(T)cachemgr_nonatomic.o, $(T)libgcc_%.a): Remove.
3587         ($(T)cache8k.o, $(T)cache16k.o, $(T)cache32k.o, $(T)cache32k.o)
3588         ($(T)cache64k.o, $(T)cache128k.o): Remove.
3589         * config/t-freebsd (CRTSTUFF_T_CFLAGS_S): Remove.
3590         * config/t-libc-ok: Remove.
3591         * config/t-linux (CRTSTUFF_T_CFLAGS_S): Remove.
3592         * config/t-lynx (CRTSTUFF_T_CFLAGS_S): Remove.
3593         * config/t-netbsd: Remove.
3594         * config/t-svr4 (CRTSTUFF_T_CFLAGS_S): Remove.
3595         * config/t-vxworks (EXTRA_MULTILIB_PARTS): Remove.
3596         * config/vms/t-vms (VMS_EXTRA_PARTS): Remove.
3597         ($(T)vcrt0.o, $(T)pcrt0.o): Remove.
3598         * config/vms/vms-ucrt0.c: Move to ../libgcc/config/vms.
3599         * config/xtensa/crti.asm: Move to ../libgcc/config/xtensa/crti.S.
3600         * config/xtensa/crtn.asm: Move to ../libgcc/config/xtensa/crtn.S.
3601         * config/xtensa/t-elf (CRTSTUFF_T_CFLAGS, CRTSTUFF_T_CFLAGS_S): Remove.
3602         (EXTRA_MULTILIB_PARTS): Remove.
3603         * config/xtensa/t-linux: Remove.
3604         * config/xtensa/t-xtensa ($(T)crti.o, $(T)crtn.o): Remove.
3605
3606 2011-11-02  Uros Bizjak  <ubizjak@gmail.com>
3607
3608         * config/i386/i386.c (bdesc_args) [IX86_BUILTIN_CVTTPD2DQ256]: Use
3609         CODE_FOR_fix_truncv4dfv4si2, not CODE_FOR_fix_truncv4sfv4si2.
3610
3611 2011-11-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3612
3613         PR translation/45116
3614         * Makefile.in (slibdir): Remove, don't export.
3615         (SHLIB_NM_FLAGS): Remove.
3616         (libgcc.mvars): Don't emit SHLIB_LINK, SHLIB_INSTALL,
3617         SHLIB_DLLDIR, SHLIB_EXT, SHLIB_MKMAP, SHLIB_MKMAP_OPTS,
3618         SHLIB_MAPFILES, SHLIB_NM_FLAGS.
3619         (DRIVER_DEFINES): Test SHLIB instead of SHLIB_LINK.
3620         (gcc.o): Pass SHLIB instead of SHLIB_LINK.
3621         (gccspec.o): Likewise.
3622         (installdirs): Don't create $(DESTDIR)$(slibdir).
3623         * configure.ac (slibdir): Remove.
3624         * configure: Regenerate.
3625         * libgcc-libsystem.ver: Move to ../libgcc/config.
3626         * mkmap-flat.awk, mkmap-symver.awk: Move to ../libgcc.
3627         * config/libgcc-glibc.ver: Move to ../libgcc/config.
3628         * config/t-libunwind (SHLIB_LC): Remove.
3629         * config/t-linux (SHLIB_MAPFILES): Remove.
3630         * config/t-slibgcc-dummy: Rename to config/t-slibgcc.
3631         * config/t-slibgcc-elf-ver: Remove.
3632         * config/t-slibgcc-libgcc, config/t-slibgcc-nolc-override: Move to
3633         ../libgcc/config.
3634         * config/alpha/libgcc-alpha-ldbl.ver, config/alpha/t-linux: Move
3635         to ../libgcc/config/alpha.
3636         * config/alpha/t-vms (shlib_version, SHLIB_EXT, SHLIB_OBJS,
3637         SHLIB_NAME, SHLIB_MULTILIB, SHLIB_INSTALL, SHLIB_SYMVEC,
3638         SHLIB_SYMVECX2, SHLIB_LINK): Remove.
3639         * config/arm/libgcc-bpabi.ver: Move to ../libgcc/config/arm.
3640         * config/arm/t-bpabi (SHLIB_MAPFILES): Remove.
3641         * config/arm/t-netbsd (SHLIB_EXT, SHLIB_NAME, SHLIB_SONAME,
3642         SHLIB_OBJS, SHLIB_LINK, SHLIB_INSTALL): Remove.
3643         * config/arm/t-symbian (SHLIB_LC): Remove.
3644         * config/bfin/libgcc-bfin.ver: Move to
3645         ../libgcc/config/bfin/libgcc-glibc.ver.
3646         * config/bfin/t-bfin-linux (SHLIB_MAPFILES): Remove.
3647         * config/c6x/libgcc-c6xeabi.ver: Move to
3648         ../libgcc/config/c6x/libgcc-eabi.ver.
3649         * config/c6x/t-c6x-elf (SHLIB_MAPFILES): Remove.
3650         * config/cris/libgcc.ver: Move to
3651         ../libgcc/config/cris/libgcc-glibc.ver.
3652         * config/cris/t-linux (SHLIB_MAPFILES): Remove.
3653         * config/frv/libgcc-frv.ver: Move to ../libgcc/config/frv.
3654         * config/frv/t-linux (SHLIB_MAPFILES): Remove.
3655         * config/i386/darwin-libgcc.10.4.ver: Move to
3656         ../libgcc/config/i386/libgcc-darwin.10.4.ver.
3657         * config/i386/darwin-libgcc.10.5.ver: Move to
3658         ../libgcc/config/i386/libgcc-darwin.10.5.ver.
3659         * config/i386/libgcc-glibc.ver: Move to ../libgcc/config/i386.
3660         * config/i386/t-cygming (SHLIB_EXT, SHLIB_IMPLIB, SHLIB_SOVERSION,
3661         SHLIB_SONAME, SHLIB_MAP, SHLIB_OBJS, SHLIB_DIR, SHLIB_SLIBDIR_QUAL)
3662         SHLIB_PTHREAD_CFLAG, SHLIB_PTHREAD_LDFLAG, SHLIB_LINK,
3663         SHLIB_INSTALL, SHLIB_MKMAP, SHLIB_MKMAP_OPTS, SHLIB_MAPFILES): Remove.
3664         * config/i386/t-cygwin (SHLIB_LC, SHLIB_EH_EXTENSION,
3665         SHLIB_IMPLIB, SHLIB_SONAME, SHLIB_MKMAP_OPTS): Remove.
3666         * config/i386/t-dlldir, config/i386/t-dlldir-x: Move to
3667         ../libgcc/config/i386.
3668         * config/i386/t-dw2-eh, config/i386/t-sjlj-eh: Move to
3669         ../libgcc/config/i386.
3670         * config/i386/t-linux: Move to ../libgcc/config/i386.
3671         * config/i386/t-mingw-pthread: Move to ../libgcc/config/i386.
3672         * config/i386/t-mingw-w32 (SHLIB_LC): Remove.
3673         * config/i386/t-mingw-w64: Likewise.
3674         * config/i386/t-mingw32: Remove.
3675         * config/ia64/libgcc-glibc.ver, config/ia64/libgcc-ia64.ver: Move
3676         to ../libgcc/config/ia64.
3677         * config/ia64/t-glibc: Remove.
3678         * config/ia64/t-hpux (SHLIB_EXT, SHLIB_LINK, SHLIB_INSTALL): Remove.
3679         * config/ia64/t-ia64 (SHLIB_MAPFILES): Remove.
3680         * config/ia64/t-vms (shlib_version, SHLIB_EXT, SHLIB_OBJS,
3681         SHLIB_NAME, SHLIB_MULTILIB, SHLIB_INSTALL, SHLIB_LINK): Remove.
3682         * config/ia64/vms_symvec_libgcc_s.opt: Remove.
3683         * config/m32r/libgcc-glibc.ver: Move to ../libgcc/config/m32r.
3684         * config/m32r/t-linux (SHLIB_MAPFILES): Remove.
3685         * config/m68k/t-slibgcc-elf-ver: Move to ../libgcc/config/m68k.
3686         * config/mips/t-libgcc-mips16 (SHLIB_MAPFILES): Remove.
3687         * config/pa/t-hpux-shlib: Move to ../libgcc/config/pa/t-slibgcc-hpux.
3688         * config/pa/t-slibgcc-dwarf-ver, config/pa/t-slibgcc-sjsj-ver:
3689         Move to ../libgcc/config/pa.
3690         * config/rs6000/darwin-libgcc.10.4.ver: Move to
3691         ../libgcc/config/rs6000/libgcc-darwin.10.4.ver.
3692         * config/rs6000/darwin-libgcc.10.5.ver: Move to
3693         ../libgcc/config/rs6000/libgcc-darwin.10.5.ver.
3694         * config/rs6000/t-aix43 (SHLIB_EXT, SHLIB_LINK, SHLIB_INSTALL,
3695         SHLIB_LIBS, SHLIB_MKMAP, SHLIB_NM_FLAGS, AR_FLAGS_FOR_TARGET): Remove.
3696         * config/rs6000/t-aix52: Likewise.
3697         * config/sh/libgcc-excl.ver, config/sh/libgcc-glibc.ver: Move to
3698         ../libgcc/config/sh.
3699         * config/sparc/libgcc-sparc-glibc.ver: Move to
3700         ../libgcc/config/sparc/libgcc-glibc.ver.
3701         * config/sparc/t-linux: Move to ../libgcc/config/sparc.
3702         * config/xtensa/t-linux (SHLIB_MAPFILES): Remove.
3703         * config/xtensa/libgcc-xtensa.ver: Move to
3704         ../libgcc/config/xtensa/libgcc-glibc.ver.
3705         * config.gcc (*-*-freebsd*): Replace t-slibgcc-elf-ver with
3706         t-slibgcc in tmake_file.
3707         Remove t-slibgcc-nolc-override for *-*-freebsd[34],
3708         *-*-freebsd[34].* with pthreads.
3709         (*-*-linux*, frv-*-*linux*, *-*-kfreebsd*-gnu,
3710         *-*-knetbsd*-gnu, *-*-gnu*, *-*-kopensolaris*-gnu): Replace
3711         t-slibgcc-elf-ver with t-slibgcc in tmake_file.
3712         (*-*-netbsd*): Likewise.
3713         (*-*-solaris2*): Replace t-slibgcc-dummy with t-slibgcc in tmake_file.
3714         (*-*-*vms*): Add t-slibgcc to tmake_file.
3715         (alpha*-*-linux*): Remove alpha/t-linux from tmake_file.
3716         (alpha*-dec-osf5.1*): Replace t-slibgcc-dummy with t-slibgcc in
3717         tmake_file.
3718         (arm*-*-linux*): Remove t-slibgcc-libgcc from tmake_file for
3719         arm*-*-linux-*eabi.
3720         (bfin*-linux-uclibc*): Replace t-slibgcc-dummy with t-slibgcc in
3721         tmake_file.
3722         (crisv32-*-linux*, cris-*-linux*): Likewise.
3723         (hppa*-*-linux*): Remove t-slibgcc-libgcc, pa/t-slibgcc-sjlj-ver,
3724         pa/t-slibgcc-dwarf-ver from tmake_file.
3725         (hppa[12]*-*-hpux10*): Replace pa/t-hpux-shlib with t-slibgcc in
3726         tmake_file.
3727         Remove pa/t-slibgcc-sjlj-ver, pa/t-slibgcc-dwarf-ver from tmake_file.
3728         (hppa*64*-*-hpux11*): Likewise.
3729         (hppa[12]*-*-hpux11*): Likewise.
3730         (i[34567]86-*-darwin*): Replace t-slibgcc-dummy in t-slibgcc in
3731         tmake_file.
3732         (x86_64-*-darwin*): Likewise.
3733         (i[34567]86-*-cygwin*): Remove tmake_eh_file, tmake_dlldir_file.
3734         Add t-slibgcc to tmake_file.
3735         (i[34567]86-*-mingw*, x86_64-*-mingw*): Likewise.
3736         Remove i386/t-mingw32 from tmake_file unless x86_64-w64-*,
3737         i[34567]86-w64-*.
3738         Remove i386/t-mingw-pthread from tmake_file.
3739         (ia64*-*-linux*): Remove ia64/t-glibc from tmake_file.
3740         (ia64*-*-hpux*): Add t-slibgcc to tmake_file.
3741         (ia64-hp-*vms*): Likewise.
3742         (m32r-*-linux*): Replace t-slibgcc-elf-ver with t-slibgcc in
3743         tmake_file.
3744         (m32rle-*-linux*): Likewise.
3745         (m68k-*-linux*): Remove m68k/t-slibgcc-elf-ver from tmake_file.
3746         (microblaze*-linux*): Remove t-slibgcc-elf-ver,
3747         t-slibgcc-nolc-override from tmake_file.
3748         (mips-sgi-irix6.5*): Replace t-slibgcc-dummy with t-slibgcc in
3749         tmake_file.
3750         (powerpc-*-darwin*): Likewise.
3751         (powerpc64-*-darwin*): Likewise.
3752         (powerpc-*-freebsd*): Remove t-slibgcc-libgcc from tmake_file.
3753         (powerpc-*-linux*, powerpc64-*-linux*): Likewise.
3754         (rs6000-ibm-aix4.[3456789]*, powerpc-ibm-aix4.[3456789]*): Add
3755         t-slibgcc to tmake_file.
3756         (rs6000-ibm-aix5.1.*, powerpc-ibm-aix5.1.*): Likewise.
3757         (rs6000-ibm-aix5.2.*, powerpc-ibm-aix5.2.*): Likewise.
3758         (rs6000-ibm-aix5.3.*, powerpc-ibm-aix5.3.*): Likewise.
3759         (rs6000-ibm-aix[6789].*, powerpc-ibm-aix[6789].*): Likewise.
3760         (sparc-*-linux*): Remove sparc/t-linux from tmake_file.
3761         (sparc64-*-linux*): Likewise.
3762         (tic6x-*-uclinux): Replace t-slibgcc-elf-ver with t-slibgcc in
3763         tmake_file.
3764         (i[34567]86-*-linux*, x86_64-*-linux*, i[34567]86-*-kfreebsd*-gnu,
3765         x86_64-*-kfreebsd*-gnu, i[34567]86-*-gnu*): Remove i386/t-linux
3766         from tmake_file.
3767
3768 2011-11-02  Richard Guenther  <rguenther@suse.de>
3769
3770         PR tree-optimization/50902
3771         * tree-vect-stmts.c (vectorizable_load): Properly convert
3772         an invariant initializer element.
3773
3774 2010-11-02  Richard Guenther  <rguenther@suse.de>
3775
3776         PR tree-optimization/50890
3777         * gimple.h (gimple_fold_call): Remove.
3778         * gimple-fold.c (fold_stmt_1): Move all call related code to ...
3779         (gimple_fold_call): ... here.  Make static.  Update the
3780         cannot-inline flag on direct calls.
3781         * ipa-inline.c (early_inliner): Copy the cannot-inline flag
3782         from the statements to the edges.
3783
3784 2011-11-01  Ian Lance Taylor  <iant@google.com>
3785
3786         * godump.c (struct macro_hash_value): Define.
3787         (macro_hash_hashval): New static function.
3788         (macro_hash_eq, macro_hash_del): New static functions.
3789         (go_define): Use macro_hash_value to store values in macro_hash.
3790         Replace an old value on a redefinition.  Don't print anything to
3791         go_dump_file.
3792         (go_undef): Delete the entry from the hash table.
3793         (go_output_typedef): For an enum, use macro_hash_value, and don't
3794         print anything to go_dump_file.
3795         (go_print_macro): New static function.
3796         (go_finish): Traverse macro_hash with go_print_macro.
3797         (dump_go_spec_init): Update macro_hash creation for macro_hash_value.
3798
3799 2011-11-02  Alan Modra  <amodra@gmail.com>
3800
3801         * config/rs6000/rs6000.c (rs6000_code_end): Declare ATTRIBUTE_UNUSED.
3802
3803 2011-11-01  Paolo Carlini  <paolo.carlini@oracle.com>
3804
3805         PR c++/44277
3806         * doc/invoke.texi: Document -Wzero-as-null-pointer-constant.
3807
3808 2011-11-01  Andrew Stubbs  <ams@codesourcery.com>
3809
3810         * config/arm/bpabi.h (BE8_LINK_SPEC): Recognize generic-armv7 tuning.
3811
3812 2011-11-01  Uros Bizjak  <ubizjak@gmail.com>
3813
3814         * config/i386/i386.md (splitters for int-float conversion): Use
3815         SUBREG_REG on SUBREGs in splitter constraints.
3816
3817 2011-11-01  Jakub Jelinek  <jakub@redhat.com>
3818
3819         * config/i386/i386-protos.h (ix86_expand_adjust_ufix_to_sfix_si): New
3820         prototype.
3821         * config/i386/i386.c (ix86_expand_adjust_ufix_to_sfix_si): New
3822         function.
3823         * config/i386/sse.md (fixuns_trunc<mode><sseintvecmodelower>2): Use it.
3824         (ssepackfltmode): New mode attr.
3825         (vec_pack_ufix_trunc_<mode>): New expander.
3826
3827 2011-11-01  Uros Bizjak  <ubizjak@gmail.com>
3828
3829         PR target/50940
3830         * config/i386/i386.md (floatsi<mode>2_vector_sse_with_temp splitter):
3831         Compare <ssevecmode>mode to V4SFmode, not V4SImode.
3832
3833 2011-11-01  Peter Bergner  <bergner@vnet.ibm.com>
3834
3835         * config.gcc (powerpc*-*-linux*): Add powerpc*-*-linux*ppc476* variant.
3836         * config/rs6000/476.h: New file.
3837         * config/rs6000/476.opt: Likewise.
3838         * config/rs6000/rs6000.h (TARGET_LINK_STACK): New define.
3839         (SET_TARGET_LINK_STACK): Likewise.
3840         (TARGET_ASM_CODE_END): Define.
3841         * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
3842         TARGET_LINK_STACK for -mtune=476 and -mtune=476fp.
3843         (rs6000_legitimize_tls_address): Emit the link stack preserving GOT
3844         code if TARGET_LINK_STACK.
3845         (rs6000_emit_load_toc_table): Likewise.
3846         (output_function_profiler): Likewise
3847         (macho_branch_islands): Likewise
3848         (machopic_output_stub): Likewise
3849         (get_ppc476_thunk_name): New function.
3850         (rs6000_code_end): Likewise.
3851         * config/rs6000/rs6000.md (load_toc_v4_PIC_1, load_toc_v4_PIC_1b):
3852         Convert to a define_expand.
3853         (load_toc_v4_PIC_1_normal): New define_insn.
3854         (load_toc_v4_PIC_1_476): Likewise.
3855         (load_toc_v4_PIC_1b_normal): Likewise.
3856         (load_toc_v4_PIC_1b_476): Likewise.
3857
3858 2011-11-01  Georg-Johann Lay  <avr@gjlay.de>
3859
3860         PR target/50910
3861         * config/avr/avr.opt (-mbranch-cost=): New option.
3862         * config/avr/avr.h (BRANCH_COST): Define to avr_branch_cost.
3863         * config/avr/avr.c (avr_rtx_costs_1): Adjust [U]DIV/[U]MOD costs.
3864         * config/avr/avr.md (*addqi3.lt0, *addhi3.lt0, *addsi3.lt0): New insns.
3865         (*addhi3_zero_extend1): Remove % in constraint of operand 1.
3866         (*addhi3.sign_extend1, *subhi3.sign_extend2): New insns.
3867
3868 2011-11-01  Tom de Vries  <tom@codesourcery.com>
3869
3870         PR tree-optimization/50908
3871         * tree-ssa-tail-merge.c (update_vuses): Now that edges are removed
3872         before update_vuses, test for 1 predecessor rather than two.
3873         (delete_block_update_dominator_info): New function, part of it factored
3874         out of ...
3875         (replace_block_by): Use delete_block_update_dominator_info.  Call
3876         update_vuses after deleting bb1 and updating dominator info, instead of
3877         before.
3878
3879 2011-11-01  David S. Miller  <davem@davemloft.net>
3880
3881         * config/sparc/sparc.c (vector_init_faligndata): New function.
3882         (sparc_expand_vector_init): Use it for V4HImode on VIS1.
3883
3884         * config/sparc/sparc.c (sparc_expand_vcond): New function.
3885         * config/sparc/sparc-protos.h (sparc_expand_vcond): Declare it.
3886         * config/sparc/sparc.md (vcond<mode><mode>): New VIS3 expander.
3887         (vconduv8qiv8qi): Likewise.
3888
3889 2011-11-01  Alexandre Oliva  <aoliva@redhat.com>
3890
3891         PR debug/50869
3892         * cselib.c (cfa_base_preserved_regno): Initialize.
3893         (cselib_expand_value_rtx_1): Don't expand it.
3894         * var-tracking.c (vt_expand_var_loc_chain): Initialize depth.
3895         Check it's only zero if result is NULL.
3896
3897 2011-11-01  Jakub Jelinek  <jakub@redhat.com>
3898
3899         * config/i386/sse.md (fixuns_trunc<mode><sseintvecmodelower>2): New
3900         expander.
3901
3902         * config/i386/sse.md (sseintvecmode): Remove duplicate modes.
3903         (sseintvecmodelower): New mode iterator.
3904         (floatv8siv8sf2, floatunsv4siv4sf2): Macroize into...
3905         (float<sseintvecmodelower><mode>2): ... this using VF1 iterator.
3906         (floatunsv4siv4sf2): Macroize into...
3907         (floatuns<sseintvecmodelower><mode>2): ... this using VF1 iterator.
3908
3909 2011-10-31  David S. Miller  <davem@davemloft.net>
3910
3911         * config/sparc/sparc.md (cmask patterns): Allow zero operand.
3912
3913         * dwarf2out.c (cached_next_real_insn): New.
3914         (dwarf2out_end_epilogue): Set it to NULL_RTX.
3915         (dwarf2out_var_location): Remove cached_next_real_insn local static.
3916
3917 2011-10-31  Richard Henderson  <rth@redhat.com>
3918
3919         * config/i386/sse.md (floatv8siv8sf2): Rename from avx_cvtdq2ps256.
3920         (floatv4siv4sf2): Rename from sse2_cvtdq2ps.
3921         (floatunsv4siv4sf2): Rename from sse2_cvtudq2ps.
3922         (fix_truncv8sfv8si2): Rename from avx_cvttps2dq256.
3923         (fix_truncv4sfv4si2): Rename from sse2_cvttps2dq.
3924         (floatv4siv4df2): Rename from avx_cvtdq2pd256.
3925         (fix_truncv4dfv4si2): Rename from avx_cvttpd2dq256.
3926         (vec_unpacku_float_hi_v8si): Update for insn pattern name changes.
3927         * config/i386/i386.md (splitters for int-float conversion): Likewise.
3928         * config/i386/i386.c (ix86_split_convert_uns_si_sse): Likewise.
3929         (bdesc_args): Likewise.
3930         (enum ix86_builtins) [IX86_BUILTIN_CVTUDQ2PS]: Remove.
3931         (ix86_vectorize_builtin_conversion): Remove.
3932         (TARGET_VECTORIZE_BUILTIN_CONVERSION): Remove.
3933
3934 2011-10-31  Martin Jambor  <mjambor@suse.cz>
3935
3936         * ipa-prop.c (mark_modified): Moved up in the file.
3937         (is_parm_modified_before_call): Renamed to
3938         is_parm_modified_before_stmt, moved up in the file.
3939         (load_from_unmodified_param): New function.
3940         (compute_complex_assign_jump_func): Also attempt to create pass
3941         through jump functions for values loaded from (addressable)
3942         parameters.
3943
3944 2011-10-31  Jakub Jelinek  <jakub@redhat.com>
3945
3946         * tree-vect-stmts.c (vectorizable_shift): If op1 is vect_external_def
3947         in a loop and has different type from op0, cast it to op0's type
3948         before the loop first.  For slp give up.  Don't crash if op1_vectype
3949         is NULL.
3950
3951 2011-10-31  Paul Brook  <paul@codesourcery.com>
3952
3953         * cgraphunit.c: Don't mark clones as static constructors.
3954
3955 2011-10-31  David Edelsohn  <dje.gcc@gmail.com>
3956
3957         * gcc-ar: Do not include stdio.h.
3958
3959 2011-10-31  Diego Novillo  <dnovillo@google.com>
3960
3961         * tree-streamer-out.c (pack_ts_base_value_fields): Emit
3962         TYPE_ADDR_SPACE.
3963         * tree-streamer-in.c (unpack_ts_base_value_fields): Read
3964         TYPE_ADDR_SPACE.
3965
3966 2011-10-30  David S. Miller  <davem@davemloft.net>
3967
3968         * config/sparc/sparc.c (vector_init_bshuffle): New function.
3969         (vector_init_fpmerge): New function.
3970         (sparc_expand_vector_init): Use them to improve non-const cases.
3971
3972         * dwarf2out.c (dwarf2out_var_location): When processing several
3973         consecutive location notes, cache the result of next_real_insn().
3974
3975 2011-10-30  Uros Bizjak  <ubizjak@gmail.com>
3976
3977         * config/i386/i386.md (avx2_vec_dup<mode>): Macroize insn from
3978         avx2_vec_dup{v8sf,v4sf} using VF1 mode iterator.
3979         (vec_dupv4sf): Remove expander.
3980         (vec_dupv4sf): Merge from *vec_dupv4sf and *vec_dupv4sf_avx.
3981         (vec_dupv2df): Remove expander.
3982         (vec_dupv2df): Merge from *vec_dupv2df and *vec_dupv2df_sse3.
3983         (*vec_concatv2df): Merge *vec_concatv2df_sse3.
3984         (*vec_dupv4si): Merge *vec_dupv4si_avx.
3985         (*vec_dupv2di): Merge *vec_dupv2di_sse3.
3986
3987 2011-10-30  Dmitry Plotnikov  <dplotnikov@ispras.ru>
3988
3989         * tree-cfg.c (verify_gimple_assign_unary): Allow vector conversions.
3990         * optabs.c (supportable_convert_operation): New function.
3991         * optabs.h (supportable_convert_operation): New prototype.
3992         * tree-vect-stmts.c (vectorizable_conversion): Change condition and
3993         behavior for NONE modifier case.
3994         * tree.h (VECTOR_INTEGER_TYPE_P): New macro.
3995
3996 2011-10-30  Jakub Jelinek  <jakub@redhat.com>
3997
3998         * tree-vectorizer.h (NUM_PATTERNS): Bump to 9.
3999         * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): New
4000         function.
4001         (vect_vect_recog_func_ptrs): Add it.
4002
4003 2011-10-30  David S. Miller  <davem@davemloft.net>
4004
4005         * reorg.c (label_before_next_insn): New function.
4006         (relax_delay_slots): Use it instead of prev_label.
4007         * rtl.h (prev_label): Delete declaration.
4008         * emit-rtl.c (prev_label): Remove.
4009
4010 2011-10-30  Revital Eres  <revital.eres@linaro.org>
4011
4012         * modulo-sched.c (generate_prolog_epilog): Mark prolog and epilog
4013         as BB_DISABLE_SCHEDULE.
4014         (mark_loop_unsched): New function.
4015         (sms_schedule): Call it.
4016
4017 2011-10-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4018
4019         PR target/50617
4020         * config/pa/protos.h (attr_length_save_restore_dltp): Delete.
4021         (cmpib_comparison_operator): Likewise.
4022         (following_cal, output_and, output_ior, output_move_double,
4023         output_fp_move_double, output_block_move, output_block_clear,
4024         output_cbranch, output_lbranch, output_bb, output_bvb, output_dbra,
4025         output_movb, output_parallel_movb, output_parallel_addb, output_call,
4026         output_indirect_call, output_millicode_call, output_mul_insn,
4027         output_div_insn, output_mod_insn, singlemove_string,
4028         output_arg_descriptor, output_global_address, print_operand,
4029         legitimize_pic_address, hppa_encode_label, symbolic_expression_p,
4030         fmpyaddoperands, fmpysuboperands, emit_bcond_fp, emit_move_sequence,
4031         emit_hpdiv_const, is_function_label_plus_const, jump_in_call_delay,
4032         hppa_fpstore_bypass_p, attr_length_millicode_call, attr_length_call,
4033         attr_length_indirect_call, return_addr_rtx, function_arg_padding,
4034         insn_refs_are_delayed, get_deferred_plabel, ldil_cint_p, zdepi_cint_p,
4035         output_ascii, compute_frame_size, and_mask_p, cint_ok_for_move,
4036         hppa_expand_prologue, hppa_expand_epilogue, ior_mask_p,
4037         compute_zdepdi_operands, output_64bit_and, output_64bit_ior,
4038         reloc_needed, magic_milli, shadd_constant_p): Consistently prefix
4039         exported functions and variables with "pa_".
4040         * config/pa/predicates.md: Likewise.
4041         * config/pa/pa64-hpux.h: likewise.
4042         * config/pa/som.h: Likewise.
4043         * config/pa/elf.h: Likewise.
4044         * config/pa/pa64-linux.h: Likewise.
4045         * config/pa/pa.md: Likewise.
4046         * config/pa/pa.c: Likewise.
4047         * config/pa/pa-linux.h: Likewise.
4048         * config/pa/pa.h: Likewise.
4049         * config/pa/constraints.md: Likewise.
4050
4051 2011-10-29  Uros Bizjak  <ubizjak@gmail.com>
4052
4053         * config/i386/i386.md (xop_sha<mode>3): Rename from xop_ashl<mode>3.
4054         Update all uses.
4055         (xop_shl<mode>3): Rename from xop_lshl<mode>3.  Update all uses.
4056         * config/i386/i386.c: Update all uses.
4057
4058 2011-10-29  Uros Bizjak  <ubizjak@gmail.com>
4059
4060         * config/i386/i386.md (lshlv16qi3): Remove expander.
4061         (lshrv16qi3): New expander.
4062         (<shift_insn>v16qi3): Macroize expander from ashrv16qi3 and lshrv16qi3
4063         using any_shiftrt code iterator. Cleanup.
4064         (ashlv16qi3): Cleanup.
4065         (ashrv2di3): Ditto.
4066
4067 2011-10-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4068
4069         PR target/50691
4070         * config/pa/pa.c (emit_move_sequence): Legitimize TLS symbol
4071         references.
4072         (pa_legitimate_constant_p): Return false for TLS_MODEL_GLOBAL_DYNAMIC
4073         and TLS_MODEL_LOCAL_DYNAMIC symbol references.
4074
4075 2011-10-29  Georg-Johann Lay  <avr@gjlay.de>
4076
4077         PR target/50887
4078         * config/avr/avr.opt (-maccumulate-args): New option.
4079         * config/avr/avr.h (STARTING_FRAME_OFFSET): Redefine to
4080         avr_starting_frame_offset.
4081         (ACCUMULATE_OUTGOING_ARGS): Define to avr_accumulate_outgoing_args.
4082         * config/avr/avr.md (UNSPECV_WRITE_SP_IRQ_ON): Remove.
4083         (UNSPECV_WRITE_SP_IRQ_OFF): Remove.
4084         (UNSPECV_WRITE_SP): New constant.
4085         (*addhi3_sp_R): Rewrite to...
4086         (*addhi3_sp): ...this new insn.
4087         (movhi_sp_r_irq_off, movhi_sp_r_irq_on): Combine to...
4088         (movhi_sp_r): ...this new insn.
4089         * config/avr/avr-protos.h (avr_accumulate_outgoing_args): New.
4090         (avr_starting_frame_offset): New.
4091         * config/avr/avr.c (avr_accumulate_outgoing_args): New function.
4092         (avr_starting_frame_offset): New function.
4093         (avr_outgoing_args_size): New static function.
4094         (avr_initial_elimination_offset): Use it.
4095         (avr_simple_epilogue): Use it.
4096         (avr_asm_function_end_prologue): Use it.
4097         (expand_epilogue): Use it.
4098         (expand_prologue): Use it.  Break out code to...
4099         (avr_prologue_setup_frame): ...this new static function.
4100         (avr_can_eliminate): Allow eliminating to frame pointer if there
4101         is one.
4102         (avr_frame_pointer_required_p): Use frame pointer if target has a
4103         nonlocal label.
4104         * config/avr/constraints.md (R): Remove.
4105         (Csp): New constraint.
4106         * config/avr/predicates.md (avr_sp_immediate_operand): Use it.
4107
4108 2011-10-29  Andi Kleen  <ak@linux.intel.com>
4109
4110         * gcc-ar.c (target_machine): Add.
4111
4112 2011-10-29  Anatoly Sokolov  <aesok@post.ru>
4113
4114         * config/cris/cris.c (reg_ok_for_base_p, reg_ok_for_index_p,
4115         cris_constant_index_p, cris_base_p, cris_index_p,
4116         cris_base_or_autoincr_p, cris_bdap_index_p, cris_biap_index_p,
4117         cris_legitimate_address_p): New functions.
4118         (TARGET_LEGITIMATE_ADDRESS_P): Define.
4119         (cris_pic_symbol_type, cris_valid_pic_const): Change arguments type
4120         from rtx to const_rtx.
4121         (cris_print_operand_address, cris_address_cost,
4122         cris_side_effect_mode_ok):  Use
4123         cris_constant_index_p, cris_base_p, cris_base_or_autoincr_p,
4124         cris_biap_index_p and cris_bdap_index_p.
4125         * config/cris/cris.h (CONSTANT_INDEX_P, BASE_P, BASE_OR_AUTOINCR_P,
4126         BDAP_INDEX_P, BIAP_INDEX_P, GO_IF_LEGITIMATE_ADDRESS,
4127         REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P): Remove.
4128         (EXTRA_CONSTRAINT_Q, EXTRA_CONSTRAINT_R, EXTRA_CONSTRAINT_T): Use
4129         cris_constant_index_p, cris_base_p, cris_base_or_autoincr_p,
4130         cris_biap_index_p and cris_bdap_index_p.
4131         * config/cris/cris.md (moversideqi movemsideqi peephole2): Use
4132         cris_base_p.
4133         * config/cris/cris-protos.h (cris_constant_index_p, cris_base_p,
4134         cris_base_or_autoincr_p, cris_bdap_index_p, cris_biap_index_p): New
4135         prototype.
4136         (cris_pic_symbol_type, cris_valid_pic_const): Update prototype.
4137
4138 2011-10-21  Andi Kleen  <ak@linux.intel.com>
4139
4140         * ggc-page (PAGE_ALIGN): Add.
4141         (alloc_page, ggc_pch_total_size, ggc_pch_this_base, ggc_pch_read):
4142         Replace ROUND_UP with PAGE_ALIGN.
4143
4144 2011-10-20  Andi Kleen  <ak@linux.intel.com>
4145
4146         * ggc-page (alloc_anon): Add check argument.
4147         (alloc_page): Add fallback to 1 page allocation.
4148         Adjust alloc_anon calls to new argument.
4149
4150 2011-10-18  Andi Kleen  <ak@linux.intel.com>
4151
4152         * ggc-page (release_pages): First free large continuous
4153         chunks in the madvise path.
4154
4155 2011-10-18  Andi Kleen  <ak@linux.intel.com>
4156
4157         * ggc-page.c (alloc_pages): Always round up entry_size.
4158
4159 2011-10-19  Andi Kleen  <ak@linux.intel.com>
4160
4161         * Makefile.in (MOSTLYCLEANFILES): Add gcc-ar/nm/ranlib.
4162         (native): Add gcc-ar, gcc-nm, gcc-ranlib.
4163         (AR_LIBS, gcc-ar, gcc-ar.o, gcc-ranlib, gcc-ranlib.o,
4164         gcc-nm, gcc-nm.o, gcc-ranlib.c, gcc-nm.c): Add.
4165         (install): Depend on install-gcc-ar.
4166         (install-gcc-ar): Add.
4167         (uninstall): Uninstall gcc-ar, gcc-nm, gcc-ranlib.
4168         * gcc-ar.c: Add new file.
4169
4170 2011-10-28  Pat Haugen <pthaugen@us.ibm.com>
4171
4172         * config/rs6000/rs6000.md (define_attr "type"): Add vecdouble.
4173         * config/rs6000/vsx.md (VStype_simple, VStype_mul): Use vecdouble
4174         type for V2DF.
4175         (VStype_div): Use vector types for V2DF/V4SF.
4176         (VStype_sqrt): Use *sqrt types.
4177         (VS_spdp_type): Change type to vecdouble.
4178         (*vsx_fmav2df4, *vsx_nfmsv2df4, vsx_xvcvdpsxws, vsx_xvcvdpuxws,
4179         vsx_xvcvuxdsp, vsx_xvcvsxwdp, vsx_xvcvuxwdp, vsx_xvcvspsxds,
4180         vsx_xvcvspuxds): Likewise.
4181         (*vsx_fms<mode>4): Set type via <VStype_mul>.
4182         (*vsx_eq_<mode>_p, *vsx_gt_<mode>_p, *vsx_ge_<mode>_p): Set type via
4183         <VStype_simple>.
4184         * config/rs6000/power7.md (power7-vecstore): Correct VSU pipe.
4185         (power7-fpcompare, power7-sdiv, power7-ddiv, power7-sqrt,
4186         power7-dsqrt): Correct insn latency.
4187         (power7-vecsimple): Add veccmp type and correct dispatch/VSU values.
4188         (power7-veccmp): Delete.
4189         (power7-vecfloat): Correct latency/dispatch/VSU values.
4190         (define_bypass "power7-vecfloat"): Correct latency and types.
4191         (power7-veccomplex, power7-vecperm): Correct dispatch/VSU values.
4192         (power7-vecdouble, power7-vecfdiv, power7-vecdiv): New.
4193
4194 2011-10-28  Uros Bizjak  <ubizjak@gmail.com>
4195
4196         * config/i386/i386.md (shift_insn): Rename code attribute from
4197         shiftrt_insn.  Also handle ashift RTX.
4198         (shift): Rename code attribute from shiftrt.  Also handle ashift RTX.
4199         (vshift): New code attribute.
4200         (<shift_insn>*): Rename from <shiftrt_insn>*. Update asm templates.
4201         (any_lshift): Move and rename code iterator from ...
4202         * config/i386/sse.md (lshift): ... here.
4203         (lshift_insn): Remove code attribute.
4204         (lshift): Remove code attribute.
4205         (vlshr<mode>3): Use lshiftrt RTX.
4206         (vashr<mode>3, ashrv16qi3, ashrv2di3): Use ashiftrt RTX.
4207         (vashl<mode>3, ashlv16qi3): Use ashift RTX.
4208         (avx2_<lshift>v<mode>): Rename from avx2_<shift_insn>v<mode>.  Use
4209         any_lshift code iterator.  Update asm template.
4210         (<shift_insn><mode>3): Macroize insn from lshr<mode>3 and ashl<mode>3
4211         usign any_lshift code iterator.
4212         * config/i386/mmx.md (mmx_<shift_insn><mode>3): Macroize insn from
4213         mmx_lshr<mode>3 and mmx_ashl<mode>3 usign any_lshift code iterator.
4214         * config/i386/i386.c (bdesc_args) <__builtin_ia32_psll>: Update.
4215
4216 2011-10-28  Georg-Johann Lay  <avr@gjlay.de>
4217
4218         PR target/49313
4219         * config/avr/avr.md (parityhi2): Expand allowing pseudos.
4220         (*parityhi2): New pre-reload insn-and-split to map 16-bit parity
4221         to the libgcc insn.
4222         (*parityqihi2): Same for 8-bit parity.
4223
4224 2011-10-28  Julian Brown  <julian@codesourcery.com>
4225
4226         PR rtl-optimization/47918
4227         * reload1.c (set_initial_label_offsets): Use initial offsets
4228         for labels on the nonlocal_goto_handler_labels chain.
4229
4230 2011-10-28  Iain Sandoe  <iains@gcc.gnu.org>
4231
4232         * config/rs6000/t-darwin (LIB2FUNCS_STATIC_EXTRA):
4233         Move darwin-fpsave.asm from here to ... LIB2FUNCS_EXTRA.
4234         (LIB2FUNCS_EXTRA):  Add darwin-gpsave.asm.
4235         (TARGET_LIBGCC2_CFLAGS): Ensure that fPIC and -pipe are inherited from
4236         config/t-darwin.
4237         * config/rs6000/darwin.h (FP_SAVE_INLINE): Adjust to enable.
4238         (GP_SAVE_INLINE): Likewise.
4239         (SAVE_FP_PREFIX,  SAVE_FP_SUFFIX, RESTORE_FP_PREFIX,
4240         RESTORE_FP_SUFFIX): Set to empty strings.
4241         * config/rs6000/rs6000.c (rs6000_savres_strategy): Implement for Darwin.
4242         (debug_stack_info): Print savres_strategy.
4243         (rs6000_savres_routine_name): Implement for Darwin.
4244         (rs6000_make_savres_rtx): Adjust used register for Darwin.
4245         (rs6000_emit_prologue): Implement out-of-line saves for Darwin.
4246         (rs6000_output_function_prologue): Don't emit .extern for Mach-O.
4247         (rs6000_emit_epilogue): Implement out-of-line saves for Darwin.
4248         * config/rs6000/darwin-gpsave.asm: New file.
4249
4250 2011-10-28  Jakub Jelinek  <jakub@redhat.com>
4251
4252         * config/i386/sse.md (VI4SD_AVX2): Removed.
4253         (VI48_AVX2, VI128_128, VI48_128, VI48_256): New mode iterators.
4254         (vashl<mode>3): Use VI12_128 iterator instead of VI124_128.
4255         Add another expander using VI48_128 iterator for
4256         TARGET_AVX2 || TARGET_XOP and another using VI48_256 iterator
4257         for TARGET_AVX2.
4258         (vlshr<mode>3): Likewise.  Change register_operand predicate to
4259         nonimmediate_operand on last operand in the VI12_128 expander.
4260         (vashr<mode>3): Use VI128_128 iterator instead of VI124_128.
4261         (vashrv4si3, vashrv8si3): New expanders.
4262         (avx2_ashrvv8si, avx2_ashrvv4si, avx2_<lshift>vv8si,
4263         avx2_<lshift>vv2di): Removed.
4264         (avx2_ashrv<mode>): New insn with VI4_AVX2 iterator.
4265         (avx2_<lshift>v<mode>): Macroize using VI48_AVX2
4266         iterator.  Simplify pattern.
4267
4268 2010-10-28  Richard Guenther  <rguenther@suse.de>
4269
4270         PR driver/50876
4271         * lto-wrapper.c (get_options_from_collect_gcc_options):
4272         Properly count arguments.
4273         (run_gcc): Use an obstack to collect argv, properly separate
4274         switches and their arguments.
4275
4276 2011-10-28  Jakub Jelinek  <jakub@redhat.com>
4277
4278         * tree-vect-stmts.c (vectorizable_shift): Give up if op1 has different
4279         vector mode from vectype's mode.
4280
4281 2011-10-28  Chung-Lin Tang  <cltang@codesourcery.com>
4282
4283         PR rtl-optimization/49720
4284         * simplify-rtx.c (simplify_relational_operation_1): Detect
4285         infinite recursion condition in "(eq/ne (plus x cst1) cst2)
4286         simplifies to (eq/ne x (cst2 - cst1))" case.
4287
4288 2011-10-27  David S. Miller  <davem@davemloft.net>
4289
4290         * config/sparc/sparc.md (snedi_special): Only match when not VIS3.
4291         (*snedi_zero): Likewise.
4292         (*snedi_zero_trunc): Likewise.
4293         (snedi_special_vis3): New expander.
4294         (*snedi_zero_vis3): New insn.
4295         (*snedi_zero_trunc_vis3): Likewise.
4296         (*sltu_insn_vis3): Likewise.
4297         (*sltu_insn_vis3_trunc): Likewise.
4298         (addxc): Likewise.
4299         (*addxc_trunc_sp64_vis3): Likewise.
4300         * config/sparc/sparc.c (emit_scc_insn): When VIS3 use the
4301         gen_snedi_special_vis3 expander, and try GTU/LTU addx based
4302         sequences on DImode values.
4303
4304         * config/sparc/sparc.md (64-bit vector moves): Use 'e' not 'f'
4305         constraint.
4306
4307         * regcprop.c (copyprop_hardreg_forward_1): Reject the
4308         transformation when we narrow the mode on big endian.
4309
4310 2011-10-27  Jakub Jelinek  <jakub@redhat.com>
4311
4312         * config/i386/sse.md (avx_cvtpd2dq256_2, avx_cvttpd2dq256_2,
4313         vec_pack_sfix_trunc_v4df, vec_pack_sfix_v4df): New expanders.
4314         (*avx_cvtpd2dq256_2, *avx_cvttpd2dq256_2): New insns.
4315
4316         * config/i386/i386.c (ix86_print_operand): Handle 'q' and 'x'
4317         overrides for -masm=intel memory.
4318         * config/i386/sse.md (sse2_cvtdq2pd, sse2_cvtps2pd,
4319         sse4_1_<code>v8qiv8hi2, avx2_<code>v8qiv8si2,
4320         sse4_1_<code>v4hiv4si2, avx2_<code>v4hiv4di2,
4321         sse4_1_<code>v2siv2di2): Use %q1 instead of %1 for -masm=intel.
4322         (sse4_1_<code>v4qiv4si2, avx2_<code>v4qiv4di2,
4323         sse4_1_<code>v2hiv2di2): Use %k1 instead of %1 for -masm=intel.
4324         (sse4_1_<code>v2qiv2di2): Use %w1 instead of %1 for -masm=intel.
4325
4326 2011-10-27  Martin Jambor  <mjambor@suse.cz>
4327
4328         * ipa-prop.c (compute_pass_through_member_ptrs): Rename parm_info
4329         to parm_ainfo.
4330         (ipa_compute_jump_functions_for_edge): Likewise.
4331         (ipa_compute_jump_functions): Likewise.
4332         (ipa_analyze_indirect_call_uses): Likewise.
4333         (ipa_analyze_call_uses): Likewise.
4334         (ipa_analyze_params_uses): Likewise.
4335         (ipa_analyze_node): Likewise.
4336
4337 2011-10-27  Uros Bizjak  <ubizjak@gmail.com>
4338
4339         PR target/50875
4340         * config/i386/sse.md (*avx_unpcklpd256): Remove extra insn
4341         constraints.  Change alternative 1 to "x,m,1".
4342
4343 2011-10-27  Jakub Jelinek  <jakub@redhat.com>
4344
4345         * Makefile.in (build/gencheck.o): Depend on tree.def and
4346         c-family/c-common.def.
4347
4348         * tree-ssa-strlen.c: Include expr.h.
4349         (get_stridx): Don't use c_strlen, instead use string_constant
4350         and compute string length from it.
4351         * Makefile.in (tree-ssa-strlen.o): Depend on $(EXPR_H).
4352
4353 2011-10-27  Eric Botcazou  <ebotcazou@adacore.com>
4354
4355         PR rtl-optimization/46603
4356         PR bootstrap/50879
4357         * reload.c (push_reload): In the out case, restore previous behavior
4358         for subregs that don't have word mode.
4359
4360 2011-10-27  Ian Lance Taylor  <iant@google.com>
4361
4362         * cppdefault.c: Undef NATIVE_SYSTEM_HEADER_DIR if
4363         CROSS_DIRECTORY_STRUCTURE is defined and TARGET_SYSTEM_ROOT is not.
4364         (cpp_include_defaults): Only use NATIVE_SYSTEM_HEADER_DIR if it is
4365         defined.
4366
4367 2011-10-27  Richard Henderson  <rth@redhat.com>
4368
4369         * optabs.c (expand_vec_perm): Use the correct mode for scaling the
4370         selector.  Save the qimode constant selector for later use by the
4371         qimode vec_perm pattern.
4372
4373 2011-10-27  Bernd Schmidt  <bernds@codesourcery.com>
4374
4375         * config/c6x/c6x.c (unit_req_imbalance, res_mii): Cast the first arg
4376         to unit_req_factor to the right enum type.
4377         (get_unit_operand_masks, reshuffle_units, try_rename_operands,
4378         hwloop_optimize): Remove unused variables.
4379
4380 2010-10-27  Richard Guenther  <rguenther@suse.de>
4381
4382         PR middle-end/50731
4383         * tree-vect-generic.c (do_binop): Handle scalar operands.
4384
4385 2011-08-27  Uros Bizjak  <ubizjak@gmail.com>
4386
4387         PR target/37191
4388         * config/i386/sse.md (*vec_extract_v4sf_mem): Avoid combining registers
4389         from different units in a single alternative.
4390
4391 2011-10-26  David S. Miller  <davem@davemloft.net>
4392
4393         * config/sparc/sparc.c (emit_scc_insn): Force attempt of v9 sequences
4394         if we're comparing DImode and comparison is other than EQ or NE.
4395
4396         * config/sparc/sparc.c (emit_scc_insn): Do not try v9 sequences until
4397         LEU/LTU/GEU/GTU is attempted.
4398         * config/sparc/sparc.md (*neg_snesi_sign_extend): New 64-bit insn
4399         and split.
4400         (*neg_seqsi_sign_extend): Likewise.
4401         (*sltu_extend_sp64, *neg_sltu_extend_sp64, *sgeu_extend_sp64,
4402         *neg_sgeu_extend_sp64): New insns.
4403
4404         * config/sparc/sparc-protos.h (sparc_expand_conditional_move): Declare.
4405         * config/sparc/sparc.md (mov<I:mode>cc, mov<F:mode>cc): Call it.
4406         (*mov<I:mode>_cc_v9): Normalize to expect operand 0 always in operand 4.
4407         (*mov<I:mode>_cc_reg_sp64): Likewise.
4408         (*movsf_cc_v9): Likewise.
4409         (*movsf_cc_reg_sp64): Likewise.
4410         (*movdf_cc_v9): Likewise.
4411         (*movdf_cc_reg_sp64): Likewise.
4412         (*movtf_cc_hq_v9): Likewise.
4413         (*movtf_cc_reg_hq_sp64): Likewise.
4414         (*movtf_cc_v9): Likewise.
4415         (*movtf_cc_reg_sp64): Likewise.
4416         * config/sparc/sparc.c (sparc_expand_conditional_move): New function.
4417         (sparc_print_operand): Delete 'c' and 'd' handling, no longer used.
4418
4419 2011-10-26  Eric Botcazou  <ebotcazou@adacore.com>
4420
4421         * reload.c (reload_inner_reg_of_subreg): Change type of return value
4422         and type of OUTPUT parameter to bool and adjust.  Document MODE and
4423         OUTPUT parameters.  Use HARD_REGISTER_P.  Reorder final condition
4424         and improve associated comment.
4425         (push_reload): Clarify and update comments about reloading of subregs.
4426         Adjust calls to reload_inner_reg_of_subreg.  Compute the class upfront
4427         for the reloading of subregs in the out case as well.
4428
4429 2011-10-26  Alexandre Oliva  <aoliva@redhat.com>
4430
4431         PR debug/50826
4432         * var-tracking.c (rtx_debug_expr_p): New.
4433         (use_type): Don't use debug exprs to track non-VTA variables.
4434
4435 2011-10-26  Jeff Law  <law@redhat.com>
4436
4437         * doc/invoke.texi (sink-frequency-threshold): Document.
4438         * tree-ssa-sink.c: Include params.h.
4439         (select_best_block): New function.
4440         (statement_sink_location): Use it.
4441         * params.def (SINK_FREQUENCY_THRESHOLD): New PARAM.
4442
4443 2011-10-26  Iain Sandoe  <iains@gcc.gnu.org>
4444
4445         PR target/48108
4446         * config/darwin.c (top level): Amend comments concerning LTO output.
4447         (lto_section_num): New variable.  (darwin_lto_section_e): New GTY.
4448         (LTO_SECTS_SECTION, LTO_INDEX_SECTION): New.
4449         (LTO_NAMES_SECTION): Rename.
4450         (darwin_asm_named_section): Record LTO section counts and switches
4451         in a vec of darwin_lto_section_e.
4452         (darwin_file_start): Remove unused code.
4453         (darwin_file_end): Put an LTO section termination label.  Handle
4454         output of the wrapped LTO sections, index and names table.
4455
4456 2011-10-26  Alan Modra  <amodra@gmail.com>
4457
4458         * config/rs6000/rs6000.c (rs6000_make_savres_rtx): Delete unneeded
4459         declaration.
4460         (rs6000_emit_stack_reset): Only return insn emitted when it adjusts sp.
4461         (rs6000_make_savres_rtx): Rename to rs6000_emit_savres_rtx.  Use
4462         simple_return in pattern, emit instruction, and set jump_label.
4463         (rs6000_emit_prologue): Update for rs6000_emit_savres_rtx.  Use
4464         simple_return rather than return.
4465         (emit_cfa_restores): New function.
4466         (rs6000_emit_epilogue): Emit cfa_restores when flag_shrink_wrap.
4467         Add missing cfa_restores for SAVE_WORLD.  Add missing LR cfa_restore
4468         when using out-of-line gpr restore.  Add missing LR and FP regs
4469         cfa_restores for out-of-line fpr restore.  Consolidate code setting
4470         up cfa_restores.  Formatting.  Use LR_REGNO define.
4471         (rs6000_output_mi_thunk): Use simple_return rather than return.
4472         * config/rs6000/rs6000.md (sibcall*, sibcall_value*): Likewise.
4473         (return_internal*): Likewise.
4474         (any_return, return_pred, return_str): New iterators.
4475         (return, conditional return insns): Provide both return and
4476         simple_return variants.
4477         * config/rs6000/rs6000.h (EARLY_R12, LATE_R12): Define.
4478         (REG_ALLOC_ORDER): Move r12 before call-saved regs when FIXED_R13.
4479         Move r11 and r0 later to suit shrink-wrapping.
4480
4481 2011-10-26  Richard Guenther  <rguenther@suse.de>
4482
4483         * lto-wrapper.c (run_gcc): Properly init/free obstack.
4484
4485 2011-10-26  Jakub Jelinek  <jakub@redhat.com>
4486
4487         * config/i386/i386.md (UNSPEC_VSIBADDR): New.
4488         * config/i386/predicates.md (vsib_address_operand,
4489         vsib_mem_operator): New predicates.
4490         * config/i386/i386.c (ix86_print_operand_address): Handle
4491         UNSPEC_VSIBADDR addresses.
4492         * config/i386/sse.md (avx2_gathersi<mode>, avx2_gatherdi<mode>,
4493         avx2_gatherdi<mode>256): Adjust expanders to use MEM with
4494         UNSPEC_VSIBADDR address.
4495         (*avx2_gathersi<mode>, *avx2_gatherdi<mode>, *avx2_gatherdi<mode>256):
4496         Adjust insns to use MEM with UNSPEC_VSIBADDR address.
4497
4498 2011-10-26  Tom de Vries  <tom@codesourcery.com>
4499
4500         PR tree-optimization/50763
4501         * tree-ssa-tail-merge.c (replace_block_by): Update vops if phi_vuse1 or
4502         phi_vuse2 is NULL_TREE only if bb1 dominates or is dominated by bb2.
4503
4504 2011-10-26  Richard Guenther  <rguenther@suse.de>
4505
4506         PR lto/41844
4507         * Makefile.in (lto-wrapper): Depend on and link against opts-common.o.
4508         (lto-wrapper.o): Depend on $(OPTS_H) and $(OPTIONS_H).
4509         * lto-wrapper.c (get_options_from_collect_gcc_options): New function.
4510         (run_gcc): Use it.  Filter out language specific options.
4511
4512 2011-10-26  Andreas Tobler  <andreast@fgznet.ch>
4513
4514         * config/i386/freebsd64.h (LINK_SPEC): Emit the same warning as the
4515         32-bit target does.
4516
4517 2011-10-25  Paolo Carlini  <paolo.carlini@oracle.com>
4518
4519         PR driver/46617
4520         * gcc.c (main): Fix fatal_error string for translation.
4521
4522 2011-10-25  Ian Lance Taylor  <iant@google.com>
4523
4524         * tree-eh.c (do_return_redirection): Remove return_value_p
4525         parameter.  Change all callers.
4526         (lower_try_finally_nofallthru): Remove local return_val.
4527         (lower_try_finally_onedest): Likewise.
4528         (lower_try_finally_copy): Likewise.
4529         (lower_try_finally_switch): Likewise.
4530
4531 2011-10-25  H.J. Lu  <hongjiu.lu@intel.com>
4532
4533         * config/i386/mmx.md (*mmx_maskmovq): Replace :SI with :P and
4534         remove "&& !TARGET_64BIT"
4535         (*mmx_maskmovq_rex): Removed.
4536
4537 2011-10-25  Eric Botcazou  <ebotcazou@adacore.com>
4538
4539         PR rtl-optimization/46603
4540         * reload.c (push_reload): In the out case, reload the subreg as well
4541         as the reg if it has word mode.
4542
4543 2011-10-25  Eric Botcazou  <ebotcazou@adacore.com>
4544
4545         * dwarf2out.c (add_gnat_descriptive_type_attribute): Temporarily
4546         suppress debug info for the parent type.
4547
4548 2011-10-25  Eric Botcazou  <ebotcazou@adacore.com>
4549
4550         * config/ia64/ia64.c (ia64_profile_hook): Fix thinko.
4551
4552 2011-10-25  Richard Henderson  <rth@redhat.com>
4553
4554         * config/i386/sse.md (VEC_EXTRACT_EVENODD_MODE): Remove.
4555         (vec_extract_even<mode>, vec_extract_odd<mode>): Remove.
4556
4557         * config/rs6000/altivec.md (vec_extract_evenv8hi,
4558         vec_extract_evenv16qi, vec_extract_oddv4si,
4559         vec_extract_oddv4sf): Remove.
4560
4561         * config/spu/spu.md (vec_extract_evenv4si, vec_extract_evenv4sf,
4562         vec_extract_evenv8hi, vec_extract_evenv16qi, vec_extract_oddv4si,
4563         vec_extract_oddv4sf, vec_extract_oddv8hi, vec_extract_oddv16qi,
4564         vec_interleave_highv4sf, vec_interleave_lowv4sf,
4565         vec_interleave_highv4si, vec_interleave_lowv4si,
4566         vec_interleave_highv8hi, vec_interleave_lowv8hi,
4567         vec_interleave_highv16qi, vec_interleave_lowv16qi): Remove.
4568
4569         * expr.c (expand_expr_real_2) [VEC_EXTRACT_EVEN_EXPR]: Use binop.
4570         [VEC_EXTRACT_ODD_EXPR, VEC_INTERLEAVE_HIGH_EXPR]: Likewise.
4571         [VEC_INTERLEAVE_LOW_EXPR]: Likewise.
4572         * optabs.c (expand_binop): Implement vec_interleave_high_optab,
4573         vec_interleave_low_optab, vec_extract_even_optab,
4574         vec_extract_odd_optab with expand_vec_perm.
4575         (can_vec_perm_for_code_p): New.
4576         * optabs.h: Update.
4577         * tree-vect-data-refs.c (vect_strided_store_supported): Allow for
4578         fallback via can_vec_perm_for_code_p.
4579         (vect_strided_load_supported): Likewise.
4580         * tree-vect-generic.c (expand_vector_operations_1): Never lower
4581         VEC_INTERLEAVE_HIGH_EXPR, VEC_INTERLEAVE_LOW_EXPR,
4582         VEC_EXTRACT_EVEN_EXPR, VEC_EXTRACT_ODD_EXPR.
4583
4584         * target.def (vec_perm_const_ok): Change parameters to mode and
4585         array of indicies.
4586         * doc/tm.texi: Rebuild.
4587         * config/i386/i386.c (ix86_vectorize_vec_perm_const_ok): Change
4588         parameters to mode and array of indicies.
4589         * expr.c (expand_expr_real_2) [VEC_PERM_EXPR]: Expand operands here.
4590         * optabs.c (can_vec_perm_p): Rename from can_vec_perm_expr_p.
4591         Change parameters to mode and array of indicies.
4592         (expand_vec_perm_1): Rename from expand_vec_perm_expr_1.
4593         (expand_vec_perm): Rename from expand_vec_perm_expr.  Change
4594         parameters to mode and rtx inputs.  Try lowering to QImode
4595         vec_perm_const before trying fully variable permutation.
4596         * optabs.h: Update decls.
4597         * tree-vect-generic.c (lower_vec_perm): Extract array of indices from
4598         VECTOR_CST to pass to can_vec_perm_p.
4599         * tree-vect-slp.c (vect_get_mask_element): Change mask parameter type
4600         from int pointer to unsigned char pointer.
4601         (vect_transform_slp_perm_load): Update for change to can_vec_perm_p.
4602         * tree-vect-stmts.c (perm_mask_for_reverse): Likewise.
4603
4604         * tree.def (VEC_EXTRACT_EVEN_EXPR): Fix typo in text name.
4605         (VEC_EXTRACT_ODD_EXPR, VEC_INTERLEAVE_HIGH_EXPR,
4606         VEC_INTERLEAVE_LOW_EXPR): Likewise.
4607
4608 2011-10-25  Mike Stump  <mikestump@comcast.net>
4609
4610         * reload.c (regno_clobbered_p): Fix typo.
4611
4612 2011-10-25  Dodji Seketeli  <dodji@redhat.com>
4613
4614         * input.c (expand_location): Rewrite using linemap_resolve_location
4615         and linemap_expand_location.  Add a comment.
4616
4617 2011-10-25  Jakub Jelinek  <jakub@redhat.com>
4618
4619         PR tree-optimization/50596
4620         * tree-vect-stmts.c (vect_mark_relevant): Only use
4621         FOR_EACH_IMM_USE_FAST if lhs is SSA_NAME.
4622         (vectorizable_store): If is_pattern_stmt_p look through
4623         VIEW_CONVERT_EXPR on lhs.
4624         * tree-vect-patterns.c (check_bool_pattern, adjust_bool_pattern):
4625         Use unsigned type instead of signed.
4626         (vect_recog_bool_pattern): Optimize also stores into bool memory in
4627         addition to casts from bool to integral types.
4628         (vect_mark_pattern_stmts): If pattern_stmt already has vinfo
4629         created, don't create it again.
4630
4631 2011-10-25  Kai Tietz  <ktietz@redhat.com>
4632
4633         * config/i386/i386.c (ix86_frame_pointer_required): Require
4634         frame-pointer, if setjmp is used for 32-bit ms-abi.
4635
4636 2011-10-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
4637
4638         * builtins.c (set_builtin_user_assembler_name): Remove extra
4639         newline added in October 11th, 2011 change.
4640
4641 2011-10-24  David S. Miller  <davem@davemloft.net>
4642
4643         * config/sparc/little-endian.opt: Delete.
4644         * config.gcc: Remove references to config/sparc/little-endian.opt
4645         * doc/invoke.texi: Remove documentation of -mlittl-endian on sparc.
4646         * config/sparc/linux64.h: Delete references to -mlittle-endian.
4647         * config/sparc/netbsd-elf.h: Likewise.
4648         * config/sparc/openbsd64.h: Likewise.
4649         * config/sparc/sparc.h: Likewise.
4650         * config/sparc/sp64-elf.h: Likewise and delete overrides for
4651         BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
4652         * config/sparc/sparc.c (dump_target_flag_bits): Remove reference
4653         to MASK_LITTLE_ENDIAN.
4654         * config/sparc/sparc.opt (Mask(LITTLE_ENDIAN)): Delete.
4655
4656         * config/sparc/sparc.md: Only use F, G, and C constraints in FP insns.
4657         Only use D, Y, and Z constraints in vector insns.
4658
4659         * config/sparc/sparc.md (cpu_feature, enabled): New attributes.
4660         (*movsi_insn_novis3, *movsi_insn_vis3): Consolidate into one pattern
4661         called *movsi_insn.
4662         (*movdi_insn_sp32_v9_novis3, *movdi_insn_sp32_v9_vis3): Consolidate
4663         into *movdi_insn_sp32.
4664         (*movdi_insn_sp64_novis3, *movdi_insn_sp64_vis3): Consolidate into
4665         one pattern called *movdi_insn_sp64.
4666         (*movsf_insn_novis3, *movsf_insn_vis3, *movsf_insn_no_fpu):
4667         Consolidate into one pattern called *movsf_insn.
4668         (*movdf_insn_sp32_no_fpu, *movdf_insn_sp32_v9_novis3,
4669         *movdf_insn_sp32_v9_vis3, *movdf_insn_sp32_v9_no_fpu): Consolidate
4670         into *movdf_insn_sp32.
4671         (*movdf_insn_sp64_novis3, *movdf_insn_sp64_vis3,
4672         *movdf_insn_sp64_no_fpu): Consolidate into one pattern called
4673         *movdf_insn_sp64.
4674         (*zero_extendsidi2_insn_sp64_novis3,
4675         *zero_extendsidi2_insn_sp64_vis3): Consolidate into one pattern
4676         called *zero_extendsidi2_insn_sp64.
4677         (*sign_extendsidi2_insn_novis3, *sign_extendsidi2_insn_vis3):
4678         Consolidate into one pattern named *sign_extendsidi2_insn.
4679         (*mov<VM32:mode>_insn_novis3, *mov<VM32:mode>_insn_vis3):
4680         Consolidate into one pattern named *mov<VM32:mode>_insn.
4681         (*mov<VM64:mode>_insn_sp64_novis3,
4682         *mov<VM64:mode>_insn_sp64_novis3): Consolidate into one pattern
4683         named *mov<VM64:mode>_insn_sp64.
4684         (*mov<VM64:mode>_insn_sp32_novis3,
4685         *mov<VM64:mode>_insn_sp32_vis3): Consolidate into one pattern
4686         named *mov<VM64:mode>_insn_sp32.
4687
4688 2011-10-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4689
4690         * tree-ssa-strlen.c (get_string_length): Change assertion to STPCPY.
4691         (zero_length_string): Change assertion to accept strinfo without
4692         length but with stmt instead.
4693         Set the endptr pointer also if starting a new chain.
4694         (adjust_related_strinfos): Ignore strinfos marked for delayed
4695         length computation.
4696         (handle_builtin_strcpy): Mark earlier strinfo elements also for
4697         delayed length computation.
4698
4699 2011-10-24  Georg-Johann Lay  <avr@gjlay.de>
4700
4701         PR target/50820
4702         Port from 4.6 branch r180379
4703         * doc/invoke.texi (AVR Options): New subsubsection to explain EIND
4704         handling and indirect jump/calls on devices > 128k.
4705
4706 2011-10-24  Anatoly Sokolov  <aesok@post.ru>
4707             Georg-Johann Lay  <avr@gjlay.de>
4708
4709         PR target/49824
4710         * doc/extend.texi (Declaring Attributes of Functions):
4711         Document OS_main and OS_task attributes.
4712         (Specifying Attributes of Variables): Move up
4713         subsection "AVR Variable Attributes" as of alphabetical order.
4714
4715 2011-10-24  Richard Guenther  <rguenther@suse.de>
4716
4717         * tree-vect-stmts.c (vect_get_vec_def_for_operand): Convert constants
4718         to vector element type.
4719         (vectorizable_assignment): Bail out for non-mode-precision operations.
4720         (vectorizable_shift): Likewise.
4721         (vectorizable_operation): Likewise.
4722         (vectorizable_type_demotion): Likewise.
4723         (vectorizable_type_promotion): Likewise.
4724         (vectorizable_store): Handle non-mode-precision stores.
4725         (vectorizable_load): Handle non-mode-precision loads.
4726         (get_vectype_for_scalar_type_and_size): Return a vector type
4727         for non-mode-precision integers.
4728         * tree-vect-loop.c (vectorizable_reduction): Bail out for
4729         non-mode-precision reductions.
4730
4731 2011-10-24  Julian Brown  <julian@codesourcery.com>
4732
4733         * config/m68k/m68k.c (notice_update_cc): Tighten condition for
4734         setting CC_REVERSED for FP comparisons.
4735
4736 2011-10-24  Richard Guenther  <rguenther@suse.de>
4737
4738         PR tree-optimization/50838
4739         * tree-data-ref.c (dr_analyze_indices): Properly canonicalize
4740         a MEM_REF base if we change it.
4741
4742 2011-10-24  Bernd Schmidt  <bernds@codesourcery.com>
4743
4744         PR bootstrap/50836
4745         * rtlanal.c: Swap includes of "hard-reg-set.h" and "rtl.h".
4746
4747         PR rtl-optimization/50833
4748         * function.c (thread_prologue_and_epilogue_insns): Expect the
4749         return insn optimization only if optimize.
4750
4751 2011-10-24  Georg-Johann Lay  <avr@gjlay.de>
4752
4753         * config/avr/avr.c: Break long lines.
4754         Define target hooks on the fly if applicable.
4755         (TARGET_ASM_FUNCTION_RODATA_SECTION): Remove first definition
4756         overridden later.
4757         (targetm): Move definition to end of file.
4758         (avr_can_eliminate): Make static on the fly.
4759         (avr_frame_pointer_required_p): Ditto.
4760         (avr_hard_regno_scratch_ok): Ditto.
4761         (avr_builtin_setjmp_frame_value): Make static on the fly.
4762         Indent according to coding rules.
4763         (avr_case_values_threshold): Ditto.
4764         (avr_attribute_table): Move down.
4765
4766 2011-10-24  Ira Rosen  <ira.rosen@linaro.org>
4767
4768         PR tree-optimization/50730
4769         * tree-vect-data-refs.c (vect_analyze_data_refs): Stop basic block
4770         analysis if encountered unsupported data-ref.
4771
4772 2011-10-23  David S. Miller  <davem@davemloft.net>
4773
4774         * config/sparc/sparc.c (sparc_option_override): Remove -mv8plus
4775         cpu adjustment.
4776         * config/sparc/linux64.h (CC1_SPEC): When defaulting to 64-bit,
4777         append -mcpu=v9 when -mv8plus is given.
4778
4779         * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): We can move
4780         between float and non-float regs when VIS3.
4781         * config/sparc/sparc.c (eligible_for_restore_insn): We can't
4782         use a restore when the source is a float register.
4783         (sparc_split_regreg_legitimate): When VIS3 allow moves between
4784         float and integer regs.
4785         (sparc_register_move_cost): Adjust to account for VIS3 moves.
4786         (sparc_preferred_reload_class): On 32-bit with VIS3 when moving an
4787         integer reg to a class containing EXTRA_FP_REGS, constrain to FP_REGS.
4788         (sparc_secondary_reload): On 32-bit with VIS3 when moving between
4789         float and integer regs we sometimes need a FP_REGS class
4790         intermediate move to satisfy the reload.  When this happens
4791         specify an extra cost of 2.
4792         (*movsi_insn): Rename to have "_novis3" suffix and add !VIS3 guard.
4793         (*movdi_insn_sp32_v9): Likewise.
4794         (*movdi_insn_sp64): Likewise.
4795         (*movsf_insn): Likewise.
4796         (*movdf_insn_sp32_v9): Likewise.
4797         (*movdf_insn_sp64): Likewise.
4798         (*zero_extendsidi2_insn_sp64): Likewise.
4799         (*sign_extendsidi2_insn): Likewise.
4800         (*movsi_insn_vis3): New insn.
4801         (*movdi_insn_sp32_v9_vis3): New insn.
4802         (*movdi_insn_sp64_vis3): New insn.
4803         (*movsf_insn_vis3): New insn.
4804         (*movdf_insn_sp32_v9_vis3): New insn.
4805         (*movdf_insn_sp64_vis3): New insn.
4806         (*zero_extendsidi2_insn_sp64_vis3): New insn.
4807         (*sign_extendsidi2_insn_vis3): New insn.
4808         (TFmode reg/reg split): Make sure both REG operands are float.
4809         (*mov<VM32:mode>_insn): Add "_novis3" suffix and !VIS3 guard. Remove
4810         easy constant to integer reg alternatives.
4811         (*mov<VM64:mode>_insn_sp64): Likewise.
4812         (*mov<VM64:mode>_insn_sp32_novis3): Likewise.
4813         (*mov<VM32:mode>_insn_vis3): New insn.
4814         (*mov<VM64:mode>_insn_sp64_vis3): New insn.
4815         (*mov<VM64:mode>_insn_sp32_vis3): New insn.
4816         (VM64 reg<-->reg split): New splitter for 32-bit.
4817
4818         * config/sparc/sparc.c (sparc_split_regreg_legitimate): New function.
4819         * config/sparc/sparc-protos.h (sparc_split_regreg_legitimate):
4820         Declare it.
4821         * config/sparc/sparc.md (DImode reg/reg split): Use it.
4822         (DFmode reg/reg split): Likewise.
4823
4824         * config/sparc/sparc.md (*movdi_insn_sp32_v9): Add alternatives for
4825         generating fzero and fone instructions.
4826         (DImode const_int --> reg splitter): Only trigger for integer regs.
4827
4828         * config/sparc/predicates.md (input_operand): Disallow vector
4829         constants other than 0 and -1.
4830         * config/sparc/sparc.c (sparc_preferred_reload_class): Return
4831         NO_REGS for vector constants other than 0 and -1.
4832
4833         * config/sparc/sparc.h (SPARC_FIRST_INT_REG, SPARC_LAST_INT_REG,
4834         SPARC_INT_REG_P): Define.
4835         (HARD_REGNO_NREGS): Use SPARC_INT_REG_P.
4836         (REGNO_OK_FOR_INDEX_P): Likewise.
4837         * config/sparc/sparc.c (gen_df_reg): Likewise.
4838         (eligible_for_return_delay): Likewise.
4839         (eligible_for_sibcall_delay): Likewise.
4840         (sparc_legitimate_address_p): Likewise.
4841         (emit_save_or_restore_regs): Likewise.
4842         (registers_ok_for_ldd_peep): Likewise.
4843         * config/spac/sparc.md (DI mode splitters): Likewise.
4844         (SF mode const splitters): Likewise.
4845         (DF mode splitters): Likewise.
4846         (32-bit DI mode logical op splitters): Likewise.
4847
4848 2011-10-23  Paolo Carlini  <paolo.carlini@oracle.com>
4849
4850         PR c++/50841
4851         Revert:
4852         2011-10-23  Paolo Carlini  <paolo.carlini@oracle.com>
4853
4854         PR c++/50810
4855         * doc/invoke.texi ([-Wnarrowing], [-Wc++0x-compat]): Update.
4856
4857 2011-10-23  Uros Bizjak  <ubizjak@gmail.com>
4858
4859         * config/i386/sse.md (avx2_lshl<mode>3): Remove insn pattern.
4860         (VI248_256): Remove mode iterator.
4861         * config/i386/i386.c (ix86_expand_vec_perm): Use gen_ashlv4di3
4862         instead of gen_avx2_lshlv4di3.
4863         (bdesc_args): Use CODE_FOR_ashl{v16hi,v8si,v4di}3 instead of
4864         CODE_FOR_avx2_lshl{v16hi,v8si,v4di}3.
4865
4866 2011-10-23  Uros Bizjak  <ubizjak@gmail.com>
4867
4868         * config/i386/sse.md (sseintprefix): Rename from gthrfirstp.
4869         (<avx_avx2>_maskload<ssemodesuffix><avxsizesuffix>): Delete expander.
4870         (<avx_avx2>_maskload<ssemodesuffix><avxsizesuffix>) Merge insn
4871         pattern from *avx2_maskload<ssemodesuffix><avxsizesuffix> and
4872         *avx_maskload<ssemodesuffix><avxsizesuffix> using V48_AVX mode
4873         iterator.  Use sseintprefix mode attribute.
4874         (<avx_avx2>_maskstore<ssemodesuffix><avxsizesuffix>): Delete expander.
4875         (<avx_avx2>_maskstore<ssemodesuffix><avxsizesuffix>) Merge insn
4876         pattern from *avx2_maskstore<ssemodesuffix><avxsizesuffix> and
4877         *avx_maskstore<ssemodesuffix><avxsizesuffix> using V48_AVX mode
4878         iterator.  Use sseintprefix mode attribute.
4879         (*avx2_gathersi<mode>) Use sseintprefix and ssemodesuffix mode
4880         attributes.
4881         (*avx2_gatherdi<mode>): Ditto.
4882         (*avx2_gatherdi<mode>256): Ditto.
4883         (VI48_AVX2): Remove mode iterator.
4884         (gthrlastfp): Remove mode attribute.
4885
4886 2011-10-23  Paolo Carlini  <paolo.carlini@oracle.com>
4887
4888         PR c++/50810
4889         * doc/invoke.texi ([-Wnarrowing], [-Wc++0x-compat]): Update.
4890
4891 2011-10-23  Tom de Vries  <tom@codesourcery.com>
4892
4893         PR tree-optimization/50763
4894         * tree-ssa-tail-merge.c (same_succ_flush_bb): New function, factored
4895         out of ...
4896         (same_succ_flush_bbs): Use same_succ_flush_bb.
4897         (purge_bbs): Remove argument.  Remove calls to same_succ_flush_bbs,
4898         release_last_vdef and delete_basic_block.
4899         (unlink_virtual_phi): New function.
4900         (update_vuses): Add and use vuse1_phi_args argument.  Set var to
4901         SSA_NAME_VAR of vuse1 or vuse2, and use var.  Handle case that
4902         def_stmt2 is NULL.  Use phi result as phi arg in case vuse1 or vuse2
4903         is NULL_TREE.  Replace uses of vuse1 if vuse2 is NULL_TREE.  Fix code
4904         to limit replacement of uses.  Propagate phi argument for phis with a
4905         single argument.
4906         (replace_block_by): Update vops if phi_vuse1 or phi_vuse2 is NULL_TREE.
4907         Set vuse1_phi_args if vuse1 is a phi defined in bb1.  Add
4908         vuse1_phi_args as argument to call to update_vuses.  Call
4909         release_last_vdef, same_succ_flush_bb, delete_basic_block.  Update
4910         CDI_DOMINATORS info.
4911         (tail_merge_optimize): Remove argument in call to purge_bbs.  Remove
4912         call to free_dominance_info.  Only call calculate_dominance_info once.
4913
4914 2011-10-23  Eric Botcazou  <ebotcazou@adacore.com>
4915
4916         * fold-const.c (invert_tree_comparison): Always invert EQ_EXPR/NE_EXPR.
4917
4918         PR tree-optimization/44683
4919         * tree-ssa-dom.c (record_edge_info): Record simple equivalences only if
4920         we can be sure that there are no signed zeros involved.
4921
4922 2011-10-23  Jan Hubicka  <jh@suse.cz>
4923
4924         * ipa-inline.c (estimate_badness): Scale up and handle overflows.
4925
4926 2011-10-23  Uros Bizjak  <ubizjak@gmail.com>
4927
4928         PR target/50788
4929         * config/i386/sse.md (<avx_avx2>_maskload<ssemodesuffix><avxsizesuffix>):
4930         Remove (match_dup 0).
4931         (*avx2_maskload<ssemodesuffix><avxsizesuffix>): New insn pattern.
4932         (*avx_maskload<ssemodesuffix><avxsizesuffix>): Ditto.
4933         (*avx2_maskstore<ssemodesuffix><avxsizesuffix>): Ditto.
4934         (*avx_maskstore<ssemodesuffix><avxsizesuffix>): Ditto.
4935         (*avx2_maskmov<ssemodesuffix><avxsizesuffix>): Remove insn pattern.
4936         (*avx_maskmov<ssemodesuffix><avxsizesuffix>): Ditto.
4937
4938 2011-10-23  Ira Rosen  <ira.rosen@linaro.org>
4939
4940         PR tree-optimization/50819
4941         * tree-vectorizer.h (vect_analyze_data_ref_dependences): Remove
4942         the last argument.
4943         * tree-vect-loop.c (vect_analyze_loop_2): Update call to
4944         vect_analyze_data_ref_dependences.
4945         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Remove
4946         the last argument.  Check load-after-store dependence for unknown
4947         dependencies in basic blocks.
4948         (vect_analyze_data_ref_dependences): Update call to
4949         vect_analyze_data_ref_dependences.
4950         * tree-vect-patterns.c (vect_recog_widen_shift_pattern): Fix typo.
4951         * tree-vect-slp.c (vect_bb_vectorizable_with_dependencies): Remove.
4952         (vect_slp_analyze_bb_1): Update call to
4953         vect_analyze_data_ref_dependences.  Don't call
4954         vect_bb_vectorizable_with_dependencies.
4955
4956 2011-10-22  David S. Miller  <davem@davemloft.net>
4957
4958         * config/sparc/sparc.h (SECONDARY_INPUT_RELOAD_CLASS,
4959         SECONDARY_OUTPUT_RELOAD_CLASS): Delete.
4960         * config/sparc/sparc.c (TARGET_SECONDARY_RELOAD): Redefine.
4961         (sparc_secondary_reload): New function.
4962
4963         * config/sparc/sparc.h (sparc_costs): Remove extern decl.
4964         (struct processor_costs): Move from here..
4965         * config/sparc/sparc.c (struct processor_costs): To here.
4966         (sparc_costs): Mark static.
4967
4968         * config/sparc/sparc.c (short_branch, reg_unused_after): Delete.
4969         * config/sparc/sparc-protos.h (short_branch, reg_unused_after):
4970         Get rid of declarations.
4971
4972 2011-10-21  Paul Brook  <paul@codesourcery.com>
4973
4974         * config/c6x/c6x.c (c6x_asm_emit_except_personality,
4975         c6x_asm_init_sections): New functions.
4976         (TARGET_ASM_EMIT_EXCEPT_PERSONALITY, TARGET_ASM_INIT_SECTIONS): Define.
4977
4978 2011-10-21  Jakub Jelinek  <jakub@redhat.com>
4979
4980         PR target/50813
4981         * config/i386/i386.c (expand_vec_perm_even_odd_1): Handle
4982         V4DImode and V8SImode for !TARGET_AVX2.
4983
4984 2011-10-21  Bernd Schmidt  <bernds@codesourcery.com>
4985
4986         PR bootstrap/50825
4987         * sched-deps.c (add_dependence): If not doing predication, promote
4988         REG_DEP_CONTROL to REG_DEP_ANTI.
4989
4990 2011-10-21  Georg-Johann Lay  <avr@gjlay.de>
4991
4992         * config/avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Pass address of X
4993         instead of X to avr_legitimize_reload_address.
4994         * config/avr/avr-protos.h (avr_legitimize_reload_address): Change
4995         first argument's type from rtx to rtx*.
4996         * config/avr/avr.c (avr_legitimize_reload_address): Ditto.
4997         Pass PX to push_reload instead of &X.  Change log messages for
4998         better distinction.
4999
5000 2011-10-21  Roland Stigge  <stigge@antcom.de>
5001
5002         PR translation/47064
5003         * params.def: Fix typo "compilatoin" -> "compilation".
5004
5005 2011-10-21  H.J. Lu  <hongjiu.lu@intel.com>
5006             Kirill Yukhin  <kirill.yukhin@intel.com>
5007
5008         PR target/50740
5009         * config/i386/driver-i386.c (host_detect_local_cpu): Do cpuid 7 only
5010         if max_level allows that.
5011
5012 2011-10-21  Bernd Schmidt  <bernds@codesourcery.com>
5013
5014         * reg-notes.def (DEP_CONTROL): New.
5015         * sched-ebb.c (add_deps_for_risky_insns): Add a REG_DEP_CONTROL when
5016         not doing speculation.
5017         * rtlanal.c (record_hard_reg_sets, find_all_hard_reg_sets,
5018         record_hard_reg_uses_1, record_hard_reg_uses): New functions.
5019         * function.c (record_hard_reg_sets, record_hard_reg_uses,
5020         record_hard_reg_uses_1): Remove; move to rtlanal.c.
5021         * lists.c (copy_INSN_LIST, concat_INSN_LIST): New functions.
5022         * haifa-sched.c: Swap includes of "rtl.h" and "hard-reg-set.h".
5023         (MUST_RECOMPUTE_SPEC_P): New macro.
5024         (real_insn_for_shadow): New function.
5025         (cond_clobbered_p, recompute_todo_spec, check_clobbered_conditions,
5026         toggle_cancelled_flags): New static functions.
5027         (schedule_insn): Relax an assert to only check for empty hard back
5028         dependencies.  Skip cancelled dependencies.  Call
5029         check_clobbered_conditions.
5030         (copy_insn_list): Remove function, renamed moved to lists.c.
5031         (save_backtrack_point): Use new spelling copy_INSN_LIST.
5032         (unschedule_insns_until): Ensure TODO_SPEC is reset properly.
5033         (restore_last_backtrack_point): Likewise.  Call toggle_cancelled_flags.
5034         (estimate_insn_tick): Ignore cancelled dependencies.
5035         (haifa_speculate_insn): Move declaration.
5036         (try_ready): Move code into recompute_todo_spec and call it.  Tweak
5037         some asserts.  Ensure predicated patterns are restored if necessary.
5038         Dump DEP_CONTROL flag.
5039         (haifa_change_pattern): Merge with sched_change_pattern.
5040         (sched_change_pattern): Remove function.
5041         * sched-deps.c (NON_FLUSH_JUMP_KIND, NON_FLUSH_JUMP): Remove.  All
5042         uses changed to simply not test NON_FLUSH_JUMP_P.
5043         (ds_to_dk, dk_to_ds, dump_dep, ds_to_dt, dump_ds, check_dep): Handle
5044         REG_DEP_CONTROL.
5045         (dep_spec_p): If DO_PREDICATION, REG_DEP_CONTROL is speculative.
5046         (reg_pending_control_uses, control_dependency_cache): New static
5047         variables.
5048         (sched_get_reverse_condition_uncached): New function.
5049         (sd_find_dep_between): Remove pointless assert.  Look in
5050         control_dependency_cache.
5051         (ask_dependency_caches, set_dependency_caches, sd_delete_dep,
5052         extend_dependency_caches, sched_deps_finish): Handle REG_DEP_CONTROL
5053         and control_dependency_cache.
5054         (sd_unresolve_dep): Use dep_spec_p.
5055         (add_dependence): Now a wrapper around add_dependence_1, handling
5056         REG_DEP_CONTROL specially.
5057         (flush_pending_lists): Clear pending_jump_insns.
5058         (sched_analyze_1): Handle pending_jump_insns like a memory flush.
5059         (sched_analyze_2): Unconditionally add to pending memory flushes,
5060         keep previous behaviour but apply it to pending_jump_insns instead.
5061         (sched_analyze_insn): Defer adding jump reg dependencies using
5062         reg_pending_control_uses; add them to the control_uses list.  Handle
5063         pending_jump_insns and control_uses when adding dependence lists.
5064         (deps_analyze_insn): Update INSN_COND_DEPS.
5065         (deps_analyze_insn): Add jumps to pending_jump_insns rather than
5066         last_pending_memory_flush.
5067         (init_deps): Initialize pending_jump_insns.
5068         (free_deps): Free control_uses.
5069         (remove_from_deps): Remove from pending_jump_insns.
5070         (init_deps_global): Allocate reg_pending_control_uses).
5071         (finish_deps_global): Free it.
5072         (add_dependence_1): Renamed from add_dependence.  Handle
5073         REG_DEP_CONTROL.
5074         * rtl.h (record_hard_reg_uses, find_all_hard_reg_sets): Declare.
5075         (copy_INSN_LIST, concat_INSN_LIST): Declare.
5076         * sched-int.h (struct deps_reg): Add control_uses.
5077         (struct deps_desc): Add pending_jump_insns.
5078         (struct _haifa_deps_insn_data): Add cond_deps.
5079         (struct _haifa_insn_data): Add must_recompute_spec and predicated_pat.
5080         (INSN_COND_DEPS, PREDICATED_PAT): New macros.
5081         (BITS_PER_DEP_WEAK): Adjust for two extra bits in the word.
5082         (DEP_CONTROL): New macro.
5083         (DEP_TYPES): Include it.
5084         (HARD_DEP): Adjust definition.
5085         (DEP_CANCELLED): New macro.
5086         (enum SCHED_FLAGS): Add DO_PREDICATION.
5087         (sched_get_reverse_condition_uncached, real_insn_for_shadow): Declare.
5088         * sched-rgn.c (concat_INSN_LIST): Remove function.
5089         (deps_join): Handle pending_jump_insns.
5090         (free_pending_lists): Likewise.
5091         * config/c6x/c6x.c (c6x_set_sched_flags): Set DO_PREDICATION for final
5092         schedule.
5093
5094 2011-10-21  Georg-Johann Lay  <avr@gjlay.de>
5095
5096         PR target/50820
5097         * config/avr/libgcc.S (__EIND__): New define to 0x3C.
5098         (__tablejump__): Consistently use EIND for indirect jump/call.
5099         (__tablejump_elpm__): Ditto.
5100
5101 2011-10-21  Bernd Schmidt  <bernds@codesourcery.com>
5102
5103         * config/c6x/c6x.md (attr "op_pattern"): New.
5104         (load_sdata_pic, mov<mode>_insn for QIHIM and SISFVM): Set it.
5105         * config/c6x/c6x-mult.md.in (mulhi3_VARIANT_, mulhisi3_insn_VARIANT_):
5106         Likewise.
5107         * config/c6x/c6x-mult.md: Regenerate.
5108         * config/c6x/c6x.c: Include "regrename.h".
5109         (unit_req_table): New typedef.
5110         (unit_reqs): Use it for the declaration.
5111         (unit_req_factor, get_unit_reqs, merge_unit_reqs, unit_req_imbalance,
5112         get_unit_operand_masks, try_rename_operands, reshuffle_units): New
5113         static functions.
5114         (count_unit_reqs): New arg reqs.  All callers changed.  Use
5115         get_unit_reqs, and don't merge here.
5116         (res_mii): New arg reqs.  All callers changed.  Rewrite to use a loop
5117         using unit_req_factor.
5118         (hwloop_optimize): Call reshuffle_units.  Call merge_unit_reqs after
5119         count_unit_reqs.
5120         (c6x_reorg): Add reg notes problem, and call df_analyze.
5121         * Makefile.in ($(out_object_file)): Depend on regrename.h.
5122
5123 2011-10-21  Kai Tietz  <ktietz@redhat.com>
5124
5125         * fold-const.c (simple_operand_p_2): Handle integral
5126         casts from boolean-operands.
5127
5128 2011-10-21  Jan Hubicka  <jh@suse.cz>
5129
5130         * cgraph.c (dump_cgraph_node): Dump alias flag.
5131         * cgraphunit.c (handle_alias_pairs): Handle weakrefs with
5132         no destination.
5133         (get_alias_symbol): New function.
5134         (output_weakrefs): Output also weakrefs with no destinatoin.
5135         (lto_output_node): Output weakref alias flag when at function boundary.
5136
5137 2011-10-21  Andrew Stubbs  <ams@codesourcery.com>
5138
5139         PR target/50809
5140         * config/arm/driver-arm.c (vendors): Make static.
5141
5142 2011-10-21  Uros Bizjak  <ubizjak@gmail.com>
5143
5144         * config/i386/i386.c (ix86_emit_swdivsf): Force b into register.
5145         (ix86_emit_swsqrtsf): Force a into register.
5146
5147 2011-10-20  Mike Stump  <mikestump@comcast.net>
5148
5149         * regcprop.c (copyprop_hardreg_forward_1): Update recog_data
5150         after validate_change wipes it out.
5151
5152 2011-10-20  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5153
5154         * config/spu/spu.md ("vec_permv16qi"): Reduce selector modulo 32
5155         before using the shufb instruction.
5156
5157 2011-10-20  Kirill Yukhin  <kirill.yukhin@intel.com>
5158
5159         PR target/50766
5160         * config/i386/i386.md (bmi_bextr_<mode>): Update register/
5161         memory operand order.
5162         (bmi2_bzhi_<mode>3): Ditto.
5163         (bmi2_pdep_<mode>3): Ditto.
5164         (bmi2_pext_<mode>3): Ditto.
5165
5166 2011-10-20  Richard Henderson  <rth@redhat.com>
5167
5168         * target.def (vec_perm_const_ok): Rename from builtin_vec_perm_ok.
5169         * optabs.c (can_vec_perm_expr_p): Update to match.
5170         (expand_vec_perm_expr): Likewise.
5171         * config/i386/i386.c (TARGET_VECTORIZE_VEC_PERM_CONST_OK): Rename
5172         from TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK.
5173         * doc/tm.texi.in: Likewise.
5174
5175 2011-10-20  Sergey Ostanevich  <sergos.gnu@gmail.com>
5176
5177         PR target/50572
5178         * config/i386/i386.c (processor_target_table): Change Atom
5179         align_loops_max_skip to 15.
5180
5181 2011-10-20  Richard Henderson  <rth@redhat.com>
5182
5183         * target.def (builtin_vec_perm): Remove.
5184         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Remove.
5185
5186         * config/i386/i386.c (ix86_expand_vec_perm_builtin): Remove.
5187         (IX86_BUILTIN_VEC_PERM_*): Remove.
5188         (bdesc_args): Remove vec_perm builtins
5189         (ix86_expand_builtin): Likewise.
5190         (ix86_expand_vec_perm_const_1): Rename from
5191         ix86_expand_vec_perm_builtin_1.
5192         (extract_vec_perm_cst): Merge into...
5193         (ix86_vectorize_vec_perm_const_ok): ... here.  Rename from
5194         ix86_vectorize_builtin_vec_perm_ok.
5195         (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Remove.
5196
5197         * config/rs6000/rs6000.c (rs6000_builtin_vec_perm): Remove.
5198         (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Remove.
5199
5200         * config/spu/spu.c (spu_builtin_vec_perm): Remove.
5201         (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Remove.
5202
5203 2011-10-20  Uros Bizjak  <ubizjak@gmail.com>
5204
5205         PR target/47989
5206         * config/i386/i386.h (RECIP_MASK_DEFAULT): New define.
5207         * config/i386/i386.op (recip_mask): Initialize with RECIP_MASK_DEFAULT.
5208         * doc/invoke.texi (ix86 Options, -mrecip): Document that GCC
5209         implements vectorized single float division and vectorized sqrtf(x)
5210         with reciprocal sequence with additional Newton-Raphson step with
5211         -ffast-math.
5212
5213 2011-10-20  Dodji Seketeli  <dodji@redhat.com>
5214
5215         * ggc-zone.c (ggc_internal_alloc_zone_stat): Rename
5216         ggc_alloced_size_order_for_request into ggc_round_alloc_size like
5217         it was done in ggc-page.c.
5218
5219         PR other/50659
5220         * doc/cppopts.texi: Use @smallexample/@end smallexample in
5221         documentation for -fdebug-cpp instead of @quotation/@end quotation
5222         that is not supported by contrib/texi2pod.pl.
5223
5224 2011-10-19  Jan Hubicka  <jh@suse.cz>
5225
5226         * ipa-inline.c (inline_small_functions): Always update all calles after
5227         inlining.
5228
5229 2011-10-19  Jan Hubicka  <jh@suse.cz>
5230
5231         PR bootstrap/50709
5232         * ipa-inline.c (inline_small_functions): Fix checking code to not make
5233         effect on fibheap stability.
5234
5235 2011-10-20  Maxim Kuvyrkov  <maxim@codesourcery.com>
5236
5237         * config/m68k/t-linux (M68K_MLIB_CPU): Add ColdFire CPUs.
5238
5239 2011-10-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
5240
5241         PR target/50106
5242         * config/arm/arm.c (thumb_unexpanded_epilogue): Handle return
5243         reg size from 1-3.
5244
5245 2011-10-20  Richard Guenther  <rguenther@suse.de>
5246
5247         * tree-ssa-loop-im.c (stmt_cost): Add WIDEN_*, FMA_EXPR
5248         and rotates to the set of expensive operations.
5249
5250 2011-10-19  David S. Miller  <davem@davemloft.net>
5251
5252         * config/sparc/sparc.c (sparc_expand_move): Use can_create_pseudo_p.
5253         (sparc_emit_set_const32): Likewise.
5254         (sparc_emit_set_const64_longway): Likewise.
5255         (sparc_emit_set_const64): Likewise.
5256         (sparc_legitimize_pic_address): Likewise.
5257         (memory_ok_for_ldd): Likewise.
5258
5259 2011-10-20  Dehao Chen  <dehao@google.com>
5260
5261         * profile.c (compute_branch_probabilities): Compute and dump the
5262         overlap between the static estimation and the instrumentation profile.
5263         (OVERLAP_BASE): New macro.
5264         (compute_frequency_overlap): New function
5265
5266 2011-10-19  Jakub Jelinek  <jakub@redhat.com>
5267
5268         * config/i386/i386.c (expand_vec_perm_vpshufb2_vpermq_even_odd): Use
5269         d->op1 instead of d->op0 for the second vpshufb.
5270         (expand_vec_perm_even_odd_1): For V8SImode fix vpshufd immediates.
5271         (ix86_expand_vec_perm_const): If mask indicates two operands are
5272         needed, but both are the same and expanding them as d.op0 == d.op1
5273         failed, retry with d.op0 != d.op1.
5274         (ix86_expand_vec_perm_builtin): Likewise.  Handle sorry printing
5275         also for d.nelt == 32.
5276
5277         PR middle-end/50754
5278         * cfgexpand.c (expand_debug_expr): Handle WIDEN_LSHIFT_EXPR, ignore
5279         VEC_PERM_EXPR.
5280
5281 2011-10-19  Bernd Schmidt  <bernds@codesourcery.com>
5282
5283         * regrename.h: New file.
5284         * regrename.c: Include it.  Also include "emit-rtl.h".
5285         (struct du_head, struct du_chain, du_head_p DEF_VEC and
5286         DEF_VEC_ALLOC_P): Move to regrename.h.
5287         (do_replace): Remove declaration.
5288         (insn_rr): New variable.
5289         (cur_operand): New static variable.
5290         (regrename_chain_from_id): Renamed from chain_from_id and no longer
5291         static.  All callers changed.
5292         (record_operand_use): New static function.
5293         (scan_rtx_reg): Use it.
5294         (find_best_rename_reg): New function, broken out of rename_chains.
5295         (rename_chains): Use it.  Don't update chain regno and nregs here, ...
5296         (regrename_do_replace): ... do it here instead.  Renamed from
5297         do_replace, and no longer static.  All callers changed.
5298         (regrename_analyze): No longer static.  New arg bb_mask.
5299         All callers changed.  If bb_mask is nonzero, use it to limit the
5300         number of basic blocks we analyze.  If we failed to analyze a block,
5301         clear insn operand data.
5302         (record_out_operands): New arg insn_info.  Update cur_operand if it is
5303         nonnull.
5304         (build_def_use): If insn_rr is nonnull, pass an insn_info to
5305         record_out_operands, and update cur_operand here as well.
5306         (regrename_init, regrename_finish): New functions.
5307         (regrename_optimize): Use them.
5308         * Makefile.in (regrename.o): Adjust dependencies.
5309
5310 2011-10-19  Tom de Vries  <tom@codesourcery.com>
5311
5312         PR tree-optimization/50769
5313         * tree-ssa-tail-merge.c (replace_block_by): Calculate phi_vuse2
5314         unconditionally.  Handle case that phi_vuse2 is not an SSA_NAME.  Add
5315         dummy argument .MEM to phi when increasing number of arguments of phi by
5316         redirecting edges to the block with phi.
5317
5318 2011-10-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5319
5320         PR bootstrap/50777
5321         * configure.ac: Save and restore CXXFLAGS around
5322         gcc_AC_CHECK_DECLS uses.
5323         Check for madvise() declaration with g++ if --enable-build-with-cxx.
5324         * configure: Regenerate.
5325         * config.in: Regenerate.
5326         * ggc-page.c (USING_MADVISE): Also check HAVE_DECL_MADVISE.
5327
5328 2011-10-19  Alexandre Oliva  <aoliva@redhat.com>
5329
5330         PR debug/49310
5331         * var-tracking.c (loc_exp_dep, onepart_aux): New structs.
5332         (variable_part): Replace offset with union.
5333         (enum onepart_enum, onepart_enum_t): New.
5334         (variable_def): Drop cur_loc_changed, add onepart.
5335         (value_chain_def, const_value_chain): Remove.
5336         (VAR_PART_OFFSET, VAR_LOC_1PAUX): New macros, with checking.
5337         (VAR_LOC_DEP_LST, VAR_LOC_DEP_LSTP): New macros.
5338         (VAR_LOC_FROM, VAR_LOC_DEPTH, VAR_LOC_DEP_VEC): Likewise.
5339         (value_chain_pool, value_chains): Remove.
5340         (dropped_values): New.
5341         (struct parm_reg): Only if HAVE_window_save.
5342         (vt_stack_adjustments): Don't record register arguments.
5343         (dv_as_rtx): New.
5344         (dv_onepart_p): Return a onepart_enum_t.
5345         (onepart_pool): New.
5346         (dv_pool): Remove.
5347         (dv_from_rtx): New.
5348         (variable_htab_free): Release onepart aux data.  Reset flags.
5349         (value_chain_htab_hash, value_chain_htab_eq): Remove.
5350         (unshare_variable): Use onepart field.  Propagate onepart aux
5351         data or offset.  Drop cur_loc_changed.
5352         (val_store): Cope with NULL insn.  Rephrase dump output.  Check
5353         for unsuitable locs.  Add FIXME on using cselib locs.
5354         (val_reset): Remove FIXME of unfounded concerns.
5355         (val_resolve): Check for unsuitable locs.  Add FIXME on using
5356         cselib locs.
5357         (variable_union): Use onepart field, adjust access to offset.
5358         (NO_LOC_P): New.
5359         (VALUE_CHANGED, DECL_CHANGED): Update doc.
5360         (set_dv_changed): Clear NO_LOC_P when changed.
5361         (find_loc_in_1pdv): Use onepart field.
5362         (intersect_loc_chains): Likewise.
5363         (unsuitable_loc): New.
5364         (loc_cmp): Keep ENTRY_VALUEs at the end of the loc list.
5365         (add_value_chain, add_value_chains): Remove.
5366         (add_cselib_value_chains, remove_value_chain): Likewise.
5367         (remove_value_chains, remove_cselib_value_chains): Likewise.
5368         (canonicalize_loc_order_check): Use onepart.  Drop cur_loc_changed.
5369         (canonicalize_values_star, canonicalize_vars_star): Use onepart.
5370         (variable_merge_over_cur): Likewise.  Adjust access to offset.
5371         Drop cur_loc_changed.
5372         (variable_merge_over_src): Use onepart field.
5373         (remove_duplicate_values): Likewise.
5374         (variable_post_merge_new_vals): Likewise.
5375         (find_mem_expr_in_1pdv): Likewise.
5376         (dataflow_set_preserve_mem_locs): Likewise.  Drop cur_loc_changed
5377         and value chains.
5378         (dataflow_set_remove_mem_locs): Likewise.  Use VAR_LOC_FROM.
5379         (variable_different_p): Use onepart field.  Move onepart test out
5380         of the loop.
5381         (argument_reg_set): Drop.
5382         (add_uses, add_stores): Preserve but do not record in dynamic
5383         tables equivalences for ENTRY_VALUEs and CFA_based addresses.
5384         Avoid unsuitable address expressions.
5385         (EXPR_DEPTH): Unlimit.
5386         (EXPR_USE_DEPTH): Repurpose PARAM_MAX_VARTRACK_EXPR_DEPTH.
5387         (prepare_call_arguments): Use DECL_RTL_IF_SET.
5388         (dump_var): Adjust access to offset.
5389         (variable_from_dropped, recover_dropped_1paux): New.
5390         (variable_was_changed): Drop cur_loc_changed.  Use onepart.
5391         Preserve onepart aux in empty_var.  Recover empty_var and onepart
5392         aux from dropped_values.
5393         (find_variable_location_part): Special-case onepart.  Adjust
5394         access to offset.
5395         (set_slot_part): Use onepart.  Drop cur_loc_changed.  Adjust
5396         access to offset.  Initialize onepaux.  Drop value chains.
5397         (delete_slot_part): Drop value chains.  Use VAR_LOC_FROM.
5398         (VEC (variable, heap), VEC (rtx, stack)): Define.
5399         (expand_loc_callback_data): Drop dummy, cur_loc_changed,
5400         ignore_cur_loc.  Add expanding, pending, depth.
5401         (loc_exp_dep_alloc, loc_exp_dep_clear): New.
5402         (loc_exp_dep_insert, loc_exp_dep_set): New.
5403         (notify_dependents_of_resolved_value): New.
5404         (update_depth, vt_expand_var_loc_chain): New.
5405         (vt_expand_loc_callback): Revamped.
5406         (resolve_expansions_pending_recursion): New.
5407         (INIT_ELCD, FINI_ELCD): New.
5408         (vt_expand_loc): Use the new macros above.  Drop ignore_cur_loc
5409         parameter, adjust all callers.
5410         (vt_expand_loc_dummy): Drop.
5411         (vt_expand_1pvar): New.
5412         (emit_note_insn_var_location): Operate on non-debug decls only.
5413         Revamp multi-part cur_loc recomputation and one-part expansion.
5414         Drop cur_loc_changed.  Adjust access to offset.
5415         (VEC (variable, heap)): Drop.
5416         (changed_variables_stack, changed_values_stack): Drop.
5417         (check_changed_vars_0, check_changed_vars_1): Remove.
5418         (check_changed_vars_2, check_changed_vars_3): Remove.
5419         (values_to_stack, remove_value_from_changed_variables): New.
5420         (notify_dependents_of_changed_value, process_changed_values): New.
5421         (emit_notes_for_changes): Revamp onepart updates.
5422         (emit_notes_for_differences_1): Use onepart.  Drop cur_loc_changed
5423         and value chains.  Propagate onepaux.  Recover empty_var and onepaux
5424         from dropped_values.
5425         (emit_notes_for_differences_2): Drop value chains.
5426         (emit_notes_in_bb): Adjust.
5427         (vt_emit_notes): Drop value chains, changed_variables_stack.
5428         Initialize and release dropped_values.
5429         (create_entry_value): Revamp.
5430         (vt_add_function_parameter): Use new interface.
5431         (note_register_arguments): Remove.
5432         (vt_initialize): Drop value chains and register arguments.
5433         (vt_finalize): Drop value chains.  Release windowed_parm_regs only
5434         if HAVE_window_save.
5435         * rtl.h: Document various pass-local uses of RTL flags.
5436         * tree.h (DECL_RTL_KNOWN_SET): New.
5437         * doc/invoke.texi (param max-vartrack-expr-depth): Update
5438         description and default.
5439
5440 2011-10-19  Georg-Johann Lay  <avr@gjlay.de>
5441
5442         PR target/50447
5443         * config/avr/avr.md (cc): New alternative out_plus_noclobber.
5444         (adjust_len): Ditto.
5445         (addhi3): Don't pipe through short; use gen_int_mode instead.
5446         Prior to reload, expand to gen_addhi3_clobber.
5447         (*addhi3): Use avr_out_plus_noclobber if applicable, use
5448         out_plus_noclobber in cc and adjust_len attribute.
5449         (addhi3_clobber): 2 new RTL peepholes.
5450         (addhi3_clobber): New insn.
5451         * config/avr/avr-protos.h: (avr_out_plus_noclobber): New prototype.
5452         * config/avr/avr.c (avr_out_plus_noclobber): New function.
5453         (notice_update_cc): Handle CC_OUT_PLUS_NOCLOBBER.
5454         (avr_out_plus_1): Tweak if only MSB is +/-1 and other bytes are 0.
5455         Set cc0 to set_zn for adiw on 16-bit values.
5456         (adjust_insn_length): Handle ADJUST_LEN_OUT_PLUS_NOCLOBBER.
5457         (expand_epilogue): No need to add 0 to frame_pointer_rtx.
5458
5459 2011-10-19  Richard Guenther  <rguenther@suse.de>
5460
5461         PR middle-end/50780
5462         * tree-ssa-forwprop.c (forward_propagate_into_cond): Verify
5463         the condition is properly gimple before using it.
5464         * tree-eh (stmt_could_throw_1_p): Properly extract the
5465         operation type from comparisons.
5466
5467 2011-10-19  Roland Stigge  <stigge@antcom.de>
5468
5469         PR translation/48638
5470         * plugin.c (add_new_plugin): Fix typo in fatal_error message.
5471
5472 2011-10-19  Roland Stigge  <stigge@antcom.de>
5473
5474         PR translation/49517
5475         * config/rx/rx.c (rx_print_operand): Fix typo in warning message.
5476
5477 2011-10-19  Richard Guenther  <rguenther@suse.de>
5478
5479         PR middle-end/50768
5480         * gimple-fold.c (gimplify_and_update_call_from_tree): Rewrite.
5481
5482 2011-10-19  Andrey Belevantsev  <abel@ispras.ru>
5483
5484         PR rtl-optimization/50340
5485         * sel-sched-ir.c (update_target_availability): LHS register
5486         availability is not known if the unavailable LHS of the other
5487         expression is a different register.
5488
5489 2011-10-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5490
5491         PR target/50310
5492         * config/spu/spu.c (spu_emit_vector_compare): Support unordered
5493         floating-point comparisons.
5494
5495 2011-10-19  Jan Hubicka  <jh@suse.cz>
5496
5497         * cgraphunit.c (handle_alias_pairs): Also handle wekref with
5498         destination declared.
5499         (output_weakrefs): New function.
5500         * varpool.c (varpool_create_variable_alias): Handle external aliases.
5501
5502 2011-10-19  Jakub Jelinek  <jakub@redhat.com>
5503
5504         * dwarf2out.c (loc_descriptor): For SUBREG pass SUBREG_REG's mode as
5505         second argument instead of mode.
5506
5507 2011-10-18  Jakub Jelinek  <jakub@redhat.com>
5508
5509         * config/i386/i386.c (ix86_expand_vec_perm): In merge_two use
5510         mode SUBREG of operands[0] as target.
5511         (valid_perm_using_mode_p): Don't ignore higher bits of d->perm.
5512         (expand_vec_pshufb): For V8SImode vmode emit avx2_permvarv8si.
5513         (expand_vec_perm_1): Handle identity and some broadcast
5514         permutations.
5515         (expand_vec_perm_interleave2): Handle also 32-byte modes, using
5516         vperm2[fi]128 or vpunpck[lh]* followed by single insn permutation.
5517         For d->testing_p return true earlier to avoid creating more GC
5518         garbage.
5519         (expand_vec_perm_vpermq_perm_1): New function.
5520         (expand_vec_perm_vpshufb2_vpermq): For d->testing_p return true
5521         earlier to avoid creating more GC garbage.  Fix handling of
5522         V16HImode.  Avoid some SUBREGs in SET_DEST.
5523         (expand_vec_perm_broadcast_1): Return false for 32-byte integer
5524         vector modes.
5525         (expand_vec_perm_vpshufb4_vpermq2): New function.
5526         (ix86_expand_vec_perm_builtin_1): Call expand_vec_perm_vpermq_perm_1
5527         and expand_vec_perm_vpshufb4_vpermq2.
5528
5529 2011-10-18  Andrew Stubbs  <ams@codesourcery.com>
5530
5531         * config/arm/driver-arm.c (host_detect_local_cpu): Close the file
5532         before exiting.
5533
5534 2011-10-18  Andrew Stubbs  <ams@codesourcery.com>
5535
5536         PR tree-optimization/50717
5537         * tree-ssa-math-opts.c (is_widening_mult_p): Remove the 'type'
5538         parameter.  Calculate 'type' from stmt.
5539         (convert_mult_to_widen): Update call the is_widening_mult_p.
5540         (convert_plusminus_to_widen): Likewise.
5541
5542 2011-10-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5543
5544         * config/spu/spu.c (struct machine_function): New data structure.
5545         (spu_init_machine_status): New function.
5546         (spu_option_override): Install it.
5547         (get_pic_reg): Set and use cfun->machine->pic_reg.
5548         (spu_split_immediate): Do not set crtl->uses_pic_offset_table.
5549         (need_to_save_reg): Use cfun->machine->pic_reg instead of
5550         checking crtl->uses_pic_offset_table.
5551         (spu_expand_prologue): Likewise.
5552
5553 2011-10-18  Jakub Jelinek  <jakub@redhat.com>
5554
5555         PR tree-optimization/50735
5556         * function.c (gimplify_parameters): Use create_tmp_var instead of
5557         create_tmp_reg.  If parm is not TREE_ADDRESSABLE and type is complex
5558         or vector type, set DECL_GIMPLE_REG_P.
5559
5560 2011-10-18  Andrew Stubbs  <ams@codesourcery.com>
5561
5562         * config.host (arm*-*-linux*): Add driver-arm.o and x-arm.
5563         * config/arm/arm.opt: Add 'native' processor_type and
5564         arm_arch enum values.
5565         * config/arm/arm.h (host_detect_local_cpu): New prototype.
5566         (EXTRA_SPEC_FUNCTIONS): New define.
5567         (MCPU_MTUNE_NATIVE_SPECS): New define.
5568         (DRIVER_SELF_SPECS): New define.
5569         * config/arm/driver-arm.c: New file.
5570         * config/arm/x-arm: New file.
5571         * doc/invoke.texi (ARM Options): Document -mcpu=native,
5572         -mtune=native and -march=native.
5573
5574 2011-10-18  Alexander Monakov  <amonakov@ispras.ru>
5575
5576         PR rtl-optimization/50205
5577         * sel-sched.c (count_occurrences_1): Simplify on the assumption that
5578         p->x is a register.  Forbid substitution when the same register is
5579         found in a different mode.
5580         (count_occurrences_equiv): Assert that 'what' is a register.
5581
5582 2011-10-18  Richard Guenther  <rguenther@suse.de>
5583
5584         PR tree-optimization/50767
5585         * tree-ssa-pre.c (create_expression_by_pieces): Update the
5586         folded statement.
5587
5588 2011-10-18  Julian Brown  <julian@codesourcery.com>
5589
5590         * config/arm/arm.c (arm_block_move_unaligned_straight)
5591         (arm_adjust_block_mem, arm_block_move_unaligned_loop)
5592         (arm_movmemqi_unaligned): New.
5593         (arm_gen_movmemqi): Support unaligned block copies.
5594
5595 2011-10-18  Ira Rosen  <ira.rosen@linaro.org>
5596
5597         * doc/md.texi (vec_widen_ushiftl_hi, vec_widen_ushiftl_lo,
5598         vec_widen_sshiftl_hi, vec_widen_sshiftl_lo): Document.
5599         * tree-pretty-print.c (dump_generic_node): Handle WIDEN_LSHIFT_EXPR,
5600         VEC_WIDEN_LSHIFT_HI_EXPR and VEC_WIDEN_LSHIFT_LO_EXPR.
5601         (op_code_prio): Likewise.
5602         (op_symbol_code): Handle WIDEN_LSHIFT_EXPR.
5603         * optabs.c (optab_for_tree_code): Handle
5604         VEC_WIDEN_LSHIFT_HI_EXPR and VEC_WIDEN_LSHIFT_LO_EXPR.
5605         (init-optabs): Initialize optab codes for vec_widen_u/sshiftl_hi/lo.
5606         * optabs.h (enum optab_index): Add OTI_vec_widen_u/sshiftl_hi/lo.
5607         * genopinit.c (optabs): Initialize the new optabs.
5608         * expr.c (expand_expr_real_2): Handle
5609         VEC_WIDEN_LSHIFT_HI_EXPR and VEC_WIDEN_LSHIFT_LO_EXPR.
5610         * gimple-pretty-print.c (dump_binary_rhs): Likewise.
5611         * tree-vectorizer.h (NUM_PATTERNS): Increase to 8.
5612         * tree.def (WIDEN_LSHIFT_EXPR, VEC_WIDEN_LSHIFT_HI_EXPR,
5613         VEC_WIDEN_LSHIFT_LO_EXPR): New.
5614         * cfgexpand.c (expand_debug_expr): Handle new tree codes.
5615         * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
5616         vect_recog_widen_shift_pattern.
5617         (vect_handle_widen_mult_by_const): Rename...
5618         (vect_handle_widen_op_by_const): ...to this.  Handle shifts.
5619         Add a new argument, update documentation.
5620         (vect_recog_widen_mult_pattern): Assume that only second
5621         operand can be constant.  Update call to
5622         vect_handle_widen_op_by_const.
5623         (vect_recog_over_widening_pattern): Fix typo.
5624         (vect_recog_widen_shift_pattern): New.
5625         * tree-vect-stmts.c (vectorizable_type_promotion): Handle
5626         widening shifts.
5627         (supportable_widening_operation): Likewise.
5628         * tree-inline.c (estimate_operator_cost): Handle new tree codes.
5629         * tree-vect-generic.c (expand_vector_operations_1): Likewise.
5630         * tree-cfg.c (verify_gimple_assign_binary): Likewise.
5631         * config/arm/neon.md (neon_vec_<US>shiftl_<mode>): New.
5632         (vec_widen_<US>shiftl_lo_<mode>, neon_vec_<US>shiftl_hi_<mode>,
5633         vec_widen_<US>shiftl_hi_<mode>, neon_vec_<US>shift_left_<mode>):
5634         Likewise.
5635         * config/arm/predicates.md (const_neon_scalar_shift_amount_operand):
5636         New.
5637         * config/arm/iterators.md (V_innermode): New.
5638         * tree-vect-slp.c (vect_build_slp_tree): Require same shift operand
5639         for widening shift.
5640
5641 2011-10-18  Richard Guenther  <rguenther@suse.de>
5642
5643         * tree-ssa-alias.h (struct pt_solution): Remove
5644         vars_contains_restrict member.
5645         (pt_solutions_same_restrict_base): Remove.
5646         (pt_solution_set): Adjust.
5647         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Remove
5648         vars_contains_restrict handling.
5649         (dump_points_to_solution): Likewise.
5650         (ptr_derefs_may_alias_p): Do not call pt_solutions_same_restrict_base.
5651         * tree-ssa-structalias.c (struct variable_info): Remove is_restrict_var
5652         field.
5653         (new_var_info): Do not initialize it.
5654         (ipa_escaped_pt): Adjust.
5655         (make_constraint_from_restrict): Make the tag global.
5656         (make_constraint_from_global_restrict): New function.
5657         (make_constraint_from_heapvar): Remove.
5658         (create_variable_info_for): Do not make restrict vars point
5659         to NONLOCAL.
5660         (intra_create_variable_infos): Likewise.
5661         (find_what_var_points_to): Remove vars_contains_restrict handling.
5662         (pt_solution_set): Adjust.
5663         (pt_solution_ior_into): Likewise.
5664         (pt_solutions_same_restrict_base): Remove.
5665         (compute_points_to_sets): Do not test is_restrict_var.
5666         * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
5667         * gimple-pretty-print.c (pp_points_to_solution): Likewise.
5668
5669 2011-10-18  Tom de Vries  <tom@codesourcery.com>
5670
5671         PR tree-optimization/50672
5672         * tree-ssa-dce.c (mark_virtual_operand_for_renaming): New function,
5673         factored out of ...
5674         (mark_virtual_phi_result_for_renaming): Use
5675         mark_virtual_operand_for_renaming.
5676         * tree-flow.h (mark_virtual_operand_for_renaming): Declare.
5677         * tree-ssa-tail-merge.c (release_last_vdef): New function.
5678         (purge_bbs): Add update_vops parameter.  Call release_last_vdef for each
5679         deleted basic block.
5680         (tail_merge_optimize): Add argument to call to purge_bbs.
5681
5682 2011-10-18  Richard Guenther  <rguenther@suse.de>
5683
5684         PR middle-end/50716
5685         * expr.c (get_object_or_type_alignment): New function.
5686         (expand_assignment): Use it.
5687         (expand_expr_real_1): Likewise.
5688
5689 2011-10-18  Dodji Seketeli  <dodji@redhat.com>
5690
5691         PR bootstrap/50760
5692         * input.c (dump_line_table_statistics): Use long, not size_t.
5693
5694 2011-10-17  Eric Botcazou  <ebotcazou@adacore.com>
5695
5696         * config/sparc/sparc.md (in_call_delay): Fix formatting issues.
5697
5698 2011-10-17  Simon Baldwin  <simonb@google.com>
5699             Ian Lance Taylor  <iant@google.com>
5700
5701         * configure.ac: Add --with-native-system-header-dir.  Set and
5702         substitute NATIVE_SYSTEM_HEADER_DIR.  Use native_system_header
5703         when setting target_header_dir.
5704         * config.gcc: Always set native_system_header_dir.
5705         (*-*-gnu*): Set native_system_header_dir.  Don't use t-gnu.
5706         (i[34567]86-pc-msdosdjgpp*): Set native_system_header_dir.  Don't
5707         use i386/t-djgpp.
5708         (i[34567]86-*-mingw* | x86_64-*-mingw*): Set
5709         native_system_header_dir.
5710         (spu-*-elf*): Set native_system_header_dir.
5711         * Makefile.in (NATIVE_SYSTEM_HEADER_DIR): Set to
5712         @NATIVE_SYSTEM_HEADER_DIR@.
5713         (PREPROCESSOR_DEFINES): Define NATIVE_SYSTEM_HEADER_DIR.
5714         * cppdefault.c (STANDARD_INCLUDE_DIR): Don't define.
5715         (NATIVE_SYSTEM_HEADER_COMPONENT): Rename from
5716         STANDARD_INCLUDE_COMPONENT.
5717         (cpp_include_defaults): Don't use SYSTEM_INCLUDE_DIR.  Rename
5718         STANDARD_INCLUDE_DIR to NATIVE_SYSTEM_HEADER_DIR.
5719         * system.h: Poison SYSTEM_INCLUDE_DIR, STANDARD_INCLUDE_DIR, and
5720         STANDARD_INCLUDE_COMPONENT.
5721         * config/i386/t-mingw32 (NATIVE_SYSTEM_HEADER_DIR): Remove.
5722         * config/i386/t-mingw-w32: Likewise.
5723         * config/i386/t-mingw-w64: Likewise.
5724         * config/spu/t-spu-elf: Likewise.
5725         * config/i386/t-djgpp: Remove.
5726         * config/t-gnu: Remove.
5727         * config/i386/mingw32.h (STANDARD_INCLUDE_DIR): Don't define.
5728         (NATIVE_SYSTEM_HEADER_COMPONENT): Rename from
5729         STANDARD_INCLUDE_COMPONENT.
5730         * config/i386/djgpp.h (STANDARD_INCLUDE_DIR): Don't define.
5731         * config/spu/spu-elf.h: Likewise.
5732         * config/vms/xm-vms.h: Likewise.
5733         * config/gnu.h: Likewise.
5734         * config/openbsd.h (INCLUDE_DEFAULTS): Change STANDARD_INCLUDE_DIR
5735         and STANDARD_INCLUDE_COMPONENT to NATIVE_SYSTEM_HEADER_DIR and
5736         NATIVE_SYSTME_HEADER_COMPONENT.
5737         * doc/install.texi (Configuration): Document
5738         --with-native-system-header-dir.  Mention it in the documentation
5739         for --with-sysroot and --with-build-sysroot.
5740         * doc/tm.texi.in (Driver): Don't document SYSTEM_INCLUDE_DIR or
5741         STANDARD_INCLUDE_DIR.  Rename STANDARD_INCLUDE_COMPONENT to
5742         NATIVE_SYSTEM_HEADER_COMPONENT.  Rename uses of
5743         STANDARD_INCLUDE_DIR to NATIVE_SYSTEM_HEADER_DIR.
5744         * doc/fragments.texi (Target Fragment): Don't document
5745         NATIVE_SYSTEM_HEADER_DIR.
5746         * configure, doc/tm.texi: Rebuild.
5747
5748 2011-10-17  Richard Henderson  <rth@redhat.com>
5749
5750         * config/sparc/sparc.md: Use register_or_zero_operand where rJ
5751         is the constraint.
5752
5753         * config/sparc/sparc.md (vec_perm_constv8qi, vec_perm<mode>): New
5754         patterns.
5755         * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): New function.
5756         * config/sparc/sparc-protos.h (sparc_expand_vec_perm_bmask): Declare.
5757
5758 2011-10-17  David S. Miller  <davem@davemloft.net>
5759
5760         * config/sparc/sparc-modes.def: Add single entry vector modes for
5761         DImode and SImode.
5762         * config/sparc/sparc.md (V32, V32I, V64, V64I, V64N8): Delete
5763         mode iterators.
5764         (mov<V32:mode>): Revert back to plain SFmode pattern.
5765         (*movsf_insn): Likewise.
5766         (mov<V64:mode>): Revert back to plain DFmode pattern.
5767         (*movdf_insn_sp32): Likewise.
5768         (*movdf_insn_sp32_v9): Likewise.
5769         (*movdf_insn_sp64): Likewise.
5770         (V64 mode splitters) Likewise.
5771         (addsi3): Remove VIS alternatives.
5772         (subsi3): Likewise.
5773         (and<V64I:mode>3): Revert to DImode only pattern.
5774         (and<V64I:mode>3_sp32): Likewise.
5775         (*and<V64I:mode>3_sp64): Likewise.
5776         (and<V32I:mode>3): Likewise.
5777         (*and_not_<V64I:mode>_sp32): Likewise.
5778         (*and_not_<V64I:mode>_sp64): Likewise.
5779         (*and_not_<V32I:mode>): Likewise.
5780         (ior<V64I:mode>3): Likewise.
5781         (*ior<V64I:mode>3_sp32): Likewise.
5782         (*ior<V64I:mode>3_sp64): Likewise.
5783         (ior<V32I:mode>3): Likewise.
5784         (*or_not_<V64I:mode>_sp32): Likewise.
5785         (*or_not_<V64I:mode>_sp64): Likewise.
5786         (*or_not_<V32I:mode>): Likewise.
5787         (xor<V64I:mode>3): Likewise.
5788         (*xor<V64I:mode>3_sp32): Likewise.
5789         (*xor<V64I:mode>3_sp64): Likewise.
5790         (xor<V32I:mode>3): Likewise.
5791         (V64I mode splitters): Likewise.
5792         (*xor_not_<V64I:mode>_sp32): Likewise.
5793         (*xor_not_<V64I:mode>_sp64): Likewise.
5794         (*xor_not_<V32I:mode>): Likewise.
5795         (one_cmpl<V64I:mode>2): Likewise.
5796         (*one_cmpl<V64I:mode>2_sp32): Likewise.
5797         (*one_cmpl<V64I:mode>2_sp64): Likewise.
5798         (one_cmpl<V32I:mode>2): Likewise.
5799         (VM32, VM64, VMALL): New mode iterators.
5800         (vbits, vconstr, vfptype): New mode attributes.
5801         (mov<VMALL:mode>): New expander.
5802         (*mov<VM32:mode>_insn): New insn.
5803         (*mov<VM64:mode>_insn_sp64): New insn.
5804         (*mov<VM64:mode>_insn_sp32): New insn, and associated splitter
5805         specifically for the register to memory case.
5806         (vec_init<mode>): New expander.
5807         (VADDSUB): New mode iterator.
5808         (<plusminus_insn>v2si3, <plusminus_insn>v2hi3): Remove and replace
5809         with...
5810         (<plusminus_insn><mode>3): New consolidated pattern.
5811         (VL): New mode iterator for logical operations.
5812         (vlsuf): New more attribute.
5813         (vlop): New code iterator.
5814         (vlinsn, vlninsn): New code attributes.
5815         (<code><mode>3): New insn to non-negated vector logical ops.
5816         (*not_<code><mode>3): Likewise for negated variants.
5817         (*nand<mode>_vis): New insn.
5818         (vlnotop): New code iterator.
5819         (*<code>_not1<mode>_vis, *<code>_not2<mode>_vis): New insns.
5820         (one_cmpl<mode>2): New insn.
5821         (faligndata<V64I:mode>_vis): Rewrite to use VM64 iterator.
5822         (bshuffle<VM64:mode>_vis): Likewise.
5823         (v<vis3_shift_patname><mode>3): Use GCM mode iterator.
5824         (fp<plusminus_insn>64_vis): Use V1DI mode.
5825         (VASS mode iterator): Use V1SI not SI mode.
5826         * config/sparc/sparc.c (sparc_vis_init_builtins): Account for
5827         single-entry vector mode changes.
5828         (sparc_expand_builtin): Likewise.
5829         (sparc_expand_vector_init): New function.
5830         * config/sparc/sparc-protos.h (sparc_expand_vector_init): Declare.
5831
5832 2011-10-17  Kai Tietz  <ktietz@redhat.com>
5833
5834         * fold-const.c (simple_operand_p_2): New function.
5835         (fold_truthop): Rename to
5836         (fold_truth_andor_1): function name.
5837         Additionally remove branching creation for logical and/or.
5838         (fold_truth_andor): Handle branching creation for logical and/or here.
5839
5840 2011-10-17  Andi Kleen  <ak@linux.intel.com>
5841
5842         * ggc-page.c (USING_MADVISE): Adjust ifdef to check for USING_MMAP.
5843
5844 2011-10-17  Georg-Johann Lay  <avr@gjlay.de>
5845
5846         * config/avr/avr.h (ASSEMBLER_DIALECT): Remove.
5847         * config/avr/avr.md (mcu_have_movw, mcu_mega): Remove attributes.
5848         (adjust_len): Add alternative "call".
5849         (isa, enabled): New insn attributes.
5850         (length): Use match_test with AVR_HAVE_JMP_CALL instead of
5851         mcu_mega attribute.
5852         (*sbrx_branch<mode>): Ditto.
5853         (*sbrx_and_branch<mode>): Ditto.
5854         (*sbix_branch): Ditto.
5855         (*sbix_branch_bit7): Ditto.
5856         (*sbix_branch_tmp): Ditto.
5857         (*sbix_branch_tmp_bit7): Ditto.
5858         (jump): Ditto.
5859         (negsi2): Use attribute "isa" instead of assembler dialect.
5860         (extendhisi2): Ditto.
5861         (call_insn, call_value_insn): Set adjust_len attribute.
5862         (indirect_jump): Indent to coding rules.
5863         (call_prologue_saves): Use isa attribute instead of mcu_mega.
5864         (epilogue_restores): Ditto.  Fix setting of SP as described in the
5865         RTX pattern.
5866         (*indirect_jump): Fusion of *jcindirect_jump, *njcindirect_jump
5867         and *indirect_jump_avr6.
5868         (*tablejump): Fusion of *tablejump_rjmp and *tablejump_lib.
5869         (*jcindirect_jump, *njcindirect_jump, *indirect_jump_avr6): Remove.
5870         (*tablejump_rjmp, *tablejump_lib): Remove.
5871         * config/avr/avr.c (adjust_insn_length): Handle ADJUST_LEN_CALL.
5872
5873 2011-10-17  Paolo Carlini  <paolo.carlini@oracle.com>
5874
5875         PR c++/50757
5876         * doc/invoke.texi ([Wnonnull]): Update.
5877
5878 2011-10-17  Richard Henderson  <rth@redhat.com>
5879
5880         PR 50746
5881         * optabs.c (expand_vec_perm_expr): Fix indexing error.
5882
5883 2011-10-17  Sergio Durigan Junior  <sergiodj@redhat.com>
5884
5885         * configure.ac: Display `yes' if the SystemTap header has been found.
5886         * configure: Regenerate.
5887
5888 2011-10-08  Andi Kleen  <ak@linux.intel.com>
5889
5890         PR other/50636
5891         * config.in, configure: Regenerate.
5892         * configure.ac (madvise): Add to AC_CHECK_FUNCS.
5893         * ggc-page.c (USING_MADVISE): Add.
5894         (page_entry): Add discarded field.
5895         (alloc_page): Check for discarded pages.
5896         (release_pages): Add USING_MADVISE branch.
5897
5898 2011-10-17  Richard Guenther  <rguenther@suse.de>
5899
5900         PR tree-optimization/50729
5901         * tree-vrp.c (extract_range_from_unary_expr_1): Remove redundant test.
5902         (simplify_conversion_using_ranges): Properly test the
5903         intermediate result.
5904
5905 2011-10-15  Tom Tromey  <tromey@redhat.com>
5906             Dodji Seketeli  <dodji@redhat.com>
5907
5908         * ggc.h (ggc_round_alloc_size): Declare new public entry point.
5909         * ggc-none.c (ggc_round_alloc_size): New public stub function.
5910         * ggc-page.c (ggc_alloced_size_order_for_request): New static
5911         function.  Factorized from ggc_internal_alloc_stat.
5912         (ggc_round_alloc_size): New public function.  Uses
5913         ggc_alloced_size_order_for_request.
5914         (ggc_internal_alloc_stat): Use ggc_alloced_size_order_for_request.
5915         * ggc-zone.c (ggc_round_alloc_size): New public function extracted
5916         from ggc_internal_alloc_zone_stat.
5917         (ggc_internal_alloc_zone_stat): Use ggc_round_alloc_size.
5918         * toplev.c (general_init): Initialize
5919         line_table->alloced_size_for_request.
5920
5921 2011-10-15  Tom Tromey  <tromey@redhat.com>
5922             Dodji Seketeli  <dodji@redhat.com>
5923
5924         * input.c (ONE_K, ONE_M, SCALE, STAT_LABEL, FORMAT_AMOUNT): New macros.
5925         (num_expanded_macros_counter, num_macro_tokens_counter): Declare
5926         new counters.
5927         (dump_line_table_statistics): Define new function.
5928         * input.h (dump_line_table_statistics): Declare new function.
5929         * toplev.c (dump_memory_report): Call dump_line_table_statistics.
5930
5931 2011-10-15  Tom Tromey  <tromey@redhat.com>
5932             Dodji Seketeli  <dodji@redhat.com>
5933
5934         * doc/cppopts.texi: Document -fdebug-cpp.
5935         * doc/invoke.texi: Add -fdebug-cpp to the list of preprocessor options.
5936
5937 2011-10-15  Tom Tromey  <tromey@redhat.com>
5938             Dodji Seketeli  <dodji@redhat.com>
5939
5940         * gcc/diagnostic.h (diagnostic_report_current_module): Add a
5941         location parameter.
5942         * diagnostic.c (diagnostic_report_current_module): Add a location
5943         parameter to the function definition.  Use it instead of
5944         input_location.  Resolve the virtual location rather than just
5945         looking up its map and risking to touch a resulting macro map.
5946         (default_diagnostic_starter): Pass the relevant diagnostic
5947         location to diagnostic_report_current_module.
5948         * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): New.
5949         (virt_loc_aware_diagnostic_finalizer): Likewise.
5950         (diagnostic_report_current_function): Pass the
5951         relevant location to diagnostic_report_current_module.
5952         * tree-diagnostic.h (virt_loc_aware_diagnostic_finalizer): Declare
5953         new function.
5954         * toplev.c (general_init): By default, use the new
5955         virt_loc_aware_diagnostic_finalizer as diagnostic finalizer.
5956         * Makefile.in: Add vec.h dependency to tree-diagnostic.c.
5957
5958 2011-10-15  Tom Tromey  <tromey@redhat.com>
5959             Dodji Seketeli  <dodji@redhat.com>
5960
5961         * doc/cppopts.texi (-ftrack-macro-expansion): Document new option.
5962         * doc/invoke.texi (-ftrack-macro-expansion): Add this to the list of
5963         preprocessor related options.
5964
5965 2011-10-15  Tom Tromey  <tromey@redhat>
5966             Dodji Seketeli  <dodji@redhat.com>
5967
5968         * input.h (struct expanded_location): Move to libcpp/line-map.h.
5969         (LOCATION_COLUMN): New accessor
5970         (in_system_header_at): Use linemap_location_in_system_header_p.
5971         * diagnostic.c (diagnostic_report_current_module): Adjust to avoid
5972         touching the internals of struct line_map.  Use the public API instead.
5973         (diagnostic_report_diagnostic): Don't use relational operator '<'
5974         on virtual locations.  Use linemap_location_before_p instead.
5975         * input.c (expand_location): Adjust to expand to the tokens'
5976         spelling location when macro location tracking is on.
5977
5978
5979 2011-10-08  Andi Kleen  <ak@linux.intel.com>
5980
5981         * ggc-page.c (GGC_QUIRE_SIZE): Increase to 512
5982
5983 2011-10-13  Andi Kleen  <ak@linux.intel.com>
5984
5985         * toplev.c (compile_file): Rename __gnu_slim_lto to __gnu_lto_slim.
5986
5987 2011-10-16  Ira Rosen  <ira.rosen@linaro.org>
5988
5989         PR tree-optimization/50727
5990         * tree-vect-patterns.c (vect_operation_fits_smaller_type): Add
5991         DEF_STMT to the list of statements to be replaced by the
5992         pattern statements.
5993
5994 2011-10-16  Eric Botcazou  <ebotcazou@adacore.com>
5995
5996         PR rtl-optimization/50615
5997         * combine.c (distribute_notes) <REG_ARGS_SIZE>: Skip if I3 is a no-op.
5998
5999 2011-10-16  Jakub Jelinek  <jakub@redhat.com>
6000
6001         PR tree-optimization/50596
6002         * tree-vectorizer.h (NUM_PATTERNS): Increase to 7.
6003         * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
6004         vect_recog_bool_pattern.
6005         (check_bool_pattern, adjust_bool_pattern_cast,
6006         adjust_bool_pattern, vect_recog_bool_pattern): New functions.
6007
6008 2011-10-16  Ira Rosen  <ira.rosen@linaro.org>
6009
6010         * tree-vect-stmts.c (vectorizable_load): For SLP without permutation
6011         treat the first load of the node as the first element in its
6012         interleaving chain.
6013         * tree-vect-slp.c (vect_get_and_check_slp_defs): Swap the operands if
6014         necessary and possible.
6015         (vect_build_slp_tree): Add new argument.  Allow load groups of any size
6016         in basic blocks.  Keep all the loads for further permutation check.
6017         Use the new argument to determine if there is a permutation.  Update
6018         the recursive calls.
6019         (vect_supported_load_permutation_p): Allow subchains of interleaving
6020         chains in basic block vectorization.
6021         (vect_analyze_slp_instance): Update the call to vect_build_slp_tree.
6022         Check load permutation based on the new parameter.
6023         (vect_schedule_slp_instance): Don't start from the first element in
6024         interleaving chain unless the loads are permuted.
6025
6026 2011-10-15  Jan Hubicka  <jh@suse.cz>
6027
6028         PR target/48668
6029         PR target/50689
6030         * cgraphunit.c (cgraph_expand_function): Expand thunks and alises
6031         after function body.
6032
6033 2011-10-15  Richard Henderson  <rth@redhat.com>
6034
6035         * tree-vect-slp.c: Include langhooks.h.
6036         (vect_create_mask_and_perm): Emit VEC_PERM_EXPR, not a builtin.
6037         (vect_transform_slp_perm_load): Use can_vec_perm_expr_p.  Simplify
6038         mask creation for VEC_PERM_EXPR.
6039         * tree-vect-stmts.c (perm_mask_for_reverse): Return the mask,
6040         not the builtin.
6041         (reverse_vec_elements): Emit VEC_PERM_EXPR not a builtin.
6042         * Makefile.in (tree-vect-slp.o): Update dependency.
6043         * optabs.c (can_vec_perm_expr_p): Allow NULL as unknown constant.
6044
6045 2011-10-15  Alan Modra  <amodra@gmail.com>
6046
6047         PR bootstrap/50738
6048         * ifcvt.c (dead_or_predicable): Revert accidental commit with
6049         HAVE_simple_return test.
6050
6051 2011-10-15  Alan Modra  <amodra@gmail.com>
6052
6053         * ifcvt.c (dead_or_predicable): Disable if-conversion when
6054         doing so is likely to kill a shrink-wrapping opportunity.
6055
6056         PR rtl-optimization/49941
6057         * jump.c (mark_jump_label_1): Set JUMP_LABEL for simple_return jumps.
6058
6059         * rtl.h (set_return_jump_label): Declare.
6060         * function.c (set_return_jump_label): New function, extracted..
6061         (thread_prologue_and_epilogue_insns): ..from here.  Use it in
6062         another instance to set return jump_label.
6063         * cfgrtl.c (force_nonfallthru_and_redirect): Use set_return_jump_label.
6064         * reorg.c (find_end_label): Likewise.
6065
6066 2011-10-14  David S. Miller  <davem@davemloft.net>
6067
6068         * config/sparc/sol2.h: Protect -m{cpu,tune}=native handling
6069         with a more complete cpp test.
6070         * config/sparc/linux64.h: Likewise.
6071         * config/sparc/linux.h: Likewise.
6072         * config/sparc/sparc.opt (sparc_debug): New target variable.
6073         (mdebug): New target option.
6074         * config/sparc/sparc.h (MASK_DEBUG_OPTIONS, MASK_DEBUG_ALL,
6075         TARGET_DEBUG_OPTIONS): New defines.
6076         * config/sparc/sparc.c (debug_target_flag_bits,
6077         debug_target_flags): New functions.
6078         (sparc_option_override): Add name strings back to cpu_table[].
6079         Parse -mdebug string.  When TARGET_DEBUG_OPTIONS is true, print
6080         out the target flags before and after override processing as well
6081         as the selected cpu.  If MASK_V8PLUS, make sure that the selected
6082         cpu is at least v9.
6083
6084 2011-10-15  Oleg Endo  <oleg.endo@t-online.de>
6085
6086         PR target/49263
6087         * config/sh/sh.h (ZERO_EXTRACT_ANDMASK): New macro.
6088         * config/sh/sh.c (sh_rtx_costs): Add test instruction case.
6089         * config/sh/sh.md (tstsi_t): Name existing insn.  Make inner
6090         and instruction commutative.
6091         (tsthi_t, tstqi_t, tstqi_t_zero, tstsi_t_and_not,
6092         tstsi_t_zero_extract_eq, tstsi_t_zero_extract_xor,
6093         tstsi_t_zero_extract_subreg_xor_little,
6094         tstsi_t_zero_extract_subreg_xor_big): New insns.
6095         (*movsicc_t_false, *movsicc_t_true): Replace space with tab in
6096         asm output.
6097         (*andsi_compact): Reorder alternatives so that K08 is considered first.
6098
6099 2011-10-14  Eric Botcazou  <ebotcazou@adacore.com>
6100
6101         PR target/50354
6102         * config/sparc/linux64.h (TARGET_DEFAULT): Only override if the default
6103         processor is at least V9 and TARGET_64BIT_DEFAULT is defined.
6104
6105 2011-10-14  Gerald Pfeifer  <gerald@pfeifer.com>
6106
6107         * invoke.texi (AVR Options): Avoid \leq{}.
6108
6109 2011-10-14  Kai Tietz  <ktietz@redhat.com>
6110
6111         * gimplify.c (gimplify_expr): Take care that for bitwise-binary
6112         transformation the operands have compatible types.
6113
6114 2011-10-14  Jakub Jelinek  <jakub@redhat.com>
6115
6116         * config/i386/sse.md (vec_widen_smult_hi_v8hi,
6117         vec_widen_smult_lo_v8hi, vec_widen_umult_hi_v8hi,
6118         vec_widen_umult_lo_v8hi): Macroize using VI2_AVX2
6119         mode iterator and any_extend code iterator.
6120         (vec_widen_<s>mult_hi_v8si, vec_widen_<s>mult_lo_v8si): New expanders.
6121         (vec_widen_smult_hi_v4si, vec_widen_smult_lo_v4si): Enable
6122         also for TARGET_SSE4_1 using pmuldq insn.
6123         (sdot_prodv8hi): Macroize using VI2_AVX2 iterator.
6124         (sse2_sse4_1): New code attr.
6125         (udot_prodv4si): Macroize using any_extend code iterator.
6126         (<s>dot_prodv8si): New expander.
6127
6128 2011-10-14  Yakovlev Vladimir  <vladimir.b.yakovlev@intel.com>
6129
6130         * config/i386/i386.c (atom_cost): Changed cost for loading
6131         QImode using movzbl.
6132
6133 2011-10-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
6134
6135         * config/rs6000/rs6000.c (rs6000_init_builtins): Fix typo in my
6136         change on October 11th, 2011.
6137
6138 2011-10-14  Jakub Jelinek  <jakub@redhat.com>
6139
6140         * config/i386/sse.md (vec_interleave_high<mode>,
6141         vec_interleave_low<mode>): Add AVX2 expanders for VI_256 modes.
6142         * config/i386/i386.c (expand_vec_perm_interleave3): New function.
6143         (ix86_expand_vec_perm_builtin_1): Call it.
6144
6145 2011-10-14  Georg-Johann Lay  <avr@gjlay.de>
6146
6147         Fix thinko from r179765
6148         * config/avr/avr.c (avr_option_override): Don't override
6149         flag_omit_frame_pointer if not actually needed.
6150
6151 2011-10-14  Georg-Johann Lay  <avr@gjlay.de>
6152
6153         PR target/46278
6154         * doc/invoke.texi (AVR Options): Document -mstrict-X.
6155
6156         * config/avr/avr.opt (-mstrict-X): New option.
6157         (avr_strict_X): New variable reflecting -mstrict-X.
6158         * config/avr/avr.c (avr_reg_ok_for_addr_p): Add parameter
6159         outer_code and pass it down to avr_regno_mode_code_ok_for_base_p.
6160         (avr_legitimate_address_p): Pass outer_code to
6161         avr_reg_ok_for_addr_p and use that function in case PLUS.
6162         (avr_mode_code_base_reg_class): Depend on avr_strict_X.
6163         (avr_regno_mode_code_ok_for_base_p): Ditto, and depend on outer_code.
6164         (avr_option_override): Disable -fcaller-saves if -mstrict-X is on.
6165
6166 2011-10-14  Jakub Jelinek  <jakub@redhat.com>
6167
6168         * config/i386/sse.md (neg<mode>2): Use VI_AVX2 iterator instead
6169         of VI_128.
6170
6171         * config/i386/sse.md (mulv2di3): Macroize using VI8_AVX2 iterator.
6172         (ashl<mode>3): Use VI248_AVX2 iterator instead of VI248_128.
6173         Use <sseinsnmode> instead of TI in mode attr.
6174
6175 2011-10-14  David Alan Gilbert  <david.gilbert@linaro.org>
6176
6177         * config/arm/linux-atomic-64bit.c: New (based on linux-atomic.c).
6178         * config/arm/linux-atomic.c: Change comment to point to 64bit version.
6179         (SYNC_LOCK_RELEASE): Instantiate 64bit version.
6180         * config/arm/t-linux-eabi: Pull in linux-atomic-64bit.c.
6181
6182 2011-10-14  David Alan Gilbert  <david.gilbert@linaro.org>
6183
6184         * config/arm/arm.c (arm_output_ldrex): Support ldrexd.
6185         (arm_output_strex): Support strexd.
6186         (arm_output_it): New helper to output it in Thumb2 mode only.
6187         (arm_output_sync_loop): Support DI mode.  Change comment to
6188         not support const_int.
6189         (arm_expand_sync): Support DI mode.
6190         * config/arm/arm.h (TARGET_HAVE_LDREXBHD): Split into LDREXBH
6191         and LDREXD.
6192         * config/arm/iterators.md (NARROW): move from sync.md.
6193         (QHSD): New iterator for all current ARM integer modes.
6194         (SIDI): New iterator for SI and DI modes only.
6195         * config/arm/sync.md (sync_predtab): New mode_attr.
6196         (sync_compare_and_swapsi): Fold into sync_compare_and_swap<mode>.
6197         (sync_lock_test_and_setsi): Fold into sync_lock_test_and_setsi<mode>.
6198         (sync_<sync_optab>si): Fold into sync_<sync_optab><mode>.
6199         (sync_nandsi): Fold into sync_nand<mode>.
6200         (sync_new_<sync_optab>si): Fold into sync_new_<sync_optab><mode>.
6201         (sync_new_nandsi): Fold into sync_new_nand<mode>.
6202         (sync_old_<sync_optab>si): Fold into sync_old_<sync_optab><mode>.
6203         (sync_old_nandsi): Fold into sync_old_nand<mode>.
6204         (sync_compare_and_swap<mode>): Support SI & DI.
6205         (sync_lock_test_and_set<mode>): Likewise.
6206         (sync_<sync_optab><mode>): Likewise.
6207         (sync_nand<mode>): Likewise.
6208         (sync_new_<sync_optab><mode>): Likewise.
6209         (sync_new_nand<mode>): Likewise.
6210         (sync_old_<sync_optab><mode>): Likewise.
6211         (sync_old_nand<mode>): Likewise.
6212         (arm_sync_compare_and_swapsi): Turn into iterator on SI & DI.
6213         (arm_sync_lock_test_and_setsi): Likewise.
6214         (arm_sync_new_<sync_optab>si): Likewise.
6215         (arm_sync_new_nandsi): Likewise.
6216         (arm_sync_old_<sync_optab>si): Likewise.
6217         (arm_sync_old_nandsi): Likewise.
6218         (arm_sync_compare_and_swap<mode> NARROW): use sync_predtab, fix indent.
6219         (arm_sync_lock_test_and_setsi<mode> NARROW): Likewise.
6220         (arm_sync_new_<sync_optab><mode> NARROW): Likewise.
6221         (arm_sync_new_nand<mode> NARROW): Likewise.
6222         (arm_sync_old_<sync_optab><mode> NARROW): Likewise.
6223         (arm_sync_old_nand<mode> NARROW): Likewise.
6224
6225 2011-10-14  David Alan Gilbert  <david.gilbert@linaro.org>
6226
6227         PR target/48126
6228         * config/arm/arm.c (arm_output_sync_loop): Move label before barrier.
6229
6230 2011-10-14  David Alan Gilbert  <david.gilbert@linaro.org>
6231
6232         * config/arm/arm.h (TARGET_HAVE_DMB_MCR): MCR Not available in Thumb1.
6233
6234 2011-10-14  Paolo Carlini  <paolo.carlini@oracle.com>
6235
6236         * doc/invoke.texi ([Wformat-zero-length]): Tidy.
6237
6238 2011-10-14  Jakub Jelinek  <jakub@redhat.com>
6239
6240         * gimple.c (walk_stmt_load_store_addr_ops): Call visit_addr also
6241         on COND_EXPR/VEC_COND_EXPR comparison operands if they are ADDR_EXPRs.
6242
6243 2011-10-14  Richard Guenther  <rguenther@suse.de>
6244
6245         PR tree-optimization/50723
6246         * ipa-split.c (split_function): Use GSI_CONTINUE_LINKING.
6247
6248 2011-10-14  Nicola Pero  <nicola.pero@meta-innovation.com>
6249
6250         * gengtype.c (files_rules): Added rules for objc/objc-map.h and
6251         objc/objc-map.c.
6252
6253 2011-10-14  Paolo Carlini  <paolo.carlini@oracle.com>
6254
6255         PR c++/17212
6256         * doc/invoke.texi ([Wformat-zero-length]): Update.
6257
6258 2011-10-14  Iain Sandoe  <iains@gcc.gnu.org>
6259
6260         PR bootstrap/50699
6261         * config/darwin.c (darwin_patch_builtin): Adjust argument type. Only
6262         build for powerpc targets.  (darwin_patch_builtins): Only build for
6263         powerpc targets.
6264
6265 2011-10-14  Jakub Jelinek  <jakub@redhat.com>
6266
6267         * config/i386/sse.md (*avx_cvtdq2pd256_2): Rename to...
6268         (avx_cvtdq2pd256_2): ... this.
6269         (sseunpackfltmode): New mode attr.
6270         (vec_unpacks_float_hi_v8hi, vec_unpacks_float_lo_v8hi,
6271         vec_unpacku_float_hi_v8hi, vec_unpacku_float_lo_v8hi): Macroize
6272         using VI2_AVX2 iterator.
6273         (vec_unpacku_float_hi_v8si, vec_unpacku_float_lo_v8si): New expanders.
6274
6275 2011-10-13  David S. Miller  <davem@davemloft.net>
6276
6277         * config/sparc/sparc.md (plusminus): New code iterator.
6278         (plusminus_insn): New code attr.
6279         (addv2si3, subv2si3, addv4hi3, subv4hi3, addv2hi3, subv2hi3): Merge
6280         using plusminus and plusminus_insn.
6281         (fpadd64_vis, fpsub64_vis): Likewise.
6282
6283 2011-10-13  Richard Henderson  <rth@redhat.com>
6284
6285         * doc/md.texi (vec_perm): Document fallback to byte permutation.
6286         * genopinit.c (optabs): Add vec_perm_const.
6287         * optabs.c (can_vec_perm_expr_p): Rename from expand_vec_perm_expr_p.
6288         Reject non-vector modes.  Allow fallback to byte permutation.
6289         (expand_vec_perm_expr_1): Split out from ...
6290         (expand_vec_perm_expr): ... here.  Allow fallback to byte permutation.
6291         * optabs.h (DOI_vec_perm_const, vec_perm_const_optab): New.
6292         * tree-vect-generic.c (lower_vec_perm): Update for name change.
6293
6294 2011-10-13  Richard Henderson  <rth@redhat.com>
6295
6296         * config/rs6000/altivec.md (vec_permv16qi): New pattern.
6297
6298         * config/rs6000/spu.md (vec_permv16qi): New pattern.
6299
6300         * config/i386/i386.c (ix86_expand_vec_perm_const): New.
6301         * config/i386/i386-protos.h: Update.
6302         * config/i386/sse.md (VEC_PERM_CONST): New mode iterator.
6303         (vec_perm_const<VEC_PERM_CONST>): New expander.
6304
6305         * optabs.c (expand_vector_broadcast): New.
6306         (expand_binop): Expand scalar shifts of vectors to vector shifts
6307         of vectors, if the former isn't supported.
6308         * tree-vect-generic.c (expand_vector_operations_1): Don't do that
6309         here; always simplify to scalar shift of vector if possible.
6310
6311         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Fix mode
6312         test for vector splat.
6313
6314 2011-10-13  Jakub Jelinek  <jakub@redhat.com>
6315
6316         * config/i386/sse.md (vec_set<mode>): Change V_128 iterator mode to V.
6317
6318 2011-10-13  Jakub Jelinek  <jakub@redhat.com>
6319             Richard Guenther  <rguenther@suse.de>
6320
6321         * tree-ssa.c (maybe_optimize_var): Drop TREE_ADDRESSABLE from vector
6322         or complex vars even if their DECL_UID is in not_reg_needs bitmap.
6323
6324 2011-10-13  Jakub Jelinek  <jakub@redhat.com>
6325
6326         * config/i386/sse.md (reduc_umin_v8hi): New pattern.
6327         * config/i386/i386.c (ix86_build_const_vector): Handle
6328         also V32QI, V16QI, V16HI and V8HI modes.
6329         (emit_reduc_half): New function.
6330         (ix86_expand_reduc): Use phminposuw insn for V8HImode UMIN.
6331         Use emit_reduc_half helper function.
6332
6333 2011-10-13  Lawrence Crowl  <crowl@google.com>
6334             Diego Novillo  <dnovillo@google.com>
6335
6336         * lto-streamer-in.c (input_struct_function_base): Factor out of ...
6337         (input_function): ... here.
6338         * lto-streamer-out.c (output_struct_function_base): Factor out of ...
6339         (output_function): ... here.
6340
6341 2011-10-13  Gabriel Charette  <gchare@google.com>
6342             Diego Novillo  <dnovillo@google.com>
6343
6344         * streamer-hooks.h (struct streamer_hooks): Add hooks
6345         input_location and output_location.
6346         * lto-streamer-in.c (lto_input_location): Use
6347         streamer_hooks.input_location, if set.
6348         * lto-streamer-out.c (lto_output_location): Use
6349         streamer_hooks.output_location, if set.
6350
6351 2011-10-13  Eric Botcazou  <ebotcazou@adacore.com>
6352
6353         * doc/invoke.texi (SPARC options): Document -mfix-at697f.
6354         * config/sparc/sparc.opt (mfix-at697f): New option.
6355         * config/sparc/sparc.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
6356         (sparc_reorg): New function.
6357
6358 2011-10-13  Richard Guenther  <rguenther@suse.de>
6359
6360         PR tree-optimization/50712
6361         * ipa-split.c (split_function): Always re-gimplify parameters
6362         when they are not gimple vals before passing them.  Properly
6363         check for type compatibility.
6364
6365 2011-10-13  Tom de Vries  <tom@codesourcery.com>
6366
6367         * function.c (gimplify_parameters): Set number of arguments of call to
6368         BUILT_IN_ALLOCA_WITH_ALIGN to 2.
6369
6370 2011-10-13  Tom de Vries  <tom@codesourcery.com>
6371
6372         * emit-rtl.c (set_mem_attributes_minus_bitpos): Set MEM_READONLY_P
6373         for static const strings.
6374         * varasm.c (build_constant_desc): Generate the memory location of the
6375         constant using gen_const_mem.
6376
6377 2011-10-13  Richard Guenther  <rguenther@suse.de>
6378
6379         PR tree-optimization/50698
6380         * tree-data-ref.c (split_constant_offset_1): Also process
6381         offsets of &MEM.
6382
6383 2011-10-12  David S. Miller  <davem@davemloft.net>
6384
6385         * config/sparc/sparc.md (UNSPEC_FPMERGE): Delete.
6386         (UNSPEC_MUL16AU, UNSPEC_MUL8, UNSPEC_MUL8SU, UNSPEC_MULDSU): New
6387         unspecs.
6388         (fpmerge_vis): Remove inaccurate comment, represent using vec_select
6389         of a vec_concat.
6390         (vec_interleave_lowv8qi, vec_interleave_highv8qi): New insns.
6391         (fmul8x16_vis, fmul8x16au_vis, fmul8sux16_vis, fmuld8sux16_vis):
6392         Reimplement as unspecs and remove inaccurate comments.
6393         (vis3_shift_patname): New code attr.
6394         (<vis3_shift_insn><vbits>_vis): Rename to
6395         "v<vis3_shift_patname><mode>3".
6396         (vis3_addsub_ss_patname): New code attr.
6397         (<vis3_addsub_ss_insn><vbits>_vis): Rename to
6398         "<vis3_addsub_ss_patname><mode>3".
6399         * config/sparc/sparc.c (sparc_vis_init_builtins): Update to
6400         accommodate pattern name changes.
6401
6402         * config/sparc/sparc.h: Do not force TARGET_VIS3 and TARGET_FMAF
6403         to zero when assembler lacks support for such instructions.
6404         * config/sparc/sparc.c (sparc_option_override): Clear MASK_VIS3
6405         and MASK_FMAF in defaults when assembler lacks necessary support.
6406
6407 2011-10-12  Jakub Jelinek  <jakub@redhat.com>
6408
6409         * config/i386/sse.md (vec_unpacks_lo_<mode>,
6410         vec_unpacks_hi_<mode>, vec_unpacku_lo_<mode>,
6411         vec_unpacku_hi_<mode>): Change VI124_128 mode to VI124_AVX2.
6412         * config/i386/i386.c (ix86_expand_sse_unpack): Handle
6413         V32QImode, V16HImode and V8SImode for TARGET_AVX2.
6414
6415         * config/i386/sse.md (vec_avx2): New mode_attr.
6416         (mulv16qi3): Macroize to cover also mulv32qi3 for TARGET_AVX2 into ...
6417         (mul<mode>3): ... this.
6418
6419         * config/i386/i386.md (UNSPEC_VPERMDI): Remove.
6420         * config/i386/i386.c (ix86_expand_vec_perm): Handle
6421         V16QImode and V32QImode for TARGET_AVX2.
6422         (MAX_VECT_LEN): Increase to 32.
6423         (expand_vec_perm_blend): Add support for 32-byte integer
6424         vectors with TARGET_AVX2.
6425         (valid_perm_using_mode_p): New function.
6426         (expand_vec_perm_pshufb): Add support for 32-byte integer
6427         vectors with TARGET_AVX2.
6428         (expand_vec_perm_vpshufb2_vpermq): New function.
6429         (expand_vec_perm_vpshufb2_vpermq_even_odd): New function.
6430         (expand_vec_perm_even_odd_1): Handle 32-byte integer vectors
6431         with TARGET_AVX2.
6432         (ix86_expand_vec_perm_builtin_1): Try expand_vec_perm_vpshufb2_vpermq
6433         and expand_vec_perm_vpshufb2_vpermq_even_odd.
6434         * config/i386/sse.md (VEC_EXTRACT_EVENODD_MODE): Add for TARGET_AVX2
6435         32-byte integer vector modes.
6436         (vec_pack_trunc_<mode>): Use VI248_AVX2 instead of VI248_128.
6437         (avx2_interleave_highv32qi, avx2_interleave_lowv32qi): Remove pasto.
6438         (avx2_pshufdv3, avx2_pshuflwv3, avx2_pshufhwv3): Generate
6439         4 new operands.
6440         (avx2_pshufd_1, avx2_pshuflw_1, avx2_pshufhw_1): Don't use
6441         match_dup, instead add 4 new operands and require they have
6442         right cross-lane values.
6443         (avx2_permv4di): Change into define_expand.
6444         (avx2_permv4di_1): New instruction.
6445         (avx2_permv2ti): Use nonimmediate_operand instead of register_operand
6446         for "xm" constrained operand.
6447         (VEC_PERM_AVX2): Add V32QI and V16QI for TARGET_AVX2.
6448
6449         * config/i386/sse.md (avx2_gathersi<mode>,
6450         avx2_gatherdi<mode>, avx2_gatherdi<mode>256): Add clobber of
6451         match_scratch, change memory_operand to register_operand,
6452         add (mem:BLK (scratch)) use.
6453         (*avx2_gathersi<mode>, *avx2_gatherdi<mode>,
6454         *avx2_gatherdi<mode>256): Add clobber of match_scratch,
6455         add earlyclobber to the output operand and match_scratch,
6456         add (mem:BLK (scratch)) use, change the other mem to match_operand.
6457         Use %p6 instead of %c6 in the pattern.
6458         * config/i386/i386.c (ix86_expand_builtin): Adjust for
6459         operand 2 being a Pmode register_operand instead of memory_operand.
6460
6461 2011-10-12  Kai Tietz  <ktietz@redhat.com>
6462
6463         * config/i386/i386.md (simple_return): Disable if TARGET_SEH is active.
6464
6465 2011-10-12  Steve Ellcey  <sje@cup.hp.com>
6466
6467         * config/ia64/ia64.c (ia64_init_builtins): Fix unbalanced parentheses.
6468
6469 2011-10-12  Richard Guenther  <rguenther@suse.de>
6470
6471         * tree-ssa-alias.c (maybe_skip_until): Cache also at the point
6472         of the first store we visit in a basic-block.
6473         (get_continuation_for_phi): Search for a candidate VUSE that
6474         might dominates all others.  Do pairwise disambiguation against
6475         that candidate.
6476
6477 2011-10-12  Paul Koning  <pkoning@gcc.gnu.org>
6478
6479         PR tree-optimization/50189
6480         * tree-vrp.c (extract_range_from_assert): Use the type of
6481         the variable, not the limit.
6482
6483 2011-10-12  Richard Guenther  <rguenther@suse.de>
6484
6485         PR tree-optimization/50700
6486         * tree-object-size.c (addr_object_size): Simplify and treat
6487         MEM_REF bases consistently.
6488
6489 2011-10-12  Bernd Schmidt  <bernds@codesourcery.com>
6490
6491         * function.c (prepare_shrink_wrap, bb_active_p): New function.
6492         (thread_prologue_and_epilogue_insns): Use bb_active_p.  Call
6493         prepare_shrink_wrap, then recompute bb_active_p for the last block.
6494
6495 2011-10-12  Joseph Myers  <joseph@codesourcery.com>
6496
6497         PR c/50565
6498         * convert.c (convert_to_integer): Do not narrow operands of
6499         pointer subtraction.
6500
6501 2011-10-12  Nick Clifton  <nickc@redhat.com>
6502
6503         * config/arm/arm.h (EMIT_EABI_ATTRIBUTE): New macro.  Used to
6504         emit a .eabi_attribute assembler directive, possibly with a
6505         comment attached.
6506         * config/arm/arm.c (arm_file_start): Use the new macro.
6507         * config/arm/arm-c.c (arm_output_c_attributes): Likewise.
6508
6509 2011-10-12  Georg-Johann Lay  <avr@gjlay.de>
6510
6511         PR target/49939
6512         * config/avr/avr.md (*movqi): Rename to movqi_insn.
6513         (*call_insn): Rename to call_insn.
6514         (*call_value_insn): Rename to call_value_insn.
6515         * config/avr/avr.c (avr_2word_insn_p): New static function.
6516         (jump_over_one_insn_p): Use it.
6517
6518 2011-10-12  Richard Sandiford  <richard.sandiford@linaro.org>
6519
6520         * expr.h (copy_blkmode_to_reg): Declare.
6521         * expr.c (copy_blkmode_to_reg): New function.
6522         (expand_assignment): Don't expand register RESULT_DECLs before
6523         the lhs.  Use copy_blkmode_to_reg to copy BLKmode values into a
6524         RESULT_DECL register.
6525         (expand_expr_real_1): Handle BLKmode decls when looking for promotion.
6526         * stmt.c (expand_return): Move BLKmode-to-register code into
6527         copy_blkmode_to_reg.
6528
6529 2011-10-11  Eric Botcazou  <ebotcazou@adacore.com>
6530
6531         PR target/49965
6532         * config/sparc/sparc.md (mov<I:mode>cc): Do not save comparison code.
6533         (mov<F:mode>cc): Likewise.
6534
6535 2011-10-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6536
6537         * tree-ssa-address.c (copy_ref_info): Remove copy of TREE_THIS_NOTRAP.
6538
6539 2011-10-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
6540
6541         * tree.h (built_in_decls): Delete old interface with two parallel
6542         arrays to hold standard builtin declarations, and replace it with
6543         a function based interface that can support creating builtins on
6544         the fly in the future.  Change all uses, and poison the old
6545         names.  Make sure 0 is not a legitimate builtin index.
6546         (implicit_built_in_decls): Ditto.
6547         (built_in_info): Ditto.
6548         (BUILTIN_VALID_P): Ditto.
6549         (builtin_decl_explicit): Ditto.
6550         (builtin_decl_implicit): Ditto.
6551         (set_builtin_decl): Ditto.
6552         (set_builtin_decl_implicit_p): Ditto.
6553         (builtin_decl_explicit_p): Ditto.
6554         (builtin_decl_implicit_p): Ditto.
6555         * tree-complex.c (expand_complex_libcall): Ditto.
6556         * tree-loop-distribution.c (generate_memset_zero): Ditto.
6557         * tree-ssa-strlen.c (get_string_length): Ditto.
6558         (handle_builtin_strcpy): Ditto.
6559         (handle_builtin_strcat): Ditto.
6560         * tree.c (iterative_hash_expr): Ditto.
6561         (local_define_builtin): Ditto.
6562         (build_common_builtin_nodes): Ditto.
6563         * builtins.c (built_in_decls): Ditto.
6564         (implicit_built_in_decls): Ditto.
6565         (built_in_info): Ditto
6566         (expand_builtin_classify_type): Ditto.
6567         (mathfn_built_in_1): Ditto.
6568         (expand_builtin_cexpi): Ditto.
6569         (expand_builtin_mempcpy_args): Ditto.
6570         (expand_builtin_stpcpy): Ditto.
6571         (gimplify_va_arg_expr): Ditto.
6572         (expand_builtin_sync_operation): Ditto.
6573         (build_builtin_expect_predicate): Ditto.
6574         (fold_builtin_memory_op): Ditto.
6575         (fold_builtin_strcpy): Ditto.
6576         (fold_builtin_stpcpy): Ditto.
6577         (fold_builtin_strncpy): Ditto.
6578         (fold_builtin_interclass_mathfn): Ditto.
6579         (fold_builtin_classify): Ditto.
6580         (fold_builtin_2): Ditto.
6581         (fold_builtin_strstr): Ditto.
6582         (fold_builtin_strrchr): Ditto.
6583         (fold_builtin_strpbrk): Ditto.
6584         (fold_builtin_strcat): Ditto.
6585         (fold_builtin_strncat): Ditto.
6586         (fold_builtin_strcspn): Ditto.
6587         (fold_builtin_fputs): Ditto.
6588         (fold_builtin_sprintf): Ditto.
6589         (fold_builtin_snprintf): Ditto.
6590         (expand_builtin_memory_chk): Ditto.
6591         (fold_builtin_memory_chk): Ditto.
6592         (fold_builtin_stxcpy_chk): Ditto.
6593         (fold_builtin_strncpy_chk): Ditto.
6594         (fold_builtin_strcat_chk): Ditto.
6595         (fold_builtin_strncat_chk): Ditto.
6596         (fold_builtin_sprintf_chk_1): Ditto.
6597         (fold_builtin_snprintf_chk_1): Ditto.
6598         (fold_builtin_printf): Ditto.
6599         (fold_builtin_fprintf): Ditto.
6600         (fold_call_stmt): Ditto.
6601         (set_builtin_user_assembler_name): Ditto.
6602         * tree-emutls.c (emutls_common_1): Ditto.
6603         * omp-low.c (scan_omp): Ditto.
6604         (lower_rec_input_clauses): Ditto.
6605         (lower_reduction_clauses): Ditto.
6606         (expand_parallel_call): Ditto.
6607         (expand_task_call): Ditto.
6608         (maybe_catch_exception): Ditto.
6609         (optimize_omp_library_calls): Ditto.
6610         (expand_omp_for_generic): Ditto.
6611         (expand_omp_for_static_nochunk): Ditto.
6612         (expand_omp_for_static_chunk): Ditto.
6613         (expand_omp_sections): Ditto.
6614         (expand_omp_atomic_fetch_op): Ditto.
6615         (expand_omp_atomic_pipeline): Ditto.
6616         (expand_omp_atomic_mutex): Ditto.
6617         (lower_omp_single_simple): Ditto.
6618         (lower_omp_single_copy): Ditto.
6619         (lower_omp_master): Ditto.
6620         (lower_omp_ordered): Ditto.
6621         (lower_omp_critical): Ditto.
6622         * tree-ssa-ccp.c (optimize_stdarg_builtin): Ditto.
6623         * builtins.c (DEF_BUILTIN_STUB): Ditto.
6624         (BUILT_IN_NONE): Ditto.
6625         * tree-ssa-math-opts.c (execute_optimize_bswap): Ditto.
6626         * gimple-low.c (lower_function_body): Ditto.
6627         (lower_builtin_setjmp): Ditto.
6628         * c-decl.c (merge_decls): Ditto.
6629         * tree-eh.c (lower_resx): Ditto.
6630         (lower_resx): Ditto.
6631         (lower_eh_dispatch): Ditto.
6632         * function (gimplify_parameters): Ditto.
6633         * c-typeck.c (build_function_call_vec): Ditto.
6634         * gimplify.c (build_stack_save_restore): Ditto.
6635         (gimplify_vla_decl): Ditto.
6636         (gimplify_modify_expr_to_memcpy): Ditto.
6637         (gimplify_modify_expr_to_memset): Ditto.
6638         (gimplify_variable_sized_compare): Ditto.
6639         (gimplify_function_tree): Ditto.
6640         * calls.c (emit_call_1): Ditto.
6641         * tree-ssa-forprop.c (simplify_builtin_call): Ditto.
6642         * tree-nested.c (convert_nl_goto_reference): Ditto.
6643         (convert_tramp_reference_op): Ditto.
6644         (finalize_nesting_tree_1): Ditto.
6645         * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Ditto.
6646         (tree_ssa_prefetch_arrays): Ditto.
6647         * tree-streamer-in.c (streamer_get_builtin_tree): Ditto.
6648         * system.h (built_in_decls): Ditto.
6649         (implicit_built_in_decls): Ditto.
6650         * tree-vect-generic.c (expand_vector_operations_1): Ditto.
6651         * config/sparc/sparc.c (sparc_gimplify_va_arg): Ditto.
6652         * config/i386/i386.c (ix86_gimplify_va_arg): Ditto.
6653         (ix86_veclibabi_svml): Ditto.
6654         (ix86_veclibabi_acml): Ditto.
6655         * config/vms/vms.c (vms_patch_builtins): Ditto.
6656         * config/ia64/ia64.c (ia64_init_builtins): Ditto.
6657         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Ditto.
6658         (rs6000_builtin_vectorized_libmass): Ditto.
6659         (rs6000_init_builtins): Ditto.
6660         * config/darwin.c (darwin_override_options): Ditto.
6661         (darwin_patch_builtin): Ditto.
6662         (darwin_rename_builtins): Ditto.
6663         * config/pa/pa.c (pa_init_builtins): Ditto.
6664
6665 2011-10-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6666
6667         * tree.h (copy_ref_info): Expose existing function.
6668         * tree-ssa-loop-ivopts.c (copy_ref_info): Move function to...
6669         * tree-ssa-address.c (copy_ref_info): ...here, and remove static token.
6670
6671 2011-10-11  Georg-Johann Lay  <avr@gjlay.de>
6672
6673         * config/avr/avr-protos.h (avr_mode_code_base_reg_class): New
6674         prototype.
6675         (avr_regno_mode_code_ok_for_base_p): New prototype.
6676         * config/avr/avr.h (BASE_REG_CLASS): Remove.
6677         (REGNO_OK_FOR_BASE_P): Remove.
6678         (REG_OK_FOR_BASE_NOSTRICT_P): Remove.
6679         (REG_OK_FOR_BASE_STRICT_P): Remove.
6680         (MODE_CODE_BASE_REG_CLASS): New define.
6681         (REGNO_MODE_CODE_OK_FOR_BASE_P): New define.
6682         * config/avr/avr.c (avr_mode_code_base_reg_class): New function.
6683         (avr_regno_mode_code_ok_for_base_p): New function.
6684         (avr_reg_ok_for_addr_p): New static function.
6685         (avr_legitimate_address_p): Use it.  Beautify.
6686
6687 2011-10-11  Georg-Johann Lay  <avr@gjlay.de>
6688
6689         PR target/50447
6690         * config/avr/avr.md (cc): Add out_plus attribute alternative.
6691         (addsi3): Use it.  Adapt avr_out_plus to new prototype.  Use
6692         avr_out_plus for all CONST_INT addends.
6693         * config/avr/avr-protos.h (avr_out_plus): Change prototype.
6694         * config/avr/avr.c (notice_update_cc): Call avr_out_plus on
6695         CC_OUT_PLUS.
6696         (avr_out_plus_1): Change prototype and report effect on cc0.
6697         (avr_out_plus): Ditto.
6698         (adjust_insn_length): Adapt call to avr_out_plus to new prototype.
6699
6700 2011-10-11  H.J. Lu  <hongjiu.lu@intel.com>
6701
6702         * config/i386/i386.c (ix86_expand_special_args_builtin): Remove
6703         the extra break.
6704
6705 2011-10-11  Artjoms Sinkarovs  <artyom.shinkaroff@gmail.com>
6706
6707         * doc/invoke.texi: Document new warning.
6708         * common.opt (Wvector-operation-performance): Define new warning.
6709         * tree-vect-generic.c (expand_vector_piecewise): Warn about expanded
6710         vector operation.
6711         (exapnd_vector_parallel): Warn about expanded vector operation.
6712         (lower_vec_shuffle): Warn about expanded vector operation.
6713         * c-typeck.c (c_build_vec_perm_expr): Store correct location
6714         when creating VEC_PERM_EXPR.
6715
6716 2011-10-11  Richard Guenther  <rguenther@suse.de>
6717
6718         PR tree-optimization/50204
6719         * tree-ssa-alias.c (get_continuation_for_phi_1): Split out
6720         two argument handling from ...
6721         (get_continuation_for_phi): ... here.  Handle arbitrary number
6722         of PHI args.
6723
6724 2011-10-11  Richard Sandiford  <richard.sandiford@linaro.org>
6725
6726         * modulo-sched.c: Fix comment typo.  Mention the possibility
6727         of using scheduling windows of II+1 cycles.
6728
6729 2011-10-11  Tristan Gingold  <gingold@adacore.com>
6730
6731         * doc/invoke.texi (C Dialect Options): Document
6732         -fallow-parameterless-variadic-functions.
6733         * c-parser.c (c_parser_parms_list_declarator): Handle it.
6734
6735 2011-10-10  Georg-Johann Lay  <avr@gjlay.de>
6736
6737         * config/avr/avr.c (avr_option_override): Set flag_omit_frame_pointer
6738         to 0 if frame pointer is needed for unwinding.
6739
6740 2011-10-10  Uros Bizjak  <ubizjak@gmail.com>
6741
6742         PR bootstrap/50665
6743         * optabs.h (DOI_vec_perm): Rename from OTI_vec_perm.  Move from enum
6744         optab_index to enum direct_optab_index.
6745         (vec_perm_optab): Update.
6746
6747 2011-10-10  Anatoly Sokolov  <aesok@post.ru>
6748
6749         * config/cris/cris.c (cris_preferred_reload_class): New function.
6750         (TARGET_PREFERRED_RELOAD_CLASS): Define.
6751         * config/cris/cris.h (PREFERRED_RELOAD_CLASS): Remove.
6752
6753 2011-10-10  Georg-Johann Lay  <avr@gjlay.de>
6754
6755         * config/avr/avr.md (*tablejump_rjmp): Change insn condition to
6756         !AVR_HAVE_JMP_CALL.
6757         (*tablejump_lib): Change insn condition to AVR_HAVE_JMP_CALL.
6758         (*tablejump_enh, *tablejump): Remove insns.
6759         * config/avr/libgcc.S (__tablejump__): Use RET instead of EIND +
6760         EIJMP for indirect jump.  Use LPM Z+ where available.
6761
6762 2011-10-10  Richard Henderson  <rth@redhat.com>
6763
6764         * doc/md.texi (vec_perm_const): Fix typo in cindex.
6765
6766 2011-10-10  Kirill Yukhin  <kirill.yukhin@intel.com>
6767             Yakovlev Vladimir  <vladimir.b.yakovlev@intel.com>
6768
6769         * config/i386/sse.md (fma_fnmsub_<mode>): Fix a typo.
6770
6771 2011-10-10  Richard Guenther  <rguenther@suse.de>
6772
6773         PR middle-end/50389
6774         * gimple-fold.c (gimplify_and_update_call_from_tree): Do not
6775         mark symbols for renaming.  Append the VUSE to all statements
6776         that possibly can have one.
6777
6778 2011-10-10  Richard Guenther  <rguenther@suse.de>
6779
6780         * ipa-split.c (pass_split_functions): Add verification TODOs.
6781         (pass_feedback_split_functions): Likewise.
6782
6783 2011-10-10  Richard Guenther  <rguenther@suse.de>
6784
6785         PR middle-end/50195
6786         * fold-const.c (fold_binary_loc): Canonicalize x*x to pow (x, 2)
6787         only when optimizing.
6788
6789 2011-10-10  Nick Clifton  <nickc@redhat.com>
6790
6791         PR middle-end/49801
6792         * compare-elim.c (find_comparisons_in_bb): Use df_get_live_in and
6793         df_get_live_out instead of accessing the bitmaps directly.
6794         (execute_compare_elim_after_reload): Remove calls to df_set_flags,
6795         df_live_add_problem and df_analyze.
6796
6797 2011-10-10  Michael Matz  <matz@suse.de>
6798
6799         PR middle-end/50638
6800         * tree-emutls.c (gen_emutls_addr): Call add_referenced_var.
6801
6802 2011-10-10  Richard Sandiford  <richard.sandiford@linaro.org>
6803
6804         * modulo-sched.c (ps_reg_move_info): Add num_consecutive_stages.
6805         (SCHED_FIRST_REG_MOVE, SCHED_NREG_MOVES): Delete.
6806         (node_sched_params): Remove first_reg_move and nreg_moves.
6807         (ps_num_consecutive_stages, extend_node_sched_params): New functions.
6808         (update_node_sched_params): Move up file.
6809         (print_node_sched_params): Print the stage.  Don't dump info related
6810         to first_reg_move and nreg_moves.
6811         (set_columns_for_row): New function.
6812         (set_columns_for_ps): Move up file and use set_columns_for_row.
6813         (schedule_reg_move): New function.
6814         (schedule_reg_moves): Call extend_node_sched_params and
6815         schedule_reg_move.  Extend size of uses bitmap.  Initialize
6816         num_consecutive_stages.  Return false if a move could not be
6817         scheduled.
6818         (apply_reg_moves): Don't emit moves here.
6819         (permute_partial_schedule): Handle register moves.
6820         (duplicate_insns_of_cycles): Remove for_prolog.  Emit moves according
6821         to the same stage-count test as ddg nodes.
6822         (generate_prolog_epilog): Update calls accordingly.
6823         (sms_schedule): Allow move-scheduling to add a new first stage.
6824
6825 2011-10-10  Richard Sandiford  <richard.sandiford@linaro.org>
6826
6827         * modulo-sched.c (ps_insn): Adjust comment.
6828         (ps_reg_move_info): New structure.
6829         (partial_schedule): Add reg_moves field.
6830         (SCHED_PARAMS): Use node_sched_param_vec instead of node_sched_params.
6831         (node_sched_params): Turn first_reg_move into an identifier.
6832         (ps_reg_move): New function.
6833         (ps_rtl_insn): Cope with register moves.
6834         (ps_first_note): Adjust comment and assert that the instruction
6835         isn't a register move.
6836         (node_sched_params): Replace with...
6837         (node_sched_param_vec): ...this vector.
6838         (set_node_sched_params): Adjust accordingly.
6839         (print_node_sched_params): Take a partial schedule instead of a ddg.
6840         Use ps_rtl_insn and ps_reg_move.
6841         (generate_reg_moves): Rename to...
6842         (schedule_reg_moves): ...this.  Remove rescan parameter.  Record each
6843         move in the partial schedule, but don't emit it here.  Don't perform
6844         register substitutions here either.
6845         (apply_reg_moves): New function.
6846         (duplicate_insns_of_cycles): Use register indices directly,
6847         rather than finding instructions using PREV_INSN.  Use ps_reg_move.
6848         (sms_schedule): Call schedule_reg_moves before committing to
6849         a partial schedule.   Try the next ii if the schedule fails.
6850         Use apply_reg_moves instead of generate_reg_moves.  Adjust
6851         call to print_node_sched_params.  Free node_sched_param_vec
6852         instead of node_sched_params.
6853         (create_partial_schedule): Initialize reg_moves.
6854         (free_partial_schedule): Free reg_moves.
6855
6856 2011-10-10  Richard Sandiford  <richard.sandiford@linaro.org>
6857
6858         * modulo-sched.c (ps_insn): Replace node field with an identifier.
6859         (SCHED_ASAP): Replace with..
6860         (NODE_ASAP): ...this macro.
6861         (SCHED_PARAMS): New macro.
6862         (SCHED_TIME, SCHED_FIRST_REG_MOVE, SCHED_NREG_MOVES, SCHED_ROW)
6863         (SCHED_STAGE, SCHED_COLUMN): Redefine using SCHED_PARAMS.
6864         (node_sched_params): Remove asap.
6865         (ps_rtl_insn, ps_first_note): New functions.
6866         (set_node_sched_params): Use XCNEWVEC.  Don't copy across the
6867         asap values.
6868         (print_node_sched_params): Use SCHED_PARAMS and NODE_ASAP.
6869         (generate_reg_moves): Pass ids to the SCHED_* macros.
6870         (update_node_sched_params): Take a ps insn identifier rather than
6871         a node as parameter.  Use ps_rtl_insn.
6872         (set_columns_for_ps): Update for above field and SCHED_* macro changes.
6873         (permute_partial_schedule): Use ps_rtl_insn and ps_first_note.
6874         (optimize_sc): Update for above field and SCHED_* macro changes.
6875         Update calls to try_scheduling_node_in_cycle and
6876         update_node_sched_params.
6877         (duplicate_insns_of_cycles): Adjust for above field and SCHED_*
6878         macro changes.  Use ps_rtl_insn and ps_first_note.
6879         (sms_schedule): Pass ids to the SCHED_* macros.
6880         (get_sched_window): Adjust for above field and SCHED_* macro changes.
6881         Use NODE_ASAP instead of SCHED_ASAP.
6882         (try_scheduling_node_in_cycle): Remove node parameter.  Update
6883         call to ps_add_node_check_conflicts.  Pass ids to the SCHED_* macros.
6884         (sms_schedule_by_order): Update call to try_scheduling_node_in_cycle.
6885         (ps_insert_empty_row): Adjust for above field changes.
6886         (compute_split_row): Use ids rather than nodes.
6887         (verify_partial_schedule): Adjust for above field changes.
6888         (print_partial_schedule): Use ps_rtl_insn.
6889         (create_ps_insn): Take an id rather than a node.
6890         (ps_insn_find_column): Adjust for above field changes.
6891         Use ps_rtl_insn.
6892         (ps_insn_advance_column): Adjust for above field changes.
6893         (add_node_to_ps): Remove node parameter.  Update call to
6894         create_ps_insn.
6895         (ps_has_conflicts): Use ps_rtl_insn.
6896         (ps_add_node_check_conflicts): Replace node parameter than an id.
6897
6898 2011-10-10  Richard Sandiford  <richard.sandiford@linaro.org>
6899
6900         * modulo-sched.c (undo_replace_buff_elem): Delete.
6901         (generate_reg_moves): Don't build and return an undo list.
6902         (free_undo_replace_buff): Delete.
6903         (sms_schedule): Adjust call to generate_reg_moves.
6904         Don't call free_undo_replace_buff.
6905
6906 2011-10-10  Matthias Klose <doko@ubuntu.com>
6907
6908         * common/config/m32c: Remove empty directory.
6909
6910 2011-10-10  Georg-Johann Lay  <avr@gjlay.de>
6911
6912         * config/avr/avr.md (*mulhi3_enh): Treat squaring smarter.
6913
6914 2011-10-10  Georg-Johann Lay  <avr@gjlay.de>
6915
6916         PR target/50652
6917         * config/avr/avr-mcus.def (AVR_MCU): Set .data_section_start of
6918         atmega164a to 0x100.
6919
6920 2011-10-09  Eric Botcazou  <ebotcazou@adacore.com>
6921
6922         * tree-ssa-forwprop.c (forward_propagate_into_comparison): Do not make
6923         the replacement if the conversion to the LHS type is not useless.
6924
6925 2011-10-09  Ira Rosen  <ira.rosen@linaro.org>
6926
6927         PR tree-optimization/50635
6928         * tree-vect-patterns.c (vect_handle_widen_mult_by_const): Add
6929         DEF_STMT to the list of statements to be replaced by the
6930         pattern statements.
6931         (vect_handle_widen_mult_by_const): Don't check TYPE_OUT.
6932
6933 2011-10-09  Anatoly Sokolov  <aesok@post.ru>
6934
6935         * system.h: Commit forgotten hunk in previous patch.
6936         (OUTPUT_ADDR_CONST_EXTRA): Poison.
6937
6938 2011-10-08  Nicola Pero  <nicola.pero@meta-innovation.com>
6939
6940         PR libobjc/50428
6941         * doc/objc.texi (Garbage Collection): Updated example to protect
6942         +initialize against execution in subclasses.
6943
6944 2011-10-07  Richard Henderson  <rth@redhat.com>
6945
6946         * doc/extend.texi (__builtin_shuffle): Improve the description to
6947         include the modulus of the selector.  Mention OpenCL.
6948         * doc/md.texi (vec_perm, vec_perm_const): Document named patterns.
6949
6950         * tree.def (VEC_PERM_EXPR): Rename from VEC_SHUFFLE_EXPR.
6951         * genopinit.c (optabs): Rename vshuffle to vec_perm.
6952         * c-typeck.c (c_build_vec_perm_expr): Rename from
6953         c_build_vec_shuffle_expr.  Update for name changes.
6954         * optabs.c (expand_vec_perm_expr_p): Rename from
6955         expand_vec_shuffle_expr_p.
6956         (expand_vec_perm_expr): Rename from expand_vec_shuffle_expr.
6957         * optabs.h (OTI_vec_perm): Rename from DOI_vshuffle.
6958         (vec_perm_optab): Rename from vshuffle_optab.
6959         * expr.c, gimple-pretty-print.c, gimple.c, gimplify.c,
6960         c-tree.h, c-parser.c, tree-cfg.c, tree-inline.c, tree-pretty-print.c,
6961         tree-ssa-operands.c, tree-vect-generic.c: Update for name changes.
6962
6963         * config/i386/i386.c (ix86_expand_vec_perm): Rename from
6964         ix86_expand_vshuffle.
6965         * config/i386/i386-protos.h: Update.
6966         * config/i386/sse.md (VEC_PERM_AVX2): Rename from VSHUFFLE_AVX2.
6967         (vec_perm<VEC_PERM_AVX2>): Rename from vshuffle<VSHUFFLE_AVX2>.
6968
6969 2011-10-07  Richard Henderson  <rth@redhat.com>
6970
6971         * config/i386/predicates.md (avx2_pblendw_operand): New.
6972         * config/i386/sse.md (sse4_1_pblendw): Un-macroize.
6973         (avx2_pblendw, *avx2_pblendw): New expander and insn.
6974
6975 2011-10-07  Richard Henderson  <rth@redhat.com>
6976
6977         * config/i386/i386.c (bdesc_args): Update code for
6978         __builtin_ia32_palignr256.  Change type of __builtin_ia32_pslldqi256,
6979         and __builtin_ia32_psrldqi256 to V4DI_FTYPE_V4DI_INT_CONVERT.
6980         (ix86_expand_args_builtin): Handle V4DI_FTYPE_V4DI_INT_CONVERT.
6981         * config/i386/sse.md (mode iterator V16): Add V2TI.
6982         (mode iterator SSESCALARMODE): Use V2TI not V4DI.
6983         (mode attr ssse3_avx2): Add V2TI.
6984         (avx2_lshrqv4di3, avx2_lshlqv4di3): Remove.
6985
6986 2011-10-07  David S. Miller  <davem@davemloft.net>
6987
6988         PR 50655
6989         * configure.ac: Add .register directives to VIS3 test.
6990         * configure: Regenerate.
6991
6992 2011-10-07  Richard Henderson  <rth@redhat.com>
6993
6994         * config.gcc (x86_64-*): Add core-avx-i, core-avx2 for with_cpu.
6995
6996 2011-10-07  Richard Henderson  <rth@redhat.com>
6997
6998         PR 49752
6999         * fold-const.c (fold_checksum_tree): Remove out-of-date assert.
7000
7001 2011-10-07  Andrew Stubbs  <ams@codesourcery.com>
7002
7003         * config/arm/predicates.md (shift_amount_operand): Remove constant
7004         range check.
7005         (shift_operator): Check range of constants for all shift operators.
7006
7007 2011-10-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7008
7009         * config/s390/s390.c (s390_emit_tls_call_insn): Remove assertion.
7010         Load GOT pointer for non-pic builds.
7011         (s390_load_got): Replace pic_offset_table_rtx with hardcoded r12.
7012         (s390_emit_call): Likewise.
7013
7014 2011-10-07  Tom de Vries  <tom@codesourcery.com>
7015
7016         PR middle-end/50527
7017         * tree.c (build_common_builtin_nodes): Add local_define_builtin for
7018         BUILT_IN_ALLOCA_WITH_ALIGN.  Mark that BUILT_IN_ALLOCA_WITH_ALIGN can
7019         throw.
7020         * builtins.c (expand_builtin_alloca): Handle BUILT_IN_ALLOCA_WITH_ALIGN
7021         arglist.  Set align for BUILT_IN_ALLOCA_WITH_ALIGN.
7022         (expand_builtin): Handle BUILT_IN_ALLOCA_WITH_ALIGN.
7023         (is_inexpensive_builtin): Handle BUILT_IN_ALLOCA_WITH_ALIGN.
7024         * tree-ssa-ccp.c (evaluate_stmt): Set align for
7025         BUILT_IN_ALLOCA_WITH_ALIGN.
7026         (fold_builtin_alloca_for_var): Rename to ...
7027         (fold_builtin_alloca_with_align): Set DECL_ALIGN from 2nd
7028         BUILT_IN_ALLOCA_WITH_ALIGN argument.
7029         (ccp_fold_stmt): Try folding BUILT_IN_ALLOCA_WITH_ALIGN using
7030         fold_builtin_alloca_with_align.
7031         (optimize_stack_restore): Handle BUILT_IN_ALLOCA_WITH_ALIGN.
7032         * builtins.def (BUILT_IN_ALLOCA_WITH_ALIGN): Declare using
7033         DEF_BUILTIN_STUB.
7034         * ipa-pure-const.c (special_builtin_state): Handle
7035         BUILT_IN_ALLOCA_WITH_ALIGN.
7036         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1)
7037         (call_may_clobber_ref_p_1): Same.
7038         * function.c (gimplify_parameters): Lower vla to
7039         BUILT_IN_ALLOCA_WITH_ALIGN.
7040         * gimplify.c (gimplify_vla_decl): Same.
7041         * cfgexpand.c (expand_call_stmt): Handle BUILT_IN_ALLOCA_WITH_ALIGN.
7042         * tree-mudflap.c (mf_xform_statements): Same.
7043         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary)
7044         (mark_all_reaching_defs_necessary_1, propagate_necessity): Same.
7045         * varasm.c (incorporeal_function_p): Same.
7046         * tree-object-size.c (alloc_object_size): Same.
7047         * gimple.c (gimple_build_call_from_tree): Same.
7048
7049 2011-10-07  Bernd Schmidt  <bernds@codesourcery.com>
7050
7051         * function.c (frame_required_for_rtx): Remove function.
7052         (requires_stack_frame_p): New arg set_up_by_prologue.  All callers
7053         changed.  Compute a set of mentioned registers and compare against
7054         the new arg rather than calling frame_required_for_rtx.
7055         (thread_prologue_and_epilogue_insns): Compute the set_up_by_prologue
7056         reg set.  Convert the unconverted_simple_returns mechanism to store
7057         jump insns rather than their basic blocks.  Also check the
7058         orig_entry_edge destination for new blocks.
7059
7060 2011-10-07  Jakub Jelinek  <jakub@redhat.com>
7061
7062         PR tree-optimization/50650
7063         * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): Don't
7064         call vect_is_simple_cond here, instead fail if cond_expr isn't
7065         COMPARISON_CLASS_P or if get_vectype_for_scalar_type returns NULL
7066         for cond_expr's first operand.
7067         * tree-vect-stmts.c (vect_is_simple_cond): Static again.
7068         * tree-vectorizer.h (vect_is_simple_cond): Remove prototype.
7069
7070 2011-10-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7071
7072         * config/s390/s390.md (DWH, dwh): New mode macros.
7073         ("umulsidi3"): Extend to support "umulditi3" as well.
7074
7075 2011-10-07  Uros Bizjak  <ubizjak@gmail.com>
7076             H.J. Lu  <hongjiu.lu@intel.com>
7077
7078         PR target/50603
7079         * config/i386/i386.c (ix86_fixup_binary_operands): Force src2 of
7080         integer PLUS RTX to a register to improve address combine.
7081
7082 2011-10-06  Richard Henderson  <rth@redhat.com>
7083
7084         * combine-stack-adjust.c (maybe_move_args_size_note): Add after
7085         parameter; use it to decide whether to merge two notes.
7086         (combine_stack_adjustments_for_block): Use maybe_move_args_size_note
7087         for the deallocation case as well.
7088
7089 2011-10-06  Anatoly Sokolov  <aesok@post.ru>
7090
7091         * system.h (OUTPUT_ADDR_CONST_EXTRA): Poison.
7092         * doc/tm.texi.in (OUTPUT_ADDR_CONST_EXTRA): Remove documentation.
7093         * doc/tm.texi: Regenerate.
7094         * target.def (output_addr_const_extra): Use
7095         hook_bool_FILEptr_rtx_false.
7096         * targhooks.c (default_asm_output_addr_const_extra): Remove.
7097         * targhooks.h (default_asm_output_addr_const_extra): Remove.
7098         * hooks.c (hook_bool_FILEptr_rtx_false): New functions.
7099         * hooks.h (hook_bool_FILEptr_rtx_false): Declare.
7100
7101 2011-10-06  David S. Miller  <davem@davemloft.net>
7102
7103         * config/sparc/sparc.md (popcount<mode>2, clz<mode>2): Split up into...
7104         (popcountdi2, popcountsi2, clzdi2, clzsi2): Explicit expanders, in the
7105         SI mode 64-bit code gen case explicitly zero-extend and truncate.
7106         (*popcount<mode>_sp64): Split up into...
7107         (*popcountdi_sp64, *popcountsi_64): Explicit instantiations, and in the
7108         SImode case use truncate.
7109         (*clzsi_sp64): Rewrite to use truncate, and let the expander emit the
7110         subtract so the compiler can optimize it.
7111         (SIDI): Remove unused mode iterator.
7112
7113 2011-10-06  Bernd Schmidt  <bernds@codesourcery.com>
7114
7115         * function.c (thread_prologue_and_epilogue_insns): Emit split prologue
7116         on the orig_entry_edge. Don't account for it in prologue_clobbered.
7117
7118 2011-10-06  Jakub Jelinek  <jakub@redhat.com>
7119
7120         PR tree-optimization/50596
7121         * tree-vectorizer.h (vect_is_simple_cond): New prototype.
7122         (NUM_PATTERNS): Change to 6.
7123         * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): New
7124         function.
7125         (vect_vect_recog_func_ptrs): Add vect_recog_mixed_size_cond_pattern.
7126         (vect_mark_pattern_stmts): Don't create stmt_vinfo for def_stmt
7127         if it already has one, and don't set STMT_VINFO_VECTYPE in it
7128         if it is already set.
7129         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Handle
7130         COND_EXPR in pattern stmts.
7131         (vect_is_simple_cond): No longer static.
7132
7133 2001-10-06  Richard Henderson  <rth@redhat.com>
7134
7135         * config/i386/i386.c (ix86_expand_vshuffle): Add AVX2 support.
7136         * config/i386/sse.md (sseshuffint): Remove.
7137         (sseintvecmode): Support V16HI, V8HI, V32QI, V16QI.
7138         (VSHUFFLE_AVX2): New mode iterator.
7139         (vshuffle<mode>): Use it.
7140         (avx_vec_concat<V_256>): Rename from *vec_concat<V_256>_avx.
7141
7142         * config/i386/i386.c (ix86_expand_sse_movcc): Use correct mode
7143         for vector_all_ones_operand.
7144         (ix86_expand_int_vcond): Distinguish between comparison mode
7145         and data mode.  Allow them to differ.
7146         (ix86_expand_vshuffle): Don't force data mode to match maskmode.
7147
7148 2001-10-06  Richard Henderson  <rth@redhat.com>
7149
7150         * optabs.c (expand_vec_shuffle_expr): Use the proper mode for the
7151         mask operand.  Tidy the code.
7152
7153 2011-10-06  Jakub Jelinek  <jakub@redhat.com>
7154
7155         * tree-vect-patterns.c (vect_pattern_recog_1): Use
7156         vect_recog_func_ptr typedef for the first argument.
7157         (vect_pattern_recog): Rename vect_recog_func_ptr variable
7158         to vect_recog_func, use vect_recog_func_ptr typedef for it.
7159
7160         PR tree-optimization/49279
7161         * tree-ssa-structalias.c (find_func_aliases): Don't handle
7162         CAST_RESTRICT.
7163         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Allow
7164         restrict propagation.
7165         * tree-ssa.c (useless_type_conversion_p): Don't return false
7166         if TYPE_RESTRICT differs.
7167
7168 2011-10-06  Bernd Schmidt  <bernds@codesourcery.com>
7169
7170         * function.c (thread_prologue_and_epilogue_insns): Build a vector
7171         of unconverted simple return blocks rather than trying to
7172         recompute them later based on bb_flags bitmap tests.
7173
7174 2011-10-06  Michael Matz  <matz@suse.de>
7175
7176         * tree-flow.h (get_var_ann): Don't declare.
7177         * tree-flow-inline.h (get_var_ann): Remove.
7178         (set_is_used): Use var_ann, not get_var_ann.
7179         * tree-dfa.c (add_referenced_var): Inline body of get_var_ann.
7180         * tree-profile.c (gimple_gen_edge_profiler): Call
7181         find_referenced_var_in.
7182         (gimple_gen_interval_profiler): Ditto.
7183         (gimple_gen_pow2_profiler): Ditto.
7184         (gimple_gen_one_value_profiler): Ditto.
7185         (gimple_gen_average_profiler): Ditto.
7186         (gimple_gen_ior_profiler): Ditto.
7187         (gimple_gen_ic_profiler): Ditto plus call add_referenced_var.
7188         (gimple_gen_ic_func_profiler): Call add_referenced_var.
7189         * tree-mudflap.c (execute_mudflap_function_ops): Call
7190         add_referenced_var.
7191
7192 2011-10-06  Jakub Jelinek  <jakub@redhat.com>
7193
7194         * tree-vect-patterns.c (vect_handle_widen_mult_by_const): For lhs
7195         don't set SSA_NAME_DEF_STMT that has been already set by
7196         gimple_build_assign_with_ops.
7197         (vect_recog_pow_pattern, vect_recog_widen_sum_pattern,
7198         vect_operation_fits_smaller_type, vect_recog_over_widening_pattern):
7199         Likewise.
7200
7201         * tree.h (avoid_folding_inline_builtin): New prototype.
7202         * builtins.c (avoid_folding_inline_builtin): No longer static.
7203         * gimple-fold.c (gimple_fold_builtin): Give up if
7204         avoid_folding_inline_builtin returns true.
7205
7206 2011-10-06  Richard Guenther  <rguenther@suse.de>
7207
7208         * tree-vect-generic.c (vector_element): Look at previous
7209         generated results.
7210
7211 2011-10-06  David Edelsohn  <dje.gcc@gmail.com>
7212
7213         PR target/39950
7214         * config/rs6000/aix.h (TARGET_OS_AIX_CPP_BUILTINS): Define
7215         __powerpc__, __PPC__, __unix__.
7216
7217 2011-10-06  Michael Matz  <matz@suse.de>
7218
7219         * i386/i386.opt (recip_mask, recip_mask_explicit,
7220         x_recip_mask_explicit): New variables and cl_target member.
7221         (mrecip=): New option.
7222         * i386/i386.h (RECIP_MASK_DIV, RECIP_MASK_SQRT, RECIP_MASK_VEC_DIV,
7223         RECIP_MASK_VEC_SQRT, RECIP_MASK_ALL, RECIP_MASK_NONE): New bitmasks.
7224         (TARGET_RECIP_DIV, TARGET_RECIP_SQRT, TARGET_RECIP_VEC_DIV,
7225         TARGET_RECIP_VEC_SQRT): New tests.
7226         * i386/i386.md (divsf3): Check TARGET_RECIP_DIV.
7227         (sqrt<mode>2): Check TARGET_RECIP_SQRT.
7228         * i386/sse.md (div<mode>3): Check TARGET_RECIP_VEC_DIV.
7229         (sqrt<mode>2): Check TARGET_RECIP_VEC_SQRT.
7230         * i386/i386.c (ix86_option_override_internal): Set recip_mask
7231         for -mrecip and -mrecip=options.
7232         (ix86_function_specific_save): Save recip_mask_explicit.
7233         (ix86_function_specific_restore): Restore recip_mask_explicit.
7234
7235         * doc/invoke.texi (ix86 Options): Document the new option.
7236
7237 2011-10-06  Bernd Schmidt  <bernds@codesourcery.com>
7238
7239         PR target/49049
7240         * config/arm/arm.md (arm_subsi3_insn): Lose the last alternative.
7241
7242 2011-10-06  Ulrich Weigand  <ulrich.weigand@linaro.org>
7243
7244         PR target/50305
7245         * config/arm/arm.c (arm_legitimize_reload_address): Recognize
7246         output of a previous pass through legitimize_reload_address.
7247         Do not attempt to optimize addresses if the base register is
7248         equivalent to a constant.
7249
7250 2011-10-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7251
7252         * function.c (thread_prologue_and_epilogue_insns): Mark
7253         last_bb_active as possibly unused.  It is unused for targets which
7254         do neither have "return" nor "simple_return" expanders.
7255
7256 2011-10-06  Richard Guenther  <rguenther@suse.de>
7257
7258         * fold-const.c (fold_ternary_loc): Also fold non-constant
7259         vector CONSTRUCTORs.  Make more efficient.
7260         * tree-ssa-dom.c (cprop_operand): Don't handle virtual operands.
7261         (cprop_into_stmt): Don't propagate into virtual operands.
7262         (optimize_stmt): Really dump original statement.
7263
7264 2011-10-06  Nick Clifton  <nickc@redhat.com>
7265
7266         * config/rx/rx.md (smin3): Revert previous delta.
7267
7268 2011-10-06  Richard Guenther  <rguenther@suse.de>
7269
7270         PR tree-optimization/38884
7271         * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle partial
7272         reads from aggregate SSA names.
7273
7274 2011-10-05  Jakub Jelinek  <jakub@redhat.com>
7275
7276         * tree-vect-patterns.c (vect_pattern_recog_1): Add stmts_to_replace
7277         argument, truncate it at the beginning instead of allocating there
7278         and freeing at the end.
7279         (vect_pattern_recog): Allocate stmts_to_replace here and free at end,
7280         pass its address to vect_pattern_recog_1.
7281
7282 2011-10-05  David S. Miller  <davem@davemloft.net>
7283
7284         * config/sparc/sparc.opt (POPC): New option.
7285         * doc/invoke.texi: Document it.
7286         * config/sparc/sparc.c (sparc_option_override): Enable MASK_POPC by
7287         default on Niagara-2 and later.
7288         * config/sparc/sparc.h (CLZ_DEFINED_VALUE_AT_ZERO): Define.
7289         * config/sparc/sparc.md (SIDI): New mode iterator.
7290         (ffsdi2): Delete commented out pattern and comments.
7291         (popcount<mode>2, clz<mode>2): New expanders.
7292         (*popcount<mode>_sp64, popcountsi_v8plus, popcountdi_v8plus,
7293         *clzdi_sp64, clzdi_v8plus, *clzsi_sp64, clzsi_v8plus): New insns.
7294
7295 2011-10-06  Artjoms Sinkarovs  <artyom.shinkaroff@gmail.com>
7296
7297         PR middle-end/50607
7298         * c-tree.h (c_expr_t): New typedef for struct c_expr.
7299         (C_EXPR_APPEND): New macro.
7300         * c-parser.c (c_parser_get_builtin_args): Preserve
7301         original_tree_code of c_expr structure.
7302         (c_parser_postfix_expression): Adjust to the new function.
7303
7304 2011-10-05  Bernd Schmidt  <bernds@codesourcery.com>
7305
7306         * function.c (thread_prologue_and_epilogue_insns): Don't shrink-wrap
7307         if profiling after the prologue.
7308
7309 2011-10-05  Jakub Jelinek  <jakub@redhat.com>
7310
7311         PR tree-optimization/50613
7312         * tree-ssa-strlen.c (find_equal_ptrs): If CASE_CONVERT
7313         operand is ADDR_EXPR, fallthru into ADDR_EXPR handling,
7314         and if it is neither that not SSA_NAME, give up.
7315
7316 2011-10-05  Richard Henderson  <rth@redhat.com>
7317
7318         * tree-vect-generic.c (vector_element): Never fail.  Use
7319         build_zero_cst.  Tidy up type references.
7320         (lower_vec_shuffle): Never fail.  Mask shuffle indicies.  Reduce
7321         code duplication.  Do update_stmt here ...
7322         (expand_vector_operations_1): ... not here.
7323
7324         * config/i386/i386.c (ix86_expand_vshuffle): Never fail.  Handle
7325         TARGET_XOP.  Fix pshufb constant vector creation.  Reduce code
7326         duplication.  Handle V2DI without SSE4.1.
7327         * config/i386/i386-protos.h (ix86_expand_vshuffle): Update decl.
7328         * config/i386/i386.md (vshuffle<V_128>): Remove assert for ok.
7329
7330 2011-10-05  Uros Bizjak  <ubizjak@gmail.com>
7331
7332         * config/i386/i386.c (distance_non_agu_define): Simplify calculation
7333         of "found".  Simplify return value calculation.
7334         (distance_agu_use): Ditto.
7335
7336 2011-10-05  Bernd Schmidt  <bernds@codesourcery.com>
7337
7338         PR bootstrap/50621
7339         * config/i386/i386.c (ix86_add_cfa_restore_note): Omit notes only
7340         if the function was not shrink-wrapped.
7341         (ix86_expand_epilogue): Ensure queued cfa_adjust notes are attached
7342         to an insn.
7343         * function.c (thread_prologue_and_epilogue_insns): Make sure the
7344         shrink_wrapped flag is set even if there is no dump file.
7345
7346 2011-10-05  DJ Delorie  <dj@redhat.com>
7347             Nick Clifton  <nickc@redhat.com>
7348
7349         * config/rx/rx.opt (mpid): Define.
7350         * config/rx/t-rx (MULTILIB_OPTIONS): Add -mpid
7351         (MULTILIB_DIRNAMES): Add pid.
7352         * config/rx/rx.c (rx_gp_base_regnum_val, rx_pid_base_regnum_val)
7353         (rx_num_interrupt_regs): New variable.
7354         (rx_gp_base_regnum): New function.  Returns the number of the
7355         small data area register.
7356         (rx_pid_base_regnum): New function.  Returns the number of the pid
7357         base register.
7358         (rx_decl_for_addr): New function.  Returns the symbolic part of a MEM.
7359         (rx_pid_data_operand): New function.  Returns whether an object is
7360         in the position independent data area.
7361         (rx_legitimize_address): New function.  Puts undecided PID
7362         objects in the PID data area.
7363         (rx_is_legitimate_address): Add support for PID operands.
7364         (rx_print_operand_address): Likewise.
7365         (rx_print_operand): Likewise.
7366         (rx_maybe_pidify_operand): New function.  Determine if an operand
7367         is suitable for PID addressing.
7368         (rx_gen_move_template): Add PID support.
7369         (rx_conditional_register_usage): Likewise.
7370         (rx_option_override): Initialise rx_num_interrupt_regs.
7371         (rx_is_legitimate_constant): Add support for PID constants.
7372         (TARGET_LEGITIMIZE_ADDRESS): Define.
7373         * config/rx/constraints.md (Rpid): Define.
7374         (Rpda): Define.
7375         * config/rx/rx.md (UNSPEC_PID_ADDR): Define.
7376         (tablejump): Add PID support.
7377         (mov<>): Likewise.
7378         (mov<>_internal): Likewise.
7379         (addsi3): Convert to an expander.  Add PID support.
7380         (pid_addr): New pattern.
7381         * config/rx/rx.h (CPP_SPEC): Define.
7382         (ASM_SPEC): Pass -mpid and -mint-register on to assembler.
7383         (CASE_VECTOR_PC_RELATIVE): Define.
7384         (JUMP_TABLES_IN_TEXT_SECTION): Enable for PID mode.
7385         * config/rx/rx-protos.h (rx_maybe_pidify_operand): Prototype.
7386         * doc/invoke.texi (RX Options): Document -mpid command line option.
7387
7388 2011-10-05  Richard Guenther  <rguenther@suse.de>
7389
7390         PR tree-optimization/38885
7391         * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle partial reads
7392         from constants.
7393
7394 2011-10-05  Bernd Schmidt  <bernds@codesourcery.com>
7395
7396         * doc/invoke.texi (-fshrink-wrap): Document.
7397         * opts.c (default_options_table): Add it.
7398         * common.opt (fshrink-wrap): Add.
7399         * function.c (emit_return_into_block): Remove useless declaration.
7400         (record_hard_reg_uses_1, record_hard_reg_uses, frame_required_for_rtx,
7401         requires_stack_frame_p, gen_return_pattern): New static functions.
7402         (emit_return_into_block): New arg simple_p.  All callers changed.
7403         Use gen_return_pattern.
7404         (thread_prologue_and_epilogue_insns): Implement shrink-wrapping.
7405         * config/i386/i386.md (return): Expand into a simple_return.
7406         (simple_return): New expander):
7407         (simple_return_internal, simple_return_internal_long,
7408         simple_return_pop_internal_long, simple_return_indirect_internal):
7409         Renamed from return_internal, return_internal_long,
7410         return_pop_internal_long and return_indirect_internal; changed to use
7411         simple_return.
7412         * config/i386/i386.c (ix86_expand_epilogue): Adjust to expand
7413         simple returns.
7414         (ix86_pad_returns): Likewise.
7415         * function.h (struct rtl_data): Add member shrink_wrapped.
7416         * cfgcleanup.c (outgoing_edges_match): If shrink-wrapped, edges that
7417         are not jumps or sibcalls can't be compared.
7418
7419 2011-10-05  Richard Guenther  <rguenther@suse.de>
7420
7421         * tree-ssa-sccvn.c (vn_get_expr_for): Handle CONSTRUCTOR of
7422         vector type.
7423         (simplify_unary_expression): Handle BIT_FIELD_REFs.
7424         (try_to_simplify): Handle BIT_FIELD_REFs.
7425
7426 2011-10-05  Georg-Johann Lay  <avr@gjlay.de>
7427
7428         * config/avr/avr-protos.h (avr_out_addto_sp): New prototype.
7429         * config/avr/avr.c (avr_out_addto_sp): New function.
7430         (adjust_insn_length): Handle ADJUST_LEN_ADDTO_SP.
7431         * config/avr/avr.md (adjust_len): Add "addto_sp".
7432         (*movhi_sp): Remove insn.
7433         (*addhi3_sp_R_pc2, *addhi3_sp_R_pc3): Merge to *addhi3_sp_R.
7434
7435 2011-10-05  Richard Guenther  <rguenther@suse.de>
7436
7437         * gimple-fold.c (gimple_fold_stmt_to_constant_1): For ternary ops
7438         with an embedded expression valueize and fold that as well.
7439         * tree-ssa-sccvn.c (try_to_simplify): Also allow SSA name
7440         results from gimple_fold_stmt_to_constant_1.
7441
7442 2011-10-05  Nick Clifton  <nickc@redhat.com>
7443
7444         * config/rx/rx.md (tablejump): Add missing label.
7445         (adddi3_internal): Mark operand 0 as early-clobbered.
7446         (smaxsi3): Revert previous delta.
7447         (adc_internal): Fix whitespace in generated asm.
7448         (adc_flags): Likewise.
7449
7450 2011-10-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7451
7452         * expmed.c (expand_mult_highpart_optab): Replace optab_handler
7453         with the new widening_optab_handler.
7454
7455 2011-10-05  Richard Guenther  <rguenther@suse.de>
7456
7457         PR tree-optimization/50609
7458         * gimple-fold.c (fold_array_ctor_reference): Also handle
7459         vector typed constructors.
7460         (fold_ctor_reference): Dispatch to fold_array_ctor_reference
7461         for vector typed constructors.
7462
7463 2011-10-05  Uros Bizjak  <ubizjak@gmail.com>
7464
7465         * config/i386/i386.c (ix86_emit_binop): New static function.
7466         (ix86_split_lea_for_addr): Use ix86_emit_binop to emit add and shl
7467         instructions.
7468         (x86_output_mi_thunk): Use ix86_emit_binop to emit add instructions.
7469
7470 2011-10-04  David S. Miller  <davem@davemloft.net>
7471
7472         * config/sparc/sparc.md (UNSPEC_FHADD, UNSPEC_FHSUB,
7473         UNSPEC_XMUL): New unspecs.
7474         (muldi3_v8plus): Use output_v8plus_mult.
7475         (*naddsf3, *nadddf3, *nmulsf3, *nmuldf3, *nmuldf3_extend):
7476         New VIS 3.0 combiner patterns.
7477         (fhaddsf_vis, fhadddf_vis, fhsubsf_vis, fhsubdf_vis,
7478         fnhaddsf_vis, fnhaddf_vis, umulxhi_vis, *umulxhi_sp64,
7479         umulxhi_v8plus, xmulx_vis, *xmulx_sp64, xmulx_v8plus,
7480         xmulxhi_vis, *xmulxhi_sp64, xmulxhi_v8plus): New VIS 3.0
7481         builtins patterns.
7482         * config/sparc/sparc.c (sparc_vis_init_builtins): Emit new builtins.
7483         (output_v8plus_mult): New function.
7484         * config/sparc/sparc-protos.h: Declare it.
7485         * config/sparc/visintrin.h (__vis_fhadds, __vis_fhaddd,
7486         __vis_fhsubs, __vis_fhsubd, __vis_fnhadds, __vis_fnhaddd,
7487         __vis_umulxhi, __vis_xmulx, __vis_xmulxhi): New intrinsics.
7488         * doc/extend.texi: Document new builtins.
7489
7490 2011-10-04  Richard Henderson  <rth@redhat.com>
7491
7492         * c-typeck.c (c_build_vec_shuffle_expr): Fix uninitialized variable.
7493         Avoid save_expr unless two_arguments.
7494
7495 2011-10-04  Ozkan Sezer  <sezeroz@gmail.com>
7496
7497         * config/i386/mingw-w64.h (CPP_SPEC): Rename _REENTRANCE to _REENTRANT.
7498         * config/i386/mingw32.h (CPP_SPEC): Likewise.
7499
7500 2011-10-04  David S. Miller  <davem@davemloft.net>
7501
7502         * config/sparc/driver-sparc.c (cpu_names): Fix string for supersparc
7503         under Linux.
7504
7505 2011-10-04  Jakub Jelinek  <jakub@redhat.com>
7506
7507         PR tree-optimization/50604
7508         * builtins.c (fold_builtin_strcpy, fold_builtin_stpcpy,
7509         fold_builtin_strncpy, fold_builtin_stxcpy_chk): Ensure
7510         last argument to memcpy has size_type_node type instead of ssizetype.
7511         * tree-ssa-strlen.c (handle_builtin_memcpy): Use size_type_node
7512         instead of TREE_TYPE (len) as type for newlen.
7513
7514         PR tree-optimization/50522
7515         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Don't test
7516         TYPE_RESTRICT.
7517         (ptr_derefs_may_alias_p): Call pt_solutions_same_restrict_base
7518         unconditionally.
7519
7520         * fold-const.c (fold_unary_loc): Don't optimize
7521         POINTER_PLUS_EXPR casted to TYPE_RESTRICT pointer by
7522         casting the inner pointer if it isn't TYPE_RESTRICT.
7523         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't through
7524         casts from non-TYPE_RESTRICT pointer to TYPE_RESTRICT pointer.
7525
7526 2011-10-04  Joseph Myers  <joseph@codesourcery.com>
7527
7528         * config.gcc (i[34567]86-*-elf*, x86_64-*-elf*): Use i386/t-crtstuff.
7529
7530 2011-10-04  Jan Hubicka  <jh@suse.cz>
7531
7532         * lto-streamer.h (lto_input_toplevel_asms): Add order_base parameter.
7533         * lto-streamer-in.c (lto_input_toplevel_asms): Stream in order.
7534         * lto-streamer-out.c (lto_output_toplevel_asms): Stream out order.
7535         * lto-cgraph.c (order_base): New static var.
7536         (lto_output_node): Stream in order.
7537         (lto_output_varpool_node): Stream out order.
7538         (input_node): Stream in order.
7539         (input_varpool_node): Stream out order.
7540         (input_cgraph_1): Initialize order base; update call of
7541         lto_input_toplevel_asms.
7542
7543 2011-10-04  Georg-Johann Lay  <avr@gjlay.de>
7544
7545         PR target/50566
7546         * config/avr/avr-protos.h (avr_legitimize_reload_address): New
7547         prototype.
7548         * config/avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Copy worker code
7549         from here...
7550         * config/avr/avr.c (avr_legitimize_reload_address) ...to this new
7551         function.  Log if avr_log.legitimize_reload_address.
7552
7553 2011-10-04  Eric Botcazou  <ebotcazou@adacore.com>
7554
7555         * config/sparc/sparc.c (sparc_fold_builtin): Use a sequence of tests.
7556
7557 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7558
7559         * longlong.h (smul_ppmm, sdiv_qrnnd): Add underscores to the local
7560         variables.  Fix second operand of DR.  Swap inputs for sdiv_qrnnd.
7561
7562 2011-10-03  David S. Miller  <davem@davemloft.net>
7563
7564         * config/sparc/sparc.md (fpack16_vis, fpackfix_vis, fpack32_vis): Make
7565         GSR_REG an input operand to UNSPEC instead of a parallel USE.
7566         (faligndata<V64I:mode>_vis): Likewise and use DI mode.
7567         (alignaddrsi_vis, alignaddrdi_vis, alignaddrlsi_vis, alignaddrldi_vis):
7568         Reference GSR_REG in DI mode, simplify convoluted expressions by using
7569         zero_extract.
7570         (bshuffle<V64I:mode>_vis): Reference GSR_REG in DI mode.
7571
7572 2011-10-03  Maxim Kuvyrkov  <maxim@codesourcery.com>
7573
7574         * tree-eh.c (remove_unreachable_handlers): Obvious cleanup.
7575
7576 2011-10-03  Jakub Jelinek  <jakub@redhat.com>
7577             Ian Lance Taylor  <iant@google.com>
7578
7579         * godump.c (go_output_typedef): Support printing enum values that
7580         don't fit in a signed HOST_WIDE_INT.
7581
7582 2011-10-03  Anatoly Sokolov  <aesok@post.ru>
7583
7584         * config/cris/cris.c (cris_output_addr_const_extra): Make static.
7585         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
7586         * config/cris/cris.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
7587         * config/cris/cris-protos.h (cris_output_addr_const_extra): Remove.
7588
7589 2011-10-03  Anatoly Sokolov  <aesok@post.ru>
7590
7591         * config/m68k/m68k.c (m68k_output_addr_const_extra): Make static.
7592         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
7593         * config/m68k/m68k.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
7594         * config/m68k/m68k-protos.h (m68k_output_addr_const_extra): Remove.
7595
7596 2011-10-03  Steve Ellcey  <sje@cup.hp.com>
7597
7598         PR target/49967
7599         * configure.ac (gcc_cv_ld_static_dynamic): Define for *-*-hpux*.
7600         (gcc_cv_ld_static_option): Ditto.
7601         (gcc_cv_ld_dynamic_option): Ditto.
7602         * configure: Regenerate.
7603
7604 2011-10-03  David S. Miller  <davem@davemloft.net>
7605
7606         * config/sparc/sparc.md (bmask<P:mode>_vis): Split into explicit 'di'
7607         and 'si' patterns which describe the GSR changes explicitly in the
7608         RTL using zero_extract.
7609         (bshuffle<V64I:mode>_vis): Put the GSR use inside of the unspec.
7610
7611         * config/sparc/sparc.md (bshuffle<V64I:mode>_vis): Don't wrap
7612         GSR_REG in a USE, since it's now a true arg to the UNSPEC.
7613
7614 2011-10-03  Artjoms Sinkarovs  <artyom.shinkaroff@gmail.com>
7615
7616         * optabs.c (expand_vec_shuffle_expr_p): New function. Checks
7617         if given expression can be expanded by the target.
7618         (expand_vec_shuffle_expr): New function. Expand VEC_SHUFFLE_EXPR
7619         using target vector instructions.
7620         * optabs.h: New optab vshuffle.
7621         (expand_vec_shuffle_expr_p): New prototype.
7622         (expand_vec_shuffle_expr): New prototype.
7623         (vshuffle_optab): New optab.
7624         * genopinit.c: Adjust to support vecshuffle.
7625         * c-tree.h (c_build_vec_shuffle_expr): New prototype.
7626         * expr.c (expand_expr_real_2): Adjust.
7627         * c-typeck.c: (c_build_vec_shuffle_expr): Build a VEC_SHUFFLE_EXPR
7628         recognizing the cases of two and three arguments.
7629         (convert_arguments) (build_binary_op)
7630         (scalar_to_vector) (build_array_ref): Spurious whitespace.
7631         * gimplify.c (gimplify_exp): Adjusted to support VEC_SHUFFLE_EXPR.
7632         * tree.def: New tree code VEC_SHUFFLE_EXPR.
7633         * tree-inline.c (estimate_operator_cost): Recognize VEC_SHUFFLE_EXPR.
7634         * tree-vect-generic.c (vector_element): New function. Returns an
7635         element of the vector at the given position.
7636         (lower_vec_shuffle): Checks if VEC_SHUFLLE_EXPR is supported
7637         by the backend or expand an expression piecewise.
7638         (expand_vector_operations_1): Adjusted.
7639         (gate_expand_vector_operations_noop): New gate function.
7640         * Makefile.in (tree-vect-generic.o): New include.
7641         * gimple.c (get_gimple_rhs_num_ops): Adjust.
7642         * tree-cfg.c (verify_gimple_assign_trenary): Verify VEC_SHUFFLE_EXPR.
7643         * passes.c: Move veclower down.
7644         * tree-pretty-print.c (dump_generic_node): Recognize
7645         VEC_SHUFFLE_EXPR as valid expression.
7646         * c-parser.c (c_parser_get_builtin_args): Helper function for the
7647         builtins with variable number of arguments.
7648         (c_parser_postfix_expression): Use a new helper function for
7649         RID_CHOOSE_EXPR, RID_BUILTIN_COMPLEX and RID_BUILTIN_SHUFFLE.
7650         * tree-ssa-operands: Adjust.
7651         * c-family/c-common.c: New __builtin_shuffle keyword.
7652         * c-family/c-common.h: New __builtin_shuffle keyword.
7653         * gcc/doc/extend.texi: Adjust.
7654
7655         * gcc/config/i386/sse.md: (sseshuffint) New mode_attr.  Correspondence
7656         between the vector and the type of the mask when shuffling.
7657         (vecshuffle<mode>): New expansion.
7658         * gcc/config/i386/i386-protos.h (ix86_expand_vshuffle): New prototype.
7659         * gcc/config/i386/i386.c (ix86_expand_vshuffle): New function.
7660         (ix86_vectorize_builtin_vec_perm_ok): Adjust.
7661
7662 2011-10-03  Jakub Jelinek  <jakub@redhat.com>
7663
7664         PR tree-optimization/50587
7665         * tree-ssa-reassoc.c (init_range_entry): Stop iterating when
7666         arg0 is not a SSA_NAME.
7667
7668 2011-10-03  Richard Sandiford  <rdsandiford@googlemail.com>
7669
7670         * ipa-inline-analysis.c (MAX_TIME): Update comment.
7671
7672 2011-10-02  Richard Henderson  <rth@redhat.com>
7673             David S. Miller  <davem@davemloft.net>
7674
7675         * config/sparc/sparc.md (ashlsi3, *ashldi3_sp64): Remove
7676         conditional insn type setting, we always emit a shift.
7677         (*ashlsi3_extend, *lshrsi3_extend0): New patterns.
7678         (*lshrsi3_extend): Rename to *lshrsi3_extend1.
7679         * config/sparc/predicates.md (const_one_operand): Delete.
7680
7681 2011-10-02  Gerald Pfeifer  <gerald@pfeifer.com>
7682
7683         * invoke.texi (SPARC Options): Refer to GNU/Linux.
7684
7685 2011-10-02  Richard Sandiford  <rdsandiford@googlemail.com>
7686
7687         * config/mips/mips.c (mips_frame_barrier): New function.
7688         (mips_expand_prologue): Call it after allocating stack space.
7689         (mips_deallocate_stack): New function.
7690         (mips_expand_epilogue): Call mips_frame_barrier and
7691         mips_deallocate_stack.
7692
7693 2011-10-02  Richard Sandiford  <rdsandiford@googlemail.com>
7694
7695         PR target/49696
7696         * config/mips/sync.md (sync_<optab>_12): Allow zero operands.
7697         (sync_old_<optab>_12, sync_new_<optab>_12, sync_nand_12): Likewise.
7698         (sync_old_nand_12, sync_new_nand_12, test_and_set_12): Likewise.
7699
7700 2011-10-02  Jan Hubicka  <jh@suse.cz>
7701
7702         * cgraphunit.c (verify_edge_count_and_frequency): Bounds check.
7703
7704         * cgraphunit.c (ipa_passes): Remove unrechable nodes.
7705         * lto-streamer-out.c (produce_symtab): Skip unused extern declarations.
7706         * ipa.c (cgraph_remove_unreachable_nodes): Do not assume that external
7707         functions are reachable when address is taken.
7708         * tree-sra.c (modify_function): Free dominance info.
7709
7710 2011-10-02  Jan Hubicka  <jh@suse.cz>
7711
7712         * ipa-inline-analysis.c (inline_summary_alloc): Bounds check.
7713
7714         * ipa-inline-analysis.c (reset_inline_edge_summary): New function.
7715         (reset_inline_summary): New function.
7716         (compute_inline_parameters, inline_node_removal_hook,
7717         inline_edge_removal_hook): Use it.
7718         (inline_free_summary): Reset holders correctly.
7719         (inline_generate_summary): Free summary before computing it.
7720
7721 2011-10-02  Paolo Carlini  <paolo.carlini@oracle.com>
7722
7723         PR preprocessor/36819
7724         * incpath.c (merge_include_chains): Call free_path on
7725         heads[QUOTE] and tails[QUOTE].
7726
7727 2011-10-02  Jan Hubicka  <jh@suse.cz>
7728
7729         PR lto/47247
7730         * lto-symtab.c (lto_symtab_resolve_symbols): Do not resolve
7731         when resolution is already availbale from plugin.
7732         (lto_symtab_merge_decls_1): Handle LDPR_PREVAILING_DEF_IRONLY_EXP.
7733         * cgraph.c (ld_plugin_symbol_resolution): Add
7734         prevailing_def_ironly_exp.
7735         * lto-cgraph.c (LDPR_NUM_KNOWN): Update.
7736         * ipa.c (varpool_externally_visible_p): IRONLY variables are never
7737         externally visible.
7738         * varasm.c (resolution_to_local_definition_p): Add
7739         LDPR_PREVAILING_DEF_IRONLY_EXP.
7740         (resolution_local_p): Likewise.
7741
7742 2011-10-01  David S. Miller  <davem@davemloft.net>
7743
7744         * config/sparc/sparc.opt (VIS3): New option.
7745         * doc/invoke.texi: Document it.
7746         * config/sparc/sparc.h: Force TARGET_VIS3 to zero if assembler is
7747         not capable of such instructions.
7748         * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__
7749         to 0x300 when TARGET_VIS3.
7750         * config/sparc/sparc-modes.def: Create 16-byte vector modes.
7751         * config/sparc/sparc.md (UNSPEC_CMASK8, UNSPEC_CMASK16, UNSPEC_CMASK32,
7752         UNSPEC_FCHKSM16, UNSPEC_PDISTN, UNSPC_FUCMP): New unspecs.
7753         (V64N8, VASS): New mode iterators.
7754         (vis3_shift, vis3_addsub_ss): New code iterators.
7755         (vbits, vconstr): New mode attributes.
7756         (vis3_shift_insn, vis3_addsub_ss_insn): New code attributes.
7757         (cmask8<P:mode>_vis, cmask16<P:mode>_vis, cmask32<P:mode>_vis,
7758         fchksm16_vis, <vis3_shift_insn><vbits>_vis, pdistn<mode>_vis,
7759         fmean16_vis, fpadd64_vis, fpsub64_vis,
7760         <vis3_addsub_ss_insn><vbits>_vis, fucmp<code>8<P:mode>_vis): New
7761         VIS 3.0 instruction patterns.
7762         * config/sparc/sparc.c (sparc_option_override): Set MASK_VIS3 by
7763         default when targetting capable cpus.  TARGET_VIS3 implies
7764         TARGET_VIS2 and TARGET_VIS, and clear them when TARGET_FPU is disabled.
7765         (sparc_vis_init_builtins): Emit new VIS 3.0 builtins.
7766         (sparc_fold_builtin): Do not eliminate cmask{8,16,32} when result
7767         is ignored.
7768         * config/sparc/visintrin.h (__vis_cmask8, __vis_cmask16,
7769         __vis_cmask32, __vis_fchksm16, __vis_fsll16, __vis_fslas16,
7770         __vis_fsrl16, __vis_fsra16, __vis_fsll32, __vis_fslas32,
7771         __vis_fsrl32, __vis_fsra32, __vis_pdistn, __vis_fmean16,
7772         __vis_fpadd64, __vis_fpsub64, __vis_fpadds16, __vis_fpadds16s,
7773         __vis_fpsubs16, __vis_fpsubs16s, __vis_fpadds32, __vis_fpadds32s,
7774         __vis_fpsubs32, __vis_fpsubs32s, __vis_fucmple8, __vis_fucmpne8,
7775         __vis_fucmpgt8, __vis_fucmpeq8): New VIS 3.0 interfaces.
7776         * doc/extend.texi: Document new VIS 3.0 builtins.
7777
7778 2011-10-01  Eric Botcazou  <ebotcazou@adacore.com>
7779
7780         * ira-color.c (assign_hard_reg): Fix typo.
7781
7782 2011-09-30  H.J. Lu  <hongjiu.lu@intel.com>
7783
7784         * doc/extend.texi: Add missing ','.
7785
7786 2011-09-30  Bernd Schmidt  <bernds@codesourcery.com>
7787
7788         * common/config/c6x/c6x-common.c (c6x_option_optimization_table):
7789         Enable -fmodulo-sched at -O2 and above.
7790         * config/c6x/c6x.md (doloop_end): New expander.
7791         (mvilc, sploop, spkernel, loop_end): New patterns.
7792         (loop_end with memory destination splitter): New.
7793         * config/c6x/c6x.c: Include "hw-doloop.h".
7794         (enum unitreqs): New.
7795         (unit_req_table): New typedef.
7796         (unit_reqs): New static variable.
7797         (unit_req_factor, get_unit_reqs, count_unit_reqs, merge_unit_reqs,
7798         res_mii, split_delayed_nonbranch, undo_split_delayed_nonbranch,
7799         hwloop_pattern_reg, bb_earliest_end_cycle, filter_insns_above,
7800         hwloop_optimize, hwloop_fail, c6x_hwloops): New static functions.
7801         (struct c6x_sched_context): New member last_scheduled_iter0.
7802         (init_sched_state): Initialize it.
7803         (c6x_variable_issue): Update it.
7804         (sploop_max_uid_iter0): New static variable.
7805         (c6x_sched_reorder_1): Be careful about issuing sploop.
7806         (c6x_reorg): Call c6x_hwlooops before the final schedule.
7807
7808 2011-09-30  Georg-Johann Lay  <avr@gjlay.de>
7809
7810         PR target/50566
7811         * config/avr/avr-protos.h (avr_log_t): New field address_cost.
7812         * config/avr/avr.c (avr_address_cost): Use it.
7813         * config/avr/avr-log.c (avr_log_set_avr_log): Initialize it.
7814         (avr_log_vadump): Unknown %-codes finish printing.
7815
7816 2011-09-30  Jakub Jelinek  <jakub@redhat.com>
7817
7818         PR inline-asm/50571
7819         * gimple-fold.c (fold_stmt_1) <case GIMPLE_ASM>: If
7820         input constraints allow mem and not reg, pass true instead of
7821         false as second argument to maybe_fold_reference.
7822
7823         PR tree-optimization/46309
7824         * fold-const.c (make_range, merge_ranges): Remove prototypes.
7825         (make_range_step): New function.
7826         (make_range): Use it.
7827         * tree.h (make_range_step): New prototypes.
7828         * Makefile.in (tree-ssa-reassoc.o): Depend on $(DIAGNOSTIC_CORE_H).
7829         * tree-ssa-reassoc.c: Include diagnostic-core.h.
7830         (struct range_entry): New type.
7831         (init_range_entry, range_entry_cmp, update_range_test,
7832         optimize_range_tests): New functions.
7833         (reassociate_bb): Call optimize_range_tests.
7834
7835 2011-09-30  Jakub Jelinek  <jakub@redhat.com>
7836             Richard Guenther  <rguenther@suse.de>
7837
7838         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Handle
7839         BUILT_IN_STRDUP and BUILT_IN_STRNDUP.
7840         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Likewise.  Fix
7841         handling of BUILT_IN_STRNCAT and BUILT_IN_STRNCAT_CHK.
7842         (ref_maybe_used_by_call_p_1): Fix handling of BUILT_IN_STRCAT,
7843         BUILT_IN_STRNCAT, BUILT_IN_STRCAT_CHK and BUILT_IN_STRNCAT_CHK.
7844
7845 2011-09-30  Jan Beulich  <jbeulich@suse.com>
7846
7847         * lto-cgraph.c (output_cgraph): Remove processing of
7848         'cgraph_asm_nodes', call lto_output_toplevel_asms() instead.
7849         (input_cgraph_1): Remove loop calling cgraph_add_asm_node(), call
7850         lto_input_toplevel_asms() instead.
7851         * lto-section-in.c (lto_section_name): Add "asm" entry.
7852         * lto-streamer-in.c (lto_input_toplevel_asms): New.
7853         * lto-streamer-out.c (lto_output_toplevel_asms): New.
7854         * lto-streamer.h (LTO_minor_version): Bump.
7855         (enum lto_section_type): Add LTO_section_asm.
7856         (struct lto_asm_header): New.
7857         (lto_input_toplevel_asms, lto_output_toplevel_asms): Declare.
7858         * tree-streamer.h (streamer_write_string_cst): Declare.
7859         * tree-streamer-out.c (write_string_cst): Rename to
7860         streamer_write_string_cst and make global. Handle incoming string
7861         being NULL.
7862         (streamer_write_tree_header): Adjust call to renamed function.
7863
7864 2011-09-30  Bernd Schmidt  <bernds@codesourcery.com>
7865
7866         * haifa-sched.c (modulo_ii, modulo_max_states, modulo_n_insns,
7867         modulo_insns_scheduled, modulo_iter0_max_uid, modulo_backtracks_left,
7868         modulo_last_stage): New static variables.
7869         (set_modulo_params, discard_delay_pairs_above): New functions.
7870         (struct delay_pair): New member stages.
7871         (htab_i2_traverse, htab_i1_traverse): New static functions.
7872         (record_delay_slot_pair): New arg stages.  All callers changed.
7873         Record it.
7874         (pair_delay): Take stages into account.
7875         (add_delay_dependencies): Don't do so for stage pairs.
7876         (struct sched_block_state): New member modulo_epilogue.
7877         (save_backtrack_point): Don't set SHADOW_P for stage pairs.
7878         (unschedule_insns_until): Decrease modulo_insns_scheduled.
7879         Set HARD_DEP without using or.
7880         (resolve_dependencies): New static function.
7881         (prune_ready_list): New arg modulo_epilogue_p.  All callers changed.
7882         If it is true, allow only insns with INSN_EXACT_TICK set.
7883         (schedule_block): Return bool, always true for normal scheduling,
7884         true or false depending on modulo scheduling success otherwise.
7885         Add bookkeeping for modulo scheduling, and call resolve_dependencies
7886         on everything left over after a modulo schedule.
7887         (haifa_sched_init): Remove check_cfg call.  Clear modulo_ii.
7888         * sched-int.h (schedule_block, record_delay_slot_pair): Adjust
7889         declarations.
7890         (set_modulo_params, discard_delay_pairs_above): Declare.
7891         * params.def (PARAM_MAX_MODULO_BACKTRACK_ATTEMPS): New.
7892         * doc/invoke.texi (--param): Document it.
7893
7894         * sched-ebb.c (schedule_ebb): No longer static.  Remove declaration.
7895         New arg modulo_scheduling.  All callers changed.  Move note handling
7896         code here from schedule_ebbs.
7897         (schedule_ebbs_finish, schedule_ebbs_init): New functions, broken
7898         out of schedule_ebbs.
7899         (schedule_ebbs): Call them.  Remove note handling code moved to
7900         schedule_ebb.
7901         * sched-int.h (schedule_ebb, schedule_ebbs_init,
7902         schedule_ebbs_finish): Declare.
7903
7904 2011-09-30  Richard Guenther  <rguenther@suse.de>
7905
7906         PR middle-end/50574
7907         * tree-cfg.c (verify_gimple_comparison): Compare component
7908         mode sizes for vector comparisons.
7909
7910 2011-09-30  Revital Eres  <revital.eres@linaro.org>
7911
7912         * ddg.c (autoinc_var_is_used_p): New function.
7913         (create_ddg_dep_from_intra_loop_link,
7914         add_cross_iteration_register_deps): Call it.
7915         * ddg.h (autoinc_var_is_used_p): Declare.
7916         * modulo-sched.c (generate_reg_moves): Call autoinc_var_is_used_p.
7917         (sms_schedule): Handle instructions with REG_INC.
7918
7919 2011-09-30  Revital Eres  <revital.eres@linaro.org>
7920
7921         * modulo-sched.c (generate_reg_moves): Skip instructions that
7922         do not set a register and verify no regmoves are created for
7923         !single_set instructions.
7924
7925 2011-09-30  Bernd Schmidt  <bernds@codesourcery.com>
7926
7927         * hw-doloop.c (scan_loop): Compute register usage only for non-debug
7928         insns.
7929
7930 2011-09-30  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
7931
7932         PR target/50099
7933         * config/arm/iterators.md (qhs_zextenddi_cstr): New.
7934         (qhs_zextenddi_op): New.
7935         * config/arm/arm.md ("zero_extend<mode>di2"): Use them.
7936         * config/arm/predicates.md ("arm_extendqisi_mem_op"):
7937         Distinguish between ARM and Thumb2 states.
7938
7939 2011-09-30  David S. Miller  <davem@davemloft.net>
7940
7941         * config/sparc/sparc.opt (VIS2): New option.
7942         * doc/invoke.texi: Document it.
7943         * config/sparc/sparc.md (UNSPEC_EDGE8N, UNSPEC_EDGE8LN,
7944         UNSPEC_EDGE16N, UNSPEC_EDGE16LN, UNSPEC_EDGE32N,
7945         UNSPEC_EDGE32LN, UNSPEC_BSHUFFLE): New unspecs.
7946         (define_attr type): New insn type 'edgen'.
7947         (bmask<P:mode>_vis, bshuffle<V64I:mode>_vis, edge8n<P:mode>_vis,
7948         edge8ln<P:mode>_vis, edge16n<P:mode>_vis, edge16ln<P:mode>_vis,
7949         edge32n<P:mode>_vis, edge32ln<P:mode>_vis): New insn VIS 2.0
7950         patterns.
7951         * niagara.md: Handle edgen.
7952         * niagara2.md: Likewise.
7953         * ultra1_2.md: Likewise.
7954         * ultra3.md: Likewise.
7955         * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__
7956         to 0x200 when TARGET_VIS2.
7957         * config/sparc/sparc.c (sparc_option_override): Set MASK_VIS2 by
7958         default when targetting capable cpus.  TARGET_VIS2 implies
7959         TARGET_VIS, clear and it when TARGET_FPU is disabled.
7960         (sparc_vis_init_builtins): Emit new VIS 2.0 builtins.
7961         (sparc_expand_builtin): Fix predicate indexing when builtin returns
7962         void.
7963         (sparc_fold_builtin): Do not eliminate bmask when result is ignored.
7964         * config/sparc/visintrin.h (__vis_bmask, __vis_bshuffledi,
7965         __vis_bshufflev2si, __vis_bshufflev4hi, __vis_bshufflev8qi,
7966         __vis_edge8n, __vis_edge8ln, __vis_edge16n, __vis_edge16ln,
7967         __vis_edge32n, __vis_edge32ln): New VIS 2.0 interfaces.
7968         * doc/extend.texi: Document new VIS 2.0 builtins.
7969
7970 2011-09-29  Nick Clifton  <nickc@redhat.com>
7971             Bernd Schmidt  <bernds@codesourcery.com>
7972
7973         * config/frv/frvbegin.c: Fix location of unwind-dw2-fde.h header file.
7974         * config/frv/frvend.c: Likewise.
7975         * config/frv/frv.c (frv_function_prologue): Move misplaced
7976         CALL_ARG_LOCATION notes back to their proper locations.
7977
7978 2011-09-29  Georg-Johann Lay  <avr@gjlay.de>
7979
7980         PR target/50566
7981         * config/avr/avr-log.c (avr_log_vadump): Use %b to print bool.
7982         * config/avr/avr.c (avr_rtx_costs_1): New static function, renamed
7983         from avr_rtx_costs.
7984         (avr_legitimate_address_p): Use avr_edump to print log information
7985         filtered by avr_log.
7986         (extra_constraint_Q): Ditto.
7987         (avr_legitimize_address): Ditto.
7988         (avr_rtx_costs): Ditto.  Rewrite as wrapper for avr_rtx_costs_1.
7989         (final_prescan_insn): Use avr_log.rtx_costs as filter.
7990
7991 2011-09-29  Richard Sandiford  <richard.sandiford@linaro.org>
7992
7993         * config/arm/arm-protos.h (arm_modes_tieable_p): Declare.
7994         * config/arm/arm.h (MODES_TIEABLE_P): Use it.
7995         * config/arm/arm.c (arm_modes_tieable_p): New function.  Allow
7996         NEON vector and structure modes to be tied.
7997
7998 2011-09-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7999
8000         * graphite-scop-detection.c (make_close_phi_nodes_unique):  New
8001         forward declaration.
8002         (remove_duplicate_close_phi): Detect and repair creation of
8003         duplicate close-phis for a containing loop.
8004
8005 2011-09-27   Andi Kleen <ak@linux.intel.com>
8006
8007         * gcc.c (get_local_tick). Rename to get_random_number.  Read from
8008         /dev/urandom.  Add getpid call.
8009         (compare_debug_dump_opt_spec_function): Drop getpid call.
8010
8011 2011-09-26   Andi Kleen <ak@linux.intel.com>
8012
8013         * toplev.c (init_local_tick): Try reading random seed
8014         from /dev/urandom.
8015
8016 2011-09-26   Andi Kleen <ak@linux.intel.com>
8017
8018         * hwint.h (HOST_WIDE_INT_PRINT_HEX_PURE): Add.
8019         * lto-streamer.c (lto_get_section_name): Remove crc32_string.
8020         Handle numerical random seed.
8021         * lto-streamer.h (lto_file_decl_data): Change id to
8022         unsigned HOST_WIDE_INT.
8023         * toplev.c (random_seed): Add.
8024         (init_random_seed): Change for numerical random seed.
8025         (get_random_seed): Return as HOST_WIDE_INT.
8026         (set_random_seed): Crc32 existing string.
8027         * toplev.h (get_random_seed): Change to numercal return.
8028         * tree.c (get_file_function_name): Remove CRC. Handle
8029         numerical random seed.
8030
8031 2011-09-29  Georg-Johann Lay  <avr@gjlay.de>
8032
8033         PR target/50566
8034         * config.gcc (extra_objs): Add avr-log.o for $target in:
8035         avr-*-rtems*, avr-*-*.
8036         * config/avr/t-avr (avr-log.o): New rule to compile...
8037         * config/avr/avr-log.c: ...this new file.
8038         * config/avr/avr.opt (mlog=): New option.
8039         * config/avr/avr-protos.h (avr_edump, avr_fdump): New macros.
8040         (avr_log_set_caller_e, avr_log_set_caller_f): New prototypes.
8041         (avr_log_set_avr_log): New prototype.
8042         (avr_log_t): New typedef.
8043         (avr_log): New declaration.
8044         * config/avr/avr.c (avr_option_override): Call avr_log_set_avr_log.
8045
8046 2011-09-29  Artjoms Sinkarovs <artyom.shinkaroff@gmail.com>
8047
8048         * expr.c (do_store_flag): Expand vector comparison by
8049         building an appropriate VEC_COND_EXPR.
8050         * c-typeck.c (build_binary_op): Typecheck vector comparisons.
8051         (c_objc_common_truthvalue_conversion): Adjust.
8052         * tree-vect-generic.c (do_compare): Helper function.
8053         (expand_vector_comparison): Check if hardware supports
8054         vector comparison of the given type or expand vector piecewise.
8055         (expand_vector_operation): Treat comparison as binary
8056         operation of vector type.
8057         (expand_vector_operations_1): Adjust.
8058
8059 2011-09-29  Richard Guenther  <rguenther@suse.de>
8060
8061         * tree.c (build_opaque_vector_type): Make opaque vectors
8062         variant types of the corresponding non-opaque type.  Make
8063         sure to share opaque vector types properly.
8064
8065 2011-09-29  David S. Miller  <davem@davemloft.net>
8066
8067         * config/sparc/sparc.md (UNSPEC_ARRAY8, UNSPEC_ARRAY16,
8068         UNSPEC_ARRAY32): New unspec.
8069         (define_attr type): New type 'array'.
8070         (array{8,16,32}<P:mode>_vis): New patterns.
8071         * config/sparc/ultra1_2.md: Add reservations for 'array'.
8072         * config/sparc/ultra3.md: Likewise.
8073         * config/sparc/niagara.md: Likewise.
8074         * config/sparc/niagara2.md: Likewise.
8075         * config/sparc/sparc.c (sparc_vis_init_builtins): Build new
8076         array builtins.
8077         * config/sparc/visintrin.h (__vis_array8, __vis_array16,
8078         __vis_array32): New.
8079         * doc/extend.texi: Document new VIS builtins.
8080
8081         * config/sparc/sparc.md (gcond_name): Delete unnecessary code attr.
8082         (VIS pixel-compare insn): Just use <gcond:name>.
8083
8084         * config/sparc/sparc.md (VIS pixel-compare insn): There is only one
8085         code iterator used, so just use <code>.  There are two mode iterators
8086         so explicitly use <GCM:gcm_name>.
8087
8088 2011-09-29  Iain Sandoe  <iains@gcc.gnu.org>
8089
8090         * config/darwin9.h (STACK_CHECK_STATIC_BUILTIN): Enable for
8091         Darwin >= 9.
8092
8093 2011-09-28  David S. Miller  <davem@davemloft.net>
8094
8095         * config/sparc/sparc.md (UNSPEC_FCMPLE, UNSPEC_FCMPNE,
8096         UNSPEC_FCMPGT, UNSPEC_FCMPEQ): Delete and reduce to...
8097         (UNSPEC_FCMP): New unspec.
8098         (gcond): New code iterator.
8099         (gcond_name): New code attr.
8100         (GCM): New mode iterator.
8101         (gcm_name): New mode attr.
8102         (fcmp{le,ne,gt,eq}{16,32}_vis): Reimplement using iterators.
8103
8104 2011-09-28  Oleg Endo  <oleg.endo@t-online.de>
8105
8106         PR target/49486
8107         * config/sh/sh.md (negdi2): Move expansion into split to
8108         allow more combination options.  Add T_REG clobber.
8109         (abssi2): New expander.
8110         (*negdi2, *abssi2, *negabssi2): New insns.
8111         (cneg): Change from insn to insn_and_split.  Rename to
8112         negsi_cond.  Add alternative for non-SH4.
8113
8114 2011-09-28  Richard Sandiford  <richard.sandiford@linaro.org>
8115
8116         * config/arm/neon.md (neon_move_lo_quad_<mode>): Delete.
8117         (neon_move_hi_quad_<mode>): Likewise.
8118         (move_hi_quad_<mode>, move_lo_quad_<mode>): Use subreg moves.
8119
8120 2011-09-28  Nick Clifton  <nickc@redhat.com>
8121
8122         * config/rx/predicates.md (rx_minmax_operand): New predicate.
8123         Accepts immediates and a restricted subset of MEMs.
8124         * config/rx/rx.md (int_modes): New iterator.
8125         (smaxsi3, sminsi3): Delete and replace with...
8126         (smax<int_mode>3, smin<int_mode>3): New patterns.
8127         (umax<>3_u, umax<>3_ur, umax<>3, umin<>3): New patterns.
8128
8129 2011-09-28  Richard Guenther  <rguenther@suse.de>
8130
8131         PR middle-end/50460
8132         * fold-const.c (try_move_mult_to_index): Handle &a.array the
8133         same as &a.array[0].
8134
8135 2011-09-28  Kai Tietz  <ktietz@redhat.com>
8136
8137         * configure.ac: Add test for new section attribute
8138         specifier "e" via define HAVE_GAS_SECTION_EXCLUDE.
8139         * config.in: Regenerated.
8140         * configure: Regenerated.
8141         * config/i386/winnt.c (i386_pe_asm_named_section): Emit
8142         new section flag "e" for excluded sections, if supported.
8143         Otherwise we mark section withc SECTION_EXCLUDE flag as never-load.
8144
8145 2011-09-28  Richard Sandiford  <rdsandiford@googlemail.com>
8146
8147         * config/m32r/m32r.md: Use match_test rather than eq/ne symbol_ref
8148         throughout file.
8149
8150 2011-09-28  Richard Sandiford  <rdsandiford@googlemail.com>
8151
8152         * config/iq2000/iq2000.md: Use match_test rather than eq/ne symbol_ref
8153         throughout file.
8154
8155 2011-09-27  Sriraman Tallam  <tmsriram@google.com>
8156
8157         * output.h (SECTION_EXCLUDE): New macro.
8158         * varasm.c (default_elf_asm_named_section): Check for SECTION_EXCLUDE.
8159
8160 2011-09-27  Richard Sandiford  <rdsandiford@googlemail.com>
8161
8162         * fwprop.c (forward_propagate_and_simplify): After checking
8163         reg/subreg combinations, check whether the modes are the same.
8164
8165 2011-09-27  Bernd Schmidt  <bernds@codesourcery.com>
8166             Richard Sandiford  <rdsandiford@googlemail.com>
8167
8168         * config/mips/mips.c (mips_add_cfa_restore): New function.
8169         (mips16e_save_restore_reg): Use it.
8170         (mips_restore_reg): Likewise.  Split double FPRs for
8171         REG_CFA_RESTORE notes.
8172
8173 2011-09-27  Richard Sandiford  <rdsandiford@googlemail.com>
8174
8175         PR middle-end/50386
8176         PR middle-end/50326
8177         * tree-sra.c (build_ref_for_model): Use the type of the field as
8178         the type of the COMPONENT_REF.
8179
8180 2011-09-27  Jeff Law  <law@redhat.com>
8181
8182         * ifcvt.c (cheap_bb_rtx_cost_p): Add SCALE argument.  Scale
8183         non-jumping insns by REG_BR_PROB_BASE and the maximum cost by SCALE.
8184         (find_if_case_1): Use the probability of the THEN clause when
8185         determining if speculation is profitable.
8186         (find_if_case_2): Similarly for the ELSE clause.
8187
8188 2011-09-27  Jakub Jelinek  <jakub@redhat.com>
8189
8190         * common.opt: Add -foptimize-strlen option.
8191         * Makefile.in (OBJS): Add tree-ssa-strlen.o.
8192         (tree-sssa-strlen.o): Add dependencies.
8193         * opts.c (default_options_table): Enable -foptimize-strlen
8194         by default at -O2 if not -Os.
8195         * passes.c (init_optimization_passes): Add pass_strlen
8196         after pass_object_sizes.
8197         * timevar.def (TV_TREE_STRLEN): New timevar.
8198         * params.def (PARAM_MAX_TRACKED_STRLENS): New parameter.
8199         * tree-pass.h (pass_strlen): Declare.
8200         * tree-ssa-strlen.c: New file.
8201         * c-decl.c (merge_decls): If compatible stpcpy prototype
8202         is seen, set implicit_built_in_decls[BUILT_IN_STPCPY].
8203
8204 2011-09-27  Tom de Vries  <tom@codesourcery.com>
8205
8206         PR middle-end/43864
8207         * tree-ssa-tail-merge.c: New file.
8208         (struct same_succ_def): Define.
8209         (same_succ, const_same_succ): New typedef.
8210         (struct bb_cluster_def): Define.
8211         (bb_cluster, const_bb_cluster): New typedef.
8212         (struct aux_bb_info): Define.
8213         (BB_SIZE, BB_SAME_SUCC, BB_CLUSTER, BB_VOP_AT_EXIT): Define.
8214         (gvn_uses_equal): New function.
8215         (same_succ_print, same_succ_print_traverse, update_dep_bb)
8216         (stmt_update_dep_bb, local_def, same_succ_hash)
8217         (inverse_flags, same_succ_equal, same_succ_alloc, same_succ_delete)
8218         (same_succ_reset): New function.
8219         (same_succ_htab, same_succ_edge_flags)
8220         (deleted_bbs, deleted_bb_preds): New var.
8221         (debug_same_succ): New function.
8222         (worklist): New var.
8223         (print_worklist, add_to_worklist, find_same_succ_bb, find_same_succ)
8224         (init_worklist, delete_worklist, delete_basic_block_same_succ)
8225         (same_succ_flush_bbs, purge_bbs, update_worklist): New function.
8226         (print_cluster, debug_cluster, update_rep_bb)
8227         (add_bb_to_cluster, new_cluster, delete_cluster): New function.
8228         (all_clusters): New var.
8229         (alloc_cluster_vectors, reset_cluster_vectors, delete_cluster_vectors)
8230         (merge_clusters, set_cluster): New function.
8231         (gimple_equal_p, gsi_advance_bw_nondebug_nonlocal, find_duplicate)
8232         (same_phi_alternatives_1, same_phi_alternatives, bb_has_non_vop_phi)
8233         (deps_ok_for_redirect_from_bb_to_bb, deps_ok_for_redirect)
8234         (find_clusters_1, find_clusters): New function.
8235         (update_vuses, vop_phi, vop_at_entry, replace_block_by): New function.
8236         (update_bbs): New var.
8237         (apply_clusters): New function.
8238         (update_debug_stmt, update_debug_stmts): New function.
8239         (tail_merge_optimize): New function.
8240         tree-pass.h (tail_merge_optimize): Declare.
8241         * tree-ssa-pre.c (execute_pre): Use tail_merge_optimize.
8242         * Makefile.in (OBJS-common): Add tree-ssa-tail-merge.o.
8243         (tree-ssa-tail-merge.o): New rule.
8244         * opts.c (default_options_table): Set OPT_ftree_tail_merge by
8245         default at OPT_LEVELS_2_PLUS.
8246         * tree-ssa-sccvn.c (vn_valueize): Move to ...
8247         * tree-ssa-sccvn.h (vn_valueize): Here.
8248         * timevar.def (TV_TREE_TAIL_MERGE): New timevar.
8249         * common.opt (ftree-tail-merge): New switch.
8250         * params.def (PARAM_MAX_TAIL_MERGE_COMPARISONS)
8251         (PARAM_MAX_TAIL_MERGE_ITERATIONS): New parameter.
8252         * doc/invoke.texi (Optimization Options, -O2): Add -ftree-tail-merge.
8253         (-ftree-tail-merge, max-tail-merge-comparisons)
8254         (max-tail-merge-iterations): New item.
8255
8256 2011-09-27  Jan Hubicka  <jh@suse.cz>
8257
8258         * ipa-inline-analysis.c (MAX_TIME): Reduce to avoid overflows.
8259
8260 2011-09-27  Jan Hubicka  <jh@suse.cz>
8261
8262         * ipa-inline-analysis.c (eliminated_by_inlining_prob): Handle
8263         parameters passed by reference; handle loads from non-SSA scalars
8264         and update comments.
8265
8266 2011-09-27  Bernd Schmidt  <bernds@codesourcery.com>
8267
8268         PR rtl-optimization/50249
8269         * reload1.c (reload_reg_reaches_end_p): Accept a reloadnum argument
8270         instead of opnum and type.  All callers changed.  Remove useless
8271         declaration.
8272         Search forward for other reloads of the same type for the same operand
8273         using the same register; if any are found, return false.
8274         (reload_regs_reach_end_p): Same argument changes; all callers changed.
8275
8276 2011-09-27  Andi Kleen  <ak@linux.intel.com>
8277             Jan Hubicka  <jh@suse.cz>
8278
8279         * doc/invoke.texi (ffat-lto-objects): Document.
8280         * toplev.c (compile_file): Do not output assembly when doing slim lto;
8281         Output __gnu_slim_lto when doing slim lto.
8282         * cgraphunit.c (ipa_passes): Do only analysis when producing slim lto.
8283         (cgraph_optimize): Return early when doing slim lto.
8284         * opts.c (finish_options): Complain about lack of linker plugin
8285         when doing slim lto.
8286         * common.opt (ffat-lto-objects): New.
8287
8288 2011-09-27  Richard Sandiford  <richard.sandiford@linaro.org>
8289
8290         * ipa-inline-analysis.c (predicate_probability): Avoid comparison
8291         between signed and unsigned.
8292
8293 2011-09-27  Ira Rosen  <ira.rosen@linaro.org>
8294
8295         * tree-vect-stmts.c (vectorizable_type_demotion): Handle basic block
8296         vectorization.
8297         (vectorizable_type_promotion): Likewise.
8298         (vect_analyze_stmt): Call vectorizable_type_demotion and
8299         vectorizable_type_promotion for basic blocks.
8300         (supportable_widening_operation): Don't assume loop vectorization.
8301         * tree-vect-slp.c (vect_build_slp_tree): Allow multiple types for
8302         basic blocks.  Update vectorization factor for basic block
8303         vectorization.
8304         (vect_analyze_slp_instance): Allow multiple types for basic block
8305         vectorization.  Recheck unrolling factor after construction of SLP
8306         instance.
8307
8308 2011-09-27  Richard Guenther  <rguenther@suse.de>
8309
8310         * tree-object-size.c (compute_object_sizes): Fix dumping of
8311         folded statement.
8312
8313 2011-09-27  Richard Guenther  <rguenther@suse.de>
8314
8315         PR tree-optimization/50363
8316         * tree-ssa-pre.c (create_expression_by_pieces): Handle
8317         pointer conversions in POINTER_PLUS_EXPRs properly.
8318
8319 2011-09-27  Richard Sandiford  <richard.sandiford@linaro.org>
8320
8321         * config/arm/neon.md (neon_vget_highv16qi, neon_vget_highv8hi)
8322         (neon_vget_highv4si, neon_vget_highv4sf, neon_vget_highv2di)
8323         (neon_vget_lowv16qi, neon_vget_lowv8hi, neon_vget_lowv4si)
8324         (neon_vget_lowv4sf, neon_vget_lowv2di): Turn into define_expands
8325         that produce subreg moves.  Define using VQX iterators.
8326
8327 2011-09-27  Georg-Johann Lay  <avr@gjlay.de>
8328
8329         * config/avr/avr.md (ashrqi3): Split alternative "n"
8330         into its remaining parts C03, C04, C05, C06, C07 and describe
8331         impact in CC by attribute "cc" appropriately.
8332         * config/avr/avr.c (notice_update_cc): Clean-up: Don't patch CC0
8333         by digging RTX.
8334
8335 2011-09-27  Jakub Jelinek  <jakub@redhat.com>
8336
8337         * rtl.h (const_tiny_rtx): Change into array of 4 x MAX_MACHINE_MODE
8338         from 3 x MAX_MACHINE_MODE.
8339         (CONSTM1_RTX): Define.
8340         * emit-rtl.c (const_tiny_rtx): Change into array of
8341         4 x MAX_MACHINE_MODE from 3 x MAX_MACHINE_MODE.
8342         (gen_rtx_CONST_VECTOR): Use CONSTM1_RTX if all inner constants are
8343         CONSTM1_RTX.
8344         (init_emit_once): Initialize CONSTM1_RTX for MODE_INT and
8345         MODE_VECTOR_INT modes.
8346         * simplify-rtx.c (simplify_binary_operation_1) <case IOR, XOR, AND>:
8347         Optimize if one operand is CONSTM1_RTX.
8348         * config/i386/i386.c (ix86_expand_sse_movcc): Optimize mask ? -1 : x
8349         into mask | x.
8350
8351 2011-09-26  David S. Miller  <davem@davemloft.net>
8352
8353         * config/sparc/sparc.md (edge{8,16,32}{,l}): Return Pmode.
8354         (fcmp{le,ne,gt,eq}{16,32}): Likewise.
8355         * config/sparc/visintrin.h: Update edge and pixel-compare
8356         intrinsics to return 'long' instead of 'int'.
8357         * doc/extend.texi: Update documentation to match.
8358         * config/sparc/sparc.c (eligible_for_return_delay): When leaf or
8359         flat, allow any instruction.  Otherwise, when V9 allow parallels
8360         which consist only of sets to registers outside of %o0 to %o5.
8361         (sparc_vis_init_builtins): Update VIS builtin types for edge
8362         and pixel-compare.
8363
8364         * config/sparc/sparc.c (sparc_conditional_register_usage): When VIS
8365         is enabled, mark %gsr as global.
8366         * config/sparc/sparc.md (UNSPEC_WRGSR): Delete.
8367         (wrgsr_vis, *wrgsr_sp64, wrgsr_v8plus): Don't wrap in an unspec.
8368
8369         * config/sparc/sparc-c.c: New file implementing sparc_target_macros,
8370         which will now define __VIS and __VIS__ when -mvis is enabled.
8371         * config/sparc/t-sparc: Likewise.
8372         * config.gcc: Add sparc-c.o to c_target_objs and cxx_target_objs,
8373         and add t-sparc to tmake_file for all sparc targets.
8374         * config/sparc/sparc-protos.h (sparc_target_macros): Declare.
8375         * config/sparc/sparc.h (TARGE_CPU_CPP_BUILTINS): Call it.
8376
8377         * config/sparc/sparc.c (sparc_vis_init_builtins): Add explicit
8378         builtins for VIS vector addition and subtraction.
8379         * config/sparc/visintrin.h (__vis_fpadd16, __vis_fpadd16s,
8380         __vis_fpadd32, __vis_fpadd32s, __vis_fpsub16, __vis_fpsub16s,
8381         __vis_fpsub32, __vis_fpsub32s): New.
8382         * doc/extend.texi: Document new VIS intrinsics.
8383
8384 2011-09-26  Georg-Johann Lay  <avr@gjlay.de>
8385
8386         * config/avr/avr.md (peephole casesi+2): Use -1 instead of 65536.
8387         * config/avr/avr.c (avr_out_compare): Print shorter sequence for
8388         EQ/NE comparisons against +/-1 in the case of unused-after,
8389         non-ld-regs target.
8390
8391 2011-09-26  Jakub Jelinek  <jakub@redhat.com>
8392
8393         * gimple-fold.c (gimplify_and_update_call_from_tree): Set
8394         gctx.into_ssa after push_gimplify_context.
8395
8396         * gimple.c (gimple_build_call_valist): New function.
8397         * gimple.h (gimple_build_call_valist): New prototype.
8398         * tree-ssa-propagate.c (finish_update_gimple_call): New function.
8399         (update_gimple_call): Likewise.
8400         (update_call_from_tree): Use finish_update_gimple_call.
8401         * tree-ssa-propagate.h (update_gimple_call): New prototype.
8402
8403 2011-09-26  Richard Guenther  <rguenther@suse.de>
8404
8405         PR tree-optimization/50472
8406         * gimple-fold.c (fold_const_aggregate_ref_1): Do not fold
8407         volatile references.
8408
8409 2011-09-26  Bingfeng Mei <bmei@broadcom.com>
8410
8411         * doc/tm.texi: Correct documentation for TARGET_ADDR_SPACE_SUBSET_P.
8412         * target.def: (addr_space_subset_p): Likewise.
8413
8414 2011-09-26  Tom de Vries  <tom@codesourcery.com>
8415
8416         * tree-ssa-alias.h (pt_solution_singleton_p): Declare.
8417         * tree-ssa-structalias.c (pt_solution_singleton_p): New function.
8418         * tree-ssa-ccp.c (fold_builtin_alloca_for_var): Set points-to solution
8419         of new var.
8420
8421 2011-09-26  Georg-Johann Lay  <avr@gjlay.de>
8422
8423         PR target/50465
8424         * config/avr/avr-protos.h (output_reload_insisf): Don't pass insn.
8425         * config/avr/avr.md (*reload_insi, *reload_insf): Change call to
8426         output_reload_insisf.
8427         (adjust_len): Set default to "no".
8428         Remove alternative "yes".  Add alternatives: "mov8", "mov16",
8429         "mov32", "ashlqi", "ashrqi", "lshrqi", "ashlhi", "ashrhi",
8430         "lshrhi", "ashlsi, "ashrsi", "lshrsi".
8431         (*movqi, *movhi, *movsi, *ashlqi3, ashlhi3, ashlsi3,
8432         *ashlhi3_const, *ashlsi3_const, ashrqi3, ashrhi3, ashrsi3,
8433         *ashrhi3_const, *ashrsi3_const, *lshrqi3, lshrhi3, *lshrhi3_const,
8434         *lshrsi3_const): Set attribute "adjust_len".
8435         * config/avr/avr.c (output_reload_insisf): Remove parameter "insn".
8436         (output_movsisf): Don't pass insn to output_reload_insisf.
8437         (adjust_insn_length): Handle new alternatives to adjust_len.
8438         Remove handling of ADJUST_LEN_YES.  Clean-up code.
8439
8440 2011-09-26  Eric Botcazou  <ebotcazou@adacore.com>
8441
8442         * ifcvt.c (noce_try_cmove_arith): Use may_trap_or_fault_p in lieu of
8443         may_trap_p to detect loads that may trap of fault.
8444
8445 2011-09-26  Georg-Johann Lay  <avr@gjlay.de>
8446
8447         * config/avr/avr-protos.h (output_reload_inhi): Change prototype.
8448         * config/avr/avr.md (adjust_len): Add "reload_in16" alternative.
8449         (*reload_inhi): Use it.  Adapt call to output_reload_inhi to new
8450         prototype.
8451         (*movhi): Split constraint alternative "r,rL" into "r,r" and "r,L".
8452         * config/avr/avr.c: Rename output_reload_insisf_1 to
8453         output_reload_in_const.
8454         (avr_popcount_each_byte): Handle SFmode, too.
8455         (output_reload_in_const): Change so it can handle HI loads, too.
8456         Use avr_popcount_each_byte to work out if scratch register must be
8457         created on the fly.
8458         (output_reload_inhi): Rewrite using output_reload_in_const and...
8459         (output_movhi): ...use it to print constants' loads.
8460         (adjust_insn_length): New case ADJUST_LEN_RELOAD_IN16. Cleanup code.
8461
8462 2011-09-25  David S. Miller  <davem@davemloft.net>
8463
8464         * config/sparc/constraints.md (C, P, Z): New constraints for
8465         const_doube, const_int, and const_vector "all ones" values.
8466         Make unused constraint letters comment match reality.
8467         * config/sparc/predicates.md (const_all_ones_operand,
8468         register_or_zero_or_all_ones_operand): New predicates.
8469         * config/sparc/sparc.c (sparc_expand_move): Allow all ones
8470         as well as zero constants when VIS.
8471         (sparc_legitimate_constant_p): Likewise.
8472         * config/sparc/sparc.md (movsi_insn): Add fones alternative.
8473         (movsf_insn): Likewise
8474         (movdi_insn_sp64): Add fone alternative.
8475         (movdf_insn_sp32_v9): Likewise.
8476         (movdf_insn_sp64): Likewise.
8477
8478         * configure.ac: Add feature check to make sure the assembler
8479         supports the FMAF, HPC, and VIS 3.0 instructions found on
8480         Niagara-3 and later cpus.
8481         * configure: Rebuild.
8482         * config.in: Likewise.
8483         * config/sparc/sparc.opt: New option '-mfmaf'.
8484         * config/sparc/sparc.md: Add float fused multiply-add patterns.
8485         * config/sparc/sparc.h (AS_NIAGARA3_FLAG): New macro.
8486         (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC): Use it, as needed.
8487         * config/sparc/sol2.h (ASM_CPU32_DEFAULT_SPEC,
8488         ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC): Likewise.
8489         * config/sparc/sparc.c (sparc_option_override): Turn MASK_FMAF on
8490         by default for Niagara-3 and later.  Turn it off if TARGET_FPU is
8491         disabled.
8492         (sparc_rtx_costs): Handle 'FMA'.
8493         * doc/invoke.texi: Document -mfmaf.
8494
8495 2011-09-25  Jakub Jelinek  <jakub@redhat.com>
8496
8497         * tree-ssa-structalias.c (intra_create_variable_infos): Treat
8498         TYPE_RESTRICT REFERENCE_TYPE parameters like restricted
8499         DECL_BY_REFERENCE parameters.
8500
8501 2011-09-25  Eric Botcazou  <ebotcazou@adacore.com>
8502
8503         * tree-eh.c (cleanup_empty_eh): Allow a call to __builtin_stack_restore
8504         if there is no outgoing edge.
8505
8506         * tree-scalar-evolution.c (simple_iv): Accept all kinds of pointer and
8507         integral types.
8508
8509 2011-09-25  Ira Rosen  <ira.rosen@linaro.org>
8510
8511         * tree-vect-slp.c (vect_slp_analyze_bb_1): Split out core part
8512         of vect_analyze_bb here.
8513         (vect_analyze_bb): Loop over vector sizes calling vect_analyze_bb_1.
8514
8515 2011-09-25  Ira Rosen  <ira.rosen@linaro.org>
8516
8517         * tree-data-ref.c (dr_analyze_innermost): Add new argument.
8518         Allow not simple iv if analyzing basic block.
8519         (create_data_ref): Update call to dr_analyze_innermost.
8520         (stmt_with_adjacent_zero_store_dr_p, ref_base_address): Likewise.
8521         * tree-loop-distribution.c (generate_memset_zero): Likewise.
8522         * tree-predcom.c (find_looparound_phi): Likewise.
8523         * tree-data-ref.h (dr_analyze_innermost): Add new argument.
8524
8525 2011-09-24  David S. Miller  <davem@davemloft.net>
8526
8527         * config/sparc/sparc.h (FIRST_PSEUDO_REGISTER): Bump to 103.
8528         (SPARC_GSR_REG): Define.
8529         (FIXED_REGISTERS): Mark GSR as fixed.
8530         (CALL_USED_REGISTERS): Mark GSR as call used.
8531         (HARD_REGNO_NREGS): GSR is always 1 register.
8532         (REG_CLASS_CONTENTS): Add GSR to ALL_REGS.
8533         (REG_ALLOC_ORDER, REG_LEAF_ALLOC_ORDER): Add GSR to the end.
8534         (REGISTER_NAMES): Add "%gsr".
8535         * config/sparc/sparc.md (UNSPEC_ALIGNADDR, UNSPEC_ALIGNADDRL): Delete.
8536         (UNSPEC_WRGSR): New unspec.
8537         (GSR_REG): New constant.
8538         (type): Add new insn type 'gsr'.
8539         (fpack16_vis, fpackfix_vis, fpack32_vis,
8540         faligndata<V64I:MODE>_vis)): Add use of GSR_REG.
8541         (wrgsr_vis, *wrgsr_sp64, wrgsr_v8plus, rdgsr_vis, *rdgsr_sp64,
8542         rdgsr_v8plus): New expanders and insns.
8543         (alignaddr<P:mode>_vis, alignaddrl<P:mode>_vis): Reimplement
8544         using patterns which show that this is a plus in addition to a
8545         modification of GSR_REG, instead of an unspec.
8546         * config/sparc/ultra1_2.md: Handle 'gsr'.
8547         * config/sparc/ultra3.md: Likewise.
8548         * config/sparc/niagara.md: Likewise.
8549         * config/sparc/niagara2.md: Likewise.
8550         * config/sparc/sparc.c (leaf_reg_remap, sparc_leaf_regs): Fill out
8551         end of table.
8552         (sparc_option_override): Make -mvis imply -mv8plus.
8553         (hard_32bit_mode_classes, hard_64bit_mode_classes): Add entries
8554         for %gsr.
8555         (sparc_vis_init_builtins): Build __builtin_vis_write_gsr and
8556         __builtin_vis_read_gsr.
8557         (sparc_expand_buildin): Handle builtins that take one argument and
8558         return void.
8559         (sparc_fold_builtin): Never fold writes to %gsr.
8560         * config/sparc/visintrin.h (__vis_write_gsr, __vis_read_gsr): New.
8561         * doc/extend.texi: Document new VIS intrinsics.
8562
8563 2011-09-23  Jan Hubicka  <jh@suse.cz>
8564
8565         * ipa-inline-transform.c (inline_call): Add comment.
8566         * ipa-inline.h (inline_param_summary): New structure and vector.
8567         (struct inline_edge_summary): Add param field.
8568         * ipa-inline-analysis.c (CHANGED): New constant.
8569         (add_clause): Handle CHANGED and NOT_CONSTANT.
8570         (predicate_probability): New function.
8571         (dump_condition): Dump CHANGED predicate.
8572         (evaluate_conditions_for_known_args): Handle ERROR_MARK as marker
8573         of unknown function wide invariant.
8574         (evaluate_conditions_for_edge): Handle change probabilities.
8575         (inline_edge_duplication_hook): Copy param summaries.
8576         (inline_edge_removal_hook): Free param summaries.
8577         (dump_inline_edge_summary): Fix dumping of indirect edges and callee
8578         sizes; dump param summaries.
8579         (will_be_nonconstant_predicate): Use CHANGED predicate.
8580         (record_modified_bb_info): New structure.
8581         (record_modified): New function.
8582         (param_change_prob): New function.
8583         (estimate_function_body_sizes): Compute param summaries.
8584         (estimate_edge_size_and_time): Add probability argument.
8585         (estimate_node_size_and_time): Add inline_param_summary argument;
8586         handle predicate probabilities.
8587         (remap_predicate): Fix formating.
8588         (remap_edge_change_prob): New function.
8589         (remap_edge_summaries): Rename from ...; use remap_edge_change_prob.
8590         (remap_edge_predicates): ... this one.
8591         (inline_merge_summary): Remap edge summaries; handle predicate
8592         probabilities; remove param summaries after we are done.
8593         (do_estimate_edge_time): Update.
8594         (do_estimate_edge_growth): Update.
8595         (read_inline_edge_summary): Read param info.
8596         (inline_read_summary): Fix formating.
8597         (write_inline_edge_summary): Write param summaries.
8598
8599 2011-09-23  Jakub Jelinek  <jakub@redhat.com>
8600
8601         * config/i386/i386.c (ix86_print_operand): Handle %~.
8602         (ix86_print_operand_punct_valid_p): Return true also for '~'.
8603         * config/i386/sse.md (i128): New mode_attr.
8604         (vec_extract_hi_<mode>, vec_extract_hi_<mode>,
8605         avx_vbroadcastf128_<mode>, *avx_vperm2f128<mode>_full,
8606         *avx_vperm2f128<mode>_nozero, vec_set_lo_<mode>,
8607         vec_set_hi_<mode>, *vec_concat<mode>_avx): Use <i128> in the
8608         patterns, use "<sseinsnmode>" for "mode" attribute.
8609         (vec_extract_hi_v16hi, vec_extract_hi_v32qi, vec_set_lo_v16hi,
8610         vec_set_hi_v16hi, vec_set_lo_v32qi, vec_set_hi_v32qi): Use
8611         %~128 in the patterns, use "OI" for "mode" attribute.
8612
8613 2011-09-23  Georg-Johann Lay  <avr@gjlay.de>
8614
8615         PR target/50447
8616         * config/avr/avr.md (adjust_len): Add alternatives "tsthi",
8617         "tstsi", "compare".
8618         (*cmpqi_sign_extend): Use s8_operand.
8619         (*cmphi, *cmpsi): Rewrite using avr_out_compare.
8620         * config/avr/avr-protos.h (compare_diff_p, compare_eq_p): Remove
8621         prototypes.
8622         (out_tsthi, out_tstsi): Remove prototypes.
8623         (avr_out_tsthi, avr_out_tstsi): New prototypes.
8624         * config/avr/avr.c (out_tsthi, out_tstsi): Remove functions.
8625         (avr_asm_len): Negative length now sets *plen to -length.
8626         (compare_sign_p): Return bool instead of int.
8627         (compare_diff_p, compare_eq_p): Ditto and make static.
8628         (avr_out_tsthi): New function.
8629         (avr_out_tstsi): New function.
8630         (avr_out_compare): New function.
8631         (adjust_insn_length): Handle ADJUST_LEN_TSTHI, ADJUST_LEN_TSTSI,
8632         ADJUST_LEN_COMPARE.
8633
8634 2011-09-23  Georg-Johann Lay  <avr@gjlay.de>
8635
8636         PR target/50447
8637         * config/avr/avr.md: (adjust_len): Add alternative "out_plus".
8638         (addsi3): Rewrite using QI scratch register.  Adjust text
8639         peepholes using plus:SI.
8640         (*addsi3_zero_extend.hi): New insn.
8641         (*subsi3_zero_extend.hi): New insn.
8642         (*subhi3_zero_extend1): Set attribute "cc" to "set_czn".
8643         (*subsi3_zero_extend): Ditto.
8644         (subsi3): Change predicate #2 to register_operand.
8645         * config/avr/avr-protos.h (avr_out_plus): New prototype.
8646         (avr_out_plus_1): New static function.
8647         (avr_out_plus): New function.
8648         (adjust_insn_length): Handle ADJUST_LEN_OUT_PLUS.
8649
8650 2011-09-23  Jakub Jelinek  <jakub@redhat.com>
8651
8652         * config/i386/i386.c (ix86_prepare_sse_fp_compare_args): For
8653         GE/GT/UNLE/UNLT swap arguments and condition even for TARGET_AVX.
8654
8655 2011-09-23  Ian Lance Taylor  <iant@google.com>
8656
8657         * godump.c (go_define): Treat a single character in single quotes,
8658         or a string, as an operand.
8659
8660 2011-09-23  Martin Jambor  <mjambor@suse.cz>
8661
8662         * ipa-prop.h (jump_func_type): Updated comments.
8663         (ipa_known_type_data): New type.
8664         (ipa_jump_func): Use it to describe known type jump functions.
8665         * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Updated to
8666         reflect the new known type jump function contents.
8667         (compute_known_type_jump_func): Likewise.
8668         (combine_known_type_and_ancestor_jfs): Likewise.
8669         (try_make_edge_direct_virtual_call): Likewise.
8670         (ipa_write_jump_function): Likewise.
8671         (ipa_read_jump_function): Likewise.
8672         * ipa-cp.c (ipa_value_from_known_type_jfunc): New function.
8673         (ipa_value_from_jfunc): Use ipa_value_from_known_type_jfunc.
8674         (propagate_accross_jump_function): Likewise.
8675
8676 2011-09-23  Georg-Johann Lay  <avr@gjlay.de>
8677
8678         PR target/50446
8679         * config/avr/avr.md (rotlqi3): Support all offsets 0..7.
8680         (rotlqi3_4): Turn insn into expander.
8681         (*rotlqi3): New insn.
8682         (rotlhi3, rotlsi3): Support rotate left/right by 1.
8683         (*rotlhi2.1, *rotlhi2.15): New insns.
8684         (*rotlsi2.1, *rotlsi2.31): New insns.
8685         * config/avr/constraints.md (C03, C05, C06, C07): New constraints.
8686
8687 2011-09-23  Bin Cheng  <bin.cheng@arm.com>
8688
8689         * config/arm/bpabi.h (BE8_LINK_SPEC): Add cortex-m arch and processors.
8690
8691 2011-09-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
8692
8693         * ipa-prop.c (ipa_print_node_jump_functions): Fix typos.
8694
8695 2011-09-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8696
8697         * reload.c (find_reloads): Set operand_mode to Pmode for address
8698         operands consisting of just a CONST_INT.
8699
8700 2011-09-22  Uros Bizjak  <ubizjak@gmail.com>
8701
8702         PR target/50482
8703         * config/i386/i386.c (ix86_expand_sse_movcc): When generating
8704         blendv, force op_true to register if it doesn't satisfy
8705         nonimmediate_operand predicate.
8706
8707 2011-09-22  Richard Sandiford  <rdsandiford@googlemail.com>
8708
8709         PR middle-end/50113
8710         PR middle-end/50061
8711         * calls.c (emit_library_call_value_1): Use BLOCK_REG_PADDING to
8712         get the locate.where_pad value for register-only arguments.
8713         * config/arm/arm.c (arm_pad_arg_upward): Remove HFmode handling.
8714         (arm_pad_reg_upward): Handle null types.
8715
8716 2011-09-22  Jan Hubicka  <jh@suse.cz>
8717
8718         * ipa-inline-analysis.c: Fix overly long lines.
8719
8720 2011-09-22  Jan Hubicka  <jh@suse.cz>
8721
8722         * ipa-inline-transform.c (inline_call): Always update jump functions
8723         after inlining.
8724         * ipa-inline.c (ipa_inline): Likewise; do not call
8725         ipa_create_all_structures_for_iinln.
8726         (ipa_inline): Always free jump functions.
8727         * ipa-inline-analysis.c (evaluate_conditions_for_edge): Remove hack.
8728         (remap_edge_predicates): Fix pasto.
8729         (inline_merge_summary): Remove nlined edge predicate; remove hack.
8730         (inline_analyze_function): Always initialize jump functions.
8731         (inline_generate_summary): Likewise.
8732         (inline_write_summary): Always write jump functions when ipa-cp
8733         is not doing that.
8734         (inline_read_summary): Always read jump functions when ipa-cp
8735         is not doing that.
8736         * ipa-prop.c (iinlining_processed_edges): Remove.
8737         (update_indirect_edges_after_inlining): Do not use
8738         iinlining_processed_edges; instead set param_index to -1.
8739         (propagate_info_to_inlined_callees): Only try to indirect inlining
8740         when asked to do so; update jump functions of indirect calls, too;
8741         remove jump functions of the inlined edge.
8742         (ipa_edge_duplication_hook): Do not copy iinlining_processed_edges.
8743         (ipa_create_all_structures_for_iinln): Remove.
8744         (ipa_free_all_structures_after_iinln): Do not free
8745         iinlining_processed_edges.
8746         * ipa-prop.h (ipa_create_all_structures_for_iinln): Remove.
8747
8748 2011-09-22  Richard Sandiford  <richard.sandiford@linaro.org>
8749
8750         * config/arm/predicates.md (expandable_comparison_operator): New
8751         predicate, extracted from...
8752         (arm_comparison_operator): ...here.
8753         * config/arm/arm.md (cbranchsi4, cbranchsf4, cbranchdf4, cbranchdi4)
8754         (cstoresi4, cstoresf4, cstoredf4, cstoredi4, movsicc, movsfcc)
8755         (movdfcc): Use expandable_comparison_operator.
8756
8757 2011-09-22  Georg-Johann Lay  <avr@gjlay.de>
8758
8759         PR target/50447
8760         PR target/50465
8761         * config/avr/avr-protos.h (avr_out_bitop): New prototype.
8762         (avr_popcount_each_byte): New prototype.
8763         * config/avr/avr.c (avr_popcount): New static function.
8764         (avr_popcount_each_byte): New function.
8765         (avr_out_bitop): New function.
8766         (adjust_insn_length): ADJUST_LEN_OUT_BITOP dispatches to
8767         avr_out_bitop.  Cleanup code.
8768         * config/avr/constraints.md (Ca2, Co2, Cx2): New constraints.
8769         (Ca4, Co4, Cx4): New constraints.
8770         * config/avr/avr.md (adjust_len): Add "out_bitop" insn attribute
8771         alternative.
8772         (andhi3, iorhi3, xorhi3): Rewrite insns using avr_out_bitop.
8773         (andsi3, iorsi3, xorsi3): Ditto.
8774         (*iorhi3_clobber, *iorsi3_clobber): Remove insns.
8775
8776 2011-09-22  Ira Rosen  <ira.rosen@linaro.org>
8777
8778         PR tree-optimization/50451
8779         * tree-vect-slp.c (vect_get_constant_vectors): Don't fail for
8780         constant operands in reduction.
8781         (vect_get_slp_defs): Don't create vector operand for NULL scalar
8782         operand.
8783
8784 2011-09-22  David S. Miller  <davem@davemloft.net>
8785
8786         * config/sparc/sparc.c (sparc_vis_init_builtins): Do not mark
8787         fpack16, fpack32, fpackfix as const.
8788
8789         * config/sparc/sparc.md (G[0-7]_REG, O[0-7]_REG, L[0-7]_REG,
8790         I[0-7]_REG, F[0-62]_REG, FCC[0-3]_REG, CC_REG, SFP_REG): New
8791         constants.  Use them everywhere.
8792
8793 2011-09-22  Oleg Endo  <oleg.endo@t-online.de>
8794
8795         * config/sh/sh.c (andcosts): Renamed to and_xor_ior_costs.
8796         Added AND special case.  Adapted comments.
8797         (sh_rtx_costs): Added XOR and IOR case.
8798
8799 2011-09-21  Jan Hubicka  <jh@suse.cz>
8800
8801         * ipa-inline-analsis.c (compute_inline_parameters): Set
8802         cfun and current_function_decl.
8803
8804 2011-09-21  Jan Hubicka  <jh@suse.cz>
8805
8806         * ipa-inline-analysis.c (set_cond_stmt_execution_predicate): Allow
8807         handled components in parameter of builtin_constant_p.
8808         (will_be_nonconstant_predicate): Allow loads of non-SSA parameters.
8809
8810 2011-09-21  Jan Hubicka  <jh@suse.cz>
8811
8812         * ipa-inline.c (relative_time_benefit): Fix wrong bracketting.
8813         * ipa-inline.h (estimate_edge_time): Fix pasto.
8814         * ipa-inline-analysis.c (do_estiamte_edge_time): Remove capping.
8815
8816 2011-09-21  Jakub Jelinek  <jakub@redhat.com>
8817
8818         * config/i386/i386.c (ix86_expand_sse_movcc): Use
8819         blendvps, blendvpd and pblendvb if possible.
8820
8821 2011-09-21  Uros Bizjak  <ubizjak@gmail.com>
8822
8823         PR target/50464
8824         * config/i386/sse.md (xop_pcmov_<mode><avxsizesuffix>): Change
8825         operand 1 predicate to register_operand and operand 2 predicate
8826         to nonimmediate_operand.
8827         * config/i386/i386.c (ix86_expand_sse_movcc): When generating
8828         xop_pcmov, force op_true to register.  Also, force op_false to
8829         register if it doesn't satisfy nonimmediate_operand predicate.
8830
8831 2011-09-21  Kirill Yukhin  <kirill.yukhin@intel.com>
8832
8833         * config/i386/bmi2intrin.h (_mulx_u64): New.
8834         (_mulx_u32): Ditto.
8835
8836 2011-09-21  Jan Hubicka  <jh@suse.cz>
8837
8838         PR tree-optimization/50433
8839         * ipa-inline-analysis.c (eliminated_by_inlining_prob):
8840         Use get_base_address.
8841
8842 2011-09-21  Jakub Jelinek  <jakub@redhat.com>
8843
8844         * config/i386/sse.md (<code><mode>3 smaxmin:VI124_128 expander): Use
8845         nonimmediate_operand instead of register_operand predicate for operands
8846         1 and 2, force them into registers if expanding them as comparison.
8847         (<code><mode>3 umaxmin:VI124_128 expander): Similarly.  For UMAX
8848         V8HImode force into register just operand 1.
8849
8850 2011-09-21  Georg-Johann Lay  <avr@gjlay.de>
8851
8852         PR target/45099
8853         * config/avr/avr.c (avr_function_arg_advance): Change error to
8854         warning if a fixed register is needed as function argument.
8855
8856 2011-09-21  Georg-Johann Lay  <avr@gjlay.de>
8857
8858         PR target/50449
8859         PR target/50465
8860         * config/avr/avr.md (adjust_len): New insn attribute.
8861         (*reload_insi, *reload_insf): Use it.
8862         (*movsi, *movsf): Use new interface of output_movsisf.
8863         * config/avr/avr-protos.h (output_movsisf): Change prototype.
8864         * config/avr/avr.c (output_movsisf): Ditto.
8865         (adjust_insn_length): Use insn attribute "adjust_len" to adjust
8866         lengths of insns *reload_insi, *reload_insf.
8867         (output_reload_insisf_1): New static function.
8868         (output_reload_insisf): Use it.
8869
8870 2011-09-21  David S. Miller  <davem@davemloft.net>
8871
8872         * config/sparc/sparc.c (def_builtin): Change from macro into function.
8873         (def_builtin_const): New.
8874         (sparc_vis_init_builtins): Use def_builtin_const for all VIS builtins
8875         other than alignaddr and falignaddr.
8876
8877         * config/sparc/sparc.md (UNSPEC_FCMPLE, UNSPEC_FCMPNE, UNSPEC_FCMPGT,
8878         UNSPEC_FCMPEQ): New unspec codes.
8879         (fcmple16_vis, fcmple32_vis, fcmpne16_vis, fcmpne32_vis, fcmpgt16_vis,
8880         fcmpgt32_vis, fcmpeq16_vis, fcmpeq32_vis): New patterns.
8881         * config/sparc/sparc.c (sparc_vis_init_builtins): Create builtins for
8882         new pixel compare VIS patterns.
8883         * config/sparc/visintrin.h (__vis_fcmple16, __vis_fcmple32,
8884         __vis_fcmpne16, __vis_fcmpne32, __vis_fcmpgt16, __vis_fcmpgt32,
8885         __vis_fcmpeq16, __vis_fcmpeq32): New.
8886         * doc/extend.texi: Document new pixel compare VIS intrinsics.
8887
8888 2011-09-21  Tom de Vries  <tom@codesourcery.com>
8889
8890         * final.c (final): Handle if JUMP_LABEL is not LABEL_P.
8891
8892 2011-09-20  David S. Miller  <davem@davemloft.net>
8893
8894         * config/sparc/sparc.md (UNSPEC_ALIGNADDRL): New unspec.
8895         (aligneddrl<P:mode>_vis): New pattern.
8896         (edge8_vis, edge8l_vis, edge16_vis, edge16l_vis, edge32_vis,
8897         edge32l_vis): Adjust to take Pmode arguments, and return SImode.
8898         * config/sparc/sparc.c (sparc_vis_init_builtins): Handle new
8899         alignaddrl insn, and adjust edge operations for updated types.
8900         * config/sparc/visintrin.h: Likewise.
8901         * doc/extend.texi: Make typing in VIS documentation match reality.
8902
8903 2011-09-20  Terry Guo  <terry.guo@arm.com>
8904
8905         * config/arm/arm-arches.def: Add armv6s-m.
8906         * config/arm/arm-tables.opt: Regenerate.
8907
8908 2011-09-20  Wei Guozhi  <carrot@google.com>
8909
8910         PR rtl-optimization/49452
8911         * postreload.c (reload_combine): Invalidate use information when across
8912         volatile insn.
8913
8914 2011-09-19  Maxim Kuvyrkov  <maxim@codesourcery.com>
8915
8916         * haifa-sched.c (has_edge_p, prev_non_location_insn, check_cfg):
8917         Remove maintenance overhead.
8918         (haifa_sched_init, sched_finish): Update.
8919
8920 2011-09-19  Uros Bizjak  <ubizjak@gmail.com>
8921
8922         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use if_then_else RTX
8923         to calculate unit, prefix_rep and prefix_data16 attributes.
8924         (*mov<mode>_internal): Ditto for unit attribute.
8925         (*movv2sf_internal_rex64): Ditto for unit and prefix_rep attributes.
8926         (*movv2sf_internal): Ditto.
8927         * config/i386/sse.md (VI1248_256): Remove mode iterator.
8928         (avx2_eq<mode>3): Use VI_256 instead of VI1248_256.
8929         (*avx2_eq<mode>3): Ditto.
8930         (avx2_gt<mode>3): Ditto.
8931
8932 2011-09-19  Uros Bizjak  <ubizjak@gmail.com>
8933
8934         * config/i386/i386.md (maxmin): New code iterator.
8935         * config/i386/sse.md (<maxmin:code><mode>3): Macroize expander
8936         from <umaxmin:code><mode>3 and <smaxmin:code><mode>3 using maxmin
8937         code iterator.
8938         (*avx2_<maxmin:code><mode>3): Macroize isn from
8939         *avx2_<umaxmin:code><mode>3 and *avx2_<smaxmin:code><mode>3 using
8940         maxmin code iterator.
8941         (<smaxmin:code><VI124_128:mode>3): Merge with <smaxmin:code>v8hi3.
8942         (<umaxmin:code><VI124_128:mode>3): Merge with umaxv4si3 and
8943         <umaxmin:code>v16qi3.
8944
8945 2011-09-19  Alan Modra  <amodra@gmail.com>
8946             Michael Meissner  <meissner@linux.vnet.ibm.com>
8947
8948         PR target/50341
8949         * config/rs6000/rs6000.md (call_indirect_aix<ptrsize>): Do not
8950         split the load of the indirect function's TOC from the call to
8951         prevent the compiler from moving the load of the new TOC above
8952         code that references the current function's TOC.
8953         (call_indirect_aix<ptrsize>_internal): Ditto.
8954         (call_indirect_aix<ptrsize>_nor11): Ditto.
8955         (call_indirect_aix<ptrsize>_internal2): Ditto.
8956         (call_value_indirect_aix<ptrsize>): Ditto.
8957         (call_value_indirect_aix<ptrsize>_internal): Ditto.
8958         (call_value_indirect_aix<ptrsize>_nor11): Ditto.
8959         (call_value_indirect_aix<ptrsize>_internal2): Ditto.
8960
8961 2011-09-19  Jakub Jelinek  <jakub@redhat.com>
8962
8963         * config/i386/sse.md (*sse4_1_extractps): Change into
8964         define_insn_and_split, add =x 0 n and =x x n alternatives
8965         and split them after reload.
8966
8967 2011-09-19  Alexandre Oliva  <aoliva@redhat.com>
8968
8969         * tree.h (TREE_NOT_CHECK4): Rename from bogus NON_TREE_CHECK4.
8970
8971 2011-09-19  Alexandre Oliva  <aoliva@redhat.com>
8972
8973         * emit-rtl.c (copy_insn_1): Do not copy DEBUG_EXPRs.
8974
8975 2011-09-19  Ira Rosen  <ira.rosen@linaro.org>
8976
8977         PR tree-optimization/50413
8978         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail to vectorize
8979         a basic block if one of its data-refs can't be analyzed.
8980
8981 2011-09-19  Paul Brook  <paul@codesourcery.com>
8982
8983         * config/arm/predicates.md (shift_amount_operand): Check constant
8984         shift count is in range.
8985         (const_shift_operand): Remove.
8986
8987 2011-09-18  Eric Botcazou  <ebotcazou@adacore.com>
8988             Iain Sandoe  <developer@sandoe-acoustics.co.uk>
8989
8990         PR target/50091
8991         * config/rs6000/rs6000.md (probe_stack): Use explicit operand.
8992         * config/rs6000/rs6000.c (output_probe_stack_range): Likewise.
8993
8994 2011-09-18  H.J. Lu  <hongjiu.lu@intel.com>
8995
8996         * config/i386/bmiintrin.h: Remove tmp.
8997         * config/i386/tbmintrin.h: Likewise.
8998
8999 2011-09-18  Ira Rosen  <ira.rosen@linaro.org>
9000
9001         PR tree-optimization/50414
9002         * tree-vect-slp.c (vect_get_constant_vectors): Handle MAX_EXPR and
9003         MIN_EXPR.
9004
9005 2011-09-18  Ira Rosen  <ira.rosen@linaro.org>
9006
9007         PR tree-optimization/50412
9008         * tree-vect-data-refs.c (vect_analyze_group_access): Fail for
9009         acceses that require epilogue loop if vectorizing outer loop.
9010
9011 2011-09-17  David S. Miller  <davem@davemloft.net>
9012
9013         * config/sparc/sparc.md (UNSPEC_EDGE8, UNSPEC_EDGE8L,
9014         UNSPEC_EDGE16, UNSPEC_EDGE16L, UNSPEC_EDGE32, UNSPEC_EDGE32L):
9015         New unspecs.
9016         (define_attr type): New type 'edge'.
9017         (edge8_vis, edge8l_vis, edge16_vis, edge16l_vis, edge32_vis,
9018         edge32l_vis): New patterns.
9019         * config/sparc/ultra1_2.md: Add insn reservation for 'edge'.
9020         * config/sparc/ultra3.md: Likewise.
9021         * config/sparc/niagara.md: Likewise.
9022         * config/sparc/niagara2.md: Likewise.
9023         * config/sparc/sparc.d (sparc_vis_init_builtins): Generate
9024         builtins for VIS edge instructions.
9025         * config/sparc/visintrin.h (__vis_edge8, __vis_edge8l)
9026         (__vis_edge16, __vis_edge16l, __vis_edge32, __vis_edge32l): New
9027         intrinsics.
9028         (__v8qi, __v4qi): Make unsigned.
9029         (__vis_faligndatadi, ___vis_faligndatav2si, __vis_faligndatav4hi,
9030         __vis_faligndatav8qi, __vis_fmul8x16au, __vis_fmul8x16al,
9031         __vis_fpack32): Fix types.
9032         * doc/extend.texi: Document new 'edge' VIS intrinsics.
9033
9034         * gcc/config/sparc/sparc.c (niagara2_costs): Adjust integer
9035         divide costs.
9036         (niagara3_costs): New.
9037         (sparc_option_override): Use it.
9038         * gcc/config/sparc/niagara2.md: Adjust with more accurate
9039         Niagara-3 reservations.
9040
9041 2011-09-17  Jakub Jelinek  <jakub@redhat.com>
9042
9043         * config/i386/sse.md (VIMAX_AVX2): Change V4DI to V2TI.
9044         (sse2_avx, sseinsnmode): Add V2TI.
9045         (REDUC_SMINMAX_MODE): New mode iterator.
9046         (reduc_smax_v4sf, reduc_smin_v4sf, reduc_smax_v8sf,
9047         reduc_smin_v8sf, reduc_smax_v4df, reduc_smin_v4df): Remove.
9048         (reduc_<code>_<mode>): New smaxmin and umaxmin expanders.
9049         (sse2_lshrv1ti3): Rename to...
9050         (<sse2_avx2>_lshr<mode>3): ... this.  Use VIMAX_AVX2 mode
9051         iterator.  Move before umaxmin expanders.
9052         * config/i386/i386.h (VALID_AVX256_REG_MODE,
9053         SSE_REG_MODE_P): Accept V2TImode.
9054         * config/i386/i386.c (ix86_expand_reduc): Handle V32QImode,
9055         V16HImode, V8SImode and V4DImode.
9056
9057         * config/i386/i386.c (ix86_build_const_vector): Handle V8SImode
9058         and V4DImode.
9059         (ix86_build_signbit_mask): Likewise.
9060         (ix86_expand_int_vcond): Likewise.  Handle V16HImode and V32QImode.
9061         (bdesc_args): Use CODE_FOR_{s,u}m{ax,in}v{32q,16h,8s}i3
9062         instead of CODE_FOR_avx2_{s,u}m{ax,in}v{32q,16h,8s}i3.
9063         * config/i386/sse.md (avx2_<code><mode>3 umaxmin expand): Rename to...
9064         (<code><mode>3) ... this.
9065         (avx2_<code><mode>3 smaxmin expand): Rename to...
9066         (<code><mode>3) ... this.
9067         (smax<mode>3, smin<mode>3): Macroize using smaxmin code iterator.
9068         (smaxv2di3, sminv2di3): Macroize using smaxmin code iterator and
9069         VI8_AVX2 mode iterator.
9070         (umaxv2di3, uminv2di3): Macroize using umaxmin code iterator and
9071         VI8_AVX2 mode iterator.
9072         (vcond<V_256:mode><VI_256:mode>, vcondu<V_256:mode><VI_256:mode>):
9073         New expanders.
9074
9075 2011-09-17  Richard Sandiford  <rdsandiford@googlemail.com>
9076
9077         * config/ia64/itanium2.md: Use match_test rather than eq/ne symbol_ref
9078         throughout file.
9079
9080 2011-09-16  David S. Miller  <davem@davemloft.net>
9081
9082         * config/sparc/visintrin.h: New file.
9083         * config.gcc: Add it to extra_headers on sparc.
9084
9085 2011-09-16  Jakub Jelinek  <jakub@redhat.com>
9086
9087         * config/i386/i386.c (ix86_expand_reduc_v4sf): Rename to ...
9088         (ix86_expand_reduc): ... this.  Handle also V8SFmode and V4DFmode.
9089         * config/i386/sse.md (reduc_splus_v4sf, reduc_smax_v4sf,
9090         reduc_smin_v4sf): Adjust callers.
9091         (reduc_smax_v8sf, reduc_smin_v8sf, reduc_smax_v4df, reduc_smin_v4df):
9092         New expanders.
9093
9094         * config/i386/sse.md (vec_extract_hi_<mode>,
9095         vec_extract_hi_v16hi, vec_extract_hi_v32qi): Use
9096         vextracti128 instead of vextractf128 for -mavx2 and
9097         integer vectors.  For V4DFmode fix up mode attribute.
9098         (VEC_EXTRACT_MODE): For TARGET_AVX add 32-byte vectors.
9099         (vec_set_lo_<mode>, vec_set_hi_<mode>): For VI8F_256 modes use V4DF
9100         instead of V8SF mode attribute.
9101         (avx2_extracti128): Change into define_expand.
9102         * config/i386/i386.c (ix86_expand_vector_extract): Handle
9103         32-byte vector modes if TARGET_AVX.
9104
9105 2011-09-16  Georg-Johann Lay  <avr@gjlay.de>
9106
9107         * config/avr/avr.md: (umulqihi3, mulqihi3): Write as one pattern.
9108         (umulqi3_highpart, smulqi3_highpart): Ditto.
9109         (*maddqihi4.const, *umaddqihi4.uconst): Ditto.
9110         (*msubqihi4.const, *umsubqihi4.uconst): Ditto.
9111         (*muluqihi3.uconst, *mulsqihi3.sconst): Ditto.
9112
9113 2011-09-16  Georg-Johann Lay  <avr@gjlay.de>
9114
9115         PR target/50358
9116         * config/avr/avr.md (*ashiftqihi2.signx.1): New insn.
9117         (*maddqi4, *maddqi4.const): New insns.
9118         (*msubqi4, *msubqi4.const): New insns.
9119         * config/avr/avr.c (avr_rtx_costs): Record costs of above in cases
9120         PLUS:QI and MINUS:QI.  Increase costs of multiply-add/-sub for
9121         HImode by 1 in the case of multiplying with a CONST_INT.
9122         Record cost of *ashiftqihi2.signx.1 in case ASHIFT:QI.
9123
9124 2011-09-15   Jan Hubicka  <jh@suse.cz>
9125
9126         PR lto/50430
9127         * gimple-fold.c (gimple_get_virt_method_for_binfo): Do not ICE on
9128         error_mark_node in the DECL_INITIAL of vtable.
9129
9130 2011-09-15   Diego Novillo  <dnovillo@google.com>
9131
9132         * Makefile.in (SYSROOT_CFLAGS_FOR_TARGET): Define from
9133         @SYSROOT_CFLAGS_FOR_TARGET@.
9134         * configure.ac (SYSROOT_CFLAGS_FOR_TARGET): Set from build-sysroot.
9135         * configure: Regenerate.
9136         (site.exp): Add definition of TEST_ALWAYS_FLAGS.
9137         Remove setting of GCC_UNDER_TEST.
9138
9139 2011-09-15  Uros Bizjak  <ubizjak@gmail.com>
9140
9141         * config/i386/i386.c (output_fp_compare): Return %v prefixed
9142         instruction mnemonics for TARGET_AVX.
9143
9144         * config/i386/i386.md (*movdf_internal_rex64): use cond RTX in
9145         "type" attribute calculation.
9146         (*movdf_internal): Ditto.
9147         (*movsf_internal): Ditto.
9148
9149 2011-09-15  James Greenhalgh  <james.greenhalgh@arm.com>
9150
9151         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): New builtin macro.
9152
9153 2011-09-15  Jason Merrill  <jason@redhat.com>
9154
9155         PR c++/50361
9156         * expr.c (count_type_elements): Handle NULLPTR_TYPE.
9157
9158 2011-09-15  Jan Hubicka  <jh@suse.cz>
9159
9160         * ipa-inline-analysis.c (add_condition): Add conditions parameter;
9161         simplify obviously true clauses.
9162         (and_predicates, or_predicates): Add conditions parameter.
9163         (inline_duplication_hoook): Update.
9164         (mark_modified): New function.
9165         (unmodified_parm): New function.
9166         (eliminated_by_inlining_prob, (set_cond_stmt_execution_predicate,
9167         set_switch_stmt_execution_predicate, will_be_nonconstant_predicate):
9168         Use unmodified_parm.
9169         (estimate_function_body_sizes): Update.
9170         (remap_predicate): Update.
9171
9172 2011-09-15  Ira Rosen  <ira.rosen@linaro.org>
9173
9174         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Allow
9175         read-after-read dependencies in basic block SLP.
9176
9177 2011-09-14  Richard Sandiford  <rdsandiford@googlemail.com>
9178
9179         * config/sparc/sparc.md: Use match_test rather than eq/ne symbol_ref
9180         throughout file.
9181
9182 2011-09-14  Richard Sandiford  <rdsandiford@googlemail.com>
9183
9184         * config/sh/sh.md: Use match_test rather than eq/ne symbol_ref
9185         throughout file.
9186
9187 2011-09-14  Richard Sandiford  <rdsandiford@googlemail.com>
9188
9189         * config/s390/s390.md: Use match_test rather than eq/ne symbol_ref
9190         throughout file.
9191
9192 2011-09-14  Richard Sandiford  <rdsandiford@googlemail.com>
9193
9194         * config/rs6000/rs6000.md: Use match_test rather than eq/ne symbol_ref
9195         throughout file.
9196         * config/rs6000/constraints.md: Likewise.
9197
9198 2011-09-14  Richard Sandiford  <rdsandiford@googlemail.com>
9199
9200         * config/microblaze/microblaze.md: Use match_test rather than
9201         eq/ne symbol_ref throughout file.
9202
9203 2011-09-14  Richard Sandiford  <rdsandiford@googlemail.com>
9204
9205         * config/bfin/bfin.md: Use match_test rather than eq/ne symbol_ref
9206         throughout file.
9207
9208 2011-09-14  Tom de Vries  <tom@codesourcery.com>
9209
9210         PR middle-end/50251
9211         * explow.c (emit_stack_restore): Set crtl->need_drap if
9212         stack_restore is emitted.
9213
9214 2011-09-14  Julian Brown  <julian@codesourcery.com>
9215
9216         * config/arm/arm.c (arm_override_options): Add unaligned_access
9217         support.
9218         (arm_file_start): Emit attribute for unaligned access as appropriate.
9219         * config/arm/arm.md (UNSPEC_UNALIGNED_LOAD)
9220         (UNSPEC_UNALIGNED_STORE): Add constants for unspecs.
9221         (insv, extzv): Add unaligned-access support.
9222         (extv): Change to expander. Likewise.
9223         (extzv_t1, extv_regsi): Add helpers.
9224         (unaligned_loadsi, unaligned_loadhis, unaligned_loadhiu)
9225         (unaligned_storesi, unaligned_storehi): New.
9226         (*extv_reg): New (previous extv implementation).
9227         * config/arm/arm.opt (munaligned_access): Add option.
9228         * config/arm/constraints.md (Uw): New constraint.
9229         * expmed.c (store_bit_field_1): Adjust bitfield numbering according
9230         to size of access, not size of unit, when BITS_BIG_ENDIAN !=
9231         BYTES_BIG_ENDIAN. Don't use bitfield accesses for
9232         volatile accesses when -fstrict-volatile-bitfields is in effect.
9233         (extract_bit_field_1): Likewise.
9234
9235 2011-09-14  Richard Sandiford  <richard.sandiford@linaro.org>
9236
9237         * simplify-rtx.c (simplify_subreg): Check that the inner mode is
9238         a scalar integer before applying integer-only optimisations to
9239         inner arithmetic.
9240
9241 2011-09-14  Bernd Schmidt  <bernds@codesourcery.com>
9242
9243         * config/mips/mips.c (mips_expand_epilogue): Generate a
9244         simple_return only if the return address is in r31.
9245
9246 2011-09-13  Bernd Schmidt  <bernds@codesourcery.com>
9247
9248         * cfgcleanup.c (try_head_merge_bb): If get_condition returns
9249         NULL for a jump that is a cc0 insn, pick the previous insn for
9250         move_before.
9251
9252 2011-09-13  Richard Sandiford  <rdsandiford@googlemail.com>
9253
9254         * config/v850/v850.md: Use match_test rather than eq/ne symbol_ref
9255         throughout file.
9256
9257 2011-09-13  Richard Sandiford  <rdsandiford@googlemail.com>
9258
9259         * config/pa/pa.md: Use match_test rather than eq/ne symbol_ref
9260         throughout file.
9261
9262 2011-09-13  Richard Sandiford  <rdsandiford@googlemail.com>
9263
9264         * config/mn10300/mn10300.md: Use match_test rather than eq/ne
9265         symbol_ref throughout file.
9266
9267 2011-09-13  Richard Sandiford  <rdsandiford@googlemail.com>
9268
9269         * config/m68k/m68k.md: Use match_test rather than eq/ne symbol_ref
9270         throughout file.
9271
9272 2011-09-13  Richard Sandiford  <rdsandiford@googlemail.com>
9273
9274         * config/h8300/h8300.md: Use match_test rather than eq/ne symbol_ref
9275         throughout file.
9276
9277 2011-09-13  Richard Sandiford  <rdsandiford@googlemail.com>
9278
9279         * config/arm/arm.md: Use match_test rather than eq/ne symbol_ref
9280         throughout file.
9281         * config/arm/neon.md: Likewise.
9282         * config/arm/vfp.md: Likewise.
9283         * config/arm/thumb2.md: Likewise.
9284         * config/arm/cortex-m4.md: Likewise.
9285
9286 2011-09-13  Sevak Sargsyan <sevak.sargsyan@ispras.ru>
9287
9288         * config/arm/neon.md (neon_vabd<mode>_2, neon_vabd<mode>_3): New
9289         define_insn patterns for combine.
9290
9291 2011-09-13  Giuseppe Scrivano  <gscrivano@gnu.org>
9292
9293         * reorg.c: Always define make_return_insns.
9294
9295 2011-09-13  Jan Hubicka  <jh@suse.cz>
9296
9297         PR other/49533
9298         * cgraphunit.c (assemble_thunks_and_aliases): Force alias to be output.
9299
9300 2011-09-13  Jan Hubicka  <jh@suse.cz>
9301
9302         PR other/49533
9303         * ipa-inline-transform.c (can_remove_node_now_p): Fix thunkos.
9304
9305 2011-09-13  Paul Brook  <paul@codesourcery.com>
9306
9307         * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
9308         (ARM_TARGET2_DWARF_FORMAT): Provide default definition.
9309         * config/arm/linux-eabi.h (ARM_TARGET2_DWARF_FORMAT): Define.
9310         * config/arm/symbian.h (ARM_TARGET2_DWARF_FORMAT): Define.
9311         * config/arm/uclinux-eabi.h(ARM_TARGET2_DWARF_FORMAT): Define.
9312         * config/arm/t-bpabi (EXTRA_HEADERS): Add unwind-arm-common.h.
9313         * config/arm/t-symbian (EXTRA_HEADERS): Add unwind-arm-common.h.
9314         * config/c6x/c6x.c (c6x_output_file_unwind): Don't rely on dwarf2 code
9315         enabling unwind tables.
9316         (c6x_debug_unwind_info): New function.
9317         (TARGET_ARM_EABI_UNWINDER): Define.
9318         (TARGET_DEBUG_UNWIND_INFO): Define.
9319         * config/c6x/c6x.h (DWARF_FRAME_RETURN_COLUMN): Define.
9320         (TARGET_EXTRA_CFI_SECTION): Remove.
9321         * config/c6x/t-c6x-elf (EXTRA_HEADERS): Set.
9322         * ginclude/unwind-arm-common.h: New file.
9323
9324 2011-09-13  Georg-Johann Lay  <avr@gjlay.de>
9325
9326         PR target/50358
9327         * config/avr/predicates.md (const_1_to_6_operand): New predicate.
9328         * config/avr/avr.md: (extend_s): New code attribute.
9329         (mul_r_d): New code attribute.
9330         (*maddqihi4, *umaddqihi4): New insns.
9331         (*msubqihi4, *umsubqihi4): New insns.
9332         (*usmaddqihi4, *sumaddqihi4): New insns.
9333         (*usmsubqihi4, *susubdqihi4): New insns.
9334         (*umaddqihi4.uconst, *maddqihi4.sconst): New insn-and-splits.
9335         (*umsubqihi4.uconst, *msubqihi4.sconst): New insn-and-splits.
9336         (*umsubqihi4.uconst.ashift): New insn-and-split.
9337         (*msubqihi4.sconst.ashift): New insn-and-split.
9338         (*sumaddqihi4.uconst): New insn-and-split.
9339         (*sumsubqihi4.uconst): New insn-and-split.
9340         * config/avr/avr.c (avr_rtx_costs): Report costs of above in case
9341         PLUS:HI and MINUS:HI.
9342
9343 2011-09-13  Revital Eres  <revital.eres@linaro.org>
9344
9345         modulo-sched.c (remove_node_from_ps): Return void instead of bool.
9346         (optimize_sc): Adjust call to remove_node_from_ps.
9347         (sms_schedule): Add print info.
9348
9349 2011-09-13  Bernd Schmidt  <bernds@codesourcery.com>
9350
9351         * rtl.c (copy_rtx): Do not handle frame_related, jump or call
9352         flags specially.
9353
9354 2011-09-12  Jakub Jelinek  <jakub@redhat.com>
9355
9356         PR bootstrap/50010
9357         * dwarf2cfi.c (add_cfis_to_fde): Ignore non-active insns in between
9358         NOTE_INSN_CFI notes, with the exception of
9359         NOTE_INSN_SWITCH_TEXT_SECTIONS.
9360
9361 2011-09-12  Bernd Schmidt  <bernds@codesourcery.com>
9362             Richard Sandiford  <rdsandiford@googlemail.com>
9363
9364         * config/mips/mips.c (mips_epilogue): New structure.
9365         (mips16e_save_restore_reg): Queue REG_CFA_RESTORE notes when
9366         restoring registers.
9367         (mips_epilogue_emit_cfa_restores): New function.
9368         (mips_epilogue_set_cfa): Likewise.
9369         (mips_restore_reg): Queue REG_CFA_RESTORE notes.  When restoring
9370         the current CFA register from the stack, redefine the CFA in terms
9371         of the stack pointer.
9372         (mips_expand_epilogue): Set up mips_epilogue.  Attach CFA information
9373         to the epilogue instructions.
9374
9375 2011-09-12  Richard Sandiford  <rdsandiford@googlemail.com>
9376
9377         * config/mips/mips.c (mips16e_save_restore_reg): Add a reg_parm_p
9378         argument.
9379         (mips16e_build_save_restore): Update accordingly.
9380
9381 2011-09-12  Jakub Jelinek  <jakub@redhat.com>
9382
9383         PR rtl-optimization/50212
9384         * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
9385         Skip also lps with NULL landing_pad or non-LABEL_P landing_pad.
9386
9387         PR debug/50299
9388         * calls.c (load_register_parameters): Use use_reg_mode instead
9389         of use_reg when adding a single register CALL_INSN_FUNCTION_USAGE
9390         entry.
9391         (expand_call): Set EXPR_LIST mode to TYPE_MODE of the argument
9392         for stack CALL_INSN_FUNCTION_USAGE uses.
9393         * expr.h (use_reg_mode): New prototype.
9394         (use_reg): Changed into inline around use_reg_mode.
9395         * expr.c (use_reg): Renamed to...
9396         (use_reg_mode): ... this.  Added MODE argument, set EXPR_LIST
9397         mode to that mode instead of VOIDmode.
9398         * var-tracking.c (prepare_call_arguments): Don't track parameters
9399         whose EXPR_LIST mode is VOIDmode, BLKmode or X mode isn't convertible
9400         to it using lowpart_subreg.  Convert VALUE and REG/MEM to the
9401         EXPR_LIST mode.
9402
9403 2011-09-12  Georg-Johann Lay  <avr@gjlay.de>
9404
9405         PR target/43746
9406         * config/avr/avr.c (AVR_SECTION_PROGMEM): New Define.
9407         (progmem_section): New Variable.
9408         (avr_asm_init_sections): Initialize it.
9409         (TARGET_ASM_SELECT_SECTION): Define to...
9410         (avr_asm_select_section): ... this new Function.
9411         (avr_replace_prefix): New Function.
9412         (avr_asm_function_rodata_section): Use it.
9413         (avr_insert_attributes): Don't add section attribute for PROGMEM.
9414         (avr_section_type_flags): Use avr_progmem_p instead of section
9415         name to detect if object is in PROGMEM.
9416         (avr_asm_named_section): Set section name prefix for objects in
9417         PROGMEM.
9418
9419 2011-09-12  Jakub Jelinek  <jakub@redhat.com>
9420
9421         PR bootstrap/50352
9422         * config/arm/arm.md (*push_fp_multi): Add % before %( and %) in the
9423         sprintf format string.
9424
9425 2011-09-12  Richard Guenther  <rguenther@suse.de>
9426
9427         PR tree-optimization/50343
9428         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Check
9429         that the reduction is over an SSA name before checking its definition.
9430
9431 2011-09-11  Richard Sandiford  <rdsandiford@googlemail.com>
9432
9433         * config/cris/cris.md: Use match_test rather than eq/ne symbol_ref
9434         throughout file.
9435
9436 2011-09-11  Richard Sandiford  <rdsandiford@googlemail.com>
9437
9438         * config/mips/mips.md: Use match_test rather than eq/ne symbol_ref
9439         throughout file.
9440         * config/mips/sb1.md: Likewise.
9441         * config/mips/predicates.md: Replace (match_test "!...")
9442         with (not (match_test "..."))
9443         * config/mips/constraints.md: Likewise.
9444
9445 2011-09-09  Andrew Stubbs  <ams@codesourcery.com>
9446
9447         * config/arm/arm-cores.def (generic-armv7-a): New architecture.
9448         * config/arm/arm-tables.opt: Regenerate.
9449         * config/arm/arm-tune.md: Regenerate.
9450         * config/arm/arm.c (arm_file_start): Output .arch directive when
9451         user passes -mcpu=generic-*.
9452         (arm_issue_rate): Add genericv7a support.
9453         * config/arm/arm.h (EXTRA_SPECS): Add asm_cpu_spec.
9454         (ASM_CPU_SPEC): New define.
9455         * config/arm/elf.h (ASM_SPEC): Use %(asm_cpu_spec).
9456         * config/arm/semi.h (ASM_SPEC): Likewise.
9457         * doc/invoke.texi (ARM Options): Document -mcpu=generic-*
9458         and -mtune=generic-*.
9459
9460 2011-09-09  Richard Guenther  <rguenther@suse.de>
9461
9462         PR tree-optimization/50328
9463         * tree-vect-loop.c (vect_is_simple_reduction_1): Allow one
9464         constant or default-def operand.
9465
9466 2011-09-09  Richard Guenther  <rguenther@suse.de>
9467
9468         * tree-ssa-pre.c (create_expression_by_pieces): Fold the
9469         last statement.
9470
9471 2011-09-09  Richard Guenther  <rguenther@suse.de>
9472
9473         * gimple.h (fold_stmt_inplace): Adjust to take a gimple_stmt_iterator
9474         instead of a statement.
9475         * gimple-fold.c (fold_stmt_inplace): Likewise.
9476         * sese.c (graphite_copy_stmts_from_block): Adjust.
9477         * tree-ssa-dom.c (propagate_rhs_into_lhs): Likewise.
9478         * tree-ssa-forwprop.c (forward_propagate_into_comparison): Use
9479         fold_stmt.
9480         (forward_propagate_addr_into_variable_array_index): Likewise.
9481         (forward_propagate_addr_expr_1): adjust.
9482         (associate_plusminus): Likewise.
9483         (ssa_forward_propagate_and_combine): Likewise.
9484         * tree-ssa-mathopts.c (replace_reciprocal): Adjust.
9485         (execute_cse_reciprocals): Likewise.
9486         * tree-ssa.c (insert_debug_temp_for_var_def): Adjust.
9487
9488 2011-09-09  Nick Clifton  <nickc@redhat.com>
9489
9490         * config/mn10300/mn10300.c (mn10300_split_and_operand_count):
9491         Return a positive value to indicate that the bits at the
9492         bottom of the register should be cleared.
9493
9494 2011-09-09  Richard Guenther  <rguenther@suse.de>
9495
9496         * tree-ssa-operands.c (swap_tree_operands): Always adjust
9497         existing operand positions.
9498
9499 2011-09-09  Richard Guenther  <rguenther@suse.de>
9500
9501         PR middle-end/50333
9502         * tree-data-ref.c (split_constant_offset): Do not try to handle
9503         ternary ops.
9504
9505 2011-09-08  Andrew Stubbs  <ams@codesourcery.com>
9506
9507         PR tree-optimization/50318
9508         * tree-ssa-math-opts.c (convert_plusminus_to_widen): Correct
9509         typo in use of mult_rhs1 and mult_rhs2.
9510
9511 2011-09-08  Uros Bizjak  <ubizjak@gmail.com>
9512
9513         * config/i386/i386.c (standard_sse_constant_p): Handle AVX2 modes.
9514         (standard_sse_constant_opcode) <case 2>: Change vpcmpeqd template.
9515
9516 2011-09-08  Bernd Schmidt  <bernds@codesourcery.com>
9517
9518         * config/arm/arm.md (push_multi): Emit predicates.
9519         (push_fp_multi): Likewise.
9520         * config/arm/arm.c (vfp_output_fstmd): Likewise.
9521
9522 2011-09-08  Dodji Seketeli  <dodji@redhat.com>
9523
9524         PR c++/33255 - Support -Wunused-local-typedefs warning
9525         * c-decl.c (lookup_name): Use the new maybe_record_typedef_use.
9526         (pushdecl): Use the new record_locally_defined_typedef.
9527         (store_parm_decls): Allocate cfun->language.
9528         (finish_function): Use the new maybe_warn_unused_local_typedefs,
9529         and free cfun->language.
9530         (c_push_function_context): Allocate cfun->language here only if needed.
9531         (c_pop_function_context): Likewise, mark cfun->language
9532         for collection only when it should be done.
9533         * c-common.c (handle_used_attribute): Don't ignore TYPE_DECL nodes.
9534         * c-typeck.c (c_expr_sizeof_type, c_cast_expr): Use the new
9535         maybe_record_local_typedef_use.
9536         * doc/invoke.texi: Update documentation for
9537         -Wunused-local-typedefs.
9538
9539 2011-09-08  Enkovich Ilya  <ilya.enkovich@intel.com>
9540
9541         * config/i386/i386-protos.h (ix86_lea_outperforms): New.
9542         (ix86_avoid_lea_for_add): Likewise.
9543         (ix86_avoid_lea_for_addr): Likewise.
9544         (ix86_split_lea_for_addr): Likewise.
9545
9546         * config/i386/i386.c (LEA_MAX_STALL): New.
9547         (increase_distance): Likewise.
9548         (insn_defines_reg): Likewise.
9549         (insn_uses_reg_mem): Likewise.
9550         (distance_non_agu_define_in_bb): Likewise.
9551         (distance_agu_use_in_bb): Likewise.
9552         (ix86_lea_outperforms): Likewise.
9553         (ix86_ok_to_clobber_flags): Likewise.
9554         (ix86_avoid_lea_for_add): Likewise.
9555         (ix86_avoid_lea_for_addr): Likewise.
9556         (ix86_split_lea_for_addr): Likewise.
9557         (distance_non_agu_define): Search in pred BBs added.
9558         (distance_agu_use): Search in succ BBs added.
9559         (IX86_LEA_PRIORITY): Value changed from 2 to 0.
9560         (LEA_SEARCH_THRESHOLD): Now depends on LEA_MAX_STALL.
9561         (ix86_lea_for_add_ok): Use ix86_lea_outperforms to make decision.
9562
9563         * config/i386/i386.md: Split added to transform non destructive
9564         add into move and add.
9565         (lea_1): transformed into insn_and_split to avoid AGU stalls.
9566         (lea<mode>_2): Likewise.
9567
9568 2011-09-08  Martin Jambor  <mjambor@suse.cz>
9569
9570         PR tree-optimization/50287
9571         * ipa-split.c (split_function): Do not create SSA names for
9572         non-gimple-registers.
9573
9574 2011-09-08  Richard Guenther  <rguenther@suse.de>
9575
9576         PR tree-optimization/19831
9577         * tree-ssa-dce.c (mark_all_reaching_defs_necessary_1): Also
9578         skip builtins with vdefs that do not really store something.
9579         (propagate_necessity): For calls to free that we can associate
9580         with an allocation function do not mark the freed pointer
9581         definition necessary.
9582         (eliminate_unnecessary_stmts): Remove a call to free if
9583         the associated call to an allocation function is not necessary.
9584
9585 2011-09-08  Richard Guenther  <rguenther@suse.de>
9586
9587         PR tree-optimization/19831
9588         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Do not mark
9589         allocation functions as necessary.
9590
9591 2011-09-08  Iain Sandoe  <iains@gcc.gnu.org>
9592
9593         * config/darwin-driver.c (darwin_find_version_from_kernel): New routine
9594         cut from ...
9595         (darwin_default_min_version): Amended to provide defaults
9596         for the cross directory case.
9597         (darwin_driver_init): call darwin_default_min_version unconditionally.
9598         * config/darwin.h (DEF_MIN_OSX_VERSION): New.
9599         * config/darwin9.h: Likewise.
9600         * config/darwin10.h: Likewise.
9601         * config/rs6000/darwin7.h: Likewise.
9602
9603 2011-09-08  Jakub Jelinek  <jakub@redhat.com>
9604
9605         PR target/50310
9606         * config/i386/i386.c (ix86_prepare_sse_fp_compare_args): Return
9607         code early if TARGET_AVX.
9608         (ix86_expand_fp_vcond): Handle LTGT and UNEQ.
9609
9610 2011-09-07  Jakub Jelinek  <jakub@redhat.com>
9611
9612         * config/i386/sse.md (sseinsnmode): Remove 32-byte integer vector
9613         duplicates.
9614
9615         PR target/50310
9616         * config/i386/sse.md (*andnot<mode>3, *<code><mode>3): Fix up
9617         "mode" attribute computation.
9618
9619 2011-09-07  Bernd Schmidt  <bernds@codesourcery.com>
9620
9621         * regrename.c (struct du_head): Make nregs signed.
9622         (closed_chains): Remove.
9623         (create_new_chain): Return the new chain.
9624         (chain_from_id): New static function.
9625         (dump_def_use_chain): Change argument to be an int, indicating
9626         the first ID to print.  All callers changed.
9627         (merge_overlapping_regs): Use chain_from_id.  Assert that
9628         chains don't conflict with themselves.
9629         (rename_chains): Take no argument.  Iterate over id_to_chain
9630         rather to find chains to rename.  Clear tick before the main loop.
9631         (struct incoming_reg_info): New struct.
9632         (struct bb_rename_info): New struct.
9633         (init_rename_info, set_incoming_from_chain, merge_chains): New
9634         static functions.
9635         (regrename_analyze): New static function, broken out of
9636         regrename_optimize.  Record and make use of open chain information
9637         at basic block boundaries, and merge chains where possible.
9638         (scan_rtx_reg): Make this_nregs signed.  Don't update
9639         closed_chains.
9640         (build_def_use): Return a bool to indicate success.  All callers
9641         changed.  Don't initialize global data here.
9642         (regrename_optimize): Move most code out of here into
9643         regrename_analyze.
9644         * regs.h (add_range_to_hard_reg_set, remove_range_from_hard_reg_set,
9645         range_overlaps_hard_reg_set_p, range_in_hard_reg_set_p): New
9646         static inline functions.
9647         * vec.h (FOR_EACH_VEC_ELT_FROM): New macro.
9648
9649         * bb-reorder.c (insert_section_boundary_note): Don't check
9650         optimize_function_for_speed_p.
9651         (gate_handle_partition_blocks): Do it here instead.
9652         (gate_handle_reorder_blocks): Move preliminary checks here ...
9653         (rest_of_handle_reorder_blocks): ... from here.
9654
9655 2011-09-07  Martin Jambor  <mjambor@suse.cz>
9656
9657         PR middle-end/50301
9658         * ipa-cp.c (find_more_values_for_callers_subset): Check jump
9659         function index bounds.
9660         (perhaps_add_new_callers): Likewise.
9661
9662 2011-09-07  Martin Jambor  <mjambor@suse.cz>
9663
9664         PR tree-optimization/49911
9665         * tree-sra.c (analyze_access_subtree): Change type of to-be-replaced
9666         enumerations to the corresponding plain integer type.
9667
9668 2011-09-07  Richard Guenther  <rguenther@suse.de>
9669
9670         PR tree-optimization/50319
9671         * tree-if-conv.c (set_bb_predicate): Assert we only set
9672         canonical predicates.
9673         (add_to_predicate_list): Simplify.  Allow TRUTH_NOT_EXPR
9674         around canonical predicates.
9675         (predicate_bbs): Do not re-gimplify already canonical
9676         predicates.  Properly unshare them though.
9677         (find_phi_replacement_condition): Simplify.
9678
9679 2011-09-07  Richard Sandiford  <richard.sandiford@linaro.org>
9680
9681         PR target/49030
9682         * config/arm/arm-protos.h (maybe_get_arm_condition_code): Declare.
9683         * config/arm/arm.c (maybe_get_arm_condition_code): New function,
9684         reusing the old code from get_arm_condition_code.  Return ARM_NV
9685         for invalid comparison codes.
9686         (get_arm_condition_code): Redefine in terms of
9687         maybe_get_arm_condition_code.
9688         * config/arm/predicates.md (arm_comparison_operator): Use
9689         maybe_get_arm_condition_code.
9690
9691 2011-09-07  Richard Guenther  <rguenther@suse.de>
9692
9693         * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
9694         Canonicalize negated predicates by swapping edges.
9695         (forward_propagate_into_cond): Likewise.
9696
9697 2011-09-07  Richard Guenther  <rguenther@suse.de>
9698
9699         PR tree-optimization/50213
9700         * tree-flow.h (simple_iv_increment_p): Declare.
9701         * tree-ssa-dom.c (simple_iv_increment_p): Export.  Also handle
9702         POINTER_PLUS_EXPR.
9703         * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Do
9704         not propagate simple IV counter increments.
9705
9706 2011-09-07  Eric Botcazou  <ebotcazou@adacore.com>
9707             Iain Sandoe  <iains@gcc.gnu.org>
9708
9709         * config/rs6000/rs6000.c (compute_save_world_info): Test
9710         cfun->has_nonlocal_label to determine if the out-of-line save
9711         world call may be used.
9712
9713 2011-09-07  Nick Clifton  <nickc@redhat.com>
9714
9715         * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Set the jump
9716         label on the parallel part of the insn.
9717
9718 2011-09-07  Jakub Jelinek  <jakub@redhat.com>
9719
9720         PR debug/50191
9721         * dwarf2out.c (mem_loc_descriptor) <case MEM>: Try
9722         avoid_constant_pool_reference first instead of last.
9723
9724 2011-09-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
9725
9726         * doc/configfiles.texi (Configuration Files): Update documentation
9727         about tm_p.h and remove FIXME comment.
9728
9729 2011-09-06  Uros Bizjak  <ubizjak@gmail.com>
9730
9731         * config/i386/i386.c (ix86_function_value_regno_p): Use AX_REG.
9732         (function_value_32): Do not check TARGET_MMX, TARGET_SSE or TARGET_AVX.
9733
9734 2011-09-06  Iain Sandoe  <iains@gcc.gnu.org>
9735
9736         * config/darwin10.h Remove duplicate LIB_SPEC.
9737
9738 2011-09-06  Enkovich Ilya  <ilya.enkovich@intel.com>
9739
9740         PR middle-end/44382
9741         * target.def (reassociation_width): New hook.
9742
9743         * doc/tm.texi.in (reassociation_width): Likewise.
9744
9745         * doc/tm.texi (reassociation_width): Likewise.
9746
9747         * doc/invoke.texi (tree-reassoc-width): New param documented.
9748
9749         * hooks.h (hook_int_uint_mode_1): New default hook.
9750
9751         * hooks.c (hook_int_uint_mode_1): Likewise.
9752
9753         * config/i386/i386.h (ix86_tune_indices): Add
9754         X86_TUNE_REASSOC_INT_TO_PARALLEL and X86_TUNE_REASSOC_FP_TO_PARALLEL.
9755
9756         (TARGET_REASSOC_INT_TO_PARALLEL): New.
9757         (TARGET_REASSOC_FP_TO_PARALLEL): Likewise.
9758
9759         * config/i386/i386.c (initial_ix86_tune_features): Add
9760         X86_TUNE_REASSOC_INT_TO_PARALLEL and X86_TUNE_REASSOC_FP_TO_PARALLEL.
9761
9762         (ix86_reassociation_width): New function.
9763
9764         * params.def (PARAM_TREE_REASSOC_WIDTH): New param added.
9765
9766         * tree-ssa-reassoc.c (get_required_cycles): New function.
9767         (get_reassociation_width): Likewise.
9768         (swap_ops_for_binary_stmt): Likewise.
9769         (rewrite_expr_tree_parallel): Likewise.
9770
9771         (rewrite_expr_tree): Refactored.  Part of code moved into
9772         swap_ops_for_binary_stmt.
9773
9774         (reassociate_bb): Now checks reassociation width to be used and
9775         call rewrite_expr_tree_parallel instead of rewrite_expr_tree if needed.
9776
9777 2011-09-06  Richard Guenther  <rguenther@suse.de>
9778
9779         PR tree-optimization/47025
9780         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): BUILT_IN_VA_END
9781         uses nothing.
9782         (call_may_clobber_ref_p_1): BUILT_IN_VA_END is a barrier like
9783         BUILT_IN_FREE.
9784         (stmt_kills_ref_p_1): BUILT_IN_VA_END kills what its argument
9785         definitely points to.
9786         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
9787         BUILT_IN_VA_START doesn't let its va_list argument escape.
9788         * tree-ssa-dce.c (propagate_necessity): BUILT_IN_VA_END does
9789         not make any previous stores necessary.
9790
9791 2011-09-06  Martin Jambor  <mjambor@suse.cz>
9792
9793         * ipa-inline.h (struct inline_summary): Move versionable flag...
9794         * cgraph.h (struct cgraph_local_info): ...here
9795         * ipa-cp.c (determine_versionability): Use the new versionable flag.
9796         (determine_versionability): Likewise.
9797         (ipcp_versionable_function_p): Likewise.
9798         (ipcp_generate_summary): Likewise.
9799         * ipa-inline-analysis.c (dump_inline_summary): Do not dump the
9800         versionable flag.
9801         (compute_inline_parameters): Do not clear the versionable flag.
9802         (inline_read_section): Do not stream the versionable flag.
9803         (inline_write_summary): Likewise.
9804         * lto-cgraph.c (lto_output_node): Stream the versionable flag.
9805         (input_overwrite_node): Likewise.
9806
9807 2011-09-06  Richard Guenther  <rguenther@suse.de>
9808
9809         PR tree-optimization/48149
9810         * tree-ssa-sccvn.c (vn_get_expr_for): Simplify.  Fix tuplification bug.
9811         (vn_valueize): Move earlier.
9812         (valueize_expr): Use vn_valueize.
9813         (simplify_binary_expression): Simplify, also combine COMPLEX_EXPR
9814         operands.
9815         (simplify_unary_expression): Simplify.
9816
9817 2011-09-06  Richard Guenther  <rguenther@suse.de>
9818
9819         PR tree-optimization/48317
9820         * tree-ssa-sccvn.h (struct vn_nary_op_s): Make op a true
9821         trailing array.
9822         (sizeof_vn_nary_op): New inline function.
9823         (vn_nary_op_lookup_pieces): Adjust.
9824         (vn_nary_op_insert_pieces): Likewise.
9825         * tree-ssa-sccvn.c (vn_nary_op_eq): Also compare the length.
9826         (init_vn_nary_op_from_pieces): Adjust signature.  Deal with
9827         any number of operands.
9828         (vn_nary_length_from_stmt): New function.
9829         (init_vn_nary_op_from_stmt): Adjust for CONSTRUCTOR handling.
9830         (vn_nary_op_lookup_pieces): Adjust signature and allocate properly
9831         sized temporary.
9832         (vn_nary_op_lookup): Likewise.
9833         (vn_nary_op_lookup_stmt): Likewise.
9834         (vn_nary_op_insert_into): Likewise.
9835         (vn_nary_op_insert_stmt): Likewise.
9836         (visit_use): Handle CONSTRUCTOR as nary.
9837         * tree-ssa-pre.c (phi_translate_1): Adjust.
9838         (create_expression_by_pieces): Likewise.
9839         (compute_avail): Likewise.
9840
9841 2011-09-06  Ira Rosen  <ira.rosen@linaro.org>
9842
9843          * config/arm/arm.c (arm_preferred_simd_mode): Check
9844         TARGET_NEON_VECTORIZE_DOUBLE instead of
9845         TARGET_NEON_VECTORIZE_QUAD.
9846         (arm_autovectorize_vector_sizes): Likewise.
9847         * config/arm/arm.opt (mvectorize-with-neon-quad): Make inverse
9848         mask of mvectorize-with-neon-double.  Add RejectNegative.
9849         (mvectorize-with-neon-double): New.
9850
9851 2011-09-06  Richard Guenther  <rguenther@suse.de>
9852
9853         * tree-ssa-sccvn.c (visit_use): CSE stmt pieces and simplify matching.
9854
9855 2011-09-06  Tom de Vries  <tom@codesourcery.com>
9856
9857         * recog.c (asm_labels_ok): New function.
9858         (check_asm_operands): Use asm_labels_ok.
9859
9860 2011-09-05  Richard Sandiford  <rdsandiford@googlemail.com>
9861
9862         PR target/49606
9863         * config/mips/mips.h (ABI_HAS_64BIT_SYMBOLS): Check Pmode.
9864         (PMODE_INSN): New macro.
9865         * config/mips/mips.c (gen_load_const_gp): Use PMODE_INSN.
9866         (mips_got_load, mips_expand_synci_loop): Likewise.
9867         (mips_save_gp_to_cprestore_slot): Handle SImode and DImode
9868         cprestore patterns.
9869         (mips_emit_loadgp): Use PMODE_INSN.  Handle SImode and DImode
9870         copygp_mips16 patterns.
9871         (mips_expand_prologue): Handle SImode and DImode potential_cprestore
9872         and use_cprestore patterns.
9873         (mips_override_options): Check for incompatible -mabi and -mlong
9874         combinations.
9875         * config/mips/mips.md (unspec_got<mode>): Rename to...
9876         (unspec_got_<mode>): ...this.
9877         (copygp_mips16): Use the Pmode iterator.
9878         (potential_cprestore, cprestore, use_cprestore): Likewise.
9879         (clear_cache, indirect_jump): Use PMODE_INSN.
9880         (indirect_jump<mode>): Rename to...
9881         (indirect_jump_<mode>): ...this.
9882         (tablejump): Use PMODE_INSN.
9883         (tablejump<mode>): Rename to...
9884         (tablejump_<mode>): ...this.
9885         (exception_receiver): Handle restore_gp_si and restore_gp_di.
9886         (restore_gp): Use the Pmode iterator.
9887         * config/mips/mips-dsp.md (mips_lbux, mips_lhx, mips_lwx): Use
9888         PMODE_INSN.
9889
9890 2011-09-05  Richard Sandiford  <rdsandiford@googlemail.com>
9891
9892         * config/mips/mips.c (mips_gimplify_va_arg_expr): Unshare off.
9893         Fix the type of the BIT_AND_EXPR.
9894
9895 2011-09-05  David S. Miller  <davem@davemloft.net>
9896
9897         * config.host: Add driver-sparc.o and sparc/x-sparc on
9898         native sparc*-*-linux* builds.
9899         * config/sparc/driver-sparc.c: Correct Linux strings.
9900         * config/sparc/linux.h: Add DRIVER_SELF_SPECS.
9901         * config/sparc/linux64.h: Likewise.
9902         * doc/invoke.texi: Document that Linux also supports
9903         -mcpu=native and -mtune=native on sparc.
9904
9905         * config/sparc/sparc-opts.h (PROCESSOR_NIAGARA3,
9906         PROCESSOR_NIAGARA4): New.
9907         * config/sparc/sparc.opt: Handle new processor types.
9908         * config/sparc/sparc.md: Add to "cpu" attribute.
9909         * config/sparc/sparc.h (TARGET_CPU_niagara3,
9910         TARGET_CPU_niagara4): New, treat as niagara2.
9911         * config/sparc/linux64.h: Handle niagara3 and niagara4 like niagara2.
9912         * config/sparc/sol2.h: Likewise.
9913         * config/sparc/niagara2.md: Schedule niagara3 like niagara2.
9914         * config/sparc/sparc.c (sparc_option_override): Add
9915         niagara3 and niagara4 handling.
9916         (sparc32_initialize_trampoline): Likewise.
9917         (sparc64_initialize_trampoline): Likewise.
9918         (sparc_use_sched_lookahead): Likewise.
9919         (sparc_issue_rate): Likewise.
9920         (sparc_register_move_cost): Likewise.
9921         * config/sparc/driver-sparc.c (cpu_names): Use niagara3
9922         and niagara4 as appropriate.
9923         * doc/invoke.texi: Document new processor types.
9924         * config.gcc: Recognize niagara3 and niagara4 in --with-cpu
9925         and --with-tune options.
9926
9927         * config/sparc/sol2-64.h: Move ...
9928         * config/sparc/default-64.h: ... to here.  Update comment.
9929         * config.gcc: Update Solaris sparc to use default-64.h, also
9930         prefix this header into the list on sparc64-*-linux.
9931         * config/sparc/linux64.h (TARGET_DEFAULT): Only override if
9932         TARGET_64BIT_DEFAULT is defined.  Remove commented out reference
9933         to MASK_HARD_QUAD.
9934
9935 2011-09-05  Georg-Johann Lay  <avr@gjlay.de>
9936
9937         PR target/50289
9938         * config/avr/avr.c (sequent_regs_live): Don't recognize sequences
9939         that contain global register variable.
9940
9941 2011-09-05  Richard Guenther  <rguenther@suse.de>
9942
9943         * tree-cfg.c (replace_uses_by): Use fold_stmt, not fold_stmt_inplace.
9944
9945 2011-09-05  Richard Guenther  <rguenther@suse.de>
9946
9947         * stor-layout.c (layout_type): Use size_binop for array size
9948         calculations.
9949
9950 2011-09-05  Georg-Johann Lay  <avr@gjlay.de>
9951
9952         * config/avr/avr.h (progmem_section): Remove Declaration.
9953         * config/avr/avr.c (progmem_section): Make static and rename to
9954         progmem_swtable_section.
9955         (avr_output_addr_vec_elt): No need to switch sections.
9956         (avr_asm_init_sections): Use output_section_asm_op as section
9957         callback for progmem_swtable_section.
9958         (avr_output_progmem_section_asm_op): Remove Function.
9959         (TARGET_ASM_FUNCTION_RODATA_SECTION): New Define.
9960         (avr_asm_function_rodata_section): New static Function.
9961         * config/avr/elf.h (ASM_OUTPUT_BEFORE_CASE_LABEL): Output
9962         alignment 2**1 for jump tables.
9963
9964 2011-09-04  Jan Hubicka  <jh@suse.cz>
9965
9966         * ipa-inline-analysis.c (set_cond_stmt_execution_predicate): Check that
9967         parameter is SSA name.
9968
9969 2011-09-04  Richard Guenther  <rguenther@suse.de>
9970
9971         Revert
9972         2011-08-31  Richard Guenther  <rguenther@suse.de>
9973
9974         * fold-const.c (extract_muldiv_1): Remove bogus TYPE_IS_SIZETYPE
9975         special-casing.
9976
9977 2011-09-04  Iain Sandoe  <iains@gcc.gnu.org>
9978
9979         PR debug/49901
9980         * config/darwin.h (DEBUG_MACRO_SECTION): New macro.
9981
9982 2011-09-04  Jakub Jelinek  <jakub@redhat.com>
9983             Ira Rosen  <ira.rosen@linaro.org>
9984
9985         PR tree-optimization/50208
9986         * tree-vect-patterns.c (vect_handle_widen_mult_by_const): Add an
9987         argument.  Check that def_stmt is inside the loop.
9988         (vect_recog_widen_mult_pattern): Update calls to
9989         vect_handle_widen_mult_by_cons.
9990         (vect_operation_fits_smaller_type): Check that def_stmt is
9991         inside the loop.
9992
9993 2011-09-04  Ira Rosen  <ira.rosen@linaro.org>
9994
9995         * tree-vectorizer.c (vect_print_dump_info): Print line
9996         number when dumping to a file.
9997         (vectorize_loops): Add new messages to dump file.
9998
9999 2011-09-03  Martin Jambor  <mjambor@suse.cz>
10000
10001         * ipa-prop.h (ipa_jump_func_t): New typedef.
10002         (struct ipa_edge_args): Removed field argument_count, field
10003         jump_functions turned into a vector.
10004         (ipa_set_cs_argument_count): Removed.
10005         (ipa_get_cs_argument_count): Updated to work on vectors.
10006         (ipa_get_ith_jump_func): Likewise.
10007         * ipa-prop.c (ipa_count_arguments): Removed.
10008         (compute_scalar_jump_functions): Use ipa_get_ith_jump_func to access
10009         jump functions.  Update caller.
10010         (compute_pass_through_member_ptrs): Likewise.
10011         (compute_cst_member_ptr_arguments): Likewise.
10012         (ipa_compute_jump_functions_for_edge): Get number of arguments from
10013         the statement, allocate vector.
10014         (ipa_compute_jump_functions): Do not call ipa_count_arguments.
10015         (duplicate_ipa_jump_func_array): Removed.
10016         (ipa_edge_duplication_hook): Use VEC_copy, do not copy argument count.
10017         (ipa_read_node_info): Allocate vector.
10018
10019 2011-09-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10020
10021         PR middle-end/50232
10022         * config/pa/pa.md (return): Define "return" insn pattern.
10023         (epilogue): Use it when no epilogue is needed.
10024         * config/pa/pa.c (pa_can_use_return_insn): New function.
10025         * config/pa/pa-protos.h (pa_can_use_return_insn): Declare.
10026
10027 2011-09-03  Eric Botcazou  <ebotcazou@adacore.com>
10028
10029         * cfgexpand.c (add_stack_var): Assert that the alignment is not zero.
10030         * tree-ssa-ccp.c (fold_builtin_alloca_for_var): Revert latest change.
10031         Force at least BITS_PER_UNIT alignment on the new variable.
10032
10033 2011-09-02  Gary Funck <gary@intrepid.com>
10034
10035         * opts.c (print_specific_help): Fix off-by-one compare in
10036         assertion check.
10037         * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
10038         CL_TARGET, CL_COMMON, CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED):
10039         Increase by +5 to allow for more languages.
10040         * optc-gen.awk: Generate #if that ensures that the number of
10041         languages is within the implementation-defined limit.
10042
10043 2011-09-02  Michael Matz  <matz@suse.de>
10044
10045         PR middle-end/50260
10046         * ipa-split.c (split_function): Call add_referenced_var.
10047
10048         * tree-ssa-phiopt.c (cond_store_replacement): Don't call get_var_ann.
10049         (cond_if_else_store_replacement_1): Ditto.
10050         * tree-ssa-pre.c (get_representative_for): Ditto.
10051         (create_expression_by_pieces): Ditto.
10052         (insert_into_preds_of_block): Ditto.
10053         * tree-sra.c (create_access_replacement): Ditto.
10054         (get_replaced_param_substitute): Ditto.
10055
10056 2011-09-02  Bernd Schmidt  <bernds@codesourcery.com>
10057
10058         * config/c6x/c6x.md (collapse-ndfa, no-comb-vect): New
10059         automata_options.
10060         (d1, l1, s1, m1, d2, l2, s2, m2): Changed to define_query_cpu_unit.
10061         (l1w, s1w, l2w, s2w): Define in the main automaton.
10062         (fps1, fpl1, adddps1, adddpl1, fps2, fpl2, adddps2, adddpl2): New
10063         units.
10064         * config/c6x/c6x.c (c6x_sched_insn_info): Add unit_mask member.
10065         (c6x_unit_names): Add the new units.
10066         (c6x_unit_codes): New static array.
10067         (UNIT_QID_D1, UNIT_QID_L1, UNIT_QID_S1, UNIT_QID_M1, UNIT_QID_FPS1,
10068         UNIT_QID_FPL1, UNIT_QID_ADDDPS1, UNIT_QID_ADDDPL1,
10069         UNIT_QID_SIDE_OFFSET): New macros.
10070         (RESERVATION_S2): Adjust value.
10071         (c6x_option_override): Compute c6x_unit_codes.
10072         (assign_reservations): Take the unit_mask of the last instruction
10073         into account.  Detect floating point reservations by looking for
10074         the new units.  Don't assign reservations if the field is already
10075         nonzero.
10076         (struct c6x_sched_context): Add member prev_cycle_state_ctx.
10077         (init_sched_state): Initialize it.
10078         (c6x_clear_sched_context): Free it.
10079         (insn_set_clock): Clear reservation.
10080         (prev_cycle_state): New static variable.
10081         (c6x_init_sched_context): Save it.
10082         (c6x_sched_init): Allocate space for it and clear it.
10083         (c6x_sched_dfa_pre_cycle_insn): New static function.
10084         (c6x_dfa_new_cycle): Save state at the start of a new cycle.
10085         (c6x_variable_issue): Only record units in the unit_mask that
10086         were not set at the start of the cycle.
10087         (c6x_variable_issue): Compute and store the unit_mask from the
10088         current state.
10089         (reorg_split_calls): Ensure the new information remains correct.
10090         (TARGET_SCHED_DFA_NEW_CYCLE, TARGET_SCHED_CLEAR_SCHED_CONTEXT,
10091         TARGET_SCHED_DFA_PRE_CYCLE_INSN): Define.
10092         * config/c6x/c6x.h (CPU_UNITS_QUERY): Define.
10093         * config/c6x/c6x-sched.md.in (fp4_ls_N__CROSS_, adddp_ls_N__CROSS_):
10094         Add special reservations.
10095         * config/c6x/c6x-sched.md: Regenerate.
10096
10097 2011-09-02  Martin Jambor  <mjambor@suse.cz>
10098
10099         * ipa-prop.h (ipa_node_params): Removed fields
10100         called_with_var_arguments and node_versionable.
10101         (ipa_set_called_with_variable_arg): Removed.
10102         (ipa_is_called_with_var_arguments): Likewise.
10103         * ipa-cp.c (ipa_get_lattice): Fixed index check in an assert.
10104         (determine_versionability): Do not check for type attributes and va
10105         builtins.  Record versionability into inline summary.
10106         (initialize_node_lattices): Do not check
10107         ipa_is_called_with_var_arguments.
10108         (propagate_constants_accross_call): Likewise, ignore arguments we do
10109         not have PARM_DECLs for, set variable flag for parameters that were
10110         not passed a value.
10111         (create_specialized_node): Dump info that we cannot change signature.
10112         * ipa-prop.c (ipa_compute_jump_functions): Do not care about variable
10113         number of arguments.
10114         (ipa_make_edge_direct_to_target): Likewise.
10115         (ipa_update_after_lto_read): Likewise.
10116         (ipa_node_duplication_hook): Do not copy called_with_var_arguments flag.
10117         * tree-inline.c (copy_arguments_for_versioning): Copy PARM_DECLs if
10118         they were remapped.
10119
10120 2011-09-02  Richard Guenther  <rguenther@suse.de>
10121
10122         PR tree-optimization/27460
10123         PR middle-end/29269
10124         * doc/md.texi (vcond): Document.
10125         * genopinit.c (optabs): Turn vcond{,u}_optab into a conversion
10126         optab with two modes.
10127         * optabs.h (enum convert_optab_index): Add COI_vcond, COI_vcondu.
10128         (enum direct_optab_index): Remove DOI_vcond, DOI_vcondu.
10129         (vcond_optab): Adjust.
10130         (vcondu_optab): Likewise.
10131         (expand_vec_cond_expr_p): Adjust prototype.
10132         * optabs.c (get_vcond_icode): Adjust.
10133         (expand_vec_cond_expr_p): Likewise.
10134         (expand_vec_cond_expr): Likewise.
10135         * tree-vect-stmts.c (vect_is_simple_cond): Return the comparison
10136         vector type.
10137         (vectorizable_condition): Allow differing types for comparison
10138         and result.
10139         * config/i386/i386.c (ix86_expand_sse_cmp): Use proper mode
10140         for the comparison.
10141         * config/i386/sse.md (vcond<mode>): Split to
10142         vcond<V_256:mode><VF_256:mode>, vcond<V_128:mode><VF_128:mode>,
10143         vcond<V_128:mode><VI124_128:mode> and
10144         vcondu<V_128:mode><VI124_128:mode>.
10145         (vcondv2di): Change to vcond<VI8F_128:mode>v2di.
10146         (vconduv2di): Likewise.
10147         * config/arm/neon.md (vcond<mode>): Change to vcond*<mode><mode>.
10148         (vcondu<mode>): Likewise.
10149         * config/ia64/vect.md (vcond<mode>): Likewise.
10150         (vcondu<mode>): Likewise.
10151         (vcondv2sf): Likewise.
10152         * config/mips/mips-ps-3d.md (vcondv2sf): Likewise.
10153         * config/rs6000/paired.md (vcondv2sf): Likewise.
10154         * config/rs6000/vector.md (vcond<mode>): Likewise.
10155         (vcondu<mode>): Likewise.
10156         * config/spu/spu.md (vcond<mode>): Likewise.
10157         (vcondu<mode>): Likewise.
10158
10159 2011-09-02  Richard Guenther  <rguenther@suse.de>
10160
10161         * pretty-print.h (pp_unsigned_wide_integer): New.
10162         * tree-pretty-print.c (dump_generic_node): Print unsigned
10163         host-wide-int fitting INTEGER_CSTs with pp_unsigned_wide_integer.
10164
10165 2011-09-02  Richard Sandiford  <richard.sandiford@linaro.org>
10166
10167         PR target/49987
10168         * config/rs6000/rs6000.c (paired_expand_vector_init): Check for
10169         valid CONST_VECTOR operands.
10170         (rs6000_expand_vector_init): Likewise.
10171
10172 2011-09-02  Martin Jambor  <mjambor@suse.cz>
10173
10174         * cgraph.h (cgraph_indirect_call_info): Removed field thunk_delta.
10175         * gimple-fold.c (gimple_get_virt_method_for_binfo): Rewritten to use
10176         BINFO_VTABLE.  Parameter delta removed, all callers updated.
10177         * tree.c (free_lang_data_in_binfo): Clear BINFO_VIRTUALs instead
10178         BINFO_VTABLE.
10179         * cgraph.c (cgraph_make_edge_direct): Removed parameter delta, updated
10180         all calls.
10181         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Removed
10182         handling of thunk_delta.
10183         * ipa-cp.c (get_indirect_edge_target): Removed parameter delta.
10184         (devirtualization_time_bonus): Do not handle thunk deltas.
10185         (ipcp_discover_new_direct_edges): Likewise.
10186         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
10187         (try_make_edge_direct_simple_call): Likewise.
10188         (try_make_edge_direct_virtual_call): Likewise.
10189         * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise.  Mark
10190         parameter set as unused.
10191         (output_edge_opt_summary): Likewise.  Mark both parameters as unused.
10192         * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise.  Mark
10193         parameter set as unused.
10194         (output_edge_opt_summary): Likewise.  Mark both parameters as unused.
10195         (input_edge_opt_summary): Likewise.
10196         * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not stream
10197         BINFO_VIRTUALS at all.
10198         * lto-streamer-in.c (lto_input_ts_binfo_tree_pointers): Likewise.
10199
10200 2011-09-02  Richard Guenther  <rguenther@suse.de>
10201
10202         * tree-ssa-ccp.c (fold_builtin_alloca_for_var): Do not fold alloca (0).
10203         (ccp_fold_stmt): Continue replacing args when folding alloca fails.
10204
10205 2011-08-31  Richard Guenther  <rguenther@suse.de>
10206
10207         * expr.c (expand_expr_real_2): Move COND_EXPR and VEC_COND_EXPR
10208         handling here, from ...
10209         (expand_expr_real_1): ... here.
10210         * gimple-pretty-print.c (dump_ternary_rhs): Handle COND_EXPR
10211         and VEC_COND_EXPR.
10212         * gimple.c (gimple_rhs_class_table): Make COND_EXPR and VEC_COND_EXPR
10213         a GIMPLE_TERNARY_RHS.
10214         * tree-cfg.c (verify_gimple_assign_ternary): Handle COND_EXPR
10215         and VEC_COND_EXPR here ...
10216         (verify_gimple_assign_single): ... not here.
10217         * gimple-fold.c (fold_gimple_assign): Move COND_EXPR folding.
10218         * tree-object-size.c (cond_expr_object_size): Adjust.
10219         (collect_object_sizes_for): Likewise.
10220         * tree-scalar-evolution.c (interpret_expr): Don't handle ternary RHSs.
10221         * tree-ssa-forwprop.c (forward_propagate_into_cond): Fix and simplify.
10222         (ssa_forward_propagate_and_combine): Adjust.
10223         * tree-ssa-loop-im.c (move_computations_stmt): Build the COND_EXPR
10224         as ternary.
10225         * tree-ssa-threadedge.c (fold_assignment_stmt): Adjust.
10226         * tree-vect-loop.c (vect_is_simple_reduction_1): Likewise.
10227         * tree-vect-stmt.c (vectorizable_condition): Likewise.
10228         * tree-vrp.c (extract_range_from_cond_expr): Likewise.
10229         (extract_range_from_assignment): Likewise.
10230
10231 2011-08-31  Richard Sandiford  <rdsandiford@googlemail.com>
10232
10233         * config/i386/i386.md: Use (match_test ...) for attribute tests.
10234         * config/i386/mmx.md: Likewise.
10235         * config/i386/sse.md: Likewise.
10236         * config/i386/predicates.md (call_insn_operand): Use
10237         (not (match_test "...")) instead of (match_test "!...")
10238         * config/i386/constraints.md (w): Likewise.
10239
10240 2011-08-31  Richard Sandiford  <rdsandiford@googlemail.com>
10241
10242         * doc/md.texi: Describe the use of match_tests in attribute tests.
10243         * rtl.def (MATCH_TEST): Update commentary.
10244         * genattrtab.c (attr_copy_rtx, check_attr_test, clear_struct_flag)
10245         (write_test_expr, walk_attr_value): Handle MATCH_TEST.
10246
10247 2011-08-31  Richard Sandiford  <rdsandiford@googlemail.com>
10248
10249         * genattrtab.c (attr_rtx_1): Hash SYMBOL_REFs.
10250         (attr_string): Use copy_md_ptr_loc.
10251
10252 2011-08-31  Martin Jambor  <mjambor@suse.cz>
10253
10254         PR middle-end/49886
10255         * ipa-inline-analysis.c (compute_inline_parameters): Set
10256         can_change_signature of noes with typde attributes.
10257         * ipa-split.c (split_function): Do not skip any arguments if
10258         can_change_signature is set.
10259
10260 2011-08-31  Martin Jambor  <mjambor@suse.cz>
10261
10262         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Alias
10263         check removed.
10264
10265 2011-08-31  Richard Guenther  <rguenther@suse.de>
10266
10267         * fold-const.c (extract_muldiv_1): Remove bogus TYPE_IS_SIZETYPE
10268         special-casing.
10269
10270 2011-08-31  Marc Glisse  <marc.glisse@inria.fr>
10271
10272         * doc/generic.texi (Types for C++): CP_TYPE_QUALS -> cp_type_quals.
10273
10274 2011-08-31  Tom de Vries  <tom@codesourcery.com>
10275
10276         PR middle-end/43513
10277         * Makefile.in (tree-ssa-ccp.o): Add $(PARAMS_H) to rule.
10278         * tree-ssa-ccp.c (params.h): Include.
10279         (fold_builtin_alloca_for_var): New function.
10280         (ccp_fold_stmt): Use fold_builtin_alloca_for_var.
10281
10282 2011-08-30  Uros Bizjak  <ubizjak@gmail.com>
10283
10284         * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
10285         Handle FMA option.
10286
10287 2011-08-30  Andrew Stubbs  <ams@codesourcery.com>
10288
10289         * config/arm/arm.c (optimal_immediate_sequence_1): Make b1, b2,
10290         b3 and b4 unsigned.
10291
10292 2011-08-30  Andrew Stubbs  <ams@codesourcery.com>
10293
10294         * config/arm/arm.c (arm_gen_constant): Set can_negate correctly
10295         when code is SET.
10296
10297 2011-08-30  Richard Guenther  <rguenther@suse.de>
10298
10299         PR middle-end/48571
10300         * gimple.h (maybe_fold_offset_to_address): Remove.
10301         (maybe_fold_offset_to_reference): Likewise.
10302         (maybe_fold_stmt_addition): Likewise.
10303         (may_propagate_address_into_dereference): Likewise.
10304         * tree-inline.c (remap_gimple_op_r): Do not reconstruct
10305         array references.
10306         * gimple-fold.c (canonicalize_constructor_val): Likewise.
10307         Canonicalize invariant POINTER_PLUS_EXPRs to invariant MEM_REF
10308         addresses instead.
10309         (may_propagate_address_into_dereference): Remove.
10310         (maybe_fold_offset_to_array_ref): Likewise.
10311         (maybe_fold_offset_to_reference): Likewise.
10312         (maybe_fold_offset_to_address): Likewise.
10313         (maybe_fold_stmt_addition): Likewise.
10314         (fold_gimple_assign): Do not reconstruct array references but
10315         instead canonicalize invariant POINTER_PLUS_EXPRs to invariant
10316         MEM_REF addresses.
10317         (gimple_fold_stmt_to_constant_1): Likewise.
10318         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
10319         * gimplify.c (gimplify_conversion): Likewise.
10320         (gimplify_expr): Likewise.
10321
10322 2011-08-30  Ilya Tocar  <ilya.tocar@intel.com>
10323
10324         * config/i386/fmaintrin.h: New.
10325         * config.gcc: Add fmaintrin.h.
10326         * config/i386/i386.c
10327         (enum ix86_builtins) <IX86_BUILTIN_VFMADDSS3>: New.
10328         <IX86_BUILTIN_VFMADDSD3>: Likewise.
10329         * config/i386/sse.md (fmai_vmfmadd_<mode>): New.
10330         (*fmai_fmadd_<mode>): Likewise.
10331         (*fmai_fmsub_<mode>): Likewise.
10332         (*fmai_fnmadd_<mode>): Likewise.
10333         (*fmai_fnmsub_<mode>): Likewise.
10334         * config/i386/immintrin.h: Add fmaintrin.h.
10335
10336 2011-08-30  Bernd Schmidt  <bernds@codesourcery.com>
10337
10338         * genautomata.c (NO_COMB_OPTION): New macro.
10339         (no_comb_flag): New static variable.
10340         (gen_automata_option): Handle NO_COMB_OPTION.
10341         (comb_vect_p): False if no_comb_flag.
10342         (add_vect): Move computation of min/max values.  Return early if
10343         no_comb_flag.
10344         * doc/md.texi (automata_option): Document no-comb-vect.
10345
10346         * config/i386/i386.c (get_pc_thunk_name): Change prefix to
10347         "__x86.get_pc_thunk".
10348
10349         * bb-reorder.c (insert_section_boundary_note): Only do it if
10350         we reordered the blocks; i.e. not if !optimize_function_for_speed_p.
10351
10352 2011-08-30  Christian Bruel  <christian.bruel@st.com>
10353
10354         * coverage.c (coverage_init): Check flag_branch_probabilities instead of
10355         flag_profile_use.
10356
10357 2011-08-29  Michael Meissner  <meissner@linux.vnet.ibm.com>
10358
10359         * config/rs6000/rs6000.opt (-msave-toc-indirect): Change default
10360         to off.  Document switch.
10361         * doc/invoke.texi (-msave-toc-indirect): Ditto.
10362
10363 2011-08-29  Jakub Jelinek  <jakub@redhat.com>
10364
10365         * gthr-posix.h (__gthread_active_p): Do not use preprocessor
10366         conditionals and comments inside macro arguments.
10367
10368 2011-08-29  Artjoms Sinkarovs  <artyom.shinkaroff@gmail.com>
10369             Richard Guenther  <rguenther@suse.de>
10370
10371         * tree.h (constant_boolean_node): Adjust prototype.
10372         * fold-const.c (fold_convert_loc): Move aggregate conversion
10373         leeway down.
10374         (constant_boolean_node): Make value parameter boolean, add
10375         vector type handling.
10376         (fold_unary_loc): Use constant_boolean_node.
10377         (fold_binary_loc): Preserve types properly when folding
10378         COMPLEX_EXPR <__real x, __imag x>.
10379         * gimplify.c (gimplify_expr): Handle vector comparison.
10380         * tree.def (EQ_EXPR, ...): Document behavior on vector typed
10381         comparison.
10382         * tree-cfg.c (verify_gimple_comparison): Verify vector typed
10383         comparisons.
10384
10385 2011-08-29  Jakub Jelinek  <jakub@redhat.com>
10386
10387         PR middle-end/48722
10388         * emit-rtl.c (unshare_all_rtl_again): For CALL_INSNs,
10389         reset_used_flags also in CALL_INSN_FUNCTION_USAGE.
10390         (verify_rtl_sharing): Likewise and verify_rtx_sharing
10391         in there too.
10392         (unshare_all_rtl_in_chain): For CALL_INSNs
10393         copy_rtx_if_shared also CALL_INSN_FUNCTION_USAGE.
10394
10395 2011-08-29  Richard Guenther  <rguenther@suse.de>
10396
10397         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Set a location
10398         on the built ADDR_EXPR.
10399
10400 2011-08-29  Jakub Jelinek  <jakub@redhat.com>
10401
10402         PR debug/50215
10403         * var-tracking.c (create_entry_value): Call cselib_lookup_from_insn
10404         before adding ENTRY_VALUE to val->locs.
10405
10406 2011-08-28  Mikael Pettersson  <mikpe@it.uu.se>
10407
10408         PR bootstrap/50218
10409         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Initialize
10410         comp.
10411
10412 2011-08-27  Bernd Schmidt  <bernds@codesourcery.com>
10413
10414         * doc/rtl.texi (simple_return): Document.
10415         (parallel, PATTERN): Here too.
10416         * doc/md.texi (return): Mention it's allowed to expand to simple_return
10417         in some cases.
10418         (simple_return): Document standard pattern.
10419         * gengenrtl.c (special_rtx): SIMPLE_RETURN is special.
10420         * final.c (final_scan_insn): Use ANY_RETURN_P on body.
10421         * reorg.c (function_return_label, function_simple_return_label):
10422         New static variables, replacing...
10423         (end_of_function_label): ... this.
10424         (simplejump_or_return_p): New static function.
10425         (optimize_skip, steal_delay_list_from_fallthrough,
10426         fill_slots_from_thread): Use it.
10427         (relax_delay_slots): Likewise.  Use ANY_RETURN_P on body.
10428         (rare_destination, follow_jumps): Use ANY_RETURN_P on body.
10429         (find_end_label): Take a new arg which is one of the two return
10430         rtxs.  Depending on which, set either function_return_label or
10431         function_simple_return_label.  All callers changed.
10432         (make_return_insns): Make both kinds.
10433         (dbr_schedule): Adjust for two kinds of end labels.
10434         * function.c (emit_return_into_block): Set JUMP_LABEL properly.
10435         * genemit.c (gen_exp): Handle SIMPLE_RETURN.
10436         (gen_expand, gen_split): Use ANY_RETURN_P.
10437         * df-scan.c (df_uses_record): Handle SIMPLE_RETURN.
10438         * rtl.def (SIMPLE_RETURN): New code.
10439         * ifcvt.c (find_if_case_1): Be more careful about
10440         redirecting jumps to the EXIT_BLOCK.
10441         * jump.c (condjump_p, condjump_in_parallel_p, any_condjump_p,
10442         returnjump_p_1): Handle SIMPLE_RETURNs.
10443         * print-rtl.c (print_rtx): Likewise.
10444         * rtl.c (copy_rtx): Likewise.
10445         * bt-load.c (compute_defs_uses_and_gen): Use ANY_RETURN_P.
10446         * combine.c (simplify_set): Likewise.
10447         * resource.c (find_dead_or_set_registers, mark_set_resources):
10448         Likewise.
10449         * emit-rtl.c (verify_rtx_sharing, classify_insn, copy_insn_1,
10450         copy_rtx_if_shared_1, mark_used_flags): Handle SIMPLE_RETURNs.
10451         (init_emit_regs): Initialize simple_return_rtx.
10452         * cfglayout.c (fixup_reorder_chain): Pass a JUMP_LABEL to
10453         force_nonfallthru_and_redirect.
10454         * rtl.h (ANY_RETURN_P): Allow SIMPLE_RETURN.
10455         (GR_SIMPLE_RETURN): New enum value.
10456         (simple_return_rtx): New macro.
10457         * basic-block.h (force_nonfallthru_and_redirect): Adjust
10458         declaration.
10459         * cfgrtl.c (force_nonfallthru_and_redirect): Take a new jump_label
10460         argument.  All callers changed.  Be careful about what kinds of
10461         returnjumps to generate.
10462         * config/i386/3i86.c (ix86_pad_returns, ix86_count_insn_bb,
10463         ix86_pad_short_function): Likewise.
10464         * config/arm/arm.c (arm_final_prescan_insn): Handle both kinds
10465         of return.
10466         * config/mips/mips.md (any_return): New code_iterator.
10467         (optab): Add cases for return and simple_return.
10468         (return): Expand to a simple_return.
10469         (simple_return): New pattern.
10470         (*<optab>, *<optab>_internal for any_return): New patterns.
10471         (return_internal): Remove.
10472         * config/mips/mips.c (mips_expand_epilogue): Make the last insn
10473         a simple_return_internal.
10474
10475 2011-08-27  Uros Bizjak  <ubizjak@gmail.com>
10476
10477         * config/i386/sse.md (*absneg<mode>2): Fix split condition.
10478         (vec_extract_lo_<mode>): Prevent both operands in memory.
10479         (vec_extract_lo_v16hi): Ditto.
10480         (*vec_extract_v4sf_mem): Add TARGET_SSE insn constraint.
10481
10482 2011-08-27  Uros Bizjak  <ubizjak@gmail.com>
10483
10484         * config/i386/sse.md (mulv16qi3): Attach REG_EQUAL note.
10485         (*sse2_mulv4si3): Ditto.
10486         (mulv2di3): Ditto.
10487         * config/i386/i386.c (legitimize_tls_address): Change REG_EQIV
10488         notes to REG_EQUAL.
10489
10490 2011-08-27  Uros Bizjak  <ubizjak@gmail.com>
10491
10492         PR target/50202
10493         * config/i386/sse.md (sse4_2_pcmpestr): Emit NOTE_INSN_DELETED note
10494         when all outputs are unused.
10495         (sse4_2_pcmpistr): Ditto.
10496
10497 2011-08-26  Uros Bizjak  <ubizjak@gmail.com>
10498
10499         * config/i386/i386.md (round<mode>2): New expander.
10500         * config/i386/i386.c (enum ix86_builtins): Add
10501         IX86_BUILTIN_ROUND{PS,PD}_AZ{,256}.
10502         (struct builtin_description): Add __builtin_ia32_round{ps,pd}_az{,256}
10503         descriptions.
10504         (ix86_builtin_vectorized_function): Handle BUILT_IN_ROUND{,F} builtins.
10505         (ix86_build_const_vector): Rewrite using loop with RTVEC_ELT accessor.
10506
10507 2011-08-26  Uros Bizjak  <ubizjak@gmail.com>
10508
10509         PR middle-end/50083
10510         * convert.c (convert_to_integer) <BUIT_IN_ROUND{,F,L}>: Convert
10511         only when TARGET_C99_FUNCTIONS.
10512         <BUILT_IN_NEARBYINT{,F,L}>: Ditto.
10513         <BUILT_IN_RINT{,F,L}>: Ditto.
10514
10515 2011-08-26  Michael Matz  <matz@suse.de>
10516             Jakub Jelinek  <jakub@redhat.com>
10517
10518         PR lto/50165
10519         * lto-streamer-in.c (canon_file_name): Initialize new_slot->len;
10520         don't call strlen twice, use memcpy.
10521
10522 2011-08-26  H.J. Lu  <hongjiu.lu@intel.com>
10523
10524         * config/i386/bmi2intrin.h: Allow in <immintrin.h>.
10525         * config/i386/bmiintrin.h: Likewise.
10526         * config/i386/lzcntintrin.h: Likewise.
10527
10528         * config/i386/immintrin.h: Include <lzcntintrin.h>,
10529         <bmiintrin.h> and <bmi2intrin.h>.
10530
10531 2011-08-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10532
10533         PR target/50166
10534         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Check count in main.
10535         * configure: Regenerate.
10536
10537 2011-08-26  Jakub Jelinek  <jakub@redhat.com>
10538
10539         PR c/50179
10540         * c-typeck.c (c_process_expr_stmt): Skip over nops and
10541         call mark_exp_read even if exprv is ADDR_EXPR.
10542
10543 2011-08-26  Richard Sandiford  <richard.sandiford@linaro.org>
10544
10545         * df-problems.c (df_note_bb_compute): Pass uses rather than defs
10546         to df_set_dead_notes_for_mw.
10547
10548 2011-08-26  Richard Guenther  <rguenther@suse.de>
10549
10550         * varasm.c (decode_addr_const): Handle MEM_REF[&X, OFF].
10551
10552 2011-08-26  Zdenek Dvorak  <ook@ucw.cz>
10553             Tom de Vries  <tom@codesourcery.com>
10554
10555         * tree-ssa-loop-ivopts.c (struct cost_pair): Add comp field.
10556         (struct ivopts_data): Add loop_single_exit_p field.
10557         (niter_for_exit): Change parameter desc_p into return value.  Return
10558         desc if desc->may_be_zero.  Free desc if unused.
10559         (niter_for_single_dom_exit): Change return type.
10560         (find_induction_variables): Handle changed return type of
10561         niter_for_single_dom_exit.  Dump may_be_zero.
10562         (add_candidate_1): Keep original base and step type for IP_ORIGINAL.
10563         (set_use_iv_cost): Add and handle comp parameter.
10564         (determine_use_iv_cost_generic, determine_use_iv_cost_address): Add
10565         comp argument to set_use_iv_cost.
10566         (strip_wrap_conserving_type_conversions, expr_equal_p)
10567         (difference_cannot_overflow_p, iv_elimination_compare_lt): New function.
10568         (may_eliminate_iv): Add comp parameter.  Handle new return type of
10569         niter_for_exit.  Use loop_single_exit_p.  Use iv_elimination_compare_lt.
10570         (determine_use_iv_cost_condition): Add comp argument to set_use_iv_cost
10571         and may_eliminate_iv.
10572         (rewrite_use_compare): Move call to iv_elimination_compare to ...
10573         (may_eliminate_iv): Here.
10574         (tree_ssa_iv_optimize_loop): Initialize loop_single_exit_p.
10575
10576 2011-08-26  Tom de Vries  <tom@codesourcery.com>
10577
10578         * tree-pretty-print (dump_generic_node): Test for NULL_TREE before
10579         accessing TREE_TYPE.
10580
10581 2011-08-26  Jiangning Liu  <jiangning.liu@arm.com>
10582
10583         * config/arm/arm.md (*ior_scc_scc): Enable for Thumb2 as well.
10584         (*ior_scc_scc_cmp): Likewise
10585         (*and_scc_scc): Likewise.
10586         (*and_scc_scc_cmp): Likewise.
10587         (*and_scc_scc_nodom): Likewise.
10588         (*cmp_ite0, *cmp_ite1, *cmp_and, *cmp_ior): Handle Thumb2.
10589
10590 2011-08-26  Jakub Jelinek  <jakub@redhat.com>
10591
10592         * rtlanal.c (nonzero_bits1): Handle CLRSB.
10593
10594 2011-08-26  Richard Guenther  <rguenther@suse.de>
10595
10596         * expr.c (string_constant): Handle &MEM_REF.
10597
10598 2011-08-26  Andrew Stubbs  <ams@codesourcery.com>
10599
10600         * config/arm/arm.c (struct four_ints): New type.
10601         (count_insns_for_constant): Delete function.
10602         (find_best_start): Delete function.
10603         (optimal_immediate_sequence): New function.
10604         (optimal_immediate_sequence_1): New function.
10605         (arm_gen_constant): Move constant splitting code to
10606         optimal_immediate_sequence.
10607         Rewrite constant negation/invertion code.
10608
10609 2011-08-26  Andrew Stubbs  <ams@codesourcery.com>
10610
10611         * config/arm/arm-protos.h (const_ok_for_op): Add prototype.
10612         * config/arm/arm.c (const_ok_for_op): Add support for addw/subw.
10613         Remove prototype. Remove static function type.
10614         * config/arm/arm.md (*arm_addsi3): Add addw/subw support.
10615         Add arch attribute.
10616         * config/arm/constraints.md (Pj, PJ): New constraints.
10617
10618 2011-08-26  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10619
10620         * config/arm/cortex-a9.md ("cortex_a9_mult_long"): New.
10621         ("cortex_a9_multiply_long"): New and use above.  Handle all
10622         long multiply cases.
10623         ("cortex_a9_multiply"): Handle smmul and smmulr.
10624         ("cortex_a9_mac"): Handle smmla.
10625
10626 2011-08-25  Richard Henderson  <rth@redhat.com>
10627
10628         PR 50132
10629         PR 49864
10630         * cfgcleanup.c (old_insns_match_p): Don't allow cross-jump for
10631         non-constant stack adjutment.
10632         * expr.c (find_args_size_adjust): Break out from ...
10633         (fixup_args_size_notes): ... here.
10634         * rtl.h (find_args_size_adjust): Declare.
10635
10636 2011-08-25  Uros Bizjak  <ubizjak@gmail.com>
10637
10638         * config/i386/i386.md (isa): Add sse2, sse2_noavx, sse3,
10639         sse4 and sse4_noavx.
10640         (enabled): Handle sse2, sse2_noavx, sse3, sse4 and sse4_noavx.
10641         (*pushdf_rex64): Change Y2 register constraint to x.
10642         (*movdf_internal_rex64): Ditto.
10643         (*zero_extendsidi2_rex64): Ditto.
10644         (*movdi_internal): Change Y2 register constraint to x
10645         and update "isa" attribute.
10646         (*pushdf): Ditto.
10647         (*movdf internal): Ditto.
10648         (zero_extendsidi2_1): Ditto.
10649         (*truncdfdf_mixed): Ditto.
10650         (*truncxfdf2_mixed): Ditto.
10651         * config/i386/mmx.md (*mov<mode>_internal_rex64): Change Y2
10652         register constraint to x.
10653         (*movv2sf_internal_rex64): Ditto.
10654         (*mov<mode>_internal): Change Y2 register constraint to x
10655         and add "isa" attribute.
10656         (*movv2sf_internal): Ditto.
10657         (*vec_extractv2si_1): Ditto.
10658         * config/i386/sse.md ("vec_set<mode>_0): Change Y2 and Y4 register
10659         constraints to x and update "isa" attribute.
10660         (*vec_interleave_highv2df): Change Y3 registerconstraint
10661         to x and update "isa" attribute.
10662         (*vec_interleave_lowv2df): Ditto.
10663         (*vec_concatv2df): Change Y2 register constraint to x and
10664         update "isa" attribute.
10665         (sse2_loadld): Ditto.
10666         (*vec_extractv2di_1): Ditto.
10667         (*vec_dupv4si): Ditto.
10668         (*vec_dupv2di): Ditto.
10669         (*vec_concatv4si): Ditto.
10670         (vec_concatv2di): Ditto.
10671         * config/i386/constraints.md (Y2): Remove.
10672         (Y3): Ditto.
10673         (Y4): Ditto.
10674
10675 2011-08-25  Bernd Schmidt  <bernds@codesourcery.com>
10676
10677         * regrename.c (scan_rtx_reg, scan_rtx_address, build_def_use,
10678         dump_def_use_chain): Don't declare.
10679         (mark_conflict, create_new_chain): Move before users.
10680         (regrename_optimize): Move to near end of file.
10681
10682 2011-08-25  Georg-Johann Lay  <avr@gjlay.de>
10683
10684         * config/avr-protos.h (byte_immediate_operand): Remove Prototype.
10685         (secondary_input_reload_class): Remove Prototype.
10686         * config/avr/avr.c (byte_immediate_operand): Remove Function.
10687         * config/avr/avr.md (setmemhi): Use u8_operand.
10688         (strlenhi): Use const0_rtx for comparison.
10689         * config/avr/avr.h (avr_reg_order): Remove Declaration.
10690
10691 2011-08-25  Georg-Johann Lay  <avr@gjlay.de>
10692
10693         * config/avr/avr.c (reg_class_tab): Make local to
10694         avr_regno_reg_class.  Return smallest register class available.
10695
10696 2011-08-25  Georg-Johann Lay  <avr@gjlay.de>
10697
10698         * config/avr/avr.c (STR_PREFIX_P): New Define.
10699         (avr_asm_declare_function_name): Use it.
10700         (avr_asm_named_section): Use it.
10701         (avr_section_type_flags): Use it.
10702
10703 2011-08-25  Bernd Schmidt  <bernds@codesourcery.com>
10704
10705         * doc/md.texi (automata_option): Document collapse-ndfa.
10706         * genautomata.c (COLLAPSE_OPTION): New macro.
10707         (collapse_flag): New static variable.
10708         (struct description): New member normal_decls_num.
10709         (struct automaton): New members advance_ainsn and collapse_ainsn.
10710         (gen_automata_option): Check for COLLAPSE_OPTION.
10711         (collapse_ndfa_insn_decl): New static variable.
10712         (add_collapse_ndfa_insn_decl, special_decl_p): New functions.
10713         (find_arc): If insn is the collapse-ndfa insn, accept any arc we find.
10714         (transform_insn_regexps): Call add_collapse_ndfa_insn_decl if
10715         necessary.  Use normal_decls_num rather than decls_num, remove
10716         test for special decls.
10717         (create_alt_states, form_ainsn_with_same_reservs): Use special_decl_p.
10718         (make_automaton); Likewise.  Use the new advance_cycle_insn member
10719         of struct automaton.
10720         (create_composed_state): Disallow advance-cycle arcs if collapse_flag
10721         is set.
10722         (NDFA_to_DFA): Don't create composed states for the collapse-ndfa
10723         transition.  Create the necessary transitions for it.
10724         (create_ainsns): Return void.  Take an automaton_t argument, and
10725         update its ainsn_list, advance_ainsn and collapse_ainsn members.  All
10726         callers changed.
10727         (COLLAPSE_NDFA_VALUE_NAME): New macro.
10728         (output_tables): Output code to define it.
10729         (output_internal_insn_code_evaluation): Output code to accept
10730         const0_rtx as collapse-ndfa transition.
10731         (output_default_latencies, output_print_reservation_func,
10732         output_print_description): Reorganize loops to use normal_decls_num
10733         as loop bound; remove special case for advance_cycle_insn_decl.
10734         (initiate_automaton_gen): Handle COLLAPSE_OPTION.
10735         (check_automata_insn_issues): Check for collapse_ainsn.
10736         (expand_automate): Allocate sufficient space.  Initialize
10737         normal_decls_num.
10738
10739 2011-08-25  Georg-Johann Lay  <avr@gjlay.de>
10740
10741         * config/avr/avr.md: Fix indentation from r177991.
10742
10743 2011-08-25  Bernd Schmidt  <bernds@codesourcery.com>
10744
10745         * regrename.c (struct du_head): Remove member terminated.
10746         (create_new_chain): Don't initialize it.
10747         (scan_rtx_reg): Don't set or test it, test the open_chains_set
10748         bitmap instead.
10749         (tick, this_tick): New global variables, moved out of
10750         regrename_optimize.
10751         (current_id, open_chains, closed_chains, open_chains_set,
10752         live_in_chains, live_hard_regs): Reorder declarations.
10753         (dump_def_use_chain): Move function earlier in the file.
10754         (rename_chains): New static function, broken out of
10755         regrename_optimize.
10756         (regrename_optimize): Use it.  Remove #if 0'ed code.
10757
10758 2011-08-25  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
10759
10760         * varasm.c: (default_binds_local_p_1): Commentary typo fix.
10761
10762 2011-08-24  H.J. Lu  <hongjiu.lu@intel.com>
10763
10764         PR target/50172
10765         * config/i386/i386.c (ix86_expand_builtin): Convert to Pmode if needed.
10766
10767 2011-08-24  Richard Guenther  <rguenther@suse.de>
10768
10769         * tree-data-ref.c (dr_analyze_indices): Avoid unsharing the
10770         ref in the basic-block case.  Move stripping array-refs
10771         to the place we create an access-function for it.  Remove
10772         bogus stripping down a MEM_REF to its base.
10773
10774 2011-08-24  Richard Guenther  <rguenther@suse.de>
10775
10776         * fold-const.c (fold_comparison): Fold &a < &a + 4 even
10777         with -fno-strict-overflow.
10778
10779 2011-08-24  Richard Guenther  <rguenther@suse.de>
10780
10781         * tree-vectorizer.c (vect_print_dump_info): Avoid the
10782         file and location clutter when dumping to dump files.
10783
10784 2011-08-24  Simon Baldwin  <simonb@google.com>
10785
10786         * gengtype-state.c (write_state): Remove timestamped header line.
10787
10788 2011-08-24  Joseph Myers  <joseph@codesourcery.com>
10789
10790         * Makefile.in (CFLAGS-collect2.o, CFLAGS-c-family/c-opts.o)
10791         (CFLAGS-c-family/c-pch.o, CFLAGS-prefix.o, CFLAGS-version.o)
10792         (CFLAGS-lto-compress.o, CFLAGS-toplev.o, CFLAGS-intl.o)
10793         (CFLAGS-cppbuiltin.o, CFLAGS-cppdefault.o): New.
10794         (collect2.o, c-family/c-cppbuiltin.o, c-family/c-opts.o)
10795         (c-family/c-pch.o, prefix.o, version.o, lto-compress.o, toplev.o)
10796         (intl.o, cppbuiltin.o, cppdefault.o): Remove explicit compilation
10797         rules.
10798         (lto-wrapper$(exeext)): Use $(LINKER) not $(COMPILER).
10799
10800 2011-08-24  Joseph Myers  <joseph@codesourcery.com>
10801
10802         * Makefile.in (ALL_CXXFLAGS): Include $(CFLAGS-$@).
10803
10804 2011-08-24  Richard Guenther  <rguenther@suse.de>
10805
10806         PR tree-optimization/50067
10807         * tree-data-ref.c (dr_analyze_indices): Do not add an access
10808         function for a MEM_REF base that has no evolution in the loop
10809         nest or that is not analyzable.
10810
10811 2011-08-23  Vladimir Makarov  <vmakarov@redhat.com>
10812
10813         * ira.c (ira_init_register_move_cost): Check small subclasses
10814         through ira_reg_class_max_nregs and ira_available_class_regs.
10815
10816 2011-08-23  Uros Bizjak  <ubizjak@gmail.com>
10817
10818         * config/i386/constraints.md (Yp): New register constraint.
10819         * config/i386/i386.md (*addhi_1): Merge with *addhi_1_lea using
10820         Yp register constraint.
10821         (*addqi_1): Merge with *addqi_1_lea using Yp register constraint.
10822         (*ashlhi3_1): Merge with *ashlhi3_1_lea using Yp register constraint.
10823         (*ashlqi3_1): Merge with *ashlqi3_1_lea using Yp register constraint.
10824
10825 2011-08-23  Kirill Yukhin  <kirill.yukhin@intel.com>
10826
10827         * config/i386/sse.md (<s>mul<mode>3_highpart): Update.
10828
10829 2011-08-23  Mark Heffernan  <meheff@google.com>
10830
10831         PR middle-end/38509
10832         * common.opt (Wfree-nonheap-object): New option.
10833         * doc/invoke.texi (Warning options): Document -Wfree-nonheap-object.
10834         * builtins.c (maybe_emit_free_warning): Add OPT_Wfree_nonheap_object
10835         to warning.
10836         (expand_builtin): Make warning conditional.
10837
10838 2011-08-23  Uros Bizjak  <ubizjak@gmail.com>
10839
10840         * config/i386/i386.md (type): Add imulx, ishiftx and rotatex.
10841         (length_immediate): Handle imulx, ishiftx and rotatex.
10842         (imm_disp): Ditto.
10843         (isa): Add bmi2.
10844         (enabled): Handle bmi2.
10845         (*mul<mode><dwi>3): Split from *<u>mul<mode><dwi>3.
10846         (*umul<mode><dwi>3): Ditto.  Add imulx BMI2 alternative.
10847         (*bmi2_umulditi3_1): New insn pattern.
10848         (*bmi2_umulsidi3_1): Ditto.
10849         (*umul<mode><dwi>3 splitter): New splitter to avoid flags dependency.
10850         (*bmi2_ashl<mode>3_1): New insn pattern.
10851         (*ashl<mode>3_1): Add ishiftx BMI2 alternative.
10852         (*ashl<mode>3_1 splitter): New splitter to avoid flags dependency.
10853         (*bmi2_ashlsi3_1_zext): New insn pattern.
10854         (*ashlsi3_1_zext): Add ishiftx BMI2 alternative.
10855         (*ashlsi3_1_zext splitter): New splitter to avoid flags dependency.
10856         (*bmi2_<shiftrt_insn><mode>3_1): New insn pattern.
10857         (*<shiftrt_insn><mode>3_1): Add ishiftx BMI2 alternative.
10858         (*<shiftrt_insn><mode>3_1 splitter): New splitter to avoid
10859         flags dependency.
10860         (*bmi2_<shiftrt_insn>si3_1_zext): New insn pattern.
10861         (*<shiftrt_insn>si3_1_zext): Add ishiftx BMI2 alternative.
10862         (*<shiftrt_insn>si3_1_zext splitter): New splitter to avoid
10863         flags dependency.
10864         (*bmi2_rorx<mode>3_1): New insn pattern.
10865         (*<rotate_insn><mode>3_1): Add rotatex BMI2 alternative.
10866         (*rotate<mode>3_1 splitter): New splitter to avoid flags dependency.
10867         (*rotatert<mode>3_1 splitter): Ditto.
10868         (*bmi2_rorxsi3_1_zext): New insn pattern.
10869         (*<rotate_insn>si3_1_zext): Add rotatex BMI2 alternative.
10870         (*rotatesi3_1_zext splitter): New splitter to avoid flags dependency.
10871         (*rotatertsi3_1_zext splitter): Ditto.
10872
10873 2011-08-23  Kirill Yukhin  <kirill.yukhin@intel.com>
10874
10875         * common/config/i386/i386-common.c (OPTION_MASK_ISA_BMI2_SET): New.
10876         (OPTION_MASK_ISA_BMI2_UNSET): Likewise.
10877         (ix86_handle_option): Handle OPT_mbmi2 case.
10878         * config.gcc (i[34567]86-*-*): Add bmi2intrin.h.
10879         (x86_64-*-*): Likewise.
10880         * config/i386/bmi2intrin.h: New file.
10881         * config/i386/cpuid.h (bit_BMI2): New.
10882         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
10883         BMI2 feature.
10884         * config/i386/i386-c.c (ix86_target_macros_internal):
10885         Conditionally define __BMI2__.
10886         * config/i386/i386.c (ix86_option_override_internal): Define PTA_BMI2.
10887         Handle BMI2 option.
10888         (ix86_valid_target_attribute_inner_p): Handle BMI2 option.
10889         (print_reg): New code.
10890         (ix86_print_operand): Likewise.
10891         (ix86_builtins): Add IX86_BUILTIN_BZHI32, IX86_BUILTIN_BZHI64,
10892         IX86_BUILTIN_PDEP32, IX86_BUILTIN_PDEP64, IX86_BUILTIN_PEXT32,
10893         IX86_BUILTIN_PEXT64.
10894         (bdesc_args): Add IX86_BUILTIN_BZHI32, IX86_BUILTIN_BZHI64,
10895         IX86_BUILTIN_PDEP32, IX86_BUILTIN_PDEP64, IX86_BUILTIN_PEXT32,
10896         IX86_BUILTIN_PEXT64.
10897         * config/i386/i386.h (TARGET_BMI2): New.
10898         * config/i386/i386.md (UNSPEC_PDEP): New.
10899         (UNSPEC_PEXT): Likewise.
10900         (*bmi2_bzhi_<mode>3): Likewise.
10901         (*bmi2_pdep_<mode>3): Likewise.
10902         (*bmi2_pext_<mode>3): Likewise.
10903         * config/i386/i386.opt (mbmi2): New.
10904         * config/i386/x86intrin.h: Include bmi2intrin.h when __BMI2__
10905         is defined.
10906         * doc/extend.texi: Document BMI2 built-in functions.
10907         * doc/invoke.texi: Document -mbmi2.
10908
10909 2011-08-23  Jakub Jelinek  <jakub@redhat.com>
10910
10911         PR middle-end/50161
10912         * simplify-rtx.c (simplify_const_unary_operation): If
10913         op is CONST_INT, don't look at op_mode, but use instead mode.
10914         * optabs.c (add_equal_note): For FFS, CLZ, CTZ,
10915         CLRSB, POPCOUNT, PARITY and BSWAP use operand mode for
10916         operation and TRUNCATE/ZERO_EXTEND if needed.
10917         * doc/rtl.texi (ffs, clrsb, clz, ctz, popcount, parity, bswap):
10918         Document that operand mode must be same as operation mode,
10919         or VOIDmode.
10920         * config/avr/avr.md (paritysi2, *parityqihi2.libgcc,
10921         *paritysihi2.libgcc, popcountsi2, *popcountsi2.libgcc,
10922         *popcountqihi2.libgcc, clzsi2, *clzsihi2.libgcc, ctzsi2,
10923         *ctzsihi2.libgcc, ffssi2, *ffssihi2.libgcc): For unary ops
10924         use the mode of operand for the operation and add truncate
10925         or zero_extend around if needed.
10926         * config/c6x/c6x.md (ctzdi2): Likewise.
10927         * config/bfin/bfin.md (clrsbsi2, signbitssi2): Likewise.
10928
10929 2011-08-12  Michael Matz  <matz@suse.de>
10930
10931         * cfgexpand.c (expand_one_register_var): Use get_pointer_alignment.
10932         (gimple_expand_cfg): Merge alignment info for coalesced pointer
10933         SSA names.
10934
10935 2011-08-23  Richard Guenther  <rguenther@suse.de>
10936
10937         * Makefile.in (tree-data-ref.o): Add tree-affine.h dependency.
10938         * tree-affine.h (aff_comb_cannot_overlap_p): Declare.
10939         * tree-affine.c (aff_comb_cannot_overlap_p): New function, moved
10940         from ...
10941         * tree-ssa-loop-im.c (cannot_overlap_p): ... here.
10942         (mem_refs_may_alias_p): Adjust.
10943         * tree-data-ref.h (dr_may_alias_p): Adjust.
10944         * tree-data-ref.c: Include tree-affine.h.
10945         (dr_analyze_indices): Do nothing for the non-loop case.
10946         (dr_may_alias_p): Distinguish loop and non-loop case.  Disambiguate
10947         more cases in the non-loop case.
10948         * graphite-sese-to-poly.c (write_alias_graph_to_ascii_dimacs): Adjust
10949         calls to dr_may_alias_p.
10950         (write_alias_graph_to_ascii_ecc): Likewise.
10951         (write_alias_graph_to_ascii_dot): Likewise.
10952         (build_alias_set_optimal_p): Likewise.
10953
10954 2011-08-23  Richard Guenther  <rguenther@suse.de>
10955
10956         PR tree-optimization/50162
10957         * tree-vect-stmts.c (vectorizable_call): Fix argument lookup.
10958
10959 2011-08-23  Richard Guenther  <rguenther@suse.de>
10960
10961         * tree-data-ref.c (dr_analyze_indices): Add comments, handle
10962         REALPART_EXPR and IMAGPART_EXPR similar to ARRAY_REFs.
10963         (create_data_ref): Also dump access functions for the created data-ref.
10964
10965 2011-08-22  Uros Bizjak  <ubizjak@gmail.com>
10966             Kirill Yukhin  <kirill.yukhin@intel.com>
10967
10968         PR target/50155
10969         * config/i386/sse.md (VI_AVX2): New.
10970         (<plusminus_insn><mode>3): Use VI_AVX2 mode iterator.
10971         (*<plusminus_insn><mode>3): Ditto.
10972         (<sse2_avx2>_andnot<mode>3): Ditto.
10973         (*andnot<mode>3): Fix order of cond operands.
10974         Add asserts for correct TARGET_xxx.
10975         (*<any_logic:code><mode>3): Ditto.
10976
10977 2011-08-22  Anatoly Sokolov  <aesok@post.ru>
10978
10979         * config/m32c/m32c.h (CLASS_MAX_NREGS): Remove macro.
10980         * config/m32c/m32c-protos.h (m32c_class_max_nregs): Remove.
10981         * config/m32c/m32c.c (m32c_class_max_nregs): Make static. Change
10982         regclass argument type to reg_class_t. Change 'max' and 'v' vars
10983         and return types to unsigned char. Use reg_class_contents instead
10984         of class_contents.
10985         (TARGET_CLASS_MAX_NREGS): Define.
10986
10987 2011-08-22  Bernd Schmidt  <bernds@codesourcery.com>
10988
10989         * config/c6x/c6x.md (indirect_jump_shadow): Tweak representation
10990         to make computed_jump_p return true.
10991
10992 2011-08-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10993
10994         * configure.ac (GCC_PICFLAG_FOR_TARGET): Call it.
10995         (PICFLAG_FOR_TARGET): Substitute.
10996         * aclocal.m4: Regenerate.
10997         * configure: Regenerate.
10998
10999 2011-08-22  Dodji Seketeli  <dodji@redhat.com>
11000
11001         * c-family/c-pch.c (c_common_read_pch): Re-set line table right
11002         after reading in the pch.
11003
11004 2011-08-22  H.J. Lu  <hongjiu.lu@intel.com>
11005
11006         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Error if __ELF__ isn't defined.
11007         * configure: Regenerated.
11008
11009 2011-08-22  Jakub Jelinek  <jakub@redhat.com>
11010
11011         PR tree-optimization/50133
11012         * tree-vect-stmts.c (vect_finish_stmt_generation): Copy location
11013         from stmt instead of some statement around gsi.
11014
11015         PR middle-end/50141
11016         * expr.c (get_bit_range): Only use DECL_THREAD_LOCAL_P if
11017         innerdecl is a VAR_DECL.
11018
11019 2011-08-22  Kirill Yukhin  <kirill.yukhin@intel.com>
11020
11021         * config/i386/avx2intrin.h: New file.
11022         * config/i386/i386-builtin-types.def (PCINT, PCINT64, PV4SI,
11023         PV8SI, V32QI_FTYPE_V32QI, V32QI_FTYPE_V16QI, V16HI_FTYPE_V16HI,
11024         V16HI_FTYPE_V8HI, V8SI_FTYPE_V8SI, V16HI_FTYPE_V16QI,
11025         V8SI_FTYPE_V16QI, V4DI_FTYPE_V16QI, V8SI_FTYPE_V8HI,
11026         V4DI_FTYPE_V8HI, V4DI_FTYPE_V4SI, V4DI_FTYPE_PV4DI,
11027         V4DI_FTYPE_V2DI, V2DI_FTYPE_PCV2DI_V2DI, V4SI_FTYPE_PCV4SI_V4SI,
11028         V32QI_FTYPE_V16HI_V16HI, V16HI_FTYPE_V8SI_V8SI,
11029         V32QI_FTYPE_V32QI_V32QI, V16HI_FTYPE_V32QI_V32QI,
11030         V16HI_FTYPE_V16HI_V8HI, V16HI_FTYPE_V16HI_V16HI,
11031         V16HI_FTYPE_V16HI_INT, V16HI_FTYPE_V16HI_SI,
11032         V16HI_FTYPE_V16HI_V16HI_INT, V32QI_FTYPE_V32QI_V32QI_INT,
11033         V8SI_FTYPE_V8SI_V4SI, V8SI_FTYPE_V8SI_V8SI,
11034         V8SI_FTYPE_V16HI_V16HI, V8SI_FTYPE_V8SI_INT, V8SI_FTYPE_V8SI_SI,
11035         V8SI_FTYPE_PCV8SI_V8SI, V4DI_FTYPE_V4DI_V4DI,
11036         V4DI_FTYPE_V8SI_V8SI, V4DI_FTYPE_V4DI_V2DI,
11037         V4DI_FTYPE_PCV4DI_V4DI, V4DI_FTYPE_V4DI_INT,
11038         V2DI_FTYPE_V4DI_INT, V4DI_FTYPE_V4DI_V4DI_INT,
11039         V4DI_FTYPE_V4DI_V2DI_INT, VOID_FTYPE_PV2DI_V2DI_V2DI,
11040         VOID_FTYPE_PV4DI_V4DI_V4DI, VOID_FTYPE_PV4SI_V4SI_V4SI,
11041         VOID_FTYPE_PV8SI_V8SI_V8SI,
11042         V2DF_FTYPE_V2DF_PCDOUBLE_V4SI_V2DF_INT,
11043         V4DF_FTYPE_V4DF_PCDOUBLE_V4SI_V4DF_INT,
11044         V2DF_FTYPE_V2DF_PCDOUBLE_V2DI_V2DF_INT,
11045         V4DF_FTYPE_V4DF_PCDOUBLE_V4DI_V4DF_INT,
11046         V4SF_FTYPE_V4SF_PCFLOAT_V4SI_V4SF_INT,
11047         V8SF_FTYPE_V8SF_PCFLOAT_V8SI_V8SF_INT,
11048         V4SF_FTYPE_V4SF_PCFLOAT_V2DI_V4SF_INT,
11049         V4SF_FTYPE_V4SF_PCFLOAT_V4DI_V4SF_INT,
11050         V2DI_FTYPE_V2DI_PCINT64_V4SI_V2DI_INT,
11051         V4DI_FTYPE_V4DI_PCINT64_V4SI_V4DI_INT,
11052         V2DI_FTYPE_V2DI_PCINT64_V2DI_V2DI_INT,
11053         V4DI_FTYPE_V4DI_PCINT64_V4DI_V4DI_INT,
11054         V4SI_FTYPE_V4SI_PCINT_V4SI_V4SI_INT,
11055         V8SI_FTYPE_V8SI_PCINT_V8SI_V8SI_INT,
11056         V4SI_FTYPE_V4SI_PCINT_V2DI_V4SI_INT,
11057         V4SI_FTYPE_V4SI_PCINT_V4DI_V4SI_INT,
11058         V16HI_FTYPE_V16HI_SI_COUNT, V16HI_FTYPE_V16HI_V8HI_COUNT,
11059         V8SI_FTYPE_V8SI_SI_COUNT, V8SI_FTYPE_V8SI_V4SI_COUNT,
11060         V4DI_FTYPE_V4DI_INT_COUNT, V4DI_FTYPE_V4DI_V2DI_COUNT,
11061         V4DI_FTYPE_V4DI_INT_CONVERT,
11062         V4DI_FTYPE_V4DI_V4DI_INT_CONVERT): New.
11063         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MPSADBW256,
11064         IX86_BUILTIN_PABSB256, IX86_BUILTIN_PABSW256,
11065         IX86_BUILTIN_PABSD256, IX86_BUILTIN_PACKSSDW256,
11066         IX86_BUILTIN_PACKSSWB256, IX86_BUILTIN_PACKUSDW256,
11067         IX86_BUILTIN_PACKUSWB256, IX86_BUILTIN_PADDB256,
11068         IX86_BUILTIN_PADDW256, IX86_BUILTIN_PADDD256,
11069         IX86_BUILTIN_PADDQ256, IX86_BUILTIN_PADDSB256,
11070         IX86_BUILTIN_PADDSW256, IX86_BUILTIN_PADDUSB256,
11071         IX86_BUILTIN_PADDUSW256, IX86_BUILTIN_PALIGNR256,
11072         IX86_BUILTIN_AND256I, IX86_BUILTIN_ANDNOT256I,
11073         IX86_BUILTIN_PAVGB256, IX86_BUILTIN_PAVGW256,
11074         IX86_BUILTIN_PBLENDVB256, IX86_BUILTIN_PBLENDVW256,
11075         IX86_BUILTIN_PCMPEQB256, IX86_BUILTIN_PCMPEQW256,
11076         IX86_BUILTIN_PCMPEQD256, IX86_BUILTIN_PCMPEQQ256,
11077         IX86_BUILTIN_PCMPGTB256, IX86_BUILTIN_PCMPGTW256,
11078         IX86_BUILTIN_PCMPGTD256, IX86_BUILTIN_PCMPGTQ256,
11079         IX86_BUILTIN_PHADDW256, IX86_BUILTIN_PHADDD256,
11080         IX86_BUILTIN_PHADDSW256, IX86_BUILTIN_PHSUBW256,
11081         IX86_BUILTIN_PHSUBD256, IX86_BUILTIN_PHSUBSW256,
11082         IX86_BUILTIN_PMADDUBSW256, IX86_BUILTIN_PMADDWD256,
11083         IX86_BUILTIN_PMAXSB256, IX86_BUILTIN_PMAXSW256,
11084         IX86_BUILTIN_PMAXSD256, IX86_BUILTIN_PMAXUB256,
11085         IX86_BUILTIN_PMAXUW256, IX86_BUILTIN_PMAXUD256,
11086         IX86_BUILTIN_PMINSB256, IX86_BUILTIN_PMINSW256,
11087         IX86_BUILTIN_PMINSD256, IX86_BUILTIN_PMINUB256,
11088         IX86_BUILTIN_PMINUW256, IX86_BUILTIN_PMINUD256,
11089         IX86_BUILTIN_PMOVMSKB256, IX86_BUILTIN_PMOVSXBW256,
11090         IX86_BUILTIN_PMOVSXBD256, IX86_BUILTIN_PMOVSXBQ256,
11091         IX86_BUILTIN_PMOVSXWD256, IX86_BUILTIN_PMOVSXWQ256,
11092         IX86_BUILTIN_PMOVSXDQ256, IX86_BUILTIN_PMOVZXBW256,
11093         IX86_BUILTIN_PMOVZXBD256, IX86_BUILTIN_PMOVZXBQ256,
11094         IX86_BUILTIN_PMOVZXWD256, IX86_BUILTIN_PMOVZXWQ256,
11095         IX86_BUILTIN_PMOVZXDQ256, IX86_BUILTIN_PMULDQ256,
11096         IX86_BUILTIN_PMULHRSW256, IX86_BUILTIN_PMULHUW256,
11097         IX86_BUILTIN_PMULHW256, IX86_BUILTIN_PMULLW256,
11098         IX86_BUILTIN_PMULLD256, IX86_BUILTIN_PMULUDQ256,
11099         IX86_BUILTIN_POR256, IX86_BUILTIN_PSADBW256,
11100         IX86_BUILTIN_PSHUFB256, IX86_BUILTIN_PSHUFD256,
11101         IX86_BUILTIN_PSHUFHW256, IX86_BUILTIN_PSHUFLW256,
11102         IX86_BUILTIN_PSIGNB256, IX86_BUILTIN_PSIGNW256,
11103         IX86_BUILTIN_PSIGND256, IX86_BUILTIN_PSLLDQI256,
11104         IX86_BUILTIN_PSLLWI256, IX86_BUILTIN_PSLLW256,
11105         IX86_BUILTIN_PSLLDI256, IX86_BUILTIN_PSLLD256,
11106         IX86_BUILTIN_PSLLQI256, IX86_BUILTIN_PSLLQ256,
11107         IX86_BUILTIN_PSRAWI256, IX86_BUILTIN_PSRAW256,
11108         IX86_BUILTIN_PSRADI256, IX86_BUILTIN_PSRAD256,
11109         IX86_BUILTIN_PSRLDQI256, IX86_BUILTIN_PSRLWI256,
11110         IX86_BUILTIN_PSRLW256, IX86_BUILTIN_PSRLDI256,
11111         IX86_BUILTIN_PSRLD256, IX86_BUILTIN_PSRLQI256,
11112         IX86_BUILTIN_PSRLQ256, IX86_BUILTIN_PSUBB256,
11113         IX86_BUILTIN_PSUBW256, IX86_BUILTIN_PSUBD256,
11114         IX86_BUILTIN_PSUBQ256, IX86_BUILTIN_PSUBSB256,
11115         IX86_BUILTIN_PSUBSW256, IX86_BUILTIN_PSUBUSB256,
11116         IX86_BUILTIN_PSUBUSW256, IX86_BUILTIN_PUNPCKHBW256,
11117         IX86_BUILTIN_PUNPCKHWD256, IX86_BUILTIN_PUNPCKHDQ256,
11118         IX86_BUILTIN_PUNPCKHQDQ256, IX86_BUILTIN_PUNPCKLBW256,
11119         IX86_BUILTIN_PUNPCKLWD256, IX86_BUILTIN_PUNPCKLDQ256,
11120         IX86_BUILTIN_PUNPCKLQDQ256, IX86_BUILTIN_PXOR256,
11121         IX86_BUILTIN_MOVNTDQA256, IX86_BUILTIN_VBROADCASTSS_PS,
11122         IX86_BUILTIN_VBROADCASTSS_PS256,
11123         IX86_BUILTIN_VBROADCASTSD_PD256,
11124         IX86_BUILTIN_VBROADCASTSI256, IX86_BUILTIN_PBLENDD256,
11125         IX86_BUILTIN_PBLENDD128, IX86_BUILTIN_PBROADCASTB256,
11126         IX86_BUILTIN_PBROADCASTW256, IX86_BUILTIN_PBROADCASTD256,
11127         IX86_BUILTIN_PBROADCASTQ256, IX86_BUILTIN_PBROADCASTB128,
11128         IX86_BUILTIN_PBROADCASTW128, IX86_BUILTIN_PBROADCASTD128,
11129         IX86_BUILTIN_PBROADCASTQ128, IX86_BUILTIN_VPERMVARSI256,
11130         IX86_BUILTIN_VPERMDF256, IX86_BUILTIN_VPERMVARSF256,
11131         IX86_BUILTIN_VPERMDI256, IX86_BUILTIN_VPERMTI256,
11132         IX86_BUILTIN_VEXTRACT128I256, IX86_BUILTIN_VINSERT128I256,
11133         IX86_BUILTIN_MASKLOADD, IX86_BUILTIN_MASKLOADQ,
11134         IX86_BUILTIN_MASKLOADD256, IX86_BUILTIN_MASKLOADQ256,
11135         IX86_BUILTIN_MASKSTORED, IX86_BUILTIN_MASKSTOREQ,
11136         IX86_BUILTIN_MASKSTORED256, IX86_BUILTIN_MASKSTOREQ256,
11137         IX86_BUILTIN_PSLLVV4DI, IX86_BUILTIN_PSLLVV2DI,
11138         IX86_BUILTIN_PSLLVV8SI, IX86_BUILTIN_PSLLVV4SI,
11139         IX86_BUILTIN_PSRAVV8SI, IX86_BUILTIN_PSRAVV4SI,
11140         IX86_BUILTIN_PSRLVV4DI, IX86_BUILTIN_PSRLVV2DI,
11141         IX86_BUILTIN_PSRLVV8SI, IX86_BUILTIN_PSRLVV4SI,
11142         IX86_BUILTIN_GATHERSIV2DF, IX86_BUILTIN_GATHERSIV4DF,
11143         IX86_BUILTIN_GATHERDIV2DF, IX86_BUILTIN_GATHERDIV4DF,
11144         IX86_BUILTIN_GATHERSIV4SF, IX86_BUILTIN_GATHERSIV8SF,
11145         IX86_BUILTIN_GATHERDIV4SF, IX86_BUILTIN_GATHERDIV8SF,
11146         IX86_BUILTIN_GATHERSIV2DI, IX86_BUILTIN_GATHERSIV4DI,
11147         IX86_BUILTIN_GATHERDIV2DI, IX86_BUILTIN_GATHERDIV4DI,
11148         IX86_BUILTIN_GATHERSIV4SI, IX86_BUILTIN_GATHERSIV8SI,
11149         IX86_BUILTIN_GATHERDIV4SI, IX86_BUILTIN_GATHERDIV8SI.
11150         (bdesc_special_args): Add IX86_BUILTIN_MOVNTDQA256,
11151         IX86_BUILTIN_MASKLOADD, IX86_BUILTIN_MASKLOADQ,
11152         IX86_BUILTIN_MASKLOADD256, IX86_BUILTIN_MASKLOADQ256,
11153         IX86_BUILTIN_MASKSTORED, IX86_BUILTIN_MASKSTOREQ,
11154         IX86_BUILTIN_MASKSTORED256, IX86_BUILTIN_MASKSTOREQ256.
11155         (bdesc_args): Add  IX86_BUILTIN_MPSADBW256,
11156         IX86_BUILTIN_PABSB256, IX86_BUILTIN_PABSW256,
11157         IX86_BUILTIN_PABSD256, IX86_BUILTIN_PACKSSDW256,
11158         IX86_BUILTIN_PACKSSWB256, IX86_BUILTIN_PACKUSDW256,
11159         IX86_BUILTIN_PACKUSWB256, IX86_BUILTIN_PADDB256,
11160         IX86_BUILTIN_PADDW256, IX86_BUILTIN_PADDD256,
11161         IX86_BUILTIN_PADDQ256, IX86_BUILTIN_PADDSB256,
11162         IX86_BUILTIN_PADDSW256, IX86_BUILTIN_PADDUSB256,
11163         IX86_BUILTIN_PADDUSW256, IX86_BUILTIN_PALIGNR256,
11164         IX86_BUILTIN_AND256I, IX86_BUILTIN_ANDNOT256I,
11165         IX86_BUILTIN_PAVGB256, IX86_BUILTIN_PAVGW256,
11166         IX86_BUILTIN_PBLENDVB256, IX86_BUILTIN_PBLENDVW256,
11167         IX86_BUILTIN_PCMPEQB256, IX86_BUILTIN_PCMPEQW256,
11168         IX86_BUILTIN_PCMPEQD256, IX86_BUILTIN_PCMPEQQ256,
11169         IX86_BUILTIN_PCMPGTB256, IX86_BUILTIN_PCMPGTW256,
11170         IX86_BUILTIN_PCMPGTD256, IX86_BUILTIN_PCMPGTQ256,
11171         IX86_BUILTIN_PHADDW256, IX86_BUILTIN_PHADDD256,
11172         IX86_BUILTIN_PHADDSW256, IX86_BUILTIN_PHSUBW256,
11173         IX86_BUILTIN_PHSUBD256, IX86_BUILTIN_PHSUBSW256,
11174         IX86_BUILTIN_PMADDUBSW256, IX86_BUILTIN_PMADDWD256,
11175         IX86_BUILTIN_PMAXSB256, IX86_BUILTIN_PMAXSW256,
11176         IX86_BUILTIN_PMAXSD256, IX86_BUILTIN_PMAXUB256,
11177         IX86_BUILTIN_PMAXUW256, IX86_BUILTIN_PMAXUD256,
11178         IX86_BUILTIN_PMINSB256, IX86_BUILTIN_PMINSW256,
11179         IX86_BUILTIN_PMINSD256, IX86_BUILTIN_PMINUB256,
11180         IX86_BUILTIN_PMINUW256, IX86_BUILTIN_PMINUD256,
11181         IX86_BUILTIN_PMOVMSKB256, IX86_BUILTIN_PMOVSXBW256,
11182         IX86_BUILTIN_PMOVSXBD256, IX86_BUILTIN_PMOVSXBQ256,
11183         IX86_BUILTIN_PMOVSXWD256, IX86_BUILTIN_PMOVSXWQ256,
11184         IX86_BUILTIN_PMOVSXDQ256, IX86_BUILTIN_PMOVZXBW256,
11185         IX86_BUILTIN_PMOVZXBD256, IX86_BUILTIN_PMOVZXBQ256,
11186         IX86_BUILTIN_PMOVZXWD256, IX86_BUILTIN_PMOVZXWQ256,
11187         IX86_BUILTIN_PMOVZXDQ256, IX86_BUILTIN_PMULDQ256,
11188         IX86_BUILTIN_PMULHRSW256, IX86_BUILTIN_PMULHUW256,
11189         IX86_BUILTIN_PMULHW256, IX86_BUILTIN_PMULLW256,
11190         IX86_BUILTIN_PMULLD256, IX86_BUILTIN_PMULUDQ256,
11191         IX86_BUILTIN_POR256, IX86_BUILTIN_PSADBW256,
11192         IX86_BUILTIN_PSHUFB256, IX86_BUILTIN_PSHUFD256,
11193         IX86_BUILTIN_PSHUFHW256, IX86_BUILTIN_PSHUFLW256,
11194         IX86_BUILTIN_PSIGNB256, IX86_BUILTIN_PSIGNW256,
11195         IX86_BUILTIN_PSIGND256, IX86_BUILTIN_PSLLDQI256,
11196         IX86_BUILTIN_PSLLWI256, IX86_BUILTIN_PSLLW256,
11197         IX86_BUILTIN_PSLLDI256, IX86_BUILTIN_PSLLD256,
11198         IX86_BUILTIN_PSLLQI256, IX86_BUILTIN_PSLLQ256,
11199         IX86_BUILTIN_PSRAWI256, IX86_BUILTIN_PSRAW256,
11200         IX86_BUILTIN_PSRADI256, IX86_BUILTIN_PSRAD256,
11201         IX86_BUILTIN_PSRLDQI256, IX86_BUILTIN_PSRLWI256,
11202         IX86_BUILTIN_PSRLW256, IX86_BUILTIN_PSRLDI256,
11203         IX86_BUILTIN_PSRLD256, IX86_BUILTIN_PSRLQI256,
11204         IX86_BUILTIN_PSRLQ256, IX86_BUILTIN_PSUBB256,
11205         IX86_BUILTIN_PSUBW256, IX86_BUILTIN_PSUBD256,
11206         IX86_BUILTIN_PSUBQ256, IX86_BUILTIN_PSUBSB256,
11207         IX86_BUILTIN_PSUBSW256, IX86_BUILTIN_PSUBUSB256,
11208         IX86_BUILTIN_PSUBUSW256, IX86_BUILTIN_PUNPCKHBW256,
11209         IX86_BUILTIN_PUNPCKHWD256, IX86_BUILTIN_PUNPCKHDQ256,
11210         IX86_BUILTIN_PUNPCKHQDQ256, IX86_BUILTIN_PUNPCKLBW256,
11211         IX86_BUILTIN_PUNPCKLWD256, IX86_BUILTIN_PUNPCKLDQ256,
11212         IX86_BUILTIN_PUNPCKLQDQ256, IX86_BUILTIN_PXOR256,
11213         IX86_BUILTIN_VBROADCASTSS_PS, IX86_BUILTIN_VBROADCASTSS_PS256,
11214         IX86_BUILTIN_VBROADCASTSD_PD256,
11215         IX86_BUILTIN_VBROADCASTSI256, IX86_BUILTIN_PBLENDD256,
11216         IX86_BUILTIN_PBLENDD128, IX86_BUILTIN_PBROADCASTB256,
11217         IX86_BUILTIN_PBROADCASTW256, IX86_BUILTIN_PBROADCASTD256,
11218         IX86_BUILTIN_PBROADCASTQ256, IX86_BUILTIN_PBROADCASTB128,
11219         IX86_BUILTIN_PBROADCASTW128, IX86_BUILTIN_PBROADCASTD128,
11220         IX86_BUILTIN_PBROADCASTQ128, IX86_BUILTIN_VPERMVARSI256,
11221         IX86_BUILTIN_VPERMDF256, IX86_BUILTIN_VPERMVARSF256,
11222         IX86_BUILTIN_VPERMDI256, IX86_BUILTIN_VPERMTI256,
11223         IX86_BUILTIN_VEXTRACT128I256, IX86_BUILTIN_VINSERT128I256,
11224         IX86_BUILTIN_PSLLVV4DI, IX86_BUILTIN_PSLLVV2DI,
11225         IX86_BUILTIN_PSLLVV8SI, IX86_BUILTIN_PSLLVV4SI,
11226         IX86_BUILTIN_PSRAVV8SI, IX86_BUILTIN_PSRAVV4SI,
11227         IX86_BUILTIN_PSRLVV4DI, IX86_BUILTIN_PSRLVV2DI,
11228         IX86_BUILTIN_PSRLVV8SI, IX86_BUILTIN_PSRLVV4SI.
11229         (ix86_init_mmx_sse_builtins): Add IX86_BUILTIN_GATHERSIV2DF,
11230         IX86_BUILTIN_GATHERSIV4DF, IX86_BUILTIN_GATHERDIV2DF,
11231         IX86_BUILTIN_GATHERDIV4DF, IX86_BUILTIN_GATHERSIV4SF,
11232         IX86_BUILTIN_GATHERSIV8SF, IX86_BUILTIN_GATHERDIV4SF,
11233         IX86_BUILTIN_GATHERDIV8SF, IX86_BUILTIN_GATHERSIV2DI,
11234         IX86_BUILTIN_GATHERSIV4DI, IX86_BUILTIN_GATHERDIV2DI,
11235         IX86_BUILTIN_GATHERDIV4DI, IX86_BUILTIN_GATHERSIV4SI,
11236         IX86_BUILTIN_GATHERSIV8SI, IX86_BUILTIN_GATHERDIV4SI,
11237         IX86_BUILTIN_GATHERDIV8SI.
11238         (ix86_preferred_simd_mode): Support AVX2 modes.
11239         (ix86_expand_args_builtin): Support AVX2 builtins.
11240         (ix86_expand_special_args_builtin): Likewise.
11241         (ix86_expand_builtin): Likewise.
11242         * config/i386/i386.md (UNSPEC_VPERMSI): New.
11243         (UNSPEC_VPERMDF): Likewise.
11244         (UNSPEC_VPERMSF): Likewise.
11245         (UNSPEC_VPERMDI): Likewise.
11246         (UNSPEC_VPERMTI): Likewise.
11247         (UNSPEC_GATHER): Likewise.
11248         (ssemodesuffix): Extend.
11249         * config/i386/immintrin.h: Include avx2intrin.h when __AVX2__
11250         is defined.
11251         * config/i386/predicates.md (const1248_operand): New.
11252         * config/i386/sse.md (VI1_AVX2): New mode iterator.
11253         (VI2_AVX2): Likewise.
11254         (VI4_AVX2): Likewise.
11255         (VI8_AVX2): Likewise.
11256         (VIMAX_AVX2): Likewise.
11257         (SSESCALARMODE): Likewise.
11258         (VI12_AVX2): Likewise.
11259         (VI24_AVX2): Likewise.
11260         (VI124_AVX2): Likewise.
11261         (VI248_AVX2): Likewise.
11262         (VI48_AVX2): Likewise.
11263         (VI4SD_AVX2): Likewise.
11264         (V48_AVX2): Likewise.
11265         (AVX256MODE2P): Likewise.
11266         (AVXMODE48P_DI): Likewise.
11267         (sse2_avx2): New mode attribute.
11268         (ssse3_avx2): Likewise.
11269         (sse4_1_avx2): Likewise.
11270         (avx_avx2): Likewise.
11271         (ssebytemode): Likewise.
11272         (AVXTOSSEMODE): Likewise.
11273         (AVXMODE48P_DI): Likewise.
11274         (gthrfirstp): Likewise.
11275         (gthrlastp): Likewise.
11276         (lshift): New code_iterator
11277         (lshift): New code attribute.
11278         (lshift): Likewise.
11279         (ssescalarmodesuffix): Update.
11280         (sseunpackmode): Likewise.
11281         (ssepackmode): Likewise.
11282         (avx2_vec_dupv4sf): New insn pattern.
11283         (avx2_vec_dupv8sf): Likewise.
11284         (avx2_interleave_highv4di): Likewise.
11285         (avx2_interleave_lowv4di): Likewise.
11286         (avx2_umulv4siv4di3): Likewise
11287         (*avx2_umulv4siv4di3): Likewise
11288         (avx2_pmaddwd): Likewise.
11289         (*avx2_pmaddwd): Likewise.
11290         (avx2_lshrqv4di3): Likewise.
11291         (avx2_lshlqv4di3): Likewise.
11292         (avx2_lshl<mode>3): Likewise.
11293         (avx2_<umaxmin:code><mode>3): Likewise.
11294         (*avx2_<umaxmin:code><mode>3): Likewise.
11295         (avx2_<smaxmin:code><mode>3): Likewise.
11296         (*avx2_<smaxmin:code><mode>3): Likewise.
11297         (avx2_eq<mode>3): Likewise.
11298         (*avx2_eq<mode>3): Likewise.
11299         (avx2_gt<mode>3): Likewise.
11300         (avx2_interleave_highv32qi): New.
11301         (avx2_interleave_lowv32qi): Likewise.
11302         (avx2_interleave_highv16hi): Likewise.
11303         (avx2_interleave_lowv16hi): Likewise.
11304         (avx2_interleave_highv8si): Likewise.
11305         (avx2_interleave_lowv8si): Likewise.
11306         (avx2_pshufd): Likewise.
11307         (avx2_pshufd_1): Likewise.
11308         (avx2_pshuflwv3): Likewise.
11309         (avx2_pshuflw_1): Likewise.
11310         (avx2_pshufhwv3): Likewise.
11311         (avx2_pshufhw_1): Likewise.
11312         (avx2_uavgv32qi3): Likewise.
11313         (*avx2_uavgv32qi3): Likewise.
11314         (avx2_uavgv16hi3): Likewise.
11315         (*avx2_uavgv16hi3): Likewise.
11316         (avx2_pmovmskb): Likewise.
11317         (avx2_phaddwv16hi3): Likewise.
11318         (avx2_phadddv8si3): Likewise.
11319         (avx2_phaddswv16hi3): Likewise.
11320         (avx2_phsubwv16hi3): Likewise.
11321         (avx2_phsubdv8si3): Likewise.
11322         (avx2_phsubswv16hi3): Likewise.
11323         (avx2_pmaddubsw256): Likewise.
11324         (avx2_umulhrswv16hi3): Likewise.
11325         (*avx2_umulhrswv16hi3): Likewise.
11326         (avx2_packusdw): Likewise.
11327         (avx2_pblendd<mode>): Likewise.
11328         (avx2_<code>v16qiv16hi2): Likewise.
11329         (avx2_<code>v8qiv8si2): Likewise.
11330         (avx2_<code>v8hiv8si2): Likewise.
11331         (avx2_<code>v4qiv4di2): Likewise.
11332         (avx2_<code>v4hiv4di2): Likewise.
11333         (avx2_<code>v4siv4di2): Likewise.
11334         (avx2_pbroadcast<mode>): Likewise.
11335         (avx2_permvarv8si): Likewise.
11336         (avx2_permv4df): Likewise.
11337         (avx2_permvarv8sf): Likewise.
11338         (avx2_permv4di): Likewise.
11339         (avx2_permv2ti): Likewise.
11340         (avx2_vec_dupv4df): Likewise.
11341         (avx2_vbroadcasti128_<mode>): Likewise.
11342         (avx2_vec_set_lo_v4di): Likewise.
11343         (avx2_vec_set_hi_v4di): Likewise.
11344         (*avx2_maskmov<avx2modesuffix><avxmodesuffix>): Likewise.
11345         (avx2_extracti128): Likewise.
11346         (avx2_inserti128): Likewise.
11347         (avx2_ashrvv8si): Likewise.
11348         (avx2_ashrvv4si): Likewise.
11349         (avx2_<lshift>vv8si): Likewise.
11350         (avx2_<lshift>v<mode>): Likewise.
11351         (avx2_<lshift>vv2di): Likewise.
11352         (avx2_gathersi<mode>): Likewise.
11353         (*avx2_gathersi<mode>): Likewise.
11354         (avx2_gatherdi<mode>): Likewise.
11355         (*avx2_gatherdi<mode>): Likewise.
11356         (avx2_gatherdi<mode>256): Likewise.
11357         (*avx2_gatherdi<mode>256): Likewise.
11358         (<plusminus_insn><mode>3): Use VI mode iterator.
11359         (*<plusminus_insn><mode>3): Use VI mode iterator.
11360         (<sse2_avx2>_<plusminus_insn><mode>3): Rename from
11361         sse2_<plusminus_insn><mode>3.  Use VI12_AVX2 mode iterator.
11362         (*<sse2_avx2>_<plusminus_insn><mode>3): Rename from
11363         *sse2_<plusminus_insn><mode>3.  Use VI12_AVX2 mode iterator.
11364         (mul<mode>3): Rename from mulv8hi3.  Use VI2_AVX2 mode iterator.
11365         (*mul<mode>3): Rename from *mulv8hi3.  Use VI2_AVX2 mode iterator.
11366         (<s>mul<mode>3_highpart): Rename from <s>mulv8hi3_highpart.
11367         Use VI2_AVX2 mode iterator.
11368         (*<s>mul<mode>3_highpart): Rename from *<s>mulv8hi3_highpart.
11369         Use VI2_AVX2 mode iterator.
11370         (mul<mode>3): Rename from mulv4si3.  Use VI4_AVX2 mode iterator.
11371         (*mul<mode>3): Rename from *mulv4si3.  Use VI4_AVX2 mode iterator.
11372         (*<sse4_1_avx2>_mulv2siv2di3): Rename from *sse4_1_mulv4si3.
11373         Use VI4_AVX2 mode iterator.
11374         (ashr<mode>3): Use VI24_AVX2 mode iterator.
11375         (lshr<mode>3): Use VI248_AVX2 mode iterator.
11376         (<sse2_avx2>_ashl<mode>3): Rename from sse2_ashlv1ti3.
11377         Use VIMAX_AVX2 mode iterator.
11378         (<sse2_avx2>_andnot<mode>3): Rename from sse2_andnot<mode>3.
11379         Use VI mode iterator.
11380         (*andnot<mode>3): Update for AVX2.
11381         (*<any_logic:code><mode>3): Likewise.
11382         (<sse2_avx2>_packsswb): Rename from sse2_packsswb.
11383         Use VI1_AVX mode iterator.
11384         (<sse2_avx2>_packssdw):  Rename from sse2_packssdw.
11385         Use VI2_AVX mode iterator.
11386         (<sse2_avx2>_packuswb): Rename from sse2_packsswb.
11387         Use VI1_AVX mode iterator.
11388         (<sse2_avx2>_psadbw): Rename from sse2_psadbw.
11389         Use VI8_AVX2 mode iterator.
11390         (<ssse3_avx2>_pshufb<mode>3): Rename from ssse3_pshufbv16qi3.
11391         Use VI1_AVX2 mode iterator.
11392         (<ssse3_avx2>_psign<mode>3): Rename from ssse3_psign<mode>3.
11393         Use VI124_AVX2 mode iterator.
11394         (<ssse3_avx2>_palignr<mode>): Rename from ssse3_palignrti.
11395         Use SSESCALARMODE mode iterator.
11396         (abs<mode>2): Use VI124_AVX2 mode iterator.
11397         (<sse4_1_avx2>_movntdqa): Rename from sse4_1_movntdqa.
11398         Use VI8_AVX2 mode iterator.
11399         (<sse4_1_avx2>_mpsadbw): Rename from sse4_1_mpsadbw.
11400         Use VI1_AVX2 mode iterator.
11401         (<sse4_1_avx2>_pblendvb): Rename from sse4_1_pblendvb.
11402         Use VI1_AVX2 mode iterator.
11403         (<sse4_1_avx2>_pblendw): Rename from sse4_1_pblendvb.
11404         Use VI2_AVX2 mode iterator.
11405         (<avx_avx2>_maskload<avx2modesuffix><avxmodesuffix>): Rename from
11406         avx_maskload<ssemodesuffix><avxsizesuffix>. Use V48_AVX2 mode iterator.
11407         (<avx_avx2>_maskstore<avx2modesuffix><avxmodesuffix>): Rename from
11408         avx_maskstore<ssemodesuffix><avxsizesuffix>.
11409         Use V48_AVX2 mode iterator.
11410         * doc/extend.texi: Document AVX2 built-in functions.
11411         * doc/invoke.texi: Document -mavx2.
11412
11413 2011-08-22  Matthias Klose <doko@debian.org>
11414
11415         Revert:
11416         2011-07-11  Arthur Loiret  <aloiret@debian.org>
11417                     Matthias Klose <doko@debian.org>
11418         * config/mips/t-linux64 (MULTILIB_DIRNAMES): Set to 'n32 . 64' if
11419         tm_defines contains MIPS_ABI_DEFAULT ABI_32, to follow the glibc
11420         convention.
11421         * config.gcc (tm_defines): Add MIPS_ABI_DEFAULT=ABI_32.
11422
11423 2011-08-22  Mikael Pettersson  <mikpe@it.uu.se>
11424
11425         PR bootstrap/50146
11426         * ira-color.c (assign_hard_reg): Move saved_nregs declaration
11427         to #ifndef HONOR_REG_ALLOC_ORDER block.
11428
11429 2011-08-21  Richard Henderson  <rth@redhat.com>
11430
11431         * rtl.h (INSN_ANNULLED_BRANCH_P): Only allow JUMP_INSN.
11432         * dwarf2cfi.c (scan_trace): Test JUMP_P before INSN_ANNULLED_BRANCH_P.
11433         * resource.c (next_insn_no_annul): Likewise.
11434         (mark_set_resources): Likewise.
11435         * reorg.c (delete_from_delay_slot): Likewise.
11436         (dbr_schedule, redundant_insn, try_merge_delay_insns): Likewise.
11437         (get_branch_condition): Test pc_rtx and LABEL_REF before dereferencing.
11438
11439 2011-08-21  Uros Bizjak  <ubizjak@gmail.com>
11440
11441         * config/i386/i386.md (any_div): Remove.
11442         (sgnprefix): Update for removal.
11443         (u): Ditto.
11444
11445 2011-08-20  Vladimir Makarov  <vmakarov@redhat.com>
11446
11447         * ira-lives.c (mark_pseudo_regno_subword_live): Use allocno class
11448         for ira_reg_class_max_nregs.  Increase pressure by 1.
11449         (mark_pseudo_regno_subword_dead): Use allocno class
11450         for ira_reg_class_max_nregs.
11451
11452 2011-08-20  Richard Henderson  <rth@redhat.com>
11453
11454         * config/c6x/eqd.c, config/c6x/eqf.c, config/c6x/ged.c,
11455         config/c6x/gef.c, config/c6x/gtd.c, config/c6x/gtf.c,
11456         config/c6x/led.c, config/c6x/lef.c, config/c6x/ltd.c,
11457         config/c6x/ltf.c: Adjust include path for soft-fp.
11458
11459 2011-08-20  H.J. Lu  <hongjiu.lu@intel.com>
11460
11461         PR other/46770
11462         * config.gcc (tm_file): Add initfini-array.h if
11463         .init_arrary/.fini_array are supported.
11464
11465         * crtstuff.c: Don't generate .ctors nor .dtors sections if
11466         USE_INITFINI_ARRAY is defined.
11467
11468         * output.h (default_elf_init_array_asm_out_constructor): New.
11469         (default_elf_fini_array_asm_out_destructor): Likewise.
11470         * varasm.c (elf_init_array_section): Likewise.
11471         (elf_fini_array_section): Likewise.
11472         (get_elf_initfini_array_priority_section): Likewise.
11473         (default_elf_init_array_asm_out_constructor): Likewise.
11474         (default_elf_fini_array_asm_out_destructor): Likewise.
11475
11476         * config/initfini-array.h: New.
11477
11478 2011-08-20  Richard Sandiford  <rdsandiford@googlemail.com>
11479
11480         * config/mips/mips.c (mips_class_max_nregs): Check that the mode is
11481         OK for ST_REGS and FP_REGS before taking those classes into account.
11482
11483 2011-08-20  Richard Sandiford  <rdsandiford@googlemail.com>
11484
11485         * config/mips/mips.c (mips_reorg_process_insns): Check for jumps
11486         before checking for annulled branches.
11487
11488 2011-08-20  Uros Bizjak  <ubizjak@gmail.com>
11489
11490         * config/i386/i386.c (ix86_binary_operator_ok): Use
11491         satisfies_constraint_L.
11492
11493 2011-08-20  Uros Bizjak  <ubizjak@gmail.com>
11494             Michael Matz  <matz@suse.de>
11495
11496         * config/i386/i386.c (ix86_expand_round_sse4): Expand as
11497         trunc (a + copysign (nextafter (0.5, 0.0), a)).
11498
11499 2011-08-20  Anatoly Sokolov  <aesok@post.ru>
11500
11501         * doc/tm.texi.in (PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
11502         * doc/tm.texi: Regenerate.
11503         * targhooks.c (default_preferred_output_reload_class): Don't use
11504         PREFERRED_OUTPUT_RELOAD_CLASS macro.
11505         * system.h (PREFERRED_OUTPUT_RELOAD_CLASS): Poison.
11506
11507 2011-08-20  Jakub Jelinek  <jakub@redhat.com>
11508
11509         PR tree-optimization/48739
11510         * tree-ssa.c: Include cfgloop.h.
11511         (execute_update_addresses_taken): When updating ssa, if in loop closed
11512         SSA form, call rewrite_into_loop_closed_ssa instead of update_ssa.
11513         * Makefile.in (tree-ssa.o): Depend on $(CFGLOOP_H).
11514
11515 2011-08-19  Vladimir Makarov  <vmakarov@redhat.com>
11516
11517         PR rtl-optimization/49936
11518         * ira.c (ira_init_register_move_cost): Ignore too small subclasses
11519         for calculation of max register move costs.
11520
11521 2011-08-19  Joseph Myers  <joseph@codesourcery.com>
11522
11523         * c-parser.c (c_parser_postfix_expression): Convert operands of
11524         __builtin_complex to their semantic types.
11525
11526 2011-08-19  H.J. Lu  <hongjiu.lu@intel.com>
11527
11528         PR middle-end/49721
11529         * explow.c (convert_memory_address_addr_space): Also permute the
11530         conversion and addition of constant for zero-extend.
11531
11532 2011-08-19  Joseph Myers  <joseph@codesourcery.com>
11533
11534         * c-parser.c (c_parser_postfix_expression): Handle RID_BUILTIN_COMPLEX.
11535         * doc/extend.texi (__builtin_complex): Document.
11536
11537 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
11538
11539         * tree-ssa-math-opts.c (is_widening_mult_rhs_p): Handle constants
11540         beyond conversions.
11541         (convert_mult_to_widen): Convert constant inputs to the right type.
11542         (convert_plusminus_to_widen): Don't automatically reject inputs that
11543         are not an SSA_NAME.
11544         Convert constant inputs to the right type.
11545
11546 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
11547
11548         * tree-ssa-math-opts.c (convert_plusminus_to_widen): Convert add_rhs
11549         to the correct type.
11550
11551 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
11552
11553         * tree-ssa-math-opts.c (convert_mult_to_widen): Better handle
11554         unsigned inputs of different modes.
11555         (convert_plusminus_to_widen): Likewise.
11556
11557 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
11558
11559         * tree-ssa-math-opts.c (is_widening_mult_rhs_p): Add new argument
11560         'type'.
11561         Use 'type' from caller, not inferred from 'rhs'.
11562         Don't reject non-conversion statements. Do return lhs in this case.
11563         (is_widening_mult_p): Add new argument 'type'.
11564         Use 'type' from caller, not inferred from 'stmt'.
11565         Pass type to is_widening_mult_rhs_p.
11566         (convert_mult_to_widen): Pass type to is_widening_mult_p.
11567         (convert_plusminus_to_widen): Likewise.
11568
11569 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
11570
11571         * tree-ssa-math-opts.c (is_widening_mult_p): Remove FIXME.
11572         Ensure the the larger type is the first operand.
11573
11574 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
11575
11576         * tree-ssa-math-opts.c (convert_mult_to_widen): Convert
11577         unsupported unsigned multiplies to signed.
11578         (convert_plusminus_to_widen): Likewise.
11579
11580 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
11581
11582         * tree-ssa-math-opts.c (convert_plusminus_to_widen): Permit a single
11583         conversion statement separating multiply-and-accumulate.
11584
11585 2011-08-19  Richard Guenther  <rguenther@suse.de>
11586
11587         PR tree-optimization/50067
11588         * tree-data-ref.c (dr_analyze_indices): Simplify, strip MEM_REF
11589         offset only if we accounted for it.
11590
11591 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
11592
11593         * config/arm/arm.md (maddhidi4): Remove '*' from name.
11594         * expr.c (expand_expr_real_2): Use find_widening_optab_handler.
11595         * optabs.c (find_widening_optab_handler_and_mode): New function.
11596         (expand_widen_pattern_expr): Use find_widening_optab_handler.
11597         (expand_binop_directly): Likewise.
11598         (expand_binop): Likewise.
11599         * optabs.h (find_widening_optab_handler): New macro define.
11600         (find_widening_optab_handler_and_mode): New prototype.
11601         * tree-cfg.c (verify_gimple_assign_binary): Adjust WIDEN_MULT_EXPR
11602         type precision rules.
11603         (verify_gimple_assign_ternary): Likewise for WIDEN_MULT_PLUS_EXPR.
11604         * tree-ssa-math-opts.c (build_and_insert_cast): New function.
11605         (is_widening_mult_rhs_p): Allow widening by more than one mode.
11606         Explicitly disallow mis-matched input types.
11607         (convert_mult_to_widen): Use find_widening_optab_handler, and cast
11608         input types to fit the new handler.
11609         (convert_plusminus_to_widen): Likewise.
11610
11611 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
11612
11613         * expr.c (expand_expr_real_2): Use widening_optab_handler.
11614         * genopinit.c (optabs): Use set_widening_optab_handler for $N.
11615         (gen_insn): $N now means $a must be wider than $b, not consecutive.
11616         * optabs.c (widened_mode): New function.
11617         (expand_widen_pattern_expr): Use widening_optab_handler.
11618         (expand_binop_directly): Likewise.
11619         (expand_binop): Likewise.
11620         * optabs.h (widening_optab_handlers): New struct.
11621         (optab_d): New member, 'widening'.
11622         (widening_optab_handler): New function.
11623         (set_widening_optab_handler): New function.
11624         * tree-ssa-math-opts.c (convert_mult_to_widen): Use
11625         widening_optab_handler.
11626         (convert_plusminus_to_widen): Likewise.
11627
11628 2011-08-19  Joseph Myers  <joseph@codesourcery.com>
11629
11630         * c-decl.c (grokdeclarator): Diagnose _Noreturn for non-C1X if
11631         pedantic.
11632         * c-parser.c (c_parser_declspecs): Include _Noreturn in syntax comment.
11633         * ginclude/stdnoreturn.h (noreturn): Don't define for C++.
11634
11635 2011-08-19  Joseph Myers  <joseph@codesourcery.com>
11636
11637         * opth-gen.awk: Do not declare target save/restore structures and
11638         functions if IN_RTS defined.
11639
11640 2011-08-19  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
11641
11642         PR target/49437
11643         * config/arm/arm.c (arm_output_epilogue): Properly handle epilogue
11644         when stack was realigned in interrupt handler prologue.
11645
11646 2011-08-18  Joseph Myers  <joseph@codesourcery.com>
11647
11648         * c-decl.c (shadow_tag_warned): Check for _Noreturn.
11649         (quals_from_declspecs): Assert _Noreturn not present.
11650         (grokdeclarator): Handle _Noreturn.
11651         (build_null_declspecs): Initialize noreturn_p.
11652         (declspecs_add_scspec): Handle RID_NORETURN.
11653         * c-parser.c (c_token_starts_declspecs, c_parser_declspecs)
11654         (c_parser_attributes): Handle RID_NORETURN.
11655         * c-tree.h (struct c_declspecs): Add noreturn_p.
11656         * ginclude/stdnoreturn.h: New.
11657         * Makefile.in (USER_H): Add stdnoreturn.h.
11658
11659 2011-08-18  Kirill Yukhin  <kirill.yukhin@intel.com>
11660
11661         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX2_SET): New.
11662         (OPTION_MASK_ISA_AVX_UNSET): Update.
11663         (OPTION_MASK_ISA_AVX2_UNSET): New.
11664         (ix86_handle_option): Handle OPT_mavx2 case.
11665         * config/i386/cpuid.h (bit_AVX2): New.
11666         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
11667         AVX2 feature.
11668         * config/i386/i386-c.c (ix86_target_macros_internal):
11669         Conditionally define __AVX2__.
11670         * config/i386/i386.c (ix86_option_override_internal): Define PTA_AVX2.
11671         Define "core-avx2" processor alias.  Handle avx2 option.
11672         (ix86_valid_target_attribute_inner_p): Handle avx2 option.
11673         * config/i386/i386.h (TARGET_AVX2): New.
11674         * config/i386/i386.opt (mavx2): New.
11675         * doc/invoke.texi: Document -mavx2.
11676
11677 2011-08-18  Vladimir Makarov  <vmakarov@redhat.com>
11678
11679         PR rtl-optimization/49890
11680         * ira-costs.c (setup_regno_cost_classes_by_aclass): Don't exclude
11681         subclasses of class which is superset of a pressure class.
11682
11683 2011-08-18  H.J. Lu  <hongjiu.lu@intel.com>
11684             Igor Zamyatin <igor.zamyatin@intel.com>
11685
11686         * config/i386/i386-c.c (ix86_target_macros_internal): Replace int
11687         with HOST_WIDE_INT for isa_flag.
11688         (ix86_pragma_target_parse): Replace int with HOST_WIDE_INT for
11689         isa variables.
11690
11691         * config/i386/i386.c (ix86_target_string): Replace int with
11692         HOST_WIDE_INT for isa.  Use HOST_WIDE_INT_PRINT to print isa.
11693         (ix86_target_opts): Replace int with HOST_WIDE_INT on mask.
11694         (pta_flags): Removed.
11695         (PTA_XXX): Redefined as (HOST_WIDE_INT_1 << X).
11696         (pta): Use HOST_WIDE_INT on flags.
11697         (builtin_isa): Use HOST_WIDE_INT on isa.
11698         (ix86_add_new_builtins): Likewise.
11699         (def_builtin): Use HOST_WIDE_INT on mask.
11700         (def_builtin_const): Likewise.
11701         (builtin_description): Likewise.
11702
11703         * config/i386/i386.opt (ix86_isa_flags): Replace int with
11704         HOST_WIDE_INT.
11705         (ix86_isa_flags_explicit): Likewise.
11706         (x_ix86_isa_flags_explicit): Likewise.
11707
11708 2011-08-17  Vladimir Makarov  <vmakarov@redhat.com>
11709
11710         PR rtl-optimization/50107
11711         * ira-int.h (ira_hard_reg_not_in_set_p): Remove.
11712         (ira_hard_reg_in_set_p): New.
11713
11714         * ira-color.c (calculate_saved_nregs): New.
11715         (assign_hard_reg): Use it.  Set up allocated_hard_reg_p for all
11716         hard regs.
11717         (allocno_reload_assign, fast_allocation): Use
11718         ira_hard_reg_set_intersection_p instead of
11719         ira_hard_reg_not_in_set_p.
11720
11721         * ira.c (setup_reg_renumber): Use
11722         ira_hard_reg_set_intersection_p instead of
11723         ira_hard_reg_not_in_set_p.
11724         (setup_allocno_assignment_flags, calculate_allocation_cost): Use
11725         ira_hard_reg_in_set_p instead of ira_hard_reg_not_in_set_p.
11726
11727         * ira-costs.c (ira_tune_allocno_costs): Use
11728         ira_hard_reg_set_intersection_p instead of
11729         ira_hard_reg_not_in_set_p.
11730
11731 2011-08-18  H.J. Lu  <hongjiu.lu@intel.com>
11732             Igor Zamyatin <igor.zamyatin@intel.com>
11733
11734         * hwint.h (HOST_WIDE_INT_1): New.
11735
11736         * opt-functions.awk (switch_bit_fields): Initialize the
11737         host_wide_int field.
11738         (host_wide_int_var_name): New.
11739         (var_type_struct): Check and return HOST_WIDE_INT.
11740
11741         * opt-read.awk: Handle HOST_WIDE_INT for "Variable".
11742
11743         * optc-save-gen.awk: Support HOST_WIDE_INT on var_target_other.
11744
11745         * opth-gen.awk: Use HOST_WIDE_INT_1 on HOST_WIDE_INT.  Properly
11746         check masks for HOST_WIDE_INT.
11747
11748         * opts-common.c (set_option): Support HOST_WIDE_INT flag_var.
11749         (option_enabled): Likewise.
11750         (get_option_state): Likewise.
11751
11752         * opts.h (cl_option): Add cl_host_wide_int.  Change var_value
11753         to HOST_WIDE_INT.
11754
11755 2011-08-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11756             Marc Glisse  <marc.glisse@normalesup.org>
11757
11758         PR libstdc++-v3/1773
11759         * target.def (decl_mangling_context): New C++ hook.
11760         * doc/tm.texi: Regenerate.
11761         * config/sol2-cxx.c, config/sol2-stubs.c: New files.
11762         * config/sol2-protos.h: Group by source file.
11763         (solaris_cxx_decl_mangling_context): Declare.
11764         * config/sol2.h (TARGET_CXX_DECL_MANGLING_CONTEXT): Define.
11765         * config/t-sol2 (sol2-cxx.o, sol2-stubs.o): New targets.
11766         Use $<.
11767         * config.gcc (*-*-solaris2*): Add sol2-cxx.o to cxx_target_objs.
11768         Add sol2-stubs.o to extra_objs.
11769
11770 2011-08-18  Jakub Jelinek  <jakub@redhat.com>
11771
11772         PR target/50009
11773         * stor-layout.c (update_alignment_for_field): Don't ICE on
11774         packed flexible array members if ms_bitfield_layout_p.
11775
11776         PR target/50092
11777         * config/i386/i386.c (assign_386_stack_local): Call validize_mem
11778         on the result before returning it.
11779
11780         PR debug/50017
11781         * tree-vect-stmts.c (vect_finish_stmt_generation): If gsi_stmt (*gsi)
11782         is a debug stmt, use location of the first non-debug stmt after it.
11783
11784 2011-08-18  Richard Sandiford  <richard.sandiford@linaro.org>
11785
11786         * config/arm/arm.c (arm_rtx_costs_1): Don't modify the costs of SET.
11787         (arm_size_rtx_costs): Likewise.
11788
11789 2011-08-18  Richard Guenther  <rguenther@suse.de>
11790
11791         * tree.h (tree_int_cst_msb): Remove.
11792         * tree.c (tree_int_cst_msb): Likewise.
11793         (tree_int_cst_sign_bit): Move from ...
11794         * tree-ssa-loop-ivopts.c (tree_int_cst_sign_bit): ... here.
11795
11796 2011-08-18  Richard Sandiford  <richard.sandiford@linaro.org>
11797
11798         * doc/tm.texi.in (TARGET_RTX_COSTS): Add an opno paramter.
11799         * doc/tm.texi: Regenerate.
11800         * target.def (rtx_costs): Add an opno parameter.
11801         * hooks.h (hook_bool_rtx_int_int_intp_bool_false): Replace with...
11802         (hook_bool_rtx_int_int_int_intp_bool_false): ...this.
11803         * hooks.c (hook_bool_rtx_int_int_intp_bool_false): Replace with...
11804         (hook_bool_rtx_int_int_int_intp_bool_false): ...this.
11805         * cse.c (COST_IN): Add an opno parameter.
11806         (notreg_cost): Likewise.  Update call to rtx_cost.
11807         (COST, fold_rtx): Update accordingly.
11808         * dojump.c (prefer_and_bit_test): Update call to rtx_cost.
11809         * expmed.c (emit_store_flag): Likewise.
11810         * optabs.c (avoid_expensive_constant): Add an opno parameter.
11811         Update call to rtx_cost.
11812         (expand_binop_directly, expand_binop): Likewise.
11813         (expand_twoval_binop, prepare_cmp_insn): Likewise.
11814         * rtl.h (rtx_cost, get_full_rtx_cost): Add opno parameters.
11815         (set_src_cost, get_full_set_src_cost): Update accordingly.
11816         * rtlanal.c (rtx_cost): Add an opno parameter.  Update call
11817         to target hook.
11818         (get_full_rtx_cost): Add an opno paramter.  Update calls to rtx_cost.
11819         (default_adress_cost): Update calls to rtx_cost.
11820
11821         * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs)
11822         (arm_slowmul_rtx_costs): Adjust calls to rtx_cost.
11823         (arm_rtx_costs): Add an opno parameter.
11824         * config/alpha/alpha.c (alpha_rtx_costs): Add an opno parameter and
11825         adjust any recursive rtx-cost calls.
11826         * config/avr/avr.c (avr_operand_rtx_cost, avr_rtx_costs): Likewise.
11827         * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
11828         * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
11829         * config/cris/cris.c (cris_rtx_costs): Likewise.
11830         * config/frv/frv.c (frv_rtx_costs): Likewise.
11831         * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
11832         * config/i386/i386.c (ix86_rtx_costs): Likewise.
11833         * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
11834         * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
11835         * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
11836         * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
11837         * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
11838         * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
11839         * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
11840         * config/mep/mep.c (mep_rtx_cost): Likewise.
11841         * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
11842         * config/mips/mips.c (mips_binary_cost): Update call to rtx_cost.
11843         (mips_zero_extend_cost): Add an opno parameter.
11844         * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
11845         * config/mn10300/mn10300.c (mn10300_address_cost): Update call
11846         to rtx_cost.
11847         (mn10300_rtx_costs): Add an opno parameter and adjust any recursive
11848         rtx-cost calls.
11849         * config/pa/pa.c (hppa_rtx_costs): Likewise.
11850         * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
11851         * config/picochip/picochip.c (picochip_rtx_costs): Likewise.
11852         * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
11853         (rs6000_debug_rtx_costs): Likewise.
11854         * config/s390/s390.c (s390_rtx_costs): Likewise.
11855         * config/score/score-protos.h (score_rtx_costs): Likewise.
11856         * config/score/score.c (score_rtx_costs): Likewise.
11857         * config/sh/sh.c (andcosts): Update call to rtx_cost.
11858         (sh_rtx_costs): Add an opno parameter.
11859         * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
11860         * config/spu/spu.c (spu_rtx_costs): Likewise.
11861         * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
11862         * config/v850/v850.c (v850_rtx_costs): Likewise.
11863         * config/vax/vax.c (vax_rtx_costs): Likewise.
11864         * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
11865
11866 2011-08-18  Richard Sandiford  <richard.sandiford@linaro.org>
11867
11868         * rtl.h (set_src_cost, get_full_set_src_cost): New functions.
11869         * auto-inc-dec.c (attempt_change): Use set_src_cost instead of
11870         rtx_cost.
11871         * calls.c (precompute_register_parameters): Likewise.
11872         * combine.c (expand_compound_operation, make_extraction): Likewise.
11873         (force_to_mode, distribute_and_simplify_rtx): Likewise.
11874         * dse.c (find_shift_sequence): Likewise.
11875         * expmed.c (init_expmed, expand_mult, expand_smod_pow2): Likewise.
11876         * expr.c (compress_float_constant): Likewise.
11877         * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
11878         * gcse.c (want_to_gcse_p): Likewise.
11879         * ifcvt.c (noce_try_sign_mask): Likewise.
11880         * loop-doloop.c (doloop_optimize): Likewise.
11881         * loop-invariant.c (create_new_invariant): Likewise.
11882         * optabs.c (avoid_expensive_constant): Likewise.
11883         * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands)
11884         (try_replace_in_use, reload_cse_move2add): Likewise.
11885         * reload1.c (calculate_elim_costs_all_insns): Likewise.
11886         (note_reg_elim_costly): Likewise.
11887         * rtlanal.c (insn_rtx_cost): Likewise.
11888         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
11889         * stmt.c (lshift_cheap_p): Likewise.
11890         * tree-ssa-loop-ivopts.c (seq_cost, computation_cost): Likewise.
11891         * config/avr/avr.c (final_prescan_insn): Likewise.
11892         * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
11893         * config/mips/mips.c (mips_binary_cost, mips_rtx_costs): Likewise.
11894
11895 2011-08-18  Richard Sandiford  <richard.sandiford@linaro.org>
11896
11897         * rtl.h (set_rtx_cost, get_full_set_rtx_cost): New functions.
11898         * auto-inc-dec.c (attempt_change): Use set_rtx_cost.
11899         * cfgloopanal.c (seq_cost): Likewise.
11900         * loop-invariant.c (create_new_invariant): Likewise.
11901         * postreload.c (move2add_use_add2_insn, move2add_use_add3_insn)
11902         (reload_cse_move2add): Use get_full_set_rtx_cost.
11903
11904 2011-08-18  Richard Guenther  <rguenther@suse.de>
11905
11906         * expr.c (get_inner_reference): Fix typo in last change.
11907
11908 2011-08-18  Paolo Carlini  <paolo.carlini@oracle.com>
11909             Joseph Myers  <joseph@codesourcery.com>
11910
11911         PR tree-optimization/49963
11912         * hwint.c (absu_hwi): Define.
11913         * hwint.h (absu_hwi): Declare.
11914         * fold-const.c (fold_plusminus_mult_expr): Use absu_hwi instead
11915         of abs_hwi.
11916         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
11917         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Likewise.
11918
11919 2011-08-18  Richard Guenther  <rguenther@suse.de>
11920
11921         * expr.c (get_inner_reference): Sign-extend the constant
11922         twos-complement offset before doing arbitrary precision
11923         arithmetic on it.
11924         * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
11925         (get_constraint_for_1): Pass the offset of a MEM_REF unchanged
11926         to get_constraint_for_ptr_offset.
11927
11928 2011-08-17  Kaz Kojima  <kkojima@gcc.gnu.org>
11929
11930         PR target/50068
11931         * config/sh/sh.c (sh_output_mi_thunk): Don't call dbr_schedule.
11932
11933 2011-08-17  Richard Guenther  <rguenther@suse.de>
11934
11935         * tree.h (convert_to_ptrofftype_loc): New function.
11936         (convert_to_ptrofftype): Define.
11937         * builtins.c (expand_builtin_bzero): Use size_type_node.
11938         (fold_builtin_bzero): Likewise.
11939         (std_gimplify_va_arg_expr): Build the BIT_AND_EXPR on the pointer.
11940         * c-typeck.c (build_unary_op): Use convert_to_ptrofftype_loc.
11941         * cgraphunit.c (thunk_adjust): Use fold_build_pointer_plus_loc.
11942         (cgraph_redirect_edge_call_stmt_to_callee): Use size_int.
11943         * expr.c (expand_expr_addr_expr_1): Use fold_build_pointer_plus.
11944         * fold-const.c (build_range_check): Negate using the original type.
11945         (fold_unary_loc): Use fold_build_pointer_plus_loc.
11946         * gimple-fold.c (gimple_adjust_this_by_delta): Use
11947         convert_to_ptrofftype.
11948         * gimplify.c (gimplify_self_mod_expr): Likewise.
11949         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Likewise.
11950         (graphite_create_new_loop_guard): Likewise.
11951         * graphite-sese-to-poly.c (my_long_long): Remove.
11952         (scop_ivs_can_be_represented): Adjust.
11953         * tree-cfg.c (verify_gimple_assign_unary): Use ptrofftype_p.
11954         * tree-chrec.c (chrec_fold_plus_1): Use fold_build_pointer_plus.
11955         * tree-loop-distribution.c (build_size_arg_loc): Use
11956         size_type_node.
11957         (generate_memset_zero): Simplify.
11958         * tree-mudflap.c: Use fold_convert, not convert.
11959         * tree-predcom.c (suitable_reference_p): Expand DR_OFFSET in
11960         its own type.
11961         (determine_offset): Likewise for DR_STEP.
11962         (valid_initializer_p): Likewise.
11963         * tree-profile.c (prepare_instrumented_value): Convert the pointer
11964         to an integer type of same size.
11965         * tree-scalar-evolution.c (interpret_rhs_expr): Do not refer
11966         to sizetype without need.
11967         * tree-ssa-address.c (tree_mem_ref_addr): Likewise.
11968         * tree-ssa-loop-ivopts.c (find_bivs): Use convert_to_ptrofftype.
11969         * tree-ssa-loop-manip.c (create_iv): Likewise.
11970         (determine_exit_conditions): Adjust comment.
11971         * tree-ssa-pre.c (create_expression_by_pieces): Use
11972         convert_to_ptrofftype.
11973         * tree-ssa-structalias.c (get_constraint_for_1): Likewise.
11974         * varasm.c (array_size_for_constructor): Compute using double_ints.
11975
11976 2011-08-16  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11977
11978         * config/spu/spu.c (spu_emit_branch_or_set): Avoid reverse tests
11979         when generating an integer result where possible.  Short-cut
11980         comparison against 0 also for QImode.
11981
11982 2011-08-16  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11983
11984         * config/spu/spu.h (LEGITIMIZE_RELOAD_ADDRESS): New macro.
11985         * config/spu/spu-protos.h (spu_legitimize_reload_address): Add
11986         prototype.
11987         * config/spu/spu.c (spu_legitimize_reload_address): New function.
11988         (spu_legitimate_address_p): Do not check displacement if the base
11989         is an eliminable stack register.
11990
11991 2011-08-16  Anatoly Sokolov  <aesok@post.ru>
11992
11993         * config/m32c/m32c.h (PREFERRED_RELOAD_CLASS,
11994         PREFERRED_OUTPUT_RELOAD_CLASS): Remove macro.
11995         * config/m32c/m32c-protos.h (m32c_preferred_reload_class,
11996         m32c_preferred_output_reload_class): Remove.
11997         * config/m32c/m32c.c (m32c_preferred_reload_class): Make static.
11998         Change rclass argument and return types to reg_class_t. Use
11999         reg_class_subset_p instead of class_sizes.
12000         (m32c_preferred_output_reload_class): Make static. Change rclass
12001         argument and return types to reg_class_t.
12002         (TARGET_PREFERRED_RELOAD_CLASS,
12003         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
12004
12005 2011-08-16  Kai Tietz  <ktietz@redhat.com>
12006
12007         * config/i386/mingw32.h (GOMP_SELF_SPEC): Add -pthread option.
12008
12009 2011-08-16  Richard GUenther  <rguenther@suse.de>
12010
12011         PR tree-optimization/50082
12012         * tree-ssa-forwprop.c (combine_cond_expr_cond): Handle overflow
12013         warnings here, instead of ...
12014         (ssa_forward_propagate_and_combine): ... here.
12015         (forward_propagate_into_comparison_1): Adjust.
12016         (forward_propagate_into_comparison): Likewise.
12017         (forward_propagate_into_gimple_cond): Likewise.
12018         (forward_propagate_into_cond): Likewise.
12019
12020 2011-08-16  Andreas Schwab  <schwab@redhat.com>
12021
12022         * ggc.h (ggc_alloc_rtvec_sized): Use ggc_alloc_zone_rtvec_def
12023         instead of ggc_alloc_zone_vec_rtvec_def.
12024
12025 2011-08-16  Richard Guenther  <rguenther@suse.de>
12026
12027         * tree.h (ptrofftype_p): New helper function.
12028         * tree-cfg.c (verify_expr): Use ptrofftype_p for POINTER_PLUS_EXPR
12029         offset verification.
12030         (verify_gimple_assign_binary): Likewise.
12031         * tree.c (build2_stat): Likewise.
12032         * tree-chrec.c (chrec_fold_plus_poly_poly): Likewise.
12033         (reset_evolution_in_loop): Likewise.
12034         * tree-chrec.h (build_polynomial_chrec): Likewise.
12035
12036 2011-08-16  Liang Wang  <lwang1@marvell.com>
12037
12038         * ggc.h (ggc_alloc_rtvec_sized): Change arguments of
12039         ggc_alloc_zone_vec_rtvec_def.
12040
12041 2011-08-16  Richard Guenther  <rguenther@suse.de>
12042
12043         * tree-vrp.c (extract_range_from_multiplicative_op_1): New
12044         helper factored out from ...
12045         (extract_range_from_binary_expr_1): ... here.  Re-structure
12046         to not glob handling too different tree codes.
12047
12048 2011-08-15  Richard Henderson  <rth@redhat.com>
12049
12050         PR middle-end/50006
12051         * explow.c (allocate_dynamic_stack_space): Move suppress_reg_args_size
12052         setting out to include allocate_stack named pattern as well.
12053         * builtins.c (expand_builtin_apply): Add ARG_SIZE 0 note.
12054         * stmt.c (expand_stack_restore): Likewise.
12055
12056 2011-08-15  Richard Guenther  <rguenther@suse.de>
12057
12058         PR middle-end/50082
12059         * fold-const.c (maybe_canonicalize_comparison_1): Properly
12060         convert the modified operand to the other operand type.
12061         (fold_comparison): Call maybe_canonicalize_comparison_1 with
12062         useless conversions stripped from comparison operands.
12063
12064 2011-08-15  Richard Guenther  <rguenther@suse.de>
12065
12066         * tree-vrp.c (value_range_nonnegative_p): Fix anti-range case.
12067         (extract_range_from_unary_expr_1): Restructure.
12068
12069 2011-08-15  Richard Guenther  <rguenther@suse.de>
12070
12071         PR tree-optimization/50058
12072         * tree-ssa-sccvn.c (vn_reference_lookup_3): Relax aggregate
12073         copy matching.
12074
12075 2011-08-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
12076
12077         PR target/50022
12078         * config/arm/arm.c (output_move_double): Add 2 parameters
12079         to count the number of insns emitted and whether to emit or not.
12080         Use the flag to decide when to emit and count number of instructions
12081         that will be emitted.
12082         Handle case where output_move_double might be called for calculating
12083         lengths with an invalid constant.
12084         (arm_count_output_move_double_insns): Define.
12085         * config/arm/arm-protos.h (arm_count_output_move_double_insns): Declare.
12086         (output_move_double): Adjust prototype.
12087         * config/arm/vfp.md ("*movdi_vfp"): Adjust call to
12088         output_move_double.
12089         ("*movdi_vfp_cortexa8"): Likewise and add attribute
12090         for ce_count.
12091         * config/arm/arm.md ("*arm_movdi"): Adjust call to output_move_double.
12092         ("*movdf_soft_insn"): Likewise.
12093         * config/arm/cirrus.md ("*cirrus_arm_movdi"): Likewise.
12094         ("*cirrus_thumb2_movdi"): Likewise.
12095         ("*thumb2_cirrus_movdf_hard_insn"): Likewise.
12096         ("*cirrus_movdf_hard_insn"): Likewise.
12097         * config/arm/neon.md (*neon_mov<mode> VD): Likewise.
12098         * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Likewise.
12099         ("mov<mode>_internal VMMX"): Likewise.
12100         * config/arm/fpa.md (*movdf_fpa, *thumb2_movdf_fpa): Likewise.
12101
12102 2011-08-14  Uros Bizjak  <ubizjak@gmail.com>
12103
12104         * config/i386/i386.c (ix86_expand_round_sse4): New function.
12105         * config/i386/i386-protos.h (ix86_expand_round_sse4): New prototype.
12106         * config/i386/i386.md (round<mode>2): Use ix86_expand_round_sse4
12107         for TARGET_ROUND.
12108
12109         (rint<mode>2): Simplify TARGET_ROUND check.
12110         (floor<mode>2): Ditto.
12111         (ceil<mode>2): Ditto.
12112         (btrunc<mode>2): Ditto.
12113
12114 2011-08-14  Anatoly Sokolov  <aesok@post.ru>
12115
12116         * config/mmix/mmix.c (TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Redefine
12117         as mmix_preferred_output_reload_class.
12118
12119 2011-08-14  Georg-Johann Lay  <avr@gjlay.de>
12120
12121         * PR target/49903
12122         * config/avr/avr.md (UNSPEC_IDENTITY): New c_enum.
12123         (branch_unspec): New insn.
12124         (branch): Beauty farm.
12125         * config/avr/avr.c (compare_condition): Use JUMP_P.  Test SET_SRC
12126         to be IF_THEN_ELSE.
12127         (avr_compare_pattern, avr_reorg_remove_redundant_compare):
12128         New static functions.
12129         (avr_reorg): Use them.  Use next_real_insn instead of NEXT_INSN.
12130         Use CONST_INT_P.  Beauty.
12131
12132 2011-08-12  Richard Henderson  <rth@redhat.com>
12133
12134         PR rtl-opt/49994
12135         * sched-init.h (struct deps_desc): Add sched_before_next_jump.
12136         * sched-deps.c (init_deps): Clear it.
12137         (deps_analyze_insn): Consume it.
12138         (sched_analyze_insn): Fill it.
12139
12140 2011-08-12  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
12141
12142         PR target/48328
12143         * config/arm/arm.h (CASE_VECTOR_SHORTEN_MODE): Fix distance
12144         for tbh instructions.
12145
12146 2011-08-12  Diego Novillo  <dnovillo@google.com>
12147
12148         * data-streamer.h (streamer_write_zero): Rename from output_zero.
12149         (streamer_write_uhwi): Rename from lto_output_uleb128.
12150         (streamer_write_hwi): Rename from output_sleb128.
12151         (streamer_write_string): Rename from lto_output_string.
12152         (streamer_string_index): Rename from lto_string_index.
12153         (streamer_write_string_with_length): Rename from
12154         lto_output_string_with_length.
12155         (streamer_write_uhwi_stream): Rename from lto_output_uleb128_stream.
12156         (streamer_write_hwi_stream): Rename from lto_output_sleb128_stream.
12157         (streamer_read_string): Rename from lto_input_string.
12158         (streamer_read_indexed_string): Rename from input_string_internal.
12159         (streamer_read_uhwi): Rename from lto_input_uleb128.
12160         (streamer_read_hwi): Rename from lto_input_sleb128.
12161         (streamer_write_hwi_in_range): Rename from lto_output_int_in_range.
12162         (streamer_read_hwi_in_range): Rename from lto_input_int_in_range.
12163         (streamer_write_enum): Rename from lto_output_enum.
12164         (streamer_read_enum): Rename from lto_input_enum.
12165         (streamer_write_record_start): Rename from output_record_start.
12166         (streamer_read_record_start): Rename from input_record_start.
12167         (streamer_write_bitpack): Rename from lto_output_bitpack.
12168         (streamer_read_bitpack): Rename from lto_input_bitpack.
12169         (streamer_write_char_stream): Rename from lto_output_1_stream.
12170         (streamer_read_uchar): Rename from lto_input_1_unsigned.
12171         * tree-streamer.h (streamer_cache_d): Rename from lto_streamer_cache_d.
12172         (streamer_handle_as_builtin_p): Rename from lto_stream_as_builtin_p.
12173         (streamer_read_string_cst): Rename from input_string_cst.
12174         (streamer_read_chain): Rename from lto_input_chain.
12175         (streamer_alloc_tree): Rename from lto_materialize_tree.
12176         (streamer_read_tree_body): Rename from lto_input_tree_pointers.
12177         (streamer_get_pickled_tree): Rename from lto_get_pickled_tree.
12178         (streamer_get_builtin_tree): Rename from lto_get_builtin_tree.
12179         (streamer_read_integer_cst): Rename from lto_input_integer_cst.
12180         (streamer_read_tree_bitfields): Rename from tree_read_bitfields.
12181         (streamer_write_chain): Rename from lto_output_chain.
12182         (streamer_write_tree_header): Rename from lto_output_tree_header.
12183         (streamer_pack_tree_bitfields): Rename from pack_value_fields.
12184         (streamer_write_tree_body): Rename from lto_output_tree_pointers.
12185         (streamer_write_integer_cst): Rename from lto_output_integer_cst.
12186         (streamer_write_builtin): Rename from lto_output_builtin_tree.
12187         (streamer_check_handled_ts_structures): Rename from
12188         check_handled_ts_structures.
12189         (streamer_tree_cache_insert): Rename from lto_streamer_cache_insert.
12190         (streamer_tree_cache_insert_at): Rename from
12191         lto_streamer_cache_insert_at.
12192         (streamer_tree_cache_append): Rename from lto_streamer_cache_append.
12193         (streamer_tree_cache_lookup): Rename from lto_streamer_cache_lookup.
12194         (streamer_tree_cache_get): Rename from lto_streamer_cache_get.
12195         (streamer_tree_cache_create): Rename from lto_streamer_cache_create.
12196         (streamer_tree_cache_delete): Rename from lto_streamer_cache_delete.
12197         * tree-streamer-out.c (write_string_cst): Rename from output_string_cst.
12198         (write_identifier): Rename from output_identifier.
12199         (write_ts_common_tree_pointers): Rename from
12200         lto_output_ts_common_tree_pointers.
12201         (write_ts_vector_tree_pointers): Rename from
12202         lto_output_ts_vector_tree_pointers.
12203         (write_ts_complex_tree_pointers): Rename from
12204         lto_output_ts_complex_tree_pointers.
12205         (write_ts_decl_minimal_tree_pointers): Rename from
12206         lto_output_ts_decl_minimal_tree_pointers.
12207         (write_ts_decl_common_tree_pointers): Rename from
12208         lto_output_ts_decl_common_tree_pointers.
12209         (write_ts_decl_non_common_tree_pointers): Rename from
12210         lto_output_ts_decl_non_common_tree_pointers.
12211         (write_ts_decl_with_vis_tree_pointers): Rename from
12212         lto_output_ts_decl_with_vis_tree_pointers.
12213         (write_ts_field_decl_tree_pointers): Rename from
12214         lto_output_ts_field_decl_tree_pointers.
12215         (write_ts_function_decl_tree_pointers): Rename from
12216         lto_output_ts_function_decl_tree_pointers.
12217         (write_ts_type_common_tree_pointers): Rename from
12218         lto_output_ts_type_common_tree_pointers.
12219         (write_ts_type_non_common_tree_pointers): Rename from
12220         lto_output_ts_type_non_common_tree_pointers.
12221         (write_ts_list_tree_pointers): Rename from
12222         lto_output_ts_list_tree_pointers.
12223         (write_ts_vec_tree_pointers): Rename from
12224         lto_output_ts_vec_tree_pointers.
12225         (write_ts_exp_tree_pointers): Rename from
12226         lto_output_ts_exp_tree_pointers.
12227         (write_ts_block_tree_pointers): Rename from
12228         lto_output_ts_block_tree_pointers.
12229         (write_ts_binfo_tree_pointers): Rename from
12230         lto_output_ts_binfo_tree_pointers.
12231         (write_ts_constructor_tree_pointers): Rename from
12232         lto_output_ts_constructor_tree_pointers.
12233         (write_ts_target_option): Rename from lto_output_ts_target_option.
12234         (write_ts_translation_unit_decl_tree_pointers): Rename from
12235         lto_output_ts_translation_unit_decl_tree_pointers.
12236         * tree-streamer.c (streamer_tree_cache_add_to_node_array):
12237         Rename from lto_streamer_cache_add_to_node_array.
12238         (streamer_tree_cache_insert_1): Rename from lto_streamer_cache_insert_1.
12239         (record_common_node): Rename from lto_record_common_node.
12240
12241         * streamer-hooks.h (bitpack_d, lto_streamer_cache_d): Remove forward
12242         declarations.
12243         * data-streamer-in.c (lto_input_widest_uint_uleb128): Remove unused
12244         function.
12245         * data-streamer-out.c (lto_output_widest_uint_uleb128_stream): Remove
12246         unused function.
12247         * Makefile.in (lto-section-out.o): Add dependency on DATA_STREAMER_H.
12248         (ipa-reference.o): Likewise.
12249         * lto-section-out.c: Include data-streamer.h.
12250         * ipa-reference.c: Include data-streamer.h.
12251
12252 2011-08-12  Nick Clifton  <nickc@redhat.com>
12253
12254         * builtins.c (expand_builtin_memcmp): Do not use cmpstrnsi pattern.
12255         * doc/md.texi (cmpstrn): Note that the comparison stops if both
12256         fetched bytes are zero.
12257         (cmpstr): Likewise.
12258         (cmpmem): Note that the comparison does not stop if both of the
12259         fetched bytes are zero.
12260
12261 2011-08-12  Uros Bizjak  <ubizjak@gmail.com>
12262
12263         * builtins.def (BUILT_IN_ICEIL{,F,L}, BUILT_IN_IFLOOR{,F,L}
12264         BUILT_IN_IRINT{,F,L}, BUILT_IN_IROUND{,F,L}: New builtin definitions.
12265         * convert.c (convert_to_integer): Convert to BUILT_IN_ICEIL,
12266         BUILT_IN_IFLOOR, BUILT_IN_IRINT or BUILT_INT_IROUND when converting
12267         to integer_type_node.
12268         * fold-const.c (tree_call_nonnegative_warnv_p): Handle BUILT_IN_ICEIL,
12269         BUILT_IN_IFLOOR, BUILT_IN_IRINT and BUILT_INT_IROUND.
12270         * builtins.c (expand_builtin_in): Ditto.
12271         (mathfn_built_in_1): Ditto.
12272         (expand_builtin_int_roundingfn): Handle BUILT_IN_ICEIL and
12273         BUILT_IN_IFLOOR.
12274         (expand_builtin_int_roundingfn_2): Handle BUILT_IN_IRINT and
12275         BUILT_IN_IROUND.
12276         (fold_fixed_mathfn): Canonicalize BUILT_IN_ICEIL, BUILTIN_IN_IFLOOR
12277         BUILT_IN_IRINT and BUILT_IN_IROUND to BUILT_IN_LCEIL,
12278         BUILTIN_IN_LFLOOR, BUILT_IN_LRINT and BUILT_IN_LROUND on ILP32 targets.
12279
12280 2011-08-12  Richard Guenther  <rguenther@suse.de>
12281
12282         * tree-vrp.c (extract_range_from_unary_expr_1): Implement -X as 0 - X.
12283
12284 2011-08-12  Romain Geissler  <romain.geissler@gmail.com>
12285
12286         * Makefile.in (PLUGIN_HEADERS): Add C_TREE_H.
12287
12288 2011-08-12  Richard Sandiford  <rdsandiford@googlemail.com>
12289
12290         * config/arm/arm.c (get_label_padding): New function.
12291         (create_fix_barrier, arm_reorg): Use it.
12292
12293 2011-08-11  Uros Bizjak  <ubizjak@gmail.com>
12294
12295         PR target/49781
12296         * config/i386/i386.md (*lea_5_zext): New.
12297         (*lea_6_zext): Ditto.
12298         * config/i386/predicates.md (const_32bit_mask): New predicate.
12299         (lea_address_operand): Reject AND.
12300         * config/i386/i386.c (ix86_decompose_address): Allow Dimode AND with
12301         const_32bit_mask immediate.
12302         (ix86_print_operand_address): Handle AND.
12303         (memory_address_length): Ditto.
12304
12305 2011-08-11  Romain Geissler  <romain.geissler@gmail.com>
12306             Brian Hackett  <bhackett1024@gmail.com>
12307
12308         * plugin.def: Add event for finish_decl.
12309         * plugin.c (register_callback, invoke_plugin_callbacks): Same.
12310         * c-decl.c (finish_decl): Invoke callbacks on above event.
12311         * doc/plugins.texi: Document above event.
12312
12313 2011-08-11  Richard Guenther  <rguenther@suse.de>
12314
12315         * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid redundant
12316         lookups, make looking through aggregate copies stronger.
12317
12318 2011-08-11  Richard Henderson  <rth@redhat.com>
12319
12320         PR bootstrap/50018
12321         * expr.c (fixup_args_size_notes): Accept and ignore normal calls.
12322
12323 2011-08-11  Richard Guenther  <rguenther@suse.de>
12324
12325         * lto-cgraph.c (input_node): Use DECL_BUILT_IN.
12326         * tree-vrp.c (stmt_interesting_for_vrp): Likewise.
12327         (vrp_visit_stmt): Likewise.
12328
12329 2011-08-11  Richard Guenther  <rguenther@suse.de>
12330
12331         PR middle-end/50040
12332         * gimplify.c (gimplify_modify_expr_complex_part): Mark the
12333         load of the other piece with TREE_NO_WARNING.
12334         * tree-flow.h (warn_uninit): Adjust prototype.
12335         * tree-ssa.c (warn_uninit): Take uninitialized SSA name,
12336         the base variable and the expression that is used separately.
12337         Properly query all TREE_NO_WARNING flags.
12338         (struct walk_data): Remove.
12339         (warn_uninitialized_var): Likewise.
12340         (warn_uninitialized_vars): Do not walk gimple pieces but simply
12341         look at all SSA uses of the statement.  Handle unused memory
12342         separately.
12343         * tree-ssa-uninit.c (warn_uninitialized_phi): Adjust.
12344
12345 2011-08-11   Kazuhiro Inaoka  <kazuhiro.inaoka.ud@renesas.com>
12346
12347         * config/rx/rx.md (movsicc): Allow register to register transfers.
12348         (*movsicc): Likewise.
12349         (*stcc): Restrict this pattern to EQ and NE compares.
12350         (*stcc_reg): New pattern.  Works for any comparison but only for
12351         register transfers.
12352
12353 2011-08-11   Diego Novillo  <dnovillo@google.com>
12354
12355         * tree-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers):
12356         Call stream_write_tree instead of output_record_start.
12357         (lto_output_ts_binfo_tree_pointers): Likewise.
12358
12359         * streamer-hooks.h (stream_write_tree): Move from tree-streamer.h.
12360         Convert it to a macro.
12361         (stream_read_tree): Likewise.
12362
12363         * lto-streamer.h (lto_stream_as_builtin_p): Move ...
12364         * tree-streamer.h (lto_stream_as_builtin_p): ... here.
12365
12366         * lto-streamer-in.c (lto_read_tree): Call lto_streamer_cache_append
12367         and tree_read_bitfields.
12368         * lto-streamer-out.c (lto_is_streamable): Move from lto-streamer.c
12369         (lto_write_tree): Call it.
12370         * lto-streamer.c (lto_is_streamable): Move to lto-streamer-out.c
12371         * streamer-hooks.h (struct streamer_hooks): Remove fields
12372         name, is_streamable and alloc_tree. Update all users.
12373         * tree-streamer-in.c (tree_read_bitfields): Factor out of ...
12374         (lto_materialize_tree): ... here.
12375         Handle CALL_EXPR codes.
12376         Remove call to lto_streamer_cache_append.
12377         * tree-streamer-out.c (lto_output_tree_header): Handle CALL_EXPR nodes.
12378         * tree-streamer.h (tree_read_bitfields): Declare.
12379
12380         * Makefile.in (TREE_STREAMER_H): Add STREAMER_HOOKS_H.
12381         (gimple-streamer-in.o): Add dependency on TREE_STREAMER_H.
12382         * tree-streamer.h (stream_read_tree): New.  Replace all calls
12383         to lto_input_tree with it.
12384         (stream_write_tree): New.  Replace all calls to lto_output_tree,
12385         lto_output_tree_ref and lto_output_tree_or_ref with it.
12386         * lto-streamer-in.c (lto_read_tree): Inline code from
12387         lto_streamer_read_tree.
12388         (lto_input_tree): Move from tree-streamer-in.c.
12389         * lto-streamer-out.c (lto_output_tree_ref): Make static.
12390         Remove handling of NULL values for EXPR.
12391         Do not handle EXPRs that are not indexable.
12392         (lto_write_tree): Move from tree-streamer-out.c.
12393         Inline lto_streamer_write_tree.
12394         (lto_output_tree): Move from tree-streamer-out.c.
12395         If REF_P is true and EXPR is indexable, call lto_output_tree_ref.
12396         * lto-streamer.c (lto_record_common_node): Move to tree-streamer.c.
12397         (lto_preload_common_nodes): Likewise.
12398         Remove assertions and adjustments for nodes
12399         main_identifier_node, ptrdiff_type_node and fileptr_type_node.
12400         (lto_streamer_hooks_init): Set streamer_hooks.write_tree to
12401         lto_output_tree and streamer_hooks.read_tree to lto_input_tree.
12402         * lto-streamer.h (lto_input_tree): Declare.
12403         (lto_output_tree_ref): Remove.
12404         * streamer-hooks.h (struct streamer_hooks): Remove fields
12405         preload_common_nodes, indexable_with_decls_p,
12406         pack_value_fields, unpack_value_fields and output_tree_header.
12407         Update all users.
12408         * tree-streamer-in.c (lto_materialize_tree): Make extern.
12409         (lto_input_tree_pointers): Likewise.
12410         (lto_read_tree): Move to lto-streamer-in.c.
12411         (lto_input_integer_cst): Make extern.
12412         (lto_get_pickled_tree): Likewise.
12413         (lto_get_builtin_tree): Likewise.
12414         (lto_input_tree): Move to lto-streamer-in.c.
12415         * tree-streamer-out.c (pack_value_fields): Make extern.
12416         (lto_output_tree_or_ref): Remove.  Replace all callers with
12417         calls to stream_write_tree.
12418         (lto_output_builtin_tree): Make extern.
12419         (lto_streamer_write_tree): Inline into lto_write_tree.
12420         (lto_output_tree_pointers): Make extern.
12421         (lto_output_tree_header): Likewise.
12422         (lto_output_integer_cst): Likewise.
12423         (lto_write_tree): Move to lto-streamer-out.c.
12424         (lto_output_tree): Likewise.
12425         * tree-streamer.c (lto_record_common_node): Move from lto-streamer.c
12426         (preload_common_nodes): Likewise.
12427         (lto_streamer_cache_create): Call it.
12428         * tree-streamer.h: Include streamer-hooks.h.
12429         (stream_write_tree): New.
12430         (stream_read_tree): New.
12431         (lto_input_tree): Remove.
12432         (lto_materialize_tree): Declare.
12433         (lto_input_tree_pointers): Declare.
12434         (lto_get_pickled_tree): Declare.
12435         (lto_get_builtin_tree): Declare.
12436         (lto_input_integer_cst): Declare.
12437         (lto_output_tree_header): Declare.
12438         (pack_value_fields): Declare.
12439         (lto_output_tree_pointers): Declare.
12440         (lto_output_integer_cst): Declare.
12441         (lto_output_builtin_tree): Declare.
12442
12443 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
12444
12445         * sel-sched-ir.c (has_dependence_note_reg_use): Call ds_full_merge
12446         only if producer writes to the register given by regno.
12447
12448 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
12449             Alexander Monakov  <amonakov@ispras.ru>
12450
12451         * sched-deps.c (sched_get_condition_with_rev): Rename to ...
12452         (sched_get_condition_with_rev_uncached): ... this.  Factor out
12453         condition caching logic into ...
12454         (sched_get_condition_with_rev): ... this.  Reimplement.  Do not
12455         attempt to use cache for instructions with zero luid.
12456         (sched_analyze_insn): Use INSN_CACHED_COND instead of INSN_COND.
12457         * sched-int.h (INSN_COND): Rename to INSN_CACHED_COND.
12458
12459 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
12460
12461         * sel-sched-ir.c (get_seqno_of_a_pred): Rename to
12462         get_seqno_for_a_jump.  Update the caller.
12463         (get_seqno_by_succs): New.  Use it ...
12464         (get_seqno_for_a_jump): ... here to find a seqno if looking at
12465         predecessors was not sufficient.
12466         (get_seqno_by_preds): Include head in iteration range, exclude insn.
12467
12468 2011-08-11  Dmitry Melnik  <dm@ispras.ru>
12469
12470         * sel-sched-ir.c (invalidate_av_set): Remove the assert.
12471
12472 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
12473
12474         * sel-sched-ir.h (register_unavailable_p): Declare.
12475         * sel-sched-ir.c (register_unavailable_p): New.  Use it...
12476         (set_unavailable_target_for_expr): ... here to properly test
12477         availability of a register.
12478         (speculate_expr): Ditto.
12479         * sel-sched.c (substitute_reg_in_expr): Ditto.
12480         (av_set_could_be_blocked_by_bookkeeping_p): Ditto.
12481
12482 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
12483
12484         * sel-sched.c (verify_target_availability): Fix usage of
12485         hard_regno_nregs.
12486
12487 2011-08-11  Dmitry Melnik  <dm@ispras.ru>
12488
12489         * sel-sched-ir.c (init_global_and_expr_for_insn): Forbid copying of
12490         recognized by cannot_copy_insn_p hook and volatile instructions.
12491
12492 2011-08-11  Dmitry Melnik  <dm@ispras.ru>
12493
12494         * sel-sched-ir.c (merge_expr_data): Take maximum spec.
12495
12496 2011-08-11  Richard Sandiford  <richard.sandiford@linaro.org>
12497
12498         * doc/md.texi (define_bypass): Say that the instruction names can
12499         be filename-style globs.
12500         * Makefile.in (FNMATCH_H): Define.
12501         (build/genattrtab.o, build/genautomata.o): Depend on $(FNMATCH_H).
12502         * genattrtab.c: Include fnmatch.h.
12503         (bypass_list): Change field name from "insn" to "pattern".
12504         (gen_bypass_1): Update accordingly.
12505         (process_bypasses): Use fnmatch to check for matches between
12506         insn reservations and define_bypasses.
12507         * genautomata.c: Include fnmatch.h.
12508         (bypass_decl): Rename in_insn_name and out_insn_name to in_pattern
12509         and out_pattern respectively.
12510         (gen_bypass, insert_bypass): Update accordingly.
12511         (for_each_matching_insn, process_bypass_2, process_bypass_1)
12512         (process_bypass): New functions.
12513         (process_decls): Use process_bypass.  Update after field name changes.
12514
12515 2011-08-11  Georg-Johann Lay  <avr@gjlay.de>
12516
12517         PR target/49687
12518         * config/avr/avr.md (smulqi3_highpart): New insn.
12519         (umulqi3_highpart): New insn.
12520         (*subqi3.ashiftrt7): New insn.
12521         (smulhi3_highpart): New expander.
12522         (umulhi3_highpart): Nex expander.
12523         (*smulhi3_highpart_call): New insn.
12524         (*umulhi3_highpart_call): New insn.
12525         (extend_u): New code attribute.
12526         (extend_prefix): Rename code attribute to extend_su.
12527         * config/avr/avr.c (avr_rtx_costs): Report costs of highpart of
12528         widening QI/HI multiply.
12529
12530 2011-08-11  Ira Rosen  <ira.rosen@linaro.org>
12531
12532         PR tree-optimization/50039
12533         * tree-vect-patterns.c (vect_operation_fits_smaller_type): Check
12534         that DEF_STMT has a stmt_vec_info.
12535
12536 2011-08-10  Richard Guenther  <rguenther@suse.de>
12537
12538         * tree.h (can_trust_pointer_alignment): Remove.
12539         * builtins.c (can_trust_pointer_alignment): Remove.
12540
12541 2011-08-10  Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
12542
12543         * c-typeck.c (scalar_to_vector): New function. Try scalar to
12544         vector conversion.
12545         (stv_conv): New enum for scalar_to_vector return type.
12546         (build_binary_op): Adjust.
12547         * doc/extend.texi: Description of scalar to vector expansion.
12548
12549 2011-08-10  Richard Guenther  <rguenther@suse.de>
12550
12551         * tree.h (get_pointer_alignment): Remove max-align argument.
12552         (get_object_alignment): Likewise.
12553         * builtins.c (get_object_alignment_1): Adjust.
12554         (get_object_alignment): Remove max-align argument.
12555         (get_pointer_alignment): Likewise.
12556         (expand_builtin_strlen): Adjust.
12557         (expand_builtin_memcpy): Likewise.
12558         (expand_builtin_mempcpy_args): Likewise.
12559         (expand_builtin_strncpy): Likewise.
12560         (expand_builtin_memset_args): Likewise.
12561         (expand_builtin_memcmp): Likewise.
12562         (expand_builtin_strcmp): Likewise.
12563         (expand_builtin_strncmp): Likewise.
12564         (get_builtin_sync_mem): Likewise.
12565         (fold_builtin_memset): Likewise.
12566         (fold_builtin_memory_op): Likewise.
12567         (expand_builtin_memory_chk): Likewise.
12568         * emit-rtl.c (get_mem_align_offset): Likewise.
12569         (set_mem_attributes_minus_bitpos): Likewise.
12570         * expr.c (expand_assignment): Likewise.
12571         (expand_expr_real_1): Likewise.
12572         * tree-sra.c (tree_non_mode_aligned_mem_p): Likewise.
12573         * tree-ssa-forwprop.c (simplify_builtin_call): Likewise.
12574         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Likewise.
12575         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Likewise.
12576         * value-prof.c (gimple_stringops_transform): Likewise.
12577
12578 2011-08-10  Paulo J. Matos  <paulo.matos@csr.com>
12579
12580         * doc/tm.texi.in (CLASS_MAX_NREGS): Fix typo.
12581         * doc/tm.texi: Regenerate.
12582
12583 2011-08-10  Georg-Johann Lay  <avr@gjlay.de>
12584
12585         PR target/29560
12586         * config/avr/avr.md (*ashlhiqi3): New insn-and-split.
12587         (*ashl<extend_prefix>qihiqi3): New insn-and-splits.
12588         (*ashl<extend_prefix>qihiqi3.mem): New insn-and-splits.
12589         Add peephole2 to map ashlhi3 to ashlqi3 if high part of
12590         shift target is unused.
12591
12592 2011-08-10  Richard Guenther  <rguenther@suse.de>
12593
12594         PR tree-optimization/49937
12595         * tree-ssa-ccp.c (get_value_from_alignment): Re-implement
12596         using get_object_alignment_1.
12597
12598 2011-08-09  Uros Bizjak  <ubizjak@gmail.com>
12599
12600         * config/i386/i386.c (ix86_emit_i387_round): New function.
12601         * config/i386/i386-protos.h (ix86_emit_i387_round): Declare.
12602         * config/i386/i386.md (round<mode>2): Use X87MODEF mode iterator.
12603         Use ix86_emit_i387_round to expand round function for i387 math.
12604         (lround<X87MODEF:mode><SWI248x:mode>2): Use X87MODEF mode iterator.
12605         Use ix86_emit_i387_round to expand {l,ll}round function for i387 math.
12606
12607 2011-08-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12608
12609         * config/sync.c: Move to ../libgcc.
12610         * Makefile.in (libgcc.mvars): Remove LIBGCC_SYNC, LIBGCC_SYNC_CFLAGS.
12611         * config/mips/t-libgcc-mips16 (LIBGCC_SYNC, LIBGCC_SYNC_CFLAGS):
12612         Remove.
12613
12614 2011-08-09  Anatoly Sokolov  <aesok@post.ru>
12615
12616         * config/mmix/mmix.h (REGISTER_MOVE_COST): Remove macro.
12617         * config/mmix/mmix-protos.h (mmix_register_move_cost): Remove.
12618         * config/mmix/mmix.c (mmix_register_move_cost): Make static.
12619         Change 'from' and 'to' arguments type to reg_class_t.
12620         (TARGET_REGISTER_MOVE_COST): Define.
12621
12622 2011-08-09  Vladimir Makarov  <vmakarov@redhat.com>
12623
12624         PR target/50026
12625         Revert:
12626         PR rtl-optimization/49990
12627         * ira-costs.c (print_allocno_costs, print_pseudo_costs): Don't
12628         ignore classes which can not change mode.
12629         (find_costs_and_classes): Ditto.
12630
12631 2011-08-09  Richard Guenther  <rguenther@suse.de>
12632
12633         * tree-vrp.c (zero_nonzero_bits_from_vr): Also return precise
12634         information for ranges with only negative values.
12635         (extract_range_from_binary_expr_1): Adjust BIT_IOR_EXPR and
12636         BIT_AND_EXPR handling to handle ranges with negative values.
12637
12638 2011-08-09  Kirill Yukhin  <kirill.yukhin@intel.com>
12639
12640         * config/i386/i386.c: Remove traling spaces.
12641         * config/i386/sse.md: Likewise.
12642         (*fma_fmadd_<mode>): Fix insn alternative 1 mnemonic.
12643         (*fma_fmsub_<mode>): Likewise.
12644         (*fma_fnmadd_<mode>): Likewise.
12645         (*fma_fnmsub_<mode>): Likewise.
12646
12647 2011-08-09  Nick Clifton  <nickc@redhat.com>
12648
12649         * config/rx/rx.md: Disable extender peepholes at -O3.
12650
12651 2011-08-09  Uros Bizjak  <ubizjak@gmail.com>
12652
12653         PR target/49781
12654         * config/i386/i386.md (reload_noff_load): New.
12655         (reload_noff_store): Ditto.
12656         * config/i386/i386.c (ix86_secondary_reload): Use
12657         CODE_FOR_reload_noff_load and CODE_FOR_reload_noff_store to handle
12658         double-word moves from/to non-offsetable addresses instead of
12659         generating XMM temporary.
12660
12661 2011-08-09  Anatoly Sokolov  <aesok@post.ru>
12662
12663         * config/mmix/mmix.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P): Remove.
12664
12665 2011-08-09  Ira Rosen  <ira.rosen@linaro.org>
12666
12667         PR tree-optimization/50014
12668         * tree-vect-loop.c (vectorizable_reduction): Get def type before
12669         calling vect_get_vec_def_for_stmt_copy ().
12670
12671 2011-08-08  Vladimir Makarov  <vmakarov@redhat.com>
12672
12673         PR rtl-optimization/49990
12674         * ira-costs.c (print_allocno_costs, print_pseudo_costs): Don't
12675         ignore classes which can not change mode.
12676         (find_costs_and_classes): Ditto.
12677
12678 2011-08-08  Richard Henderson  <rth@redhat.com>
12679
12680         PR middle-end/49990
12681         * config/i386/i386.c (ix86_expand_prologue): Call
12682         for SEH target gen_prologue_use instead of gen_blockage
12683         at prologue's end.
12684
12685 2011-08-08  Martin Jambor  <mjambor@suse.cz>
12686
12687         PR middle-end/49923
12688         * tree-sra.c (access_precludes_ipa_sra_p): Also check access
12689         memory alignment.
12690
12691 2011-08-08   Diego Novillo  <dnovillo@google.com>
12692
12693         * Makefile.in (LTO_STREAMER_H): Add DIAGNOSTIC_H.
12694         (DATA_STREAMER_H): New.
12695         (GIMPLE_STREAMER_H): New.
12696         (TREE_STREAMER_H): New.
12697         (STREAMER_HOOKS_H): New.
12698         (OBJS): Add data-streamer.o, data-streamer-in.o, data-streamer-out.o,
12699         gimple-streamer-in.o, gimple-streamer-out.o, streamer-hooks.o,
12700         tree-streamer.o, tree-streamer-in.o and tree-streamer-out.o.
12701         (data-streamer.o): New.
12702         (data-streamer-in.o): New.
12703         (data-streamer-out.o): New.
12704         (gimple-streamer-in.o): New.
12705         (gimple-streamer-out.o): New.
12706         (streamer-hooks.o): New.
12707         (tree-streamer.o): New.
12708         (tree-streamer-in.o): New.
12709         (tree-streamer-out.o): New.
12710         (lto-cgraph.o): Add dependency on DATA_STREAMER_H and TREE_STREAMER_H.
12711         (lto-streamer-in.o): Add dependency on DATA_STREAMER_H,
12712         GIMPLE_STREAMER_H and TREE_STREAMER_H.
12713         (lto-streamer-out.o): Add dependency on DATA_STREAMER_H,
12714         GIMPLE_STREAMER_H and TREE_STREAMER_H.
12715         (lto-streamer.o): Add dependency on STREAMER_HOOKS_H.
12716         (ipa-prop.o): Add dependency on DATA_STREAMER_H and TREE_STREAMER_H.
12717         (ipa-inline-analysis.o): Likewise.
12718         (ipa-pure-const.o): Likewise.
12719         * data-streamer-in.c: New.
12720         * data-streamer-out.c: New.
12721         * data-streamer.c: New.
12722         * data-streamer.h: New.
12723         * gimple-streamer-in.c: New.
12724         * gimple-streamer-out.c: New.
12725         * gimple-streamer.h: New.
12726         * ipa-inline-analysis.c: Include data-streamer.h.
12727         * ipa-prop.c: Include data-streamer.h.
12728         * ipa-pure-const.c: Include data-streamer.h.
12729         * lto-cgraph.c: Include data-streamer.h.
12730         * lto-section-in.c (lto_input_uleb128): Move to data-streamer-in.c.
12731         (lto_input_widest_uint_uleb128): Likewise.
12732         (lto_input_sleb128): Likewise.
12733         (bp_unpack_var_len_unsigned): Likewise.
12734         (bp_unpack_var_len_int): Likewise.
12735         * lto-section-out.c (lto_output_uleb128_stream): Move to
12736         data-streamer-out.c.
12737         (lto_output_widest_uint_uleb128_stream): Likewise.
12738         (lto_output_sleb128_stream): Likewise.
12739         (bp_pack_var_len_unsigned): Likewise.
12740         (bp_pack_var_len_int): Likewise.
12741         * lto-streamer-in.c: Include data-streamer.h and gimple-streamer.h.
12742         (struct string_slot): Remove.  Update all users.
12743         (lto_tag_check_set): Make extern.
12744         (lto_tag_check_range): Move to lto-streamer.h.
12745         (lto_tag_check): Likewise.
12746         (hash_string_slot_node): Remove.  Update all users.
12747         (eq_string_slot_node): Remove.  Update all users.
12748         (string_for_index): Move to data-streamer-in.c
12749         (input_string_internal): Likewise.
12750         (input_string_cst): Move to tree-streamer-in.c.
12751         (input_identifier): Likewise.
12752         (lto_input_string): Move to data-streamer-in.c
12753         (input_record_start): Move to data-streamer.h
12754         (canon_file_name): Use new definition of struct string_slot
12755         from data-streamer.h.  Set S_SLOT.LEN.
12756         (lto_input_location): Make extern.
12757         (lto_input_chain): Move to tree-streamer-in.c.
12758         (lto_init_eh): Make extern.
12759         (input_phi): Move to gimple-streamer-in.c.
12760         (input_gimple_stmt): Likewise.
12761         (input_bb): Likewise.
12762         (unpack_ts_base_value_fields): Move to tree-streamer-in.c.
12763         (unpack_ts_real_cst_value_fields): Likewise.
12764         (unpack_ts_fixed_cst_value_fields): Likewise.
12765         (unpack_ts_decl_common_value_fields): Likewise.
12766         (unpack_ts_decl_wrtl_value_fields): Likewise.
12767         (unpack_ts_decl_with_vis_value_fields): Likewise.
12768         (unpack_ts_function_decl_value_fields): Likewise.
12769         (unpack_ts_type_common_value_fields): Likewise.
12770         (unpack_ts_block_value_fields): Likewise.
12771         (unpack_ts_translation_unit_decl_value_fields): Likewise.
12772         (unpack_value_fields): Likewise.
12773         (lto_materialize_tree): Likewise.
12774         (lto_input_ts_common_tree_pointers): Likewise.
12775         (lto_input_ts_vector_tree_pointers): Likewise.
12776         (lto_input_ts_complex_tree_pointers): Likewise.
12777         (lto_input_ts_decl_minimal_tree_pointers): Likewise.
12778         (lto_input_ts_decl_common_tree_pointers): Likewise.
12779         (lto_input_ts_decl_non_common_tree_pointers): Likewise.
12780         (lto_input_ts_decl_with_vis_tree_pointers): Likewise.
12781         (lto_input_ts_field_decl_tree_pointers): Likewise.
12782         (lto_input_ts_function_decl_tree_pointers): Likewise.
12783         (lto_input_ts_type_common_tree_pointers): Likewise.
12784         (lto_input_ts_type_non_common_tree_pointers): Likewise.
12785         (lto_input_ts_list_tree_pointers): Likewise.
12786         (lto_input_ts_vec_tree_pointers): Likewise.
12787         (lto_input_ts_exp_tree_pointers): Likewise.
12788         (lto_input_ts_block_tree_pointers): Likewise.
12789         (lto_input_ts_binfo_tree_pointers): Likewise.
12790         (lto_input_ts_constructor_tree_pointers): Likewise.
12791         (lto_input_ts_target_option): Likewise.
12792         (lto_input_ts_translation_unit_decl_tree_pointers): Likewise.
12793         (lto_input_tree_pointers): Likewise.
12794         (lto_get_pickled_tree): Likewise.
12795         (lto_get_builtin_tree): Likewise.
12796         (lto_read_tree): Likewise.
12797         (lto_input_integer_cst): Likewise.
12798         (lto_input_tree): Likewise.
12799         * lto-streamer-out.c: Include data-streamer.h,
12800         gimple-streamer.h and streamer-hooks.h.
12801         (struct string_slot): Move to data-streamer.h.
12802         (hash_string_slot_node): Likewise.
12803         (eq_string_slot_node): Likewise.
12804         (lto_string_index): Move to data-streamer-out.c.
12805         (lto_output_string_with_length): Likewise.
12806         (lto_output_string): Likewise.
12807         (output_string_cst): Move to tree-streamer-out.c.
12808         (output_identifier): Likewise.
12809         (output_zero): Move to data-streamer-out.c
12810         (output_uleb128): Likewise.
12811         (output_sleb128): Likewise.
12812         (output_record_start): Move to data-streamer.h
12813         (pack_ts_base_value_fields): Move to tree-streamer-out.c.
12814         (pack_ts_real_cst_value_fields): Likewise.
12815         (pack_ts_fixed_cst_value_fields): Likewise.
12816         (pack_ts_decl_common_value_fields): Likewise.
12817         (pack_ts_decl_wrtl_value_fields): Likewise.
12818         (pack_ts_decl_with_vis_value_fields): Likewise.
12819         (pack_ts_function_decl_value_fields): Likewise.
12820         (pack_ts_type_common_value_fields): Likewise.
12821         (pack_ts_block_value_fields): Likewise.
12822         (pack_ts_translation_unit_decl_value_fields): Likewise.
12823         (pack_value_fields): Likewise.
12824         (lto_output_chain): Likewise.
12825         (lto_output_ts_common_tree_pointers): Likewise.
12826         (lto_output_ts_vector_tree_pointers): Likewise.
12827         (lto_output_ts_complex_tree_pointers): Likewise.
12828         (lto_output_ts_decl_minimal_tree_pointers): Likewise.
12829         (lto_output_ts_decl_common_tree_pointers): Likewise.
12830         (lto_output_ts_decl_non_common_tree_pointers): Likewise.
12831         (lto_output_ts_decl_with_vis_tree_pointers): Likewise.
12832         (lto_output_ts_field_decl_tree_pointers): Likewise.
12833         (lto_output_ts_function_decl_tree_pointers): Likewise.
12834         (lto_output_ts_type_common_tree_pointers): Likewise.
12835         (lto_output_ts_type_non_common_tree_pointers): Likewise.
12836         (lto_output_ts_list_tree_pointers): Likewise.
12837         (lto_output_ts_vec_tree_pointers): Likewise.
12838         (lto_output_ts_exp_tree_pointers): Likewise.
12839         (lto_output_ts_block_tree_pointers): Likewise.
12840         (lto_output_ts_binfo_tree_pointers): Likewise.
12841         (lto_output_ts_constructor_tree_pointers): Likewise.
12842         (lto_output_ts_target_option): Likewise.
12843         (lto_output_ts_translation_unit_decl_tree_pointers): Likewise.
12844         (lto_output_tree_pointers): Likewise.
12845         (lto_output_tree_header): Likewise.
12846         (lto_output_builtin_tree): Likewise.
12847         (lto_write_tree): Likewise.
12848         (lto_output_integer_cst): Likewise.
12849         (lto_output_tree): Likewise.
12850         (output_phi): Move to gimple-streamer-out.c.
12851         (output_gimple_stmt): Likewise.
12852         (output_bb): Likewise.
12853         * lto-streamer.c: Include tree-streamer.h and streamer-hooks.h.
12854         (streamer_hooks): Move to streamer-hooks.c.
12855         (check_handled_ts_structures): Move to tree-streamer.c
12856         (lto_streamer_cache_add_to_node_array): Likewise.
12857         (lto_streamer_cache_insert_1): Likewise.
12858         (lto_streamer_cache_insert): Likewise.
12859         (lto_streamer_cache_insert_at): Likewise.
12860         (lto_streamer_cache_append): Likewise.
12861         (lto_streamer_cache_lookup): Likewise.
12862         (lto_streamer_cache_get): Likewise.
12863         (lto_record_common_node): Likewise.
12864         (lto_preload_common_nodes): Likewise.
12865         (lto_streamer_cache_create): Likewise.
12866         (lto_streamer_cache_delete): Likewise.
12867         (streamer_hooks_init): Move to streamer-hooks.c.
12868         * lto-streamer.h: Include diagnostic.h
12869         (struct output_block, struct lto_input_block,
12870         struct data_in, struct bitpack_d): Remove forward declarations.
12871         (struct bitpack_d): Move to data-streamer.h.
12872         (struct lto_streamer_cache_d): Move to tree-streamer.h.
12873         (struct streamer_hooks): Move to streamer-hooks.h.
12874         (bp_pack_var_len_unsigned): Move to data-streamer.h.
12875         (bp_pack_var_len_int): Likewise.
12876         (bp_unpack_var_len_unsigned): Likewise.
12877         (bp_unpack_var_len_int): Likewise.
12878         (lto_input_location): Declare.
12879         (lto_tag_check_set): Declare.
12880         (lto_init_eh): Declare.
12881         (lto_output_tree_ref): Declare.
12882         (lto_output_location): Declare.
12883         (bitpack_create): Move to data-streamer.h.
12884         (bp_pack_value): Likewise.
12885         (lto_output_bitpack): Likewise.
12886         (lto_input_bitpack): Likewise.
12887         (bp_unpack_value): Likewise.
12888         (lto_output_1_stream): Likewise.
12889         (lto_input_1_unsigned): Likewise.
12890         (lto_output_int_in_range): Likewise.
12891         (lto_input_int_in_range): Likewise.
12892         (bp_pack_int_in_range): Likewise.
12893         (bp_unpack_int_in_range): Likewise.
12894         (lto_output_enum): Likewise.
12895         (lto_input_enum): Likewise.
12896         (bp_pack_enum): Likewise.
12897         (bp_unpack_enum): Likewise.
12898         * streamer-hooks.c: New.
12899         * streamer-hooks.h: New.
12900         * tree-streamer-in.c: New.
12901         * tree-streamer-out.c: New.
12902         * tree-streamer.c: New.
12903         * tree-streamer.h: New.
12904
12905 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12906
12907         * gthr-posix95.h: Remove.
12908         * gthr.h [_PTHREADS95]: Remove.
12909         * configure.ac (enable_threads): Remove posix95.
12910         * configure: Regenerate.
12911         * doc/install.texi (Configuration, --enable-threads): Remove posix95.
12912
12913 2011-08-08  Uros Bizjak  <ubizjak@gmail.com>
12914
12915         PR target/49781
12916         * config/i386/i386.c (ix86_decompose_address): Allow zero-extended
12917         SImode addresses.
12918         (ix86_print_operand_address): Handle zero-extended addresses.
12919         (memory_address_length): Add length of addr32 prefix for
12920         zero-extended addresses.
12921         (ix86_secondary_reload): Handle moves to/from double-word general
12922         registers from/to zero-extended addresses.
12923         * config/i386/predicates.md (lea_address_operand): Reject
12924         zero-extended operands.
12925
12926 2011-08-08  H.J. Lu  <hongjiu.lu@intel.com>
12927
12928         PR other/48007
12929         * config.gcc (libgcc_tm_file): Add i386/value-unwind.h for Linux/x86.
12930
12931         * system.h (REG_VALUE_IN_UNWIND_CONTEXT): Poisoned.
12932         (ASSUME_EXTENDED_UNWIND_CONTEXT): Likewise.
12933
12934         * unwind-dw2.c (ASSUME_EXTENDED_UNWIND_CONTEXT): New.
12935         (_Unwind_Context_Reg_Val): Likewise.
12936         (_Unwind_Get_Unwind_Word): Likewise.
12937         (_Unwind_Get_Unwind_Context_Reg_Val): Likewise.
12938         (_Unwind_Context): Use _Unwind_Context_Reg_Val on the reg field.
12939         (_Unwind_IsExtendedContext): Check ASSUME_EXTENDED_UNWIND_CONTEXT
12940         for EXTENDED_CONTEXT_BIT.
12941         (__frame_state_for): Likewise.
12942         (uw_init_context_1): Likewise.
12943         (_Unwind_GetGR): Updated.
12944         (_Unwind_SetGR): Likewise.
12945         (_Unwind_GetGRPtr): Likewise.
12946         (_Unwind_SetGRPtr): Likewise.
12947         (_Unwind_SetGRValue): Likewise.
12948         (_Unwind_GRByValue): Likewise.
12949         (uw_install_context_1): Likewise.
12950
12951         * doc/tm.texi.in: Document REG_VALUE_IN_UNWIND_CONTEXT and
12952         ASSUME_EXTENDED_UNWIND_CONTEXT.
12953         * doc/tm.texi: Regenerated.
12954
12955 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12956
12957         * Makefile.in (gengtype$(exeext)): Add $(LDFLAGS).
12958
12959 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12960
12961         * doc/invoke.texi (DEC Alpha Options, -mcpu): native support isn't
12962         Linux/GNU-specific.
12963         (DEC Alpha Options, -mtune): Likewise.
12964         (MIPS Options, -march): native is supported on IRIX.
12965
12966 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12967
12968         * config/sparc/driver-sparc.c: New file.
12969         * config/sparc/x-sparc: New file.
12970         * config.host: Use driver-sparc.o, sparc/x-sparc on sparc*-*-solaris2*.
12971         * config/sparc/sparc.opt (native): New value for enum processor_type.
12972         * config/sparc/sparc-opts.h (PROCESSOR_NATIVE): Declare.
12973         * config/sparc/sparc.c (sparc_option_override): Abort if
12974         PROCESSOR_NATIVE gets here.
12975         * config/sparc/sol2.h [__sparc__] (host_detect_local_cpu): Declare.
12976         (EXTRA_SPEC_FUNCTIONS, MCPU_MTUNE_NATIVE_SPECS,
12977         DRIVER_SELF_SPECS): Define.
12978         * doc/invoke.texi (SPARC Options, -mcpu): Document native.
12979         (SPARC Options, -mtune): Likewise.
12980         * configure.ac (EXTRA_GCC_LIBS): Check for libkstat.
12981         Substitute result.
12982         * configure: Regenerate.
12983         * Makefile.in (EXTRA_GCC_LIBS): Set.
12984         (xgcc$(exeext)): Add $(EXTRA_GCC_LIBS).
12985         (cpp$(exeext)): Likewise.
12986
12987 2011-08-08  Richard Guenther  <rguenther@suse.de>
12988
12989         * tree-vrp.c (extract_range_from_unary_expr_1): New function,
12990         split out from ...
12991         (extract_range_from_unary_expr): ... here.  Handle BIT_NOT_EXPR
12992         by composition.
12993
12994 2011-08-08  Mikael Pettersson  <mikpe@it.uu.se>
12995
12996         PR tree-optimization/50005
12997         * ipa-inline-analysis (remap_predicate): Add cast to
12998         silence signed/unsigned comparison warning.
12999
13000 2011-08-08  Richard Sandiford  <richard.sandiford@linaro.org>
13001
13002         * modulo-sched.c (get_sched_window): Use a table for the debug output.
13003         Print the current ii.
13004         (sms_schedule_by_order): Reduce whitespace in dump line.
13005
13006 2011-08-08  Richard Sandiford  <richard.sandiford@linaro.org>
13007
13008         * modulo-sched.c (get_sched_window): Use just one loop for predecessors
13009         and one loop for successors.  Fix upper bound of memory range.
13010
13011 2011-08-06  Uros Bizjak  <ubizjak@gmail.com>
13012
13013         PR target/50001
13014         * config/alpha/alpha.c (alpha_instantiate_decls): New function.
13015         (TARGET_INSTANTIATE_DECLS): New define.
13016
13017 2011-08-06  Paolo Bonzini  <bonzini@gnu.org>
13018             Mikael Morin   <mikael.morin@sfr.fr>
13019
13020         * Makefile.in (INCLUDES_FOR_TARGET): New.
13021         (LIBGCC2_CFLAGS): Use it.
13022         (CRTSTUFF_CFLAGS): Use it instead of INCLUDES.
13023
13024 2011-08-06  Uros Bizjak  <ubizjak@gmail.com>
13025
13026         * config/i386/i386.c (ix86_compute_frame_layout): Simplify
13027         frame->save_regs_using_mov calculation.
13028
13029 2011-08-06  Uros Bizjak  <ubizjak@gmail.com>
13030
13031         * config/i386/i386.md (ssemodesuffix): Remove V8SI mode.
13032         * config/i386/sse.md (castmode): New mode attribute.
13033         (avx_<castmode><avxsizesuffix>_<castmode>): Rename from
13034         avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>.
13035
13036 2011-08-05  Jan Hubicka  <jh@suse.cz>
13037
13038         PR middle-end/49494
13039         * ipa-inline-analysis.c (remap_predicate): Add bounds check.
13040
13041 2011-08-05  Jan Hubicka  <jh@suse.cz>
13042
13043         PR middle-end/49500
13044         * tree-emultls.c (new_emutls_decl):Add alias_of parameter;
13045         handle aliases.
13046         (create_emultls_var):New function.
13047         (ipa_lower_emutls): Handle aliases correctly.
13048
13049 2011-08-05  Jan Hubicka  <jh@suse.cz>
13050
13051         PR middle-end/49735
13052         * ipa-inline.c (recursive_inlining): Look through aliases.
13053
13054 2011-08-05  Jason Merrill  <jason@redhat.com>
13055
13056         * config/i386/i386.c (setup_incoming_varargs_ms_64): Move
13057         declarations to beginning of function.
13058
13059 2011-08-05  Bernd Schmidt  <bernds@codesourcery.com>
13060
13061         PR rtl-optimization/49900
13062         * sched-ebb.c (add_deps_for_risky_insns): Also add dependencies to
13063         ensure basic blocks stay in the same order.
13064
13065 2011-08-05  Aldy Hernandez  <aldyh@redhat.com>
13066
13067         * config/s390/s390.c (s390_expand_cs_hqi): Add new arguments to
13068         store_bit_field.
13069         (s390_expand_atomic): Same.
13070
13071 2011-08-05  Richard Henderson  <rth@redhat.com>
13072
13073         PR rtl-opt/49977
13074         * dwarf2cfi.c (scan_insn_after): Split out of ...
13075         (scan_trace): ... here.  Correctly place notes wrt sequences.
13076
13077 2011-08-05  Kaz Kojima  <kkojima@gcc.gnu.org>
13078             Richard Henderson  <rth@redhat.com>
13079
13080         PR rtl-opt/49982
13081         * expr.c (fixup_args_size_notes): Look through no-op moves.
13082
13083 2011-08-05  Uros Bizjak  <ubizjak@gmail.com>
13084
13085         * config/i386/i386.md (*push<mode>2): Use "o" constraint instead
13086         of "m" for operand 0.  Add type and mode attribute.
13087         (*pushxf_nointeger"): Use "<" constraint for operand 0.
13088         (*pushdf_rex64): New pattern, split out of *pushdf.  Use "m"
13089         constraint instead of "o" for opreand 1.
13090         (*pushdf): Disable for TARGET_64BIT.  Correct mode attribute.
13091         (*movdi_internal_rex64): Use "!o" constraint instead of "!m" for
13092         operand 0, alternative 4.
13093         (*movdf_internal_rex64): Ditto for operand 0, alernative 6.
13094
13095 2011-08-05  Uros Bizjak  <ubizjak@gmail.com>
13096
13097         * config/i386/predicates.md (lea_address_operand): Rename from
13098         no_seg_address_operand.
13099         * config/i386/i386.md (*lea_1): Update operand 1 predicate for rename.
13100         (*lea_1_zext): Ditto.
13101         (*lea_2): Ditto.
13102         (*lea_2_zext): Ditto.
13103
13104 2011-08-05  Uros Bizjak  <ubizjak@gmail.com>
13105
13106         * config/i386/i386.c (ix86_print_operand_address): Handle SUBREGs of
13107         parts.base and parts.index.
13108         * config/i386/predicates.md (aligned_operand): Ditto.
13109         (cmpxchg8b_pic_memory_operand): Ditto.
13110
13111 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13112
13113         * config/soft-fp: Move to ../libgcc.
13114         * Makefile.in (SFP_MACHINE): Remove.
13115         (libgcc-support): Remove $(SFP_MACHINE) dependency.
13116         * config/arm/sfp-machine.h: Move to ../libgcc/config/arm.
13117         * config/arm/t-arm-softfp: Move to
13118         ../libgcc/config/arm/t-softfp.
13119         * config/c6x/sfp-machine.h: Move to ../libgcc/config/c6x.
13120         * config/c6x/t-c6x-softfp: Remove.
13121         * config/i386/sfp-machine.h: Move to ../libgcc/config/i386.
13122         * config/i386/t-fprules-softfp: Move to
13123         ../libgcc/config/t-softfp-tf.
13124         * config/ia64/sfp-machine.h: Move to ../libgcc/config/ia64.
13125         * config/ia64/t-fprules-softfp: Remove.
13126         * config/lm32/sfp-machine.h: Move to ../libgcc/config/lm32.
13127         * config/lm32/t-fprules-softfp: Remove.
13128         * config/moxie/sfp-machine.h: Remove.
13129         * config/moxie/t-moxie-softfp: Remove.
13130         * config/rs6000/darwin-ldouble-format: Move to
13131         ../libgcc/config/rs6000/ibm-ldouble-format.
13132         * config/rs6000/darwin-ldouble.c: Move to
13133         ../libgcc/config/rs6000/ibm-ldouble.c
13134         * config/rs6000/libgcc-ppc-glibc.ver: Move to ../libgcc/config/rs6000.
13135         * config/rs6000/libgcc-ppc64.ver: Likewise.
13136         * config/rs6000/sfp-machine.h: Likewise.
13137         * config/rs6000/t-aix43 (SHLIB_MAPFILES): Remove
13138         $(srcdir)/config/rs6000/libgcc-ppc64.ver.
13139         (LIB2FUNCS_EXTRA): Remove.
13140         (TARGET_LIBGCC2_CFLAGS): Remove.
13141         * config/rs6000/t-aix52: Likewise
13142         * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Remove
13143         $(srcdir)/config/rs6000/darwin-ldouble.c.
13144         (SHLIB_MAPFILES): Remove.
13145         * config/rs6000/t-darwin64 (LIB2FUNCS_EXTRA): Remove
13146         $(srcdir)/config/rs6000/darwin-ldouble.c.
13147         * config/rs6000/t-fprules-softfp: Move to
13148         ../libgcc/config/t-softfp-sfdf.
13149         * config/rs6000/t-freebsd: Move to ../libgcc/config/rs6000.
13150         * config/rs6000/t-linux64 (softfp_wrap_start, softfp_wrap_end): Remove.
13151         * config/rs6000/t-ppccomm (LIB2FUNCS_EXTRA): Remove
13152         $(srcdir)/config/rs6000/darwin-ldouble.c.
13153         * config/score/sfp-machine.h: Move to ../libgcc/config/score.
13154         * config/score/t-score-softfp: Remove.
13155         * config.gcc (arm*-*-linux*): Remove arm/t-arm-softfp,
13156         soft-fp/t-softfp from tmake_file.
13157         (arm*-*-uclinux*): Likewise.
13158         (arm*-*-ecos-elf): Likewise.
13159         (arm*-*-eabi*, arm*-*-symbianelf*): Likewise.
13160         (arm*-*-rtems*): Likewise.
13161         (arm*-*-elf): Likewise.
13162         (moxie-*-elf): Remove moxie/t-moxie-softfp, soft-fp/t-softfp from
13163         tmake_file.
13164         (moxie-*-uclinux*): Likewise.
13165         (moxie-*-rtems*): Likewise.
13166         (lm32-*-elf*): Remove lm32/t-fprules-softfp, soft-fp/t-softfp from
13167         tmake_file.
13168         (lm32-*-rtems*): Likewise.
13169         (lm32-*-uclinux*): Likewise.
13170         (powerpc-*-freebsd*): Remove rs6000/t-freebsd,
13171         rs6000/t-fprules-softfp, soft-fp/t-softfp from tmake_file.
13172         (powerpc-*-linux*, powerpc64-*-linux*): Remove
13173         rs6000/t-fprules-softfp, soft-fp/t-softfp from tmake_file.
13174         (score-*-elf): Remove score/t-score-softfp, soft-fp/t-softfp from
13175         tmake_file.
13176         (tic6x-*-elf): Remove c6x/t-c6x-softfp, soft-fp/t-softfp from
13177         tmake_file.
13178         (tic6x-*-uclinux): Likewise.
13179         (i[34567]86-*-darwin*, x86_64-*-darwin*): Remove i386/t-fprules-softfp,
13180         soft-fp/t-softfp from tmake_file.
13181         (i[34567]86-*-linux*, x86_64-*-linux*, i[34567]86-*-kfreebsd*-gnu)
13182         (x86_64-*-kfreebsd*-gnu, i[34567]86-*-gnu*): Likewise.
13183         (i[34567]86-*-solaris2*, x86_64-*-solaris2.1[0-9]*): Likewise.
13184         (i[34567]86-*-cygwin*, i[34567]86-*-mingw*, x86_64-*-mingw*): Likewise.
13185         (i[34567]86-*-freebsd*, x86_64-*-freebsd*): Likewise.
13186
13187 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13188
13189         * Makefile.in (FPBIT_FUNCS, DPBIT_FUNCS, TPBIT_FUNCS): Remove.
13190         (libgcc-support): Remove $(FPBIT), $(DPBIT), $(TPBIT) dependencies.
13191         (libgcc.mvars): Remove FPBIT, FPBIT_FUNCS, DPBIT, DPBIT_FUNCS,
13192         TPBIT, TPBIT_FUNCS.
13193         * config/fp-bit.c, config/fp-bit.h: Move to ../libgcc.
13194         * config/arm/t-strongarm-elf (FPBIT, DPBIT, dp-bit.c, fp-bit.c):
13195         Remove.
13196         * config/arm/t-vxworks: Likewise.
13197         * config/arm/t-wince-pe: Likewise.
13198         * config/avr/t-avr (fp-bit.c, FPBIT): Remove.
13199         * config/bfin/t-bfin (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
13200         * config/bfin/t-bfin-elf: Likewise.
13201         * config/bfin/t-bfin-linux: Likewise.
13202         * config/bfin/t-bfin-uclinux: Likewise.
13203         * config/cris/t-cris (FPBIT, DPBIT, dp-bit.c, tmplibgcc_fp_bit.c):
13204         Remove.
13205         * config/fr30/t-fr30: Likewise.
13206         * config/frv/t-frv: Likewise.
13207         * config/h8300/t-h8300 (FPBIT, fp-bit.c): Remove.
13208         * config/iq2000/t-iq2000 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
13209         * config/m32c/t-m32c: Likewise.
13210         * config/m32r/t-linux: (LIB2FUNCS_EXTRA, fp-bit.c, dp-bit.c): Remove.
13211         * config/m32r/t-m32r (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
13212         * config/mcore/t-mcore: Likewise.
13213         * config/mep/t-mep: Likewise.
13214         * config/microblaze/t-microblaze: Likewise.
13215         * config/mips/t-linux64 (TPBIT, tp-bit.c): Remove.
13216         * config/mips/t-mips (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
13217         * config/mips/t-sdemtk (FPBIT, DPBIT): Remove.
13218         * config/mips/t-sr71k (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
13219         * config/mn10300/t-linux: Remove.
13220         * config/mn10300/t-mn10300 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
13221         * config/pdp11/t-pdp11: Likewise.
13222         * config/picochip/t-picochip (FPBIT, fp-bit.c): Remove.
13223         * config/rs6000/ppc64-fp.c: Move to ../libgcc/config/rs6000.
13224         * config/rs6000/t-aix43 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
13225         (LIB2FUNCS_EXTRA): Remove $(srcdir)/config/rs6000/ppc64-fp.c.
13226         * config/rs6000/t-aix52: Likewise.
13227         * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Remove
13228         $(srcdir)/config/rs6000/ppc64-fp.c.
13229         * config/rs6000/t-fprules-fpbit: Remove.
13230         * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Remove.
13231         * config/rs6000/t-lynx (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
13232         * config/sh/t-netbsd (FPBIT, DPBIT): Remove.
13233         * config/sh/t-sh (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
13234         * config/sparc/t-elf: Likewise.
13235         * config/sparc/t-leon: Likewise.
13236         * config/sparc/t-leon3: Likewise.
13237         * config/spu/t-spu-elf: Likewise.
13238         (DPBIT_FUNCS): Remove.
13239         * config/stormy16/t-stormy16 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
13240         * config/v850/t-v850: Likewise.
13241         * config.gcc (avr-*-rtems*): Add avr/avr-lib.h to libgcc_tm_file.
13242         (avr-*-*): Likewise.
13243         (h8300-*-rtems*): Set libgcc_tm_file.
13244         (h8300-*-elf*): Likewise.
13245         (powerpc-*-eabisimaltivec*): Remove rs6000/t-fprules-fpbit from
13246         tmake_file.
13247         (powerpc-*-eabisim*): Likewise.
13248         (powerpc-*-elf*): Likewise.
13249         (powerpc-*-eabialtivec*): Likewise.
13250         (powerpc-xilinx-eabi*): Likewise.
13251         (powerpc-*-eabi*): Likewise.
13252         (powerpc-*-rtems*): Likewise.
13253         (powerpc-wrs-vxworks, powerpc-wrs-vxworksae): Likewise.
13254         (powerpcle-*-elf*): Likewise.
13255         (powerpcle-*-eabisim*): Likewise.
13256         (powerpcle-*-eabi*): Likewise.
13257         (rx-*-elf*): Add rx/rx-lib.h to libgcc_tm_file.
13258         (am33_2.0-*-linux*): Remove mn10300/t-linux from tmake_file.
13259         * doc/fragments.texi (Target Fragment, Floating Point Emulation):
13260         Remove.
13261
13262 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13263
13264         * Makefile.in (UNWIND_H): Remove.
13265         (LIB2ADDEH, LIB2ADDEHSTATIC, LIB2ADDEHSHARED): Move to
13266         ../libgcc/Makefile.in.
13267         (LIBUNWIND, SHLIBUNWIND_LINK, SHLIBUNWIND_INSTALL): Likewise.
13268         (LIBUNWINDDEP): Remove.
13269         (libgcc-support): Remove LIB2ADDEH, $(srcdir)/emutls.c dependencies.
13270         (libgcc.mvars): Remove LIB2ADDEH, LIB2ADDEHSTATIC, LIB2ADDEHSHARED,
13271         LIBUNWIND, SHLIBUNWIND_LINK, SHLIBUNWIND_INSTALL.
13272         (stmp-int-hdrs): Remove $(UNWIND_H) dependency.
13273         Don't copy $(UNWIND_H).
13274         * config.gcc (ia64*-*-linux*): Remove with_system_libunwind handling.
13275         * configure.ac (GCC_CHECK_UNWIND_GETIPINFO): Remove.
13276         * aclocal.m4: Regenerate.
13277         * configure: Regenerate.
13278         * emutls.c, unwind-c.c, unwind-compat.c, unwind-compat.h,
13279         unwind-dw2-fde-compat.c, unwind-dw2-fde-glibc.c, unwind-dw2-fde.c,
13280         unwind-dw2-fde.h, unwind-dw2.c, unwind-dw2.h, unwind-generic.h,
13281         unwind-pe.h, unwind-sjlj.c, unwind.inc: Move to ../libgcc.
13282         * unwind-dw2-fde-darwin.c: Move to ../libgcc/config.
13283         * config/arm/libunwind.S, config/arm/pr-support.c,
13284         config/arm/unwind-arm.c, config/arm/unwind-arm.h: Move to
13285         ../libgcc/config/arm.
13286         * config/arm/t-bpabi (UNWIND_H, LIB2ADDEH): Remove.
13287         * config/arm/t-symbian (UNWIND_H, LIB2ADDEH): Remove.
13288         * config/frv/t-frv ($(T)frvbegin$(objext)): Use
13289         $(srcdir)/../libgcc to refer to unwind-dw2-fde.h.
13290         ($(T)frvend$(objext)): Likewise.
13291         * config/ia64/t-glibc (LIB2ADDEH): Remove.
13292         * config/ia64/t-glibc-libunwind: Move to ../libgcc/config/ia64.
13293         * config/ia64/fde-glibc.c, config/ia64/fde-vms.c,
13294         config/ia64/unwind-ia64.c, config/ia64/unwind-ia64.h: Move to
13295         ../libgcc/config/ia64.
13296         * config/ia64/t-hpux (LIB2ADDEH): Remove.
13297         * config/ia64/t-ia64 (LIB2ADDEH): Remove.
13298         * config/ia64/t-vms (LIB2ADDEH): Remove.
13299         * config/ia64/vms.h (UNW_IVMS_MODE,
13300         MD_UNW_COMPATIBLE_PERSONALITY_P): Remove.
13301         * config/picochip/t-picochip (LIB2ADDEH): Remove.
13302         * config/rs6000/aix.h (R_LR, MD_FROB_UPDATE_CONTEXT): Remove.
13303         * config/rs6000/t-darwin (LIB2ADDEH): Remove.
13304         * config/rs6000/darwin-fallback.c: Move to ../libgcc/config/rs6000.
13305         * config/sh/t-sh ($(T)unwind-dw2-Os-4-200.o): Use
13306         $(srcdir)/../libgcc to refer to unwinder sources.
13307         * config/spu/t-spu-elf (LIB2ADDEH): Remove.
13308         * config/t-darwin (LIB2ADDEH): Remove.
13309         * config/t-freebsd (LIB2ADDEH): Remove.
13310         * config/t-libunwind (LIB2ADDEH, LIB2ADDEHSTATIC): Remove.
13311         * config/t-libunwind-elf: Move to ../libgcc/config.
13312         * config/t-linux (LIB2ADDEH): Remove.
13313         * config/t-sol2 (LIB2ADDEH): Remove.
13314         * config/xtensa/t-xtensa (LIB2ADDEH): Remove.
13315         * system.h (MD_FROB_UPDATE_CONTEXT): Poison.
13316
13317 2011-08-05  H.J. Lu  <hongjiu.lu@intel.com>
13318
13319         * config/i386/i386.c (processor_alias_table): Add core-avx-i.
13320
13321         * doc/invoke.texi: Document core-avx-i.
13322
13323 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13324
13325         * tsystem.h (CONST_CAST2, CONST_CAST): Define.
13326
13327 2011-08-05  Ira Rosen  <ira.rosen@linaro.org>
13328
13329         * tree-vect-loop.c (vect_create_epilog_for_reduction): Use the
13330         result of multiple results reduction when extracting the final
13331         value using scalar code.
13332
13333 2011-08-05  Richard Guenther  <rguenther@suse.de>
13334
13335         PR tree-optimization/49984
13336         * tree-vrp.c (extract_range_from_binary_expr_1): Handle BIT_XOR_EXPR.
13337
13338 2011-08-05  Richard Guenther  <rguenther@suse.de>
13339
13340         * tree-vrp.c (zero_nonzero_bits_from_vr): Make sure to always
13341         return true for constant integer ranges.
13342         (extract_range_from_binary_expr_1): Simplify BIT_AND_EXPR and
13343         BIT_IOR_EXPR handling.
13344
13345 2011-08-04  Kai Tietz  <ktietz@redhat.com>
13346
13347         * config/i386/i386.c (setup_incoming_varargs_ms_64): Set
13348         ix86_varargs_gpr_size and ix86_varargs_fpr_size to zero.
13349
13350 2011-08-04  Ira Rosen  <ira.rosen@linaro.org>
13351
13352         * tree-vectorizer.h (struct _stmt_vec_info): Add new field for
13353         pattern def statement, and its access macro.
13354         (NUM_PATTERNS): Set to 5.
13355         * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
13356         pattern def statement.
13357         (vect_transform_loop): Likewise.
13358         * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add new
13359         function vect_recog_over_widening_pattern ().
13360         (vect_operation_fits_smaller_type): New function.
13361         (vect_recog_over_widening_pattern, vect_mark_pattern_stmts):
13362         Likewise.
13363         (vect_pattern_recog_1): Move the code that marks pattern
13364         statements to vect_mark_pattern_stmts (), and call it.  Update
13365         documentation.
13366         * tree-vect-stmts.c (vect_supportable_shift): New function.
13367         (vect_analyze_stmt): Handle pattern def statement.
13368         (new_stmt_vec_info): Initialize pattern def statement.
13369
13370 2011-08-04  Richard Henderson  <rth@redhat.com>
13371
13372         PR target/49964
13373         * config/i386/i386.c (ix86_expand_call): Don't create nested
13374         PARALLELs for TARGET_VZEROUPPER.
13375         (ix86_split_call_vzeroupper): Fix extraction of the original call.
13376         * config/i386/i386.md (*call_rex64_ms_sysv_vzeroupper): Don't
13377         recognize nested PARALLELs.
13378         (*call_pop_vzeroupper, *sibcall_pop_vzeroupper,
13379         *call_value_rex64_ms_sysv_vzeroupper, *call_value_pop_vzeroupper,
13380         *sibcall_value_pop_vzeroupper): Likewise.
13381
13382 2011-08-04  Richard Henderson  <rth@redhat.com>
13383
13384         PR middle-end/49968
13385         * calls.c (expand_call): Use fixup_args_size_notes for
13386         emit_stack_restore.
13387         * expr.c (fixup_args_size_notes): Allow STACK_POINTER_REGNUM sets
13388         in non-standard modes.
13389
13390 2011-08-04  Jakub Jelinek  <jakub@redhat.com>
13391
13392         * gcc.c (self_spec): New variable.
13393         (static_specs): Add self_spec.
13394         (main): Call do_self_spec on "self_spec" specs after reading
13395         user specs files.  Move compare_debug handling right after that.
13396
13397 2011-08-04  Richard Guenther  <rguenther@suse.de>
13398
13399         * tree-vrp.c (vrp_expr_computes_nonnegative): Remove.
13400         (value_range_nonnegative_p): New function.
13401         (ssa_name_nonnegative_p): Use it.
13402         (value_range_constant_singleton): New function.
13403         (op_with_constant_singleton_value_range): Use it.
13404         (extract_range_from_binary_expr_1): New function, split out from ...
13405         (extract_range_from_binary_expr): ... this.  Remove fallback
13406         constant folding done here.
13407
13408 2011-08-04  Richard Guenther  <rguenther@suse.de>
13409
13410         PR tree-optimization/49806
13411         * tree-vrp.c (op_with_boolean_value_range_p): New function.
13412         (simplify_truth_ops_using_ranges): Simplify.  Allow inserting
13413         a new statement for a final conversion to bool.
13414
13415 2011-08-04  Romain Geissler  <romain.geissler@gmail.com>
13416
13417         * gengtype-state.c: Include "bconfig.h" if
13418         GENERATOR_FILE is defined, "config.h" otherwise.
13419         * gengtype.c: Likewise.
13420         * gengtype-lex.l: Likewise.
13421         * gengtype-parse.c: Likewise.
13422         * Makefile.in (gengtype-lex.o-warn): New variable.
13423         (plugin_resourcesdir): Likewise.
13424         (plugin_bindir): Likewise.
13425         (plugin_includedir): Use $(plugin_resourcesdir) as prefix base.
13426         (MOSTLYCLEANFILES): Add gengtype$(exeext).
13427         (native): Depend on gengtype$(exeext) is $enable_plugin
13428         is set to "yes".
13429         (gtype.state): Depend on s-gtype. Use temporary file.
13430         (gengtype-lex.o): New rule.
13431         (gengtype-parse.o): Likewise.
13432         (gengtype-state.o): Likewise.
13433         (gengtype$(exeext)): Likewise.
13434         (install-gengtype): Likewise.
13435         (gengtype.o): Likewise.
13436         (build/gengtype.o): Depend on version.h.
13437         (build/gengtype-state): Depend on double-int.h, version.h,
13438         $(HASHTAB_H), $(OBSTACK_H), $(XREGEX_H) and build/errors.o.
13439         (install-plugin): Depend on install-gengtype.
13440
13441 2011-08-04  Jakub Jelinek  <jakub@redhat.com>
13442
13443         PR middle-end/49905
13444         * tree.h (init_attributes): New prototype.
13445         * attribs.c (init_attributes): No longer static.
13446
13447 2011-08-04  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
13448
13449         * config/arm/arm.c (arm_set_fixed_optab_libfunc): Constify
13450         maybe_suffix.
13451
13452 2011-08-03   David Li  <davidxl@google.com>
13453
13454         * tree-optimize.c (execute_fixup_cfg): Fix up entry
13455         outgoing edge counts after inlining.
13456
13457 2011-08-03   David Li  <davidxl@google.com>
13458
13459         * profile.c (compute_branch_probabilities): Compute
13460         function frequency after profile annotation.
13461
13462 2011-08-04  Alan Modra  <amodra@gmail.com>
13463
13464         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Simplify
13465         use_backchain_to_restore_sp initialisation.
13466         (rs6000_legitimate_offset_address_p): Simplify offset test.
13467
13468 2011-08-03  Richard Henderson  <rth@redhat.com>
13469
13470         * config/spu/spu.md: Use define_c_enum instead of define_constants.
13471         (UNSPECV_BLOCKAGE, UNSPECV_LNOP, UNSPECV_SYNC): Rename from UNSPEC_*.
13472         (UNSPECV_NOP): New.
13473
13474 2011-08-03  Richard Henderson  <rth@redhat.com>
13475
13476         PR target/34888
13477         * config/avr/avr.md: New splitter for REG_ARGS_SIZE 0.
13478
13479 2011-08-03  Jakub Jelinek  <jakub@redhat.com>
13480
13481         PR tree-optimization/49948
13482         * gimple.c (walk_stmt_load_store_addr_ops): Walk CONSTRUCTOR elements.
13483
13484 2011-08-03  Anatoly Sokolov  <aesok@post.ru>
13485
13486         * config/m32c/m32c.c (class_sizes): Remove.
13487         (reduce_class): Change arguments and return type to reg_class_t.
13488         Change type cc var to HARD_REG_SET. Change type best var to
13489         reg_class_t. Change type best_size var to unsigned int. Remove
13490         initialization class_sizes var. Use reg_class_size array instead
13491         of class_sizes. Use reg_class_contents array instead
13492         of class_contents.
13493
13494 2011-08-03  Richard Guenther  <rguenther@suse.de>
13495
13496         PR middle-end/49958
13497         * fold-const.c (fold_binary_loc): Only associate
13498         (+ (+ (* a b) c) (* d e)) as (+ (+ (* a b) (* d e)) c) if
13499         overflow wraps.
13500
13501 2011-08-03  Alan Modra  <amodra@gmail.com>
13502
13503         PR rtl-optimization/49941
13504         * jump.c (mark_jump_label): Comment.
13505         (mark_jump_label_1): Set JUMP_LABEL for return jumps.
13506         * emit-rtl.c (copy_rtx_if_shared_1, copy_insn_1): Leave RETURN shared.
13507         (mark_used_flags): Don't mark RETURN.
13508
13509 2011-08-03  Richard Guenther  <rguenther@suse.de>
13510
13511         PR tree-optimization/49938
13512         * tree-scalar-evolution.c (interpret_loop_phi): Gracefully
13513         deal with a POLYNOMIAL_CHREC.
13514
13515 2011-08-03  Revital Eres  <revital.eres@linaro.org>
13516
13517         * modulo-sched.c (calculate_stage_count,
13518         calculate_must_precede_follow, get_sched_window,
13519         try_scheduling_node_in_cycle, remove_node_from_ps): Add
13520         declaration.
13521         (update_node_sched_params, set_must_precede_follow, optimize_sc):
13522         New functions.
13523         (reset_sched_times): Call update_node_sched_params.
13524         (sms_schedule): Call optimize_sc.
13525         (get_sched_window): Change function arguments.
13526         (sms_schedule_by_order): Update call to get_sched_window.
13527         Call set_must_precede_follow.
13528         (calculate_stage_count): Add function argument.
13529
13530 2011-08-02  Richard Henderson  <rth@redhat.com>
13531
13532         PR target/49864
13533         PR target/49879
13534         * reg-notes.def (REG_ARGS_SIZE): New.
13535         * calls.c (emit_call_1): Emit REG_ARGS_SIZE for call_pop.
13536         (expand_call): Add REG_ARGS_SIZE to emit_stack_restore.
13537         * cfgcleanup.c (old_insns_match_p): Don't allow cross-jumping to
13538         different stack levels.
13539         * combine-stack-adj.c (adjust_frame_related_expr): Remove.
13540         (maybe_move_args_size_note): New.
13541         (combine_stack_adjustments_for_block): Use it.
13542         * combine.c (distribute_notes): Place REG_ARGS_SIZE.
13543         * dwarf2cfi.c (dw_cfi_row_struct): Remove args_size member.
13544         (dw_trace_info): Add beg_true_args_size, end_true_args_size,
13545         beg_delay_args_size, end_delay_args_size, eh_head, args_size_undefined.
13546         (cur_cfa): New.
13547         (queued_args_size): Remove.
13548         (add_cfi_args_size): Assert size is non-negative.
13549         (stack_adjust_offset, dwarf2out_args_size): Remove.
13550         (dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust): Remove.
13551         (notice_args_size, notice_eh_throw): New.
13552         (dwarf2out_frame_debug_def_cfa): Use cur_cfa.
13553         (dwarf2out_frame_debug_adjust_cfa): Likewise.
13554         (dwarf2out_frame_debug_cfa_offset): Likewise.
13555         (dwarf2out_frame_debug_expr): Likewise.  Don't stack_adjust_offset.
13556         (dwarf2out_frame_debug): Don't handle non-frame-related-p insns.
13557         (change_cfi_row): Don't emit args_size.
13558         (maybe_record_trace_start_abnormal): Split out from ...
13559         (maybe_record_trace_start): Here.  Set args_size_undefined.
13560         (create_trace_edges): Update to match.
13561         (scan_trace): Handle REG_ARGS_SIZE.
13562         (connect_traces): Connect args_size between EH insns.
13563         * emit-rtl.c (try_split): Handle REG_ARGS_SIZE.
13564         * explow.c (suppress_reg_args_size): New.
13565         (adjust_stack_1): Split out from ...
13566         (adjust_stack): ... here.
13567         (anti_adjust_stack): Use it.
13568         (allocate_dynamic_stack_space): Suppress REG_ARGS_SIZE.
13569         * expr.c (mem_autoinc_base): New.
13570         (fixup_args_size_notes): New.
13571         (emit_single_push_insn_1): Rename from emit_single_push_insn.
13572         (emit_single_push_insn): New.  Generate REG_ARGS_SIZE.
13573         * recog.c (peep2_attempt): Handle REG_ARGS_SIZE.
13574         * reload1.c (reload_as_needed): Likewise.
13575         * rtl.h (fixup_args_size_notes): Declare.
13576
13577 2011-08-02  Paolo Carlini  <paolo.carlini@oracle.com>
13578
13579         PR bootstrap/49914
13580         * fold-const.c (fold_plusminus_mult_expr): Use abs_hwi instead
13581         of abs.
13582         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
13583         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Likewise.
13584
13585 2011-08-02  Richard Henderson  <rth@redhat.com>
13586
13587         * config/h8300/h8300.c (push, pop): Return the insn.
13588         (h8300_swap_into_er6): Generate correct unwind info.
13589         (h8300_swap_out_of_er6): Likewise.
13590         * dwarf2cfi.c (def_cfa_1): Clear cfa_cfi if we no longer have a
13591         complex cfa expression.
13592         (dwarf2out_frame_debug_def_cfa): Allow (plus (mem) (const_int)) too.
13593
13594 2011-08-02  H.J. Lu  <hongjiu.lu@intel.com>
13595
13596         * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
13597
13598 2011-08-02  Richard Henderson  <rth@redhat.com>
13599
13600         PR target/49878
13601         * config/h8300/h8300.c (h8300_move_ok): New.
13602         * config/h8300/h8300-protos.h: Declare it.
13603         * config/h8300/h8300.md (P): New mode iterator.
13604         (*movqi_h8300, *movqi_h8300hs, movqi): Use h8300_move_ok.
13605         (*movqi_h8sx, *movhi_h8300, *movhi_h8300hs, movhi): Likewise.
13606         (movsi, *movsi_h8300, *movsi_h8300hs): Likewise.
13607         (*pushqi1_h8300): Rename from pushqi1_h8300; use PRE_MODIFY.
13608         (*pushqi1_h8300hs_<P>): Macroize from pushqi1_h8300hs_advanced
13609         and pushqi1_h8300hs_normal; use PRE_MODIFY and
13610         register_no_sp_elim_operand.
13611         (*pushhi1_h8300hs_<P>): Similarly.
13612         (pushqi1, pushhi1, pushhi1_h8300): Remove.
13613         * config/h8300/predicates.md (register_no_sp_elim_operand): New.
13614
13615 2011-08-02  Richard Henderson  <rth@redhat.com>
13616
13617         PR target/49881
13618         * config/avr/avr.md (push<MPUSH>1): Don't constrain the operand.
13619
13620 2011-08-02  Jakub Jelinek  <jakub@redhat.com>
13621
13622         * c-parser.c (enum c_parser_prec): New enum, moved from within
13623         c_parser_binary_expression.
13624         (c_parser_binary_expression): Add PREC argument.  Stop parsing
13625         if operator has lower or equal precedence than PREC.
13626         (c_parser_conditional_expression, c_parser_omp_for_loop): Adjust
13627         callers.
13628         (c_parser_omp_atomic): Handle parsing OpenMP 3.1 atomics.
13629         Adjust c_finish_omp_atomic caller.
13630         (c_parser_omp_taskyield): New function.
13631         (c_parser_pragma): Handle PRAGMA_OMP_TASKYIELD.
13632         (c_parser_omp_clause_name): Handle final and mergeable clauses.
13633         (c_parser_omp_clause_final, c_parser_omp_clause_mergeable): New
13634         functions.
13635         (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_FINAL
13636         and PRAGMA_OMP_CLAUSE_MERGEABLE.
13637         (OMP_TASK_CLAUSE_MASK): Allow final and mergeable clauses.
13638         (c_parser_omp_clause_reduction): Handle min and max.
13639         * c-typeck.c (c_finish_omp_clauses): Don't complain about
13640         const qualified predetermined vars in firstprivate clause.
13641         andle OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
13642         Handle MIN_EXPR and MAX_EXPR.
13643         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_FINAL
13644         and OMP_CLAUSE_MERGEABLE.
13645         (dump_generic_node): Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD
13646         and OMP_ATOMIC_CAPTURE_NEW.
13647         * tree.c (omp_clause_num_ops): Add OMP_CLAUSE_FINAL and
13648         OMP_CLAUSE_MERGEABLE.
13649         (omp_clause_code_name): Likewise.
13650         (walk_tree_1): Handle OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
13651         * tree.h (enum omp_clause_code): Add OMP_CLAUSE_FINAL
13652         and OMP_CLAUSE_MERGEABLE.
13653         (OMP_CLAUSE_FINAL_EXPR): Define.
13654         * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE_FINAL and
13655         OMP_CLAUSE_MERGEABLE.
13656         (expand_task_call): Likewise.
13657         (expand_omp_atomic_load, expand_omp_atomic_store): New functions.
13658         (expand_omp_atomic_fetch_op): Handle cases where old or new
13659         value is needed afterwards.
13660         (expand_omp_atomic): Call expand_omp_atomic_load resp.
13661         expand_omp_atomic_store.
13662         * gimplify.c (gimplify_omp_atomic, gimplify_expr): Handle
13663         OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and OMP_ATOMIC_CAPTURE_NEW.
13664         (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
13665         OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
13666         * tree-nested.c (convert_nonlocal_omp_clauses,
13667         convert_local_omp_clauses): Likewise.
13668         * tree.def (OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD,
13669         OMP_ATOMIC_CAPTURE_NEW): New.
13670         * gimple.h (GF_OMP_ATOMIC_NEED_VALUE): New.
13671         (gimple_omp_atomic_need_value_p, gimple_omp_atomic_set_need_value):
13672         New inlines.
13673         * omp-builtins.def (BUILT_IN_GOMP_TASKYIELD): New builtin.
13674         * doc/generic.texi: Mention OMP_CLAUSE_COLLAPSE,
13675         OMP_CLAUSE_UNTIED, OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
13676
13677 2011-08-02  Kai Tietz  <ktietz@redhat.com>
13678
13679         * gimple.c (canonicalize_cond_expr_cond): Handle cast from
13680         boolean-type.
13681         (ssa_forward_propagate_and_combine): Interprete result of
13682         forward_propagate_comparison.
13683         * gcc/gimple-fold.c (fold_gimple_assign): Add canonicalization for
13684         boolean-typed operands for comparisons.
13685
13686 2011-08-02  Georg-Johann Lay  <avr@gjlay.de>
13687
13688         * config/avr/libgcc.S: Gather related function in the
13689         same input section.
13690         (__mulqihi3, __mulqihi3, __divmodqi4, __divmodhi4, __udivmodsi4,
13691         __divmodsi4): Use XCALL/XJMP instead of rcall/rjmp for external
13692         references.
13693         (__udivmodqi4, __divmodqi4, __udivmodhi4, __divmodhi4,
13694         __udivmodsi4, __divmodsi4, __prologue_saves__,
13695         __epilogue_restores__, _exit, __tablejump2__, __tablejump__,
13696         __do_copy_data, __do_clear_bss, __do_global_ctors,
13697         __do_global_dtors, __tablejump_elpm__): Enclose in DEFUN/ENDF.
13698
13699 2011-08-02  Uros Bizjak  <ubizjak@gmail.com>
13700
13701         PR target/47766
13702         * doc/md.texi (stack_protect_set): The pattern moves ptr_mode value.
13703         (stack_protect_test): The pattern compares ptr_mode value.
13704
13705 2011-08-02  Alan Modra  <amodra@gmail.com>
13706
13707         * config/rs6000/rs6000.c (rs6000_emit_prologue): Add REG_CFA_RESTORE
13708         note for save_LR_around_toc_setup sequence.
13709
13710 2011-08-01  H.J. Lu  <hongjiu.lu@intel.com>
13711
13712         * config/i386/lzcntintrin.h (__lzcnt64): Replace long with long long.
13713
13714 2011-08-01  Sebastian Pop  <sebastian.pop@amd.com>
13715             Joseph Myers  <joseph@codesourcery.com>
13716
13717         * Makefile.in (hwint.o): Depend on DIAGNOSTIC_CORE_H.
13718         * hwint.c: Include diagnostic-core.h.
13719         (abs_hwi): New.
13720         (gcd): Moved here...
13721         (pos_mul_hwi): New.
13722         (mul_hwi): New.
13723         (least_common_multiple): Moved here...
13724         * hwint.h (gcd): ... from here.
13725         (least_common_multiple): ... from here.
13726         (HOST_WIDE_INT_MIN): New.
13727         (HOST_WIDE_INT_MAX): New.
13728         (abs_hwi): Declared.
13729         (gcd): Declared.
13730         (pos_mul_hwi): Declared.
13731         (mul_hwi): Declared.
13732         (least_common_multiple): Declared.
13733         * omega.c (check_pos_mul): Removed.
13734         (check_mul): Removed.
13735         (omega_solve_geq): Use pos_mul_hwi instead of check_pos_mul and
13736         mul_hwi instead of check_mul.
13737
13738 2011-08-01  Richard Henderson  <rth@redhat.com>
13739
13740         PR target/49881
13741         * config/avr/avr.h (PUSH_ROUNDING): New.
13742         * config/avr/avr.md (pushqi1): Rename from *pushqi.
13743         (*pushhi, *pushsi, *pushsf): Remove.
13744         (MPUSH): New mode iterator.
13745         (push<MPUSH>1): New expander.
13746
13747 2011-08-01  Anatoly Sokolov  <aesok@post.ru>
13748
13749         * config/mmix/mmix.h (PREFERRED_RELOAD_CLASS,
13750         PREFERRED_OUTPUT_RELOAD_CLASS): Remove macro.
13751         * config/mmix/mmix-protos.h (mmix_preferred_reload_class,
13752         mmix_preferred_output_reload_class): Remove.
13753         * config/mmix/mmix.c (mmix_preferred_reload_class,
13754         mmix_preferred_output_reload_class): Make static. Change rclass
13755         argument and return type to reg_class_t.
13756         (TARGET_PREFERRED_RELOAD_CLASS,
13757         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
13758
13759 2011-08-01  Joern Rennecke  <joern.rennecke@embecosm.com>
13760
13761         * mode-switching.c (optimize_mode_switching): Fix bug in MODE_AFTER
13762         handling.
13763
13764 2011-08-01  H.J. Lu  <hongjiu.lu@intel.com>
13765
13766         PR target/47766
13767         * config/i386/i386.md (PTR): New.
13768         (stack_protect_set: Check TARGET_LP64 instead of TARGET_64BIT.
13769         (stack_protect_test): Likewise.
13770         (stack_protect_set_<mode>): Replace ":P" with ":PTR".
13771         (stack_tls_protect_set_<mode>): Likewise.
13772         (stack_tls_protect_test_<mode>): Likewise.
13773
13774 2011-08-01  Uros Bizjak  <ubizjak@gmail.com>
13775
13776         PR target/49927
13777         * config/i386/i386.c (ix86_address_subreg_operand): New.
13778         (ix86_decompose_address): Use ix86_address_subreg_operand.
13779         (ix86_legitimate_address_p): Do not assert that subregs satisfy
13780         register_no_elim_operand in DImode.
13781
13782 2011-08-01  Ira Rosen  <ira.rosen@linaro.org>
13783
13784         PR tree-optimization/49926
13785         * tree-vect-loop.c (vect_is_slp_reduction): Check that a statement
13786         in a chain doesn't have uses both inside and outside the loop.
13787
13788 2011-08-01  Georg-Johann Lay  <avr@gjlay.de>
13789
13790         * config/avr/avr.h (mcu_type_s): Add errata_skip field.
13791         * config/avr/avr-devices.c (avr_mcu_types): Use it.
13792         * config/avr/avr-mcus.def (AVR_MCU): Use it.
13793         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use it to builtin
13794         define __AVR_ERRATA_SKIP__ and __AVR_ERRATA_SKIP_JMP_CALL__.
13795         * config/avr/libgcc.S (__mulshisi3, __ffshi2, __fmulsu_exit):
13796         Use __AVR_ERRATA_SKIP_JMP_CALL__ instead of __AVR_HAVE_JMP_CALL__
13797         to detect if XJMP must not be skipped.
13798
13799 2011-08-02  Alan Modra  <amodra@gmail.com>
13800
13801         * config/rs6000/rs6000-protos.h (rs6000_save_toc_in_prologue_p):
13802         Delete.
13803         * config/rs6000/rs6000.c (rs6000_save_toc_in_prologue_p): Make static.
13804         (rs6000_emit_prologue): Don't prematurely return when
13805         TARGET_SINGLE_PIC_BASE.  Don't emit eh_frame info in
13806         save_toc_in_prologue case.
13807         (rs6000_call_indirect_aix): Only disallow save_toc_in_prologue for
13808         calls_alloca.
13809
13810 2011-08-01  Georg-Johann Lay  <avr@gjlay.de>
13811
13812         * config/avr/avr-devices.c: Delete SVN property svn:executable.
13813         * config/avr/predicates.md: Ditto.
13814         * config/avr/driver-avr.c: Ditto.
13815         * config/avr/genopt.sh: Set SVN property svn:executable to *.
13816
13817 2011-08-01  H.J. Lu  <hongjiu.lu@intel.com>
13818
13819         * calls.c (emit_library_call_value_1): Declare size only if
13820         BLOCK_REG_PADDING is defined.
13821
13822 2011-08-01  Kirill Yukhin  <kirill.yukhin@intel.com>
13823
13824         PR target/49547
13825         * config.gcc (i[34567]86-*-*): Replace abmintrin.h with lzcntintrin.h.
13826         (x86_64-*-*): Likewise.
13827         * config/i386/i386.opt (mlzcnt): New.
13828         * config/i386/abmintrin.h: File removed.
13829         (__lzcnt_u16, __lzcnt, __lzcnt_u64): Moved to ...
13830         * config/i386/lzcntintrin.h: ... here.  New file.
13831         (__lzcnt): Rename to ...
13832         (__lzcnt32): ... this.
13833         * config/i386/bmiintrin.h (head): Update copyright year.
13834         (__lzcnt_u16): Removed.
13835         (__lzcnt_u32): Likewise.
13836         (__lzcnt_u64): Likewise.
13837         * config/i386/x86intrin.h: Include lzcntintrin.h when __LZCNT__
13838         is defined, remove abmintrin.h.
13839         * config/i386/cpuid.h (bit_LZCNT): New.
13840         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
13841         LZCNT feature.
13842         * config/i386/i386-c.c (ix86_target_macros_internal): Define
13843         __LZCNT__ if needed.
13844         * config/i386/i386.c (ix86_target_string): New option -mlzcnt.
13845         (ix86_option_override_internal): Handle LZCNT option.
13846         (ix86_valid_target_attribute_inner_p): Likewise.
13847         (struct builtin_description bdesc_args) <IX86_BUILTIN_CLZS>: Update.
13848         * config/i386/i386.h (TARGET_LZCNT): New.
13849         (CLZ_DEFINED_VALUE_AT_ZERO): Update.
13850         * config/i386/i386.md (clz<mode>2): Update insn constraint.
13851         (clz<mode>2_lzcnt): Likewise.
13852         * doc/invoke.texi: Mention -mlzcnt option.
13853         * doc/extend.texi: Likewise.
13854
13855 2011-08-01  Julian Brown  <julian@codesourcery.com>
13856
13857         * configure.ac (fixed-point): Add ARM support.
13858         * configure: Regenerate.
13859         * config/arm/arm.c (arm_fixed_mode_set): New struct.
13860         (arm_set_fixed_optab_libfunc): New.
13861         (arm_set_fixed_conv_libfunc): New.
13862         (arm_init_libfuncs): Initialise fixed-point helper libfuncs with
13863         ARM-specific names.
13864         (aapcs_libcall_value): Return sub-word-size fixed-point libcall
13865         return values in SImode.
13866         (arm_return_in_msb): Return fixed-point types in the msb.
13867         (arm_pad_reg_upwards, arm_pad_arg_upwards): Pad fixed-point types
13868         upwards.
13869         (arm_scalar_mode_supported_p): Support fixed-point modes.
13870         (arm_vector_mode_supported_p): Support vector fixed-point modes.
13871         * config/arm/arm.h (SHORT_FRACT_TYPE_SIZE, FRACT_TYPE_SIZE)
13872         (LONG_FRACT_TYPE_SIZE, LONG_LONG_FRACT_TYPE_SIZE)
13873         (SHORT_ACCUM_TYPE_SIZE, ACCUM_TYPE_SIZE, LONG_ACCUM_TYPE_SIZE)
13874         (LONG_LONG_ACCUM_TYPE_SIZE, MAX_FIXED_MODE_SIZE): Define.
13875         * config/arm/iterators.md (FIXED, ADDSUB, UQADDSUB, QADDSUB, QMUL):
13876         New mode iterators.
13877         (qaddsub_suf): New mode attribute.
13878         * config/arm/arm-modes.def (FRACT, UFRACT, ACCUM, UACCUM): Declare
13879         vector modes.
13880         * config/arm/predicates.md (sat_shift_operator): New predicate.
13881         * config/arm/arm-fixed.md: New.
13882         * config/arm/arm.md: Include arm-fixed.md.
13883         * config/arm/t-arm (MD_INCLUDES): Add arm-fixed.md.
13884
13885 2011-08-01  Julian Brown  <julian@codesourcery.com>
13886
13887         * calls.c (emit_library_call_value_1): Support padding for libcall
13888         arguments and return values.
13889         * config/arm/arm.c (arm_pad_arg_upward): Pad half-float values
13890         downwards in big-endian mode.
13891
13892 2011-08-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13893
13894         PR debug/49887
13895         * config/sol2.c (solaris_code_end): Rename to solaris_file_end.
13896         * config/sol2-protos.h: Likewise.
13897         * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Don't call
13898         solaris_code_end.
13899         * config/i386/sol2.h [!USE_GAS] (TARGET_ASM_FILE_END): Redefine.
13900         * config/sparc/sparc.c (sparc_file_end) [TARGET_SOLARIS]: Call
13901         solaris_file_end.
13902         * config/sparc/sol2.h (TARGET_ASM_CODE_END): Remove.
13903
13904 2011-08-01  Julian Brown  <julian@codesourcery.com>
13905
13906         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Support FIXED_CST.
13907
13908 2011-08-01  Julian Brown  <julian@codesourcery.com>
13909
13910         * final.c (output_addr_const): Print fixed-point constants as
13911         decimal not hex.
13912
13913 2011-08-01  Richard Guenther  <rguenther@suse.de>
13914
13915         * stor-layout.c (initialize_sizetypes): Properly sign-extend
13916         bitsiztype TYPE_MAX_VALUE.
13917
13918 2011-08-01  Julian Brown  <julian@codesourcery.com>
13919
13920         * optabs.c (prepare_cmp_insn): Use correct biasing for fixed-point
13921         comparison helpers.
13922
13923 2011-07-31  Richard Henderson  <rth@redhat.com>
13924
13925         * config/h8300/crti.asm: Add flags to .section directive.
13926         * config/h8300/crtn.asm: Likewise.
13927
13928 2011-07-31  Richard Henderson  <rth@redhat.com>
13929
13930         * stor-layout.c (initialize_sizetypes): Handle unsigned short.
13931         * tree.c (build_common_tree_nodes): Likewise.
13932
13933 2011-07-31  Kaz Kojima  <kkojima@gcc.gnu.org>
13934
13935         PR target/49880
13936         * config/sh/sh.md (udivsi3_i1): Enable for TARGET_DIVIDE_CALL_DIV1.
13937         (divsi3_i1): Likewise.
13938
13939 2011-07-31  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13940
13941         PR tree-optimization/49749
13942         * tree-ssa-reassoc.c (get_rank): New forward declaration.
13943         (PHI_LOOP_BIAS): New macro.
13944         (phi_rank): New function.
13945         (loop_carried_phi): Likewise.
13946         (propagate_rank): Likewise.
13947         (get_rank): Add calls to phi_rank and propagate_rank.
13948
13949 2011-07-31  H.J. Lu  <hongjiu.lu@intel.com>
13950
13951         * config/i386/x86-64.h (SIZE_TYPE): Check TARGET_LP64 instead
13952         of TARGET_64BIT.
13953         (PTRDIFF_TYPE): Likewise.
13954
13955 2011-07-31  Uros Bizjak  <ubizjak@gmail.com>
13956
13957         PR target/49920
13958         * config/i386/i386.md (strset): Do not expand strset_singleop
13959         when %eax or $edi are fixed.
13960         (*strsetdi_rex_1): Disable when %eax or %edi are fixed.
13961         (*strsetsi_1): Ditto.
13962         (*strsethi_1): Ditto.
13963         (*strsetqi_1): Ditto.
13964         (*rep_stosdi_rex64): Disable when %eax, %ecx or %edi are fixed.
13965         (*rep_stossi): Ditto.
13966         (*rep_stosqi): Ditto.
13967         (*strlenqi_1): Ditto.
13968         (cmpstrnsi): Also fail when %ecx is fixed.
13969         (*cmpstrnqi_nz_1): Disable when %ecx, %esi or %edi are fixed.
13970         (*cmpstrnqi_1): Ditto.
13971         (*strmovdi_rex_1): Disable when %esi or %edi are fixed.
13972         (*strmovsi_1): Ditto.
13973         (*strmovhi_1): Ditto.
13974         (*strmovqi_1): Ditto.
13975         (*rep_movdi_rex64): Disable when %ecx, %esi or %edi are fixed.
13976         (*rep_movsi): Ditto.
13977         (*rep_movqi): Ditto.
13978
13979 2011-07-31  Mikael Pettersson  <mikpe@it.uu.se>
13980
13981         PR target/47908
13982         * config/m68k/m68k.c (m68k_override_options_after_change): New function.
13983         Disable instruction scheduling for non-ColdFire targets.
13984         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
13985
13986 2011-07-31  Revital Eres  <revital.eres@linaro.org>
13987
13988         * ddg.c (create_ddg_dep_from_intra_loop_link): Remove the creation
13989         of anti-dep edge from a branch.
13990         (add_cross_iteration_register_deps): Create anti-dep edge from
13991         a branch.
13992
13993 2011-07-31  Revital Eres  <revital.eres@linaro.org>
13994
13995         * modulo-sched.c: Change comment.
13996         (reset_sched_times): Fix print message.
13997         (print_partial_schedule): Add print info.
13998
13999 2011-07-31  Tom de Vries  <tom@codesourcery.com>
14000
14001         PR middle-end/43513
14002         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Use max of
14003         get_object_alignment and TYPE_ALIGN.
14004
14005 2011-07-30  Tom de Vries  <tom@codesourcery.com>
14006
14007         PR middle-end/43513
14008         * tree-ssa-dce.c (ref_may_be_aliased): Add assert.
14009         (propagate_necessity): Handle WITH_SIZE_EXPR call arg.
14010
14011 2011-07-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14012
14013         * config/mips/driver-native.c [__sgi__]: Include <invent.h>,
14014         <sys/sbd.h>.
14015         (cpu_types): New array.
14016         (cputype): New function.
14017         (host_detect_local_cpu): Only define buf, f if !__sgi__.
14018         Use scaninvent instead of /proc/cpuinfo if __sgi__.
14019         * config.host: Also use driver-native.o, mips/x-native on
14020         mips-sgi-irix*.
14021         * config/mips/iris6.h [__mips__] (host_detect_local_cpu): Declare.
14022         (EXTRA_SPEC_FUNCTIONS, MARCH_MTUNE_NATIVE_SPECS): Define.
14023         (DRIVER_SELF_SPECS): Add MARCH_MTUNE_NATIVE_SPECS.
14024
14025 2011-07-29  Jakub Jelinek  <jakub@redhat.com>
14026
14027         PR middle-end/49897
14028         PR middle-end/49898
14029         * omp-low.c (use_pointer_for_field): If disallowing copy-in/out
14030         in nested parallel and outer is a gimple_reg, mark it as addressable
14031         and set its bit in task_shared_vars bitmap too.
14032
14033 2011-07-29  Uros Bizjak  <ubizjak@gmail.com>
14034
14035         * config/i386/predicates.md (tp_or_register_operand): Remove predicate.
14036
14037 2011-07-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14038
14039         * config/alpha/driver-alpha.c (IMPLVER_EV4_FAMILY,
14040         IMPLVER_EV5_FAMILY, IMPLVER_EV6_FAMILY, IMPLVER_EV7_FAMILY): Define.
14041         (AMASK_BWX, AMASK_FIX, AMASK_CIX, AMASK_MVI, AMASK_PRECISE,
14042         AMASK_LOCKPFTCHOK): Define.
14043         (host_detect_local_cpu): Remove buf, f, cpu_names.
14044         Define cpu_types, implver, amask.
14045         Use __builtin_alpha_implver, __builtin_alpha_amask to determine
14046         native CPU.
14047         * config.host: Also use driver-alpha.o, alpha/x-alpha on
14048         alpha*-dec-osf*.
14049         * config/alpha/osf5.h [__alpha__ || __alpha]
14050         (host_detect_local_cpu): Declare.
14051         (EXTRA_SPEC_FUNCTIONS, MCPU_MTUNE_NATIVE_SPECS)
14052         (DRIVER_SELF_SPECS): Define.
14053
14054 2011-07-29  Uros Bizjak  <ubizjak@gmail.com>
14055
14056         PR target/47715
14057         * config/i386/i386.md (*load_tp_x32): New.
14058         (*load_tp_x32_zext): Ditto.
14059         (*add_tp_x32): Ditto.
14060         (*add_tp_x32_zext): Ditto.
14061         (*load_tp_<mode>): Disable for TARGET_X32 targets.
14062         (*add_tp_<mode>): Ditto.
14063         * config/i386/i386.c (get_thread_pointer): Load thread pointer in
14064         ptr_mode and convert to Pmode if needed.
14065
14066 2011-07-29  Georg-Johann Lay  <avr@gjlay.de>
14067
14068         PR target/49687
14069         * config/avr/avr.md (mulsi3, *mulsi3, mulu<mode>si3,
14070         muls<mode>si3, mulohisi3, mulhisi3, umulhisi3, usmulhisi3,
14071         *<any_extend:extend_prefix><any_extend2:extend_prefix>mul<QIHI:mode><QIHI2:mode>si3):
14072         Add X to register footprint: Clobber r26/r27.
14073
14074 2011-07-29  Richard Guenther  <rguenther@suse.de>
14075
14076         * builtins.c (fold_builtin_signbit): Build the comparison
14077         with a proper type.
14078
14079 2011-07-29  Richard Guenther  <rguenther@suse.de>
14080
14081         PR tree-optimization/49893
14082         * tree-predcom.c (suitable_reference_p): Volatile references
14083         are not suitable.
14084
14085 2011-07-29  Georg-Johann Lay  <avr@gjlay.de>
14086
14087         PR target/49313
14088         * config/avr/libgcc.S (__ffshi2): Don't skip 2-word instruction.
14089         (__ctzsi2): Result for 0 may be undefined.
14090         (__ctzhi2): Result for 0 may be undefined.
14091         (__popcounthi2): Don't clobber r30. Use __popcounthi2_tail.
14092         (__popcountsi2): Ditto. And don't clobber r26.
14093         (__popcountdi2): Ditto. And don't clobber r27.
14094         * config/avr/avr.md (UNSPEC_COPYSIGN): New c_enum.
14095         (parityhi2): New expand.
14096         (paritysi2): New expand.
14097         (popcounthi2): New expand.
14098         (popcountsi2): New expand.
14099         (clzhi2): New expand.
14100         (clzsi2): New expand.
14101         (ctzhi2): New expand.
14102         (ctzsi2): New expand.
14103         (ffshi2): New expand.
14104         (ffssi2): New expand.
14105         (copysignsf3): New insn.
14106         (bswapsi2): New expand.
14107         (*parityhi2.libgcc): New insn.
14108         (*parityqihi2.libgcc): New insn.
14109         (*paritysihi2.libgcc): New insn.
14110         (*popcounthi2.libgcc): New insn.
14111         (*popcountsi2.libgcc): New insn.
14112         (*popcountqi2.libgcc): New insn.
14113         (*popcountqihi2.libgcc): New insn-and-split.
14114         (*clzhi2.libgcc): New insn.
14115         (*clzsihi2.libgcc): New insn.
14116         (*ctzhi2.libgcc): New insn.
14117         (*ctzsihi2.libgcc): New insn.
14118         (*ffshi2.libgcc): New insn.
14119         (*ffssihi2.libgcc): New insn.
14120         (*bswapsi2.libgcc): New insn.
14121
14122 2011-07-29  Richard Guenther  <rguenther@suse.de>
14123
14124         * tree-vrp.c (get_value_range): Only set parameter default
14125         definitions to varying, leave others at undefined.
14126         (extract_range_from_binary_expr): Fix undefined handling.
14127         (vrp_visit_phi_node): Handle merged undefined state.
14128
14129 2011-07-29  Wei Guozhi  <carrot@google.com>
14130
14131         PR rtl-optimization/49799
14132         * combine.c (make_compound_operation): Check if the bit field is valid
14133         before change it to bit field extraction.
14134
14135 2011-07-29  Bernd Schmidt  <bernds@codesourcery.com>
14136
14137         PR rtl-optimization/49891
14138         * cfgrtl.c (force_nonfallthru_and_redirect): Set JUMP_LABEL for
14139         newly created returnjumps.
14140
14141 2011-07-28  DJ Delorie  <dj@redhat.com>
14142
14143         * expr.c (expand_expr_addr_expr_1): Detect a user request for a
14144         local frame in a naked function, and produce a suitable error for
14145         that specific case.
14146
14147         * config/m32c/m32c.c (m32c_secondary_reload_class): Allow PSI
14148         registers to be reloaded in HI classes when the target is HI.
14149
14150 2011-07-28  Sebastian Pop  <sebastian.pop@amd.com>
14151
14152         * graphite-clast-to-gimple.c: Replace v1, v2, lb, ub with
14153         bound_one, bound_two.
14154
14155 2011-07-28  Sebastian Pop  <sebastian.pop@amd.com>
14156
14157         PR middle-end/48648
14158         * graphite-clast-to-gimple.c (clast_get_body_of_loop): Handle
14159         CLAST assignments.
14160         (translate_clast): Same.
14161         (translate_clast_assignment): New.
14162
14163 2011-07-28  Sebastian Pop  <sebastian.pop@amd.com>
14164
14165         PR tree-optimization/49876
14166         * sese.c (rename_uses): Do not return false on gloog_error: set
14167         the new_expr to integer_zero_node and continue code generation.
14168         (graphite_copy_stmts_from_block): Remove early exit on gloog_error.
14169
14170 2011-07-28  Jakub Jelinek  <jakub@redhat.com>
14171
14172         PR debug/49846
14173         * var-tracking.c (prepare_call_arguments): For non-MODE_INT stack
14174         arguments also check if they aren't initialized with a MODE_INT
14175         mode of the same size.
14176
14177 2011-07-28  Aldy Hernandez  <aldyh@redhat.com>
14178
14179         * expr.c (get_bit_range): Handle *MEM_REF's.
14180
14181 2011-07-28  Bernd Schmidt  <bernds@codesourcery.com>
14182
14183         * rtlanal.c (tablejump_p): False for returns.
14184         * reorg.c (first_active_target_insn): New static function.
14185         (find_end_label): Set JUMP_LABEL for a new returnjump.
14186         (optimize_skip, get_jump_flags, rare_destination,
14187         mostly_true_jump, get_branch_condition,
14188         steal_delay_list_from_target, own_thread_p,
14189         fill_simple_delay_slots, follow_jumps, fill_slots_from_thread,
14190         fill_eager_delay_slots, relax_delay_slots, make_return_insns,
14191         dbr_schedule): Adjust to handle ret_rtx in JUMP_LABELs.
14192         * jump.c (delete_related_insns): Likewise.
14193         (jump_to_label_p): New function.
14194         (redirect_target): New static function.
14195         (redirect_exp_1): Use it.  Adjust to handle ret_rtx in JUMP_LABELS.
14196         (redirect_jump_1): Assert that the new label is nonnull.
14197         (redirect_jump): Likewise.
14198         (redirect_jump_2): Check for ANY_RETURN_P rather than NULL labels.
14199         * ifcvt.c (find_if_case_1): Take care when redirecting jumps to the
14200         exit block.
14201         (dead_or_predicable): Change NEW_DEST arg to DEST_EDGE.  All callers
14202         changed.  Ensure that the right label is passed to redirect_jump.
14203         * function.c (emit_return_into_block,
14204         thread_prologue_and_epilogue_insns): Ensure new returnjumps have
14205         ret_rtx in their JUMP_LABEL.
14206         * print-rtl.c (print_rtx): Handle ret_rtx in a JUMP_LABEL.
14207         * emit-rtl.c (skip_consecutive_labels): Allow the caller to
14208         pass ret_rtx as label.
14209         * cfglayout.c (fixup_reorder_chain): Use
14210         force_nonfallthru_and_redirect rather than force_nonfallthru.
14211         (duplicate_insn_chain): Copy JUMP_LABELs for returns.
14212         * rtl.h (ANY_RETURN_P): New macro.
14213         (jump_to_label_p): Declare.
14214         * resource.c (find_dead_or_set_registers): Handle ret_rtx in
14215         JUMP_LABELs.
14216         (mark_target_live_regs): Likewise.
14217         * basic-block.h (force_nonfallthru_and_redirect): Declare.
14218         * cfgrtl.c (force_nonfallthru_and_redirect): No longer static.
14219         * config/alpha/alpha.c (alpha_tablejump_addr_vec,
14220         alpha_tablejump_best_label): Remove functions.
14221         * config/alpha/alpha-protos.c (alpha_tablejump_addr_vec,
14222         alpha_tablejump_best_label): Remove declarations.
14223         * config/sh/sh.c (barrier_align, split_branches): Adjust for
14224         ret_rtx in JUMP_LABELs.
14225         * config/arm/arm.c (is_jump_table): Likewise.
14226
14227 2011-07-28  Uros Bizjak  <ubizjak@gmail.com>
14228
14229         * config/i386/predicates.md (pic_32bit_opreand): Do not define as
14230         special predicate.  Remove explicit mode checks.
14231
14232 2011-07-28  Jakub Jelinek  <jakub@redhat.com>
14233
14234         * dwarf2out.c (resolve_addr): For -gdwarf-2 don't optimize
14235         DW_AT_data_member_location containing just DW_OP_plus_uconst.
14236
14237         PR debug/49871
14238         * dwarf2out.c (size_of_die, value_format, output_die): Use
14239         DW_FORM_udata instead of DW_FORM_data[48] for
14240         dw_val_class_unsigned_const DW_AT_data_member_location for DWARF 3.
14241
14242 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
14243
14244         * config/i386/i386.md (*tls_global_dynamic_64): Update
14245         length attribute.
14246
14247 2011-07-28  Uros Bizjak  <ubizjak@gmail.com>
14248
14249         PR target/47715
14250         * config/i386/i386.md (*tls_global_dynamic_64): Remove mode from
14251         tls_symbolic_operand check.  Update code sequence for TARGET_X32.
14252         (tls_global_dynamic_64): Remove mode from tls_symbolic_operand check.
14253         (tls_dynamic_gnu2_64): Ditto.
14254         (*tls_dynamic_gnu2_lea_64): Ditto.
14255         (*tls_dynamic_gnu2_call_64): Ditto.
14256         (*tls_dynamic_gnu2_combine_64): Ditto.
14257
14258 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
14259
14260         * config.gcc: Set need_64bit_hwint to yes for x86 targets.
14261
14262 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
14263
14264         PR target/47364
14265         * config/i386/i386.md (strlen<mode>): Replace SWI48x with P.
14266
14267 2011-07-28  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
14268
14269         * config/arm/vfp.md ("*movdf_vfp"): Handle the VFP constraints
14270         before the core constraints. Adjust attributes.
14271         ("*thumb2_movdf_vfp"): Likewise.
14272
14273 2011-07-28  Kai Tietz  <ktietz@redhat.com>
14274
14275         * tree-vrp.c (simplify_stmt_using_ranges): Remove TRUTH_NOT_EXPR case.
14276         (simplify_truth_ops_using_ranges): Likewise.
14277         (build_assert_expr_for): Likewise.
14278         (build_assert_expr_for_1): Remove TRUTH_NOT_EXPR case
14279         and handle BIT_NOT_EXPR for truth-operation.
14280
14281 2011-07-28  Georg-Johann Lay  <avr@gjlay.de>
14282
14283         PR target/49313
14284         Undo r176835 from trunk
14285         2011-07-27  Georg-Johann Lay
14286
14287 2011-07-28  Georg-Johann Lay  <avr@gjlay.de>
14288
14289         PR target/49687
14290         * config/avr/t-avr (LIB1ASMFUNCS): Remove _xmulhisi3_exit.
14291         Add _muluhisi3, _mulshisi3, _usmulhisi3.
14292         * config/avr/libgcc.S (__mulsi3): Rewrite.
14293         (__mulhisi3): Rewrite.
14294         (__umulhisi3): Rewrite.
14295         (__usmulhisi3): New.
14296         (__muluhisi3): New.
14297         (__mulshisi3): New.
14298         (__mulohisi3): New.
14299         (__mulqi3, __mulqihi3, __umulqihi3, __mulhi3): Use DEFUN/ENDF to
14300         declare.
14301         * config/avr/predicates.md (pseudo_register_operand): Rewrite.
14302         (pseudo_register_or_const_int_operand): New.
14303         (combine_pseudo_register_operand): New.
14304         (u16_operand): New.
14305         (s16_operand): New.
14306         (o16_operand): New.
14307         * config/avr/avr.c (avr_rtx_costs): Handle costs for mult:SI.
14308         * config/avr/avr.md (QIHI, QIHI2): New mode iterators.
14309         (any_extend, any_extend2): New code iterators.
14310         (extend_prefix): New code attribute.
14311         (mulsi3): Rewrite. Turn insn to expander.
14312         (mulhisi3): Ditto.
14313         (umulhisi3): Ditto.
14314         (usmulhisi3): New expander.
14315         (*mulsi3): New insn-and-split.
14316         (mulu<mode>si3): New insn-and-split.
14317         (muls<mode>si3): New insn-and-split.
14318         (mulohisi3): New insn-and-split.
14319         (*uumulqihisi3, *uumulhiqisi3, *uumulhihisi3, *uumulqiqisi3,
14320         *usmulqihisi3, *usmulhiqisi3, *usmulhihisi3, *usmulqiqisi3,
14321         *sumulqihisi3, *sumulhiqisi3, *sumulhihisi3, *sumulqiqisi3,
14322         *ssmulqihisi3, *ssmulhiqisi3, *ssmulhihisi3, *ssmulqiqisi3): New
14323         insn-and-split.
14324         (*mulsi3_call): Rewrite.
14325         (*mulhisi3_call): Rewrite.
14326         (*umulhisi3_call): Rewrite.
14327         (*usmulhisi3_call): New insn.
14328         (*muluhisi3_call): New insn.
14329         (*mulshisi3_call): New insn.
14330         (*mulohisi3_call): New insn.
14331         (extendqihi2): Use combine_pseudo_register_operand as predicate
14332         for operand 1.
14333         (extendqisi2): Ditto.
14334         (zero_extendqihi2): Ditto.
14335         (zero_extendqisi2): Ditto.
14336         (zero_extendhisi2): Ditto.
14337         (extendhisi2): Ditto. Don't early-clobber operand 0.
14338
14339 2011-07-28  Uros Bizjak  <ubizjak@gmail.com>
14340
14341         * config/i386/i386.c (add->lea splitter): Add SWI mode to PLUS RTX.
14342
14343 2011-07-27  Sebastian Pop  <sebastian.pop@amd.com>
14344
14345         PR tree-optimization/49471
14346         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Build an unsigned
14347         iv only when the largest type is unsigned.  Do not call
14348         lang_hooks.types.type_for_size.
14349
14350 2011-07-27  Sebastian Pop  <sebastian.pop@amd.com>
14351
14352         PR middle-end/45450
14353         * graphite-poly.c (apply_poly_transforms): Disable legality check
14354         after an openscop read.
14355
14356 2011-07-27  Sebastian Pop  <sebastian.pop@amd.com>
14357
14358         PR middle-end/47691
14359         * graphite-clast-to-gimple.c (translate_clast_user): Update use of
14360         copy_bb_and_scalar_dependences.
14361         * sese.c (rename_uses): Do not call gcc_assert.  Set gloog_error.
14362         (graphite_copy_stmts_from_block): Update call to rename_uses.
14363         (copy_bb_and_scalar_dependences): Update call to
14364         graphite_copy_stmts_from_block.
14365         * sese.h (copy_bb_and_scalar_dependences): Update declaration.
14366
14367 2011-07-27  Georg-Johann Lay  <avr@gjlay.de>
14368
14369         PR target/49313
14370         * config/avr/libgcc.S (__ffshi2): Don't skip 2-word instruction.
14371         (__ctzsi2): Result for 0 may be undefined.
14372         (__ctzhi2): Result for 0 may be undefined.
14373         (__popcounthi2): Don't clobber r30. Use __popcounthi2_tail.
14374         (__popcountsi2): Ditto. And don't clobber r26.
14375         (__popcountdi2): Ditto. And don't clobber r27.
14376         * config/avr/avr.md (UNSPEC_COPYSIGN): New c_enum.
14377         (parityhi2): New expand.
14378         (paritysi2): New expand.
14379         (popcounthi2): New expand.
14380         (popcountsi2): New expand.
14381         (clzhi2): New expand.
14382         (clzsi2): New expand.
14383         (ctzhi2): New expand.
14384         (ctzsi2): New expand.
14385         (ffshi2): New expand.
14386         (ffssi2): New expand.
14387         (copysignsf3): New insn.
14388         (bswapsi2): New expand.
14389         (*parityhi2.libgcc): New insn.
14390         (*parityqihi2.libgcc): New insn.
14391         (*paritysihi2.libgcc): New insn.
14392         (*popcounthi2.libgcc): New insn.
14393         (*popcountsi2.libgcc): New insn.
14394         (*popcountqi2.libgcc): New insn.
14395         (*popcountqihi2.libgcc): New insn-and-split.
14396         (*clzhi2.libgcc): New insn.
14397         (*clzsihi2.libgcc): New insn.
14398         (*ctzhi2.libgcc): New insn.
14399         (*ctzsihi2.libgcc): New insn.
14400         (*ffshi2.libgcc): New insn.
14401         (*ffssihi2.libgcc): New insn.
14402         (*bswapsi2.libgcc): New insn.
14403
14404 2011-07-27  Uros Bizjak  <ubizjak@gmail.com>
14405
14406         * config/i386/i386.c (ix86_expand_move): Do not explicitly check
14407         the mode of symbolic_opreand RTXes.
14408
14409 2011-07-27  Uros Bizjak  <ubizjak@gmail.com>
14410
14411         * config/i386/predicates.md (x86_64_movabs_operand): Return false
14412         for pic_32bit_operand RTXes.
14413         * config/i386/i386.c (ix86_expand_move): Check x86_64_movabs_operand
14414         in DImode.
14415
14416 2011-07-27  Kai Tietz  <ktietz@redhat.com>
14417
14418         * config/i386/i386.c (ix86_option_override_internal): Allow -mabi
14419         for 32-bit, too.
14420         (ix86_handle_abi_attribute): Allow function attributes
14421         ms_abi/sysv_abi in 32-bit mode, too.
14422         * doc/extend.texi: Adjust attribute documentation.
14423
14424         * gimple-fold.c (or_comparisons_1): Remove TRUTH_AND/OR
14425         expression handling.
14426         (and_var_with_comparison_1): Likewise.
14427
14428 2011-07-27  Aldy Hernandez  <aldyh@redhat.com>
14429
14430         * params.h (ALLOW_STORE_DATA_RACES): New.
14431         * params.def (PARAM_ALLOW_STORE_DATA_RACES): New.
14432         * Makefile.in (expr.o): Depend on PARAMS_H.
14433         * machmode.h (get_best_mode): Add argument.
14434         * fold-const.c (optimize_bit_field_compare): Add argument to
14435         get_best_mode.
14436         (fold_truthop): Same.
14437         * ifcvt.c (noce_emit_move_insn): Add argument to store_bit_field.
14438         * expr.c (emit_group_store): Same.
14439         (copy_blkmode_from_reg): Same.
14440         (write_complex_part): Same.
14441         (optimize_bitfield_assignment_op): Add argument.
14442         Add argument to get_best_mode.
14443         (get_bit_range): New.
14444         (expand_assignment): Calculate maxbits and pass it down accordingly.
14445         (store_field): New argument.
14446         (expand_expr_real_2): New argument to store_field.  Include params.h.
14447         * expr.h (store_bit_field): New argument.
14448         * stor-layout.c (get_best_mode): Restrict mode expansion by taking
14449         into account maxbits.
14450         * calls.c (store_unaligned_arguments_into_pseudos): New argument
14451         to store_bit_field.
14452         * expmed.c (store_bit_field_1): New argument.  Use it.
14453         (store_bit_field): Same.
14454         (store_fixed_bit_field): Same.
14455         (store_split_bit_field): Same.
14456         (extract_bit_field_1): Pass new argument to get_best_mode.
14457         (extract_bit_field): Same.
14458         * stmt.c (store_bit_field): Pass new argument to store_bit_field.
14459         * doc/invoke.texi: Document parameter allow-store-data-races.
14460
14461 2011-07-27  Jakub Jelinek  <jakub@redhat.com>
14462
14463         * dwarf2out.c (gen_producer_string): Ignore also -fverbose-asm option.
14464
14465 2011-07-27  Kai Tietz  <ktietz@redhat.com>
14466
14467         * tree-vrp.c (extract_range_from_binary_expr): Remove
14468         TRUTH-binary cases and add new bitwise-cases.
14469         (extract_range_from_assignment): Likewise.
14470         (register_edge_assert_for_1): Likeiwise.
14471         (register_edge_assert_for): Likewise.
14472         (simplify_truth_ops_using_ranges): Likewise.
14473         (simplify_stmt_using_ranges): Likewise.
14474
14475 2011-07-26  H.J. Lu  <hongjiu.lu@intel.com>
14476
14477         PR target/47372
14478         * config/i386/i386.c (ix86_delegitimize_address): Call
14479         simplify_gen_subreg for PIC with mode of x only if modes of
14480         x and orig_x are different.
14481
14482 2011-07-26  Jakub Jelinek  <jakub@redhat.com>
14483
14484         * dwarf2out.c (output_macinfo_op): Ensure fd->filename points
14485         to GC allocated copy of the string.
14486         (dwarf2out_finish): Emit .debug_macinfo or .debug_macro sections
14487         before .debug_line, not after it.
14488
14489 2011-07-26  Sebastian Pop  <sebastian.pop@amd.com>
14490
14491         PR middle-end/47046
14492         * tree-chrec.h (evolution_function_is_affine_p): Recursively call
14493         evolution_function_is_affine_p on CHREC_RIGHT.
14494
14495 2011-07-26  Sebastian Pop  <sebastian.pop@amd.com>
14496
14497         * tree-data-ref.c (max_stmt_executions_tree): Do not call
14498         lang_hooks.types.type_for_size.
14499
14500 2011-07-26  Sebastian Pop  <sebastian.pop@amd.com>
14501
14502         PR middle-end/47653
14503         * graphite-scop-detection.c (graphite_can_represent_loop): Discard
14504         loops using wrapping semantics.
14505
14506 2011-07-26  Sebastian Pop  <sebastian.pop@amd.com>
14507
14508         PR middle-end/48805
14509         * tree-scalar-evolution.c (instantiate_scev_r): Return
14510         chrec_dont_know for ADDR_EXPR.
14511
14512 2011-07-26  Uros Bizjak  <ubizjak@gmail.com>
14513             H.J. Lu  <hongjiu.lu@intel.com>
14514
14515         PR target/47369
14516         PR target/49853
14517         * config/i386/i386.c (ix86_expand_move): Call convert_to_mode
14518         if legitimize_tls_address returned operand in wrong mode. Allow
14519         SImode and DImode symbolic operand for PIC.  Call convert_to_mode
14520         if legitimize_pic_address returned operand in wrong mode.
14521
14522 2011-07-26  Martin Jambor  <mjambor@suse.cz>
14523
14524         * tree-sra.c (tree_non_mode_aligned_mem_p): Strip conversions and
14525         return false for invariants.
14526
14527 2011-07-26  Uros Bizjak  <ubizjak@gmail.com>
14528
14529         * config/i386/i386.md (add->lea splitter): Implement using SWI
14530         mode iterator.  Change operand 2 predicate to <nonmemory_operand>.
14531         (add->lea zext splitter): Change operand 2 predicate to
14532         x86_64_nonmemory_operand.
14533
14534 2011-07-26  Richard Guenther  <rguenther@suse.de>
14535
14536         * predict.c (maybe_hot_frequency_p): Make sure a zero entry-block
14537         frequency makes everything hot.
14538
14539 2011-07-26  Richard Guenther  <rguenther@suse.de>
14540
14541         PR tree-optimization/49840
14542         * tree-vrp.c (range_fits_type_p): Properly handle full
14543         double-int precision.
14544
14545 2011-07-26  Martin Jambor  <mjambor@suse.cz>
14546
14547         PR bootstrap/49786
14548         * ipa-cp.c (update_profiling_info): Avoid overflow when updating
14549         counts.
14550         (update_specialized_profile): Likewise.
14551
14552 2011-07-26  Uros Bizjak  <ubizjak@gmail.com>
14553             H.J. Lu  <hongjiu.lu@intel.com>
14554
14555         PR target/47381
14556         PR target/49832
14557         PR target/49833
14558         * config/i386/i386.md (i): Change SImode attribute to "e".
14559         (g): Change SImode attribute to "rme".
14560         (di): Change SImode attribute to "nF".
14561         (general_operand): Change SImode attribute to x86_64_general_operand.
14562         (general_szext_operand): Change SImode attribute to
14563         x86_64_szext_general_operand.
14564         (immediate_operand): Change SImode attribute to
14565         x86_64_immediate_operand.
14566         (nonmemory_operand): Change SImode attribute to
14567         x86_64_nonmemory_operand.
14568         (*movdi_internal_rex64): Remove mode from pic_32bit_operand check.
14569         (*movsi_internal): Ditto.  Use "e" constraint in alternative 2.
14570         (*lea_1): Use SWI48 mode iterator.
14571         (*lea_1_zext): New insn pattern.
14572         (testsi_ccno_1): Use x86_64_nonmemory_operand predicate for operand 2.
14573         (*bt<mode>): Ditto.
14574         (*add<mode>1): Use x86_64_general_operand predicate for operand 2.
14575         Update operand constraints.
14576         (addsi_1_zext): Ditto.
14577         (*add<mode>2): Ditto.
14578         (*addsi_3_zext): Ditto.
14579         (*subsi_1_zext): Ditto.
14580         (*subsi_2_zext): Ditto.
14581         (*subsi_3_zext): Ditto.
14582         (*addsi3_carry_zext): Ditto.
14583         (*<plusminus_insn>si3_zext_cc_overflow): Ditto.
14584         (*mulsi3_1_zext): Ditto.
14585         (*andsi_1): Ditto.
14586         (*andsi_1_zext): Ditto.
14587         (*andsi_2_zext): Ditto.
14588         (*<any_or:code>si_1_zext): Ditto.
14589         (*<any_or:code>si_2_zext): Ditto.
14590         (*test<mode>_1): Use <general_operand> predicate for operand 1.
14591         (*and<mode>_2): Ditto.
14592         (mov<mode>cc): Use  <general_operand> predicate for operands 1 and 2.
14593         (add->lea splitter): Check operand modes in insn constraint.  Extend
14594         operands less than SImode wide to SImode.
14595         (add->lea zext splitter): Do not extend input operands to DImode.
14596         (*lea_general_1): Handle only QImode and HImode operands.
14597         (*lea_general_2): Ditto.
14598         (*lea_general_3): Ditto.
14599         (*lea_general_1_zext): Remove.
14600         (*lea_general_2_zext): Ditto.
14601         (*lea_general_3_zext): Ditto.
14602         (*lea_general_4): Check operand modes in insn constraint.  Extend
14603         operands less than SImode wide to SImode.
14604         (ashift->lea splitter): Ditto.
14605         * config/i386/i386.c (ix86_print_operand_address): Print address
14606         registers with 'q' modifier on 64bit targets.
14607         * config/i386/predicates.md (pic_32bit_opreand): Define as special
14608         predicate.  Reject non-SI and non-DI modes.
14609
14610 2011-07-25  Andrew Pinski  <apinski@cavium.com>
14611
14612         PR tree-opt/49671
14613         * tree-inline.c (remap_gimple_op_r): Copy TREE_THIS_VOLATILE and
14614         TREE_THIS_NOTRAP into the inner most MEM_REF.
14615         Always copy TREE_THIS_VOLATILE.
14616         * tree-sra.c (ptr_parm_has_direct_uses): Check that the lhs, rhs and
14617         arguments are not volatile references.
14618
14619 2011-07-25  Richard Henderson  <rth@redhat.com>
14620
14621         * insn-notes.def (NOTE_INSN_CFA_RESTORE_STATE): Remove.
14622         * final.c (final_scan_insn): Don't test for it.
14623         (rest_of_clean_state): Likewise.
14624
14625 2011-07-25  Richard Henderson  <rth@redhat.com>
14626
14627         PR debug/49841
14628         * config/rs6000/rs6000.c (rs6000_frame_related): Return the insn.
14629         (emit_frame_save): Likewise.
14630         (rs6000_emit_prologue): Move the FRAME_RELATED_EXPR from the save
14631         insn onto a dummy blockage insn after the join label.
14632
14633 2011-07-25  Richard Henderson  <rth@redhat.com>
14634
14635         * dwarf2cfi.c (dw_trace_info): Add ID member.
14636         (get_trace_index): Remove.  Change users to use ID member.
14637         (before_next_cfi_note): New.
14638         (connect_traces): Remove unreachable traces before the main loop.
14639         Look across one trace and generate remember/restore_state if needed.
14640
14641 2011-07-25  Richard Henderson  <rth@redhat.com>
14642
14643         * dwarf2cfi.c (dump_cfi_row, debug_cfi_row): New.
14644
14645 2011-07-25  Joern Rennecke  <joern.rennecke@embecosm.com>
14646
14647         * genattr.c (write_upcase, gen_attr <enum definition writing>):
14648         Move to ...
14649         * genattr-common.c ... here.
14650         (main): Call gen_attr.
14651         * optc-gen.awk: Make generated program include insn-attr-common.h .
14652         * Makefile.in (oprions.o): Depend on insn-attr-common.h
14653
14654 2011-07-25  Anatoly Sokolov  <aesok@post.ru>
14655
14656         * config/m32c/m32c.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
14657         PRINT_OPERAND_PUNCT_VALID_P): Remove macro.
14658         * config/m32c/m32c-protos.h (m32c_print_operand_punct_valid_p,
14659         m32c_print_operand, m32c_print_operand_address): Remove.
14660         * config/m32c/m32c.c (m32c_print_operand_punct_valid_p): Make static.
14661         Change return type to bool. Change argument type to bool.
14662         (m32c_print_operand, m32c_print_operand_address): Make static.
14663         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS,
14664         TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
14665
14666 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14667
14668         * doc/sourcebuild.texi (Effective-Target Keywords, Environment
14669         attributes): Document mmap.
14670
14671 2011-07-25  Anatoly Sokolov  <aesok@post.ru>
14672
14673         * config/mmix/mmix.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
14674         PRINT_OPERAND_PUNCT_VALID_P): Remove macro.
14675         * config/mmix/mmix-protos.h (mmix_print_operand_punct_valid_p,
14676         mmix_print_operand, mmix_print_operand_address): Remove.
14677         * config/mmix/mmix.c (mmix_print_operand_punct_valid_p): Make static.
14678         Change return type to bool. Change argument type to bool.
14679         (mmix_print_operand, mmix_print_operand_address): Make static.
14680         (mmix_intval, mmix_output_condition): Change 'x' argument type
14681         to const_rtx.
14682         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS,
14683         TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
14684
14685 2011-07-25  Georg-Johann Lay  <avr@gjlay.de>
14686
14687         PR target/39386
14688         * config/avr/avr.c (out_shift_with_cnt): Use tmp_reg as
14689         shift counter for x << x and x >> x shifts.
14690
14691 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14692
14693         PR target/47124
14694         * config.gcc: Reject *-*-solaris2 configuration.
14695
14696 2011-07-25  Richard Sandiford  <richard.sandiford@linaro.org>
14697
14698         PR tree-optimization/49809
14699         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Use
14700         gimple_get_lhs instead of gimple_assign_lhs.
14701
14702 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14703
14704         * system.h [__cplusplus]: Wrap C function declarations in extern "C".
14705
14706 2011-07-25  Richard Guenther  <rguenther@suse.de>
14707
14708         PR tree-optimization/49822
14709         * tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify
14710         more.  Make sure to preserve stmts with side-effects.  Properly
14711         handle virtual defs, follow a longer def chain.
14712
14713 2011-07-22  Romain Geissler  <romain.geissler@gmail.com>
14714
14715         PR plugins/45348
14716         PR plugins/48425
14717         PR plugins/46577
14718         * Makefile.in: Do not flatten c-family directory when installing
14719         plugin headers.
14720
14721 2011-07-25  Eric Botcazou  <ebotcazou@adacore.com>
14722
14723         * ipa-inline.c (can_inline_edge_p): Look into DECL_STRUCT_FUNCTION of
14724         original nodes if we are dealing with virtual clones.
14725
14726 2011-07-25  Bernd Schmidt  <bernds@codesourcery.com>
14727
14728         * common/config/c6x/c6x-common.c: New file.
14729
14730 2011-07-25  Roman Zhuykov  <zhroma@ispras.ru>
14731
14732         * tree-flow.h (tree_ssa_loop_version): Remove unused declaration.
14733
14734 2011-07-25  Richard Guenther  <rguenther@suse.de>
14735
14736         PR tree-optimization/49715
14737         * tree-vrp.c: Include expr.h and optabs.h.
14738         (range_fits_type_): New function.
14739         (simplify_float_conversion_using_ranges): Likewise.
14740         (simplify_stmt_using_ranges): Call it.
14741         * Makefile.in (tree-vrp.o): Add $(EXPR_H) and $(OPTABS_H) dependencies.
14742         * optabs.c (can_float_p): Export.
14743         * optabs.h (can_float_p): Declare.
14744
14745 2011-07-25  Richard Guenther  <rguenther@suse.de>
14746
14747         * tree-vrp.c (num_vr_values, values_propagated): New global vars.
14748         (get_value_range): For out-of-range SSA names or names created
14749         after propagation return a read-only varying range.
14750         (dump_all_value_ranges): Adjust.
14751         (vrp_initialize): Likewise.
14752         (vrp_finalize): Likewise.
14753
14754 2011-07-24  Richard Henderson  <rth@redhat.com>
14755
14756         PR debug/49831
14757         * dwarf2cfi.c (connect_traces): Allow unvisited traces.  Skip
14758         them entirely.
14759
14760 2011-07-24  Richard Henderson  <rth@redhat.com>
14761
14762         PR debug/49825
14763         * dwarf2cfi.c (dwarf2out_stack_adjust): Move A_O_A test earlier.
14764         (dwarf2out_notice_stack_adjust): Use args_size from call_insn.
14765
14766 2011-07-24  Richard Henderson  <rth@redhat.com>
14767
14768         PR debug/49827
14769         * dwarf2cfi.c (create_trace_edges): Handle sequences properly.
14770
14771 2011-07-24  Richard Henderson  <rth@redhat.com>
14772
14773         * dwarf2cfi.c (maybe_record_trace_start): Add abnormal parameter.
14774         Zero args_size for abnormal edges.  Adjust all callers.
14775
14776 2011-07-24  Richard Henderson  <rth@redhat.com>
14777
14778         PR debug/49825
14779         * dwarf2cfi.c (cfi_row_equal_p): Don't compare args_size.
14780
14781 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
14782
14783         PR bootstrap/49835
14784         * collect2.c (demangle_flag): Removed.
14785
14786 2011-07-24  Sandra Loosemore  <sandra@codesourcery.com>
14787
14788         * configure.ac (demangler_in_ld): Default to yes.
14789         * configure: Regenerated.
14790         * collect2.c (main): When HAVE_LD_DEMANGLE is defined, don't
14791         mess with COLLECT_NO_DEMANGLE, and just pass --demangle and
14792         --no-demangle options straight through to ld.  When
14793         HAVE_LD_DEMANGLE is not defined, set COLLECT_NO_DEMANGLE in a
14794         way that has the intended effect on Windows.
14795
14796 2011-07-23  Richard Henderson  <rth@redhat.com>
14797
14798         * dwarf2cfi.c: Include basic-block.h.
14799         (dw_label_info): Remove.
14800         (trace_work_list, trace_index): New.
14801         (remember_row, emit_cfa_remember): Remove.
14802         (dw_trace_info_hash, dw_trace_info_eq): New.
14803         (get_trace_index, get_trace_info): New.
14804         (save_point_p): New.
14805         (free_cfi_row): Remove.
14806         (add_cfi): Do not emit DW_CFA_remember_state.
14807         (cfa_row_equal_p): New.
14808         (barrier_args_size): Remove.
14809         (compute_barrier_args_size_1, compute_barrier_args_size): Remove.
14810         (dwarf2out_notice_stack_adjust): Don't compute_barrier_args_size.
14811         (maybe_record_trace_start, create_trace_edges, scan_trace): New.
14812         (dwarf2out_cfi_begin_epilogue): Remove.
14813         (dwarf2out_frame_debug_restore_state): Remove.
14814         (connect_traces, create_pseudo_cfg): New.
14815         (create_cfi_notes, execute_dwarf2_frame): Rewrite using traces.
14816         * Makefile.in (dwarf2cfi.o): Update.
14817
14818 2011-07-23  Richard Henderson  <rth@redhat.com>
14819
14820         * dwarf2cfi.c (dw_trace_info): New.
14821         (dw_label_info): New.
14822         (cie_return_save): New.
14823         (cur_trace): New.
14824         (queued_args_size): Rename from args_size.  Update all users.
14825         (cfa_store, cfa_temp, regs_saved_in_regs): Remove.
14826         (def_cfa_1): Use cur_trace instead of cfa_*.
14827         (dwarf2out_stack_adjust, record_reg_saved_in_reg): Likewise.
14828         (clobbers_queued_reg_save, reg_saved_in): Likewise.
14829         (dwarf2out_frame_debug_expr): Likewise.
14830         (create_cie_data): Split out from ...
14831         (execute_dwarf2_frame): ... here.  Initialize cur_trace.
14832
14833 2011-07-23  Richard Henderson  <rth@redhat.com>
14834
14835         * dwarf2cfi.c (regs_saved_in_regs): Allocate from heap, not gc.
14836         Update all users to match.
14837         (execute_dwarf2_frame): Free reg_saved_in_data.
14838
14839 2011-07-23  Richard Henderson  <rth@redhat.com>
14840
14841         * dwarf2cfi.c (queued_reg_save): Reorder for packing.  Don't GTY.
14842         (queued_reg_saves): Don't GTY.  Change to a VEC.
14843         (queue_reg_save): Update to match.
14844         (dwarf2out_flush_queued_reg_saves): Likewise.
14845         (clobbers_queued_reg_save): Likewise.
14846         (reg_saved_in): Likewise.
14847         (execute_dwarf2_frame): Free queued_reg_saves.
14848
14849 2011-07-23  Richard Henderson  <rth@redhat.com>
14850
14851         * dwarf2cfi.c (dw_cfi_row_ref): Remove.  Update all users.
14852
14853 2011-07-23  Richard Henderson  <rth@redhat.com>
14854
14855         * dwarf2cfi.c (add_cfi_args_size): Split out from...
14856         (dwarf2out_args_size): ... here.
14857         (add_cfi_restore): Split out from ...
14858         (dwarf2out_frame_debug_cfa_restore): ... here.
14859         (def_cfa_0): Split out from ...
14860         (def_cfa_1): ... here.
14861         (cfi_oprnd_equal_p, cfi_equal_p): New.
14862         (change_cfi_row): New.
14863         (add_cfis_to_fde): Set fde->dw_fde_switch_cfi_index.
14864         (create_cfi_notes): Use change_cfi_row at SWITCH_TEXT note.
14865         (output_cfis): Remove.
14866         * dwarf2out.c (output_fde): Simplify output_cfi loop.
14867         (dwarf2out_switch_text_section): Don't call output_cfis.
14868         (dw_val_equal_p, loc_descr_equal_p_1, loc_descr_equal_p): New.
14869         * dwarf2out.h: Update decls.
14870         (enum dw_val_class): Add dw_val_class_none.
14871
14872 2011-07-23  Richard Henderson  <rth@redhat.com>
14873
14874         * dwarf2cfi.c (update_row_reg_save): New.
14875         (dwarf2out_frame_debug_cfa_expression): Use it.
14876         (dwarf2out_frame_debug_cfa_restore): Likewise.
14877         (reg_save): Likewise.  Do not emit DW_CFA_same_value.
14878
14879 2011-07-23  Richard Henderson  <rth@redhat.com>
14880
14881         * dwarf2cfi.c (add_cfi_insn): Rename from cfi_insn.  Update all users.
14882
14883 2011-07-23  Richard Henderson  <rth@redhat.com>
14884
14885         * dwarf2cfi.c (dw_cfi_row, dw_cfi_row_ref): New.
14886         (cie_cfi_row): New.
14887         (new_cfi_row, copy_cfi_row, free_cfi_row): New.
14888         (cfa, old_cfa, cfa_remember, old_cfa_remember, old_args_size): Remove.
14889         (cur_row, remember_row): New.
14890         (def_cfa_1): Use cur_row instead of the old_* variables.
14891         (dwarf2out_frame_debug_restore_state): Similarly.
14892         (dwarf2out_args_size, dwarf2out_notice_stack_adjust): Likewise.
14893         (dwarf2out_frame_debug_def_cfa): Use a local variable instead of cfa.
14894         (dwarf2out_frame_debug_adjust_cfa): Likewise.
14895         (dwarf2out_frame_debug_cfa_offset): Likewise.
14896         (dwarf2out_frame_debug_expr): Likewise.
14897         (execute_dwarf2_frame): Set up cur_row.
14898         * dwarf2out.h (struct cfa_loc): Mark for GTY.
14899
14900 2011-07-23  Richard Henderson  <rth@redhat.com>
14901
14902         * basic-block.h (EDGE_PRESERVE): New.
14903         (EDGE_ALL_FLAGS, EDGE_COMPLEX): Include it.
14904         * bb-reorder.c: Include except.h.
14905         (fix_up_crossing_landing_pad): New.
14906         (find_rarely_executed_basic_blocks_and_crossing_edges): Place
14907         landing pads in the right partition.  Duplicate as necessary.
14908         (partition_hot_cold_basic_blocks): Fix up DF info after
14909         duplicating landing pads.
14910         * cfg.c (dump_edge_info): Add crossing and preserve to bitnames.
14911         * cfgrtl.c (rtl_verify_flow_info_1): Validate that EDGE_CROSSING
14912         is set properly.  Validate that EH edges are not CROSSING.
14913         * except.c (expand_dw2_landing_pad_for_region): Split out from ...
14914         (dw2_build_landing_pads): ... here.
14915         (convert_to_eh_region_ranges): Remove code to fixup crossing
14916         landing pads.
14917         * except.h (expand_dw2_landing_pad_for_region): Declare.
14918         * tree-cfg.c (gimple_can_merge_blocks_p): Don't merge PRESERVE edges.
14919
14920 2011-07-23  Richard Earnshaw  <rearnsha@arm.com>
14921
14922         PR target/49816
14923         * arm.c (aapcs_vfp_allocate_return_reg): Return NULL on failure.
14924
14925 2011-07-22  Jason Merrill  <jason@redhat.com>
14926
14927         * doc/invoke.texi (C++ Dialect Options): Document -Wno-narrowing.
14928
14929 2011-07-22  Richard Henderson  <rth@redhat.com>
14930
14931         * bb-reorder.c (gate_handle_partition_blocks): Honor optimize.
14932
14933 2011-07-22  Richard Henderson  <rth@redhat.com>
14934
14935         * jump.c (maybe_propagate_label_ref): Split out of...
14936         (mark_all_labels): ... here.  Do not attempt label_ref
14937         propagation while in cfglayout mode.
14938
14939 2011-07-22  Jakub Jelinek  <jakub@redhat.com>
14940
14941         * dwarf2out.c (struct macinfo_struct): Change code to unsigned char.
14942         (DEBUG_MACRO_SECTION, DEBUG_MACRO_SECTION_LABEL): Define.
14943         (dwarf_attr_name): Handle DW_AT_GNU_macros.
14944         (dwarf2out_define): If the vector is empty and
14945         lineno is 0, emit a dummy entry first.
14946         (dwarf2out_undef): Likewise.  Remove redundant semicolon.
14947         (htab_macinfo_hash, htab_macinfo_eq, output_macinfo_op,
14948         optimize_macinfo_range): New functions.
14949         (output_macinfo): Use them.  If !dwarf_strict and .debug_str is
14950         mergeable, optimize longer strings using
14951         DW_MACRO_GNU_{define,undef}_indirect and if HAVE_COMDAT_GROUP,
14952         optimize longer sequences of define/undef ops from headers
14953         using DW_MACRO_GNU_transparent_include.  For !dwarf_strict
14954         emit a section headers.
14955         (dwarf2out_init): For !dwarf_strict set debug_macinfo_section
14956         and macinfo_section_label to DEBUG_MACRO_SECTION
14957         resp. DEBUG_MACRO_SECTION_LABEL.
14958         (dwarf2out_finish): For !dwarf_strict emit DW_AT_GNU_macros
14959         instead of DW_AT_macro_info.
14960
14961         PR other/32998
14962         * common.opt (grecord-gcc-switches, gno-record-gcc-switches): New
14963         options.
14964         * dwarf2out.c: Include opts.h.
14965         (dchar_p): New typedef.  Define heap VEC for it.
14966         (producer_string): New variable.
14967         (gen_producer_string): New function.
14968         (gen_compile_unit_die): Use it.
14969         (dwarf2out_finish): Fix up comp_unit_die () DW_AT_producer if needed.
14970         * Makefile.in (dwarf2out.o): Depend on $(OPTS_H).
14971         * doc/invoke.texi: Document -grecord-gcc-switches and
14972         -gno-record-gcc-switches, add a -grecord-gcc-switches reference
14973         to -frecord-gcc-switches description.
14974
14975 2011-07-22  Jason Merrill  <jason@redhat.com>
14976
14977         PR c++/30112
14978         * c-decl.c (c_linkage_bindings): Define.
14979
14980 2011-07-22  Eric Botcazou  <ebotcazou@adacore.com>
14981
14982         PR debug/49815
14983         * var-tracking.c (vt_finalize): Always free windowed_parm_regs.
14984
14985 2011-07-22  H.J. Lu  <hongjiu.lu@intel.com>
14986
14987         * config/i386/i386.c (ix86_option_override_internal): Disallow
14988         MS ABI in x32 mode.
14989         (ix86_init_builtins): Call ix86_init_builtins_va_builtins_abi
14990         only for TARGET_LP64.
14991         (ix86_handle_abi_attribute): Check TARGET_LP64 instead of TARGET_64BIT.
14992
14993 2011-07-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
14994
14995         * config/rs6000/rs6000.c (rs6000_xcoff_strip_dollar): Rewrite to
14996         avoid warnings when GCC is built with a C++ compiler.
14997
14998 2011-07-22  Martin Jambor  <mjambor@suse.cz>
14999
15000         PR lto/49796
15001         * cgraphunit.c (verify_edge_corresponds_to_fndecl): Return false
15002         if decl node is in another partition, call cgraph_get_node only once.
15003
15004 2011-07-22  Uros Bizjak  <ubizjak@gmail.com>
15005
15006         * config.gcc (x86_64-*-linux*): Set
15007         default_gnu_indirect_function to yes.
15008
15009 2011-07-22  Richard Guenther  <rguenther@suse.de>
15010
15011         PR tree-optimization/45819
15012         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly
15013         preserve volatile and notrap flags.
15014
15015 2011-07-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15016             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15017
15018         PR bootstrap/49794
15019         * configure.ac: Test AM_ICONV with CXX.
15020         * configure: Regenerate.
15021         * config/sol2-c.c (solaris_format_types): Use EXPORTED_CONST.
15022
15023 2011-07-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15024
15025         PR bootstrap/49797
15026         * graphite-clast-to-gimple.c (CLOOG_LANGUAGE_C): Provide if missing.
15027         (set_cloog_options): Use it.
15028
15029 2011-07-22  Jakub Jelinek  <jakub@redhat.com>
15030
15031         PR c++/49756
15032         * gcc.c (main): Call stack_limit_increase (64MB).
15033         * toplev.c (toplev_main): Likewise.
15034
15035 2011-07-21  H.J. Lu  <hongjiu.lu@intel.com>
15036
15037         * config/i386/i386.c (ix86_expand_call): Call copy_to_mode_reg
15038         instead of force_reg.
15039
15040 2011-07-21  H.J. Lu  <hongjiu.lu@intel.com>
15041
15042         * config/i386/i386.c (ix86_expand_move): Convert to Pmode if
15043         needed and use force_reg after convert.
15044         (ix86_expand_call): Likewise.
15045         (ix86_expand_special_args_builtin): Likewise.
15046         (ix86_expand_builtin): Likewise.
15047
15048 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
15049
15050         PR middle-end/47654
15051         PR middle-end/49649
15052         * graphite-clast-to-gimple.c (type_for_clast_term): Pass v1 and v2
15053         in parameter.  Initialize v1 and v2 based on the values returned
15054         by clast_name_to_lb_ub.
15055         (type_for_clast_red): Pass v1 and v2 in parameter, and set their
15056         values.
15057         (type_for_clast_bin): Same.
15058         (type_for_clast_expr): Same.
15059         (type_for_clast_eq): Update calls to type_for_clast_expr.
15060         (type_for_clast_for): Same.
15061         (build_iv_mapping): Same.
15062         * graphite-ppl.h (value_min): New.
15063
15064 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
15065
15066         * graphite-clast-to-gimple.c (type_for_interval): Generate signed
15067         types whenever possible.
15068
15069 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
15070
15071         * graphite-clast-to-gimple.c (struct clast_name_index): Add lb
15072         and ub fields.
15073         (new_clast_name_index): Add lb and ub parameters.
15074         (free_clast_name_index): New.
15075         (clast_name_to_lb_ub): New.
15076         (save_clast_name_index): Add lb and ub parameters.
15077         (compute_bounds_for_param): New.
15078         (type_for_level): Removed.
15079         (type_for_clast_for): Removed level parameter.  Do not call
15080         type_for_level.
15081         (graphite_create_new_loop): Store the lb and ub for the clast_name
15082         of the iterator of the loop that has been generated.
15083         (graphite_create_new_loop_guard): Remove parameter level.
15084         (create_params_index): Store the lb and ub of each parameter.
15085         (gloog): Use free_clast_name_index.  Pass to create_params_index
15086         the current scop.
15087
15088 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
15089
15090         * graphite-clast-to-gimple.c (max_signed_precision_type): Removed.
15091         (max_precision_type): Inline max_signed_precision_type.
15092         (type_for_clast_red): Use max_precision_type.
15093         (type_for_clast_bin): Same.
15094         (type_for_clast_for): Same.
15095
15096 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
15097
15098         * graphite-clast-to-gimple.c (gcc_type_for_interval): Renamed
15099         type_for_interval.
15100         (gcc_type_for_value): Renamed type_for_value.
15101         (gcc_type_for_clast_term): Renamed type_for_clast_term.
15102         (gcc_type_for_clast_expr): Renamed type_for_clast_expr.
15103         (gcc_type_for_clast_red): Renamed type_for_clast_red.
15104         (gcc_type_for_clast_bin): Renamed type_for_clast_bin.
15105         (gcc_type_for_clast_eq): Renamed type_for_clast_eq.
15106         (graphite_translate_clast_equation): Update calls.
15107         (compute_type_for_level): Renamed type_for_level.
15108         (gcc_type_for_iv_of_clast_loop): Renamed type_for_clast_for.
15109         (build_iv_mapping): Update calls.
15110         (graphite_create_new_loop_guard): Same.
15111
15112 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
15113
15114         * graphite-clast-to-gimple.c (clast_get_body_of_loop): Add fixme
15115         comment.
15116
15117 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
15118
15119         * graphite-clast-to-gimple.c (struct ivs_params): New.
15120         (clast_name_to_gcc): Use ivs_params to pass around parameters.
15121         (clast_to_gcc_expression): Same.
15122         (clast_to_gcc_expression_red): Same.
15123         (gcc_type_for_clast_term): Same.
15124         (gcc_type_for_clast_expr): Same.
15125         (gcc_type_for_clast_red): Same.
15126         (gcc_type_for_clast_bin): Same.
15127         (gcc_type_for_clast_eq): Same.
15128         (graphite_translate_clast_equation): Same.
15129         (graphite_create_guard_cond_expr): Same.
15130         (graphite_create_new_guard): Same.
15131         (graphite_create_new_loop): Same.
15132         (build_iv_mapping): Same.
15133         (translate_clast_user): Same.
15134         (graphite_create_new_loop_guard): Same.
15135         (translate_clast): Same.
15136         (translate_clast_for_loop): Same.
15137         (translate_clast_for): Same.
15138         (translate_clast_guard): Same.
15139         (initialize_cloog_names): Fix typo.
15140         (gloog): Initialize an ivs_params struct, pass it to translate_clast.
15141
15142 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
15143
15144         * graphite-clast-to-gimple.c (struct clast_name_index): Add level.
15145         (new_clast_name_index): Add level parameter.
15146         (clast_name_to_level): New.
15147         (save_clast_name_index): Add level parameter.
15148         (newivs_to_depth_to_newiv): Removed.
15149         (clast_name_to_gcc): Inlined newivs_to_depth_to_newiv.
15150         (graphite_create_new_loop): Add level parameter.  Pass level to
15151         save_clast_name_index.
15152         (translate_clast_for_loop): Pass level to graphite_create_new_loop.
15153         (create_params_index): Pass level to save_clast_name_index.
15154
15155 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
15156
15157         * graphite-clast-to-gimple.c (graphite_create_new_loop): Do not
15158         recompute type, lb, and ub.  Get them from...
15159         (graphite_create_new_loop_guard): ...here.  Pass in parameter
15160         pointers to type, lb, and ub.
15161         (translate_clast_for_loop): Update function calls.
15162         (translate_clast_for): Same.
15163
15164 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
15165
15166         * graphite-clast-to-gimple.c (compute_bounds_for_level): Call
15167         psct_dynamic_dim.
15168         (translate_clast_for_loop): Pass loop level to dependency_in_loop_p.
15169         (gcc_type_for_iv_of_clast_loop): Update use of level.
15170         (gloog): Start counting nesting level from 0.
15171         * graphite-clast-to-gimple.h (get_scattering_level): Removed.
15172         * graphite-dependences.c (graphite_carried_dependence_level_k): Call
15173         psct_dynamic_dim on level.
15174
15175 2011-07-21  H.J. Lu  <hongjiu.lu@intel.com>
15176
15177         * config/i386/i386.c (ix86_legitimize_address): Convert to
15178         Pmode if needed.
15179
15180 2011-07-21  H.J. Lu  <hongjiu.lu@intel.com>
15181
15182         * config/i386/i386.c (function_value_64): Always return pointers
15183         in Pmode.
15184         (ix86_promote_function_mode): New.
15185         (TARGET_PROMOTE_FUNCTION_MODE): Likewise.
15186
15187 2011-07-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
15188
15189         PR tree-optimization/49749
15190         * tree-ssa-reassoc.c (get_rank): Fix operand scan conditions and
15191         remove no-longer-used maxrank variable.
15192
15193 2011-07-21  Georg-Johann Lay  <avr@gjlay.de>
15194
15195         * config/avr/avr.c (final_prescan_insn): Fix printing of rtx_costs.
15196
15197 2011-07-21  Jason Merrill  <jason@redhat.com>
15198
15199         * system.h (HAVE_DESIGNATED_UNION_INITIALIZERS): New.
15200         * recog.h (struct insn_data_d): Check it instead of
15201         HAVE_DESIGNATED_INITIALIZERS.
15202         * genoutput.c (output_insn_data): Likewise.
15203
15204 2011-07-21  Richard Guenther  <rguenther@suse.de>
15205
15206         PR tree-optimization/49770
15207         * tree-ssa-sccvn.c (valueize_refs_1): Return whether we
15208         valueized any operand.  Renamed from ...
15209         (valueize_refs): ... this.  New wrapper around valueize_refs_1.
15210         (valueize_shared_reference_ops_from_ref): Return whether we
15211         valueized any operand.
15212         (vn_reference_lookup): Only when we valueized any operand
15213         use the valueized reference for alias analysis.  Do not preserve
15214         the original reference tree in this case.
15215
15216 2011-07-21  Uros Bizjak  <ubizjak@gmail.com>
15217
15218         * config/i386/i386.c (ix86_decompose_address): Reject all but
15219         register operands and subregs of DImode hard registers in index.
15220
15221 2011-07-21  Kai Tietz  <ktietz@redhat.com>
15222
15223         * fold-const.c (fold_unary_loc): Preserve indirect
15224         comparison cast to none-boolean type.
15225         * tree-ssa.c (useless_type_conversion_p): Preserve cast
15226         from/to boolean-type.
15227         * gimplify.c (gimple_boolify): Handle boolification of comparisons.
15228         (gimplify_expr): Boolifiy non aggregate-typed comparisons.
15229         * tree-cfg.c (verify_gimple_comparison): Check result
15230         type of comparison expression.
15231         * tree-ssa-forwprop.c (forward_propagate_comparison): Adjust test
15232         of condition result and disallow type-cast sinking into comparison.
15233
15234 2011-07-21  Richard Guenther  <rguenther@suse.de>
15235
15236         * tree-ssa-forwprop.c (combine_conversions): Return whether
15237         we have to run cfg-cleanup.  Properly remove dead stmts.
15238         (ssa_forward_propagate_and_combine): Adjust.
15239
15240 2011-07-21  Richard Sandiford  <richard.sandiford@linaro.org>
15241
15242         * regcprop.c (maybe_mode_change): Check HARD_REGNO_MODE_OK.
15243
15244 2011-07-21  Kai Tietz  <ktietz@redhat.com>
15245
15246         * tree-ssa-propagate.c (substitute_and_fold): Use
15247         do_dce flag to deside, if BB's statements are scanned
15248         in last to first, or first to last order.
15249
15250 2011-07-21  Georg-Johann Lay  <avr@gjlay.de>
15251
15252         * config/avr/avr.c (avr_rtx_costs): Set cost of CONST, LABEL_REF to 0.
15253
15254 2011-07-20  H.J. Lu  <hongjiu.lu@intel.com>
15255             Uros Bizjak  <ubizjak@gmail.com>
15256             Richard Henderson  <rth@redhat.com>
15257
15258         * config/i386/constraints.md (w): New.
15259
15260         * config/i386/i386.c (ix86_output_addr_vec_elt): Check
15261         TARGET_LP64 instead of TARGET_64BIT for ASM_QUAD.
15262
15263         * config/i386/i386.h (CASE_VECTOR_MODE): Check TARGET_LP64
15264         instead of TARGET_64BIT.
15265
15266         * config/i386/i386.md (indirect_jump): Replace
15267         nonimmediate_operand with indirect_branch_operand.
15268         (*indirect_jump): Likewise.  Replace constraint "m" with "w".
15269         (tablejump): Replace nonimmediate_operand with indirect_branch_operand.
15270         Convert operand 0 to Pmode for x32 if not PIC.
15271         (*tablejump_1): Replace nonimmediate_operand with
15272         indirect_branch_operand.  Replace constraint "m" with "w".
15273         (*call_vzeroupper): Replace constraint "m" with "w".
15274         (*call): Likewise.
15275         (*call_rex64_ms_sysv_vzeroupper): Likewise.
15276         (*call_rex64_ms_sysv): Likewise.
15277         (*call_value_vzeroupper): Likewise.
15278         (*call_value): Likewise.
15279         (*call_value_rex64_ms_sysv_vzeroupper): Likewise.
15280         (*call_value_rex64_ms_sysv): Likewise.
15281         (set_got_offset_rex64): Check TARGET_LP64 instead of TARGET_64BIT.
15282
15283         * config/i386/predicates.md (indirect_branch_operand): New.
15284         (call_insn_operand): Support x32.
15285
15286 2011-07-20  Michael Eager  <eager@eagercon.com>
15287
15288         * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Default to 12.
15289
15290 2011-07-20  Richard Henderson  <rth@redhat.com>
15291
15292         * cfg.c (dump_bb_info): Dump basic_block->flags.
15293         * cfgrtl.c (print_rtl_with_bb): Use dump_bb_info.
15294
15295 2011-07-20  Uros Bizjak  <ubizjak@gmail.com>
15296
15297         * config/i386/i386.c (ix86_decompose_address): Allow only subregs
15298         of DImode hard registers in index.
15299         (ix86_legitimate_address_p): Allow subregs of base and index to span
15300         more than a word.  Assert that subregs of base and index satisfy
15301         register_no_elim_operand predicates.  Reject addresses where
15302         base and index have different modes.
15303
15304 2011-07-20  Robert Millan  <rmh@gnu.org>
15305
15306         * config.gcc (mips*-*-linux*): Remove redundant tm_file entry.
15307
15308 2011-07-20  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15309
15310         * bb-reorder.c (fix_crossing_conditional_branches): Fix crash by
15311         removing now-unnecessary assignment.
15312
15313 2011-07-20  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15314
15315         * emit-rtl.c (set_mem_attributes_minus_bitpos): Restore setting
15316         memory address space to the type's address space.
15317
15318 2011-07-20  Georg-Johann Lay  <avr@gjlay.de>
15319
15320         PR target/36467
15321         PR target/49687
15322         * config/avr/avr.md (mulhi3): Use register_or_s9_operand for operand2
15323         and expand appropriately if there is a CONST_INT in operand2.
15324         (usmulqihi3): New insn.
15325         (*sumulqihi3): New insn.
15326         (*osmulqihi3): New insn.
15327         (*oumulqihi3): New insn.
15328         (*muluqihi3.uconst): New insn_and_split.
15329         (*muluqihi3.sconst): New insn_and_split.
15330         (*mulsqihi3.sconst): New insn_and_split.
15331         (*mulsqihi3.uconst): New insn_and_split.
15332         (*mulsqihi3.oconst): New insn_and_split.
15333         (*ashifthi3.signx.const): New insn_and_split.
15334         (*ashifthi3.signx.const7): New insn_and_split.
15335         (*ashifthi3.zerox.const): New insn_and_split.
15336         (mulsqihi3): New insn.
15337         (muluqihi3): New insn.
15338         (muloqihi3): New insn.
15339         * config/avr/predicates.md (const_2_to_7_operand): New.
15340         (const_2_to_6_operand): New.
15341         (u8_operand): New.
15342         (s8_operand): New.
15343         (o8_operand): New.
15344         (s9_operand): New.
15345         (register_or_s9_operand): New.
15346
15347 2011-07-20  Kai Tietz  <ktietz@redhat.com>
15348
15349         * builtins.c (fold_builtin_expect): See through the cast
15350         from truthvalue_type_node to long.
15351
15352 2011-07-20  Michael Meissner  <meissner@linux.vnet.ibm.com>
15353
15354         * config/rs6000/vsx.md (vsx_fma*): Use 4 argument fma instructions
15355         where we can use them from the standard and altivec instruction
15356         sets, instead of always using the 3 operand VSX forms that require
15357         the destination to overlap one of the inputs.
15358         (vsx_fms*): Ditto.
15359         (vsx_fnma*): Ditto.
15360         (vsx_fnms*): Ditto.
15361
15362         * config/rs6000/rs6000.md (fmadf4_fpr): Set fp_type fp_maddsub_d
15363         for DF types.
15364         (fmsdf4_fpr): Ditto.
15365         (nfmadf4_fpr): Ditto.
15366         (nfmsdf4_fpr): Ditto.
15367
15368 2011-07-20  Sandra Loosemore  <sandra@codesourcery.com>
15369
15370         * genrecog.c (make_insn_sequence): Correct position numbering
15371         when filtering out match_scratch and match_dup.
15372
15373 2011-07-20  Richard Guenther  <rguenther@suse.de>
15374
15375         * tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify
15376         against already removed statements.
15377         (forward_propagate_into_comparison): Remove dead defining stmts.
15378         (forward_propagate_into_gimple_cond): Likewise.
15379         (forward_propagate_into_cond): Simplify.
15380         (ssa_forward_propagate_and_combine): Handle changed cfg from
15381         forward_propagate_into_comparison.
15382         * tree-ssa-phiopt.c (conditional_replacement): Use proper
15383         locations for newly built statements.
15384
15385 2011-07-20  Georg-Johann Lay  <avr@gjlay.de>
15386
15387         * config/avr/avr.c (avr_rtx_costs): Set cost of SYMBOL_REF to 0.
15388
15389 2011-07-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15390
15391         * config/s390/s390.c (s390_class_max_nregs): Fix return type.
15392         * config/s390/s390-protos.h (s390_class_max_nregs): Likewise.
15393
15394 2011-07-20  Richard Guenther  <rguenther@suse.de>
15395
15396         PR middle-end/18908
15397         * tree.c (integer_all_onesp): Use TYPE_PRECISION, not mode precision.
15398         * tree-ssa-forwprop.c (simplify_bitwise_binary): Remove bogus
15399         ADDR_EXPR folding.  Canonicalize X ^ ~0 as ~X.
15400
15401 2011-07-20  Vladimir Makarov  <vmakarov@redhat.com>
15402
15403         * config/frv/frv.c (frv_register_move_cost): Define explicitly
15404         costs for subclasses of GR_REGS.
15405
15406 2011-07-20  Uros Bizjak  <ubizjak@gmail.com>
15407
15408         PR target/49780
15409         * config/i386/predicates.md (no_seg_addres_operand): No more special.
15410         * config/i386/i386.c (ix86_decompose_address): Allow only subregs
15411         of DImode hard registers in base.
15412         (ix86_legitimate_address_p): Allow SImode and DImode base and index
15413         registers.
15414
15415 2011-07-20  Richard Guenther  <rguenther@suse.de>
15416
15417         * tree-ssa-structalias.c (new_var_info): Allocate oldsolution lazily.
15418         (unify_nodes): Deal with that.
15419         (solve_graph): Likewise.
15420
15421 2011-07-20  Chung-Lin Tang  <cltang@codesourcery.com>
15422
15423         * config/arm/arm.c (arm_canonicalize_comparison): Add case to
15424         canonicalize left operand from ZERO_EXTEND to AND.
15425
15426 2011-07-20  Anatoly Sokolov  <aesok@post.ru>
15427
15428         * target.def (class_max_nregs): New hook.
15429         * doc/tm.texi.in (TARGET_CLASS_MAX_NREGS): Document.
15430         * doc/tm.texi: Regenerate.
15431         * targhooks.c (default_class_max_nregs): New function.
15432         * targhooks.h (default_class_max_nregs): Declare.
15433         * ira.h (target_ira): Change type x_ira_reg_class_max_nregs and
15434         x_ira_reg_class_min_nregs arrays to unsigned char.
15435         * ira.c (setup_reg_class_nregs): Use TARGET_CLASS_MAX_NREGS target
15436         hook instead of CLASS_MAX_NREGS macro.
15437         * reginfo.c (restore_register_info): Ditto.
15438         * ira-conflicts.c (process_regs_for_copy): Use
15439         ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
15440         Change type rclass and aclass vars to reg_class_t.
15441         * ira-costs.c (record_reg_classes): Use ira_reg_class_max_nregs
15442         array instead of CLASS_MAX_NREGS macro. Change type rclass var to
15443         reg_class_t.
15444         * reload.c (combine_reloads, find_reloads, find_reloads_address_1):
15445         Use ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
15446
15447         * config/i386/i386.h (CLASS_MAX_NREGS): Remove.
15448         * config/i386/i386.c (ix86_class_max_nregs): New function.
15449         (ix86_register_move_cost): Use TARGET_CLASS_MAX_NREGS target hook
15450         instead of CLASS_MAX_NREGS macro.
15451         (TARGET_CLASS_MAX_NREGS): Define.
15452         * config/avr/avr.h (CLASS_MAX_NREGS): Remove.
15453         * config/avr/avr-protos.h (class_max_nregs): Remove declaration.
15454         * config/avr/avr.c (class_max_nregs): Remove function.
15455         * config/alpha/alpha.h (CLASS_MAX_NREGS): Remove.
15456         * config/spu/spu.h (CLASS_MAX_NREGS): Remove.
15457         * config/mep/mep.h (CLASS_MAX_NREGS): Remove.
15458         * config/m32r/m32r.h (CLASS_MAX_NREGS): Remove.
15459         * config/microblaze/microblaze.h (CLASS_MAX_NREGS): Remove.
15460         * config/xtensa/xtensa.h (CLASS_MAX_NREGS): Remove.
15461         * config/stormy16/stormy16.h (CLASS_MAX_NREGS): Remove.
15462         * config/lm32/lm32.h (CLASS_MAX_NREGS): Remove.
15463         * config/moxie/moxie.h (CLASS_MAX_NREGS): Remove.
15464         * config/iq2000/iq2000.h (CLASS_MAX_NREGS): Remove.
15465         * config/mn10300/mn10300.h (CLASS_MAX_NREGS): Remove.
15466         * config/score/score.h (CLASS_MAX_NREGS): Remove.
15467         * config/vax/vax.h (CLASS_MAX_NREGS): Remove.
15468         * config/h8300/h8300.h (CLASS_MAX_NREGS): Remove.
15469         * config/v850/v850.h (CLASS_MAX_NREGS): Remove.
15470
15471 2011-07-19  Eric Botcazou  <ebotcazou@adacore.com>
15472
15473         * cif-code.def (OVERWRITABLE): Fix typo and move around.
15474         (TARGET_OPTIMIZATION_MISMATCH): Delete.
15475         (EH_PERSONALITY): Fix typo.
15476         (NON_CALL_EXCEPTIONS): Fix message.
15477         (OPTIMIZATION_MISMATCH): Adjust message.
15478         * ipa-inline.c (can_inline_edge_p): Use CIF_OPTIMIZATION_MISMATCH.
15479
15480 2011-07-19  Ian Lance Taylor  <iant@google.com>
15481
15482         * doc/install.texi (Configuration): Document
15483         --enable-build-poststage1-with-cxx.
15484
15485 2011-07-19  Robert Millan  <rmh@gnu.org>
15486
15487         * config/mips/gnu-user.h: Copy from linux.h.  Update comments.
15488         (GLIBC_DYNAMIC_LINKER): Remove.
15489
15490         * config/mips/gnu-user64.h: Copy from linux64.h.  Update comments.
15491         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
15492         (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
15493         (BIONIC_DYNAMIC_LINKERN32, GNU_USER_DYNAMIC_LINKERN32): Remove.
15494         (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32,
15495         GNU_USER_DYNAMIC_LINKER64 and GNU_USER_LINK_EMULATIONN32.
15496
15497         * config/mips/linux.h: Remove everything except for ...
15498         (GLIBC_DYNAMIC_LINKER): ... this macro.
15499
15500         * config/mips/linux64.h: Remove everything except for ...
15501         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
15502         (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
15503         (BIONIC_DYNAMIC_LINKERN32): ... these macros.
15504         (GNU_USER_LINK_EMULATION32, GNU_USER_LINK_EMULATION64)
15505         (GNU_USER_LINK_EMULATIONN32): New macros.
15506
15507         * config.gcc (mips64*-*-linux* | mipsisa64*-*-linux* | mips-*-linux*):
15508         Use the new headers.
15509
15510 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
15511
15512         * rtl.h (mem_attrs): Turn offset and size fields into HOST_WIDE_INTs.
15513         Add offset_known_p and size_known_p fields.
15514         (MEM_OFFSET_KNOWN_P): Update accordingly.
15515         (MEM_OFFSET, MEM_SIZE_KNOWN_P, MEM_SIZE): Likewise.
15516         * emit-rtl.c (mem_attrs_htab_hash): Update after mem_attrs changes.
15517         (mem_attrs_eq_p, set_mem_attributes_minus_bitpos, set_mem_offset)
15518         (clear_mem_offset, set_mem_size, clear_mem_size, change_address)
15519         (adjust_address_1, widen_memory_access, set_mem_attrs_for_spill)
15520         (init_emit_regs): Likewise.
15521
15522 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
15523
15524         * doc/rtl.texi (MEM_OFFSET_KNOWN_P): Document.
15525         (MEM_OFFSET): Change from returning an rtx to returning a
15526         HOST_WIDE_INT.
15527         * rtl.h (MEM_OFFSET_KNOWN_P): New macro.
15528         (MEM_OFFSET): Return a HOST_WIDE_INT rather than an rtx.
15529         * emit-rtl.h (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
15530         (clear_mem_offset): Declare.
15531         * alias.c (ao_ref_from_mem): Adjust uses of MEM_OFFSET, using
15532         MEM_OFFSET_KNOWN_P to test whether the offset is known, and
15533         MEM_OFFSET to get a HOST_WIDE_INT offset.
15534         (nonoverlapping_memrefs_p): Likewise.  Adjust calls to...
15535         (adjust_offset_for_component_ref): Take a bool "known_p"
15536         parameter and a HOST_WIDE_INT "offset" parameter.
15537         * builtins.c (get_memory_rtx): As for ao_ref_from_mem.
15538         Adjust calls to set_mem_offset, passing a HOST_WIDE_INT rather
15539         than an rtx.  Use clear_mem_offset to clear the offset.
15540         * cfgcleanup.c (merge_memattrs): Likewise.
15541         * dwarf2out.c (tls_mem_loc_descriptor): Likewise.
15542         * function.c (assign_parm_find_stack_rtl): Likewise.
15543         (assign_parm_setup_stack): Likewise.
15544         * print-rtl.c (print_rtx): Likewise.
15545         * reload.c (find_reloads_subreg_address): Likewise.
15546         * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
15547         * var-tracking.c (INT_MEM_OFFSET): Likewise.
15548         * emit-rtl.c (set_reg_attrs_from_value): Likewise.
15549         (get_mem_align_offset): Likewise.
15550         (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
15551         (clear_mem_offset): New function.
15552         * config/mips/mips.c (r10k_safe_mem_expr_p): Take a HOST_WIDE_INT
15553         offset rather than an rtx.  Assume both the expressio and offset
15554         are available.
15555         (r10k_needs_protection_p_1): Update accordingly, checking the
15556         expression and offset availability here instead.
15557
15558 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
15559
15560         * doc/rtl.texi (MEM_SIZE_KNOWN_P): Document.
15561         (MEM_SIZE): Change from returning an rtx to returning a HOST_WIDE_INT.
15562         * rtl.h (MEM_SIZE_KNOWN_P): New macro.
15563         (MEM_SIZE): Return a HOST_WIDE_INT rather than an rtx.
15564         * emit-rtl.h (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
15565         (clear_mem_size): Declare.
15566         * emit-rtl.c (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
15567         (clear_mem_size): New function.
15568         * alias.c (ao_ref_from_mem): Adjust uses of MEM_SIZE, using
15569         MEM_SIZE_KNOWN_P to test whether the size is known, and MEM_SIZE
15570         to get a HOST_WIDE_INT size.  Adjust calls to set_mem_size,
15571         passing a HOST_WIDE_INT rather than an rtx.  Use clear_mem_size
15572         to clear the size.
15573         (nonoverlapping_memrefs_p): Likewise.
15574         * builtins.c (get_memory_rtx, expand_builtin_memcmp): Likewise.
15575         (expand_builtin_init_trampoline): Likewise.
15576         * calls.c (compute_argument_addresses): Likewise.
15577         * cfgcleanup.c (merge_memattrs): Likewise.
15578         * dce.c (find_call_stack_args): Likewise.
15579         * dse.c (record_store, scan_insn): Likewise.
15580         * dwarf2out.c (dw_sra_loc_expr): Likewise.
15581         * expr.c (emit_block_move_hints): Likewise.
15582         * function.c (assign_parm_find_stack_rtl): Likewise.
15583         * print-rtl.c (print_rtx): Likewise.
15584         * reload.c (find_reloads_subreg_address): Likewise.
15585         * rtlanal.c (may_trap_p_1): Likewise.
15586         * var-tracking.c (track_expr_p): Likewise.
15587         * varasm.c (assemble_trampoline_template): Likewise.
15588         * config/arm/arm.c (arm_print_operand): Likewise.
15589         * config/h8300/h8300.c (h8sx_emit_movmd): Likewise.
15590         * config/i386/i386.c (expand_movmem_via_rep_mov): Likewise.
15591         (expand_setmem_via_rep_stos, expand_constant_movmem_prologue)
15592         (expand_constant_setmem_prologue): Likewise.
15593         * config/mips/mips.c (mips_get_unaligned_mem): Likewise.
15594         * config/rs6000/rs6000.c (expand_block_move): Likewise.
15595         (adjacent_mem_locations): Likewise.
15596         * config/s390/s390.c (s390_expand_setmem): Likewise.
15597         (s390_expand_insv): Likewise.
15598         * config/s390/s390.md (*extzv<mode>, *extv<mode>): Likewise.
15599         (*extendqi<mode>2_short_displ): Likewise.
15600         * config/sh/sh.c (expand_block_move): Likewise.
15601         * config/sh/sh.md (extv, extzv): Likewise.
15602
15603 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
15604
15605         * emit-rtl.c (mem_attrs_eq_p): New function, split out from...
15606         (mem_attrs_htab_eq): ...here.
15607         (find_mem_attrs): Replace with...
15608         (set_mem_attrs): ...this function.  Take a mem_attrs structure
15609         rather than individual fields.
15610         (set_mem_attributes_minus_bitpos, set_mem_alias_set)
15611         (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
15612         (set_mem_size, change_address, adjust_address_1, offset_address)
15613         (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
15614         Update accordingly.
15615
15616 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
15617
15618         * rtl.h (MEM_ALIAS_SET, MEM_EXPR, MEM_OFFSET, MEM_ADDR_SPACE)
15619         (MEM_SIZE, MEM_ALIGN): Redefine in terms of get_mem_attrs.
15620         Provide a dummy definition of MEM_ADDR_SPACE for generators.
15621         (target_rtl): Add x_mode_mem_attrs.
15622         (mode_mem_attrs): New macro.
15623         (get_mem_attrs): New function.
15624         * emit-rtl.c (get_mem_attrs): Rename to...
15625         (find_mem_attrs): ...this.
15626         (set_mem_attributes_minus_bitpos, set_mem_alias_set)
15627         (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
15628         (set_mem_size, change_address, adjust_address_1, offset_address)
15629         (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
15630         Update accordingly.
15631         (init_emit_regs): Initialize mode_mem_attrs.
15632
15633 2011-07-19  Richard Guenther  <rguenther@suse.de>
15634
15635         * tree-ssa-forwprop.c (lookup_logical_inverted_value): Remove
15636         TRUTH_*_EXPR handling.
15637         * tree-ssa-operands.c (get_expr_operands): Likewise.
15638         * tree-ssa-pre.c (fully_constant_expression): Likewise.
15639         * tree-ssa-uninit.c (use_pred_not_overlap_with_undef_path_pre):
15640         Likewise.
15641         (is_and_or_or): Likewise.
15642         (is_norm_cond_subset_of): Likewise.
15643
15644 2011-07-19  Richard Guenther  <rguenther@suse.de>
15645
15646         * tree.h (fold_build_pointer_plus_loc): New helper function.
15647         (fold_build_pointer_plus_hwi_loc): Likewise.
15648         (fold_build_pointer_plus): Define.
15649         (fold_build_pointer_plus_hwi): Likewise.
15650         * builtins.c (std_gimplify_va_arg_expr): Use fold_build_pointer_plus.
15651         (fold_builtin_memory_op): Likewise.
15652         (fold_builtin_stpcpy): Likewise.
15653         (fold_builtin_memchr): Likewise.
15654         (fold_builtin_strstr): Likewise.
15655         (fold_builtin_strchr): Likewise.
15656         (fold_builtin_strrchr): Likewise.
15657         (fold_builtin_strpbrk): Likewise.
15658         (fold_builtin_strcat): Likewise.
15659         (expand_builtin_memory_chk): Likewise.
15660         (fold_builtin_memory_chk): Likewise.
15661         * c-typeck.c (build_unary_op): Likewise.
15662         * cgraphunit.c (thunk_adjust): Likewise.
15663         * fold-const.c (build_range_check): Likewise.
15664         (fold_binary_loc): Likewise.
15665         * omp-low.c (extract_omp_for_data): Likewise.
15666         (expand_omp_for_generic): Likewise.
15667         (expand_omp_for_static_nochunk): Likewise.
15668         (expand_omp_for_static_chunk): Likewise.
15669         * tree-affine.c (add_elt_to_tree): Likewise.
15670         * tree-data-ref.c (split_constant_offset_1): Likewise.
15671         * tree-loop-distribution.c (generate_memset_zero): Likewise.
15672         * tree-mudflap.c (mf_xform_derefs_1): Likewise.
15673         * tree-predcom.c (ref_at_iteration): Likewise.
15674         * tree-ssa-address.c (tree_mem_ref_addr): Likewise.
15675         (add_to_parts): Likewise.
15676         (create_mem_ref): Likewise.
15677         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
15678         * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Likewise.
15679         (number_of_iterations_le): Likewise.
15680         * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Likewise.
15681         * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
15682         (vect_create_addr_base_for_vector_ref): Likewise.
15683         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Likewise.
15684         (vect_create_cond_for_alias_checks): Likewise.
15685         * tree-vrp.c (extract_range_from_assert): Likewise.
15686         * config/alpha/alpha.c (alpha_va_start): Likewise.
15687         (alpha_gimplify_va_arg_1): Likewise.
15688         * config/i386/i386.c (ix86_va_start): Likewise.
15689         (ix86_gimplify_va_arg): Likewise.
15690         * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
15691         * config/mep/mep.c (mep_expand_va_start): Likewise.
15692         (mep_gimplify_va_arg_expr): Likewise.
15693         * config/mips/mips.c (mips_va_start): Likewise.
15694         (mips_gimplify_va_arg_expr): Likewise.
15695         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
15696         * config/rs6000/rs6000.c (rs6000_va_start): Likewise.
15697         (rs6000_gimplify_va_arg): Likewise.
15698         * config/s390/s390.c (s390_va_start): Likewise.
15699         (s390_gimplify_va_arg): Likewise.
15700         * config/sh/sh.c (sh_va_start): Likewise.
15701         (sh_gimplify_va_arg_expr): Likewise.
15702         * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
15703         * config/spu/spu.c (spu_va_start): Likewise.
15704         (spu_gimplify_va_arg_expr): Likewise.
15705         * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
15706         Likewise.
15707         (xstormy16_gimplify_va_arg_expr): Likewise.
15708         * config/xtensa/xtensa.c (xtensa_va_start): Likewise.
15709         (xtensa_gimplify_va_arg_expr): Likewise.
15710
15711 2011-07-19  Richard Guenther  <rguenther@suse.de>
15712
15713         * expr.c (expand_expr_real_2): Remove TRUTH_*_EXPR handling.
15714         (expand_expr_real_1): Remove TRUTH_*IF_EXPR and STATEMENT_LIST
15715         handling.
15716
15717         PR middle-end/18908
15718         * expr.c (expand_expr_real_2): Do not unnecessarily truncate the
15719         result of BIT_*_EXPR to bitfield precision.
15720
15721 2011-07-19  Richard Sandiford  <richard.sandiford@linaro.org>
15722
15723         PR tree-optimization/49742
15724         * tree-data-ref.c (get_references_in_stmt): Treat the lhs of a call
15725         as a potential write.
15726
15727 2011-07-19  Richard Guenther  <rguenther@suse.de>
15728
15729         * Makefile.in (tree-ssa-forwprop.o): Depend on gimple-pretty-print.h.
15730         * tree-ssa-forwprop.c: Include gimple-pretty-print.h.
15731         (forward_propagate_comparison): Simplify, remove obsolete code.
15732
15733 2011-07-19  Richard Guenther  <rguenther@suse.de>
15734
15735         * gimplify.c (gimplify_expr): Gimplify TRUTH_NOT_EXPR as
15736         BIT_XOR_EXPR, same as the RTL expander does.
15737         * tree-cfg.c (verify_expr): Disallow TRUTH_NOT_EXPR in the gimple IL.
15738         (verify_gimple_assign_unary): Likewise.
15739         * tree-ssa-propagate.c (valid_gimple_rhs_p): Disallow TRUTH_*_EXPR.
15740         * tree-ssa-forwprop.c (forward_propagate_comparison): Handle
15741         BIT_NOT_EXPR and BIT_XOR_EXPR instead of TRUTH_NOT_EXPR.
15742
15743 2011-07-19  Jakub Jelinek  <jakub@redhat.com>
15744
15745         PR tree-optimization/49768
15746         * gimple-fold.c (fold_nonarray_ctor_reference): Return NULL
15747         if offset is smaller than bitoffset, but offset+size is bigger
15748         than bitoffset.
15749
15750 2011-07-19  Ira Rosen  <ira.rosen@linaro.org>
15751
15752         PR tree-optimization/49771
15753         * tree-vect-loop-manip.c (vect_vfa_segment_size): In case of
15754         zero step, set segment length to the size of the data-ref's type.
15755
15756 2011-07-18  Martin Jambor  <mjambor@suse.cz>
15757
15758         * ipa-prop.h: Include alloc-pool.h, all sorts of updates to general
15759         comments.
15760         (ipcp_values_pool): Declare.
15761         (ipcp_sources_pool): Likewise.
15762         (ipcp_lattice): Changed to forward declaration.
15763         (ipa_param_descriptor): Removed fields ipcp_lattice, types and
15764         cannot_devirtualize.
15765         (ipa_node_params): New fields descriptors, lattices, known_vals,
15766         clone_for_all_contexts and node dead, removed fields params and
15767         count_scale.
15768         (ipa_set_param_count): Removed.
15769         (ipa_get_param_count): Made to work with descriptors vector.
15770         (ipa_get_param): Updated.
15771         (ipa_param_cannot_devirtualize_p): Removed.
15772         (ipa_param_types_vec_empty): Likewise.
15773         (ipa_set_param_used): New function.
15774         (ipa_get_param_used): Updated to use descriptors vector.
15775         (ipa_func_list): Removed.
15776         (ipa_init_func_list): Removed declaration.
15777         (ipa_push_func_to_list_1): Likewise.
15778         (ipa_pop_func_from_list): Likewise.
15779         (ipa_push_func_to_list): Removed.
15780         (ipa_lattice_from_jfunc): Remove declaration.
15781         (ipa_get_jf_pass_through_result): Declare.
15782         (ipa_get_jf_ancestor_result): Likewise.
15783         (ipa_value_from_jfunc): Likewise.
15784         (ipa_get_lattice): Update.
15785         (ipa_lat_is_single_const): New function.
15786         * ipa-prop.c (ipa_push_func_to_list_1): Removed.
15787         (ipa_init_func_list): Likewise.
15788         (ipa_pop_func_from_list): Likewise.
15789         (ipa_get_param_decl_index): Fix coding style.
15790         (count_formal_params): Removed.
15791         (count_formal_params_1): Renamed to count_formal_params.
15792         (ipa_populate_param_decls): Update to use descriptors vector.
15793         (ipa_initialize_node_params): Likewise.
15794         (visit_ref_for_mod_analysis): Use ipa_set_param_used.
15795         (ipa_analyze_params_uses): Likewise.
15796         (ipa_free_node_params_substructures): Likewise and free also lattices
15797         and known values.
15798         (duplicate_array): Removed.
15799         (ipa_edge_duplication_hook): Add the new edge to the list of edge
15800         clones.
15801         (ipa_node_duplication_hook): Update to use new lattices.
15802         (ipa_free_all_structures_after_ipa_cp): Free alloc pools.
15803         (ipa_free_all_structures_after_iinln): Likewise.
15804         (ipa_write_node_info): Update to use new lattices.
15805         (ipa_read_node_info): Likewise.
15806         (ipa_get_jf_pass_through_result): New function.
15807         (ipa_get_jf_ancestor_result): Likewise.
15808         (ipa_value_from_jfunc): Likewise.
15809         (ipa_cst_from_jfunc): Reimplemented using ipa_value_from_jfunc.
15810         * ipa-cp.c: Reimplemented.
15811         * params.def (PARAM_DEVIRT_TYPE_LIST_SIZE): Removed.
15812         (PARAM_IPA_CP_VALUE_LIST_SIZE): New parameter.
15813         (PARAM_IPA_CP_EVAL_THRESHOLD): Likewise.
15814         * Makefile.in (IPA_PROP_H): Added alloc-pool.h to dependencies.
15815         * doc/invoke.texi (devirt-type-list-size): Removed description.
15816         (ipa-cp-value-list-size): Added description.
15817
15818 2011-07-18  Richard Henderson  <rth@redhat.com>
15819
15820         * bb-reorder.c (fix_crossing_conditional_branches): Emit all insns
15821         before calling create_basic_block.
15822
15823 2011-07-18  Jakub Jelinek  <jakub@redhat.com>
15824
15825         PR middle-end/49675
15826         * tree.c (build_common_builtin_nodes): Register
15827         __builtin_return_address, __cyg_profile_func_enter
15828         and __cyg_profile_func_exit.
15829
15830 2011-07-18  Richard Henderson  <rth@redhat.com>
15831
15832         * bb-reorder.c (emit_barrier_after_bb): Split out of ...
15833         (add_labels_and_missing_jumps): ... here.
15834         (fix_up_fall_thru_edges, fix_crossing_conditional_branches): Use it.
15835
15836 2011-07-18  Uros Bizjak  <ubizjak@gmail.com>
15837
15838         PR target/47744
15839         * config/i386/i386.c (ix86_decompose_address): Allow only subregs
15840         of DImode hard registers in PLUS address chains.
15841
15842 2011-07-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15843
15844         PR bootstrap/49769
15845         * config.gcc (alpha*-*-linux*): Add crtfastmath.o to extra_parts.
15846         (alpha*-*-freebsd*): Likewise.
15847         (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
15848         i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
15849         i[34567]86-*-kopensolaris*-gnu): Add crtprec32.o, crtprec64.o,
15850         crtprec80.o, crtfastmath.o to extra_parts for all targets.
15851         (ia64*-*-elf*): Remove extra_parts.
15852         (sparc-*-linux*): Add crtfastmath.o to extra_parts.
15853         (sparc64-*-linux*): Likewise.
15854         (sparc64-*-freebsd*): Likewise.
15855
15856         Revert:
15857         * config.gcc (ia64*-*-freebsd*): Remove crtfastmath.o from extra_parts.
15858         (ia64*-*-linux*): Likewise.
15859         (mips64*-*-linux*): Likewise.
15860         (mips*-*-linux*): Likewise.
15861
15862 2011-07-18  David Edelsohn  <dje.gcc@gmail.com>
15863
15864         * doc/install.texi (Specific, *-ibm-aix*): AIX assembler bug.
15865
15866 2011-07-18  Richard Guenther  <rguenther@suse.de>
15867
15868         * gimplify.c (gimplify_expr): Use input_location, not saved_location
15869         when building new trees.
15870
15871 2011-07-18  Richard Guenther  <rguenther@suse.de>
15872
15873         * expr.c (expand_expr_real_2): Properly truncate the BIT_NOT_EXPR
15874         expansion result to bitfield precision if required.
15875
15876 2011-07-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15877
15878         * config.gcc (i[3456x]86-*-netware*): Remove.
15879
15880         * gthr-nks.h: Remove.
15881         * configure.ac (enable_threads): Remove nks.
15882         * configure: Regenerate.
15883
15884         * config/i386/i386.c (ix86_encode_section_info): Remove netware
15885         reference.
15886         * config/i386/i386.h (KEEP_AGGREGATE_RETURN_POINTER): Remove
15887         <netware.h> reference.
15888
15889         * config/i386/netware-libgcc.c,
15890         gcc/config/i386/netware-libgcc.def,
15891         gcc/config/i386/netware-libgcc.exp, gcc/config/i386/netware.c,
15892         gcc/config/i386/netware.h, gcc/config/i386/netware.opt,
15893         gcc/config/i386/nwld.c, gcc/config/i386/nwld.h,
15894         gcc/config/i386/t-netware, gcc/config/i386/t-nwld: Remove
15895
15896         * doc/extend.texi (Function Attributes,
15897         callee_pop_aggregate_return): Remove i?86-netware reference.
15898         * doc/install.texi (Configuration, --enable-threads): Remove nks.
15899
15900 2011-07-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
15901
15902         PR target/49746
15903         Revert:
15904         2010-12-30  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
15905
15906         * config/pa/pa.md: Add ",*" condition to 64-bit add/subtract boolean
15907         patterns.
15908
15909 2011-07-17  Eric Botcazou  <ebotcazou@adacore.com>
15910
15911         PR middle-end/49732
15912         * tree.c (walk_tree_1) <DECL_EXPR>: Do not walk a pointed-to type.
15913
15914 2011-07-16  Matthias Klose  <doko@ubuntu.com>
15915
15916         * doc/install.texi: Document --enable-static-libjava.
15917
15918 2011-07-15  Richard Henderson  <rth@redhat.com>
15919
15920         * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
15921         Replace all three arguments by returning a VEC of edges.
15922         (add_labels_and_missing_jumps): Accept a VEC of edges, not bare
15923         pointers and counts.
15924         (fix_edges_for_rarely_executed_code): Merge ...
15925         (rest_of_handle_partition_blocks): ... into...
15926         (partition_hot_cold_basic_blocks): ... here.  Return todo items if
15927         any work was performed.
15928         (pass_partition_blocks): Clear todo_flags_finish.
15929
15930 2011-07-15  Paolo Carlini  <paolo.carlini@oracle.com>
15931             Jakub Jelinek  <jakub@redhat.com>
15932             Jonathan Wakely  <jwakely.gcc@gmail.com>
15933
15934         PR libstdc++/49745
15935         * gthr-posix.h: Do not include <unistd.h> unconditionally; use
15936         _GTHREADS_USE_MUTEX_TIMEDLOCK instead of _POSIX_TIMEOUTS.
15937
15938 2011-07-15  Jason Merrill  <jason@redhat.com>
15939
15940         PR testsuite/49741
15941         * Makefile.in ($(lang_checks_parallelized)): Allow --extra_opts
15942         rather than --tool_opts.
15943
15944 2011-07-15  Basile Starynkevitch  <basile@starynkevitch.net>
15945
15946         * doc/plugins.texi (Building GCC plugins): gengtype needs its
15947         corresponding gtype.state.
15948
15949 2011-07-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
15950
15951         PR target/49723
15952         * config/pa/pa.md (casesi): Use gen_int_mode instead of GEN_INT.
15953
15954 2011-07-15  Eric Botcazou  <ebotcazou@adacore.com>
15955
15956         PR target/48220
15957         * doc/md.texi (Standard Names): Document window_save.
15958         * cfgexpand.c (expand_debug_parm_decl): New function extracted from
15959         expand_debug_expr and expand_debug_source_expr.  If the target has
15960         a window_save instruction, adjust the ENTRY_VALUE_EXP.
15961         (expand_debug_expr) <SSA_NAME>: Call expand_debug_parm_decl if the
15962         SSA_NAME_VAR is a parameter.
15963         (expand_debug_source_expr) <PARM_DECL>: Call expand_debug_parm_decl.
15964         * var-tracking.c (parm_reg_t): New type and associated vector type.
15965         (windowed_parm_regs): New variable.
15966         (adjust_insn): If the target has a window_save instruction and this
15967         is the instruction, make its effect on parameter registers explicit.
15968         (next_non_note_insn_var_location): New function.
15969         (emit_notes_in_bb): Use it instead of NEXT_INSN throughout.
15970         (vt_add_function_parameter): If the target has a window_save insn,
15971         adjust the incoming RTL and record that in windowed_parm_regs.
15972         (vt_finalize): Free windowed_parm_regs.
15973
15974 2011-07-15  Bernd Schmidt  <bernds@codesourcery.com>
15975
15976         * doc/invoke.texi (C6X Options): New section.
15977         * doc/md.texi (TI C6X family): New section.
15978         * config.gcc: Handle tic6x, in particular tic6x-*-elf and
15979         tic6x-*-uclinux.
15980         * longlong.h (add_ssaaaa, __umulsidi3, umul_ppmm,
15981         count_leading_zeros, count_trailing_zeros, UMUL_TIME, UDIV_TIME):
15982         Provide C6X definitions.
15983         * config/c6x/c6x.md: New file.
15984         * config/c6x/constraints.md: New file.
15985         * config/c6x/predicates.md: New file.
15986         * config/c6x/c6x-sched.md.in: New file.
15987         * config/c6x/c6x-sched.md: New file.
15988         * config/c6x/gensched.sh: New file.
15989         * config/c6x/c6x-mult.md.in: New file.
15990         * config/c6x/genmult.sh: New file.
15991         * config/c6x/c6x-mult.md: New file.
15992         * config/c6x/sync.md: New file.
15993         * config/c6x/c6x-protos.h: New file.
15994         * config/c6x/sfp-machine.h: New file.
15995         * config/c6x/c6x.c: New file.
15996         * config/c6x/c6x.h: New file.
15997         * config/c6x/crti.s: New file.
15998         * config/c6x/crtn.s: New file.
15999         * config/c6x/lib1funcs.asm: New file.
16000         * config/c6x/c6x-modes.def: New file.
16001         * config/c6x/genopt.sh: New file.
16002         * config/c6x/c6x.opt: New file.
16003         * config/c6x/c6x-tables.opt: New file.
16004         * config/c6x/c6x-opts.h: New file.
16005         * config/c6x/c6x-isas.def: New file.
16006         * config/c6x/elf.h: New file.
16007         * config/c6x/elf-common.h: New file.
16008         * config/c6x/uclinux-elf.h: New file.
16009         * config/c6x/t-c6x: New file.
16010         * config/c6x/t-c6x-elf: New file.
16011         * config/c6x/t-c6x-uclinux: New file.
16012         * config/c6x/t-c6x-softfp: New file.
16013         * config/c6x/gtd.c: New file.
16014         * config/c6x/gtf.c: New file.
16015         * config/c6x/ltd.c: New file.
16016         * config/c6x/ltf.c: New file.
16017         * config/c6x/ged.c: New file.
16018         * config/c6x/gef.c: New file.
16019         * config/c6x/led.c: New file.
16020         * config/c6x/lef.c: New file.
16021         * config/c6x/eqd.c: New file.
16022         * config/c6x/eqf.c: New file.
16023         * config/c6x/libgcc-c6xeabi.ver: New file.
16024
16025         Revert
16026         2003-07-10  Eric Botcazou  <ebotcazou@libertysurf.fr>
16027         PR rtl-optimization/11320
16028         * sched-int.h (struct deps) [reg_conditional_sets]: New field.
16029         (struct sched_info) [compute_jump_reg_dependencies]: New prototype.
16030         * sched-deps.c (sched_analyze_insn) [JUMP_INSN]: Update call to
16031         current_sched_info->compute_jump_reg_dependencies. Record which
16032         registers are used and which registers are set by the jump.
16033         Clear deps->reg_conditional_sets after a barrier.
16034         Set deps->reg_conditional_sets if the insn is a COND_EXEC.
16035         Clear deps->reg_conditional_sets if the insn is not a COND_EXEC.
16036         (init_deps): Initialize reg_conditional_sets.
16037         (free_deps): Clear reg_conditional_sets.
16038         * sched-ebb.c (compute_jump_reg_dependencies): New prototype.
16039         Mark registers live on entry of the fallthrough block and conditionally
16040         set as set by the jump. Mark registers live on entry of non-fallthrough
16041         blocks as used by the jump.
16042         * sched-rgn.c (compute_jump_reg_dependencies): New prototype.
16043         Mark new parameters as unused.
16044
16045 2011-07-14  Andrew Pinski  <pinskia@gmail.com>
16046
16047         PR tree-opt/49309
16048         * tree-mudflap.c (mf_xform_derefs_1 <case MEM_REF>):
16049         Use fold_build2_loc instead of build2.
16050         Use the correct type for the new tree.
16051
16052 2011-07-14  Bernd Schmidt  <bernds@codesourcery.com>
16053
16054         PR rtl-optimization/11320
16055         * config/ia64/ia64.md (load_symptr_low): Show a MEM.
16056         * config/ia64/ia64.c (ia64_expand_load_address): Generate it.
16057
16058 2011-07-14  Georg-Johann Lay  <avr@gjlay.de>
16059
16060         PR target/49487
16061         * config/avr/avr.md (rotl<mode>3): Generate SCRATCH instead
16062         of REG.
16063         (*rotw<mode>): Use const_int_operand for operand2.
16064         Use match_scatch for operand3.
16065         (*rotb<mode>): Ditto
16066         * config/avr/avr.c (avr_rotate_bytes): Treat SCRATCH.
16067
16068 2011-07-14  Richard Guenther  <rguenther@suse.de>
16069
16070         PR tree-optimization/49651
16071         * tree-ssa-structalias.c (get_constraint_for_1): Properly
16072         handle dereferences with subvariables.
16073
16074 2011-07-14  Richard Guenther  <rguenther@suse.de>
16075
16076         * gimple-fold.c (fold_gimple_assign): Remove operand swapping.
16077         (fold_stmt_1): Do it here directly on gimple and as a first thing.
16078
16079 2011-07-14  Richard Guenther  <rguenther@suse.de>
16080
16081         * fold-const.c (fold_binary_loc): Convert the !bool_var result,
16082         not bool_var when folding bool_var != 1 or bool_var == 0.
16083
16084 2011-07-14  Bernd Schmidt  <bernds@codesourcery.com>
16085
16086         * haifa-sched.c (schedule_insns): Remove outdated comment.
16087         (schedule_block): When computing a known value for TODO_SPEC,
16088         just set it rather than using logical operations.
16089         (try_ready): Likewise.  Use a local variable rather than a
16090         pointer to TODO_SPEC.  Reorder an if statement to move the
16091         easy case to the then block.
16092         * sched-deps.c (dep_spec_p): New static function.
16093         (update_dep): Use it to decide whether to call
16094         change_spec_dep_to_hard.
16095         (get_back_and_forw_lists): Use it.
16096         (sd_resolve_dep): Likewise.
16097         (init_dep): If !USE_DEPS_LIST, use zero to initialize status.
16098         (haifa_note_mem_dep): Likewise.
16099         (check_dep): Likewise.
16100         (sd_add_dep): Also clear SPECULATIVE bits if not DO_SPECULATION.
16101         (sched_free_deps): Free in two passes.
16102
16103 2011-07-14  Richard Sandiford  <richard.sandiford@linaro.org>
16104
16105         PR middle-end/49736
16106         * expr.c (all_zeros_p): Undo bogus part of last change.
16107
16108 2011-07-14  Matthias Klose <doko@ubuntu.com>
16109
16110         * doc/extend.texi (optimize attribute): Fix typo.
16111
16112 2011-07-14  Richard Guenther  <rguenther@suse.de>
16113
16114         * gimplify.c (gimplify_expr): Only do required conversions.
16115
16116 2011-07-14  Georg-Johann Lay  <avr@gjlay.de>
16117
16118         PR target/43746
16119         * config/avr/elf.h (TARGET_ASM_SELECT_SECTION): Remove,
16120         i.e. use default_elf_select_section.
16121         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Remove.
16122         (READONLY_DATA_SECTION_ASM_OP): Remove.
16123         (TARGET_ASM_NAMED_SECTION): Move from here...
16124         * config/avr/avr.c: ...to here.
16125         (avr_asm_init_sections): Set unnamed callback of readonly_data_section.
16126         (avr_asm_named_section): Make static.
16127
16128 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16129
16130         PR bootstrap/49739
16131         * config.gcc (extra_parts): Add crtprec32.o crtprec64.o crtprec80.o
16132         and crtfastmath.o for Linux/x86.
16133
16134 2011-07-14  Bernd Schmidt  <bernds@codesourcery.com>
16135
16136         * haifa-sched.c: Include "hashtab.h"
16137         (sched_no_dce): New global variable.
16138         (INSN_EXACT_TICK, INSN_TICK_ESTIMATE, FEEDS_BACKTRACK_INSN,
16139         SHADOW_P): New macros.
16140         (last_clock_var, cycle_issued_insns): Move declarations.
16141         (must_backtrack): New static variable.
16142         (struct delay_pair): New structure.
16143         (delay_htab, delay_htab_i2): New static variables.
16144         (delay_hash_i1, delay_hash_i2, delay_i1_eq, delay_i2_eq,
16145         record_delay_slot_pair, pair_delay, add_delay_dependencies): New
16146         functions.
16147         (dep_cost_1): If delay pairs exist, try to look up the insns and
16148         use the correct pair delay if we find them.
16149         (rank-for_schedule): Tweak priority for insns that must be scheduled
16150         soon to avoid backtracking.
16151         (queue_insn): Detect conditions which force backtracking.
16152         (ready_add): Likewise.
16153         (struct sched_block_state): Add member shadows_only_p.
16154         (struct haifa_save_data): New structure.
16155         (backtrack_queue): New static variable.
16156         (mark_backtrack_feeds, copy_insn_list, save_backtrack_point,
16157         unschedule_insns_until, restore_last_backtrack_point,
16158         free_topmost_backtrack_point, free_backtrack_queue,
16159         estimate_insn_tick, estimate_shadow_tick): New functions.
16160         (prune_ready_list): New arg shadows_only_p.  All callers changed.
16161         If true, remove everything that isn't SHADOW_P.  Look up delay
16162         pairs and estimate ticks to avoid scheduling the first insn too early.
16163         (verify_shadows): New function.
16164         (schedule_block): Add machinery to enable backtracking.
16165         (sched_init): Take sched_no_dce into account when setting
16166         DF_LR_RUN_DCE.
16167         (free_delay_pairs): New function.
16168         (init_h_i_d): Initialize INSN_EXACT_TICK.
16169         * Makefile.in (haifa-sched.o): Add $(HASHTAB_H).
16170         * sched-deps.c (sd_unresolve_dep): New function.
16171         * sched-int. (struct haifa_sched_info): New fields save_state
16172         and restore_state.
16173         (struct _haifa_insn_data): New fields exact_tick, tick_estimate,
16174         feeds_backtrack_insn and shadow_p.
16175         (DO_BACKTRACKING): New value in enum SCHED_FLAGS.
16176         (sched_no_dce): Declare variable.
16177         (record_delay_slot_pair, free_delay_pairs, add_delay_dependencies,
16178         sd_unresolve_dep): Declare functions.
16179         * modulo-sched.c (sms_sched_info): Clear the two new fields.
16180         * sched-rgn.c (rgn_const_sched_info): Likewise.
16181         * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
16182         * sched-ebb.c (save_ebb_state, restore_ebb_state): New functions.
16183         (ebb_sched_info): Add them for the two new fields.
16184         (add_deps_for_risky_insns): Call add_delay_dependencies.
16185
16186 2011-07-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
16187
16188         * config/rs6000/rs6000.opt (-mpointers-to-nested-functions):
16189         Rename -mr11.
16190         * config/rs6000/rs6000.c (rs6000_trampoline_init): Ditto.
16191         (rs6000_call_indirect_aix): Ditto.
16192         * config/rs6000/rs6000.md (call_indirect_aix<ptrsize>): Ditto.
16193         (call_indirect_aix<ptrsize>_internal): Ditto.
16194         (call_indirect_aix<ptrsize>_nor11): Ditto.
16195         (call_indirect_aix<ptrsize>_internal2): Ditto.
16196         (call_value_indirect_aix<ptrsize>): Ditto.
16197         (call_value_indirect_aix<ptrsize>_internal): Ditto.
16198         (call_value_indirect_aix<ptrsize>_nor11): Ditto.
16199         (call_value_indirect_aix<ptrsize>_internal2): Ditto.
16200         * doc/invoke.texi (RS/6000 and PowerPC Options): Ditto.
16201
16202 2011-07-13  Jason Merrill  <jason@redhat.com>
16203
16204         * Makefile.in ($(lang_checks_parallelized)): Allow --tool_opts.
16205
16206 2011-07-13  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
16207
16208         * config/spu/spu.c (spu_init_libfuncs): Install __clrsbdi2.
16209         * config/spu/spu.md ("clrsb<mode>2"): New expander.
16210
16211 2011-07-13  Thomas Schwinge  <thomas@schwinge.name>
16212
16213         * acinclude.m4 (gcc_GAS_CHECK_FEATURE): Use AS_ECHO instead of echo.
16214         * configure: Regenerate.
16215
16216 2011-07-13  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
16217
16218         * config/spu/spu.c (TARGET_ASM_FILE_START): Do not define.
16219         (asm_file_start): Remove.
16220         (spu_machine_dependent_reorg): Call compute_bb_for_insn and
16221         free_bb_for_insn around code that modifies insns before
16222         restarting df analysis.
16223
16224 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16225
16226         PR target/49541
16227         * config/sol2.h (LIB_SPEC): Simplify.  Move LIB_THREAD_LDFLAGS_SPEC ...
16228         (LINK_SPEC): ... here.
16229
16230 2011-07-13  Bernd Schmidt  <bernds@codesourcery.com>
16231
16232         * haifa-sched.c (struct sched_block_state): New.
16233         (schedule_block): Move some local variables into such a structure.
16234
16235 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16236
16237         * config/i386/crtprec.c: Move to ../libgcc/config/i386.
16238         * config/i386/t-crtpc: Remove.
16239         * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
16240         * config.gcc (i[34567]86-*-darwin*): Remove i386/t-crtpc from
16241         tmake_file.
16242         (x86_64-*-darwin*): Likewise.
16243         (i[34567]86-*-linux*): Likewise.
16244         (x86_64-*-linux*): Likewise.
16245
16246         * config/i386/sol2.h (ENDFILE_SPEC): Redefine.
16247         Handle -mpc32, -mpc64, -mpc80.
16248
16249 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16250
16251         * config/alpha/crtfastmath.c: Move to ../libgcc/config/alpha.
16252         * config/alpha/t-crtfm: Remove.
16253         * config/i386/crtfastmath.c: Move to ../libgcc/config/i386.
16254         * config/i386/t-crtfm: Remove.
16255         * config/ia64/crtfastmath.c: Move to ../libgcc/config/ia64.
16256         * config/mips/crtfastmath.c: Move to ../libgcc/config/mips.
16257         * config/sparc/crtfastmath.c: Move to ../libgcc/config/sparc.
16258         * config/sparc/t-crtfm: Remove.
16259
16260         * config.gcc (alpha*-*-linux*): Remove alpha/t-crtfm from tmake_file.
16261         (alpha*-*-freebsd*): Likewise.
16262         (i[34567]86-*-darwin*): Remove i386/t-crtfm from tmake_file.
16263         (x86_64-*-darwin*): Likewise.
16264         (i[34567]86-*-linux*): Likewise.
16265         (x86_64-*-linux*): Likewise.
16266         (x86_64-*-mingw*): Likewise.
16267         (ia64*-*-elf*): Remove crtfastmath.o from extra_parts.
16268         (ia64*-*-freebsd*): Likewise.
16269         (ia64*-*-linux*): Likewise.
16270         (mips64*-*-linux*): Likewise.
16271         (mips*-*-linux*): Likewise.
16272         (sparc-*-linux*): Remove sparc/t-crtfm from tmake_file.
16273         (sparc64-*-linux*): Likewise.
16274         (sparc64-*-freebsd*): Likewise.
16275
16276 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16277
16278         * config/darwin-crt2.c: Move to ../libgcc/config/rs6000.
16279         * config/darwin-crt3.c: Move to ../libgcc/config.
16280         * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
16281         ($(T)crt3$(objext)): Remove.
16282         * config/rs6000/t-darwin (DARWIN_EXTRA_CRT_BUILD_CFLAGS): Remove.
16283         ($(T)crt2$(objext)): Remove.
16284         * config.gcc (powerpc-*-darwin*): Remove extra_parts.
16285         (powerpc64-*-darwin*): Likewise.
16286
16287 2011-07-13  H.J. Lu  <hongjiu.lu@intel.com>
16288
16289         * config/i386/i386.c (x86_output_mi_thunk): Support ptr_mode != Pmode.
16290
16291         * config/i386/i386.md (*addsi_1_zext): Renamed to ...
16292         (addsi_1_zext): This.
16293
16294 2011-07-13  Bernd Schmidt  <bernds@codesourcery.com>
16295
16296         * doc/tm.texi.in (TARGET_ASM_MERGEABLE_RODATA_PREFIX): Add hook.
16297         * doc/tm.texi: Regenerate.
16298         * target.def (mergeable_rodata_prefix): New defhookpod.
16299         * varasm.c (mergeable_string_section, mergeable_constant_section):
16300         Use it. Allocate name with alloca.
16301
16302 2011-07-13  H.J. Lu  <hongjiu.lu@intel.com>
16303
16304         * doc/invoke.texi (x86): Remove -mfused-madd and add -mfma.
16305
16306 2011-07-13  Richard Sandiford  <richard.sandiford@linaro.org>
16307
16308         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Tighten
16309         overlap check.
16310
16311 2011-07-13  Richard Sandiford  <richard.sandiford@linaro.org>
16312
16313         * tree.h (categorize_ctor_elements): Remove comment.  Fix long line.
16314         (count_type_elements): Delete.
16315         (complete_ctor_at_level_p): Declare.
16316         * expr.c (flexible_array_member_p): New function, split out from...
16317         (count_type_elements): ...here.  Make static.  Replace allow_flexarr
16318         parameter with for_ctor_p.  When for_ctor_p is true, return the
16319         number of elements that should appear in the top-level constructor,
16320         otherwise return an estimate of the number of scalars.
16321         (categorize_ctor_elements): Replace p_must_clear with p_complete.
16322         (categorize_ctor_elements_1): Likewise.  Use complete_ctor_at_level_p.
16323         (complete_ctor_at_level_p): New function, borrowing union logic
16324         from old categorize_ctor_elements_1.
16325         (mostly_zeros_p): Return true if the constructor is not complete.
16326         (all_zeros_p): Update call to categorize_ctor_elements.
16327         * gimplify.c (gimplify_init_constructor): Update call to
16328         categorize_ctor_elements.  Don't call count_type_elements.
16329         Unconditionally prevent clearing for variable-sized types,
16330         otherwise rely on categorize_ctor_elements to detect
16331         incomplete initializers.
16332
16333 2011-07-13  Richard Guenther  <rguenther@suse.de>
16334
16335         * tree-vrp.c (simplify_conversion_using_ranges): Make sure
16336         the final type is integral.
16337
16338 2011-07-13  Bernd Schmidt  <bernds@codesourcery.com>
16339
16340         * sched-int.h (struct _dep): Add member cost.
16341         (DEP_COST, UNKNOWN_DEP_COST): New macros.
16342         * sched-deps.c (init_dep_1): Initialize DEP_COST.
16343         * haifa-sched.c (dep_cost_1): Use and set DEP_COST.
16344         (sched_change_pattern): Reset it for dependent insns.
16345
16346 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16347
16348         * Makefile.in (CRT0STUFF_T_CFLAGS): Remove.
16349         ($(T)crt0.o, $(T)mcrt0.o, s-crt0): Remove.
16350         * config/i386/netware-crt0.c: Move to ../libgcc/config/i386.
16351         * config/i386/t-nwld (CRTSTUFF_T_CFLAGS, CRT0STUFF_T_CFLAGS): Remove.
16352         (CRT0_S, MCRT0_S): Remove.
16353         ($(T)libgcc.def, $(T)libc.def, $(T)libcpre.def, $(T)posixpre.def):
16354         Remove.
16355         (s-crt0): Remove.
16356         * config.gcc (i[3456x]86-*-netware*): Remove extra_parts.
16357
16358 2011-07-12  Eric Botcazou  <ebotcazou@adacore.com>
16359
16360         * cse.c (insert_with_costs): Put semi-colon after empty loop body
16361         on the next line.
16362         * emit-rtl.c (push_to_sequence): Likewise.
16363         * haifa-sched.c (max_issue): Likewise.
16364         * matrix-reorg.c (add_allocation_site): Likewise.
16365         * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
16366         * reload.c (alternative_allows_const_pool_ref): Likewise.
16367         * sched-rgn.c (rgn_add_block): Likewise.
16368         (rgn_fix_recovery_cfg): Likewise.
16369         * tree.c (attribute_list_contained): Likewise.
16370
16371 2011-07-12  Uros Bizjak  <ubizjak@gmail.com>
16372
16373         * config/i386/i386.c: Tidy processor feature bitmasks.
16374         (m_P4_NOCONA): New.
16375
16376 2011-07-12  Andrew Pinski  <pinskia@gmail.com>
16377
16378         PR rtl-opt/49474
16379         * cprop.c (find_implicit_sets): Correct the condition.
16380
16381 2011-07-12  Richard Henderson  <rth@redhat.com>
16382
16383         PR target/49713
16384         * dwarf2out.h (dwarf_frame_regnum): Remove.
16385         * dwarf2out.c (based_loc_descr): Revert last change.  Initialize regno
16386         earlier from DWARF_FRAME_REGNUM.  Never use dbx_reg_number.
16387         * dwarf2cfi.c (dw_stack_pointer_regnum, dw_frame_pointer_regnum): New.
16388         (execute_dwarf2_frame): Initialize them.
16389         (DW_STACK_POINTER_REGNUM, DW_FRAME_POINTER_REGNUM): Remove; replace
16390         users of the macros with the variables.
16391         (expand_builtin_dwarf_sp_column): Revert last change.
16392         (expand_builtin_init_dwarf_reg_sizes): Likewise.  Compute the
16393         result of DWARF_FRAME_REGNUM into a local variable.
16394
16395 2011-07-12  Richard Henderson  <rth@redhat.com>
16396
16397         PR target/49714
16398         * config/i386/i386.c (x86_output_mi_thunk): Use
16399         machopic_indirect_call_target instead of machopic_indirection_name
16400         directly.
16401
16402 2011-07-12  Laurent GUERBY  <laurent@guerby.net>
16403             Eric Botcazou  <ebotcazou@adacore.com>
16404
16405         * prefix.h: Wrap up in extern "C" block.
16406
16407 2011-07-12  Harsha Jagasia  <harsha.jagasia@amd.com>
16408
16409         AMD bdver2 Enablement
16410         * config.gcc (i[34567]86-*-linux* | ...): Add bdver2.
16411         (case ${target}): Add bdver2.
16412         * config/i386/driver-i386.c (host_detect_local_cpu): Let
16413         -march=native recognize bdver2 processors.
16414         * config/i386/i386-c.c (ix86_target_macros_internal): Add
16415         bdver2 def_and_undef
16416         * config/i386/i386.c (struct processor_costs bdver2_cost): New
16417         bdver2 cost table.
16418         (m_BDVER2): New definition.
16419         (m_AMD_MULTIPLE): Includes m_BDVER2.
16420         (initial_ix86_tune_features): Add bdver2 tuning.
16421         (processor_target_table): Add bdver2 entry.
16422         (static const char *const cpu_names): Add bdver2 entry.
16423         (ix86_option_override_internal): Add bdver2 instruction sets.
16424         (ix86_issue_rate): Add bdver2.
16425         (ix86_adjust_cost): Add bdver2.
16426         (has_dispatch): Add bdver2.
16427         * config/i386/i386.h (TARGET_BDVER2): New definition.
16428         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_bdver2.
16429         (enum processor_type): Add PROCESSOR_BDVER2.
16430         * config/i386/i386.md (define_attr "cpu"): Add bdver2.
16431         * config/i386/i386.opt ( mdispatch-scheduler): Add bdver2 to
16432         description.
16433
16434 2011-07-12  Richard Henderson  <rth@redhat.com>
16435
16436         PR target/49714
16437         * config/i386/i386.c (x86_output_mi_thunk): Fix mode for
16438         destination address in memory on some paths.
16439
16440 2011-07-12  Bernd Schmidt  <bernds@codesourcery.com>
16441
16442         * doc/tm.texi.in (FUNCTION_ARG_PADDING): Mention
16443         TARGET_FUNCTION_ARG_ROUND_BOUNDARY.
16444         (TARGET_FUNCTION_ARG_ROUND_BOUNDARY): Add hook.
16445         * function.c (locate_and_pad_parm): Take it into account.
16446         * target.def (function_arg_round_boundary): New hook.
16447         * targhooks.c (default_function_arg_round_boundary): New function.
16448         * targhooks.h (default_function_arg_round_boundary): Declare.
16449         * doc/tm.texi: Regenerate.
16450
16451 2011-07-12  Richard Guenther  <rguenther@suse.de>
16452
16453         * tree-ssa-copyrename.c (rename_ssa_copies): Zero statistics.
16454         Do not perform no-op changes.
16455
16456 2011-07-12  Richard Sandiford  <richard.sandiford@linaro.org>
16457
16458         * config/arm/predicates.md (neon_struct_operand): Make a normal
16459         predicate.
16460         (neon_struct_or_register_operand): New predicate.
16461         * config/arm/neon.md (movmisalign<mode>): Replace predicates
16462         with neon_struct_or_register_operand.
16463         (*movmisalign<mode>_neon_store, *movmisalign<mode>_neon_load): Use
16464         neon_struct_operand instead of memory_operand.
16465
16466 2011-07-12  Martin Jambor  <mjambor@suse.cz>
16467
16468         * cgraph.h (cgraph_get_node_or_alias): Removed declaration.
16469         * cgraph.c (cgraph_get_node_or_alias): Removed.
16470         (change_decl_assembler_name): Changed all calls to
16471         cgraph_get_node_or_alias to a call to cgraph_get_node.
16472         (cgraph_make_decl_local): Likewise.
16473         * lto-symtab.c (lto_symtab_resolve_symbols): Likewise.
16474         * varasm.c (default_binds_local_p_1): Likewise.
16475         (decl_binds_to_current_def_p): Likewise.
16476
16477 2011-07-12  Jakub Jelinek  <jakub@redhat.com>
16478
16479         PR tree-optimization/49712
16480         * tree-ssa-loop-im.c (gen_lsm_tmp_name): Handle TARGET_MEM_REF.
16481
16482 2011-07-11  Bernd Schmidt  <bernds@codesourcery.com>
16483
16484         * genautomata.c (add_arc): Return void.  All callers changed.
16485         (make_automaton): Remove dead code.
16486
16487 2011-07-11  Richard Henderson  <rth@redhat.com>
16488
16489         * dwarf2cfi.c (DW_STACK_POINTER_REGNUM): New.
16490         (DW_FRAME_POINTER_REGNUM): New.
16491         (expand_builtin_init_dwarf_reg_sizes): Use unsigned for rnum.
16492         (def_cfa_1): Do not convert reg to DWARF_FRAME_REGNUM here.
16493         (dwf_regno): New.
16494         (dwarf2out_flush_queued_reg_saves, dwarf2out_frame_debug_def_cfa,
16495         dwarf2out_frame_debug_adjust_cfa, dwarf2out_frame_debug_cfa_register,
16496         dwarf2out_frame_debug_cfa_expression, dwarf2out_frame_debug_expr):
16497         Use it.
16498         * dwarf2out.c (based_loc_descr): Use dwarf_frame_regnum.
16499         * dwarf2out.h (dwarf_frame_regnum): New.
16500         (struct cfa_loc): Document the domain of the reg member.
16501
16502 2011-07-11  Uros Bizjak  <ubizjak@gmail.com>
16503
16504         * config/i386/i386.c (ix86_trampoline_init): Switch arms of if expr.
16505         Use offset everywhere.  Always assert that offset <= TRAMPOLINE_SIZE.
16506
16507 2011-07-11  Jakub Jelinek  <jakub@redhat.com>
16508
16509         PR debug/49676
16510         * dwarf2out.c (int_shift_loc_descriptor): New function.
16511         (int_loc_descriptor): If shorter, emit i as
16512         (i >> shift), shift, DW_OP_shl for suitable shift value.
16513         Similarly, try to optimize large negative values using
16514         DW_OP_neg of a positive value if shorter.
16515         (size_of_int_shift_loc_descriptor): New function.
16516         (size_of_int_loc_descriptor): Adjust to match int_loc_descriptor
16517         changes.
16518         (mem_loc_descriptor) <case CONST_INT>: Emit zero-extended constants
16519         that fit into DWARF2_ADDR_SIZE bytes as int_loc_descriptor +
16520         DW_OP_GNU_convert instead of DW_OP_GNU_const_type if the former
16521         is shorter.
16522         (resolve_addr_in_expr): Optimize DW_OP_plus_uconst with a large
16523         addend as added DW_OP_plus if it is shorter.
16524
16525 2011-07-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16526
16527         * config/i386/sol2.h [!USE_GLD] (CTORS_SECTION_ASM_OP): Define.
16528         (DTORS_SECTION_ASM_OP): Define.
16529
16530 2011-07-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16531
16532         * config/dfp-bit.c, config/dfp-bit.h: Move to ../libgcc.
16533         * config/t-dfprules: Move to ../libgcc/config.
16534         * config.gcc (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
16535         i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
16536         i[34567]86-*-kopensolaris*-gnu): Remove t-dfprules from tmake_file.
16537         (x86_64-*-linux*, x86_64-*-kfreebsd*-gnu, x86_64-*-knetbsd*-gnu):
16538         Likewise.
16539         (i[34567]86-*-cygwin*): Likewise.
16540         (i[34567]86-*-mingw*,  x86_64-*-mingw*): Likewise.
16541         (powerpc-*-linux*, powerpc64-*-linux*): Likewise.
16542         * Makefile.in (D32PBIT_FUNCS, D64PBIT_FUNCS, D128PBIT_FUNCS): Remove.
16543         (libgcc.mvars): Remove DFP_ENABLE, DFP_CFLAGS, D32PBIT_FUNCS,
16544         D64PBIT_FUNCS, D128PBIT_FUNCS.
16545
16546 2011-07-11  Richard Guenther  <rguenther@suse.de>
16547
16548         * tree-vrp.c (simplify_conversion_using_ranges): Manually
16549         translate the source value-range through the conversion chain.
16550
16551 2011-07-11  Richard Sandiford  <richard.sandiford@linaro.org>
16552
16553         * expr.c (expand_expr_real_1): Use expand_insn for movmisalign.
16554
16555 2011-07-11  Arthur Loiret  <aloiret@debian.org>
16556
16557         * config.gcc (s390-*-linux*): If 'enabled_targets' is 'all', build
16558         a bi-arch compiler defaulting to 31-bit. In this case:
16559         (tmake_file): Add s390/t-linux64.
16560         * doc/install.texi: Add s390-linux to the list of targets supporting
16561         --enable-targets=all.
16562
16563 2011-07-11  Arthur Loiret  <aloiret@debian.org>
16564             Matthias Klose <doko@debian.org>
16565
16566         * config.gcc (mips*-*-linux*): If 'enabled_targets' is 'all', build
16567         a tri-arch compiler defaulting to 32-bit (ABI o32). In this case:
16568         (tm_file): Add mips/linux64.h.
16569         (tmake_file): Add mips/t-linux64.
16570         (tm_defines): Add MIPS_ABI_DEFAULT=ABI_32.
16571         * config/mips/linux64.h (DRIVER_SELF_SPECS): Use MULTILIB_ABI_DEFAULT
16572         instead of hardcoded mabi=n32.
16573         * config/mips/t-linux64 (MULTILIB_DIRNAMES): Set to 'n32 . 64' if
16574         tm_defines contains MIPS_ABI_DEFAULT ABI_32, to follow the glibc
16575         convention.
16576
16577 2011-07-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16578
16579         * passes.c (init_optimization_passes): Add invariant motion pass
16580         after induction variable optimization.
16581
16582 2011-07-11  Georg-Johann Lay  <avr@gjlay.de>
16583
16584         PR target/39633
16585         * config/avr/avr.c (notice_update_cc): For ashiftrt:QI, only
16586         offsets 1..5 set cc0 in a usable way.
16587
16588 2011-07-11  Romain Geissler  <romain.geissler@gmail.com>
16589
16590         * tree.h (call_expr_arg): Remove.
16591         (call_expr_argp): Likewise.
16592
16593 2011-07-11  Eric Botcazou  <ebotcazou@adacore.com>
16594
16595         * config/sparc/sparc.md (save_register_window_1): Rename to...
16596         (window_save): ...this.
16597         * config/sparc/sparc.c (emit_save_register_window): Rename to...
16598         (emit_window_save): ...this.
16599         (sparc_expand_prologue): Adjust to above renaming.
16600
16601 2011-07-10  H.J. Lu  <hongjiu.lu@intel.com>
16602
16603         * config/i386/i386.c (ix86_trampoline_init): Use movl instead
16604         of movabs for x32.
16605
16606 2011-07-10  Richard Henderson  <rth@redhat.com>
16607
16608         * config/i386/i386.c (x86_output_mi_thunk): Generate rtl and
16609         run final, instead of emitting text directly.
16610
16611 2011-07-10  H.J. Lu  <hongjiu.lu@intel.com>
16612
16613         * config/i386/i386.c (ix86_option_override_internal): Turn on
16614         OPTION_MASK_ISA_64BIT for TARGET_X32.  Only allow small and
16615         small PIC models for TARGET_X32.
16616
16617 2011-07-10  Hans-Peter Nilsson  <hp@axis.com>
16618
16619         PR target/49684
16620         * config/cris/t-elfmulti (CRTSTUFF_T_CFLAGS): Don't include
16621         $(LIBGCC2_CFLAGS).
16622
16623         PR bootstrap/49680
16624         * config/cris/cris.c (cris_asm_output_case_end): Robustify against
16625         stray notes and debug insns by using prev_nonnote_nondebug_insn
16626         instead of PREV_INSN.
16627
16628 2011-07-09  Richard Henderson  <rth@redhat.com>
16629
16630         * defaults.h (DWARF2_ADDR_SIZE, DWARF_OFFSET_SIZE,
16631         DWARF_TYPE_SIGNATURE_SIZE): Move from ...
16632         * dwarf2out.c: ... here.
16633         (output_all_cfis): Remove.
16634         (dwarf2out_switch_text_section): Use output_cfis directly.
16635         (size_of_locs): Export.
16636         (output_loc_sequence, output_loc_sequence_raw): Export.
16637         (div_data_align, need_data_align_sf_opcode, dwarf_cfi_name, output_cfi,
16638         output_cfi_directive, dwarf2out_emit_cfi, output_cfis, output_cfa_loc,
16639         output_cfa_loc_raw): Move to ...
16640         * dwarfcfi.c: ... here.
16641         * dwarf2out.h: Update decls.
16642
16643 2011-07-09  Richard Henderson  <rth@redhat.com>
16644
16645         * defaults.h (DWARF_CIE_DATA_ALIGNMENT, DWARF_FRAME_RETURN_COLUMN,
16646         DWARF_FRAME_REGNUM, DWARF2_FRAME_REG_OUT): Move from ...
16647         * dwarf2cfi.c: ... here.
16648         (PTR_SIZE, DWARF_OFFSET_SIZE, DWARF_INITIAL_LENGTH_SIZE): Remove.
16649         (DWARF_ROUND, DWARF_CIE_ID): Remove.
16650         * dwarf2out.c (INCOMING_RETURN_ADDR_RTX): Remove.
16651         (DWARF2_FRAME_REG_OUT, DWARF_CIE_DATA_ALIGNMENT): Remove.
16652         (DWARF_FRAME_RETURN_COLUMN, DWARF_FRAME_REGNUM): Remove.
16653
16654 2011-07-09  Richard Henderson  <rth@redhat.com>
16655
16656         * dwarf2cfi.c (cie_return_save): New.
16657         (queue_reg_save): Use compare_reg_or_pc.
16658         (dwarf2out_flush_queued_reg_saves): Handle pc_rtx as return column.
16659         (dwarf2out_frame_debug_expr): Likewise.
16660         (dwarf2out_frame_debug_cfa_register): Record saved reg for pc too.
16661         (initial_return_save): Likewise.
16662         (execute_dwarf2_frame): Save and restore initial return save from
16663         the cie to the fde.
16664         * config/mips/mips.c (mips_frame_set): Remove special case for
16665         DWARF_FRAME_RETURN_COLUMN.
16666
16667 2011-07-09  Richard Henderson  <rth@redhat.com>
16668
16669         * dwarf2cfi.c (lookup_cfa): Remove.
16670         (execute_dwarf2_frame): Assert queues are empty on entry.
16671         Setup initial cfa directly, not via lookup_cfa.
16672         Don't clear args_size state here.
16673
16674 2011-07-09  Richard Henderson  <rth@redhat.com>
16675
16676         * dwarf2cfi.c (add_cfi_vec): New.
16677         (add_cfi): Rename from add_fde_cfi.  Add the element to add_cfi_vec.
16678         (def_cfa_1, reg_save): Remove for_cie argument.  Update all callers.
16679         (execute_dwarf2_frame): Set add_cfi_vec.
16680
16681 2011-07-09  Richard Henderson  <rth@redhat.com>
16682
16683         * defaults.h (ASM_COMMENT_START): Move here...
16684         * dwarf2asm.c: ... from here.
16685         * dwarf2out.c, final.c, vmsdbgout.c: Remove duplicates.
16686         * toplev.c: Remove ifndef tests of ASM_COMMENT_START.
16687         * varasm.c: Likewise.
16688
16689 2011-07-09  Richard Henderson  <rth@redhat.com>
16690
16691         PR debug/49686
16692         * dwarf2cfi.c (dwarf2out_frame_debug): Don't set cfi_insn here...
16693         (create_cfi_notes): ... do it here instead.
16694
16695 2011-07-09  Jakub Jelinek  <jakub@redhat.com>
16696
16697         PR debug/49676
16698         * dwarf2out.c (size_of_int_loc_descriptor): New function.
16699         (address_of_int_loc_descriptor): Use it.
16700         (scompare_loc_descriptor): Optimize EQ/NE comparison with constant.
16701
16702 2011-07-09  Richard Henderson  <rth@redhat.com>
16703
16704         * config/pdp11/pdp11.md (define_c_enum "unspecv"): New.
16705         (prologue, epilogue): New.
16706         (return, *rts): New.
16707         (blockage, setd, seti): New.
16708         * config/pdp11/pdp11.c (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
16709         (TARGET_ASM_FUNCTION_EPILOGUE): Remove.
16710         (pdp11_saved_regno): New.
16711         (pdp11_expand_prologue): Rename from pdp11_output_function_prologue;
16712         generate rtl instead of text.
16713         (pdp11_expand_epilogue): Similarly from pdp11_output_function_epilogue.
16714         (pdp11_sp_frame_offset): Export.  Use pdp11_saved_regno.
16715         * config/pdp11/pdp11-protos.h: Update.
16716
16717 2011-07-09  Richard Henderson  <rth@redhat.com>
16718
16719         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Don't
16720         try to insert an rtl prologue here.
16721         (rs6000_output_function_epilogue): Similarly.
16722         * config/rs6000/rs6000.md (prologue): Emit a barrier to
16723         satisfy !TARGET_SCHED_PROLOG.
16724         (epilogue, sibcall_epilogue): Likewise.
16725
16726 2011-07-09  Eric Botcazou  <ebotcazou@adacore.com>
16727
16728         * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Move around.
16729         (FP_REG_P): Delete.
16730         (IN_OR_GLOBAL_P): Likewise.
16731
16732 2011-07-08  Jason Merrill  <jason@redhat.com>
16733
16734         PR c++/45437
16735         * gimplify.c (goa_stabilize_expr): Handle RHS preevaluation in
16736         compound assignment.
16737
16738         * cgraph.c (cgraph_add_to_same_comdat_group): New.
16739         * cgraph.h: Declare it.
16740         * ipa.c (function_and_variable_visibility): Make sure thunks
16741         have the right visibility.
16742
16743 2011-07-08  Richard Henderson  <rth@redhat.com>
16744
16745         PR bootstrap/49680
16746         * dwarf2cfi.c (dwarf2out_frame_debug): Insert cfi notes after
16747         any tablejump vector.
16748
16749         PR bootstrap/49680
16750         * dwarf2cfi.c (create_cfi_notes): Flush queued saves at the
16751         end of the prologue.
16752
16753 2011-07-08  Jakub Jelinek  <jakub@redhat.com>
16754
16755         PR target/49621
16756         * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Use
16757         CONST0_RTX (dest_mode) instead of const0_rtx as second operand of NE.
16758         * config/rs6000/vector.md (vector_select_<mode>,
16759         vector_select_<mode>_uns): Change second operand of NE to
16760         CONST0_RTX (<MODE>mode) instead of const0_rtx.
16761         * config/rs6000/altivec.md (*altivec_vsel<mode>,
16762         *altivec_vsel<mode>_uns): Expect second operand of NE to be
16763         zero_constant of the corresponding vector mode.
16764         * config/rs6000/vsx.md (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns):
16765         Likewise.
16766
16767 2011-07-08  Sebastian Pop  <sebastian.pop@amd.com>
16768
16769         * graphite-dependences.c (build_alias_set_powerset): Remove
16770         continue from loop, add one more assert.
16771
16772 2011-07-08  Georg-Johann Lay  <avr@gjlay.de>
16773
16774         PR target/46779
16775         * config/avr/avr.c (avr_hard_regno_mode_ok): Rewrite.
16776         In particular, allow 8-bit values in r28 and r29.
16777         (avr_hard_regno_scratch_ok): Disallow any register that might be
16778         part of the frame pointer.
16779         (avr_hard_regno_rename_ok): Same.
16780         (avr_legitimate_address_p): Don't allow SUBREGs.
16781
16782 2011-07-08  Julian Brown  <julian@codesourcery.com>
16783
16784         * config/arm/neon.md (vec_shr_<mode>, vec_shl_<mode>): Disable in
16785         big-endian mode.
16786         (reduc_splus_<mode>, reduc_uplus_<mode>, reduc_smin_<mode>)
16787         (reduc_smax_<mode>, reduc_umin_<mode>, reduc_umax_<mode>)
16788         (neon_vec_unpack<US>_lo_<mode>, neon_vec_unpack<US>_hi_<mode>)
16789         (vec_unpack<US>_hi_<mode>, vec_unpack<US>_lo_<mode>)
16790         (neon_vec_<US>mult_lo_<mode>, vec_widen_<US>mult_lo_<mode>)
16791         (neon_vec_<US>mult_hi_<mode>, vec_widen_<US>mult_hi_<mode>)
16792         (vec_pack_trunc_<mode>, neon_vec_pack_trunc_<mode>): Disable for Q
16793         registers in big-endian mode.
16794
16795 2011-07-08  Bernd Schmidt  <bernds@codesourcery.com>
16796
16797         * genattrtab.c (evaluate_eq_attr): Allow an attribute to be defined
16798         in terms of another.
16799         (write_attr_value): Write a cast if necessary.
16800
16801         * defaults.h (REG_WORDS_BIG_ENDIAN): Provide a default.
16802         * doc/tm.texi.in (WORDS_BIG_ENDIAN): Mention REG_WORDS_BIG_ENDIAN.
16803         (REG_WORDS_BIG_ENDIAN): Document.
16804         * doc/tm.texi: Regenerate.
16805         * reload.c (operands_match_p): Take it into account.
16806         (reload_adjust_reg_for_mode): Likewise.
16807         * rtlanal.c (subreg_get_info): Likewise.
16808
16809 2011-07-08  Richard Guenther  <rguenther@suse.de>
16810
16811         * fold-const.c (fold_binary_loc): Remove index +p PTR -> PTR +p index
16812         folding.
16813
16814 2011-07-08  Kai Tietz  <ktietz@redhat.com>
16815
16816         * fold-const.c (fold_truth_andor): Factored out truth_andor
16817         label from fold_binary as function.
16818         (fold_binary_loc): Replace truth_andor lable
16819         by function fold_truth_andor.
16820
16821 2011-07-08  Kirill Yukhin  <kirill.yukhin@intel.com>
16822
16823         PR middle-end/49519
16824         * calls.c (mem_overlaps_already_clobbered_arg_p): Additional
16825         check if address is stored in register. If so - give up.
16826         (check_sibcall_argument_overlap_1): Do not perform check of
16827         overlapping when it is call to address.
16828
16829 2011-07-08  Georg-Johann Lay  <avr@gjlay.de>
16830
16831         * config/avr/avr.c (output_reload_insisf): Use 'REG_Z+1' instead
16832         of magic '31'.
16833
16834 2011-07-08  Bernd Schmidt  <bernds@codesourcery.com>
16835
16836         * optabs.c (expand_binop): Use GET_MODE_PRECISION instead of
16837         GET_MODE_BITSIZE where appropriate.
16838         (widen_leading, expand_parity, expand_ctz, expand_ffs,
16839         expand_unop, expand_abs_nojump, expand_one_cmpl_abs_nojump,
16840         expand_float, expand_fix): Likewise.
16841         * expr.c (convert_move, convert_modes, expand_expr_real_2,
16842         expand_expr_real_1, reduce_to_bit_field_precision): Likewise.
16843         * stor-layout.c (get_mode_bounds): Likewise.
16844         * cfgexpand.c (convert_debug_memory_address, expand_debug_expr):
16845         Likewise.
16846         * convert.c (convert_to_integer): Likewise.
16847         * expmed.c (expand_shift_1): Likewise.
16848
16849         * rtlanal.c (nonzero_bits1): Don't compare GET_MODE_SIZE against
16850         a bitsize.
16851
16852         * optabs.c (expand_binop): Tighten conditions for doubleword
16853         expansions.
16854         (widen_bswap): Assert that mode bitsize and precision are the same.
16855         * stor-layout.c (get_best_mode): Skip modes that have lower
16856         precision than bitsize.
16857         * recog.c (simplify_while_replacing): Assert that bitsize and
16858         precision are the same.
16859
16860 2011-07-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16861
16862         * Makefile.in (LIBGCOV): Remove.
16863         (libgcc.mvars): Remove LIBGCOV.
16864         * libgov.c: Move to ../libgcc.
16865
16866 2011-07-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16867
16868         * config/fixed-bit.c, config/fixed-bit.h: Move to ../libgcc.
16869
16870 2011-07-08  Martin Jambor  <mjambor@suse.cz>
16871
16872         * tree-sra.c (analyze_all_variable_accesses): Dump that a struture
16873         is too big for total scalarization.
16874
16875 2011-07-07  Richard Henderson  <rth@redhat.com>
16876
16877         * config/alpha/elf.h (MIPS_DEBUGGING_INFO): Undef.
16878         (DBX_DEBUGGING_INFO): Undef.
16879
16880 2011-07-07  Richard Henderson  <rth@redhat.com>
16881
16882         * dwarf2out.c (output_cfi_directive): Export.  Add FILE parameter.
16883         Handle some opcodes specially for debugging.
16884         * print-rtl.c: Include dwarf2out.h
16885         (print_rtx): Handle NOTE_INSN_CFI.
16886         * Makefile.in (print-rtl.o): Update.
16887
16888 2011-07-07  Richard Henderson  <rth@redhat.com>
16889
16890         * tree-pass.h (pass_dwarf2_frame): Declare.
16891         * passes.c (init_optimization_passes): Add it.
16892         * dwarf2cfi.c (dwarf2out_frame_debug): Make static.
16893         (create_cfi_notes): Rename from dwarf2out_frame_debug_after_prologue;
16894         make static, do not call add_cfis_to_fde.
16895         (dwarf2out_frame_debug_init, dwarf2cfi_function_init,
16896         dwarf2out_frame_init): Merge into...
16897         (execute_dwarf2_frame): ... here.  New function.
16898         (dwarf2out_do_frame, dwarf2out_do_cfi_asm): Make boolean.  Change
16899         saved_do_cfi_asm to a tri-state variable.
16900         (gate_dwarf2_frame, pass_dwarf2_frame): New.
16901         * dwarf2out.c (dwarf2out_begin_prologue): Only allocate the fde
16902         if it has yet to be done.  Don't call dwarf2cfi_function_init.
16903         * dwarf2out.h, debug.h: Update decls.
16904         * final.c (final_start_function): Don't call
16905         dwarf2out_frame_debug_init or dwarf2out_frame_debug_after_prologue.
16906         * lto-streamer-in.c (lto_init_eh): Don't call dwarf2out_frame_init.
16907         * toplev.c (lang_dependent_init): Likewise.
16908
16909 2011-07-07  Richard Henderson  <rth@redhat.com>
16910
16911         * dwarf2out.c (fde_table, fde_table_allocated, fde_table_in_use,
16912         FDE_TABLE_INCREMENT): Replace with...
16913         (fde_vec): ... this, a new vector.
16914         (current_fde): Remove.  Replace all users with cfun->fde.
16915         (output_call_frame_info): Use FOR_EACH_VEC_ELT over fde_vec.
16916         (size_of_aranges, dwarf2out_finish): Likewise.
16917         (dwarf2out_alloc_current_fde): Break out from ...
16918         (dwarf2out_begin_prologue): ... here.
16919         (dwarf2out_frame_init): Remove.
16920         * dwarf2cfi.c: Update all users of current_fde.
16921         (dwarf2out_frame_init): Rename from dwarf2cfi_frame_init.
16922         * dwarf2out.h: Update decls.
16923         (dw_fde_node): Add fde_index member.
16924         * function.h (struct function): Add fde member.
16925
16926 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
16927             Richard Henderson  <rth@redhat.com>
16928
16929         * dwarf2cfi.c (add_cfi): Remove.
16930         (dwarf2out_cfi_label): Remove force argument.  Only generate the
16931         label name.
16932         (add_fde_cfi): Simplify the different code paths.
16933         (add_cie_cfi): New.
16934         (old_cfa, old_cfa_remember): New.
16935         (def_cfa_1, reg_save): Remove label, add for_cie parameter.
16936         (last_reg_save_label): Remove.
16937         (dwarf2out_args_size, dwarf2out_stack_adjust, queue_reg_save,
16938         dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
16939         dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
16940         dwarf2out_frame_debug_cfa_expression,
16941         dwarf2out_frame_debug_cfa_restore,
16942         dwarf2out_frame_debug_cfa_window_save,
16943         dwarf2out_frame_debug_expr): Remove label parameter.
16944         (cfi_label_required_p, add_cfis_to_fde): New.
16945         (dwarf2out_frame_debug_after_prologue): New.
16946         (dwarf2cfi_frame_init): Initialize old_cfa.
16947         (dwarf2out_frame_debug_restore_state): Likewise.
16948         * dwarf2out.c (dwarf2out_emit_cfi): Only do output for cfi_asm.
16949         (dwarf2out_switch_text_section): Don't clear dw_fde_current_label here.
16950         * final.c (final_start_function): Call
16951         dwarf2out_frame_debug_after_prologue.
16952
16953 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
16954             Richard Henderson  <rth@redhat.com>
16955
16956         * dwarf2cfi.c (cfi_insn): New.
16957         (dwarf2out_cfi_label): Don't emit cfi label here.
16958         (add_fde_cfi): Create a NOTE_INSN_CFI.
16959         (dwarf2out_frame_debug): Setup cfi_insn.
16960         (dwarf2out_frame_debug_init): Loop over insns creating CFI notes.
16961         (dwarf2out_cfi_begin_epilogue): Make static.
16962         (dwarf2out_frame_debug_restore_state): Make static.
16963         * dwarf2out.c (output_cfi_directive): Make static.
16964         (dwarf2out_emit_cfi): New.
16965         * dwarf2out.h: Update.
16966         * final.c (final): Remove CFI notes.
16967         (final_scan_insn): Don't call dwarf2out_cfi_begin_epilogue,
16968         dwarf2out_frame_debug_restore_state, dwarf2out_frame_debug.
16969         Handle NOTE_INSN_CFI and NOTE_INSN_CFI_LABEL.
16970         * insn-notes.def (NOTE_INSN_CFI): New.
16971         (NOTE_INSN_CFI_LABEL): New.
16972         * rtl.h (union rtunion_def): Add rt_cfi member.
16973         (XCFI, XCCFI, NOTE_CFI, NOTE_LABEL_NUMBER): New.
16974
16975 2011-07-07  Richard Henderson  <rth@redhat.com>
16976
16977         * dwarf2cfi.c: New file.
16978         * Makefile.in (OBJS): Add it.
16979         (GTFILES): Add dwarf2cfi.c and dwarf2out.h.
16980         * gengtype.c (open_base_files): Include dwarf2out.h.
16981         * coretypes.h (enum var_init_status): Move from ...
16982         * rtl.h: ... here.
16983         * dwarf2out.c (saved_do_cfi_asm, dwarf2out_do_frame,
16984         dwarf2out_do_cfi_asm, cie_cfi_vec, dwarf2out_cfi_label_num,
16985         expand_builtin_dwarf_sp_column, init_return_column_size,
16986         expand_builtin_init_dwarf_reg_sizes, new_cfi, add_cfi,
16987         dwarf2out_cfi_label, emit_cfa_remember, any_cfis_emitted, add_fde_cfi,
16988         lookup_cfa_1, lookup_cfa, cfa, cfa_store, cfa_remember, args_size,
16989         old_args_size, cfa_equal_p, def_cfa_1, reg_save, initial_return_save,
16990         stack_adjust_offset, barrier_args_size, compute_barrier_args_size_1,
16991         compute_barrier_args_size, dwarf2out_args_size,
16992         dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust,
16993         queued_reg_saves, reg_saved_in_data, regs_saved_in_regs,
16994         compare_reg_or_pc, record_reg_saved_in_reg, last_reg_save_label,
16995         queue_reg_save, dwarf2out_flush_queued_reg_saves,
16996         clobbers_queued_reg_save, reg_saved_in, cfa_temp,
16997         dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
16998         dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
16999         dwarf2out_frame_debug_cfa_expression,
17000         dwarf2out_frame_debug_cfa_restore,
17001         dwarf2out_frame_debug_cfa_window_save, dwarf2out_frame_debug_expr,
17002         dwarf2out_frame_debug, dwarf2out_frame_debug_init,
17003         dwarf2out_cfi_begin_epilogue, dwarf2out_frame_debug_restore_state,
17004         get_cfa_from_loc_descr): Move to dwarf2cfi.c.
17005         (dw_cfi_ref, dw_fde_ref, dw_cfi_oprnd_ref, enum dw_cfi_oprnd_type,
17006         dw_cfi_oprnd, dw_cfi_node, cfi_vec, dw_cfa_location, dw_fde_node,
17007         dw_val_ref, dw_die_ref, const_dw_die_ref, dw_loc_descr_ref,
17008         dw_loc_list_ref, enum dw_val_class, dw_vec_const, dw_val_node,
17009         dw_loc_descr_node): Move to dwarf2out.h.
17010         (current_fde, output_cfi_directive, build_cfa_loc, get_address_mode,
17011         mem_loc_descriptor): Export.
17012         (build_cfa_aligned_loc): Export.  Take CFA as a parameter.
17013         (dwarf2out_frame_init): Extract CIE generation code to
17014         dwarf2cfi_frame_init.
17015
17016 2011-07-07  Eric Botcazou  <ebotcazou@adacore.com>
17017
17018         PR target/49660
17019         * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Add
17020         MASK_V8PLUS, remove commented out flag and reorder.
17021
17022 2011-07-07  Jakub Jelinek  <jakub@redhat.com>
17023
17024         PR c/49644
17025         * c-typeck.c (build_binary_op): For MULT_EXPR and TRUNC_DIV_EXPR with
17026         one non-complex and one complex argument, call c_save_expr on both
17027         operands.
17028
17029 2011-07-07  Martin Jambor  <mjambor@suse.cz>
17030
17031         PR middle-end/49495
17032         * cgraphunit.c (verify_edge_corresponds_to_fndecl): New function.
17033         (verify_cgraph_node): Some functinality moved to
17034         verify_edge_corresponds_to_fndecl, call it.
17035
17036 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
17037
17038         * config.gcc (*local*): Remove.
17039         * doc/install-old.texi: Don't mention local configurations.
17040
17041 2011-07-07  Jakub Jelinek  <jakub@redhat.com>
17042
17043         PR debug/49522
17044         * df-problems.c (dead_debug_reset): Remove dead_debug_uses
17045         referencing debug insns that have been reset.
17046         (dead_debug_insert_before): Don't assert reg is non-NULL,
17047         instead return immediately if it is NULL.
17048
17049 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
17050
17051         * config/i386/t-crtpic, config/i386/t-svr3dbx, config/pa/t-pa: Remove.
17052
17053 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
17054
17055         * hw-doloop.c: New file.
17056         * hw-doloop.h: New file.
17057         * Makefile.in (OBJS): Add hw-doloop.o.
17058         (hw-doloop.o): New rule.
17059         ($(obj_out_file)): Add hw-doloop.h dependency.
17060         * config/bfin/bfin.c: Include "hw-doloop.h".
17061         (loop_info, DEF_VEC_P for loop_info, loop_info_d): Remove.
17062         (bfin_dump_loops, bfin_bb_in_loop, bfin_scan_loop): Remove.
17063         (hwloop_optimize): Renamed from bfin_optimize_loop.  Argument
17064         type changed to hwloop_info.  Return bool, true if the loop was
17065         successfully optimized.  Remove code that was moved to
17066         hw-doloop.c, and adjust other parts.
17067         (hwloop_fail): New static function, containing parts that used
17068         to be in bfin_optimize_loop.
17069         (bfin_discover_loop, bfin_discover_loops, free_loops,
17070         bfin_reorder_loops): Remove.
17071         (hwloop_pattern_reg): New static function.
17072         (bfin_doloop_hooks): New variable.
17073         (bfin_reorg_loops): Remove most code, call reorg_loops.
17074         * config/bfin/bfin.md (doloop_end splitter): Also enable if
17075         loop counter is a memory_operand.
17076
17077 2011-07-07  H.J. Lu  <hongjiu.lu@intel.com>
17078
17079         * config.gcc: Support --with-multilib-list for x86 Linux targets.
17080
17081         * configure.ac: Mention x86-64 for --with-multilib-list.
17082         * configure: Regenerated.
17083
17084         * config/i386/gnu-user64.h (SPEC_64): Support x32.
17085         (SPEC_32): Likewise.
17086         (ASM_SPEC): Likewise.
17087         (LINK_SPEC): Likewise.
17088         (TARGET_THREAD_SSP_OFFSET): Likewise.
17089         (TARGET_THREAD_SPLIT_STACK_OFFSET): Likewise.
17090         (SPEC_X32): New.
17091
17092         * config/i386/i386.h (TARGET_X32): New.
17093         (TARGET_LP64): New.
17094         (LONG_TYPE_SIZE): Likewise.
17095         (POINTER_SIZE): Likewise.
17096         (POINTERS_EXTEND_UNSIGNED): Likewise.
17097         (OPT_ARCH64): Support x32.
17098         (OPT_ARCH32): Likewise.
17099
17100         * config/i386/i386.opt (mx32): New.
17101
17102         * config/i386/kfreebsd-gnu64.h (GNU_USER_LINK_EMULATIONX32): New.
17103         (GLIBC_DYNAMIC_LINKERX32): Likewise.
17104         * config/i386/linux64.h (GNU_USER_LINK_EMULATIONX32): Likewise.
17105         (GLIBC_DYNAMIC_LINKERX32): Likewise.
17106
17107         * config/linux.h (UCLIBC_DYNAMIC_LINKERX32): New.
17108         (BIONIC_DYNAMIC_LINKERX32): Likewise.
17109         (GNU_USER_DYNAMIC_LINKERX32): Likewise.
17110
17111         * config/i386/t-linux64: Support TM_MULTILIB_CONFIG.
17112
17113         * doc/install.texi: Document --with-multilib-list for Linux/x86-64.
17114
17115         * doc/invoke.texi: Document -mx32.
17116
17117 2011-07-07  Richard Sandiford  <richard.sandiford@linaro.org>
17118
17119         * doc/invoke.texi (mwords-little-endian): Deprecate.
17120         * config/arm/arm.opt (mwords-little-endian): Likewise.
17121         * config/arm/arm.c (arm_option_override): Warn about the deprecation
17122         of -mwords-little-endian.
17123
17124 2011-07-07  Richard Sandiford  <richard.sandiford@linaro.org>
17125
17126         * reload1.c (choose_reload_regs): Use mode sizes to check whether
17127         an old reload register completely defines the required value.
17128
17129 2011-07-07  Richard Guenther  <rguenther@suse.de>
17130
17131         * fold-const.c (fold_unary_loc): Do not strip sign-changes
17132         for NEGATE_EXPR.
17133
17134 2011-07-07  Richard Guenther  <rguenther@suse.de>
17135
17136         * tree-vrp.c (simplify_conversion_using_ranges): New function.
17137         (simplify_stmt_using_ranges): Call it.
17138
17139 2011-07-07  Kai Tietz  <ktietz@redhat.com>
17140
17141         * tree-ssa-forwprop.c (truth_valued_ssa_name): New function.
17142         (lookup_logical_inverted_value): Likewise.
17143         (simplify_bitwise_binary_1): Likewise.
17144         (simplify_bitwise_binary): Use simplify_bitwise_binary_1.
17145
17146 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
17147
17148         * gcc.c (%[Spec]): Don't document.
17149         (struct spec_list): Update comment.
17150         (do_spec_1): Don't handle %[Spec].
17151         * doc/invoke.texi (%[@var{name}]): Remove documentation of spec.
17152
17153 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
17154
17155         * common/common-target-def.h (TARGET_HAVE_NAMED_SECTIONS): Don't
17156         default based on TARGET_ASM_NAMED_SECTION.
17157         * common/common-target.def (have_named_sections): Default to true.
17158         * common/config/default-common.c: Don't include tm.h.
17159         * common/config/picochip/picochip-common.c
17160         (TARGET_HAVE_NAMED_SECTIONS): Don't define.
17161         * common/config/m32c/m32c-common.c: Remove.
17162         * config.gcc (m32c*-*-*): Set target_has_targetm_common=no.
17163         * config/alpha/osf5.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
17164         * config/i386/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
17165         * config/m68k/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
17166         * config/pa/som.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
17167         * config/pdp11/pdp11.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
17168         * config/vax/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
17169
17170 2011-07-07  Jakub Jelinek  <jakub@redhat.com>
17171
17172         PR middle-end/49640
17173         * gimplify.c (gimplify_compound_lval): For last 2 ARRAY_*REF operands
17174         and last COMPONENT_REF operand call gimplify_expr on it if non-NULL.
17175
17176 2011-07-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17177
17178         PR libmudflap/49550
17179         * gcc.c (MFWRAP_SPEC): Also wrap mmap64.
17180
17181 2011-07-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17182
17183         PR target/39150
17184         * configure.ac (gcc_cv_as_hidden): Also accept
17185         x86_64-*-solaris2.1[0-9]*.
17186         (gcc_cv_as_cfi_directive): Likewise.
17187         (gcc_cv_as_comdat_group_group): Likewise.
17188         (set_have_as_tls): Likewise.
17189         * configure: Regenerate.
17190         * config.gcc (i[34567]86-*-solaris2*): Also handle
17191         x86_64-*-solaris2.1[0-9]*.
17192         * config.host (i[34567]86-*-solaris2*): Likewise.
17193         * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
17194         * config/sol2-bi.h (ASM_CPU_DEFAULT_SPEC): Redefine.
17195         [USE_GLD] (ARCH_DEFAULT_EMULATION): Define.
17196         (TARGET_LD_EMULATION): Use it.
17197         * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC): Define.
17198         (SUBTARGET_CPU_EXTRA_SPECS): Add asm_cpu_default.
17199         * config/i386/sol2-bi.h (ASM_CPU32_DEFAULT_SPEC): Define.
17200         (ASM_CPU64_DEFAULT_SPEC): Define.
17201         (ASM_CPU_SPEC): Use %(asm_cpu_default).
17202         (ASM_SPEC): Redefine.
17203         (DEFAULT_ARCH32_P): Define using TARGET_64BIT_DEFAULT.
17204         * config/host-solaris.c [__x86_64__] (TRY_EMPTY_VM_SPACE): Reduce.
17205         * doc/install.texi (Specific, amd64-*-solaris2.1[0-9]*): Document.
17206         (Specific, i?86-*-solaris2.10): Mention x86_64-*-solaris2.1[0-9]*
17207         configuration.
17208         (Specific, x86_64-*-solaris2.1[0-9]*): Document.
17209
17210 2011-07-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17211
17212         * config/sol2.h (ASM_SPEC): Split into ...
17213         (ASM_SPEC_BASE, ASM_PIC_SPEC): ... this.
17214         * config/i386/sol2.h (ASM_SPEC): Define using ASM_SPEC_BASE.
17215         * config/i386/sol2-bi.h (ASM_CPU_SPEC): Redefine.
17216         (ASM_SPEC): Use ASM_SPEC_BASE.
17217         * config/sparc/sol2.h (ASM_SPEC): Redefine.
17218
17219 2011-07-07  Georg-Johann Lay  <avr@gjlay.de>
17220
17221         * config/avr/avr.md (*reload_insi): Change predicate #1 to
17222         const_int_operand.  Ditto for peep2 producing this insn.
17223         Add argument to output_reload_insisf call.
17224         (*movsi,*movsf): Add argument to output_movsisf call.
17225         (*reload_insf): New insn and new peep2 to produce it.
17226         * config/avr/avr-protos.h (output_movsisf): Change prototype.
17227         (output_reload_insisf): Change prototype.
17228         * config/avr/avr.c (avr_asm_len): New function.
17229         (output_reload_insisf): Rewrite.
17230         (output_movsisf): Change prototype.  output_reload_insisf for
17231         all CONST_INT and CONST_DOUBLE.  ALlow moving 0.0f to memory.
17232         (adjust_insn_length): Add argument to output_movsisf and
17233         output_reload_insisf call.
17234
17235 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
17236
17237         * emit-rtl.c (paradoxical_subreg_p): New function.
17238         * rtl.h (paradoxical_subreg_p): Declare.
17239         * combine.c (set_nonzero_bits_and_sign_copies, get_last_value,
17240         apply_distributive_law, simplify_comparison, simplify_set): Use it.
17241         * cse.c (record_jump_cond, cse_insn): Likewise.
17242         * expr.c (force_operand): Likewise.
17243         * rtlanal.c (num_sign_bit_copies1): Likewise.
17244         * reload1.c (eliminate_regs_1, strip_paradoxical_subreg): Likewise.
17245         * reload.c (push_secondary_reload, find_reloads_toplev): Likewise.
17246         (push_reload): Use precision to check for paradoxical subregs.
17247         * expmed.c (extract_bit_field_1): Likewise.
17248
17249         * machmode.h (HWI_COMPUTABLE_MODE_P): New macro.
17250         * combine.c (set_nonzero_bits_and_sign_copies): Use it.
17251         (find_split-point, combine_simplify_rtx, simplify_if_then_else,
17252         simplify_set, simplify_logical, expand_compound_operation,
17253         make_extraction, force_to_mode, if_then_else_cond, extended_count,
17254         try_widen_shift_mode, simplify_shift_const_1, simplify_comparison,
17255         record_value_for_reg): Likewise.
17256         * expmed.c (expand_widening_mult, expand_mult_highpart): Likewise.
17257         * simplify-rtx. c (simplify_unary_operation_1,
17258         simplify_binary_operation_1, simplify_const_relational_operation):
17259         Likewise.
17260
17261         * explow.c (trunc_int_for_mode): Use GET_MODE_PRECISION
17262         instead of GET_MODE_BITSIZE where appropriate.
17263         * rtlanal.c (subreg_lsb_1, subreg_get_info, nonzero_bits1,
17264         num_sign_bit_copies1, canonicalize_condition, low_bitmask_len,
17265         init_num_sign_bit_copies_in_rep): Likewise.
17266         * cse.c (fold_rtx, cse_insn): Likewise.
17267         * loop-doloop.c (doloop_modify, doloop_optimize): Likewise.
17268         * simplify-rtx.c (simplify_unary_operation_1,
17269         simplify_const_unary_operation, simplify_binary_operation_1,
17270         simplify_const_binary_operation, simplify_ternary_operation,
17271         simplify_const_relational_operation, simplify_subreg): Likewise.
17272         * combine.c (try_combine, find_split_point, combine_simplify_rtx,
17273         simplify_if_then_else, simplify_set, expand_compound_operation,
17274         expand_field_assignment, make_extraction, if_then_else_cond,
17275         make_compound_operation, force_to_mode, make_field_assignment,
17276         reg_nonzero_bits_for_combine, reg_num_sign_bit_copies_for_combine,
17277         extended_count, try_widen_shift_mode, simplify_shift_const_1,
17278         simplify_comparison, record_promoted_value, simplify_compare_const,
17279         record_dead_and_set_regs_1): Likewise.
17280
17281         Revert:
17282         * simplify-rtx.c (simplify_const_binary_operation): Use the
17283         shift_truncation_mask hook instead of performing modulo by width.
17284         Compare against mode precision, not bitsize.
17285         * combine.c (combine_simplify_rtx, simplify_shift_const_1):
17286         Use shift_truncation_mask instead of constructing the value manually.
17287
17288 2011-07-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
17289
17290         * config/rs6000/rs6000-protos.h (rs6000_call_indirect_aix): New
17291         declaration.
17292         (rs6000_save_toc_in_prologue_p): Ditto.
17293
17294         * config/rs6000/rs6000.opt (-mr11): New switch to disable loading
17295         up the static chain (r11) during indirect function calls.
17296         (-msave-toc-indirect): New undocumented debug switch.
17297
17298         * config/rs6000/rs6000.c (struct machine_function): Add
17299         save_toc_in_prologue field to note whether the prologue needs to
17300         save the TOC value in the reserved stack location.
17301         (rs6000_emit_prologue): Use TOC_REGNUM instead of 2.  If we need
17302         to save the TOC in the prologue, do so.
17303         (rs6000_trampoline_init): Don't allow creating AIX style
17304         trampolines if -mno-r11 is in effect.
17305         (rs6000_call_indirect_aix): New function to create AIX style
17306         indirect calls, adding support for -mno-r11 to suppress loading
17307         the static chain, and saving the TOC in the prologue instead of
17308         the call body.
17309         (rs6000_save_toc_in_prologue_p): Return true if we are saving the
17310         TOC in the prologue.
17311
17312         * config/rs6000/rs6000.md (STACK_POINTER_REGNUM): Add more fixed
17313         register numbers.
17314         (TOC_REGNUM): Ditto.
17315         (STATIC_CHAIN_REGNUM): Ditto.
17316         (ARG_POINTER_REGNUM): Ditto.
17317         (SFP_REGNO): Delete, unused.
17318         (TOC_SAVE_OFFSET_32BIT): Add constants for AIX TOC save and
17319         function descriptor offsets.
17320         (TOC_SAVE_OFFSET_64BIT): Ditto.
17321         (AIX_FUNC_DESC_TOC_32BIT): Ditto.
17322         (AIX_FUNC_DESC_TOC_64BIT): Ditto.
17323         (AIX_FUNC_DESC_SC_32BIT): Ditto.
17324         (AIX_FUNC_DESC_SC_64BIT): Ditto.
17325         (ptrload): New mode attribute for the appropriate load of a pointer.
17326         (call_indirect_aix32): Delete, rewrite AIX indirect function calls.
17327         (call_indirect_aix64): Ditto.
17328         (call_value_indirect_aix32): Ditto.
17329         (call_value_indirect_aix64): Ditto.
17330         (call_indirect_nonlocal_aix32_internal): Ditto.
17331         (call_indirect_nonlocal_aix32): Ditto.
17332         (call_indirect_nonlocal_aix64_internal): Ditto.
17333         (call_indirect_nonlocal_aix64): Ditto.
17334         (call): Rewrite AIX indirect function calls.  Add support for
17335         eliminating the static chain, and for moving the save of the TOC
17336         to the function prologue.
17337         (call_value): Ditto.
17338         (call_indirect_aix<ptrsize>): Ditto.
17339         (call_indirect_aix<ptrsize>_internal): Ditto.
17340         (call_indirect_aix<ptrsize>_internal2): Ditto.
17341         (call_indirect_aix<ptrsize>_nor11): Ditto.
17342         (call_value_indirect_aix<ptrsize>): Ditto.
17343         (call_value_indirect_aix<ptrsize>_internal): Ditto.
17344         (call_value_indirect_aix<ptrsize>_internal2): Ditto.
17345         (call_value_indirect_aix<ptrsize>_nor11): Ditto.
17346         (call_nonlocal_aix32): Relocate in the rs6000.md file.
17347         (call_nonlocal_aix64): Ditto.
17348
17349         * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mr11 and
17350         -mno-r11 documentation.
17351
17352 2011-07-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
17353
17354         PR other/49658
17355         * doc/extend.texi (Compound Literals): Fix typo.
17356
17357 2011-07-06  James Greenhalgh  <james.greenhalgh@arm.com>
17358
17359         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Add __ARM_FEATURE_DSP.
17360
17361 2011-07-06  Basile Starynkevitch  <basile@starynkevitch.net>
17362
17363         * configure.ac (plugin-version.h): Generate
17364         GCCPLUGIN_VERSION_MAJOR, GCCPLUGIN_VERSION_MINOR,
17365         GCCPLUGIN_VERSION_PATCHLEVEL, GCCPLUGIN_VERSION constant integer
17366         macros.
17367
17368         * configure: Regenerate.
17369
17370         * doc/plugins.texi (Building GCC plugins): Mention
17371         GCCPLUGIN_VERSION ... constant macros in plugin-version.h.
17372
17373 2011-07-06  Bernd Schmidt  <bernds@codesourcery.com>
17374
17375         * machmode.h (TRULY_NOOP_TRUNCATION_MODES_P): New macro.
17376         * combine.c (make_extraction, gen_lowpart_or_truncate,
17377         apply_distributive_law, simplify_comparison,
17378         reg_truncated_to_mode, record_truncated_value): Use it.
17379         * cse.c (notreg_cost): Likewise.
17380         * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
17381         * expr.c (convert_move, convert_modes): Likewise.
17382         * optabs.c (expand_binop, expand_unop): Likewise.
17383         * postreload.c (move2add_last_label): Likewise.
17384         * regmove.c (optimize_reg_copy_3): Likewise.
17385         * rtlhooks.c (gen_lowpart_general): Likewise.
17386         * simplify-rtx.c (simplify_unary_operation_1): Likewise.
17387
17388 2011-07-06  Joseph Myers  <joseph@codesourcery.com>
17389
17390         * config/rs6000/vxworks.h (WORDS_BIG_ENDIAN): Define.
17391
17392 2011-07-06  Bernd Schmidt  <bernds@codesourcery.com>
17393
17394         * cse.c (find_comparison_args): Use val_mode_signbit_set_p.
17395         * simplify-rtx.c (mode_signbit_p): Use GET_MODE_PRECISION.
17396         (val_mode_signbit_p, val_mode_signbit_set_p): New functions.
17397         (simplify_const_unary_operation, simplify_binary_operation_1,
17398         simplify_const_binary_operation, simplify_const_relational_operation):
17399         Use them.  Use GET_MODE_MASK for masking and sign-extensions.
17400         * combine.c (set_nonzero_bits_and_sign_copies, simplify_set,
17401         combine_simplify_rtx, force_to_mode, reg_nonzero_bits_for_combine,
17402         simplify_shift_const_1, simplify_comparison): Likewise.
17403         * expr.c (convert_modes): Likewise.
17404         * rtlanal.c (nonzero_bits1, canonicalize_condition): Likewise.
17405         * expmed.c (emit_cstore, emit_store_flag_1, emit_store_flag): Likewise.
17406         * rtl.h (val_mode_signbit_p, val_mode_signbit_set_p): Declare.
17407
17408         * simplify-rtx.c (simplify_ternary_operation): Remove dead code.
17409
17410 2011-07-06  Richard Guenther  <rguenther@suse.de>
17411
17412         PR tree-optimization/49645
17413         * c-decl.c (finish_decl): Also set DECL_HARD_REGISTER for global
17414         register variables.
17415         * tree-ssa-sccvn.c (vn_reference_op_eq): Disregard differences
17416         in type qualification here ...
17417         (copy_reference_ops_from_ref): ... not here.
17418         (vn_reference_lookup_3): ... or here.
17419         (copy_reference_ops_from_ref): Record decl bases as MEM[&decl].
17420         (vn_reference_lookup): Do the lookup with a valueized ao-ref.
17421
17422 2011-07-06  Ian Lance Taylor  <iant@google.com>
17423
17424         * doc/install.texi (Configuration): It's
17425         --enable-gnu-indirect-function, not --enable-indirect-function.
17426
17427 2011-07-06  Bernd Schmidt  <bernds@codesourcery.com>
17428
17429         * simplify-rtx.c (simplify_const_binary_operation): Use the
17430         shift_truncation_mask hook instead of performing modulo by width.
17431         Compare against mode precision, not bitsize.
17432         * combine.c (combine_simplify_rtx, simplify_shift_const_1):
17433         Use shift_truncation_mask instead of constructing the value manually.
17434
17435 2011-07-06  H.J. Lu  <hongjiu.lu@intel.com>
17436
17437         PR middle-end/47383
17438         * tree-ssa-address.c (addr_for_mem_ref): Use pointer_mode for
17439         address computation and convert to address_mode if needed.
17440
17441 2011-07-06  Richard Guenther  <rguenther@suse.de>
17442
17443         * tree.c (build_common_tree_nodes_2): Merge with
17444         build_common_tree_nodes.
17445         * tree.h (build_common_tree_nodes): Adjust prototype.
17446         (build_common_tree_nodes_2): Remove.
17447         * doc/tm.texi.in (lang_hooks.builtin_function): Adjust.
17448         * doc/tm.texi (lang_hooks.builtin_function): Regenerate.
17449
17450 2011-07-05  Jakub Jelinek  <jakub@redhat.com>
17451
17452         PR tree-optimization/49618
17453         * tree-eh.c (tree_could_trap_p) <case CALL_EXPR>: For DECL_WEAK
17454         t recurse on the decl.
17455         <case FUNCTION_DECL, case VAR_DECL>: For DECL_WEAK decls
17456         return true if expr isn't known to be defined in current
17457         TU or some other LTO partition.
17458
17459 2011-07-05  Michael Meissner  <meissner@linux.vnet.ibm.com>
17460
17461         * params.def (PARAM_CASE_VALUES_THRESHOLD): New parameter to
17462         override CASE_VALUES_THRESHOLD.
17463
17464         * stmt.c (toplevel): Include params.h.
17465         (case_values_threshold): Use the --param case-values-threshold
17466         value if non-zero, otherwise use machine dependent value.
17467         (expand_case): Use case_values_threshold.
17468
17469         * Makefile.in (stmt.o): Add $(PARAMS_H) dependency.
17470
17471         * doc/invoke.texi (--param case-values-threshold): Document.
17472
17473 2011-07-05  Richard Henderson  <rth@redhat.com>
17474
17475         * dwarf2out.c (dwarf2out_cfi_label): Make static.
17476         (dwarf2out_flush_queued_reg_saves): Make static.
17477         (dwarf2out_reg_save): Remove.
17478         (dwarf2out_return_save): Remove.
17479         (dwarf2out_return_reg): Remove.
17480         (dwarf2out_reg_save_reg): Remove.
17481         (dwarf2out_def_cfa): Merge into ...
17482         (dwarf2out_frame_init): ... here.
17483         * dwarf2out.h, tree.h: Remove declarations as necessary.
17484
17485 2011-07-05  Richard Henderson  <rth@redhat.com>
17486
17487         * config/ia64/ia64.c (ia64_dwarf_handle_frame_unspec): Remove.
17488         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
17489         (ia64_expand_epilogue): Emit an empty FRAME_RELATED_EXPR for
17490         the alloc insn.
17491
17492         * config/ia64/ia64.c (ia64_emit_deleted_label_after_insn): Remove.
17493         (IA64_CHANGE_CFA_IN_EPILOGUE): Remove.
17494         (process_epilogue): Don't call dwarf2out_def_cfa.
17495
17496         * config/ia64/ia64.c (ia64_expand_prologue): Use pc_rtx to
17497         indicate the return address save.
17498         (process_cfa_register): Likewise.
17499
17500         * config/ia64/ia64.c (ia64_dwarf2out_def_steady_cfa): Remove.
17501         (process_cfa_adjust_cfa, ia64_asm_unwind_emit): Don't call it.
17502
17503         * config/ia64/ia64.c (ia64_expand_prologue): Emit REG_CFA_REGISTER
17504         for ar.pfs save at alloc insn.
17505
17506 2011-07-05  Richard Henderson  <rth@redhat.com>
17507
17508         * config/arm/arm.c (arm_dwarf_handle_frame_unspec): Remove.
17509         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
17510         (arm_expand_prologue): Use REG_CFA_REGISTER to mark the
17511         stack pointer save.
17512         (arm_unwind_emit_set): Don't recognize UNSPEC_STACK_ALIGN.
17513         (arm_unwind_emit): Walk REG_NOTES for unwinding notes.  Emit
17514         proper unwind info for a REG_CFA_REGISTER save of stack pointer.
17515         * config/arm/arm.md (UNSPEC_STACK_ALIGN): Remove.
17516
17517 2011-07-05  Richard Henderson  <rth@redhat.com>
17518
17519         * config/vax/vax.md (define_c_enum unspecv): New.  Define the
17520         VUNSPEC_* constants here instead of via define_constants.
17521         (VUNSPEC_PEM): New constant.
17522         (procedure_entry_mask): New insn.
17523         (prologue): New expander.
17524         * config/vax/vax.c (vax_add_reg_cfa_offset): New.
17525         (vax_expand_prologue): Rename from vax_output_function_prologue;
17526         emit rtl instead of text.
17527         (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
17528         (print_operand): Add 'x' prefix.
17529
17530 2011-07-05  H.J. Lu  <hongjiu.lu@intel.com>
17531
17532         PR middle-end/47715
17533         * calls.c (precompute_register_parameters): Promote the function
17534         argument before checking non-legitimate constant.
17535
17536 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
17537
17538         PR tree-optimization/47654
17539         * graphite-blocking.c (pbb_strip_mine_time_depth): Do not return bool.
17540         (lst_do_strip_mine_loop): Return an int.
17541         (lst_do_strip_mine): Same.
17542         (scop_do_strip_mine): Same.
17543         (scop_do_block): Loop blocking should strip-mine at least two loops.
17544         * graphite-interchange.c (lst_interchange_select_outer): Return an int.
17545         (scop_do_interchange): Same.
17546         * graphite-poly.h (scop_do_interchange): Update declaration.
17547         (scop_do_strip_mine): Same.
17548
17549 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
17550
17551         * graphite-clast-to-gimple.c (precision_for_value): Removed.
17552         (precision_for_interval): Removed.
17553         (gcc_type_for_interval): Use mpz_sizeinbase.
17554
17555 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
17556
17557         * graphite-ppl.h (value_max): Correct computation of max.
17558
17559 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
17560
17561         * graphite-clast-to-gimple.c (clast_name_to_index): Add missing space.
17562
17563 2011-07-05  Richard Guenther  <rguenther@suse.de>
17564
17565         * c-decl.c (c_init_decl_processing): Defer building common
17566         tree nodes to c_common_nodes_and_builtins.
17567
17568 2011-07-05  Razya Ladelsky  <razya@il.ibm.com>
17569
17570         PR tree-optimization/49580
17571         * tree-cfg.c (gimple_duplicate_sese_tail): Remove handling of
17572         the loop's number of iterations.
17573         * tree-parloops.c (transform_to_exit_first_loop): Add the
17574         handling of the loop's number of iterations before the call
17575         to gimple_duplicate_sese_tail.
17576         Insert the stmt caclculating the new rhs of the loop's
17577         condition stmt to the preheader instead of iters_bb.
17578
17579 2011-07-05  H.J. Lu  <hongjiu.lu@intel.com>
17580
17581         PR rtl-optimization/47449
17582         * fwprop.c (forward_propagate_subreg): Don't propagate hard
17583         register nor zero/sign extended hard register.
17584
17585 2011-07-05  Richard Guenther  <rguenther@suse.de>
17586
17587         PR tree-optimization/49518
17588         PR tree-optimization/49628
17589         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Skip
17590         irrelevant and invariant data-references.
17591         (vect_analyze_data_ref_access): For invariant loads clear the
17592         group association.
17593
17594 2011-07-04  Jakub Jelinek  <jakub@redhat.com>
17595
17596         PR rtl-optimization/49619
17597         * combine.c (combine_simplify_rtx): In PLUS -> IOR simplification
17598         pass VOIDmode as op0_mode to recursive call, and return temp even
17599         when different from tor, just if it is not IOR of the original
17600         PLUS arguments.
17601
17602         PR rtl-optimization/49472
17603         * simplify-rtx.c (simplify_unary_operation_1) <case NEG>: When
17604         negating MULT, negate the second operand instead of first.
17605         (simplify_binary_operation_1) <case MULT>: If one operand is
17606         a NEG and the other is MULT, don't attempt to optimize by negation
17607         of the MULT operand if it only moves the NEG operation around.
17608
17609         PR debug/49602
17610         * tree-into-ssa.c (rewrite_debug_stmt_uses): Disregard
17611         get_current_def return value if it can't be trusted to be
17612         the current value of the variable in the current bb.
17613
17614 2011-07-04  Uros Bizjak  <ubizjak@gmail.com>
17615
17616         PR target/49600
17617         * config/i386/i386.md (SSE2 int->float split): Push operand 1 in
17618         general register to memory for !TARGET_INTER_UNIT_MOVES.
17619
17620 2011-07-04  Georg-Johann Lay  <avr@gjlay.de>
17621
17622         PR target/44643
17623         * config/avr/avr.c (avr_insert_attributes): Use TYPE_READONLY
17624         instead of TREE_READONLY.
17625
17626 2011-07-04  Georg-Johann Lay  <avr@gjlay.de>
17627
17628         * doc/extend.texi (AVR Built-in Functions): Update documentation
17629         of __builtin_avr_fmul*.
17630         * config/avr/avr.c (avr_init_builtins): Don't depend on AVR_HAVE_MUL.
17631         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Ditto.
17632         * config/avr/avr.md (fmul): Rename to fmul_insn.
17633         (fmuls): Rename to fmuls_insn.
17634         (fmulsu): Rename to fmulsu_insn.
17635         (fmul,fmuls,fmulsu): New expander.
17636         (*fmul.call,*fmuls.call,*fmulsu.call): New Insn.
17637         * config/avr/t-avr (LIB1ASMFUNCS): Add _fmul, _fmuls, _fmulsu.
17638         * config/avr/libgcc.S (__fmul): New function.
17639         (__fmuls): New function.
17640         (__fmulsu,__fmulsu_exit): New function.
17641
17642 2011-07-04  Richard Guenther  <rguenther@suse.de>
17643
17644         PR tree-optimization/49615
17645         * tree-cfgcleanup.c (split_bbs_on_noreturn_calls): Fix
17646         basic-block index check.
17647
17648 2011-07-04  Georg-Johann Lay  <avr@gjlay.de>
17649
17650         * longlong.h (count_leading_zeros, count_trailing_zeros,
17651         COUNT_LEADING_ZEROS_0): Define for target avr if W_TYPE_SIZE is 16
17652         resp. 64.
17653
17654 2011-07-03  Ira Rosen  <ira.rosen@linaro.org>
17655
17656         PR tree-optimization/49610
17657         * tree-vect-loop.c (vect_is_slp_reduction): Check that DEF_STMT has
17658         a basic block.
17659
17660 2011-07-02  Eric Botcazou  <ebotcazou@adacore.com>
17661             Olivier Hainque  <hainque@adacore.com>
17662             Nicolas Setton  <setton@adacore.com>
17663
17664         * tree.h (TYPE_ARTIFICIAL): New flag.
17665         * dwarf2out.c (modified_type_die): Add a DW_AT_artificial attribute to
17666         the DIE of the type if it is artificial.
17667         (gen_array_type_die): Likewise.
17668         (gen_enumeration_type_die): Likewise.
17669         (gen_struct_or_union_type_die): Likewise.
17670         * lto-streamer-in.c (unpack_ts_base_value_fields): Use TYPE_ARTIFICIAL.
17671         * lto-streamer-out.c (pack_ts_base_value_fields): Likewise.
17672
17673 2011-07-01  Jakub Jelinek  <jakub@redhat.com>
17674
17675         * tree-object-size.c (pass_through_call): Handle
17676         BUILT_IN_ASSUME_ALIGNED.
17677
17678 2011-07-01  Martin Jambor  <mjambor@suse.cz>
17679
17680         * tree-sra.c (tree_non_mode_aligned_mem_p): Also ignore MEM_REFs.
17681
17682 2011-07-01  H.J. Lu  <hongjiu.lu@intel.com>
17683
17684         PR middle-end/48016
17685         * explow.c (update_nonlocal_goto_save_area): Use proper mode
17686         for stack save area.
17687         * function.c (expand_function_start): Likewise.
17688
17689 2011-07-01  Richard Guenther  <rguenther@suse.de>
17690
17691         PR middle-end/49596
17692         * cgraph.h (varpool_all_refs_explicit_p): Not analyzed nodes
17693         may have unknown refs.
17694
17695 2011-07-01  Kai Tietz  <ktietz@redhat.com>
17696
17697         * tree-ssa-forwprop.c (simplify_bitwise_binary): Fix typo.
17698
17699 2011-07-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17700
17701         * config.gcc: Obsolete alpha*-dec-osf5.1, mips-sgi-irix6.5.
17702         * doc/install.texi (Specific, alpha*-dec-osf5.1): Document it.
17703         (Specific, mips-sgi-irix6): Likewise.
17704
17705 2011-07-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17706
17707         PR libmudflap/49549
17708         * doc/sourcebuild.texi (Effective-Target Keywords): Document gld.
17709
17710 2011-07-01  Jakub Jelinek  <jakub@redhat.com>
17711
17712         * tree-pretty-print.c (dump_generic_code) <case CONSTRUCTOR>: Print
17713         [idx]= and [idx1 ... idx2]= before initializers if needed for
17714         array initializers.
17715
17716 2011-07-01  Chen Liqin  <liqin.gcc@gmail.com>
17717
17718         * config.gcc (score-*-elf): Remove score7.o.
17719         * config/score/t-score-elf: Likewise.
17720         * config/score/score.c: Merge score7 to score.c and
17721         remove forwarding functions.
17722         * config/score/score7.c: Deleted.
17723         * config/score/score7.h: Deleted.
17724
17725 2011-07-01  Richard Guenther  <rguenther@suse.de>
17726
17727         PR tree-optimization/49603
17728         * tree-vect-stmts.c (vectorizable_load): Remove unnecessary assert.
17729
17730 2011-06-30  Martin Jambor  <mjambor@suse.cz>
17731
17732         * tree-sra.c (struct access): Rename total_scalarization to
17733         grp_total_scalarization
17734         (completely_scalarize_var): New function.
17735         (sort_and_splice_var_accesses): Set total_scalarization in the
17736         representative access.
17737         (analyze_access_subtree): Propagate total scalarization accross the
17738         tree, no holes in totally scalarized trees, simplify coverage
17739         computation.
17740         (analyze_all_variable_accesses): Call completely_scalarize_var instead
17741         of completely_scalarize_record.
17742
17743 2011-06-30  Richard Henderson  <rth@redhat.com>
17744
17745         * config/i386/i386.h (X86_TUNE_DEEP_BRANCH_PREDICTION): Remove.
17746         (TARGET_DEEP_BRANCH_PREDICTION): Remove.
17747         * config/i386/i386.c: Don't include dwarf2out.h.
17748         (initial_ix86_tune_features): Remove X86_TUNE_DEEP_BRANCH_PREDICTION.
17749         (output_set_got): Don't test TARGET_DEEP_BRANCH_PREDICTION, delete
17750         all code dead thereafter.  Don't do dwarf2out_flush_queued_reg_saves.
17751         (ix86_expand_prologue): Set REG_CFA_FLUSH_QUEUE on set_got insn.
17752         (machopic_output_stub): Don't test TARGET_DEEP_BRANCH_PREDICTION.
17753
17754 2011-06-30  Richard Henderson  <rth@redhat.com>
17755
17756         * reg-notes.def (REG_CFA_FLUSH_QUEUE): New.
17757         * dwarf2out.c (dwarf2out_frame_debug): Handle it.
17758         * final.c (final_scan_insn): Look for it, and invoke
17759         dwarf2out_frame_debug before the insn if found.
17760
17761 2011-06-30  Richard Henderson  <rth@redhat.com>
17762
17763         * dwarf2out.c (dwarf2out_frame_debug_cfa_offset): Allow PC_RTX
17764         as a source, and interpret that as DWARF_FRAME_RETURN_COLUMN.
17765
17766 2011-06-30  Richard Henderson  <rth@redhat.com>
17767
17768         * dwarf2out.c (struct reg_saved_in_data): Provide a typedef.
17769         Define a vector of this type.
17770         (regs_saved_in_regs): Use a VEC.
17771         (num_regs_saved_in_regs): Remove.
17772         (compare_reg_or_pc): New.
17773         (record_reg_saved_in_reg): Split out from...
17774         (dwarf2out_flush_queued_reg_saves): ... here.
17775         (clobbers_queued_reg_save): Update for VEC.
17776         (reg_saved_in): Likewise.
17777         (dwarf2out_frame_debug_init): Likewise.
17778         (dwarf2out_reg_save_reg): Use record_reg_saved_in_reg.
17779         (dwarf2out_frame_debug_cfa_register): Likewise.
17780
17781 2011-06-30  Eric Botcazou  <ebotcazou@adacore.com>
17782
17783         PR tree-optimization/49572
17784         * tree-ssa-dom.c (initialize_hash_element) <GIMPLE_SINGLE_RHS>: Use the
17785         type of the RHS instead of that of the LHS for the expression type.
17786
17787 2011-06-30  Eric Botcazou  <ebotcazou@adacore.com>
17788
17789         * df-scan.c (df_get_entry_block_def_set): Use INCOMING_REGNO macro
17790         unconditionally.
17791
17792 2011-06-30  Richard Guenther  <rguenther@suse.de>
17793
17794         * opts.c (finish_options): Do not disable IPA-PTA during ltrans.
17795         * tree-ssa-structalias.c (create_variable_info_for): Do not
17796         add initial constraints for non-var-decls.  Properly handle
17797         globals in other ltrans partitions.
17798         (intra_create_variable_infos): Manually create constraints for
17799         the fake no-alias parameter.
17800         (ipa_pta_execute): Dump the cgraph, handle ltrans partitions properly
17801         and assert there are no clones.
17802
17803 2011-06-30  Richard Guenther  <rguenther@suse.de>
17804
17805         PR tree-optimization/46787
17806         * tree-data-ref.c (dr_address_invariant_p): Remove.
17807         (find_data_references_in_stmt): Invariant accesses are ok now.
17808         * tree-vect-stmts.c (vectorizable_load): Handle invariant loads.
17809         * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
17810         invariant loads.
17811
17812 2011-06-30  Martin Jambor  <mjambor@suse.cz>
17813
17814         PR tree-optimization/49094
17815         * tree-sra.c (tree_non_mode_aligned_mem_p): New function.
17816         (build_accesses_from_assign): Use it.
17817
17818 2011-06-30  Jakub Jelinek  <jakub@redhat.com>
17819
17820         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
17821         handling of BUILT_IN_ASSUME_ALIGNED.
17822
17823         PR debug/49364
17824         * dwarf2out.c (output_abbrev_section): Don't return early
17825         if abbrev_die_table_in_use is 1.
17826         (dwarf2out_finish): Instead don't call output_abbrev_section
17827         nor emit abbrev_section_label in that case.
17828
17829 2011-06-30  Nick Clifton  <nickc@redhat.com>
17830
17831         * config/v850/v850.h (CPP_SPEC): Define __v850e__ when compiling
17832         for the V850E.
17833
17834 2011-06-30  Jakub Jelinek  <jakub@redhat.com>
17835
17836         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
17837         handling of BUILT_IN_MEMPCPY_CHK and BUILT_IN_STPCPY_CHK.
17838
17839 2011-06-30  Ira Rosen  <ira.rosen@linaro.org>
17840
17841         * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
17842         both pattern and original statements if necessary.
17843         (vect_transform_loop): Likewise.
17844         * tree-vect-patterns.c (vect_pattern_recog): Update documentation.
17845         * tree-vect-stmts.c (vect_mark_relevant): Add new argument.
17846         Mark the pattern statement only if the original statement doesn't
17847         have its own uses.
17848         (process_use): Call vect_mark_relevant with additional parameter.
17849         (vect_mark_stmts_to_be_vectorized): Likewise.
17850         (vect_get_vec_def_for_operand): Use vectorized pattern statement.
17851         (vect_analyze_stmt): Handle both pattern and original statements
17852         if necessary.
17853         (vect_transform_stmt): Don't store vectorized pattern statement
17854         in the original statement.
17855         (vect_is_simple_use_1): Use related pattern statement only if the
17856         original statement is irrelevant.
17857         * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
17858
17859 2011-06-29  Changpeng Fang  <changpeng.fang@amd.com>
17860
17861         * config/i386/i386.opt (mprefer-avx128): Redefine the flag as a Mask
17862         option.
17863         * config/i386/i386.h (ix86_tune_indices): Add X86_TUNE_AVX128_OPTIMAL
17864         entry.
17865         (TARGET_AVX128_OPTIMAL): New definition.
17866         * config/i386/i386.c (initial_ix86_tune_features): Initialize
17867         X86_TUNE_AVX128_OPTIMAL entry.
17868         (ix86_option_override_internal): Enable the generation
17869         of the 128-bit instructions when TARGET_AVX128_OPTIMAL is set.
17870         (ix86_preferred_simd_mode): Use TARGET_PREFER_AVX128.
17871         (ix86_autovectorize_vector_sizes): Use TARGET_PREFER_AVX128.
17872
17873 2011-06-29  Eric Botcazou  <ebotcazou@adacore.com>
17874
17875         PR tree-optimization/49539
17876         * tree-ssa-forwprop.c (can_propagate_from): Check for abnormal SSA
17877         names by means of stmt_references_abnormal_ssa_name.
17878         (associate_plusminus): Call can_propagate_from before propagating
17879         from definition statements.
17880         (ssa_forward_propagate_and_combine): Remove superfluous newline.
17881
17882 2011-06-29  Richard Guenther  <rguenther@suse.de>
17883
17884         * doc/invoke.texi: Document -scev dump modifier.
17885         * tree-pass.h (TDF_SCEV): New dump flag.
17886         * tree-dump.c (dump_option_value_in): Add scev.
17887         * tree-chrec.c: Replace all TDF_DETAILS checks with TDF_SCEV.
17888         * tree-scalar-evolution.c: Likewise.
17889
17890 2011-06-29  Nathan Sidwell  <nathan@codesourcery.com>
17891
17892         * config/arm/unwind-arm.c (enum __cxa_type_match_result): New.
17893         (cxa_type_match): Correct declaration.
17894         (__gnu_unwind_pr_common): Reconstruct additional indirection
17895         when __cxa_type_match returns succeeded_with_ptr_to_base.
17896
17897 2011-06-29  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
17898
17899         PR rtl-optimization/49114
17900         * reload.c (struct replacement): Remove SUBREG_LOC member.
17901         (push_reload): Do not set it.
17902         (push_replacement): Likewise.
17903         (subst_reload): Remove dead code.
17904         (copy_replacements): Remove assertion.
17905         (copy_replacements_1): Do not handle SUBREG_LOC.
17906         (move_replacements): Likewise.
17907         (find_replacement): Remove dead code.  Use reload_adjust_reg_for_mode.
17908         Detect subregs via recursive descent instead of via SUBREG_LOC.
17909
17910 2011-06-29  Georg-Johann Lay  <avr@gjlay.de>
17911
17912         * config/avr/avr.c (avr_encode_section_info): Dispatch to
17913         default_encode_section_info.
17914
17915 2011-06-29  Richard Sandiford  <richard.sandiford@linaro.org>
17916
17917         PR tree-optimization/49545
17918         * builtins.c (get_object_alignment_1): Update function comment.
17919         Do not use DECL_ALIGN for functions, but test
17920         TARGET_PTRMEMFUNC_VBIT_LOCATION instead.
17921         * fold-const.c (get_pointer_modulus_and_residue): Don't check
17922         for functions here.
17923         * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
17924
17925 2011-06-29  Jakub Jelinek  <jakub@redhat.com>
17926
17927         PR debug/49567
17928         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTEND>: Give up for
17929         non-MODE_INT modes instead of asserting the mode has MODE_INT class.
17930
17931 2011-06-29  Georg-Johann Lay  <avr@gjlay.de>
17932
17933         PR target/34734
17934         * config/avr/avr.c (avr_handle_progmem_attribute): Move warning
17935         about uninitialized data attributed 'progmem' from here...
17936         (avr_encode_section_info): ...to this new function.
17937         (TARGET_ENCODE_SECTION_INFO): New define.
17938         (avr_section_type_flags): For data in ".progmem.data", remove
17939         section flag SECTION_WRITE.
17940
17941 2011-06-29  Georg-Johann Lay  <avr@gjlay.de>
17942
17943         * config/avr/t-avr (LIB1ASMFUNCS): Add _mulhisi3, _umulhisi3,
17944         _xmulhisi3_exit.
17945         * config/avr/libgcc.S (_xmulhisi3_exit): New Function.
17946         (__mulhisi3): Optimize if have MUL*.  Use XJMP instead of rjmp.
17947         (__umulhisi3): Ditto.
17948         * config/avr/avr.md (mulhisi3): New insn expender.
17949         (umulhisi3): New insn expender.
17950         (*mulhisi3_call): New insn.
17951         (*umulhisi3_call): New insn.
17952
17953 2011-06-28  Joseph Myers  <joseph@codesourcery.com>
17954
17955         * Makefile.in (LIBGCC2_CFLAGS): Remove -D__GCC_FLOAT_NOT_NEEDED.
17956
17957 2011-06-28  Richard Henderson  <rth@redhat.com>
17958
17959         * config/arm/arm.c (thumb_pop): Rename from thumb_pushpop.  Delete
17960         all code and arguments that handled pushes.  Update all callers.
17961
17962 2011-06-28  Richard Henderson  <rth@redhat.com>
17963
17964         * config/arm/arm.c (arm_output_function_prologue): Don't call
17965         thumb1_output_function_prologue.
17966         (arm_expand_prologue): Avoid dead store.
17967         (number_of_first_bit_set): Use ctz_hwi.
17968         (thumb1_emit_multi_reg_push): New.
17969         (thumb1_expand_prologue): Merge thumb1_output_function_prologue
17970         to emit the entire prologue as rtl.
17971         (thumb1_output_interwork): Split out from
17972         thumb1_output_function_prologue.
17973         (thumb1_output_function_prologue): Remove.
17974         (arm_attr_length_push_multi): Handle thumb1.
17975         * config/arm/arm.md (VUNSPEC_THUMB1_INTERWORK): New.
17976         (prologue_thumb1_interwork): New.
17977         (*push_multi): Allow thumb1; use push_mult_memory_operand.
17978         * config/arm/predicates.md (push_mult_memory_operand): New.
17979
17980 2011-06-28  Eric Botcazou  <ebotcazou@adacore.com>
17981
17982         * config/sparc/sync.md (*stbar): Delete.
17983         (*membar_v8): New insn to implement UNSPEC_MEMBAR in SPARC-V8.
17984
17985 2011-06-28  Eric Botcazou  <ebotcazou@adacore.com>
17986
17987         * tree-ssa-dom.c (initialize_hash_element): Fix oversight.
17988
17989 2011-06-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17990
17991         * config/sparc/sol2-64.h (TARGET_DEFAULT): Remove.
17992         (TARGET_64BIT_DEFAULT): Define.
17993         * config.gcc (sparc*-*-solaris2*): Move sparc/sol2-64.h to front
17994         of tm_file.
17995         * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Define.
17996
17997 2011-06-28  Joseph Myers  <joseph@codesourcery.com>
17998
17999         * common.opt (in_lto_p): New Variable entry.
18000         * flags.h (in_lto_p): Move to common.opt.
18001         * gcc.c: Include params.h.
18002         (set_option_handlers): Also use common_handle_option and
18003         target_handle_option.
18004         (main): Call global_init_params, finish_params and init_options_struct.
18005         * opts.c (debug_type_names): Move from toplev.c.
18006         (print_filtered_help): Access quiet_flag through opts pointer.
18007         (common_handle_option): Return early in the driver for some options.
18008         Access in_lto_p, dwarf_version and warn_maybe_uninitialized through
18009         opts pointer.
18010         * toplev.c (in_lto_p): Move to common.opt.
18011         (debug_type_names): Move to opts.c.
18012         * Makefile.in (OBJS): Remove opts.o.
18013         (OBJS-libcommon-target): Add opts.o.
18014         (gcc.o): Update dependencies.
18015
18016 2011-06-28  Kai Tietz  <ktietz@redhat.com>
18017
18018         * tree-ssa-forwprop.c (simplify_bitwise_binary): Improve type sinking.
18019
18020 2011-06-28  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
18021
18022         * config/arm/vfp.md ("*divsf3_vfp"): Replace '+' constraint modifier
18023         with '=' constraint modifier.
18024         (*divdf3_vfp): Likewise.
18025         ("*mulsf3_vfp"): Likewise.
18026         ("*muldf3_vfp"): Likewise.
18027         ("*mulsf3negsf_vfp"): Likewise.
18028         ("*muldf3negdf_vfp"): Likewise.
18029
18030 2011-06-28  Nick Clifton  <nickc@redhat.com>
18031
18032         * config/mn10300/mn10300.h (LINK_SPEC): Do not use linker
18033         relaxation when performing an incremental link.
18034
18035 2011-06-28  Kai Tietz  <ktietz@redhat.com>
18036
18037         * tree-ssa-math-opts.c (execute_optimize_bswap): Search
18038         within BB from last to first.
18039
18040 2011-06-28  Joseph Myers  <joseph@codesourcery.com>
18041
18042         * genattr-common.c: New.  Based on genattr.c.
18043         * Makefile.in (INSN_ATTR_H): Include insn-attr-common.h.
18044         (MOSTLYCLEANFILES): Add insn-attr-common.h.
18045         (opts.o): Update dependencies.
18046         (.PRECIOUS): Add insn-attr-common.h.
18047         (simple_rtl_generated_h): Add insn-attr-common.h.
18048         (build/genattr-common.o): New.
18049         (genprogrtl): Add attr-common.
18050         * genattr.c (main): Include insn-attr-common.h.  Don't generate
18051         definitions of DELAY_SLOTS or INSN_SCHEDULING.
18052         * opts.c: Include insn-attr-common.h instead of rtl.h and insn-attr.h.
18053
18054 2011-06-28  Georg-Johann Lay  <avr@gjlay.de>
18055
18056         * config.gcc (tm_file): Add elfos.h and avr/elf.h for
18057         avr-*-* and avr-*-rtems* targets.
18058
18059         * config/avr/elf.h: New file.
18060         (ASM_OUTPUT_BEFORE_CASE_LABEL): Define.
18061         (TARGET_ASM_SELECT_SECTION): Define.
18062         (INIT_SECTION_ASM_OP): Undefine.
18063         (FINI_SECTION_ASM_OP): Undefine.
18064         (READONLY_DATA_SECTION_ASM_OP): Undefine.
18065         (PCC_BITFIELD_TYPE_MATTERS): Undefine.
18066         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Undefine.
18067         * config/avr/avr.h:
18068         (PREFERRED_DEBUGGING_TYPE): Move to elf.h.
18069         (TARGET_ASM_NAMED_SECTION): Move to elf.h.
18070         (MAX_OFILE_ALIGNMENT): Move to elf.h.
18071         (STRING_LIMIT): Move to elf.h.
18072         (ASM_DECLARE_FUNCTION_NAME): Move to elf.h.
18073         (ASM_DECLARE_OBJECT_NAME): Remove.
18074         (ESCAPES): Remove.
18075         (ASM_OUTPUT_SKIP): Remove.
18076         (DWARF2_DEBUGGING_INFO): Remove.
18077         (OBJECT_FORMAT_ELF): Remove.
18078         (USER_LABEL_PREFIX): Remove.
18079         (ASM_OUTPUT_EXTERNAL): Remove.
18080         (ASM_OUTPUT_ASCII): Remove.
18081         (TYPE_ASM_OP): Remove.
18082         (SIZE_ASM_OP): Remove.
18083         (WEAK_ASM_OP): Remove.
18084         (STRING_ASM_OP): Remove.
18085         (SET_ASM_OP): Remove.
18086         (ASM_WEAKEN_LABEL): Remove.
18087         (TYPE_OPERAND_FMT): Remove.
18088         (ASM_DECLARE_FUNCTION_SIZE): Remove.
18089         (ASM_FINISH_DECLARE_OBJECT): Remove.
18090         (NO_DOLLAR_IN_LABEL): Remove.
18091         (ASM_GENERATE_INTERNAL_LABEL): Remove.
18092         (ASM_OUTPUT_CASE_LABEL): Remove.
18093         * config/avr/avr.c (avr_asm_output_aligned_decl_common): Use
18094         ASM_OUTPUT_ALIGNED_LOCAL, ASM_OUTPUT_ALIGNED_COMMON.
18095         (gas_output_ascii): Remove.
18096         (gas_output_limited_string): Remove.
18097         (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Remove.
18098         * config/avr/avr-protos.h
18099         (gas_output_ascii): Remove prototye.
18100         (gas_output_limited_string): Remove prototype.
18101
18102 2011-06-27  Richard Earnshaw  <rearnsha@arm.com>
18103
18104         PR target/48637
18105         * arm.c (arm_print_operand): Allow sym+offset.  Don't abort on invalid
18106         asm operands.
18107
18108 2011-06-27  Jan Hubicka  <jh@suse.cz>
18109
18110         * ipa.c (cgraph_address_taken_from_non_vtable_p): Walk references of
18111         node instead of references in node.
18112
18113 2011-06-27  Richard Henderson  <rth@redhat.com>
18114
18115         * config/alpha/alpha.c (vms_patch_builtins): Provide dummy definition.
18116         * config/ia64/ia64.c (ia64_init_builtins): Call vms_patch_builtins
18117         inside ifdef.
18118
18119 2011-06-27  Jakub Jelinek  <jakub@redhat.com>
18120
18121         * c-decl.c (union lang_tree_node): Use it in chain_next expression.
18122
18123         * builtin-types.def (BT_FN_PTR_CONST_PTR_SIZE_VAR): New.
18124         * builtins.def (BUILT_IN_ASSUME_ALIGNED): New builtin.
18125         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call,
18126         find_func_clobbers): Handle BUILT_IN_ASSUME_ALIGNED.
18127         * tree-ssa-ccp.c (bit_value_assume_aligned): New function.
18128         (evaluate_stmt, execute_fold_all_builtins): Handle
18129         BUILT_IN_ASSUME_ALIGNED.
18130         * tree-ssa-dce.c (propagate_necessity): Likewise.
18131         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
18132         call_may_clobber_ref_p_1): Likewise.
18133         * builtins.c (is_simple_builtin, expand_builtin): Likewise.
18134         (expand_builtin_assume_aligned): New function.
18135         * doc/extend.texi (__builtin_assume_aligned): Document.
18136
18137         PR debug/49544
18138         * cselib.c (promote_debug_loc): If cselib_preserve_constants
18139         and l has two DEBUG_INSN owned locs instead of just one, adjust
18140         the second location's setting_insn too.
18141
18142 2011-06-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18143
18144         PR libmudflap/38738
18145         * config/sol2.h [!USE_GLD] (MFLIB_SPEC): Define.
18146
18147 2011-06-27  Nick Clifton  <nickc@redhat.com>
18148
18149         * config/mn10300/mn10300.md (clzsi2): Use XOR after BSCH to convert
18150         bit position of highest bit set into a count of the high zero bits.
18151
18152 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
18153
18154         * dwarf2out.c (TYPE_DECL_IS_STUB): Extend mechanism to all types.
18155
18156 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
18157
18158         PR lto/48492
18159         * dwarf2out.c (dwarf2out_finish): Do not attach a DIE on the limbo list
18160         to a NULL parent.
18161
18162 2011-06-27  Richard Guenther  <rguenther@suse.de>
18163
18164         PR tree-optimization/49394
18165         * passes.c (execute_one_pass): Restore current_pass after
18166         applying IPA transforms.
18167
18168 2011-06-27  Kai Tietz  <ktietz@redhat.com>
18169
18170         * tree-ssa-math-opts.c (do_shift_rotate): Zero bits
18171         out of type precision after operation.
18172         (find_bswap): Take for limit value the integer auto-promotion
18173         into account.
18174
18175 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
18176
18177         * reorg.c (fill_simple_delay_slots): Use stop_search_p to stop the
18178         forward scan as well.
18179
18180 2011-06-27  Tristan Gingold  <gingold@adacore.com>
18181
18182         PR target/44241
18183         * config/vms/vms-protos.h: New file.
18184         * config/vms/vms-crtlmap.map: New file.
18185         * config/vms/vms.c: New file.
18186         * config/vms/make-crtlmap.awk: New file.
18187         * config/vms/vms-crtl.h: File removed.
18188         * config/vms/vms-crtl-64.h: File removed.
18189         * config/vms/t-vms (vms-crtlmap.h, vms.o): New targets.
18190         * config/alpha/vms64.h: Do not include vms-crtl-64.h
18191         * config/alpha/alpha.c (alpha_init_builtins): Remove code to
18192         clear some builtins on VMS.  Calls vms_patch_builtins.
18193         (avms_asm_output_external): Remove.
18194         * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Remove.
18195         (struct crtl_name_spec): Remove
18196         (DO_CTRL_NAMES): Remove.
18197         * config/ia64/vms.h (struct crtl_name_spec): Remove
18198         (DO_CTRL_NAMES): Remove.
18199         * config/ia64/ia64.c (alpha_init_builtins): Remove code to
18200         clear some builtins on VMS.  Calls vms_patch_builtins.
18201         (ia64_asm_output_external): Remove DO_CRTL_NAME.
18202         * config/ia64/vms64.h: Do not include vms-crtl-64.h
18203         * config.gcc (*-*-*vms*): Define extra_objs, target_gtfiles, tm_p_file.
18204
18205 2011-06-27  Tristan Gingold  <gingold@adacore.com>
18206
18207         * config/alpha/alpha.c (alpha_end_function): Always generate .end
18208         directive on VMS.
18209
18210 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
18211
18212         * config/sparc/sparc.c (sparc_frame_pointer_required): Return true if
18213         the function receives nonlocal gotos.
18214
18215 2011-06-27  Richard Guenther  <rguenther@suse.de>
18216
18217         PR tree-optimization/49536
18218         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
18219         For non-scalar inner types use a scalar type according to
18220         the scalar inner mode.
18221
18222 2011-06-27  Richard Guenther  <rguenther@suse.de>
18223
18224         PR tree-optimization/49365
18225         * params.def (min-insn-to-prefetch-ratio): Reduce from 10 to 9.
18226
18227 2011-06-27  Richard Guenther  <rguenther@suse.de>
18228
18229         PR tree-optimization/49169
18230         * fold-const.c (get_pointer_modulus_and_residue): Don't rely on
18231         the alignment of function decls.
18232
18233 2011-06-26  Iain Sandoe  <iains@gcc.gnu.org>
18234
18235         PR target/47997
18236         * config/darwin.c (darwin_mergeable_string_section): Place string
18237         constants in '.cstring' rather than '.const' when CF/NSStrings are
18238         active.
18239
18240 2011-06-26  Eric Botcazou  <ebotcazou@adacore.com>
18241
18242         * config/sparc/sparc.c (save_local_or_in_reg_p): Adjust comment.
18243         (emit_save_register_window): Likewise.
18244         (sparc_expand_prologue): Use SIZE_INT_RTX and SIZE_RTX variables.
18245         (sparc_flat_expand_prologue): Add comment.  Always emit blockage.
18246         Swap back %o7/%i7 in register naming.
18247
18248 2011-06-25  Iain Sandoe  <iains@gcc.gnu.org>
18249
18250         PR driver/49371
18251         * config/darwin.c (darwin_override_options): Improve warning when
18252         mdynamic-no-pic is given together with fPIC/fpic, also warn when it
18253         is given with fpie/fPIE.
18254         * config/darwin.h (PIE_SPEC): New, (LINK_SPEC): Use PIE_SPEC.
18255         * config/darwin9.h (PIE_SPEC): New.
18256
18257 2011-06-25  Basile Starynkevitch  <basile@starynkevitch.net>
18258
18259         * timevar.c (timevar_print): Increase width for display of timevar
18260         name.
18261
18262 2011-06-24  Jakub Jelinek  <jakub@redhat.com>
18263
18264         PR c++/46400
18265         * c-decl.c (union lang_tree_node): Use TYPE_NEXT_VARIANT
18266         instead of TYPE_CHAIN for chain_next for types.
18267
18268 2011-06-24  Richard Henderson  <rth@redhat.com>
18269
18270         * config/sparc/sparc.md (create_flat_frame_1<P:mode>): Remove.
18271         (create_flat_frame_2<P:mode>, create_flat_frame_3<P:mode>): Remove.
18272         * config/sparc/sparc.c (gen_create_flat_frame_1): Remove.
18273         (gen_create_flat_frame_2, gen_create_flat_frame_3): Remove.
18274         (sparc_flat_expand_prologue): Emit individual instructions
18275         instead of one of the above.
18276
18277 2011-06-24  Easwaran Raman  <eraman@google.com>
18278
18279         PR rtl-optimization/49429
18280         PR target/49454
18281         * expr.c (emit_block_move_hints):  Mark MEM_EXPR(x) and
18282         MEM_EXPR(y) addressable if emit_block_move_via_libcall is
18283         used to copy y into x.
18284         * calls.c (initialize_argument_information): Mark
18285         an argument addressable if it is passed by invisible reference.
18286         (emit_library_call_value_1): Mark  MEM_EXPR (val) addressable
18287         if it is passed by reference.
18288
18289 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
18290
18291         PR rtl-optimization/49504
18292         * rtlanal.c (nonzero_bits1): Properly handle addition or
18293         subtraction of a pointer in Pmode if pointers extend unsigned.
18294         (num_sign_bit_copies1): Likewise.
18295
18296 2011-06-24  Martin Jambor  <mjambor@suse.cz>
18297
18298         PR tree-optimizations/49516
18299         * tree-sra.c (sra_modify_assign): Choose the safe path for
18300         aggregate copies if we also did scalar replacements.
18301
18302 2011-06-24  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
18303
18304         PR target/49335
18305         * config/arm/predicates.md (add_operator): New.
18306         * config/arm/arm.md ("*arith_shiftsi"): Fix for SP reg usage in Thumb2.
18307
18308 2011-06-24  Andi Kleen  <ak@linux.intel.com>
18309
18310         * tree-sra.c (type_internals_preclude_sra_p): Add msg
18311         parameter. Split up ifs and report reason in *msg.
18312         (reject): Add.
18313         (find_var_candiate): Add msg variable.
18314         Split up ifs and report reason to reject.
18315         (find_param_candidates): Add msg variable.
18316         Pass msg to type_internals_preclude_sra_p.
18317
18318 2011-06-23  Jeff Law  <law@redhat.com>
18319
18320         PR middle-end/48770
18321         * reload.h (reload): Change to return a bool.
18322         * ira.c (ira): If requested by reload, run a fast DCE pass after
18323         reload has completed.  Fix comment typo.
18324         * reload1.c (need_dce): New file scoped static.
18325         (reload): Set reload_completed here.  Return whether or not a DCE
18326         pass after reload is needed.
18327         (delete_dead_insn): Set need_dce as needed.
18328
18329         PR middle-end/49465
18330         * tree-ssa-threadupate.c (fix_duplicate_block_edges): Fix condition
18331         to detect threading through joiner block.  If there was already
18332         an edge to the new target, then do not change the PHI nodes.
18333
18334 2011-06-23  Jakub Jelinek  <jakub@redhat.com>
18335
18336         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Use
18337         get_pointer_alignment to see if base isn't sufficiently aligned.
18338
18339 2011-06-23  Jan Hubicka  <jh@suse.cz>
18340
18341         PR tree-optimize/49373
18342         * tree-pass.h (all_late_ipa_passes): Declare.
18343         * cgraphunit.c (init_lowered_empty_function): Fix properties.
18344         (cgraph_optimize): Execute late passes; remove unreachable funcions
18345         after materialization.
18346         * ipa-inline.c (gate_ipa_inline): Enable only when optimizing or
18347         LTOing.
18348         * passes.c (all_late_ipa_passes): Declare.
18349         (dump_passes, register_pass): Handle late ipa passes.
18350         (init_optimization_passes): Move ipa_pta to late passes; schedule
18351         fixup_cfg at beggining of all_passes.
18352         (apply_ipa_transforms): New function.
18353         (execute_one_pass): When doing simple ipa pass, apply all transforms.
18354
18355 2011-06-23  Joseph Myers  <joseph@codesourcery.com>
18356
18357         * params.c: Include common/common-target.h.  Don't include tm.h.
18358         (lang_independent_params): Move from toplev.c.
18359         (global_init_params): New.
18360         * params.h (global_init_params): Declare.
18361         * target.def (default_params): Move to common-target.def.
18362         * toplev.c (lang_independent_options): Remove.
18363         (lang_independent_params): Move to params.c.
18364         (general_init): Use global_init_params.
18365         * common/common-target.def (option_default_params): Move from
18366         target.def.
18367         * common/config/ia64/ia64-common.c: Include params.h.
18368         (ia64_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
18369         from ia64.c.
18370         * common/config/rs6000/rs6000-common.c: Include params.h.
18371         (rs6000_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
18372         from rs6000.c.
18373         * common/config/sh/sh-common.c: Include params.h.
18374         (sh_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
18375         from sh.c.
18376         * common/config/spu/spu-common.c: Include params.h.
18377         (spu_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
18378         from spu.c.
18379         * config/ia64/ia64.c (ia64_option_default_params,
18380         TARGET_OPTION_DEFAULT_PARAMS): Move to ia64-common.c.
18381         * config/rs6000/rs6000.c (rs6000_option_default_params,
18382         TARGET_OPTION_DEFAULT_PARAMS): Move to rs6000-common.c.
18383         * config/sh/sh.c (sh_option_default_params,
18384         TARGET_OPTION_DEFAULT_PARAMS): Move to sh-common.c.
18385         * config/spu/spu.c (spu_option_default_params,
18386         TARGET_OPTION_DEFAULT_PARAMS): Move to spu-common.c.
18387         * Makefile.in (OBJS): Remove params.o.
18388         (OBJS-libcommon-target): Add params.o.
18389         (params.o, $(common_out_object_file)): Update dependencies.
18390         * doc/tm.texi: Regenerate.
18391
18392 2011-06-23  Alan Modra  <amodra@gmail.com>
18393
18394         PR bootstrap/49383
18395         * config/rs6000/rs6000.c (call_ABI_of_interest): Adjust cgraph
18396         invocation for 2011-06-09 changes.
18397
18398 2011-06-22  Jakub Jelinek  <jakub@redhat.com>
18399
18400         PR libgomp/49490
18401         * omp-low.c (expand_omp_for_static_nochunk): Only
18402         use n ceil/ nthreads size for the first n % nthreads threads in the
18403         team instead of all threads except for the last few ones which
18404         get less work or none at all.
18405
18406         PR debug/49496
18407         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Ignore debug
18408         uses.
18409
18410 2011-06-22  Richard Guenther  <rguenther@suse.de>
18411
18412         PR tree-optimization/49493
18413         * tree-ssa-structalias.c (get_constraint_for_ssa_var):
18414         Refer to the alias target of variables.
18415         (associate_varinfo_to_alias_1): Remove.
18416         (ipa_pta_execute): Do not associate aliases with anything.
18417         * cgraph.h (varpool_alias_aliased_node): Fix cut&paste errors.
18418         (cgraph_function_node): Likewise.
18419         (cgraph_function_or_thunk_node): Likewise.
18420         (varpool_variable_node): Likewise.
18421
18422 2011-06-22  Nathan Sidwell  <nathan@codesourcery.com>
18423
18424         * config/arm/arm.h (OPTION_DEFAULT_SPECS): Fix -mtls-dialect typo.
18425         * config.gcc (arm*-*-linux*): Default to gnu tls.
18426         (arm*-*-*): Add --with-tls option.
18427         (all_defaults): Add 'tls'.
18428
18429 2011-06-22  Richard Henderson  <rth@redhat.com>
18430
18431         * reg-notes.def (REG_CFA_WINDOW_SAVE): New.
18432         * dwarf2out.c (dwarf2out_frame_debug): Handle it.
18433         (dwarf2out_frame_debug_cfa_window_save): Rename from
18434         dwarf2out_window_save; make static.
18435         * tree.h (dwarf2out_window_save): Don't declare.
18436
18437         * config/sparc/sparc.c (sparc_dwarf_handle_frame_unspec): Remove.
18438         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
18439         (emit_save_register_window): Rename from gen_save_register_window;
18440         emit the insn and add REG_CFA_* notes.
18441         (sparc_expand_prologue): Update to match.
18442         * config/sparc/sparc.md (save_register_window_1): Simplify from
18443         save_register_window<P:mode>.
18444
18445 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
18446
18447         PR target/49497
18448         * config/i386/i386.md (*lea_general_2): Always allow SImode.
18449         (*lea_general_2_zext): Likewise.
18450         (imul to lea peepholes): Use const359_operand and check
18451         TARGET_PARTIAL_REG_STALL.
18452
18453         * config/i386/predicates.md (const359_operand): New.
18454
18455 2011-06-22  Michael Matz  <matz@suse.de>
18456
18457         * cgraphunit.c (assemble_thunk): Use correct return type.
18458
18459 2011-06-22  Dmitry Plotnikov  <dplotnikov@ispras.ru>
18460             Dmitry Melnik  <dm@ispras.ru>
18461
18462         * config/arm/arm.c (neon_immediate_valid_for_shift): New function.
18463         (neon_output_shift_immediate): Ditto.
18464         * config/arm/arm-protos.h (neon_immediate_valid_for_shift): New
18465         prototype.
18466         (neon_output_shift_immediate): Ditto.
18467         * config/arm/neon.md (vashl<mode>3): Modified constraint.
18468         (vashr<mode>3_imm): New insn pattern.
18469         (vlshr<mode>3_imm): Ditto.
18470         (vashr<mode>3): Modified constraint.
18471         (vlshr<mode>3): Ditto.
18472         * config/arm/predicates.md (imm_for_neon_lshift_operand): New
18473         predicate.
18474         (imm_for_neon_rshift_operand): Ditto.
18475         (imm_lshift_or_reg_neon): Ditto.
18476         (imm_rshift_or_reg_neon): Ditto.
18477
18478         * optabs.c (init_optabs): Init optab codes for vashl, vashr, vlshr.
18479
18480 2011-06-22  Jakub Jelinek  <jakub@redhat.com>
18481
18482         * tree-ssa-ccp.c (evaluate_stmt): Try bitwise tracking for
18483         builtin calls even if likelyvalue is not CONSTANT.
18484         Handle BUILT_IN_STRDUP and BUILT_IN_STRNDUP like BUILT_IN_MALLOC.
18485         Return get_value_for_expr of first operand
18486         for BUILT_IN_{MEM{CPY,MOVE,SET},STR{,N}CPY}{,_CHK}.
18487         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
18488         BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK like
18489         their non-checking counterparts.
18490         (call_may_clobber_ref_p_1): Likewise.
18491         (stmt_kills_ref_p_1): Handle BUILT_IN_MEM{{,P}CPY,MOVE,SET}_CHK
18492         like their non-checking counterparts.
18493         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
18494         Handle BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK
18495         like their non-checking counterparts.
18496         (find_func_clobbers): Likewise.
18497         * tree-ssa-dce.c (propagate_necessity): Handle BUILT_IN_MEMSET_CHK
18498         like BUILT_IN_MEMSET and BUILT_IN_CALLOC like BUILT_IN_MALLOC.
18499
18500         * dwarf2out.c (size_of_loc_descr, output_loc_operands,
18501         mark_base_types, hash_loc_operands, compare_loc_operands): Allow
18502         DW_OP_GNU_convert and DW_OP_GNU_reinterpret to use constant instead
18503         of base type reference as argument.
18504         (resolve_addr_in_expr): Likewise.  Fix keep computation.
18505         (convert_descriptor_to_signed): Renamed to...
18506         (convert_descriptor_to_mode): ... this.  For wider types convert to
18507         unsigned instead of signed, for <= DWARF2_ADDR_SIZE convert to untyped.
18508         (typed_binop): New function.
18509         (scompare_loc_descriptor, ucompare_loc_descriptor,
18510         minmax_loc_descriptor, mem_loc_descriptor): For wider integer modes
18511         default to unsigned type instead of signed.
18512
18513         PR debug/47858
18514         * gimple.h (enum gimple_debug_subcode): Add GIMPLE_DEBUG_SOURCE_BIND.
18515         (gimple_build_debug_source_bind_stat): New prototype.
18516         (gimple_build_debug_source_bind): Define.
18517         (gimple_debug_source_bind_p, gimple_debug_source_bind_get_var,
18518         gimple_debug_source_bind_get_value,
18519         gimple_debug_source_bind_get_value_ptr,
18520         gimple_debug_source_bind_set_var,
18521         gimple_debug_source_bind_set_value): New inlines.
18522         * gimple.c (gimple_build_debug_source_bind_stat): New function.
18523         * gimple-pretty-print.c (dump_gimple_debug): Handle
18524         GIMPLE_DEBUG_SOURCE_BIND.
18525         * sese.c (rename_uses): Handle gimple_debug_source_bind_p.
18526         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
18527         * tree-parloops.c (eliminate_local_variables,
18528         separate_decls_in_region): Likewise.
18529         (separate_decls_in_region_debug): Renamed from
18530         separate_decls_in_region_debug_bind.  Handle
18531         gimple_debug_source_bind_p.
18532         * tree.h (decl_debug_args_lookup, decl_debug_args_insert): New
18533         prototypes.
18534         (DECL_HAS_DEBUG_ARGS_P): Define.
18535         (struct tree_function_decl): Add has_debug_args_flag field.
18536         * tree.c (debug_args_for_decl): New variable.
18537         (decl_debug_args_lookup, decl_debug_args_insert): New functions.
18538         * tree-into-ssa.c (mark_def_sites): Handle uses in debug stmts.
18539         (rewrite_debug_stmt_uses): New function.
18540         (rewrite_stmt): Use it to rewrite debug stmt uses.
18541         * rtl.def (DEBUG_PARAMETER_REF): New.
18542         * rtl.h (DEBUG_PARAMETER_REF_DECL): Define.
18543         * cselib.c (rtx_equal_for_cselib_1, cselib_hash_rtx): Handle
18544         DEBUG_PARAMETER_REF.
18545         * rtl.c (rtx_equal_p_cb, rtx_equal_p, iterative_hash_rtx): Likewise.
18546         * print-rtl.c (print_rtx): Likewise.
18547         * tree-sra.c (sra_ipa_reset_debug_stmts): Prefer replacing of
18548         SSA_NAMEs with DEBUG_EXPR_DECLs initialized in source bind
18549         debug stmts in the first bb.
18550         * tree-inline.c (remap_ssa_name): If remapping default def
18551         of a PARM_DECL fails, map to a DEBUG_EXPR_DECL set in
18552         a source bind debug stmt.
18553         (remap_gimple_stmt): Handle gimple_debug_source_bind_p.
18554         (maybe_move_debug_stmts_to_successors): Likewise.
18555         (copy_debug_stmt): Likewise.  Avoid shadowing a variable.
18556         (tree_function_versioning): If DECL_HAS_DEBUG_ARGS_P, copy
18557         debug args vector from old_decl to new_decl.
18558         * ipa-prop.c (ipa_modify_call_arguments): For optimized away
18559         or modified parameters, add debug bind stmts before call
18560         setting DEBUG_EXPR_DECL which is remembered in debug args vector.
18561         * cfgexpand.c (expand_call_stmt): Call expand_debug_expr
18562         on DECL_DEBUG_EXPRs from debug args vector.
18563         (expand_debug_source_expr): New function.
18564         (expand_debug_locations): Use it for source bind insns.
18565         (expand_gimple_basic_block): Handle gimple_debug_source_bind_p.
18566         * var-tracking.c (prepare_call_arguments): Add debug args
18567         to call_arguments if any.
18568         * dwarf2out.c (dwarf_stack_op_name, size_of_loc_descr,
18569         output_loc_operands, output_loc_operands_raw, resolve_addr_in_expr,
18570         compare_loc_operands): Handle DW_OP_GNU_parameter_ref.
18571         (get_ref_die_offset, parameter_ref_descriptor): New functions.
18572         (mem_loc_descriptor): Handle DEBUG_PARAMETER_REF.
18573         (gen_subprogram_die): Handle parameters identified by
18574         DEBUG_PARAMETER_REF.
18575
18576 2011-06-22  Nathan Sidwell  <nathan@codesourcery.com>
18577
18578         * doc/invoke.texi (ARM Options): Document -mtls-dialect option.
18579         * doc/install.texi (Configuration): Document --with-tls.
18580         * config/arm/arm.c (enum tls_reloc): Add TLS_DESCSEQ.
18581         (arm_call_tls_get_addr): Clean up. Assert not tls descriptor.
18582         (arm_tls_descseq_addr): New.
18583         (legitimize_tls_address): Add tlsdesc support.
18584         (arm_cannot_copy_insn_p): Check for tlscall.
18585         (arm_emit_tls_decoration): Likewise.
18586         * config/arm/arm.h (TARGET_GNU2_TLS): New.
18587         (OPTION_DEFAULT_SPECS): Add with-tls support.
18588         * config/arm/arm.md (R1_REGNUM): Define.
18589         (tlscall): New.
18590         * config/arm/arm.opt (tls_type): New enumeration type and values.
18591         (mtls-dialect): New switch.
18592         * config/arm/arm-opts.h (enum tls_type): New.
18593
18594 2011-06-21  Nicola Pero  <nicola.pero@meta-innovation.com>
18595
18596         * attribs.c (register_attribute): Added assert to check that all
18597         attribute specs are registered with a name that is not empty and
18598         does not start with '_'.
18599         (decl_attributes): Avoid the lookup of the "naked" attribute spec
18600         if the function has no attributes.
18601         * tree.c (is_attribute_with_length_p): Removed.
18602         (is_attribute_p): Removed.
18603         (private_is_attribute_p): New.
18604         (private_lookup_attribute): New.
18605         (lookup_attribute): Removed.
18606         (lookup_ident_attribute): New.
18607         (remove_attribute): Require the first argument to be in the form
18608         'text', not '__text__'.  Updated asserts.
18609         (merge_attributes): Use lookup_ident_attributes instead of
18610         lookup_attribute.
18611         (merge_dllimport_decl_attributes): Use remove_attribute.
18612         (attribute_list_contained): Likewise.
18613         (attribute_list_equal): Immediately return 1 if the arguments are
18614         identical pointers.
18615         * tree.h (is_attribute_p): Made inline.  Return a 'bool', not an
18616         'int'.  Require the first argument to be in the form 'text', not
18617         '__text__'.  Require the second argument to be an identifier.
18618         (lookup_attribute): Made inline.  Require the first argument to be
18619         in the form 'text', not '__text__'.
18620         (private_is_attribute_p, private_lookup_attribute): New.
18621         Updated comments.
18622
18623 2011-06-21  Andrew MacLeod  <amacleod@redhat.com>
18624
18625         * builtins.c: Add sync_ or SYNC__ to builtin names.
18626         * sync-builtins.def: Add sync_ or SYNC__ to builtin names.
18627         * omp-low.c: Add sync_ or SYNC__ to builtin names.
18628
18629 2011-06-21  Georg-Johann Lay  <avr@gjlay.de>
18630
18631         PR target/33049
18632         * config/avr/avr.md (extzv): New expander.
18633         (*extzv): New insn.
18634         (*extzv.qihi1, *extzv.qihi2): New insn-and-split.
18635         * config/avr/constraints.md (C04): New constraint.
18636         * doc/md.texi (Machine Constraints): Document it.
18637
18638 2011-06-21  Jakub Jelinek  <jakub@redhat.com>
18639
18640         PR middle-end/49489
18641         * builtins.c (expand_builtin_unop): Call expand_unop with 0 as
18642         unsignedp argument instead of 1 for clrsb_optab.
18643         (fold_builtin_bitop): Fix masking for width > HOST_BITS_PER_WIDE_INT
18644         and < 2 * HOST_BITS_PER_WIDE_INT.  Optimize BUILT_IN_CLRSB*.
18645         (fold_builtin_1): Call fold_builtin_binop for BUILT_IN_CLRSB*.
18646         * optabs.c (widen_leading): Call widen_operand and expand_unop
18647         with 0 as unsignedp argument instead of 1 for clrsb_optab.
18648         (expand_unop): Subtract difference of mode sizes also for clrsb_optab.
18649
18650 2011-06-21  Georg-Johann Lay  <avr@gjlay.de>
18651
18652         * config/avr/avr.md (*jcindirect_jump): Fix build warning.
18653
18654 2011-06-21  Bernd Schmidt  <bernds@codesourcery.com>
18655
18656         * gensupport.c (add_define_attr): New static function.
18657         (is_predicable): Allow multi-alternative lists for the "predicable"
18658         attribute.
18659         (modify_attr_enabled_ce, alter_attrs_for_insn): New static functions.
18660         (process_one_cond_exec): Call alter_attrs_for_insn.
18661         * doc/md.texi (Defining Attributes): Mention some standard names.
18662         (Conditional Execution): Update documentation for "predicable".
18663
18664         * doc/extend.texi (__builtin_clrsb, __builtin_clrsbl,
18665         __builtin_clrsbll): Document.
18666         * doc/rtl.texi (clrsb): New entry.
18667         * optabs.c (widen_leading): Renamed from widen_clz.  New argument
18668         UNOPTAB.  All callers changed.  Use UNOPTAB instead of clz_optab.
18669         (expand_unop): Handle clrsb_optab.
18670         (init_optabs): Initialize it.
18671         * optabs.h (enum optab_index): New entry OTI_clrsb.
18672         (clrsb_optab): Define.
18673         * genopinit.c (optabs): Add an entry for it.
18674         * builtins.c (expand_builtin): Handle clrsb builtin functions.
18675         * builtins.def (BUILT_IN_CLRSB, BUILT_IN_CLRSBIMAX, BUILT_IN_CLRSBL,
18676         BUILT_IN_CLRSBLL): New.
18677         * rtl.def (CLRSB): New code.
18678         * dwarf2out.c (mem_loc_descriptor): Handle it.
18679         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
18680         Use op_mode rather than mode when optimizing ffs, clz, ctz, parity
18681         and popcount.
18682         * libgcc2.c (__clrsbSI2, __clrsbDI2): New functions.
18683         * libgcc2.h (__clrsbSI2, __clrsbDI2): Define and declare.
18684         (__ctzDI2): Move declaration.
18685         * config/bfin/bfin.md (clrsbsi2): New expander.
18686         (signbitssi2): Use the CLRSB rtx.
18687         (clrsbhi2): Renamed from signbitshi2.  Use the CLRSB rtx.
18688         * config/bfin/bfin.c (bdesc_1arg): Changed accordingly.
18689
18690 2011-06-21  Richard Guenther  <rguenther@suse.de>
18691
18692         * ipa-inline-transform.c (inline_transform): Fix previous change.
18693
18694 2011-06-21  Ira Rosen  <ira.rosen@linaro.org>
18695
18696         PR tree-optimization/49478
18697         * tree-vect-loop.c (vectorizable_reduction): Handle DOT_PROD_EXPR
18698         with constant operand.
18699
18700 2011-06-21  Richard Guenther  <rguenther@suse.de>
18701
18702         * ipa-inline-transform.c (inline_transform): Fix typo.
18703
18704 2011-06-21  Richard Guenther  <rguenther@suse.de>
18705
18706         PR tree-optimization/49483
18707         * tree-vect-stmts.c (vectorizable_assignment): Also handle
18708         VIEW_CONVERT_EXPR conversions.
18709
18710 2011-06-21  Joseph Myers  <joseph@codesourcery.com>
18711
18712         * config/avr/avr-mcus.def, config/avr/genopt.sh: New files.
18713         * config/avr/avr-tables.opt: New file (generated).
18714         * config.gcc (avr-*-*): Use avr/avr-tables.opt.
18715         * config/avr/avr-devices.c (avr_mcu_types): Move contents to
18716         avr-mcus.def.
18717         * config/avr/avr.c (avr_help, TARGET_HELP): Remove.
18718         (avr_option_override): Don't process -mmcu= argument here.  Set
18719         avr_current_device using avr_mcu_index.
18720         (avr_file_start): Use avr_current_device->name instead of avr_mcu_name.
18721         * config/avr/avr.opt (mmcu=): Use Enum.
18722         * config/avr/t-avr (avr-devices.o): Update dependencies.
18723         ($(srcdir)/config/avr/avr-tables.opt): New.
18724         * target.def (help): Remove.
18725         * doc/tm.texi.in (TARGET_HELP): Remove.
18726         * doc/tm.texi: Regenerate.
18727         * opts.c: Don't include target.h.
18728         (common_handle_option): Don't call targetm.help.
18729         * system.h (TARGET_HELP): Poison.
18730         * Makefile.in (opts.o): Update dependencies.
18731
18732 2011-06-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18733
18734         * config/usegld.h: New file.
18735         * config/sol2.h (PREFERRED_DEBUGGING_TYPE): Remove.
18736         (CPP_SUBTARGET_SPEC): Remove -compat-bsd support.
18737         (LIB_SPEC): Likewise.  Search /lib.
18738         (LINK_ARCH32_SPEC_BASE): Remove -compat-bsd support.
18739         (RDYNAMIC_SPEC): Handle GNU ld.
18740         [HAVE_LD_EH_FRAME_HDR && TARGET_DL_ITERATE_PHDR] (LINK_EH_SPEC):
18741         Define.
18742         (SUPPORTS_INIT_PRIORITY): Only disable for Sun ld.
18743         (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Define.
18744         [!USE_GAS] (NO_DBX_BNSYM_ENSYM): Redefine.
18745         (STACK_CHECK_STATIC_BUILTIN): Define.
18746         * config/sol2.opt (compat-bsd): Remove.
18747         * config/sol2-10.h (TARGET_C99_FUNCTIONS): Remove undef.
18748         * config/sol2-bi.h: New file.
18749         * config/sol2-gld.h: Remove.
18750         * config/i386/sol2.h (TLS_COMMON_ASM_OP): Only define if !USE_GAS.
18751         (NO_DBX_BNSYM_ENSYM): Remove.
18752         (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
18753         (STACK_CHECK_STATIC_BUILTIN): Remove.
18754         Test USE_GLD instead of TARGET_GNU_LD.
18755         * config/i386/sol2-10.h: Rename to ...
18756         * config/i386/sol2-bi.h .. this.
18757         (SUBTARGET_EXTRA_SPECS): Redefine.
18758         (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Remove.
18759         (MULTILIB_DEFAULTS): Remove.
18760         (DEFAULT_ARCH32_P): Define.
18761         (LINK_ARCH64_SPEC_BASE, LINK_ARCH64_SPEC): Remove.
18762         (ARCH64_SUBDIR): Define.
18763         Test USE_GLD instead of TARGET_GNU_LD.
18764         (I386_EMULATION): Rename to ...
18765         (ARCH32_EMULATION): ... this.
18766         (X86_64_EMULATION): Rename to ...
18767         (ARCH64_EMULATION): ... this.
18768         (TARGET_LD_EMULATION): Remove.
18769         (LINK_ARCH_SPEC): Remove.
18770         * config/i386/sol2-gas.h: Remove.
18771         * config/i386/t-sol2-10: Rename to ...
18772         * config/i386/t-sol2-64: ... this.
18773         * config/sparc/sol2.h (SPARC_DEFAULT_CMODEL): Redefine.
18774         (AS_SPARC64_FLAG): Define.
18775         (ASM_CPU32_DEFAULT_SPEC, ASM_CPU64_DEFAULT_SPEC): Redefine.
18776         (CPP_CPU64_DEFAULT_SPEC, ASM_CPU32_DEFAULT_SPEC): Redefine
18777         depending on TARGET_CPU_DEFAULT.
18778         (CPP_CPU_SPEC): Redefine.
18779         (ASM_CPU_SPEC): Handle DEFAULT_ARCH32_P.
18780         (CPP_CPU_DEFAULT_SPEC, ASM_CPU_DEFAULT_SPEC): Redefine.
18781         (CPP_ARCH32_SPEC, CPP_ARCH64_SPEC, CPP_ARCH_SPEC): Redefine.
18782         (ASM_ARCH_SPEC, ASM_ARCH32_SPEC, ASM_ARCH64_SPEC,
18783         ASM_ARCH_DEFAULT_SPEC): Redefine.
18784         (SUBTARGET_EXTRA_SPECS): Add LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
18785         LINK_ARCH_DEFAULT_SPEC.
18786         [USE_GLD] (ARCH32_EMULATION, ARCH64_EMULATION): Define.
18787         [USE_GLD] (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC): Redefine.
18788         (ARCH64_SUBDIR): Define.
18789         (LINK_ARCH64_SPEC): Redefine.
18790         (CC1_SPEC): Redefine.
18791         (OPTION_DEFAULT_SPECS): Redefine.
18792         (MULTILIB_DEFAULTS): Define.
18793         (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Redefine.
18794         [USE_GAS && HAVE_AS_TLS] (TARGET_SUN_TLS, TARGET_GNU_TLS): Redefine.
18795         [USE_GLD] (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undef.
18796         (NO_DBX_BNSYM_ENSYM): Remove.
18797         (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
18798         (ASM_OUTPUT_ALIGN_WITH_NOP): Only define if !USE_GAS.
18799         (TARGET_ASM_NAMED_SECTION): Likewise.
18800         (STACK_CHECK_STATIC_BUILTIN): Remove.
18801         * config/sparc/sol2-bi.h: Remove.
18802         * config/sparc/sol2-gas-bi.h: Remove.
18803         * config/sparc/sol2-gas.h: Remove.
18804         * config/sparc/sol2-gld-bi.h: Remove.
18805         * config.gcc (i[34567]86-*-solaris2*, sparc*-*-solaris2*): Move
18806         common parts ...
18807         (*-*-solaris2*): ... here.
18808
18809 2011-06-21  Christian Bruel  <christian.bruel@st.com>
18810
18811         PR other/43564
18812         * ipa-inline.c (can_inline_edge_p): Check
18813         !DECL_DISREGARD_INLINE_LIMITS.
18814
18815 2011-06-21  Christian Bruel  <christian.bruel@st.com>
18816
18817         PR middle-end/49139
18818         * cgraphunit.c (process_function_and_variable_attributes): warn when
18819         always_inline functions that are not inline.
18820         * ipa-inline-transform.c (inline_transform): Always call
18821         optimize_inline.
18822         * tree-inline.c (tree_inlinable_function_p): Use error instead
18823         of sorry.
18824         (expand_call_inline): Likewise.
18825
18826 2011-06-21  Jakub Jelinek  <jakub@redhat.com>
18827
18828         * Makefile.in (dg_target_exps): Set.
18829         (check_gcc_parallelize): Parallelize gcc testing into 10 jobs
18830         instead of 7, try to divide it more evenly.
18831
18832 2011-06-20  Changpeng Fang  <changpeng.fang@amd.com>
18833
18834         PR target/49089
18835         * config/i386/i386.c (avx256_split_unaligned_load): New definition.
18836         (avx256_split_unaligned_store): New definition.
18837         (ix86_option_override_internal): Enable avx256 unaligned load/store
18838         splitting only when avx256_split_unaligned_load/store is set.
18839
18840 2011-06-20  Bernd Schmidt  <bernds@codesourcery.com>
18841
18842         * regrename.c (scan_rtx_reg): Handle the case where we write to an
18843         open chain in a smaller mode without failing the entire block.
18844
18845 2011-06-21  Alan Modra  <amodra@gmail.com>
18846
18847         * config/rs6000/rs6000.c (rs6000_cannot_force_const_mem): Match
18848         CONST high part large-toc address.
18849         (rs6000_tls_referenced_p): Make static.
18850         * config/rs6000/rs6000-protos.h (rs6000_tls_referenced_p): Delete.
18851
18852 2011-06-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
18853
18854         PR target/49385
18855         * config/arm/thumb2.md (*thumb2_movhi_insn): Make sure atleast
18856         one of the operands is a register.
18857
18858 2011-06-20  Kai Tietz  <ktietz@redhat.com>
18859
18860         * fold-const.c (fold_binary_loc): Add missing folding for truth-not
18861         operations in combination with binary and.
18862
18863 2011-06-20  Bernd Schmidt  <bernds@codesourcery.com>
18864
18865         * regrename.c (do_replace): Don't update notes.
18866
18867 2011-06-20  Alan Modra  <amodra@gmail.com>
18868
18869         * config/rs6000/rs6000.c (create_TOC_reference): Wrap high part
18870         of toc-relative address in CONST.
18871         (rs6000_delegitimize_address): Recognize changed address.
18872         (rs6000_legitimize_reload_address): Likewise.
18873         (rs6000_emit_move): Don't force these constants to memory.
18874         * config/rs6000/rs6000.md (tls_gd, tls_gd_high): Wrap high part of
18875         toc-relative address in CONST.
18876         (tls_ld, tls_ld_high, tls_got_dtprel, tls_got_dtprel_high): Likewise.
18877         (tls_got_tprel, tls_got_tprel_high, largetoc_high): Likewise.
18878
18879 2011-06-18  H.J. Lu  <hongjiu.lu@intel.com>
18880
18881         * longlong.h (count_leading_zeros): Use long long builtin for x86-64.
18882         (count_trailing_zeros): Likewise.
18883
18884 2011-06-18  H.J. Lu  <hongjiu.lu@intel.com>
18885
18886         PR other/49325
18887         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Properly check if
18888         .init_array can be used with .ctors on targets.
18889         * configure: Regenerated.
18890
18891 2011-06-18  Eric Botcazou  <ebotcazou@adacore.com>
18892
18893         * tree-sra.c (type_internals_preclude_sra_p) <ARRAY_TYPE>: Return true
18894         if the element type is volatile.
18895
18896 2011-06-18  Jan Hubicka  <jh@suse.cz>
18897
18898         * lto-symtab.c (lto_varpool_replace_node): Remove code handling
18899         extra name aliases.
18900         (lto_symtab_resolve_can_prevail_p): Likewise.
18901         (lto_symtab_merge_cgraph_nodes): Update alias_of pointers.
18902         * cgraphbuild.c (record_reference): Remove extra body alias code.
18903         (mark_load): Likewise.
18904         (mark_store): Likewise.
18905         * cgraph.h (varpool_node): Remove extra_name filed;
18906         add alias_of and extraname_alias.
18907         (varpool_create_variable_alias, varpool_for_node_and_aliases): Declare.
18908         (varpool_alias_aliased_node): New inline function.
18909         (varpool_variable_node): New function.
18910         * cgraphunit.c (handle_alias_pairs): Handle also variable aliases.
18911         * ipa-ref.c (ipa_record_reference): Allow aliases on variables.
18912         * lto-cgraph.c (lto_output_varpool_node): Update streaming.
18913         (input_varpool_node): Likewise.
18914         * lto-streamer-out.c (produce_symtab): Remove extra name aliases.
18915         (varpool_externally_visible_p): Remove extra body alias code.
18916         (function_and_variable_visibility): Likewise.
18917         * tree-ssa-structalias.c (associate_varinfo_to_alias_1): New function.
18918         (ipa_pta_execute): Use it.
18919         * varpool.c (varpool_remove_node): Remove extra name alias code.
18920         (varpool_mark_needed_node): Likewise.
18921         (varpool_analyze_pending_decls): Analyze aliases.
18922         (assemble_aliases): New functoin.
18923         (varpool_assemble_decl): Use it.
18924         (varpool_create_variable_alias): New function.
18925         (varpool_extra_name_alias): Rewrite.
18926         (varpool_for_node_and_aliases): New function.
18927
18928 2011-06-18  Jakub Jelinek  <jakub@redhat.com>
18929
18930         PR target/49411
18931         * config/i386/i386.c (ix86_expand_multi_arg_builtins): If
18932         last_arg_constant and last argument doesn't match its predicate,
18933         for xop_vpermil2<mode>3 error out and for xop_rotl<mode>3
18934         if it is CONST_INT, mask it, otherwise expand using rotl<mode>3.
18935         (ix86_expand_sse_pcmpestr, ix86_expand_sse_pcmpistr): Fix
18936         spelling of error message.
18937         * config/i386/sse.md (sse4a_extrqi, sse4a_insertqi,
18938         vcvtps2ph, *vcvtps2ph, *vcvtps2ph_store, vcvtps2ph256): Use
18939         const_0_to_255_operand instead of const_int_operand.
18940
18941         Revert:
18942         2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
18943
18944         * config/i386/sse.md (blendbits): Remove mode attribute.
18945         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
18946         instead of const_0_to_<blendbits>_operand for operand 3 predicate.
18947         Check integer value of operand 3 in insn constraint.
18948
18949 2011-06-17  Hans-Peter Nilsson  <hp@axis.com>
18950
18951         PR rtl-optimization/48542
18952         * reload.c (find_equiv_reg): Stop looking when finding a
18953         setjmp-type call.
18954         * reload1.c (reload_as_needed): Invalidate all reload
18955         registers when crossing a setjmp-type call.
18956
18957 2011-06-16  Jeff Law  <law@redhat.com>
18958
18959         * tree-ssa-threadupdate.c (struct redirection_data): New field
18960         intermediate_edge.
18961         (THREAD_TARGET2): Define.
18962         (redirection_data_eq): Also check that the intermediate edge is equal.
18963         (lookup_redirection_data): Drop useless argument.  Extract the
18964         outgoing_edge and intermediate edge from E.  Callers updated.
18965         (copy_phi_args, update_destination_phis): New functions.
18966         (fix_duplicate_block_edges): Likewise.
18967         (create_edge_and_update_destination_phis): Duplicate all the edges
18968         hung off e->aux.  Use copy_phi_args.
18969         (create_duplicates): Use fix_duplicate_block_edges.
18970         (fixup_template_block): Likewise.
18971         (redirect_edges): If necessary, redirect the joiner block's incoming
18972         edge to the duplicate of the joiner block.
18973         (thread_block): Don't muck up loops when threading through a joiner
18974         block.
18975         (thread_through_loop_header): Handle threading through a joiner block.
18976         (mark_threaded_blocks, register_jump_thread): Likewise.
18977         * tree-flow.h (register_jump_thread): Add new argument.  Callers
18978         updated.
18979         * tree-ssa-threadedge.c (phi_args_equal_on_edges): New function.
18980         (thread_across_edge): Handle threading through a joiner block.
18981
18982 2011-06-16  Martin Jambor  <mjambor@suse.cz>
18983
18984         PR tree-optimization/49343
18985         * tree-sra.c (build_ref_for_model): Use component_ref_field_offset to
18986         calculate offset, provide 2nd operand for the new COMPONENT_REF.
18987
18988 2011-06-16  Iain Sandoe  <iains@gcc.gnu.org>
18989
18990         * config/darwin-protos.h (machopic_select_rtx_section): Move to
18991         inside RTX_CODE ifdef.
18992
18993 2011-06-16  Tom de Vries  <tom@codesourcery.com>
18994
18995         PR target/45098
18996         * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith):
18997         Disallow NULL pointer for pointer arithmetic.
18998
18999 2011-06-16  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
19000
19001         PR target/49398
19002         Revert.
19003         2011-06-10  Wei Guozhi  <carrot@google.com>
19004
19005         PR target/45335
19006         * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
19007         stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
19008         (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
19009         related peephole2.
19010         (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
19011         related peephole2.
19012         * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
19013         (arm_legitimate_ldrd_p): New prototype.
19014         (arm_output_ldrd): New prototype.
19015         * config/arm/arm.c (arm_check_ldrd_operands): New function.
19016         (arm_legitimate_ldrd_p): New function.
19017         (arm_output_ldrd): New function.
19018
19019 2011-06-16  Joern Rennecke  <joern.rennecke@embecosm.com>
19020
19021         PR middle-end/46500
19022         * doc/tm.texi.in: Update Copyright date.
19023         * doc/tm.texi: Regenerate.
19024         * targhooks.c (default_setup_incoming_varargs): Replace
19025         CUMULATIVE_ARGS* argument type with cumulative_args_t.
19026         (default_pretend_outgoing_varargs_named): Likewise.
19027         (hook_pass_by_reference_must_pass_in_stack): Likewise.
19028         (hook_callee_copies_named): Likewise.
19029         (default_function_arg_advance): Likewise.
19030         (default_function_arg): Likewise.
19031         (default_function_incoming_arg): Likewise.
19032         (hook_bool_CUMULATIVE_ARGS_false): Likewise.
19033         (hook_bool_CUMULATIVE_ARGS_true): Likewise.
19034         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
19035         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
19036         (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
19037         * targhooks.h (default_setup_incoming_varargs): Likewise.
19038         (default_pretend_outgoing_varargs_named): Likewise.
19039         (hook_pass_by_reference_must_pass_in_stack): Likewise.
19040         (hook_callee_copies_named): Likewise.
19041         (default_function_arg_advance): Likewise.
19042         (default_function_arg): Likewise.
19043         (default_function_incoming_arg): Likewise.
19044         (hook_bool_CUMULATIVE_ARGS_false): Likewise.
19045         (hook_bool_CUMULATIVE_ARGS_true): Likewise.
19046         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
19047         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
19048         (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
19049         * target.def (pass_by_reference): Likewise.
19050         (setup_incoming_varargs, strict_argument_naming): Likewise.
19051         (pretend_outgoing_varargs_named, callee_copies): Likewise.
19052         (arg_partial_bytes, function_arg_advance, function_arg): Likewise.
19053         (function_incoming_arg): Likewise.
19054         * target.h: Don't include "tm.h" .
19055         (cumulative_args_t): New typedef.
19056         [GCC_TM_H] (get_cumulative_args): New static inline function.
19057         [GCC_TM_H] (pack_cumulative_args): Likewise.
19058         * config/alpha/alpha.c (alpha_function_arg): Replace CUMULATIVE_ARGS*
19059         argument type with cumulative_args_t.
19060         (alpha_function_arg_advance, alpha_arg_partial_bytes): Likewise.
19061         (alpha_pass_by_reference, alpha_setup_incoming_varargs): Likewise.
19062         * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
19063         (frv_arg_partial_bytes, frv_function_arg): Likewise.
19064         (frv_function_incoming_arg, frv_function_arg_advance): Likewise.
19065         (frv_function_arg_1): Likewise.
19066         * config/s390/s390.c (s390_pass_by_reference): Likewise.
19067         (s390_function_arg_advance, s390_function_arg): Likewise.
19068         * config/m32c/m32c.c (m32c_function_arg): Likewise.
19069         (m32c_pass_by_reference, m32c_function_arg_advance): Likewise.
19070         (m32c_strict_argument_naming): Likewise.
19071         * config/spu/spu.c (spu_pass_by_reference, spu_function_arg): Likewise.
19072         (spu_function_arg_advance): Likewise.
19073         (spu_setup_incoming_varargs): Likewise.  Make static.
19074         * config/spu/spu-protos.h (spu_setup_incoming_varargs):
19075         Remove prototype.
19076         * config/sparc/sparc.c (sparc_strict_argument_naming): Replace
19077         CUMULATIVE_ARGS* argument type with cumulative_args_t.
19078         (sparc_pass_by_reference, sparc_function_arg_advance): Likewise.
19079         (sparc_function_arg, sparc_function_incoming_arg): Likewise.
19080         (sparc_arg_partial_bytes, sparc_function_arg_1): Likewise.
19081         * config/mep/mep.c (mep_setup_incoming_varargs): Likewise.
19082         (mep_pass_by_reference, mep_function_arg): Likewise.
19083         (mep_function_arg_advance): Likewise.
19084         * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
19085         (m32r_pass_by_reference, m32r_arg_partial_bytes): Likewise.
19086         (m32r_function_arg, m32r_function_arg_advance): Likewise.
19087         * config/rx/rx.c (rx_function_arg, rx_function_arg_advance): Likewise.
19088         * config/i386/i386.c (ix86_function_arg_advance): Likewise.
19089         (ix86_function_arg, ix86_pass_by_reference): Likewise.
19090         (ix86_setup_incoming_varargs): Likewise.
19091         * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
19092         (sh_strict_argument_naming): Likewise.
19093         (sh_pretend_outgoing_varargs_named, sh_pass_by_reference): Likewise.
19094         (sh_callee_copies, sh_arg_partial_bytes): Likewise.
19095         (sh_function_arg_advance, sh_function_arg): Likewise.
19096         * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
19097         (pdp11_function_arg_advance): Likewise.
19098         * config/microblaze/microblaze.c (microblaze_function_arg_advance):
19099         Likewise.
19100         (microblaze_function_arg, function_arg_partial_bytes): Likewise.
19101         * config/avr/avr.c (avr_function_arg): Likewise.
19102         (avr_function_arg_advance): Likewise.
19103         * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
19104         (xtensa_function_arg, xtensa_function_incoming_arg): Likewise.
19105         (xtensa_function_arg_1): Likewise.
19106         * config/stormy16/stormy16.c (xstormy16_function_arg_advance):
19107         Likewise.
19108         (xstormy16_function_arg): Likewise.
19109         * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
19110         (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
19111         (fr30_function_arg_advance): Likewise.
19112         * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
19113         (lm32_function_arg, lm32_function_arg_advance): Likewise.
19114         * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
19115         (moxie_function_arg, moxie_function_arg_advance): Likewise.
19116         (moxie_pass_by_reference, moxie_arg_partial_bytes): Likewise.
19117         * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
19118         (cris_pass_by_reference, cris_arg_partial_bytes): Likewise.
19119         (cris_function_arg, cris_function_incoming_arg): Likewise.
19120         (cris_function_arg_advance, cris_function_arg_1): Likewise.
19121         * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
19122         (iq2000_pass_by_reference, iq2000_arg_partial_bytes): Likewise.
19123         (iq2000_function_arg, iq2000_function_arg_advance): Likewise.
19124         * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
19125         (mn10300_function_arg, mn10300_function_arg_advance): Likewise.
19126         (mn10300_arg_partial_bytes): Likewise.
19127         * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
19128         (ia64_arg_partial_bytes, ia64_function_arg): Likewise.
19129         (ia64_function_incoming_arg, ia64_function_arg_advance): Likewise.
19130         (ia64_function_arg_1): Likewise.
19131         * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
19132         (m68k_function_arg): Likewise.
19133         * config/rs6000/rs6000.c (rs6000_function_arg_advance): Likewise.
19134         (rs6000_function_arg, setup_incoming_varargs): Likewise.
19135         (rs6000_pass_by_reference, rs6000_arg_partial_bytes): Likewise.
19136         * config/picochip/picochip.c (picochip_arg_partial_bytes): Likewise.
19137         (picochip_function_arg, picochip_incoming_function_arg): Likewise.
19138         (picochip_arg_advance): Likewise.
19139         * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
19140         (mcore_arg_partial_bytes, mcore_function_arg): Likewise.
19141         (mcore_function_arg_advance): Likewise.
19142         * config/score/score.c (score_pass_by_reference): Likewise.
19143         (score_function_arg_advance): Likewise.
19144         (score_arg_partial_bytes): Likewise.  Make static.
19145         * config/score/score-protos.h (score_arg_partial_bytes): Don't declare.
19146         * config/arm/arm.c (arm_arg_partial_bytes): Replace
19147         CUMULATIVE_ARGS* argument type with cumulative_args_t.
19148         (arm_function_arg, arm_function_arg_advance): Likewise.
19149         (arm_setup_incoming_varargs, arm_pass_by_reference): Likewise.
19150         * config/pa/pa.c (pa_pass_by_reference): Likewise.
19151         (pa_arg_partial_bytes, pa_function_arg_advance): Likewise.
19152         (pa_function_arg): Likewise.
19153         * config/mips/mips.c (mips_strict_argument_naming): Likewise.
19154         (mips_function_arg, mips_function_arg_advance): Likewise.
19155         (mips_arg_partial_bytes, mips_pass_by_reference): Likewise.
19156         (mips_callee_copies, mips_setup_incoming_varargs): Likewise.
19157         * config/vax/vax.c (vax_function_arg): Likewise.
19158         (vax_function_arg_advance): Likewise.
19159         * config/h8300/h8300.c (h8300_function_arg): Likewise.
19160         (h8300_function_arg_advance): Likewise.
19161         * config/v850/v850.c (v850_pass_by_reference): Likewise.
19162         (v850_strict_argument_naming, v850_function_arg): Likewise.
19163         (v850_arg_partial_bytes, v850_function_arg_advance): Likewise.
19164         (v850_setup_incoming_varargs): Likewise.
19165         * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
19166         (mmix_function_arg_advance, mmix_function_incoming_arg): Likewise.
19167         (mmix_function_arg, mmix_pass_by_reference): Likewise.
19168         (mmix_function_arg_1): Replace const CUMULATIVE_ARGS* argument type
19169         with const void *.
19170         * config/bfin/bfin.c (setup_incoming_varargs): Replace
19171         CUMULATIVE_ARGS* argument type with cumulative_args_t.
19172         (bfin_function_arg_advance, bfin_function_arg): Likewise.
19173         (bfin_arg_partial_bytes, bfin_pass_by_reference): Likewise.
19174         * calls.c (emit_call_1): Change type of args_so_far to
19175         cumulative_args_t.  Changed all callers.
19176         (initialize_argument_information): Likewise.
19177         (expand_call, emit_library_call_value_1): Use pack_cumulative_args.
19178         * dse.c (get_call_args): Likewise.
19179         * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
19180         * function.c (pass_by_reference, reference_callee_copied): Likewise.
19181         (struct assign_parm_data_all): Rename args_so_far to args_so_far_v.
19182         New member args_so_far_v.  Changed all users.
19183         * var-tracking.c (prepare_call_arguments): Use pack_cumulative_args.
19184         * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
19185         * config/mips/mips.c (mips_output_args_xfer): Likewise.
19186         * config/s390/s390.c (s390_call_saved_register_used): Likewise.
19187         * config/sh/sh.c (sh_output_mi_thunk): Likewise.
19188         * config/microblaze/microblaze.c (microblaze_expand_prologue):
19189         Likewise.
19190         * config/m32r/m32r.c (m32r_return_in_memory): Adjust for changed
19191         m32r_pass_by_reference.
19192
19193 2011-06-16  Ira Rosen  <ira.rosen@linaro.org>
19194
19195         * tree-vectorizer.h (vect_recog_func_ptr): Change the first
19196         argument to be a VEC of statements.
19197         * tree-vect-loop.c (vect_determine_vectorization_factor): Remove the
19198         assert that pattern statements have to have their vector type set.
19199         * tree-vect-patterns.c (vect_recog_widen_sum_pattern):
19200         Change the first argument to be a VEC of statements.  Update
19201         documentation.
19202         (vect_recog_dot_prod_pattern, vect_recog_pow_pattern): Likewise.
19203         (vect_handle_widen_mult_by_const): New function.
19204         (vect_recog_widen_mult_pattern):  Change the first argument to be a
19205         VEC of statements.  Update documentation.  Check that the constant is
19206         INTEGER_CST.  Support multiplication by a constant that fits an
19207         intermediate type - call vect_handle_widen_mult_by_const.
19208         (vect_pattern_recog_1): Update vect_recog_func_ptr and its
19209         call.  Handle additional pattern statements if necessary.
19210
19211 2011-06-16  Nick Clifton  <nickc@redhat.com>
19212
19213         PR target/49427
19214         * config.gcc: Set cpu_type to v850 for any V850 architecture.
19215         (v850*-*-*): Delete explicit setting of tm_p_file, tmake_file,
19216         md_file, extra_modes, out_file and extra_options are these are all
19217         deduced from cpu_type.
19218
19219 2011-06-16  Georg-Johann Lay  <avr@gjlay.de>
19220
19221         * config/avr/libgcc.S (__ashldi3, __ashrdi3, __lshrdi3): Set shift
19222         truncation mask to 63.
19223
19224 2011-06-16  Georg-Johann Lay  <avr@gjlay.de>
19225
19226         PR target/49313
19227         PR target/29524
19228         * longlong.h: Add AVR support:
19229         (count_leading_zeros): New macro.
19230         (count_trailing_zeros): New macro.
19231         (COUNT_LEADING_ZEROS_0): New macro.
19232         * config/avr/t-avr (LIB1ASMFUNCS): Add _ffssi2, _ffshi2, _loop_ffsqi2,
19233         _ctzsi2, _ctzhi2, _clzdi2, _clzsi2, _clzhi2, _paritydi2, _paritysi2,
19234         _parityhi2, _popcounthi2,_popcountsi2, _popcountdi2, _popcountqi2,
19235         _bswapsi2, _bswapdi2, _ashldi3, _ashrdi3, _lshrdi3.
19236         (LIB2FUNCS_EXCLUDE): Add _clz.
19237         * config/avr/libgcc.S (XCALL): Move up in file.
19238         (XJMP): New C Macro.
19239         (DEFUN): New asm macro.
19240         (ENDF): New asm macro.
19241         (__ffssi2): New function.
19242         (__ffshi2): New function.
19243         (__loop_ffsqi2): New function.
19244         (__ctzsi2): New function.
19245         (__ctzhi2): New function.
19246         (__clzdi2): New function.
19247         (__clzsi2): New function.
19248         (__clzhi2): New function.
19249         (__paritydi2): New function.
19250         (__paritysi2): New function.
19251         (__parityhi2): New function.
19252         (__parityqi2): New function.
19253         (__popcounthi2): New function.
19254         (__popcountsi2): New function.
19255         (__popcountdi2): New function.
19256         (__popcountqi2): New function.
19257         (__bswapsi2): New function.
19258         (__bswapdi2): New function.
19259         (__ashldi3): New function.
19260         (__ashrdi3): New function.
19261         (__lshrdi3): New function.
19262         Fix suspicous lines.
19263
19264 2011-06-16  Richard Guenther  <rguenther@suse.de>
19265
19266         * gimple.c (canonicalize_cond_expr_cond): (bool)x is not
19267         the same as x != 0.
19268         * fold-const.c (fold_binary_loc): Do not fold X & 1 != 0
19269         to (bool) X & 1.
19270         * ipa-prop.c (ipa_analyze_indirect_call_uses): Also allow
19271         equality compares against zero for the lower bit.
19272
19273 2011-06-16  Jakub Jelinek  <jakub@redhat.com>
19274
19275         PR tree-optimization/49419
19276         * tree-vrp.c (execute_vrp): Call init_range_assertions
19277         before estimate_numbers_of_iterations, call
19278         free_number_of_iterations_estimates before calling
19279         remove_range_assertions.
19280
19281 2011-06-16  Revital Eres  <revital.eres@linaro.org>
19282
19283         * modulo-sched.c (struct ps_insn): Remove row_rest_count field.
19284         (struct partial_schedule): Add rows_length field.
19285         (verify_partial_schedule): Check rows_length.
19286         (ps_insert_empty_row): Handle rows_length.
19287         (create_partial_schedule): Likewise.
19288         (free_partial_schedule): Likewise.
19289         (reset_partial_schedule): Likewise.
19290         (create_ps_insn): Remove rest_count argument.
19291         (remove_node_from_ps): Update rows_length.
19292         (add_node_to_ps): Update rows_length and call create_ps_insn
19293         without passing row_rest_count.
19294         (rotate_partial_schedule): Update rows_length.
19295
19296 2011-06-16  Revital Eres  <revital.eres@linaro.org>
19297
19298         * ddg.c (add_intra_loop_mem_dep): New function.
19299         (build_intra_loop_deps): Call it.
19300
19301 2011-06-13  Jeff Law  <law@redhat.com>
19302
19303         * df-problems.c (df_lr_local_compute): Manually CSE
19304         PIC_OFFSET_TABLE_REGNUM.
19305         * df-scan.c (df_get_regular_block_artificial_uses): Likewise.
19306         (df_get_entry_block_def_set, df_get_exit_block_use_set): Likewise.
19307
19308 2011-06-13  Jan Hubicka  <jh@suse.cz>
19309
19310         * cgraphunit.c (handle_alias_pairs): New function.
19311         (cgraph_finalize_compilation_unit): Use it.
19312         * ipa.c (cgraph_externally_visible_p): Remove hack marking asm names
19313         as externally visible.
19314
19315 2011-06-15  Richard Guenther  <rguenther@suse.de>
19316
19317         * expr.c (expand_expr_real_2): Reduce all integral types to
19318         bitfield precision.
19319         (expand_expr_real_1): Likewise.
19320
19321 2011-06-15  Martin Jambor  <mjambor@suse.cz>
19322
19323         PR tree-optimization/48613
19324         * ipa-prop.c (ipa_prop_write_jump_functions): Return immediately if
19325         ipa_node_params_vector is NULL.
19326
19327 2011-06-15  Jakub Jelinek  <jakub@redhat.com>
19328
19329         PR debug/49382
19330         * dwarf2out.c (dw_loc_list_node): Add force field.
19331         (add_var_loc_to_decl): For PARM_DECL, attempt to keep the incoming
19332         location in the list, even if it is modified before first real insn.
19333         (output_loc_list): Emit empty ranges with force flag set.
19334         (dw_loc_list): If first range of a PARM_DECL is empty, set force flag.
19335
19336 2011-06-15  Alexander Monakov  <amonakov@ispras.ru>
19337
19338         PR target/49349
19339         * sel-sched.c (find_place_for_bookkeeping): Add new parameter
19340         (fence_to_rewind).  Use it to notice when bookkeeping will be placed
19341         above a fence.  Update comments.
19342         (generate_bookkeeping_insn): Rewind fence when bookkeeping code is
19343         placed just above it.  Do not allow NULL place_to_insert.
19344
19345 2011-06-15  Ira Rosen  <ira.rosen@linaro.org>
19346
19347         * tree-vect-loop-manip.c (remove_dead_stmts_from_loop): Remove.
19348         (slpeel_tree_peel_loop_to_edge): Don't call
19349         remove_dead_stmts_from_loop.
19350         * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
19351         remove irrelevant pattern statements.  For irrelevant statements
19352         check if it is the last statement of a detected pattern, use
19353         corresponding pattern statement instead.
19354         (destroy_loop_vec_info): No need to remove pattern statements,
19355         only free stmt_vec_info.
19356         (vect_transform_loop): For irrelevant statements check if it is
19357         the last statement of a detected pattern, use corresponding
19358         pattern statement instead.
19359         * tree-vect-patterns.c (vect_pattern_recog_1): Don't insert
19360         pattern statements.  Set basic block for the new statement.
19361         (vect_pattern_recog): Update documentation.
19362         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Scan
19363         operands of pattern statements.
19364         (vectorizable_call): Fix printing.  In case of a pattern statement
19365         use the lhs of the original statement when creating a dummy
19366         statement to replace the original call.
19367         (vect_analyze_stmt): For irrelevant statements check if it is
19368         the last statement of a detected pattern, use corresponding
19369         pattern statement instead.
19370         * tree-vect-slp.c (vect_schedule_slp_instance): For pattern
19371         statements use gsi of the original statement.
19372
19373 2011-06-14  Joseph Myers  <joseph@codesourcery.com>
19374
19375         * target-def.h (TARGET_HAVE_NAMED_SECTIONS): Move to
19376         common/common-target-def.h.
19377         * target.def (default_target_flags, handle_option,
19378         supports_split_stack, optimization_table, init_struct,
19379         except_unwind_info, unwind_tables_default, have_named_sections):
19380         Move to common/common-target.def.
19381         * target.h (enum opt_levels, struct default_options): Move to
19382         common/common-target.h.
19383         * targhooks.c (default_except_unwind_info,
19384         dwarf2_except_unwind_info, sjlj_except_unwind_info,
19385         default_target_handle_option, empty_optimization_table): Move to
19386         common/common-targhooks.c.
19387         * targhooks.h (default_except_unwind_info,
19388         dwarf2_except_unwind_info, sjlj_except_unwind_info,
19389         default_target_handle_option, empty_optimization_table): Move to
19390         common/common-targhooks.h.
19391         * common/common-target-def.h: Include common/common-targhooks.h.
19392         (TARGET_HAVE_NAMED_SECTIONS): Define if TARGET_ASM_NAMED_SECTION
19393         defined.
19394         * common/common-target.def (handle_option, option_init_struct,
19395         option_optimization_table, default_target_flags,
19396         except_unwind_info, supports_split_stack, unwind_tables_default,
19397         have_named_sections): Move from target.def.
19398         (HOOK_PREFIX): Undefine at end of file.
19399         * common/common-target.h: Include input.h.
19400         (enum opt_levels, struct default_options): Move from target.h.
19401         * common/common-targhooks.c, common/common-targhooks.h: New.
19402         * config.gcc (target_has_targetm_common): Default to yes.
19403         (moxie*): Set target_has_targetm_common=no.
19404         (hppa*-*-*): Don't set target_has_targetm_common=yes.
19405         * doc/tm.texi: Regenerate.
19406         * Makefile.in (COMMON_TARGET_H): Add $(INPUT_H).
19407         (C_TARGET_DEF_H): Add common/common-targhooks.h.
19408         (GCC_OBJS): Remove vec.o.
19409         (OBJS): Remove hooks.o and vec.o.
19410         (OBJS-libcommon-target): Add vec.o, hooks.o and
19411         common/common-targhooks.o.
19412         (c-family/c-common.o, c-family/c-cppbuiltin.o, lto-opts.o, tree.o,
19413         tree-tailcall.o, opts.o, toplev.o, varasm.o, function.o, except.o,
19414         expr.o, explow.o, dbxout.o, dwarf2out.o, cfgrtl.o, haifa-sched.o,
19415         cfglayout.o, $(out_object_file), $(common_out_object_file)):
19416         Update dependencies.
19417         (common/common-targhooks.o): New.
19418         * common/config/default-common.c: Include tm.h.  Add FIXME comment.
19419         * common/config/pa/pa-common.c: Include more headers.  Take
19420         copyright dates from pa.c.
19421         (pa_option_optimization_table, pa_handle_option,
19422         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS,
19423         TARGET_HANDLE_OPTION): Move from pa.c.
19424         * common/config/alpha/alpha-common.c,
19425         common/config/arm/arm-common.c, common/config/avr/avr-common.c,
19426         common/config/bfin/bfin-common.c,
19427         common/config/cris/cris-common.c,
19428         common/config/fr30/fr30-common.c, common/config/frv/frv-common.c,
19429         common/config/h8300/h8300-common.c,
19430         common/config/i386/i386-common.c,
19431         common/config/ia64/ia64-common.c,
19432         common/config/iq2000/iq2000-common.c,
19433         common/config/lm32/lm32-common.c,
19434         common/config/m32c/m32c-common.c,
19435         common/config/m32r/m32r-common.c,
19436         common/config/m68k/m68k-common.c,
19437         common/config/mcore/mcore-common.c,
19438         common/config/mep/mep-common.c,
19439         common/config/microblaze/microblaze-common.c,
19440         common/config/mips/mips-common.c,
19441         common/config/mmix/mmix-common.c,
19442         common/config/mn10300/mn10300-common.c,
19443         common/config/pdp11/pdp11-common.c,
19444         common/config/picochip/picochip-common.c,
19445         common/config/rs6000/rs6000-common.c,
19446         common/config/rx/rx-common.c, common/config/s390/s390-common.c,
19447         common/config/score/score-common.c, common/config/sh/sh-common.c,
19448         common/config/sparc/sparc-common.c,
19449         common/config/spu/spu-common.c, common/config/v850/v850-common.c,
19450         common/config/vax/vax-common.c,
19451         common/config/xstormy16/xstormy16-common.c,
19452         common/config/xtensa/xtensa-common.c: New.
19453         * config/alpha/alpha.c: Include common/common-target.h.
19454         (alpha_option_optimization_table, alpha_handle_option,
19455         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
19456         TARGET_OPTION_OPTIMIZATION_TABLE): Move to alpha-common.c.
19457         * config/arm/arm-protos.h (arm_except_unwind_info): Declare.
19458         * config/arm/arm.c (arm_option_optimization_table,
19459         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
19460         TARGET_EXCEPT_UNWIND_INFO, arm_except_unwind_info): Move to
19461         arm-common.c.
19462         * config/avr/avr.c (avr_option_optimization_table,
19463         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
19464         to avr-common.c.
19465         * config/bfin/bfin.c (struct bfin_cpu): Move to bfin.h.
19466         (bfin_cpus, bfin_handle_option, TARGET_HANDLE_OPTION,
19467         TARGET_DEFAULT_TARGET_FLAGS): Move to bfin-common.c.
19468         * config/bfin/bfin.h struct bfin_cpu): Move from bfin.c.
19469         * config/cris/cris.c (cris_option_optimization_table,
19470         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
19471         TARGET_OPTION_OPTIMIZATION_TABLE, cris_handle_option): Move to
19472         cris-common.c.
19473         * config/fr30/fr30.c (fr30_option_optimization_table,
19474         TARGET_EXCEPT_UNWIND_INFO, TARGET_OPTION_OPTIMIZATION_TABLE): Move
19475         to fr30-common.c.
19476         * config/frv/frv.c (frv_option_optimization_table,
19477         MASK_DEFAULT_ALLOC_CC, TARGET_DEFAULT_TARGET_FLAGS,
19478         TARGET_OPTION_OPTIMIZATION_TABLE): Move to frv-common.c.
19479         * config/h8300/h8300.c (h8300_option_optimization_table,
19480         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
19481         TARGET_EXCEPT_UNWIND_INFO): Move to h8300-common.c.
19482         * config/i386/i386-protos.h (ix86_handle_option): Declare.
19483         * config/i386/i386.c: Include common/common-target.h.
19484         (OPTION_MASK_ISA_MMX_SET, OPTION_MASK_ISA_3DNOW_SET,
19485         OPTION_MASK_ISA_SSE_SET, OPTION_MASK_ISA_SSE2_SET,
19486         OPTION_MASK_ISA_SSE3_SET, OPTION_MASK_ISA_SSSE3_SET,
19487         OPTION_MASK_ISA_SSE4_1_SET, OPTION_MASK_ISA_SSE4_2_SET,
19488         OPTION_MASK_ISA_AVX_SET, OPTION_MASK_ISA_FMA_SET,
19489         OPTION_MASK_ISA_SSE4_SET, OPTION_MASK_ISA_SSE4A_SET,
19490         OPTION_MASK_ISA_FMA4_SET, OPTION_MASK_ISA_XOP_SET,
19491         OPTION_MASK_ISA_LWP_SET, OPTION_MASK_ISA_AES_SET,
19492         OPTION_MASK_ISA_PCLMUL_SET, OPTION_MASK_ISA_ABM_SET,
19493         OPTION_MASK_ISA_BMI_SET, OPTION_MASK_ISA_TBM_SET,
19494         OPTION_MASK_ISA_POPCNT_SET, OPTION_MASK_ISA_CX16_SET,
19495         OPTION_MASK_ISA_SAHF_SET, OPTION_MASK_ISA_MOVBE_SET,
19496         OPTION_MASK_ISA_CRC32_SET, OPTION_MASK_ISA_FSGSBASE_SET,
19497         OPTION_MASK_ISA_RDRND_SET, OPTION_MASK_ISA_F16C_SET,
19498         OPTION_MASK_ISA_MMX_UNSET, OPTION_MASK_ISA_3DNOW_UNSET,
19499         OPTION_MASK_ISA_3DNOW_A_UNSET, OPTION_MASK_ISA_SSE_UNSET,
19500         OPTION_MASK_ISA_SSE2_UNSET, OPTION_MASK_ISA_SSE3_UNSET,
19501         OPTION_MASK_ISA_SSSE3_UNSET, OPTION_MASK_ISA_SSE4_1_UNSET,
19502         OPTION_MASK_ISA_SSE4_2_UNSET, OPTION_MASK_ISA_AVX_UNSET,
19503         OPTION_MASK_ISA_FMA_UNSET, OPTION_MASK_ISA_SSE4_UNSET,
19504         OPTION_MASK_ISA_SSE4A_UNSET, OPTION_MASK_ISA_FMA4_UNSET,
19505         OPTION_MASK_ISA_XOP_UNSET, OPTION_MASK_ISA_LWP_UNSET,
19506         OPTION_MASK_ISA_AES_UNSET, OPTION_MASK_ISA_PCLMUL_UNSET,
19507         OPTION_MASK_ISA_ABM_UNSET, OPTION_MASK_ISA_BMI_UNSET,
19508         OPTION_MASK_ISA_TBM_UNSET, OPTION_MASK_ISA_POPCNT_UNSET,
19509         OPTION_MASK_ISA_CX16_UNSET, OPTION_MASK_ISA_SAHF_UNSET,
19510         OPTION_MASK_ISA_MOVBE_UNSET, OPTION_MASK_ISA_CRC32_UNSET,
19511         OPTION_MASK_ISA_FSGSBASE_UNSET, OPTION_MASK_ISA_RDRND_UNSET,
19512         OPTION_MASK_ISA_F16C_UNSET, ix86_handle_option,
19513         ix86_option_optimization_table, ix86_option_init_struct,
19514         ix86_supports_split_stack, TARGET_DEFAULT_TARGET_FLAGS,
19515         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
19516         TARGET_OPTION_INIT_STRUCT, TARGET_SUPPORTS_SPLIT_STACK): Move to
19517         i386-common.c.
19518         * config/i386/t-i386 (i386.o): Update dependencies.
19519         * config/ia64/ia64-protos.h (ia64_except_unwind_info): Declare.
19520         * config/ia64/ia64.c (ia64_option_optimization_table,
19521         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
19522         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
19523         ia64_handle_option): Move to ia64-common.c.
19524         * config/iq2000/iq2000.c (iq2000_option_optimization_table,
19525         TARGET_OPTION_OPTIMIZATION_TABLE): Move to iq2000-common.c.
19526         * config/lm32/lm32.c (lm32_option_optimization_table,
19527         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
19528         to lm32-common.c.
19529         * config/m32c/m32c.c (TARGET_HAVE_NAMED_SECTIONS): Move to
19530         m32c-common.c.
19531         * config/m32r/m32r.c (m32r_option_optimization_table,
19532         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
19533         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
19534         m32r_handle_option): Move to m32r-common.c.
19535         (m32r_memory_move_cost): Remove comment referring to
19536         TARGET_HANDLE_OPTION.
19537         * config/m68k/m68k.c (TARGET_HANDLE_OPTION, m68k_handle_option):
19538         Move to m68k-common.c.
19539         * config/mcore/mcore.c (mcore_option_optimization_table,
19540         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
19541         TARGET_EXCEPT_UNWIND_INFO): Move to mcore-common.c.
19542         * config/mep/mep.c (mep_option_optimization_table,
19543         mep_handle_option, TARGET_HANDLE_OPTION,
19544         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS):
19545         Move to mep-common.c.
19546         * config/microblaze/microblaze.c
19547         (microblaze_option_optimization_table,
19548         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
19549         TARGET_EXCEPT_UNWIND_INFO): Move to microblaze-common.c.
19550         * config/mips/mips.c (mips_handle_option,
19551         mips_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
19552         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Move to
19553         mips-common.c.
19554         * config/mmix/mmix.c (mmix_option_optimization_table,
19555         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
19556         Move to mmix-common.c.
19557         * config/mn10300/mn10300.c (mn10300_option_optimization_table,
19558         mn10300_handle_option, TARGET_EXCEPT_UNWIND_INFO,
19559         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
19560         TARGET_OPTION_OPTIMIZATION_TABLE): Move to mn10300-common.c.
19561         * config/pa/pa.c: Include common/common-target.h.
19562         (pa_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
19563         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
19564         pa_handle_option): Move to pa-common.c.
19565         (pa_option_override): Use targetm_common.except_unwind_info.
19566         (pa_asm_output_mi_thunk, pa_function_section): Use
19567         targetm_common.have_named_sections.
19568         * config/pdp11/pdp11.c (pdp11_option_optimization_table,
19569         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
19570         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
19571         pdp11_handle_option, pdp11_option_init_struct): Move to
19572         pdp11-common.c.
19573         * config/picochip/picochip.c (picochip_option_optimization_table,
19574         TARGET_HAVE_NAMED_SECTIONS, TARGET_OPTION_OPTIMIZATION_TABLE,
19575         TARGET_EXCEPT_UNWIND_INFO): Move to picochip-common.c.
19576         * config/rs6000/rs6000.c: Include common/common-target.h.
19577         (rs6000_option_optimization_table, TARGET_HANDLE_OPTION,
19578         TARGET_OPTION_INIT_STRUCT, TARGET_OPTION_OPTIMIZATION_TABLE,
19579         TARGET_DEFAULT_TARGET_FLAGS, rs6000_option_init_struct,
19580         rs6000_handle_option): Move to rs6000-common.c.
19581         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
19582         * config/rx/rx.c (rx_handle_option, rx_option_optimization_table,
19583         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
19584         TARGET_EXCEPT_UNWIND_INFO): Move to rx-common.c.
19585         * config/s390/s390.c (processor_flags_table,
19586         s390_option_optimization_table, s390_option_init_struct,
19587         s390_handle_option, TARGET_DEFAULT_TARGET_FLAGS,
19588         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
19589         TARGET_OPTION_INIT_STRUCT): Move to s390-common.c.
19590         * config/s390/s390.h (processor_flags_table): Declare.
19591         * config/score/score.c (score_option_optimization_table,
19592         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
19593         TARGET_OPTION_OPTIMIZATION_TABLE, MASK_ALL_CPU_BITS,
19594         score_handle_option): Move to score-common.c.
19595         * config/sh/sh.c (sh_option_optimization_table,
19596         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
19597         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
19598         sh_handle_option, sh_option_init_struct): Move to sh-common.c.
19599         * config/sparc/sparc.c: Include common/common-target.h.
19600         (sparc_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
19601         TARGET_OPTION_OPTIMIZATION_TABLE): Move to sparc-common.c.
19602         * config/spu/spu.c (TARGET_DEFAULT_TARGET_FLAGS,
19603         TARGET_OPTION_INIT_STRUCT, TARGET_EXCEPT_UNWIND_INFO,
19604         spu_option_init_struct): Move to spu-common.c.
19605         * config/stormy16/stormy16.c (xstorym16_option_optimization_table,
19606         TARGET_OPTION_OPTIMIZATION_TABLE): Move to xstormy16-common.c.
19607         * config/v850/v850.c (small_memory_physical_max,
19608         v850_handle_memory_optionn v850_handle_option,
19609         v850_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
19610         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE): Move to
19611         v850-common.c.
19612         * config/vax/vax.c (TARGET_DEFAULT_TARGET_FLAGS): Move to vax-common.c.
19613         * config/xtensa/xtensa.c (xtensa_option_optimization_table,
19614         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
19615         Move to xtensa-common.c.
19616         * cfglayout.c: Include common/common-target.h.
19617         (fixup_reorder_chain): Use targetm_common.have_named_sections.
19618         * cfgrtl.c: Include common/common-target.h.
19619         (force_nonfallthru_and_redirect, commit_one_edge_insertion): Use
19620         targetm_common.have_named_sections.
19621         * dbxout.c: Include common/common-target.h.
19622         (dbxout_function_end): Use targetm_common.have_named_sections.
19623         * defaults.h (STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT): Use
19624         targetm_common.except_unwind_info.
19625         * dwarf2out.c: Include common/common-target.h.
19626         (dwarf2out_do_frame, dwarf2out_do_cfi_asm,
19627         dwarf2out_begin_prologue, dwarf2out_frame_init,
19628         dwarf2out_frame_finish, dwarf2out_assembly_start): Use
19629         targetm_common.except_unwind_info.
19630         * except.c: Include common/common-target.h.
19631         (init_eh, finish_eh_generation,
19632         output_one_function_exception_table): Use
19633         targetm_common.except_unwind_info.
19634         (switch_to_exception_section): Use targetm_common.have_named_sections.
19635         * explow.c: Include common/common-target.h.
19636         * expr.c: Include common/common-target.h.
19637         (build_personality_function): Use targetm_common.except_unwind_info.
19638         * function.c: Include common/common-target.h.
19639         (expand_function_end): Use targetm_common.except_unwind_info.
19640         * haifa-sched.c: Include common/common-target.h.
19641         (sched_create_recovery_edges): Use targetm_common.have_named_sections.
19642         * lto-opts.c: Include common/common-target.h instead of target.h.
19643         (lto_reissue_options): Use targetm_common.handle_option.
19644         * opts.c: Include common/common-target.h.
19645         (target_handle_option): Use targetm_common.handle_option.
19646         (init_options_struct): Update comment referring to
19647         targetm.target_option.optimization.  Use
19648         targetm_common.default_target_flags,
19649         targetm_common.unwind_tables_default and
19650         targetm_common.option_init_struct.
19651         (default_options_optimization): Use
19652         targetm_common.option_optimization_table.
19653         (finish_options): Use targetm_common.except_unwind_info,
19654         targetm_common.unwind_tables_default,
19655         targetm_common.have_named_sections and
19656         targetm_common.supports_split_stack.
19657         * toplev.c: Include common/common-target.h.
19658         (process_options): Use targetm_common.have_named_sections.
19659         * tree-tailcall.c: Include common/common-target.h.
19660         (suitable_for_tail_call_opt_p): Use targetm_common.except_unwind_info.
19661         * tree.c: Include common/common-target.h.
19662         (build_common_builtin_nodes): Use targetm_common.except_unwind_info.
19663         * varasm.c: Include common/common-target.h.
19664         (resolve_unique_section, hot_function_section,
19665         default_function_section): Use targetm_common.have_named_sections.
19666
19667 2011-06-14  Easwaran Raman  <eraman@google.com>
19668
19669         PR rtl-optimization/44194
19670         * dse.c: Include tree-flow.h
19671         (insn_info): Add new field non_frame_wild_read.
19672         (group_info): Add new fields escaped_n and escaped_p.
19673         (kill_on_calls): New variable.
19674         (get_group_info): Initialize gi->escaped_n and gi->escaped_p.
19675         (dse_step0): Initialize kill_on_calls.
19676         (can_escape): New function.
19677         (set_usage_bits): Add additional parameter; record information
19678         about escaped locations.
19679         (record_store): Pass EXPR corresponding to MEM to set_usage_bits.
19680         (dse_step2_nospill): Set kill_on_calls based on
19681         group->escaped_n and group->escaped_n.
19682         (add_wild_read): Refactor into...
19683         (reset_active_stores): ... New function, and
19684         (free_read_records): ... New function.
19685         (add_non_frame_wild_read): New function.
19686         (scan_insn): Call add_non_frame_wild_read on non-const calls.
19687         (scan_reads_nospill): Handle instructions with non_frame_wild_read.
19688         (dse_step5_nospill): Call scan_reads_nospill for instructions
19689         marked as non_frame_wild_read.
19690         (dse_step7): Free escaped_n, escaped_p and kill_on_calls bitmaps.
19691
19692 2011-06-14  Joseph Myers  <joseph@codesourcery.com>
19693
19694         * common/common-target-def.h, common/common-target.def,
19695         common/common-target.h, common/config/default-common.c,
19696         common/config/pa/pa-common.c: New files.
19697         * Makefile.in (common_out_file, common_out_object_file,
19698         COMMON_TARGET_H, COMMON_TARGET_DEF_H): New.
19699         (OBJS-libcommon-target): Include $(common_out_object_file).
19700         (prefix.o): Update dependencies.
19701         ($(common_out_object_file), common/common-target-hooks-def.h,
19702         s-common-target-hooks-def-h): New.
19703         (s-tm-texi): Also check timestamp on common-target.def.
19704         (build/genhooks.o): Update dependencies.
19705         * config.gcc (common_out_file, target_has_targetm_common): Define.
19706         * config/pa/som.h (ALWAYS_STRIP_DOTDOT): Replace with
19707         TARGET_ALWAYS_STRIP_DOTDOT.
19708         * configure.ac (common_out_object_file): Define.
19709         (common_out_file, common_out_object_file): Substitute.
19710         (common): Create directory.
19711         * configure: Regenerate.
19712         * doc/tm.texi.in (targetm_common): Document.
19713         (TARGET_ALWAYS_STRIP_DOTDOT): Add @hook entry.
19714         * doc/tm.texi: Regenerate.
19715         * genhooks.c (hook_array): Also include common/common-target.def.
19716         * prefix.c (tm.h): Don't include.
19717         (common/common-target.h): Include.
19718         (ALWAYS_STRIP_DOTDOT): Don't define.
19719         (update_path): Use targetm_common.always_strip_dotdot instead of
19720         ALWAYS_STRIP_DOTDOT.
19721         * system.h (ALWAYS_STRIP_DOTDOT): Poison.
19722
19723 2011-06-14  David Li  <davidxl@google.com>
19724
19725         * passes.c (execute_function_todo): Remove TODO_dump_func.
19726         (execute_one_pass): Remove TODO_dump_func.
19727         (execute_function_dump): New function.
19728         * tree-vrp.c: Remove TODO_dump_func.
19729         * regrename.c: Remove TODO_dump_func.
19730         * fwprop.c: Remove TODO_dump_func.
19731         * tree-into-ssa.c: Remove TODO_dump_func.
19732         * tree-complex.c: Remove TODO_dump_func.
19733         * tracer.c: Remove TODO_dump_func.
19734         * tree-loop-distribution.c: Remove TODO_dump_func.
19735         * postreload-gcse.c: Remove TODO_dump_func.
19736         * postreload.c: Remove TODO_dump_func.
19737         * tree-ssa-loop-ch.c: Remove TODO_dump_func.
19738         * tree-tailcall.c: Remove TODO_dump_func.
19739         * ipa-cp.c: Remove TODO_dump_func.
19740         * final.c: Remove TODO_dump_func.
19741         * tree-emutls.c: Remove TODO_dump_func.
19742         * omp-low.c: Remove TODO_dump_func.
19743         * tree-ssa-dse.c: Remove TODO_dump_func.
19744         * tree-ssa-uncprop.c: Remove TODO_dump_func.
19745         * auto-inc-dec.c: Remove TODO_dump_func.
19746         * reorg.c: Remove TODO_dump_func.
19747         * tree-ssa-copyrename.c: Remove TODO_dump_func.
19748         * tree-ssa-ccp.c: Remove TODO_dump_func.
19749         * compare-elim.c: Remove TODO_dump_func.
19750         * mode-switching.c: Remove TODO_dump_func.
19751         * modulo-sched.c: Remove TODO_dump_func.
19752         * tree-call-cdce.c: Remove TODO_dump_func.
19753         * cse.c: Remove TODO_dump_func.
19754         * web.c: Remove TODO_dump_func.
19755         * tree-stdarg.c: Remove TODO_dump_func.
19756         * lto-streamer-out.c: Remove TODO_dump_func.
19757         * tree-ssa-math-opts.c: Remove TODO_dump_func.
19758         * tree-ssa-dom.c: Remove TODO_dump_func.
19759         * tree-nrv.c: Remove TODO_dump_func.
19760         * loop-init.c: Remove TODO_dump_func.
19761         * gimple-low.c: Remove TODO_dump_func.
19762         * ipa-inline.c: Remove TODO_dump_func.
19763         * tree-ssa-sink.c: Remove TODO_dump_func.
19764         * jump.c: Remove TODO_dump_func.
19765         * ifcvt.c: Remove TODO_dump_func.
19766         * tree-ssa-loop.c: Remove TODO_dump_func.
19767         * recog.c: Remove TODO_dump_func.
19768         * dse.c: Remove TODO_dump_func.
19769         * tree-ssa-ifcombine.c: Remove TODO_dump_func.
19770         * matrix-reorg.c: Remove TODO_dump_func.
19771         * tree-eh.c: Remove TODO_dump_func.
19772         * regmove.c: Remove TODO_dump_func.
19773         * function.c: Remove TODO_dump_func.
19774         * tree-vectorizer.c: Remove TODO_dump_func.
19775         * ipa-split.c: Remove TODO_dump_func.
19776         * gcse.c: Remove TODO_dump_func.
19777         * tree-if-conv.c: Remove TODO_dump_func.
19778         * init-regs.c: Remove TODO_dump_func.
19779         * tree-ssa-phiopt.c: Remove TODO_dump_func.
19780         * implicit-zee.c: Remove TODO_dump_func.
19781         * lower-subreg.c: Remove TODO_dump_func.
19782         * bt-load.c: Remove TODO_dump_func.
19783         * tree-dfa.c: Remove TODO_dump_func.
19784         * except.c: Remove TODO_dump_func.
19785         * emit-rtl.c: Remove TODO_dump_func.
19786         * store-motion.c: Remove TODO_dump_func.
19787         * cfgexpand.c: Remove TODO_dump_func.
19788         * tree-cfgcleanup.c: Remove TODO_dump_func.
19789         * cfgcleanup.c: Remove TODO_dump_func.
19790         * tree-ssa-pre.c: Remove TODO_dump_func.
19791         * tree-sra.c: Remove TODO_dump_func.
19792         * tree-mudflap.c: Remove TODO_dump_func.
19793         * tree-ssa-copy.c: Remove TODO_dump_func.
19794         * cfglayout.c: Remove TODO_dump_func.
19795         * tree-ssa-forwprop.c: Remove TODO_dump_func.
19796         * tree-ssa-dce.c: Remove TODO_dump_func.
19797         * ira.c: Remove TODO_dump_func.
19798         * tree-ssa.c: Remove TODO_dump_func.
19799         * integrate.c: Remove TODO_dump_func.
19800         * tree-optimize.c: Remove TODO_dump_func.
19801         * tree-ssa-phiprop.c: Remove TODO_dump_func.
19802         * tree-object-size.c: Remove TODO_dump_func.
19803         * combine.c: Remove TODO_dump_func.
19804         * bb-reorder.c: Remove TODO_dump_func.
19805         * cprop.c: Remove TODO_dump_func.
19806         * var-tracking.c: Remove TODO_dump_func.
19807         * tree-profile.c: Remove TODO_dump_func.
19808         * tree-vect-generic.c: Remove TODO_dump_func.
19809         * reg-stack.c: Remove TODO_dump_func.
19810         * sched-rgn.c: Remove TODO_dump_func.
19811         * tree-ssa-structalias.c: Remove TODO_dump_func.
19812         * tree-switch-conversion.c: Remove TODO_dump_func.
19813         * tree-cfg.c: Remove TODO_dump_func.
19814         * tree-ssa-reassoc.c: Remove TODO_dump_func.
19815         * combine-stack-adj.c: Remove TODO_dump_func.
19816         * dce.c: Remove TODO_dump_func.
19817         * tree-ssanames.c: Remove TODO_dump_func.
19818         * regcprop.c: Remove TODO_dump_func.
19819
19820 2011-06-14  H.J. Lu  <hongjiu.lu@intel.com>
19821
19822         PR middle-end/47364
19823         * builtins.c (expand_builtin_strlen): Expand strlen to Pmode
19824         and properly handle result not in Pmode.
19825
19826 2011-06-14  Robert Millan  <rmh@gnu.org>
19827
19828         * config/i386/kfreebsd-gnu.h: Resync with `config/i386/linux.h'.
19829         * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER): Resync with
19830         `config/linux.h'.
19831
19832         * config/i386/kfreebsd-gnu64.h: New file.
19833         * config.gcc (x86_64-*-kfreebsd*-gnu): Replace `i386/kfreebsd-gnu.h'
19834         with `i386/kfreebsd-gnu64.h'.
19835
19836         * config/i386/linux64.h (GNU_USER_LINK_EMULATION32)
19837         (GNU_USER_LINK_EMULATION64): New macros.
19838         * config/i386/gnu-user64.h (LINK_SPEC): Rely on
19839         `GNU_USER_LINK_EMULATION32' and `GNU_USER_LINK_EMULATION64' instead
19840         of hardcoding `elf_i386' and `elf_x86_64'.
19841
19842 2011-06-14  Nick Clifton  <nickc@redhat.com>
19843
19844         PR target/49403
19845         * config/v850/v850.c (v850_memory_move_cost): Add reg_class_t parameter.
19846
19847         PR target/49402
19848         * config.gcc(v850*-*-*): Avoid duplication of v850.opt.
19849
19850 2011-06-14  Jakub Jelinek  <jakub@redhat.com>
19851
19852         PR fortran/49103
19853         * tree.h (DECL_NONSHAREABLE): Define.
19854         (struct tree_decl_common): Change decl_common_unused to
19855         decl_nonshareable_flag.
19856         * cfgexpand.c (expand_used_vars_for_block, clear_tree_used):
19857         Ignore vars with DECL_NONSHAREABLE bit set.
19858         * tree-cfg.c (gimple_duplicate_bb): Set DECL_NONSHAREABLE
19859         on stores to automatic aggregate vars.
19860
19861         PR rtl-optimization/49390
19862         Revert:
19863         2010-06-29  Bernd Schmidt  <bernds@codesourcery.com>
19864
19865         * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
19866         MEM_ALIAS_SET.
19867
19868 2011-06-14  Zdenek Dvorak  <ook@ucw.cz>
19869             Tom de Vries  <tom@codesourcery.com>
19870
19871         PR target/45098
19872         * cfgloop.h (nb_iterations_upper_bound, nb_iterations_estimate):
19873         Document changed semantics.
19874         (max_stmt_executions, max_stmt_executions_int): Declare.
19875         * tree-data-ref.c (estimated_loop_iterations)
19876         (estimated_loop_iterations_int): Move functions...
19877         * tree-ssa-loop-niter.c (estimated_loop_iterations)
19878         (estimated_loop_iterations_int): here.
19879         (record_estimate): Change nb_iterations_upper_bound and
19880         nb_iterations_estimate semantics.
19881         (max_stmt_executions, max_stmt_executions_int): New function.
19882         * tree-data-ref.c (estimated_loop_iterations_tree): Rename to ...
19883         (max_stmt_executions_tree): this.
19884         (analyze_miv_subscript): Use max_stmt_executions_tree instead of
19885         estimated_loop_iterations_tree.
19886         tree-ssa-loop-ivopts.c (avg_loop_niter): Use
19887         max_stmt_executions_int instead of estimated_loop_iterations_int.
19888         * predict.c (predict_loops): Idem.
19889         * tree-parloops.c (parallelize_loops): Idem.
19890         * tree-data-ref.c (analyze_siv_subscript_cst_affine)
19891         (compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine)
19892         (init_omega_for_ddr_1): Idem.
19893         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse)
19894         (loop_prefetch_arrays): Idem
19895         * graphite-sese-to-poly.c (build_loop_iteration_domains): Use
19896         max_stmt_executions instead of estimated_loop_iterations.
19897         * tree-data-ref.c (estimated_loop_iterations_tree): Idem.
19898         * tree-vrp.c (adjust_range_with_scev): Use estimated_loop_iterations
19899         instead of nb_iterations_upper_bound.
19900
19901 2011-06-13  Jan Hubicka  <jh@suse.cz>
19902
19903         * ipa.c (cgraph_address_taken_from_non_vtable_p): Check the ref type.
19904
19905 2011-06-14  Richard Henderson  <rth@redhat.com>
19906
19907         PR debug/48459
19908         * dwarf2out.c (frame_pointer_fb_offset_valid): New.
19909         (based_loc_descr): Assert it's true.
19910         (compute_frame_pointer_to_fb_displacement): Set it, rather than
19911         aborting immediately.
19912
19913 2011-06-14  Sanjin Liu  <scliu@faraday-tech.com>
19914             Mingfeng Wu  <mingfeng@faraday-tech.com>
19915
19916         * doc/invoke.texi: Re-add missing -mcpu docs for Faraday cores.
19917
19918 2011-06-13  Jan Hubicka  <jh@suse.cz>
19919
19920         * ipa-cp.c (ipcp_iterate_stage): Revert accidental commit.
19921
19922 2011-06-13  Jan Hubicka  <jh@suse.cz>
19923
19924         * cgraph.c (cgraph_make_decl_local): Handle DECL_ONE_ONLY
19925         similarly to DECL_COMDAT.
19926         * cgraphunit.c (cgraph_analyze_function): Likewise.
19927         * ipa.c (function_and_variable_visibility): Likewise.
19928
19929 2011-06-13  Jan Hubicka  <jh@suse.cz>
19930
19931         * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not output
19932         BINFO_VIRTUALS when streaming for ltrans unit.
19933
19934 2011-06-13  David Edelsohn  <dje.gcc@gmail.com>
19935
19936         * config/rs6000/rs6000.md (movdi_mfpgpr): Remove POWER mnemonic.
19937         (movdi_internal64): Same.
19938
19939 2011-06-13  Edmar Wienskoski  <edmar@freescale.com>
19940
19941         PR target/44618
19942         * config/rs6000/rs6000.md (save_gpregs_<mode>): Replaced pattern with
19943         a set of similar patterns, where the MATCH_OPERAND for the function
19944         argument is replaced with individual references to hardware registers.
19945         (save_fpregs_<mode>): Ditto
19946         (restore_gpregs_<mode>): Ditto
19947         (return_and_restore_gpregs_<mode>): Ditto
19948         (return_and_restore_fpregs_<mode>): Ditto
19949         (return_and_restore_fpregs_aix_<mode>): Ditto
19950
19951 2011-06-13  Jan Hubicka  <jh@suse.cz>
19952
19953         * ipa-utils.c (postorder_stack): New structure.
19954         (ipa_reverse_postorder): Handle aliases.
19955
19956 2011-06-13  Jan Hubicka  <jh@suse.cz>
19957
19958         * ipa-inline.c (reset_edge_caches): Walk aliases.
19959         (update_caller_keys): Do not test inlinability of aliases.
19960         * ipa-inline-analysis.c (do_estimate_edge_time): Look through alias.
19961         (do_estimate_growth): Fix typo.
19962
19963 2011-06-13  Jan Hubicka  <jh@suse.cz>
19964
19965         * ipa-inline-transform.c (+can_remove_node_now_p_1): Break out from...
19966         (can_remove_node_now_p): ... here; handle same comdat groups.
19967         (clone_inlined_nodes): Update use of can_remove_node_now_p add TODO.
19968         (inline_call): Update use of can_remove_node_now_p.
19969
19970 2011-06-13  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
19971
19972         * config/h8300/h8300.md (bsetqi_msx, bclrqi_msx, bnotqi_msx): Added
19973         condition to disallow non-identical memory locations.
19974         (*andqi3_2, andqi3_1, iorqi3_1, xorqi3_1): Reorder insn to give
19975         preference to bit manipulation instructions.
19976
19977 2011-06-13  Jan Hubicka  <jh@suse.cz>
19978
19979         * cgraph.c (cgraph_for_node_thunks_and_aliases,
19980         cgraph_for_node_and_aliases): Fix thinko in recursive walking.
19981         (nonremovable_p): New function.
19982         (cgraph_can_remove_if_no_direct_calls_p): New function.
19983         (used_from_object_file_p): New functoin.
19984         (cgraph_will_be_removed_from_program_if_no_direct_calls): Look for
19985         references from aliases.
19986         * cgraph.h (cgraph_can_remove_if_no_direct_calls_p): Bring offline.
19987         * ipa-inline.c (check_caller_edge): New function.
19988         (want_inline_function_called_once_p): Use it; accept aliases called
19989         once, too.
19990         * ipa-inline-analysis.c (do_estimate_growth): Remove FIXME.
19991
19992 2011-06-13  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
19993
19994         PR target/48454
19995         * config/arm/neon.md (vec_pack_trunc): Set the lengths
19996         correctly for the case with Quad vectors.
19997
19998 2011-06-13 Jakub Jelinek  <jakub@redhat.com>
19999            Ira Rosen  <ira.rosen@linaro.org>
20000
20001         PR tree-optimization/49352
20002         * tree-vect-loop.c (vect_is_slp_reduction): Don't count debug uses at
20003         all, make sure loop_use_stmt after the loop is a def stmt of a used
20004         SSA_NAME that is the only one defined inside of the loop.  Don't
20005         check for COND_EXPR and GIMPLE_BINARY_RHS.
20006         (vect_is_simple_reduction_1): Call vect_is_slp_reduction only if
20007         check_reduction is true.
20008
20009 2011-06-11  Jan Hubicka  <jh@suse.cz>
20010
20011         PR middle-end/49373
20012         * ipa.c (cgraph_externally_visible_p): Check resolution info.
20013
20014 2011-06-11  Jan Hubicka  <jh@suse.cz>
20015
20016         PR middle-end/48836
20017         * ipa-inline-transform.c: Include tree-pass.h
20018         (inline_transform): Set TODO_update_ssa_only_virtuals.
20019         * Makefile.in (ipa-inline-transform.o): Add tree-pass.h.
20020
20021 2011-06-11  Jan Hubicka  <jh@suse.cz>
20022
20023         PR middle-end/49378
20024         * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p): Rule out
20025         aliases and thunks.
20026
20027 2011-06-12  Ira Rosen  <ira.rosen@linaro.org>
20028
20029         * tree-vect-data-refs.c (vect_peeling_hash_get_most_frequent):
20030         Take number of iterations to peel into account for equally frequent
20031         misalignment values.
20032
20033 2011-06-11  Jan Hubicka  <jh@suse.cz>
20034
20035         * lto-streamer-out.c (produce_symtab): Stream out the newly
20036         represented aliases.
20037
20038 2011-06-11  Jan Hubicka  <jh@suse.cz>
20039
20040         * ipa-prop.c (ipa_make_edge_direct_to_target): Fix code setting
20041         varying args.
20042         (ipa_update_after_lto_read): Likewise.
20043         (ipa_write_node_info): Do not sream call_with_var_arguments.
20044         (ipa_read_node_info): Likewise.
20045
20046 2011-06-11  Jan Hubicka  <jh@suse.cz>
20047
20048         * ipa.c (cgraph_comdat_can_be_unshared_p): Fix pasto.
20049
20050 2011-06-11  Jan Hubicka  <jh@suse.cz>
20051
20052         * lto-symtab.c (lto_cgraph_replace_node): Kill same body alias code.
20053         (lto_symtab_resolve_can_prevail_p): Likewise.
20054         (lto_symtab_merge_cgraph_nodes): Update merging of aliases.
20055         * cgraph.c (same_body_aliases_done): New global var.
20056         (cgraph_same_body_alias_1): Rename to ...
20057         (cgraph_create_function_alias): ... this one; reorg to new
20058         representation.
20059         (cgraph_same_body_alias): Use cgraph_create_function_alias;
20060         record references when asked to.
20061         (cgraph_add_thunk): Fix formating.
20062         (cgraph_get_node): Kill same body alias code.
20063         (cgraph_node_for_asm): Likewise.
20064         (cgraph_remove_same_body_alias): Remove.
20065         (cgraph_remove_node): Kill same body alias code.
20066         (cgraph_mark_address_taken_node): Mark also the aliased function
20067         as having address taken.
20068         (dump_cgraph_node): Dump same body aliases.
20069         (cgraph_for_node_thunks_and_aliases): Update for new alias
20070         representation.
20071         (cgraph_for_node_and_aliases): Likewise.
20072         * cgraph.h (same_body): Kll pointer.
20073         (same_body_alias): Update comment.
20074         (same_body_aliases_done): Declare.
20075         (cgraph_remove_same_body_alias): Remove declaration.
20076         (cgraph_create_function_alias): Declare.
20077         (cgraph_process_same_body_aliases): Declare.
20078         (cgraph_function_with_gimple_body_p): Check for alias.
20079         (cgraph_can_remove_if_no_direct_calls_p): Look for aliases.
20080         (cgraph_alias_aliased_node): New function.
20081         (cgraph_function_node): Update for new aliases.
20082         (cgraph_function_or_thunk_node): Likewise.
20083         * ipa-inline-transform.c (can_remove_node_now_p): Look for aliases.
20084         (inline_call): Remove dead aliases.
20085         * cgraphunit.c (cgraph_decide_is_function_needed): Disable assembler
20086         name hack for same body aliases.
20087         (clone_of_p): Look through aliases.
20088         (verify_cgraph_node): Verify aliases.
20089         (cgraph_analyze_function): Analyze aliases; fixup C++ bugs.
20090         (cgraph_process_same_body_aliases): New function.
20091         (process_function_and_variable_attributes): Disable weakref warning on
20092         alias.
20093         (cgraph_analyze_functions): Handle aliases.
20094         (cgraph_mark_functions_to_output): Handle aliases same way as thunks.
20095         (assemble_thunks): Rename to ...
20096         (assemble_thunks_and_aliases): ... this one; handle aliases, too.
20097         (cgraph_expand_function): Remove alias output code.
20098         (cgraph_output_in_order): Skip aliases.
20099         (cgraph_preserve_function_body_p): Aliases don't need preserving.
20100         * ipa-ref.c (ipa_ref_use_name): Add alias reference.
20101         (ipa_record_reference): Do not assert on alias references.
20102         (ipa_ref_has_aliases_p): New function.
20103         * ipa-ref.h (enum ipa_ref_use): Add IPA_REF_ALIAS.
20104         (ipa_ref_has_aliases_p): Declare.
20105         * lto-cgraph.c (lto_output_node): Handle aliases.
20106         (input_node): Likewise.
20107         * lto-streamer-out.c (lto_output): Skip aliases.
20108         (produce_symtab): Kill same_body_alias code.
20109         * ipa-utils.c (ipa_reverse_postorder): Add FIXME.
20110         (ipa_reverse_postorder): Use cgraph_only_called_directly_or_aliased_p.
20111         * ipa-inline.c (update_caller_keys): Walk aliases.
20112         (inline_small_functions): Fix thinko in previous patch.
20113         * ipa.c (cgraph_externally_visible_p): Do not walk aliases.
20114         (function_and_variable_visibility): Do not walk same body aliases.
20115         * tree-ssa-structalias.c (associate_varinfo_to_alias): New function.
20116         (ipa_pta_execute): Use it.
20117
20118 2011-06-11  Uros Bizjak  <ubizjak@gmail.com>
20119
20120         * config/i386/sse.md (vec_dupv4sf): Correct mode of forced register.
20121         (*vec_dupv2df): Rename from vec_dupv2df.
20122         (vec_dupv2df): New expander.
20123
20124 2011-06-11  Uros Bizjak  <ubizjak@gmail.com>
20125
20126         * config/i386/sse.md (AVX_VEC_DUP_MODE): Rename from AVX256MODE24P.
20127
20128 2011-06-11  Uros Bizjak  <ubizjak@gmail.com>
20129
20130         * config/i386/i386.md: Use default value in "isa" attribute.
20131         * config/i386/sse.md: Ditto.
20132         * config/i386/mmx.md: Ditto.
20133
20134 2011-06-10  Wei Guozhi  <carrot@google.com>
20135
20136         PR target/45335
20137         * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
20138         stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
20139         (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
20140         related peephole2.
20141         (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
20142         related peephole2.
20143         * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
20144         (arm_legitimate_ldrd_p): New prototype.
20145         (arm_output_ldrd): New prototype.
20146         * config/arm/arm.c (arm_check_ldrd_operands): New function.
20147         (arm_legitimate_ldrd_p): New function.
20148         (arm_output_ldrd): New function.
20149
20150 2011-06-10  David Li  <davidxl@google.com>
20151
20152         * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
20153         * passes.c (passr_eq): New function.
20154         (create_pass_tab): New function.
20155         (pass_traverse): New function.
20156         (dump_one_pass): New function.
20157         (dump_pass_list): New function.
20158         (dump_passes): New function.
20159
20160 2011-06-10  Jan Hubicka  <jh@suse.cz>
20161
20162         * cgraph.c (cgraph_set_nothrow_flag_1): Update cgraph after
20163         setting the nothrow flag.
20164         * ipa-reference.c (propagate): Skip aliases.
20165         * ipa-pure-const.c (propagate_pure_const): Skip aliases.
20166         (propagate_nothrow): Skip aliases; do not update cgraph.
20167         (local_pure_const): Do not update cgraph.
20168         * tree-profile.c (tree_profiling): Do fixup_cfg.
20169
20170 2011-06-10  Jan Hubicka  <jh@suse.cz>
20171
20172         * ipa.c (cgraph_non_local_node_p_1): Break out from ...;
20173         (cgraph_local_node_p): ... here; handle aliases.
20174         (has_addr_references_p): Break out from ...;
20175         (cgraph_remove_unreachable_nodes) ... here.
20176
20177 2011-06-10  Jan Hubicka  <jh@suse.cz>
20178
20179         * opts.c (default_options): Enlist OPT_finline_functions_called_once.
20180         * common.opt (flag_inline_functions_called_once): Do not
20181         initialize to 1.
20182
20183 2011-06-10  Jan Hubicka  <jh@suse.cz>
20184
20185         * ipa-cp.c (ipcp_versionable_function_p): Thunks are not versionable.
20186         (ipcp_initialize_node_lattices): Do not deal with aliases;
20187         Do not try to propagate through thunks.
20188         (ipcp_change_tops_to_bottom): Do not deal with aliases.
20189
20190 2011-06-10  Jan Hubicka  <jh@suse.cz>
20191
20192         * ipa-prop.c (ipa_write_node_info): Stream jump functions
20193         for indirect calls.
20194         (ipa_read_node_info): Likewise.
20195
20196 2011-06-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
20197
20198         PR lto/49302
20199         * tree-ssa-math-opts.c (powi_as_mults): Minor cleanup.
20200         (build_and_insert_call): Likewise.
20201         (build_and_insert_ref): New.
20202         (gimple_expand_builtin_pow): Minor cleanup.
20203         (gimple_expand_builtin_cabs): New.
20204         (execute_cse_sincos): Add case for BUILT_IN_CABS.
20205
20206 2011-06-10  Jan Hubicka  <jh@suse.cz>
20207
20208         * ipa-cp.c (ipcp_versionable_function_p): Aliases are not versionable.
20209         (ipcp_cloning_candidate_p): Aliases are not clonning candidates.
20210         (ipcp_initialize_node_lattices): We don't propagate through an aliases.
20211         (ipcp_propagate_stage): Skip aliases when propagating.
20212         (ipcp_need_redirect_p): Skip aliases.
20213         (ipcp_insert_stage): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY and
20214         collect_callers_of_node.
20215         * ipa-prop.c (ipa_init_func_list): Do not analyze datastructures
20216         for aliases.
20217         (ipa_compute_jump_functions): Look through aliases.
20218
20219 2011-06-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20220
20221         * doc/sourcebuild.texi (Effective-Target Keywords, pie): Document it.
20222
20223 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
20224
20225         * ira-costs.c: Remove #ifdefs on dead FORBIDDEN_INC_DEC_CLASSES.
20226         Adjust comments.
20227         * system.h (FORBIDDEN_INC_DEC_CLASSES): Poison.
20228
20229 2011-06-10  Jan Hubicka  <jh@suse.cz>
20230
20231         * ipa-cp.c (ipcp_process_devirtualization_opportunities):
20232         Update call of gimple_get_virt_method_for_binfo.
20233         * gimple-fold.c (gimple_get_virt_method_for_binfo): Remove
20234         refuse_thunks parameter.
20235         (gimple_fold_call): Update.
20236         * ipa-prop.c (try_make_edge_direct_virtual_call): Update.
20237
20238 2011-06-10  Jan Hubicka  <jh@suse.cz>
20239
20240         * tree-sra.c (all_callers_have_enough_arguments_p): Rename to ...
20241         (not_all_callers_have_enough_arguments_p): ... this one; turn into
20242         worker for cgraph_for_node_and_aliases.
20243         (convert_callers_for_node): Break out from ...
20244         (convert_callers): ... here.
20245         (modify_function): Use collect_callers_of_node.
20246         (ipa_early_sra): Use cgraph_for_node_and_aliases.
20247
20248 2011-06-10  Richard Guenther  <rguenther@suse.de>
20249
20250         PR tree-optimization/49361
20251         * fold-const.c (fold_binary_loc): Only fold x * x to pow (x, 2.0)
20252         when not already in gimple form.
20253
20254 2011-06-10  Richard Guenther  <rguenther@suse.de>
20255
20256         PR bootstrap/49344
20257         * tree-ssa-math-opts.c (convert_mult_to_fma): Use
20258         FOR_EACH_PHI_OR_STMT_USE.
20259
20260 2011-06-10  Jan Hubicka  <jh@suse.cz>
20261
20262         * ipa-inline-transform.c (can_remove_node_now_p): Move out of...
20263         (clone_inlined_nodes): ... here.
20264         (inline_call): Use cgraph_function_or_thunk_node; redirect edge
20265         to real destination prior inlining.
20266         * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
20267         can_early_inline_edge_p, want_early_inline_function_p,
20268         want_early_inline_function_p, want_inline_small_function_p,
20269         want_inline_self_recursive_call_p, want_inline_function_called_once_p,
20270         edge_badness, update_all_callee_keys, lookup_recursive_calls,
20271         add_new_edges_to_heap, inline_small_functions, flatten_function,
20272         inline_always_inline_functions, early_inline_small_functions): Use
20273         cgraph_function_or_thunk_node.
20274         * ipa-inline-analysis.c (evaluate_conditions_for_edge,
20275         dump_inline_edge_summary, estimate_function_body_sizes): Likewise.
20276         (do_estimate_edge_growth_1): Break out from ...
20277         (do_estimate_growth) ... here; walk aliases.
20278         (inline_generate_summary): Skip aliases.
20279
20280 2011-06-10  Richard Guenther  <rguenther@suse.de>
20281
20282         * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Scan stmts
20283         forward when combining, visit inserted stmts when a stmt was changed.
20284
20285 2011-06-10  Paolo Carlini  <paolo.carlini@oracle.com>
20286
20287         * tree.h (error_operand_p): Add.
20288         * dbxout.c (dbxout_type_fields): Use the latter.
20289         * c-decl.c (add_stmt): Likewise.
20290         * gimplify.c (omp_add_variable, omp_notice_variable,
20291         gimplify_scan_omp_clauses): Likewise.
20292
20293 2011-06-10  Georg-Johann Lay  <avr@gjlay.de>
20294
20295         * config/avr/avr.c (avr_function_arg_advance): Fix thinko about
20296         when a value is actually passed in regs.
20297
20298 2011-06-10  Eric Botcazou  <ebotcazou@adacore.com>
20299             Laurent Rougé  <laurent.rouge@menta.fr>
20300
20301         * doc/invoke.texi (SPARC options): Add -mflat.
20302         * config/sparc/sparc.opt: Likewise.
20303         * config/sparc/sparc-protos.h (sparc_expand_epilogue): Add parameter.
20304         (sparc_flat_expand_prologue): Declare.
20305         (sparc_flat_expand_epilogue): Likewise.
20306         * config/sparc/sparc.h (CPP_CPU_SPEC): Do not handle -msoft-float.
20307         (CPP_ENDIAN_SPEC): Replace with...
20308         (CPP_OTHER_SPEC): ...this.  Also handle -mflat and -msoft-float.
20309         (CPP_SPEC): Adjust to above change.
20310         (EXTRA_SPECS): Likewise.
20311         (SPARC_INCOMING_INT_ARG_FIRST): Add TARGET_FLAT handling.
20312         (INCOMING_REGNO): Likewise.
20313         (OUTGOING_REGNO): Likewise.
20314         (LOCAL_REGNO): Likewise.
20315         (SETUP_FRAME_ADDRESSES): Likewise.
20316         (FIXED_REGISTERS): Set 0 for %fp.
20317         (CALL_USED_REGISTERS): Likewise.
20318         (INITIAL_ELIMINATION_OFFSET): Pass current_function_is_leaf.
20319         (EXIT_IGNORE_STACK): Define to 1 unconditionally.
20320         (RETURN_ADDR_REGNUM): Define.
20321         (RETURN_ADDR_RTX): Use it.
20322         (INCOMING_RETURN_ADDR_REGNUM): Define.
20323         (INCOMING_RETURN_ADDR_RTX): Use it.
20324         (DWARF_FRAME_RETURN_COLUMN): Likewise.
20325         (EH_RETURN_REGNUM): Define.
20326         (EH_RETURN_STACKADJ_RTX): Use it.
20327         (EH_RETURN_HANDLER_RTX): Delete.
20328         (EPILOGUE_USES): Use them and add TARGET_FLAT handling.
20329         * config/sparc/sparc.c (apparent_fsize, actual_fsize, num_gfregs):
20330         Delete.
20331         (struct machine_function): Add frame_size, apparent_frame_size,
20332         frame_base_reg, frame_base_offset, n_global_fp_regs and
20333         save_local_in_regs_p fields.
20334         (sparc_frame_size, sparc_apparent_frame_size, sparc_frame_base_reg,
20335         sparc_frame_base_offset, sparc_n_global_fp_regs,
20336         sparc_save_local_in_regs_p): New macros.
20337         (sparc_option_override): Error out if -fcall-saved-REG is specified
20338         for Out registers.
20339         (eligible_for_restore_insn): Fix formatting.
20340         (eligible_for_return_delay): Likewise.  Add TARGET_FLAT handling.
20341         (eligible_for_sibcall_delay): Likewise.
20342         (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Add MODE parameter.
20343         (sparc_legitimate_address_p): Adjust to above change.
20344         (save_global_or_fp_reg_p): New predicate.
20345         (return_addr_reg_needed_p): Likewise.
20346         (save_local_or_in_reg_p): Likewise.
20347         (sparc_compute_frame_size): Use them.  Add TARGET_FLAT handling.
20348         (SORR_SAVE, SORR_RESTORE): Delete.
20349         (sorr_pred_t): New typedef.
20350         (sorr_act_t): New enum.
20351         (save_or_restore_regs): Rename to...
20352         (emit_save_or_restore_regs): ...this.  Change type of LOW and HIGH
20353         parameters, remove ACTION parameter, add LEAF_FUNCTION_P, SAVE_P,
20354         ACTION_TRUE and ACTION_FALSE parameters.  Implement more general
20355         mechanism.  Add CFI information for double-word saves in 32-bit mode.
20356         (emit_adjust_base_to_offset): New function extracted from...
20357         (emit_save_or_restore_regs): ...this.  Rename the rest to...
20358         (emit_save_or_restore_regs_global_fp_regs): ...this.
20359         (emit_save_or_restore_regs_local_in_regs): New function.
20360         (gen_create_flat_frame_[123]): New functions.
20361         (sparc_expand_prologue): Use SIZE local variable.  Adjust.
20362         (sparc_flat_expand_prologue): New function.
20363         (sparc_asm_function_prologue): Add TARGET_FLAT handling.
20364         (sparc_expand_epilogue): Use SIZE local variable.  Adjust.
20365         (sparc_flat_expand_epilogue): New function.
20366         (sparc_can_use_return_insn_p): Add TARGET_FLAT handling.
20367         (output_return): Likewise.
20368         (output_sibcall): Likewise.
20369         (sparc_output_mi_thunk): Likewise.
20370         (sparc_frame_pointer_required): Likewise.
20371         (sparc_conditional_register_usage): If TARGET_FLAT, disable the leaf
20372         function optimization.
20373         * config/sparc/sparc.md (flat): New attribute.
20374         (prologue): Add TARGET_FLAT handling.
20375         (save_register_window): Disable if TARGET_FLAT.
20376         (create_flat_frame_[123]): New patterns.
20377         (epilogue): Add TARGET_FLAT handling.
20378         (sibcall_epilogue): Likewise.
20379         (eh_return): New expander.
20380         (eh_return_internal): New insn and splitter.
20381         (return_internal): Add TARGET_FLAT handling.
20382         (untyped_return): Remove bogus test and use RETURN_ADDR_REGNUM.
20383         (save_stack_nonlocal): Use RETURN_ADDR_REGNUM.
20384         (nonlocal_goto): Add TARGET_FLAT handling.
20385         * config/sparc/t-elf: Add -mflat multilib.
20386         * config/sparc/t-leon: Likewise.
20387
20388 2011-06-10  Jan Hubicka  <jh@suse.cz>
20389
20390         * ipa-utils.c (searchc): Use cgraph_function_or_thunk_node.
20391         * ipa-pure-const.c (analyze_function): Aliases don't need analysis.
20392         (self_recursive_p): Use cgraph_function_node.
20393         (propagate_pure_const): Likewise.
20394         (propagate_nothrow): Likewise.
20395         * ipa-reference.c (ipa_reference_get_not_read_global): Use
20396         cgraph_function_node.
20397         (propagate_bits): Likewise.
20398         (propagate): Likewise.
20399
20400 2011-06-10  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
20401             Richard Earnshaw  <rearnsha@arm.com>
20402
20403         * config/arm/arm.c (const_ok_for_op): Check to see if mvn can be used.
20404         * config/arm/vfp.md (*arm_movdi_vfp): Delete.
20405         (*thumb2_movdi_vfp): Delete.
20406         (*arm_movdi_vfp_cortexa8): Delete.
20407         (*movdi_vfp): Consolidate from *arm_movdi_vfp and *thumb2_movdi_vfp.
20408         (*movdi_vfp_cortexa8): Likewise.
20409
20410 2011-06-10  Richard Guenther  <rguenther@suse.de>
20411
20412         * stor-layout.c (initialize_sizetypes): Give names to all
20413         sizetype kinds.
20414
20415 2011-06-10  Ira Rosen  <ira.rosen@linaro.org>
20416
20417         PR tree-optimization/49318
20418         * tree-vect-loop.c (vect_determine_vectorization_factor): Remove
20419         irrelevant pattern statements.
20420
20421 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
20422
20423         * system.h (SETJMP_VIA_SAVE_AREA): Poison.
20424
20425         PR bootstrap/49354
20426         * ira-costs.c (setup_regno_cost_classes_by_mode): Add missing cast
20427         to last assignment.
20428
20429 2011-06-09  Jan Hubicka  <jh@suse.cz>
20430
20431         * cgraphunit.c (cgraph_reset_node): Do not set redefined_extern_inline;
20432         do not recompute reachable flag.
20433         (cgraph_finalize_function, cgraph_analyze_functions): Set
20434         redefined_extern_inline here.
20435
20436 2011-06-09  Jan Hubicka  <jh@suse.cz>
20437
20438         * cgraph.h (cgraph_only_called_directly_or_aliased_p): Rename from ...
20439         (cgraph_only_called_directly_p): ... this one; bring offline.
20440         (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
20441         varpool_used_from_object_file_p): Drop names from the declaratoin.
20442         (cgraph_for_node_thunks_and_aliases, cgraph_for_node_and_aliases,
20443         collect_callers_of_node): New.
20444         (cgraph_function_node, cgraph_function_or_thunk_node): New functions.
20445         (cgraph_edge_recursive_p): Use cgraph_function_node.
20446         * cgraph.c (cgraph_add_thunk): Check that thunk is not already alias.
20447         (cgraph_node_cannot_be_local_p_1): Break out from ...
20448         (cgraph_node_can_be_local_p): ... here; walk aliases.
20449         (cgraph_for_node_thunks_and_aliases): New function.
20450         (cgraph_for_node_and_aliases): New function.
20451         (cgraph_make_node_local_1): Break out from ...
20452         (cgraph_make_node_local) ... here; use
20453         cgraph_for_node_thunks_and_aliases.
20454         (cgraph_set_nothrow_flag_1): Break out from ...
20455         (cgraph_set_nothrow_flag) ... here;
20456         use cgraph_for_node_thunks_and_aliases.
20457         (cgraph_set_const_flag_1): Break out from ...
20458         (cgraph_set_const_flag) ... here;
20459         use cgraph_for_node_thunks_and_aliases.
20460         (cgraph_set_pure_flag_1): Break out from ...
20461         (cgraph_set_pure_flag) ... here;
20462         use cgraph_for_node_thunks_and_aliases.
20463         (cgraph_propagate_frequency_1): Break out from ...
20464         (cgraph_propagate_frequency) ... here; use
20465         cgraph_for_node_thunks_and_aliases.
20466         (cgraph_used_from_object_file_p): Do not care about aliases.
20467         (cgraph_not_only_called_directly_p_1, cgraph_only_called_directly_p):
20468         New functions.
20469         (collect_callers_of_node_1, collect_callers_of_node): New functions.
20470
20471 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
20472
20473         PR rtl-optimization/49154
20474         * config/cris/cris.h (FIXED_REGISTERS): Include CRIS_CC0_REGNUM.
20475         (enum reg_class): Add SRP_REGS and MOF_SRP_REGS.
20476         (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
20477         (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Adjust to fit.
20478         * config/cris/cris.h (cris_register_move_cost): Remove
20479         !TARGET_V32 code.  Tweak comments.
20480
20481 2011-06-09  Jan Hubicka  <jh@suse.cz>
20482
20483         * cgraphbuild.c (record_eh_tables): Mark personality function as having
20484         address taken.
20485
20486 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
20487
20488         PR rtl-optimization/49154
20489         * ira-costs.c (setup_regno_cost_classes_by_mode): If there already
20490         is a matching slot in the hashtable, assign it to classes_ptr.
20491
20492         PR rtl-optimization/49154
20493         * doc/tm.texi.in (Register Classes): Document rule for the narrowest
20494         register classes.
20495         * doc/tm.texi: Regenerate.
20496
20497 2011-06-09  Kaz Kojima  <kkojima@gcc.gnu.org>
20498
20499         PR target/49307
20500         * config/sh/sh.md (UNSPEC_CHKADD): New.
20501         (chk_guard_add): New define_insn_and_split.
20502         (symGOT_load): Use chk_guard_add instead of blockage.
20503
20504 2011-06-09  Kai Tietz  <ktietz@redhat.com>
20505
20506         * libgcc2.c (L_trampoline): Include windows.h for mingw targets.
20507
20508 2011-06-09  Eric Botcazou  <ebotcazou@adacore.com>
20509
20510         * config/sparc/sparc.md (return_internal): Adjust 'length' attribute.
20511
20512 2011-06-09  Wei Guozhi  <carrot@google.com>
20513
20514         PR target/46975
20515         * config/arm/arm.md (*addsi3_carryin_compare0_<optab>): New pattern.
20516         (peephole2 for conditional move): Generate 16 bit instructions.
20517
20518 2011-06-09  Uros Bizjak  <ubizjak@gmail.com>
20519
20520         * config/i386/i386.md (*movdi_internal_rex64): Merge
20521         alternatives 6 and 8.
20522
20523 2011-06-09  David Li  <davidxl@google.com>
20524
20525         * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
20526         * passes.c (passr_eq): New function.
20527         (create_pass_tab): New function.
20528         (pass_traverse): New function.
20529         (dump_one_pass): New function.
20530         (dump_pass_list): New function.
20531         (dump_passes): New function.
20532
20533 2011-06-09  David Li  <davidxl@google.com>
20534
20535         * tree-complex.c (tree_lower_complex): Gate cleanup.
20536         * tree-stdarg.c (check_all_va_list_escapes): Ditto.
20537         (execute_optimize_stdarg): Ditto.
20538         * tree-eh.c (execute_lower_eh_dispatch): Ditto.
20539         (execute_cleanup_eh_1): Ditto.
20540         (execute_cleanup_eh): Ditto.
20541         * gcse.c (gate_rtl_pre): Ditto.
20542         (execute_rtl_pre): Ditto.
20543         * except.c (finish_eh_generation): Ditto.
20544         (convert_to_eh_region_ranges): Ditto.
20545         * cprop.c (one_cprop_pass): Ditto.
20546
20547 2011-06-09  Bernd Schmidt  <bernds@codesourcery.com>
20548
20549         PR target/48673
20550         * config/ia64/ia64.c (ia64_reorg): Clear BB_DISABLE_SCHEDULE flag
20551         in all basic blocks.
20552
20553 2011-06-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20554
20555         * config/alpha/netbsd.h (ENABLE_EXECUTE_STACK): Remove.
20556         (HAVE_ENABLE_EXECUTE_STACK): Define.
20557         * config/alpha/osf5.h (ENABLE_EXECUTE_STACK): Remove.
20558         (HAVE_ENABLE_EXECUTE_STACK): Define.
20559         * config/darwin.h (ENABLE_EXECUTE_STACK): Remove.
20560         (HAVE_ENABLE_EXECUTE_STACK): Define.
20561         * config/i386/mingw32.h (MINGW_ENABLE_EXECUTE_STACK): Remove.
20562         (ENABLE_EXECUTE_STACK): Remove.
20563         (HAVE_ENABLE_EXECUTE_STACK): Define.
20564         [IN_LIBGCC2]: Don't include <windows.h>.
20565         * config/i386/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
20566         (HAVE_ENABLE_EXECUTE_STACK): Define.
20567         * config/i386/netbsd64.h (ENABLE_EXECUTE_STACK): Remove.
20568         (HAVE_ENABLE_EXECUTE_STACK): Define.
20569         * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): Remove.
20570         * config/openbsd.h (ENABLE_EXECUTE_STACK): Remove.
20571         (HAVE_ENABLE_EXECUTE_STACK): Define.
20572         * config/sol2.h (ENABLE_EXECUTE_STACK): Remove.
20573         (HAVE_ENABLE_EXECUTE_STACK): Define.
20574         * config/sparc/freebsd.h (ENABLE_EXECUTE_STACK): Remove.
20575         (HAVE_ENABLE_EXECUTE_STACK): Define.
20576         * config/sparc/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
20577         (HAVE_ENABLE_EXECUTE_STACK): Define.
20578         * config/alpha/alpha.c (alpha_trampoline_init): Test
20579         HAVE_ENABLE_EXECUTE_STACK.
20580         * config/i386/i386.c (ix86_trampoline_init): Likewise.
20581         * config/sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
20582         (sparc64_initialize_trampoline): Likewise.
20583         * libgcc2.c [L_enable_execute_stack]: Remove.
20584         * system.h (ENABLE_EXECUTE_STACK): Poison.
20585         * doc/tm.texi.in (Trampolines, ENABLE_EXECUTE_STACK): Remove.
20586         * doc/tm.texi: Regenerate.
20587         * Makefile.in (LIBGCC2_CFLAGS): Add -fbuilding-libgcc.
20588
20589 2011-06-09  Jakub Jelinek  <jakub@redhat.com>
20590
20591         PR middle-end/49308
20592         * dce.c (reset_unmarked_insns_debug_uses): Avoid shadowing insn
20593         variable.  After resetting and rescanning insn continue with previous
20594         statement.
20595
20596 2011-06-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20597
20598         * configure.ac (gcc_cv_as_hidden): Enable on *-*-darwin*.
20599         (gcc_cv_ld_hidden): Likewise.
20600         * configure: Regenerate.
20601         * config/i386/i386.c (USE_HIDDEN_LINKONCE): Remove TARGET_MACHO.
20602         (ix86_stack_protect_fail): Mark unused.
20603         (TARGET_STACK_PROTECT_FAIL) [TARGET_MACHO]: Don't redefine.
20604         * config/rs6000/rs6000.c (rs6000_assemble_visibility)
20605         [TARGET_MACHO]: Don't define.
20606         (TARGET_ASM_ASSEMBLE_VISIBILITY): Likewise.
20607         (TARGET_STACK_PROTECT_FAIL): Likewise.
20608         (rs6000_stack_protect_fail): Mark unused.
20609         * dwarf2asm.c (dw2_output_indirect_constant_1): Mark decl hidden if
20610         USE_LINKONCE_INDIRECT.  Don't emit .hidden expicitly.
20611
20612 2011-06-08  Andi Kleen  <ak@linux.intel.com>
20613
20614         * varasm.c (get_section): Print location of other conflict
20615         for section conflicts.
20616
20617 2011-06-08  Andi Kleen  <ak@linux.intel.com>
20618
20619         * config/i386/driver-i386.c (host_detect_local_cpu):
20620         Add model 0x2d Intel CPU.
20621
20622 2011-06-08  Andi Kleen  <ak@linux.intel.com>
20623
20624         * reginfo.c (global_regs_decl): Add.
20625         (globalize_reg): Add decl parameter. Compute location.  Pass location
20626         to warnings and add inform. Store decl in global_regs_decl.
20627         * rtl.h (globalize_reg): Update prototype.
20628         * varasm.c (make_decl_rtl): Pass decl to globalize_reg().
20629
20630 2011-06-09  Mingjie Xing  <mingjie.xing@gmail.com>
20631
20632         * treestruct.def (TS_TYPE_DECL): Fix the printable name typo.
20633
20634 2011-06-08  Kaz Kojima  <kkojima@gcc.gnu.org>
20635
20636         PR target/49305
20637         * config/sh/predicates.md (general_movsrc_operand): Check
20638         mode for memory with indexed address for QI and HImode.
20639         (general_movdst_operand): Likewise.
20640
20641 2011-06-09  Nicola Pero  <nicola.pero@meta-innovation.com>
20642
20643         * doc/objc.texi (Traditional GNU Objective-C runtime API): Updated.
20644
20645 2011-06-08  Alexandre Oliva  <aoliva@redhat.com>
20646
20647         * tree-flow-inline.h (op_iter_init): Reject GIMPLE_PHI stmts.
20648         (num_ssa_operands): Likewise.
20649         (op_iter_init_phiuse): Forward-declare.
20650         (delink_stmt_imm_use): Iterate with FOR_EACH_PHI_OR_STMT_USE.
20651
20652 2011-06-08  Nick Clifton  <nickc@redhat.com>
20653
20654         * doc/invoke.texi (ARM Options): Update description of
20655         -mthumb-interwork.
20656
20657 2011-06-08  H.J. Lu  <hongjiu.lu@intel.com>
20658
20659         * config/i386/driver-i386.c (host_detect_local_cpu): Support
20660         unknown Intel family 0x6 CPUs.
20661
20662 2011-06-08  Martin Jambor  <mjambor@suse.cz>
20663
20664         * tree-sra.c (mark_rw_status): Removed.
20665         (analyze_access_subtree): New parameter parent instead of
20666         mark_read and mark_write, propagate from that.
20667
20668 2011-06-08  Julian Brown  <julian@codesourcery.com>
20669
20670         * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
20671         for double-precision helper functions in hard-float mode if only
20672         single-precision arithmetic is supported in hardware.
20673
20674 2011-06-08  Alexander Monakov  <amonakov@ispras.ru>
20675
20676         PR rtl-optimization/49303
20677         * sel-sched.c (move_op): Use correct type for 'res'.  Verify that
20678         code_motion_path_driver returned 0 or 1.
20679         (sel_region_finish): Clear h_d_i_d.
20680
20681 2011-06-08  Kaz Kojima  <kkojima@gcc.gnu.org>
20682
20683         * config/sh/sh.c (prepare_move_operands): Set pic register
20684         appropriately for global and local dynamic tls models even
20685         if flag_pic is unset.
20686
20687 2011-06-07  Jason Merrill  <jason@redhat.com>
20688
20689         * pretty-print.h (ATTRIBUTE_GCC_PPDIAG): Use GCC_DIAG_STYLE if set.
20690
20691 2011-06-07  Xinliang David Li  <davidxl@google.com>
20692         * passes.c (enable_disable_pass): Handle assembler name.
20693         (is_pass_explicitly_enabled_or_disabled): Ditto.
20694
20695 2011-06-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20696
20697         PR tree-optimization/48497
20698         * doc/sourcebuild.texi (Directives, dg-additional-options): Document.
20699
20700 2011-06-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
20701
20702         PR tree-optimization/46728
20703         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Change FIXME
20704         to use gimple_val_nonnegative_real_p.
20705         * gimple-fold.c (gimple_val_nonnegative_real_p): New function.
20706         * gimple.h (gimple_val_nonnegative_real_p): New declaration.
20707
20708 2011-06-07  H.J. Lu  <hongjiu.lu@intel.com>
20709
20710         * config/i386/i386.md (*movsf_internal): Optimize AVX check.
20711
20712 2011-06-07  Sergey Grechanik  <mouseentity@ispras.ru>
20713
20714         * config/arm/arm.c (coproc_secondary_reload_class): Return NO_REGS for
20715         constant vectors.
20716
20717 2011-06-07  Richard Guenther  <rguenther@suse.de>
20718
20719         * stor-layout.c (initialize_sizetypes): Initialize all
20720         sizetypes based on target definitions.
20721         (set_sizetype): Remove.
20722         * tree.c (build_common_tree_nodes): Do not call set_sizetype.
20723         * tree.h (set_sizetype): Remove.
20724
20725 2011-06-07  Nick Clifton  <nickc@redhat.com>
20726
20727         * config.gcc: Unify V850 architecture options and add support for
20728         newer V850 architectures.
20729         * config/v850/t-v850e: Delete.
20730
20731 2011-06-07  Richard Guenther  <rguenther@suse.de>
20732
20733         * tree.c (build_common_tree_nodes): Also initialize size_type_node.
20734         Call set_sizetype from here.
20735
20736 2011-06-07  Andrew Stubbs  <ams@codesourcery.com>
20737
20738         * config/arm/arm.md (*maddhidi4tb, *maddhidi4tt): New define_insns.
20739         (*maddhisi4tb, *maddhisi4tt): New define_insns.
20740
20741 2011-06-07  Bernd Schmidt  <bernds@codesourcery.com>
20742             Andrew Stubbs  <ams@codesourcery.com>
20743
20744         * simplify-rtx.c (simplify_unary_operation_1): Canonicalize widening
20745         multiplies.
20746         * doc/md.texi (Canonicalization of Instructions): Document widening
20747         multiply canonicalization.
20748
20749 2011-06-07  Jakub Jelinek  <jakub@redhat.com>
20750
20751         PR gcov-profile/49299
20752         * value-prof.c (gimple_ic): Don't assume icall has a fallthru edge.
20753
20754 2011-06-07  Ira Rosen  <ira.rosen@linaro.org>
20755
20756         * tree-vectorizer.h (vect_recog_func_ptr): Make last argument to be
20757         a pointer.
20758         * tree-vect-patterns.c (vect_recog_widen_sum_pattern,
20759         vect_recog_widen_mult_pattern, vect_recog_dot_prod_pattern,
20760         vect_recog_pow_pattern): Likewise.
20761         (vect_pattern_recog_1): Remove declaration.
20762         (widened_name_p): Remove declaration.  Add new argument to specify
20763         whether to check that both types are either signed or unsigned.
20764         (vect_recog_widen_mult_pattern): Update documentation.  Handle
20765         unsigned patterns and multiplication by constants.
20766         (vect_pattern_recog_1): Update vect_recog_func references.  Use
20767         statement information from the statement returned from pattern
20768         detection functions.
20769         (vect_pattern_recog): Update vect_recog_func reference.
20770         * tree-vect-stmts.c (vectorizable_type_promotion): For widening
20771         multiplication by a constant use the type of the other operand.
20772
20773 2011-06-06  Richard Sandiford  <rdsandiford@googlemail.com>
20774
20775         PR rtl-optimization/49145
20776         * combine.c (make_compound_operation): Handle ZERO_EXTEND specially.
20777
20778 2011-06-06  Jakub Jelinek  <jakub@redhat.com>
20779
20780         PR debug/49262
20781         * dwarf2out.c (native_encode_initializer): Decrement count in each
20782         iteration.
20783
20784         PR debug/49294
20785         * dwarf2out.c (mem_loc_descriptor) <do_shift>: Give up for
20786         non-MODE_INT modes.
20787
20788         PR c++/49264
20789         * gimple-fold.c (fold_stmt_1): Don't try to fold *& on the lhs
20790         if stmt folded into nothing.
20791         * tree-inline.c (fold_marked_statements): If a builtin at the end of
20792         a bb folded into nothing, just update cgraph edges and move to next bb.
20793         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Allow new_stmt
20794         to be NULL.  Don't compute count and frequency if new_call is NULL.
20795
20796 2011-06-04  Diego Novillo  <dnovillo@google.com>
20797
20798         * Makefile.in (lto-compress.o): Add dependency on LTO_STREAMER_H.
20799         (cgraph.o): Likewise.
20800         (cgraphunit.o): Likewise.
20801         * cgraphunit.c: Include lto-streamer.h
20802         (cgraph_finalize_compilation_unit): Call lto_streamer_hooks_init
20803         if LTO is enabled.
20804         * lto-streamer-in.c (unpack_value_fields): Call
20805         streamer_hooks.unpack_value_fields if set.
20806         (lto_materialize_tree): For unhandled nodes, first try to
20807         call lto_streamer_hooks.alloc_tree, if it exists.
20808         (lto_input_ts_decl_common_tree_pointers): Move reading of
20809         DECL_INITIAL to lto_streamer_read_tree.
20810         (lto_read_tree): Call lto_streamer_hooks.read_tree if set.
20811         (lto_streamer_read_tree): New.
20812         (lto_reader_init): Rename from lto_init_reader.
20813         Move initialization code to lto/lto.c.
20814         * lto-streamer-out.c (pack_value_fields): Call
20815         streamer_hooks.pack_value_fields if set.
20816         (lto_output_tree_ref): For tree nodes that are not normally indexable,
20817         call streamer_hooks.indexable_with_decls_p before giving up.
20818         (lto_output_ts_decl_common_tree_pointers): Move handling
20819         for FUNCTION_DECL and TRANSLATION_UNIT_DECL to lto_streamer_write_tree.
20820         (lto_output_tree_header): Call streamer_hooks.is_streamable instead of
20821         lto_is_streamable.  Call lto_streamer_hooks.output_tree_header if set.
20822         (lto_write_tree): Call lto_streamer_hooks.write_tree if set.
20823         (lto_streamer_write_tree): New.
20824         (lto_output): Call lto_streamer_init directly.
20825         (lto_writer_init): Remove.
20826         * lto-streamer.c (streamer_hooks): New.
20827         (lto_streamer_cache_create): Call streamer_hooks.preload_common_nodes
20828         instead of lto_preload_common_nodes.
20829         (lto_is_streamable): Move from lto-streamer.h
20830         (lto_streamer_hooks_init): New.
20831         (streamer_hooks): New.
20832         (streamer_hooks_init): New.
20833         * lto-streamer.h (struct output_block): Forward declare.
20834         (struct lto_input_block): Likewise.
20835         (struct data_in): Likewise.
20836         (struct bitpack_d): Likewise.
20837         (struct streamer_hooks): Declare.
20838         (streamer_hooks): Declare.
20839         (lto_streamer_hooks_init): Declare.
20840         (lto_streamer_write_tree): Declare.
20841         (lto_streamer_read_tree): Declare.
20842         (streamer_hooks_init): Declare.
20843         (lto_is_streamable): Move to lto-streamer.c
20844
20845 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20846
20847         * longlong.h (smul_ppmm): The resulting register pair contains the
20848         higher order word first.
20849
20850 2011-06-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
20851
20852         PR tree-optimization/46728
20853         * builtins.c (powi_table): Remove.
20854         (powi_lookup_cost): Remove.
20855         (powi_cost): Remove.
20856         (expand_powi_1): Remove.
20857         (expand_powi): Remove.
20858         (expand_builtin_pow_root): Remove.
20859         (expand_builtin_pow): Remove.
20860         (expand_builtin_powi): Eliminate handling of constant exponent.
20861         (expand_builtin): Use expand_builtin_mathfn_2 for BUILT_IN_POW.
20862
20863 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
20864
20865         * cprop.c (local_cprop_pass): Don't set changed for debug insns.
20866
20867 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
20868
20869         * dce.c (reset_unmarked_insns_debug_uses): New.
20870         (delete_unmarked_insns): Skip debug insns.
20871         (prescan_insns_for_dce): Likewise.
20872         (rest_of_handle_ud_dce): Reset debug uses of removed sets.
20873         * reg-stack.c (subst_stack_regs_in_debug_insn): Signal when no
20874         active reg can be found.
20875         (subst_all_stack_regs_in_debug_insn): New.  Reset debug insn then.
20876         (convert_regs_1): Use it.
20877
20878 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
20879
20880         * tree-pretty-print.c (dump_function_header): Add flags.
20881         Don't dump decl_uid with nouid.
20882         * tree-pretty-print.h (dump_function_header): Adjust.
20883         * final.c (rest_of_clean_state): Pass dump_flags on, with nouid.
20884         * passes.c (pass_init_dump_file): Pass dump_flags on.
20885         * tree-cfg.c (gimple_dump_cfg): Pass flags on.
20886
20887 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
20888
20889         PR bootstrap/49270
20890         * ipa-inline-analysis.c (read_predicate): Initialize all clauses.
20891
20892 2011-06-06  Mikael Pettersson  <mikpe@it.uu.se>
20893
20894         PR tree-optimization/49243
20895         * calls.c (setjmp_call_p): Also check if fndecl has the
20896         returns_twice attribute.
20897
20898 2011-06-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20899
20900         * config/mips/iris6.h (ENDFILE_SPEC): Use crtfastmath.o if
20901         -ffast-math etc.
20902
20903 2011-06-06  Richard Henderson  <rth@redhat.com>
20904             Georg-Johann Lay  <avr@gjlay.de>
20905
20906         PR target/42210
20907         * config/avr/predicates.md (const1_operand, const_0_to_7_operand):
20908         New predicates.
20909         * config/avr/avr.md ("insv"): New insn expander.
20910         ("*movbitqi.1-6.a", "*movbitqi.1-6.b", "*movbitqi.0", "*insv.io",
20911         "*insv.not.io", "*insv.reg"): New insns.
20912
20913 2011-06-06  Hans-Peter Nilsson  <hp@bitrange.com>
20914
20915         PR target/49285
20916         * config/mmix/mmix.md ("truncdfsf2", "extendsfdf2"): Correct predicate
20917         to nonimmediate_operand from memory_operand for the operand that is to
20918         be forced to memory by the expander.  Lose the constraints.
20919
20920 2011-06-05  Eric Botcazou  <ebotcazou@adacore.com>
20921
20922         * config/sparc/sparc.c (output_return): Fix thinko in the output of an
20923         EH return when delayed branches are disabled.
20924
20925 2011-06-05  Uros Bizjak  <ubizjak@gmail.com>
20926
20927         * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>:
20928         Remove MODE_TI handling.  Remove SSE1 handling in attribute "mode"
20929         calculation.
20930         (*movdf_internal_rex64) <case 6,7,8>: Remove MODE_TI handling.
20931         Simplify MODE_V1DF and MODE_V2SF handling.
20932         (*movsf_internal): Remove x constraint from alternative 7 of operand 1.
20933         Simplify MODE_SF handling.
20934
20935 2011-06-04  Jan Hubicka  <jh@suse.cz>
20936
20937         PR tree-optimization/48893
20938         PR tree-optimization/49091
20939         PR tree-optimization/49179
20940         * ipa-inline-analysis.c (evaluate_conditions_for_known_args):
20941         Bounds check.
20942
20943 2011-06-04  Jan Hubicka  <jh@suse.cz>
20944
20945         PR lto/48954
20946         * lto-cgraph.c (output_node_opt_summary): Handle NULL skip args
20947         bitmaps.
20948
20949 2011-06-04  Jonathan Wakely  <jwakely.gcc@gmail.com>
20950
20951         * doc/invoke.texi: Document -Wdelete-non-virtual-dtor.
20952
20953 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
20954
20955         PR target/49281
20956         * config/i386/i386.md (*lea_general_4): Require INTVAL (operands[3])
20957         to be strictly smaller than 1 << shiftcount.
20958
20959 2011-06-04  Jan Hubicka  <jh@suse.cz>
20960
20961         PR tree-optimize/48929
20962         * ipa-inline-analysis.c (remap_edge_predicates): Fix handling
20963         of empty predicate.
20964
20965 2011-06-04  Alexandre Oliva  <aoliva@redhat.com>
20966
20967         PR debug/48333
20968         * calls.c (emit_call_1): Prefer the __builtin declaration of
20969         builtin functions.
20970
20971 2011-06-03   Diego Novillo  <dnovillo@google.com>
20972
20973         * lto-streamer-in.c (unpack_value_fields): Remove unneeded asserts.
20974         (lto_input_tree_pointers): Likewise.
20975         * lto-streamer-out.c (pack_value_fields): Likewise.
20976         (lto_output_tree_pointers): Likewise.
20977         * lto-streamer.h (lto_is_streamable): Add check for OMP_CLAUSE
20978         and OPTIMIZATION_NODE.
20979
20980 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20981
20982         * config/alpha/linux.h (MD_UNWIND_SUPPORT): Remove.
20983         * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Remove.
20984         * config/alpha/vms.h (MD_UNWIND_SUPPORT): Remove.
20985         * config/bfin/linux.h (MD_UNWIND_SUPPORT): Remove.
20986         * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Remove.
20987         * config/i386/linux.h (MD_UNWIND_SUPPORT): Remove.
20988         * config/i386/linux64.h (MD_UNWIND_SUPPORT): Remove.
20989         * config/i386/sol2.h (MD_UNWIND_SUPPORT): Remove.
20990         * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Remove.
20991         * config/ia64/linux.h (MD_UNWIND_SUPPORT): Remove.
20992         * config/ia64/vms.h (MD_UNWIND_SUPPORT): Remove.
20993         * config/m68k/linux.h (MD_UNWIND_SUPPORT): Remove.
20994         * config/mips/linux.h (MD_UNWIND_SUPPORT): Remove.
20995         * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): Remove.
20996         * config/pa/pa32-linux.h (MD_UNWIND_SUPPORT): Remove.
20997         * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Remove.
20998         * config/rs6000/linux.h (MD_UNWIND_SUPPORT): Remove.
20999         * config/rs6000/linux64.h (MD_UNWIND_SUPPORT): Remove.
21000         * config/s390/linux.h (MD_UNWIND_SUPPORT): Remove.
21001         * config/s390/tpf.h (MD_UNWIND_SUPPORT): Remove.
21002         * config/sh/linux.h (MD_UNWIND_SUPPORT): Remove.
21003         * config/sparc/linux.h (MD_UNWIND_SUPPORT): Remove.
21004         * config/sparc/linux64.h (MD_UNWIND_SUPPORT): Remove.
21005         * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Remove.
21006         * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Remove.
21007         * config/alpha/linux-unwind.h: Move to ../libgcc/config/alpha.
21008         * config/alpha/osf5-unwind.h: Move to ../libgcc/config/alpha.
21009         * config/alpha/vms-unwind.h: Move to ../libgcc/config/alpha.
21010         * config/bfin/linux-unwind.h: Move to ../libgcc/config/bfin.
21011         * config/i386/linux-unwind.h: Move to ../libgcc/config/i386.
21012         * config/i386/sol2-unwind.h: Move to ../libgcc/config/i386.
21013         * config/i386/w32-unwind.h: Move to ../libgcc/config/i386.
21014         * config/ia64/linux-unwind.h: Move to ../libgcc/config/ia64.
21015         * config/ia64/vms-unwind.h: Move to ../libgcc/config/ia64.
21016         * config/m68k/linux-unwind.h: Move to ../libgcc/config/m68k.
21017         * config/mips/linux-unwind.h: Move to ../libgcc/config/mips.
21018         * config/pa/hpux-unwind.h: Move to ../libgcc/config/pa.
21019         * config/pa/linux-unwind.h: Move to ../libgcc/config/pa.
21020         * config/rs6000/darwin-unwind.h: Move to ../libgcc/config/rs6000.
21021         * config/rs6000/linux-unwind.h: Move to ../libgcc/config/rs6000.
21022         * config/s390/linux-unwind.h: Move to ../libgcc/config/s390.
21023         * config/s390/tpf-unwind.h: Move to ../libgcc/config/s390.
21024         * config/sh/linux-unwind.h: Move to ../libgcc/config/sh.
21025         * config/sparc/linux-unwind.h: Move to ../libgcc/config/sparc.
21026         * config/sparc/sol2-unwind.h: Move to ../libgcc/config/sparc.
21027         * config/xtensa/linux-unwind.h: Move to ../libgcc/config/xtensa.
21028         * config/darwin9.h (DARWIN_LIBSYSTEM_HAS_UNWIND): Remove.
21029         * system.h (MD_UNWIND_SUPPORT): Poison.
21030         * doc/tm.texi.in (Exception Handling, MD_UNWIND_SUPPORT): Remove.
21031         * doc/tm.texi: Regenerate.
21032         * unwind-dw2.c: Include md-unwind-support.h instead of
21033         MD_UNWIND_SUPPORT.
21034         * config/ia64/unwind-ia64.c: Likewise.
21035         * config/xtensa/unwind-dw2-xtensa.c: Likewise.
21036
21037 2011-06-03  Jack Howarth  <howarth@bromo.med.uc.edu>
21038
21039         * varpool.c (varpool_extra_name_alias): Return NULL, not false.
21040
21041 2011-06-03  Richard Henderson  <rth@redhat.com>
21042             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21043
21044         * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
21045         (sigill_hdlr): Correct insn, insn size.
21046         (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
21047
21048 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21049
21050         * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
21051         t-slibgcc-dummy.
21052         * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
21053         * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
21054         * config/mips/t-iris: Remove.
21055         * config/mips/t-irix6: New file.
21056         * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
21057
21058 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21059
21060         * Makefile.in (LIB2ADDEHDEP): Remove.
21061         * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
21062         * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
21063         * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
21064         * config/t-darwin (LIB2ADDEHDEP): Remove.
21065         * config/t-freebsd (LIB2ADDEHDEP): Remove.
21066         * config/t-linux (LIB2ADDEHDEP): Remove.
21067
21068 2011-06-03  Diego Novillo  <dnovillo@google.com>
21069
21070         * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
21071         (lto_register_var_decl_in_symtab): Likewise.
21072         (lto_register_function_decl_in_symtab): Likewise.
21073         (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
21074         logic to uniquify_nodes.
21075
21076 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21077
21078         * config/alpha/t-osf5: Remove.
21079         * config/alpha/t-osf-pthread: Remove.
21080         * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
21081         * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
21082
21083 2011-06-03  Julian Brown  <julian@codesourcery.com>
21084
21085         * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
21086         (strongarm1110): Use strongarm tuning.
21087         * config/arm/arm-protos.h (tune_params): Add max_insns_skipped field.
21088         * config/arm/arm.c (arm_strongarm_tune): New.
21089         (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
21090         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
21091         (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
21092         setting, using previous defaults or 1 for Cortex-A5.
21093         (arm_option_override): Set max_insns_skipped from current tuning.
21094
21095 2011-06-03  Nathan Sidwell  <nathan@codesourcery.com>
21096
21097         * doc/install.texi (Options specification): Document --with-specs.
21098
21099 2011-06-02  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
21100
21101         * config/arm/neon.md (orndi3_neon): Actually split it.
21102
21103 2011-06-02  Alexandre Oliva  <aoliva@redhat.com>
21104
21105         * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
21106         * var-tracking.c (reverse_op): Limite recurse depth to 5.
21107
21108 2011-06-02  Alexandre Oliva  <aoliva@redhat.com>
21109
21110         PR debug/47590
21111         * target.def (delay_sched2, delay_vartrack): New.
21112         * doc/tm.texi.in: Update.
21113         * doc/tm.texi: Rebuild.
21114         * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
21115         * var-tracking.c (gate_handle_var_tracking): Likewise.
21116         * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
21117         (bfin_flag_var_tracking): Drop.
21118         (output_file_start): Don't save and override flag_var_tracking.
21119         (bfin_option_override): Ditto flag_schedule_insns_after_reload.
21120         (bfin_reorg): Test original variables.
21121         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
21122         * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
21123         (ia64_flag_var_tracking): Drop.
21124         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
21125         (ia64_file_start): Don't save and override flag_var_tracking.
21126         (ia64_override_options_after_change): Ditto
21127         flag_schedule_insns_after_reload.
21128         (ia64_reorg): Test original variables.
21129         * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
21130         (picochip_flag_var_tracking): Drop.
21131         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
21132         (picochip_option_override): Don't save and override
21133         flag_schedule_insns_after_reload.
21134         (picochip_asm_file_start): Ditto flag_var_tracking.
21135         (picochip_reorg): Test original variables.
21136         * config/spu/spu.c (spu_flag_var_tracking): Drop.
21137         (TARGET_DELAY_VARTRACK): Define.
21138         (spu_var_tracking): New.
21139         (spu_machine_dependent_reorg): Call it.
21140         (asm_file_start): Don't save and override flag_var_tracking.
21141
21142 2011-06-02  Kaz Kojima  <kkojima@gcc.gnu.org>
21143
21144         PR target/49163
21145         * config/sh/predicates.md (general_movsrc_operand): Return 0
21146         for memory and memory subreg of which address is an invalid
21147         indexed address for QI and HImode.
21148         (general_movdst_operand): Likewise.
21149
21150 2011-06-02  Eric Botcazou  <ebotcazou@adacore.com>
21151
21152         * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
21153         edges only, when there is a non-local label in the function.
21154         * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
21155
21156 2011-06-02  Uros Bizjak  <ubizjak@gmail.com>
21157
21158         * config/i386/constraints.md (Y3): New register constraint.
21159         * config/i386/sse.md (*vec_interleave_highv2df): Merge with
21160         *sse3_interleave_highv2df and *sse2_interleave_highv2df.
21161         (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
21162         *sse2_interleave_lowv2df.
21163
21164 2011-06-02  Julian Brown  <julian@codesourcery.com>
21165
21166         * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
21167         * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
21168         (arm_cortex_a5_tune): New.
21169
21170 2011-06-02  Julian Brown  <julian@codesourcery.com>
21171
21172         * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
21173         * config/arm/arm.c (arm_default_branch_cost): New.
21174         (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
21175         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
21176         (arm_fa726_tune): Set branch_cost field using
21177         arm_default_branch_cost.
21178         * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
21179         current_tune structure.
21180         * dojump.c (tm_p.h): Include file.
21181
21182 2011-06-02  Julian Brown  <julian@codesourcery.com>
21183
21184         * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
21185         tuning.
21186         (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
21187         (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
21188         * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
21189         field.
21190         * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
21191         (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
21192         (arm_fa726te_tune): Add prefer_constant_pool setting.
21193         (arm_v6t2_tune, arm_cortex_tune): New.
21194         * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
21195         prefer_constant_pool setting.
21196
21197 2011-06-02  Uros Bizjak  <ubizjak@gmail.com>
21198
21199         * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
21200         switch statement.
21201         * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
21202         (*movdf_internal) <case 6,7,8>: Ditto.
21203
21204         * config/i386/constraints.md (Y4): New register constraint.
21205         * config/i386/sse.md (vec_set<mode>_0): Merge with
21206         *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
21207         (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
21208         *vec_extractv2di_1_sse.
21209         (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
21210         and *vec_concatv2di_rex64_sse.
21211
21212 2011-06-02  Stuart Henderson  <shenders@gcc.gnu.org>
21213
21214         PR target/48807
21215         * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
21216         of cgraph_local_info for null before attempting to use it.
21217
21218 2011-06-02  Eric Botcazou  <ebotcazou@adacore.com>
21219
21220         * function.h (struct stack_usage): Remove dynamic_alloc_count field.
21221         (current_function_dynamic_alloc_count): Delete.
21222         * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
21223         (expand_builtin_nonlocal_goto): Remove obsolete comment.
21224         (expand_builtin_update_setjmp_buf): Remove dead code.
21225         * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
21226         * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
21227         support.
21228         * function.c (instantiate_virtual_regs): Likewise.
21229         * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
21230         for a block with a single abnormal incoming edge.
21231         * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
21232         (SETJMP_VIA_SAVE_AREA): Delete.
21233         * config/sparc/sparc-protos.h (load_got_register): Declare.
21234         * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
21235         (load_got_register): Make global.
21236         (sparc_frame_pointer_required): Add 'static'.
21237         (sparc_can_eliminate): Likewise.  Call sparc_frame_pointer_required.
21238         (sparc_builtin_setjmp_frame_value): New function.
21239         * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
21240         (save_stack_nonlocal): New expander.
21241         (restore_stack_nonlocal): Likewise.
21242         (nonlocal_goto): Remove modes, adjust predicates and reimplement.
21243         (nonlocal_goto_internal): New insn.
21244         (goto_handler_and_restore): Delete.
21245         (builtin_setjmp_setup): Likewise.
21246         (do_builtin_setjmp_setup): Likewise.
21247         (setjmp): Likewise.
21248         (builtin_setjmp_receiver): New expander.
21249
21250 2011-06-01  David Li  <davidxl@google.com>
21251
21252         PR middle-end/49261
21253         * tree-pretty-print.c (dump_function_header): Format cleanup.
21254
21255 2011-06-01  Kaz Kojima  <kkojima@gcc.gnu.org>
21256
21257         PR target/49238
21258         * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
21259         needed when original operands are used for msw_skip comparison.
21260
21261 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
21262
21263         PR debug/49250
21264         * var-tracking.c (add_uses, add_stores): Don't call
21265         cselib_subst_to_values on ENTRY_VALUE.
21266
21267 2011-06-01  Diego Novillo  <dnovillo@google.com>
21268
21269         * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
21270         output_record_start with LTO_null instead of output_zero.
21271         (lto_output_ts_binfo_tree_pointers): Likewise.
21272         (lto_output_tree): Likewise.
21273         (output_eh_try_list): Likewise.
21274         (output_eh_region): Likewise.
21275         (output_eh_lp): Likewise.
21276         (output_eh_regions): Likewise.
21277         (output_bb): Likewise.
21278         (output_function): Likewise.
21279         (output_unreferenced_globals): Likewise.
21280         * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
21281         instead of NUM_TREE_CODES.
21282         (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
21283         (lto_output_int_in_range): Change << to >> when shifting VAL.
21284
21285 2011-06-01  Diego Novillo  <dnovillo@google.com>
21286
21287         * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
21288         Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
21289
21290 2011-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
21291
21292         PR target/45074
21293         * optabs.h (valid_multiword_target_p): Declare.
21294         * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
21295         doing multi-word operations.
21296         * optabs.c (expand_binop): Likewise.
21297         (expand_doubleword_bswap): Likewise.
21298         (expand_absneg_bit): Likewise.
21299         (expand_unop): Likewise.
21300         (expand_copysign_bit): Likewise.
21301         (multiword_target_p): New function.
21302
21303 2011-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
21304
21305         PR rtl-optimization/48830
21306         PR rtl-optimization/48808
21307         PR rtl-optimization/48792
21308         * reload.c (push_reload): Check contains_reg_of_mode.
21309         * reload1.c (strip_paradoxical_subreg): New function.
21310         (gen_reload_chain_without_interm_reg_p): Use it to handle
21311         paradoxical subregs.
21312         (emit_output_reload_insns, gen_reload): Likewise.
21313
21314 2011-06-01  David Li  <davidxl@google.com>
21315
21316         * predict.c : Change pass name
21317         * ipa.c: Ditto.
21318         * dce.c: Ditto.
21319         * tree-profile.c: Ditto.
21320         * except.c: Ditto.
21321
21322 2011-06-01  David Li  <davidxl@google.com>
21323
21324         * tree-pretty-print.c (dump_function_header): New function.
21325         * final.c (rest_of_clean_state): Use header dumper.
21326         * tree-cfg.c (gimple_dump_cfg): Use header dumper.
21327         * passes.c (pass_init_dump_file): Use header dumper.
21328
21329 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
21330
21331         * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
21332         ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
21333         popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
21334         New functions.
21335         (mem_loc_descriptor): Use them.
21336
21337         * var-tracking.c (create_entry_value): New function.
21338         (vt_add_function_parameter): Use it.
21339
21340 2011-06-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21341
21342         * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
21343         Include <signal.h>, <ucontext.h>.
21344         (sigill_caught): Define.
21345         (sigill_hdlr): New function.
21346         (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
21347         insns can be executed.
21348         * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
21349         * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
21350
21351 2011-06-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21352
21353         * config/t-slibgcc-darwin: Move to ...
21354         * config/t-slibgcc-dummy: ... this.  Clarify comments.
21355         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
21356         powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
21357         (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
21358         (i[34567]86-*-rtems*): Remove extra_parts.  Use i386/t-rtems.
21359         Remove i386/t-crtstuff from tmake_file.
21360         (i[34567]86-*-solaris2*): Remove t-svr4,
21361         t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
21362         t-slibgcc-dummy.
21363         (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
21364         (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
21365         sparc/t-crtfm from tmake_file.
21366         (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
21367         t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
21368         Remove extra_parts.
21369         * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
21370         * config/i386/t-nwld (SHLIB_LINK): Remove.
21371         * config/i386/t-rtems-i386: Rename to ...
21372         * config/i386/t-rtems: ... this.
21373         ($(T)crti.o, $(T)crtn.o): Remove.
21374         (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
21375         (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
21376         (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
21377         * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
21378         EXTRA_MULTILIB_PARTS): Remove.
21379         * config/sparc/t-sol2-64: Likewise.
21380         * config/sparc/t-sol2: Remove.
21381         * config/sparc/t-crtin: Remove.
21382         * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
21383         * config/i386/gmon-sol2.c: Remove.
21384         * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
21385         * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
21386         * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
21387         * config/i386/sol2-gc1.asm: Remove.
21388         * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
21389         * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
21390         * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
21391         * config/t-slibgcc-sld: Remove.
21392
21393 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
21394
21395         * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
21396         base_type_for_mode with op_mode instead of mode.
21397
21398 2011-06-01  Paul Brook  <paul@cpodesourcery.com>
21399
21400         * config/arm/arm-cores.def: Add cortex-r5.  Add DIV flags to
21401         Cortex-A15.
21402         * config/arm/arm-tune.md: Regenerate.
21403         * config/arm/arm-tables.opt: Regenerate.
21404         * config/arm/arm.c (FL_DIV): Rename...
21405         (FL_THUMB_DIV): ... to this.
21406         (FL_ARM_DIV): Define.
21407         (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
21408         (arm_arch_hwdiv): Remove.
21409         (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
21410         (arm_issue_rate): Add cortexr5.
21411         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
21412         __ARM_ARCH_EXT_IDIV__.
21413         (TARGET_IDIV): Define.
21414         (arm_arch_hwdiv): Remove.
21415         (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
21416         * config/arm/arm.md (tune_cortexr4): Add cortexr5.
21417         (divsi3, udivsi3): New patterns.
21418         * config/arm/thumb2.md (divsi3, udivsi3): Remove.
21419         * doc/invoke.texi: Document ARM -mcpu=cortex-r5
21420
21421 2011-06-01  Martin Jambor  <mjambor@suse.cz>
21422
21423         * ipa-utils.c (ipa_dfs_info): New field scc_no.
21424         * ipa-utils.c (searchc): Set scc_no.
21425
21426 2011-06-01  Martin Jambor  <mjambor@suse.cz>
21427
21428         * ipa-utils.c (searchc_env): New field allow_overwritable.
21429         (searchc): do not ignore edges to overwritable nodes if indicated
21430         by env->allow_overwritable.
21431         (ipa_reduced_postorder): Set env.allow_overwritable.
21432
21433 2011-06-01  Richard Guenther  <rguenther@suse.de>
21434
21435         * tree.c (free_lang_data): Do not reset boolean_type_node nor
21436         char_type_node.
21437         * lto-streamer.c (lto_record_common_node): Take node pointer,
21438         do not register types.
21439         (lto_preload_common_nodes): Explicitly skip preloading nodes
21440         that differ between frontends.
21441
21442 2011-05-31  Pat Haugen  <pthaugen@us.ibm.com>
21443
21444         * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
21445         NON_FLOAT_REGS.
21446
21447 2011-05-31  Pat Haugen  <pthaugen@us.ibm.com>
21448
21449         * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
21450         parameter value for dump. Dump cost on outermost call only.
21451         (rs6000_memory_move_cost): Dump cost on outermost call only.
21452
21453 2011-05-31  Jakub Jelinek  <jakub@redhat.com>
21454
21455         * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
21456         DW_OP_GNU_convert ops.
21457
21458         * cselib.c (promote_debug_loc): Allow l->next non-NULL for
21459         cselib_preserve_constants.
21460         (cselib_lookup_1): If cselib_preserve_constants,
21461         a new VALUE is being created for REG and there is a VALUE for the
21462         same register in wider mode, add another loc with lowpart SUBREG of
21463         the wider VALUE.
21464         (cselib_subst_to_values): Handle ENTRY_VALUE.
21465         * var-tracking.c  (replace_expr_with_values): Return NULL for
21466         ENTRY_VALUE too.
21467         * dwarf2out.c (convert_descriptor_to_signed): New function.
21468         (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
21469         instead of two shifts.
21470         (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
21471         the right mode if needed.
21472         (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
21473         (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
21474         convert_descriptor_to_signed.
21475         (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
21476         BSWAP, ROTATE, ROTATERT>: Handle these rtls.
21477
21478         PR target/48688
21479         * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
21480
21481 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
21482
21483         * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
21484         of X87MODEI12 and SWI48x instead of SSEMODEI24.
21485         (SWI248x): New mode iterator, rename from X87MODEI.
21486         (X87MODEI): Remove mode iterator.
21487         (X87MODEI12): Ditto.
21488         (SSEMODEI24): Ditto.
21489
21490 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
21491
21492         * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
21493         * doc/invoke.texi: Document max-vartrack-expr-depth.
21494         * var-tracking.c (EXPR_DEPTH): New.
21495         (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
21496
21497 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
21498
21499         * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
21500         * config/i386/sse.md: Add n to negated FMA pattern names.
21501
21502 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
21503
21504         * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
21505
21506 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
21507
21508         * gengtype-state.c (read_state_params_structs): Initialize previous.
21509
21510 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
21511
21512         * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
21513         (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
21514
21515 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
21516
21517         * config/i386/i386.md (*movtf_internal): Avoid allocating general
21518         registers.  Penalize F*r->o alternative to prevent partial memory
21519         stalls.  Slightly penalize *roF->*r alternative.  Generate SSE
21520         CONST_DOUBLE immediates when optimizing function for size.  Do not move
21521         CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
21522         (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
21523         (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
21524         (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
21525         alternatives.
21526         (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
21527
21528         (fp_register_operand splitters): Use fp_register_operand
21529         constraint.  Do not use FP_REG_P in insn condition.
21530         (any_fp_register_operand splitters): Use any_fp_register_operand
21531         constraint.  Do not use ANY_FP_REG_P in insn condition.
21532
21533 2011-05-31  Jan Hubicka  <jh@suse.cz>
21534
21535         * cgraph.h (cgraph_inline_failed_t): Give enum a name
21536         * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
21537         (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
21538         (lto_output_edge): Use output_enum and var_len_unsigned.
21539         (lto_output_varpool_node): Likewise.
21540         (input_overwrite_node): Do not take resolution parameter;
21541         extract it from a bitpack.
21542         (input_node): Do not read resolution; use input_enum and
21543         var_len_unsigned.
21544         (input_varpool_node): Likewise.
21545         (input_edge): Likewise.
21546         (input_cgraph_1): Likewise.
21547
21548 2011-05-31  Richard Guenther  <rguenther@suse.de>
21549
21550         * gimple.c (gimple_register_canonical_type): Do not register
21551         any types via gimple_register_type.
21552
21553 2011-05-31  Jan Hubicka  <jh@suse.cz>
21554
21555         * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
21556         of thunks.
21557
21558 2011-05-31  Jakub Jelinek  <jakub@redhat.com>
21559
21560         PR rtl-optimization/49235
21561         * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
21562         (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
21563
21564 2011-05-31  Ira Rosen  <ira.rosen@linaro.org>
21565
21566         PR tree-optimization/49093
21567         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
21568         data references.
21569
21570 2011-05-31  Dodji Seketeli  <dodji@redhat.com>
21571
21572         PR debug/49047
21573         * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
21574         for concrete functions containing the code of cloned functions.
21575
21576 2011-05-31  Richard Guenther  <rguenther@suse.de>
21577
21578         * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
21579         to ...
21580         (forward_propagate_into_comparison_1): ... this.
21581         (forward_propagate_comparison): Rename to ...
21582         (forward_propagate_into_comparison): ... this.  Split out
21583         real forward propagation code to ...
21584         (forward_propagate_comparison): ... this.
21585         (forward_propagate_into_gimple_cond): Remove looping.
21586         (forward_propagate_into_cond): Likewise.
21587         (simplify_not_neg_expr): Return whether we have done something.
21588         (simplify_gimple_switch): Likewise.
21589         (tree_ssa_forward_propagate_single_use_vars): Rename to ...
21590         (ssa_forward_propagate_and_combine): ... this.  Re-structure
21591         to do a forward forward-propagation walk on BBs and a backward
21592         stmt combining walk on BBs.  Consistently re-scan changed statements.
21593         (pass_forwprop): Adjust.
21594
21595 2011-05-30  Ian Lance Taylor  <iant@google.com>
21596
21597         * godump.c (go_format_type): Correct length of name added to
21598         obstack for anonymous field.
21599
21600 2011-05-30  Kaz Kojima  <kkojima@gcc.gnu.org>
21601
21602         PR target/49186
21603         * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
21604         part of the second operand is 0.
21605
21606 2011-05-30  Uros Bizjak  <ubizjak@gmail.com>
21607
21608         * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
21609         to prevent partial memory stalls.  Do not move CONST_DOUBLEs directly
21610         to memory for !TARGET_MEMORY_MISMATCH_STALL.
21611         (*movdf_internal_rex64): Do not penalize F->r alternative.
21612         (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
21613         memory stalls.  Generate SSE and x87 CONST_DOUBLE immediates only
21614         when optimizing function for size.  Do not move CONST_DOUBLEs
21615         directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
21616         (FP move splitters): Merge {TF,XF,DF}mode splitters.  Do not handle
21617         SUBREGs.  Do not check for MEM_P operands in the insn condition,
21618         check for ANY_FP_REGNO_P instead.
21619         * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
21620         TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
21621         function for speed.
21622         * config/i386/i386.c (ix86_option_override_internal): Do not
21623         set TARGET_INTEGER_DFMODE_MOVES here.
21624
21625 2011-05-30  H.J. Lu  <hongjiu.lu@intel.com>
21626
21627         PR target/49168
21628         * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
21629
21630 2011-05-30  Jakub Jelinek  <jakub@redhat.com>
21631
21632         * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
21633         DW_TAG_rvalue_reference_type even for
21634         -gdwarf-4 -fno-debug-types-section.
21635
21636 2011-05-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
21637
21638         PR tree-optimization/46728
21639         * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
21640         (build_and_insert_binop): New.
21641         (gimple_expand_builtin_pow): Reorder args for
21642         build_and_insert_call; use build_and_insert_binop; add more
21643         optimizations for fractional exponents.
21644
21645 2011-05-30  Nathan Froyd  <froydnj@gcc.gnu.org>
21646
21647         PR bootstrap/49190
21648
21649         Revert:
21650         2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
21651
21652         * tree.h (struct tree_identifier): Inherit from tree_typed, not
21653         tree_common.
21654         (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
21655         * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
21656         TS_BASE instead of TS_COMMON.
21657         * varasm.c (assemble_name): Remove assert.
21658
21659 2011-05-30  Richard Sandiford  <rdsandiford@googlemail.com>
21660
21661         * config.gcc: Keep obselete list sorted.
21662
21663 2011-05-30  Jakub Jelinek  <jakub@redhat.com>
21664             Eric Botcazou  <ebotcazou@adacore.com>
21665
21666         * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
21667         crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
21668         there is a DRAP register and arg_pointer_rtx is the CFA pointer.
21669         (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
21670         (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
21671
21672 2011-05-30  Richard Guenther  <rguenther@suse.de>
21673
21674         * gimple.c (gimple_types_compatible_p_1): Compare record
21675         and union type members properly.
21676
21677 2011-05-30  Richard Guenther  <rguenther@suse.de>
21678
21679         PR tree-optimization/49210
21680         * ipa-split.c (split_function): Care for the case where the call
21681         result is not trivially convertible to the result holding variable.
21682
21683 2011-05-30  Richard Guenther  <rguenther@suse.de>
21684
21685         PR tree-optimization/49218
21686         * tree-vrp.c (adjust_range_with_scev): Properly check whether
21687         overflow occured.
21688
21689 2011-05-30  Richard Guenther  <rguenther@suse.de>
21690
21691         * tree-ssa-forwprop.c (forward_propagate_into_comparison):
21692         New function split out from ...
21693         (forward_propagate_into_gimple_cond): ... here.  Adjust.
21694         (forward_propagate_into_cond): Likewise.
21695         (forward_propagate_comparison): Also propagate into
21696         comparisons on assignment RHS.  Change return value to
21697         behave similar to forward_propagate_into_cond.
21698         (tree_ssa_forward_propagate_single_use_vars): Handle
21699         strict-overflow warnings properly for forward_propagate_comparison.
21700
21701 2011-05-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21702
21703         * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
21704         from plugin linker.
21705         * configure: Regenerate.
21706
21707 2011-05-30  Ira Rosen  <ira.rosen@linaro.org>
21708
21709         PR tree-optimization/49199
21710         * tree-vect-loop.c (vect_is_slp_reduction): Check that the
21711         non-reduction operands are either defined in the loop or by induction.
21712
21713 2011-05-29  Xinliang David Li  <davidxl@google.com>
21714
21715         * opts-global.c (handle_common_deferred_options): Handle new options.
21716         * passes.c (register_one_dump_file): Call register_pass_name.
21717         (execute_one_pass): Check explicit enable/disable flag.
21718         (passr_hash): New function.
21719         (passr_eq): Ditto.
21720         (register_pass_name): Ditto.
21721         (get_pass_by_name): Ditto.
21722         (pass_hash): Ditto.
21723         (pass_eq): Ditto.
21724         (enable_pass): Ditto.
21725         (disable_pass): Ditto.
21726         (is_pass_explicitly_enabled_or_disabled): Ditto.
21727
21728 2011-05-29  Uros Bizjak  <ubizjak@gmail.com>
21729
21730         * config/i386/i386.md (*movoi_internal_avx): Use
21731         standard_sse_constant_opcode for alternative 0.
21732         (*movti_internal_sse): Ditto.
21733         (*movti_internal_rex64): Use standard_sse_constant_opcode for
21734         alternative 2.
21735         (*movdi_internal_rex64): Use standard_sse_constant_opcode for
21736         sselog1 type moves.
21737         (*movsi_internal): Ditto.
21738         (*movdi_internal): Ditto.  Add ssecvt type moves.
21739
21740 2011-05-29  Eric Botcazou  <ebotcazou@adacore.com>
21741
21742         PR target/48830
21743         * rtlanal.c (simplify_subreg_regno): Adjust comment.
21744
21745 2011-05-29  Jakub Jelinek  <jakub@redhat.com>
21746
21747         PR rtl-optimization/49095
21748         * config/i386/predicates.md (plusminuslogic_operator): New predicate.
21749         * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
21750
21751 2011-05-29  Richard Sandiford  <rdsandiford@googlemail.com>
21752
21753         PR target/43995
21754         * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
21755         recurse_p argument.  Only follow register copies if it is set,
21756         and prevent mips_find_pic_call_symbol from recursing.
21757         (mips_find_pic_call_symbol): Add a recurse_p argument.
21758         Pass it to mips_pic_call_symbol_from_set.
21759         (mips_annotate_pic_calls): Update accordingly.
21760
21761 2011-05-29  Richard Sandiford  <rdsandiford@googlemail.com>
21762
21763         * emit-rtl.c (try_split): Use a loop to search for
21764         NOTE_INSN_CALL_ARG_LOCATIONs.
21765
21766 2011-05-29  Richard Guenther  <rguenther@suse.de>
21767
21768         PR tree-optimization/49217
21769         * ipa-pure-const.c (propagate_pure_const): Fix typos.
21770
21771 2011-05-28  Jan Hubicka  <jh@suse.cz>
21772
21773         * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
21774         length.
21775         (string_slot_free): Remove
21776         (create_output_block): Initialize obstack.
21777         (destroy_output_block): Free obstack.
21778         (lto_string_index): Add PERSISTENT parameter; do not duplicate
21779         the string unless it needs to be added into the hash.
21780         (lto_output_string_with_length): Add persistent attribute;
21781         handle NULL strings.
21782         (lto_output_string): Add PERSISTENT parameter.
21783         (output_string_cst, output_identifier): Simplify.
21784         (lto_output_location_bitpack): Update.
21785         (lto_output_builtin_tree): Update.
21786         * lto-streamer.h (struct output_block): Add obstack.
21787         (lto_output_string, lto_output_string_with_length): Remove
21788         declarations; functions are static now.
21789
21790 2011-05-28  Jan Hubicka  <jh@suse.cz>
21791
21792         * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
21793         pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
21794         pack_ts_function_decl_value_fields, lto_output_builtin_tree,
21795         output_cfg, output_gimple_stmt): Use enum and variable length i/o.
21796         * lto-streamer-in.c (input_cfg, input_gimple_stmt,
21797         unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
21798         unpack_ts_decl_with_vis_value_fields,
21799         unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
21800         lto_get_builtin_tree): Use enum and variable length i/o.
21801         * basic-block.h (profile_status_d): Add PROFILE_LAST.
21802         * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
21803         New functions.
21804         (bp_pack_enum, bp_unpack_enum): New macros.
21805
21806 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
21807
21808         * genrecog.c: Remove redundant forward declarations.
21809
21810 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
21811
21812         * config.gcc: Deprecate mips*-*-openbsd*.
21813
21814 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
21815
21816         PR bootstrap/49195
21817         * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
21818         for match_op_dup.
21819
21820 2011-05-27  Andrew Pinski  <pinskia@gmail.com>
21821
21822         PR middle-end/48981
21823         * gengtype.c (vec_prefix_type): New function.
21824         (note_def_vec): Use vec_prefix_type and change the length
21825         attribute to be based on the prefix.
21826         * vec.c: Include coretypes.h before vec.h.
21827         (struct vec_prefix): Remove.
21828         (vec_gc_p_reserve): Change the offsetof to sizeof.
21829         (vec_gc_p_reserve_exact): Likewise.
21830         (vec_heap_p_reserve): Likewise.
21831         (vec_heap_p_reserve_exact): Likewise.
21832         (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
21833         (vec_stack_p_reserve): Change the offsetof to sizeof.
21834         (vec_stack_p_reserve_exact): Likewise.
21835         * vec.h (struct vec_prefix): New struct definition.
21836         (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
21837         (VEC_T_GTY(T,B)): Likewise.
21838         (DEF_VEC_FUNC_P(T)): Use prefix field.
21839         (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
21840         (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
21841
21842 2011-05-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
21843
21844         PR tree-optimization/46728
21845         * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
21846         (powi_as_mults): Add gimple_set_location.
21847         (build_and_insert_call): New.
21848         (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
21849         0.5, 0.25, 0.75, 1./3., or 1./6.
21850
21851 2011-05-27  Alexander Monakov  <amonakov@ispras.ru>
21852
21853         * doc/contrib.texi: Update copyright years.
21854         (Contributors): Add Zdenek Sojka.
21855
21856 2011-05-27  Nathan Froyd  <froydnj@codesourcery.com>
21857
21858         * c-decl.c (c_push_function_context): Copy the current statement
21859         list stack.
21860         (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
21861         (finish_struct): Call building_stmt_list_p instead of checking
21862         cur_stmt_list.
21863         * c-parser.c (c_parser_postfix_expression): Likewise.
21864         * c-typeck.c (c_end_compound_stmt): Likewise.
21865         * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
21866         * tree-iterator.c (stmt_list_cache): Change to a VEC.
21867         (alloc_stmt_list): Adjust for stmt_list_cache's new type.
21868         (free_stmt_list): Likewise.
21869         * tree.h (struct tree_statement_list): Include typed_tree instead
21870         of tree_common.
21871         * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
21872         as TS_TYPED instead of TS_COMMON.
21873
21874 2011-05-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21875             Uros Bizjak  <ubizjak@gmail.com>
21876
21877         * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
21878         (HAVE_AS_IX86_TLSGDPTL): Define.
21879         (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
21880         (HAVE_AS_IX86_TLSLDMPLT): Define.
21881         * configure: Regenerate.
21882         * config.in: Regenerate.
21883         * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
21884         * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
21885         TARGET_SUN_TLS, use @tlsgdplt or @plt.
21886         (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
21887         (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
21888         @tlsldmplt or @plt.
21889         (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
21890
21891 2011-05-27  Bernd Schmidt  <bernds@codesourcery.com>
21892
21893         * sched-int.h (struct _haifa_deps_insn_data): New members cond
21894         and reverse_cond.
21895         (INSN_COND, INSN_REVERSE_COND): New macros.
21896         * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
21897         once.
21898         (sched_get_condition_with_rev): Cache the results, and look them up
21899         if possible.
21900         (sched_analyze_insn): Destroy INSN_COND of previous insns if they
21901         are clobbered by the current insn.
21902         * target.def (exposed_pipline): New sched data hook.
21903         * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
21904         * doc/tm.texi: Regenerate.
21905
21906 2011-05-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
21907
21908         PR tree-optimization/49170
21909         * tree-ssa-math-opts.c (execute_cse_sincos):  Add checks for
21910         sincos or cexp.
21911
21912 2011-05-27  Richard Guenther  <rguenther@suse.de>
21913
21914         PR middle-end/49189
21915         * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
21916         of comparisons.
21917
21918 2011-05-27  Bernd Schmidt  <bernds@codesourcery.com>
21919
21920         * haifa-sched.c (sched_scan_info): Remove.
21921         (schedule_block): Call sched_extend_luids rather than sched_init_luids
21922         with NULL args.
21923         (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
21924         Remove functions.
21925         (sched_scan): Remove.
21926         (sched_extend_luids): Renamed from luids_extend_insn and no longer
21927         static.  All callers changed.
21928         (sched_init_insn_luid): Renamed from luids_init_insn and no longer
21929         static.  All callers changed.
21930         (sched_init_luids): Remove all arguments except the first.  All
21931         callers changed.  Don't use sched_scan.
21932         (haifa_init_h_i_d): Likewise.
21933         (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
21934         manually rather than using sched_init_luids.  Likewise with
21935         extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
21936         * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
21937         rather than sched_init_luids with NULL args.
21938         * sel-sched-ir.c (new_insns): Remove variable.
21939         (sched_scan): New static function, previously in haifa-sched.c.  Remove
21940         all arguments but the first two; all callers changed.
21941         (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
21942         rather than sched_init_luids.
21943         (sel_init_bbs): Remove second argument.  All callers changed.
21944         (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
21945         with NULL arguments.
21946         (create_insn_rtx_from_pattern): Likewise.
21947         * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
21948         * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
21949         (sched_init_insn_luid, sched_extend_luids): Declare.
21950         (sched_scan_info_def, sched_scan_info, sched_scan): Remove
21951         declarations.
21952
21953 2011-05-27  Richard Guenther  <rguenther@suse.de>
21954
21955         PR middle-end/49177
21956         * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
21957         A CMP B ? (T) true : (T) false for non-integral types T again.
21958
21959 2011-05-27  Jan Hubicka  <jh@suse.cz>
21960
21961         * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
21962         so 0 means NULL string.
21963         (lto_output_string_with_length): ... here.
21964         (lto_output_string, output_string_cst, output_identifier): Update
21965         handling of NULL strings.
21966         (lto_output_location_bitpack): New function.
21967         (lto_output_location): Use it.
21968         (lto_output_tree_ref): Use output_record_start.
21969         (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
21970         len values.
21971         * lto-streamer-in.c (string_for_index): Break out from ...; offset
21972         values by 1.
21973         (input_string_internal): ... here;
21974         (input_string_cst, input_identifier, lto_input_string): Update handling
21975         of NULL strings.
21976         (lto_input_location_bitpack): New function
21977         (lto_input_location): Use it.
21978         (unpack_ts_type_common_value_fields): Pack align & alias in var len
21979         values.
21980         * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
21981         bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
21982         (bp_pack_value): Sanity check the value range.
21983         * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
21984         New functions.
21985         * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
21986         New functions.
21987
21988 2011-05-27  Hariharan Sandanagobalane  <hariharan@picochip.com>
21989
21990         * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
21991         call_arg_location instructions down the floor.
21992
21993 2011-05-26  Vladimir Makarov  <vmakarov@redhat.com>
21994
21995         PR rtl-optimization/49154
21996         * ira.c (setup_pressure_classes): Process class without sublcasses
21997         as a candidate for pressure classes.
21998
21999 2011-05-26  Richard Sandiford  <rdsandiford@googlemail.com>
22000
22001         PR rtl-optimization/48575
22002         * genrecog.c (position_type): New enum.
22003         (position): New structure.
22004         (decision): Use position structure instead of a string.
22005         (root_pos, peep2_insn_pos_list): New variables.
22006         (next_position, compare_positions): New functions.
22007         (new_decision): Use position structures instead of strings.
22008         (maybe_both_true): Likewise.
22009         (change_state): Likewise.
22010         (write_tree): Likewise.
22011         (make_insn_sequence): Likewise.
22012
22013 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
22014
22015         * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
22016         TS_BASE instead of TS_COMMON.
22017         (find_decls_types_r): Check for TS_TYPED structure before looking at
22018         TREE_TYPE.
22019         * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
22020         Add chain field.
22021         (BLOCK_CHAIN): Use new chain field.
22022
22023 2011-05-26  Pat Haugen  <pthaugen@us.ibm.com>
22024
22025         * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
22026         moves expensive on Power7 also.
22027
22028 2011-05-26  Richard Guenther  <rguenther@suse.de>
22029
22030         * fold-const.c (fold_unary_loc): Remove bogus code.
22031
22032 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
22033
22034         * tree.h (struct tree_identifier): Inherit from tree_typed, not
22035         tree_common.
22036         (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
22037         * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
22038         TS_BASE instead of TS_COMMON.
22039         * varasm.c (assemble_name): Remove assert.
22040
22041 2011-05-26  Bernd Schmidt  <bernds@codesourcery.com>
22042
22043         * Makefile.in (srcdirify): Change order so that libgcc_objdir is
22044         substituted first.
22045         * libgcc-std.ver: Delete file.
22046
22047 2011-05-26  Richard Guenther  <rguenther@suse.de>
22048
22049         PR tree-optimization/48702
22050         * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
22051         only when we know the base address is within bounds.
22052         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
22053         assume the base address of TARGET_MEM_REFs is in bounds.
22054
22055 2011-05-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22056
22057         PR target/49099
22058         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
22059         declaration in TARGET_SOLARIS.
22060
22061 2011-05-26  Hariharan Sandanagobalane  <hariharan@picochip.com>
22062
22063         * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
22064         The instruction is then expanded explicitly.
22065         (supported_compare): Callable instruction.
22066         (compare): Likewise.
22067
22068 2011-05-26  Jakub Jelinek  <jakub@redhat.com>
22069
22070         PR c++/49165
22071         * gimplify.c (shortcut_cond_r): Don't special case
22072         COND_EXPRs if they have void type on one of their arms.
22073
22074 2011-05-26  Bernd Schmidt  <bernds@codesourcery.com>
22075
22076         * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
22077         to reduce duplication, and to achieve a slightly more logical order
22078         of operations.
22079
22080 2011-05-26  Jakub Jelinek  <jakub@redhat.com>
22081
22082         PR tree-optimization/49161
22083         * tree-vrp.c (struct case_info): New type.
22084         (compare_case_labels): Sort case_info structs instead of
22085         trees, and not primarily by CASE_LABEL uids but by
22086         label_for_block indexes.
22087         (find_switch_asserts): Put case labels into struct case_info
22088         array instead of TREE_VEC, adjust sorting, compare label_for_block
22089         values instead of CASE_LABELs.
22090
22091 2011-05-26  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
22092
22093         * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
22094         ("orndi3_neon"): Likewise.
22095         ("bic<mode>3_neon"): Likewise.
22096
22097 2011-05-26  Ira Rosen  <ira.rosen@linaro.org>
22098
22099         PR tree-optimization/49038
22100         * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
22101         Ensure at least one epilogue iteration if required by data
22102         accesses with gaps.
22103         * tree-vectorizer.h (struct _loop_vec_info): Add new field
22104         to mark loops that require peeling for gaps.
22105         * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
22106         (vect_get_known_peeling_cost): Take peeling for gaps into
22107         account.
22108         (vect_transform_loop): Generate epilogue if required by data
22109         access with gaps.
22110         * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
22111         loop as requiring an epilogue if there are gaps in the end of
22112         the strided group.
22113
22114 2011-05-25  Ian Lance Taylor  <iant@google.com>
22115
22116         * godump.c (go_format_type): Output the first field with a usable
22117         Go type, if any.
22118
22119 2011-05-25  Ian Lance Taylor  <iant@google.com>
22120
22121         * godump.c (go_format_type): Check for invalid type names, pointer
22122         target types, and struct field types.
22123
22124 2011-05-25  Jason Merrill  <jason@redhat.com>
22125
22126         * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
22127
22128 2011-05-25  Uros Bizjak  <ubizjak@gmail.com>
22129
22130         * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
22131
22132 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
22133
22134         * config/i386/i386.md (*movqi_extv_1)): Put back
22135         "register_operand" check in "type" calculation.
22136         (*movqi_extzv_2): Likewise.
22137
22138 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
22139
22140         * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
22141
22142 2011-05-25  Bernd Schmidt  <bernds@codesourcery.com>
22143
22144         PR bootstrap/49160
22145         * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
22146         __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
22147         __divxc3, __divtc3): Wrap definitions in #ifndef.
22148
22149 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
22150
22151         PR target/49142
22152         * config/i386/i386.md (*movqi_extv_1_rex64): Remove
22153         "register_operand" check and replace q_regs_operand with
22154         QIreg_operand in "type" calculation.
22155         (*movqi_extv_1): Likewise.
22156         (*movqi_extzv_2_rex64): Likewise.
22157         (*movqi_extzv_2): Likewise.
22158
22159         * config/i386/predicates.md (QIreg_operand): New.
22160
22161 2011-05-25  Richard Guenther  <rguenther@suse.de>
22162
22163         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
22164         type-based offset disambiguation, streamline MEM_REF and
22165         TARGET_MEM_REF handling.
22166
22167 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
22168
22169         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
22170         (bdesc_special_args): Add pause intrinsic.
22171
22172         * config/i386/i386.md (UNSPEC_PAUSE): New.
22173         (pause): Likewise.
22174         (*pause): Likewise.
22175         * config/i386/ia32intrin.h (__pause): Likewise.
22176
22177         * doc/extend.texi (X86 Built-in Functions): Add documentation for
22178         pause intrinsic.
22179
22180 2011-05-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
22181
22182         PR tree-optimization/46728
22183         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
22184         (execute_cse_sincos): Add switch case for BUILT_IN_POW.
22185
22186 2011-05-25  Nathan Froyd  <froydnj@codesourcery.com>
22187
22188         * tree.h (struct tree_exp): Inherit from struct tree_typed.
22189         * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
22190         instead of TS_COMMON.
22191
22192 2011-05-25  Bernd Schmidt  <bernds@codesourcery.com>
22193
22194         * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
22195         LIBGCC2_GNU_PREFIX is defined.
22196         (__N): New macro.
22197         (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
22198         __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
22199         __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
22200         __clz_tab): Define using __N.
22201         (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
22202         COMPAT_SIMODE_TRAPPING_ARITHMETIC.
22203         * target.def (libfunc_gnu_prefix): New hook.
22204         * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
22205         (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
22206         * doc/tm.texi: Regenerate.
22207         * system.h (LIBGCC2_GNU_PREFIX): Poison.
22208         * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
22209         account.
22210         (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
22211         (init_optabs): Likewise for the bswap libfuncs.
22212         * tree.c (build_common_builtin_nodes): Likewise for complex multiply
22213         and divide.
22214         * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
22215         * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
22216         * libgcc-std.ver: Remove.
22217         * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
22218         * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
22219         libgcc-std.ver.
22220         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
22221         * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
22222         * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
22223         * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
22224         * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
22225         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
22226         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
22227         * config/fixed-bit.h (FIXED_OP): Define differently depending on
22228         LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
22229         (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
22230
22231 2011-05-25  Jan Hubicka  <jh@suse.cz>
22232
22233         * lto-streamer-out.c (output_record_start): Use lto_output_enum
22234         (lto_output_tree): Use output_record_start.
22235         * lto-streamer-in.c (input_record_start): Use lto_input_enum
22236         (lto_get_pickled_tree): Use input_record_start.
22237         * lto-section-in.c (lto_section_overrun): Turn into fatal error.
22238         (lto_value_range_error): New function.
22239         * lto-streamer.h (lto_value_range_error): Declare.
22240         (lto_output_int_in_range, lto_input_int_in_range): New functions.
22241         (lto_output_enum, lto_input_enum): New macros.
22242
22243 2011-05-25  Eric Botcazou  <ebotcazou@adacore.com>
22244
22245         * common.opt (flag_stack_usage_info): New variable.
22246         (-Wstack-usage): New option.
22247         * doc/invoke.texi (Warning options): Document -Wstack-usage.
22248         * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
22249         <OPT_fstack_usage>: Likewise.
22250         * toplev.c (output_stack_usage): Handle -Wstack-usage.
22251         * calls.c (expand_call): Test flag_stack_usage_info variable instead
22252         of flag_stack_usage.
22253         (emit_library_call_value_1): Likewise.
22254         * explow.c (allocate_dynamic_stack_space): Likewise.
22255         * function.c (instantiate_virtual_regs ): Likewise.
22256         (prepare_function_start): Likewise.
22257         (rest_of_handle_thread_prologue_and_epilogue): Likewise.
22258         * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
22259         * config/arm/arm.c (arm_expand_prologue): Likewise.
22260         (thumb1_expand_prologue): Likewise.
22261         * config/avr/avr.c (expand_prologue): Likewise.
22262         * config/i386/i386.c (ix86_expand_prologue): Likewise.
22263         * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
22264         * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
22265         * config/mips/mips.c (mips_expand_prologue): Likewise.
22266         * config/pa/pa.c (hppa_expand_prologue): Likewise.
22267         * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
22268         * config/s390/s390.c (s390_emit_prologue): Likewise.
22269         * config/sh/sh.c (sh_expand_prologue): Likewise.
22270         * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
22271         * config/spu/spu.c (spu_expand_prologue): Likewise.
22272
22273 2011-05-25  Richard Guenther  <rguenther@suse.de>
22274
22275         * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
22276         (gimple_canonical_types_compatible_p): Likewise.
22277
22278 2011-05-25  Jan Hubicka  <jh@suse.cz>
22279
22280         PR middle-end/49062
22281         * ipa.c (function_and_variable_visibility): Only add to same
22282         comdat group list if DECL_ONE_ONLY.
22283
22284 2011-05-25  Andrey Belevantsev  <abel@ispras.ru>
22285
22286         PR rtl-optimization/49014
22287         * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
22288
22289 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
22290
22291         PR target/49128
22292         * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
22293
22294 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
22295
22296         PR rtl-optimization/48757
22297         * ira-build.c (loop_with_eh_edge_p): Rename to
22298         loop_with_complex_edge_p, check edges on complexity, make function
22299         conditional.
22300         (mark_loops_for_removal): Make call of loop_with_complex_edge_p
22301         conditional.
22302
22303 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
22304
22305         * config/sparc/sparc.c (sparc_option_override): If not set by the user,
22306         force flag_ira_share_save_slots to 0.
22307
22308 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
22309
22310         * var-tracking.c (compute_cfa_pointer): Adjust head comment.
22311         (vt_initialize): Set PROLOGUE_BB unconditionally.
22312         Add block comment about CFA_BASE_RTX machinery.
22313         Reset FP_CFA_OFFSET to -1 on all invalid paths.
22314         Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
22315
22316 2011-05-24  Nicola Pero  <nicola.pero@meta-innovation.com>
22317
22318         PR objc/48187
22319         * c-parser.c (c_parser_objc_class_instance_variables): More robust
22320         parsing of syntax error in ObjC instance variable lists.  In
22321         particular, avoid an infinite loop if there is a stray ']'.
22322         Updated error message.
22323
22324 2011-05-24  Ian Lance Taylor  <iant@google.com>
22325
22326         * godump.c (go_define): Don't accept a string immediately after
22327         another operand.
22328
22329 2011-05-24  Ian Lance Taylor  <iant@google.com>
22330
22331         * godump.c (struct godump_container): Add invalid_hash field.
22332         (go_format_type): Return false if type is found in invalid_hash.
22333         (go_output_typedef): Add invalid type to invalid_hash.
22334         (go_finish): Create and delete invalid_hash.
22335
22336 2011-05-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
22337
22338         PR tree-optimization/46728
22339         * tree-ssa-math-opts.c (powi_table): New.
22340         (powi_lookup_cost): New.
22341         (powi_cost): New.
22342         (powi_as_mults_1): New.
22343         (powi_as_mults): New.
22344         (gimple_expand_builtin_powi): New.
22345         (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
22346         (gate_cse_sincos): Remove sincos/cexp restriction.
22347
22348 2011-05-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22349
22350         PR target/3746
22351         * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
22352         mips-tdump native.
22353         * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
22354         * mips-tdump.c: Likewise.
22355
22356 2011-05-24  H.J. Lu  <hongjiu.lu@intel.com>
22357
22358         PR target/49128
22359         * config/i386/driver-i386.c (host_detect_local_cpu): Always
22360         add -mno-XXX.  Handle FMA.
22361
22362 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
22363
22364         PR rtl-optimization/48633
22365         * ira-build.c (loop_with_eh_edge_p): New function.
22366         (mark_loops_for_removal): Use it.
22367
22368 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
22369
22370         PR rtl-optimization/48971
22371         * ira.c (setup_pressure_classes): Don't check register move cost
22372         for classes with one registers.  Don't add pressure class if there
22373         is a pressure class with the same available hard registers.
22374         Check contains_reg_of_mode.  Fix a typo in collecting
22375         temp_hard_regset.  Ignore hard registers not belonging to a class.
22376
22377 2011-05-24  Uros Bizjak  <ubizjak@gmail.com>
22378
22379         PR target/49133
22380         * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
22381
22382 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
22383             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22384
22385         PR gcov-profile/48845
22386         * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
22387
22388 2011-05-24  Richard Guenther  <rguenther@suse.de>
22389
22390         * gimple.c (compare_type_names_p): Remove for_completion_p arg.
22391         (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
22392         (gimple_types_compatible_p_1): Adjust.
22393         (iterative_hash_canonical_type): Do not bother about complete vs.
22394         incomplete types.
22395         (gimple_canonical_types_compatible_p): Likewise.
22396
22397 2011-05-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22398
22399         * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
22400
22401 2011-05-24  Richard Guenther  <rguenther@suse.de>
22402
22403         PR bootstrap/49078
22404         * gimple.c (gimple_register_canonical_type): Revert
22405         previous change.
22406         * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
22407         does not for a tree for the case where it matters.  Cache
22408         pointer-type alias-sets.
22409
22410 2011-05-24  Joseph Myers  <joseph@codesourcery.com>
22411
22412         * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
22413         (OBJS): Remove options.o, opts-common.o and prefix.o.
22414         (OBJS-libcommon-target): New.
22415         (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
22416         (BACKEND): Include libcommon-target.a.
22417         (MOSTLYCLEANFILES): Include libcommon-target.a.
22418         (libcommon-target.a): New.
22419         (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
22420         prefix.o.
22421
22422 2011-05-23  Joseph Myers  <joseph@codesourcery.com>
22423
22424         * optc-save-gen.awk: New.  Based on optc-gen.awk.  Don't generate
22425         parts of output shared with the driver.
22426         * optc-gen.awk: Don't generate parts of output not shared with the
22427         driver.
22428         * opth-gen.awk: Remove GCC_DRIVER conditionals.
22429         * doc/options.texi (SourcerInclude): Mention options-save.c.
22430         * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
22431         (OBJS): Add options-save.o.
22432         (options-save.c, options-save.o): New.
22433         (options.o): Update dependencies.
22434         (gcc-options.o): Remove.
22435         (mostlyclean): Remove options-save.c.
22436
22437 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
22438
22439         PR debug/49032
22440         * dbxout.c: Include cgraph.h.
22441         (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
22442         and without value expr, return NULL if no varpool node exists for
22443         it or if it is not needed.
22444         * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
22445
22446         PR c/49120
22447         * c-decl.c (start_decl): Convert expr to void_type_node.
22448
22449 2011-05-23  Richard Sandiford  <rdsandiford@googlemail.com>
22450
22451         PR rtl-optimization/48826
22452         * emit-rtl.c (try_split): When splitting a call that is followed
22453         by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
22454
22455 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
22456
22457         * cfgexpand.c (expand_debug_expr): For unused non-addressable
22458         parameters passed in memory prefer using DECL_INCOMING_RTL over
22459         the pseudos it will be copied into.
22460
22461 2011-05-23  H.J. Lu  <hongjiu.lu@intel.com>
22462
22463         PR target/47315
22464         * config/i386/i386.c (ix86_option_override_internal): Save the
22465         initial options after checking vzeroupper.
22466
22467 2011-05-23  David Li  <davidxl@google.com>
22468
22469         PR tree-optimization/48988
22470         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
22471         Initialize has_valid_pred for each pred chain.
22472
22473 2011-05-23  Richard Guenther  <rguenther@suse.de>
22474
22475         * gimple.c (gimple_types_compatible_p_1): Always compare type names.
22476         (iterative_hash_gimple_type): Always hash type names.
22477
22478 2011-05-23  Nathan Froyd  <froydnj@codesourcery.com>
22479
22480         * c-typeck.c (build_function_call_vec): Tweak call to
22481         check_function_arguments.
22482
22483 2011-05-23  Richard Guenther  <rguenther@suse.de>
22484
22485         PR tree-optimization/49115
22486         * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
22487         is not necessarily carried out, do not claim it kills the ref.
22488         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
22489
22490 2011-05-23  Richard Guenther  <rguenther@suse.de>
22491
22492         PR middle-end/15419
22493         * builtins.c (fold_builtin_memory_op): Be less restrictive about
22494         what pointer types we accept for folding.
22495
22496 2011-05-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22497
22498         * gthr-gnat.c: Remove.
22499         * gthr-gnat.h: Remove.
22500         * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
22501         * config/t-freebsd (LIB2ADDEH): Likewise.
22502         * config/t-linux (LIB2ADDEH): Likewise.
22503         * config/t-sol2 (LIB2ADDEH): Likewise.
22504         * config/ia64/t-vms (LIB2ADDEH): Likewise.
22505         * configure.ac (target_thread_file): Remove gnat handling.
22506         * configure: Regenerate.
22507         * doc/install.texi (Configuration, --enable-threads): Remove gnat.
22508
22509 2011-05-23  Tristan Gingold  <gingold@adacore.com>
22510             Eric Botcazou  <ebotcazou@adacore.com>
22511
22512         * gcov.c (create_file_names): If no object directory is specified,
22513         keep the directory of the file.
22514
22515 2011-05-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22516
22517         * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
22518         * configure: Regenerate.
22519
22520 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
22521
22522         PR middle-end/48973
22523         * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
22524         failed and the comparison has a single bit signed type, use
22525         constm1_rtx instead of const1_rtx for true value.
22526         (do_store_flag): If ops->type is single bit signed type, disable
22527         signel bit test optimization and pass -1 instead of 1 as last
22528         parameter to emit_store_flag_force.
22529
22530 2011-05-23  Tom de Vries  <tom@codesourcery.com>
22531
22532         PR target/45098
22533         * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
22534         function.
22535         (infer_loop_bounds_from_undefined): Use new function.
22536
22537 2011-05-22  Richard Sandiford  <rdsandiford@googlemail.com>
22538
22539         * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
22540         (ASM_SPEC): Add a -O* option here.  Pass -O0 for -noasmopt,
22541         -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
22542         and -O0 otherwise.
22543         (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
22544
22545 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
22546
22547         * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
22548         (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
22549         returns true.
22550
22551 2011-05-22  Richard Sandiford  <rdsandiford@googlemail.com>
22552
22553         * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
22554
22555 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
22556
22557         * config/sparc/sparc.c (sparc_delegitimize_address): Handle
22558         UNSPEC_MOVE_PIC pattern.
22559
22560 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
22561
22562         * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
22563         (sparc-*-rtems*): Likewise.
22564         (sparc64-*-elf*): Likewise.
22565         (sparc64-*-rtems*): Likewise.
22566         (sparc*-*-solaris2*): Likewise.  Remove crti.o crtn.o extra parts.
22567         * config/sparc/t-crtin: New file.
22568         * config/sparc/t-sol2 (crti.o): Delete rule.
22569         (crtn.o): Likewise.
22570         * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
22571         * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
22572         * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
22573         (ENDFILE_SPEC): Add crtn.o.
22574
22575 2011-05-22  Tom de Vries  <tom@codesourcery.com>
22576
22577         PR middle-end/48689
22578         * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
22579         CODE_CONTAINS_STRUCT (TS_COMMON).
22580
22581 2011-05-22  Jakub Jelinek  <jakub@redhat.com>
22582
22583         PR middle-end/49029
22584         * expmed.c (extract_fixed_bit_field): Test whether target can be used
22585         only after deciding which mode to use.
22586
22587 2011-05-22  Tom de Vries  <tom@codesourcery.com>
22588
22589         PR target/45098
22590         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
22591         for call to get_shiftadd_cost.
22592
22593 2011-05-22  Uros Bizjak  <ubizjak@gmail.com>
22594
22595         PR target/49104
22596         * config/i386/cpuid.h (bit_MMXEXT): New define.
22597
22598 2011-05-22  Nick Clifton  <nickc@redhat.com>
22599
22600         * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
22601         initialisation of non-existant args[2] element.  Use args[] array
22602         not arg[] array to pass arguments to build_function_type_list.
22603
22604 2011-05-22  Ira Rosen  <ira.rosen@linaro.org>
22605
22606         PR tree-optimization/49087
22607         * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
22608
22609 2011-05-21  Jason Merrill  <jason@redhat.com>
22610
22611         PR c++/49092
22612         * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
22613         static storage duration.
22614
22615 2011-05-21  Eric Botcazou  <ebotcazou@adacore.com>
22616
22617         * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
22618         frame pointer.
22619
22620 2011-05-21  Eric Botcazou  <ebotcazou@adacore.com>
22621
22622         * config/sparc/sparc.c (eligible_for_return_delay): Do not return
22623         false if there are call-saved registers here...
22624         (sparc_can_use_return_insn_p): ...but here instead.
22625         (save_or_restore_regs): Fix thinko.
22626         (sparc_expand_prologue): Use current_function_is_leaf.
22627         (sparc_frame_pointer_required): Likewise.
22628
22629 2011-05-21  Nick Clifton  <nickc@redhat.com>
22630
22631         PR target/49098
22632         * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
22633
22634 2011-05-21  Nicola Pero  <nicola.pero@meta-innovation.com>
22635
22636         * gengtype.c (walk_type): Implemented "atomic" GTY option.
22637         * doc/gty.texi (GTY Options): Document "atomic" GTY option.
22638
22639 2011-05-21  Joseph Myers  <joseph@codesourcery.com>
22640
22641         * opt-read.awk: New.  Split out of optc-gen.awk and opth-gen.awk.
22642         * optc-gen.awk: Move common code to opt-read.awk.
22643         * opth-gen.awk: Likewise.
22644         * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
22645
22646 2011-05-20  Nathan Froyd  <froydnj@codesourcery.com>
22647
22648         * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
22649
22650 2011-05-20  Tom de Vries  <tom@codesourcery.com>
22651
22652         PR target/45098
22653         * tree-ssa-loop-ivopts.c: Include expmed.h.
22654         (get_shiftadd_cost): New function.
22655         (force_expr_to_var_cost): Declare forward.  Use get_shiftadd_cost.
22656
22657 2011-05-20  Jakub Jelinek  <jakub@redhat.com>
22658
22659         PR bootstrap/49086
22660         * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
22661         for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
22662
22663 2011-05-20  Joseph Myers  <joseph@codesourcery.com>
22664
22665         * Makefile.in: Update comment referring to $(OBJS-common).
22666
22667 2011-05-20  Ian Lance Taylor  <iant@google.com>
22668
22669         * godump.c (go_output_typedef): Put enum constants in the macro
22670         hash table to avoid duplicate Go const definitions.
22671
22672 2011-05-20  Joseph Myers  <joseph@codesourcery.com>
22673
22674         * Makefile.in (LIBDEPS): Add libcommon.a.
22675         (LIBS): Likewise.
22676         (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
22677         (OBJS-common): Remove diagnostic.o, input.o, intl.o,
22678         pretty-print.o and version.o.
22679         (OBJS-libcommon): New.
22680         (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
22681         (BACKEND): Add libcommon.a.
22682         (MOSTLYCLEANFILES): Likewise.
22683         (libcommon.a): New.
22684         (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
22685         (cpp$(exeext)): Likewise.
22686         (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
22687         pretty-print.o and input.o.
22688         (lto-wrapper$(exeext)): Don't explicitly use intl.o.
22689         (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
22690         (errors.o): Remove.
22691         (mips-tfile): Don't explicitly use version.o.
22692         (mips-tdump): Likewise.
22693         (gcov.o): Depend on $(DIAGNOSTIC_H).
22694         (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
22695         (GCOV_OBJS): Remove intl.o, version.o and errors.o.
22696         (GCOV_DUMP_OBJS): Remove version.o and errors.o.
22697         * gcov-dump.c: Include intl.h and diagnostic.h.
22698         (main): Initialize diagnostics.
22699         * gcov.c: Include diagnostic.h.
22700         (fnotice): Remove.
22701         (main): Initialize diagnostics.
22702         * lto-wrapper.c: Include diagnostic.h.
22703         (main): Initialize diagnostics.
22704
22705 2011-05-20  Michael Matz  <matz@suse.de>
22706
22707         * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
22708
22709 2011-05-20  Michael Matz  <matz@suse.de>
22710             Richard Guenther  <rguenther@suse.de>
22711
22712         * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
22713         use lto_streamer_cache_append directly instead of returning a VEC.
22714         (preload_common_node): Remove.
22715         (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
22716         track seen nodes.
22717         (lto_streamer_cache_create): Call lto_preload_common_nodes.
22718
22719 2011-05-20  Richard Guenther  <rguenther@suse.de>
22720
22721         PR tree-optimization/49079
22722         * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
22723         MEM_REFs correctly for the trailing array access detection.
22724         Special case constants the same way as decls for overall size
22725         constraining.
22726
22727 2011-05-20  Uros Bizjak  <ubizjak@gmail.com>
22728
22729         * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
22730         argument expansion.
22731
22732 2011-05-20  Jakub Jelinek  <jakub@redhat.com>
22733
22734         PR tree-optimization/49073
22735         * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
22736         PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
22737         * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
22738
22739 2011-05-20  Richard Guenther  <rguenther@suse.de>
22740
22741         PR middle-end/48849
22742         * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
22743         of pointer types the same way the middle-end does.
22744
22745 2011-05-20  Richard Guenther  <rguenther@suse.de>
22746
22747         * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
22748         or pointer-to chains.  Delay all fixup to uniquify_nodes.
22749
22750 2011-05-19  Quentin Neill  <quentin.neill@amd.com>
22751
22752         * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
22753         (fma4_fmaddsub): Likewise
22754
22755 2011-05-19  Jan Hubicka  <jh@suse.cz>
22756
22757         * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
22758         (GIMPLE_TYPE_PAIR_SIZE): New macro.
22759         (type_pair_cache): New static var.
22760         (lookup_type_pair): Use fixed sized custom hash; make inline.
22761         (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
22762         calls of lookup_type_pair.
22763         (print_gimple_types_stats): Remove cache stats.
22764         (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
22765         and gtc_ob.
22766
22767 2011-05-19  Uros Bizjak  <ubizjak@gmail.com>
22768
22769         * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
22770         when TARGET_RDRND is active.
22771         (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
22772         Generate dummy SImode target register when target is NULL.
22773
22774 2011-05-19  Joseph Myers  <joseph@codesourcery.com>
22775
22776         * config/arm/arm-fpus.def: New.
22777         * config/arm/genopt.sh: Generate Enum and EnumValue entries from
22778         arm-fpus.def.
22779         * config/arm/arm-tables.opt: Regenerate.
22780         * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
22781         (arm_option_override): Don't decode FPU name to string here.
22782         * config/arm/arm.opt (mfpu=): Use Enum.
22783         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
22784         Update dependencies.
22785
22786 2011-05-19  Joseph Myers  <joseph@codesourcery.com>
22787
22788         * collect2.c: Include diagnostic.h.
22789         (fatal_perror, fatal, error, fancy_abort): Remove.
22790         (main): Set progname.  Call xmalloc_set_program_name and
22791         diagnostic_initialize.
22792         (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
22793         scan_libraries, resolve_lib_name): Call fatal_error instead of
22794         fatal and fatal_perror.
22795         * collect2.h (error, fatal, fatal_perror): Don't declare.
22796         * tlink.c: Include diagnostic-core.h.
22797         (recompile_files): Call fatal_error instead of fatal_perror.
22798         * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
22799         pretty-print.o and input.o.
22800         (collect2.o, tlink.o): Update dependencies.
22801
22802 2011-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22803
22804         * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
22805
22806 2011-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22807
22808         PR target/40483
22809         * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
22810         COMDAT group syntax, both SPARC and x86 variants.
22811         (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
22812         * configure: Regenerate.
22813         * config/sol2.h (TARGET_SOLARIS): Define.
22814         (PUSHSECTION_FORMAT): Remove.
22815         (SECTION_NAME_FORMAT): Define.
22816         * config/sol2.c: Include hashtab.h.
22817         (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
22818         expansion, using SECTION_NAME_FORMAT.
22819         (solaris_comdat_htab): New variable.
22820         (struct comdat_entry): Define.
22821         (comdat_hash): New function.
22822         (comdat_eq): New function.
22823         (solaris_elf_asm_comdat_section): New function.
22824         (solaris_define_comdat_signature): New function.
22825         (solaris_code_end): New function.
22826         * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
22827         (solaris_code_end): Declare.
22828         * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
22829         * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
22830         solaris_code_end.
22831         (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
22832         Remove ATTRIBUTE_UNUSED.
22833         [!USE_GAS]: Call solaris_elf_asm_comdat_section for
22834         SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
22835         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
22836         * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
22837         * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
22838         * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
22839         (PUSHSECTION_FORMAT): Remove.
22840         (SECTION_NAME_FORMAT): Redefine.
22841
22842 2011-05-19  Kai Tietz  <ktietz@redhat.com>
22843
22844         * tree-cfg.c (verify_gimple_assign_binary): Barf on
22845         TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
22846         (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
22847
22848 2011-05-19  Anatoly Sokolov  <aesok@post.ru>
22849             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22850
22851         * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
22852
22853 2011-05-19  Richard Guenther  <rguenther@suse.de>
22854
22855         PR middle-end/48985
22856         * tree-object-size.c (addr_object_size): If the pointed-to
22857         variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
22858
22859 2011-05-19  Richard Guenther  <rguenther@suse.de>
22860
22861         * gimple.c (gimple_types_compatible_p_1): Compare names of
22862         the types themselves.
22863         (iterative_hash_gimple_type): And hash them that way.
22864         (gimple_register_type_1): If we register a main variant properly
22865         initialize the leader to ourselves.
22866
22867 2011-05-19  Tom de Vries  <tom@codesourcery.com>
22868
22869         PR target/45098
22870         * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
22871         get_loop_invariant_expr_id.
22872         (get_loop_invariant_expr_id): Use get_expr_id.
22873         (parm_decl_cost): New function.
22874         (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
22875         Improve bound cost estimation.  Use different inv_expr_id for elim and
22876         express cases.
22877
22878 2011-05-19  Tom de Vries  <tom@codesourcery.com>
22879
22880         PR target/45098
22881         * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
22882         cost_base.cost == 0.
22883
22884 2011-05-18  H.J. Lu  <hongjiu.lu@intel.com>
22885
22886         PR target/49002
22887         * config/i386/sse.md
22888         (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
22889         load cast.
22890
22891 2011-05-18  Jakub Jelinek  <jakub@redhat.com>
22892
22893         PR tree-optimization/49039
22894         * tree-vrp.c (extract_range_from_binary_expr): For
22895         MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
22896         return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
22897
22898 2011-05-18  Tom de Vries  <tom@codesourcery.com>
22899
22900         PR target/45098
22901         * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
22902
22903 2011-05-18  Uros Bizjak  <ubizjak@gmail.com>
22904
22905         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
22906         (*tls_global_dynamic_64): Ditto.
22907         (*tls_local_dynamic_base_32_gnu): Ditto.
22908         (*tls_local_dynamic_base_64): Ditto.
22909         (tls_initial_exec_64_sun): Ditto.
22910
22911 2011-05-18  Stuart Henderson  <shenders@gcc.gnu.org>
22912
22913         * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
22914         * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
22915         bf592-none.
22916         * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
22917         * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
22918         * config/bfin/bfin.c (bfin_cpus): Add bf592.
22919         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
22920         __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
22921         * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
22922         * config/bfin/elf.h (LIB_SPEC): Add bf592.
22923
22924 2011-05-18  Joseph Myers  <joseph@codesourcery.com>
22925
22926         * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
22927         arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
22928         * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
22929         target_thread_pointer, arm_structure_size_boundary, struct
22930         float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
22931         struct abi_name, arm_all_abis): Remove.
22932         (arm_option_override) Don't process most enumerated option values here.
22933         Don't process target_fpe_name here.  Work with integer not string for
22934         structure size boundary; use separate diagnostics for each case.
22935         * config/arm/arm.h (enum float_abi_type, enum
22936         arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
22937         to arm-opts.h.
22938         (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
22939         arm_structure_size_boundary): Remove.
22940         * config/arm/arm.opt (mabi=): Use Enum and Init.
22941         (arm_abi_type): New Enum and EnumValue entries.
22942         (mfloat-abi=): Use Enum and Init.
22943         (float_abi_type): New Enum and EnumValue entries.
22944         (mfp=, mfpe=): Replace by separate Alias entries for each argument.
22945         (mfp16-format=): Use Enum and Init.
22946         (arm_fp16_format_type): New Enum and EnumValue entries.
22947         (mstructure-size-boundary=): Use UInteger and Init.
22948         (mtp=): Use Enum and Init.
22949         (arm_tp_type): New Enum and EnumValue entries.
22950
22951 2011-05-18  Richard Guenther  <rguenther@suse.de>
22952
22953         PR tree-optimization/49018
22954         * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
22955         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
22956         gimple_has_side_effects.
22957
22958 2011-05-18  Richard Guenther  <rguenther@suse.de>
22959
22960         * gimple.c (gimple_register_type_1): New function, split out from ...
22961         (gimple_register_type): ... here.  Avoid infinite recursion.
22962
22963 2011-05-18  Ira Rosen  <ira.rosen@linaro.org>
22964
22965         PR tree-optimization/41881
22966         * tree-vectorizer.h (struct _loop_vec_info): Add new field
22967         reduction_chains along with a macro for its access.
22968         * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
22969         (destroy_loop_vec_info): Free reduction chains.
22970         (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
22971         (vect_is_slp_reduction): New function.
22972         (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
22973         (vect_create_epilog_for_reduction): Support SLP reduction chains.
22974         * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
22975         definition types for reduction chains.
22976         (vect_supported_load_permutation_p): Don't allow permutations for
22977         reduction chains.
22978         (vect_analyze_slp_instance): Support reduction chains.
22979         (vect_analyze_slp): Try to build SLP instance from reduction chains.
22980         (vect_get_constant_vectors):  Handle reduction chains.
22981         (vect_schedule_slp_instance): Mark the first statement of the
22982         reduction chain as reduction.
22983
22984 2011-05-18  Ira Rosen  <ira.rosen@linaro.org>
22985
22986         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
22987         names for group elements access.
22988         * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
22989         reduction chains as well.  Remove data reference and interleaving
22990         related words from the fields names.
22991         * tree-vect-loop.c (vect_transform_loop): Use new names for group
22992         elements access.
22993         * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
22994         vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
22995         vect_update_interleaving_chain, vect_same_range_drs,
22996         vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
22997         vect_verify_datarefs_alignment, vector_alignment_reachable_p,
22998         vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
22999         vect_analyze_group_access, vect_analyze_data_ref_access,
23000         vect_create_data_ref_ptr, vect_transform_strided_load,
23001         vect_record_strided_load_vectors): Likewise.
23002         * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
23003         vect_model_load_cost, vectorizable_store, vectorizable_load,
23004         vect_remove_stores, new_stmt_vec_info): Likewise.
23005         * tree-vect-slp.c (vect_build_slp_tree,
23006         vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
23007
23008 2011-05-18  Richard Guenther  <rguenther@suse.de>
23009
23010         PR middle-end/48989
23011         * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
23012         operand verification.
23013         (verify_gimple_assign_binary): Likewise.
23014         * tree-ssa.c (useless_type_conversion_p): Preserve conversions
23015         to non-1-precision BOOLEAN_TYPEs.
23016
23017 2011-05-18  Tom de Vries  <tom@codesourcery.com>
23018
23019         PR target/45098
23020         * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
23021
23022 2011-05-18  Jakub Jelinek  <jakub@redhat.com>
23023
23024         PR tree-optimization/49000
23025         * tree-ssa.c (execute_update_addresses_taken): Call
23026         maybe_rewrite_mem_ref_base on debug stmt value.  If it couldn't
23027         be rewritten and decl has been marked for renaming, reset
23028         the debug stmt.
23029
23030 2011-05-17  Joseph Myers  <joseph@codesourcery.com>
23031
23032         * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
23033         enum_opts_set when testing if attributes have set -mfpmath=.
23034
23035 2011-05-17  Richard Sandiford  <rdsandiford@googlemail.com>
23036
23037         * config/mips/mips.c (mips_handle_option): Remove unused variable.
23038
23039 2011-05-17  Uros Bizjak  <ubizjak@gmail.com>
23040
23041         * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
23042         info->entry with 0
23043         * tree-inline.c (maybe_inline_call_in_expr):  Initialize
23044         id.transform_lang_insert_block with NULL.
23045
23046 2011-05-17  Uros Bizjak  <ubizjak@gmail.com>
23047
23048         * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
23049         (output_fp_compare): Change args 3 and 4 to bool.
23050         (ix86_expand_call): Change arg 6 to bool.
23051         (ix86_attr_length_immediate_default): Change arg 2 to bool.
23052         (ix86_attr_length_vex_default): Change arg 3 to bool.
23053         * config/i386/i386.md: Update all uses.
23054         * config/i386/i386.c: Ditto.
23055         (ix86_flags_dependent): Change return type to bool.
23056
23057 2011-05-17  Richard Guenther  <rguenther@suse.de>
23058
23059         * gimple.c (type_hash_pair_compare): Fix comparison.
23060
23061 2011-05-17  Richard Guenther  <rguenther@suse.de>
23062
23063         * gimple.c (iterative_hash_gimple_type): Simplify singleton
23064         case some more, fix final hash value of the non-singleton case.
23065
23066 2011-05-17  Richard Guenther  <rguenther@suse.de>
23067
23068         PR bootstrap/49013
23069         Revert
23070         2011-05-16  Richard Guenther  <rguenther@suse.de>
23071
23072         * gimple.c (gimple_types_compatible_p_1): Use names of the
23073         type itself, not its main variant.
23074         (iterative_hash_gimple_type): Likewise.
23075
23076 2011-05-17  Richard Guenther  <rguenther@suse.de>
23077
23078         * gimple.c (gimple_register_canonical_type): Use the main-variant
23079         leader for computing the canonical type.
23080
23081 2011-05-17  Nick Clifton  <nickc@redhat.com>
23082
23083         * config/rx/rx.c (rx_memory_move_cost): Include cost of register
23084         moves.
23085
23086         * config/rx/rx.md: Add peephole to remove redundant extensions
23087         after loads.
23088         (bitset_in_memory): Use rx_restricted_mem_operand.
23089         (bitinvert_in_memory): Likewise.
23090         (bitclr_in_memory): Likewise.
23091
23092 2011-05-17  Kazuhio Inaoka  <kazuhiro.inaoka.ud@renesas.com>
23093             Nick Clifton  <nickc@redhat.com>
23094
23095         * config/rx/rx.md: Add peepholes to match a register move followed
23096         by a comparison of the moved register.  Replace these with an
23097         addition of zero that does both actions in one instruction.
23098
23099 2011-05-17  Jakub Jelinek  <jakub@redhat.com>
23100
23101         PR target/48986
23102         * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
23103         predicate to allow CONST_INT.
23104         (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
23105
23106 2011-05-16  Joseph Myers  <joseph@codesourcery.com>
23107
23108         * opts-common.c (opt_enum_arg_to_value): New.
23109         * opts.h (opt_enum_arg_to_value): Declare.
23110         * config/i386/i386.opt (fpmath): Remove.
23111         (mfpmath=): Use Enum, Init and Save.
23112         (fpmath_unit): New Enum and EnumValue entries.
23113         * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
23114         name for function fpmath state.
23115         * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
23116         * config/i386/i386.c: Include diagnostic.h.
23117         (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
23118         (ix86_target_string): Take enum fpmath_unit value instead of string.
23119         (ix86_debug_options): Update call to ix86_target_string.
23120         (ix86_option_override_internal): Don't process fpmath strings here.
23121         (x86_function_specific_save, ix86_function_specific_restore):
23122         Don't handle fpmath state specially.
23123         (ix86_function_specific_print): Pass fpmath state to
23124         ix86_target_string instead of printing in this function.
23125         (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
23126         Handle enum attributes.
23127         (IX86_ATTR_ENUM, ix86_opt_enum): New.
23128         (ix86_valid_target_attribute_tree): Update option_strings
23129         handling.  Handle fpmath as enum option.
23130         (ix86_can_inline_p): Update field names for function fpmath state.
23131         (ix86_expand_builtin): Update call to ix86_target_string.
23132         * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
23133         (ix86_fpmath): Remove.
23134         * config/i386/t-i386 (i386.o): Update dependencies.
23135
23136 2011-05-16  Joseph Myers  <joseph@codesourcery.com>
23137
23138         PR preprocessor/48677
23139         * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
23140         from decoded_options[0], not from itself.
23141
23142 2011-05-16  Uros Bizjak  <ubizjak@gmail.com>
23143
23144         * config/i386/constraints.md (z): New constraint.
23145         * config/i386/i386.c (c): New mode attribute.
23146         (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
23147         *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
23148         constraint for operand 0.
23149         (*call_vzeroupper): Ditto.
23150         (*call_rex64_ms_sysv): Ditto.  Use "rzm" constraint for operand 0.
23151         (*call_rex64_ms_sysv_vzeroupper): Ditto.
23152         (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
23153         Use "lzm" constraint for operand 0.
23154         (*call_pop_vzeroupper): Ditto.
23155         (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
23156         *sibcall_1_rex64 patterns using "P" mode iterator.  Use "Uz"
23157         constraint for operand 0.
23158         (*sibcall_vzeroupper): Ditto.
23159         (*sibcall_rex64_ms_sysv): Ditto.
23160         (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
23161         (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
23162         *sibcall_pop_1.  Use "Uz" constraint for operand 0.
23163         (*sibcall_pop_vzeroupper): Ditto.
23164         (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
23165         *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
23166         mode iterator.  Use "<c>zm" constraint for operand 1.
23167         (*call_value_vzeroupper): Ditto.
23168         (*call_value_rex64_ms_sysv): Ditto.  Use "rzm" constraint
23169         for operand 1.
23170         (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
23171         (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
23172         *call_value_pop_1.  Use "lzm" constraint for operand 1.
23173         (*call_value_pop_vzeroupper): Ditto.
23174         (*sibcall_value): Merge insn pattern from *sibcall_value_0,
23175         *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
23176         mode iterator.  Use "Uz" constraint for operand 1.
23177         (*sibcall_value_vzeroupper): Ditto.
23178         (*sibcall_value_rex64_ms_sysv): Ditto.
23179         (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
23180         (*sibcall_value_pop): Rename from *sibcall_pop_1.  Use "Uz"
23181         constraint for operand 1.
23182         (*sibcall_value_pop_vzeroupper): Ditto.
23183         (*tls_global_dynamic_64): Use constant_call_address_operand predicate
23184         and "z" constraint for operand 2.
23185         (*tls_global_dynamic_32_gnu): Ditto.
23186         (*tls_local_dynamic_base_32_gnu): Ditto.
23187         (*tls_local_dynamic_base_64): Ditto.
23188         (*tls_local_dynamic_32_once): Ditto.
23189         * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
23190         Update all callers.
23191         * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
23192
23193 2011-05-16  Richard Guenther  <rguenther@suse.de>
23194
23195         * gimple.c (gimple_types_compatible_p_1): Use names of the
23196         type itself, not its main variant.
23197         (iterative_hash_gimple_type): Likewise.
23198
23199 2011-05-16  Richard Guenther  <rguenther@suse.de>
23200
23201         * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
23202         always visit pointer target and function result and argument types.
23203
23204 2011-05-16  Jason Merrill  <jason@redhat.com>
23205
23206         PR c++/48999
23207         * tree-inline.c (copy_statement_list): Put back recursion.
23208
23209 2011-05-16  Georg-Johann Lay  <avr@gjlay.de>
23210
23211         PR target/27663
23212         PR target/41076
23213         * config/avr/predicates.md (const_8_16_24_operand): New predicate.
23214         * config/avr/avr.md ("*ior<mode>qi.byte0",
23215         "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
23216
23217 2011-05-16  Georg-Johann Lay  <avr@gjlay.de>
23218
23219         PR target/45099
23220         * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
23221         register is needed for a function argument.
23222
23223 2011-05-16  Richard Guenther  <rguenther@suse.de>
23224
23225         * gimple.c (struct type_hash_pair): New type.
23226         (type_hash_pair_compare): New function.
23227         (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
23228
23229 2011-05-16  Revital Eres  <revital.eres@linaro.org>
23230
23231         * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
23232
23233 2011-05-15  Uros Bizjak  <ubizjak@gmail.com>
23234
23235         * config/i386/i386.md (floating point move splitters): Fix
23236         usage of standard_80387_constant_p.
23237         * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
23238
23239 2011-05-15  Uros Bizjak  <ubizjak@gmail.com>
23240
23241         * config/i386/i386.md (*movdf_internal): Simplify insn condition.
23242
23243 2011-05-14  Eric Botcazou  <ebotcazou@adacore.com>
23244
23245         * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
23246         (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
23247         (tree_ssa_lim_finalize): Likewise.
23248
23249 2011-05-14  Uros Bizjak  <ubizjak@gmail.com>
23250
23251         * config/i386/constraint.md (Yd, Yx): New register constraints.
23252         * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger.  Use
23253         Yd conditional register constraint.
23254         (*movtf_internal): Use standard_sse_constant_opcode.
23255         (*movxf_internal): Merge with *movxf_internal_nointeger.  Use
23256         Yx conditional register constraint.
23257         (*movdf_internal): Merge with *movdf_internal_nointeger.  Use
23258         Yd conditional register constraint.  Use standard_sse_constant_p to
23259         check for valid SSE constants and call standard_sse_constant_opcode to
23260         output SSE insn.
23261         (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
23262         constants and call standard_sse_constant_opcode to output SSE insn.
23263         * config/i386/i386.c (ix86_option_ovverride_internal): Set
23264         TARGET_INTEGER_DFMODE_MOVES for 64bit targets.  Clear it when
23265         optimize_size is set.
23266         (standard_sse_constant_opcode): Output conditional AVX insn templates.
23267
23268 2011-05-14  Tobias Burnus  <burnus@net-b.de>
23269
23270         * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
23271
23272 2011-05-13  Martin Jambor  <mjambor@suse.cz>
23273
23274         * ipa-prop.c (ipa_cst_from_jfunc): New function.
23275         * ipa-prop.h (ipa_cst_from_jfunc): Declare.
23276         * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
23277         (evaluate_conditions_for_ipcp_clone): Removed.
23278         (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
23279         * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
23280         * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
23281
23282 2011-05-13  Eric Botcazou  <ebotcazou@adacore.com>
23283
23284         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
23285         * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
23286         lieu of MAY_HAVE_DEBUG_STMTS.
23287         * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
23288         debug statements if !MAY_HAVE_DEBUG_STMTS.
23289
23290 2011-05-13  Martin Thuresson  <martint@google.com>
23291
23292         PR gcov-profile/47793
23293         * libgcov.c (gcov_exit): Support relative profile paths.
23294         * doc/invoke.texi (-fprofile-dir): Update for above change.
23295
23296 2011-05-13  Richard Guenther  <rguenther@suse.de>
23297
23298         * gimple.c (gimple_canonical_types_compatible_p): Do not use
23299         type-pair caching, do not compare hashes.
23300
23301 2011-05-13  Nathan Froyd  <froydnj@codesourcery.com>
23302
23303         PR middle-end/48965
23304         * tree-cfg.c (edge_to_cases_cleanup): Return true.
23305         (verify_expr) [CASE_LABEL_EXPR]: Add checking.
23306
23307 2011-05-13  Kai Tietz  <ktietz@redhat.com>
23308
23309         * gimplify.c (gimplify_expr): Make sure operand is boolified.
23310         * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
23311         compatible type for TRUTH_NOT_EXPR.
23312
23313 2011-05-13  H.J. Lu  <hongjiu.lu@intel.com>
23314
23315         * config/i386/i386.c (ix86_save_reg): Change return type to bool.
23316         (ix86_hard_regno_mode_ok): Change return value to bool.  Use
23317         can_create_pseudo_p ().
23318
23319 2011-05-13  Richard Guenther  <rguenther@suse.de>
23320
23321         PR lto/48978
23322         * gimple.c (iterative_hash_gimple_type): Revert change in
23323         pointer target and function result and argument hashing.
23324
23325 2011-05-13  Uros Bizjak  <ubizjak@gmail.com>
23326
23327         * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
23328         (*movxf_internal_nointeger): Ditto.
23329         (*movdf_internal_rex64): Ditto.
23330         (*movdf_internal): Ditto.
23331         (*movdf_internal_nointeger): Ditto.
23332         (*movsf_internal): Ditto.
23333         (sincos splitters): Use can_create_pseudo ().
23334
23335 2011-05-13  Joseph Myers  <joseph@codesourcery.com>
23336
23337         * config/i386/i386-opts.h: New.
23338         * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
23339         ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
23340         ix86_section_threshold): Remove.
23341         (ix86_handle_option): Move MAX_CODE_ALIGN define here.  Handle
23342         OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
23343         OPT_mbranch_cost_.
23344         (ix86_option_override_internal): Don't decode strings for options
23345         other than -march=, -mtune= and -mfpmath=.  Don't allow for
23346         __attribute__ uses in remaining diagnostics for options with
23347         string arguments.  Don't check for integer arguments being negative.
23348         * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
23349         enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
23350         (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
23351         ix86_branch_cost, ix86_section_threshold): Remove.
23352         * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
23353         HeaderInclude.
23354         (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
23355         but not Var.
23356         (masm=): Use Enum and Init.
23357         (asm_dialect): New Enum and EnumValue entries.
23358         (mbranch-cost=): Use UInteger.
23359         (mlarge-data-threshold=): Use UInteger and Init.
23360         (mcmodel=): Use Enum and Init.
23361         (cmodel): New Enum and EnumValue entries.
23362         (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
23363         (mpreferred-stack-boundary=, mincoming-stack-boundary=,
23364         mregparm=): Use UInteger.
23365         (mstringop-strategy=): Use Enum and Init.
23366         (stringop_alg): New Enum and EnumValue entries.
23367         (mtls-dialect=): Use Enum and Init.
23368         (tls_dialect): New Enum and EnumValue entries.
23369         (mabi=): Use Enum and Init.
23370         (calling_abi): New Enum and EnumValue entries.
23371         (mveclibabi=): Use Enum and Init.
23372         (ix86_veclibabi): New Enum and EnumValue entries.
23373
23374 2011-05-13  Nick Clifton  <nickc@redhat.com>
23375
23376         * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
23377         * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
23378
23379 2011-05-13  Kai Tietz  <ktietz@redhat.com>
23380
23381         PR middle-end/48984
23382         * gimplify.c (gimplify_expr): Check for boolean_type_node instead
23383         for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
23384         (gimple_boolify): Check for cast for boolean_type_node instead for
23385         BOOLEAN_TYPE.
23386
23387 2011-05-13  Richard Guenther  <rguenther@suse.de>
23388
23389         PR tree-optimization/48172
23390         * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
23391         multiplying by number of iterations for equal step.
23392         (vect_create_cond_for_alias_checks): Likewise.
23393
23394 2011-05-13  Andreas Schwab  <schwab@redhat.com>
23395
23396         * configure.ac: Use AS_HELP_STRING throughout.
23397         * configure: Regenerate.
23398
23399 2011-05-12  H.J. Lu  <hongjiu.lu@intel.com>
23400
23401         * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
23402         (ix86_emit_restore_regs_using_mov): Likewise.
23403         (ix86_emit_restore_sse_regs_using_mov): Likewise.
23404
23405 2011-05-12  Anatoly Sokolov  <aesok@post.ru>
23406
23407         * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
23408         SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
23409         (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
23410         * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
23411         RTX_OK_FOR_OLO10_P): ...here.
23412         (sparc_mode_dependent_address_p): Use symbolic_operand instead of
23413         SYMBOLIC_CONST.
23414
23415 2011-05-12  Kai Tietz  <ktietz@redhat.com>
23416
23417         * gimplify.c (gimple_boolify): Re-boolify expression
23418         arguments even if expression type is of kind BOOLEAN_TYPE.
23419         (gimplify_boolean_expr): Removed.
23420         (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
23421         and XOR. Additional take care that we keep expression's type.
23422         * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
23423         of TRUTH_AND|OR|XOR_EXPR.
23424
23425 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
23426
23427         PR tree-optimization/48975
23428         * tree-if-conv.c (combine_blocks): Call free_bb_predicate
23429         on all bbs here and free and clear ifc_bbs at the end.
23430
23431 2011-05-12  Richard Guenther  <rguenther@suse.de>
23432
23433         * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
23434         NULLPTR_TYPE similar to VOID_TYPE.  Defer type-leader lookup
23435         until after simple checks.
23436         (gimple_types_compatible_p): Likewise.
23437         (iterative_hash_gimple_type): Always hash pointer targets
23438         and function return and argument types.
23439         (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
23440         hash TYPE_ALIGN.  Do not hash TYPE_MIN/MAX_VALUE.
23441         (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
23442         handle NULLPTR_TYPE similar to VOID_TYPE.  Handle non-aggregates
23443         completely in the simple compare section.
23444         (gimple_register_canonical_type): Query the cache again after
23445         registering.
23446
23447 2011-05-12  Richard Guenther  <rguenther@suse.de>
23448
23449         PR tree-optimization/48172
23450         * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
23451         the number of iterations from the segment size calculation.
23452         (vect_create_cond_for_alias_checks): Adjust.
23453
23454 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
23455
23456         PR debug/48967
23457         * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
23458         if validate_subreg fails.
23459
23460 2011-05-12  Hariharan Sandanagobalane  <hariharan@picochip.com>
23461
23462         * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
23463         accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
23464         early.
23465
23466 2011-05-12  DJ Delorie  <dj@redhat.com>
23467
23468         * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
23469         (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
23470         created builtin into rx_builtins array.
23471         (rx_builtin_decl): New function.
23472         (TARGET_BUITLIN_DECL): Define.  Include gt-rx.h.
23473
23474 2011-05-12  DJ Delorie  <dj@redhat.com>
23475             Nick Clifton  <nickc@redhat.com>
23476
23477         * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
23478         * config/rx/rx.c (CC_FLAG_FP): Fix comment.
23479         (rx_is_legitimate_address): Add pre-decrement and post-increment
23480         addressing in HImode and QImode.  Fix test for out of range
23481         REG+INT addressing.
23482         (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
23483         (rx_align_for_label): Test label before extracting its usage count.
23484         (rx_adjust_insn_lengths): Fix selection of insn codes.
23485         (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
23486
23487 2011-05-11  Jason Merrill  <jason@redhat.com>
23488
23489         * tree.c (type_hash_canon): Use struct tree_type_non_common.
23490
23491 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
23492
23493         * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
23494         reindent the subsequent block.
23495
23496 2011-05-11  Satoru Takabayashi  <satorux@google.com>
23497             Paul Pluzhnikov  <ppluzhnikov@google.com>
23498
23499         * doc/install.texi (Configuration): Document --with-linker-hash-style.
23500         * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
23501         * config.in: Add LINKER_HASH_STYLE.
23502         * configure.ac: Add --with-linker-hash-style.
23503         * configure: Regenerate.
23504
23505 2011-05-11  Richard Guenther  <rguenther@suse.de>
23506
23507         PR middle-end/48964
23508         * gimple.c (iterative_hash_canonical_type): Fix typo.
23509
23510 2011-05-11  Uros Bizjak  <ubizjak@gmail.com>
23511
23512         * config/i386/i386.c (legitimize_tls_address)
23513         <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
23514         expanders directly for TARGET_GNU2_TLS.  Determine pic and
23515         __tls_get_addr symbol reference here.  Update call to
23516         gen_tls_global_dynamic_{32,64} for added arguments.
23517         <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
23518         expanders directly for TARGET_GNU2_TLS.  Determine
23519         __tls_get_addr symbol reference here.  Update call to
23520         gen_tls_local_dynamic_base_{32,64} for added arguments.  Attach
23521         unique UNSPEC REG_EQUIV to libcall block.
23522         (ix86_tls_get_addr): Declare static.
23523         * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
23524         * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
23525         Do not determine pic and __tls_get_addr symbol reference here. Do not
23526         call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
23527         (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
23528         (tls_global_dynamic_64): Add operand 2.  Do not determine
23529         __tls_get_addr symbol reference here.  Do not call
23530         gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
23531         (tls_local_dynamic_base64): Ditto for operand 1.
23532
23533 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
23534
23535         * function.c (expand_function_start): Initialize stack_check_probe_note
23536         only if the generic stack checking mechanism is used.
23537
23538 2011-05-11  Richard Guenther  <rguenther@suse.de>
23539
23540         PR tree-optimization/15256
23541         * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
23542         (A & B) | C, combine (A op CST1) op CST2.
23543         (tree_ssa_forward_propagate_single_use_vars): Only bother to
23544         visit assigns that have uses.
23545
23546 2011-05-11  Nathan Froyd  <froydnj@codesourcery.com>
23547
23548         * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
23549         * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
23550         (unpack_ts_type_common_value_fields): ...this.  Update comment.
23551         (unpack_value_fields): Adjust for renaming.
23552         (lto_input_ts_type_tree_pointers): Split into...
23553         (lto_input_ts_type_common_tree_pointer): ...this and...
23554         (lto_input_ts_type_non_common_tree_pointers): ...this.
23555         (lto_input_tree_pointers): Adjust for above split.
23556         * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
23557         (pack_ts_type_common_value_fields): ...this.  Update comment.
23558         (lto_output_ts_type_tree_pointers): Split into...
23559         (lto_output_ts_type_common_tree_pointers): ...this and...
23560         (lto_output_ts_type_non_common_tree_pointers): ...this.
23561         (lto_output_tree_pointers): Adjust for above split.
23562         * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
23563         TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
23564         * stor-layout.c (vector_type_mode): Adjust location of mode field.
23565         * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
23566         Define.
23567         (struct tree_type): Split into...
23568         (struct tree_type_common: ...this and...
23569         (struct tree_type_with_lang_specific): ...this and...
23570         (struct tree_type_non_common): ...this.  Adjust accessor macros
23571         accordingly.
23572         (TYPE_VALUES_RAW): Define.
23573         (union tree_node): Update for above changes.
23574         * tree.c (tree_node_structure_for_code) [tcc_type]: Return
23575         TS_TYPE_NON_COMMON.
23576         (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
23577         Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
23578         (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
23579         * treestructu.def (TS_TYPE): Remove.
23580         (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
23581         Define.
23582
23583 2011-05-11  Jakub Jelinek  <jakub@redhat.com>
23584
23585         PR debug/48159
23586         * tree-ssa.c (reset_debug_uses): New function.
23587         * tree-flow.h (reset_debug_uses): New prototype.
23588         * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
23589         * tree-loop-distribution.c (generate_loops_for_partition): Call
23590         reset_debug_uses on the stmts that will be removed.  Keep around
23591         all debug stmts, don't count them as bits in partition bitmap.
23592         (generate_builtin): Don't count debug stmts or labels as bits in
23593         partition bitmap.
23594
23595 2011-05-11  Richard Guenther  <rguenther@suse.de>
23596
23597         * gimple.c (gimple_type_hash_1): Merge with ...
23598         (gimple_type_hash): ... this.
23599         (gtc_visit): Remove mode parameter and simplify accordingly.
23600         (gimple_types_compatible_p_1): Likewise.
23601         (gimple_types_compatible_p): Likewise.
23602         (iterative_hash_gimple_type): Likewise.
23603         (visit): Likewise.
23604         (gimple_type_eq): Adjust.
23605
23606 2011-05-11  Revital Eres  <revital.eres@linaro.org>
23607
23608         * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
23609         enters the branch create an anti edge in the opposite direction
23610         to prevent the creation of reg-moves.
23611         * modulo-sched.c: Adjust comment to reflect the fact we are
23612         scheduling closing branch.
23613         (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
23614         (stage_count): New field in struct partial_schedule.
23615         (calculate_stage_count): New function.
23616         (normalize_sched_times): Rename to reset_sched_times and handle
23617         incrementing the sched time of the nodes by a constant value
23618         passed as parameter.
23619         (duplicate_insns_of_cycles): Skip closing branch.
23620         (sms_schedule_by_order): Schedule closing branch.
23621         (ps_insn_find_column): Handle closing branch.
23622         (sms_schedule): Call reset_sched_times and adjust the code to
23623         support scheduling of the closing branch.
23624         (ps_insert_empty_row): Update calls to normalize_sched_times
23625         and rotate_partial_schedule functions.
23626
23627 2011-05-11  Richard Guenther  <rguenther@suse.de>
23628
23629         PR middle-end/48953
23630         * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
23631
23632 2011-05-11  Joseph Myers  <joseph@codesourcery.com>
23633
23634         * opts.c (finish_options): Move warning settings from process_options.
23635         * toplev.c (process_options): Move warning settings to finish_options.
23636
23637 2011-05-11  Richard Guenther  <rguenther@suse.de>
23638
23639         PR tree-optimization/18041
23640         * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
23641         (simplify_bitwise_binary): ... this.  Handle operand conversions
23642         by applying them to the result instead.
23643         (tree_ssa_forward_propagate_single_use_vars): Adjust.  CSE tree code.
23644
23645 2011-05-11  Richard Guenther  <rguenther@suse.de>
23646
23647         * gimple.c (gimple_canonical_types_compatible_p): Split out
23648         from gimple_types_compatible_p and friends.  Do not recurse
23649         to pointed-to types.
23650         (gimple_canonical_type_eq): Use it.
23651         (iterative_hash_canonical_type): Split out from
23652         iterative_hash_gimple_type and friends.  Do not recurse
23653         to pointed-to types.
23654         (gimple_canonical_type_hash): Use it, allocate the hash here.
23655
23656 2011-05-11  Revital Eres  <revital.eres@linaro.org>
23657
23658         * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
23659         recognizing doloop.
23660
23661 2011-05-11  Revital Eres  <revital.eres@linaro.org>
23662
23663         * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
23664         instead of PREV_INSN.
23665
23666 2011-05-11  Revital Eres  <revital.eres@linaro.org>
23667
23668         * modulo-sched.c (sms_schedule): Support new form of doloop pattern
23669         * loop-doloop.c (doloop_condition_get): Likewise.
23670         * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
23671         (doloop_end): New.
23672         * config/arm/arm.md (*addsi3_compare0): Remove "*".
23673
23674 2011-05-10  Nathan Froyd  <froydnj@codesourcery.com>
23675
23676         * tree.def (CASE_LABEL_EXPR): Add an operand.
23677         * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
23678
23679 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
23680
23681         * c-decl.c (c_override_global_bindings_to_false): Remove.
23682         (global_bindings_p): Don't check
23683         c_override_global_bindings_to_false.
23684         * c-tree.h (c_override_global_bindings_to_false): Remove.
23685         * c-typeck.c (composite_type): Don't set
23686         c_override_global_bindings_to_false.
23687
23688 2011-05-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
23689
23690         PR target/48857, 48495
23691         * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
23692         (VSX_MODE): Ditto.
23693         (VSX_MOVE_MODE): Ditto.
23694         (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
23695         VSX vector types.  Add V2DImode.
23696         (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
23697         ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
23698         (MODES_TIEABLE_P): Ditto.
23699
23700         * config/rs6000/rs6000.c (rs6000_emit_move): Use
23701         ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
23702         VSX_VECTOR_MODE.
23703         (init_cumulative_args): Ditto.
23704         (rs6000_function_arg_boundary): Ditto.
23705         (rs6000_function_arg_advance_1): Ditto.
23706         (rs6000_function_arg): Ditto.
23707         (rs6000_function_ok_for_sibcall): Ditto.
23708         (emit_frame_save): Ditto.
23709         (rs6000_function_value): Ditto.
23710         (rs6000_libcall_value): Ditto.
23711
23712 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
23713
23714         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
23715         i386/darwin-lib.h to $libgcc_tm_file.
23716         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
23717
23718 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
23719
23720         * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
23721
23722 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
23723
23724         * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
23725         * config/rs6000/rs6000-tables.opt: New file (generated).
23726         * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
23727         rs6000/rs6000-tables.opt to extra_options.
23728         * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
23729         * config/rs6000/rs6000.c (rs6000_select): Remove.
23730         (processor_target_table): Move contents to rs6000-cpus.def.
23731         (darwin_rs6000_override_options): Check
23732         global_options_set.x_rs6000_cpu_index instead of
23733         rs6000_select[1].string.
23734         (rs6000_option_override_internal): Likewise.
23735         (rs6000_handle_option): Don't assert that global structures are in
23736         use.  Don't handle OPT_mcpu_ and OPT_mtune_ here.
23737         (rs6000_default_cpu): New variable.
23738         (rs6000_file_start): Set it instead of local default_cpu.  Check
23739         rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
23740         global_options_set.x_rs6000_tune_index instead of rs6000_select.
23741         (rs6000_darwin_file_start): Check rs6000_default_cpu and
23742         global_options_set.x_rs6000_cpu_index instead of rs6000_select.
23743         * config/rs6000/rs6000.h (struct rs6000_cpu_select,
23744         rs6000_select): Remove.
23745         * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
23746         Remove.
23747         (mcpu=, mtune=): Use Var, Init, Enum and Save.
23748         * config/rs6000/t-rs6000
23749         ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
23750         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
23751         global_options_set.x_rs6000_cpu_index instead of
23752         rs6000_select[1].string.
23753         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
23754         global_options_set.x_rs6000_cpu_index instead of
23755         rs6000_select[1].string.
23756
23757 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
23758
23759         * config.gcc (libgcc_tm_file): Define instead of including files
23760         from ../../libgcc/config/ in tm_file.
23761         * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
23762         * configure: Regenerate.
23763         * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
23764         libgcc_tm.h, cs-libgcc_tm.h): New.
23765         (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
23766         (clean): Remove libgcc_tm.h.
23767         * config/arm/symbian.h (RENAME_LIBRARY): Remove.
23768         * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
23769         * system.h (DECLARE_LIBRARY_RENAMES): Poison.
23770
23771 2011-05-10  Georg-Johann Lay  <avr@gjlay.de>
23772
23773         PR target/48896
23774         * config/avr/avr.c (avr_ret_register): Return unsigned int
23775         instead of int.
23776         (avr_function_value): Mark fn_decl_or_type as unused, don't pass
23777         it to avr_libcall_value.
23778         avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
23779         expand_expr.
23780         (avr_expand_binop_builtin): Ditto.
23781         (avr_expand_unop_builtin): Ditto.
23782
23783 2011-05-10  DJ Delorie  <dj@redhat.com>
23784
23785         * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
23786         (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
23787         * config/rx/rx.c (rx_align_for_label): Add label and
23788         uses_threshold parameters.  Do not align when the label is not
23789         used enough.
23790         * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
23791
23792 2011-05-10  Richard Guenther  <rguenther@suse.de>
23793
23794         * tree-ssa-forwprop.c (combine_conversions): Pattern-match
23795         a series of conversions and apply foldings similar to what
23796         fold-const does.
23797         (tree_ssa_forward_propagate_single_use_vars): Call it.
23798
23799 2011-05-10  Jakub Jelinek  <jakub@redhat.com>
23800
23801         PR tree-optimization/48611
23802         PR tree-optimization/48794
23803         * tree-eh.c (remove_unreachable_handlers): Don't remove regions
23804         referenced from RESX or EH_DISPATCH arguments.
23805
23806         PR debug/48928
23807         * dfp.c (decimal_to_decnumber): Handle conversion from
23808         dconst{1,2,m1,half}.
23809
23810 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
23811
23812         * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
23813         for !flag_prefer_avx128.
23814         (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
23815
23816 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
23817
23818         * fold-const.c (fold_range_test): Pass LOC to build_range_check.
23819         (fold_ternary_loc): Use expr_location_or.
23820
23821 2011-05-09  H.J. Lu  <hongjiu.lu@intel.com>
23822
23823         PR debug/48853
23824         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
23825         POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
23826         Pmode and mem_mode is not VOIDmode.
23827
23828 2011-05-09  Ville Voutilainen  <ville.voutilainen@gmail.com>
23829
23830         * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
23831         TYPE_QUAL_RESTRICT): Convert to enum.
23832
23833 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
23834
23835         * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
23836         (const_pow2_1_to_8_operand): Ditto.
23837         (const_pow2_1_to_128_operand): Ditto.
23838         (const_pow2_1_to_32768_operand): Ditto.
23839         * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
23840         const_pow2_1_to_8_operand for operand 3 predicate.  Use exact_log2
23841         in insn constraint to check integer value of operand 3.
23842         * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
23843
23844         (PINSR_MODE): New mode iterator.
23845         (sse2p4_1): New mode attribute.
23846         (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
23847         sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
23848         iterator.  Use const_int_operand instead of
23849         const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate.  Use
23850         exact_log2 in insn constraint to check integer value of operand 3.
23851
23852 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
23853
23854         * config/i386/sse.md (blendbits): Remove mode attribute.
23855         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
23856         instead of const_0_to_<blendbits>_operand for operand 3 predicate.
23857         Check integer value of operand 3 in insn constraint.
23858
23859 2011-05-09  Richard Guenther  <rguenther@suse.de>
23860
23861         * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
23862         for diagnostics.
23863         (lto_symtab_merge): Likewise.  Do not register types here.
23864         (lto_symtab_merge_decls_2): Likewise.
23865         (lto_symtab_merge_decls_1): Likewise.
23866         * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
23867         * gimple.c (enum gtc_mode): Declare.
23868         (gimple_types_compatible_p): Make static.
23869
23870 2011-05-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23871
23872         * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
23873         temporary register to match Pmode.
23874
23875 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
23876
23877         * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
23878         and *vec_concatv4si_1_avx.
23879
23880 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
23881
23882         PR rtl-optimization/48927
23883         * ira-conflicts.c (commutative_constraint_p): Use
23884         recog_data.alternative_enabled_p to disable alternatives where
23885         "enabled" attribute is false.
23886         (get_dup_num): Ditto.
23887         * ira-lives.c (single_reg_class): Ditto.
23888         (ira_implicitly_set_insn_hard_regs): Ditto.
23889
23890 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
23891
23892         * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
23893         (dataflow_set_preserve_mem_locs): Likewise.
23894
23895 2011-05-09  Philipp Thomas  <pth@suse.de>
23896
23897         * config/mep/mep.c (mep_validate_vliw): Syntax description
23898         should not be translated.
23899
23900 2011-05-09  Joseph Myers  <joseph@codesourcery.com>
23901
23902         * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
23903         * config/mips/mips-tables.opt: New file (generated).
23904         * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
23905         * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
23906         MIPS_ARCH_OPTION_NATIVE): Define.
23907         * config/mips/mips.c (mips_cpu_info_table): Move contents to
23908         mips-cpus.def.
23909         (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
23910         mips_parse_cpu): Remove.
23911         (mips_cpu_info_from_opt, mips_default_arch): New.
23912         (mips_handle_option): Don't assert that global structures are in
23913         use.  Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
23914         (mips_option_override): Use new variables and functions to set
23915         state of these options.  Use strcmp to check for individual CPU names.
23916         * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
23917         definition.
23918         * config/mips/mips.opt (march=): Use ToLower and Enum.
23919         (mips): Use ToLower, Enum and Var.
23920         (mtune=): Use ToLower and Enum.
23921         * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
23922
23923 2011-05-08  Jan Hubicka  <jh@suse.cz>
23924
23925         * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
23926         Arrange type pairs to be UID ordered.
23927         (gimple_lookup_type_leader): Make inline.
23928
23929 2011-05-09  Nick Clifton  <nickc@redhat.com>
23930
23931         PR target/48899
23932         * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
23933         PROCESSOR_DEFAULT.
23934
23935         PR target/48897
23936         * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
23937         variable 's'.
23938
23939 2011-05-08  Chung-Lin Tang  <cltang@codesourcery.com>
23940
23941         * combine.c (simplify_comparison): Abstract out parts into...
23942         (simplify_compare_const): ... new function.
23943         (try_combine): Generalize parallel arithmetic/compare combining
23944         to call simplify_compare_const() and CANONICALIZE_COMPARE().
23945
23946 2011-05-08  Jan Hubicka  <jh@suse.cz>
23947
23948         * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
23949         (cgraph_create_virtual_clone): Call hooks once virtual clone
23950         is finished.
23951         * cgraph.h (cgraph_clone_node): Update prototype.
23952         * ipa-cp.c (ipcp_estimate_growth): Use
23953         estimate_ipcp_clone_size_and_time.
23954         * ipa-inline-transform.c (clone_inlined_nodes): Update.
23955         * lto-cgraph.c (input_node): Update.
23956         * ipa-inline.c (recursive_inlining): Update.
23957         * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
23958         (evaluate_conditions_for_known_args): Break out from ...
23959         (evaluate_conditions_for_edge): ... here.
23960         (evaluate_conditions_for_ipcp_clone): New function.
23961         (inline_node_duplication_hook): Update clone summary based
23962         on parameter map.
23963         (estimate_callee_size_and_time): Rename to ...
23964         (estimate_node_size_and_time): take NODE instead of EDGE;
23965         take POSSIBLE_TRUTHS as argument.
23966         (estimate_callee_size_and_time): Update.
23967         (estimate_ipcp_clone_size_and_time): New function.
23968         (do_estimate_edge_time): Update.
23969
23970 2011-05-08  Richard Guenther  <rguenther@suse.de>
23971
23972         PR middle-end/48908
23973         PR middle-end/48905
23974         * expmed.c (expand_shift_1): Compute adjusted constant shift
23975         amount manually.
23976
23977 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
23978
23979         * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
23980
23981 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
23982
23983         * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
23984
23985 2011-05-08  Jonathan Wakely  <jwakely.gcc@gmail.com>
23986
23987         * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
23988
23989 2011-05-07  Jan Hubicka  <jh@suse.cz>
23990
23991         * ipa-inline-transform.c (inline_call): Account when program size
23992         decreases.
23993         * ipa-inline.c (relative_time_benefit): New function.
23994         (edge_badness): Reorganize to be power 2 based; fix thinko when
23995         computing badness for negative growth; update comments to match
23996         reality; better dumps.
23997
23998 2011-05-07  Eric Botcazou  <ebotcazou@adacore.com>
23999
24000         * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
24001         type to bool and adjust comment.
24002         * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
24003         (fold_mathfn_compare): Remove calls to global_bindings_p.
24004         (fold_inf_compare): Likewise.
24005         * stor-layout.c (variable_size): Adjust call to global_bindings_p.
24006         * c-tree.h (global_bindings_p): Adjust prototype.
24007         * c-decl.c (global_bindings_p): Return bool and simplify.
24008
24009 2011-05-07  Zdenek Dvorak  <ook@ucw.cz>
24010
24011         PR tree-optimization/48837
24012         * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
24013         when accumulator transformation is performed.
24014
24015 2011-05-06  Jan Hubicka  <jh@suse.cz>
24016
24017         * i386.h (ix86_tune_indices): Add
24018         X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
24019         (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
24020         * i386.c (initial_ix86_tune_features): Add
24021         X86_SOFTARE_PREFETCHING_BENEFICIAL.
24022         (software_prefetching_beneficial_p): Remove predicate.
24023         (ix86_option_override_internal): Use new macro.
24024
24025 2011-05-06  Jan Hubicka  <jh@suse.cz>
24026
24027         * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
24028
24029 2011-05-06  Jan Hubicka  <jh@suse.cz>
24030
24031         * cgraph.c (cgraph_add_thunk): Create real function node instead
24032         of alias node; finalize it and mark needed/reachale; arrange visibility
24033         to be right and add it into the corresponding same comdat group list.
24034         (dump_cgraph_node): Dump thunks.
24035         * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
24036         cgraph_function_with_gimple_body_p,
24037         cgraph_first_function_with_gimple_body,
24038         cgraph_next_function_with_gimple_body): New functions.
24039         (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
24040         New macros.
24041         * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
24042         (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
24043         * cgraphunit.c (cgraph_finalize_function): Only look into possible
24044         devirtualization when optimizing.
24045         (verify_cgraph_node): Verify thunks.
24046         (cgraph_analyze_function): Analyze thunks.
24047         (cgraph_mark_functions_to_output): Output thunks only in combination
24048         with function they are assigned to.
24049         (assemble_thunk): Turn thunk into non-thunk; don't try to turn
24050         alias into normal node.
24051         (assemble_thunks): New functoin.
24052         (cgraph_expand_function): Use it.
24053         * lto-cgraph.c (lto_output_node): Stream thunks.
24054         (input_overwrite_node): Stream in thunks.
24055         * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
24056         * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
24057         * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
24058         * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
24059         (inline_analyze_function): Do not care about thunk jump functions.
24060         (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
24061         * ipa-prop.c (ipa_prop_write_jump_functions): Use
24062         cgraph_function_with_gimple_body_p.
24063         * passes.c (do_per_function_toporder): Use
24064         cgraph_function_with_gimple_body_p.
24065         (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
24066         (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
24067         (function_called_by_processed_nodes_p): Likewise.
24068
24069 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
24070
24071         * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
24072         rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
24073         entries.
24074         (mabi=): Replace with separate entries for mabi=altivec,
24075         mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
24076         mabi=ieeelongdouble and mabi=ibmlongdouble.
24077         * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
24078         check for -mabi=spe without SPE ABI support here.
24079         (rs6000_handle_option): Replace OPT_mabi_ handling with
24080         OPT_mabi_altivec and OPT_mabi_spe handling.
24081
24082 2011-05-06  Cary Coutant  <ccoutant@google.com>
24083
24084         * dwarf2out.c (contains_subprogram_definition): New function.
24085         (should_move_die_to_comdat): Call it.
24086
24087 2011-05-06  Jeff Law  <law@redhat.com>
24088
24089         * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
24090         remove_ctrl_stmt_and_useless_edges.
24091         (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
24092         (fixup_template_block, thread_single_edge): Likewise.
24093         (mark_threaded_blocks): Use THREAD_TARGET.
24094
24095 2011-05-06  Alan Modra  <amodra@gmail.com>
24096
24097         PR target/48900
24098         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
24099         const0_rtx as the arg to the dummy __tls_get_addr libcall.
24100
24101 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
24102
24103         * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
24104         constraint modifier to "r".
24105
24106 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
24107
24108         * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
24109         fall through for OPT_mcmodel_.
24110
24111 2011-05-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24112
24113         * config/s390/s390.c (s390_asm_trampoline_template): Comment
24114         instruction sizes.
24115         (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
24116
24117 2011-05-06  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
24118
24119         PR target/47930
24120         * config/arm/arm.opt (marm): Document it.
24121         (mthumb): Reject negative variant.
24122
24123 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
24124
24125         PR target/48898
24126         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
24127         Fix typo in "ccvt" variable name.
24128
24129 2011-05-06  Tristan Gingold  <gingold@adacore.com>
24130
24131         PR target/48895
24132         * config/vms/vms-ar.c (main): Remove cwd variable.
24133
24134 2011-05-06  Jakub Jelinek  <jakub@redhat.com>
24135
24136         PR debug/48902
24137         * var-tracking.c (prepare_call_arguments): Move else before #endif.
24138
24139 2011-05-05  Nathan Froyd  <froydnj@codesourcery.com>
24140
24141         * except.c (sjlj_emit_dispatch_table): Call build_case_label.
24142         * gimplify.c (gimplify_switch_expr): Likewise.
24143         * omp-low.c (expand_omp_sections): Likewise.
24144         * tree-eh.c (lower_try_finally_switch): Likewise.
24145         (lower_eh_dispatch): Likewise.
24146         * tree.h (build_case_label): Declare.
24147         * tree.c (build_case_label): Define.
24148
24149 2011-05-05  Jason Merrill  <jason@redhat.com>
24150
24151         PR c++/40975
24152         * tree-inline.c (copy_tree_r): Use copy_statement_list.
24153         (copy_statement_list): Don't recurse.
24154         * stor-layout.c (copy_self_referential_tree_r): Don't allow
24155         STATEMENT_LIST.
24156
24157 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
24158
24159         * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
24160         through from -mfpu= handling.
24161         * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
24162
24163 2011-05-05  Bernd Schmidt  <bernds@codesourcery.com>
24164
24165         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
24166         POST_MODIFY.
24167
24168 2011-05-05  Steve Ellcey  <sje@cup.hp.com>
24169
24170         * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
24171         for 11.31.
24172         (hppa[12]*-*-hpux11*): Ditto.
24173         (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
24174         * config/ia64/hpux-unix2003.h: New.
24175         * config/pa/pa-hpux1131.opt: New.
24176         * config/pa/pa-hpux1131.h: New.
24177         * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
24178         * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
24179         * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
24180
24181 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
24182
24183         PR debug/48853
24184         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
24185         instead of mode as 3rd argument to recursive call.
24186         (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
24187         emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
24188         VOIDmode.
24189         (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
24190         don't give up if mode is Pmode and mem_mode is not VOIDmode.
24191         (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
24192         use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
24193
24194 2011-05-05  Julian Brown  <julian@codesourcery.com>
24195
24196         * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
24197         parenthesis in D-register case.
24198
24199 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
24200
24201         * opt-functions.awk (var_type_struct): Handle Enum options.
24202         * optc-gen.awk: Don't check range of variables of character type.
24203         * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
24204         rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
24205         rs6000_sdata_name, rs6000_explicit_options): Remove.
24206         (rs6000_option_override_internal): Check for -malign-power here.
24207         Use global_options_set instead of rs6000_explicit_options.
24208         (rs6000_parse_fpu_option): Remove.
24209         (rs6000_handle_option): Access variables via opts and opts_set
24210         pointers.  Use error_at and warning_at.  Add fall-through
24211         comments.  Don't handle OPT_mcmodel_, OPT_maix_struct_return,
24212         OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
24213         OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
24214         OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
24215         here.  Don't use rs6000_parse_fpu_option.
24216         * config/rs6000/rs6000.h (fpu_type): Remove declaration.
24217         * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
24218         rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
24219         (mrecip=): Use Var.
24220         (mspe): Use Var and Save.
24221         (mtraceback=): Use Enum and Var.
24222         (rs6000_traceback_type): New Enum and EnumValue entries.
24223         (mfloat-gprs=): Use Enum, Var and Save.
24224         (rs6000_float_gprs): New Enum and EnumValue entries.
24225         (mlong-double-): use Var and Save.
24226         (msched-costly-dep=, minsert-sched-nops=): Use Var.
24227         (malign-): Use Enum and Var.
24228         (rs6000_alignment_flags): New Enum and EnumValue entries.
24229         (mfpu=): Use Enum.
24230         (fpu_type_t): New Enum and EnumValue entries.
24231         * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
24232         global_options_set instead of rs6000_explicit_options.
24233         * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
24234         global_options_set instead of rs6000_explicit_options.
24235         * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
24236         global_options_set instead of rs6000_explicit_options.
24237         * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
24238         global_options_set instead of rs6000_explicit_options.
24239         * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
24240         global_options_set instead of rs6000_explicit_options.
24241         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
24242         global_options_set instead of rs6000_explicit_options.
24243         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
24244         definition.
24245         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
24246         global_options_set instead of rs6000_explicit_options.
24247         * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
24248         (rs6000_cmodel): New Enum and EnumValue entries.
24249         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
24250         global_options_set instead of rs6000_explicit_options.
24251         * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
24252         (mtls-size=): Use Enum and Var.
24253         (rs6000_tls_size): New Enum and EnumValue entries.
24254
24255 2011-05-05  Michael Matz  <matz@suse.de>
24256
24257         * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
24258         * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
24259         * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
24260         * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
24261         * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
24262         * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
24263         * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
24264         * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
24265         * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
24266         * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
24267         * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
24268         * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
24269         * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
24270         * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
24271         * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
24272         * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
24273
24274 2011-05-05  Richard Guenther  <rguenther@suse.de>
24275
24276         * expmed.c (expand_variable_shift): Rename to ...
24277         (expand_shift_1): ... this.  Take an expanded shift amount.
24278         For rotates recurse directly not building trees for the shift amount.
24279         (expand_variable_shift): Wrap around expand_shift_1.
24280         (expand_shift): Adjust.
24281
24282 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
24283
24284         * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
24285
24286 2011-05-05  Eric Botcazou  <ebotcazou@adacore.com>
24287
24288         * tree.h (get_pending_sizes): Remove prototype.
24289         (put_pending_size): Likewise.
24290         (put_pending_sizes): Likewise.
24291         * stor-layout.c (pending_sizes): Delete.
24292         (get_pending_sizes): Likewise.
24293         (put_pending_size): Likewise.
24294         (put_pending_sizes): Likewise.
24295         (variable_size): Do not call put_pending_size and tidy up.
24296         * function.h (struct function): Remove dont_save_pending_sizes_p.
24297         * lto-streamer-in.c (input_function): Do not stream it.
24298         * lto-streamer-out.c (output_function): Likewise.
24299         * tree-inline.c (initialize_cfun): Do not copy it.
24300         * c-decl.c (store_parm_decls): Do not set it.
24301         * omp-low.c (create_task_copyfn): Likewise.
24302         * tree-optimize.c (tree_rest_of_compilation): Likewise.
24303
24304 2011-05-05  Uros Bizjak  <ubizjak@gmail.com>
24305
24306         * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
24307         conditions.
24308         (*movdf_internal): Ditto.
24309         (*movdf_internal_nointeger): Ditto.
24310         (*movsf_internal): Ditto.
24311
24312 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
24313
24314         * c-decl.c (finish_decl): Don't call get_pending_sizes.
24315         (grokparm): Add parameter expr.  Pass it to grokdeclarator.
24316         (push_parm_decl): Add parameter expr.  Pass it to grokdeclarator.
24317         (c_variable_size): Remove.
24318         (grokdeclarator): Use save_expr instead of c_variable_size.  Don't
24319         call put_pending_sizes.
24320         (get_parm_info): Add parameter expr.  Use it to set
24321         arg_info->pending_sizes.
24322         (store_parm_decls): Use arg_info->pending_sizes instead or calling
24323         get_pending_sizes.
24324         * c-parser.c (c_parser_parms_declarator): Update call to
24325         c_parser_parms_list_declarator.
24326         (c_parser_parms_list_declarator): Take parameter expr.  Update
24327         call to push_parm_decl.  Update recursive call.  Don't call
24328         get_pending_sizes.  Update calls to get_parm_info.
24329         (c_parser_objc_method_definition): Update calls to
24330         c_parser_objc_method_decl and objc_start_method_definition.
24331         (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
24332         (c_parser_objc_method_decl): Add parameter expr.  Update call to
24333         grokparm.
24334         (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
24335         * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
24336         (get_parm_info, grokparm, push_parm_decl): Update prototypes.
24337
24338 2011-05-05  Michael Hope  <michael.hope@linaro.org>
24339
24340         PR pch/45979
24341         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
24342         __ARM_EABI__ hosts.
24343
24344 2011-05-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
24345
24346         * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
24347         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
24348         (spu_output_mi_thunk): New function.
24349
24350 2011-05-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24351
24352         * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
24353         targetm.asm_out.print_operand.
24354         * config/sol2.c: Include target.h.
24355
24356 2011-05-04  Jan Hubicka  <jh@suse.cz>
24357
24358         * ipa-inline.c (reset_edge_caches): New function.
24359         (update_caller_keys): Add check_inlinablity_for; do not
24360         reset edge caches; remove now unnecesary loop.
24361         (update_callee_keys): Add comments; reset node_growth_cache of callee.
24362         (update_all_callee_keys): Likewise.
24363         (inline_small_functions): Sanity check cache; update code
24364         recomputing it.
24365
24366 2011-05-04  Bernd Schmidt  <bernds@codesourcery.com>
24367
24368         PR rtl-optimization/47612
24369         * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
24370         as the last insn of the sequence to be moved.
24371
24372 2011-05-04  Tobias Burnus  <burnus@net-b.de>
24373
24374         PR fortran/48864
24375         * doc/invoke.texi (Ofast): Document that it
24376         enables Fortran's -fno-protect-parens.
24377
24378 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
24379
24380         * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
24381
24382 2011-05-04  Eric Botcazou  <ebotcazou@adacore.com>
24383
24384         * stor-layout.c (variable_size): Do not issue errors.
24385
24386 2011-05-04  Richard Guenther  <rguenther@suse.de>
24387
24388         * coverage.c (tree_coverage_counter_ref): Use integer_type_node
24389         for array-ref indices.
24390         (tree_coverage_counter_addr): Likewise.
24391         (build_fn_info_type): Use size_int for index types.
24392         (build_gcov_info): Likewise.
24393
24394 2011-05-04  Richard Guenther  <rguenther@suse.de>
24395
24396         * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
24397         to build_int_cst.
24398         * c-typeck.c (really_start_incremental_init): Use bitsize_int
24399         for constructor indices.
24400         (push_init_level): Likewise.
24401
24402 2011-05-04  Richard Guenther  <rguenther@suse.de>
24403
24404         * explow.c (promote_mode): Move variable declarations before code.
24405
24406 2011-05-04  Nathan Froyd  <froydnj@codesourcery.com>
24407
24408         * tree.h (build_function_type_array): Declare.
24409         (build_varargs_function_type_array): Declare.
24410         (build_function_type_vec, build_varargs_function_type_vec): Define.
24411         * tree.c (build_function_type_array_1): New function.
24412         (build_function_type_array): New function.
24413         (build_varargs_function_type_array): New function.
24414
24415 2011-05-04  Richard Sandiford  <richard.sandiford@linaro.org>
24416
24417         * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
24418         before setting STMT_VINFO_TYPE.
24419
24420 2011-05-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
24421
24422         * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
24423         instead of spu_pass_by_reference.
24424
24425 2011-05-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24426
24427         * calls.c (emit_library_call_value_1): Invoke
24428         promote_function_mode hook on libcall arguments.
24429         * explow.c (promote_function_mode, promote_mode): Handle TYPE
24430         argument being NULL.
24431         * targhooks.c (default_promote_function_mode): Lisewise.
24432         * config/s390/s390.c (s390_promote_function_mode): Likewise.
24433         * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
24434
24435         * doc/tm.texi: Document that TYPE argument might be NULL.
24436
24437 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
24438
24439         * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
24440
24441 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
24442
24443         From Bernd Schmidt
24444         * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
24445
24446 2011-05-04  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24447
24448         * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
24449         (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
24450         Move ...
24451         * mips-tfile.c: ... here.
24452         Don't include coretypes.h, tm.h, filenames.h.
24453         (saber_stop): Remove definition and all calls.
24454         [__SABER__]: Remove.
24455         (__LINE__): Remove default.
24456         (Size_t, Ptrdiff_t): Remove definitions.
24457         Replace by size_t, ptrdiff_t.
24458         [!MIPS_DEBUGGING_INFO]: Remove.
24459         (SHASH_SIZE, THASH_SIZE): Remove defaults.
24460         (progname): Add const.
24461         (STATIC): Remove.
24462         Replace all uses by static.
24463         (ALIGN_SYMTABLE_OFFSET): Remove default.
24464         * mips-tdump.c: Don't include coretypes.h, tm.h.
24465         Remove !MIPS_IS_STAB guard.
24466         * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
24467         $(TM_H), filenames.h dependencies.
24468         (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
24469
24470 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
24471
24472         From Jie Zhang
24473         *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
24474         (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
24475
24476 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
24477
24478         From Bernd Schmidt
24479         * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
24480         account and save/restore RETS.
24481         (PROFILE_BEFORE_PROLOGUE): Define.
24482         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character.  Correct
24483         the push insn to use predecrement.
24484
24485 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
24486
24487         From Jie Zhang
24488         * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
24489
24490 2011-05-04  Nick Clifton  <nickc@redhat.com>
24491
24492         * config/mn10300/mn10300.c: Include cfgloop.h.
24493         (DUMP): New macro.
24494         (mn10300_insert_setlb_lcc): New function.  Inserts a SETLB and a
24495         Lcc or a FLcc insn into the instruction stream.
24496         (mn10300_block_contains_call): New function.  Returns true if the
24497         given basic block contains a CALL insn.
24498         (mn10300_loop_contains_call_insn): New function.  Returns true if
24499         the given loop contains a CALL insn.
24500         (mn10300_scan_for_setlb_lcc): New function.  Finds opportunities
24501         to use the SETLB and Lcc or FLcc insns.
24502         (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
24503         (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
24504         * config/mn10300/mn10300.opt (msetlb): New option.  Used to
24505         disable the SETLB optimization.
24506         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
24507         __SETLB__ or __NO_SETLB__.
24508         * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
24509         (movsf_internal): Handle MDR register.
24510         (cmpsi): Make visible.
24511         (setlb): New pattern.
24512         (Lcc): New pattern.
24513         (FLcc): New pattern.
24514
24515 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
24516
24517         PR target/48860
24518         * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
24519         for reg<->xmm moves.
24520         * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
24521         (vec_concatv2di_rex64_sse): Ditto.
24522         (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
24523         (*vec_extractv2di_1_rex64): Ditto.
24524
24525         Revert:
24526         2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
24527
24528         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
24529         reg<->xmm moves.
24530         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
24531
24532 2011-05-04  Richard Guenther  <rguenther@suse.de>
24533
24534         * tree.h (int_const_binop): Remove notrunc argument.
24535         * fold-const.c (int_const_binop): Remove notrunc argument.  Always
24536         create integer constants that are properly truncated.
24537         (extract_muldiv_1): Expand one notrunc int_const_binop caller.
24538         (const_binop): Remove zero notrunc argument to int_const_binop.
24539         (size_binop_loc): Likewise.
24540         (fold_div_compare): Likewise.
24541         (maybe_canonicalize_comparison_1): Likewise.
24542         (fold_comparison): Likewise.
24543         (fold_binary_loc): Likewise.
24544         (multiple_of_p): Likewise.
24545         * expr.c (store_constructor): Likewise.
24546         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
24547         (maybe_fold_stmt_addition): Likewise.
24548         * ipa-prop.c (ipa_modify_call_arguments): Likewise.
24549         * stor-layout.c (layout_type): Likewise.
24550         * tree-data-ref.c (tree_fold_divides_p): Likewise.
24551         * tree-sra.c (build_ref_for_offset): Likewise.
24552         (build_user_friendly_ref_for_offset): Likewise.
24553         * tree-ssa-address.c (maybe_fold_tmr): Likewise.
24554         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
24555         * tree-ssa-loop-niter.c (inverse): Likewise.
24556         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
24557         * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
24558         * tree-switch-conversion.c (check_range): Likewise.
24559         (build_constructors): Likewise.
24560         * tree-vect-generic.c (expand_vector_piecewise): Likewise.
24561         * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
24562         (extract_range_from_assert): Likewise.
24563         (vrp_int_const_binop): Likewise.
24564         (extract_range_from_binary_expr): Likewise.
24565         (extract_range_from_unary_expr): Likewise.
24566         (check_array_ref): Likewise.
24567         (find_case_label_range): Likewise.
24568         (simplify_div_or_mod_using_ranges): Likewise.
24569         * tree-cfg.c (group_case_labels_stmt): Use double-ints for
24570         comparing case labels for merging.
24571
24572 2011-05-03  Mark Wielaard  <mjw@redhat.com>
24573
24574         * dwarf2out.c (debug_str_hash_forced): Removed.
24575         (gen_label_for_indirect_string): Removed.
24576         (get_debug_string_label): Removed.
24577         (AT_string_form): Generate label directly.
24578         (output_indirect_string): Test indirect_string_node for
24579         DW_FORM_strp instead of checking label and refcount.
24580         (prune_indirect_string): Removed.
24581         (prune_unused_types): Don't check debug_str_hash_forced or
24582         call prune_indirect_string.
24583
24584 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
24585
24586         PR other/48093
24587         * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
24588
24589 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
24590
24591         PR debug/47994
24592         PR debug/47919
24593         * combine.c (try_combine): Skip debug insns at m_split tests.
24594
24595 2011-04-26  Mark Wielaard  <mjw@redhat.com>
24596
24597         PR42288
24598         * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
24599         when info_section_emitted.
24600
24601 2011-05-03  Joseph Myers  <joseph@codesourcery.com>
24602
24603         * config/mips/mips-opts.h: New.
24604         * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
24605         to mips-opts.h.
24606         (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
24607         (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
24608         or OPT_mr10k_cache_barrier_ here.  Access mips_cache_flush_func
24609         via opts pointer.
24610         * config/mips/mips.h (enum mips_code_readable_setting): Move to
24611         mips-opts.h.
24612         (mips_abi, mips_code_readable): Don't declare.
24613         * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
24614         (mabi=): Use Enum and Var.
24615         (mips_abi): New Enum and EnumValue entries.
24616         (mcode-readable=): Use Enum and Var.
24617         (mips_code_readable_setting): New Enum and EnumValue entries.
24618         (mr10k-cache-barrier=): Use Enum and Var.
24619         (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
24620
24621 2011-05-03  Jan Hubicka  <jh@suse.cz>
24622
24623         * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
24624         replace hash by pointer map.
24625         (cgraph_node_set_element_def, cgraph_node_set_element,
24626         const_cgraph_node_set_element, varpool_node_set_element_def,
24627         varpool_node_set_element, const_varpool_node_set_element): Remove.
24628         (free_cgraph_node_set, free_varpool_node_set): New function.
24629         (cgraph_node_set_size, varpool_node_set_size): Use vector size.
24630         * tree-emutls.c: Free varpool node set.
24631         * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
24632         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
24633         debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
24634         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
24635         dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
24636         Move here from ipa.c; implement using pointer_map
24637         * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
24638         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
24639         debug_cgraph_node_set, varpool_node_set_new,
24640         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
24641         dump_varpool_node_set, debug_varpool_node_set):
24642         Move to ipa-uitls.c.
24643         * passes.c (ipa_write_summaries): Update.
24644
24645 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
24646
24647         From Mike Frysinger:
24648         * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
24649         bf542/bf544/bf547/bf548/bf549.
24650
24651 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
24652
24653         * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
24654
24655 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
24656
24657         From Bernd Schmidt:
24658         * config/bfin/bfin.md (MOVCC): New mode_macro.
24659         (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
24660         movsicc_insn1, movsicc_insn2 and movsicc and macroized.  Remove
24661         comments from generated assembly.
24662
24663 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
24664
24665         From Bernd Schmidt
24666         * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
24667         * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
24668         * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
24669         * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
24670         * config/bfin/lib1funcs.asm (___muldi3): New function.
24671
24672 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
24673
24674         * config/stormy16/stormy16 (xstormy16_init_builtins): Call
24675         build_function_type_list instead of build_function_type.
24676         Rearrange initialization of `args' to do so.
24677
24678 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
24679
24680         * config/i386/i386.c (ix86_code_end): Call build_function_type_list
24681         instead of build_function_type.
24682
24683 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
24684
24685         * config/rs6000/rs6000.c (spe_init_builtins): Call
24686         build_function_type_list instead of build_function_type.
24687         (paired_init_builtins, altivec_init_builtins): Likewise.
24688         (builtin_function_type): Likewise.
24689
24690 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
24691
24692         * config/sh/sh.c (sh_media_init_builtins): Call
24693         build_function_type_list instead of build_function_type.
24694
24695 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
24696
24697         * config/sparc/sparc.c (sparc_file_end): Call
24698         build_function_type_list instead of build_function_type.
24699
24700 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
24701
24702         * config/alpha/alpha.c (alpha_init_builtins): Call
24703         build_function_type_list instead of build_function_type.
24704
24705 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
24706
24707         * config/xtensa/xtensa.c (xtensa_init_builtins): Call
24708         build_function_type_list instead of build_function_type.
24709
24710 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
24711
24712         * config/iq2000/i2000.c (iq2000_init_builtins): Call
24713         build_function_type_list instead of build_function_type.
24714         Delete `endlink' variable.
24715
24716 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
24717
24718         * config/avr/avr.c (avr_init_builtins): Call
24719         build_function_type_list instead of build_function_type.
24720
24721 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
24722
24723         * config/picochip/picochip.c (picochip_init_builtins): Call
24724         build_function_type_list instead of build_function_type.
24725         Delete `endlink' variable.
24726
24727 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
24728
24729         * config/bfin/bfin.c (bfin_init_builtins): Call
24730         build_function_type_list instead of build_function_type.
24731
24732 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
24733
24734         From Bernd Schmidt
24735         * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
24736         that's not CONST_INT.  Seemingly redundant check is due to PR39768.
24737
24738 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
24739
24740         From Jie Zhang:
24741         * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
24742         libbffastfp overrides libgcc when -mfast-fp.
24743
24744 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
24745
24746         Originally from Bernd Schmidt
24747         * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
24748         * config/bfin/bfin.c (override_options): Test it and error if
24749         TARGET_FDPIC.
24750
24751 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
24752
24753         Originally From Bernd Schmidt
24754         * config/bfin/bfin.c (override_options): Disable -fstack-limit for
24755         FD-PIC.
24756
24757 2011-05-03  Jeff Law  <law@redhat.com>
24758
24759         * tree-ssa-threadupdate.c (THREAD_TARGET): define.
24760         (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
24761         (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
24762         than accessing AUX field directly.  Free the AUX field before
24763         clearing it.
24764         (thread_block, thread_through_loop_header): Likewise.
24765         (thread_single_edge, mark_threaded_blocks): Likewise.
24766         (redirect_edges): Delay clearing the AUX field.  Free the AUX field.
24767         (register_jump_thread): Do not attempt to thread to a NULL edge.
24768
24769 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
24770
24771         * function.c (init_function_start): Call decide_function_section.
24772         * varasm.c (decide_function_section): New function.
24773         (assemble_start_function): When not using
24774         flag_reorder_blocks_and_partition, don't compute in_cold_section_p
24775         or first_function_block_is_cold.
24776         * rtl.h (decide_function_section): Declare.
24777
24778 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
24779             Jakub Jelinek  <jakub@redhat.com>
24780
24781         PR target/48774
24782         * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
24783         only succeed if req_mode is the same as set_mode.
24784
24785 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
24786
24787         * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
24788         * genemit.c (gen_exp): Handle RETURN.
24789         * emit-rtl.c (verify_rtx_sharing): Likewise.
24790         (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
24791         * rtl.c (copy_rtx): RETURN is shared.
24792         * rtl.h (enum global_rtl_index): Add GR_RETURN.
24793         (ret_rtx): New.
24794         * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
24795         * config/s390/s390.c (s390_emit_epilogue): Likewise.
24796         * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
24797         * config/cris/cris.c (cris_expand_return): Likewise.
24798         * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
24799         * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
24800         rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
24801         * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
24802         * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
24803         Likewise.
24804         * config/v850/v850.c (expand_epilogue): Likewise.
24805         * config/bfin/bfin.c (bfin_expand_call): Likewise.
24806         * config/arm/arm.md (epilogue): Likewise.
24807         * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
24808         * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
24809         variable to ret_reg.
24810
24811 2011-05-03  Richard Guenther  <rguenther@suse.de>
24812
24813         PR lto/48846
24814         * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
24815         Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
24816         * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
24817
24818 2011-05-03  Richard Guenther  <rguenther@suse.de>
24819
24820         * c-decl.c (grokdeclarator): Instead of looking at
24821         TREE_OVERFLOW check if the constant fits in the index type.
24822
24823 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
24824
24825         * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
24826         (vec_store_lanes<mode><mode>): Likewise.
24827
24828 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
24829
24830         * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
24831         * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
24832         convert_optab_index values.
24833         (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
24834         * genopinit.c (optabs): Initialize the new optabs.
24835         * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
24836         * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
24837         (expand_STORE_LANES): New functions.
24838         * tree.h (build_array_type_nelts): Declare.
24839         * tree.c (build_array_type_nelts): New function.
24840         * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
24841         (vect_model_load_cost): Likewise.
24842         (vect_store_lanes_supported, vect_load_lanes_supported)
24843         (vect_record_strided_load_vectors): Declare.
24844         * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
24845         (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
24846         (vect_transform_strided_load): Split out statement recording into...
24847         (vect_record_strided_load_vectors): ...this new function.
24848         * tree-vect-stmts.c (create_vector_array, read_vector_array)
24849         (write_vector_array, create_array_ref): New functions.
24850         (vect_model_store_cost): Add store_lanes_p argument.
24851         (vect_model_load_cost): Add load_lanes_p argument.
24852         (vectorizable_store): Try to use store-lanes functions for
24853         interleaved stores.
24854         (vectorizable_load): Likewise load-lanes and loads.
24855         * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
24856         to vect_model_store_cost.
24857         (vect_build_slp_tree): Likewise vect_model_load_cost.
24858
24859 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
24860
24861         * hooks.h (hook_bool_mode_uhwi_false): Declare.
24862         * hooks.c (hook_bool_mode_uhwi_false): New function.
24863         * target.def (array_mode_supported_p): New hook.
24864         * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
24865         * doc/tm.texi: Regenerate.
24866         * stor-layout.c (mode_for_array): New function.
24867         (layout_type): Use it.
24868         * config/arm/arm.c (arm_array_mode_supported_p): New function.
24869         (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
24870
24871 2011-05-03  Eric Botcazou  <ebotcazou@adacore.com>
24872
24873         PR target/48723
24874         * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
24875         for -fstack-check if the size to allocate is negative.
24876
24877 2011-05-02  Lawrence Crowl  <crowl@google.com>
24878
24879         * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
24880         (timevar_cond_start): New for starting a timer only when it is not
24881         already running.
24882         (timevar_cond_stop): New for stopping a timer when it was not already
24883         running.
24884
24885         * timevar.c (timevar_stop): Enable start/stop timers to start again.
24886         (timevar_cond_start): New as above.
24887         (timevar_cond_stop): New as above.
24888
24889         * timevar.def: Add start/stop timers for compiler phases,
24890         TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
24891         TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
24892         and TV_PHASE_FINALIZE.
24893         Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
24894         Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
24895         TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
24896         Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
24897         Make unused TV_OVERLOAD into a start/stop timer.
24898
24899         Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
24900         Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
24901         to indicate that they are start/stop timers.
24902
24903         * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
24904         Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
24905         Move initialization to do_compile.
24906         (do_compile): Add initialization from above.
24907         Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
24908
24909         * c-decl.c (c_write_global_declarations): Add start/stop of
24910         TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
24911
24912         * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
24913         or TV_PARSE_INLINE, as appropriate.
24914         (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
24915         (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
24916
24917 2011-05-02  Jason Merrill  <jason@redhat.com>
24918
24919         PR c++/40975
24920         * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
24921
24922 2011-05-02  Simon Martin  <simartin@users.sourceforge.net>
24923
24924         PR c/35445
24925         * c-decl.c (finish_decl): Only create a composite if the types are
24926         compatible.
24927
24928 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
24929
24930         * config/fr30/fr30-protos.h (Mmode): Don't define.
24931         * config/m32r/m32r-protos.h (Mmode): Don't define.  Expand
24932         definition where used.
24933         * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
24934         define.  Expand definitions where used.
24935         * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
24936         Expand definitions where used.
24937         * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
24938         rx_function_arg, rx_function_arg_advance,
24939         rx_function_arg_boundary): Expand definitions of those macros.
24940         * config/v850/v850-protos.h (Mmode): Don't define.  Expand
24941         definition where used.
24942
24943 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
24944
24945         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
24946         reg<->xmm moves.
24947         (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
24948         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.  Merge
24949         with *movv2sf_internal_rex64_avx.
24950         (*movv2sf_internal): Merge with *movv2sf_internal_avx.
24951         * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
24952         Use %v prefix in insn mnemonic to handle TARGET_AVX.
24953         (*movdi_internal): Add "isa" attribute.  Use "maybe_vex" instead of
24954         "vex" in "prefix" attribute calculation.
24955         (*movdf_internal): Output AVX mnemonics.  Add "prefix" attribute.
24956
24957 2011-05-02  Stuart Henderson  <shenders@gcc.gnu.org>
24958
24959         PR target/47951
24960         * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
24961         inputs match the output.
24962
24963 2011-05-02  Andreas Schwab  <schwab@linux-m68k.org>
24964
24965         PR target/47955
24966         * config/m68k/m68k.c (m68k_expand_prologue): Set
24967         current_function_static_stack_size.
24968
24969 2011-05-02   Jan Hubicka  <jh@suse.cz>
24970
24971         * lto-streamer.c (lto_streamer_cache_insert_1,
24972         lto_streamer_cache_lookup, lto_streamer_cache_create,
24973         lto_streamer_cache_delete): Use pointer map instead of hashtable.
24974         * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
24975
24976 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
24977
24978         * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
24979         config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
24980         config/m68k/t-opts: New files.
24981         * config/m68k/m68k-tables.opt: New file (generated).
24982         * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
24983         extra_options and m68k/t-opts to tmake_file.
24984         * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
24985         (all_isas): Initialize using m68k-isas.def.
24986         (all_microarchs): Initialize using m68k-microarchs.def.
24987         (m68k_find_selection): Remove.
24988         (m68k_handle_option): Don't assert that global structures are in
24989         use.  Use error_at.  Access variables via opts pointer.  Don't
24990         handle -march=, -mcpu= and -mtune= here.  Set gcc_options fields
24991         directly for -m68020-40 and -m68020-60.
24992         (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
24993         m68k_tune_entry here.
24994         * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
24995         to m68k-opts.h.
24996         (m68k_library_id_string): Remove declaration.
24997         * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
24998         (m68k_library_id_string): New Variable.
24999         (march=, mcpu=, mtune=): Use Enum and Var.
25000
25001 2011-05-02  Richard Guenther  <rguenther@suse.de>
25002
25003         * varasm.c (output_constructor_regular_field): Compute zero-based
25004         index with double-ints.  Make sure to ICE instead of producing
25005         wrong code.
25006         * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
25007         in asserts.  Properly use a signed type.
25008
25009 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
25010
25011         * config/i386/sse.md (V): New mode iterator.
25012         (V_128): Rename from SSEMODE.  Make V2DF mode conditional on
25013         TARGET_SSE2.
25014         (V_256): Rename from AVX256MODE.
25015         (VF): Make V4SF mode unconditional.  Add TARGET_SSE instruction
25016         condition to all users.
25017         (VF1): Ditto.
25018         (VF2): Make V2DF mode unconditional.  Add TARGET_SSE2 instruction
25019         condition to all users.
25020         (VF_128): Make V4SF mode unconditional.
25021         (VF_256): Rename from AVX256MODEF2P.
25022         (VI4F_128): Rename from SSEMODE4S.
25023         (VI8F_128): Rename from SSEMODE2D.
25024         (VI4F_256): Rename from AVX256MODE8P.
25025         (VI8F_256): Rename from AVX256MODE4P.
25026         (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
25027         (ssescalarmodesuffix): Remove SF and DF modes.
25028         (SSEMODE124): Remove.
25029         (SSEMODE1248): Ditto.
25030         (SSEMODEF2P): Ditto.
25031         (AVXMODEF2P): Ditto.
25032         (AVXMODEFDP): Ditto.
25033         (AVXMODEFSP): Ditto.
25034         (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
25035         unconditional.
25036         (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO.  Make V4SF mode
25037         unconditional.
25038         (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
25039         xop_pcmov_<mode>256.  Use V mode iterator.
25040
25041         Adjust RTX patterns globally for renamed mode attributes.
25042
25043 2011-05-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
25044
25045         * haifa-sched.c (sched_emit_insn): Emit insn before first
25046         non-scheduled insn.  Inform back-end about new insn.  Add
25047         new insn to scheduled_insns list.
25048
25049 2011-05-02  Richard Guenther  <rguenther@suse.de>
25050
25051         PR tree-optimization/48822
25052         * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
25053         (process_scc): Indicate which iteration we start.
25054
25055 2011-05-02  Jan Hubicka  <jh@suse.cz>
25056
25057         * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
25058         (lto_section_overrun): New.
25059         * lto-section-out.c (append_block): Rename to ...
25060         (lto_append_block): ... this one; export.
25061         (lto_output_1_stream): Move lto lto-streamer.h
25062         (lto_output_data_stream): Update.
25063         * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
25064         (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
25065         functions.
25066
25067 2011-05-02  Richard Guenther  <rguenther@suse.de>
25068
25069         * tree.c (tree_code_counts): New global array.
25070         (record_node_allocation_statistics): Count individual tree codes.
25071         (dump_tree_statistics): Dump individual code stats.
25072
25073 2011-05-01  Jan Hubicka  <jh@suse.cz>
25074
25075         * ipa-inline.c (caller_growth_limits): Fix thinko when
25076         looking for largest stack frame.
25077         * ipa-inline.h (dump_inline_summary): Declare.
25078         * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
25079         on stack usage.
25080         (dump_inline_summary): Export.
25081         (debug_inline_summary): Declare as DEBUG_FUNCTION.
25082
25083 2011-05-01  Anatoly Sokolov  <aesok@post.ru>
25084
25085         * reginfo.c (memory_move_cost): Change rclass argument type form
25086         'enum reg_class' to reg_class_t.
25087         * reload.h (memory_move_cost): Update prototype.
25088         * postreload.c reload_cse_simplify_set): Change type dclass var to
25089         reg_class_t.
25090         * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
25091         Update prototype.
25092         (ira_allocate_and_set_costs): Change aclass argument type form
25093         'enum reg_class' to reg_class_t.
25094         * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
25095         Change aclass argument type to reg_class_t.
25096         (update_conflict_hard_reg_costs): Change type aclass and pref vars
25097         to reg_class_t.
25098         * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
25099         memory_move_cost call.
25100
25101         * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
25102         'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
25103         Change type tmp var to reg_class_t.
25104
25105 2011-04-30  Jan Hubicka  <jh@suse.cz>
25106
25107         * ipa-inline.c (can_inline_edge_p): Disregard limits when
25108         inlining into function with flatten attribute.
25109         (want_inline_small_function_p): Be more realistic about inlining
25110         cold calls where callee size grows.
25111
25112 2011-04-30  Jan Hubicka  <jh@suse.cz>
25113
25114         * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
25115         flags.
25116
25117 2011-04-30  Anatoly Sokolov  <aesok@post.ru>
25118
25119         * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
25120         PRINT_OPERAND_PUNCT_VALID_P): Remove.
25121         * config/sparc/sparc-protos.h (print_operand): Remove declaration.
25122         * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
25123         TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
25124         (print_operand): Rename to...
25125         (sparc_print_operand): ...this. Make static. Adjust
25126         sparc_print_operand function call.
25127         (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
25128         functions.
25129
25130 2011-04-30  Jan Hubicka  <jh@suse.cz>
25131
25132         PR middle-end/48752
25133         * ipa-inline.c (early_inliner): Disable when doing late
25134         addition of function.
25135
25136 2011-04-30  Jakub Jelinek  <jakub@redhat.com>
25137
25138         * dwarf2out.c (get_address_mode): New inline.
25139         (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
25140         if not dwarf_strict emit
25141         DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
25142         desirable.  Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
25143         UNSIGNED_FLOAT, FIX and UNSIGNED_FIX.  Just return NULL for
25144         FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
25145         (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
25146         dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
25147         mem_loc_descriptor callers.
25148         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
25149         output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
25150         Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
25151         DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
25152         (base_types): New variable.
25153         (get_base_type_offset, calc_base_type_die_sizes,
25154         base_type_for_mode, mark_base_types, base_type_cmp,
25155         move_marked_base_types): New functions.
25156         (calc_die_sizes): Assert that die_offset is 0 or equal to
25157         next_die_offset.
25158         (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
25159         others defer to mem_loc_descriptor.  Adjust mem_loc_descriptor
25160         callers.  If not dwarf_strict, call mem_loc_descriptor even for
25161         non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
25162         (gen_subprogram_die): Don't give up on call site parameters
25163         with non-integral or large integral modes.  Adjust
25164         mem_loc_descriptor callers.
25165         (prune_unused_types): Call prune_unused_types_mark on base_types
25166         vector entries.
25167         (resolve_addr): Call mark_base_types.
25168         (dwarf2out_finish): Call move_marked_base_types.
25169
25170         PR tree-optimization/48809
25171         * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
25172         type.
25173         (gen_inbound_check): Don't compute index_expr - range_min in utype
25174         again, instead reuse SSA_NAME initialized in build_arrays.
25175         Remove two useless gsi_for_stmt calls.
25176
25177 2011-04-29  Jeff Law  <law@redhat.com>
25178
25179         * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
25180
25181 2011-04-29  Martin Jambor  <mjambor@suse.cz>
25182
25183         * cgraph.h (cgraph_postorder): Remove declaration.
25184         * ipa-utils.h (ipa_free_postorder_info): Declare.
25185         (ipa_reverse_postorder): Likewise.
25186         * cgraphunit.c: Include ipa-utils.h.
25187         (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
25188         * ipa-inline.c: Include ipa-utils.h.
25189         (ipa_inline): Update call to ipa_reverse_postorder.
25190         * ipa-pure-const.c (propagate_pure_const): Update call to
25191         ipa_reduced_postorder and ipa_print_order.  Call
25192         ipa_free_postorder_info to clean up.
25193         (propagate_nothrow): Likewise.
25194         * ipa-reference.c (propagate): Removed a useless call to
25195         ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
25196         and ipa_print_order.  Call ipa_free_postorder_info to clean up.
25197         * ipa.c: Include ipa-utils.h.
25198         (ipa_profile): Update call to ipa_reverse_postorder.
25199         (cgraph_postorder): Moved to...
25200         * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
25201         (ipa_utils_print_order): Renamed to ipa_print_order.
25202         (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
25203         comments.
25204         (ipa_free_postorder_info): New function.
25205         * passes.c: Include ipa-utils.h.
25206         (do_per_function_toporder): Update call to ipa_reverse_postorder.
25207         (ipa_write_summaries): Likewise.
25208         * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
25209         (cgraphunit.o): Likewise.
25210         (ipa.o): Likewise.
25211         (ipa-inline.o): Likewise.
25212
25213 2011-04-29  Jan Hubicka  <jh@suse.cz>
25214
25215         * ipa-inline.h (clause_t): Turn into unsigned int.
25216         * ipa-inline-analysis.c (add_clause): Do more simplification.
25217         (and_predicates): Shortcut more cases.
25218         (predicates_equal_p): Move forward; check that clauses are properly
25219         ordered.
25220         (or_predicates): Shortcut more cases.
25221         (edge_execution_predicate): Rewrite as...
25222         (set_cond_stmt_execution_predicate): ... this function; handle
25223         __builtin_constant_p.
25224         (set_switch_stmt_execution_predicate): New .
25225         (compute_bb_predicates): New.
25226         (will_be_nonconstant_predicate): Update TODO.
25227         (estimate_function_body_sizes): Use compute_bb_predicates
25228         and free them later, always try to estimate if stmt is constant.
25229         (estimate_time_after_inlining, estimate_size_after_inlining):
25230         Gracefully handle optimized out edges.
25231         (read_predicate): Fix off by one error.
25232
25233 2011-04-29  Nicola Pero  <nicola.pero@meta-innovation.com>
25234
25235         * Makefile.in (ENABLE_MAINTAINER_RULES): New.
25236
25237 2011-04-27  Xinliang David Li  <davidxl@google.com>
25238
25239         * tree-profile.c (init_ic_make_global_vars): Set
25240         tls attribute on ic vars.
25241         * coverage.c (coverage_end_function): Initialize
25242         function_list with zero.
25243
25244 2011-04-29  Richard Guenther  <rguenther@suse.de>
25245
25246         * builtins.c (fold_builtin_classify_type): Use integer_type_node
25247         for the type of the result.
25248         (fold_builtin_isascii): Likewise.
25249         (fold_builtin_toascii): Use integer_type_node where appropriate.
25250         (fold_builtin_logb): Likewise.
25251         (fold_builtin_frexp): Likewise.
25252         (fold_builtin_strstr): Likewise.
25253         (fold_builtin_strpbrk): Likewise.
25254         (fold_builtin_fputs): Likewise.
25255         (fold_builtin_sprintf): Likewise.
25256         (fold_builtin_snprintf): Likewise.
25257         (fold_builtin_printf): Likewise.
25258         (do_mpfr_remquo): Use a proper type for the assigned constant.
25259         (do_mpfr_lgamma_r): Likewise.
25260         * dwarf2out.c (resolve_one_addr): Use size_int.
25261         * except.c (init_eh): Likewise.
25262         (assign_filter_values): Use integer_type_node for filter values.
25263         (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
25264         indices.
25265         * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
25266         for EH region numbers.
25267         * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
25268         for the shift amount.
25269
25270 2011-04-29  Richard Guenther  <rguenther@suse.de>
25271
25272         * expr.h (expand_shift): Rename to ...
25273         (expand_variable_shift): ... this.
25274         (expand_shift): Take a constant shift amount.
25275         * expmed.c (expand_shift): Rename to ...
25276         (expand_variable_shift): ... this.
25277         (expand_shift): New wrapper around expand_variable_shift.
25278         * expr.c (convert_move, emit_group_load_1, emit_group_store,
25279         optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
25280         expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
25281         * expmed.c (store_fixed_bit_field, extract_bit_field_1,
25282         extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
25283         expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
25284         extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
25285         emit_store_flag_1, emit_store_flag): Likewise.
25286         * builtins.c (expand_builtin_signbit): Likewise.
25287         * calls.c (load_register_parameters): Likewise.
25288         * function.c (assign_parm_setup_block): Likewise.
25289         * lower-subreg.c (resolve_shift_zext): Likewise.
25290         * optabs.c (widen_bswap, expand_abs_nojump,
25291         expand_one_cmpl_abs_nojump, expand_float): Likewise.
25292         * spu/spu.c (spu_expand_extv): Likewise.
25293         * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
25294
25295 2011-04-29  Richard Guenther  <rguenther@suse.de>
25296
25297         * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
25298         for the remapped region number.
25299         * predict.c (build_predict_expr): Use integer_type_node for the
25300         predict kind.
25301         * fold-const.c (fold_binary_loc): Use integer_type_node for
25302         the shift amount.  Use a proper type for the PLUS_EXPR operand.
25303
25304 2011-04-29  Michael Matz  <matz@suse.de>
25305
25306         * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
25307         other trees that just builtins.
25308         (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
25309
25310 2011-04-29  Richard Guenther  <rguenther@suse.de>
25311
25312         * tree-nested.c (get_trampoline_type): Use size_int.
25313         (get_nl_goto_field): Likewise.
25314         * tree-eh.c (lower_try_finally_switch): Use integer_type_node
25315         for all indexes.
25316         (lower_eh_constructs_2): Likewise.
25317         (lower_resx): Likewise.
25318         (lower_eh_dispatch): Likewise.
25319         * tree-mudflap.c (mf_build_string): Use size_int.
25320         (mudflap_register_call): Use integer_type_node for the flag.
25321         (mudflap_enqueue_constant): Use size_int.
25322         * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
25323         instead of rebuilding it.
25324
25325 2011-04-29  Richard Guenther  <rguenther@suse.de>
25326
25327         * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
25328         Handle OBJ_TYPE_REF.
25329         (find_func_aliases_for_call): Use it more consistently.
25330
25331 2011-04-29  Alexandre Oliva  <aoliva@redhat.com>
25332
25333         * haifa-sched.c (last_nondebug_scheduled_insn): New.
25334         (rank_for_schedule): Use it.
25335         (schedule_block): Set it.
25336
25337 2011-04-28  David Li  <davidxl@google.com>
25338
25339         * tree.c (crc32_string): Use crc32_byte.
25340         (crc32_byte): New function.
25341         * tree.h (crc32_byte): New function.
25342         * gcov.c (read_graph_file): Handle new cfg_cksum.
25343         (read_count_file): Ditto.
25344         * profile.c (instrument_values): Ditto.
25345         (get_exec_counts): Ditto.
25346         (read_profile_edge_counts): Ditto.
25347         (compute_branch_probabilities): Ditto.
25348         (compute_value_histograms): Ditto.
25349         (branch_prob): Ditto.
25350         (end_branch_prob): Ditto.
25351         * coverage.c (read_counts_file): Ditto.
25352         (get_coverage_counts): Ditto.
25353         (tree_coverage_counter_addr): Ditto.
25354         (coverage_checksum_string): Ditto.
25355         (coverage_begin_output): Ditto.
25356         (coverage_end_function): Ditto.
25357         (build_fn_info_type): Ditto.
25358         (build_fn_info_value): Ditto.
25359         * libgcov.c (gcov_exit): Ditto.
25360         * gcov-dump.c (tag_function): Ditto.
25361         (compute_checksum): Remove.
25362
25363 2011-04-29  Alan Modra  <amodra@gmail.com>
25364
25365         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
25366         unspec plus offset.  Tidy macho code.
25367
25368 2011-04-29  Martin Jambor  <mjambor@suse.cz>
25369
25370         * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
25371         node instead of a decl.  Update all callers.
25372         * cgraph.h: Update declaration.
25373
25374 2011-04-28  Ira Rosen  <ira.rosen@linaro.org>
25375
25376         PR tree-optimization/48765
25377         * tree-vectorizer.h (vect_make_slp_decision): Return bool.
25378         * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
25379         to indicate if loop aware SLP is being used.  Scan the statements
25380         and update the vectorization factor according to the type of
25381         vectorization before statement analysis.
25382         (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
25383         pass it to vect_analyze_loop_operations.
25384         (vectorizable_reduction): Set number of copies to 1 in case of pure
25385         SLP statement.
25386         * tree-vect-stmts.c (vectorizable_conversion,
25387         vectorizable_assignment, vectorizable_shift,
25388         vectorizable_operation, vectorizable_type_demotion,
25389         vectorizable_type_promotion, vectorizable_store, vectorizable_load):
25390         Likewise.
25391         (vectorizable_condition): Move the check that it is not SLP
25392         vectorization before the number of copies check.
25393         * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
25394         to vectorize the loop using SLP.
25395
25396 2011-04-28  Jakub Jelinek  <jakub@redhat.com>
25397
25398         PR middle-end/48597
25399         * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
25400         inline asm.
25401
25402 2011-04-28  Joseph Myers  <joseph@codesourcery.com>
25403
25404         * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
25405         *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
25406         (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
25407         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
25408         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
25409         linux*.h headers.
25410         * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
25411         * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
25412         * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
25413         * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
25414         * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
25415         * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
25416         REG_NAME.
25417         * config/i386/linux.h (REG_NAME): Don't define.
25418         * config/i386/linux64.h (REG_NAME): Don't define.
25419         * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
25420         Undefine before defining.
25421
25422 2011-04-28  Jan Hubicka  <jh@suse.cz>
25423
25424         * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
25425         nonconstant_names array.
25426         (estimate_function_body_sizes): Build nonconstant_names array; handle
25427         BUILT_IN_CONSTANT_P.
25428
25429 2011-04-28  Richard Guenther  <rguenther@suse.de>
25430
25431         PR bootstrap/48804
25432         Revert
25433         2011-04-28  Richard Guenther  <rguenther@suse.de>
25434
25435         * tree-ssa-structalias.c (solve_constraints): Build succ graph
25436         as late as possible.
25437
25438 2011-04-28  Richard Guenther  <rguenther@suse.de>
25439
25440         * tree-ssa-structalias.c (dump_constraint): Don't end the line.
25441         (debug_constraint): Do it here.
25442         (dump_constraints): And here.
25443         (rewrite_constraints): And here.
25444         (dump_constraint_edge): Remove.
25445         (dump_constraint_graph): Rewrite to produce DOT output.
25446         (solve_constraints): Build succ graph as late as possible.
25447         Dump constraint graphs before and after solving.
25448
25449 2011-04-28  Richard Guenther  <rguenther@suse.de>
25450
25451         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
25452         New function split out from ...
25453         (find_func_aliases): ... here.  Call it.
25454         (find_func_aliases_for_call): Likewise.
25455
25456 2011-04-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
25457
25458         * internal-fn.h (internal_fn_name_array): Declare.
25459         (internal_fn_flags_array): Likewise.
25460
25461 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
25462
25463         * config/i386/i386.md (ssemodesuffix):  Merge with ssevecsize,
25464         ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
25465         Move from sse.md.
25466         (ssemodefsuffix): Remove.
25467         (ssevecmodesuffix): New mode attribute.
25468         (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
25469         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
25470         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
25471         *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
25472         *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
25473         *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
25474         *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
25475         ssemodesuffix mode attribute.
25476         (float splitters): Use ssevecmodesuffix mode attribute.
25477         * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
25478         (sseinsmode): Rename from avxvecmode.
25479         (avxsizesuffix): Rename from avxmodesuffix.
25480         (sseintvecmode): Rename from avxpermvecmode.
25481         (ssedoublevecmode): Rename from ssedoublesizemode.
25482         (ssehalfvecmode): Rename from avxhalfvecmode.
25483         (ssescalarmode): Rename from avxscalarmode.
25484         (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
25485         templates for ssemodesuffix mode attribute.
25486         (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
25487         mode attribute.
25488
25489         Adjust RTX patterns globally for renamed mode attributes.
25490
25491 2011-04-27  Jan Hubcika  <jh@suse.cz>
25492
25493         * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
25494         * ipa-inline-analysis.c: Include alloc-pool.h.
25495         (edge_predicate_pool): New.
25496         (trye_predicate_p): New function
25497         (false_predicate_p): New function.
25498         (add_clause): Sanity check that false clauses are "optimized";
25499         never add clauses to predicate that is already known to be false.
25500         (and_predicate): Use flase_predicate_p.
25501         (evaulate_predicate): Rename to ...
25502         (evaluate_predicate): ... this one; update all callers; assert
25503         that false is not listed among possible truths.
25504         (dump_predicate): Use true_predicate_p.
25505         (account_size_time): Use false_predicate_p.
25506         (evaulate_conditions_for_edge): Rename to ...
25507         (evaluate_conditions_for_edge) ... this one.
25508         (edge_set_predicate): New function.
25509         (inline_edge_duplication_hook): Duplicate edge predicates.
25510         (inline_edge_removal_hook): Free edge predicates.
25511         (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
25512         (dump_inline_summary): Update.
25513         (estimate_function_body_sizes): Set edge predicates.
25514         (estimate_calls_size_and_time): Handle predicates.
25515         (estimate_callee_size_and_time): Update.
25516         (remap_predicate): Add toplev_predicate; update comment.
25517         (remap_edge_predicates): New function.
25518         (inline_merge_summary): Compute toplev predicate; update.
25519         (read_predicate): New function.
25520         (read_inline_edge_summary): Use it.
25521         (inline_read_section): Likewise.
25522         (write_predicate): New function.
25523         (write_inline_edge_summary): Use it.
25524         (inline_write_summary): Likewise.
25525         (inline_free_summary): Free alloc pool and edge summary vec.
25526
25527 2011-04-27  Richard Guenther  <rguenther@suse.de>
25528
25529         * tree-ssa-structalias.c (changed_count): Remove.
25530         (changed): Use a bitmap.
25531         (unify_nodes): Adjust.
25532         (do_sd_constraint): Likewise.
25533         (do_ds_constraint): Likewise.
25534         (do_complex_constraint): Likewise.
25535         (solve_graph): Likewise.
25536
25537 2011-04-27  Jan Hubicka  <jh@suse.cz>
25538
25539         * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
25540
25541 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
25542
25543         * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
25544         (avx_vperm2f128_*_operand): Ditto.
25545         * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
25546         Use avx_vpermilp_parallel in insn condition.
25547         (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
25548         Use avx_vperm2f128_parallel in insn condition.
25549
25550 2011-04-27  Richard Guenther  <rguenther@suse.de>
25551
25552         * Makefile.in (tree-ssa-structalias.o): Remove
25553         gt-tree-ssa-structalias.h dependency.
25554         (GTFILES): Remove tree-ssa-structalias.c.
25555         * tree.c (allocate_decl_uid): New function.
25556         (make_node_stat): Use it.
25557         (copy_node_stat): Likewise.
25558         * tree.h (allocate_decl_uid): Declare.
25559         * tree-ssa-alias.h (delete_alias_heapvars): Remove.
25560         * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
25561         * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
25562         * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
25563         * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
25564         (struct heapvar_map): Likewise.
25565         (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
25566         heapvar_insert): Likewise.
25567         (make_heapvar_for): Rename to ...
25568         (make_heapvar): ... this.  Simplify.
25569         (fake_var_decl_obstack): New global var.
25570         (build_fake_var_decl): New function.
25571         (make_constraint_from_heapvar): Adjust.
25572         (handle_lhs_call): Likewise.
25573         (create_function_info_for): Likewise.
25574         (intra_create_variable_infos): Likewise.
25575         (init_alias_vars): Allocate fake_var_decl_obstack.
25576         (init_alias_heapvars, delete_alias_heapvars): Remove.
25577         (compute_points_to_sets): Do not call init_alias_heapvars.
25578         (ipa_pta_execute): Likewise.
25579         (delete_points_to_sets): Free fake_var_decl_obstack.
25580
25581 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
25582
25583         * config/spu/divmovti4.c (union qword_UTItype): New data type.
25584         (si_from_UTItype, si_to_UTItype): New functions.
25585         (__udivmodti4): Use them to implement type-punning.
25586         * config/spu/multi3.c (union qword_TItype): New data type.
25587         (si_from_TItype, si_to_TItype): New functions.
25588         (__multi3): Use them to implement type-punning.
25589
25590 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
25591
25592         * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
25593
25594 2011-04-27  Jan Hubicka  <jh@suse.cz>
25595
25596         * ipa-prop.c (function_insertion_hook_holder): New holder.
25597         (ipa_add_new_function): New function.
25598         (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
25599         Register/deregister holder.
25600
25601 2011-04-27  Richard Guenther  <rguenther@suse.de>
25602
25603         PR tree-optimization/48772
25604         * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
25605
25606 2011-04-27  Richard Guenther  <rguenther@suse.de>
25607
25608         * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
25609         TARGET_MEM_REF handling.
25610
25611 2011-04-27  Nick Clifton  <nickc@redhat.com>
25612
25613         * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
25614         ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
25615         (REG_CLASS_NAMES): Likewise.
25616         (REG_CLASS_CONTENTS): Likewise.
25617         (EVEN_ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
25618         (ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
25619         (FEVEN_REGS): New macro.  Alias for QUAD_ACC_REGS.
25620         (FPR_REGS): New macro.  Alias for QUAD_ACC_REGS.
25621         (EVEN_REGS): New macro.  Alias for QUAD_REGS.
25622         * config/frv/frv.c (frv_secondary_reload_class): Remove use of
25623         duplicate register classes.
25624         (frv_class_likely_spilled_p): Likewise.
25625         (frv_register_move_cost): Likewise.
25626
25627         * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
25628         end of the regno_reg_class array.
25629
25630 2011-04-27  Jakub Jelinek  <jakub@redhat.com>
25631
25632         PR c/48742
25633         * c-typeck.c (build_binary_op): Don't wrap arguments if
25634         int_operands is true.
25635
25636 2011-04-26  Kaz Kojima  <kkojima@gcc.gnu.org>
25637
25638         PR target/48767
25639         * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
25640         targetm.calls.must_pass_in_stack for void type.
25641
25642 2011-04-26  Jan Hubicka  <jh@suse.cz>
25643
25644         * cgraphbuild.c (build_cgraph_edges): Update call
25645         of cgraph_create_edge and cgraph_create_indirect_edge.
25646         * cgraph.c (cgraph_create_edge_including_clones,
25647         cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
25648         cgraph_update_edges_for_call_stmt_node): Do not take nest
25649         argument; do not initialize call_stmt_size/time.
25650         (dump_cgraph_node): Do not dump nest.
25651         (cgraph_clone_edge): Do not take loop_nest argument;
25652         do not propagate it; do not clone call_stmt_size/time.
25653         (cgraph_clone_node): Likewise.
25654         (cgraph_create_virtual_clone): Update.
25655         * cgraph.h (struct cgraph_edge): Remove
25656         call_stmt_size/call_stmt_time/loop_nest.
25657         (cgraph_create_edge, cgraph_create_indirect_edge,
25658         cgraph_create_edge_including_clones, cgraph_clone_node): Update
25659         prototype.
25660         * tree-emutls.c (gen_emutls_addr): Update.
25661         * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
25662         loop_nest; handle indirect calls, too.
25663         (clone_inlined_nodes): Do not care about updating inline summaries.
25664         * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
25665         * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
25666         stream call_stmt_size/call_stmt_time/loop_nest.
25667         * ipa-inline.c (edge_badness): Update.
25668         (ipa_inline): dump summaries after inlining.
25669         * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
25670         New.
25671         (inline_edge_summary): New function.
25672         * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
25673         (inline_edge_removal_hook): Handle edge summaries.
25674         (inline_edge_duplication_hook): New hook.
25675         (inline_summary_alloc): Alloc hooks.
25676         (initialize_growth_caches): Do not register removal hooks.
25677         (free_growth_caches); Do not free removal hook.
25678         (dump_inline_edge_summary): New function.
25679         (dump_inline_summary): Use it.
25680         (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
25681         (inline_update_callee_summaries): New function.
25682         (inline_merge_summary): Use it.
25683         (do_estimate_edge_time, do_estimate_edge_growth): Update.
25684         (read_inline_edge_summary): New function.
25685         (inline_read_section): Use it.
25686         (write_inline_edge_summary): New function.
25687         (inline_write_summary): Use it.
25688         (inline_free_summary): Free edge new holders.
25689         * tree-inline.c (copy_bb): Update.
25690
25691 2011-04-26  Jason Merrill  <jason@redhat.com>
25692
25693         * tree-eh.c (lower_try_finally_switch): Create the label along with
25694         the CASE_LABEL_EXPR.
25695
25696 2011-04-26  David S. Miller  <davem@davemloft.net>
25697             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25698
25699         * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
25700         * configure: Regenerate.
25701
25702 2011-04-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
25703
25704         PR target/48258
25705         * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
25706         reduction.
25707         (VEC_reduc): New code iterator and splitters for vector reduction.
25708         (VEC_reduc_name): Ditto.
25709         (VEC_reduc_rtx): Ditto.
25710         (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
25711         (reduc_<VEC_reduc_name>_v4sf): Ditto.
25712
25713         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
25714         support for extracting SF on VSX.
25715
25716         * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
25717         generating xscvspdp.
25718         (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
25719         (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
25720         double add, minimum, maximum vector reduction.
25721         (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
25722         (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
25723         optimize double vector reduction.
25724         (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
25725
25726 2011-04-26  Joseph Myers  <joseph@codesourcery.com>
25727
25728         * config/fr30/fr30.h (inhibit_libc): Don't define.
25729         * config/m32r/m32r-protos.h: Correct comment.
25730         * config/v850/v850.h (GHS_default_section_names,
25731         GHS_current_section_names): Use tree, not union tree_node *.
25732
25733 2011-04-26  Xinliang David Li  <davidxl@google.com>
25734
25735         * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
25736         * c-family/c-opts.c (c_common_handle_option): Set
25737         warn_maybe_uninitialized.
25738         * opts.c (common_handle_option): Ditto.
25739         * common.opt:  New option.
25740         * tree-ssa.c (warn_uninit): Add one more parameter.
25741         (warn_uninitialized_var): Pass warning code.
25742         * tree-flow.h: Interface change.
25743
25744 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25745
25746         * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
25747         (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
25748         (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
25749
25750 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25751
25752         * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
25753         * config/mips/mips.opt (mmips-tfile): Remove.
25754
25755         * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
25756         mips-tdump reference to ...
25757         (Specific, alpha*-dec-osf5.1): ... here.  Adapt for Tru64 UNIX.
25758         * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
25759         reference by Tru64 UNIX.
25760
25761 2011-04-26  Jakub Jelinek  <jakub@redhat.com>
25762
25763         PR debug/48768
25764         * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
25765         is error_mark_node, set value to NULL.
25766
25767         PR tree-optimization/48734
25768         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
25769         if return value from maybe_fold_*_comparsions isn't something
25770         the code is prepared to handle.
25771
25772 2011-04-26  Uros Bizjak  <ubizjak@gmail.com>
25773
25774         * config/i386/predicates.md (ext_QIreg_operand): Remove extra
25775         mode check.
25776         (ext_QIreg_nomode_operands): Remove.
25777         * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
25778         (*andsi_1): Ditto.
25779         (*andhi_1): Ditto.
25780
25781 2011-04-26  Andrew Stubbs  <ams@codesourcery.com>
25782
25783         * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
25784
25785 2011-04-26  Richard Guenther  <rguenther@suse.de>
25786
25787         * c-typeck.c (build_unary_op): Do not expand array-refs via
25788         pointer arithmetic.  Only adjust qualifiers for function types.
25789
25790 2011-04-26  Richard Guenther  <rguenther@suse.de>
25791
25792         PR middle-end/48694
25793         * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
25794         * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
25795         compare the operands with OEP_CONSTANT_ADDRESS_OF.  Treat trees
25796         with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
25797
25798 2011-04-25  Paolo Carlini  <paolo.carlini@oracle.com>
25799
25800         * doc/extend.texi: Document __underlying_type.
25801
25802 2011-04-25  Segher Boessenkool  <segher@kernel.crashing.org>
25803
25804         * config/rs6000/titan.md (automata_option "progress"): Remove.
25805
25806 2011-04-25  Jeff Law  <law@redhat.com>
25807
25808         * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
25809
25810 2011-04-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
25811
25812         * system.h (ENUM_BITFIELD): Remove.
25813
25814 2011-04-25  Maxim Kuvyrkov  <maxim@codesourcery.com>
25815             Eric Botcazou  <ebotcazou@adacore.com>
25816
25817         * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
25818         for STORE_FLAG_VALUE==-1 case.
25819
25820 2011-04-24  Richard Sandiford  <richard.sandiford@linaro.org>
25821
25822         PR target/43804
25823         * config/m68k/constraints.md (T): Allow PIC operands that satisfy
25824         LEGITIMATE_PIC_OPERAND_P.
25825
25826 2011-04-24  Jan Hubicka  <jh@suse.cz>
25827
25828         * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
25829         WPA hack.
25830         * ipa-prop.h (ipa_get_param, ipa_is_param_used,
25831         ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
25832         ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
25833         * ipa-inline-analysis.c (add_clause): Fix clause ordering.
25834         (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
25835         Sanity check predicate length.
25836         (remap_predicate): Likewise; sanity check jump functions.
25837         (inline_read_section, inline_write_summary): Sanity check
25838         predicate length.
25839
25840 2011-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
25841
25842         PR other/48748
25843         * doc/extend.texi (Type Traits): Document __is_standard_layout,
25844         __is_literal_type, and __is_trivial; update throughout about
25845         possibly cv-qualified void types.
25846
25847 2011-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
25848
25849         * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
25850         testsuite and make it version agnostic.
25851
25852 2011-04-22  Jan Hubicka  <jh@suse.cz>
25853
25854         * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
25855
25856 2011-04-23  Jakub Jelinek  <jakub@redhat.com>
25857
25858         PR c/48685
25859         * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
25860         to VOID_TYPE even around MODIFY_EXPR.
25861
25862 2011-04-22  Mike Stump  <mikestump@comcast.net>
25863
25864         * gensupport.c (read_md_rtx): Fix typo in comment.
25865         * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
25866         comment.
25867
25868 2011-04-22  Jan Hubicka  <jh@suse.cz>
25869
25870         * gengtype.c (open_base_files): Add ipa-inline.h include.
25871         * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
25872         ipa-prop.c; update all uses.
25873         * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
25874         * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
25875         merge summary of inlined function into former caller.
25876         * ipa-inline.c (max_benefit): Remove.
25877         (edge_badness): Compensate for removal of benefits.
25878         (update_caller_keys): Use
25879         reset_node_growth_cache/reset_edge_growth_cache.
25880         (update_callee_keys): Likewise.
25881         (update_all_callee_keys): Likewise.
25882         (inline_small_functions): Do not collect max_benefit; do not reset
25883         estimated_growth; call free_growth_caches and initialize_growth_caches.
25884         * ipa-inline.h (struct condition, type clause_t, struct predicate,
25885         struct size_time_entry): New structures.
25886         (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
25887         (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
25888         and estimated_growth.
25889         (edge_growth_cache_entry): New structure.
25890         (node_growth_cache, edge_growth_cache): New global vars.
25891         (estimate_growth): Turn into inline.
25892         (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
25893         initialize_growth_caches, free_growth_caches): Declare.
25894         (estimate_edge_growth): Rewrite.
25895         (estimate_edge_time): Implement as inline cache lookup.
25896         (reset_node_growth_cache, reset_edge_growth_cache): New inline
25897         functions.
25898         (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
25899         (NUM_CONDITIONS): New constant.
25900         (predicate_conditions): New enum.
25901         (IS_NOT_CONSTANT): New constant.
25902         (edge_removal_hook_holder): New var.
25903         (node_growth_cache, edge_growth_cache): New global vars.
25904         (true_predicate, single_cond_predicate, false_predicate,
25905         not_inlined_predicate, add_condition, add_clause, and_predicates,
25906         or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
25907         dump_clause, dump_predicate, account_size_time,
25908         evaulate_conditions_for_edge): New functions.
25909         (inline_summary_alloc): Move to heap.
25910         (inline_node_removal_hook): Clear condition and entry vectors.
25911         (inline_edge_removal_hook): New function.
25912         (initialize_growth_caches, free_growth_caches): New function.
25913         (dump_inline_summary): Update.
25914         (edge_execution_predicate): New function.
25915         (will_be_nonconstant_predicate): New function.
25916         (estimate_function_body_sizes): Compute BB and constantness predicates.
25917         (compute_inline_parameters): Do not clear estimated_growth.
25918         (estimate_edge_size_and_time): New function.
25919         (estimate_calls_size_and_time): New function.
25920         (estimate_callee_size_and_time): New function.
25921         (remap_predicate): New function.
25922         (inline_merge_summary): New function.
25923         (do_estimate_edge_time): New function based on...
25924         (estimate_edge_time): ... this one.
25925         (do_estimate_edge_growth): New function.
25926         (do_estimate_growth): New function based on....
25927         (estimate_growth): ... this one.
25928         (inline_analyze_function): Analyze after deciding on jump functions.
25929         (inline_read_section): New function.
25930         (inline_read_summary): Use it.
25931         (inline_write_summary): Write all the new data.
25932         * ipa-prop.c (ipa_get_param_decl_index): Export.
25933         (ipa_lattice_from_jfunc): Move here from ipa-cp.c
25934         * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
25935         Declare.
25936         (ipa_get_lattice): Move here from ipa-cp.c
25937         * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
25938         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
25939         * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
25940         cgraph_edge_inlinable_p): Remove.
25941         * cgraphunit.c: Include ipainline.h
25942         (cgraph_process_new_functions): Update call of
25943         compute_inline_parameters.
25944
25945 2011-04-22  Richard Guenther  <rguenther@suse.de>
25946
25947         * tree.c (build_int_cst): Properly create canonicalized integer
25948         constants.
25949         (build_int_cst_type): Remove scary comments.
25950
25951 2011-04-22  Xinliang David Li  <davidxl@google.com>
25952
25953         * toplev.c (process_options): Enable -Werror=coverage-mismatch
25954         by default when -Wno-error is not specified.
25955         * opts-global.c (decode_options): Remove call to
25956         control_warning_options.
25957
25958 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
25959
25960         PR tree-optimization/48717
25961         * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
25962         ~A + A optimizations use build_int_cst_type instead of build_int_cst.
25963
25964 2011-04-22  Joseph Myers  <joseph@codesourcery.com>
25965
25966         * config/bfin/bfin-protos.h (Mmode): Don't define.  Expand
25967         definition where used.
25968
25969 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
25970
25971         PR c/48716
25972         * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
25973         TREE_STATIC variables declared inside of some OpenMP construct.
25974
25975 2011-04-22  Martin Jambor  <mjambor@suse.cz>
25976
25977         PR middle-end/48585
25978         * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
25979
25980 2011-04-22  Alexander Monakov  <amonakov@ispras.ru>
25981
25982         PR c/36750
25983         * c-typeck.c (pop_init_level): Do not warn about initializing
25984         with ` = {0}'.
25985
25986 2011-04-22  Alan Modra  <amodra@gmail.com>
25987
25988         * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
25989         when returning call_cookie.
25990         (rs6000_function_ok_for_sibcall): Allow sibcalls via function
25991         pointers, to functions with no more vector args than the current
25992         function, and some non-local calls for ABI_V4.
25993         * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
25994         sibcall_nonlocal_aix64): Combine to ..
25995         (sibcall_nonlocal_aix<mode>): ..this.  Handle function pointer calls.
25996         (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
25997         (sibcall_value_nonlocal_aix<mode>): ..likewise.
25998         (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
25999         (sibcall_value_nonlocal_sysv<mode>): Likewise.  Correct call cookie
26000         operand.
26001         * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
26002         sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
26003         sibcall_value_symbolic_64): Delete.
26004
26005 2011-04-21  Xinliang David Li  <davidxl@google.com>
26006
26007         * cgraph.h: Remove pid.
26008         * cgraph.c: Remove pid.
26009         * value-prof.c (init_node_map): New function.
26010         (del_node_map): New function.
26011         (find_func_by_funcdef_no): New function.
26012         (gimple_ic_transform): Call new function.
26013         * cgraphunit.c (cgraph_finalize_function): Remove pid.
26014         * function.c (get_last_funcdef_no): New function.
26015         * function.h (get_last_funcdef_no): New function.
26016         * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
26017         to libgcov function.
26018         (tree-profiling): Call node map init and delete function.
26019
26020 2011-04-21  Ian Lance Taylor  <iant@google.com>
26021
26022         * godump.c (go_format_type): Use exported Go name for anonymous
26023         field name.
26024
26025 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
26026
26027         * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
26028         Call builtin_function_type_list instead of builtin_function_type.
26029         (UNARY, BINARY, TRINARY, QUAD): Likewise.
26030
26031 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
26032
26033         * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
26034         build_function_type_list instead of build_function_type.
26035         Delete variable `endlink'.
26036
26037 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
26038
26039         * config/s390/s390.c (s390_init_builtins): Call
26040         build_function_type_list instead of build_function_type.
26041
26042 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
26043
26044         * config/ia64/ia64.c (ia64_init_builtins): Call
26045         build_function_type_list instead of builtin_function_type.
26046
26047 2011-04-21  Easwaran Raman  <eraman@google.com>
26048
26049         * cfgexpand.c (stack_var): Remove OFFSET...
26050         (add_stack_var): ...and its reference here...
26051         (expand_stack_vars): ...and here.
26052         (stack_var_cmp): Sort by descending order of size.
26053         (partition_stack_vars): Change heuristic.
26054         (union_stack_vars): Fix to reflect changes in partition_stack_vars.
26055         (dump_stack_var_partition): Add newline after each partition.
26056
26057 2011-04-21  Dimitrios Apostolou  <jimis@gmx.net>
26058             Jeff Law  <law@redhat.com>
26059
26060         * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
26061         * gengtype.c (matching_file_name_substitute): Likewise.
26062
26063 2011-04-21  Richard Guenther  <rguenther@suse.de>
26064
26065         PR lto/48703
26066         * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
26067
26068 2011-04-21  Eric Botcazou  <ebotcazou@adacore.com>
26069
26070         * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
26071
26072 2011-04-21  Richard Guenther  <rguenther@suse.de>
26073
26074         * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
26075         file name.
26076
26077 2011-04-21  Richard Guenther  <rguenther@suse.de>
26078
26079         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
26080         MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
26081         Use DECL_P, not SSA_VAR_P.
26082         (ptr_derefs_may_alias_p): Likewise.
26083         (ptr_deref_may_alias_ref_p_1): Likewise.
26084         (decl_refs_may_alias_p): Likewise.
26085         (refs_may_alias_p_1): Likewise.
26086         (ref_maybe_used_by_call_p_1): Likewise.
26087         (call_may_clobber_ref_p_1): Likewise.
26088         (indirect_ref_may_alias_decl_p): Assume indirect refrences
26089         are either MEM_REF or TARGET_MEM_REF.
26090         (indirect_refs_may_alias_p): Likewise.
26091         * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
26092         for MEM_EXPR of indirect calls.
26093
26094 2011-04-21  Tristan Gingold  <gingold@adacore.com>
26095
26096         * vmsdbgout.c (write_srccorr): Compute file length from the string.
26097         (dst_file_info_struct): Remove flen field.
26098         (lookup_filename): Remove code that set flen field.
26099
26100 2011-04-21  Tristan Gingold  <gingold@adacore.com>
26101
26102         * config/ia64/ia64.c (ia64_start_function): Add a guard.
26103
26104 2011-04-21  Uros Bizjak  <ubizjak@gmail.com>
26105
26106         PR target/48708
26107         * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
26108         vec_extract and vec_concat for non-SSE4_1 targets.
26109
26110 2011-04-21  Richard Guenther  <rguenther@suse.de>
26111
26112         * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
26113         return statements.
26114
26115 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
26116
26117         * config/i386/cygming.h (union tree_node, TREE): Don't define or
26118         undefine.
26119         (FILE): Don't undefine.
26120
26121 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
26122
26123         * config/alpha/alpha.c (struct machine_function): Use rtx, not
26124         struct rtx_def *.
26125         * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
26126         struct rtx_def *.
26127         * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
26128         * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
26129         * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
26130         rtx_def *.
26131         * config/m32c/m32c-protos.h (MM, UINT): Don't define.  Expand
26132         definitions where used.
26133         * config/microblaze/microblaze.h (struct microblaze_args): Use
26134         rtx, not struct rtx_def *.
26135         * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
26136         rtx_def *.
26137         * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
26138         * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
26139         * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
26140         not struct rtx_def *.
26141         * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
26142         struct rtx_def *.
26143         * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
26144         rtx_def *.
26145         * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
26146
26147 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
26148
26149         * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
26150         operand_equal_p to compare DR_BASE_ADDRESSes.
26151         (vect_check_interleaving): Likewise.
26152
26153 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
26154
26155         PR target/46329
26156         * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
26157         for all Neon struct constants.
26158
26159 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
26160
26161         * target.def (legitimate_constant_p): New hook.
26162         * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
26163         (TARGET_LEGITIMATE_CONSTANT_P): ...this.
26164         * doc/tm.texi: Regenerate.
26165         * hooks.h (hook_bool_mode_rtx_true): Declare.
26166         * hooks.c (hook_bool_mode_rtx_true): Define.
26167         * system.h (LEGITIMATE_CONSTANT_P): Poison.
26168         * calls.c (precompute_register_parameters): Replace uses of
26169         LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
26170         (emit_library_call_value_1): Likewise.
26171         * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
26172         (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
26173         * ira-costs.c (scan_one_insn): Likewise.
26174         * recog.c (general_operand, immediate_operand): Likewise.
26175         * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
26176         * reload1.c (init_eliminable_invariants): Likewise.
26177
26178         * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
26179         mode argument.
26180         * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
26181         * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
26182         argument.
26183         (TARGET_LEGITIMATE_CONSTANT_P): Define.
26184         * config/alpha/predicates.md (input_operand): Update call to
26185         alpha_legitimate_constant_p.
26186
26187         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
26188         * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
26189         (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
26190         * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
26191         (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
26192         (arm_legitimate_constant_p): New functions.
26193         (arm_cannot_force_const_mem): Make static.
26194
26195         * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
26196
26197         * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
26198         * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
26199         * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
26200         instead of bfin_legitimate_constant_p.
26201         (bfin_legitimate_constant_p): Make static.  Add a mode argument.
26202         (TARGET_LEGITIMATE_CONSTANT_P): Define.
26203
26204         * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
26205
26206         * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
26207
26208         * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
26209         * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
26210         * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
26211         (frv_legitimate_constant_p): Make static.  Add a mode argument.
26212
26213         * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
26214         * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
26215         * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
26216
26217         * config/i386/i386-protos.h (legitimate_constant_p): Delete.
26218         * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
26219         * config/i386/i386.c (legitimate_constant_p): Rename to...
26220         (ix86_legitimate_constant_p): ...this.  Make static.  Add a mode
26221         argument.
26222         (ix86_cannot_force_const_mem): Update accordingly.
26223         (ix86_legitimate_address_p): Likewise.
26224         (TARGET_LEGITIMATE_CONSTANT_P): Define.
26225         * config/i386/i386.md: Update commentary.
26226
26227         * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
26228         * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
26229         * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
26230         (ia64_legitimate_constant_p): Make static.  Add a mode argument.
26231
26232         * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
26233
26234         * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
26235         * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
26236         * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
26237         (lm32_legitimate_constant_p): Make static.  Add a mode argument.
26238
26239         * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
26240         * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
26241         * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
26242
26243         * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
26244         * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
26245         (m32r_legitimate_constant_p): New function.
26246
26247         * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
26248         * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
26249         LEGITIMATE_CONSTANT_P.
26250         (LEGITIMATE_CONSTANT_P): Delete.
26251         * config/m68k/m68k.c (m68k_expand_prologue): Call
26252         m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
26253         (m68k_legitimate_constant_p): New function.
26254         * config/m68k/m68k.md: Update comments.
26255
26256         * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
26257         * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
26258         (mcore_legitimate_constant_p): New function.
26259
26260         * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
26261         * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
26262         * config/mep/mep.c (mep_legitimate_constant_p): Make static.
26263         Add a mode argument.
26264         (mep_legitimate_address): Update accordingly.
26265         (TARGET_LEGITIMATE_CONSTANT_P): Define.
26266
26267         * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
26268         Delete.
26269         * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
26270         * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
26271         static.  Check OP's mode for VOIDmode.
26272         (microblaze_legitimate_constant_p): New function.
26273         (TARGET_LEGITIMATE_CONSTANT_P): Define.
26274
26275         * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
26276         * config/mips/mips.c (mips_legitimate_constant_p): New function.
26277         (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
26278         (TARGET_LEGITIMATE_CONSTANT_P): Define.
26279         * config/mips/predicates.md: Update comments.
26280
26281         * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
26282         * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
26283         * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
26284         (mmix_legitimate_constant_p): Make static, return a bool, and take
26285         a mode argument.
26286         (mmix_print_operand_address): Update accordingly.
26287
26288         * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
26289         Delete.
26290         * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
26291         * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
26292         static.  Add a mode argument.
26293         (TARGET_LEGITIMATE_CONSTANT_P): Define.
26294
26295         * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
26296
26297         * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
26298         * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
26299         (pa_legitimate_constant_p): New function.
26300
26301         * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
26302
26303         * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
26304         * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
26305         (pdp11_legitimate_constant_p): New function.
26306
26307         * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
26308         * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
26309         (rs6000_legitimate_constant_p): New function.
26310
26311         * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
26312         (rx_legitimate_constant_p): ...this.
26313         * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
26314         * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
26315         (rx_legitimate_constant_p): ...this.
26316         (TARGET_LEGITIMATE_CONSTANT_P): Define.
26317         * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
26318
26319         * config/s390/s390-protos.h (legitimate_constant_p): Delete.
26320         * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
26321         * config/s390/s390.c (legitimate_constant_p): Rename to...
26322         (s390_legitimate_constant_p): ...this.  Make static, return a bool,
26323         and add a mode argument.
26324         (TARGET_LEGITIMATE_CONSTANT_P): Define.
26325
26326         * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
26327
26328         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
26329         * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
26330         (sh_legitimate_constant_p): New function.
26331
26332         * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
26333         * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
26334         * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
26335         (legitimate_constant_p): Rename to...
26336         (sparc_legitimate_constant_p): ...this.  Make static.  Add a mode
26337         argument.
26338         (constant_address_p): Update accordingly.
26339
26340         * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
26341         argument and return a bool.
26342         * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
26343         * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
26344         (spu_legitimate_constant_p): Add a mode argument and return a bool.
26345         (spu_rtx_costs): Update accordingly.
26346         * config/spu/predicates.md (vec_imm_operand): Likewise.
26347
26348         * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
26349
26350         * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
26351         * config/v850/v850.c (v850_legitimate_constant_p): New function.
26352         (TARGET_LEGITIMATE_CONSTANT_P): Define.
26353
26354         * config/vax/vax-protos.h (legitimate_constant_p): Delete.
26355         * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
26356         * config/vax/vax.c (legitimate_constant_p): Likewise.
26357
26358         * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
26359         * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
26360         (xtensa_legitimate_constant_p): New function.
26361
26362 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
26363
26364         * target.def (cannot_force_const_mem): Add a mode argument.
26365         * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
26366         * doc/tm.texi: Regenerate.
26367         * hooks.h (hook_bool_mode_rtx_false): Declare.
26368         * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
26369         (hook_bool_mode_const_rtx_true): Likewise.
26370         (hook_bool_mode_rtx_false): New function.
26371         * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
26372         to be non-VOID.  Update call to cannot_force_const_mem.
26373         (find_reloads): Update accordingly.
26374         * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
26375         * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
26376         argument.
26377         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
26378         * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
26379         * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
26380         * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
26381         * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
26382         * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
26383         * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
26384         * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
26385         (m68k_cannot_force_const_mem): ...this new function.
26386         * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
26387         argument.
26388         (mips_const_insns, mips_legitimize_const_move): Update calls.
26389         (mips_secondary_reload_class): Likewise.
26390         * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
26391         (pa_cannot_force_const_mem): ...this new function.
26392         * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
26393         (rs6000_cannot_force_const_mem): ...this new function.
26394         * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
26395         argument.
26396         * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
26397         * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
26398         to...
26399         (xtensa_cannot_force_const_mem): ...this new function.
26400
26401 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
26402
26403         * config/mips/mips.c (mips16_build_function_stub): Call
26404         build_function_type_list instead of build_function_type.
26405         (mips16_build_call_stub): Likewise.
26406
26407 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
26408
26409         * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
26410         instead of build_function_type.
26411
26412 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
26413
26414         * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
26415         instead of build_function_type.
26416
26417 2011-04-20  Uros Bizjak  <ubizjak@gmail.com>
26418
26419         PR target/48678
26420         * config/i386/i386.md (insv): Change operand 0 constraint to
26421         "register_operand".  Change operand 1 and 2 constraint to
26422         "const_int_operand".  Expand to pinsr{b,w,d,q} * when appropriate.
26423         * config/i386/sse.md (sse4_1_pinsrb): Export.
26424         (sse2_pinsrw): Ditto.
26425         (sse4_1_pinsrd): Ditto.
26426         (sse4_1_pinsrq): Ditto.
26427         * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
26428         * config/i386/i386.c (ix86_expand_pinsr): New.
26429
26430 2011-04-20  Easwaran Raman  <eraman@google.com>
26431
26432         * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
26433         containing union type only with -fstrict-aliasing.
26434
26435 2011-04-20  Jim Meyering  <meyering@redhat.com>
26436
26437         Remove useless if-before-free tests.
26438         * calls.c (expand_call, save_area): Likewise.
26439         * cfgcleanup.c (try_forward_edges): Likewise.
26440         * collect2.c (collect_execute): Likewise.
26441         * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
26442         * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
26443         * coverage.c (coverage_checksum_string): Likewise.
26444         * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
26445         * cselib.c (cselib_init): Likewise.
26446         * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
26447         (df_set_clean_cfg): Likewise.
26448         * function.c (free_after_compilation): Likewise.
26449         * gcc.c (do_spec_1, main): Likewise.
26450         * gcov.c (create_file_names): Likewise.
26451         * gensupport.c (identify_predicable_attribute): Likewise.
26452         * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
26453         * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
26454         * haifa-sched.c (haifa_finish_h_i_d): Likewise.
26455         * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
26456         * ipa-pure-const.c (local_pure_const): Likewise.
26457         * ipa-reference.c (propagate): Likewise.
26458         * ira-costs.c (free_ira_costs): Likewise.
26459         * ira.c (free_register_move_costs, build_insn_chain): Likewise.
26460         * matrix-reorg.c (mat_free): Likewise.
26461         * prefix.c (get_key_value): Likewise.
26462         * profile.c (compute_value_histograms): Likewise.
26463         * reload1.c (free_reg_equiv): Likewise.
26464         * sched-deps.c (free_deps): Likewise.
26465         * sel-sched-ir.c (fence_clear): Likewise.
26466         * sese.c (set_rename, if_region_set_false_region): Likewise.
26467         * tree-data-ref.c (free_rdg): Likewise.
26468         * tree-eh.c (lower_try_finally): Likewise.
26469         * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
26470         * tree-ssa-live.c (delete_var_map): Likewise.
26471         * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
26472         * tree-ssa-pre.c (phi_trans_add): Likewise.
26473
26474 2011-04-20  Jakub Jelinek  <jakub@redhat.com>
26475
26476         PR tree-optimization/48611
26477         * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
26478         beyond ERT_MUST_NOT_THROW region.
26479
26480 2011-04-20  Catherine Moore  <clm@codesourcery.com>
26481
26482         * config/mips/mips.opt (mfix-24k): New.
26483         * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
26484         * config/mips/mips.md (length): Increase by 4 for stores if
26485         fixing 24K errata.
26486         * config/mips/mips.c (mips_reorg_process_insns): Do not allow
26487         all noreorder if fixing 24K errata.
26488         * doc/invoke.texi: Document mfix-24k.
26489
26490 2011-04-20  Chung-Lin Tang  <cltang@codesourcery.com>
26491
26492         * config/arm/arm.c (arm_legitimize_reload_address): For NEON
26493         quad-word modes, reduce to 9-bit index range when above 1016 limit.
26494
26495 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
26496
26497         * config/arm/arm.c (arm_gen_constant): Move movw support ....
26498         (const_ok_for_op): ... to here.
26499
26500 2011-04-20  Kai Tietz  <ktietz@redhat.com>
26501
26502         * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
26503         and (X && !Y) | (!X && Y) optimization to (X ^ Y).
26504
26505 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
26506
26507         * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
26508
26509 2011-04-20  Richard Guenther  <rguenther@suse.de>
26510
26511         PR tree-optimization/47892
26512         * tree-if-conv.c (if_convertible_stmt_p): Const builtins
26513         are if-convertible.
26514
26515 2011-04-20  Eric Botcazou  <ebotcazou@adacore.com>
26516
26517         * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
26518
26519 2011-04-20  Tristan Gingold  <gingold@adacore.com>
26520
26521         * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
26522
26523 2011-04-20  Georg-Johann Lay  <avr@gjlay.de>
26524
26525         PR target/18145
26526
26527         * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
26528         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
26529         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
26530         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
26531         (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
26532
26533         * config/avr/avr-protos.h (avr_asm_output_aligned_common):
26534         New prototype.
26535
26536         * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
26537         (avr_asm_named_section, avr_asm_output_aligned_common,
26538         avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
26539         New functions to update...
26540         (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
26541         (avr_asm_init_sections): Overwrite section callbacks for
26542         data_section, bss_section.
26543         (avr_file_start): Move output of __do_copy_data, __do_clear_bss
26544         from here to...
26545         (avr_file_end): ...here.
26546
26547 2011-04-20  Richard Guenther  <rguenther@suse.de>
26548
26549         PR middle-end/48695
26550         * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
26551         objects and types here.  Adjust for their offset before comparing.
26552
26553 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
26554
26555         * tree-vect-stmts.c (vectorizable_store): Only chain one related
26556         statement per copy.
26557
26558 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
26559
26560         * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
26561         (GIMPLE_H): Include $(INTERNAL_FN_H).
26562         (OBJS-common): Add internal-fn.o.
26563         (internal-fn.o): New rule.
26564         * internal-fn.def: New file.
26565         * internal-fn.h: Likewise.
26566         * internal-fn.c: Likewise.
26567         * gimple.h: Include internal-fn.h.
26568         (GF_CALL_INTERNAL): New gf_mask.
26569         (gimple_statement_call): Put fntype into a union with a new
26570         internal_fn field.
26571         (gimple_build_call_internal): Declare.
26572         (gimple_build_call_internal_vec): Likewise.
26573         (gimple_call_same_target_p): Likewise.
26574         (gimple_call_internal_p): New function.
26575         (gimple_call_internal_fn): Likewise.
26576         (gimple_call_fntype): Return null for internal calls.
26577         (gimple_call_set_fntype): Assert that the function is not internal.
26578         (gimple_call_set_fn): Likewise.
26579         (gimple_call_set_fndecl): Likewise.
26580         (gimple_call_set_internal_fn): New function.
26581         (gimple_call_addr_fndecl): Handle null functions.
26582         (gimple_call_return_type): Likewise null types.
26583         * gimple.c (gimple_build_call_internal_1): New function.
26584         (gimple_build_call_internal): Likewise.
26585         (gimple_build_call_internal_vec): Likewise.
26586         (gimple_call_same_target_p): Likewise.
26587         (gimple_call_flags): Handle calls to internal functions.
26588         (gimple_call_fnspec): New function.
26589         (gimple_call_arg_flags, gimple_call_return_flags): Use it.
26590         (gimple_has_side_effects): Handle null functions.
26591         (gimple_rhs_has_side_effects): Likewise.
26592         (gimple_call_copy_skip_args): Handle calls to internal functions.
26593         * cfgexpand.c (expand_call_stmt): Likewise.
26594         * expr.c (expand_expr_real_1): Assert that the call isn't internal.
26595         * gimple-fold.c (gimple_fold_call): Handle null functions.
26596         (gimple_fold_stmt_to_constant_1): Don't fold
26597         calls to internal functions.
26598         * gimple-low.c (gimple_check_call_args): Handle calls to internal
26599         functions.
26600         * gimple-pretty-print.c (dump_gimple_call): Likewise.
26601         * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
26602         * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
26603         (do_warn_unused_result): Likewise.
26604         * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
26605         * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
26606         * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
26607         the target of a call.
26608         (initialize_hash_element): Update accordingly.
26609         (hashable_expr_equal_p): Use gimple_call_same_target_p.
26610         (iterative_hash_hashable_expr): Handle calls to internal functions.
26611         (print_expr_hash_elt): Likewise.
26612         * tree-ssa-pre.c (can_value_number_call): Likewise.
26613         (eliminate): Handle null functions.
26614         * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
26615         * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
26616         (find_func_aliases): Likewise.
26617         * value-prof.c (gimple_ic_transform): Likewise.
26618         (gimple_indirect_call_to_profile): Likewise.
26619         * lto-streamer-in.c (input_gimple_stmt): Likewise.
26620         * lto-streamer-out.c (output_gimple_stmt): Likewise.
26621
26622 2011-04-19  Jan Hubicka  <jh@suse.cz>
26623
26624         * ipa-inline-transform.c (save_inline_function_body): Add comments.
26625         * ipa-inline.c (inline_small_functions): Compute summaries first,
26626         populate heap later.
26627
26628 2011-04-19  Jan Hubicka  <jh@suse.cz>
26629
26630         * cgraph.h (save_inline_function_body): Remove.
26631         * ipa-inline-transform.c: New file, broke out of...
26632         * ipa-inline.c: ... this one; Update toplevel comment.
26633         (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
26634         make global.
26635         (update_noncloned_frequencies): Move to ipa-inline-transform.c
26636         (cgraph_mark_inline_edge): Rename to inline_call; move to
26637         ipa-inline-transform.c.
26638         (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
26639         move to ipa-inline-transform.c
26640         (recursive_inlining, inline_small_functions, flatten_function,
26641         ipa_inline, inline_always_inline_functions,
26642         early_inline_small_functions): Update.
26643         (inline_transform): Move to ipa-inline-transform.c.
26644         * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
26645         Declare.
26646         * Makefile.in (ipa-inline-transform.o): New file.
26647         * cgraphunit.c (save_inline_function_body): Move to
26648         ipa-inline-transform.c
26649
26650 2011-04-19  DJ Delorie  <dj@redhat.com>
26651
26652         * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
26653         registers if we already know there aren't any.
26654         (m32c_emit_epilogue): Don't emit a barrier here.
26655         (m32c_emit_eh_epilogue): Likewise.
26656         * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
26657         operands at expand time.
26658         * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
26659         int" wchar type.
26660         (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
26661         duplicates.  Provide aliases instead.
26662         * config/m32c/prologue.md (eh_return): Emit a barrier here.
26663         (eh_epilogue): Add a "(return)" here as a hint to other parts of
26664         the compiler.
26665
26666 2011-04-19  Anatoly Sokolov  <aesok@post.ru>
26667
26668         * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
26669         * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
26670         (general_or_i64_p, sparc_register_move_cost): New function.
26671
26672 2011-04-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26673
26674         * doc/install.texi (Configuration, --enable-threads): Remove mach.
26675         Add lynx, mipssde.  Sort table.
26676
26677 2011-04-19  Xinliang David Li  <davidxl@google.com>
26678
26679         * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
26680         not negative.
26681
26682 2011-04-19  Jakub Jelinek  <jakub@redhat.com>
26683
26684         PR target/48678
26685         * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
26686         is a SUBREG with non-MODE_INT mode inside of it.
26687
26688 2011-04-19  Martin Jambor  <mjambor@suse.cz>
26689
26690         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
26691         also according to actual contants.
26692         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
26693         (gimple_fold_call): Use it.
26694         * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
26695
26696 2011-04-19  Martin Jambor  <mjambor@suse.cz>
26697
26698         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
26699         non-pointer assignments.
26700
26701 2011-04-19  Martin Jambor  <mjambor@suse.cz>
26702
26703         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
26704         account anc_offset and otr_type from the indirect edge info.
26705         * ipa-prop.c (get_ancestor_addr_info): New function.
26706         (compute_complex_ancestor_jump_func): Assignment analysis moved to
26707         get_ancestor_addr_info, call it.
26708         (ipa_note_param_call): Do not initialize information about polymorphic
26709         calls, return the indirect call graph edge.  Remove the last
26710         parameter, adjust all callers.
26711         (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
26712         parameters.  Initialize polymorphic information in the indirect edge.
26713
26714 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
26715
26716         PR lto/48148
26717         * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
26718         the types if they have different enumeration identifiers.
26719
26720 2011-04-19  Jan Hubicka  <jh@suse.cz>
26721
26722         * cgraph.h (cgraph_optimize_for_size_p): Declare.
26723         * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
26724         * predict.c (cgraph_optimize_for_size_p): Break out from ...
26725         (optimize_function_for_size_p) ... here.
26726
26727 2011-04-19  Richard Guenther  <rguenther@suse.de>
26728
26729         PR lto/48207
26730         * tree.c (free_lang_data): Do not reset the decl-assembler-name
26731         langhook.
26732
26733 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
26734
26735         * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
26736         if DECL_NO_INLINE_WARNING_P is set on the function.
26737
26738 2011-04-19  Bernd Schmidt  <bernds@codesourcery.com>
26739
26740         PR fortran/47976
26741         * reload1.c (inc_for_reload): Return void. All callers changed.
26742         (emit_input_reload_insns): Don't try to delete previous output
26743         reloads to a register, or record spill_reg_store for autoincs.
26744
26745 2011-04-19  Basile Starynkevitch  <basile@starynkevitch.net>
26746
26747         * gengtype.h: Updated copyright year.
26748         (struct input_file_st): Add inpisplugin field.
26749         (type_fileloc): New function.
26750         * gengtype.c
26751         (write_typed_struct_alloc_def): Add gcc_assert.
26752         (write_typed_alloc_defns): Ditto. Don't output for plugin files.
26753         (write_typed_alloc_defns): Don't output for plugin files.
26754         (input_file_by_name): Clear inpisplugin field.
26755         (main): Set inpisplugin field for plugin files.
26756
26757 2011-04-19  Nicola Pero  <nicola.pero@meta-innovation.com>
26758
26759         * gengtype-state.c (string_eq): New.
26760         (read_state): Use string_eq instead of strcmp when creating the
26761         state_ident_tab.
26762
26763 2011-04-19  Wei Guozhi  <carrot@google.com>
26764
26765         PR target/47855
26766         * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
26767         * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
26768         linkage.
26769         * config/arm/constraints.md (Uu): New constraint.
26770         * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
26771
26772 2011-04-19  Tristan Gingold  <gingold@adacore.com>
26773
26774         * config.gcc (-*-*-*vms): Added.
26775         (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
26776         definitions moved.
26777         * config/vms/vms-ld.c: New file.
26778         * config/vms/vms-ar.c: New file.
26779         * config/vms/t-vmsnative: New file.
26780
26781 2011-04-18  Xinliang David Li  <davidxl@google.com>
26782
26783         * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
26784
26785 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
26786
26787         PR middle-end/48661
26788         * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
26789         if TREE_TYPE (v) is non-NULL.
26790
26791         * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
26792         gimple_get_virt_mehtod_for_binfo.
26793         * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
26794         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
26795         callers.
26796         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
26797
26798 2011-04-18  Michael Matz  <matz@suse.de>
26799             Steve Ellcey  <sje@cup.hp.com>
26800
26801         * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
26802         use its mode as source mode if it isn't VOIDmode.
26803
26804 2011-04-18  Dennis, CHENG Renquan  <crquan@fedoraproject.org>
26805
26806         * doc/passes.texi: Fill crossref nodes.
26807
26808 2011-04-18  Jim Meyering  <meyering@redhat.com>
26809
26810         Fix doubled-word typos in comments and strings
26811         * config/alpha/vms-unwind.h: s/for for/for/
26812         * config/arm/unwind-arm.h: Likewise.
26813         * config/microblaze/microblaze.c: Likewise.
26814         * config/sh/constraints.md: s/in in/in/
26815         * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
26816
26817 2011-04-18  Uros Bizjak  <ubizjak@gmail.com>
26818
26819         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
26820         (AVX_FLOAT_MODE_P): Ditto.
26821         (AVX128_VEC_FLOAT_MODE_P): Ditto.
26822         (AVX256_VEC_FLOAT_MODE_P): Ditto.
26823         (AVX_VEC_FLOAT_MODE_P): Ditto.
26824         * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
26825         (UNSPEC_MASKSTORE): Ditto.
26826         * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
26827         Merge from <sse>_movmsk<ssemodesuffix> and
26828         avx_movmsk<ssemodesuffix>256.  Use VF mode iterator.
26829         (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64.  Use P mode
26830         iterator.
26831         (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
26832         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
26833         (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
26834
26835 2011-04-18  Jan Hubicka  <jh@suse.cz>
26836
26837         * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
26838
26839         * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
26840         (want_inline_function_called_once_p): Break out the logic from
26841         ipa_inline.
26842         (edge_badness): Ensure that profile is not misupdated.
26843         (lookup_recursive_calls): Prioritize by call frequencies.
26844         (inline_small_functions): Move program size estimates here;
26845         actually process whole queue even when unit growth has been
26846         met. (to properly compute inline_failed reasons and for the
26847         case unit size decrease.) Revisit comments on recursive inlining.
26848         (ipa_inline): Remove unit summary code; first inline hot calls
26849         of functions called once, cold calls next.
26850         (order, nnodes): Remove unused variables.
26851         * Makefile.in (ipa-inline.o): No longer depent on ggc files.
26852         (GTFILES): Remove ipa-inline.c
26853         * sel-sched.c (fill_insns): Silence uninitialized var warning.
26854
26855 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
26856
26857         * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
26858
26859 2011-04-18  Jie Zhang  <jie@codesourcery.com>
26860             Richard Earnshaw  <rearnsha@arm.com>
26861
26862         * arm.c (neon_builtin_type_bits): Remove.
26863         (typedef enum neon_builtin_mode): New.
26864         (T_MAX): Don't define.
26865         (typedef enum neon_builtin_datum): Remove bits, codes[],
26866         num_vars and base_fcode.  Add mode, code and fcode.
26867         (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
26868         VAR10): Change accordingly.
26869         (neon_builtin_data[]): Change accordingly
26870         (arm_init_neon_builtins): Change accordingly.
26871         (neon_builtin_compare): Remove.
26872         (locate_neon_builtin_icode): Remove.
26873         (arm_expand_neon_builtin): Change accordingly.
26874
26875         * arm.h (enum arm_builtins): Move to ...
26876         * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
26877
26878         * arm.c (arm_builtin_decl): Declare.
26879         (TARGET_BUILTIN_DECL): Define.
26880         (enum arm_builtins): Correct ARM_BUILTIN_MAX.
26881         (arm_builtin_decls[]): New.
26882         (arm_init_neon_builtins): Store builtin declarations in
26883         arm_builtin_decls[].
26884         (arm_init_tls_builtins): Likewise.
26885         (arm_init_iwmmxt_builtins): Likewise.  Refactor initialization code.
26886         (arm_builtin_decl): New.
26887
26888 2011-04-18  Richard Guenther  <rguenther@suse.de>
26889
26890         * tree.c (upper_bound_in_type): Build properly canonicalized
26891         INTEGER_CSTs.
26892         (lower_bound_in_type): Likewise.
26893
26894 2011-04-18  Richard Guenther  <rguenther@suse.de>
26895
26896         * gimple.h (gimple_call_addr_fndecl): New function.
26897         (gimple_call_fndecl): Use it.
26898         * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
26899         for direct calls.
26900         * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
26901         * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
26902
26903 2011-04-18  Richard Guenther  <rguenther@suse.de>
26904
26905         PR middle-end/48650
26906         * tree.c (build_string): STRING_CST is now derived from tree_typed.
26907
26908 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
26909
26910         PR lto/48492
26911         * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
26912         DECL_IN_CONSTANT_POOL without RTL.
26913
26914 2011-04-18  Ulrich Weigand  <ulrich.weigand@linaro.org>
26915             Ira Rosen  <ira.rosen@linaro.org>
26916
26917         PR target/48252
26918         * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
26919         to match neon_vzip/vuzp/vtrn_internal.
26920         * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
26921         outputs explicitly dependent on both inputs.
26922         (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
26923
26924 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
26925
26926         PR tree-optimization/48616
26927         * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
26928         whether the shift is by scalar or vector based on whether all SLP
26929         scalar stmts have the same rhs.
26930
26931 2011-04-17  Chung-Lin Tang  <cltang@codesourcery.com>
26932
26933         * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
26934         memory operands.
26935
26936 2011-04-17  Richard Sandiford  <rdsandiford@googlemail.com>
26937
26938         PR target/43700
26939         * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
26940         registers.
26941
26942 2011-04-17  Jan Hubicka  <jh@suse.cz>
26943
26944         * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
26945         * cgrpahunit.c (cgraph_finalize_function): Do not set
26946         finalized_by_frontend.
26947         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
26948         finalized_by_frontend.
26949
26950 2011-04-17  Jan Hubicka  <jh@suse.cz>
26951
26952         * cgraph.c (cgraph_clone_node): Do not handle vtable_method
26953         * cgraph.h (struct cgraph_local_info): Drop vtable_method.
26954         * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
26955         * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
26956         method.
26957         * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
26958         gimple-fold.c
26959         * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
26960
26961 2011-04-17  Eric Botcazou  <ebotcazou@adacore.com>
26962
26963         PR lto/48538
26964         * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
26965         is non-null before accessing it.
26966         (input_cgraph): Remove trailing spaces.
26967
26968 2011-04-17  Revital Eres  <revital.eres@linaro.org>
26969
26970         * params.def (sms-min-sc): New param flag.
26971         * modulo-sched.c (sms_schedule): Use it.
26972         * doc/invoke.texi (sms-min-sc): Document it.
26973
26974 2011-04-17  Jan Hubicka  <jh@suse.cz>
26975
26976         * lto-symtab.c (lto_cgraph_replace_node): When call statement is
26977         present, also set gimple_call_set_cannot_inline.
26978         * ipa-inline.c: Update toplevel comment.
26979         (MAX_TIME): Remove.
26980         (cgraph_clone_inlined_nodes): Fix linebreaks.
26981         (cgraph_check_inline_limits): Restructure to ...
26982         (caller_growth_limits): ... this one; be more tolerant
26983         on growth in nested inline chains; add explanatory comment;
26984         fix stack accounting thinko introduced by previous patch.
26985         (cgraph_default_inline_p): Remove.
26986         (report_inline_failed_reason): New function.
26987         (can_inline_edge_p): New function.
26988         (can_early_inline_edge_p): New function.
26989         (leaf_node_p): Move upwards in file.
26990         (want_early_inline_function_p): New function.
26991         (want_inline_small_function_p): New function.
26992         (want_inline_self_recursive_call_p): New function.
26993         (cgraph_edge_badness): Rename to ...
26994         (edge_badness) ... this one; fix linebreaks.
26995         (update_edge_key): Update call of edge_baddness; add
26996         detailed dump about queue updates.
26997         (update_caller_keys): Use can_inline_edge_p and
26998         want_inline_small_function_p.
26999         (cgraph_decide_recursive_inlining): Rename to...
27000         (recursive_inlining): Use can_inline_edge_p and
27001         want_inline_self_recursive_call_p; simplify and remove no longer
27002         valid FIXME.
27003         (cgraph_set_inline_failed): Remove.
27004         (add_new_edges_to_heap): Use can_inline_edge_p and
27005         want_inline_small_function_p.
27006         (cgraph_decide_inlining_of_small_functions): Rename to ...
27007         (inline_small_functions): ... this one; cleanup; use
27008         can/want predicates; cleanup debug ouput; work edges till fibheap
27009         is exhausted and do not stop once unit growth is reached; remove
27010         later loop processing remaining edges.
27011         (cgraph_flatten): Rename to ...
27012         (flatten_function): ... this one; use can_inline_edge_p
27013         and can_early_inline_edge_p predicates.
27014         (cgraph_decide_inlining): Rename to ...
27015         (ipa_inline): ... this one; remove unreachable nodes before
27016         inlining functions called once; simplify the pass.
27017         (cgraph_perform_always_inlining): Rename to ...
27018         (inline_always_inline_functions): ... this one; use
27019         DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
27020         (cgraph_decide_inlining_incrementally): Rename to ...
27021         (early_inline_small_functions): ... this one; simplify
27022         using new predicates; cleanup; make dumps prettier.
27023         (cgraph_early_inlining): Rename to ...
27024         (early_inliner): newer inline regular functions into always-inlines;
27025         fix updating of call stmt summaries.
27026         (pass_early_inline): Update for new names.
27027         (inline_transform): Fix formating.
27028         (gate_cgraph_decide_inlining): Rename to ...
27029         (pass_ipa_inline): ... this one.
27030         * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
27031         * ipa-inline-analysis.c (dump_inline_summary): Update.
27032         (compute_inline_parameters): Do not compute disregard_inline_limits;
27033         look for mismatching arguments.
27034         (estimate_growth): Fix handlig of non-trivial self recursion.
27035         (inline_read_summary): Do not read info->disregard_inline_limits.
27036         (inline_write_summary): Do not write info->disregard_inline_limits.
27037         * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
27038         and move all checks into can_inline_edge_p predicate; re-enable code
27039         comparing optimization levels.
27040         (expand_call_inline): Do not test inline_forbidden_into_p.
27041         * Makefile.in (ipa-inline.o): Update arguments.
27042
27043 2011-04-17  Revital Eres  <revital.eres@linaro.org>
27044
27045         * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
27046
27047 2011-04-17  Revital Eres  <revital.eres@linaro.org>
27048
27049         * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
27050
27051 2011-04-17  Michael Matz  <matz@suse.de>
27052
27053         PR tree-optimization/48622
27054         PR lto/48645
27055         * ipa-inline-analysis.c (inline_read_summary): Read size/time
27056         in same order as they're written.
27057
27058 2011-04-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
27059
27060         * config/pa/predicates.md: Reorganize and simplify predicates.
27061         Eliminate duplicate code checks.
27062         (arith_operand): Rename to arith14_operand
27063         (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
27064         * config/pa/pa.md: Use renamed operands.
27065         * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
27066         (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
27067         arith11_operand, adddi3_operand, indexed_memory_operand,
27068         symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
27069         arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
27070         borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
27071         move_dest_operand, move_src_operand, prefetch_cc_operand,
27072         prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
27073         uint32_operand, reg_before_reload_operand, reg_or_0_operand,
27074         reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
27075         div_operand, int5_operand, movb_comparison_operator,
27076         ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
27077         arith_double_operand, ireg_operand, lhs_lshift_operand,
27078         pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
27079         integer_store_memory_operand): Likewise.
27080         * config/pa/pa.c (adddi3_operand): Move to predicates.md.
27081         (integer_store_memory_operand, read_only_operand,
27082         function_label_operand, borx_reg_operand,
27083         non_hard_reg_operand): Likewise.
27084         (eq_neq_comparison_operator): Delete unused operator.
27085         (legitimize_pic_address): Use VOIDmode for mode argument in calls to
27086         function_label_operand.
27087         (emit_move_sequence): Likewise.
27088
27089 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
27090
27091         * config/i386/sse.md (sseunpackmode): New mode attribute.
27092         (ssepackmode): Ditto.
27093         (vec_pack_trunc_<mode>): Macroize expander from
27094         vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
27095         (vec_unpacks_lo_<mode>): Macroize expander from
27096         vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
27097         (vec_unpacks_hi_<mode>): Macroize expander from
27098         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
27099         (vec_unpacku_lo_<mode>): Macroize expander from
27100         vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
27101         (vec_unpacku_hi_<mode>): Macroize expander from
27102         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
27103         * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
27104         ix86_expand_sse4_unpack.
27105         * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
27106
27107 2011-04-16  Jan Hubicka  <jh@suse.cz>
27108
27109         * cgraphbuild.c: Include ipa-inline.h.
27110         (reset_inline_failed): Use initialize_inline_failed.
27111         * cgraph.c: Include ipa-inline.h.
27112         (cgraph_create_node_1): Do not initialize estimated_growth.
27113         (initialize_inline_failed): More to ipa-inline-analysis.c
27114         (dump_cgraph_node): Do not dump inline flags.
27115         * cgraph.h (cgraph_local_info): Remove inlineable, versionable
27116         and disregard_inline_limits flags.
27117         (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
27118         time, size, estimated_growth.
27119         * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
27120         Update.
27121         * cgraphunit.c (cgraph_decide_is_function_needed): Use
27122         DECL_DISREGARD_INLINE_LIMITS.
27123         (cgraph_analyze_function): Do not initialize
27124         node->local.disregard_inline_limits.
27125         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
27126         inlinable, versionable and disregard_inline_limits.
27127         * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
27128         cgraph_check_inline_limits, cgraph_default_inline_p,
27129         cgraph_edge_badness, update_caller_keys, update_callee_keys,
27130         add_new_edges_to_heap): Update.
27131         (cgraph_decide_inlining_of_small_function): Update; set
27132         CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
27133         (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
27134         cgraph_decide_inlining_incrementally): Update.
27135         * ipa-inline.h (inline_summary): Add inlinable, versionable,
27136         disregard_inline_limits, estimated_stack_size, stack_frame_offset,
27137         time, size and estimated_growth parameters.
27138         (estimate_edge_growth): Update.
27139         (initialize_inline_failed): Declare.
27140         * ipa-split.c: Include ipa-inline.h
27141         (execute_split_functions): Update.
27142         * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
27143         (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
27144         (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
27145         * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
27146         estimated_growth to INT_MIN.
27147         (inline_node_duplication_hook): Likewise.
27148         (dump_inline_summary): Dump new fields.
27149         (compute_inline_parameters): Update.
27150         (estimate_edge_time, estimate_time_after_inlining,
27151         estimate_size_after_inlining, estimate_growth, inline_read_summary,
27152         inline_write_summary):
27153         (initialize_inline_failed): Move here from cgraph.c.
27154         * tree-sra.c: Include ipa-inline.h.
27155         (ipa_sra_preliminary_function_checks): Update.
27156         * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
27157         ipa-inline.h.
27158
27159 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
27160
27161         * config/i386/sse.md (V16): New mode iterator.
27162         (VI1, VI8): Ditto.
27163         (AVXMODEQI, AVXMODEDI): Remove.
27164         (sse2, sse3): New mode attribute.
27165         (mov<mode>): Use V16 mode iterator.
27166         (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
27167         (push<mode>1): Use V16 mode iterator.
27168         (movmisalign<mode>): Ditto.
27169         (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
27170         <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
27171         (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
27172         *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
27173         (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
27174         avx_movdqu<avxmodesuffix>.
27175         (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
27176         *avx_movdqu<avxmodesuffix>.
27177         (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
27178         avx_lddqu<avxmodesuffix>.
27179         (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
27180         (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
27181         avx_movnt<AVXMODEDI:mode>.
27182         * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
27183         renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
27184
27185 2011-04-16  Bernd Schmidt  <bernds@codesourcery.com>
27186
27187         PR target/48629
27188         * haifa-sched.c (prune_ready_list, schedule_block): Use
27189         sched_pressure_p rather than flag_sched_pressure.
27190
27191 2011-04-15  Pat Haugen  <pthaugen@us.ibm.com>
27192
27193         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
27194         cgraph_get_node instead of cgraph_get_create_node.
27195
27196 2011-04-15  Jakub Jelinek  <jakub@redhat.com>
27197
27198         * cfgexpand.c (expand_debug_expr): Use
27199         simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
27200
27201 2011-04-15  Michael Matz  <matz@suse.de>
27202
27203         * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
27204         * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
27205         * function.c (gimplify_parameters): Ditto.
27206         * gimplify.c (gimplify_vla_decl): Ditto.
27207
27208         * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
27209         (gimple_call_set_alloca_for_var): New inline function.
27210         (gimple_call_alloca_for_var_p): Ditto.
27211         * gimple.c (gimple_build_call_from_tree): Remember
27212         CALL_ALLOCA_FOR_VAR_P state.
27213         * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
27214
27215         * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
27216         calls if they were for VLA objects.
27217
27218 2011-04-15  Martin Jambor  <mjambor@suse.cz>
27219
27220         * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
27221         of ADR_EXPRs.
27222
27223 2011-04-15  Martin Jambor  <mjambor@suse.cz>
27224
27225         PR middle-end/48601
27226         * tree-emutls.c (lower_emutls_function_body): Call
27227         cgraph_get_create_node instead of cgraph_get_node.  Do not assert the
27228         result is non-NULL.
27229
27230 2011-04-15  Nicola Pero  <nicola.pero@meta-innovation.com>
27231
27232         * c-decl.c (detect_field_duplicates): Call
27233         objc_detect_field_duplicates instead of objc_get_interface_ivars.
27234
27235 2011-04-15  Nathan Froyd  <froydnj@codesourcery.com>
27236
27237         * gimple.h (gimple_asm_clobbers_memory_p): Declare.
27238         * gimple.c (gimple_asm_clobbers_memory_p): Define.
27239         * ipa-pure-const.c (check_stmt): Call it.
27240         * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
27241
27242 2011-04-15  Richard Guenther  <rguenther@suse.de>
27243
27244         PR tree-optimization/48290
27245         * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
27246         Properly decide inhibiting propagation based on the valueized
27247         operand.  Do loop-closed SSA form preserving here ...
27248         (init_copy_prop): ... not here.
27249
27250 2011-04-15  H.J. Lu  <hongjiu.lu@intel.com>
27251
27252         PR target/48612
27253         * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
27254         (*ieee_smax<mode>3): Likewise.
27255
27256 2011-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27257
27258         * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
27259         Replace match_operand with match_dup for the third operand in
27260         these expanders.
27261
27262 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
27263
27264         * combine.c (subst, combine_simlify_rtx): Add new argument, use it
27265         to track processing of conditionals.  Update all callers.
27266         (try_combine, simplify_if_then_else): Update.
27267
27268 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
27269
27270         * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
27271         -fsched-pressure.
27272
27273 2011-04-15  Georg-Johann Lay  <avr@gjlay.de>
27274
27275         * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
27276         instead of match_operand for operand 3.
27277
27278 2011-04-15  Richard Sandiford  <richard.sandiford@linaro.org>
27279
27280         * recog.h (insn_operand_data): Add an "allows_mem" field.
27281         * genoutput.c (output_operand_data): Initialize it.
27282         * optabs.c (maybe_legitimize_operand_same_code): New function.
27283         (maybe_legitimize_operand): Use it when matching the original
27284         op->value.
27285
27286 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
27287
27288         * gimplify.c: Fix issues in comments throughout.
27289         (voidify_wrapper_expr): Fix long line.
27290         (build_stack_save_restore): Likewise.
27291         (gimplify_loop_expr): Likewise.
27292         (gimplify_compound_lval): Likewise.
27293         (gimplify_init_ctor_eval): Likewise.
27294         (gimplify_modify_expr_rhs): Likewise.
27295         (omp_notice_threadprivate_variable): Likewise.
27296
27297 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
27298
27299         * cfgexpand.c (expand_call_stmt): Convert the function type to the
27300         original one if this is not a builtin function.
27301
27302 2011-04-14  Jakub Jelinek  <jakub@redhat.com>
27303
27304         PR target/48605
27305         * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
27306         offset it as needed based on top 2 bits in operands[3], change
27307         MEM mode to SFmode and mask those 2 bits away from operands[3].
27308
27309 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
27310
27311         * c-parser.c (c_parser_objc_protocol_definition): Updated for
27312         change from objc_declare_protocols() to objc_declare_protocol().
27313
27314 2011-04-14  Uros Bizjak  <ubizjak@gmail.com>
27315
27316         * config/i386/sse.md (sse4_1): New mode attribute.
27317         (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
27318         avx_blend<ssemodesuffix><avxmodesuffix> and
27319         sse4_1_blend<ssemodesuffix> using VF mode iterator.
27320         (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
27321         avx_blendv<ssemodesuffix><avxmodesuffix> and
27322         sse4_1_blendv<ssemodesuffix> using VF mode iterator.
27323         (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
27324         avx_dp<ssemodesuffix><avxmodesuffix> and
27325         sse4_1_dp<ssemodesuffix> using VF mode iterator.
27326         (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
27327         (sse4_1_packusdw): Merge with *avx_packusdw.
27328         (sse4_1_pblendvb): Merge with *avx_pblendvb.
27329         (sse4_1_pblendw): Merge with *avx_pblendw.
27330         (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
27331         (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
27332         avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
27333         VF mode iterator.
27334         (sse4_1_round<ssescalarmodesuffix>): Merge with
27335         *avx_round<ssescalarmodesuffix>.
27336         (aesenc): Merge with *avx_aesenc.
27337         (aesenclast): Merge with *avx_aesenclast.
27338         (aesdec): Merge with *avx_aesdec.
27339         (aesdeclast): Merge with *avx_aesdeclast.
27340         (pclmulqdq): Merge with *pclmulqdq.
27341         * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
27342         New predicate.
27343         (nonimm_not_xmm0_operand_maybe_avx): Ditto.
27344
27345 2011-04-14  H.J. Lu  <hongjiu.lu@intel.com>
27346
27347         PR middle-end/48608
27348         * cfgexpand.c (get_decl_align_unit): Renamed to ...
27349         (align_local_variable): This.  Update DECL_ALIGN.
27350         (add_stack_var): Updated.
27351         (expand_one_stack_var): Likewise.
27352
27353 2011-04-14  Richard Guenther  <rguenther@suse.de>
27354
27355         * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
27356         Remove.
27357         (dse_initialize_block_local_data, dse_leave_block,
27358         record_voperand_set, get_stmt_uid): Likewise.
27359         (dse_possible_dead_store_p): Allow any kind of killing stmt.
27360         (dse_optimize_stmt): Remove voperand set handling code.
27361         Simplify and improve to handle any kind of killing stmt.
27362         (dse_record_phi): Remove.
27363         (dse_enter_block): Simplify.
27364         (tree_ssa_dse): Likewise.
27365         * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
27366
27367 2011-04-14  Jan Hubicka  <jh@suse.cz>
27368
27369         * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
27370         * cgraph.h (struct inline_summary): Move to ipa-inline.h
27371         (cgraph_local_info): Remove inline_summary.
27372         * ipa-cp.c: Include ipa-inline.h.
27373         (ipcp_cloning_candidate_p, ipcp_estimate_growth,
27374         ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
27375         accesor.
27376         * lto-cgraph.c (lto_output_node): Do not stream inline summary.
27377         (input_overwrite_node): Do not set inline summary.
27378         (input_node): Do not stream inline summary.
27379         * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
27380         (cgraph_decide_inlining_incrementally): Do not try to estimate overall
27381         growth; we do not have inline parameters computed for that anyway.
27382         (cgraph_early_inlining): After inlining compute call_stmt_sizes.
27383         * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
27384         (inline_summary_t): New type and VECtor.
27385         (debug_inline_summary, dump_inline_summaries): Declare.
27386         (inline_summary): Use VOCtor.
27387         (estimate_edge_growth): Kill hack computing call stmt size directly.
27388         * lto-section-in.c (lto_section_name): Add inline section.
27389         * ipa-inline-analysis.c: Include lto-streamer.h
27390         (node_removal_hook_holder, node_duplication_hook_holder): New holders
27391         (inline_node_removal_hook, inline_node_duplication_hook): New functions.
27392         (inline_summary_vec): Define.
27393         (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
27394         dump_inline_summaries): New functions.
27395         (estimate_function_body_sizes): Properly compute size/time of outgoing
27396         calls.
27397         (compute_inline_parameters): Alloc inline_summary; do not compute
27398         size/time of incomming calls.
27399         (estimate_edge_time): Avoid missing time summary hack.
27400         (inline_read_summary): Read inline summary info.
27401         (inline_write_summary): Write inline summary info.
27402         (inline_free_summary): Free all hooks and inline summary vector.
27403         * lto-streamer.h: Add LTO_section_inline_summary section.
27404         * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
27405         * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
27406
27407 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
27408
27409         * tree-vectorizer.h (vect_strided_store_supported): Add a
27410         HOST_WIDE_INT argument.
27411         (vect_strided_load_supported): Likewise.
27412         (vect_permute_store_chain): Return void.
27413         (vect_transform_strided_load): Likewise.
27414         (vect_permute_load_chain): Delete.
27415         * tree-vect-data-refs.c (vect_strided_store_supported): Take a
27416         count argument.  Check that the count is a power of two.
27417         (vect_strided_load_supported): Likewise.
27418         (vect_permute_store_chain): Return void.  Update after above changes.
27419         Assert that the access is supported.
27420         (vect_permute_load_chain): Likewise.
27421         (vect_transform_strided_load): Return void.
27422         * tree-vect-stmts.c (vectorizable_store): Update calls after
27423         above interface changes.
27424         (vectorizable_load): Likewise.
27425         (vect_analyze_stmt): Don't check for strided powers of two here.
27426
27427 2011-04-14  Richard Guenther  <rguenther@suse.de>
27428
27429         PR tree-optimization/48590
27430         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
27431         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
27432         (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
27433         BUILT_IN_STACK_SAVE.
27434         * tree-ssa-dce.c (propagate_necessity): Handle
27435         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
27436
27437 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
27438
27439         * c-parser.c (c_parser_objc_class_declaration): Updated call to
27440         objc_declare_class.
27441
27442 2011-04-14  Richard Guenther  <rguenther@suse.de>
27443
27444         * tree.h (get_object_alignment_1): Declare.
27445         * builtins.c (get_object_alignment_1): Split out worker from ...
27446         (get_object_alignment): ... here.
27447         * fold-const.c (get_pointer_modulus_and_residue): Use
27448         get_object_alignment_1.
27449
27450 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
27451
27452         * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
27453         type parameter.
27454         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
27455         parameter.  Generalise code to handle arrays as well as vectors.
27456         (vect_setup_realignment): Update accordingly.
27457         * tree-vect-stmts.c (vectorizable_store): Likewise.
27458         (vectorizable_load): Likewise.
27459
27460 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
27461
27462         * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
27463         within the per-copy loop.
27464
27465 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
27466
27467         * tree-vect-stmts.c (vectorizable_load): Print the number of copies
27468         in the dump file.
27469
27470 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
27471
27472         * doc/options.texi (Negative): Explicitly mention that the
27473         Negative chain must be circular.
27474
27475 2011-04-14  Nathan Froyd  <froydnj@codesourcery.com>
27476
27477         * function.h (block_chainon): Declare.
27478         * function.c (block_chainon): Define.
27479
27480 2011-04-14  Anatoly Sokolov  <aesok@post.ru>
27481             Eric Weddington  <eric.weddington@atmel.com>
27482             Georg-Johann Lay  <avr@gjlay.de>
27483
27484         * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
27485         New Includes
27486         (avr_init_builtins, avr_expand_builtin,
27487         avr_expand_delay_cycles, avr_expand_unop_builtin,
27488         avr_expand_binop_builtin ): New functions.
27489         (avr_builtin_id): New enum
27490         (struct avr_builtin_description): New struct
27491         (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
27492         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
27493
27494         * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
27495         UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
27496         UNSPECV_DELAY_CYCLES): new enumeration values
27497         (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
27498         ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
27499         ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
27500         ("*rotlqi3_4"): rename insn to "rotlqi3_4"
27501         ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
27502         "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
27503         "fmulsu"): New insns
27504
27505         * config/avr/avr-c.c: fix line endings
27506         (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
27507         __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
27508         __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
27509         __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
27510         __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
27511
27512         * doc/extend.texi (AVR Built-in Functions): New node
27513         (Target Builtins): Add documentation of AVR
27514         built-in functions.
27515
27516 2011-04-14  Georg-Johann Lay  <avr@gjlay.de>
27517
27518         PR target/44643
27519         * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
27520         alone. Error if non-const data has attribute progmem.
27521
27522 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
27523
27524         * tree.h (struct tree_constructor): Include tree_typed instead of
27525         tree_common.
27526         * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
27527         TS_TYPED instead of TS_COMMON.
27528
27529 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
27530
27531         * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
27532         (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
27533         (sse2_psadbw): Merge with *avx_psadbw.
27534         (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
27535         (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
27536         (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
27537         (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
27538         (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
27539         (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
27540         (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
27541         (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
27542         (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
27543         (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
27544         (ssse3_palignrti): Merge with *avx_palignrti.
27545
27546 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
27547
27548         * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
27549         * tree-ssanames.c (fini_ssanames): VEC_free it.
27550         (make_ssa_name_fn): Update for VECness of free_ssanames.
27551         (release_ssa_name, release_dead_ssa_names): Likewise.
27552         * tree.h (struct tree_ssa_name): Include tree_typed instead of
27553         tree_common.
27554         * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
27555         TS_TYPED instead of TS_COMMON.
27556
27557 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
27558
27559         * postreload-gcse.c (gcse_after_reload_main): Add calls to
27560         statistics_counter_event.
27561         * tree-ssa-copyrename.c (stats): Define.
27562         (rename_ssa_copies): Count coalesced SSA_NAMEs.  Add call to
27563         statistics_counter_event.
27564         * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
27565         (bswap_stats, widen_mul_stats): Define.
27566         (insert_reciprocals): Increment rdivs_inserted.
27567         (execute_cse_reciprocals): Zeroize reciprocal_stats.  Increment
27568         rfuncs_inserted.  Add calls to statistics_counter_event.
27569         (execute_cse_sincos_1): Increment inserted.
27570         (execute_cse_sincos): Zeroize sincos_stats.  Add call to
27571         statistics_counter_event.
27572         (execute_optimize_bswap): Zeroize bswap_stats.  Increment fields
27573         of bswap_stats.  Add calls to statistics_counter_event.
27574         (convert_mult_to_widen): Increment widen_mults_inserted.
27575         (convert_plusminus_to_widen): Increment maccs_inserted.
27576         (convert_mult_to_fma): Increment fmas_inserted.
27577         (execute_optimize_widening_mul): Zeroize widen_mul_stats.  Add
27578         calls to statistics_counter_event.
27579
27580 2011-04-13  Vladimir Makarov  <vmakarov@redhat.com>
27581
27582         PR rtl-optimization/48455
27583         * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
27584         `temp_costs->mem_cost'.
27585
27586 2011-04-13  Jan Hubicka  <jh@suse.cz>
27587
27588         * ipa-inline.h: New file.
27589         * ipa-inline-analysis.c: New file. Broken out of ...
27590         * ipa-inline.c: ... this file; update toplevel comment;
27591         include ipa-inline.h
27592         (inline_summary): Move to ipa-inline.h
27593         (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
27594         ipa-inline-analysis.c.
27595         (cgraph_estimate_time_after_inlining): Rename to
27596         estiamte_time_after_inlining; move to ipa-inline-analysis.c
27597         (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
27598         to estimate_edge_growth.
27599         (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
27600         rename to estimate_size_after_inlining.
27601         (cgraph_mark_inline_edge): Update for new naming convention.
27602         (cgraph_check_inline_limits): Likewise.
27603         (cgraph_edge_badness): Likewise.
27604         (cgraph_decide_recursive_inlining): Likewise.
27605         (cgraph_decide_inlining_of_small_functions): Likewise.
27606         (cgraph_decide_inlining_incrementally): Likewise.
27607         (cgraph_estimate_growth): Rename to estimate_growth; move to
27608         ipa-inline-analysis.c.
27609         (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
27610         (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
27611         (compute_inline_parameters): Likewise.
27612         (compute_inline_parameters_for_current): Likewise.
27613         (pass_inline_parameters): Likewise.
27614         (inline_indirect_intraprocedural_analysis): Likewise.
27615         (analyze_function): Rename to inline_analyze_function; likewise.
27616         (add_new_function): Move to ipa-inline-analysis.c.
27617         (inline_generate_summary): Likewise.
27618         (inline_read_summary): Likewise.
27619         (inline_write_summary): Likewise.
27620         * Makefile.in (ipa-inline-analysis.c): New file.
27621
27622 2011-04-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27623
27624         * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
27625         * configure: Regenerate.
27626
27627 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
27628
27629         * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
27630         instead of tree_common.
27631         (struct tree_fixed_cst, struct tree_string, struct tree_complex):
27632         Likewise.
27633         * tree.c (initialize_tree_contains_struct): Mark such nodes as being
27634         TS_TYPED rather than TS_COMMON.
27635         * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
27636
27637 2011-04-01  Georg-Johann Lay  <avr@gjlay.de>
27638
27639         PR target/45263
27640         * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
27641         r20 around calls of __tablejump_elpm__
27642
27643 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
27644
27645         PR middle-end/48591
27646         * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
27647         NULL.
27648         (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
27649
27650 2011-04-13  Bernd Schmidt  <bernds@codesourcery.com>
27651
27652         * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
27653         (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
27654         (cfi_vec): New typedef.
27655         (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
27656         dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
27657         (cie_cfi_vec): New static variable.
27658         (cie_cfi_head): Delete.
27659         (add_cfi): Accept a cfi_vec * as first argument. All callers and
27660         declaration changed. Use vector rather than list operations.
27661         (new_cfi): Don't initialize the dw_cfi_next field.
27662         (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
27663         rather than list operations.
27664         (lookup_cfa): Use vector rather than list operations.
27665         (output_cfis): New argument upto. Accept a cfi_vec rather than
27666         a dw_cfi_ref list head as argument. All callers changed.
27667         Iterate over the vector using upto as a maximum index.
27668         (output_all_cfis): New static function.
27669         (output_fde): Use vector rather than list operations. Use the
27670         new upto argument for output_cfis rather than manipulating a
27671         list.
27672         (dwarf2out_begin_prologue): Change initializations to match
27673         new struct members.
27674         (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
27675         from the vector length rather than searching for the end of a list.
27676         Use output_all_cfis.
27677         (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
27678
27679 2011-04-13  Nick Clifton  <nickc@redhat.com>
27680
27681         * config/rx/rx.md (movmemsi): Do not use this pattern when
27682         volatile pointers are involved.
27683
27684 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
27685
27686         * config/i386/sse.md (pinsrbits): Remove.
27687         (sse2_packsswb): Merge with *avx_packsswb.
27688         (sse2_packssdw): Merge with *avx_packssdw.
27689         (sse2_packuswb): Merge with *avx_packuswb.
27690         (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
27691         (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
27692         (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
27693         (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
27694         (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
27695         (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
27696         (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
27697         (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
27698         (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
27699         (*sse4_1_pinsrq): Merge with *avx_pinsrq.
27700         (sse2_loadld): Merge with *avx_loadld.
27701         (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
27702         (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
27703         (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
27704         (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
27705         (vec_concatv2di): Merge with *vec_concatv2di_avx.
27706
27707 2011-04-12  Nathan Froyd  <froydnj@codesourcery.com>
27708
27709         * c-decl.c (union lang_tree_node): Check for TS_COMMON before
27710         calling TREE_CHAIN.
27711         * print-tree.c (print_node): Likewise.
27712         * tree-inline.c (copy_tree_r): Likewise.
27713         * c-lang.c (LANG_HOOKS_INIT_TS): Define.
27714         * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
27715         instead of TS_COMMON.
27716         * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
27717         * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
27718         (copy_node_stat): Zero TREE_CHAIN only if necessary.
27719         (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
27720         (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
27721         ...and these...
27722         (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
27723         * tree.h: ...here.
27724         (TREE_CHAIN): Check for a TS_COMMON structure.
27725         (TREE_TYPE): Check for a TS_TYPED structure.
27726
27727 2011-04-12  Pat Haugen  <pthaugen@us.ibm.com>
27728
27729         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
27730         cgraph_get_create_node instead of cgraph_node.
27731
27732 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
27733
27734         * c-parser.c (c_parser_initelt): Updated call to
27735         objc_build_message_expr.
27736         (c_parser_postfix_expression): Likewise.
27737
27738 2011-04-12  Kai Tietz  <ktietz@redhat.com>
27739
27740         * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
27741         MASK_MS_BITFIELD_LAYOUT bit.
27742
27743 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
27744
27745         * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
27746         assert it is always true.
27747         (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
27748         moves.
27749
27750 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
27751
27752         * c-parser.c (c_lex_one_token): Rewritten conditional used when
27753         compiling Objective-C to be more efficient.
27754
27755 2011-04-12  Axel Freyn  <axel-freyn@gmx.de>
27756
27757         * opts-common.c (decode_cmdline_options_to_array): Remove variable
27758         argv_copied.
27759
27760 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
27761
27762         * recog.h, genoutput.c, optabs.c: Revert last patch.
27763
27764 2011-04-12  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
27765
27766         PR target/48090
27767         * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
27768
27769 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
27770
27771         * recog.h (insn_operand_data): Add an "allows_mem" field.
27772         * genoutput.c (output_operand_data): Initialize it.
27773         * optabs.c (maybe_legitimize_operand_same_code): New function.
27774         (maybe_legitimize_operand): Use it when matching the original
27775         op->value.
27776
27777 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
27778
27779         * genpreds.c (process_define_predicate): Move most processing
27780         to gensupport.c.  Continue to validate the expression.
27781         * genrecog.c (did_you_mean_codes, compute_predicate_codes)
27782         (process_define_predicate): Move processing to gensupport.c.
27783         (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
27784         * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
27785         (compute_predicate_codes): Moved from genrecog.c.  Add lineno
27786         argument.
27787         (valid_predicate_name_p): New function, split out from old
27788         genpreds.c:process_define_predicate.
27789         (process_define_predicate): New function, combining code from
27790         old genpreds.c and genrecog.c functions.
27791         (process_rtx): Call it for DEFINE_PREDICATE and
27792         DEFINE_SPECIAL_PREDICATE.
27793
27794 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
27795
27796         * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
27797         size of a '%A' memory reference.
27798         (T_DREG, T_QREG): New neon_builtin_type_bits.
27799         (arm_init_neon_builtins): Assert that the load and store operands
27800         are neon_struct_operands.
27801         (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
27802         (NEON_ARG_MEMORY): New builtin_arg.
27803         (neon_dereference_pointer): New function.
27804         (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
27805         Handle NEON_ARG_MEMORY.
27806         (arm_expand_neon_builtin): Update after above interface changes.
27807         Use NEON_ARG_MEMORY for loads and stores.
27808         * config/arm/predicates.md (neon_struct_operand): New predicate.
27809         * config/arm/iterators.md (V_two_elem): Tweak formatting.
27810         (V_three_elem): Use BLKmode for accesses that have no associated mode.
27811         (V_four_elem): Tweak formatting.
27812         * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
27813         (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
27814         (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
27815         (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
27816         (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
27817         (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
27818         (neon_vst4<mode>): Replace pointer operand with a memory operand.
27819         Use %A in the output template.
27820         (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
27821         (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
27822         (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
27823         the width of the memory access.  Remove post-increment.
27824         * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
27825
27826 2011-04-12  Nick Clifton  <nickc@redhat.com>
27827
27828         * config/v850/v850.c (expand_prologue): Do not use the CALLT
27829         instruction for interrupt handlers if the target is the basic V850
27830         architecture.
27831         (expand_epilogue): Likewise.
27832
27833 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
27834
27835         PR rtl-optimization/48549
27836         * combine.c (propagate_for_debug): Also stop after BB_END of
27837         this_basic_block.  Process LAST and just stop processing after it.
27838         (combine_instructions): If last_combined_insn has been deleted,
27839         set last_combined_insn to its PREV_INSN.
27840
27841 2011-04-12  Richard Guenther  <rguenther@suse.de>
27842
27843         PR tree-optimization/46076
27844         * gimple.h (struct gimple_statement_call): Add fntype field.
27845         (gimple_call_fntype): Adjust.
27846         (gimple_call_set_fntype): New function.
27847         * gimple.c (gimple_build_call_1): Set the call function type.
27848         * gimplify.c (gimplify_call_expr): Preserve the function
27849         type the frontend used for the call.
27850         (gimplify_modify_expr): Likewise.
27851         * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
27852         function type.
27853         * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
27854         function type.
27855         * tree-ssa.c (useless_type_conversion_p): Function pointer
27856         conversions are useless.
27857
27858 2011-04-12  Martin Jambor  <mjambor@suse.cz>
27859
27860         * cgraph.h (cgraph_node): Remove function declaration.
27861         (cgraph_create_node): Declare.
27862         (cgraph_get_create_node): Likewise.
27863         * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
27864         Updated all callers.
27865         (cgraph_node): Renamed to cgraph_create_node, assert that a node for
27866         the decl does not already exist.  Call cgraph_get_create_node instead
27867         of cgraph_node.
27868         (cgraph_get_create_node): New function.
27869         (cgraph_same_body_alias): Update comment.
27870         (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
27871         assert it does not return NULL.
27872         (cgraph_update_edges_for_call_stmt): Likewise.
27873         (cgraph_clone_edge): Likewise.
27874         (cgraph_create_virtual_clone): Likewise.
27875         (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
27876         instead of cgraph_node.
27877         (cgraph_add_new_function): Call cgraph_create_node or
27878         cgraph_get_create_node instead of cgraph_node.
27879         * cgraphbuild.c (record_reference): Call cgraph_get_create_node
27880         instead of cgraph_node.
27881         (record_eh_tables): Likewise.
27882         (mark_address): Likewise.
27883         (mark_load): Likewise.
27884         (build_cgraph_edges): Call cgraph_get_create_node instead
27885         of cgraph_node.
27886         (rebuild_cgraph_edges): Likewise.
27887         * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
27888         instead of cgraph_node.
27889         (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
27890         cgraph_node.
27891         * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
27892         cgraph_create_node instead of cgraph_node.
27893         * c-decl.c (finish_function): Call cgraph_get_create_node instead
27894         of cgraph_node.
27895         * lto-cgraph.c (input_node): Likewise.
27896         * lto-streamer-in.c (input_function): Likewise.
27897         * varasm.c (mark_decl_referenced): Likewise.
27898         (assemble_alias): Likewise.
27899
27900 2011-04-12  Martin Jambor  <mjambor@suse.cz>
27901
27902         * tree-inline.c (tree_function_versioning): Call cgraph_get_node
27903         instead of cgraph_node and assert it does not return NULL.
27904         * lto-streamer-in.c (lto_read_body): Likewise.
27905         * omp-low.c (new_omp_context): Likewise.
27906         (create_task_copyfn): Likewise.
27907         * tree-emutls.c (lower_emutls_function_body): Likewise.
27908         * matrix-reorg.c (transform_allocation_sites): Likewise.
27909
27910 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
27911
27912         PR c/48552
27913         * c-typeck.c (build_asm_expr): Error out on attempts to use
27914         void type outputs or inputs for constraints that allow reg or
27915         don't allow memory.
27916
27917 2011-04-11  Chung-Lin Tang  <cltang@codesourcery.com>
27918             Richard Earnshaw  <rearnsha@arm.com>
27919
27920         PR target/48250
27921         * config/arm/arm.c (arm_legitimize_reload_address): Update cases
27922         to use sign-magnitude offsets. Reject unsupported unaligned
27923         cases. Add detailed description in comments.
27924         * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
27925         condition from TARGET_32BIT to TARGET_ARM.
27926
27927 2011-04-11  Nathan Froyd  <froydnj@codesourcery.com>
27928
27929         * tree.h (struct typed_tree): New.
27930         (struct tree_common): Include it instead of tree_base.
27931         (TREE_TYPE): Update for new location of type field.
27932         (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
27933         (DECL_USER_ALIGN, DECL_PACKED): Likewise.
27934         (union tree_node): Add typed field.
27935         * treestruct.def (TS_TYPED): New.
27936         * lto-streamer.c (check_handled_ts_structures): Handle it.
27937         * tree.c (MARK_TS_TYPED): New macro.
27938         (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
27939
27940 2011-04-11  Eric Botcazou  <ebotcazou@adacore.com>
27941
27942         * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
27943         (force_nonfallthru): Do not alter the loop nest if no basic block
27944         was created.
27945
27946 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
27947
27948         * config/i386/sse.md (VI): New mode iterator.
27949         (SSEMODEI): Remove.
27950         (AVX256MODEI): Ditto.
27951         (AVXMODEF4P): Ditto.
27952         (avxvecpsmode): Ditto.
27953         (one_cmpl<mode>2): Enable for TARGET_SSE.  Use VI mode iterator.
27954         (sse2_andnot<mode>3): New expander.
27955         (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
27956         *avx_andnot<mode>3.  Enable for TARGET_SSE.  Use VI mode iterator.
27957         (<any_logic:code><mode>3): Use VI mode iterator.
27958         (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
27959         and *avx_<any_logic:code><mode>3.  Use VI mode iterator.
27960         (*andnottf3): Handle AVX three-operand constraints.
27961         (*<any_logic:code>tf3): Handle AVX three-operand constraints.
27962
27963 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
27964             Robert Millan  <rmh@gnu.org>
27965
27966         * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
27967         * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
27968         GNU_USER_DYNAMIC_LINKER64): Define.
27969         (REG_NAME): Don't undefine.
27970         (MD_UNWIND_SUPPORT): Undefine.
27971         * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
27972         (REG_NAME): Don't undefine.
27973         (MD_UNWIND_SUPPORT): Undefine.
27974         * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
27975
27976 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
27977
27978         * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
27979         (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
27980
27981 2011-04-11  Xinliang David Li  <davidxl@google.com>
27982
27983         * value-profile.c (check_ic_target): New function.
27984         (gimple_ic_transform): Sanity check indirect call target.
27985         * gimple-low.c (gimple_check_call_args): Interface change.
27986         (gimple_check_call_matching_types): New function.
27987         * tree-inline.c (tree_can_inline_p): Call new function.
27988
27989 2011-04-11  Basile Starynkevitch  <basile@starynkevitch.net>
27990
27991         * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
27992         tree-pretty-print.h & realmpfr.h.
27993
27994 2011-04-11  Vladimir Makarov  <vmakarov@redhat.com>
27995
27996         PR middle-end/48464
27997         * ira.c (setup_pressure_classes): Fix typo in loop condition.
27998         (setup_allocno_and_important_classes): Ditto.
27999
28000 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
28001
28002         * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
28003         GNU_USER_DYNAMIC_LINKER.
28004         * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
28005         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
28006         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
28007         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
28008         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
28009         GNU_USER_TARGET_OS_CPP_BUILTINS.
28010         * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
28011         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
28012         * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
28013         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
28014         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
28015         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
28016         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
28017         GNU_USER_TARGET_OS_CPP_BUILTINS.
28018         * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
28019         GNU_USER_DYNAMIC_LINKER.
28020         * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
28021         GNU_USER_TARGET_OS_CPP_BUILTINS.
28022         * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
28023         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
28024         * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
28025         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
28026         * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
28027         * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
28028         GNU_USER_DYNAMIC_LINKER64): Remove.
28029         * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
28030         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
28031         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
28032         GNU_USER_DYNAMIC_LINKER.
28033         * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
28034         GNU_USER_TARGET_OS_CPP_BUILTINS.
28035         * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
28036         GNU_USER_TARGET_OS_CPP_BUILTINS.
28037         * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
28038         to GNU_USER_TARGET_OS_CPP_BUILTINS.
28039         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
28040         GNU_USER_TARGET_OS_CPP_BUILTINS.
28041         (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
28042         (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
28043         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
28044         * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
28045         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
28046         * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
28047         GNU_USER_DYNAMIC_LINKER.
28048         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
28049         GNU_USER_TARGET_OS_CPP_BUILTINS.
28050         * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
28051         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
28052         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
28053         GNU_USER_DYNAMIC_LINKER.
28054         * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
28055         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
28056         * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
28057         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
28058         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
28059         GNU_USER_DYNAMIC_LINKER.
28060         * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
28061         GNU_USER_DYNAMIC_LINKERN32.
28062         (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
28063         GNU_USER_DYNAMIC_LINKERN32.  Change LINUX_DYNAMIC_LINKER64 to
28064         GNU_USER_DYNAMIC_LINKER64.  Change LINUX_DYNAMIC_LINKER32 to
28065         GNU_USER_DYNAMIC_LINKER32.
28066         * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
28067         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
28068         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
28069         GNU_USER_DYNAMIC_LINKER.
28070         * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
28071         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
28072         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
28073         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
28074         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
28075         * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
28076         GNU_USER_DYNAMIC_LINKER32.
28077         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
28078         * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
28079         GNU_USER_DYNAMIC_LINKER.
28080         * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
28081         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
28082         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
28083         GNU_USER_DYNAMIC_LINKER32.  Change LINUX_DYNAMIC_LINKER64 to
28084         GNU_USER_DYNAMIC_LINKER64.
28085         * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
28086         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
28087         (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
28088         GNU_USER_DYNAMIC_LINKER.
28089         * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
28090         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
28091         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
28092         GNU_USER_DYNAMIC_LINKER.
28093         * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
28094         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
28095         (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
28096         GNU_USER_DYNAMIC_LINKER32.
28097         (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
28098         GNU_USER_DYNAMIC_LINKER64.
28099         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
28100         GNU_USER_DYNAMIC_LINKER64.
28101         * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
28102         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
28103         * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
28104         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
28105         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
28106
28107 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
28108
28109         * config/i386/gnu-user.h: Copy from linux.h.  Update comments.
28110         (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
28111         (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
28112         GNU_USER_DYNAMIC_LINKER.
28113         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
28114         * config/i386/gnu-user64.h: Copy from linux64.h.  Update comments.
28115         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
28116         (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
28117         GNU_USER_DYNAMIC_LINKER64.
28118         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
28119         * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
28120         GNU_USER_LINK_EMULATION.
28121         * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
28122         DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
28123         ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
28124         MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
28125         PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
28126         CPP_SPEC, CC1_SPEC): Remove.
28127         (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
28128         (GNU_USER_DYNAMIC_LINKER): Define.
28129         (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
28130         ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
28131         ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
28132         LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
28133         TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
28134         STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
28135         TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
28136         * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
28137         CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
28138         TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
28139         LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
28140         LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
28141         (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
28142         (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
28143         TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
28144         TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
28145         * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
28146         GNU_USER_DYNAMIC_LINKER.
28147         * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
28148         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
28149         * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
28150         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
28151         * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
28152         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
28153         * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
28154         i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
28155         i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
28156         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
28157
28158 2011-04-11  Kai Tietz  <ktietz@redhat.com>
28159
28160         PR target/9601
28161         PR target/11772
28162         * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
28163         * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
28164         comment.
28165         (ix86_is_msabi_thiscall): Removed.
28166         (ix86_is_type_thiscall): Likewise.
28167         (ix86_get_callcvt): New function.
28168         (ix86_comp_type_attributes): Simplify check.
28169         (ix86_function_regparm): Use ix86_get_callcvt for calling
28170         convention attribute checks.
28171         (ix86_return_pops_args): Likewise.
28172         (ix86_static_chain): Likewise.
28173         (x86_this_parameter): Likewise.
28174         (x86_output_mi_thunk): Likewise.
28175         (ix86_function_type_abi): Optimize check for types without attributes.
28176         * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
28177         IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
28178         IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
28179         by flag-values.
28180         (IX86_BASE_CALLCVT): Helper macro.
28181         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
28182         Use ix86_get_callcvt for calling convention attribute checks and avoid
28183         symbol-decoration for stdcall in TARGET_RTD case.
28184         * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
28185         Likewise.
28186         (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
28187         for declaration.
28188
28189 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
28190
28191         * config/i386/sse.md (VI_128): New mode iterator.
28192         (VI12_128): Rename from SSEMODE12.
28193         (VI14_128): Rename from SSEMODE14.
28194         (VI124_128): New mode iterator.
28195         (VI24_128): Rename from SSEMODE248.
28196         (VI248_128): Rename from SSEMODE248.
28197         (SSEMODE124C8): Remove.
28198         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
28199         (*sse2_<plusminus_insn><mode>3): Merge with
28200         *avx_<plusminus_insn><mode>3.
28201         (*mulv8hi3): Merge with *avx_mulv8hi3.
28202         (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
28203         (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
28204         (*sse2_pmaddwd): Merge with *avx_pmaddwd.
28205         (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
28206         (ashr<mode>3): Merge with *avx_ashr<mode>3.
28207         (lshr<mode>3): Merge with *avx_lshr<mode>3.
28208         (ashl<mode>3): Merge with *avx_ashl<mode>3.
28209         (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
28210         (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
28211         (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
28212         (*<smaxmin:code>v8hi3): Ditto.
28213         (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
28214         (*<smaxmin:code>v16qi3): Ditto.
28215         (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
28216         (*sse2_eq<mode>3): Ditto.
28217         (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
28218         (*sse2_gt<mode>3): Ditto.
28219         (vcondv2di): Split out of vcond<mode>.
28220         (vconduv2di): Split out of vcondu<mode>.
28221
28222 2011-04-11  Richard Guenther  <rguenther@suse.de>
28223
28224         * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
28225         before calling tree_low_cst.
28226
28227 2011-04-11  Richard Guenther  <rguenther@suse.de>
28228
28229         * stor-layout.c (layout_type): Compute all array index size operations
28230         in the original type.
28231         (initialize_sizetypes): Add comment.
28232         (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
28233
28234 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
28235
28236         * common.opt (Tbss=, Tdata=, Ttext=): New options.
28237
28238 2011-04-11  Martin Jambor  <mjambor@suse.cz>
28239
28240         * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
28241         of cgraph_node, handle NULL return value.
28242         (cgraph_global_info): Likewise.
28243         (cgraph_rtl_info): Likewise.
28244         * tree-inline.c (estimate_num_insns): Likewise.
28245         * gimplify.c (unshare_body): Likewise.
28246         (unvisit_body): Likewise.
28247         (gimplify_body): Likewise.
28248         * predict.c (optimize_function_for_size_p): Likewise.
28249         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
28250         (call_may_clobber_ref_p_1): Likewise.
28251         * varasm.c (function_section_1): Likewise.
28252         (assemble_start_function): Likewise.
28253
28254 2011-04-11  Martin Jambor  <mjambor@suse.cz>
28255
28256         * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
28257         of cgraph_node.
28258         * final.c (rest_of_clean_state): Likewise.
28259         * gimple-iterator.c (update_call_edge_frequencies): Likewise.
28260         * passes.c (pass_init_dump_file): Likewise.
28261         (execute_all_ipa_transforms): Likewise.
28262         (function_called_by_processed_nodes_p): Likewise.
28263         * predict.c (maybe_hot_frequency_p): Likewise.
28264         (probably_never_executed_bb_p): Likewise.
28265         (compute_function_frequency): Likewise.
28266         * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
28267         (unnest_nesting_tree_1): Likewise.
28268         (lower_nested_functions): Likewise.
28269         * tree-optimize.c (execute_fixup_cfg): Likewise.
28270         (tree_rest_of_compilation): Likewise.
28271         * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
28272         * tree-sra.c (ipa_early_sra): Likewise.
28273         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
28274         * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
28275         * ipa.c (record_cdtor_fn): Likewise.
28276         * ipa-inline.c (cgraph_early_inlining): Likewise.
28277         (compute_inline_parameters_for_current): Likewise.
28278         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
28279         * ipa-pure-const.c (local_pure_const): Likewise.
28280         * ipa-split.c (split_function): Likewise.
28281         (execute_split_functions): Likewise.
28282         * cgraphbuild.c (build_cgraph_edges): Likewise.
28283         (rebuild_cgraph_edges): Likewise.
28284         (cgraph_rebuild_references): Likewise.
28285         (remove_cgraph_callee_edges): Likewise.
28286         * cgraphunit.c (cgraph_mark_if_needed): Likewise.
28287         (verify_cgraph_node): Likewise.
28288         (cgraph_analyze_functions): Likewise.
28289         (cgraph_preserve_function_body_p): Likewise.
28290         (save_inline_function_body): Likewise.
28291         (save_inline_function_body): Likewise.
28292         * tree-inline.c (copy_bb): Likewise.
28293         (optimize_inline_calls): Likewise.
28294
28295 2011-04-11  Martin Jambor  <mjambor@suse.cz>
28296
28297         PR tree-optimization/48195
28298         * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
28299         ipa_check_create_edge_args.
28300         (ipcp_generate_summary): Do not call ipa_check_create_node_params and
28301         ipa_check_create_edge_args.
28302         * ipa-inline.c (inline_generate_summary): Do not call
28303         ipa_check_create_node_params and ipa_check_create_edge_args.
28304         * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
28305         ipa_check_create_edge_args.
28306
28307 2011-04-09  Anatoly Sokolov  <aesok@post.ru>
28308
28309         * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
28310         instead of loop.
28311         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
28312         * function.c (record_hard_reg_sets): Likewise.
28313         * ira.c (compute_regs_asm_clobbered): Likewise.
28314         * sched-deps.c (sched_analyze_1): Likewise.
28315         * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
28316
28317 2011-04-09  Xinliang David Li  <davidxl@google.com>
28318
28319         PR tree-optimization/PR48484
28320         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
28321         has_valid_pred lazily
28322
28323 2011-04-09  Duncan Sands  <baldrick@free.fr>
28324
28325         * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
28326
28327 2011-04-08  Eric Botcazou  <ebotcazou@adacore.com>
28328
28329         * combine.c (combine_validate_cost): Adjust comments.  Set registered
28330         cost of I0 to zero at the end, if any.
28331
28332 2011-04-08  Xinliang David Li  <davidxl@google.com>
28333
28334         * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
28335         to insane profile data.
28336
28337 2011-04-08  Xinliang David Li  <davidxl@google.com>
28338
28339         * ipa-cp.c (ipcp_update_profiling): Correct
28340          negative scale factor due to insane profile data.
28341
28342 2011-04-08  Xinliang David Li  <davidxl@google.com>
28343
28344         * final.c (dump_basic_block_info): New function.
28345         (final): Dump basic block.
28346         (final_scan_insn): Remove old dump.
28347
28348 2011-04-08  Steven G. Kargl  <kargl@gcc.gnu.org>
28349
28350         PR target/47829
28351         * config.gcc (i386-*-freebsd): Disable unwind table generation for
28352         crtbegin/crtend.
28353
28354 2011-04-08  Michael Matz  <matz@suse.de>
28355
28356         PR middle-end/48389
28357         * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
28358         functions.
28359         (rebuild_jump_labels): Call rebuild_jump_labels_1.
28360         * rtl.h (rebuild_jump_labels_chain): Declare.
28361         * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
28362         insns inserted on edges.
28363
28364 2011-04-08  Joseph Myers  <joseph@codesourcery.com>
28365
28366         * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
28367         * config/arm/arm-arches.def: New.
28368         * config/arm/arm-opts.h: New.
28369         * config/arm/genopt.sh: New.
28370         * config/arm/arm-tables.opt: New (generated).
28371         * config/arm/arm.c (arm_handle_option, arm_target_help,
28372         TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
28373         (all_architectures): Get most table contents from arm-arches.def.
28374         (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
28375         arm_selected_tune here.
28376         * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
28377         * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
28378         (march=, mcpu=, mtune=): Use Enum and Var.
28379         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
28380         (arm.o): Update dependencies.
28381
28382 2011-04-08  Basile Starynkevitch  <basile@starynkevitch.net>
28383
28384         * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
28385         of header_file.
28386         (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
28387         (write_typed_alloc_defns): Likewise.
28388         (main): Calls write_typed_alloc_defns with output_header.
28389
28390 2011-04-08  Vladimir Makarov  <vmakarov@redhat.com>
28391
28392         PR inline-asm/48435
28393         * ira-color.c (setup_profitable_hard_regs): Add comments.
28394         Don't take prohibited hard regs into account.
28395         (setup_conflict_profitable_regs): Rename to
28396         get_conflict_profitable_regs.
28397         (check_hard_reg_p): Check prohibited hard regs.
28398
28399 2011-04-08  Nathan Froyd  <froydnj@codesourcery.com>
28400
28401         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
28402         * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
28403         * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
28404
28405 2011-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
28406
28407         PR target/48366
28408         * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
28409         move from floating point to shift amount register.
28410         (emit_move_sequence): Remove secondary reload support for floating
28411         point to shift amount amount register copies.
28412         (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
28413         amount register copies.
28414         * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
28415         register, return false if mode isn't a scalar integer mode.
28416         * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
28417
28418 2011-04-08  Richard Guenther  <rguenther@suse.de>
28419
28420         * gimple.c (gimple_call_flags): Remove kludge.
28421
28422 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
28423
28424         * sel-sched.c (sel_region_init): Move call to
28425         sel_setup_region_sched_flags after setup_current_loop_nest.
28426
28427 2011-04-08  Andrey Belevantsev  <abel@ispras.ru>
28428
28429         PR rtl-optimization/48272
28430         * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
28431         init_insn_reg_pressure_info.  Adjust a caller.
28432         * sched-int.h (init_insn_reg_pressure_info): Declare.
28433         * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
28434         when sched-pressure is enabled.
28435
28436 2011-04-08  Richard Guenther  <rguenther@suse.de>
28437
28438         * gimple.c (gimple_set_modified): Do not queue calls to
28439         MODIFIED_NORETURN_CALLS here ...
28440         * tree-ssa-operands.c (update_stmt_operands): ... but here.
28441
28442 2011-04-08  Richard Guenther  <rguenther@suse.de>
28443
28444         PR lto/48467
28445         * toplev.c (lang_dependent_init): Do not open asm_out_file
28446         in WPA mode, nor perform debug machinery initialization.
28447         (finalize): Do not unlink asm_out_file in WPA mode.
28448
28449 2011-04-08  Richard Guenther  <rguenther@suse.de>
28450
28451         * gimple.h (gimple_call_fntype): New function.
28452         (gimple_call_return_type): Use it.
28453         * expr.c (expand_expr_real_1): Use gimple_call_fntype.
28454         * gimple-low.c (gimple_check_call_args): Likewise.
28455         * gimple.c (gimple_call_flags): Likewise.
28456         (gimple_call_arg_flags): Likewise.
28457         (gimple_call_return_flags): Likewise.
28458         * tree-cfg.c (verify_gimple_call): Likewise.
28459         (do_warn_unused_result): Likewise.
28460         * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
28461         * value-prof.c (gimple_ic_transform): Fix fndecl check.
28462
28463 2011-04-08  Dmitry Melnik  <dm@ispras.ru>
28464
28465         PR rtl-optimization/48235
28466         * sel-sched.c (code_motion_process_successors): Recompute the last
28467         insn in basic block if control flow changed.
28468         (code_motion_path_driver): Ditto.  Recompute the first insn as well.
28469         Update condition for ilist_remove.
28470
28471 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
28472
28473         PR rtl-optimization/48302
28474         * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
28475         * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument.  Use
28476         it to record added preheader blocks.
28477         * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument.  Pass it
28478         on to sel_add_loop_preheaders.
28479         (sel_region_init): Move call to setup_current_loop_nest after
28480         sel_init_bbs.
28481
28482 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
28483
28484         PR target/48273
28485         * cfgloop.h (loop_has_exit_edges): New helper.
28486         * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
28487         non-clonable.
28488         * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
28489         that have no exit edges.
28490
28491 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
28492
28493         PR rtl-optimization/48442
28494         * sel-sched.c (init_seqno): Remove number_of_insns argument.  Update
28495         all callers.  Adjust assert.
28496
28497 2011-04-08  Jakub Jelinek  <jakub@redhat.com>
28498
28499         PR tree-optimization/48377
28500         * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
28501         is_packed to true even for types with smaller TYPE_ALIGN than
28502         TYPE_SIZE.
28503
28504 2011-04-08  Richard Guenther  <rguenther@suse.de>
28505
28506         PR bootstrap/48513
28507         * doc/tm.texi: Re-generate.
28508
28509 2011-04-08  Wei Guozhi  <carrot@google.com>
28510
28511         PR target/47855
28512         * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
28513         * config/arm/arm.c (arm_attr_length_push_multi): New function.
28514         * config/arm/arm.md (*push_multi): Change the length computation to
28515         call a C function.
28516
28517 2011-04-08  Anatoly Sokolov  <aesok@post.ru>
28518
28519         * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
28520         (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
28521         * doc/tm.texi: Regenerate.
28522         * system.h (ASM_OUTPUT_BSS): Poison.
28523         * varasm.c (asm_output_bss): Remove function.
28524         (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
28525
28526         * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
28527         * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
28528         * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
28529         * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
28530         Likewise.
28531         * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
28532         Likewise.
28533         * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
28534         Likewise.
28535         * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
28536
28537 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
28538
28539         * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
28540         EnumValue lines.
28541
28542 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
28543
28544         * config/m68k/m68k.c (m68k_handle_option): Don't handle
28545         OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
28546         OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
28547         OPT_mcpu32.
28548         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
28549         handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
28550         -m68030, -m68040, -m68060, -mcpu32 and -m68332.
28551         * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
28552         m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
28553         * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
28554         (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
28555         (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
28556         options.  Don't map other m68k options manually.  Don't handle
28557         old-style options as canonical.
28558         (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
28559         * doc/install.texi (m68k-*-*): Document binutils version requirement.
28560
28561 2011-04-07  Eric Botcazou  <ebotcazou@adacore.com>
28562
28563         * basic-block.h (force_nonfallthru): Move to...
28564         * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
28565         (force_nonfallthru): ...here.
28566         * cfghooks.c (force_nonfallthru): New function.
28567         * cfgrtl.c (force_nonfallthru): Rename into...
28568         (rtl_force_nonfallthru): ...this.
28569         (commit_one_edge_insertion): Do not set AUX field.
28570         (commit_edge_insertions): Do not discover new basic blocks.
28571         (rtl_cfg_hooks): Add rtl_force_nonfallthru.
28572         (cfg_layout_rtl_cfg_hooks): Likewise.
28573         * function.c (thread_prologue_and_epilogue_insns): Remove bogus
28574         ATTRIBUTE_UNUSED.  Discover new basic blocks in the prologue insns.
28575         * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
28576
28577 2011-04-07  Anatoly Sokolov  <aesok@post.ru>
28578
28579         * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
28580         Remove macros.
28581
28582 2011-04-07  Uros Bizjak  <ubizjak@gmail.com>
28583
28584         * config/i386/sse.md: Update copyright year.
28585         (avxcvtvecmode): Remove.
28586         (sse_movhlps): Merge with *avx_movhlps.
28587         (sse_movlhps): Merge with *avx_movlhps.
28588         (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
28589         (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
28590         (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
28591         (sse_loadhps): Merge with *avx_loadhps.
28592         (sse_storelps): Merge with *avx_storelps.
28593         (sse_loadlps): Merge with *avx_loadlps.
28594         (sse_movss): Merge with *avx_movss.
28595         (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
28596         (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
28597         (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
28598         (*vec_set<mode>_0_sse2): Split multi-unit alternative.
28599         (vec_set<mode>_0): Ditto.
28600         (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
28601         (sse4_1_insertps): Merge with *avx_insertps.
28602         (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
28603         (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
28604         (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
28605         (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
28606         (sse2_storehpd): Merge with *avx_storehpd.
28607         (sse2_loadhpd): Merge with *avx_loadhpd.
28608         (sse2_loadlpd): Merge with *avx_loadlpd.
28609         (sse2_movsd): Merge with *avx_movsd.
28610         (*vec_concatv2df): Merge with *vec_concatv2df.
28611
28612 2011-04-07  Jakub Jelinek  <jakub@redhat.com>
28613
28614         PR debug/48343
28615         * combine.c (combine_instructions): Add last_combined_insn,
28616         update it if insn is after it, pass it to all try_combine calls.
28617         (try_combine): Add last_combined_insn parameter, pass it instead of
28618         i3 to propagate_for_debug.
28619
28620 2011-04-07  Nick Clifton  <nickc@redhat.com>
28621
28622         * config/mn10300/mn10300.md (movqi_internal): Add alternatives
28623         to handle MDR <-> data register transfers.
28624         (movhi_internal): Likewise.
28625
28626 2011-04-07  Alan Modra  <amodra@gmail.com>
28627
28628         * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
28629         previous stack info.
28630
28631 2011-04-07  Tom de Vries  <tom@codesourcery.com>
28632
28633         PR target/43920
28634         * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter.  Pass dir to
28635         flow_find_cross_jump.  Swap variables to implement backward replacement.
28636         (try_crossjump_bb): Add argument to try_crossjump_to_edge.
28637
28638 2011-04-07  Tom de Vries  <tom@codesourcery.com>
28639
28640         PR target/43920
28641         * cfgcleanup.c (walk_to_nondebug_insn): New function.
28642         (flow_find_cross_jump): Use walk_to_nondebug_insn.  Recalculate bb1
28643         and bb2.
28644         (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
28645         src1 or src2.  Redirect edges to the last basic block.  Update
28646         frequency and count on multiple basic blocks in case of fallthru.
28647
28648 2011-04-07  Tom de Vries  <tom@codesourcery.com>
28649
28650         PR target/43920
28651         * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
28652         function.
28653         (old_insns_match_p): Change return type.  Replace return false/true
28654         with return dir_none/dir_both.  Use can_replace_by.
28655         (flow_find_cross_jump): Add dir_p parameter.  Init replacement
28656         direction from dir_p.  Register replacement direction in dir, last_dir
28657         and afterlast_dir.  Handle new return type of old_insns_match_p using
28658         merge_dir.  Return replacement direction in dir_p.
28659         (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
28660         return type of old_insns_match_p.
28661         (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
28662         * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
28663         flow_find_cross_jump.
28664         * basic-block.h (enum replace_direction): New type.
28665         (flow_find_cross_jump): Add parameter to declaration.
28666
28667 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
28668
28669         * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
28670         (AVXMODEDCVTPS2DQ): Ditto.
28671         (VEC_FLOAT_MODE): Ditto.
28672         (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3.  Use VF mode
28673         iterator.  Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
28674         (<any_logic:code><mode>3): Use VF mode iterator.
28675         (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
28676         Use VF mode iterator.
28677         (copysign<mode>3): Use VF mode iterator.
28678         (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3.  Handle
28679         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
28680         (*<any_logic:code><MODEF:mode>3): Merge with
28681         *avx_<any_logic:code><MODEF:mode>3.
28682         (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
28683         (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
28684         (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
28685         (avx_cvtdq2ps<avxmodesuffix>): Remove.
28686         (sse2_cvtdq2ps): Use %v modifier.
28687         (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
28688         (avx_cvtps2dq<avxmodesuffix>): Remove.
28689         (sse2_cvtps2dq): Use %v modifier.
28690         (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
28691         (avx_cvttps2dq<avxmodesuffix>): Remove.
28692         (sse2_cvttps2dq): Use %v modifier.
28693         (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
28694         (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
28695         (sse2_cvtsd2siq): Fix insn template.
28696         (sse2_cvtsd2siq_2): Ditto.
28697         (sse2_cvttsd2siq): Ditto.
28698         (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
28699         (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
28700
28701 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
28702
28703         * gcov-io.c: Use GCC Runtime Library Exception.
28704
28705 2011-04-06  Jakub Jelinek  <jakub@redhat.com>
28706
28707         PR debug/48466
28708         * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
28709         as base_reg whatever register reg has been eliminated to, instead
28710         of hardcoding STACK_POINTER_REGNUM.
28711
28712 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
28713
28714         * doc/tm.texi.in: Document C target hooks as separate from general
28715         target hooks.
28716         * doc/tm.texi: Regenerate.
28717         * genhooks.c (struct hook_desc): Add docname field.
28718         (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC).  Initialize
28719         docname field.
28720         (hook_array): Include c-target.def.
28721         (emit_documentation): Use docname field in output.
28722         (emit_init_macros): Take docname argument.  Only emit definitions
28723         for hooks matching docname.
28724         (main): Expect additional arguments in all cases.  Pass argument
28725         to emit_init_macros.
28726         * target.def: Move initial macro definitions and comments to
28727         target-hooks-macros.h.
28728         (gcc_targetcm): Move to c-family/c-target.def.
28729         * target.h (targetcm): Move declaration to c-family/c-target.h.
28730         * targhooks.c (default_handle_c_option): Move to
28731         c-family/c-opts.c.
28732         * targhooks.h (default_handle_c_option): Move declaration to
28733         c-family/c-common.h.
28734         * target-hooks-macros.h: New file.
28735         * config.gcc (target_has_targetcm): Define and use to add to
28736         c_target_objs and cxx_target_objs.
28737         * config/default-c.c: New file.
28738         * config/darwin-c.c: Include c-target.h and c-target-def.h instead
28739         of target.h and target-def.h.
28740         (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
28741         (darwin_objc_construct_string, darwin_cfstring_ref_p,
28742         darwin_check_cfstring_format_arg): Make static.
28743         (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
28744         TARGET_STRING_OBJECT_REF_TYPE_P,
28745         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
28746         * config/darwin-protos.h (darwin_objc_construct_string,
28747         darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
28748         declare.
28749         * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
28750         TARGET_STRING_OBJECT_REF_TYPE_P,
28751         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
28752         * config/t-darwin (darwin-c.o): Update dependencies.
28753         * system.h (TARGET_HAS_TARGETCM): Poison.
28754         * Makefile.in (TARGET_H): Update.
28755         (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
28756         (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
28757         (default-c.o): New target.
28758         (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
28759         (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
28760         (s-tm-texi): Pass -d option to genhooks.  Also test timestamp on
28761         c-target.def.
28762         (build/genhooks.o): Update dependencies.
28763
28764 2011-04-06  Richard Guenther  <rguenther@suse.de>
28765
28766         * ipa-inline.c (enum inlining_mode): Remove.
28767         (cgraph_flatten): Use some other token.
28768         (cgraph_edge_early_inlinable_p): New function, split out from ...
28769         (cgraph_perform_always_inlining): New function, split out from ...
28770         (cgraph_decide_inlining_incrementally): ... here.
28771         (cgraph_mark_inline_edge): Adjust.
28772         (cgraph_early_inlining): Re-structure.
28773         (pass_early_inline): Require SSA form.
28774
28775 2011-04-06  Andrew Stubbs  <ams@codesourcery.com>
28776             Julian Brown  <julian@codesourcery.com>
28777             Mark Shinwell  <shinwell@codesourcery.com>
28778
28779         * config/arm/arm.h (arm_class_likely_spilled_p): Check against
28780         LO_REGS only for Thumb-1.
28781         (MODE_BASE_REG_CLASS): Restrict base registers to those which can
28782         be used in short instructions when optimising for size on Thumb-2.
28783
28784 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
28785
28786         * gimple-low.c (lower_gimple_return): When not optimizing, force labels
28787         associated with user returns to be preserved.
28788
28789 2011-04-06  Tristan Gingold  <gingold@adacore.com>
28790
28791         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
28792         symbol_queue_size, DBXOUT_DECR_NESTING,
28793         (DBXOUT_DECR_NESTING_AND_RETURN): Also define
28794         if XCOFF_DEBUGGING_INFO.
28795
28796 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
28797
28798         * config/i386/i386.md (attribute isa): New.
28799         (attribute enabled): New.
28800         (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
28801         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
28802         (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
28803         (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
28804         (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
28805         (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
28806         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
28807         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
28808
28809         * config/i386/sse.md (VF): New mode iterator.
28810         (VF1): Ditto.
28811         (VF2): Ditto.
28812         (VF_128): Ditto.
28813         (SSEMODEF4): Remove.
28814         (attribute sse): Handle V8SF and V4DF modes.
28815         (<absneg:code><mode>2): Use VF mode iterator.
28816         (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2.  Use VF
28817         mode iterator.
28818         (<plusminus_insn><mode>3): Use VF mode iterator.
28819         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
28820         Use VF mode iterator.
28821         (<sse>_vm<plusminus_insn><mode>3): Merge with
28822         *avx_vm<plusminus_insn><mode>3.  Use VF_128 mode iterator.
28823         (mul<mode>3): Use VF mode iterator.
28824         (*mul<mode>3): Merge with *avx_mul<mode>3.  Use VF mode iterator.
28825         (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3.  Use VF_128
28826         mode iterator.
28827         (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
28828         (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
28829         (<sse>_div<mode>3): Merge with *avx_div<mode>3.  Use VF mode iterator.
28830         (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3.  Use VF_128
28831         mode iterator.
28832         (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
28833         Use VF1 mode iterator.
28834         (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
28835         (sqrt<VF2:mode>2): New expander.
28836         (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
28837         (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
28838         and sqrtv2df2.  Use VF mode iterator.
28839         (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2.  Use VF_128
28840         mode iterator.
28841         (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
28842         (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
28843         Use VF1 mode iterator.
28844         (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
28845         (<smaxmin:code><mode>3): Use VF mode iterator.
28846         (*<smaxmin:code><mode>3_finite): Merge with
28847         *avx_<smaxmin:code><mode>3_finite.  Use VF mode iterator.
28848         (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
28849         (<sse>_vm<smaxmin:code><mode>2): Merge with
28850         *avx_vm<smaxmin:code><mode>2.  Use VF_128 mode iterator.
28851         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.  Use VF
28852         mode iterator.
28853         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.  Use VF
28854         mode iterator.
28855         (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
28856         (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
28857         (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
28858         (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
28859         (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3.  Use
28860         VF mode iterator.
28861         (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
28862         Use VF_128 mode iterator.
28863         (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3.  Use VF
28864         mode iterator.
28865         (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3.  Use
28866         VF_128 mode iterator.
28867         (vcond<mode>): Use VF mode iterator.
28868         * config/i386/predicates.md (sse_comparison_operator): Merge with
28869         avx_comparison_float_operator.  Do not declare as special_predicate.
28870         * config/i386/i386.c (struct builtin_description): Update for renamed
28871         compare patterns.
28872         (ix86_expand_args_builtin): Ditto.
28873         (ix86_expand_sse_compare_mask): Ditto.
28874
28875 2011-04-06  Richard Guenther  <rguenther@suse.de>
28876
28877         * tree-inline.c (estimate_num_insns): For calls simply account
28878         for all passed arguments and a used return value.
28879
28880 2011-04-06  Richard Guenther  <rguenther@suse.de>
28881
28882         PR tree-optimization/47663
28883         * cgraph.h (struct cgraph_edge): Add call_stmt_size and
28884         call_stmt_time fields.
28885         (cgraph_edge_inlinable_p): Declare.
28886         (cgraph_edge_recursive_p): New inline function.
28887         * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
28888         (cgraph_clone_edge): Copy it.
28889         * ipa-inline.c (cgraph_estimate_edge_time): New function.
28890         Account for call stmt time.
28891         (cgraph_estimate_time_after_inlining): Take edge argument.
28892         (cgraph_estimate_edge_growth): Account call stmt size.
28893         (cgraph_estimate_size_after_inlining): Take edge argument.
28894         (cgraph_mark_inline_edge): Adjust.
28895         (cgraph_check_inline_limits): Likewise.
28896         (cgraph_recursive_inlining_p): Remove.
28897         (cgraph_edge_badness): Use cgraph_edge_recursive_p.
28898         (cgraph_decide_recursive_inlining): Take edge argument and
28899         adjust.
28900         (cgraph_decide_inlining_of_small_functions): Do not avoid
28901         diags for recursive inlining here.
28902         (cgraph_flatten): Adjust.
28903         (cgraph_decide_inlining_incrementally): Likewise.
28904         (estimate_function_body_sizes): Remove call cost handling.
28905         (compute_inline_parameters): Initialize caller edge call costs.
28906         (cgraph_estimate_edge_growth): New function.
28907         (cgraph_estimate_growth): Use it.
28908         (cgraph_edge_badness): Likewise.
28909         (cgraph_check_inline_limits): Take an edge argument.
28910         (cgraph_decide_inlining_of_small_functions): Adjust.
28911         (cgraph_decide_inlining): Likewise.
28912         * tree-inline.c (estimate_num_insns): Only account for call
28913         return value if it is used.
28914         (expand_call_inline): Avoid diagnostics on recursive inline
28915         functions here.
28916         * lto-cgraph.c (lto_output_edge): Output edge call costs.
28917         (input_edge): Input edge call costs.
28918
28919 2011-04-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28920
28921         * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
28922
28923 2011-04-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
28924
28925         * doc/invoke.texi (Spec Files): Fix typo.
28926
28927 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
28928
28929         * profile.c (branch_prob): Move declaration of local variable.  Remove
28930         obsolete ??? comment.  Expand the location explicitly instead of using
28931         the LOCATION_FILE and LOCATION_LINE macros.
28932
28933 2011-04-06  Wei Guozhi  <carrot@google.com>
28934
28935         PR target/47855
28936         * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
28937         (arm_cond_branch): Likewise.
28938         (arm_cond_branch_reversed): Likewise.
28939         (arm_jump): Likewise.
28940         (push_multi): Likewise.
28941         * config/arm/constraints.md (Py): New constraint.
28942
28943 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
28944
28945         PR bootstrap/48471
28946         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
28947         Move these...
28948         (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
28949         (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
28950         #ifdef DBX_DEBUGGING_INFO.
28951
28952 2011-04-05  Bernd Schmidt  <bernds@codesourcery.com>
28953
28954         PR bootstrap/48403
28955         * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
28956         if old and new states differ.
28957
28958 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
28959
28960         * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
28961         OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
28962         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
28963         handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
28964         * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
28965         mcfv4e): Use Alias.
28966         * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
28967         ColdFire options to -mcpu= options.
28968
28969 2011-04-05  Jeff Law  <law@redhat.com>
28970
28971         * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
28972         check if BB is a successor of LOOP->header and return
28973         NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
28974
28975 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
28976
28977         * cprop.c (struct reg_use): Remove.
28978         (reg_use_table): Make an array of RTX.
28979         (find_used_regs, constprop_register, local_cprop_pass,
28980         bypass_block): Simplify users of reg_use_table.
28981         (cprop_insn): Likewise.  Iterate if copy propagation succeeded
28982         on one of the uses found by find_used_regs.
28983
28984 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
28985
28986         PR bootstrap/48469
28987         * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
28988         declaration.
28989
28990 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
28991
28992         * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
28993         as an rtx.
28994         (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
28995
28996 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
28997
28998         PR middle-end/48441
28999         * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
29000
29001 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
29002
29003         * combine.c: Include obstack.h.
29004         (struct insn_link): Define.
29005         (uid_log_links): Adjust type.
29006         (FOR_EACH_LOG_LINK): New macro.
29007         (insn_link_obstack): Declare.
29008         (alloc_insn_link): Define.
29009         (create_log_links): Call it.  Use FOR_EACH_LOG_LINK and adjust
29010         type of link variables.
29011         (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
29012         (try_combine, record_promoted_values, distribute_notes): Likewise.
29013         (distribute_links): Likewise.  Tweak prototype.
29014         (clear_log_links): Delete.
29015         (adjust_for_new_dest): Call alloc_insn_link.
29016         * Makefile.in (combine.o): Depend on $(OBSTACK_H).
29017
29018 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
29019
29020         * gcse.c (modify_mem_list): Convert to an array of VECs.
29021         (canon_modify_mem_list, compute_transp): Tweak formatting.
29022         (alloc_gcse_mem): Likewise.  Adjust for modify_mem_list change.
29023         (load_killed_in_block_p): Likewise.
29024         (record_last_mem_set_info): Likewise.
29025         (clear_modify_mem_tables): Likewise.
29026
29027 2011-04-05  Tom de Vries  <tom@codesourcery.com>
29028
29029         PR middle-end/48461
29030         * function.c (emit_use_return_register_into_block): Only define if
29031         HAVE_return.
29032
29033 2011-04-05  Eric Botcazou  <ebotcazou@adacore.com>
29034
29035         * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
29036
29037 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
29038
29039         * config/rx/rx-opts.h: New.
29040         * config/rx/rx.c (rx_cpu_type): Remove.
29041         (rx_handle_option): Don't assert that global structures are in
29042         use.  Access variables via opts pointer.  Defer most handling of
29043         OPT_mint_register_.  Use error_at.
29044         (rx_option_override): Handle deferred OPT_mint_register_ here.
29045         * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
29046         * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
29047         (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
29048         (rx_cpu_types): New Enum and EnumValue entries.
29049         (mint-register=): Use Defer and use Var accordingly.
29050
29051 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
29052
29053         * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
29054         (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
29055         * final.c (debug_flush_symbol_queue, debug_queue_symbol):
29056         Move these...
29057         (debug_free_queue, debug_nesting, symbol_queue_index):
29058         ...and these...
29059         * dbxout.c: ...to here.  Make static.
29060
29061 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
29062
29063         * gcse.c (modify_pair): Define.  Define a VEC of it.
29064         (canon_modify_mem_list): Convert to an array of VECs.
29065         (free_insn_expr_list_list): Delete.
29066         (clear_modify_mem_tables): Call VEC_free instead.
29067         (record_last_mem_set_info): Don't modify canon_modify_mem_list.
29068         (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
29069         (canon_list_insert, compute_transp): Likewise.
29070
29071 2011-04-05  Tom de Vries  <tom@codesourcery.com>
29072
29073         PR target/43920
29074         * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
29075         for size.
29076
29077 2011-04-05  Tom de Vries  <tom@codesourcery.com>
29078
29079         PR target/43920
29080         * function.c (emit_use_return_register_into_block): New function.
29081         (thread_prologue_and_epilogue_insns): Use
29082         emit_use_return_register_into_block.
29083
29084 2011-04-05  Tom de Vries  <tom@codesourcery.com>
29085
29086         PR target/43920
29087         * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
29088         insn.
29089
29090 2011-04-05  Tom de Vries  <tom@codesourcery.com>
29091
29092         * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
29093
29094 2011-04-05  Yufeng Zhang  <yufeng.zhang@arm.com>
29095
29096         * config/arm/arm.md (define_constants for unspec): Replace with
29097         define_c_enum.
29098         (define_constants for unspecv): Replace with define_c_enum.
29099         * config/arm/neon.md (define_constants for unspec): Replace with
29100         define_c_enum.
29101
29102 2011-04-04  Richard Henderson  <rth@redhat.com>
29103
29104         PR bootstrap/48400
29105         * dwarf2out.c (output_line_info): Always emit line info from
29106         at least one section.
29107         (dwarf2out_init): Create text_section_line_info here ...
29108         (set_cur_line_info_table): ... not here.
29109
29110 2011-04-04  Vladimir Makarov  <vmakarov@redhat.com>
29111
29112         PR target/48380
29113         * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
29114         not called.
29115
29116         * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
29117
29118 2011-04-04  Steven Bosscher  <steven@gcc.gnu.org>
29119
29120         * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
29121         (expr_equiv_p): Remove.
29122         (insert_set_in_table): Look at <dest, src> pair instead of expr.
29123         (hash_scan_set): Update call to insert_set_in_table.
29124         (dump_hash_table): Dump <dest, src> pair.
29125         (lookup_set): Simplify.  Lookup <dest, src> pair.
29126         (compute_transp): Remove, fold heavily simplified code into...
29127         (compute_local_properties): ...here.  Expect COMP and TRANSP
29128         unconditionally.
29129         (find_avail_set): Take set directly from struct expr.
29130         (find_bypass-set): Likewise.
29131         (bypass_block): Likewise.
29132         (cprop_insn): Likewise.  Remove redundant INSN_P test.
29133
29134         * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
29135         checks on form of COND from find_implicit_sets to here.
29136         (find_implicit_sets): Cleanup control flow. Split critical edges
29137         if it exposes implicit sets.  Allocate/resize implicit_sets as
29138         necessary.
29139         (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
29140         changed something.  Run df_analyze after find_implicit_sets if any
29141         edges were split.  Do not allocate implicit_sets here.
29142
29143         * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
29144         (gcse_obstack): Renamed to cprop_obstack.
29145         (GNEW, GNEWVEC, GNEWVAR): Remove.
29146         (gmalloc): Remove.
29147         (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
29148         (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
29149         (gcse_alloc): Likewise, and rename to cprop_alloc.
29150         (alloc_gcse_men, free_gcse_mem): Remove.
29151         (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
29152         (compute_hash_table_work): Allocate and free reg_set_bitmap here.
29153         (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
29154
29155         * cprop.c (oprs_not_set_p): Remove.
29156         (mark_set, mark_clobber): Remove.
29157         (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
29158         (reg_not_set_p): New function.
29159         (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
29160         (cprop_insn): Likewise.
29161         (cprop_jump): Use FOR_EACH_EDGE.
29162
29163 2011-04-04  Bernd Schmidt  <bernds@codesourcery.com>
29164
29165         PR bootstrap/48403
29166         * haifa-sched.c (nonscheduled_insns_begin): New static variable.
29167         (rank_for_schedule): Use scheduled_insns vector instead of
29168         last_scheduled_insn.
29169         (ok_for_early_queue_removal): Likewise.
29170         (queue_to_ready): Search forward in nonscheduled_insns_begin if
29171         we have a dbg_cnt.
29172         (choose_ready): Likewise.
29173         (commit_schedule): Use VEC_iterate.
29174         (schedule_block): Initialize nonscheduled_insns_begin.  If we have
29175         a dbg_cnt, use it and ensure the first insn is in the ready list.
29176         (haifa_sched_init): Allocate scheduled_insns.
29177         (sched_extend_ready_list): Don't allocate it; reserve space.
29178         (haifa_sched_finish): Free it.
29179
29180 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
29181
29182         * optc-gen.awk: Always remove type from Variable entry before
29183         recording in var_seen.
29184
29185 2011-04-04  Eric Botcazou  <ebotcazou@adacore.com>
29186
29187         * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
29188         * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
29189         call to tidy_fallthru_edges.
29190
29191 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
29192
29193         * doc/options.texi (ToLower): Document.
29194         * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
29195         * opts-common.c (decode_cmdline_option): Handle cl_tolower.
29196         * opts.h (cl_option): Add cl_tolower field.
29197         * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
29198         arguments with lowercase strings.
29199         * config/rx/rx.opt (mcpu=): Add ToLower.
29200         * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
29201         argument.
29202
29203 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
29204
29205         * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
29206
29207 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
29208
29209         * config/vax/vax.c: Include reload.h.
29210
29211 2011-04-04  Anatoly Sokolov  <aesok@post.ru>
29212
29213         * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
29214         * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
29215         (sparc_preferred_reload_class): New function.
29216
29217 2011-04-04  Jakub Jelinek  <jakub@redhat.com>
29218
29219         PR debug/48401
29220         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
29221         Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
29222
29223 2011-04-03  Nathan Froyd  <froydnj@codesourcery.com>
29224
29225         * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
29226         * tree.c (initialize_tree_contains_struct): Adjust accordingly.
29227
29228 2011-04-03  Anatoly Sokolov  <aesok@post.ru>
29229
29230         * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
29231         (ASM_OUTPUT_ALIGNED_BSS): Define.
29232
29233 2011-04-03  Michael Matz  <matz@suse.de>
29234
29235         * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
29236         and next_slot members.
29237         (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
29238         lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
29239         (lto_streamer_cache_append): Declare.
29240         * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
29241         unsigned index, remove offset parameter, ensure that we append
29242         or update existing entries.
29243         (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
29244         parameter, update next_slot for append.
29245         (lto_streamer_cache_insert): Use unsigned index, remove offset_p
29246         parameter.
29247         (lto_streamer_cache_insert_at): Likewise.
29248         (lto_streamer_cache_append): New function.
29249         (lto_streamer_cache_lookup): Use unsigned index.
29250         (lto_streamer_cache_get): Likewise.
29251         (lto_record_common_node): Don't test tree_node_can_be_shared.
29252         (preload_common_node): Adjust call to lto_streamer_cache_insert.
29253         (lto_streamer_cache_delete): Don't free offsets member.
29254         * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
29255         (lto_output_string_with_length): Use lto_output_data_stream.
29256         (lto_output_tree_header): Remove ix parameter, don't write it.
29257         (lto_output_builtin_tree): Likewise.
29258         (lto_write_tree): Adjust callers to above, don't track and write
29259         offset, write unsigned index.
29260         (output_unreferenced_globals): Don't emit all global vars.
29261         (write_global_references): Use unsigned indices.
29262         (lto_output_decl_state_refs): Likewise.
29263         (write_symbol): Likewise.
29264         * lto-streamer-in.c (lto_input_chain): Move earlier.
29265         (input_function): Use unsigned index.
29266         (input_alias_pairs): Don't read and then ignore all global vars.
29267         (lto_materialize_tree): Remove ix_p parameter, don't read index,
29268         don't pass it back, use lto_streamer_cache_append.
29269         (lto_register_var_decl_in_symtab): Use unsigned index.
29270         (lto_register_function_decl_in_symtab): Likewise.
29271         (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
29272         index.
29273         (lto_get_builtin_tree): Don't read index, use
29274         lto_streamer_cache_append.
29275         (lto_read_tree): Adjust call to lto_materialize_tree.
29276
29277         * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
29278         don't use function calls in arguments to MIN.
29279
29280         * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
29281         twice.
29282
29283         * gimple.c (gimple_type_leader_entry): Mark deletable.
29284
29285 2011-04-03  Alan Modra  <amodra@gmail.com>
29286
29287         * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
29288
29289 2011-04-03  Michael Matz  <matz@suse.de>
29290
29291         * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
29292         an integer.
29293         * tree.h (tree_decl_non_common.vindex): Adjust comment.
29294
29295 2011-04-03  Michael Matz  <matz@suse.de>
29296
29297         * cgraphbuild.c (record_reference): Canonicalize constructor values.
29298         * gimple-fold.c (canonicalize_constructor_val): Accept being called
29299         without function context.
29300         * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
29301         current_function_decl and cfun.
29302
29303 2011-04-03  Michael Matz  <matz@suse.de>
29304
29305         * tree.c (decl_init_priority_insert): Don't create entry for
29306         default priority.
29307         (decl_fini_priority_insert): Ditto.
29308         (fields_compatible_p, find_compatible_field): Remove.
29309         * tree.h (fields_compatible_p, find_compatible_field): Remove.
29310         * gimple.c (gimple_compare_field_offset): Adjust block comment.
29311
29312 2011-04-03  Eric Botcazou  <ebotcazou@adacore.com>
29313
29314         * combine.c (try_combine): Remove useless local variable.
29315
29316 2011-04-03  Richard Guenther  <rguenther@suse.de>
29317             Ira Rosen  <ira.rosen@linaro.org>
29318
29319         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
29320         non-variable offsets and compare the remaining bases of the two
29321         accesses instead of looking for exact same data-ref.
29322
29323 2011-04-02  Kai Tietz  <ktietz@redhat.com>
29324
29325         PR target/48416
29326         * i386.c (ix86_function_arg_boundary): Fix printf formatter.
29327
29328         * i386.c (ix86_is_msabi_thiscall): New helper function.
29329         (ix86_is_type_thiscall): New helper function.
29330         (ix86_comp_type_attributes): Handle thiscall for method-functions
29331         special.
29332         (init_cumulative_args): Likewise.
29333         (find_drap_reg): Likewise.
29334         (ix86_static_chain): Likewise.
29335         (x86_this_parameter): Likewise.
29336         (x86_output_mi_thunk): Likewise.
29337
29338 2011-04-01  Olivier Hainque  <hainque@adacore.com>
29339             Nicolas Setton  <setton@adacore.com>
29340             Eric Botcazou  <ebotcazou@adacore.com>
29341
29342         * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
29343         (add_gnat_descriptive_type_attribute): New function.
29344         (gen_array_type_die): Call it.
29345         (gen_enumeration_type_die): Likewise.
29346         (gen_struct_or_union_type_die): Likewise.
29347         (modified_type_die): Likewise.
29348         * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
29349         * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
29350         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
29351
29352 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
29353
29354         PR bootstrap/48148
29355         * dwarf2out.c (resolve_addr): Don't call force_decl_die
29356         if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
29357
29358         Revert:
29359         2011-03-17  Richard Guenther  <rguenther@suse.de>
29360
29361         PR bootstrap/48148
29362         * lto-cgraph.c (input_overwrite_node): Clear the abstract
29363         origin for decls in other ltrans units.
29364         (input_varpool_node): Likewise.
29365
29366 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
29367
29368         PR middle-end/48335
29369         * expr.c (expand_assignment): Handle all possibilities
29370         if TO_RTX is CONCAT.
29371         * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
29372         (store_split_bit_field): If SUBREG_REG (op0) or
29373         op0 itself has smaller mode than word, return it
29374         for offset 0 and const0_rtx for out-of-bounds stores.
29375         If word is const0_rtx, skip it.
29376
29377 2011-04-01  Naveen H.S  <naveen.S@kpitcummins.com>
29378
29379         * config/h8300/h8300.c (print_operand_address): Rename to...
29380         (h8300_print_operand_address): ...this. Make static. Adjust comments.
29381         Call h8300_print_operand and h8300_print_operand_address instead of
29382         print_operand and print_operand_address. Declare.
29383         (print_operand): Renake to...
29384         (h8300_print_operand): ...this. Make static. Adjust comments.
29385         Call h8300_print_operand instead of print_operand. Declare.
29386         (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
29387         (h8300_register_move_cost): Likewise.
29388         (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
29389         TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
29390         * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
29391         PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
29392         * config/h8300/h8300-protos.h (print_operand): Delete.
29393         (print_operand_address): Delete.
29394
29395 2011-04-01  Richard Henderson  <rth@redhat.com>
29396
29397         PR 48400
29398         * dwarf2out.c (dwarf2out_source_line): Disable discriminators
29399         in strict mode before dwarf4.  Re-order tests to early out
29400         before switching sections.
29401
29402 2011-04-01  Nathan Froyd  <froydnj@codesourcery.com>
29403
29404         * config/h8300/constraints.md: New file.
29405         * config/h8300/h8300.md: Include it.  Use satisfies_constraint_J,
29406         satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
29407         (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
29408         * config/h8300/predicates.md (bit_operand): Likewise.
29409         (incdec_operand): Use satisfies_constraint_M and
29410         satisfies_constraint_O.  Don't use C code block.
29411         * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
29412         * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
29413         (compute_mov_length): Use satisfies_constraint_G.
29414         (fix_bit_operand): Use satisfies_constraint_U.
29415         * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
29416         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
29417         (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
29418         (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
29419         (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
29420         (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
29421         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
29422         (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
29423         (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
29424         (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
29425         (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
29426         (EXTRA_MEMORY_CONSTRAINT): Delete.
29427
29428 2011-04-01  Andrew Pinski  <pinskia@gmail.com>
29429             Michael Meissner  <meissner@linux.vnet.ibm.com>
29430
29431         PR target/48262
29432         * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
29433         operands, as per the specifications.
29434
29435         * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
29436         (vec_extract_evenv4sf): Ditto.
29437         (vec_extract_evenv8hi): Ditto.
29438         (vec_extract_evenv16qi): Ditto.
29439         (vec_extract_oddv4si): Ditto.
29440
29441 2011-03-31  Mark Wielaard  <mjw@redhat.com>
29442
29443         * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
29444         high_pc attribute if the CU has no associated code. Only output
29445         DW_AT_entry_pc for CU if not generating strict dwarf and
29446         dwarf_version < 4.
29447
29448 2011-04-01  Bernd Schmidt  <bernds@codesourcery.com>
29449
29450         * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
29451         * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
29452         out of ...
29453         (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
29454         * final.c (final_start_function): Call the new function rather
29455         than using a NULL argument for dwarf2out_frame_debug.
29456
29457         * ifcvt.c (cond_exec_process_insns): Disallow converting a block
29458         that contains the prologue.
29459
29460         * haifa-sched.c (queue_insn): New arg REASON.  All callers
29461         changed.  Print it in debugging output.
29462
29463         * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
29464
29465         * sched-ebb.c (begin_schedule_ready): Remove second argument.
29466         Split most of the code into...
29467         (begin_move_insn): ... here.  New function.
29468         (ebb_sched_info): Add a pointer to it.
29469         * haifa-sched.c (scheduled_insns): New static variable.
29470         (sched_extend_ready_list): Allocate it.
29471         (schedule_block): Use it to record the order of scheduled insns.
29472         Perform RTL changes to move insns only after all scheduling
29473         decisions have been made.
29474         * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
29475         begin_move_insn field.
29476         * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
29477         * sched-int.h (struct haifa_sched_info): Remove second argument
29478         from begin_schedule_ready hook.  Add new member begin_move_insn.
29479         * sched-rgn.c (begin_schedule_ready): Remove second argument.
29480         (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
29481
29482         * haifa-sched.c (prune_ready_list): New function, broken out of
29483         schedule_block.
29484         (schedule_block): Use it.
29485
29486 2011-04-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
29487
29488         * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
29489
29490 2011-04-01  Kai Tietz  <ktietz@redhat.com>
29491
29492         * config.gcc (*-*-mingw*): Allow as option the
29493         posix threading model.
29494         * config/i386/mingw32.h (SPEC_PTHREAD1,  SPEC_PTHREAD2):
29495         New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
29496         definition.
29497         (CPP_SPEC): Add pthread/no-pthread handling.
29498         (LIB_SPEC): Likewise.
29499         * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
29500         (LIB_SPEC): Likewise.
29501         * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
29502         flag to pass -pthread option for shared libgcc build.
29503         (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
29504         for shared libgcc build.
29505         * config/i386/t-mingw-pthread: New file.
29506         * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
29507         New define to enable use of library pthread by default.
29508         * config/i386/mingw.opt (pthread): New driver option.
29509         (no-pthread): New driver option.
29510         * config/i386/cygming.opt: Make sure trailing empty line is retained.
29511         * config/i386/mingw-w64.opt: Likewise.
29512
29513 2011-04-01  Gary Funck  <gary@intrepid.com>
29514
29515         * c-decl.c (grokdeclarator): Fix formatting.
29516
29517 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
29518
29519         * expr.c (emit_block_move_via_movmem): Use n_generator_args
29520         instead of n_operands.
29521         (set_storage_via_setmem): Likewise.
29522         * optabs.c (maybe_gen_insn): Likewise.
29523         * config/arm/arm.c (arm_init_neon_builtins): Likewise.
29524         * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
29525         (mips_expand_builtin_direct): Likewise.
29526         * config/spu/spu.c (expand_builtin_args): Likewise.
29527
29528 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
29529
29530         * recog.h (insn_data_d): Add n_generator_args.
29531         * genoutput.c (data): Likewise.
29532         (output_insn_data): Print it.
29533         (max_opno, num_dups): Delete.
29534         (scan_operands): Just fill in "d->operand[...]".
29535         (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
29536
29537 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
29538
29539         * gensupport.h (pattern_stats): New structure.
29540         * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
29541         * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
29542         (max_operand_1, max_operand_vec): Delete.
29543         (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
29544
29545 2011-03-31  Nathan Froyd  <froydnj@codesourcery.com>
29546
29547         * emit-rtl.c (emit_pattern_after_setloc): New function.
29548         (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
29549         (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
29550         (emit_pattern_after): New function.
29551         (emit_insn_after, emit_jump_insn_after): Call it.
29552         (emit_call_insn_after, emit_debug_insn_after): Likewise.
29553         (emit_pattern_before_setloc): New function.
29554         (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
29555         (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
29556         Likewise.
29557         (emit_pattern_before): New function.
29558         (emit_insn_before, emit_jump_insn_before): Call it.
29559         (emit_call_insn_before, emit_debug_insn_before): Likewise.
29560
29561 2011-03-31  Richard Henderson  <rth@redhat.com>
29562
29563         * dwarf2out.c (dw_separate_line_info_ref): Remove.
29564         (dw_separate_line_info_entry): Remove.
29565         (enum dw_line_info_opcode): New.
29566         (dw_line_info_entry): Use it.
29567         (dw_line_info_table, dw_line_info_table_p): New.
29568         (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
29569         (line_info_table, line_info_label_num): Remove.
29570         (line_info_table_in_use): Remove.
29571         (separate_line_info_table): Remove.
29572         (separate_line_info_table_allocated): Remove.
29573         (separate_line_info_table_in_use): Remove.
29574         (LINE_INFO_TABLE_INCREMENT): Remove.
29575         (line_info_label_num): New.
29576         (cur_line_info_table): New.
29577         (text_section_line_info, cold_text_section_line_info): New.
29578         (separate_line_info): New.
29579         (SEPARATE_LINE_CODE_LABEL): Remove.
29580         (print_dwarf_line_table): Remove.
29581         (debug_dwarf): Don't dump it.
29582         (output_one_line_info_table): New.
29583         (output_line_info): Use it.
29584         (new_line_info_table): New.
29585         (set_cur_line_info_table): New.
29586         (dwarf2out_switch_text_section): Use it.
29587         (dwarf2out_begin_function): Likewise.
29588         (push_dw_line_info_entry): New.
29589         (dwarf2out_source_line): Rewrite for new line info tables.
29590         (dwarf2out_init): Remove dead initailizations.
29591
29592 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
29593
29594         * opts.h (cl_option): Add comments to fields.  Add bit-fields for
29595         various flags.
29596         (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
29597         CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
29598         CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
29599         CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
29600         (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
29601         * opt-functions.awk (flag_init, switch_bit_fields): New.
29602         (switch_flags): Don't handle flags moved to bit-fields.  Don't
29603         generate CL_MISSING_OK or CL_SAVE.
29604         * optc-gen.awk: Update to generate bit-field output as well as
29605         flags field.
29606         * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
29607         bit-field instead of CL_REJECT_DRIVER flag.
29608         * opts-common.c (generate_canonical_option,
29609         decode_cmdline_option): Use bit-fields instead of CL_* flags.
29610         * opts.c (maybe_default_option): Use cl_reject_negative bit-field
29611         instead of CL_REJECT_NEGATIVE flag.
29612         * toplev.c (print_switch_values): Use cl_report bit-field instead
29613         of CL_REPORT flag.
29614
29615 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
29616
29617         * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
29618         a zero minimum index only if it is redundant.
29619
29620 2011-03-31  Vladimir Makarov  <vmakarov@redhat.com>
29621
29622         PR rtl-optimization/48381
29623         * ira-color.c (assign_hard_reg): Use hard reg set intersection
29624         instead of ira_class_hard_reg_index for calculating conflicting
29625         hard registers.
29626
29627 2011-03-31  Steven Bosscher  <steven@gcc.gnu.org>
29628
29629         * cprop.c: Clean up hash table building.
29630         (reg_avail_info): Remove.
29631         (oprs_available_p): Remove.
29632         (record_last_reg_set_info): Remove.
29633         (record_last_set_info): Remove.
29634         (reg_available_p): New function.
29635         (gcse_constant_p): Do not treat unfolded conditions as constants.
29636         (make_set_regs_unavailable): New function.
29637         (hash_scan_set): Simplify with new reg_available_p.
29638         (compute_hash_table_work): Traverse insns stream only once.
29639         Do not compute reg_avail_info. Traverse insns in reverse order.
29640         Record implicit sets after recording explicit sets from the block.
29641
29642 2011-03-31  Michael Matz  <matz@suse.de>
29643
29644         * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
29645
29646 2011-03-31  Anatoly Sokolov  <aesok@post.ru>
29647
29648         * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
29649         * config/h8300/h8300-protos.h (h8300_get_index): Remove.
29650         * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
29651         (h8300_mode_dependent_address_p): New function.
29652         (h8300_get_index): Make static.
29653
29654 2011-03-31  Jeff Law  <law@redhat.com>
29655
29656         * reload1.c (elimination_effects): Fix typo in recent change.
29657
29658         * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
29659         typo potentially leading to null pointer dereference.
29660
29661         * caller-save.c (new_saved_hard_reg): Eliminate return value.
29662         (setup_save_areas): Corresponding changes to avoid useless
29663         assignments.
29664
29665         * jump.c (reversed_comparison_code_parts): Avoid successive return
29666         statements when REVERSE_CONDITION is defined.
29667
29668         * expr.c (expand_assignment): Avoid useless assignments.
29669         (expand_expr_real_1): Likewise.
29670         (expand_expr_real_2): Avoid useless statements.
29671
29672         * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
29673
29674         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
29675
29676         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
29677         statements.
29678
29679         * stmt.c (expand_expr_stmt): Avoid useless assignment.
29680
29681 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
29682
29683         PR target/47109
29684         * doc/tm.texi.in (TARGET_VERSION): Remove.
29685         * doc/tm.texi: Regenerate.
29686         * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
29687         * collect2.c (main): Don't use TARGET_VERSION.
29688         * mips-tdump.c (main): Don't use TARGET_VERSION.
29689         * mips-tfile.c (main): Don't use TARGET_VERSION.
29690         * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
29691         * config/rs6000/vxworksae.h: Remove.
29692         * config/alpha/alpha.h (TARGET_VERSION): Remove.
29693         * config/alpha/freebsd.h (TARGET_VERSION): Remove.
29694         * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
29695         * config/alpha/netbsd.h (TARGET_VERSION): Remove.
29696         * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
29697         * config/arm/arm.h (TARGET_VERSION): Remove.
29698         * config/arm/coff.h (TARGET_VERSION): Remove.
29699         * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
29700         * config/arm/elf.h (TARGET_VERSION): Remove.
29701         * config/arm/freebsd.h (TARGET_VERSION): Remove.
29702         * config/arm/linux-elf.h (TARGET_VERSION): Remove.
29703         * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
29704         * config/arm/pe.h (TARGET_VERSION): Remove.
29705         * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
29706         * config/arm/semi.h (TARGET_VERSION): Remove.
29707         * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
29708         * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
29709         * config/arm/vxworks.h (TARGET_VERSION): Remove.
29710         * config/avr/avr.h (TARGET_VERSION): Remove.
29711         * config/bfin/bfin.h (TARGET_VERSION): Remove.
29712         * config/fr30/fr30.h (TARGET_VERSION): Remove.
29713         * config/frv/frv.h (TARGET_VERSION): Remove.
29714         * config/h8300/h8300.h (TARGET_VERSION): Remove.
29715         * config/i386/cygwin.h (TARGET_VERSION): Remove.
29716         * config/i386/darwin.h (TARGET_VERSION): Remove.
29717         * config/i386/darwin64.h (TARGET_VERSION): Remove.
29718         * config/i386/djgpp.h (TARGET_VERSION): Remove.
29719         * config/i386/freebsd.h (TARGET_VERSION): Remove.
29720         * config/i386/freebsd64.h (TARGET_VERSION): Remove.
29721         * config/i386/gnu.h (TARGET_VERSION): Remove.
29722         * config/i386/i386-interix.h (TARGET_VERSION): Remove.
29723         * config/i386/i386elf.h (TARGET_VERSION): Remove.
29724         * config/i386/linux.h (TARGET_VERSION): Remove.
29725         * config/i386/linux64.h (TARGET_VERSION): Remove.
29726         * config/i386/lynx.h (TARGET_VERSION): Remove.
29727         * config/i386/mingw32.h (TARGET_VERSION): Remove.
29728         * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
29729         * config/i386/netbsd64.h (TARGET_VERSION): Remove.
29730         * config/i386/netware.h (TARGET_VERSION): Remove.
29731         * config/i386/nto.h (TARGET_VERSION): Remove.
29732         * config/i386/openbsd.h (TARGET_VERSION): Remove.
29733         * config/i386/vxworks.h (TARGET_VERSION): Remove.
29734         * config/ia64/elf.h (TARGET_VERSION): Remove.
29735         * config/ia64/freebsd.h (TARGET_VERSION): Remove.
29736         * config/ia64/hpux.h (TARGET_VERSION): Remove.
29737         * config/ia64/linux.h (TARGET_VERSION): Remove.
29738         * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
29739         * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
29740         TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
29741         * config/lm32/lm32.h (TARGET_VERSION): Remove.
29742         * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
29743         * config/m32c/m32c.h (TARGET_VERSION): Remove.
29744         * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
29745         * config/m32r/m32r.h (TARGET_VERSION): Remove.
29746         * config/m68k/linux.h (TARGET_VERSION): Remove.
29747         * config/m68k/m68k.h (TARGET_VERSION): Remove.
29748         * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
29749         * config/m68k/uclinux.h (TARGET_VERSION): Remove.
29750         * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
29751         * config/mep/mep.h (TARGET_VERSION): Remove.
29752         * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
29753         MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
29754         * config/mips/iris6.h (MACHINE_TYPE): Remove.
29755         * config/mips/linux.h (TARGET_VERSION): Remove.
29756         * config/mips/netbsd.h (MACHINE_TYPE): Remove.
29757         * config/mips/vxworks.h (TARGET_VERSION): Remove.
29758         * config/mmix/mmix.h (TARGET_VERSION): Remove.
29759         * config/mn10300/linux.h (TARGET_VERSION): Remove.
29760         * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
29761         * config/pa/pa.h (TARGET_VERSION): Remove.
29762         * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
29763         * config/picochip/picochip.h (TARGET_VERSION): Remove.
29764         * config/rs6000/aix.h (TARGET_VERSION): Remove.
29765         * config/rs6000/darwin.h (TARGET_VERSION): Remove.
29766         * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
29767         * config/rs6000/eabi.h (TARGET_VERSION): Remove.
29768         * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
29769         * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
29770         * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
29771         * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
29772         * config/rs6000/linux.h (TARGET_VERSION): Remove.
29773         * config/rs6000/linux64.h (TARGET_VERSION): Remove.
29774         * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
29775         * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
29776         * config/rs6000/lynx.h (TARGET_VERSION): Remove.
29777         * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
29778         * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
29779         * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
29780         * config/s390/linux.h (TARGET_VERSION): Remove.
29781         * config/s390/s390.h (TARGET_VERSION): Remove.
29782         * config/s390/tpf.h (TARGET_VERSION): Remove.
29783         * config/score/score.h (TARGET_VERSION): Remove.
29784         * config/sh/linux.h (TARGET_VERSION): Remove.
29785         * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
29786         TARGET_VERSION_CPU, TARGET_VERSION): Remove.
29787         * config/sh/sh.h (TARGET_VERSION): Remove.
29788         * config/sh/sh64.h (TARGET_VERSION): Remove.
29789         * config/sh/superh.h (TARGET_VERSION): Remove.
29790         * config/sh/vxworks.h (TARGET_VERSION): Remove.
29791         * config/sparc/freebsd.h (TARGET_VERSION): Remove.
29792         * config/sparc/linux.h (TARGET_VERSION): Remove.
29793         * config/sparc/linux64.h (TARGET_VERSION): Remove.
29794         * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
29795         TARGET_NAME32, TARGET_NAME): Remove.
29796         * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
29797         * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
29798         * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
29799         * config/sparc/sysv4.h (TARGET_VERSION): Remove.
29800         * config/sparc/vxworks.h (TARGET_VERSION): Remove.
29801         * config/spu/spu.h (TARGET_VERSION): Remove.
29802         * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
29803         * config/v850/v850.h (TARGET_VERSION): Remove.
29804         * config/vax/linux.h (TARGET_VERSION): Remove.
29805         * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
29806         * config/xtensa/elf.h (TARGET_VERSION): Remove.
29807         * config/xtensa/linux.h (TARGET_VERSION): Remove.
29808
29809 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
29810
29811         PR target/48142
29812         * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
29813         frame-related from frame-unrelated adjustments to the stack pointer.
29814
29815 2011-03-31  Jakub Jelinek  <jakub@redhat.com>
29816
29817         * common.opt (fdebug-types-section): Move earlier.
29818         * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
29819
29820 2011-03-31  Andreas Tobler  <andreast@fgznet.ch>
29821
29822         * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
29823         var.
29824
29825 2011-03-30  Nathan Froyd  <froydnj@codesourcery.com>
29826
29827         * tree.h (CASE_CHAIN): Define.
29828         * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
29829         (gimple_redirect_edge_and_branch): Likewise.
29830
29831 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
29832
29833         PR middle-end/48367
29834         * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
29835         calculation.
29836
29837 2011-03-30  Jeff Law  <law@redhat.com>
29838
29839         * PR bootstrap/48371
29840         * reload1.c (reload): Fix botch in last change.
29841
29842         * reload.h (struct reload): Fix typo introduced in last change.
29843
29844 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
29845
29846         * config/arm/arm.opt (mhard-float, msoft-float): Mark
29847         Undocumented.  Remove help text.
29848         * doc/invoke.texi (ARM Options): Don't document -msoft-float and
29849         -mhard-float.
29850
29851 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
29852
29853         * doc/options.texi (NegativeAlias): Document.
29854         (Alias): Mention NegativeAlias.
29855         * opt-functions.awk: Handle NegativeAlias.
29856         * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
29857         * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
29858         * opts.h (CL_NEGATIVE_ALIAS): Define.
29859         * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
29860         (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
29861         OPT_mspe_.
29862         * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
29863         Alias entries.
29864         * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
29865         mno-spe and mno-isel instead of mspe=no and -misel=no.
29866
29867 2011-03-29  Mark Wielaard  <mjw@redhat.com>
29868
29869         * common.opt (fdebug-types-section): New flag.
29870         * doc/invoke.texi: Document new -fno-debug-types-section flag.
29871         * dwarf2out.c (use_debug_types): New define.
29872         (struct die_struct): Mark die_id with GTY desc use_debug_types.
29873         (print_die): Guard output of type unit signatures using
29874         use_debug_types.
29875         (build_abbrev_table): Replace assert of dwarf_version >= 4
29876         with assert on use_debug_types.
29877         (size_of_die): Likewise.
29878         (unmark_dies): Likewise.
29879         (value_format): Decide AT_ref_external form on use_debug_types.
29880         (output_die): Replace dwarf_version version check guard with
29881         use_debug_types where appropriate.
29882         (modified_type_die): Likewise.
29883         (gen_reference_type_die): Likewise.
29884         (dwarf2out_start_source_file): Likewise.
29885         (dwarf2out_end_source_file): Likewise.
29886         (prune_unused_types_walk_attribs): Likewise.
29887         (dwarf2out_finish): Likewise.
29888
29889 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
29890
29891         * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
29892
29893 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
29894
29895         PR rtl-optimization/48332
29896         * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
29897         mode of input operand N and modeN to its actual mode.
29898
29899 2011-03-30  Jeff Law  <law@redhat.com>
29900
29901         * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
29902         define accessor macro.
29903         (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
29904         (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
29905         (reg_equiv_init): Likewise.
29906         (reg_equivs_size): New variable.
29907         (reg_equiv_init_size): Remove.
29908         (allocate_initial_values): Move prototype to here from....
29909         * integrate.h (allocate_initial_values): Remove prototype.
29910         * integrate.c: Include reload.h.
29911         (allocate_initial_values): Corresponding changes.
29912         * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
29913         (fix_reg_equiv_init, no_equiv): Corresponding changes.
29914         (update_equiv_regs): Corresponding changes.
29915         (ira): Corresponding changes.
29916         * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
29917         (push_secondary_reload): Corresponding changes.
29918         (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
29919         (make_memloc, find_reloads_address): Corresponding changes.
29920         (subst_reg_equivs, subst_indexed_address): Corresponding changes.
29921         (find_reloads_address_1): Corresponding changes.
29922         (find_reloads_subreg_address, subst_reloads): Corresponding changes.
29923         (refers_to_regno_for_reload_p): Corresponding changes.
29924         (reg_overlap_mentioned_for_reload_p): Corresponding changes.
29925         (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
29926         * reload1.c: Include ggc.h.
29927         (grow_reg_equivs): New function.
29928         (replace_pseudos_in, reload): Corresponding changes.
29929         (calculate_needs_all_insns, alter_regs): Corresponding changes.
29930         (eliminate_regs_1, elimination_effects): Corresponding changes.
29931         (emit_input_reload_insns, emit_output_reload_insns): Likewise.
29932         (delete_output_reload): Likewise.
29933         * caller-save.c (mark_referenced_regs): Corresponding changes.
29934         * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
29935         * frv/predicates.md (frv_load_operand): Corresponding changes.
29936         * microblaze/microblaze.c (double_memory_operand): Corresponding
29937         changes.
29938         * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
29939         * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
29940         * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
29941         * m68k/m68k.c (emit_move_sequence): Corresponding changes.
29942         * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
29943         changes.
29944         * pa/pa.c (emit_move_sequence): Corresponding changes.
29945         * vax/vax.c (nonindexed_address_p): Corresponding changes.
29946
29947 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
29948
29949         PR target/47551
29950         * config/arm/arm.c (coproc_secondary_reload_class): Handle
29951         structure modes.  Don't check neon_vector_mem_operand for
29952         vector or structure modes.
29953
29954 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
29955             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
29956
29957         PR target/43590
29958         * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
29959         operand 1 and reshuffle the operands to match.
29960         (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
29961
29962 2011-03-30  Christian Schüler  <cschueler@gmx.de>
29963
29964         PR driver/48208
29965         * config/c.opt (F): Added 'Driver' to -F option.
29966
29967         PR driver/48260
29968         * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
29969           handler function.
29970         * config/darwin.opt: Added '-arch' option.
29971
29972 2011-03-30  Nick Clifton  <nickc@redhat.com>
29973
29974         * config/rx/rx.md: Add peepholes and patterns to combine
29975         extending loads and simple arithmetic instructions.
29976         * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
29977         * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
29978         * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
29979         modes to use pre-decrement and post-increment addressing.
29980         (rx_is_restricted_memory_address): Add range checking of REG+INT
29981         addresses.
29982         (rx_print_operand): Add support for %Q.  Fix handling of %Q.
29983         (rx_memory_move_cost): Adjust cost of stores.
29984         (rx_adjust_insn_length): New function.
29985
29986 2011-03-30  Jakub Jelinek  <jakub@redhat.com>
29987
29988         PR c/48305
29989         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
29990         arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
29991         matching arg00/arg01 types.
29992
29993 2011-03-30  Eric Botcazou  <ebotcazou@adacore.com>
29994
29995         * cfglayout.c (insn_locators_alloc): Initialize curr_location and
29996         last_location to UNKNOWN_LOCATION.
29997
29998 2011-03-30  H.J. Lu  <hongjiu.lu@intel.com>
29999
30000         PR target/48349
30001         * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
30002         FLOAT_SSE_REGS.
30003
30004 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
30005             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30006
30007         PR bootstrap/48337
30008         * config/sparc/sparc.opt (sparc_cpu_and_features): Add
30009         Init(PROCESSOR_V7).
30010         (sparc_cpu): Likewise.
30011         * config/sparc/sparc.c (sparc_option_override): Replace 0 by
30012         PROCESSOR_V7.
30013
30014 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
30015
30016         PR target/48336
30017         PR middle-end/48342
30018         PR rtl-optimization/48345
30019         * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
30020         hard regs for given mode from profitable regs when doing secondary
30021         allocation.
30022
30023 2011-03-29  Jeff Law  <law@redhat.com>
30024
30025         PR bootstrap/48327
30026         * tree-ssa-threadupdate.c (struct redirection_data): Remove
30027         do_not_duplicate field.
30028         (lookup_redirection_data): Corresponding changes.
30029         (create_duplicates): Always create a template block.
30030         (redirect_edges): Remove code which reused the original block
30031         when it was going to become unreachable code.
30032         (thread_block): Don't set do_not_duplicate field.
30033
30034 2011-03-29  Joseph Myers  <joseph@codesourcery.com>
30035
30036         * lto-opts.c (register_user_option_p, lto_register_user_option):
30037         Make type argument unsigned.
30038         * lto-streamer.h (lto_register_user_option): Make type argument
30039         unsigned.
30040         * opth-gen.awk: Make CL_* macros unsigned.
30041         * opts-common.c (find_opt): Make lang_mask argument unsigned.
30042         * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
30043         CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
30044         CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
30045         CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
30046         CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
30047         (find_opt): Make lang_mask argument unsigned.
30048
30049 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
30050
30051         PR rtl-optimization/48331
30052         PR rtl-optimization/48334
30053         * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
30054         for any used algorithm.
30055
30056 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
30057
30058         * ira-conflicts.c (build_object_conflicts): Add unused attribute
30059         to parent_max.
30060
30061 2011-03-29  Uros Bizjak  <ubizjak@gmail.com>
30062
30063         * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
30064         (alpha_option_override): Don't set alpha_sr_alias_set.
30065         (emit_frame_store_1): Use gen_frame_mem rather than calling
30066         set_mem_alias_set.
30067         (alpha_expand_epilogue): Ditto.
30068
30069 2011-03-29  Ira Rosen  <ira.rosen@linaro.org>
30070
30071         PR tree-optimization/48290
30072         * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
30073         vectorization, check that relevant phis in the basic block after
30074         the inner loop are really inner loop's exit phis.
30075
30076 2011-03-29  Richard Sandiford  <richard.sandiford@linaro.org>
30077
30078         PR debug/48190
30079         * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
30080         (cached_dw_loc_list_def): New structure.
30081         (cached_dw_loc_list): New typedef.
30082         (cached_dw_loc_list_table): New variable.
30083         (cached_dw_loc_list_table_hash): New function.
30084         (cached_dw_loc_list_table_eq): Likewise.
30085         (add_location_or_const_value_attribute): Take a bool cache_p.
30086         Cache the list when the parameter is true.
30087         (gen_formal_parameter_die): Update caller.
30088         (gen_variable_die): Likewise.
30089         (dwarf2out_finish): Likewise.
30090         (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
30091         while generating debug info for the decl.
30092         (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
30093         (dwarf2out_init): Initialize cached_dw_loc_list_table.
30094         (resolve_addr): Cache the result of resolving a chain of
30095         location lists.
30096
30097 2011-03-28  Vladimir Makarov  <vmakarov@redhat.com>
30098
30099         * ira-color.c (update_left_conflict_sizes_p): Don't assume that
30100         conflict object hard regset nodes have intersecting hard reg sets.
30101
30102         * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
30103         after regstat_init_n_sets_and_refs.
30104
30105         * ira.c: Add more comments at the top.
30106         (setup_stack_reg_pressure_class, setup_pressure_classes):
30107         Add comments how we compute the register pressure classes.
30108         (setup_allocno_and_important_classes): Add more comments.
30109         (setup_class_translate_array, reorder_important_classes)
30110         (setup_reg_class_relations): Add comments.
30111
30112         * ira-emit.c: Add 2011 to the Copyright line.  Add comments at the
30113         start of the file.
30114
30115         * ira-color.c: Add 2011 to the Copyright line.
30116         (assign_hard_reg):  Add more comments.
30117         (improve_allocation): Ditto.
30118
30119         * ira-costs.c: Add 2011 to the Copyright line.
30120         (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
30121         comments.
30122         (setup_regno_cost_classes_by_mode): Ditto.
30123
30124         Initial patches from ira-improv branch:
30125
30126         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
30127
30128         * ira-build.c (ira_create_object): Remove initialization of
30129         OBJECT_PROFITABLE_HARD_REGS.  Initialize OBJECT_ADD_DATA.
30130         (ira_create_allocno): Remove initialization of
30131         ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
30132         ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
30133         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
30134         ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
30135         ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
30136         Initialize ALLOCNO_ADD_DATA.
30137         (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
30138         and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
30139         ALLOCNO_REG.
30140         (ira_flattening): Ditto.  Use ALLOCNO_EMIT_DATA instead of
30141         ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
30142
30143         * ira.c (ira_reallocate): Remove.
30144         (setup_pressure_classes): Call
30145         ira_init_register_move_cost_if_necessary.  Use
30146         ira_register_move_cost instead of ira_get_register_move_cost.
30147         (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
30148         (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
30149
30150         * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
30151         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
30152         ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
30153         ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
30154         instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
30155         OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
30156         Fix formatting.
30157         (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
30158         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
30159         (struct allocno_color_data): New.
30160         (allocno_color_data_t): New typedef.
30161         (allocno_color_data): New definition.
30162         (ALLOCNO_COLOR_DATA): New macro.
30163         (struct object_color_data): New.
30164         (object_color_data_t): New typedef.
30165         (object_color_data): New definition.
30166         (OBJECT_COLOR_DATA): New macro.
30167         (update_copy_costs, calculate_allocno_spill_cost): Call
30168         ira_init_register_move_cost_if_necessary.  Use
30169         ira_register_move_cost instead of ira_get_register_move_cost.
30170         (move_spill_restore, update_curr_costs): Ditto.
30171         (allocno_spill_priority): Make it inline.
30172         (color_pass): Allocate and free allocno_color_dat and object_color_data.
30173         (struct coalesce_data, coalesce_data_t): New.
30174         (allocno_coalesce_data): New definition.
30175         (ALLOCNO_COALESCE_DATA): New macro.
30176         (merge_allocnos, coalesced_allocno_conflict_p): Use
30177         ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
30178         ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
30179         (coalesce_allocnos): Ditto.
30180         (setup_coalesced_allocno_costs_and_nums): Ditto.
30181         (collect_spilled_coalesced_allocnos): Ditto.
30182         (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
30183         (setup_slot_coalesced_allocno_live_ranges): Ditto.
30184         (coalesce_spill_slots): Ditto.
30185         (ira_sort_regnos_for_alter_reg): Ditto.  Allocate, initialize and
30186         free allocno_coalesce_data.
30187
30188         * ira-conflicts.c: Fix formatting.
30189         (process_regs_for_copy): Call
30190         ira_init_register_move_cost_if_necessary.  Use
30191         ira_register_move_cost instead of ira_get_register_move_cost.
30192         (build_object_conflicts): Optimize.
30193
30194         * ira-costs.c (record_reg_classes): Optimize.  Call
30195         ira_init_register_move_cost_if_necessary.  Use
30196         ira_register_move_cost, ira_may_move_in_cost, and
30197         ira_may_move_out_cost instead of ira_get_register_move_cost and
30198         ira_get_may_move_cost.
30199         (record_address_regs): Ditto.
30200         (scan_one_insn): Optimize.
30201         (find_costs_and_classes): Optimize.
30202         (process_bb_node_for_hard_reg_moves): Call
30203         ira_init_register_move_cost_if_necessary.  Use
30204         ira_register_move_cost instead of ira_get_register_move_cost.
30205
30206         * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
30207         ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
30208         ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
30209         (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
30210         definitions.
30211         (ira_initiate_emit_data, ira_finish_emit_data)
30212         (create_new_allocno): New functions.
30213         (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
30214         (emit_move_list): Call ira_init_register_move_cost_if_necessary.
30215         Use ira_register_move_cost instead of ira_get_register_move_cost.
30216
30217         * ira-int.h: Fix some comments.
30218         (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
30219         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
30220         (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
30221         hard_regs_subnodes_start, hard_regs_subnodes_num.  Add new member
30222         add_data.
30223         (struct ira_allocno): Make mode and aclass a bitfield.  Move other
30224         bitfield after mode.  Make hard_regno a short int.  Make
30225         hard_regno short.  Remove first_coalesced_allocno and
30226         next_coalesced_allocno.  Move mem_optimized_dest_p,
30227         somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
30228         into struct ira_emit_data.  Remove in_graph_p, may_be_spilled_p,
30229         available_regs_num, next_bucket_allocno, prev_bucket_allocno,
30230         temp, colorable_p.  Add new member add_data.
30231         (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
30232         (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
30233         (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
30234         (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
30235         (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
30236         (ALLOCNO_ADD_DATA): New macro.
30237         (ira_emit_data_t): New typedef.
30238         (struct ira_emit_data): New.  Move mem_optimized_dest_p,
30239         somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
30240         from struct ira_allocno.
30241         (ALLOCNO_EMIT_DATA): New macro.
30242         (ira_allocno_emit_data, allocno_emit_reg): New.
30243         (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
30244         (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
30245         (OBJECT_ADD_DATA): New macro.
30246         (ira_reallocate): Remove.
30247         (ira_initiate_emit_data, ira_finish_emit_data): New.
30248         (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
30249         (ira_init_register_move_cost_if_necessary): New.
30250         (ira_object_conflict_iter_next): Merge into
30251         ira_object_conflict_iter_cond.
30252         (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
30253
30254         * ira-live.c (process_single_reg_class_operands): Call
30255         ira_init_register_move_cost_if_necessary.  Use
30256         ira_register_move_cost instead of ira_get_register_move_cost.
30257
30258         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
30259
30260         * ira-int.h (struct target_ira_int): Remove x_cost_classes.
30261
30262         * ira-costs.c: Fix formatting.
30263         (cost_classes, cost_classes_num): Remove.
30264         (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
30265         (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
30266         (cost_classes_del, cost_classes_htab): New.
30267         (cost_classes_aclass_cache, cost_classes_mode_cache): New.
30268         (initiate_regno_cost_classes, setup_cost_classes): New.
30269         (setup_regno_cost_classes_by_aclass): New.
30270         (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
30271         (record_reg_classes): Use regno_cost_classes instead of
30272         cost_classes.  Move checking opposite operand up.
30273         (record_address_regs): Use regno_cost_classes
30274         instead of cost_classes.
30275         (scan_one_insn): Ditto.  Use always general register.
30276         (print_allocno_costs): Use regno_cost_classes instead of
30277         cost_classes.
30278         (print_pseudo_costs): Ditto.  Use Reg_N_REFS.
30279         (find_costs_and_classes): Set up cost classes for each registers.
30280         Use also their mode for this.  Use regno_cost_classes instead of
30281         cost_classes.
30282         (setup_allocno_class_and_costs): Use regno_cost_classes instead of
30283         cost_classes.
30284         (free_ira_costs, ira_init_costs): Don't use cost_classes.
30285         (ira_costs, ira_set_pseudo_classes): Call
30286         initiate_regno_cost_classes and finish_regno_cost_classes.
30287
30288         2010-10-04  Vladimir Makarov  <vmakarov@redhat.com>
30289
30290         * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
30291
30292         * target.def (ira_cover_classes): Remove.
30293
30294         * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
30295
30296         * doc/tm.texi.in: Ditto.
30297
30298         * ira-conflicts.c: Remove mentioning cover classes from the file.
30299         Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Use
30300         ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST.  Fix formatting.
30301
30302         * targhooks.c (default_ira_cover_classes): Remove.
30303
30304         * targhooks.h (default_ira_cover_classes): Ditto.
30305
30306         * haifa-sched.c: Remove mentioning cover classes from the file.
30307         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
30308         ira_pressure_classes and ira_pressure_classes_num instead of
30309         ira_reg_class_cover_size and ira_reg_class_cover.  Use
30310         sched_regno_pressure_class instead of sched_regno_cover_class.
30311         (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
30312         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
30313
30314         * ira-int.h: Add 2010 to Copyright.  Remove mentioning cover
30315         classes from the file.
30316         (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
30317         (struct object_hard_regs, struct object_hard_regs_node): New.
30318         (struct ira_object): New members profitable_hard_regs,
30319         hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
30320         (struct ira_allocno): Rename cover_class to aclass.  Rename
30321         cover_class_cost and updated_cover_class_cost to class_cost and
30322         updated_class_cost.  Remove splay_removed_p and
30323         left_conflict_size.  Add new members colorable_p.
30324         (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
30325         (ALLOCNO_COLORABLE_P): New macro.
30326         (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
30327         (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
30328         Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
30329         (OBJECT_...): Rename parameter C to O.
30330         (OBJECT_PROFITABLE_HARD_REGS): New macro.
30331         (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
30332         (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
30333         (struct target_ira_int): New members x_ira_max_memory_move_cost,
30334         x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
30335         x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
30336         x_ira_reg_pressure_class_p, x_ira_important_class_nums,
30337         x_ira_reg_class_superunion.  Rename x_prohibited_class_mode_reg to
30338         x_ira_prohibited_class_mode_reg.  Rename x_ira_reg_class_union to
30339         x_ira_reg_class_subunion.
30340         (ira_max_memory_move_cost, ira_max_register_move_cost)
30341         (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
30342         (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
30343         (ira_important_class_nums, ira_reg_class_superunion): New macros.
30344         (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
30345         (ira_reg_class_union): Rename to ira_reg_class_subunion.
30346         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
30347         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
30348         (ira_tune_allocno_costs_and_cover_classes): Rename to
30349         ira_tune_allocno_costs.
30350         (ira_debug_hard_regs_forest): New.
30351         (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
30352         (ira_object_conflict_iter_next): Fix comments.
30353         (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
30354         (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
30355         cover_class to aclass.
30356         (ira_allocate_and_accumulate_costs): Ditto.
30357         (ira_allocate_and_set_or_copy_costs): Ditto.
30358
30359         * opts.c (decode_options): Remove ira_cover_class check.
30360
30361         * ira-color.c: Remove mentioning cover classes from the file.  Use
30362         ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
30363         instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
30364         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
30365         (splay-tree.h): Remove include.
30366         (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
30367         before copy_freq_compare_func.
30368         (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
30369         (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
30370         New definitions.
30371         (hard_regs_roots, hard_regs_node_vec): Ditto.
30372         (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
30373         (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
30374         (finish_object_hard_regs, object_hard_regs_compare): Ditto.
30375         (create_new_object_hard_regs_node): Ditto.
30376         (add_new_object_hard_regs_node_to_forest): Ditto.
30377         (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
30378         (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
30379         Ditto.
30380         (print_hard_reg_set, print_hard_regs_subforest): Ditto.
30381         (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
30382         (remove_unused_object_hard_regs_nodes): Ditto.
30383         (enumerate_object_hard_regs_nodes): Ditto.
30384         (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
30385         (object_hard_regs_subnode_t): Ditto.
30386         (struct object_hard_regs_subnode): Ditto.
30387         (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
30388         (setup_object_hard_regs_subnode_index): Ditto.
30389         (get_object_hard_regs_subnodes_num): Ditto.
30390         (form_object_hard_regs_nodes_forest): Ditto.
30391         (finish_object_hard_regs_nodes_tree): Ditto.
30392         (finish_object_hard_regs_nodes_forest): Ditto.
30393         (allocnos_have_intersected_live_ranges_p): Rename to
30394         allocnos_conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
30395         (pseudos_have_intersected_live_ranges_p): Rename to
30396         conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
30397         (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
30398         (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
30399         (update_copy_costs): Remove assert.  Skip cost update if the hard
30400         reg does not belong the class.
30401         (assign_hard_reg): Process only profitable hard regs.
30402         (uncolorable_allocnos_num): Make it scalar.
30403         (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
30404         and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
30405         and ira_reg_class_max_nregs.
30406         (bucket_allocno_compare_func): Check frequency first.
30407         (sort_bucket): Add compare function as a parameter.
30408         (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
30409         (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
30410         (push_allocno_to_stack): Rewrite for checking new allocno
30411         colorability.
30412         (remove_allocno_from_bucket_and_push): Print cost too.  Remove assert.
30413         (push_only_colorable): Pass new parameter to sort_bucket.
30414         (push_allocno_to_spill): Remove.
30415         (allocno_spill_priority_compare): Make it inline and rewrite.
30416         (splay_tree_allocate, splay_tree_free): Remove.
30417         (allocno_spill_sort_compare): New function.
30418         (push_allocnos_to_stack): Sort allocnos for spilling once.  Don't
30419         build and use splay tree.  Choose first allocno in uncolorable
30420         allocno bucket to spill.  Remove setting spill cost.
30421         (all_conflicting_hard_regs): Remove.
30422         (setup_allocno_available_regs_num): Check only profitable hard
30423         regs.  Print info about hard regs nodes.
30424         (setup_allocno_left_conflicts_size): Remove.
30425         (put_allocno_into_bucket): Don't call
30426         setup_allocno_left_conflicts_size.  Use setup_left_conflict_sizes_p.
30427         (improve_allocation): New.
30428         (color_allocnos): Call setup_profitable_hard_regs,
30429         form_object_hard_regs_nodes_forest, improve_allocation,
30430         finish_object_hard_regs_nodes_forest.  Setup spill cost.
30431         (print_loop_title): Use pressure classes.
30432         (color_allocnso): Ditto.
30433         (do_coloring): Remove allocation and freeing splay_tree_node_pool
30434         and allocnos_for_spilling.
30435         (ira_sort_regnos_for_alter_reg): Don't setup members
30436         {first,next}_coalesced_allocno.
30437         (color): Remove allocating and freeing removed_splay_allocno_vec.
30438         (fast_allocation): Use ira_prohibited_class_mode_regs instead of
30439         prohibited_class_mode_regs.
30440
30441         * ira-lives.c: Remove mentioning cover classes from the file.  Fix
30442         formatting.
30443         (update_allocno_pressure_excess_length): Use pressure classes.
30444         (inc_register_pressure, dec_register_pressure): Check for pressure
30445         class.
30446         (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
30447         pressure class.  Use ira_reg_class_nregs instead of
30448         ira_reg_class_max_nregs.
30449         (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
30450         (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
30451         (single_reg_class): Use ira_reg_class_nregs instead of
30452         ira_reg_class_max_nregs.
30453         (process_bb_node_lives): Use pressure classes.
30454
30455         * ira-emit.c: Remove mentioning cover classes from the file.  Use
30456         ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Fix formatting.
30457         (change_loop): Use pressure classes.
30458         (modify_move_list): Call ira_set_allocno_class instead of
30459         ira_set_allocno_cover_class.
30460
30461         * ira-build.c: Remove mentioning cover classes from the file.  Use
30462         ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
30463         ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST.  Use
30464         ALLOCNO_UPDATED_CLASS_COST instead of
30465         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
30466         (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
30467         (ira_create_allocno): Remove initialization of
30468         ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE.  Initialize
30469         ALLOCNO_COLORABLE_P.
30470         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
30471         Update conflict regs for the objects.
30472         (create_cap_allocno): Remove assert.  Don't propagate
30473         ALLOCNO_AVAILABLE_REGS_NUM.
30474         (ira_free_allocno_costs): New function.
30475         (finish_allocno): Change a part of code into call of
30476         ira_free_allocno_costs.
30477         (low_pressure_loop_node_p): Use pressure classes.
30478         (object_range_compare_func): Don't compare classes.
30479         (setup_min_max_conflict_allocno_ids): Ditto.
30480
30481         * loop-invariant.c: Remove mentioning cover classes from the file.
30482         Use ira_pressure_classes and ira_pressure_classes_num instead of
30483         ira_reg_class_cover_size and ira_reg_class_cover.  Fix formatting.
30484         (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
30485         Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
30486         Use reg_allocno_class instead of reg_cover_class.
30487         (get_inv_cost): Use instead ira_stack_reg_pressure_class of
30488         STACK_REG_COVER_CLASS.
30489         (get_regno_cover_class): Rename to get_regno_pressure_class.
30490         (move_loop_invariants): Initialize and finalize regstat.
30491
30492         * ira.c: Remove mentioning cover classes from the file.  Add
30493         comments about coloring without cover classes.  Use ALLOCNO_CLASS
30494         instead of ALLOCNO_COVER_CLASS.  Fix formatting.
30495         (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
30496         setup_class_subset_and_memory_move_costs.
30497         (setup_stack_reg_pressure_class, setup_pressure_classes): New.
30498         (setup_cover_and_important_classes): Rename to
30499         setup_allocno_and_important_classes.
30500         (setup_class_translate_array): New.
30501         (setup_class_translate): Call it for allocno and pressure classes.
30502         (cover_class_order): Rename to allocno_class_order.
30503         (comp_reg_classes_func): Use ira_allocno_class_translate instead
30504         of ira_class_translate.
30505         (reorder_important_classes): Set up ira_important_class_nums.
30506         (setup_reg_class_relations): Set up ira_reg_class_superunion.
30507         (print_class_cover): Rename to print_classes.  Add parameter.
30508         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
30509         Print pressure classes too.
30510         (find_reg_class_closure): Rename to find_reg_classes.  Don't call
30511         setup_reg_subclasses.
30512         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
30513         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
30514         (setup_prohibited_class_mode_regs): Use
30515         ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
30516         (clarify_prohibited_class_mode_regs): New function.
30517         (ira_init_register_move_cost): Set up ira_max_register_move_cost,
30518         ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
30519         (ira_init_once): Initialize them.
30520         (free_register_move_costs): Process them.
30521         (ira_init): Move calls of find_reg_classes and
30522         setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
30523         Call clarify_prohibited_class_mode_regs.
30524         (ira_no_alloc_reg): Remove.
30525         (too_high_register_pressure_p): Use pressure classes.
30526
30527         * sched-deps.c: Remove mentioning cover classes from the file.
30528         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
30529         ira_pressure_classes and ira_pressure_classes_num instead of
30530         ira_reg_class_cover_size and ira_reg_class_cover.
30531         (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
30532         sched_regno_pressure_class instead of sched_regno_cover_class.
30533         (mark_insn_pseudo_birth, mark_pseudo_death): Ditto.  Use
30534         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
30535
30536         * ira.h: Add 2010 to Copyright.
30537         (ira_no_alloc_reg): Remove external.
30538         (struct target_ira): Rename x_ira_hard_regno_cover_class,
30539         x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
30540         x_ira_class_translate to x_ira_hard_regno_allocno_class,
30541         x_ira_allocno_classes_num, x_ira_allocno_classes, and
30542         x_ira_allocno_class_translate.  Add x_ira_pressure_classes_num,
30543         x_ira_pressure_classes, x_ira_pressure_class_translate, and
30544         x_ira_stack_reg_pressure_class.  Rename x_ira_reg_class_nregs to
30545         x_ira_reg_class_max_nregs.  Add x_ira_reg_class_min_nregs and
30546         x_ira_no_alloc_regs.
30547         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
30548         (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
30549         ira_allocno_classes_num and ira_allocno_classes.
30550         (ira_class_translate): Rename to ira_allocno_class_translate.
30551         (ira_pressure_classes_num, ira_pressure_classes): New definitions.
30552         (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
30553         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
30554         (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
30555         (ira_no_alloc_regs): New.
30556
30557         * ira-costs.c: Add 2010 to Copyright.  Remove mentioning cover
30558         classes from the file.  Use ALLOCNO_CLASS instead of
30559         ALLOCNO_COVER_CLASS.  Use ALLOCNO_CLASS_COST instead of
30560         ALLOCNO_COVER_CLASS_COST.
30561         (regno_cover_class): Rename to regno_aclass.
30562         (record_reg_classes): Use ira_reg_class_subunion instead of
30563         ira_reg_class_union.
30564         (record_address_regs): Check overflow.
30565         (scan_one_insn): Ditto.
30566         (print_allocno_costs): Print total mem cost fore regional allocation.
30567         (print_pseudo_costs): Use REG_N_REFS.
30568         (find_costs_and_classes): Use classes intersected with them on the
30569         1st pass. Check overflow.  Use ira_reg_class_subunion instead of
30570         ira_reg_class_union.  Use ira_allocno_class_translate and
30571         regno_aclass instead of ira_class_translate and regno_cover_class.
30572         Modify code for finding regno_aclass.  Setup preferred classes for
30573         the next pass.
30574         (setup_allocno_cover_class_and_costs): Rename to
30575         setup_allocno_class_and_costs.  Use regno_aclass instead of
30576         regno_cover_class.  Use ira_set_allocno_class instead of
30577         ira_set_allocno_cover_class.
30578         (init_costs, finish_costs): Use regno_aclass instead of
30579         regno_cover_class.
30580         (ira_costs): Use setup_allocno_class_and_costs instead of
30581         setup_allocno_cover_class_and_costs.
30582         (ira_tune_allocno_costs_and_cover_classes): Rename to
30583         ira_tune_allocno_costs.  Check overflow.  Skip conflict hard regs
30584         by processing objects.  Use ira_reg_class_max_nregs instead of
30585         ira_reg_class_nregs.
30586
30587         * rtl.h (reg_cover_class): Rename to reg_allocno_class.
30588
30589         * sched-int.h: Remove mentioning cover classes from the file.
30590         (sched_regno_cover_class): Rename to sched_regno_pressure_class.
30591
30592         * reginfo.c: Add 2010 to Copyright.  Remove mentioning cover
30593         classes from the file.
30594         (struct reg_pref): Rename coverclass into allocnoclass.
30595         (reg_cover_class): Rename to reg_allocno_class.
30596
30597         * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
30598
30599         * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
30600
30601         * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
30602
30603         * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
30604
30605         * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
30606
30607         * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
30608
30609         * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
30610
30611         * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
30612
30613         * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
30614
30615         * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
30616
30617         * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
30618         (i386_ira_cover_classes): Ditto.
30619
30620         * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
30621
30622         * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
30623
30624         * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
30625
30626         * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
30627
30628         * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
30629
30630         * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
30631
30632         * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
30633         (mips_ira_cover_classes): Ditto.
30634
30635         * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
30636
30637         * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
30638
30639         * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
30640
30641         * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
30642
30643         * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
30644
30645         * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
30646         (IRA_COVER_CLASSES_VSX): Ditto.
30647
30648         * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
30649         (rs6000_ira_cover_classes): Ditto.
30650
30651         * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
30652
30653         * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
30654
30655         * config/score/score.h (IRA_COVER_CLASSES): Ditto.
30656
30657         * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
30658
30659         * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
30660
30661         * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
30662
30663         * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
30664
30665         * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
30666
30667         * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
30668
30669         * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
30670
30671 2011-03-29  Jakub Jelinek  <jakub@redhat.com>
30672
30673         PR debug/48253
30674         * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
30675         dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
30676         dw_fde_unlikely_section_end_label, cold_in_std_section,
30677         dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
30678         Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
30679         fields.
30680         (output_fde): Use dw_fde_second_{begin,end} if second is
30681         true, otherwise dw_fde_{begin,end}.
30682         (output_call_frame_info): Test dw_fde_second_begin != NULL
30683         instead of dw_fde_switched_sections.
30684         (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
30685         fields, initialize new fields.  Initialize in_std_section
30686         unconditionally from the first partition.
30687         (dwarf2out_end_epilogue): Don't override dw_fde_end when
30688         dw_fde_second_begin is non-NULL.
30689         (dwarf2out_switch_text_section): Stop initializing removed
30690         dw_fde_struct fields, initialize new fields, initialize
30691         also dw_fde_end here.  Set dw_fde_switch_cfi even when
30692         dwarf2out_do_cfi_asm ().  Call var_location_switch_text_section.
30693         (struct var_loc_list_def): Add last_before_switch field.
30694         (arange_table, arange_table_allocated, arange_table_in_use,
30695         ARANGE_TABLE_INCREMENT, add_arange): Removed.
30696         (size_of_aranges): Count !in_std_section and !second_in_std_section
30697         hunks in fdes, instead of looking at arange_table_in_use.
30698         (output_aranges): Add aranges_length argument, don't call
30699         size_of_aranges here.  Instead of using aranges_table*
30700         emit ranges for fdes when !in_std_section resp.
30701         !second_in_std_section.
30702         (dw_loc_list): Break ranges crossing section switch.
30703         (convert_cfa_to_fb_loc_list): Likewise.  If switched sections,
30704         use dw_fde_second_end instead of dw_fde_end as end of last range.
30705         (gen_subprogram_die): Don't call add_arange.  Use
30706         dw_fde_{begin,end} for first partition and if switched
30707         section dw_fde_second_{begin,end} for the second.
30708         (var_location_switch_text_section_1,
30709         var_location_switch_text_section): New functions.
30710         (dwarf2out_begin_function): Initialize cold_text_section even
30711         when function_section () isn't text_section.
30712         (prune_unused_types): Don't walk arange_table.
30713         (dwarf2out_finish): Don't needlessly test
30714         flag_reorder_blocks_and_partition when testing cold_text_section_used.
30715         If info_section_emitted, call size_of_aranges and if it indicates
30716         non-empty .debug_aranges, call output_aranges with the computed
30717         size.  Stop using removed dw_fde_struct fields, use
30718         dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
30719         for second.
30720
30721         PR debug/48203
30722         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
30723         create ENTRY_VALUE if incoming or address of incoming's MEM
30724         is a hard REG.
30725         * dwarf2out.c (mem_loc_descriptor): Don't emit
30726         DW_OP_GNU_entry_value of DW_OP_fbreg.
30727         * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
30728         on ENTRY_VALUE is able to find the canonical parameter VALUE.
30729         * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
30730         rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
30731         ENTRY_VALUE_EXPs.
30732         (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
30733         is a REG_P or MEM_P with REG_P address, compute hash directly
30734         instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
30735         (preserve_only_constants): Don't clear VALUES forwaring
30736         ENTRY_VALUE to some other VALUE.
30737
30738 2011-03-28  Richard Sandiford  <richard.sandiford@linaro.org>
30739
30740         * builtins.c (expand_builtin_memset_args): Use gen_int_mode
30741         instead of GEN_INT.
30742
30743 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
30744
30745         * cfgexpand.c (expand_gimple_cond): Always set the source location and
30746         block before expanding the statement.
30747         (expand_gimple_stmt_1): Likewise.  Set them here...
30748         (expand_gimple_stmt): ...and not here.  Tidy.
30749         * cfglayout.c (curr_insn_locator): Return 0 if the current location is
30750         unknown.
30751
30752 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
30753
30754         * Makefile.in: New rule for cprop.o.
30755         * gcse.c: Move constant/copy propagation to cprop.c.
30756         (compute_local_properties): Only handle expression tables.
30757         (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
30758         (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
30759         (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
30760         next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
30761         mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
30762         compute_cprop_data, find_used_regs, try_replace_reg,
30763         find_avail_set, cprop_jump, constprop_register, cprop_insn,
30764         local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
30765         fis_get_condition, implicit_set_cond_p, find_implicit_sets,
30766         find_bypass_set, reg_killed_on_edge, bypass_block,
30767         bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
30768         execute_rtl_cprop, pass_rtl_cprop): Move to...
30769         * cprop.c: ...here.  New file, constant/copy propagation for RTL
30770         moved from gcse.c to here with minor cleanups in duplicated code.
30771
30772 2011-03-28  H.J. Lu  <hongjiu.lu@intel.com>
30773
30774         * config/i386/i386.c (flag_opts): Fix a typo in
30775         -mavx256-split-unaligned-store.
30776
30777 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
30778
30779         * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
30780         LIBCALL_VALUE): Remove macros.
30781         * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
30782         TARGET_FUNCTION_VALUE_REGNO_P): Define.
30783         (h8300_function_value, h8300_libcall_value,
30784         h8300_function_value_regno_p): New functions.
30785
30786 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
30787
30788         * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
30789
30790 2011-03-28  Jeff Law  <law@redhat.com>
30791
30792         * tree-ssa-threadupdate.c (redirect_edges): Call
30793         create_edge_and_update_destination_phis as needed.
30794         (create_edge_and_update_destination_phis): Accept new BB argument.
30795         All callers updated.
30796         (thread_block): Do not update the profile when threading around
30797         intermediate blocks.
30798         (thread_single_edge): Likewise.
30799         (determine_bb_domination_status): If BB is not a successor of the
30800         loop header, return NONDOMINATING.
30801         (register_jump_thread): Note when we register a jump thread around
30802         an intermediate block.
30803         * tree-ssa-threadedge.c (thread_around_empty_block): New function.
30804         (thread_across_edge): Use it.
30805
30806 2011-03-28  Tristan Gingold  <gingold@adacore.com>
30807
30808         * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
30809         when for_return is 2.
30810
30811 2011-03-28  Jeff Law  <law@redhat.com>
30812
30813         * var-tracking.c (canonicalize_values_mark): Delete unused
30814         lhs assignment.
30815         (canonicalize_values_star, set_variable_part): Likewise.
30816         (clobber_variable_part, delete_variable_part): Likewise.
30817
30818 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
30819
30820         * gcse.c (free_gcse_mem): Free reg_set_bitmap.
30821
30822 2011-03-28  Martin Jambor  <mjambor@suse.cz>
30823
30824         * tree-inline.c (expand_call_inline): Do not check that destination
30825         node is analyzed.
30826         (optimize_inline_calls): Assert that destination node is analyzed.
30827         * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
30828         not call tree_lowering_passes.
30829         * cgraph.h (cgraph_analyze_function): Declare.
30830         * cgraphunit.c (cgraph_analyze_function): Make public.
30831
30832 2011-03-28  Joseph Myers  <joseph@codesourcery.com>
30833
30834         * config/sparc/sparc-opts.h: New.
30835         * config/sparc/sparc.c (sparc_handle_option, sparc_select,
30836         sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
30837         (sparc_option_override): Store processor_type enumeration rather
30838         than string in cpu_default.  Remove name and enumeration from
30839         cpu_table.  Directly default -mcpu then default -mtune from -mcpu
30840         without using sparc_select.  Use target_flags_explicit instead of
30841         fpu_option_set.
30842         * config/sparc/sparc.h (enum processor_type): Move to
30843         sparc-opts.h.
30844         (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
30845         * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
30846         HeaderInclude entry.
30847         (mcpu=, mtune=): Use Var and Enum.
30848         (sparc_processor_type): New Enum and EnumValue entries.
30849
30850 2011-03-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30851             Iain Sandoe  <iains@gcc.gnu.org>
30852
30853         PR target/48245
30854         * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
30855
30856 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
30857
30858         * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
30859         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
30860         Insert new statements at it in lieu of STMT.
30861         (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
30862         * tree-vect-stmts.c (vectorizable_store): Likewise.
30863         (vectorizable_load): Likewise.
30864
30865 2011-03-28  Uros Bizjak  <ubizjak@gmail.com>
30866
30867         * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
30868         (divtf3): Ditto.
30869         (multf3): Ditto.
30870         (subtf3): Ditto.
30871
30872 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
30873
30874         * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
30875         unaligned 256bit load/store.
30876         (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
30877         (*avx_movdqu<avxmodesuffix>): Likewise.
30878
30879 2011-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
30880
30881         PR target/48288
30882         * config/pa/predicates.md (reg_or_ior_operand): New predicate.
30883         * config/pa/pa.md (iordi3): Use new predicate in expander.
30884         (iorsi3): Likewise.
30885
30886 2011-03-27  Anatoly Sokolov  <aesok@post.ru>
30887
30888         * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
30889         FUNCTION_VALUE_REGNO_P): Remove macros.
30890         * config/mips/mips-protos.h (mips_function_value): Remove.
30891         * config/mips/mips.c (mips_function_value): Rename to...
30892         (mips_function_value_1): ... this. Make static.  Handle receiving
30893         the function type in 'fn_decl_or_type' argument.
30894         (mips_function_value, mips_libcall_value,
30895         mips_function_value_regno_p): New function.
30896         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
30897         TARGET_FUNCTION_VALUE_REGNO_P): Define.
30898
30899 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
30900
30901         * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
30902         and -mavx256-split-unaligned-store.
30903         (ix86_option_override_internal): Split 32-byte AVX unaligned
30904         load/store by default.
30905         (ix86_avx256_split_vector_move_misalign): New.
30906         (ix86_expand_vector_move_misalign): Use it.
30907
30908         * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
30909         -mavx256-split-unaligned-store.
30910
30911         * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
30912         256bit load/store.  Generate unaligned store on misaligned memory
30913         operand.
30914         (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
30915         256bit load/store.
30916         (*avx_movdqu<avxmodesuffix>): Likewise.
30917
30918         * doc/invoke.texi: Document -mavx256-split-unaligned-load and
30919         -mavx256-split-unaligned-store.
30920
30921 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
30922
30923         PR target/38598
30924         * config/mips/mips.md (extendsidi2): Add an "l" alternative.
30925         Update commentary.
30926
30927 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
30928
30929         * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
30930         opno arguments with an expand_operand.  Use create_input_operand.
30931         (mips_prepare_builtin_target): Delete.
30932         (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
30933         functions.
30934         (mips_expand_builtin_direct): Use create_output_operand and
30935         mips_expand_builtin_insn.  Update call to mips_prepare_builtin_arg.
30936         (mips_expand_builtin_movtf): Likewise.  Use mips_expand_fp_comparison.
30937         (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
30938
30939 2011-03-27  Ira Rosen  <ira.rosen@linaro.org>
30940
30941         * config/arm/arm.c (arm_autovectorize_vector_sizes): New
30942         function.
30943         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
30944
30945 2011-03-26  Eric Botcazou  <ebotcazou@adacore.com>
30946
30947         * basic-block.h (fixup_abnormal_edges): Adjust prototype.
30948         * reload1.c (reload): Adjust call to fixup_abnormal_edges.  Rediscover
30949         basic blocks and call commit_edge_insertions directly.
30950         (fixup_abnormal_edges): Move from here to...
30951         * cfgrtl.c (fixup_abnormal_edges): ...here.  Only insert instructions
30952         on the edges and return whether some have actually been inserted.
30953         * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
30954         compensation code.
30955
30956 2011-03-26  Andrey Belevantsev  <abel@ispras.ru>
30957
30958         PR rtl-optimization/48144
30959         * sel-sched-ir.c (merge_history_vect): Factor out from ...
30960         (merge_expr_data): ... here.
30961         (av_set_intersect): Rename to av_set_code_motion_filter.
30962         Update all callers.  Call merge_history_vect when an expression
30963         is found in both sets.
30964         * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
30965
30966 2011-03-26  Alan Modra  <amodra@gmail.com>
30967
30968         * config/rs6000/predicates.md (word_offset_memref_op): Handle
30969         cmodel medium addresses.
30970         * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
30971         64-bit gpr loads and stores.
30972         (rs6000_secondary_reload_ppc64): New function.
30973         * config/rs6000/rs6000-protos.h: Declare it.
30974         * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
30975
30976 2011-03-26  Alan Modra  <amodra@gmail.com>
30977
30978         PR target/47487
30979         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
30980         GNU Go in traceback table.
30981
30982 2011-03-25  Richard Henderson  <rth@redhat.com>
30983
30984         * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
30985         if there are exactly 6 operands.
30986         (set_storage_via_setmem): Similarly.
30987
30988 2011-03-25  Kai Tietz  <ktietz@redhat.com>
30989
30990         * collect2.c (write_c_file_stat): Handle backslash
30991         as right-hand directory separator.
30992         (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
30993         checking just for slash.
30994         * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
30995         instead of checking for trailing slash.
30996         * gcc.c (record_temp_file): Use filename_cmp instead
30997         of strcmp.
30998         (do_spec_1): Likewise.
30999         (replace_outfile_spec_function): Likewise.
31000         (is_directory): Use filename_ncmp instead of strncmp.
31001         (print_multilib_info): Likewise.
31002         * gcov.c (find_source): Use filename_cmp instead
31003         instead of strcmp.
31004         (make_gcov_file_name): Fix order of slash/backslash
31005         checks.
31006         * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
31007         (add_standard_paths): Likewise.
31008         * mips-tfile.c (saber_stop): Handle backslash.
31009         * prefix.c (update_path): Use filename_ncmp instead of
31010         strncmp.
31011         * profile.c (output_location): Use filename_cmp instead
31012         of strcmp.
31013         * read-md.c (handle_toplevel_file): Handle backslash.
31014         * tlink.c (frob_extension):  Likewise.
31015         * tree-cfg.c (same_line_p): Use filename_cmp instead of
31016         strcmp.
31017         * tree-dump.c (dequeue_and_dump): Handle backslash.
31018         * tree.c (get_file_function_name): Likewise.
31019         * gengtype.c (read_input_list): Likewise.
31020         (get_file_realbasename): Likewise.
31021         (get_output_file_with_visibility): Use filename_cmp
31022         instead of strcmp.
31023
31024 2011-03-25  Richard Sandiford  <richard.sandiford@linaro.org>
31025
31026         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
31027         case to VFPv1.
31028
31029 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
31030
31031         * fold-const.c (expr_location_or): New function.
31032         (fold_truth_not_expr): Call it.
31033
31034 2011-03-25  Jeff Law  <law@redhat.com>
31035
31036         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
31037         va_end.
31038         * c-family/c-common.c (def_fn_type): Likewise.
31039         * emit-rtl.c (gen_rtvec): Likewise.
31040         * lto/lto-lang.c (def_fn_type): Likewise.
31041
31042 2011-03-25  Richard Guenther  <rguenther@suse.de>
31043
31044         * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
31045         also generate copies.
31046         (fini_copy_prop): Handle constant values properly.
31047
31048 2011-03-25  Jakub Jelinek  <jakub@redhat.com>
31049
31050         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
31051         mode size instead of bitsize with DWARF2_ADDR_SIZE.
31052         (hash_loc_operands, compare_loc_operands): Handle
31053         DW_OP_GNU_entry_value.
31054
31055 2011-03-25  Kai Tietz  <ktietz@redhat.com>
31056
31057         * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
31058         (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
31059         * config/i386/i386.c (ix86_conditional_register_usage): Adjust
31060         comment and use macro TARGET_64BIT_MS_ABI instead.
31061         (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
31062         and change default behavior for 32-bit MS_ABI.
31063         (ix86_reg_parm_stack_space): Check additionally for bit-ness.
31064         (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
31065         32-bit, too.
31066         (ix86_cfun_abi): Likewise.
31067         (ix86_maybe_switch_abi): Adjust comment.
31068         (init_cumulative_args): Check for bit-ness in MS_ABI case.
31069         (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
31070         instead of checking for SYSV_ABI.
31071         (ix86_nsaved_sseregs): Likewise.
31072         (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
31073         to 16 bytes.
31074         (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
31075         * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
31076         (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
31077         (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
31078         * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
31079
31080 2011-03-25  Richard Guenther  <rguenther@suse.de>
31081
31082         * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
31083         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
31084         (verify_gimple): Remove.
31085         * tree-cfg.c (verify_gimple_call): Merge verification
31086         from verify_stmts.
31087         (verify_gimple_phi): Merge verification from verify_stmts.
31088         (verify_gimple_label): New function.
31089         (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
31090         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
31091         (verify_stmt): Merge into verify_gimple_in_cfg and callees.
31092         (verify_stmts): Rename to verify_gimple_in_cfg.
31093         (verify_gimple_in_cfg): New function.
31094         * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
31095         * tree-ssa.c (verify_ssa): Likewise.
31096         * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
31097
31098 2011-03-25  Richard Guenther  <rguenther@suse.de>
31099
31100         * passes.c (init_optimization_passes): Add FRE pass after
31101         early SRA.
31102
31103 2011-03-25  Bernd Schmidt  <bernds@codesourcery.com>
31104             Andrew Stubbs  <ams@codesourcery.com>
31105
31106         * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
31107         for Cortex-A8.
31108         (arm_movdi_vfp_cortexa8): New pattern.
31109         * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
31110         iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
31111         instructions when tuning for Cortex-A8.  Set attribute "arch".
31112         * config/arm/arm.md: Move include arm-tune.md up a bit.
31113         (define_attr "arch"): Add "onlya8" and "nota8" values.
31114         (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
31115
31116 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
31117
31118         PR bootstrap/48282
31119         Revert:
31120         2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
31121
31122         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
31123         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
31124         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
31125         * passes.c (init_optimization_passes): Move
31126         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
31127
31128 2011-03-25  Kai Tietz  <ktietz@redhat.com>
31129
31130         * c-typeck.c (comptypes_internal): Replace target
31131         hook call of comp_type_attributes by version in tree.c file.
31132         * gimple.c (gimple_types_compatible_p_1): Likewise.
31133         * tree-ssa.c (useless_type_conversion_p): Likewise.
31134         * tree.c (build_type_attribute_qual_variant): Likewise.
31135         (attribute_value_equal): New static helper function.
31136         (comp_type_attributes): New function.
31137         (merge_attributes): Use attribute_value_equal for comparison.
31138         (attribute_list_contained): Likewise.
31139         * tree.h (comp_type_attributes): New prototype.
31140
31141 2011-03-25  Richard Guenther  <rguenther@suse.de>
31142
31143         * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
31144         of complex types at -O0.
31145         (verify_gimple_assign_binary): Likewise.
31146         (verify_gimple_assign_ternary): Likewise.
31147
31148 2011-03-24  Mark Wielaard  <mjw@redhat.com>
31149
31150         * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
31151         (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
31152
31153 2011-03-24  Mark Wielaard  <mjw@redhat.com>
31154
31155         PR debug/48041
31156         * dwarf2out.c (output_abbrev_section): Only write table when
31157         abbrev_die_table_in_use > 1.
31158
31159 2011-02-24  Richard Henderson  <rth@redhat.com>
31160
31161         * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
31162         (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
31163         (alpha_expand_unaligned_load_words): Use extql.
31164         (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
31165         (emit_insxl): Handle all modes for consistency.
31166
31167 2011-02-24  Richard Henderson  <rth@redhat.com>
31168
31169         * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
31170         (alpha_expand_unaligned_load): Likewise.
31171         (alpha_expand_unaligned_store): Likewise.
31172         (alpha_expand_unaligned_load_words): Likewise.
31173         (alpha_expand_unaligned_store_words): Likewise.
31174         (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
31175         (alpha_split_lock_test_and_set_12): Likewise.
31176         (print_operand, alpha_fold_builtin_extxx): Likewise.
31177         (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
31178         * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
31179         (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
31180         (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
31181         (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
31182         (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
31183         (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
31184         (unaligned_storeqi_be, unaligned_storehi_be): Remove.
31185         (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
31186         (extwl, extll, extql): Similarly.
31187         (inswh, inslh, insqh): Similarly.
31188         (mskbl, mskwl, mskll, mskql): Similarly.
31189         (mskwh, msklh, mskqh): Similarly.
31190
31191 2011-02-24  Richard Henderson  <rth@redhat.com>
31192
31193         * config/alpha/alpha.md (attribute isa): Add er, ner.
31194         (attribute enabled): Handle them.
31195         (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
31196
31197 2011-02-24  Richard Henderson  <rth@redhat.com>
31198
31199         * config/alpha/alpha.md (attribute isa): Add vms.
31200         (attribute enabled): Handle it.
31201         (*movsf): Merge *movsf_{nofix,fix,nofp}.
31202         (*movdf): Merge *movdf_{nofix,fix,nofp}.
31203         (*movtf): Rename from *movtf_internal for consistency.
31204         (*movsi): Merge with *movsi_nt_vms.
31205         (*movhi): Merge *movhi_nobwx, *movhi_bwx.
31206         (*movqi): Merge *movqi_nobwx, *movqi_bwx.
31207         (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
31208         * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
31209
31210 2011-02-24  Richard Henderson  <rth@redhat.com>
31211
31212         * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
31213         (extendqisi2, extendhisi2): Likewise.
31214         (extendqidi2): Simplify BWX/non-BWX expansions.
31215         (extendhidi2): Similarly.
31216
31217 2011-02-24  Richard Henderson  <rth@redhat.com>
31218
31219         * config/alpha/alpha.md (attribute isa): New.
31220         (attribute enabled): New.
31221         (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
31222         (zero_extendqisi2, zero_extendqidi2): Similarly.
31223         (zero_extendhisi2, zero_extendhidi2): Similarly.
31224         * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
31225
31226 2011-02-24  Richard Henderson  <rth@redhat.com>
31227
31228         * config/alpha/predicates.md (input_operand): Revert last change;
31229         update comment to mention 32-bit VMS rather than Windows.
31230
31231 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
31232
31233         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
31234         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
31235         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
31236         * passes.c (init_optimization_passes): Move
31237         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
31238
31239 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
31240
31241         * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
31242
31243 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
31244
31245         * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
31246         correctly.
31247
31248 2011-03-24  Jakub Jelinek  <jakub@redhat.com>
31249
31250         PR debug/48204
31251         * simplify-rtx.c (simplify_const_unary_operation): Call
31252         real_convert when changing mode class with FLOAT_EXTEND.
31253
31254 2011-03-24  Nick Clifton  <nickc@redhat.com>
31255
31256         * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
31257         (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
31258         * config/rx/rx.c (rx_option_override): Set align_jumps,
31259         align_loops and align_labels if not set by the user.
31260         (rx_align_for_label): New function.
31261         (rx_max_skip_for_label): New function.
31262         (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
31263         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
31264         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
31265         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
31266         * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
31267
31268 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
31269
31270         PR rtl-optimization/48263
31271         * optabs.c (expand_binop_directly): Reinstate convert_modes code
31272         and original commutative_p handling.  Use maybe_gen_insn.
31273
31274 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
31275
31276         * reload.c (find_reloads_subreg_address): Add address_reloaded
31277         parameter and return true there if the full address has been
31278         reloaded.
31279         (find_reloads_toplev): Pass address_reloaded flag.
31280         (find_reloads_address_1): Don't use address_reloaded parameter.
31281
31282 2011-03-24  Jeff Law  <law@redhat.com>
31283
31284         * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
31285         unused variable "ann".
31286         (remove_unused_locals): Likewise.
31287
31288         * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
31289         statement.
31290
31291         * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
31292         after it is freed.
31293
31294 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
31295
31296         * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
31297         for invalid symbolic addresses.
31298         (s390_secondary_reload): Don't use s390_check_symref_alignment for
31299         larl operands.
31300
31301 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
31302
31303         * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
31304         the argument in calls to fold_truth_not_expr.
31305
31306 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
31307
31308         * tree.c (record_node_allocation_statistics): New function.
31309         (make_node_stat, copy_node_stat, build_string): Call it.
31310         (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
31311         (build1_stat, build_omp_clause): Likewise.
31312
31313 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
31314
31315         * builtins.c (expand_movstr): Fix endp == 1 adjustment after
31316         last commit.
31317
31318 2011-03-24  Richard Guenther  <rguenther@suse.de>
31319
31320         PR tree-optimization/48271
31321         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
31322         blocks that still exist.
31323
31324 2011-03-24  Richard Guenther  <rguenther@suse.de>
31325
31326         PR tree-optimization/48270
31327         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
31328         not free datarefs before ddrs.
31329
31330 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
31331
31332         * tree-sra.c (build_ref_for_offset): Strip useless type conversions
31333         from the address built for a reference with variable offset.
31334
31335 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
31336
31337         PR target/48237
31338         * config/i386/i386.md (*movdf_internal_rex64): Do not split
31339         alternatives that can be handled with movq or movabsq insn.
31340         (*movdf_internal): Disable for !TARGET_64BIT.
31341         (*movdf_internal_nointeger): Ditto.
31342         * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
31343
31344 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
31345
31346         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
31347         (FUNCTION_ARG_ADVANCE): Likewise.
31348         * tm.texi.in: Change references to them to hook references.
31349         * tm.texi: Regenerate.
31350         * targhooks.c (default_function_arg): Eliminate check for target macro.
31351         (default_function_incoming_arg): Likewise.
31352         (default_function_arg_advance): Likewise.
31353         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
31354         (function_arg_advance): Likewise.
31355         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
31356
31357 2011-03-24  Richard Guenther  <rguenther@suse.de>
31358
31359         PR middle-end/48269
31360         * tree-object-size.c (addr_object_size): Do not double-account
31361         for MEM_REF offsets.
31362
31363 2011-03-24  Diego Novillo  <dnovillo@google.com>
31364
31365         * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
31366         * lto-streamer-in.c (input_string_internal): Add clarifying comments.
31367         (lto_input_data_block): Move from lto-opts.c.  Make extern.
31368         Update all users.
31369         (lto_input_string): Rename from input_string.  Make extern.
31370         Update all users.
31371         * lto-streamer-out.c (lto_output_string_with_length): Rename from
31372         output_string_with_length.
31373         Output 0 to indicate a non-NULL string.  Update all callers to
31374         not emit 0.
31375         (lto_output_string): Rename from output_string.  Make extern.
31376         Update all users.
31377         (lto_output_decl_state_streams): Make extern.
31378         (lto_output_decl_state_refs): Make extern.
31379         * lto-streamer.h (lto_input_string): Declare.
31380         (lto_input_data_block): Declare.
31381         (lto_output_string): Declare.
31382         (lto_output_string_with_length): Declare.
31383         (lto_output_decl_state_streams): Declare.
31384         (lto_output_decl_state_refs): Declare.
31385
31386 2011-03-24  Richard Guenther  <rguenther@suse.de>
31387
31388         PR tree-optimization/46562
31389         * tree.c (build_invariant_address): New function.
31390         * tree.h (build_invariant_address): Declare.
31391         * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
31392         a renamed function moved ...
31393         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
31394         Take valueization callback parameter.
31395         * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
31396         * gimple-fold.h: New file.
31397         * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
31398         (ccp_fold, fold_const_aggregate_ref,
31399         fold_ctor_reference, fold_nonarray_ctor_reference,
31400         fold_array_ctor_reference, fold_string_cst_ctor_reference,
31401         get_base_constructor): Move ...
31402         * gimple-fold.c: ... here.
31403         (gimple_fold_stmt_to_constant_1): New function
31404         split out from ccp_fold.  Take a valueization callback parameter.
31405         Valueize all operands.
31406         (gimple_fold_stmt_to_constant): New wrapper function.
31407         (fold_const_aggregate_ref_1): New function split out from
31408         fold_const_aggregate_ref.  Take a valueization callback parameter.
31409         (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
31410         * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
31411         invariant POINTER_PLUS_EXPRs to invariant form.
31412         (vn_valueize): New function.
31413         (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
31414         * tree-vrp.c (vrp_valueize): New function.
31415         (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
31416         to fold statements to constants.
31417         * tree-ssa-pre.c (eliminate): Properly guard propagation of
31418         function declarations.
31419         * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
31420         tree-ssa-ccp.o): Add gimple-fold.h dependencies.
31421
31422 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
31423
31424         * config/h8300/predicates.md (jump_address_operand): Fix register
31425         mode check.
31426
31427 2011-03-24  Ira Rosen  <ira.rosen@linaro.org>
31428
31429         * doc/invoke.texi (max-stores-to-sink): Document.
31430         * params.h (MAX_STORES_TO_SINK): Define.
31431         * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
31432         if either vectorization or if-conversion is disabled.
31433         * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
31434         tree-vect-data-refs.c vect_equal_offsets.
31435         (dr_equal_offsets_p): New function.
31436         (find_data_references_in_bb): Remove static.
31437         * tree-data-ref.h (find_data_references_in_bb): Declare.
31438         (dr_equal_offsets_p): Likewise.
31439         * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
31440         (vect_drs_dependent_in_basic_block): Update calls to
31441         vect_equal_offsets.
31442         (vect_check_interleaving): Likewise.
31443         * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
31444         (cond_if_else_store_replacement): Rename to...
31445         (cond_if_else_store_replacement_1): ... this.  Change arguments and
31446         documentation.
31447         (cond_if_else_store_replacement): New function.
31448         * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
31449         * params.def (PARAM_MAX_STORES_TO_SINK): Define.
31450
31451 2011-03-23  Chung-Lin Tang  <cltang@codesourcery.com>
31452
31453         PR target/46934
31454         * config/arm/arm.md (casesi): Use the gen_int_mode() function
31455         to subtract lower bound instead of GEN_INT().
31456
31457 2011-03-23  Jonathan Wakely  <jwakely.gcc@gmail.com>
31458
31459         PR other/48179
31460         PR other/48221
31461         PR other/48234
31462         * doc/extend.texi (Alignment): Move section to match order in TOC.
31463         * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
31464         (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
31465
31466 2011-03-23  Jeff Law  <law@redhat.com>
31467
31468         * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
31469         before removing the edge.
31470
31471         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
31472         it may have been freed by redirect_branch_edge or
31473         redirect_edge_succ_nodup.
31474
31475 2011-03-23  Richard Guenther  <rguenther@suse.de>
31476
31477         * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
31478         (check_va_list_escapes): Likewise.
31479         (check_all_va_list_escapes): Likewise.
31480
31481 2011-03-23  Richard Guenther  <rguenther@suse.de>
31482
31483         * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
31484         (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
31485         (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
31486         (alias.o): Likewise.
31487         (ipa-type-escape.o): Remove.
31488         (ipa-struct-reorg.o): Likewise.
31489         (GTFILES): Remove ipa-struct-reorg.c.
31490         * alias.c: Do not include ipa-type-escape.h.
31491         * tree-ssa-alias.c: Likewise.
31492         * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
31493         * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
31494         * passes.c (init_optimization_passes): Remove ipa-struct-reorg
31495         and ipa-type-escape passes.
31496         * tree-pass.h (pass_ipa_type_escape): Remove.
31497         (pass_ipa_struct_reorg): Likewise.
31498         * ipa-struct-reorg.h: Remove.
31499         * ipa-struct-reorg.c: Likewise.
31500         * ipa-type-escape.h: Likewise.
31501         * ipa-type-escape.c: Likewise.
31502         * doc/invoke.texi (-fipa-struct-reorg): Remove.
31503         (--param struct-reorg-cold-struct-ratio): Likewise.
31504         * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
31505         * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
31506         * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
31507
31508 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
31509
31510         * config/s390/2084.md: Enable all insn reservations also for z9_ec
31511         cpu attribute value.
31512         * config/s390/s390-opts.h (enum s390_arch_option): Remove.
31513         (enum processor_type): Add PROCESSOR_2094_Z9_EC.
31514         * config/s390/s390.c (processor_flags_table): New constant array.
31515         (s390_handle_arch_option): Remove.
31516         (s390_handle_option): Remove s390_handle_arch_option invocations
31517         and OPT_mwarn_framesize_ handling.
31518         (s390_option_override): Remove s390_handle_arch_option invocation.
31519         (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
31520         warnings.
31521         * config/s390/s390.md (cpu attribute): Add z9_ec value.
31522         * config/s390/s390.opt (s390_tune, s390_arch)
31523         (march=): Replace s390_arch_option enum and values with
31524         processor_type.  Set variable name to s390_arch.  Set
31525         initialization value.
31526         (mtune=): Replace s390_arch_option with processor_type.  Set
31527         variable name to s390_tune.  Set initialization value.
31528
31529 2011-03-23  Julian Brown  <julian@codesourcery.com>
31530
31531         * expr.c (expand_expr_real_1): Only use BLKmode for volatile
31532         accesses which are not naturally aligned.
31533
31534 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
31535
31536         PR target/47553
31537         * config/arm/predicates.md (neon_lane_number): Accept 0..15.
31538
31539 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
31540
31541         * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
31542         parameter from "int" to "enum insn_code".
31543         (expand_operand_type): New enum.
31544         (expand_operand): New structure.
31545         (create_expand_operand): New function.
31546         (create_fixed_operand, create_output_operand): Likewise
31547         (create_input_operand, create_convert_operand_to): Likewise.
31548         (create_convert_operand_from, create_address_operand): Likewise.
31549         (create_integer_operand): Likewise.
31550         (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
31551         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
31552         (expand_insn, expand_jump_insn): Likewise.
31553         * builtins.c (expand_builtin_prefetch): Use the new interfaces.
31554         (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
31555         (expand_movstr, expand_builtin___clear_cache): Likewise.
31556         (expand_builtin_lock_release): Likewise.
31557         * explow.c (allocate_dynamic_stack_space): Likewise.
31558         (probe_stack_range): Likewise.  Allow check_stack to FAIL,
31559         and use the default handling in that case.
31560         * expmed.c (check_predicate_volatile_ok): Delete.
31561         (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
31562         (emit_cstore): Likewise.
31563         * expr.c (emit_block_move_via_movmem): Likewise.
31564         (set_storage_via_setmem, expand_assignment): Likewise.
31565         (emit_storent_insn, try_casesi): Likewise.
31566         (emit_single_push_insn): Likewise.  Allow the expansion to fail.
31567         * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
31568         (expand_vec_shift_expr, expand_binop_directly): Likewise.
31569         (expand_twoval_unop, expand_twoval_binop): Likewise.
31570         (expand_unop_direct, emit_indirect_jump): Likewise.
31571         (emit_conditional_move, vector_compare_rtx): Likewise.
31572         (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
31573         (expand_sync_operation, expand_sync_fetch_operation): Likewise.
31574         (expand_sync_lock_test_and_set): Likewise.
31575         (maybe_emit_unop_insn): Likewise.  Change icode to an insn_code.
31576         (emit_unop_insn): Likewise.
31577         (expand_copysign_absneg): Change icode to an insn_code.
31578         (create_convert_operand_from_type): New function.
31579         (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
31580         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
31581         (expand_insn, expand_jump_insn): Likewise.
31582         * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
31583         than const_int_operand for operand 2.
31584
31585 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
31586
31587         * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
31588         if possible.
31589
31590 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
31591
31592         * emit-rtl.c (emit_pattern_before_noloc): New function.
31593         (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
31594         (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
31595         (emit_pattern_after_noloc): New function.
31596         (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
31597         (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
31598
31599 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
31600
31601         * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
31602         (__ffsDI2): Likewise.
31603
31604 2011-03-22  Richard Henderson  <rth@redhat.com>
31605
31606         * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
31607         of !TARGET_ABI_OPEN_VMS.
31608         (alpha_trampoline_init, alpha_start_function): Likewise.
31609         (alpha_expand_epilogue, alpha_file_start): Likewise.
31610         * config/alpha/alpha.md (divsi3, modsi3): Likewise.
31611         (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
31612         (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
31613         (*divmodsi_internal, *divmoddi_internal_er): Likewise.
31614         (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
31615
31616 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
31617
31618         * config/s390/s390-opts.h: New.
31619         * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
31620         s390_arch_flags, s390_warn_framesize, s390_stack_size,
31621         s390_stack_guard): Remove.
31622         (s390_handle_arch_option): Return void.  Take enum
31623         s390_arch_option value instead of string and searching array.
31624         (s390_handle_option): Don't assert that global structures are in
31625         use.  Access variables via opts pointer.  Use error_at.  Don't use
31626         sscanf for -mstack-guard= or -mstack-size=.  Update call to
31627         s390_handle_arch_option.
31628         (s390_option_override): Update call to s390_handle_arch_option.
31629         (s390_emit_prologue): Use %d format for s390_stack_size in
31630         diagnostic.  Use %wd for HOST_WIDE_INT.
31631         * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
31632         (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
31633         * config/s390/s390.opt (config/s390/s390-opts.h): New
31634         HeaderInclude entry.
31635         (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
31636         s390_arch_flags, s390_warn_framesize): New Variable entries.
31637         (s390_arch_option): New Enum and EnumValue entries.
31638         (march=): Use Enum instead of Var.
31639         (mstack-guard=, mstack-size=): Use UInteger and Var.
31640         (mtune=): Use Enum.
31641
31642 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
31643
31644         * config/score/score.c (score_handle_option): Don't assert that
31645         global structures are in use.  Access target_flags via opts
31646         pointer.  Use value of -march= option to determine target_flags
31647         settings.
31648         * config/score/score.opt (march=): Use Enum.
31649         (score_arch): New Enum and EnumValue entries.
31650
31651 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
31652
31653         * config/mep/mep.c (option_mtiny_specified): Remove.
31654         (mep_option_override): Move register handling for -mivc2 from
31655         mep_handle_option.  Use global_options_set.x_mep_tiny_cutoff
31656         instead of option_mtiny_specified.
31657         (mep_handle_option): Access target_flags via opts pointer.  Don't
31658         assert that global structures are in use.  Defer part of -mivc2
31659         handling and move it to mep_option_override.
31660         * config/mep/mep.opt (IVC2): New Mask entry.
31661         (mivc2): Use Var and Defer instead of Mask.
31662
31663 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
31664
31665         * config/v850/v850-opts.h: New.
31666         * config/v850/v850.c (small_memory): Replace with
31667         small_memory_physical_max array.  Make that array static const.
31668         (v850_handle_memory_option): Take integer value of argument.  Take
31669         gcc_options pointer, option text and location.  Return void.
31670         Update for changes to small memory structures.
31671         (v850_handle_option): Access target_flags via opts pointer.  Don't
31672         assert that global structures are in use.  Update calls to
31673         v850_handle_memory_option.
31674         (v850_encode_data_area): Update references to small memory settings.
31675         * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
31676         (enum small_memory_type): Move to v850-opts.h.
31677         * config/v850/v850.opt (config/v850/v850-opts.h): New
31678         HeaderInclude entry.
31679         (small_memory_max): New Variable entry.
31680         (msda): Replace by pair of options msda= and msda-.  Use UInteger.
31681         (mtda, mzda): Likewise.
31682
31683 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
31684
31685         * config/sh/sh.c (sh_handle_option): Access target_flags via opts
31686         pointer.  Don't assert that global structures are in use.
31687
31688 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
31689
31690         * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
31691         via opts pointer.  Don't assert that global structures are in use.
31692
31693 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
31694
31695         * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
31696         (munix=93): Use Var.
31697         * config/pa/pa-hpux1010.opt (munix=95): Use Var.
31698         * config/pa/pa-hpux1111.opt (munix=98): Use Var.
31699         * config/pa/pa-opts.h: New.
31700         * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
31701         (pa_handle_option): Don't assert that global structures are in
31702         use.  Access target_flags via opts pointer.  Don't handle
31703         OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
31704         OPT_munix_98 here.
31705         (pa_option_override): Handle deferred OPT_mfixed_range_.
31706
31707 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
31708
31709         * config/mn10300/mn10300-opts.h: New.
31710         * config/mn10300/mn10300.c (mn10300_processor,
31711         mn10300_tune_string): Remove.
31712         (mn10300_handle_option): Don't assert that global structures are
31713         in use.  Access mn10300_processor via opts pointer.  Don't handle
31714         OPT_mtune_ here.
31715         * config/mn10300/mn10300.h (enum processor_type): Move to
31716         mn10300-opts.h.
31717         (mn10300_processor): Remove.
31718         * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
31719         HeaderInclude entry.
31720         (mn10300_processor): New Variable entry.
31721         (mtune=): Use Var.
31722
31723 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
31724
31725         * config/microblaze/microblaze.c: Don't include opts.h.
31726         (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
31727         * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
31728         (mno-clearbss): Use Var and Warn.
31729
31730 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
31731
31732         * config/m32r/m32r-opts.h: New.
31733         * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
31734         (m32r_handle_option): Don't assert that global structures are in
31735         use.  Access target_flags and m32r_cache_flush_func via opts
31736         pointer.  Don't handle OPT_mmodel_, OPT_msdata_ or
31737         OPT_mno_flush_trap here.
31738         * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
31739         include of m32r-opts.h.
31740         * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
31741         HeaderInclude entry.
31742         (m32r_model_selected, m32r_sdata_selected): New Variable entries.
31743         (mmodel=): Use Enum and Var.
31744         (m32r_model): New Enum and EnumValue entries.
31745         (mno-flush-trap): Use Var.
31746         (msdata=): Use Enum and Var.
31747         (m32r_sdata): New Enum and EnumValue entries.
31748
31749 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
31750
31751         * config/m32c/m32c.c: Don't include opts.h.
31752         (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
31753         m32c_handle_option): Remove.
31754         (m32c_option_override): Check global_options_set.x_target_memregs
31755         instead of target_memregs_set.
31756         * config/m32c/m32c.h (target_memregs): Remove.
31757         * config/m32c/m32c.opt (memregs=): Use UInteger with integer
31758         variable.
31759
31760 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
31761
31762         * config/iq2000/iq2000-opts.h: New.
31763         * config/iq2000/iq2000.c: Don't include opts.h.
31764         (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
31765         * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
31766         * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
31767         HeaderInclude entry.
31768         (iq2000_tune): New Variable entry.
31769         (march=): Add comment.  Use Enum.
31770         (iq2000_arch): New Enum and EnumValue entries.
31771         (mcpu=): Use Enum and Var.
31772         (iq2000_tune): New Enum and EnumValue entries.
31773
31774 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
31775
31776         * config/ia64/ia64-opts.h: New.
31777         * config/ia64/ia64.c (ia64_tune): Remove.
31778         (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
31779         here.  Use error_at.
31780         (ia64_option_override): Handle deferred OPT_mfixed_range_.
31781         * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
31782         * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
31783         HeaderInclude entry.
31784         (ia64_tune): New Variable entry.
31785         (mfixed-range=): Use Defer and Var.
31786         (mtune=): Use Enum and Var.
31787         (ia64_tune): New Enum and EnumValue entries.
31788
31789 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
31790
31791         * config/frv/frv-opts.h: New.
31792         * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
31793         frv-opts.h.
31794         (frv_cpu_type): Remove.
31795         * config/frv/frv.c: Don't include opts.h.
31796         (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
31797         * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
31798         (frv_cpu_type): New Variable entry.
31799         (frv_cpu): New Enum and EnumValue entries.
31800
31801 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
31802
31803         * config/cris/cris.c (cris_handle_option): Access target_flags via
31804         opts pointer.  Don't assert that global structures are in use.
31805         Don't call CRIS_SUBTARGET_HANDLE_OPTION.
31806         * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
31807
31808 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
31809
31810         * config/bfin/bfin-opts.h: New.
31811         * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
31812         bfin_si_revision, bfin_workarounds): Remove.
31813         (bfin_cpus): Make static const.
31814         (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
31815         not bfin_lib_id_given.
31816         (bfin_handle_option): Don't set bfin_lib_id_given.  Access
31817         bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
31818         pointer. Use error_at.  Don't assert that global structures are in use.
31819         * config/bfin/bfin.h: Include bfin-opts.h.
31820         (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
31821         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
31822         * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
31823         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
31824         entries.
31825
31826 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
31827
31828         * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
31829         * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
31830         or -msoft-float here.
31831         * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
31832         -msoft-float and -mhard-float.
31833         (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
31834         * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
31835         msoft-float.
31836         * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
31837         -msoft-float.
31838         (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
31839         * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
31840         not mhard-float.
31841         (LIBGCC_SPEC): Don't handle -msoft-float.
31842         * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
31843         -mhard-float.
31844         * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
31845         msoft-float.
31846         * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
31847         -mfloat-abi=*, not -msoft-float and -mhard-float.
31848         * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
31849         -msoft-float.
31850         * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
31851         Use mfloat-abi=hard and mfloat-abi=soft in comments, not
31852         mhard-float and msoft-float.
31853         * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
31854         mfloat-abi=soft in comments, not mhard-float and msoft-float.
31855         * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
31856         mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
31857         mhard-float.
31858         * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
31859         mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
31860         msoft-float.
31861         * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
31862         not mhard-float.
31863         * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
31864         not msoft-float.
31865
31866 2011-03-22  Richard Henderson  <rth@redhat.com>
31867
31868         * config/alpha/alpha.c (alpha_expand_prologue): Don't test
31869         TARGET_ABI_WINDOWS_NT.
31870         (alpha_output_function_end_prologue): Likewise.
31871         * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
31872         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
31873         * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
31874         (trap, *movsi_nt_vms): Likewise.
31875         (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
31876         (*tablejump_osf_nt_internal): Remove.
31877         * config/alpha/predicates.md (input_operand): Only test Pmode.
31878
31879 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
31880
31881         * config/alpha/alpha.c (alpha_handle_option): Access target_flags
31882         via opts pointer.  Use error_at.  Don't assert that global
31883         structures are in use.
31884
31885 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
31886
31887         * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
31888         (ix86_handle_option): Access ix86_isa_flags and
31889         ix86_isa_flags_explicit via opts pointer.  Don't assert that
31890         global structures are in use.
31891         (ix86_function_specific_save, ix86_function_specific_restore):
31892         Update ix86_isa_flags_explicit field name.
31893         * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
31894         (ix86_isa_flags_explicit): Rename TargetSave entry to
31895         x_ix86_isa_flags_explicit.
31896
31897 2011-03-22  Richard Henderson  <rth@redhat.com>
31898
31899         * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
31900         (alpha_option_override, direct_return): Likewise.
31901         (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
31902         (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
31903         (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
31904         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
31905         (alpha_expand_epilogue, alpha_end_function): Likewise.
31906         (alpha_init_libfuncs): Likewise.
31907         (struct machine_function): Remove unicosmk members.
31908         (print_operand) ['t']: Remove.
31909         (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
31910         unicosmk_output_module_name, unicosmk_output_common,
31911         current_section_align, unicosmk_output_text_section_asm_op,
31912         unicosmk_output_data_section_asm_op, unicosmk_init_sections,
31913         unicosmk_section_type_flags, unicosmk_unique_section,
31914         unicosmk_asm_named_section, unicosmk_insert_attributes,
31915         unicosmk_output_align, unicosmk_defer_case_vector,
31916         unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
31917         SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
31918         unicosmk_output_ssib, unicosmk_add_call_info_word,
31919         unicosmk_extern_head, unicosmk_output_default_externs,
31920         unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
31921         unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
31922         unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
31923         * config/alpha/alpha-protos.h: Update.
31924         * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
31925         * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
31926         (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
31927         (mulsi3): Don't test TARGET_ABI_UNICOSMK.
31928         (*mulsi_se, mulvsi3): Likewise.
31929         (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
31930         (*divmodsi_internal, call, call_value, realign): Likewise.
31931         (moddi3, umoddi3): Likewise; remove duplicate expander.
31932         (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
31933         (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
31934         (*movdi_nofix): Remove r/U alternative.
31935         (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
31936         * config/alpha/constraints.md ("U"): Remove.
31937         * config/alpha/predicates.md (call_operand"): Don't test
31938         TARGET_ABI_UNICOSMK.
31939
31940 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
31941
31942         * target.def (handle_option): Take gcc_options and
31943         cl_decoded_option pointers and location_t.
31944         * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
31945         * doc/tm.texi: Regenerate.
31946         * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
31947         * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
31948         * lto-opts.c (lto_reissue_options): Generate option structure for
31949         targetm.handle_option call.
31950         * opts.c (target_handle_option): Update call to
31951         targetm.handle_option.  Remove assertions about values now passed
31952         down to hook.
31953         * targhooks.c (default_target_handle_option): New.
31954         * targhooks.h (default_target_handle_option): Declare.
31955         * config/alpha/alpha.c: Include opts.h.
31956         (alpha_handle_option): Update to new hook interface.
31957         * config/arm/arm.c: Include opts.h.
31958         (arm_handle_option): Update to new hook interface.
31959         * config/arm/t-arm (arm.o): Update dependencies.
31960         * config/bfin/bfin.c: Include opts.h.
31961         (bfin_handle_option): Update to new hook interface.
31962         * config/cris/cris.c: Include opts.h.
31963         (cris_handle_option): Update to new hook interface.
31964         * config/frv/frv.c: Include opts.h.
31965         (frv_handle_option): Update to new hook interface.
31966         * config/i386/i386.c: Include opts.h.
31967         (ix86_handle_option): Update to new hook interface.
31968         (ix86_valid_target_attribute_inner_p): Generate option structure
31969         for call to ix86_handle_option.
31970         * config/i386/t-i386 (i386.o): Update dependencies.
31971         * config/ia64/ia64.c: Include opts.h.
31972         (ia64_handle_option): Update to new hook interface.
31973         * config/ia64/t-ia64 (ia64.o): Update dependencies.
31974         * config/iq2000/iq2000.c: Include opts.h.
31975         (iq2000_handle_option): Update to new hook interface.
31976         * config/m32c/m32c.c: Include opts.h.
31977         (m32c_handle_option): Update to new hook interface.
31978         * config/m32r/m32r.c: Include opts.h.
31979         (m32r_handle_option): Update to new hook interface.
31980         * config/m68k/m68k.c: Include opts.h.
31981         (m68k_handle_option): Update to new hook interface.
31982         * config/mep/mep.c: Include opts.h.
31983         (mep_handle_option): Update to new hook interface.
31984         * config/microblaze/microblaze.c: Include opts.h.
31985         (microblaze_handle_option): Update to new hook interface.
31986         * config/mips/mips.c: Include opts.h.
31987         (mips_handle_option): Update to new hook interface.
31988         * config/mn10300/mn10300.c: Include opts.h.
31989         (mn10300_handle_option): Update to new hook interface.
31990         * config/pa/pa.c: Include opts.h.
31991         (pa_handle_option): Update to new hook interface.
31992         * config/pdp11/pdp11.c: Include opts.h.
31993         (pdp11_handle_option): Update to new hook interface.
31994         * config/rs6000/rs6000.c: Include opts.h.
31995         (rs6000_handle_option): Update to new hook interface.
31996         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
31997         * config/rx/rx.c: Include opts.h.
31998         (rx_handle_option): Update to new hook interface.
31999         * config/s390/s390.c: Include opts.h.
32000         (s390_handle_option): Update to new hook interface.
32001         * config/score/score.c: Include opts.h.
32002         (score_handle_option): Update to new hook interface.
32003         * config/sh/sh.c: Include opts.h.
32004         (sh_handle_option): Update to new hook interface.
32005         * config/sparc/sparc.c: Include opts.h.
32006         (sparc_handle_option): Update to new hook interface.
32007         * config/v850/v850.c: Include opts.h.
32008         (v850_handle_option): Update to new hook interface.
32009
32010 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
32011
32012         * gcc.c (driver_unknown_option_callback): Only permit and save
32013         unknown -Wno- options.
32014         (driver_wrong_lang_callback): Save options directly instead of via
32015         driver_unknown_option_callback.
32016
32017 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
32018
32019         * combine.c (simplify_set): Try harder to find the best CC mode when
32020         simplifying a nested COMPARE on the RHS.
32021
32022 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
32023
32024         * config/alpha/gnu.h: Remove.
32025         * config/arc: Remove directory.
32026         * config/arm/netbsd.h: Remove.
32027         * config/arm/t-pe: Remove.
32028         * config/crx: Remove directory.
32029         * config/i386/netbsd.h: Remove.
32030         * config/m68hc11: Remove directory.
32031         * config/m68k/uclinux-oldabi.h: Remove.
32032         * config/mcore/mcore-pe.h: Remove.
32033         * config/mcore/t-mcore-pe: Remove.
32034         * config/netbsd-aout.h: Remove.
32035         * config/rs6000/gnu.h: Remove.
32036         * config/sh/sh-symbian.h: Remove.
32037         * config/sh/symbian-base.c: Remove.
32038         * config/sh/symbian-c.c: Remove.
32039         * config/sh/symbian-cxx.c: Remove.
32040         * config/sh/symbian-post.h: Remove.
32041         * config/sh/symbian-pre.h: Remove.
32042         * config/sh/t-symbian: Remove.
32043         * config/svr3.h: Remove.
32044         * config/vax/netbsd.h: Remove.
32045         * config.build: Don't handle i[34567]86-*-pe.
32046         * config.gcc: Remove handling of deprecations for most deprecated
32047         targets.
32048         (m68k-*-uclinuxoldabi*): Add to second deprecated list.
32049         (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
32050         i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
32051         m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
32052         powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
32053         sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
32054         Remove cases.
32055         * config.host: Don't handle i[34567]86-*-pe.
32056         * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
32057         (ASM_SPEC32): Don't handle -mcall-gnu.
32058         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
32059         -mcall-gnu.
32060         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
32061         STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
32062         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
32063         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
32064         (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
32065         * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
32066         conditional on SYMBIAN.
32067         * configure.ac: Don't handle powerpc*-*-gnu*.
32068         * configure: Regenerate.
32069         * doc/extend.texi (interrupt attribute): Don't mention CRX.
32070         * doc/install-old.texi (m6811, m6812): Don't mention.
32071         * doc/install.texi (arc-*-elf*): Don't document multilib option.
32072         (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
32073         (m68k-uclinuxoldabi): Don't mention.
32074         * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
32075         Remove.
32076         (-mcall-gnu): Remove.
32077         * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
32078         families): Remove constraint documentation.
32079
32080 2011-03-22  Marius Strobl  <marius@FreeBSD.org>
32081
32082         * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
32083         (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
32084         (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
32085
32086 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
32087
32088         PR target/48226
32089         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
32090         vector when peeking at the next token for vector, don't expand the
32091         keywords.
32092
32093 2011-03-21  Georg-Johann Lay  <avr@gjlay.de>
32094
32095         * config/avr/avr-protos.h (expand_epilogue): Change prototype
32096         * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
32097         * config/avr/avr.c (init_cumulative_args)
32098         (avr_function_arg_advance): Use it.
32099         * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
32100         sibcall epilogues.
32101         (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
32102         (avr_function_ok_for_sibcall): ...this new function.
32103         (avr_lookup_function_attribute1): New static Function.
32104         (avr_naked_function_p, interrupt_function_p)
32105         (signal_function_p, avr_OS_task_function_p)
32106         (avr_OS_main_function_p): Use it.
32107         * config/avr/avr.md ("sibcall", "sibcall_value")
32108         ("sibcall_epilogue"): New expander.
32109         ("*call_insn", "*call_value_insn"): New insn.
32110         ("call_insn", "call_value_insn"): Remove
32111         ("call", "call_value", "epilogue"): Change expander to handle
32112         sibling calls.
32113
32114 2011-03-21  Nick Clifton  <nickc@redhat.com>
32115
32116         * doc/invoke.texi (Overall Options): Move closing brace to end of
32117         options list.
32118         (Optimization Options): Add missing @gol.
32119         (Directory Options): Likewise.
32120         (i386 and x86-64 Options): Likewise.
32121         (RS6000 and PowerPC Options): Likewise.
32122         (i386 and x86-64 Windows Options): Likewise.
32123         (V850 Options): Add text missing from descriptions.
32124
32125 2011-03-22  Richard Henderson  <rth@redhat.com>
32126
32127         * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
32128         (avr_incoming_return_addr_rtx): New.
32129         (emit_push_byte): New.
32130         (expand_prologue): Use it.  Remove incorrect dwarf annotation for
32131         SREG, RAMPZ, zero register.  Push frame pointer by bytes.  Add dwarf
32132         annotation for __prologue_saves__.  Fixup dwarf annotation for CFA.
32133         (emit_pop_byte): New.
32134         (expand_epilogue): Use it.  Pop frame pointer by bytes.
32135         * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
32136         (INCOMING_RETURN_ADDR_RTX): New.
32137         (INCOMING_FRAME_SP_OFFSET): New.
32138         (ARG_POINTER_CFA_OFFSET): New.
32139         * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
32140         (*pushhi, *pushsi, *pushsf, popqi): Likewise.
32141         (pophi): Remove.
32142
32143         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
32144
32145 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
32146
32147         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
32148         (FUNCTION_ARG_ADVANCE): Likewise.
32149         * tm.texi.in: Change references to them to hook references.
32150         * tm.texi: Regenerate.
32151         * targhooks.c (default_function_arg): Eliminate check for target
32152         macro.
32153         (default_function_incoming_arg): Likewise.
32154         (default_function_arg_advance): Likewise.
32155         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
32156         (function_arg_advance): Likewise.
32157         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
32158
32159 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
32160
32161         * tree.c (build_call_1): New function.
32162         (build_call_valist, build_call_array_loc, build_call_vec): Call it.
32163
32164 2011-03-22  Richard Guenther  <rguenther@suse.de>
32165
32166         PR tree-optimization/48228
32167         * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
32168         for single-arg PHIs.
32169
32170 2011-03-22  Andrey Belevantsev  <abel@ispras.ru>
32171
32172         PR rtl-optimization/48143
32173         * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
32174         (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
32175         sse2_cvtps2pd): Likewise.
32176
32177 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
32178
32179         * recog.c (canonicalize_change_group): Use validate_unshare_change.
32180
32181 2011-03-22  Richard Guenther  <rguenther@suse.de>
32182
32183         * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
32184         a valid RHS.  Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
32185         * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
32186         and REALIGN_LOAD_EXPR.
32187         (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
32188         DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
32189         * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
32190         DOT_PROD_EXPR case ...
32191         (expand_expr_real_2): ... here.
32192         * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
32193         and REALIGN_LOAD_EXPR.
32194         * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
32195         * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
32196         (vect_create_epilog_for_reduction): Likewise.
32197         (vectorizable_reduction): Likewise.
32198         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
32199         * tree-vect-stmts.c (vectorizable_load): Likewise.
32200
32201 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
32202
32203         * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
32204
32205 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
32206
32207         * config/s390/s390.c (s390_delegitimize_address): Fix offset
32208         handling for PLTOFF/GOTOFF.
32209
32210 2011-03-22  Nick Clifton  <nickc@redhat.com>
32211
32212         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
32213         trailing backslash from the end of the macro definition.
32214
32215 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
32216
32217         * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
32218         and PLT unspecs.
32219
32220 2011-03-21  Richard Sandiford  <richard.sandiford@linaro.org>
32221
32222         * expr.h (prepare_operand): Move to...
32223         * optabs.h (prepare_operand): ...here and change the insn code
32224         parameter from "int" to "enum insn_code".
32225         (insn_operand_matches): Declare.
32226         * expr.c (init_expr_target): Use insn_operand_matches.
32227         (compress_float_constant): Likewise.
32228         * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
32229         * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
32230         (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
32231         (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
32232         Likewise.
32233         (gen_cond_trap): Likewise.
32234         (prepare_operand): Likewise.  Change icode to an insn_code.
32235         (insn_operand_matches): New function.
32236         * reload.c (find_reloads_address_1): Use insn_operand_matches.
32237         * reload1.c (gen_reload): Likewise.
32238         * targhooks.c (default_secondary_reload): Likewise.
32239
32240 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
32241
32242         * config/alpha/alpha.md (unspec): New define_c_enum.
32243         (unspecv): Ditto.
32244
32245 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
32246
32247         PR debug/48214
32248         * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
32249         between a call and its CALL_ARG_LOCATION note.
32250
32251 2011-03-21  Eric Botcazou  <ebotcazou@adacore.com>
32252
32253         * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
32254
32255 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
32256
32257         PR c/42544
32258         PR c/48197
32259         * c-common.c (shorten_compare): If primopN is first sign-extended
32260         to opN and then zero-extended to result type, set primopN to opN.
32261
32262 2011-03-21  Daniel Jacobowitz  <dan@codesourcery.com>
32263
32264         * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
32265         for barrier handlers.
32266
32267 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
32268
32269         * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
32270         UNSPEC constants to be in the unspec enumeration, and redefine
32271         all UNSPECV constants to be in the unspecv enumeration, so that
32272         dumps print which unspec/unspec_volatile this is.
32273         * config/rs6000/vector.md (UNSPEC_*): Ditto.
32274         * config/rs6000/paired.md (UNSPEC_*): Ditto.
32275         * config/rs6000/vsx.md (UNSPEC_*): Ditto.
32276         * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
32277         * config/rs6000/dfp.md (UNSPEC_*): Ditto.
32278
32279         * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
32280         UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
32281         UNSPECV_LWSYNC, since these are used as unspec_volatile.
32282         * config/rs6000/sync.md (isync, lwsync): Ditto.
32283
32284 2011-03-21  Richard Guenther  <rguenther@suse.de>
32285
32286         * params.def (lto-min-partition): Fix typo.
32287
32288 2011-03-21  Richard Guenther  <rguenther@suse.de>
32289
32290         PR c/47939
32291         * c-decl.c (grokdeclarator): Drop to the main variant only
32292         for array types.  Drop flag_gen_aux_info check.
32293
32294 2011-03-21  Richard Guenther  <rguenther@suse.de>
32295
32296         PR translation/47911
32297         * params.def (lto-partitions): Fix typo.
32298         (lto-min-partition): Fix wording.
32299
32300 2011-03-21  Andreas Tobler  <andreast@fgznet.ch>
32301
32302         * config/rs6000/t-freebsd: Remove duplication from file.
32303
32304 2011-03-21  Richard Guenther  <rguenther@suse.de>
32305
32306         PR middle-end/47661
32307         * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
32308
32309 2011-03-21  Richard Guenther  <rguenther@suse.de>
32310
32311         PR lto/48210
32312         * params.def (lto-partitions): Require at least 1 partition.
32313
32314 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
32315
32316         * gthr-solaris.h: Remove.
32317         * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
32318         * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
32319         (LIB_SPEC): Likewise.
32320         * config/sol2.opt (threads): Remove.
32321         * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
32322         (sparc*-*-solaris2*): Likewise.
32323         * configure.ac (enable_threads): Enable solaris support.
32324         * configure: Regenerate.
32325         * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
32326         * doc/install.texi (Configuration, --enable-threads=lib): Remove
32327         solaris.
32328
32329 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
32330
32331         * config.gcc: Obsolete *-*-solaris2.8*.
32332         * doc/install.texi (Specific, *-*-solaris2*): Document it.
32333
32334 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
32335
32336         PR bootstrap/48135
32337         * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
32338         reference.  Solaris 8 perl works.
32339
32340 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
32341
32342         PR bootstrap/48135
32343         * doc/install.texi (Prerequisites): Move jar etc. up.
32344         Explain support library version requirements.
32345
32346 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
32347
32348         PR bootstrap/48135
32349         * doc/install.texi (Prerequisites): Move Perl to build
32350         requirements.  Always necessary on Solaris 2 with Sun ld.
32351
32352 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
32353
32354         * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
32355         binutils 2.21.
32356         (Specific, i?86-*-solaris2.[89]): Likewise.
32357         (Specific, i?86-*-solaris2.10): Likewise.
32358         (Specific, mips-sgi-irix6): Likewise.
32359         (Specific, *-*-solaris2*): Remove Sun Studio download URL.
32360         Update for binutils 2.21.
32361
32362 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
32363
32364         * configure.ac (gcc_cv_lto_plugin): Fix typo.
32365         Allow -fuse-linker-plugin for non-default plugin linker.
32366         * configure: Regenerate.
32367
32368 2011-03-21  Nicola Pero  <nicola.pero@meta-innovation.com>
32369
32370         PR bootstrap/48167
32371         * gengtype.c (files_rules): Added rule for cp/parser.h.
32372
32373 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
32374
32375         PR target/48213
32376         * config/s390/s390.c (s390_delegitimize_address): Don't call
32377         lowpart_subreg if orig_x has BLKmode.
32378
32379 2011-03-21  Kai Tietz  <ktietz@redhat.com>
32380
32381         PR target/12171
32382         * doc/plugins.texi: Adjust documentation for plugin register_callback.
32383         * tree.h (attribute_spec): Add new member affects_type_identity.
32384         * attribs.c (empty_attribute_table): Adjust attribute_spec
32385         initializers.
32386         * config/alpha/alpha.c: Likewise.
32387         * config/arc/arc.c: Likewise.
32388         * config/arm/arm.c: Likewise.
32389         * config/avr/avr.c: Likewise.
32390         * config/bfin/bfin.c: Likewise.
32391         * config/crx/crx.c: Likewise.
32392         * config/darwin.h: Likewise.
32393         * config/h8300/h8300.c: Likewise.
32394         * config/i386/cygming.h: Likewise.
32395         * config/i386/i386.c: Likewise.
32396         * config/ia64/ia64.c: Likewise.
32397         * config/m32c/m32c.c: Likewise.
32398         * config/m32r/m32r.c: Likewise.
32399         * config/m68hc11/m68hc11.c: Likewise.
32400         * config/m68k/m68k.c: Likewise.
32401         * config/mcore/mcore.c: Likewise.
32402         * config/mep/mep.c: Likewise.
32403         * config/microblaze/microblaze.c: Likewise.
32404         * config/mips/mips.c: Likewise.
32405         * config/rs6000/rs6000.c: Likewise.
32406         * config/rx/rx.c: Likewise.
32407         * config/sh/sh.c: Likewise.
32408         * config/sol2.h: Likewise.
32409         * config/sparc/sparc.c: Likewise.
32410         * config/spu/spu.c: Likewise.
32411         * config/stormy16/stormy16.c: Likewise.
32412         * config/v850/v850.c: Likewise.
32413
32414 2011-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
32415
32416         * simplify-rtx.c (simplify_binary_operation_1): Handle
32417         (xor (and A B) C) case when B and C are both constants.
32418
32419 2011-03-21  Mingjie Xing  <mingjie.xing@gmail.com>
32420
32421         * tree-dfa.c (add_referenced_var): Fix typo in comment.
32422
32423 2011-03-20  Eric Botcazou  <ebotcazou@adacore.com>
32424
32425         PR bootstrap/48168
32426         * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
32427
32428 2011-03-20  Jakub Jelinek  <jakub@redhat.com>
32429
32430         PR rtl-optimization/48156
32431         * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
32432         assume df and df_lr are not NULL.
32433
32434 2011-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
32435
32436         PR debug/48023
32437         * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
32438         between a call and its CALL_ARG_LOCATION note.
32439
32440 2011-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
32441
32442         PR debug/48178
32443         * config/sh/sh.c (find_barrier): Don't emit a constant pool
32444         between a call and its corresponding CALL_ARG_LOCATION note.
32445
32446 2011-03-19  Anatoly Sokolov  <aesok@post.ru>
32447
32448         * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
32449         instead of loop. Use HARD_REGISTER_NUM_P predicate.
32450         * haifa-sched.c (setup_ref_regs): Ditto.
32451         * caller-save.c (add_used_regs_1): Ditto.
32452         * dse.c (look_for_hardregs): Ditto.
32453         * df-problems.c (df_simulate_one_insn_forwards): Ditto.
32454         * sched-rgn.c (check_live_1): Ditto.
32455
32456 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
32457
32458         * c-decl.c (diagnose_mismatched_decls): Give an error for
32459         redefining a typedef with variably modified type.
32460
32461 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
32462
32463         * c-decl.c (grokfield): Don't allow typedefs for structures or
32464         unions with no tag by default.
32465         * doc/extend.texi (Unnamed Fields): Update.
32466
32467 2011-03-18  Uros Bizjak  <ubizjak@gmail.com>
32468
32469         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
32470         Rewrite using indirect functions.
32471         (lwp_slwpcb): Ditto.
32472         * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
32473         (avx_vinsertf128<mode>): Ditto.
32474
32475 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
32476
32477         * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
32478         unspecs.
32479
32480 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
32481
32482         * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
32483         splitting between a call and its corresponding CALL_ARG_LOCATION note.
32484
32485 2011-03-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
32486
32487         PR rtl-optimization/48170
32488         * gcse.c (hoist_code): Remove bogus asserts.
32489
32490 2011-03-18  Georg-Johann Lay  <avr@gjlay.de>
32491
32492         * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
32493         computation for prologue/epilogue.
32494
32495 2011-03-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
32496
32497         * Makefile.in (check-consistency): Remove.
32498
32499 2011-03-18  Jakub Jelinek  <jakub@redhat.com>
32500
32501         PR debug/48176
32502         * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
32503         arange_table_in_use is 0, but either text_section_used or
32504         cold_text_section_used is true.  Don't call it if
32505         !info_section_emitted.
32506
32507 2011-03-18  Anatoly Sokolov  <aesok@post.ru>
32508
32509         * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
32510         FUNCTION_VALUE_REGNO_P): Remove.
32511         * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
32512         Remove.
32513         * config/avr/avr.c (avr_ret_register): Make static inline.
32514         (avr_function_value_regno_p): New function.
32515         (avr_libcall_value): Make static. Add 'func' argument.
32516         (avr_function_value): Make static. Rename 'func' argument to
32517         'fn_decl_or_type', forward it to avr_libcall_value. Call
32518         avr_ret_register function instead of RET_REGISTER macro.
32519         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
32520
32521 2011-03-18  Jason Merrill  <jason@redhat.com>
32522
32523         PR c++/23372
32524         * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
32525
32526 2011-03-18  Richard Guenther  <rguenther@suse.de>
32527
32528         * doc/install.texi (--enable-gold): Remove.
32529         (--with-plugin-ld): Document.
32530         * doc/invoke.texi (-fuse-linker-plugin): Clarify.
32531
32532 2011-03-18  Andrew Pinski  <pinskia@gmail.com>
32533
32534         PR middle-end/47790
32535         * expr.c (optimize_bitfield_assignment_op): Revamp to work
32536         again after expansion changes.
32537
32538 2011-03-18  Chung-Lin Tang  <cltang@codesourcery.com>
32539
32540         * combine.c (try_combine): Do simplification only call of
32541         subst() on i2 even when i1 is present. Update comments.
32542
32543 2011-03-18  Kaz Kojima  <kkojima@gcc.gnu.org>
32544
32545         * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
32546         and UNSPEC_PCREL_SYMOFF.
32547
32548 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
32549
32550         * config/s390/s390.md: Use define_c_enum for the unspec constant
32551         definitions.
32552
32553 2011-03-18  Richard Henderson  <rth@redhat.com>
32554             Jakub Jelinek  <jakub@redhat.com>
32555
32556         PR bootstrap/48161
32557         * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
32558         instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
32559
32560 2011-03-17  Anatoly Sokolov  <aesok@post.ru>
32561
32562         * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
32563         * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
32564         * config/v850/v850.c (v850_output_addr_const_extra): Make static.
32565         Change return type to bool.
32566         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
32567
32568 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
32569
32570         PR debug/48163
32571         * var-tracking.c (prepare_call_arguments): If CALL target
32572         is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
32573         pc instead of looking it up using cselib_lookup and use
32574         Pmode for it if x has VOIDmode.
32575         * dwarf2out.c (gen_subprogram_die): If also both first and
32576         second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
32577
32578         PR debug/48163
32579         * function.c (assign_parms): For data.passed_pointer parms
32580         use MEM of data.entry_parm instead of data.entry_parm itself
32581         as DECL_INCOMING_RTL.
32582         * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
32583         also when passed and declared mode is the same, DECL_RTL
32584         is a MEM with pseudo as address and DECL_INCOMING_RTL is
32585         a MEM too.
32586
32587 2011-03-16  Jeff Law  <law@redhat.com>
32588
32589         PR rtl-optimization/37273
32590         * ira-costs.c (scan_one_insn): Detect constants living in memory and
32591         handle them like argument loads from stack slots.  Do not double
32592         count memory for memory constants and argument loads from stack slots.
32593
32594 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
32595
32596         PR debug/48160
32597         * var-tracking.c (prepare_call_arguments): Check SUBREG.
32598
32599 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
32600
32601         PR target/48171
32602         * config/i386/i386.opt: Add Save to -mavx and -mfma.
32603
32604 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
32605
32606         PR bootstrap/48153
32607         * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
32608         if dwarf_strict.
32609         (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
32610         Clear call_arg_locations and call_arg_loc_last always.
32611
32612         PR middle-end/48152
32613         * var-tracking.c (prepare_call_arguments): If argument needs to be
32614         passed by reference, adjust argtype and mode.
32615
32616 2011-03-17  Richard Guenther  <rguenther@suse.de>
32617
32618         PR middle-end/48134
32619         * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
32620         a value make sure to fold the statement.
32621
32622 2011-03-17  Chung-Lin Tang  <cltang@codesourcery.com>
32623
32624         PR target/43872
32625         * config/arm/arm.c (arm_get_frame_offsets): Adjust early
32626         return condition with !cfun->calls_alloca.
32627
32628 2011-03-17  Richard Guenther  <rguenther@suse.de>
32629
32630         PR bootstrap/48148
32631         * lto-cgraph.c (input_overwrite_node): Clear the abstract
32632         origin for decls in other ltrans units.
32633         (input_varpool_node): Likewise.
32634
32635 2011-03-17  Richard Guenther  <rguenther@suse.de>
32636
32637         PR middle-end/48165
32638         * tree-object-size.c (compute_object_offset): Properly return
32639         the offset operand of MEM_REFs as sizetype.
32640
32641 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
32642
32643         PR rtl-optimization/48141
32644         * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
32645         * dse.c: Include params.h.
32646         (active_local_stores_len): New variable.
32647         (add_wild_read, dse_step1): Clear it when setting active_local_stores
32648         to NULL.
32649         (record_store, check_mem_read_rtx): Decrease it when removing
32650         from the chain.
32651         (scan_insn): Likewise.  Increase it when adding to chain, if it
32652         reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
32653         set active_local_stores to NULL before the addition.
32654         * Makefile.in (dse.o): Depend on $(PARAMS_H).
32655
32656         PR rtl-optimization/48141
32657         * dse.c (record_store): If no positions are needed in an insn
32658         that cannot be deleted, at least unchain it from active_local_stores.
32659
32660 2011-03-16  Dodji Seketeli  <dodji@redhat.com>
32661
32662         PR debug/47510
32663         * dwarf2out.c (strip_naming_typedef): Factorize out of ...
32664         (lookup_type_die_strip_naming_typedef): ... here.
32665         (get_context_die): Use it.
32666         (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
32667         the anonymous struct named by the naming typedef.
32668
32669 2011-03-16  H.J. Lu  <hongjiu.lu@intel.com>
32670
32671         PR target/48154
32672         * config/i386/i386.c (ix86_builtin_vectorized_function): Check
32673         TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
32674
32675 2011-03-16  Jeff Law  <law@redhat.com>
32676
32677         * tree-vrp.c (identify_jump_threads): Slightly simplify type
32678         check for operands of conditional.  Allow type to be a pointer.
32679
32680 2011-03-16  Richard Guenther  <rguenther@suse.de>
32681
32682         PR tree-optimization/48149
32683         * fold-const.c (fold_binary_loc): Fold
32684         COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
32685
32686 2011-03-16  Richard Guenther  <rguenther@suse.de>
32687
32688         PR tree-optimization/26134
32689         * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
32690         complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
32691         (non_rewritable_mem_ref_base): Handle complex type component
32692         accesses, constrain offsets for vector and complex extracts
32693         more properly.
32694
32695 2011-03-16  Richard Guenther  <rguenther@suse.de>
32696
32697         PR tree-optimization/48146
32698         * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
32699         operands avoiding the need for renaming.
32700
32701 2011-03-16  Richard Guenther  <rguenther@suse.de>
32702
32703         * gimple-fold.c (maybe_fold_reference): Open-code relevant
32704         constant folding.  Move MEM_REF canonicalization first.
32705         Rely on fold_const_aggregate_ref for initializer folding.
32706         * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
32707
32708 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
32709
32710         PR middle-end/48136
32711         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
32712         arg0/arg1 or their arguments are always fold converted to matching
32713         types.
32714
32715         * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
32716         to nargs.
32717
32718 2011-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
32719
32720         PR lto/46944
32721         * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
32722         Handle in-tree gold.
32723         (ld_vers): Extract binutils version for gold.
32724         (gcc_cv_ld_hidden): Handle gold here.
32725         (gcc_cv_lto_plugin): Determine level of linker plugin support.
32726         * configure: Regenerate.
32727         * config.in: Regenerate.
32728         * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
32729         -fuse-linker-plugin otherwise.
32730         (LINK_PLUGIN_SPEC): Define.  Extract from LINK_COMMAND_SPEC.
32731         (LINK_COMMAND_SPEC): Use it.
32732         (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
32733
32734 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
32735
32736         * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
32737         * calls.c: Remove debug.h include.
32738         (emit_call_1): Don't call virtual_call_token debug hook.
32739         * dwarf2out.c (debug_dcall_section, debug_vcall_section,
32740         dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
32741         vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
32742         size_of_dcall_table, output_dcall_table, size_of_vcall_table,
32743         output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
32744         vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
32745         dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
32746         dwarf2out_virtual_call): Remove.
32747         (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
32748         copy_call_info and virtual_call hooks.
32749         (dwarf2out_init): Don't initialize vcall_insn_table,
32750         debug_dcall_section and debug_vcall_section.
32751         (prune_unused_types): Don't mark nodes from dcall_table.
32752         (dwarf2out_finish): Don't output dcall or vcall tables.
32753         * final.c (final_scan_insn): Don't call direct_call or
32754         virtual_call debug hooks.
32755         * debug.h (struct gcc_debug_hooks): Remove direct_call,
32756         virtual_call_token, copy_call_info and virtual_call hooks.
32757         (debug_nothing_uid): Remove prototype.
32758         * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
32759         copy_call_info and virtual_call hooks.
32760         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
32761         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
32762         * debug.c (do_nothing_debug_hooks): Likewise.
32763         (debug_nothing_uid): Remove.
32764         * doc/invoke.texi (-fenable-icf-debug): Remove.
32765         * common.opt (-fenable-icf-debug): Likewise.
32766
32767         * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
32768         * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
32769         call's MEM.  Handle functions returning aggregate through a hidden
32770         first pointer.  For virtual calls add clobbered pc to call arguments
32771         chain.
32772         * dwarf2out.c (gen_subprogram_die): Emit
32773         DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
32774         can't be emitted.
32775
32776         PR debug/45882
32777         * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
32778         * rtl.h (ENTRY_VALUE_EXP): Define.
32779         * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
32780         * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
32781         * print-rtl.c (print_rtx): Likewise.
32782         * gengtype.c (adjust_field_rtx_def): Likewise.
32783         * var-tracking.c (vt_add_function_parameter): Adjust
32784         gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
32785         * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
32786         * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
32787         partition is a default definition of a PARM_DECL, use ENTRY_VALUE
32788         of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
32789
32790         * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
32791         Call var_location debug hook even on CALL_INSNs.
32792         (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
32793         * rtl.def (ENTRY_VALUE): New.
32794         * dwarf2out.c: Include cfglayout.h.
32795         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
32796         output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
32797         (struct call_arg_loc_node): New type.
32798         (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
32799         tail_call_site_count): New variables.
32800         (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
32801         DW_TAG_GNU_call_site_parameter.
32802         (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
32803         DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
32804         DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
32805         DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
32806         and DW_AT_GNU_all_source_call_sites.
32807         (mem_loc_descriptor): Handle ENTRY_VALUE.
32808         (add_src_coords_attributes): Don't add enything if
32809         DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
32810         (dwarf2out_abstract_function): Save and clear call_arg_location,
32811         call_site_count and tail_call_site_count around dwarf2out_decl call.
32812         (gen_call_site_die): New function.
32813         (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
32814         (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
32815         (dwarf2out_function_decl): Clear call_arg_locations,
32816         call_arg_loc_last, set call_site_count and tail_call_site_count
32817         to -1 and free block_map.
32818         (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
32819         CALL_INSNs.  Add NOTE_DURING_CALL_P var location notes even when not
32820         followed by any real instructions.
32821         (dwarf2out_begin_function): Set call_site_count and
32822         tail_call_site_count to 0.
32823         (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
32824         is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
32825         attempt to force a DIE for it and worst case remove the attribute.
32826         (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
32827         check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
32828         the decl itself.
32829         * var-tracking.c: Include tm_p.h.
32830         (vt_stack_adjustments): For calls call note_register_arguments.
32831         (argument_reg_set): New variable.
32832         (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
32833         ensure the VALUE is resolved.
32834         (call_arguments): New variable.
32835         (prepare_call_arguments): New function.
32836         (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
32837         (struct expand_loc_callback_data): Add ignore_cur_loc field.
32838         (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
32839         always use the best expression.
32840         (vt_expand_loc): Add ignore_cur_loc argument.
32841         (vt_expand_loc_dummy): Clear ignore_cur_loc field.
32842         (emit_note_insn_var_location): Adjust vt_expand_loc callers.
32843         (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
32844         note for all calls.
32845         (vt_add_function_parameter): Use cselib_lookup_from_insn.
32846         If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
32847         argument.  Don't call cselib_preserve_only_values and
32848         cselib_reset_table.
32849         (note_register_arguments): New function.
32850         (vt_initialize): Compute argument_reg_set.  Call
32851         vt_add_function_parameters before processing basic blocks instead of
32852         afterwards.  For calls call prepare_call_arguments before calling
32853         cselib_process_insn.
32854         * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
32855         * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
32856         (var-tracking.o): Depend on $(TM_P_H).
32857         * cfglayout.h (insn_scope): New prototype.
32858         * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
32859         * cfglayout.c (insn_scope): No longer static.
32860         * insn-notes.def (CALL_ARG_LOCATION): New.
32861         * calls.c (expand_call, emit_library_call_value_1): Put USEs for
32862         MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
32863         * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
32864         nothing for DECL_EXTERNAL BLOCK_VARS.
32865
32866 2011-03-16  Alan Modra  <amodra@gmail.com>
32867
32868         PR target/45844
32869         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
32870         create invalid offset address for vsx splat insn.
32871         * config/rs6000/predicates.md (splat_input_operand): New.
32872         * config/rs6000/vsx.md (vsx_splat_*): Use it.
32873
32874 2011-03-15  Xinliang David Li  <davidxl@google.com>
32875
32876         PR c/47837
32877         * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
32878         (normalize_preds): New function.
32879         (is_use_properly_guarded): Normalize def predicates.
32880
32881 2011-03-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
32882
32883         PR target/46788
32884         * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
32885         in the output template.
32886
32887 2011-03-15  Richard Guenther  <rguenther@suse.de>
32888
32889         PR middle-end/47650
32890         * tree-pretty-print.c (dump_function_declaration): Properly
32891         dump unprototyped and varargs function types.
32892
32893 2011-03-15  Richard Guenther  <rguenther@suse.de>
32894
32895         PR tree-optimization/13954
32896         * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
32897         and friends.
32898
32899 2011-03-15  Richard Guenther  <rguenther@suse.de>
32900
32901         PR tree-optimization/48037
32902         * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
32903         selects into BIT_FIELD_REFs.
32904         (non_rewritable_mem_ref_base): Check if a MEM_REF is a
32905         vector select.
32906
32907 2011-03-15  Jakub Jelinek  <jakub@redhat.com>
32908
32909         PR tree-optimization/48129
32910         * builtins.c (fold_builtin_snprintf): Convert to type of
32911         built_in_decls[BUILT_IN_SNPRINTF] retval instead of
32912         implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
32913
32914 2011-03-15  Richard Guenther  <rguenther@suse.de>
32915
32916         PR tree-optimization/41490
32917         * tree-ssa-dce.c (propagate_necessity): Handle returns without
32918         value but with VUSE.
32919         * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
32920         return statements.
32921         * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
32922         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
32923         * tree-tailcall.c (find_tail_calls): Ignore returns.
32924
32925 2011-03-15  Richard Guenther  <rguenther@suse.de>
32926
32927         PR middle-end/48031
32928         * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
32929         or variable-indexed array accesses when in gimple form.
32930
32931 2011-03-15  Richard Guenther  <rguenther@suse.de>
32932
32933         * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
32934
32935 2011-03-15  Alan Modra  <amodra@gmail.com>
32936
32937         PR target/48032
32938         * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
32939         presume symbol_refs without a symbol_ref_decl are suitably
32940         aligned, nor other trees we may see here.  Handle anchor symbols.
32941         (legitimate_constant_pool_address_p): Comment.  Add mode param.
32942         Check cmodel=medium addresses.  Adjust all calls.
32943         (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
32944         creating cmodel=medium optimized access to locals.
32945         * config/rs6000/constraints.md (R): Pass QImode to
32946         legitimate_constant_pool_address_p.
32947         * config/rs6000/predicates.md (input_operand): Pass mode to
32948         legitimate_constant_pool_address_p.
32949         * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
32950         Update prototype.
32951
32952 2011-03-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
32953
32954         PR target/48053
32955         * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
32956         64-bit constants being loaded into registers other than GPRs such
32957         as loading 0 into a VSX register.
32958
32959 2011-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
32960
32961         * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
32962
32963 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
32964
32965         PR middle-end/47917
32966         * builtins.c (fold_builtin_snprintf): New function.
32967         (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
32968         (fold_builtin_4): Likewise.
32969
32970         PR middle-end/38878
32971         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
32972         STRIP_NOPS on arg0 and arg1.  When optimizing X +- C == X
32973         and C - X == X also strip nops from +/-/p+ operand.
32974         When optimizing -X == C, fold C to arg0's type.
32975
32976         PR debug/47946
32977         * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
32978         emit it as add_AT_int instead of add_AT_unsigned.
32979
32980 2011-03-14  Tom Tromey  <tromey@redhat.com>
32981
32982         * unwind-dw2.c: Include sys/sdt.h if it exists.
32983         (_Unwind_DebugHook): Use STAP_PROBE2.
32984         * config.in, configure: Rebuild.
32985         * configure.ac: Check for sys/sdt.h.
32986
32987 2011-03-14  Uros Bizjak  <ubizjak@gmail.com>
32988
32989         * config/i386/i386.md (ROUND_FLOOR): New constant.
32990         (ROUND_CEIL): Ditto.
32991         (ROUND_TRUNC): Ditto.
32992         (ROUND_MXCSR): Ditto.
32993         (ROUND_NO_EXC): Ditto.
32994         (rint<mode>2): Use new defines instead of numerical constants.
32995         (floor<mode>2): Ditto.
32996         (ceil<mode>2): Ditto.
32997         (btrunc<mode>2): Ditto.
32998         * config/i386/i386-builtin-types.def: Define ROUND function type
32999         aliases.
33000         * config/i386/i386.c (enum ix86_builtins): Add
33001         IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
33002         (struct builtin_description): Add
33003         __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
33004         (ix86_expand_sse_round): New static function.
33005         (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
33006         function types.
33007         (ix86_builtin_vectorized_function): Handle
33008         BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
33009
33010 2011-03-14  Tom Tromey  <tromey@redhat.com>
33011
33012         * c-parser.c (c_parser_asm_string_literal): Clear
33013         warn_overlength_strings.
33014
33015 2011-03-14  Tom Tromey  <tromey@redhat.com>
33016
33017         * c-parser.c (disable_extension_diagnostics): Save
33018         warn_overlength_strings.
33019         (restore_extension_diagnostics): Restore warn_overlength_strings.
33020
33021 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
33022
33023         * BASE-VER: Change to 4.7.0.
33024
33025 2011-03-14  Richard Guenther  <rguenther@suse.de>
33026
33027         PR middle-end/48098
33028         * tree.c (build_vector_from_val): Adjust assert to requirements
33029         and reality.
33030
33031 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
33032
33033         PR bootstrap/48102
33034         * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
33035
33036 2011-03-14  Andreas Tobler  <andreast@fgznet.ch>
33037
33038         * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
33039         terms of target_flags_explicit. Adjust copyright year.
33040
33041         * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
33042         * config/rs6000/t-freebsd: New file. Add override for
33043         LIB2FUNCS_EXTRA.
33044
33045 2011-03-13  Chris Demetriou  <cgd@google.com>
33046
33047         * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
33048         (-fno-diagnostics-show-option): this, to reflect current default.
33049         (-Werror=): Update text about -fno-diagnostics-show-option.
33050
33051 2011-03-12  Peter Bergner  <bergner@vnet.ibm.com>
33052
33053         PR target/48053
33054         * config/rs6000/predicates.md (easy_vector_constant_add_self,
33055         easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
33056         * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
33057         mode is not V2DImode or V2DFmode.
33058         (vspltis_constant): Do not handle V2DImode and V2DFmode.
33059         (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
33060         * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
33061         registers to 0.
33062         (movdi_internal64): Likewise.
33063
33064 2011-03-12  Sebastian Pop  <sebastian.pop@amd.com>
33065
33066         PR tree-optimization/47127
33067         * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
33068         parameter.
33069         (set_cloog_options): Same.
33070         (scop_to_clast): Same.
33071         (print_clast_stmt): Do not call cloog_state_malloc and
33072         cloog_state_free.
33073         (print_generated_program): Same.
33074         (gloog): Same.
33075         * graphite-clast-to-gimple.h (cloog_state): Declared.
33076         (scop_to_clast): Adjust declaration.
33077         * graphite.c (cloog_state): Defined here.
33078         (graphite_initialize): Call cloog_state_malloc.
33079         (graphite_finalize): Call cloog_state_free.
33080
33081 2011-03-11  Jason Merrill  <jason@redhat.com>
33082
33083         * attribs.c (lookup_attribute_spec): Take const_tree.
33084         * tree.h: Adjust.
33085
33086 2011-03-11  Joseph Myers  <joseph@codesourcery.com>
33087
33088         * config/sparc/sparc.c (sparc_option_override): Use
33089         PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
33090
33091 2011-03-11  Richard Guenther  <rguenther@suse.de>
33092
33093         PR tree-optimization/48067
33094         * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
33095         multiplication result will be only used once on the target
33096         stmt.
33097
33098 2011-03-11  Richard Guenther  <rguenther@suse.de>
33099
33100         * doc/invoke.texi (max-inline-insns-single): Adjust default value.
33101
33102 2011-03-11  Richard Guenther  <rguenther@suse.de>
33103
33104         PR lto/48073
33105         * tree.c (find_decls_types_r): Do not walk types only reachable
33106         from IDENTIFIER_NODEs.
33107
33108 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
33109
33110         PR middle-end/48044
33111         * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
33112         all vnode->force_output nodes as needed.
33113
33114 2011-03-11  Jason Merrill  <jason@redhat.com>
33115
33116         PR c++/48069
33117         * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
33118         COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
33119
33120 2011-03-11  Martin Jambor  <mjambor@suse.cz>
33121
33122         * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
33123         cgraph_node.
33124
33125 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
33126
33127         PR tree-optimization/48063
33128         * ipa-inline.c (cgraph_decide_inlining): Don't try to
33129         inline functions called once if !tree_can_inline_p (node->callers).
33130
33131 2011-03-11  Chen Liqin  <liqin.gcc@gmail.com>
33132
33133         * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
33134         extra_objs.
33135         * config/score/score3.c: Delete.
33136         * config/score/score3.h: Delete.
33137         * config/score/mul-div.S: Delete.
33138         * config/score/sfp-machine.h: Add new file.
33139         * config/score/constraints.md: Add new file.
33140         * config/score/t-score-softfp: Add new file.
33141         * config/score/t-score-elf: Remove score3.o, do not generate multilib.
33142         * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
33143         (score7_extra_constraint): Delete.
33144         (score7_option_override): Remove unused code.
33145         * config/score/score.c: Remove score3 and score5 define and code.
33146         * config/score/score.h: Remove score3 and score5 define and code.
33147         * config/score/score.md: Remove score3 template and unusual insn.
33148         * config/score/score.opt: Remove score3 and score5 options.
33149
33150 2011-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
33151
33152         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
33153         when _HPUX_SOURCE is defined.
33154         (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
33155
33156 2011-03-10  Jason Merrill  <jason@redhat.com>
33157
33158         PR c++/48029
33159         * stor-layout.c (layout_type): Don't set structural equality
33160         on arrays of incomplete type.
33161         * tree.c (type_hash_eq): Handle comparing them properly.
33162
33163 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
33164
33165         PR debug/48043
33166         * config/s390/s390.c (s390_delegitimize_address): Make sure the
33167         result mode matches original rtl mode.
33168
33169 2011-03-10  Nick Clifton  <nickc@redhat.com>
33170
33171         * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
33172         (andsi3, andsi3_flags): Fix timings for three operand alternative.
33173
33174 2011-03-09  Jakub Jelinek  <jakub@redhat.com>
33175
33176         PR rtl-optimization/47866
33177         * expr.c (store_field): If MEM_SCALAR_P (target), don't use
33178         MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
33179         if target wasn't scalar.
33180         * function.c (assign_stack_temp_for_type): Assert that neither
33181         MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
33182         MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
33183         macro.
33184         * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
33185
33186 2011-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
33187
33188         * config/s390/s390-protos.h (s390_label_align): New prototype.
33189         * config/s390/s390.c (s390_label_align): New function.
33190         * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
33191
33192 2011-03-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
33193
33194         PR target/47755
33195         * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
33196         V2DI/V2DF constants.  Only all 0's or all 1's are easy.
33197         (output_vec_const_move): Ditto.
33198
33199 2011-03-08  Anatoly Sokolov  <aesok@post.ru>
33200
33201         * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
33202         * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
33203         * config/mips/mips.c (mips_preferred_reload_class): Make static.
33204         Change 'rclass' argument and result type to reg_class_t.
33205         (TARGET_PREFERRED_RELOAD_CLASS): Define.
33206
33207 2011-03-08  Georg-Johann Lay  <avr@gjlay.de>
33208
33209         * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
33210         * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
33211         (TARGET_MEMORY_MOVE_COST): Define.
33212         (avr_register_move_cost, avr_memory_move_cost): New Functions.
33213
33214 2011-03-08  Jakub Jelinek  <jakub@redhat.com>
33215
33216         PR debug/47881
33217         * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
33218         removed anything.
33219
33220         PR tree-optimization/48022
33221         * fold-const.c (fold_comparison): Don't call fold_overflow_warning
33222         for EQ/NE_EXPR.
33223
33224 2011-03-07  Jakub Jelinek  <jakub@redhat.com>
33225
33226         PR debug/47991
33227         * var-tracking.c (find_use_val): Return NULL for
33228         cui->sets && cui->store_p BLKmode MEMs.
33229
33230 2011-03-07  Anatoly Sokolov  <aesok@post.ru>
33231
33232         * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
33233         Remove.
33234         * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
33235         xstormy16_print_operand_address): Remove.
33236         * config/stormy16/stormy16.c (xstormy16_print_operand,
33237         xstormy16_print_operand_address): Make static.
33238         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
33239
33240 2011-03-07  Pat Haugen  <pthaugen@us.ibm.com>
33241
33242         PR target/47862
33243         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
33244         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
33245         before definition.
33246
33247 2011-03-07  Zdenek Dvorak  <ook@ucw.cz>
33248
33249         PR bootstrap/48000
33250         * cfgloopmanip.c (fix_bb_placements): Return immediately
33251         if FROM is BASE_LOOP's header.
33252
33253 2011-03-07  Paul Wögerer  <paul_woegerer@mentor.com>
33254
33255         * gimplify.c (gimplify_function_tree): Fix building calls
33256         to __builtin_return_address.
33257
33258 2011-03-07  Alan Modra  <amodra@gmail.com>
33259
33260         * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
33261         * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
33262         * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
33263         * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
33264         return_mode args.
33265         * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
33266         (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
33267         (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
33268         (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
33269         * config/rs6000/rs6000.c
33270         (rs6000_elf_end_indicate_exec_stack): Rename to..
33271         (rs6000_elf_file_end): ..this.  Only call file_end_indicate_exec_stack
33272         for POWERPC_LINUX.  Move code emitting .gnu_attribute to here, from..
33273         (rs6000_file_start): ..here.
33274         (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
33275         file scope variables.
33276         (call_ABI_of_interest): New function.
33277         (init_cumulative_args): Set above vars when function return value
33278         is a float, vector, or small struct.
33279         (rs6000_function_arg_advance_1): Likewise for function args.
33280         (rs6000_va_start): Set rs6000_passes_float if variable arg function
33281         references float args.
33282
33283 2011-03-07  Mingjie Xing  <mingjie.xing@gmail.com>
33284
33285         * doc/cfg.texi: Remove "See" before @ref.
33286         * doc/invoke.texi: Likewise.
33287
33288 2011-03-05  Jason Merrill  <jason@redhat.com>
33289
33290         * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
33291
33292 2011-03-05  Anthony Green  <green@moxielogic.com>
33293
33294         * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
33295
33296 2011-03-05  Zdenek Dvorak  <ook@ucw.cz>
33297
33298         PR rtl-optimization/47899
33299         * cfgloopmanip.c (fix_bb_placements): Fix first argument
33300         to flow_loop_nested_p when moving the loop upward.
33301
33302 2011-03-05  Richard Earnshaw  <rearnsha@arm.com>
33303
33304         PR target/47719
33305         * arm.md (movhi_insn_arch4):  Accept any immediate constant.
33306
33307 2011-03-05  Jakub Jelinek  <jakub@redhat.com>
33308
33309         PR tree-optimization/47967
33310         * ipa-cp.c (build_const_val): Return NULL instead of creating
33311         VIEW_CONVERT_EXPR for mismatching sizes.
33312         (ipcp_create_replace_map): Return NULL if build_const_val failed.
33313         (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
33314         give up on versioning.
33315
33316 2011-03-05  Alan Modra  <amodra@gmail.com>
33317
33318         PR target/47986
33319         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
33320         full cmodel medium/large lo_sum + high addresses.
33321
33322 2011-03-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
33323
33324         * config/s390/s390.c (s390_decompose_address): Reject non-literal
33325         pool references in UNSPEC_LTREL_OFFSET.
33326
33327 2011-03-04  Jan Hubicka  <jh@suse.cz>
33328
33329         PR lto/47497
33330         * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
33331         (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
33332         * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
33333         Add node pointers.
33334         * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
33335         cgraph_add_thunk): Add node pointers.
33336         * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
33337         associated to right node.
33338         (input_node): Update use of cgraph_same_body_alias
33339         and cgraph_add_thunk.
33340
33341 2011-03-04  Changpeng Fang  <changpeng.fang@amd.com>
33342
33343         * config/i386/i386.opt (mprefer-avx128): New flag.
33344         * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
33345         modes when the flag -mprefer-avx128 is on.
33346
33347 2011-03-04  Richard Sandiford  <richard.sandiford@linaro.org>
33348
33349         * dwarf2out.c (compare_loc_operands): Fix address handling.
33350
33351 2011-03-04  Alan Modra  <amodra@gmail.com>
33352
33353         * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
33354
33355 2011-03-04  Richard Guenther  <rguenther@suse.de>
33356
33357         PR middle-end/47968
33358         * expmed.c (extract_bit_field_1): Prefer vector modes that
33359         vec_extract patterns can handle.
33360
33361 2011-03-04  Richard Guenther  <rguenther@suse.de>
33362
33363         PR middle-end/47975
33364         * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
33365
33366 2011-03-04  Richard Henderson  <rth@redhat.com>
33367
33368         * explow.c (emit_stack_save): Remove 'after' parameter.
33369         (emit_stack_restore): Likewise.
33370         * expr.h: Update to match.
33371         * builtins.c, calls.c, stmt.c: Likewise.
33372         * config/alpha/alpha.md, config/avr/avr.md: Likewise.
33373         * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
33374         * function.c (expand_function_end): Insert the emit_stack_save
33375         sequence before parm_birth_insn instead of after.
33376
33377 2011-03-03  Uros Bizjak  <ubizjak@gmail.com>
33378
33379         * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
33380         (ssse3_pmaddubsw128): Ditto.
33381         (ssse3_pmaddubsw): Ditto.
33382
33383 2011-03-03  Steve Ellcey  <sje@cup.hp.com>
33384
33385         * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
33386
33387 2011-03-03  Jakub Jelinek  <jakub@redhat.com>
33388
33389         PR c/47963
33390         * gimplify.c (omp_add_variable): Only call omp_notice_variable
33391         on TYPE_SIZE_UNIT if it is a DECL.
33392
33393         PR debug/47283
33394         * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
33395         first operand is not is_gimple_mem_ref_addr, try to fold it.
33396         If the operand still isn't is_gimple_mem_ref_addr, clear
33397         MEM_EXPR on op0.
33398
33399 2011-03-03  Richard Guenther  <rguenther@suse.de>
33400
33401         PR middle-end/47283
33402         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
33403         match comment.
33404         (refs_may_alias_p_1): For release branches return true if
33405         we are confused by our input.
33406
33407 2011-03-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
33408
33409         * config/s390/s390.c (s390_function_value): Rename to ...
33410         (s390_function_and_libcall_value): ... this.
33411         (s390_function_value): New function.
33412         (s390_libcall_value): New function.
33413         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
33414         * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
33415         target macro definitions.
33416         * config/s390/s390-protos.h (s390_function_value): Remove prototype.
33417
33418 2011-03-02  Joseph Myers  <joseph@codesourcery.com>
33419
33420         * config/i386/freebsd64.h (CC1_SPEC): Define.
33421         * config/i386/linux64.h (CC1_SPEC): Define.
33422         * config/i386/x86-64.h (CC1_SPEC): Don't define.
33423
33424 2011-03-02  Anatoly Sokolov  <aesok@post.ru>
33425
33426         * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
33427         Remove.
33428         * config/stormy16/stormy16.c: Include reload.h.
33429         (xstormy16_memory_move_cost): New function.
33430         (TARGET_MEMORY_MOVE_COST): Define.
33431
33432 2011-03-02  Richard Sandiford  <richard.sandiford@linaro.org>
33433
33434         PR rtl-optimization/47925
33435         * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
33436         with side effects.  Remove the more-specific check for volatile asms.
33437
33438 2011-03-02  Alan Modra  <amodra@gmail.com>
33439
33440         PR target/47935
33441         * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
33442         toc relative addresses for valid offsets.
33443
33444 2011-03-01  Richard Guenther  <rguenther@suse.de>
33445
33446         PR tree-optimization/47890
33447         * tree-vect-loop.c (get_initial_def_for_induction): Set
33448         related stmt properly.
33449
33450 2011-03-01  Richard Guenther  <rguenther@suse.de>
33451
33452         PR lto/47924
33453         * lto-streamer.c (lto_record_common_node): Also register
33454         the canonical type.
33455
33456 2011-03-01  Richard Guenther  <rguenther@suse.de>
33457
33458         PR lto/46911
33459         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
33460         Do not stream DECL_ABSTRACT_ORIGIN.
33461         (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
33462         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
33463         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
33464         Do not stream DECL_ABSTRACT_ORIGIN.
33465         (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
33466         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
33467
33468 2011-02-28  Anatoly Sokolov  <aesok@post.ru>
33469
33470         * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
33471         FUNCTION_VALUE_REGNO_P): Remove.
33472         * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
33473         * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
33474         Add 'outgoing' argument.
33475         (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
33476         function.
33477         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
33478         TARGET_FUNCTION_VALUE_REGNO_P): Define.
33479
33480 2011-02-28  Kai Tietz  <kai.tietz@onevision.com>
33481
33482         PR debug/28047
33483         * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
33484         (lookup_filename): Likewise.
33485         * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
33486
33487 2011-02-28  Bernd Schmidt  <bernds@codesourcery.com>
33488             Jakub Jelinek  <jakub@redhat.com>
33489
33490         PR middle-end/47893
33491         * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
33492         (assign_stack_local_1): Change last argument type to int.
33493         * function.c (assign_stack_local_1): Replace reduce_alignment_ok
33494         argument with kind.  If bit ASLK_RECORD_PAD is not set in it,
33495         don't record padding space into frame_space_list nor use those areas.
33496         (assign_stack_local): Adjust caller.
33497         (assign_stack_temp_for_type): Call assign_stack_local_1 instead
33498         of assign_stack_local, pass 0 as last argument.
33499         * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
33500         callers.
33501
33502 2011-02-28  Jakub Jelinek  <jakub@redhat.com>
33503
33504         PR debug/47283
33505         * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
33506         Use target address_mode and pointer_mode hooks instead of hardcoded
33507         Pmode and ptr_mode.  Handle some simple cases of extending if
33508         POINTERS_EXTEND_UNSIGNED < 0.
33509         (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
33510         Call convert_debug_memory_address.
33511         (expand_debug_expr) <case ADDR_EXPR>: Pass as to
33512         convert_debug_memory_address.
33513
33514         PR middle-end/46790
33515         * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
33516         * configure: Regenerated.
33517         * config.in: Regenerated.
33518         * varasm.c (default_function_section): Return NULL
33519         if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
33520
33521 2011-02-28  Martin Jambor  <mjambor@suse.cz>
33522
33523         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
33524         the description to match the printed values.
33525
33526 2011-02-28  Richard Guenther  <rguenther@suse.de>
33527
33528         * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
33529         of the copied scope tree.
33530
33531 2011-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33532
33533         * doc/extend.texi (Function Attributes): Avoid deeply (and
33534         wrongly) nested tables.
33535
33536 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
33537
33538         PR middle-end/47903
33539         * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
33540         MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
33541         r isn't op0 nor op1.
33542
33543 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
33544
33545         * config/avr/avr.md: Remove magic comment for emacs.
33546
33547 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
33548
33549         PR target/45261
33550         * config/avr/avr.c (avr_option_override): Use error on bad options.
33551         (avr_help): New function.
33552         (TARGET_HELP): Define.
33553
33554 2011-02-22  Georg-Johann Lay  <avr@gjlay.de>
33555
33556         PR target/42240
33557         * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
33558         (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
33559
33560 2011-02-26  Gerald Pfeifer  <gerald@pfeifer.com>
33561
33562         * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
33563         (ARM Options): Ditto.
33564         (i386 and x86-64 Options): Ditto.
33565         (RX Options): Ditto.
33566         (SPARC Options): Ditto.
33567
33568 2011-02-26  Tijl Coosemans  <tijl@coosemans.org>
33569
33570         * config.gcc (i386-*-freebsd*): Make i486 the default arch on
33571         FreeBSD 6 and later.  Generally use cpu generic.
33572
33573 2011-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
33574
33575         * doc/cpp.texi: Update copyright years.
33576
33577 2011-02-25  Sebastien Bourdeauducq  <sebastien@milkymist.org>
33578
33579         PR target/46898
33580         * config/lm32/lm32.md (ashrsi3): Added needed variable.
33581
33582 2011-02-25  Jon Beniston  <jon@beniston.com>
33583
33584         PR target/46898
33585         * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
33586         * config/lm32/lm32.md (ashlsi3): Remove unused variable.
33587         * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
33588         (lm32_block_move_inline): Add type cast to remove warning.
33589         (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
33590         (gen_int_relational): Move declarations to start of function.
33591
33592 2011-02-25  Eric Botcazou  <ebotcazou@adacore.com>
33593
33594         PR tree-optimization/45470
33595         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
33596         can throw internally only.
33597         * tree-vect-stmts.c (vectorizable_call): Likewise.
33598
33599 2011-02-24  Anatoly Sokolov  <aesok@post.ru>
33600
33601         * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
33602         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
33603         * config/stormy16/stormy16-protos.h
33604         (xstormy16_preferred_reload_class): Remove.
33605         * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
33606         static. Change 'rclass' argument and return type to reg_class_t.
33607         (TARGET_PREFERRED_RELOAD_CLASS,
33608         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
33609
33610 2011-02-24  Richard Guenther  <rguenther@suse.de>
33611
33612         * lto-streamer-in.c (input_bb): Do not find referenced vars
33613         in debug statements.
33614
33615 2011-02-23  Jason Merrill  <jason@redhat.com>
33616
33617         * common.opt (fabi-version): Document v5 and v6.
33618
33619 2011-02-23  Richard Guenther  <rguenther@suse.de>
33620
33621         PR tree-optimization/47849
33622         * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
33623
33624 2011-02-23  Jie Zhang  <jie@codesourcery.com>
33625
33626         * opts-common.c (decode_cmdline_option): Print empty string
33627         argument as "" in decoded->orig_option_with_args_text.
33628         * gcc.c (execute): Print empty string argument as ""
33629         in the verbose output.
33630         (do_spec_1): Keep empty string argument.
33631
33632 2011-02-23  Nathan Froyd  <froydnj@codesourcery.com>
33633
33634         * config.gcc: Declare score-* and crx-* obsolete.
33635
33636 2011-02-23  Jie Zhang  <jie@codesourcery.com>
33637
33638         PR rtl-optimization/47763
33639         * web.c (web_main): Ignore naked clobber when replacing register.
33640
33641 2011-02-22  Anatoly Sokolov  <aesok@post.ru>
33642
33643         * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
33644         Remove.
33645
33646 2011-02-22  Sebastian Pop  <sebastian.pop@amd.com>
33647
33648         PR doc/47848
33649         * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
33650
33651 2011-02-22  Mike Stump  <mikestump@comcast.net>
33652
33653         * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
33654         assembler.
33655         * configure: Regenerate.
33656
33657 2011-02-21  Chung-Lin Tang  <cltang@codesourcery.com>
33658
33659         PR rtl-optimization/46002
33660         * ira-color.c (update_copy_costs): Change class intersection
33661         test to reg_class_contents[] test of 'hard_regno'.
33662
33663 2011-02-21  Joseph Myers  <joseph@codesourcery.com>
33664
33665         * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
33666         than Driver option.
33667         * config/hpux11.opt (mt): Likewise.
33668         * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
33669         * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
33670         * config/vax/elf.opt (mno-asm-pic): Likewise.
33671         * config/vms/vms.opt (map, mvms-return-codes): Likewise.
33672
33673 2011-02-21  Mike Stump  <mikestump@comcast.net>
33674
33675         PR target/47822
33676         * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
33677         tree so we can get save the type.
33678         * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
33679         for CFString instead of trying to use past the end of the builtins.
33680         * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
33681         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
33682         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
33683         * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
33684         Rename to darwin_builtin_cfstring.
33685         (darwin_init_cfstring_builtins): Return the built type.
33686
33687 2011-02-21  Uros Bizjak  <ubizjak@gmail.com>
33688
33689         PR target/47840
33690         * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
33691         (_mm256_insert_epi64): Use _mm_insert_epi64.
33692
33693 2011-02-21  Anatoly Sokolov  <aesok@post.ru>
33694
33695         * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
33696         * config/stormy16/stormy16-protos.h
33697         (xstormy16_mode_dependent_address_p): Remove.
33698         * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
33699         Make static. Change return type to bool. Change argument type to
33700         const_rtx. Remove dead code.
33701         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
33702
33703 2011-02-21  Richard Guenther  <rguenther@suse.de>
33704
33705         PR lto/47820
33706         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
33707         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
33708         (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
33709         TUs context.
33710         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
33711         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
33712
33713 2011-02-20  Richard Guenther  <rguenther@suse.de>
33714
33715         PR lto/47822
33716         * tree.c (free_lang_data_in_decl): Clean builtins from
33717         the TU decl BLOCK_VARS.
33718
33719 2011-02-19  Alexandre Oliva  <aoliva@redhat.com>
33720
33721         PR debug/47620
33722         PR debug/47630
33723         * haifa-sched.c (fix_tick_ready): Skip tick computation
33724         for debug insns.
33725
33726 2011-02-19  Richard Guenther  <rguenther@suse.de>
33727
33728         PR lto/47647
33729         * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
33730         Remove lazy BLOCK_VARS streaming.
33731         (lto_input_ts_block_tree_pointers): Likewise.
33732         * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
33733
33734 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
33735
33736         * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
33737
33738 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
33739
33740         * config/i386/biarch32.h, config/i386/mach.h,
33741         config/rs6000/aix.opt, config/sh/superh64.h: Remove.
33742
33743 2011-02-19  Jakub Jelinek  <jakub@redhat.com>
33744
33745         PR target/47800
33746         * config/i386/i386.md (peephole2 for shift and plus): Use
33747         operands[1] original mode in the first insn.
33748
33749 2011-02-18  Mike Stump  <mikestump@comcast.net>
33750
33751         * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
33752
33753 2011-02-18  Jan Hubicka  <jh@suse.cz>
33754
33755         PR middle-end/47788
33756         * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
33757         to zero when the function is not inlinable at all.
33758
33759 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
33760
33761         * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
33762         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
33763         pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
33764         * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
33765         * config/pa/t-pa64: Likewise.
33766         * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
33767
33768 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
33769
33770         PR driver/47787
33771         * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
33772
33773 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
33774
33775         PR target/47792
33776         * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
33777
33778 2011-02-18  Anatoly Sokolov  <aesok@post.ru>
33779
33780         * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
33781         RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
33782         LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
33783         GO_IF_LEGITIMATE_ADDRESS): Remove macros.
33784         * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
33785         (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
33786         m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
33787         m32r_load_postinc_p, m32r_store_preinc_predec_p,
33788         m32r_legitimate_address_p): New functions.
33789         * config/m32r/constraints.md (constraint "S"): Don't use
33790         STORE_PREINC_PREDEC_P.
33791         (constraint "U"): Don't use LOAD_POSTINC_P.
33792
33793 2011-02-18  Chung-Lin Tang  <cltang@codesourcery.com>
33794
33795         PR rtl-optimization/46178
33796         * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
33797         compute ira_hard_regno_cover_class[].
33798
33799 2011-02-18  Richard Guenther  <rguenther@suse.de>
33800
33801         PR lto/47798
33802         * lto-streamer.h (lto_global_var_decls): Declare.
33803         * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
33804         statics for global var processing.
33805
33806 2011-02-18  Richard Guenther  <rguenther@suse.de>
33807
33808         PR tree-optimization/47737
33809         * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
33810         edge dominance check.
33811
33812 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
33813
33814         PR debug/47780
33815         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
33816         avoid invalid rtx sharing.
33817
33818 2011-02-18  Gerald Pfeifer  <gerald@pfeifer.com>
33819
33820         * doc/cpp.texi (Obsolete Features): Add background on the
33821         origin of assertions.
33822
33823 2011-02-17  Iain Sandoe  <iains@gcc.gnu.org>
33824
33825         * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
33826         objc_abi == 2.
33827         * config/darwin.c (output_objc_section_asm_op): Added support for
33828         ABI v1 and v2.
33829         (is_objc_metadata): New.
33830         (darwin_objc2_section): New.
33831         (darwin_objc1_section): New.
33832         (machopic_select_section): Added support for ABI v1 and v2.
33833         (darwin_emit_objc_zeroed): New.
33834         (darwin_output_aligned_bss): Detect objc metadata and treat it
33835         appropriately.
33836         (darwin_asm_output_aligned_decl_common): Same.
33837         (darwin_asm_output_aligned_decl_local): Same.
33838         * config/darwin-sections.def: Updated for ABI v1 and v2.
33839         * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
33840         compiling Objective-C code for the NeXT runtime, default to using
33841         ABI version 0 for 32-bit, and version 2 for 64-bit.
33842
33843 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
33844
33845         * common.opt (optimize_fast): New Variable.
33846         * opts.c (default_options_optimization): Use opts->x_optimize_fast
33847         instead of local variable ofast.
33848
33849 2011-02-17  Nicola Pero  <nicola.pero@meta-innovation.com>
33850
33851         * doc/invoke.texi (fobjc-abi-version): Documented.
33852         (fobjc-nilcheck): Documented.
33853         (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
33854         version.
33855
33856 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
33857
33858         PR driver/47390
33859         * common.opt (export-dynamic): New Driver option.
33860         * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
33861
33862 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
33863
33864         * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
33865
33866 2011-02-17  Alexandre Oliva  <aoliva@redhat.com>
33867             Jan Hubicka  <jh@suse.cz>
33868
33869         PR debug/47106
33870         PR debug/47402
33871         * cfgexpand.c (account_used_vars_for_block): Remove.
33872         (estimated_stack_frame_size): Use referenced vars.
33873         * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
33874         that were referenced in the original function.  Test src_fn
33875         rather than cfun.  Drop redundant get_var_ann.
33876         (setup_one_parameter): Drop redundant get_var_ann.
33877         (declare_return_variable): Likewise.
33878         (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
33879         (copy_arguments_for_versioning): Drop redundant get_var_ann.
33880         * ipa-inline.c (compute_inline_parameters): Do not compute
33881         disregard_inline_limits here.
33882         (compute_inlinable_for_current, pass_inlinable): New.
33883         (pass_inline_parameters): Require PROP_referenced_vars.
33884         * cgraphunit.c (cgraph_process_new_functions): Don't run
33885         compute_inline_parameters explicitly unless function is in SSA form.
33886         (cgraph_analyze_function): Set .disregard_inline_limits.
33887         * tree-sra.c (convert_callers): Compute inliner parameters
33888         only for functions already in SSA form.
33889
33890 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
33891
33892         * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
33893         -mlittle-endian-data.
33894
33895 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
33896
33897         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
33898         -mno-fpu, not -fpu and -no-fpu.
33899         * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
33900         * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
33901
33902 2011-02-17  Uros Bizjak  <ubizjak@gmail.com>
33903
33904         PR target/43653
33905         * config/i386/i386.c (ix86_secondary_reload): Handle SSE
33906         input reload with PLUS RTX.
33907
33908 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
33909
33910         * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
33911         of InverseVar(MDMX).
33912
33913 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
33914
33915         * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
33916         --m4-340.
33917
33918 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
33919
33920         * config/mn10300/mn10300.opt (mno-crt0): New.
33921
33922 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
33923
33924         * config/m68k/uclinux.opt (static-libc): New Driver option.
33925
33926 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
33927
33928         * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
33929
33930 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
33931
33932         * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
33933         %{muser-extend-enabled}.
33934
33935 2011-02-16  Richard Guenther  <rguenther@suse.de>
33936
33937         PR tree-optimization/47738
33938         * tree-ssa-loop.c (run_tree_predictive_commoning): Return
33939         the TODO from tree_predictive_commoning.
33940
33941 2011-02-15  Jeff Law  <law@redhat.com>
33942
33943         Revert
33944         2011-01-25  Jeff Law  <law@redhat.com>
33945
33946         PR rtl-optimization/37273
33947         * ira-costs.c (scan_one_insn): Detect constants living in memory and
33948         handle them like argument loads from stack slots.  Do not double
33949         count memory for memory constants and argument loads from stack slots.
33950
33951 2011-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
33952
33953         PR target/47755
33954         * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
33955         mode for vector constants.  Remove code that checks for TImode.
33956
33957 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
33958
33959         PR debug/47106
33960         PR debug/47402
33961         * cgraph.h (compute_inline_parameters): Return void.
33962         * ipa-inline.c (compute_inline_parameters): Adjust.
33963
33964 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
33965
33966         PR debug/47106
33967         PR debug/47402
33968         * tree-inline.h (estimated_stack_frame_size): Take cgraph node
33969         rather than decl.
33970         * cfgexpand.c (estimated_stack_frame_size): Likewise.
33971         * ipa-inline.c (compute_inline_parameters): Adjust.
33972
33973 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
33974
33975         PR debug/47106
33976         PR debug/47402
33977         * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
33978         Adjust all users.  Pass FN to...
33979         * tree-flow-inline.h (first_referenced_var): ... this.  Add
33980         fn argument.
33981         * ipa-struct-reorg.c: Adjust.
33982         * tree-dfa.c: Adjust.
33983         * tree-into-ssa.c: Adjust.
33984         * tree-sra.c: Adjust.
33985         * tree-ssa-alias.c: Adjust.
33986         * tree-ssa-live.c: Adjust.
33987         * tree-ssa.c: Adjust.
33988         * tree-ssanames.c: Adjust.
33989         * tree-tailcall.c: Adjust.
33990
33991 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
33992
33993         PR debug/47106
33994         PR debug/47402
33995         * tree-flow.h (referenced_var_lookup): Add fn parameter.
33996         Adjust all callers.
33997         * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
33998         * tree-flow-inline.h: Adjust.
33999         * gimple-pretty-print.c: Adjust.
34000         * tree-into-ssa.c: Adjust.
34001         * tree-ssa.c: Adjust.
34002         * cfgexpand.c: Adjust.
34003
34004 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
34005
34006         * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
34007         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
34008         (EXTRA_CONSTRAINT): Delete.
34009         * config/iq2000/constraints.md: New file.
34010         * config/iq2000/iq2000.md: Include it.
34011         (define_insn ""): Delete.
34012         (movsi_internal2, movhi_internal2, movqi_internal2): Delete
34013         unsupported constraint letters from patterns.
34014         (call_value, call_value_internal1): Likewise.
34015         (call_value_multiple_internal1): Likewise.
34016
34017 2011-02-15  Nick Clifton  <nickc@redhat.com>
34018
34019         * config/mn10300/mn10300.c: Include tm-constrs.h.
34020         (struct liw_data): New data structure describing an LIW candidate
34021         instruction.
34022         (extract_bundle): Use struct liw_data.  Allow small integer
34023         operands for some instructions.
34024         (check_liw_constraints): Use struct liw_data.  Remove swapped
34025         parameter.  Add comments describing the checks.  Fix bug when
34026         assigning the source of liw1 to the source of liw2.
34027         (liw_candidate): Delete.  Code moved into extract_bundle.
34028         (mn10300_bundle_liw): Use struct liw_data.  Check constraints
34029         before swapping.
34030         * config/mn10300/predicates.md (liw_operand): New predicate.
34031         Allows registers and small integer constants.
34032         * config/mn10300/constraints.md (O): New constraint.  Accetps
34033         integers in the range -8 to +7 inclusive.
34034         * config/mn10300/mn10300.md (movesi_internal): Add an alternative
34035         for moving a small integer into a register.  Give this alternative
34036         LIW attributes.
34037         (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
34038         (ashlsi3): Likewise, plus give LIW attributes to the alternatives
34039         using the J,K,L and M constraints,
34040         (liw): Remove SI mode on second operands to allow for HI and QI
34041         mode values.
34042         (cmp_liw, liw_cmp): Likewise.  Plus fix order of operands in the
34043         instruction.
34044
34045 2011-02-15  Richard Guenther  <rguenther@suse.de>
34046
34047         PR tree-optimization/47743
34048         * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
34049         for a non-type-compatible VN lookup bail out.
34050
34051 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
34052
34053         * config/fr30/constraints.md: New file.
34054         * config/fr30/fr30.md: Include it.
34055         * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
34056         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
34057         (EXTRA_CONSTRAINT): Delete.
34058
34059 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
34060
34061         * config/frv/constraints.md: New file.
34062         * config/frv/predicates.md: Include it.
34063         * config/frv/frv.c (reg_class_from_letter): Delete.
34064         (frv_option_override): Don't initialize it.
34065         * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
34066         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
34067         (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
34068         (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
34069         (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
34070         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
34071         (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
34072         (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
34073         (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
34074         (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
34075         (REG_CLASS_FROM_CONSTRAINT): Delete.
34076
34077 2011-02-15  Jakub Jelinek  <jakub@redhat.com>
34078
34079         PR middle-end/47581
34080         * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
34081         if frame size is 0 in a leaf function.
34082
34083 2011-02-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
34084
34085         PR pch/14940
34086         * config/alpha/host-osf.c: New file.
34087         * config/alpha/x-osf: New file.
34088         * config.host (alpha*-dec-osf*): Use it.
34089
34090 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
34091
34092         * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
34093         * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
34094         * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
34095         (rx_mode_dependent_address_p): ...this. Make static. Change argument
34096         type to const_rtx.
34097         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
34098
34099 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
34100
34101         * config/stormy16/constraints.md: New file.
34102         * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
34103         Use satisfies_constraint_Q and satisfies_constraint_R.
34104         * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
34105         Delete.
34106         (xstormy16_legitiamte_address_p): Declare.
34107         * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
34108         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
34109         (EXTRA_CONSTRAINT): Delete.
34110         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
34111         Un-staticize.
34112         (xstormy16_extra_constraint_p): Delete.
34113
34114 2011-02-14  Eric Botcazou  <ebotcazou@adacore.com>
34115
34116         PR tree-optimization/46494
34117         * loop-unroll.c (split_edge_and_insert): Adjust comment.
34118         * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
34119         (pass_rtl_loop_done): Add TODO_verify_flow.
34120         * fwprop.c (pass_rtl_fwprop): Likewise.
34121         * modulo-sched.c (pass_sms): Likewise.
34122         * tree-ssa-dom.c (pass_dominator): Likewise.
34123         * tree-ssa-loop-ch.c (pass_ch): Likewise.
34124         * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
34125         (pass_tree_loop_done): Likewise.
34126         * tree-ssa-pre.c (execute_pre): Likewise.
34127         * tree-ssa-reassoc.c (pass_reassoc): Likewise.
34128         * tree-ssa-sink.c (pass_sink_code): Likewise.
34129         * tree-vrp.c (pass_vrp): Likewise.
34130
34131 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
34132
34133         * config/v850/constraints.md: New file.
34134         * config/v850/v850.md: Include it.
34135         * config/v850/predicates.md (reg_or_0_operand): Use
34136         satisfies_constraint_G.
34137         (special_symbolref_operand): Use satisfies_constraint_K.
34138         * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
34139         (GO_IF_LEGITIMATE_ADDRESS): Likewise.
34140         (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
34141         (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
34142         (EXTRA_CONSTRAINT): Delete.
34143         (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
34144         (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
34145         (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
34146
34147 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
34148
34149         PR target/47696
34150         * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
34151         description.
34152
34153 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
34154
34155         * config/mcore/constraints.md: New file.
34156         * config/mcore/mcore.md: Include it.
34157         * config/mcore/mcore.c (reg_class_from_letter): Delete.
34158         * config/mcore/mcore.h (reg_class_from_letter): Delete.
34159         (REG_CLASS_FROM_LETTER): Delete.
34160         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
34161         insn_const_int_ok_for_constraint.
34162         (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
34163         (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
34164         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
34165         (EXTRA_CONSTRAINT): Delete.
34166
34167 2011-02-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
34168
34169         PR ada/41929
34170         * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
34171         (IS_SIGHANDLER): Define.
34172         (sparc64_is_sighandler): New function, split off from
34173         sparc64_fallback_frame_state.
34174         (sparc_is_sighandler): New function, split off from
34175         sparc_fallback_frame_state.
34176         (sparc64_fallback_frame_state): Merge with ...
34177         (sparc_fallback_frame_state): ... this into ...
34178         (MD_FALLBACK_FRAME_STATE_FOR): ... this.
34179         Change new_cfa to long.  Remove regs_off, fpu_save_off, fpu_save.
34180         Define nframes, mctx.  Use IS_SIGHANDLER, handler_args, mctx, walk
34181         stack instead of hardcoded offsets.
34182
34183 2011-02-14  Andriy Gapon  <avg@freebsd.org>
34184
34185         PR target/45808
34186         * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
34187
34188 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34189
34190         * configure: Regenerate.
34191
34192 2011-02-12  Joseph Myers  <joseph@codesourcery.com>
34193
34194         PR driver/45731
34195         * gcc.c (asm_options): Correct spec matching --target-help.
34196
34197 2011-02-12  Martin Jambor  <mjambor@suse.cz>
34198
34199         * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
34200         to gimple call error.
34201
34202 2011-02-12  Mike Stump  <mikestump@comcast.net>
34203
34204         * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
34205         comments in backslash regions.
34206
34207 2011-02-12  Mike Stump  <mikestump@comcast.net>
34208             Jakub Jelinek  <jakub@redhat.com>
34209             Iain Sandoe  <iains@gcc.gnu.org>
34210
34211         PR target/47324
34212         * dwarf2out.c (output_cfa_loc): When required, apply the
34213         DWARF2_FRAME_REG_OUT macro to adjust register numbers.
34214         (output_loc_sequence): Likewise.
34215         (output_loc_operands_raw): Likewise.
34216         (output_loc_sequence_raw): Likewise.
34217         (output_cfa_loc): Likewise.
34218         (output_loc_list): Suppress register number adjustment when
34219         calling output_loc_sequence()
34220         (output_die): Likewise.
34221
34222 2011-02-12  Anatoly Sokolov  <aesok@post.ru>
34223
34224         * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
34225         Remove macros.
34226         * config/xtensa/xtensa.c (xtensa_register_move_cost,
34227         xtensa_memory_move_cost): New functions.
34228         (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
34229
34230 2011-02-12  Alexandre Oliva  <aoliva@redhat.com>
34231
34232         PR lto/47225
34233         * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
34234         in the current directory.
34235         * configure: Rebuilt.
34236
34237 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
34238
34239         * config/darwin.c (darwin_override_options): Add a hunk missed
34240         from the commit of r168571.  Trim comment line lengths and
34241         correct indents of the preceding block.
34242
34243 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
34244
34245         * gcc.c (driver_handle_option): Concatenate the argument to -F with
34246         the switch.
34247
34248 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
34249
34250         * common.opt (nostartfiles): New Driver option.
34251
34252 2011-02-11  Xinliang David Li  <davidxl@google.com>
34253
34254         PR tree-optimization/47707
34255         * tree-chrec.c (convert_affine_scev): Keep type precision.
34256
34257 2011-02-11  Eric Botcazou  <ebotcazou@adacore.com>
34258
34259         PR tree-optimization/47420
34260         * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
34261
34262 2011-02-11  Pat Haugen  <pthaugen@us.ibm.com>
34263
34264         PR rtl-optimization/47614
34265         * rtl.h (check_for_inc_dec): Declare.
34266         * dse.c (check_for_inc_dec): Externalize...
34267         * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
34268         (reload_cse_simplify_operands): Don't simplify opnds with side effects.
34269
34270 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
34271
34272         PR driver/47678
34273         * gcc.c (main): Do not compile inputs if there were errors in
34274         option handling.
34275         * opts-common.c (read_cmdline_option): Check for wrong language
34276         after other error checks.
34277
34278 2011-02-11  Nathan Froyd  <froydnj@codesourcery.com>
34279
34280         * cgraph.c: Fix comment typos.
34281         * cgraph.h: Likewise.
34282         * cgraphunit.c: Likewise.
34283         * ipa-cp.c: Likewise.
34284         * ipa-inline.c: Likewise.
34285         * ipa-prop.c: Likewise.
34286         * ipa-pure-const.c: Likewise.
34287         * ipa-ref.c: Likewise.
34288         * ipa-reference.c: Likewise.
34289
34290 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
34291
34292         PR debug/47684
34293         * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
34294
34295 2011-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
34296
34297         PR testsuite/47400
34298         * doc/sourcebuild.texi (Require Support): Document
34299         dg-require-ascii-locale.
34300
34301 2011-02-11  Mingjie Xing  <mingjie.xing@gmail.com>
34302
34303         * doc/lto.texi (Write summary): Fix missing parentheses.
34304
34305 2011-02-10  DJ Delorie  <dj@redhat.com>
34306
34307         * config/m32c/m32c.c (m32c_option_override): Disable
34308         -fcombine-stack-adjustments until flag value tracking and compare
34309         optimization can be rewritten.
34310
34311 2011-02-10  Peter Bergner  <bergner@vnet.ibm.com>
34312
34313         * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
34314         PROCESSOR_POWER7.
34315         (PROCESSOR_DEFAULT64): Likewise.
34316
34317 2011-02-10  Richard Henderson  <rth@redhat.com>
34318
34319         * config/rx/predicates.md (rx_zs_comparison_operator): Revert
34320         change from 2011-02-03.
34321         * config/rx/rx.c (flags_from_code): Likewise.
34322         (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
34323         is valid, n/pz otherwise.
34324         (rx_select_cc_mode): Return CCmode if Y is not zero.
34325
34326 2011-02-10  Richard Guenther  <rguenther@suse.de>
34327
34328         * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
34329
34330 2011-02-10  Richard Guenther  <rguenther@suse.de>
34331
34332         PR tree-optimization/47677
34333         * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
34334
34335 2011-02-10  Jakub Jelinek  <jakub@redhat.com>
34336
34337         PR target/47665
34338         * combine.c (make_compound_operation): Only change shifts into
34339         multiplication for SCALAR_INT_MODE_P.
34340
34341 2011-02-10  Jie Zhang  <jie@codesourcery.com>
34342
34343         PR testsuite/47622
34344         Revert
34345         2011-02-05  Jie Zhang  <jie@codesourcery.com>
34346         PR debug/42631
34347         * web.c (entry_register): Don't clobber the number of the
34348         first uninitialized reference in used[].
34349
34350 2011-02-09  Richard Guenther  <rguenther@suse.de>
34351
34352         PR tree-optimization/47664
34353         * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
34354         all edges again.
34355
34356 2011-02-09  David Edelsohn  <dje.gcc@gmail.com>
34357
34358         PR target/46481
34359         PR target/47032
34360         * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
34361         PROCESSOR_POWER7.
34362         (PROCESSOR_DEFAULT64): Same.
34363         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
34364
34365 2011-02-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
34366
34367         * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
34368
34369 2011-02-09  Martin Jambor  <mjambor@suse.cz>
34370
34371         PR middle-end/45505
34372         * tree-sra.c (struct access): New flags grp_scalar_read and
34373         grp_scalar_write.  Changed description of assignment read and write
34374         flags.
34375         (dump_access): Dump new flags, reorder all of them.
34376         (sort_and_splice_var_accesses): Set the new flag accordingly, use them
34377         to detect multiple scalar reads.
34378         (analyze_access_subtree): Use the new scalar read write flags instead
34379         of the old flags.  Adjusted comments.
34380
34381 2011-02-08  DJ Delorie  <dj@redhat.com>
34382
34383         PR target/47548
34384         * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
34385         patterns.
34386
34387 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
34388
34389         * config/m68k/uclinux.opt: New.
34390         * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
34391
34392 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
34393
34394         * config/cris/elf.opt (sim): New Driver option.
34395
34396 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
34397
34398         * config/xtensa/elf.opt: New.
34399         * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
34400
34401 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
34402
34403         * config/vax/elf.opt: New.
34404         * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
34405
34406 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
34407
34408         * config/rs6000/aix64.opt (posix, pthread): New Driver options.
34409
34410 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
34411
34412         * config/gnu-user.opt: New.
34413         * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
34414         *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
34415         *-*-uclinux*): Use gnu-user.opt.
34416
34417 2011-02-08  Thomas Schwinge  <thomas@schwinge.name>
34418
34419         * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
34420         * config/i386/gnu.h (CPP_SPEC): Likewise.
34421
34422 2011-02-08  Ian Lance Taylor  <iant@google.com>
34423
34424         * common.opt (fcx-limited-range): Add SetByCombined flag.
34425         (ffinite-math-only, fmath-errno, frounding-math): Likewise.
34426         (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
34427         (fassociative-math, freciprocal-math): Likewise.
34428         (funsafe-math-optimizations): Likewise.
34429         * opth-gen.awk: Handle SetByCombined.
34430         * optc-gen.awk: Likewise.
34431         * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
34432         (set_unsafe_math_optimizations_flags): Likewise.
34433         * doc/options.texi (Option properties): Document SetByCombined.
34434
34435 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
34436
34437         * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
34438         i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
34439         m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
34440         m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
34441         sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
34442
34443 2011-02-08  Sebastian Pop  <sebastian.pop@amd.com>
34444
34445         PR tree-optimization/46834
34446         PR tree-optimization/46994
34447         PR tree-optimization/46995
34448         * graphite-sese-to-poly.c (used_outside_reduction): New.
34449         (detect_commutative_reduction): Call used_outside_reduction.
34450         (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
34451         translate_scalar_reduction_to_array only when at least one
34452         loop-phi/close-phi tuple has been detected.
34453
34454 2011-02-08  Richard Guenther  <rguenther@suse.de>
34455
34456         PR middle-end/47639
34457         * tree-vect-generic.c (expand_vector_operations_1): Update
34458         stmts here ...
34459         (expand_vector_operations): ... not here.  Cleanup EH info
34460         and the CFG if required.
34461
34462 2011-02-08  Richard Guenther  <rguenther@suse.de>
34463
34464         PR tree-optimization/47641
34465         * tree-ssa.c (execute_update_addresses_taken): For asm outputs
34466         require type compatibility.
34467
34468 2011-02-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
34469
34470         * gimple-low.c (lower_function_body): Don't remove the location of
34471         the return statement here.
34472         (lower_gimple_return): Do it here instead but only if the return
34473         statement is actually used twice.
34474
34475 2011-02-08  Richard Guenther  <rguenther@suse.de>
34476
34477         PR tree-optimization/47632
34478         * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
34479         unused up_to_stmt parameter, return whether cfg-cleanup is
34480         necessary, remove EH info properly.
34481         (forward_propagate_into_gimple_cond): Adjust caller.
34482         (forward_propagate_into_cond): Likewise.
34483         (forward_propagate_comparison): Likewise.
34484         (tree_ssa_forward_propagate_single_use_vars): Make
34485         forward_propagate_comparison case similar to the two others.
34486
34487 2011-02-08  Nick Clifton  <nickc@redhat.com>
34488
34489         * config/mn10300/mn10300.opt (mliw): New command line option.
34490         * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
34491         (liw_bundling): New automaton.
34492         (liw): New attribute.
34493         (liw_op): New attribute.
34494         (liw_op1, liw_op2, liw_both, liw_either): New reservations.
34495         (movsi_internal): Add LIW attributes.
34496         (andsi3): Likewise.
34497         (iorsi3): Likewise.
34498         (xorsi3): Likewise.
34499         (addsi3): Separate register and immediate alternatives.
34500         Add LIW attributes.
34501         (subsi3): Likewise.
34502         (cmpsi): Likewise.
34503         (aslsi3): Likewise.
34504         (lshrsi3): Likewise.
34505         (ashrsi3): Likewise.
34506         (liw): New pattern.
34507         * config/mn10300/mn10300.c (liw_op_names): New
34508         (mn10300_print_operand): Handle 'W' operand descriptor.
34509         (extract_bundle): New function.
34510         (check_liw_constraints): New function.
34511         (liw_candidate): New function.
34512         (mn10300_bundle_liw): New function.
34513         (mn10300_reorg): New function.
34514         (TARGET_MACHINE_DEPENDENT_REORG): Define.
34515         (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
34516         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
34517         __LIW__ or __NO_LIW__.
34518         * doc/invoke.texi: Describe the -mliw command line option.
34519
34520 2011-02-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
34521
34522         * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
34523         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
34524         pthread_mutex_unlock): Remove.
34525         * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
34526         * config/pa/t-pa64: Likewise.
34527         * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
34528         shared libc if not linking against libpthread.
34529         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
34530
34531 2011-02-07  Iain Sandoe  <iains@gcc.gnu.org>
34532
34533         PR target/47558
34534         * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
34535         on 10.6 and later to ensure that we always use the unwinder from
34536         the system.  Only add -no_compact_unwind when tarteting darwin
34537         10.6 or later.
34538
34539 2011-02-07  Steve Ellcey  <sje@cup.hp.com>
34540
34541         PR target/46997
34542         * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
34543         (vec_interleave_lowv2sf): Ditto.
34544         (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
34545         (vec_extract_oddv2sf): Ditto.
34546
34547 2011-02-07  Mike Stump  <mikestump@comcast.net>
34548
34549         PR target/42333
34550         Add __ieee_divdc3 entry point.
34551         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
34552         entry point.
34553         (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
34554         * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
34555         * config/darwin.c (darwin_rename_builtins): Add.
34556         * config/darwin-protos.h (darwin_rename_builtins): Add.
34557
34558 2011-02-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
34559
34560         PR target/47636
34561         * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
34562         for the condition.
34563
34564 2011-02-07  Mike Stump  <mikestump@comcast.net>
34565
34566         * config/darwin.opt (mmacosx-version-min): Update default OS version.
34567
34568 2011-02-07  Denis Chertykov  <chertykov@gmail.com>
34569
34570         PR target/47534
34571         * config/avr/libgcc.S (exit): Move .endfunc
34572
34573 2011-02-07  Richard Guenther  <rguenther@suse.de>
34574
34575         PR tree-optimization/47615
34576         * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
34577         * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
34578         (run_scc_vn): Initialize it.
34579         (visit_reference_op_load): Use it.
34580         * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
34581
34582 2011-02-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
34583
34584         * config/spu/spu.c (spu_init_libfuncs): Install SImode and
34585         DImode trapping arithmetic libfuncs.
34586
34587 2011-02-07  Richard Guenther  <rguenther@suse.de>
34588
34589         PR tree-optimization/47621
34590         * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
34591         two duplicates ...
34592         (execute_update_addresses_taken): ... here.  Make it more
34593         conservative in what we accept.
34594
34595 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
34596
34597         * config/sparc/freebsd.h (ASM_SPEC): Define.
34598         * config/sparc/vxworks.h (ASM_SPEC): Define.
34599
34600 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
34601
34602         * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
34603
34604 2011-02-06  Steven Bosscher  <steven@gcc.gnu.org>
34605
34606         * doc/invoke.texi: Remove reference to compiler internals from
34607         user documentation.
34608
34609         * reg-notes.def: Remove REG_VALUE_PROFILE.
34610         * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
34611
34612 2011-02-05  Jakub Jelinek  <jakub@redhat.com>
34613
34614         PR middle-end/47610
34615         * varasm.c (default_section_type_flags): If decl is NULL,
34616         and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
34617
34618 2011-02-05  Jie Zhang  <jie@codesourcery.com>
34619
34620         PR debug/42631
34621         * web.c (entry_register): Don't clobber the number of the
34622         first uninitialized reference in used[].
34623
34624 2011-02-04  Sebastian Pop  <sebastian.pop@amd.com>
34625
34626         PR tree-optimization/46194
34627         * tree-data-ref.c (analyze_miv_subscript): Remove comment.
34628         (build_classic_dist_vector_1): Do not represent classic distance
34629         vectors when the access functions are variating in different loops.
34630
34631 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
34632
34633         * config/mips/iris6.opt: New.
34634         * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
34635
34636 2011-02-04  Richard Henderson  <rth@redhat.com>
34637             Steve Ellcey  <sje@cup.hp.com>
34638
34639         PR target/46997
34640         * config/ia64/predicates.md (mux1_brcst_element): New.
34641         * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
34642         * config/ia64/ia64.c (ia64_unpack_assemble): New.
34643         (ia64_unpack_sign): New.
34644         (ia64_expand_unpack): Rewrite using new routines.
34645         (ia64_expand_widen_sum): Ditto.
34646         (ia64_expand_dot_prod_v8qi): Ditto.
34647         * config/ia64/vect.md (mulv8qi3): Rewrite to use new
34648         routines, add endian check.
34649         (pmpy2_even): Rename from pmpy2_r, add endian check.
34650         (pmpy2_odd): Rename from pmpy2_l, add endian check.
34651         (vec_widen_smult_lo_v4hi): Rewrite using new routines.
34652         (vec_widen_smult_hi_v4hi): Ditto.
34653         (vec_widen_umult_lo_v4hi): Ditto.
34654         (vec_widen_umult_hi_v4hi): Ditto.
34655         (mulv2si3): Change endian checks.
34656         (sdot_prodv4hi): Rewrite with new calls.
34657         (udot_prodv4hi): New.
34658         (vec_pack_ssat_v4hi): Add endian check.
34659         (vec_pack_usat_v4hi): Ditto.
34660         (vec_pack_ssat_v2si): Ditto.
34661         (max1_even): Rename from max1_r, add endian check.
34662         (max1_odd): Rename from max1_l, add endian check.
34663         (*mux1_rev): Format change.
34664         (*mux1_mix): Ditto.
34665         (*mux1_shuf): Ditto.
34666         (*mux1_alt): Ditto.
34667         (*mux1_brcst_v8qi): Use new predicate.
34668         (vec_extract_evenv8qi): Remove endian check.
34669         (vec_extract_oddv8qi): Ditto.
34670         (vec_interleave_lowv4hi): Format change.
34671         (vec_interleave_highv4hi): Ditto.
34672         (mix2_even): Rename from mix2_r, add endian check.
34673         (mix2_odd): Rename from mux2_l, add endian check.
34674         (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
34675         (vec_extract_evenodd_helper): Format change.
34676         (vec_extract_evenv4hi): Remove endian check.
34677         (vec_extract_oddv4hi): Remove endian check.
34678         (vec_interleave_lowv2si): Format change.
34679         (vec_interleave_highv2si): Format change.
34680         (vec_initv2si): Remove endian check.
34681         (vecinit_v2si): Add endian check.
34682         (reduc_splus_v2sf): Add endian check.
34683         (reduc_smax_v2sf): Ditto.
34684         (reduc_smin_v2sf): Ditto.
34685         (vec_initv2sf): Remove endian check.
34686         (fpack): Add endian check.
34687         (fswap): Add endian check.
34688         (vec_interleave_highv2sf): Add endian check.
34689         (vec_interleave_lowv2sf): Add endian check.
34690         (fmix_lr): Add endian check.
34691         (vec_setv2sf): Format change.
34692         (*vec_extractv2sf_0_be): Use shift to extract operand.
34693         (*vec_extractv2sf_1_be): New.
34694         (vec_pack_trunc_v4hi): Add endian check.
34695         (vec_pack_trunc_v2si): Format change.
34696
34697 2011-02-04  Jakub Jelinek  <jakub@redhat.com>
34698
34699         PR inline-asm/23200
34700         * tree-ssa-ter.c (is_replaceable_p): Add TER argument.  Don't
34701         do bb, locus and block comparison and disallow loads if it is not set.
34702         (stmt_is_replaceable_p): New function.
34703         (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
34704         callers.
34705         * expr.c (expand_expr_real_1) <case SSA_NAME>: If
34706         get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
34707         SSA_NAME_DEF_STMT.
34708         * tree-flow.h (stmt_is_replaceable_p): New prototype.
34709
34710 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
34711
34712         * config/rs6000/xilinx.opt: New.
34713         * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
34714
34715 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
34716
34717         * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
34718
34719 2011-02-03  Anatoly Sokolov  <aesok@post.ru>
34720
34721         * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
34722         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
34723         * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
34724         secondary_reload_info, xtensa_secondary_reload): Remove.
34725         * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
34726         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
34727         (xtensa_preferred_reload_class): Make static. Change return and
34728         'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
34729         Use CONST_DOUBLE_P predicate.
34730         (xtensa_preferred_output_reload_class): New function.
34731         (xtensa_secondary_reload): Make static.
34732
34733 2011-02-03  Joseph Myers  <joseph@codesourcery.com>
34734
34735         * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
34736         Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
34737         Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
34738
34739 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
34740
34741         PR middle-end/31490
34742         * output.h (SECTION_RELRO): Define.
34743         (SECTION_MACH_DEP): Adjust.
34744         (get_variable_section): New prototype.
34745         * varpool.c (varpool_finalize_named_section_flags): New function.
34746         (varpool_assemble_pending_decls): Call it.
34747         * cgraph.h (varpool_finalize_named_section_flags): New prototype.
34748         * cgraphunit.c (cgraph_output_in_order): Call
34749         varpool_finalize_named_section_flags.
34750         * varasm.c (get_section): Allow section flags conflicts between
34751         relro and read-only sections if the section hasn't been declared yet.
34752         Set SECTION_OVERRIDE after diagnosing section type conflict.
34753         (get_variable_section): No longer static.
34754         (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
34755         readonly sections that need relocations.
34756         (decl_readonly_section_1): New function.
34757         (decl_readonly_section): Use it.
34758
34759         Revert:
34760         2010-11-17  Dinar Temirbulatov  <dtemirbulatov@gmail.com>
34761                     Steve Ellcey  <sje@cup.hp.com>
34762
34763         PR middle-end/31490
34764         * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
34765         if section attribute used.
34766
34767 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
34768
34769         * config/darwin.h (SECTION_NO_ANCHOR): Remove.
34770         * config/darwin.c (SECTION_NO_ANCHOR): Define.
34771         (darwin_init_sections): Remove assertion.
34772
34773 2011-02-03  Nick Clifton  <nickc@redhat.com>
34774
34775         * config/rx/predicates.md (rx_zs_comparison_operator): Remove
34776         lt and ge.
34777         * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
34778         * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
34779         instead of "n" and "pz".
34780         (flags_from_code): LT and GE tests need CC_FLAG_O as well as
34781         CC_FLAG_S.
34782
34783 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
34784
34785         PR target/47312
34786         * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
34787         fma, expand FMA_EXPR as fma{,f,l} call.
34788
34789         PR lto/47274
34790         * lto-streamer-out.c (write_symbol): When writing kind and visibility,
34791         copy them into a unsigned char variable and pass address of it to
34792         lto_output_data_stream.
34793
34794         PR target/47564
34795         * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
34796         around backend_init_target and lang_dependent_init_target calls.
34797         * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
34798         (verify_cgraph_node): Don't call set_cfun here.  Use
34799         cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
34800         Set error_found for incorrectly represented calls to thunks.
34801
34802 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
34803
34804         PR debug/43092
34805         PR rtl-optimization/43494
34806         * rtl.h (for_each_inc_dec_fn): New type.
34807         (for_each_inc_dec): Declare.
34808         * rtlanal.c (struct for_each_inc_dec_ops): New type.
34809         (for_each_inc_dec_find_inc_dec): New fn.
34810         (for_each_inc_dec_find_mem): New fn.
34811         (for_each_inc_dec): New fn.
34812         * dse.c (struct insn_size): Remove.
34813         (replace_inc_dec, replace_inc_dec_mem): Remove.
34814         (emit_inc_dec_insn_before): New fn.
34815         (check_for_inc_dec): Use it, along with for_each_inc_dec.
34816         (canon_address): Pass mem modes to cselib_lookup.
34817         * cselib.h (cselib_lookup): Add memmode argument.  Adjust callers.
34818         (cselib_lookup_from_insn): Likewise.
34819         (cselib_subst_to_values): Likewise.
34820         * cselib.c (find_slot_memmode): New var.
34821         (cselib_find_slot): New fn.  Use it instead of
34822         htab_find_slot_with_hash everywhere.
34823         (entry_and_rtx_equal_p): Use find_slot_memmode.
34824         (autoinc_split): New fn.
34825         (rtx_equal_for_cselib_p): Rename and implement in terms of...
34826         (rtx_equal_for_cselib_1): ... this.  Take memmode, pass it on.
34827         Deal with autoinc.  Special-case recursion into MEMs.
34828         (cselib_hash_rtx): Likewise.
34829         (cselib_lookup_mem): Infer pmode from address mode.  Distinguish
34830         address and MEM modes.
34831         (cselib_subst_to_values): Add memmode, pass it on.
34832         Deal with autoinc.
34833         (cselib_lookup): Add memmode argument, pass it on.
34834         (cselib_lookup_from_insn): Add memmode.
34835         (cselib_invalidate_rtx): Discard obsolete push_operand handling.
34836         (struct cselib_record_autoinc_data): New.
34837         (cselib_record_autoinc_cb): New fn.
34838         (cselib_record_sets): Use it, along with for_each_inc_dec.  Pass MEM
34839         mode to cselib_lookup.  Reset autoinced REGs here instead of...
34840         (cselib_process_insn): ... here.
34841         * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
34842         to cselib_lookup.
34843         (add_uses): Likewise, also to cselib_subst_to_values.
34844         (add_stores): Likewise.
34845         * sched-deps.c (add_insn_mem_dependence): Pass mode to
34846         cselib_subst_to_values.
34847         (sched_analyze_1, sched_analyze_2): Likewise.  Adjusted.
34848         * gcse.c (do_local_cprop): Adjusted.
34849         * postreload.c (reload_cse_simplify_set): Adjusted.
34850         (reload_cse_simplify_operands): Adjusted.
34851         * sel-sched-dump (debug_mem_addr_value): Pass mode.
34852
34853 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
34854
34855         PR tree-optimization/45122
34856         * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
34857         unsafe assumptions when there's more than one loop exit.
34858
34859 2011-02-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
34860
34861         PR target/47272
34862         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
34863         Document using vector double with the load/store builtins, and
34864         that the load/store builtins always use Altivec instructions.
34865
34866         * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
34867         to use altivec memory instructions, even on VSX.
34868         (vector_altivec_store_<mode>): Ditto.
34869
34870         * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
34871         function.
34872
34873         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
34874         V2DF, V2DI support to load/store overloaded builtins.
34875
34876         * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
34877         altivec load/store builtins for V2DF/V2DI types.
34878
34879         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
34880         set avoid indexed addresses on power6 if -maltivec.
34881         (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
34882         vector_altivec_load/vector_altivec_store builtins.
34883         (altivec_expand_st_builtin): Ditto.
34884         (altivec_expand_builtin): Add VSX memory builtins.
34885         (rs6000_init_builtins): Add V2DI types to internal types.
34886         (altivec_init_builtins): Add support for V2DF/V2DI altivec
34887         load/store builtins.
34888         (rs6000_address_for_altivec): Insure memory address is appropriate
34889         for Altivec.
34890
34891         * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
34892         vec_vsx_ld and vec_vsx_st.
34893         (vsx_store_<mode>): Ditto.
34894
34895         * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
34896         variables to hold long long types for VSX vector memory builtins.
34897         (RS6000_BTI_unsigned_long_long): Ditto.
34898         (long_long_integer_type_internal_node): Ditti.
34899         (long_long_unsigned_type_internal_node): Ditti.
34900
34901         * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
34902         (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
34903         (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
34904
34905         * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
34906         short cuts.
34907         (vec_vsx_st): Ditto.
34908
34909 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
34910
34911         * config/pa/pa-hpux10.opt: New.
34912         * config/hpux11.opt (pthread): New Driver option.
34913         * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
34914         * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
34915
34916 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
34917
34918         * config/ia64/vms.opt: New.
34919         * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
34920
34921 2011-02-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
34922
34923         PR target/47580
34924         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
34925         gpc_reg_operand instead of vsx_register_operand to match rs6000.md
34926         generator functions.
34927         (vsx_floatuns<VSi><mode>2): Ditto.
34928         (vsx_fix_trunc<mode><VSi>2): Ditto.
34929         (vsx_fixuns_trunc<mode><VSi>2): Ditto.
34930
34931 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
34932
34933         * config/i386/djgpp.opt (posix): New Driver option.
34934
34935 2011-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
34936
34937         * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
34938         Move to the unsupported targets list.
34939
34940 2011-02-02  Peter Bergner  <bergner@vnet.ibm.com>
34941
34942         PR rtl-optimization/47525
34943         * df-scan.c: Update copyright years.
34944         (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
34945         and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
34946
34947 2011-02-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
34948
34949         * config/i386/sysv4.h (TARGET_VERSION): Remove.
34950         (SUBTARGET_RETURN_IN_MEMORY): Remove.
34951         (ASM_OUTPUT_ASCII): Remove.
34952         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
34953
34954 2011-02-02  Jeff Law  <law@redhat.com>
34955
34956         PR middle-end/47543
34957         * reload.c (find_reloads_address): Handle reg+d address where both
34958         components are invalid by reloading the entire address.
34959
34960 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
34961             Richard Guenther  <rguenther@suse.de>
34962
34963         PR tree-optimization/40979
34964         PR bootstrap/47044
34965         * passes.c (init_optimization_passes): After LIM call copy_prop
34966         and DCE to clean up.
34967         * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
34968
34969 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
34970
34971         PR tree-optimization/47576
34972         PR tree-optimization/47555
34973         * doc/invoke.texi (scev-max-expr-complexity): Documented.
34974         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
34975         (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
34976         * tree-scalar-evolution.c (follow_ssa_edge): Use
34977         PARAM_SCEV_MAX_EXPR_COMPLEXITY.
34978
34979 2011-02-02  Richard Guenther  <rguenther@suse.de>
34980
34981         PR tree-optimization/47566
34982         * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
34983
34984 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
34985
34986         PR debug/47106
34987         PR debug/47402
34988         * tree-inline.c (declare_return_variable): Remove unused caller
34989         variable.
34990
34991         PR debug/47106
34992         PR debug/47402
34993         * tree-flow-inline.h (clear_is_used, is_used_p): New.
34994         * cfgexpand.c (account_used_vars_for_block): Use them.
34995         * tree-nrv.c (tree_nrv): Likewise.
34996         * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
34997         (dump_scope_block): Likewise.
34998         (remove_unused_locals): Likewise.
34999
35000         PR debug/47106
35001         PR debug/47402
35002         * tree-inline.c (declare_return_variable): Add result decl to
35003         local decls only once.
35004         * gimple-low.c (record_vars_into): Mark newly-created variables
35005         as referenced.
35006
35007 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
35008
35009         PR debug/47498
35010         PR debug/47501
35011         PR debug/45136
35012         PR debug/45130
35013         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
35014         debug insns.
35015         (no_real_insns_p, schedule_block, set_priorities): Drop special
35016         treatment of boundary debug insns.
35017         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
35018         * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
35019         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
35020         (BOUNDARY_DEBUG_INSN_P): Likewise.
35021         (SCHEDULE_DEBUG_INSN_P): Likewise.
35022         * sched-rgn.c (init_ready_list): Drop special treatment of
35023         boundary debug insns.
35024         * final.c (rest_of_clean_state): Clear notes' BB.
35025
35026 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
35027
35028         * config/openbsd.opt (assert=): New Driver option.
35029
35030 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
35031
35032         * config/i386/nto.opt: New.
35033         * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
35034
35035 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
35036
35037         * config/i386/netware.opt: New.
35038         * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
35039
35040 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
35041
35042         * config/interix.opt (posix): New Driver option.
35043
35044 2011-02-01  DJ Delorie  <dj@redhat.com>
35045
35046         * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
35047
35048         * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
35049         class for A0/A1.
35050
35051 2011-02-01  Sebastian Pop  <sebastian.pop@amd.com>
35052
35053         PR tree-optimization/47561
35054         * toplev.c (process_options): Print the Graphite flags.  Add
35055         flag_loop_flatten to the list of options requiring Graphite.
35056
35057 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
35058
35059         * config/i386/cygming.opt (posix): New Driver option.
35060
35061 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
35062
35063         * config/arm/vxworks.opt: New.
35064         * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
35065
35066 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
35067
35068         * config/alpha/elf.opt: New.
35069         * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
35070         alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
35071
35072 2011-02-01  Richard Guenther  <rguenther@suse.de>
35073
35074         PR tree-optimization/47559
35075         * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
35076         store-motion on references that can throw.
35077
35078 2011-02-01  Bernd Schmidt  <bernds@codesourcery.com>
35079
35080         * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
35081         * tree-pass.h (TDF_CSELIB): New macro.
35082         * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
35083         cselib_lookup): Check for it rather than for TDF_DETAILS.
35084
35085 2011-02-01  H.J. Lu  <hongjiu.lu@intel.com>
35086
35087         PR driver/47547
35088         * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
35089         is HOST_BIT_BUCKET.
35090
35091         * opts.c (finish_options): Don't add x_aux_base_name if it is
35092         HOST_BIT_BUCKET.
35093
35094 2011-02-01  Richard Guenther  <rguenther@suse.de>
35095
35096         PR tree-optimization/47555
35097         Revert
35098         2010-07-15  Sebastian Pop  <sebastian.pop@amd.com>
35099
35100         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
35101
35102 2011-02-01  Sebastien Bourdeauducq  <sebastien@milkymist.org>
35103
35104         PR gcc/46692
35105         * config/lm32/t-lm32: Add multilib for all CPU options.
35106
35107 2011-02-01  Richard Guenther  <rguenther@suse.de>
35108
35109         PR tree-optimization/47541
35110         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
35111         sure to have a field at offset zero.
35112
35113 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
35114
35115         * config/arc/arc.opt (EB, EL): New Driver options.
35116
35117 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
35118
35119         * config/alpha/osf5.opt: New.
35120         * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
35121
35122 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
35123
35124         * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
35125
35126 2011-01-31  Sebastian Pop  <sebastian.pop@amd.com>
35127
35128         * common.opt (ftree-loop-linear): Use Alias to make it an alias of
35129         -floop-interchange.
35130         * invoke.texi (-ftree-loop-linear): Make it clear that this flag
35131         is an alias of -floop-interchange and that it requires the
35132         Graphite infrastructure.
35133         * tree-ssa-loop.c (gate_graphite_transforms): Do not set
35134         flag_loop_interchange based on the value of flag_tree_loop_linear.
35135
35136 2011-01-31  Jakub Jelinek  <jakub@redhat.com>
35137             Richard Guenther  <rguenther@suse.de>
35138
35139         PR tree-optimization/47538
35140         * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
35141         type instead of r1type, except for comparisons.  For right
35142         shifts and comparisons punt if there are mismatches in
35143         sizetype vs. non-sizetype types.
35144
35145 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
35146
35147         * doc/sourcebuild.texi (Effective-Target Keywords): Document
35148         avx_runtime.
35149
35150 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
35151
35152         * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
35153         version number.
35154         * configure: Regenerate.
35155
35156 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
35157
35158         * configure.ac (gcc_cv_ld_static_option): Define.
35159         (gcc_cv_ld_dynamic_option): Define.
35160         (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
35161         instead.
35162         (HAVE_LD_STATIC_DYNAMIC): Update message.
35163         (LD_STATIC_OPTION): Define.
35164         (LD_DYNAMIC_OPTION): Define.
35165         * configure: Regenerate.
35166         * config.in: Regenerate.
35167         * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
35168         HAVE_LD_STATIC_DYNAMIC]: Use them.
35169
35170 2011-01-31  Nick Clifton  <nickc@redhat.com>
35171
35172         * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
35173         registers inside interrupt handlers if the handler is not a leaf
35174         function.
35175
35176 2011-01-31  Nick Clifton  <nickc@redhat.com>
35177
35178         * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
35179         reg_renumber returning an INVALID_REGNUM.
35180
35181 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
35182
35183         PR libgcj/44341
35184         * doc/install.texi: Document host options discarded when cross
35185         configuring target libraries.
35186
35187 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
35188
35189         Reverted:
35190         2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
35191         PR debug/45136
35192         PR debug/45130
35193         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
35194         debug insns.
35195         (no_real_insns_p, schedule_block, set_priorities): Drop special
35196         treatment of boundary debug insns.
35197         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
35198         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
35199         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
35200         (BOUNDARY_DEBUG_INSN_P): Likewise.
35201         (SCHEDULE_DEBUG_INSN_P): Likewise.
35202         * sched-rgn.c (init_ready_list): Drop special treatment of
35203         boundary debug insns.
35204         * final.c (rest_of_clean-state): Clear notes' BB.
35205
35206 2011-01-31  Alan Modra  <amodra@gmail.com>
35207
35208         * config/rs6000/rs6000.c (print_operand): Rearrange addends in
35209         toc relative expressions as we do in print_operand_address.
35210
35211 2011-01-30  Kazu Hirata  <kazu@codesourcery.com>
35212
35213         * doc/extend.texi: Follow spelling conventions.
35214         * doc/invoke.texi: Fix a typo.
35215
35216 2011-01-30  Joseph Myers  <joseph@codesourcery.com>
35217
35218         * config/hpux11.opt: New.
35219         * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
35220         ia64*-*-hpux*): Use hpux11.opt.
35221
35222 2011-01-30  Jonathan Yong  <jon_y@users.sourceforge.net>
35223
35224         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
35225         to tmake_file.
35226
35227 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
35228
35229         * doc/install.texi (hppa-hp-hpux10): Remove references to HP
35230         support sites.
35231
35232 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
35233
35234         * doc/install.texi (Binaries): Remove outdated reference for
35235         Motorola 68HC11/68HC12 downloads.
35236
35237 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
35238
35239         * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
35240         Drepper's paper.
35241
35242 2011-01-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
35243
35244         PR bootstrap/47147
35245         * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
35246         used by NetBSD.
35247
35248 2011-01-28  Ahmad Sharif  <asharif@google.com>
35249
35250         * value-prof.c (check_counter): Corrected error message.
35251
35252 2011-01-29  Jie Zhang  <jie@codesourcery.com>
35253
35254         * config/arm/arm.c (arm_legitimize_reload_address): New.
35255         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
35256         arm_legitimize_reload_address.
35257         * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
35258
35259 2011-01-28  Ian Lance Taylor  <iant@google.com>
35260
35261         * godump.c (go_define): Ignore macros whose definitions include
35262         two adjacent operands.
35263
35264 2011-01-28  Jakub Jelinek  <jakub@redhat.com>
35265
35266         PR target/42894
35267         * varasm.c (force_const_mem): Store copy of x in desc->constant
35268         instead of x itself.
35269         * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
35270         itself into REG_EQUAL note.
35271
35272 2011-01-28  Joseph Myers  <joseph@codesourcery.com>
35273
35274         * config/freebsd.opt (posix, rdynamic): New Driver options.
35275
35276 2011-01-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
35277
35278         * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
35279         -Bstatic/-Bdynamic.
35280         * configure: Regenerate.
35281
35282 2011-01-27  Joseph Myers  <joseph@codesourcery.com>
35283
35284         * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
35285         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
35286
35287 2011-01-27  Anatoly Sokolov  <aesok@post.ru>
35288
35289         * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
35290         * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
35291         * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
35292         (s390_preferred_reload_class): Make static. Change return and
35293         'rclass' argument type to reg_class_t.
35294
35295 2011-01-27  Jan Hubicka  <jh@suse.cz>
35296
35297         PR middle-end/46949
35298         * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
35299         (process_function_and_variable_attributes): Check defined weakrefs.
35300
35301 2011-01-27  Martin Jambor  <mjambor@suse.cz>
35302
35303         PR tree-optimization/47228
35304         * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
35305         build_ref_for_offset.
35306
35307 2011-01-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
35308
35309         * config/spu/spu-elf.h (ASM_SPEC): Remove.
35310
35311 2011-01-26  Mikael Pettersson  <mikpe@it.uu.se>
35312
35313         PR rtl-optimization/46856
35314         * postreload.c (reload_combine_recognize_const_pattern): Do not
35315         separate cc0 setter and user on cc0 targets.
35316
35317 2011-01-26  Nicola Pero  <nicola.pero@meta-innovation.com>
35318
35319         PR c/43082
35320         * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
35321         passed a VOID_TYPE expression, immediately emit an error and
35322         return error_mark_node.
35323
35324 2011-01-26  Jeff Law  <law@redhat.com>
35325
35326         PR rtl-optimization/47464
35327         * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
35328         rather than may_trap_p as needed.
35329
35330 2011-01-26  DJ Delorie  <dj@redhat.com>
35331
35332         PR rtl-optimization/46878
35333         * combine.c (insn_a_feeds_b): Check for the implicit cc0
35334         setter/user dependency as well.
35335
35336 2011-01-26  Eric Botcazou  <ebotcazou@adacore.com>
35337
35338         PR rtl-optimization/44469
35339         * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
35340         after removing trivially dead basic blocks.
35341
35342 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
35343
35344         * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
35345         * config/frv/frv.h (LINK_SPEC): Likewise.
35346         * config/i386/netware.h (LINK_SPEC): Likewise.
35347         * config/m68k/linux.h (ASM_SPEC): Likewise.
35348         * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
35349         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
35350         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
35351         * config/sparc/linux.h (ASM_SPEC): Likewise.
35352         * config/sparc/linux64.h (ASM_SPEC): Likewise.
35353         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
35354
35355 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
35356
35357         * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
35358         * config/frv/frv.h (ASM_SPEC): Likewise.
35359         * config/m68k/linux.h (ASM_SPEC): Likewise.
35360         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
35361         * config/rs6000/linux64.h (ASM_SPEC): Likewise.
35362         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
35363         * config/sparc/linux.h (ASM_SPEC): Likewise.
35364         * config/sparc/linux64.h (ASM_SPEC): Likewise.
35365         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
35366
35367 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
35368
35369         * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
35370         * config/frv/frv.h (LINK_SPEC): Likewise.
35371         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
35372
35373 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
35374
35375         * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
35376         * config/frv/frv.h (ASM_SPEC): Likewise.
35377         * config/i386/sol2-10.h (ASM_SPEC): Likewise.
35378         * config/m68k/linux.h (ASM_SPEC): Likewise.
35379         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
35380         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
35381         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
35382         * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
35383         * config/sparc/linux.h (ASM_SPEC): Likewise.
35384         * config/sparc/linux64.h (ASM_SPEC): Likewise.
35385         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
35386         * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
35387
35388 2011-01-26  Steve Ellcey  <sje@cup.hp.com>
35389
35390         PR target/46997
35391         * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
35392         (*mux2): Ditto.
35393         (vec_extract_evenodd_help): Ditto.
35394         (vec_extract_evenv4hi): Ditto.
35395         (vec_extract_oddv4hi): Ditto.
35396         (vec_interleave_lowv2si): Ditto.
35397         (vec_interleave_highv2si): Ditto.
35398         (vec_extract_evenv2si): Ditto.
35399         (vec_extract_oddv2si: Ditto.
35400         (vec_pack_trunc_v2si): Ditto.
35401
35402 2011-01-22  Jan Hubicka  <jh@suse.cz>
35403
35404         PR target/47237
35405         * cgraph.h (cgraph_local_info): New field can_change_signature.
35406         * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
35407         signature can change.
35408         (ipcp_estimate_growth): Call sequence simplify only if calle signature
35409         can change.
35410         (ipcp_insert_stage): Only compute args_to_skip if signature can change.
35411         (cgraph_function_versioning): We can not change signature of functions
35412         that don't allow that.
35413         * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
35414         (lto_input_node): Likewise.
35415         * ipa-inline.c (compute_inline_parameters): Compute
35416         local.can_change_signature.
35417         * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
35418         * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
35419         functions that can not change signature.
35420         * i386.c (ix86_function_regparm, ix86_function_sseregparm,
35421         init_cumulative_args): Do not use local calling conventions
35422         for functions that can not change signature.
35423
35424 2011-01-22  Jan Hubicka  <jh@suse.cz>
35425
35426         * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
35427
35428 2011-01-26  Richard Guenther  <rguenther@suse.de>
35429
35430         PR tree-optimization/47190
35431         * cgraphunit.c (process_common_attributes): New function.
35432         (process_function_and_variable_attributes): Use it.
35433
35434 2011-01-26  Richard Guenther  <rguenther@suse.de>
35435
35436         PR lto/47423
35437         * cgraphbuild.c (record_eh_tables): Record reference to personality
35438         function.
35439
35440 2011-01-26  Alexandre Oliva  <aoliva@redhat.com>
35441
35442         PR debug/45454
35443         * sel-sched.c (moveup_expr): Don't let debug insns prevent
35444         non-debug insns from moving up.
35445
35446 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
35447
35448         PR target/40125
35449         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
35450         t-dlldir{,-x} fragment for build and add it to tmake_file.
35451         (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
35452         * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
35453         * config/i386/t-dlldir: New file.
35454         (SHLIB_DLLDIR): Define.
35455         * config/i386/t-dlldir-x: New file.
35456         (SHLIB_DLLDIR): Define.
35457         * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
35458         (SHLIB_INSTALL): Use it.
35459
35460 2011-01-26  Chung-Lin Tang  <cltang@codesourcery.com>
35461
35462         PR target/47246
35463         * config/arm/arm.c (thumb2_legitimate_index_p): Change the
35464         lower bound of the allowed Thumb-2 coprocessor load/store
35465         index range to -256. Add explaining comment.
35466
35467 2011-01-25  Ian Lance Taylor  <iant@google.com>
35468
35469         * godump.c (go_define): Improve lexing of macro expansion to only
35470         accept expressions which match Go spec.
35471
35472 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
35473
35474         PR c++/43601
35475         * tree.c (handle_dll_attribute): Handle it.
35476         * doc/extend.texi (@item dllexport): Mention it.
35477         * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
35478
35479 2011-01-25  Ian Lance Taylor  <iant@google.com>
35480
35481         PR tree-optimization/26854
35482         * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
35483         (decl_jump_unsafe): Move higher in file, with no other change.
35484         (bind): Set has_jump_unsafe_decl if appropriate.
35485         (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
35486         (check_earlier_gotos): Likewise.
35487         (c_check_switch_jump_warnings): Likewise.
35488
35489 2011-01-25  Jonathan Wakely  <jwakely.gcc@gmail.com>
35490
35491         * doc/invoke.texi (Warning Options): Add missing hyphen.
35492         (-fprofile-dir): Minor grammatical fixes.
35493         (-fbranch-probabilities): Likewise.
35494
35495 2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
35496
35497         PR debug/45136
35498         PR debug/45130
35499         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
35500         debug insns.
35501         (no_real_insns_p, schedule_block, set_priorities): Drop special
35502         treatment of boundary debug insns.
35503         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
35504         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
35505         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
35506         (BOUNDARY_DEBUG_INSN_P): Likewise.
35507         (SCHEDULE_DEBUG_INSN_P): Likewise.
35508         * sched-rgn.c (init_ready_list): Drop special treatment of
35509         boundary debug insns.
35510         * final.c (rest_of_clean-state): Clear notes' BB.
35511
35512 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
35513
35514         * Makefile.in (LAMBDA_H): Removed.
35515         (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
35516         (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
35517         lambda-trans.o, and tree-loop-linear.o.
35518         (lto-symtab.o): Remove dependence on LAMBDA_H.
35519         (tree-loop-linear.o): Remove rule.
35520         (lambda-mat.o): Same.
35521         (lambda-trans.o): Same.
35522         (lambda-code.o): Same.
35523         (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
35524         (tree-vect-slp.o): Same.
35525         * hwint.h (gcd): Moved here.
35526         (least_common_multiple): Same.
35527         * lambda-code.c: Removed.
35528         * lambda-mat.c: Removed.
35529         * lambda-trans.c: Removed.
35530         * lambda.h: Removed.
35531         * tree-loop-linear.c: Removed.
35532         * lto-symtab.c: Do not include lambda.h.
35533         * omega.c (gcd): Removed.
35534         * passes.c (init_optimization_passes): Remove pass_linear_transform.
35535         * tree-data-ref.c (print_lambda_vector): Moved here.
35536         (lambda_vector_copy): Same.
35537         (lambda_matrix_copy): Same.
35538         (lambda_matrix_id): Same.
35539         (lambda_vector_first_nz): Same.
35540         (lambda_matrix_row_add): Same.
35541         (lambda_matrix_row_exchange): Same.
35542         (lambda_vector_mult_const): Same.
35543         (lambda_vector_negate): Same.
35544         (lambda_matrix_row_negate): Same.
35545         (lambda_vector_equal): Same.
35546         (lambda_matrix_right_hermite): Same.
35547         * tree-data-ref.h: Do not include lambda.h.
35548         (lambda_vector): Moved here.
35549         (lambda_matrix): Same.
35550         (dependence_level): Same.
35551         (lambda_transform_legal_p): Removed declaration.
35552         (lambda_collect_parameters): Same.
35553         (lambda_compute_access_matrices): Same.
35554         (lambda_vector_gcd): Same.
35555         (lambda_vector_new): Same.
35556         (lambda_vector_clear): Same.
35557         (lambda_vector_lexico_pos): Same.
35558         (lambda_vector_zerop): Same.
35559         (lambda_matrix_new): Same.
35560         * tree-flow.h (least_common_multiple): Removed declaration.
35561         * tree-parloops.c (lambda_trans_matrix): Moved here.
35562         (LTM_MATRIX): Same.
35563         (LTM_ROWSIZE): Same.
35564         (LTM_COLSIZE): Same.
35565         (LTM_DENOMINATOR): Same.
35566         (lambda_trans_matrix_new): Same.
35567         (lambda_matrix_vector_mult): Same.
35568         (lambda_transform_legal_p): Same.
35569         * tree-pass.h (pass_linear_transform): Removed declaration.
35570         * tree-ssa-loop.c (tree_linear_transform): Removed.
35571         (gate_tree_linear_transform): Removed.
35572         (pass_linear_transform): Removed.
35573         (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
35574         flag_loop_interchange.
35575
35576 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
35577
35578         PR tree-optimization/47265
35579         PR tree-optimization/47443
35580         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
35581         if name still has some uses.
35582
35583 2011-01-25  Martin Jambor  <mjambor@suse.cz>
35584
35585         PR tree-optimization/47382
35586         * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
35587         (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
35588
35589 2011-01-25  Joel Sherrill  <joel.sherrill@oarcorp.com>
35590
35591         * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
35592         sjlj_except_unwind_info.
35593
35594 2011-01-25  Richard Guenther  <rguenther@suse.de>
35595
35596         PR tree-optimization/47426
35597         * tree-ssa-structalias.c (ipa_pta_execute): Make externally
35598         visible functions results escape.
35599
35600 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
35601
35602         PR target/45701
35603         * config/arm/arm.c (any_sibcall_uses_r3): New function.
35604         (arm_get_frame_offsets): Use it.
35605
35606 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
35607             Jakub Jelinek  <jakub@redhat.com>
35608
35609         PR tree-optimization/47271
35610         * tree-if-conv.c (bb_postdominates_preds): New.
35611         (if_convertible_bb_p): Call bb_postdominates_preds.
35612         (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
35613         (predicate_scalar_phi): Call bb_postdominates_preds.
35614
35615 2011-01-25  Nick Clifton  <nickc@redhat.com>
35616
35617         * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
35618         * config/rx/rx.c (rx_function_value): Likewise.
35619         (rx_promote_function_mode): Likewise.
35620         (gen_safe_add): Place an outsized immediate value inside an UNSPEC
35621         in order to make it legitimate.
35622         * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
35623         make sure that the first operand is the same as the result register.
35624         (addsi3_unspec): Delete.
35625         (subdi3): Do not accept immediate operands.
35626         (subdi3_internal): Likewise.
35627
35628 2011-01-25  Jeff Law  <law@redhat.com>
35629
35630         PR rtl-optimization/37273
35631         * ira-costs.c (scan_one_insn): Detect constants living in memory and
35632         handle them like argument loads from stack slots.  Do not double
35633         count memory for memory constants and argument loads from stack slots.
35634
35635 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
35636
35637         PR tree-optimization/47427
35638         PR tree-optimization/47428
35639         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
35640         coalesce if the new root var would be TREE_READONLY.
35641
35642 2011-01-25  Richard Guenther  <rguenther@suse.de>
35643
35644         PR middle-end/47414
35645         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
35646         correct type for TBAA.
35647
35648 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
35649
35650         * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
35651         (close_phi_written_to_memory): Call for_each_index with
35652         dr_indices_valid_in_loop.
35653
35654 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
35655
35656         * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
35657         when it is initialized.
35658
35659 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
35660
35661         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
35662         call to graphite_find_data_references_in_stmt.
35663         * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
35664         (try_generate_gimple_bb): Call outermost_loop_in_sese_1.  Update
35665         call to graphite_find_data_references_in_stmt.
35666         (analyze_drs_in_stmts): Same.
35667         * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
35668         in which the scalar analysis of indices is performed.
35669         (create_data_ref): Same.  Update call to dr_analyze_indices.
35670         (find_data_references_in_stmt): Update call to create_data_ref.
35671         (graphite_find_data_references_in_stmt): Same.
35672         * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
35673         declaration.
35674         (create_data_ref): Same.
35675         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
35676         call to create_data_ref.
35677
35678 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
35679
35680         * graphite-sese-to-poly.c (build_poly_scop): Move
35681         rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
35682
35683 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
35684
35685         * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
35686         VAR_DECL, PARM_DECL, and RESULT_DECL.
35687
35688 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
35689
35690         * graphite-dependences.c (reduction_dr_1): Allow several reductions
35691         in a reduction PBB.
35692         * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
35693         that have already been marked as PBB_IS_REDUCTION.
35694
35695 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
35696
35697         * graphite-scop-detection.c (same_close_phi_node): New.
35698         (remove_duplicate_close_phi): New.
35699         (make_close_phi_nodes_unique): New.
35700         (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
35701
35702 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
35703
35704         * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
35705         * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
35706         of both data references to be the same.
35707
35708 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
35709
35710         * graphite-dependences.c (build_lexicographical_constraint): Remove
35711         the gdim parameter.
35712         (build_lexicographical_constraint): Adjust call to
35713         ppl_powerset_is_empty.
35714         (dependence_polyhedron): Same.
35715         (graphite_legal_transform_dr): Same.
35716         (graphite_carried_dependence_level_k): Same.
35717         * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
35718         parameter.
35719         * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
35720
35721 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
35722
35723         * graphite-sese-to-poly.c
35724         (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
35725         (close_phi_written_to_memory): New.
35726         (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
35727         and unshare_expr.
35728
35729 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
35730
35731         * doc/install.texi: Update the expected version number of PPL to 0.11.
35732         * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
35733         #if PPL_VERSION_MINOR < 11.
35734
35735 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
35736
35737         * graphite-dependences.c: Include graphite-cloog-util.h.
35738         (new_poly_ddr): Inlined into dependence_polyhedron.
35739         (free_poly_ddr): Moved close by new_poly_ddr.
35740         (dependence_polyhedron_1): Renamed dependence_polyhedron.
35741         Early return NULL when ppl_powerset_is_empty returns true.
35742         (dependence_polyhedron): Renamed new_poly_ddr.  Call only once
35743         poly_drs_may_alias_p.  Avoid one call to ppl_powerset_is_empty.
35744         (graphite_legal_transform_dr): Call new_poly_ddr.
35745         (graphite_carried_dependence_level_k): Same.
35746         (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2.  Use new_poly_ddr.
35747         (dot_transformed_deps_stmt_1): Removed.
35748         (dot_deps_stmt_1): Call dot_deps_stmt_2.
35749         (dot_original_deps): Renamed dot_deps_2.  Call new_poly_ddr.
35750         (dot_deps_1): Call dot_deps_2.
35751         * Makefile.in (graphite-dependences.o): Add missing dependence on
35752         graphite-cloog-util.h.
35753
35754 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
35755
35756         * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
35757         (build_lexicographical_constraint): Same.
35758         (dependence_polyhedron_1): Same.
35759         (graphite_legal_transform_dr): Same.
35760         (graphite_carried_dependence_level_k): Same.
35761         * graphite-ppl.c (ppl_powerset_is_empty): New.
35762         * graphite-ppl.h (ppl_powerset_is_empty): Declared.
35763         * tree-data-ref.c (dump_data_reference): Print the basic block index.
35764
35765 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
35766
35767         * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
35768         the "a followed by b" relation and document it.
35769
35770 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
35771
35772         * graphite-dependences.c (build_lexicographical_constraint): Stop the
35773         iteration when the bag of constraints is empty.
35774
35775 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
35776
35777         * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
35778
35779 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
35780
35781         * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
35782         nest and two loop depths as parameters.
35783         (lst_try_interchange_loops): Call lst_interchange_profitable_p after
35784         lst_perfect_nestify.
35785
35786 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
35787
35788         * graphite-dependences.c (print_pddr): Call
35789         ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
35790
35791 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
35792
35793         * graphite-ppl.c (debug_gmp_value): New.
35794         * graphite-ppl.h (debug_gmp_value): Declared.
35795
35796 2011-01-25  Tobias Grosser  <grosser@fim.uni-passau.de>
35797
35798         * doc/install.texi: Document availability of cloog-0.16.
35799
35800 2011-01-25  Vladimir Kargov  <kargov@gmail.com>
35801
35802         * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
35803         invalid postdominance info.
35804
35805 2011-01-24  Jan Hubicka  <jh@suse.cz>
35806
35807         PR c/21659
35808         * doc/extend.texi (weak pragma): Drop claim that it must
35809         appear before definition.
35810         * varasm.c (merge_weak, declare_weak): Only sanity check
35811         that DECL is not output at a time it is declared weak.
35812
35813 2011-01-24  Kenneth Zadeck  <zadeck@naturalbridge.com>
35814
35815         * machmode.def: Fixed comments.
35816
35817 2011-01-24  Kai Tietz  <kai.tietz@onevision.com>
35818
35819         * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
35820
35821 2011-01-24  Paul Koning  <ni1d@arrl.net>
35822
35823         * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
35824         WORDS_BIG_ENDIAN.
35825
35826 2011-01-24  H.J. Lu  <hongjiu.lu@intel.com>
35827
35828         PR target/46519
35829         * config/i386/i386.c: Include sbitmap.h and fibheap.h.
35830         (block_info): Add scanned and prev.
35831         (move_or_delete_vzeroupper_2): Return if the basic block
35832         has been scanned and the upper 128bit state is unchanged
35833         from the last scan.
35834         (move_or_delete_vzeroupper_1): Return true if the exit
35835         state is changed.
35836         (move_or_delete_vzeroupper): Visit basic blocks using the
35837         work-list based algorithm based on vt_find_locations in
35838         var-tracking.c.
35839
35840         * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
35841
35842 2011-01-24  Nick Clifton  <nickc@redhat.com>
35843
35844         * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
35845         * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
35846         -mv850e1 to the assembler.  If -mv850e1 or -mv850es is specified
35847         then define __v850e1__.
35848         * doc/invoke.texi: Document -mv850es.
35849
35850 2011-01-24  Richard Henderson  <rth@redhat.com>
35851
35852         * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
35853         compound unordered comparisons.
35854         * config/rx/rx.c (rx_split_fp_compare): Remove.
35855         * config/rx/rx-protos.h: Update.
35856         * config/rx/rx.md (gcc_conds, rx_conds): Remove.
35857         (cbranchsf4): Don't call rx_split_fp_compare.
35858         (*cbranchsf4): Use rx_split_cbranch.
35859         (*cmpsf): Don't accept "i" constraint.
35860         (*conditional_branch): Only valid after reload.
35861         (cstoresf4): Merge expander with insn.  Don't call rx_split_fp_compare.
35862
35863 2011-01-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
35864
35865         PR target/47385
35866         * config/rs6000/altivec.md (vector constant splitters): Add
35867         support for creating vector single precision constants if -mvsx is
35868         used and we would create the constant using Altivec primitives.
35869
35870 2011-01-23  Bernd Schmidt  <bernds@codesourcery.com>
35871             Richard Sandiford  <rdsandiford@googlemail.com>
35872
35873         PR rtl-optimization/47166
35874         * reload1.c (emit_reload_insns): Disable the spill_reg_store
35875         mechanism for PRE_MODIFY and POST_MODIFY.
35876         (inc_for_reload): For PRE_MODIFY, return the insn that sets the
35877         reloadreg.
35878
35879 2011-01-23  Andreas Schwab  <schwab@linux-m68k.org>
35880
35881         * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
35882
35883 2011-01-22  Jan Hubicka  <jh@suse.cz>
35884
35885         PR lto/47333
35886         * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
35887
35888 2011-01-22  Jan Hubicka  <jh@suse.cz>
35889
35890         PR tree-optimization/43884
35891         PR lto/44334
35892         * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
35893         * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
35894
35895 2011-01-22  Anatoly Sokolov  <aesok@post.ru>
35896
35897         * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
35898         * config/s390/s390.c (s390_register_move_cost,
35899         s390_memory_move_cost): New.
35900         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
35901
35902 2011-01-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
35903
35904         PR middle-end/47401
35905         * except.c (sjlj_assign_call_site_values): Move setting the
35906         crtl->uses_eh_lsda flag to ...
35907         (sjlj_mark_call_sites): ... here.
35908         (sjlj_emit_function_enter): Support NULL dispatch label.
35909         (sjlj_build_landing_pads): In a function with no landing pads
35910         that still has must-not-throw regions, generate code to register
35911         a personality function with empty LSDA.
35912
35913 2011-01-21  Richard Henderson  <rth@redhat.com>
35914
35915         * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
35916
35917         * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
35918
35919         * compare-elim.c: New file.
35920         * Makefile.in (OBJS-common): Add it.
35921         (compare-elim.o): New.
35922         * common.opt (fcompare-elim): New.
35923         * opts.c (default_options_table): Add OPT_fcompare_elim.
35924         * tree-pass.h (pass_compare_elim_after_reload): New.
35925         * passes.c (init_optimization_passes): Add it.
35926         * recog.h: Protect against re-inclusion.
35927         * target.def (TARGET_FLAGS_REGNUM): New POD hook.
35928         * doc/invoke.texi (-fcompare-elim): Document it.
35929         * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
35930         * doc/tm.texi: Rebuild.
35931
35932 2011-01-22  Nick Clifton  <nickc@redhat.com>
35933
35934         * config/rx/rx.md (cstoresf4): Pass comparison operator to
35935         rx_split_fp_compare.
35936
35937 2011-01-22  Nick Clifton  <nickc@redhat.com>
35938
35939         * config/rx/rx.md (UNSPEC_CONST): New.
35940         (deallocate_and_return): Wrap the amount popped off the stack in
35941         an UNSPEC_CONST in order to stop it being rejected by
35942         -mmax-constant-size.
35943         (pop_and_return): Add a "(return)" rtx.
35944         (call): Drop the immediate operand.
35945         (call_internal): Likewise.
35946         (call_value): Likewise.
35947         (call_value_internal): Likewise.
35948         (sibcall_internal): Likewise.
35949         (sibcall_value_internal): Likewise.
35950         (sibcall): Likewise.  Generate an explicit call using
35951         sibcall_internal.
35952         (sibcall_value): Likewise.
35953         (mov<>): FAIL if a constant operand is not legitimate.
35954         (addsi3_unpsec): New pattern.
35955
35956         * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
35957         (ok_for_max_constant): New function.
35958         (gen_safe_add): New function.
35959         (rx_expand_prologue): Use gen_safe_add.
35960         (rx_expand_epilogue): Likewise.
35961         (rx_is_legitimate_constant): Use ok_for_max_constant.  Handle
35962         UNSPEC CONSTs.
35963
35964 2011-01-21  Jeff Law  <law@redhat.com>
35965
35966         PR tree-optimization/47053
35967         * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
35968         (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
35969         statements are deleted.
35970         (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP.  If NEED_EH_CLEANUP
35971         is nonempty, then purge dead edges and cleanup the CFG.
35972
35973 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
35974
35975         PR debug/47402
35976         Temporarily revert:
35977         2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
35978         PR debug/47106
35979         * tree-dfa.c (create_var_ann): Mark variable as used.
35980
35981 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
35982
35983         PR middle-end/45566
35984         * except.c (convert_to_eh_region_ranges): Emit queued no-region
35985         notes from other section in hot/cold partitioning even if
35986         last_action is -3.  Increment call_site_base.
35987
35988         PR rtl-optimization/47366
35989         * fwprop.c (forward_propagate_into): Return bool.  If
35990         any changes are made, -fnon-call-exceptions is used and
35991         REG_EH_REGION note is present, call purge_dead_edges
35992         and return true if it purged anything.
35993         (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
35994         any EH edges were purged.
35995
35996 2011-01-21  Jeff Law  <law@redhat.com>
35997
35998         PR rtl-optimization/41619
35999         * caller-save.c (setup_save_areas): Break out code to determine
36000         which hard regs are live across calls by examining the reload chains
36001         so that it is always used.
36002         Eliminate code which checked REG_N_CALLS_CROSSED.
36003
36004 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
36005
36006         PR tree-optimization/47355
36007         * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
36008         NOP has non-debug uses beyond PHIs in new_bb.
36009
36010 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
36011
36012         PR debug/47106
36013         * cfgexpand.c (account_used_vars_for_block): Only account vars
36014         that are annotated as used.
36015         (estimated_stack_frame_size): Don't set TREE_USED.
36016         * tree-dfa.c (create_var_ann): Mark variable as used.
36017
36018 2011-01-21  Richard Guenther  <rguenther@suse.de>
36019
36020         PR middle-end/47395
36021         * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
36022
36023 2011-01-21  Richard Guenther  <rguenther@suse.de>
36024
36025         PR tree-optimization/47365
36026         * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
36027         (vn_reference_lookup_pieces): Adjust.
36028         (vn_reference_lookup): Likewise.
36029         * tree-ssa-sccvn.c (vn_walk_kind): New static global.
36030         (vn_reference_lookup_3): Only look through kills if in
36031         VN_WALKREWRITE mode.
36032         (vn_reference_lookup_pieces): Adjust.
36033         (vn_reference_lookup): Likewise.
36034         (visit_reference_op_load): Likewise.
36035         (visit_reference_op_store): Likewise.
36036         * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
36037         (compute_avail): Likewise.
36038         (eliminate): Likewise.
36039
36040 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
36041
36042         * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
36043         DECL_IGNORED_P non-reg vars if they are used.
36044
36045         PR tree-optimization/47391
36046         * varpool.c (const_value_known_p): Return false if
36047         decl is volatile.
36048
36049 2011-01-21  Kai Tietz  <kai.tietz@onevision.com>
36050
36051         PR bootstrap/47215
36052         * config/i386/i386.c (ix86_local_alignment): Handle
36053         case for va_list_type_node is nil.
36054         (ix86_canonical_va_list_type): Likewise.
36055
36056 2011-01-21  Alan Modra  <amodra@gmail.com>
36057
36058         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
36059         builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
36060
36061 2011-01-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
36062
36063         * config/arm/arm.md (define_attr type): Rename f_load
36064         and f_store to f_fpa_load and f_fpa_store. Update.
36065         (write_conflict): Deal with rename fallout.
36066         (*push_fp_multi): Likewise.
36067         * config/arm/fpa.md (f_load): Use f_fpa_load.
36068         (f_store): Use f_fpa_store.
36069         (*movsf_fpa): Likewise.
36070         (*movdf_fpa): Likewise.
36071         (*movxf_fpa): Likewise.
36072         (*thumb2_movsf_fpa): Likewise.
36073         (*thumb2_movdf_fpa): Likewise.
36074         (*thumb2_movxf_fpa): Likewise.
36075         * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
36076         f_loadd and f_stored.
36077         (*thumb2_movdi_vfp): Likewise.
36078         (*thumb2_movsf_vfp): Fix attribute to f_loads.
36079         (*thumb2_movsi_vfp): Likewise.
36080         * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
36081         Use f_loads instead of f_load.
36082         * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
36083
36084 2011-01-20  Anatoly Sokolov  <aesok@post.ru>
36085
36086         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
36087         * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
36088         * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
36089         (xtensa_mode_dependent_address_p): New function.
36090         (constantpool_address_p): Make static. Change return type to bool.
36091         Change argument type to const_rtx. Use CONST_INT_P predicate.
36092
36093 2011-01-20  Alexandre Oliva  <aoliva@redhat.com>
36094
36095         PR debug/46583
36096         * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
36097
36098 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
36099
36100         PR debug/47283
36101         * cfgexpand.c (expand_debug_expr): Instead of generating
36102         (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
36103         etc. handling.
36104
36105 2011-01-20  Richard Guenther  <rguenther@suse.de>
36106
36107         PR middle-end/47370
36108         * tree-inline.c (remap_gimple_op_r): Recurse manually for
36109         the pointer operand of MEM_REFs.
36110
36111 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
36112
36113         PR tree-optimization/46130
36114         * ipa-split.c (consider_split): If return_bb contains non-virtual
36115         PHIs other than for retval or if split_function would not adjust it,
36116         refuse to split.
36117
36118 2011-01-20  Richard Guenther  <rguenther@suse.de>
36119
36120         PR tree-optimization/47167
36121         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
36122         Revert previous change, only avoid enumeral type changes.
36123
36124 2011-01-19  Mike Stump  <mikestump@comcast.net>
36125
36126         * doc/tm.texi.in (BRANCH_COST): Englishify.
36127         * doc/tm.texi (BRANCH_COST): Likewise.
36128
36129 2011-01-19  Dodji Seketeli  <dodji@redhat.com>
36130
36131         PR c++/47291
36132         * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
36133         (gen_scheduled_generic_parms_dies): New functions.
36134         (gen_struct_or_union_type_die): Schedule template parameters DIEs
36135         generation for the end of CU compilation.
36136         (dwarf2out_finish): Generate template parameters DIEs here.
36137
36138 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
36139
36140         PR debug/46240
36141         * tree-into-ssa.c (maybe_register_def): Do not attempt to add
36142         debug bind stmt on merge edges.
36143
36144 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
36145
36146         PR debug/47079
36147         PR debug/46724
36148         * function.c (instantiate_expr): Instantiate incoming rtl of
36149         implicit arguments, and recurse on VALUE_EXPRs.
36150         (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
36151         * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
36152
36153 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
36154
36155         * c-parser.c (c_parser_for_statement): Initialize
36156         collection_expression.
36157
36158 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
36159
36160         * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
36161
36162 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
36163
36164         * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
36165         (LINK_SHLIB_SPEC): Don't use %(link_path).
36166         (SUBTARGET_EXTRA_SPECS): Remove link_path.
36167
36168 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
36169
36170         * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
36171         (NO_SHARED_LIB_SUPPORT): Remove.
36172         (LINK_SHLIB_SPEC): Remove one conditional definition.
36173
36174 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
36175
36176         * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
36177         %{call_shared}.
36178         * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
36179         * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
36180         * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
36181         %{call_shared} and conditionals on these options not being passed.
36182         * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
36183         %{call_shared}.
36184
36185 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
36186
36187         * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
36188         simplify.
36189
36190         * ipa-split.c: Spelling fixes.
36191
36192 2011-01-19  Richard Henderson  <rth@redhat.com>
36193
36194         * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
36195         (*mulsi3): Likewise.
36196
36197         * longlong.h [__mn10300__] (count_leading_zeros): New.
36198         [__mn10300__] (umul_ppmm, smul_ppmm): New.
36199         [__mn10300__] (add_ssaaaa, subddmmss): New.
36200         [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
36201         [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
36202
36203 2011-01-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
36204
36205         * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
36206
36207 2011-01-19  Richard Henderson  <rth@redhat.com>
36208
36209         * config/mn10300/mn10300.md (addsi3_flags): New.
36210         (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
36211         (subsi3_flags, subc_internal, subdi3): New.
36212         (subdi3_internal, *subdi3_degenerate): New.
36213         * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
36214
36215         * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
36216         (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
36217         (mn10300_expand_epilogue): Use it.  Compute REG_SAVE_BYTES once.
36218         * config/mn10300/mn10300-protos.h: Update.
36219         * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
36220         (return_ret): Likewise.  Rename from return_internal_regs.
36221         (return_internal): Remove.
36222
36223         * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
36224         (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
36225         (mn10300_legitimate_constant_p): Likewise.
36226         (mn10300_can_use_return_insn): Use mn10300_initial_offset.
36227         (mn10300_frame_size): New.
36228         (mn10300_expand_prologue): Use it.
36229         (mn10300_expand_epilogue): Likewise.
36230         (mn10300_initial_offset): Likewise.
36231         * config/mn10300/mn10300-protos.h: Update.
36232         * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
36233         * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
36234         (prologue, epilogue, return_internal): Tidy output code.
36235         (mn10300_store_multiple_operation, return): Likewise.
36236         (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
36237         (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
36238         (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
36239         (load_pic, am33_load_pic): New.
36240         (mn10300_load_pic0, mn10300_load_pic1): New.
36241
36242         * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
36243         * config/mn10300/mn10300.c (CC_FLAG_Z): New.
36244         (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
36245         (cc_flags_for_mode, cc_flags_for_code): New.
36246         (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
36247         overflow flag is not valid.  Validate that the flags we need
36248         for the comparison are valid.
36249         (mn10300_output_cmp): Remove.
36250         (mn10300_output_add): New.
36251         (mn10300_select_cc_mode): Use cc_flags_for_code.
36252         (mn10300_split_cbranch): New.
36253         (mn10300_match_ccmode): New.
36254         (mn10300_split_and_operand_count): New.
36255         * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
36256         to the function.
36257         * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
36258         (addsi3): ... here.  Use mn10300_output_add.
36259         (*addsi3_flags): New.
36260         (*am33_subsi3, *mn10300_subsi3): Merge...
36261         (subsi3): ... here.  Use attribute isa.
36262         (*subsi3_flags): New.
36263         (negsi2): Rewrite from expander to insn_and_split.  Use NOT+INC
36264         when possible.
36265         (*am33_andsi3, *mn10300_andsi3): Merge...
36266         (andsi3): ... here.
36267         (*andsi3_flags): New.
36268         (andsi3 splitters): New.
36269         (*am33_iorsi3, *mn10300_iorsi3): Merge...
36270         (iorsi3): ... here.
36271         (*iorsi3_flags): New.
36272         (*am33_xorsi3, *mn10300_xorsi3): Merge...
36273         (xorsi3): ... here.
36274         (*xorsi3_flags): New.
36275         (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
36276         (one_cmplsi2): ... here.
36277         (*one_cmplsi2_flags): New.
36278         (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload.  Use "r"
36279         instead of "dax" in constraints.  Use mn10300_split_cbranch.
36280         (*cmpsi): Rename from cmpsi.  Do not use mn10300_output_cmp.  Do not
36281         use matching constraints to eliminate a self-comparison.
36282         (*integer_conditional_branch): Rename from integer_conditional_branch.
36283         Use int_mode_flags to match CC_REG.
36284         (*cbranchsi4_btst, *btstsi): New.
36285         (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload.  Use
36286         mn10300_split_cbranch.
36287         (*am33_cmpsf): Rename from am33_cmpsf.
36288         (*float_conditional_branch): Rename from float_conditional_branch.
36289         (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
36290         (zero_extendqisi2): ... here.
36291         (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
36292         (zero_extendhisi2): ... here.
36293         (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
36294         (extendqisi2): ... here.
36295         (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
36296         (extendhisi2): ... here.
36297         (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
36298         (ashlsi3): ... here.
36299         (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
36300         (lshrsi3): ... here.
36301         (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
36302         (ashrsi3): ... here.
36303         (consecutive add peephole): Remove.
36304         * config/mn10300/predicates.md (label_ref_operand): New.
36305         (int_mode_flags): New.
36306         (CCZN_comparison_operator): New.
36307
36308         * config/mn10300/mn10300.md (UNSPEC_EXT): New.
36309         (throughput_42_latency_43): New reservation.
36310         (mulsidi3, umulsidi3): New expanders.
36311         (mulsidi3_internal): Rewrite from old mulsidi3 pattern.  Expose
36312         the MDR register to allocation; separately allocate the low and
36313         high parts of the DImode result.
36314         (umulsidi3_internal): Similarly.
36315         (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
36316         (*mulsi3): ... here.  Clobber MDR as a scratch as necessary.
36317         (udivsi3, umodsi3): Remove.
36318         (udivmodsi4, divmodsi4): New expanders.
36319         (*udivmodsi4): Rename from udivmodsi4.  Expose MDR properly.
36320         (*divmodsi4): Simiarly.
36321         (ext_internal): New.
36322
36323         * config/mn10300/constraints.md ("z"): New constraint.
36324         * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
36325         (FIXED_REGISTERS): Don't fix MDR.
36326         (CALL_USED_REGSITERS): Reformat nicely.
36327         (REG_ALLOC_ORDER): Add MDR.
36328         (enum regclass): Add MDR_REGS.
36329         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
36330         (IRA_COVER_CLASSES): Add MDR_REGS.
36331         (REGNO_REG_CLASS): Handle MDR_REG.
36332         * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
36333         (mn10300_register_move_cost): Likewise.
36334         * config/mn10300/mn10300.md (MDR_REG): New.
36335         (*movsi_internal): Handle moves to/from MDR_REGS.
36336
36337         * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
36338         POST_MODIFY.
36339         (mn10300_secondary_reload): Tidy combination reload classes.
36340         (mn10300_legitimate_address_p): Allow post-modify and reg+reg
36341         addresses for AM33.  Allow symbolic offsets for reg+imm.
36342         (mn10300_regno_in_class_p): New.
36343         (mn10300_legitimize_reload_address): New.
36344         * config/mn10300/mn10300.h (enum reg_class): Remove
36345         DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
36346         SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS.  Add
36347         SP_OR_GENERAL_REGS.
36348         (REG_CLASS_NAMES): Update to match.
36349         (REG_CLASS_CONTENTS): Likewise.
36350         (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
36351         (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
36352         (REGNO_IN_RANGE_P): Remove.
36353         (REGNO_DATA_P): Use mn10300_regno_in_class_p.
36354         (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
36355         (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
36356         (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
36357         (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
36358         (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
36359         (REGNO_GENERAL_P): New.
36360         (HAVE_POST_MODIFY_DISP): New.
36361         (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
36362         (LEGITIMIZE_RELOAD_ADDRESS): New.
36363         * config/mn10300/mn10300-protos.h: Update.
36364
36365         * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
36366         DATA_REGS for AM33 stack-pointer destination.
36367         (mn10300_preferred_output_reload_class): Likewise.
36368         (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
36369         into a form appropriate for ...
36370         (TARGET_SECONDARY_RELOAD): New.
36371         * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
36372         * config/mn10300/mn10300-protos.h: Update.
36373         * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
36374         reload_insi; use the "A" constraint for the scratch; handle AM33
36375         moves of sp to non-address registers.
36376
36377         * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
36378         (*movqi_internal): ... here.
36379         (*am33_movhi, *mn10300_movhi): Merge into...
36380         (*movhi_internal): ... here.
36381         (*movsi_internal): Use "r" instead of "dax" in constraints.  Use "A"
36382         as the source/destination of moves from/to SP.
36383         (movsf): Only allow for AM33-2.
36384         (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
36385         any integer constant constraint.  Only allow for AM33-2.  Tidy
36386         all of the alternative outputs.
36387         (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
36388         (udivmodsi4): Delete expander and promote *udivmodsi4.  Disallow
36389         for MN103.
36390         (udivsi3, umodsi3): New patterns for MN103 only.
36391
36392 2011-01-19  Joern Rennecke  <amylaar@spamcop.net>
36393
36394         * doc/tm.texi.in: Spell out that a lack of register class unions
36395         can lead to ICEs.
36396         * doc/tm.texi: Regenerate.
36397
36398 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
36399
36400         PR rtl-optimization/47337
36401         * dce.c (check_argument_store): New function.
36402         (find_call_stack_args): Ignore debug insns.  Use check_argument_store.
36403
36404         PR tree-optimization/47290
36405         * tree-eh.c (infinite_empty_loop_p): New function.
36406         (cleanup_empty_eh): Use it.
36407
36408 2011-01-18  Steve Ellcey  <sje@cup.hp.com>
36409
36410         PR target/46997
36411         * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
36412         (a64_expand_widen_sum): Ditto.
36413         * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
36414         (vec_extract_evenodd_help): Ditto.
36415         (vec_extract_evenv4hi): Ditto.
36416         (vec_extract_oddv4hi): Ditto.
36417         (vec_extract_evenv2si): Ditto.
36418         (vec_extract_oddv2si): Ditto.
36419         (vec_extract_evenv2sf): Ditto.
36420         (vec_extract_oddv2sf): Ditto.
36421         (vec_pack_trunc_v4hi: Ditto.
36422         (vec_pack_trunc_v2si): Ditto.
36423         (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
36424         (vec_interleave_highv8qi): Ditto.
36425         (mix1_r): Ditto.
36426         (vec_extract_oddv8qi): Ditto.
36427         (vec_interleave_lowv4hi): Ditto.
36428         (vec_interleave_highv4hi): Ditto.
36429         (vec_interleave_lowv2si): Ditto.
36430         (vec_interleave_highv2si): Ditto.
36431
36432 2011-01-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
36433
36434         * doc/extend.texi: Mention __float128 support on hppa HP-UX.
36435         * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
36436         * config/pa/pa.c (pa_expand_builtin): New.  Include "langhooks.h".
36437         (pa_c_mode_for_suffix): New.
36438         (TARGET_EXPAND_BUILTIN): Define.
36439         (TARGET_C_MODE_FOR_SUFFIX): Define.
36440         (pa_builtins): Define.
36441         (pa_init_builtins): Register __float128 type and init new support
36442         builtins.
36443         * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
36444         * config/pa/quadlib.c (_U_Qfcopysign): New.
36445
36446 2011-01-18  Eric Botcazou  <ebotcazou@adacore.com>
36447
36448         PR middle-end/46894
36449         * explow.c (allocate_dynamic_stack_space): Do not assume more than
36450         BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
36451         are defined.
36452
36453 2011-01-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
36454
36455         PR tree-optimization/47179
36456         * config/spu/spu.c (spu_ref_may_alias_errno): New function.
36457         (TARGET_REF_MAY_ALIAS_ERRNO): Define.
36458
36459 2011-01-18  Richard Guenther  <rguenther@suse.de>
36460
36461         PR rtl-optimization/47216
36462         * emit-rtl.c: Include tree-flow.h.
36463         (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
36464         of replicating it with different semantics.
36465         * Makefile.in (emit-rtl.o): Adjust.
36466
36467 2011-01-18  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
36468
36469         * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
36470         (cortex_a9_dp): Handle neon types correctly.
36471
36472 2011-01-18  Jakub Jelinek  <jakub@redhat.com>
36473
36474         PR rtl-optimization/47299
36475         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
36476         subtarget.  Use normal multiplication if both operands are constants.
36477         * expmed.c (expand_widening_mult): Don't try to optimize constant
36478         multiplication if op0 has VOIDmode.  Convert op1 constant to mode
36479         before using it.
36480
36481 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36482
36483         * doc/lto.texi (LTO): Ensure two spaces after period.  Fix
36484         spacing after 'e.g.', typos, comma, hyphenation.
36485
36486 2011-01-17  Richard Henderson  <rth@redhat.com>
36487
36488         * config/rx/predicates.md (rx_constshift_operand): Use match_test.
36489         (rx_restricted_mem_operand): New.
36490         (rx_shift_operand): Use register_operand.
36491         (rx_source_operand, rx_compare_operand): Likewise.
36492         * config/rx/rx.md (addsi3_flags): New expander.
36493         (adddi3): Rewrite as expander.
36494         (adc_internal, *adc_flags, adddi3_internal): New patterns.
36495         (subsi3_flags): New expander.
36496         (subdi3): Rewrite as expander.
36497         (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
36498
36499         * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
36500         (rx_init_builtins): Remove sat builtin.
36501         (rx_expand_builtin): Likewise.
36502         * config/rx/rx.md (ssaddsi3): New.
36503         (*sat): Rename from sat.  Represent the CC_REG input.
36504
36505         * config/rx/predicates.md (rshift_operator): New.
36506         * config/rx/rx.c (rx_expand_insv): Remove.
36507         * config/rx/rx-protos.h: Update.
36508         * config/rx/rx.md (*bitset): Rename from bitset.  Swap the ashift
36509         operand to the canonical position.
36510         (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
36511         (*bitclr, *bitclr_in_memory): Similarly.
36512         (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
36513         (insv): Retain the zero_extract in the expansion.
36514
36515         * config/rx/rx.md (bswapsi2): Use = not + for output reload.
36516         (bswaphi2, bitinvert, revw): Likewise.
36517
36518         * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
36519         (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
36520         * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
36521         (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
36522         (bitset, bitset_in_memory): Likewise.
36523         (bitinvert, bitinvert_in_memory): Likewise.
36524         (bitclr, bitclr_in_memory): Likewise.
36525         (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
36526         (rx_strend, rx_cmpstrn): Likewise.
36527         (rx_setmem): Likewise.  Make the source BLKmode to match the dest.
36528         (bitop peep2 patterns): Remove.
36529
36530         * config/rx/rx.c (rx_match_ccmode): New.
36531         * config/rx/rx-protos.h: Update.
36532         * config/rx/rx.md (abssi2): Clobber, don't set flags.
36533         (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
36534         (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
36535         (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
36536         (fix_truncsfsi2, floatsisf2): Likewise.
36537         (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
36538         (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
36539         (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
36540         (*subsi3_flags, *xorsi3_flags): New.
36541
36542         * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
36543
36544         * config/rx/rx.c (rx_print_operand): Remove workaround for
36545         unsplit comparison operations.
36546
36547         * config/rx/rx.md (movsicc): Split after reload.
36548         (*movsicc): Merge *movsieq and *movsine via match_operator.
36549         (*stcc): New pattern.
36550
36551         * config/rx/rx.c (rx_float_compare_mode): Remove.
36552         * config/rx/rx.h (rx_float_compare_mode): Remove.
36553         * config/rx/rx.md (cstoresi4): Split after reload.
36554         (*sccc): New pattern.
36555
36556         * config/rx/predicates.md (label_ref_operand): New.
36557         (rx_z_comparison_operator): New.
36558         (rx_zs_comparison_operator): New.
36559         (rx_fp_comparison_operator): New.
36560         * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
36561         Validate that the flags are set properly for the comparison.
36562         (rx_gen_cond_branch_template): Remove.
36563         (rx_cc_modes_compatible): Remove.
36564         (mode_from_flags): New.
36565         (flags_from_code): Rename from flags_needed_for_conditional.
36566         (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
36567         (rx_select_cc_mode): Likewise.
36568         (rx_split_fp_compare): New.
36569         (rx_split_cbranch): New.
36570         * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
36571         (*cbranchsi4): Use match_operator and rx_split_cbranch.
36572         (*cbranchsf4): Similarly.
36573         (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>.  Use
36574         match_operator and rx_split_cbranch.
36575         (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
36576         tstbranchsi4m_ne.  Use match_operator and rx_split_cbranch.
36577         (*cmpsi): Rename from cmpsi.
36578         (*tstsi): Rename from tstsi.
36579         (*cmpsf): Rename from cmpsf; use CC_Fmode.
36580         (*conditional_branch): Rename from conditional_branch.
36581         (*reveresed_conditional_branch): Remove.
36582         (b<code>): Remove expander.
36583         * config/rx/rx-protos.h: Update.
36584
36585         * config/rx/rx.c (rx_compare_redundant): Remove.
36586         * config/rx/rx.md (cmpsi): Don't use it.
36587         * config/rx/rx-protos.h: Update.
36588
36589         * config/rx/rx-modes.def (CC_F): New mode.
36590         * config/rx/rx.c (rx_select_cc_mode): New.
36591         * config/rx/rx.h (SELECT_CC_MODE): Use it.
36592         * config/rx/rx-protos.h: Update.
36593
36594 2011-01-17  Richard Henderson  <rth@redhat.com>
36595
36596         * except.c (dump_eh_tree): Fix stray ; after for statement.
36597
36598 2011-01-17  Richard Guenther  <rguenther@suse.de>
36599
36600         PR tree-optimization/47313
36601         * tree-inline.c (tree_function_versioning): Move DECL_RESULT
36602         handling before copying the body.  Properly deal with
36603         by-reference result in SSA form.
36604
36605 2011-01-17  Ian Lance Taylor  <iant@google.com>
36606
36607         PR target/47219
36608         * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
36609         (struct_value_alias_set): Don't define.
36610         (sparc_option_override): Don't set sparc_sr_alias_set and
36611         struct_value_alias_set.
36612         (save_or_restore_regs): Use gen_frame_mem rather than calling
36613         set_mem_alias_set.
36614         (sparc_struct_value_rtx): Likewise.
36615
36616 2011-01-17  H.J. Lu  <hongjiu.lu@intel.com>
36617
36618         PR target/47318
36619         * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
36620         (_mm_maskstore_pd): Likewise.
36621         (_mm_maskload_ps): Likewise.
36622         (_mm_maskstore_ps): Likewise.
36623         (_mm256_maskload_pd): Change mask to __m256i.
36624         (_mm256_maskstore_pd): Likewise.
36625         (_mm256_maskload_ps): Likewise.
36626         (_mm256_maskstore_ps): Likewise.
36627
36628         * config/i386/i386-builtin-types.def: Updated.
36629         (ix86_expand_special_args_builtin): Likewise.
36630
36631         * config/i386/i386.c (bdesc_special_args): Update
36632         __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
36633         __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
36634         __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
36635         __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
36636
36637         * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
36638         Use <avxpermvecmode> on mask register.
36639         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
36640
36641 2011-01-17  Olivier Hainque  <hainque@adacore.com>
36642             Michael Haubenwallner  <michael.haubenwallner@salomon.at>
36643             Eric Botcazou  <ebotcazou@adacore.com>
36644
36645         PR target/46655
36646         * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
36647         if <= USHRT_MAX in 32-bit mode.
36648
36649 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36650
36651         * doc/install.texi (Configuration, Specific): Wrap long
36652         lines in examples.  Allow line wrapping in long options
36653         and URLs where beneficial for PDF output.
36654
36655 2011-01-16  Richard Sandiford  <rdsandiford@googlemail.com>
36656
36657         * config/mips/mips.c (mips_classify_symbol): Don't return
36658         SYMBOL_PC_RELATIVE for nonlocal labels.
36659
36660 2011-01-15  Eric Botcazou  <ebotcazou@adacore.com>
36661
36662         * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
36663
36664 2011-01-15  Jan Hubicka  <jh@suse.cz>
36665
36666         PR tree-optimization/47276
36667         * ipa.c (function_and_variable_visibility): Do not try to mark alias
36668         declarations as needed.
36669
36670 2011-01-15  Martin Jambor  <mjambor@suse.cz>
36671
36672         * common.opt (fdevirtualize): New flag.
36673         * doc/invoke.texi (Option Summary): Document it.
36674         * opts.c (default_options_table): Add devirtualize flag.
36675         * ipa-prop.c (detect_type_change): Return immediately if
36676         devirtualize flag is not set.
36677         (detect_type_change_ssa): Likewise.
36678         (compute_known_type_jump_func): Likewise.
36679         (ipa_analyze_virtual_call_uses): Likewise.
36680
36681 2011-01-14  Martin Jambor  <mjambor@suse.cz>
36682
36683         PR tree-optimization/45934
36684         PR tree-optimization/46302
36685         * ipa-prop.c (type_change_info): New type.
36686         (stmt_may_be_vtbl_ptr_store): New function.
36687         (check_stmt_for_type_change): Likewise.
36688         (detect_type_change): Likewise.
36689         (detect_type_change_ssa): Likewise.
36690         (compute_complex_assign_jump_func): Check for dynamic type change.
36691         (compute_complex_ancestor_jump_func): Likewise.
36692         (compute_known_type_jump_func): Likewise.
36693         (compute_scalar_jump_functions): Likewise.
36694         (ipa_analyze_virtual_call_uses): Likewise.
36695         (ipa_analyze_node): Push and pop cfun, set current_function_decl.
36696
36697 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
36698
36699         * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
36700         * config/i386/i386.opt (msse5): New Alias.
36701
36702 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
36703
36704         * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
36705         * config/sparc/linux64.h (CC1_SPEC): Likewise.
36706         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
36707         * config/sparc/sparc.h (CC1_SPEC): Likewise.
36708
36709 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
36710
36711         * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
36712         -mcpu options.
36713         * config/sparc/linux64.h (CC1_SPEC): Likewise.
36714         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
36715         * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
36716         * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
36717         Likewise.
36718         * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
36719
36720 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
36721
36722         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
36723
36724 2011-01-14  Mike Stump  <mikestump@comcast.net>
36725
36726         * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
36727         * config/fr30/fr30.md: Likweise
36728         (movsi_push): Likewise.
36729         (movsi_pop): Likewise.
36730         (enter_func): Likewise.
36731         * config/moxie/moxie.md (movsi_push): Likewise.
36732         (movsi_pop): Likewise.
36733
36734 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
36735
36736         * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
36737         %{no_archive} %{exact_version}.
36738         * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
36739         * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
36740         %{no_archive} %{exact_version}.
36741         * config/mips/openbsd.h (LINK_SPEC): Likewise.
36742         * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
36743         * config/mips/vxworks.h: Likewise.
36744
36745 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
36746
36747         * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
36748
36749 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
36750
36751         * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
36752         ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
36753
36754 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
36755
36756         * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
36757         -nodefaultlib.
36758
36759 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
36760
36761         * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
36762         for mcpu not cpu.
36763         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
36764         CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
36765         not cpu.
36766         (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
36767         Don't handle -shlib.
36768
36769 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
36770
36771         * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
36772         (CC1_SPEC): Don't handle -profile.
36773
36774 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
36775
36776         * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
36777         * config/mips/mips.h (CC1_SPEC): Likewise.
36778
36779 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
36780
36781         * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
36782         * config/mips/mips.h (CC1_SPEC): Likewise.
36783
36784 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
36785
36786         * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
36787         * config/m32r/linux.h (LINK_SPEC): Likewise.
36788         * config/mips/linux.h (LINK_SPEC): Likewise.
36789         * config/mips/linux64.h (LINK_SPEC): Likewise.
36790         * config/sparc/linux.h (LINK_SPEC): Likewise.
36791         * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
36792         LINK_SPEC): Likewise.
36793         * config/xtensa/linux.h (LINK_SPEC): Likewise.
36794
36795 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
36796
36797         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
36798         %{version:-v}.
36799         * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
36800
36801 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
36802
36803         * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
36804         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
36805
36806 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
36807
36808         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
36809
36810 2011-01-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
36811
36812         * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
36813         supports -Bstatic/-Bdynamic.
36814         * configure: Regenerate.
36815
36816 2011-01-14  Jan Hubicka  <jh@suse.cz>
36817             Jack Howarth  <howarth@bromo.med.uc.edu>
36818
36819         PR target/46037
36820         * config/darwin.c (darwin_override_options): Honor flag_gtoggle
36821         when checking debug_info_level. Test write_symbols instead of
36822         debug_hooks->var_location when setting flag_var_tracking_uninit.
36823
36824 2011-01-14  Richard Guenther  <rguenther@suse.de>
36825
36826         PR tree-optimization/47179
36827         * target.def (ref_may_alias_errno): New target hook.
36828         * targhooks.h (default_ref_may_alias_errno): Declare.
36829         * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
36830         (default_ref_may_alias_errno): New function.
36831         * target.h (struct ao_ref_s): Declare.
36832         * tree-ssa-alias.c: Include target.h.
36833         (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
36834         * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
36835         (targhooks.o): Likewise.
36836         * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
36837         * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
36838
36839 2011-01-14  Richard Guenther  <rguenther@suse.de>
36840
36841         * tree-ssa-structalias.c  (new_var_info): Use DECL_HARD_REGISTER.
36842
36843 2011-01-14  Richard Guenther  <rguenther@suse.de>
36844
36845         PR tree-optimization/47280
36846         * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
36847         return CFG changes.
36848         (tree_ssa_forward_propagate_single_use_vars): Deal with
36849         CFG changes from associate_plusminus.
36850
36851 2011-01-14  Richard Guenther  <rguenther@suse.de>
36852
36853         PR middle-end/47281
36854         Revert
36855         2011-01-11  Richard Guenther  <rguenther@suse.de>
36856
36857         PR tree-optimization/46076
36858         * tree-ssa.c (useless_type_conversion_p): Conversions from
36859         unprototyped to empty argument list function types are useless.
36860
36861 2011-01-14  Richard Guenther  <rguenther@suse.de>
36862
36863         PR tree-optimization/47286
36864         * tree-ssa-structalias.c (new_var_info): Register variables are global.
36865
36866 2011-01-14  Martin Jambor  <mjambor@suse.cz>
36867
36868         PR middle-end/46823
36869         * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
36870
36871 2011-01-13  Anatoly Sokolov  <aesok@post.ru>
36872
36873         * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
36874         LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
36875         * config/xtensa/xtensa.c (xtensa_libcall_value,
36876         xtensa_function_value_regno_p): New functions.
36877         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
36878
36879 2011-01-13  Kai Tietz  <kai.tietz@onevision.com>
36880
36881         PR c++/47213
36882         * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
36883         PE specific hook.
36884         * config/i386/i386-protos.h (i386_pe_assemble_visibility):
36885         New function prototype.
36886         * config/i386/winnt.c (i386_pe_assemble_visibility):
36887         Warn only if attribute was specified by user.
36888
36889 2011-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
36890
36891         PR target/47251
36892         * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
36893         floating point.
36894         (floatunsdidf2_fcfidu): Ditto.
36895
36896 2011-01-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
36897
36898         * config/s390/s390.c (print_operand_address): Replace 'error' with
36899         'output_operand_lossage'.
36900         (print_operand): Likewise.
36901
36902 2011-01-13  Jeff Law  <law@redhat.com>
36903
36904         PR rtl-optimization/39077
36905         * doc/invoke.texi (max-gcse-insertion-ratio): Document.
36906         * params.h (MAX_GCSE_INSERTION_RATIO): Define.
36907         * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
36908         * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
36909         * gcse.c (prune_insertions_deletions): New function.
36910         (compute_pre_data): Use it.
36911
36912 2011-01-13  Dodji Seketeli  <dodji@redhat.com>
36913
36914         PR debug/PR46973
36915         * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
36916         static function.
36917         (prune_unused_types_mark): Use it.
36918
36919 2011-01-13  Andrey Belevantsev  <abel@ispras.ru>
36920
36921         PR rtl-optimization/45352
36922         * sel-sched.c: Update copyright years.
36923         (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
36924         in the advancing loop when we have issued issue_rate insns.
36925
36926 2011-01-12  Richard Henderson  <rth@redhat.com>
36927
36928         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
36929         (TARGET_MD_ASM_CLOBBERS): New.
36930
36931         * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
36932         (TARGET_DELEGITIMIZE_ADDRESS): New.
36933
36934         * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
36935         (clzsi2, *bsch): New patterns.
36936
36937         * config/mn10300/mn10300.md (INT): New mode iterator.
36938         (*mov<INT>_clr): New pattern, and peep2 to generate it.
36939
36940         * config/mn10300/mn10300.c (mn10300_option_override): Force enable
36941         flag_split_wide_types.
36942
36943         * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
36944         (mn10300_trampoline_init): Rewrite without a template, an immediate
36945         load and a direct branch.
36946         * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
36947
36948 2011-01-12  Anatoly Sokolov  <aesok@post.ru>
36949
36950         * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
36951         * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
36952         * config/s390/s390.c (s390_output_addr_const_extra): Make static.
36953         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
36954
36955 2011-01-12  Kai Tietz  <kai.tietz@onevision.com>
36956
36957         PR debug/47209
36958         * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
36959         of type.
36960
36961 2011-01-12  Jan Hubicka  <jh@suse.cz>
36962
36963         PR driver/47244
36964         * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
36965         (PLUGIN_COND_CLOSE): New macro.
36966         (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
36967
36968 2011-01-12  Richard Guenther  <rguenther@suse.de>
36969
36970         PR lto/47259
36971         * lto-streamer-out.c (output_gimple_stmt): Do not wrap
36972         register variables in a MEM_REF.
36973
36974 2011-01-12  Joseph Myers  <joseph@codesourcery.com>
36975
36976         * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
36977         crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
36978         hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
36979         i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
36980         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
36981         x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
36982         ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
36983         m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
36984         mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
36985         s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
36986         sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
36987         am33_2.0-*-linux*): Use gnu-user.h before linux.h.
36988         * config/gnu-user.h: New.  Copied from linux.h.
36989         (LINUX_TARGET_STARTFILE_SPEC): Rename to
36990         GNU_USER_TARGET_STARTFILE_SPEC.
36991         (LINUX_TARGET_ENDFILE_SPEC): Rename to
36992         GNU_USER_TARGET_ENDFILE_SPEC.
36993         (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
36994         (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
36995         (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
36996         LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
36997         CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
36998         UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
36999         BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
37000         BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
37001         LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
37002         TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
37003         * config/arm/linux-eabi.h (CC1_SPEC): Use
37004         GNU_USER_TARGET_CC1_SPEC.
37005         (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
37006         (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
37007         (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
37008         * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
37009         LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
37010         LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
37011         CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
37012         LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
37013
37014 2011-01-12  Richard Guenther  <rguenther@suse.de>
37015
37016         PR other/46946
37017         * doc/invoke.texi (ffast-math): Document it is turned on
37018         with -Ofast.
37019
37020 2011-01-12  Jan Hubicka  <jh@suse.cz>
37021
37022         PR tree-optimization/47233
37023         * opts.c (common_handle_option): Disable ipa-reference with profile
37024         feedback.
37025
37026 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
37027
37028         * c-parser.c (c_parser_objc_at_property_declaration): Improved
37029         error message.
37030
37031 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
37032
37033         * c-parser.c (c_lex_one_token): Updated and reindented some
37034         comments.  No changes in code.
37035
37036 2011-01-11  Ian Lance Taylor  <iant@google.com>
37037
37038         * godump.c (go_output_var): Don't output the variable if there is
37039         already a type with the same name.
37040
37041 2011-01-11  Ian Lance Taylor  <iant@google.com>
37042
37043         * godump.c (go_format_type): Don't generate float80.
37044
37045 2011-01-11  Richard Henderson  <rth@redhat.com>
37046
37047         * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
37048         declaration.  Rewrite for both speed and size.
37049         (mn10300_address_cost_1): Remove.
37050         (mn10300_register_move_cost): New.
37051         (mn10300_memory_move_cost): New.
37052         (mn10300_rtx_costs): Rewrite for both speed and size.  Don't handle
37053         ZERO_EXTRACT.  Do handle UNSPEC, arithmetic, logicals, compare,
37054         extensions, shifts, BSWAP, CLZ.
37055         (mn10300_wide_const_load_uses_clr): Remove.
37056         (TARGET_REGISTER_MOVE_COST): New.
37057         (TARGET_MEMORY_MOVE_COST): New.
37058         * config/mn10300/mn10300-protos.h: Update.
37059         * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
37060
37061         * config/mn10300/constraints.md ("R", "T"): Remove constraints.
37062         * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
37063         * config/mn10300/mn10300-protos.h: Update.
37064         * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
37065         (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
37066         (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
37067         (*test_int_bitfield, *test_byte_bitfield): Remove.
37068         (*bit_test, *subreg_bit_test): Remove.
37069         * config/mn10300/predicates.md (const_8bit_operand): Remove.
37070
37071         * config/mn10300/constraints.md ("c"): Rename from "A".
37072         ("A", "D"): New constraint letters.
37073         * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
37074         (fmssf4, fnmasf4, fnmssf4): Likewise.
37075
37076         * config/mn10300/mn10300.md (isa): New attribute.
37077         (enabled): New attribute.
37078
37079         * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
37080         (abssf2, negsf2): Define only for hardware fp.
37081         (sqrtsf2): Reformat.
37082         (addsf3, subsf3, mulsf3): Merge expander and insn.
37083
37084         * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
37085         (DEBUGGER_AUTO_OFFSET): Remove.
37086         (DEBUGGER_ARG_OFFSET): Remove.
37087
37088         * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
37089         Emit register stores with the same offsets as the hardware.
37090         (mn10300_store_multiple_operation): Don't check that the register
37091         save offsets are monotonic.
37092         * config/mn10300/mn10300-protos.h: Update.
37093
37094         * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
37095
37096         * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
37097         in terms of the value on the stack, not the MDR register.
37098
37099 2011-01-11  Jan Hubicka  <jh@suse.cz>
37100
37101         PR lto/45721
37102         PR lto/45375
37103         * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
37104         (symbol_alias_set_destroy, symbol_alias_set_contains,
37105         propagate_aliases_backward): Declare.
37106         * lto-streamer-out.c (struct sets): New sturcture.
37107         (trivally_defined_alias): New function.
37108         (output_alias_pair_p): Rewrite.
37109         (output_unreferenced_globals): Fix output of alias pairs.
37110         (produce_symtab): Likewise.
37111         * ipa.c (function_and_variable_visibility): Set weak alias destination
37112         as needed in lto.
37113         * varasm.c (symbol_alias_set_t): Remove.
37114         (symbol_alias_set_destroy): Export.
37115         (propagate_aliases_forward, propagate_aliases_backward): New functions
37116         based on ...
37117         (compute_visible_aliases): ... this one; remove.
37118         (trivially_visible_alias): New
37119         (trivially_defined_alias): New.
37120         (remove_unreachable_alias_pairs): Rewrite.
37121         (finish_aliases_1): Reorganize code checking if alias is defined.
37122         * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
37123         in LTO mode.
37124
37125 2011-01-11  Richard Guenther  <rguenther@suse.de>
37126
37127         PR tree-optimization/46076
37128         * tree-ssa.c (useless_type_conversion_p): Conversions from
37129         unprototyped to empty argument list function types are useless.
37130
37131 2011-01-11  Richard Guenther  <rguenther@suse.de>
37132
37133         PR middle-end/45235
37134         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
37135         volatile MEMs as MEM_READONLY_P.
37136
37137 2011-01-11  Richard Guenther  <rguenther@suse.de>
37138
37139         PR tree-optimization/47239
37140         * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
37141
37142 2011-01-11  Jeff Law  <law@redhat.com>
37143
37144         PR tree-optimization/47086
37145         * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
37146         IVs from statements that might throw.
37147
37148 2011-01-10  Jan Hubicka  <jh@suse.cz>
37149
37150         PR lto/45375
37151         * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
37152
37153 2011-01-10  Jan Hubicka  <jh@suse.cz>
37154
37155         PR lto/45375
37156         * profile.c (read_profile_edge_counts): Ignore profile inconistency
37157         when correcting profile.
37158
37159 2011-01-10  Jan Hubicka  <jh@suse.cz>
37160
37161         PR lto/46083
37162         * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
37163         DECL_FINI_PRIORITY.
37164         * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
37165         Restore DECL_FINI_PRIORITY.
37166
37167 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37168
37169         * doc/gimple.texi: Fix quoting of multi-word return values in
37170         @deftypefn statements.  Ensure presence of return value.  Wrap
37171         overlong @deftypefn lines.
37172         (is_gimple_operand, is_gimple_min_invariant_address): Remove
37173         descriptions of removed functions.
37174         * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
37175         of multi-word return value in @deftypefn statement.
37176
37177 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37178
37179         * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
37180         (Conditional Expressions, Logical Operators)
37181         (Statement and operand traversals): Do not indent smallexample
37182         code.  Fix duplicate function argument in example.
37183
37184 2011-01-10  Jeff Law  <law@redhat.com>
37185
37186         PR tree-optimization/47141
37187         * ipa-split.c (split_function): Handle case where we are
37188         returning a value and the return block has a virtual operand phi.
37189
37190 2011-01-10  Jan Hubicka  <jh@suse.cz>
37191
37192         PR tree-optimization/47234
37193         * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
37194         (pass_feedback_split_functions): Declare.
37195         * passes.c (init_optimization_passes): Add ipa-split as subpass of
37196         tree-profile.
37197         * ipa-split.c (gate_split_functions): Update comments; disable
37198         split-functions for profile_arc_flag and branch_probabilities.
37199         (gate_feedback_split_functions): New function.
37200         (execute_feedback_split_functions): New function.
37201         (pass_feedback_split_functions): New global var.
37202
37203 2011-01-10  H.J. Lu  <hongjiu.lu@intel.com>
37204
37205         PR lto/46760
37206         * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
37207         calling gimple_call_set_cannot_inline.
37208
37209 2011-01-10  Iain Sandoe  <iains@gcc.gnu.org>
37210
37211         * config/darwin-sections.def: Remove unused section.
37212
37213 2011-01-10  Dave Korn  <dave.korn.cygwin@gmail.com>
37214
37215         PR c++/47218
37216         * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
37217
37218 2011-01-09  Nicola Pero  <nicola.pero@meta-innovation.com>
37219
37220         PR objc/47232
37221         * c-parser.c (c_parser_declaration_or_fndef): Improved
37222         error message.
37223
37224 2011-01-09  Kai Tietz  <kai.tietz@onevision.com>
37225
37226         * config/i386/winnt.c (i386_pe_start_function): Make sure
37227         to switch back to function's section.
37228
37229 2011-01-09  Iain Sandoe  <iains@gcc.gnu.org>
37230
37231         PR gcc/46902
37232         PR testsuite/46912
37233         * plugin.c: Move include of dlfcn.h from here...
37234         * system.h: ... to here.
37235
37236 2011-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37237
37238         * doc/cpp.texi (C++ Named Operators): Fix markup for header
37239         file name.
37240         * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
37241         two extra empty pages in PDF output.
37242
37243 2011-01-08  Nicola Pero  <nicola.pero@meta-innovation.com>
37244
37245         PR objc/47078
37246         * c-parser.c (c_parser_objc_type_name): If the type is unknown,
37247         for error recovery purposes behave as if it was not specified so
37248         that the default type is usd.
37249
37250 2011-01-07  Jan Hubicka  <jh@suse.cz>
37251
37252         PR tree-optmization/46469
37253         * ipa.c (function_and_variable_visibility): Clear needed flags on
37254         nodes with external decls; handle weakrefs merging correctly.
37255
37256 2011-01-07  Joseph Myers  <joseph@codesourcery.com>
37257
37258         * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
37259         not false.
37260
37261 2011-01-07  Jan Hubicka  <jh@suse.cz>
37262
37263         * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
37264         and no longer claim that gold is required for linker plugin.
37265         * configure: Regenerate.
37266         * gcc.c (PLUGIN_COND): New macro.
37267         (LINK_COMMAND_SPEC): Use it.
37268         (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
37269         * config.in (HAVE_LTO_PLUGIN): New.
37270         * configure.ac (--with-lto-plugin): New parameter; autodetect
37271         HAVE_LTO_PLUGIN.
37272
37273 2011-01-07  Jan Hubicka  <jh@suse.cz>
37274
37275         PR tree-optimization/46367
37276         * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
37277         when we can update original.
37278         (cgraph_mark_inline_edge): Sanity check.
37279         * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
37280
37281 2011-01-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
37282
37283         * config/spu/spu.h (ASM_COMMENT_START): Define.
37284
37285 2011-01-07  H.J. Lu  <hongjiu.lu@intel.com>
37286
37287         PR driver/42445
37288         * gcc.c (%>S): New.
37289         (SWITCH_KEEP_FOR_GCC): Likewise.
37290         (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
37291         (do_spec_1): Handle "%>".
37292
37293         * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
37294
37295 2011-01-07  Jakub Jelinek  <jakub@redhat.com>
37296
37297         PR target/47201
37298         * config/i386/i386.c (ix86_delegitimize_address): If
37299         simplify_gen_subreg fails, return orig_x.
37300
37301         PR bootstrap/47187
37302         * value-prof.c (gimple_stringop_fixed_value): Handle
37303         lhs of the call properly.
37304
37305 2011-01-07  Jan Hubicka  <jh@suse.cz>
37306
37307         PR lto/45375
37308         * lto-opt.c (lto_reissue_options): Set flag_shlib.
37309
37310 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
37311
37312         * target.def (function_switched_text_sections): New hook.
37313         * doc/tm.texi: Regenerated.
37314         * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
37315         * final.c (default_function_switched_text_sections): New.
37316         (final_scan_insn): Call function_switched_text_sections when a
37317         mid-function section change occurs.
37318         * output.h (default_function_switched_text_sections): Declare.
37319         * config/darwin-protos.h (darwin_function_switched_text_sections):
37320         Likewise.
37321         * config/darwin.c (darwin_function_switched_text_sections): New.
37322         * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
37323
37324 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
37325
37326         * dwarf2out.c (gen_subprogram_die):  Add pubnames with code ranges for
37327         DWARF >= 3.  Add pubnames for the primary section and a reduced DIE for
37328         the secondary code fragment when outputting for DWARF == 2.
37329
37330 2011-01-07  Anatoly Sokolov  <aesok@post.ru>
37331
37332         * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
37333         * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
37334         Remove.
37335         * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
37336         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
37337
37338 2011-01-06  Eric Botcazou  <ebotcazou@adacore.com>
37339
37340         PR debug/46704
37341         * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
37342         when it is not empty.
37343
37344 2011-01-06  Changpeng Fang  <changpeng.fang@amd.com>
37345
37346         Bobcat Enablement
37347         * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
37348         (case ${target}): Add btver1.
37349         * config/i386/driver-i386.c (host_detect_local_cpu): Let
37350         -march=native recognize btver1 processors.
37351         * config/i386/i386-c.c (ix86_target_macros_internal): Add
37352         btver1 def_and_undef
37353         * config/i386/i386.c (struct processor_costs btver1_cost): New
37354         btver1 cost table.
37355         (m_BTVER1): New definition.
37356         (m_AMD_MULTIPLE): Includes m_BTVER1.
37357         (initial_ix86_tune_features): Add btver1 tune.
37358         (processor_target_table): Add btver1 entry.
37359         (static const char *const cpu_names): Add btver1 entry.
37360         (software_prefetching_beneficial_p): Add btver1.
37361         (ix86_option_override_internal): Add btver1 instruction sets.
37362         (ix86_issue_rate): Add btver1.
37363         (ix86_adjust_cost): Add btver1.
37364         * config/i386/i386.h (TARGET_BTVER1): New definition.
37365         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
37366         (enum processor_type): Add PROCESSOR_BTVER1.
37367         * config/i386/i386.md (define_attr "cpu"): Add btver1.
37368
37369 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
37370
37371         PR target/43309
37372         * config/i386/i386.c (legitimize_tls_address)
37373         <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
37374         * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
37375         (tls_initial_exec_64_sun): New pattern.
37376
37377 2011-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
37378
37379         * doc/invoke.texi (Overall Options): Improve wording and markup
37380         of the description of -wrapper.
37381
37382 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
37383
37384         * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
37385         rdynamic, threads): New Driver options.
37386
37387 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
37388
37389         PR target/38118
37390         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
37391         if coming from .tdata.
37392         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
37393
37394 2011-01-06  Jan Hubicka  <jh@suse.cz>
37395
37396         PR lto/47188
37397         * collect2.c (main): Do not enable LTOmode when plugin is active.
37398
37399 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
37400
37401         PR other/45915
37402         * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
37403         --version output if supported.
37404         * configure: Regenerate.
37405
37406 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
37407
37408         * config/linux-android.opt (tno-android-cc, tno-android-ld): New
37409         Driver options.
37410
37411 2011-01-06  Jakub Jelinek  <jakub@redhat.com>
37412
37413         PR c/47150
37414         * c-convert.c (convert): When converting a complex expression
37415         other than COMPLEX_EXPR to a different complex type, ensure
37416         c_save_expr is called instead of save_expr, unless in_late_binary_op.
37417         * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
37418         when converting COMPLEX_TYPE.
37419
37420 2011-01-06  Ira Rosen  <irar@il.ibm.com>
37421
37422         PR tree-optimization/47139
37423         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
37424         only the last reduction value is used outside the loop.  Update
37425         documentation.
37426
37427 2011-01-05  Joseph Myers  <joseph@codesourcery.com>
37428
37429         * config/rtems.opt: New.
37430         * config.gcc (*-*-rtems*): Use rtems.opt.
37431
37432 2011-01-05  Changpeng Fang  <changpeng.fang@amd.com>
37433
37434         * config/i386/i386.c (ix86_option_override_internal): Bulldozer
37435         processors do not support 3DNow instructions.
37436
37437 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
37438
37439         * config/spu/spu.c (spu_option_override): Set parameter
37440         PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
37441
37442 2011-01-05  Jan Hubicka  <jh@suse.cz>
37443
37444         * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
37445         at the command line.
37446
37447 2011-01-05  Martin Jambor  <mjambor@suse.cz>
37448
37449         PR lto/47162
37450         * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
37451         deltas on streamed outgoing edges.
37452         (output_node_opt_summary): Output info for outgoing edges only when
37453         the node is in new parameter set.
37454         (output_cgraph_opt_summary): New parameter set, passed to the two
37455         aforementioned functions.  Update its forward declaration and its
37456         callee too.
37457
37458 2011-01-05  Tom Tromey  <tromey@redhat.com>
37459
37460         * c-parser.c (c_parser_omp_atomic): Pass location of assignment
37461         operator to c_finish_omp_atomic.
37462         * c-typeck.c (lvalue_or_else): Add 'loc' argument.
37463         (build_unary_op): Update.
37464         (build_modify_expr): Update.
37465         (build_asm_expr): Update.
37466
37467 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
37468
37469         * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
37470         newly inserted insns.
37471         (pad_bb): Likewise.
37472         (spu_emit_branch_hint): Likewise.
37473         (insert_hbrp_for_ilb_runout): Likewise.
37474         (spu_machine_dependent_reorg): Call df_finish_pass after
37475         schedule_insns returns.
37476
37477 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
37478
37479         * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
37480
37481 2011-01-05  Eric Botcazou  <ebotcazou@adacore.com>
37482
37483         PR tree-optimization/47005
37484         * tree-sra.c (struct access): Add 'non_addressable' bit.
37485         (create_access): Set it for a DECL_NONADDRESSABLE_P field.
37486         (decide_one_param_reduction): Return 0 if the parameter is passed by
37487         reference and one of the accesses in the group is non_addressable.
37488
37489 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
37490
37491         PR tree-optimization/47056
37492         * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
37493         (mark_load): Likewise.  Handle FUNCTION_DECL specially.
37494         (mark_store): Likewise.  Pass STMT to ipa_record_reference.
37495
37496 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
37497
37498         * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
37499         initializer.  Skip view conversions from aggregate types.
37500
37501 2011-01-04  Kai Tietz  <kai.tietz@onevision.com>
37502
37503         PR bootstrap/47055
37504         * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
37505
37506 2011-01-04  Philipp Thomas  <pth@suse.de>
37507
37508         * config/microblaze/microbalse.opt (mxl-float-convert): Fix
37509         obvious typo.
37510
37511 2011-01-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
37512
37513         * function.c (thread_prologue_and_epilogue_insns): Do not crash
37514         on empty epilogue sequences.
37515
37516 2011-01-04  Joseph Myers  <joseph@codesourcery.com>
37517
37518         * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
37519         non-static): New Driver options.
37520
37521 2011-01-04  Jie Zhang  <jie@codesourcery.com>
37522
37523         PR driver/47137
37524         * gcc.c (default_compilers[]): Set combinable field to 0
37525         for all assembly languages.
37526
37527 2011-01-04  Mingjie Xing  <mingjie.xing@gmail.com>
37528
37529         * config/mips/loongson3a.md: New file.
37530         * config/mips/mips.md: Include loongson3a.md.
37531         * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
37532         TUNE_LOONGSON_3A.
37533
37534 2011-01-03  Eric Botcazou  <ebotcazou@adacore.com>
37535
37536         PR middle-end/47017
37537         * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
37538         instead of convert_memory_address_addr_space on the base expression.
37539
37540 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
37541
37542         * config/spu/spu.c (spu_option_override): Update error text
37543         for bad -march= / -mtune= values.
37544
37545 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
37546
37547         * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
37548         if branch-hint optimization will be performed.
37549
37550 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
37551
37552         PR tree-optimization/47148
37553         * ipa-split.c (split_function): Convert arguments to
37554         DECL_ARG_TYPE if possible.
37555
37556         PR tree-optimization/47155
37557         * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
37558         when computing uns.
37559
37560         PR rtl-optimization/47157
37561         * combine.c (try_combine): If undobuf.other_insn becomes
37562         (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
37563         and set *new_direct_jump_p too.
37564
37565 2011-01-03  Sebastian Pop  <sebastian.pop@amd.com>
37566
37567         PR tree-optimization/47021
37568         * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
37569
37570 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
37571
37572         * gcc.c (process_command): Update copyright notice dates.
37573         * gcov.c (print_version): Likewise.
37574         * gcov-dump.c (print_version): Likewise.
37575         * mips-tfile.c (main): Likewise.
37576         * mips-tdump.c (main): Likewise.
37577
37578 2011-01-03  Martin Jambor  <mjambor@suse.cz>
37579
37580         PR tree-optimization/46801
37581         * tree-sra.c (type_internals_preclude_sra_p): Check whether
37582         aggregate fields start at byte boundary instead of the bit-field flag.
37583
37584 2011-01-03  H.J. Lu  <hongjiu.lu@intel.com>
37585
37586         PR driver/47137
37587         * gcc.c (main): Revert revision 168407.
37588
37589 2011-01-03  Martin Jambor  <mjambor@suse.cz>
37590
37591         * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
37592
37593 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
37594
37595         * tree-vect-generic.c (expand_vector_operations_1): When using vector/
37596         vector optab to expand vector/scalar shift, update gimple to vector.
37597
37598 2011-01-03  Martin Jambor  <mjambor@suse.cz>
37599
37600         * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
37601         a thunk.
37602
37603 2011-01-03  Martin Jambor  <mjambor@suse.cz>
37604
37605         PR tree-optimization/46984
37606         * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
37607         HOST_WIDE_INT.
37608         (cgraph_create_indirect_edge): Fixed line length.
37609         (cgraph_indirect_call_info): Declare.
37610         (cgraph_make_edge_direct) Update declaration.
37611         * cgraph.c (cgraph_allocate_init_indirect_info): New function.
37612         (cgraph_create_indirect_edge): Use it.
37613         (cgraph_make_edge_direct): Made delta HOST_WIDE_INT.  Updated all
37614         callees.
37615         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
37616         the new thunk_delta representation.
37617         * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
37618         HOST_WIDE_INT.
37619         (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
37620         (ipa_read_indirect_edge_info): Likewise.
37621         * lto-cgraph.c (output_edge_opt_summary): New function.
37622         (output_node_opt_summary): Call it on all outgoing edges.
37623         (input_edge_opt_summary): New function.
37624         (input_node_opt_summary): Call it on all outgoing edges.
37625
37626 2011-01-02  H.J. Lu  <hongjiu.lu@intel.com>
37627
37628         PR driver/47137
37629         * gcc.c (main): Don't check have_o when settting combine_inputs.
37630
37631 2011-01-02  Eric Botcazou  <ebotcazou@adacore.com>
37632
37633         * regrename.c: Add general comment describing the pass.
37634         (struct du_head): Remove 'length' field.
37635         (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
37636         (regrename_optimize): Do not sort chains.  Rework comments, add others.
37637         Force renaming to the preferred class (if any) in the first pass and do
37638         not consider registers that belong to it in the second pass.
37639         (create_new_chain): Do not set 'length' field.
37640         (scan_rtx_reg): Likewise.
37641
37642 2011-01-02  Jakub Jelinek  <jakub@redhat.com>
37643
37644         PR tree-optimization/47140
37645         * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
37646         TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
37647         to bit_value_binop.
37648
37649         PR rtl-optimization/47028
37650         * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
37651         parm_birth_insn instead of at the beginning of first bb.
37652
37653 2011-01-02  Mingjie Xing  <mingjie.xing@gmail.com>
37654
37655         * doc/generic.texi: Remove duplicated "@subsubsection Statements".
37656         Remove the word "see" before "@pxref".
37657         * doc/rtl.texi: Remove the word "see" before "@pxref".
37658
37659 2011-01-01  Jan Hubicka  <jh@suse.cz>
37660
37661         * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
37662         memory.
37663
37664 2011-01-01  Kai Tietz  <kai.tietz@onevision.com>
37665
37666         PR target/38662
37667         * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
37668
37669 \f
37670 Copyright (C) 2011 Free Software Foundation, Inc.
37671
37672 Copying and distribution of this file, with or without modification,
37673 are permitted in any medium without royalty provided the copyright
37674 notice and this notice are preserved.