OSDN Git Service

PR target/46278
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2011-10-14  Georg-Johann Lay  <avr@gjlay.de>
2
3         PR target/46278
4         * doc/invoke.texi (AVR Options): Document -mstrict-X.
5
6         * config/avr/avr.opt (-mstrict-X): New option.
7         (avr_strict_X): New variable reflecting -mstrict-X.
8         * config/avr/avr.c (avr_reg_ok_for_addr_p): Add parameter
9         outer_code and pass it down to avr_regno_mode_code_ok_for_base_p.
10         (avr_legitimate_address_p): Pass outer_code to
11         avr_reg_ok_for_addr_p and use that function in case PLUS.
12         (avr_mode_code_base_reg_class): Depend on avr_strict_X.
13         (avr_regno_mode_code_ok_for_base_p): Ditto, and depend on outer_code.
14         (avr_option_override): Disable -fcaller-saves if -mstrict-X is on.
15         
16 2011-10-14  Jakub Jelinek  <jakub@redhat.com>
17
18         * config/i386/sse.md (neg<mode>2): Use VI_AVX2 iterator instead
19         of VI_128.
20
21         * config/i386/sse.md (mulv2di3): Macroize using VI8_AVX2
22         iterator.
23         (ashl<mode>3): Use VI248_AVX2 iterator instead of VI248_128.
24         Use <sseinsnmode> instead of TI in mode attr.
25
26 2011-10-14  David Alan Gilbert  <david.gilbert@linaro.org>
27
28         * config/arm/linux-atomic-64bit.c: New (based on linux-atomic.c).
29         * config/arm/linux-atomic.c: Change comment to point to 64bit version.
30         (SYNC_LOCK_RELEASE): Instantiate 64bit version.
31         * config/arm/t-linux-eabi: Pull in linux-atomic-64bit.c.
32
33 2011-10-14  David Alan Gilbert  <david.gilbert@linaro.org>
34
35         * config/arm/arm.c (arm_output_ldrex): Support ldrexd.
36         (arm_output_strex): Support strexd.
37         (arm_output_it): New helper to output it in Thumb2 mode only.
38         (arm_output_sync_loop): Support DI mode.  Change comment to
39         not support const_int.
40         (arm_expand_sync): Support DI mode.
41         * config/arm/arm.h (TARGET_HAVE_LDREXBHD): Split into LDREXBH
42         and LDREXD.
43         * config/arm/iterators.md (NARROW): move from sync.md.
44         (QHSD): New iterator for all current ARM integer modes.
45         (SIDI): New iterator for SI and DI modes only.
46         * config/arm/sync.md (sync_predtab): New mode_attr.
47         (sync_compare_and_swapsi): Fold into sync_compare_and_swap<mode>.
48         (sync_lock_test_and_setsi): Fold into sync_lock_test_and_setsi<mode>.
49         (sync_<sync_optab>si): Fold into sync_<sync_optab><mode>.
50         (sync_nandsi): Fold into sync_nand<mode>.
51         (sync_new_<sync_optab>si): Fold into sync_new_<sync_optab><mode>.
52         (sync_new_nandsi): Fold into sync_new_nand<mode>.
53         (sync_old_<sync_optab>si): Fold into sync_old_<sync_optab><mode>.
54         (sync_old_nandsi): Fold into sync_old_nand<mode>.
55         (sync_compare_and_swap<mode>): Support SI & DI.
56         (sync_lock_test_and_set<mode>): Likewise.
57         (sync_<sync_optab><mode>): Likewise.
58         (sync_nand<mode>): Likewise.
59         (sync_new_<sync_optab><mode>): Likewise.
60         (sync_new_nand<mode>): Likewise.
61         (sync_old_<sync_optab><mode>): Likewise.
62         (sync_old_nand<mode>): Likewise.
63         (arm_sync_compare_and_swapsi): Turn into iterator on SI & DI.
64         (arm_sync_lock_test_and_setsi): Likewise.
65         (arm_sync_new_<sync_optab>si): Likewise.
66         (arm_sync_new_nandsi): Likewise.
67         (arm_sync_old_<sync_optab>si): Likewise.
68         (arm_sync_old_nandsi): Likewise.
69         (arm_sync_compare_and_swap<mode> NARROW): use sync_predtab, fix indent.
70         (arm_sync_lock_test_and_setsi<mode> NARROW): Likewise.
71         (arm_sync_new_<sync_optab><mode> NARROW): Likewise.
72         (arm_sync_new_nand<mode> NARROW): Likewise.
73         (arm_sync_old_<sync_optab><mode> NARROW): Likewise.
74         (arm_sync_old_nand<mode> NARROW): Likewise.
75
76 2011-10-14  David Alan Gilbert  <david.gilbert@linaro.org>
77
78         PR target/48126
79         * config/arm/arm.c (arm_output_sync_loop): Move label before barrier.
80
81 2011-10-14  David Alan Gilbert  <david.gilbert@linaro.org>
82
83         * config/arm/arm.h (TARGET_HAVE_DMB_MCR): MCR Not available in Thumb1.
84
85 2011-10-14  Paolo Carlini  <paolo.carlini@oracle.com>
86
87         * doc/invoke.texi ([Wformat-zero-length]): Tidy.
88
89 2011-10-14  Jakub Jelinek  <jakub@redhat.com>
90
91         * gimple.c (walk_stmt_load_store_addr_ops): Call visit_addr
92         also on COND_EXPR/VEC_COND_EXPR comparison operands if they are
93         ADDR_EXPRs.
94
95 2011-10-14  Richard Guenther  <rguenther@suse.de>
96
97         PR tree-optimization/50723
98         * ipa-split.c (split_function): Use GSI_CONTINUE_LINKING.
99
100 2011-10-14  Nicola Pero  <nicola.pero@meta-innovation.com>
101
102         * gengtype.c (files_rules): Added rules for objc/objc-map.h and
103         objc/objc-map.c.
104
105 2011-10-14  Paolo Carlini  <paolo.carlini@oracle.com>
106
107         PR c++/17212
108         * c-family/c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
109         * doc/invoke.texi: Update.
110
111 2011-10-14  Iain Sandoe  <iains@gcc.gnu.org>
112
113         PR bootstrap/50699
114         * config/darwin.c (darwin_patch_builtin): Adjust argument type. Only
115         build for powerpc targets.  (darwin_patch_builtins): Only build for
116         powerpc targets.
117
118 2011-10-14  Jakub Jelinek  <jakub@redhat.com>
119
120         * config/i386/sse.md (*avx_cvtdq2pd256_2): Rename to...
121         (avx_cvtdq2pd256_2): ... this.
122         (sseunpackfltmode): New mode attr.
123         (vec_unpacks_float_hi_v8hi, vec_unpacks_float_lo_v8hi,
124         vec_unpacku_float_hi_v8hi, vec_unpacku_float_lo_v8hi): Macroize
125         using VI2_AVX2 iterator.
126         (vec_unpacku_float_hi_v8si, vec_unpacku_float_lo_v8si): New
127         expanders.
128
129 2011-10-13  David S. Miller  <davem@davemloft.net>
130
131         * config/sparc/sparc.md (plusminus): New code iterator.
132         (plusminus_insn): New code attr.
133         (addv2si3, subv2si3, addv4hi3, subv4hi3, addv2hi3, subv2hi3): Merge
134         using plusminus and plusminus_insn.
135         (fpadd64_vis, fpsub64_vis): Likewise.
136
137 2011-10-13  Richard Henderson  <rth@redhat.com>
138
139         * doc/md.texi (vec_perm): Document fallback to byte permutation.
140         * genopinit.c (optabs): Add vec_perm_const.
141         * optabs.c (can_vec_perm_expr_p): Rename from expand_vec_perm_expr_p.
142         Reject non-vector modes.  Allow fallback to byte permutation.
143         (expand_vec_perm_expr_1): Split out from ...
144         (expand_vec_perm_expr): ... here.  Allow fallback to byte permutation.
145         * optabs.h (DOI_vec_perm_const, vec_perm_const_optab): New.
146         * tree-vect-generic.c (lower_vec_perm): Update for name change.
147
148 2011-10-13  Richard Henderson  <rth@redhat.com>
149
150         * config/rs6000/altivec.md (vec_permv16qi): New pattern.
151
152         * config/rs6000/spu.md (vec_permv16qi): New pattern.
153
154         * config/i386/i386.c (ix86_expand_vec_perm_const): New.
155         * config/i386/i386-protos.h: Update.
156         * config/i386/sse.md (VEC_PERM_CONST): New mode iterator.
157         (vec_perm_const<VEC_PERM_CONST>): New expander.
158
159         * optabs.c (expand_vector_broadcast): New.
160         (expand_binop): Expand scalar shifts of vectors to vector shifts
161         of vectors, if the former isn't supported.
162         * tree-vect-generic.c (expand_vector_operations_1): Don't do that
163         here; always simplify to scalar shift of vector if possible.
164
165         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Fix mode
166         test for vector splat.
167
168 2011-10-13  Jakub Jelinek  <jakub@redhat.com>
169
170         * config/i386/sse.md (vec_set<mode>): Change V_128 iterator mode
171         to V.
172
173 2011-10-13  Jakub Jelinek  <jakub@redhat.com>
174             Richard Guenther  <rguenther@suse.de>
175
176         * tree-ssa.c (maybe_optimize_var): Drop TREE_ADDRESSABLE
177         from vector or complex vars even if their DECL_UID is in not_reg_needs
178         bitmap.
179
180 2011-10-13  Jakub Jelinek  <jakub@redhat.com>
181
182         * config/i386/sse.md (reduc_umin_v8hi): New pattern.
183         * config/i386/i386.c (ix86_build_const_vector): Handle
184         also V32QI, V16QI, V16HI and V8HI modes.
185         (emit_reduc_half): New function.
186         (ix86_expand_reduc): Use phminposuw insn for V8HImode UMIN.
187         Use emit_reduc_half helper function.
188
189 2011-10-13   Lawrence Crowl  <crowl@google.com>
190              Diego Novillo  <dnovillo@google.com>
191
192         * lto-streamer-in.c (input_struct_function_base): Factor out of ...
193         (input_function): ... here.
194         * lto-streamer-out.c (output_struct_function_base): Factor out of ...
195         (output_function): ... here.
196
197 2011-10-13  Gabriel Charette  <gchare@google.com>
198             Diego Novillo  <dnovillo@google.com>
199
200         * streamer-hooks.h (struct streamer_hooks): Add hooks
201         input_location and output_location.
202         * lto-streamer-in.c (lto_input_location): Use
203         streamer_hooks.input_location, if set.
204         * lto-streamer-out.c (lto_output_location): Use
205         streamer_hooks.output_location, if set.
206
207 2011-10-13  Richard Guenther  <rguenther@suse.de>
208
209         PR tree-optimization/50712
210         * ipa-split.c (split_function): Always re-gimplify parameters
211         when they are not gimple vals before passing them.  Properly
212         check for type compatibility.
213
214 2011-10-13  Tom de Vries  <tom@codesourcery.com>
215
216         * function.c (gimplify_parameters): Set number of arguments of call to
217         BUILT_IN_ALLOCA_WITH_ALIGN to 2.
218
219 2011-10-13  Tom de Vries  <tom@codesourcery.com>
220
221         * emit-rtl.c (set_mem_attributes_minus_bitpos): Set MEM_READONLY_P
222         for static const strings.
223         * varasm.c (build_constant_desc): Generate the memory location of the
224         constant using gen_const_mem.
225
226 2011-10-13  Richard Guenther  <rguenther@suse.de>
227
228         PR tree-optimization/50698
229         * tree-data-ref.c (split_constant_offset_1): Also process
230         offsets of &MEM.
231
232 2011-10-12  David S. Miller  <davem@davemloft.net>
233
234         * config/sparc/sparc.md (UNSPEC_FPMERGE): Delete.
235         (UNSPEC_MUL16AU, UNSPEC_MUL8, UNSPEC_MUL8SU, UNSPEC_MULDSU): New
236         unspecs.
237         (fpmerge_vis): Remove inaccurate comment, represent using vec_select
238         of a vec_concat.
239         (vec_interleave_lowv8qi, vec_interleave_highv8qi): New insns.
240         (fmul8x16_vis, fmul8x16au_vis, fmul8sux16_vis, fmuld8sux16_vis):
241         Reimplement as unspecs and remove inaccurate comments.
242         (vis3_shift_patname): New code attr.
243         (<vis3_shift_insn><vbits>_vis): Rename to "v<vis3_shift_patname><mode>3".
244         (vis3_addsub_ss_patname): New code attr.
245         (<vis3_addsub_ss_insn><vbits>_vis): Rename to
246         "<vis3_addsub_ss_patname><mode>3".
247         * config/sparc/sparc.c (sparc_vis_init_builtins): Update to
248         accommodate pattern name changes.
249
250         * config/sparc/sparc.h: Do not force TARGET_VIS3 and TARGET_FMAF
251         to zero when assembler lacks support for such instructions.
252         * config/sparc/sparc.c (sparc_option_override): Clear MASK_VIS3
253         and MASK_FMAF in defaults when assembler lacks necessary support.
254
255 2011-10-12  Jakub Jelinek  <jakub@redhat.com>
256
257         * config/i386/sse.md (vec_unpacks_lo_<mode>,
258         vec_unpacks_hi_<mode>, vec_unpacku_lo_<mode>,
259         vec_unpacku_hi_<mode>): Change VI124_128 mode to
260         VI124_AVX2.
261         * config/i386/i386.c (ix86_expand_sse_unpack): Handle
262         V32QImode, V16HImode and V8SImode for TARGET_AVX2.
263
264         * config/i386/sse.md (vec_avx2): New mode_attr.
265         (mulv16qi3): Macroize to cover also mulv32qi3 for
266         TARGET_AVX2 into ...
267         (mul<mode>3): ... this.
268
269         * config/i386/i386.md (UNSPEC_VPERMDI): Remove.
270         * config/i386/i386.c (ix86_expand_vec_perm): Handle
271         V16QImode and V32QImode for TARGET_AVX2.
272         (MAX_VECT_LEN): Increase to 32.
273         (expand_vec_perm_blend): Add support for 32-byte integer
274         vectors with TARGET_AVX2.
275         (valid_perm_using_mode_p): New function.
276         (expand_vec_perm_pshufb): Add support for 32-byte integer
277         vectors with TARGET_AVX2.
278         (expand_vec_perm_vpshufb2_vpermq): New function.
279         (expand_vec_perm_vpshufb2_vpermq_even_odd): New function.
280         (expand_vec_perm_even_odd_1): Handle 32-byte integer vectors
281         with TARGET_AVX2.
282         (ix86_expand_vec_perm_builtin_1): Try expand_vec_perm_vpshufb2_vpermq
283         and expand_vec_perm_vpshufb2_vpermq_even_odd.
284         * config/i386/sse.md (VEC_EXTRACT_EVENODD_MODE): Add for TARGET_AVX2
285         32-byte integer vector modes.
286         (vec_pack_trunc_<mode>): Use VI248_AVX2 instead of VI248_128.
287         (avx2_interleave_highv32qi, avx2_interleave_lowv32qi): Remove pasto.
288         (avx2_pshufdv3, avx2_pshuflwv3, avx2_pshufhwv3): Generate
289         4 new operands.
290         (avx2_pshufd_1, avx2_pshuflw_1, avx2_pshufhw_1): Don't use
291         match_dup, instead add 4 new operands and require they have
292         right cross-lane values.
293         (avx2_permv4di): Change into define_expand.
294         (avx2_permv4di_1): New instruction.
295         (avx2_permv2ti): Use nonimmediate_operand instead of register_operand
296         for "xm" constrained operand.
297         (VEC_PERM_AVX2): Add V32QI and V16QI for TARGET_AVX2.
298
299         * config/i386/sse.md (avx2_gathersi<mode>,
300         avx2_gatherdi<mode>, avx2_gatherdi<mode>256): Add clobber of
301         match_scratch, change memory_operand to register_operand,
302         add (mem:BLK (scratch)) use.
303         (*avx2_gathersi<mode>, *avx2_gatherdi<mode>,
304         *avx2_gatherdi<mode>256): Add clobber of match_scratch,
305         add earlyclobber to the output operand and match_scratch,
306         add (mem:BLK (scratch)) use, change the other mem to match_operand.
307         Use %p6 instead of %c6 in the pattern.
308         * config/i386/i386.c (ix86_expand_builtin): Adjust for
309         operand 2 being a Pmode register_operand instead of memory_operand.
310
311 2011-10-12  Kai Tietz  <ktietz@redhat.com>
312
313         * config/i386/i386.md (simple_return): Disable
314         if TARGET_SEH is active.
315
316 2011-10-12  Steve Ellcey  <sje@cup.hp.com>
317
318         * config/ia64/ia64.c (ia64_init_builtins): Fix unbalanced parentheses.
319
320 2011-10-12  Richard Guenther  <rguenther@suse.de>
321
322         * tree-ssa-alias.c (maybe_skip_until): Cache also at the point
323         of the first store we visit in a basic-block.
324         (get_continuation_for_phi): Search for a candidate VUSE that
325         might dominates all others.  Do pairwise disambiguation against
326         that candidate.
327
328 2011-10-12  Paul Koning  <pkoning@gcc.gnu.org>
329
330         PR tree-optimization/50189
331         * tree-vrp.c (extract_range_from_assert): Use the type of
332         the variable, not the limit.
333
334 2011-10-12  Richard Guenther  <rguenther@suse.de>
335
336         PR tree-optimization/50700
337         * tree-object-size.c (addr_object_size): Simplify and treat
338         MEM_REF bases consistently.
339
340 2011-10-12  Bernd Schmidt  <bernds@codesourcery.com>
341
342         * function.c (prepare_shrink_wrap, bb_active_p): New function.
343         (thread_prologue_and_epilogue_insns): Use bb_active_p.
344         Call prepare_shrink_wrap, then recompute bb_active_p for the
345         last block.
346
347 2011-10-12  Joseph Myers  <joseph@codesourcery.com>
348
349         PR c/50565
350         * convert.c (convert_to_integer): Do not narrow operands of
351         pointer subtraction.
352
353 2011-10-12  Nick Clifton  <nickc@redhat.com>
354
355         * config/arm/arm.h (EMIT_EABI_ATTRIBUTE): New macro.  Used to
356         emit a .eabi_attribute assembler directive, possibly with a
357         comment attached.
358         * config/arm/arm.c (arm_file_start): Use the new macro.
359         * config/arm/arm-c.c (arm_output_c_attributes): Likewise.
360
361 2011-10-12  Georg-Johann Lay  <avr@gjlay.de>
362
363         PR target/49939
364         * config/avr/avr.md (*movqi): Rename to movqi_insn.
365         (*call_insn): Rename to call_insn.
366         (*call_value_insn): Rename to call_value_insn.
367         * config/avr/avr.c (avr_2word_insn_p): New static function.
368         (jump_over_one_insn_p): Use it.
369
370 2011-10-12  Richard Sandiford  <richard.sandiford@linaro.org>
371
372         * expr.h (copy_blkmode_to_reg): Declare.
373         * expr.c (copy_blkmode_to_reg): New function.
374         (expand_assignment): Don't expand register RESULT_DECLs before
375         the lhs.  Use copy_blkmode_to_reg to copy BLKmode values into a
376         RESULT_DECL register.
377         (expand_expr_real_1): Handle BLKmode decls when looking for promotion.
378         * stmt.c (expand_return): Move BLKmode-to-register code into
379         copy_blkmode_to_reg.
380
381 2011-10-11  Eric Botcazou  <ebotcazou@adacore.com>
382
383         PR target/49965
384         * config/sparc/sparc.md (mov<I:mode>cc): Do not save comparison code.
385         (mov<F:mode>cc): Likewise.
386
387 2011-10-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
388
389         * tree-ssa-address.c (copy_ref_info): Remove copy of TREE_THIS_NOTRAP.
390
391 2011-10-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
392
393         * tree.h (built_in_decls): Delete old interface with two parallel
394         arrays to hold standard builtin declarations, and replace it with
395         a function based interface that can support creating builtins on
396         the fly in the future.  Change all uses, and poison the old
397         names.  Make sure 0 is not a legitimate builtin index.
398         (implicit_built_in_decls): Ditto.
399         (built_in_info): Ditto.
400         (BUILTIN_VALID_P): Ditto.
401         (builtin_decl_explicit): Ditto.
402         (builtin_decl_implicit): Ditto.
403         (set_builtin_decl): Ditto.
404         (set_builtin_decl_implicit_p): Ditto.
405         (builtin_decl_explicit_p): Ditto.
406         (builtin_decl_implicit_p): Ditto.
407         * tree-complex.c (expand_complex_libcall): Ditto.
408         * tree-loop-distribution.c (generate_memset_zero): Ditto.
409         * tree-ssa-strlen.c (get_string_length): Ditto.
410         (handle_builtin_strcpy): Ditto.
411         (handle_builtin_strcat): Ditto.
412         * tree.c (iterative_hash_expr): Ditto.
413         (local_define_builtin): Ditto.
414         (build_common_builtin_nodes): Ditto.
415         * builtins.c (built_in_decls): Ditto.
416         (implicit_built_in_decls): Ditto.
417         (built_in_info): Ditto
418         (expand_builtin_classify_type): Ditto.
419         (mathfn_built_in_1): Ditto.
420         (expand_builtin_cexpi): Ditto.
421         (expand_builtin_mempcpy_args): Ditto.
422         (expand_builtin_stpcpy): Ditto.
423         (gimplify_va_arg_expr): Ditto.
424         (expand_builtin_sync_operation): Ditto.
425         (build_builtin_expect_predicate): Ditto.
426         (fold_builtin_memory_op): Ditto.
427         (fold_builtin_strcpy): Ditto.
428         (fold_builtin_stpcpy): Ditto.
429         (fold_builtin_strncpy): Ditto.
430         (fold_builtin_interclass_mathfn): Ditto.
431         (fold_builtin_classify): Ditto.
432         (fold_builtin_2): Ditto.
433         (fold_builtin_strstr): Ditto.
434         (fold_builtin_strrchr): Ditto.
435         (fold_builtin_strpbrk): Ditto.
436         (fold_builtin_strcat): Ditto.
437         (fold_builtin_strncat): Ditto.
438         (fold_builtin_strcspn): Ditto.
439         (fold_builtin_fputs): Ditto.
440         (fold_builtin_sprintf): Ditto.
441         (fold_builtin_snprintf): Ditto.
442         (expand_builtin_memory_chk): Ditto.
443         (fold_builtin_memory_chk): Ditto.
444         (fold_builtin_stxcpy_chk): Ditto.
445         (fold_builtin_strncpy_chk): Ditto.
446         (fold_builtin_strcat_chk): Ditto.
447         (fold_builtin_strncat_chk): Ditto.
448         (fold_builtin_sprintf_chk_1): Ditto.
449         (fold_builtin_snprintf_chk_1): Ditto.
450         (fold_builtin_printf): Ditto.
451         (fold_builtin_fprintf): Ditto.
452         (fold_call_stmt): Ditto.
453         (set_builtin_user_assembler_name): Ditto.
454         * tree-emutls.c (emutls_common_1): Ditto.
455         * omp-low.c (scan_omp): Ditto.
456         (lower_rec_input_clauses): Ditto.
457         (lower_reduction_clauses): Ditto.
458         (expand_parallel_call): Ditto.
459         (expand_task_call): Ditto.
460         (maybe_catch_exception): Ditto.
461         (optimize_omp_library_calls): Ditto.
462         (expand_omp_for_generic): Ditto.
463         (expand_omp_for_static_nochunk): Ditto.
464         (expand_omp_for_static_chunk): Ditto.
465         (expand_omp_sections): Ditto.
466         (expand_omp_atomic_fetch_op): Ditto.
467         (expand_omp_atomic_pipeline): Ditto.
468         (expand_omp_atomic_mutex): Ditto.
469         (lower_omp_single_simple): Ditto.
470         (lower_omp_single_copy): Ditto.
471         (lower_omp_master): Ditto.
472         (lower_omp_ordered): Ditto.
473         (lower_omp_critical): Ditto.
474         * tree-ssa-ccp.c (optimize_stdarg_builtin): Ditto.
475         * builtins.c (DEF_BUILTIN_STUB): Ditto.
476         (BUILT_IN_NONE): Ditto.
477         * tree-ssa-math-opts.c (execute_optimize_bswap): Ditto.
478         * gimple-low.c (lower_function_body): Ditto.
479         (lower_builtin_setjmp): Ditto.
480         * c-decl.c (merge_decls): Ditto.
481         * tree-eh.c (lower_resx): Ditto.
482         (lower_resx): Ditto.
483         (lower_eh_dispatch): Ditto.
484         * function (gimplify_parameters): Ditto.
485         * c-typeck.c (build_function_call_vec): Ditto.
486         * gimplify.c (build_stack_save_restore): Ditto.
487         (gimplify_vla_decl): Ditto.
488         (gimplify_modify_expr_to_memcpy): Ditto.
489         (gimplify_modify_expr_to_memset): Ditto.
490         (gimplify_variable_sized_compare): Ditto.
491         (gimplify_function_tree): Ditto.
492         * calls.c (emit_call_1): Ditto.
493         * tree-ssa-forprop.c (simplify_builtin_call): Ditto.
494         * tree-nested.c (convert_nl_goto_reference): Ditto.
495         (convert_tramp_reference_op): Ditto.
496         (finalize_nesting_tree_1): Ditto.
497         * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Ditto.
498         (tree_ssa_prefetch_arrays): Ditto.
499         * tree-streamer-in.c (streamer_get_builtin_tree): Ditto.
500         * system.h (built_in_decls): Ditto.
501         (implicit_built_in_decls): Ditto.
502         * tree-vect-generic.c (expand_vector_operations_1): Ditto.
503         * config/sparc/sparc.c (sparc_gimplify_va_arg): Ditto.
504         * config/i386/i386.c (ix86_gimplify_va_arg): Ditto.
505         (ix86_veclibabi_svml): Ditto.
506         (ix86_veclibabi_acml): Ditto.
507         * config/vms/vms.c (vms_patch_builtins): Ditto.
508         * config/ia64/ia64.c (ia64_init_builtins): Ditto.
509         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Ditto.
510         (rs6000_builtin_vectorized_libmass): Ditto.
511         (rs6000_init_builtins): Ditto.
512         * config/darwin.c (darwin_override_options): Ditto.
513         (darwin_patch_builtin): Ditto.
514         (darwin_rename_builtins): Ditto.
515         * config/pa/pa.c (pa_init_builtins): Ditto.
516
517 2011-10-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
518
519         * tree.h (copy_ref_info): Expose existing function.
520         * tree-ssa-loop-ivopts.c (copy_ref_info): Move function to...
521         * tree-ssa-address.c (copy_ref_info): ...here, and remove static token.
522
523 2011-10-11  Georg-Johann Lay  <avr@gjlay.de>
524
525         * config/avr/avr-protos.h (avr_mode_code_base_reg_class): New prototype.
526         (avr_regno_mode_code_ok_for_base_p): New prototype.
527         * config/avr/avr.h (BASE_REG_CLASS): Remove.
528         (REGNO_OK_FOR_BASE_P): Remove.
529         (REG_OK_FOR_BASE_NOSTRICT_P): Remove.
530         (REG_OK_FOR_BASE_STRICT_P): Remove.
531         (MODE_CODE_BASE_REG_CLASS): New define.
532         (REGNO_MODE_CODE_OK_FOR_BASE_P): New define.
533         * config/avr/avr.c (avr_mode_code_base_reg_class): New function.
534         (avr_regno_mode_code_ok_for_base_p): New function.
535         (avr_reg_ok_for_addr_p): New static function.
536         (avr_legitimate_address_p): Use it.  Beautify.
537
538 2011-10-11  Georg-Johann Lay  <avr@gjlay.de>
539
540         PR target/50447
541         * config/avr/avr.md (cc): Add out_plus attribute alternative.
542         (addsi3): Use it.  Adapt avr_out_plus to new prototype.  Use
543         avr_out_plus for all CONST_INT addends.
544         * config/avr/avr-protos.h (avr_out_plus): Change prototype.
545         * config/avr/avr.c (notice_update_cc): Call avr_out_plus on
546         CC_OUT_PLUS.
547         (avr_out_plus_1): Change prototype and report effect on cc0.
548         (avr_out_plus): Ditto.
549         (adjust_insn_length): Adapt call to avr_out_plus to new prototype.
550
551 2011-10-11  H.J. Lu  <hongjiu.lu@intel.com>
552
553         * config/i386/i386.c (ix86_expand_special_args_builtin): Remove
554         the extra break.
555
556 2011-10-11  Artjoms Sinkarovs  <artyom.shinkaroff@gmail.com>
557
558         * doc/invoke.texi: Document new warning.
559         * common.opt (Wvector-operation-performance): Define new warning.
560         * tree-vect-generic.c (expand_vector_piecewise): Warn about expanded
561         vector operation.
562         (exapnd_vector_parallel): Warn about expanded vector operation.
563         (lower_vec_shuffle): Warn about expanded vector operation.
564         * c-typeck.c (c_build_vec_perm_expr): Store correct location
565         when creating VEC_PERM_EXPR.
566
567 2011-10-11  Richard Guenther  <rguenther@suse.de>
568
569         PR tree-optimization/50204
570         * tree-ssa-alias.c (get_continuation_for_phi_1): Split out
571         two argument handling from ...
572         (get_continuation_for_phi): ... here.  Handle arbitrary number
573         of PHI args.
574
575 2011-10-11  Paolo Carlini  <paolo.carlini@oracle.com>
576
577         PR c++/33067
578         * c-family/c-pretty-print.c (pp_c_floating_constant): Output
579         max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
580
581 2011-10-11  Richard Sandiford  <richard.sandiford@linaro.org>
582
583         * modulo-sched.c: Fix comment typo.  Mention the possibility
584         of using scheduling windows of II+1 cycles.
585
586 2011-10-11  Tristan Gingold  <gingold@adacore.com>
587
588         * doc/invoke.texi (C Dialect Options): Document
589         -fallow-parameterless-variadic-functions.
590         * c-parser.c (c_parser_parms_list_declarator): Handle it.
591
592 2011-10-10  Georg-Johann Lay  <avr@gjlay.de>
593
594         * config/avr/avr.c (avr_option_override): Set
595         flag_omit_frame_pointer to 0 if frame pointer is needed for
596         unwinding.
597
598 2011-10-10  Uros Bizjak  <ubizjak@gmail.com>
599
600         PR bootstrap/50665
601         * optabs.h (DOI_vec_perm): Rename from OTI_vec_perm.  Move from enum
602         optab_index to enum direct_optab_index.
603         (vec_perm_optab): Update.
604
605 2011-10-10  Anatoly Sokolov  <aesok@post.ru>
606
607         * config/cris/cris.c (cris_preferred_reload_class): New function.
608         (TARGET_PREFERRED_RELOAD_CLASS): Define.
609         * config/cris/cris.h (PREFERRED_RELOAD_CLASS): Remove.
610
611 2011-10-10  Georg-Johann Lay  <avr@gjlay.de>
612
613         * config/avr/avr.md (*tablejump_rjmp): Change insn condition to
614         !AVR_HAVE_JMP_CALL.
615         (*tablejump_lib): Change insn condition to AVR_HAVE_JMP_CALL.
616         (*tablejump_enh, *tablejump): Remove insns.
617         * config/avr/libgcc.S (__tablejump__): Use RET instead of EIND +
618         EIJMP for indirect jump.  Use LPM Z+ where available.
619
620 2011-10-10  Richard Henderson  <rth@redhat.com>
621
622         * doc/md.texi (vec_perm_const): Fix typo in cindex.
623
624 2011-10-10  Kirill Yukhin  <kirill.yukhin@intel.com>
625             Yakovlev Vladimir  <vladimir.b.yakovlev@intel.com>
626
627         * config/i386/sse.md (fma_fnmsub_<mode>): Fix a typo.
628
629 2011-10-10  Richard Guenther  <rguenther@suse.de>
630
631         PR middle-end/50389
632         * gimple-fold.c (gimplify_and_update_call_from_tree): Do not
633         mark symbols for renaming.  Append the VUSE to all statements
634         that possibly can have one.
635
636 2011-10-10  Richard Guenther  <rguenther@suse.de>
637
638         * ipa-split.c (pass_split_functions): Add verification TODOs.
639         (pass_feedback_split_functions): Likewise.
640
641 2011-10-10  Richard Guenther  <rguenther@suse.de>
642
643         PR middle-end/50195
644         * fold-const.c (fold_binary_loc): Canonicalize x*x to pow (x, 2)
645         only when optimizing.
646
647 2011-10-10  Nick Clifton  <nickc@redhat.com>
648
649         PR middle-end/49801
650         * compare-elim.c (find_comparisons_in_bb): Use df_get_live_in and
651         df_get_live_out instead of accessing the bitmaps directly.
652         (execute_compare_elim_after_reload): Remove calls to df_set_flags,
653         df_live_add_problem and df_analyze.
654
655 2011-10-10  Michael Matz  <matz@suse.de>
656
657         PR middle-end/50638
658         * tree-emutls.c (gen_emutls_addr): Call add_referenced_var.
659
660 2011-10-10  Richard Sandiford  <richard.sandiford@linaro.org>
661
662         * modulo-sched.c (ps_reg_move_info): Add num_consecutive_stages.
663         (SCHED_FIRST_REG_MOVE, SCHED_NREG_MOVES): Delete.
664         (node_sched_params): Remove first_reg_move and nreg_moves.
665         (ps_num_consecutive_stages, extend_node_sched_params): New functions.
666         (update_node_sched_params): Move up file.
667         (print_node_sched_params): Print the stage.  Don't dump info related
668         to first_reg_move and nreg_moves.
669         (set_columns_for_row): New function.
670         (set_columns_for_ps): Move up file and use set_columns_for_row.
671         (schedule_reg_move): New function.
672         (schedule_reg_moves): Call extend_node_sched_params and
673         schedule_reg_move.  Extend size of uses bitmap.  Initialize
674         num_consecutive_stages.  Return false if a move could not be
675         scheduled.
676         (apply_reg_moves): Don't emit moves here.
677         (permute_partial_schedule): Handle register moves.
678         (duplicate_insns_of_cycles): Remove for_prolog.  Emit moves according
679         to the same stage-count test as ddg nodes.
680         (generate_prolog_epilog): Update calls accordingly.
681         (sms_schedule): Allow move-scheduling to add a new first stage.
682
683 2011-10-10  Richard Sandiford  <richard.sandiford@linaro.org>
684
685         * modulo-sched.c (ps_insn): Adjust comment.
686         (ps_reg_move_info): New structure.
687         (partial_schedule): Add reg_moves field.
688         (SCHED_PARAMS): Use node_sched_param_vec instead of node_sched_params.
689         (node_sched_params): Turn first_reg_move into an identifier.
690         (ps_reg_move): New function.
691         (ps_rtl_insn): Cope with register moves.
692         (ps_first_note): Adjust comment and assert that the instruction
693         isn't a register move.
694         (node_sched_params): Replace with...
695         (node_sched_param_vec): ...this vector.
696         (set_node_sched_params): Adjust accordingly.
697         (print_node_sched_params): Take a partial schedule instead of a ddg.
698         Use ps_rtl_insn and ps_reg_move.
699         (generate_reg_moves): Rename to...
700         (schedule_reg_moves): ...this.  Remove rescan parameter.  Record each
701         move in the partial schedule, but don't emit it here.  Don't perform
702         register substitutions here either.
703         (apply_reg_moves): New function.
704         (duplicate_insns_of_cycles): Use register indices directly,
705         rather than finding instructions using PREV_INSN.  Use ps_reg_move.
706         (sms_schedule): Call schedule_reg_moves before committing to
707         a partial schedule.   Try the next ii if the schedule fails.
708         Use apply_reg_moves instead of generate_reg_moves.  Adjust
709         call to print_node_sched_params.  Free node_sched_param_vec
710         instead of node_sched_params.
711         (create_partial_schedule): Initialize reg_moves.
712         (free_partial_schedule): Free reg_moves.
713
714 2011-10-10  Richard Sandiford  <richard.sandiford@linaro.org>
715
716         * modulo-sched.c (ps_insn): Replace node field with an identifier.
717         (SCHED_ASAP): Replace with..
718         (NODE_ASAP): ...this macro.
719         (SCHED_PARAMS): New macro.
720         (SCHED_TIME, SCHED_FIRST_REG_MOVE, SCHED_NREG_MOVES, SCHED_ROW)
721         (SCHED_STAGE, SCHED_COLUMN): Redefine using SCHED_PARAMS.
722         (node_sched_params): Remove asap.
723         (ps_rtl_insn, ps_first_note): New functions.
724         (set_node_sched_params): Use XCNEWVEC.  Don't copy across the
725         asap values.
726         (print_node_sched_params): Use SCHED_PARAMS and NODE_ASAP.
727         (generate_reg_moves): Pass ids to the SCHED_* macros.
728         (update_node_sched_params): Take a ps insn identifier rather than
729         a node as parameter.  Use ps_rtl_insn.
730         (set_columns_for_ps): Update for above field and SCHED_* macro changes.
731         (permute_partial_schedule): Use ps_rtl_insn and ps_first_note.
732         (optimize_sc): Update for above field and SCHED_* macro changes.
733         Update calls to try_scheduling_node_in_cycle and
734         update_node_sched_params.
735         (duplicate_insns_of_cycles): Adjust for above field and SCHED_*
736         macro changes.  Use ps_rtl_insn and ps_first_note.
737         (sms_schedule): Pass ids to the SCHED_* macros.
738         (get_sched_window): Adjust for above field and SCHED_* macro changes.
739         Use NODE_ASAP instead of SCHED_ASAP.
740         (try_scheduling_node_in_cycle): Remove node parameter.  Update
741         call to ps_add_node_check_conflicts.  Pass ids to the SCHED_*
742         macros.
743         (sms_schedule_by_order): Update call to try_scheduling_node_in_cycle.
744         (ps_insert_empty_row): Adjust for above field changes.
745         (compute_split_row): Use ids rather than nodes.
746         (verify_partial_schedule): Adjust for above field changes.
747         (print_partial_schedule): Use ps_rtl_insn.
748         (create_ps_insn): Take an id rather than a node.
749         (ps_insn_find_column): Adjust for above field changes.
750         Use ps_rtl_insn.
751         (ps_insn_advance_column): Adjust for above field changes.
752         (add_node_to_ps): Remove node parameter.  Update call to
753         create_ps_insn.
754         (ps_has_conflicts): Use ps_rtl_insn.
755         (ps_add_node_check_conflicts): Replace node parameter than an id.
756
757 2011-10-10  Richard Sandiford  <richard.sandiford@linaro.org>
758
759         * modulo-sched.c (undo_replace_buff_elem): Delete.
760         (generate_reg_moves): Don't build and return an undo list.
761         (free_undo_replace_buff): Delete.
762         (sms_schedule): Adjust call to generate_reg_moves.
763         Don't call free_undo_replace_buff.
764
765 2011-10-10  Matthias Klose <doko@ubuntu.com>
766
767         * common/config/m32c: Remove empty directory.
768
769 2011-10-10  Georg-Johann Lay  <avr@gjlay.de>
770
771         * config/avr/avr.md (*mulhi3_enh): Treat squaring smarter.
772
773 2011-10-10  Georg-Johann Lay  <avr@gjlay.de>
774
775         PR target/50652
776         * config/avr/avr-mcus.def (AVR_MCU): Set .data_section_start of
777         atmega164a to 0x100.
778
779 2011-10-09  Eric Botcazou  <ebotcazou@adacore.com>
780
781         * tree-ssa-forwprop.c (forward_propagate_into_comparison): Do not make
782         the replacement if the conversion to the LHS type is not useless.
783
784 2011-10-09  Ira Rosen  <ira.rosen@linaro.org>
785
786         PR tree-optimization/50635
787         * tree-vect-patterns.c (vect_handle_widen_mult_by_const): Add
788         DEF_STMT to the list of statements to be replaced by the
789         pattern statements.
790         (vect_handle_widen_mult_by_const): Don't check TYPE_OUT.
791
792 2011-10-09  Anatoly Sokolov  <aesok@post.ru>
793
794         * system.h: Commit forgotten hunk in previous patch.
795         (OUTPUT_ADDR_CONST_EXTRA): Poison.
796
797 2011-10-08  Nicola Pero  <nicola.pero@meta-innovation.com>
798
799         PR libobjc/50428
800         * doc/objc.texi (Garbage Collection): Updated example to protect
801         +initialize against execution in subclasses.
802
803 2011-10-07  Richard Henderson  <rth@redhat.com>
804
805         * doc/extend.texi (__builtin_shuffle): Improve the description to
806         include the modulus of the selector.  Mention OpenCL.
807         * doc/md.texi (vec_perm, vec_perm_const): Document named patterns.
808
809         * tree.def (VEC_PERM_EXPR): Rename from VEC_SHUFFLE_EXPR.
810         * genopinit.c (optabs): Rename vshuffle to vec_perm.
811         * c-typeck.c (c_build_vec_perm_expr): Rename from
812         c_build_vec_shuffle_expr.  Update for name changes.
813         * optabs.c (expand_vec_perm_expr_p): Rename from
814         expand_vec_shuffle_expr_p.
815         (expand_vec_perm_expr): Rename from expand_vec_shuffle_expr.
816         * optabs.h (OTI_vec_perm): Rename from DOI_vshuffle.
817         (vec_perm_optab): Rename from vshuffle_optab.
818         * expr.c, gimple-pretty-print.c, gimple.c, gimplify.c,
819         c-tree.h, c-parser.c, tree-cfg.c, tree-inline.c, tree-pretty-print.c,
820         tree-ssa-operands.c, tree-vect-generic.c: Update for name changes.
821
822         * config/i386/i386.c (ix86_expand_vec_perm): Rename from
823         ix86_expand_vshuffle.
824         * config/i386/i386-protos.h: Update.
825         * config/i386/sse.md (VEC_PERM_AVX2): Rename from VSHUFFLE_AVX2.
826         (vec_perm<VEC_PERM_AVX2>): Rename from vshuffle<VSHUFFLE_AVX2>.
827
828 2011-10-07  Richard Henderson  <rth@redhat.com>
829
830         * config/i386/predicates.md (avx2_pblendw_operand): New.
831         * config/i386/sse.md (sse4_1_pblendw): Un-macroize.
832         (avx2_pblendw, *avx2_pblendw): New expander and insn.
833
834 2011-10-07  Richard Henderson  <rth@redhat.com>
835
836         * config/i386/i386.c (bdesc_args): Update code for
837         __builtin_ia32_palignr256.  Change type of __builtin_ia32_pslldqi256,
838         and __builtin_ia32_psrldqi256 to V4DI_FTYPE_V4DI_INT_CONVERT.
839         (ix86_expand_args_builtin): Handle V4DI_FTYPE_V4DI_INT_CONVERT.
840         * config/i386/sse.md (mode iterator V16): Add V2TI.
841         (mode iterator SSESCALARMODE): Use V2TI not V4DI.
842         (mode attr ssse3_avx2): Add V2TI.
843         (avx2_lshrqv4di3, avx2_lshlqv4di3): Remove.
844
845 2011-10-07  David S. Miller  <davem@davemloft.net>
846
847         PR 50655
848         * configure.ac: Add .register directives to VIS3 test.
849         * configure: Regenerate.
850
851 2011-10-07  Richard Henderson  <rth@redhat.com>
852
853         * config.gcc (x86_64-*): Add core-avx-i, core-avx2 for with_cpu.
854
855 2011-10-07  Richard Henderson  <rth@redhat.com>
856
857         PR 49752
858         * fold-const.c (fold_checksum_tree): Remove out-of-date assert.
859
860 2011-10-07  Andrew Stubbs  <ams@codesourcery.com>
861
862         * config/arm/predicates.md (shift_amount_operand): Remove constant
863         range check.
864         (shift_operator): Check range of constants for all shift operators.
865
866 2011-10-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
867
868         * config/s390/s390.c (s390_emit_tls_call_insn): Remove assertion.
869         Load GOT pointer for non-pic builds.
870         (s390_load_got): Replace pic_offset_table_rtx with hardcoded r12.
871         (s390_emit_call): Likewise.
872
873 2011-10-07  Tom de Vries  <tom@codesourcery.com>
874
875         PR middle-end/50527
876         * tree.c (build_common_builtin_nodes): Add local_define_builtin for
877         BUILT_IN_ALLOCA_WITH_ALIGN.  Mark that BUILT_IN_ALLOCA_WITH_ALIGN can
878         throw.
879         * builtins.c (expand_builtin_alloca): Handle BUILT_IN_ALLOCA_WITH_ALIGN
880         arglist.  Set align for BUILT_IN_ALLOCA_WITH_ALIGN.
881         (expand_builtin): Handle BUILT_IN_ALLOCA_WITH_ALIGN.
882         (is_inexpensive_builtin): Handle BUILT_IN_ALLOCA_WITH_ALIGN.
883         * tree-ssa-ccp.c (evaluate_stmt): Set align for
884         BUILT_IN_ALLOCA_WITH_ALIGN.
885         (fold_builtin_alloca_for_var): Rename to ...
886         (fold_builtin_alloca_with_align): Set DECL_ALIGN from 2nd
887         BUILT_IN_ALLOCA_WITH_ALIGN argument.
888         (ccp_fold_stmt): Try folding BUILT_IN_ALLOCA_WITH_ALIGN using
889         fold_builtin_alloca_with_align.
890         (optimize_stack_restore): Handle BUILT_IN_ALLOCA_WITH_ALIGN.
891         * builtins.def (BUILT_IN_ALLOCA_WITH_ALIGN): Declare using
892         DEF_BUILTIN_STUB.
893         * ipa-pure-const.c (special_builtin_state): Handle
894         BUILT_IN_ALLOCA_WITH_ALIGN.
895         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1)
896         (call_may_clobber_ref_p_1): Same.
897         * function.c (gimplify_parameters): Lower vla to
898         BUILT_IN_ALLOCA_WITH_ALIGN.
899         * gimplify.c (gimplify_vla_decl): Same.
900         * cfgexpand.c (expand_call_stmt): Handle BUILT_IN_ALLOCA_WITH_ALIGN.
901         * tree-mudflap.c (mf_xform_statements): Same.
902         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary)
903         (mark_all_reaching_defs_necessary_1, propagate_necessity): Same.
904         * varasm.c (incorporeal_function_p): Same.
905         * tree-object-size.c (alloc_object_size): Same.
906         * gimple.c (gimple_build_call_from_tree): Same.
907
908 2011-10-07  Bernd Schmidt  <bernds@codesourcery.com>
909
910         * function.c (frame_required_for_rtx): Remove function.
911         (requires_stack_frame_p): New arg set_up_by_prologue.  All callers
912         changed.  Compute a set of mentioned registers and compare against
913         the new arg rather than calling frame_required_for_rtx.
914         (thread_prologue_and_epilogue_insns): Compute the set_up_by_prologue
915         reg set.  Convert the unconverted_simple_returns mechanism to store
916         jump insns rather than their basic blocks.  Also check the
917         orig_entry_edge destination for new blocks.
918
919 2011-10-07  Jakub Jelinek  <jakub@redhat.com>
920
921         PR tree-optimization/50650
922         * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): Don't
923         call vect_is_simple_cond here, instead fail if cond_expr isn't
924         COMPARISON_CLASS_P or if get_vectype_for_scalar_type returns NULL
925         for cond_expr's first operand.
926         * tree-vect-stmts.c (vect_is_simple_cond): Static again.
927         * tree-vectorizer.h (vect_is_simple_cond): Remove prototype.
928
929 2011-10-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
930
931         * config/s390/s390.md (DWH, dwh): New mode macros.
932         ("umulsidi3"): Extend to support "umulditi3" as well.
933
934 2011-10-07  Uros Bizjak  <ubizjak@gmail.com>
935             H.J. Lu  <hongjiu.lu@intel.com>
936
937         PR target/50603
938         * config/i386/i386.c (ix86_fixup_binary_operands): Force src2 of
939         integer PLUS RTX to a register to improve address combine.
940
941 2011-10-06  Richard Henderson  <rth@redhat.com>
942
943         * combine-stack-adjust.c (maybe_move_args_size_note): Add after
944         parameter; use it to decide whether to merge two notes.
945         (combine_stack_adjustments_for_block): Use maybe_move_args_size_note
946         for the deallocation case as well.
947
948 2011-10-06  Anatoly Sokolov  <aesok@post.ru>
949
950         * system.h (OUTPUT_ADDR_CONST_EXTRA): Poison.
951         * doc/tm.texi.in (OUTPUT_ADDR_CONST_EXTRA): Remove documentation.
952         * doc/tm.texi: Regenerate.
953         * target.def (output_addr_const_extra): Use
954         hook_bool_FILEptr_rtx_false.
955         * targhooks.c (default_asm_output_addr_const_extra): Remove.
956         * targhooks.h (default_asm_output_addr_const_extra): Remove.
957         * hooks.c (hook_bool_FILEptr_rtx_false): New functions.
958         * hooks.h (hook_bool_FILEptr_rtx_false): Declare.
959
960 2011-10-06  David S. Miller  <davem@davemloft.net>
961
962         * config/sparc/sparc.md (popcount<mode>2, clz<mode>2): Split up into...
963         (popcountdi2, popcountsi2, clzdi2, clzsi2): Explicit expanders, in the
964         SI mode 64-bit code gen case explicitly zero-extend and truncate.
965         (*popcount<mode>_sp64): Split up into...
966         (*popcountdi_sp64, *popcountsi_64): Explicit instantiations, and in the
967         SImode case use truncate.
968         (*clzsi_sp64): Rewrite to use truncate, and let the expander emit the
969         subtract so the compiler can optimize it.
970         (SIDI): Remove unused mode iterator.
971
972 2011-10-06  Bernd Schmidt  <bernds@codesourcery.com>
973
974         * function.c (thread_prologue_and_epilogue_insns): Emit split prologue
975         on the orig_entry_edge. Don't account for it in prologue_clobbered.
976
977 2011-10-06  Jakub Jelinek  <jakub@redhat.com>
978
979         PR tree-optimization/50596
980         * tree-vectorizer.h (vect_is_simple_cond): New prototype.
981         (NUM_PATTERNS): Change to 6.
982         * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): New
983         function.
984         (vect_vect_recog_func_ptrs): Add vect_recog_mixed_size_cond_pattern.
985         (vect_mark_pattern_stmts): Don't create stmt_vinfo for def_stmt
986         if it already has one, and don't set STMT_VINFO_VECTYPE in it
987         if it is already set.
988         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Handle
989         COND_EXPR in pattern stmts.
990         (vect_is_simple_cond): No longer static.
991
992 2001-10-06  Richard Henderson  <rth@redhat.com>
993
994         * config/i386/i386.c (ix86_expand_vshuffle): Add AVX2 support.
995         * config/i386/sse.md (sseshuffint): Remove.
996         (sseintvecmode): Support V16HI, V8HI, V32QI, V16QI.
997         (VSHUFFLE_AVX2): New mode iterator.
998         (vshuffle<mode>): Use it.
999         (avx_vec_concat<V_256>): Rename from *vec_concat<V_256>_avx.
1000
1001         * config/i386/i386.c (ix86_expand_sse_movcc): Use correct mode
1002         for vector_all_ones_operand.
1003         (ix86_expand_int_vcond): Distinguish between comparison mode
1004         and data mode.  Allow them to differ.
1005         (ix86_expand_vshuffle): Don't force data mode to match maskmode.
1006
1007 2001-10-06  Richard Henderson  <rth@redhat.com>
1008
1009         * optabs.c (expand_vec_shuffle_expr): Use the proper mode for the
1010         mask operand.  Tidy the code.
1011
1012 2011-10-06  Jakub Jelinek  <jakub@redhat.com>
1013
1014         * tree-vect-patterns.c (vect_pattern_recog_1): Use
1015         vect_recog_func_ptr typedef for the first argument.
1016         (vect_pattern_recog): Rename vect_recog_func_ptr variable
1017         to vect_recog_func, use vect_recog_func_ptr typedef for it.
1018
1019         PR tree-optimization/49279
1020         * tree-ssa-structalias.c (find_func_aliases): Don't handle
1021         CAST_RESTRICT.
1022         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Allow
1023         restrict propagation.
1024         * tree-ssa.c (useless_type_conversion_p): Don't return false
1025         if TYPE_RESTRICT differs.
1026
1027 2011-10-06  Bernd Schmidt  <bernds@codesourcery.com>
1028
1029         * function.c (thread_prologue_and_epilogue_insns): Build a vector
1030         of unconverted simple return blocks rather than trying to
1031         recompute them later based on bb_flags bitmap tests.
1032
1033 2011-10-06  Michael Matz  <matz@suse.de>
1034
1035         * tree-flow.h (get_var_ann): Don't declare.
1036         * tree-flow-inline.h (get_var_ann): Remove.
1037         (set_is_used): Use var_ann, not get_var_ann.
1038         * tree-dfa.c (add_referenced_var): Inline body of get_var_ann.
1039         * tree-profile.c (gimple_gen_edge_profiler): Call
1040         find_referenced_var_in.
1041         (gimple_gen_interval_profiler): Ditto.
1042         (gimple_gen_pow2_profiler): Ditto.
1043         (gimple_gen_one_value_profiler): Ditto.
1044         (gimple_gen_average_profiler): Ditto.
1045         (gimple_gen_ior_profiler): Ditto.
1046         (gimple_gen_ic_profiler): Ditto plus call add_referenced_var.
1047         (gimple_gen_ic_func_profiler): Call add_referenced_var.
1048         * tree-mudflap.c (execute_mudflap_function_ops): Call
1049         add_referenced_var.
1050
1051 2011-10-06  Jakub Jelinek  <jakub@redhat.com>
1052
1053         * tree-vect-patterns.c (vect_handle_widen_mult_by_const): For lhs
1054         don't set SSA_NAME_DEF_STMT that has been already set by
1055         gimple_build_assign_with_ops.
1056         (vect_recog_pow_pattern, vect_recog_widen_sum_pattern,
1057         vect_operation_fits_smaller_type, vect_recog_over_widening_pattern):
1058         Likewise.
1059
1060         * tree.h (avoid_folding_inline_builtin): New prototype.
1061         * builtins.c (avoid_folding_inline_builtin): No longer static.
1062         * gimple-fold.c (gimple_fold_builtin): Give up if
1063         avoid_folding_inline_builtin returns true.
1064
1065 2011-10-06  Richard Guenther  <rguenther@suse.de>
1066
1067         * tree-vect-generic.c (vector_element): Look at previous
1068         generated results.
1069
1070 2011-10-06  David Edelsohn  <dje.gcc@gmail.com>
1071
1072         PR target/39950
1073         * config/rs6000/aix.h (TARGET_OS_AIX_CPP_BUILTINS): Define
1074         __powerpc__, __PPC__, __unix__.
1075
1076 2011-10-06  Michael Matz  <matz@suse.de>
1077
1078         * i386/i386.opt (recip_mask, recip_mask_explicit,
1079         x_recip_mask_explicit): New variables and cl_target member.
1080         (mrecip=): New option.
1081         * i386/i386.h (RECIP_MASK_DIV, RECIP_MASK_SQRT, RECIP_MASK_VEC_DIV,
1082         RECIP_MASK_VEC_SQRT, RECIP_MASK_ALL, RECIP_MASK_NONE): New bitmasks.
1083         (TARGET_RECIP_DIV, TARGET_RECIP_SQRT, TARGET_RECIP_VEC_DIV,
1084         TARGET_RECIP_VEC_SQRT): New tests.
1085         * i386/i386.md (divsf3): Check TARGET_RECIP_DIV.
1086         (sqrt<mode>2): Check TARGET_RECIP_SQRT.
1087         * i386/sse.md (div<mode>3): Check TARGET_RECIP_VEC_DIV.
1088         (sqrt<mode>2): Check TARGET_RECIP_VEC_SQRT.
1089         * i386/i386.c (ix86_option_override_internal): Set recip_mask
1090         for -mrecip and -mrecip=options.
1091         (ix86_function_specific_save): Save recip_mask_explicit.
1092         (ix86_function_specific_restore): Restore recip_mask_explicit.
1093
1094         * doc/invoke.texi (ix86 Options): Document the new option.
1095
1096 2011-10-06  Bernd Schmidt  <bernds@codesourcery.com>
1097
1098         PR target/49049
1099         * config/arm/arm.md (arm_subsi3_insn): Lose the last alternative.
1100
1101 2011-10-06  Ulrich Weigand  <ulrich.weigand@linaro.org>
1102
1103         PR target/50305
1104         * config/arm/arm.c (arm_legitimize_reload_address): Recognize
1105         output of a previous pass through legitimize_reload_address.
1106         Do not attempt to optimize addresses if the base register is
1107         equivalent to a constant.
1108
1109 2011-10-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1110
1111         * function.c (thread_prologue_and_epilogue_insns): Mark
1112         last_bb_active as possibly unused.  It is unused for targets which
1113         do neither have "return" nor "simple_return" expanders.
1114
1115 2011-10-06  Richard Guenther  <rguenther@suse.de>
1116
1117         * fold-const.c (fold_ternary_loc): Also fold non-constant
1118         vector CONSTRUCTORs.  Make more efficient.
1119         * tree-ssa-dom.c (cprop_operand): Don't handle virtual operands.
1120         (cprop_into_stmt): Don't propagate into virtual operands.
1121         (optimize_stmt): Really dump original statement.
1122
1123 2011-10-06  Nick Clifton  <nickc@redhat.com>
1124
1125         * config/rx/rx.md (smin3): Revert previous delta.
1126
1127 2011-10-06  Richard Guenther  <rguenther@suse.de>
1128
1129         PR tree-optimization/38884
1130         * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle partial
1131         reads from aggregate SSA names.
1132
1133 2011-10-05  Jakub Jelinek  <jakub@redhat.com>
1134
1135         * tree-vect-patterns.c (vect_pattern_recog_1): Add stmts_to_replace
1136         argument, truncate it at the beginning instead of allocating there
1137         and freeing at the end.
1138         (vect_pattern_recog): Allocate stmts_to_replace here and free at end,
1139         pass its address to vect_pattern_recog_1.
1140
1141 2011-10-05  David S. Miller  <davem@davemloft.net>
1142
1143         * config/sparc/sparc.opt (POPC): New option.
1144         * doc/invoke.texi: Document it.
1145         * config/sparc/sparc.c (sparc_option_override): Enable MASK_POPC by
1146         default on Niagara-2 and later.
1147         * config/sparc/sparc.h (CLZ_DEFINED_VALUE_AT_ZERO): Define.
1148         * config/sparc/sparc.md (SIDI): New mode iterator.
1149         (ffsdi2): Delete commented out pattern and comments.
1150         (popcount<mode>2, clz<mode>2): New expanders.
1151         (*popcount<mode>_sp64, popcountsi_v8plus, popcountdi_v8plus,
1152         *clzdi_sp64, clzdi_v8plus, *clzsi_sp64, clzsi_v8plus): New insns.
1153
1154 2011-10-06  Artjoms Sinkarovs  <artyom.shinkaroff@gmail.com>
1155
1156         PR middle-end/50607
1157         * c-tree.h (c_expr_t): New typedef for struct c_expr.
1158         (C_EXPR_APPEND): New macro.
1159         * c-parser.c (c_parser_get_builtin_args): Preserve
1160         original_tree_code of c_expr structure.
1161         (c_parser_postfix_expression): Adjust to the new function.
1162
1163 2011-10-05  Bernd Schmidt  <bernds@codesourcery.com>
1164
1165         * function.c (thread_prologue_and_epilogue_insns): Don't shrink-wrap
1166         if profiling after the prologue.
1167
1168 2011-10-05  Jakub Jelinek  <jakub@redhat.com>
1169
1170         PR tree-optimization/50613
1171         * tree-ssa-strlen.c (find_equal_ptrs): If CASE_CONVERT
1172         operand is ADDR_EXPR, fallthru into ADDR_EXPR handling,
1173         and if it is neither that not SSA_NAME, give up.
1174
1175 2011-10-05  Richard Henderson  <rth@redhat.com>
1176
1177         * tree-vect-generic.c (vector_element): Never fail.  Use
1178         build_zero_cst.  Tidy up type references.
1179         (lower_vec_shuffle): Never fail.  Mask shuffle indicies.  Reduce
1180         code duplication.  Do update_stmt here ...
1181         (expand_vector_operations_1): ... not here.
1182
1183         * config/i386/i386.c (ix86_expand_vshuffle): Never fail.  Handle
1184         TARGET_XOP.  Fix pshufb constant vector creation.  Reduce code
1185         duplication.  Handle V2DI without SSE4.1.
1186         * config/i386/i386-protos.h (ix86_expand_vshuffle): Update decl.
1187         * config/i386/i386.md (vshuffle<V_128>): Remove assert for ok.
1188
1189 2011-10-05  Uros Bizjak  <ubizjak@gmail.com>
1190
1191         * config/i386/i386.c (distance_non_agu_define): Simplify calculation
1192         of "found".  Simplify return value calculation.
1193         (distance_agu_use): Ditto.
1194
1195 2011-10-05  Bernd Schmidt  <bernds@codesourcery.com>
1196
1197         PR bootstrap/50621
1198         * config/i386/i386.c (ix86_add_cfa_restore_note): Omit notes only
1199         if the function was not shrink-wrapped.
1200         (ix86_expand_epilogue): Ensure queued cfa_adjust notes are attached
1201         to an insn.
1202         * function.c (thread_prologue_and_epilogue_insns): Make sure the
1203         shrink_wrapped flag is set even if there is no dump file.
1204
1205 2011-10-05  DJ Delorie  <dj@redhat.com>
1206             Nick Clifton  <nickc@redhat.com>
1207
1208         * config/rx/rx.opt (mpid): Define.
1209         * config/rx/t-rx (MULTILIB_OPTIONS): Add -mpid
1210         (MULTILIB_DIRNAMES): Add pid.
1211         * config/rx/rx.c (rx_gp_base_regnum_val, rx_pid_base_regnum_val)
1212         (rx_num_interrupt_regs): New variable.
1213         (rx_gp_base_regnum): New function.  Returns the number of the
1214         small data area register.
1215         (rx_pid_base_regnum): New function.  Returns the number of the pid
1216         base register.
1217         (rx_decl_for_addr): New function.  Returns the symbolic part of a MEM.
1218         (rx_pid_data_operand): New function.  Returns whether an object is
1219         in the position independent data area.
1220         (rx_legitimize_address): New function.  Puts undecided PID
1221         objects in the PID data area.
1222         (rx_is_legitimate_address): Add support for PID operands.
1223         (rx_print_operand_address): Likewise.
1224         (rx_print_operand): Likewise.
1225         (rx_maybe_pidify_operand): New function.  Determine if an operand
1226         is suitable for PID addressing.
1227         (rx_gen_move_template): Add PID support.
1228         (rx_conditional_register_usage): Likewise.
1229         (rx_option_override): Initialise rx_num_interrupt_regs.
1230         (rx_is_legitimate_constant): Add support for PID constants.
1231         (TARGET_LEGITIMIZE_ADDRESS): Define.
1232         * config/rx/constraints.md (Rpid): Define.
1233         (Rpda): Define.
1234         * config/rx/rx.md (UNSPEC_PID_ADDR): Define.
1235         (tablejump): Add PID support.
1236         (mov<>): Likewise.
1237         (mov<>_internal): Likewise.
1238         (addsi3): Convert to an expander.  Add PID support.
1239         (pid_addr): New pattern.
1240         * config/rx/rx.h (CPP_SPEC): Define.
1241         (ASM_SPEC): Pass -mpid and -mint-register on to assembler.
1242         (CASE_VECTOR_PC_RELATIVE): Define.
1243         (JUMP_TABLES_IN_TEXT_SECTION): Enable for PID mode.
1244         * config/rx/rx-protos.h (rx_maybe_pidify_operand): Prototype.
1245         * doc/invoke.texi (RX Options): Document -mpid command line option.
1246
1247 2011-10-05  Richard Guenther  <rguenther@suse.de>
1248
1249         PR tree-optimization/38885
1250         * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle partial reads
1251         from constants.
1252
1253 2011-10-05  Bernd Schmidt  <bernds@codesourcery.com>
1254
1255         * doc/invoke.texi (-fshrink-wrap): Document.
1256         * opts.c (default_options_table): Add it.
1257         * common.opt (fshrink-wrap): Add.
1258         * function.c (emit_return_into_block): Remove useless declaration.
1259         (record_hard_reg_uses_1, record_hard_reg_uses, frame_required_for_rtx,
1260         requires_stack_frame_p, gen_return_pattern): New static functions.
1261         (emit_return_into_block): New arg simple_p.  All callers changed.
1262         Use gen_return_pattern.
1263         (thread_prologue_and_epilogue_insns): Implement shrink-wrapping.
1264         * config/i386/i386.md (return): Expand into a simple_return.
1265         (simple_return): New expander):
1266         (simple_return_internal, simple_return_internal_long,
1267         simple_return_pop_internal_long, simple_return_indirect_internal):
1268         Renamed from return_internal, return_internal_long,
1269         return_pop_internal_long and return_indirect_internal; changed to use
1270         simple_return.
1271         * config/i386/i386.c (ix86_expand_epilogue): Adjust to expand
1272         simple returns.
1273         (ix86_pad_returns): Likewise.
1274         * function.h (struct rtl_data): Add member shrink_wrapped.
1275         * cfgcleanup.c (outgoing_edges_match): If shrink-wrapped, edges that
1276         are not jumps or sibcalls can't be compared.
1277
1278 2011-10-05  Richard Guenther  <rguenther@suse.de>
1279
1280         * tree-ssa-sccvn.c (vn_get_expr_for): Handle CONSTRUCTOR of
1281         vector type.
1282         (simplify_unary_expression): Handle BIT_FIELD_REFs.
1283         (try_to_simplify): Handle BIT_FIELD_REFs.
1284
1285 2011-10-05  Georg-Johann Lay  <avr@gjlay.de>
1286
1287         * config/avr/avr-protos.h (avr_out_addto_sp): New prototype.
1288         * config/avr/avr.c (avr_out_addto_sp): New function.
1289         (adjust_insn_length): Handle ADJUST_LEN_ADDTO_SP.
1290         * config/avr/avr.md (adjust_len): Add "addto_sp".
1291         (*movhi_sp): Remove insn.
1292         (*addhi3_sp_R_pc2, *addhi3_sp_R_pc3): Merge to *addhi3_sp_R.
1293
1294 2011-10-05  Richard Guenther  <rguenther@suse.de>
1295
1296         * gimple-fold.c (gimple_fold_stmt_to_constant_1): For ternary ops
1297         with an embedded expression valueize and fold that as well.
1298         * tree-ssa-sccvn.c (try_to_simplify): Also allow SSA name
1299         results from gimple_fold_stmt_to_constant_1.
1300
1301 2011-10-05  Nick Clifton  <nickc@redhat.com>
1302
1303         * config/rx/rx.md (tablejump): Add missing label.
1304         (adddi3_internal): Mark operand 0 as early-clobbered.
1305         (smaxsi3): Revert previous delta.
1306         (adc_internal): Fix whitespace in generated asm.
1307         (adc_flags): Likewise.
1308
1309 2011-10-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1310
1311         * expmed.c (expand_mult_highpart_optab): Replace optab_handler
1312         with the new widening_optab_handler.
1313
1314 2011-10-05  Richard Guenther  <rguenther@suse.de>
1315
1316         PR tree-optimization/50609
1317         * gimple-fold.c (fold_array_ctor_reference): Also handle
1318         vector typed constructors.
1319         (fold_ctor_reference): Dispatch to fold_array_ctor_reference
1320         for vector typed constructors.
1321
1322 2011-10-05  Uros Bizjak  <ubizjak@gmail.com>
1323
1324         * config/i386/i386.c (ix86_emit_binop): New static function.
1325         (ix86_split_lea_for_addr): Use ix86_emit_binop to emit add and shl
1326         instructions.
1327         (x86_output_mi_thunk): Use ix86_emit_binop to emit add instructions.
1328
1329 2011-10-04  David S. Miller  <davem@davemloft.net>
1330
1331         * config/sparc/sparc.md (UNSPEC_FHADD, UNSPEC_FHSUB,
1332         UNSPEC_XMUL): New unspecs.
1333         (muldi3_v8plus): Use output_v8plus_mult.
1334         (*naddsf3, *nadddf3, *nmulsf3, *nmuldf3, *nmuldf3_extend):
1335         New VIS 3.0 combiner patterns.
1336         (fhaddsf_vis, fhadddf_vis, fhsubsf_vis, fhsubdf_vis,
1337         fnhaddsf_vis, fnhaddf_vis, umulxhi_vis, *umulxhi_sp64,
1338         umulxhi_v8plus, xmulx_vis, *xmulx_sp64, xmulx_v8plus,
1339         xmulxhi_vis, *xmulxhi_sp64, xmulxhi_v8plus): New VIS 3.0
1340         builtins patterns.
1341         * config/sparc/sparc.c (sparc_vis_init_builtins): Emit new builtins.
1342         (output_v8plus_mult): New function.
1343         * config/sparc/sparc-protos.h: Declare it.
1344         * config/sparc/visintrin.h (__vis_fhadds, __vis_fhaddd,
1345         __vis_fhsubs, __vis_fhsubd, __vis_fnhadds, __vis_fnhaddd,
1346         __vis_umulxhi, __vis_xmulx, __vis_xmulxhi): New intrinsics.
1347         * doc/extend.texi: Document new builtins.
1348
1349 2011-10-04  Richard Henderson  <rth@redhat.com>
1350
1351         * c-typeck.c (c_build_vec_shuffle_expr): Fix uninitialized variable.
1352         Avoid save_expr unless two_arguments.
1353
1354 2011-10-04  Ozkan Sezer  <sezeroz@gmail.com>
1355
1356         * config/i386/mingw-w64.h (CPP_SPEC): Rename _REENTRANCE to _REENTRANT.
1357         * config/i386/mingw32.h (CPP_SPEC): Likewise.
1358
1359 2011-10-04  David S. Miller  <davem@davemloft.net>
1360
1361         * config/sparc/driver-sparc.c (cpu_names): Fix string for supersparc
1362         under Linux.
1363
1364 2011-10-04  Jakub Jelinek  <jakub@redhat.com>
1365
1366         PR tree-optimization/50604
1367         * builtins.c (fold_builtin_strcpy, fold_builtin_stpcpy,
1368         fold_builtin_strncpy, fold_builtin_stxcpy_chk): Ensure
1369         last argument to memcpy has size_type_node type instead of ssizetype.
1370         * tree-ssa-strlen.c (handle_builtin_memcpy): Use size_type_node
1371         instead of TREE_TYPE (len) as type for newlen.
1372
1373         PR tree-optimization/50522
1374         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Don't test
1375         TYPE_RESTRICT.
1376         (ptr_derefs_may_alias_p): Call pt_solutions_same_restrict_base
1377         unconditionally.
1378
1379         * fold-const.c (fold_unary_loc): Don't optimize
1380         POINTER_PLUS_EXPR casted to TYPE_RESTRICT pointer by
1381         casting the inner pointer if it isn't TYPE_RESTRICT.
1382         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't through
1383         casts from non-TYPE_RESTRICT pointer to TYPE_RESTRICT pointer.
1384
1385 2011-10-04  Joseph Myers  <joseph@codesourcery.com>
1386
1387         * config.gcc (i[34567]86-*-elf*, x86_64-*-elf*): Use i386/t-crtstuff.
1388
1389 2011-10-04  Jan Hubicka  <jh@suse.cz>
1390
1391         * lto-streamer.h (lto_input_toplevel_asms): Add order_base parameter.
1392         * lto-streamer-in.c (lto_input_toplevel_asms): Stream in order.
1393         * lto-streamer-out.c (lto_output_toplevel_asms): Stream out order.
1394         * lto-cgraph.c (order_base): New static var.
1395         (lto_output_node): Stream in order.
1396         (lto_output_varpool_node): Stream out order.
1397         (input_node): Stream in order.
1398         (input_varpool_node): Stream out order.
1399         (input_cgraph_1): Initialize order base; update call of
1400         lto_input_toplevel_asms.
1401
1402 2011-10-04  Georg-Johann Lay  <avr@gjlay.de>
1403
1404         PR target/50566
1405         * config/avr/avr-protos.h (avr_legitimize_reload_address): New
1406         prototype.
1407         * config/avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Copy worker code
1408         from here...
1409         * config/avr/avr.c (avr_legitimize_reload_address) ...to this new
1410         function.  Log if avr_log.legitimize_reload_address.
1411
1412 2011-10-04  Eric Botcazou  <ebotcazou@adacore.com>
1413
1414         * config/sparc/sparc.c (sparc_fold_builtin): Use a sequence of tests.
1415
1416 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1417
1418         * longlong.h (smul_ppmm, sdiv_qrnnd): Add underscores to the local
1419         variables.  Fix second operand of DR.  Swap inputs for sdiv_qrnnd.
1420
1421 2011-10-03  David S. Miller  <davem@davemloft.net>
1422
1423         * config/sparc/sparc.md (fpack16_vis, fpackfix_vis, fpack32_vis): Make
1424         GSR_REG an input operand to UNSPEC instead of a parallel USE.
1425         (faligndata<V64I:mode>_vis): Likewise and use DI mode.
1426         (alignaddrsi_vis, alignaddrdi_vis, alignaddrlsi_vis, alignaddrldi_vis):
1427         Reference GSR_REG in DI mode, simplify convoluted expressions by using
1428         zero_extract.
1429         (bshuffle<V64I:mode>_vis): Reference GSR_REG in DI mode.
1430
1431 2011-10-03  Maxim Kuvyrkov  <maxim@codesourcery.com>
1432
1433         * tree-eh.c (remove_unreachable_handlers): Obvious cleanup.
1434
1435 2011-10-03  Jakub Jelinek  <jakub@redhat.com>
1436             Ian Lance Taylor  <iant@google.com>
1437
1438         * godump.c (go_output_typedef): Support printing enum values that
1439         don't fit in a signed HOST_WIDE_INT.
1440
1441 2011-10-03  Anatoly Sokolov  <aesok@post.ru>
1442
1443         * config/cris/cris.c (cris_output_addr_const_extra): Make static.
1444         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
1445         * config/cris/cris.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
1446         * config/cris/cris-protos.h (cris_output_addr_const_extra): Remove.
1447
1448 2011-10-03  Anatoly Sokolov  <aesok@post.ru>
1449
1450         * config/m68k/m68k.c (m68k_output_addr_const_extra): Make static.
1451         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
1452         * config/m68k/m68k.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
1453         * config/m68k/m68k-protos.h (m68k_output_addr_const_extra): Remove.
1454
1455 2011-10-03  Steve Ellcey  <sje@cup.hp.com>
1456
1457         PR target/49967
1458         * configure.ac (gcc_cv_ld_static_dynamic): Define for *-*-hpux*.
1459         (gcc_cv_ld_static_option): Ditto.
1460         (gcc_cv_ld_dynamic_option): Ditto.
1461         * configure: Regenerate.
1462
1463 2011-10-03  David S. Miller  <davem@davemloft.net>
1464
1465         * config/sparc/sparc.md (bmask<P:mode>_vis): Split into explicit 'di'
1466         and 'si' patterns which describe the GSR changes explicitly in the
1467         RTL using zero_extract.
1468         (bshuffle<V64I:mode>_vis): Put the GSR use inside of the unspec.
1469
1470         * config/sparc/sparc.md (bshuffle<V64I:mode>_vis): Don't wrap
1471         GSR_REG in a USE, since it's now a true arg to the UNSPEC.
1472
1473 2011-10-03  Artjoms Sinkarovs  <artyom.shinkaroff@gmail.com>
1474
1475         * optabs.c (expand_vec_shuffle_expr_p): New function. Checks
1476         if given expression can be expanded by the target.
1477         (expand_vec_shuffle_expr): New function. Expand VEC_SHUFFLE_EXPR
1478         using target vector instructions.
1479         * optabs.h: New optab vshuffle.
1480         (expand_vec_shuffle_expr_p): New prototype.
1481         (expand_vec_shuffle_expr): New prototype.
1482         (vshuffle_optab): New optab.
1483         * genopinit.c: Adjust to support vecshuffle.
1484         * c-tree.h (c_build_vec_shuffle_expr): New prototype.
1485         * expr.c (expand_expr_real_2): Adjust.
1486         * c-typeck.c: (c_build_vec_shuffle_expr): Build a VEC_SHUFFLE_EXPR
1487         recognizing the cases of two and three arguments.
1488         (convert_arguments) (build_binary_op)
1489         (scalar_to_vector) (build_array_ref): Spurious whitespace.
1490         * gimplify.c (gimplify_exp): Adjusted to support VEC_SHUFFLE_EXPR.
1491         * tree.def: New tree code VEC_SHUFFLE_EXPR.
1492         * tree-inline.c (estimate_operator_cost): Recognize VEC_SHUFFLE_EXPR.
1493         * tree-vect-generic.c (vector_element): New function. Returns an
1494         element of the vector at the given position.
1495         (lower_vec_shuffle): Checks if VEC_SHUFLLE_EXPR is supported
1496         by the backend or expand an expression piecewise.
1497         (expand_vector_operations_1): Adjusted.
1498         (gate_expand_vector_operations_noop): New gate function.
1499         * Makefile.in (tree-vect-generic.o): New include.
1500         * gimple.c (get_gimple_rhs_num_ops): Adjust.
1501         * tree-cfg.c (verify_gimple_assign_trenary): Verify VEC_SHUFFLE_EXPR.
1502         * passes.c: Move veclower down.
1503         * tree-pretty-print.c (dump_generic_node): Recognize
1504         VEC_SHUFFLE_EXPR as valid expression.
1505         * c-parser.c (c_parser_get_builtin_args): Helper function for the
1506         builtins with variable number of arguments.
1507         (c_parser_postfix_expression): Use a new helper function for
1508         RID_CHOOSE_EXPR, RID_BUILTIN_COMPLEX and RID_BUILTIN_SHUFFLE.
1509         * tree-ssa-operands: Adjust.
1510         * c-family/c-common.c: New __builtin_shuffle keyword.
1511         * c-family/c-common.h: New __builtin_shuffle keyword.
1512         * gcc/doc/extend.texi: Adjust.
1513
1514         * gcc/config/i386/sse.md: (sseshuffint) New mode_attr.  Correspondence
1515         between the vector and the type of the mask when shuffling.
1516         (vecshuffle<mode>): New expansion.
1517         * gcc/config/i386/i386-protos.h (ix86_expand_vshuffle): New prototype.
1518         * gcc/config/i386/i386.c (ix86_expand_vshuffle): New function.
1519         (ix86_vectorize_builtin_vec_perm_ok): Adjust.
1520
1521 2011-10-03  Jakub Jelinek  <jakub@redhat.com>
1522
1523         PR tree-optimization/50587
1524         * tree-ssa-reassoc.c (init_range_entry): Stop iterating when
1525         arg0 is not a SSA_NAME.
1526
1527 2011-10-03  Richard Sandiford  <rdsandiford@googlemail.com>
1528
1529         * ipa-inline-analysis.c (MAX_TIME): Update comment.
1530
1531 2011-10-02  Richard Henderson  <rth@redhat.com>
1532             David S. Miller  <davem@davemloft.net>
1533
1534         * config/sparc/sparc.md (ashlsi3, *ashldi3_sp64): Remove
1535         conditional insn type setting, we always emit a shift.
1536         (*ashlsi3_extend, *lshrsi3_extend0): New patterns.
1537         (*lshrsi3_extend): Rename to *lshrsi3_extend1.
1538         * config/sparc/predicates.md (const_one_operand): Delete.
1539
1540 2011-10-02  Gerald Pfeifer  <gerald@pfeifer.com>
1541
1542         * invoke.texi (SPARC Options): Refer to GNU/Linux.
1543
1544 2011-10-02  Richard Sandiford  <rdsandiford@googlemail.com>
1545
1546         * config/mips/mips.c (mips_frame_barrier): New function.
1547         (mips_expand_prologue): Call it after allocating stack space.
1548         (mips_deallocate_stack): New function.
1549         (mips_expand_epilogue): Call mips_frame_barrier and
1550         mips_deallocate_stack.
1551
1552 2011-10-02  Richard Sandiford  <rdsandiford@googlemail.com>
1553
1554         PR target/49696
1555         * config/mips/sync.md (sync_<optab>_12): Allow zero operands.
1556         (sync_old_<optab>_12, sync_new_<optab>_12, sync_nand_12): Likewise.
1557         (sync_old_nand_12, sync_new_nand_12, test_and_set_12): Likewise.
1558
1559 2011-10-02  Jan Hubicka  <jh@suse.cz>
1560
1561         * cgraphunit.c (verify_edge_count_and_frequency): Bounds check.
1562
1563         * cgraphunit.c (ipa_passes): Remove unrechable nodes.
1564         * lto-streamer-out.c (produce_symtab): Skip unused extern declarations.
1565         * ipa.c (cgraph_remove_unreachable_nodes): Do not assume that external
1566         functions are reachable when address is taken.
1567         * tree-sra.c (modify_function): Free dominance info.
1568
1569 2011-10-02  Jan Hubicka  <jh@suse.cz>
1570
1571         * ipa-inline-analysis.c (inline_summary_alloc): Bounds check.
1572
1573         * ipa-inline-analysis.c (reset_inline_edge_summary): New function.
1574         (reset_inline_summary): New function.
1575         (compute_inline_parameters, inline_node_removal_hook,
1576         inline_edge_removal_hook): Use it.
1577         (inline_free_summary): Reset holders correctly.
1578         (inline_generate_summary): Free summary before computing it.
1579
1580 2011-10-02  Paolo Carlini  <paolo.carlini@oracle.com>
1581
1582         PR preprocessor/36819
1583         * incpath.c (merge_include_chains): Call free_path on
1584         heads[QUOTE] and tails[QUOTE].
1585
1586 2011-10-02  Jan Hubicka  <jh@suse.cz>
1587
1588         PR lto/47247
1589         * lto-symtab.c (lto_symtab_resolve_symbols): Do not resolve
1590         when resolution is already availbale from plugin.
1591         (lto_symtab_merge_decls_1): Handle LDPR_PREVAILING_DEF_IRONLY_EXP.
1592         * cgraph.c (ld_plugin_symbol_resolution): Add
1593         prevailing_def_ironly_exp.
1594         * lto-cgraph.c (LDPR_NUM_KNOWN): Update.
1595         * ipa.c (varpool_externally_visible_p): IRONLY variables are never
1596         externally visible.
1597         * varasm.c (resolution_to_local_definition_p): Add
1598         LDPR_PREVAILING_DEF_IRONLY_EXP.
1599         (resolution_local_p): Likewise.
1600
1601 2011-10-01  David S. Miller  <davem@davemloft.net>
1602
1603         * config/sparc/sparc.opt (VIS3): New option.
1604         * doc/invoke.texi: Document it.
1605         * config/sparc/sparc.h: Force TARGET_VIS3 to zero if assembler is
1606         not capable of such instructions.
1607         * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__
1608         to 0x300 when TARGET_VIS3.
1609         * config/sparc/sparc-modes.def: Create 16-byte vector modes.
1610         * config/sparc/sparc.md (UNSPEC_CMASK8, UNSPEC_CMASK16, UNSPEC_CMASK32,
1611         UNSPEC_FCHKSM16, UNSPEC_PDISTN, UNSPC_FUCMP): New unspecs.
1612         (V64N8, VASS): New mode iterators.
1613         (vis3_shift, vis3_addsub_ss): New code iterators.
1614         (vbits, vconstr): New mode attributes.
1615         (vis3_shift_insn, vis3_addsub_ss_insn): New code attributes.
1616         (cmask8<P:mode>_vis, cmask16<P:mode>_vis, cmask32<P:mode>_vis,
1617         fchksm16_vis, <vis3_shift_insn><vbits>_vis, pdistn<mode>_vis,
1618         fmean16_vis, fpadd64_vis, fpsub64_vis,
1619         <vis3_addsub_ss_insn><vbits>_vis, fucmp<code>8<P:mode>_vis): New
1620         VIS 3.0 instruction patterns.
1621         * config/sparc/sparc.c (sparc_option_override): Set MASK_VIS3 by
1622         default when targetting capable cpus.  TARGET_VIS3 implies
1623         TARGET_VIS2 and TARGET_VIS, and clear them when TARGET_FPU is disabled.
1624         (sparc_vis_init_builtins): Emit new VIS 3.0 builtins.
1625         (sparc_fold_builtin): Do not eliminate cmask{8,16,32} when result
1626         is ignored.
1627         * config/sparc/visintrin.h (__vis_cmask8, __vis_cmask16,
1628         __vis_cmask32, __vis_fchksm16, __vis_fsll16, __vis_fslas16,
1629         __vis_fsrl16, __vis_fsra16, __vis_fsll32, __vis_fslas32,
1630         __vis_fsrl32, __vis_fsra32, __vis_pdistn, __vis_fmean16,
1631         __vis_fpadd64, __vis_fpsub64, __vis_fpadds16, __vis_fpadds16s,
1632         __vis_fpsubs16, __vis_fpsubs16s, __vis_fpadds32, __vis_fpadds32s,
1633         __vis_fpsubs32, __vis_fpsubs32s, __vis_fucmple8, __vis_fucmpne8,
1634         __vis_fucmpgt8, __vis_fucmpeq8): New VIS 3.0 interfaces.
1635         * doc/extend.texi: Document new VIS 3.0 builtins.
1636
1637 2011-10-01  Eric Botcazou  <ebotcazou@adacore.com>
1638
1639         * ira-color.c (assign_hard_reg): Fix typo.
1640
1641 2011-09-30  H.J. Lu  <hongjiu.lu@intel.com>
1642
1643         * doc/extend.texi: Add missing ','.
1644
1645 2011-09-30  Bernd Schmidt  <bernds@codesourcery.com>
1646
1647         * common/config/c6x/c6x-common.c (c6x_option_optimization_table):
1648         Enable -fmodulo-sched at -O2 and above.
1649         * config/c6x/c6x.md (doloop_end): New expander.
1650         (mvilc, sploop, spkernel, loop_end): New patterns.
1651         (loop_end with memory destination splitter): New.
1652         * config/c6x/c6x.c: Include "hw-doloop.h".
1653         (enum unitreqs): New.
1654         (unit_req_table): New typedef.
1655         (unit_reqs): New static variable.
1656         (unit_req_factor, get_unit_reqs, count_unit_reqs, merge_unit_reqs,
1657         res_mii, split_delayed_nonbranch, undo_split_delayed_nonbranch,
1658         hwloop_pattern_reg, bb_earliest_end_cycle, filter_insns_above,
1659         hwloop_optimize, hwloop_fail, c6x_hwloops): New static functions.
1660         (struct c6x_sched_context): New member last_scheduled_iter0.
1661         (init_sched_state): Initialize it.
1662         (c6x_variable_issue): Update it.
1663         (sploop_max_uid_iter0): New static variable.
1664         (c6x_sched_reorder_1): Be careful about issuing sploop.
1665         (c6x_reorg): Call c6x_hwlooops before the final schedule.
1666
1667 2011-09-30  Georg-Johann Lay  <avr@gjlay.de>
1668
1669         PR target/50566
1670         * config/avr/avr-protos.h (avr_log_t): New field address_cost.
1671         * config/avr/avr.c (avr_address_cost): Use it.
1672         * config/avr/avr-log.c (avr_log_set_avr_log): Initialize it.
1673         (avr_log_vadump): Unknown %-codes finish printing.
1674
1675 2011-09-30  Jakub Jelinek  <jakub@redhat.com>
1676
1677         PR inline-asm/50571
1678         * gimple-fold.c (fold_stmt_1) <case GIMPLE_ASM>: If
1679         input constraints allow mem and not reg, pass true instead of
1680         false as second argument to maybe_fold_reference.
1681
1682         PR tree-optimization/46309
1683         * fold-const.c (make_range, merge_ranges): Remove prototypes.
1684         (make_range_step): New function.
1685         (make_range): Use it.
1686         * tree.h (make_range_step): New prototypes.
1687         * Makefile.in (tree-ssa-reassoc.o): Depend on $(DIAGNOSTIC_CORE_H).
1688         * tree-ssa-reassoc.c: Include diagnostic-core.h.
1689         (struct range_entry): New type.
1690         (init_range_entry, range_entry_cmp, update_range_test,
1691         optimize_range_tests): New functions.
1692         (reassociate_bb): Call optimize_range_tests.
1693
1694 2011-09-30  Jakub Jelinek  <jakub@redhat.com>
1695             Richard Guenther  <rguenther@suse.de>
1696
1697         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Handle
1698         BUILT_IN_STRDUP and BUILT_IN_STRNDUP.
1699         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Likewise.  Fix
1700         handling of BUILT_IN_STRNCAT and BUILT_IN_STRNCAT_CHK.
1701         (ref_maybe_used_by_call_p_1): Fix handling of BUILT_IN_STRCAT,
1702         BUILT_IN_STRNCAT, BUILT_IN_STRCAT_CHK and BUILT_IN_STRNCAT_CHK.
1703
1704 2011-09-30  Jan Beulich  <jbeulich@suse.com>
1705
1706         * lto-cgraph.c (output_cgraph): Remove processing of
1707         'cgraph_asm_nodes', call lto_output_toplevel_asms() instead.
1708         (input_cgraph_1): Remove loop calling cgraph_add_asm_node(), call
1709         lto_input_toplevel_asms() instead.
1710         * lto-section-in.c (lto_section_name): Add "asm" entry.
1711         * lto-streamer-in.c (lto_input_toplevel_asms): New.
1712         * lto-streamer-out.c (lto_output_toplevel_asms): New.
1713         * lto-streamer.h (LTO_minor_version): Bump.
1714         (enum lto_section_type): Add LTO_section_asm.
1715         (struct lto_asm_header): New.
1716         (lto_input_toplevel_asms, lto_output_toplevel_asms): Declare.
1717         * tree-streamer.h (streamer_write_string_cst): Declare.
1718         * tree-streamer-out.c (write_string_cst): Rename to
1719         streamer_write_string_cst and make global. Handle incoming string
1720         being NULL.
1721         (streamer_write_tree_header): Adjust call to renamed function.
1722
1723 2011-09-30  Bernd Schmidt  <bernds@codesourcery.com>
1724
1725         * haifa-sched.c (modulo_ii, modulo_max_states, modulo_n_insns,
1726         modulo_insns_scheduled, modulo_iter0_max_uid, modulo_backtracks_left,
1727         modulo_last_stage): New static variables.
1728         (set_modulo_params, discard_delay_pairs_above): New functions.
1729         (struct delay_pair): New member stages.
1730         (htab_i2_traverse, htab_i1_traverse): New static functions.
1731         (record_delay_slot_pair): New arg stages.  All callers changed.
1732         Record it.
1733         (pair_delay): Take stages into account.
1734         (add_delay_dependencies): Don't do so for stage pairs.
1735         (struct sched_block_state): New member modulo_epilogue.
1736         (save_backtrack_point): Don't set SHADOW_P for stage pairs.
1737         (unschedule_insns_until): Decrease modulo_insns_scheduled.
1738         Set HARD_DEP without using or.
1739         (resolve_dependencies): New static function.
1740         (prune_ready_list): New arg modulo_epilogue_p.  All callers changed.
1741         If it is true, allow only insns with INSN_EXACT_TICK set.
1742         (schedule_block): Return bool, always true for normal scheduling,
1743         true or false depending on modulo scheduling success otherwise.
1744         Add bookkeeping for modulo scheduling, and call resolve_dependencies
1745         on everything left over after a modulo schedule.
1746         (haifa_sched_init): Remove check_cfg call.  Clear modulo_ii.
1747         * sched-int.h (schedule_block, record_delay_slot_pair): Adjust
1748         declarations.
1749         (set_modulo_params, discard_delay_pairs_above): Declare.
1750         * params.def (PARAM_MAX_MODULO_BACKTRACK_ATTEMPS): New.
1751         * doc/invoke.texi (--param): Document it.
1752
1753         * sched-ebb.c (schedule_ebb): No longer static.  Remove declaration.
1754         New arg modulo_scheduling.  All callers changed.  Move note handling
1755         code here from schedule_ebbs.
1756         (schedule_ebbs_finish, schedule_ebbs_init): New functions, broken
1757         out of schedule_ebbs.
1758         (schedule_ebbs): Call them.  Remove note handling code moved to
1759         schedule_ebb.
1760         * sched-int.h (schedule_ebb, schedule_ebbs_init,
1761         schedule_ebbs_finish): Declare.
1762
1763 2011-09-30  Richard Guenther  <rguenther@suse.de>
1764
1765         PR middle-end/50574
1766         * tree-cfg.c (verify_gimple_comparison): Compare component
1767         mode sizes for vector comparisons.
1768
1769 2011-09-30  Revital Eres  <revital.eres@linaro.org>
1770
1771         * ddg.c (autoinc_var_is_used_p): New function.
1772         (create_ddg_dep_from_intra_loop_link,
1773         add_cross_iteration_register_deps): Call it.
1774         * ddg.h (autoinc_var_is_used_p): Declare.
1775         * modulo-sched.c (generate_reg_moves): Call autoinc_var_is_used_p.
1776         (sms_schedule): Handle instructions with REG_INC.
1777
1778 2011-09-30  Revital Eres  <revital.eres@linaro.org>
1779
1780         * modulo-sched.c (generate_reg_moves): Skip instructions that
1781         do not set a register and verify no regmoves are created for
1782         !single_set instructions.
1783
1784 2011-09-30  Bernd Schmidt  <bernds@codesourcery.com>
1785
1786         * hw-doloop.c (scan_loop): Compute register usage only for non-debug
1787         insns.
1788
1789 2011-09-30  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
1790
1791         PR target/50099
1792         * config/arm/iterators.md (qhs_zextenddi_cstr): New.
1793         (qhs_zextenddi_op): New.
1794         * config/arm/arm.md ("zero_extend<mode>di2"): Use them.
1795         * config/arm/predicates.md ("arm_extendqisi_mem_op"):
1796         Distinguish between ARM and Thumb2 states.
1797
1798 2011-09-30  David S. Miller  <davem@davemloft.net>
1799
1800         * config/sparc/sparc.opt (VIS2): New option.
1801         * doc/invoke.texi: Document it.
1802         * config/sparc/sparc.md (UNSPEC_EDGE8N, UNSPEC_EDGE8LN,
1803         UNSPEC_EDGE16N, UNSPEC_EDGE16LN, UNSPEC_EDGE32N,
1804         UNSPEC_EDGE32LN, UNSPEC_BSHUFFLE): New unspecs.
1805         (define_attr type): New insn type 'edgen'.
1806         (bmask<P:mode>_vis, bshuffle<V64I:mode>_vis, edge8n<P:mode>_vis,
1807         edge8ln<P:mode>_vis, edge16n<P:mode>_vis, edge16ln<P:mode>_vis,
1808         edge32n<P:mode>_vis, edge32ln<P:mode>_vis): New insn VIS 2.0
1809         patterns.
1810         * niagara.md: Handle edgen.
1811         * niagara2.md: Likewise.
1812         * ultra1_2.md: Likewise.
1813         * ultra3.md: Likewise.
1814         * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__
1815         to 0x200 when TARGET_VIS2.
1816         * config/sparc/sparc.c (sparc_option_override): Set MASK_VIS2 by
1817         default when targetting capable cpus.  TARGET_VIS2 implies
1818         TARGET_VIS, clear and it when TARGET_FPU is disabled.
1819         (sparc_vis_init_builtins): Emit new VIS 2.0 builtins.
1820         (sparc_expand_builtin): Fix predicate indexing when builtin returns
1821         void.
1822         (sparc_fold_builtin): Do not eliminate bmask when result is ignored.
1823         * config/sparc/visintrin.h (__vis_bmask, __vis_bshuffledi,
1824         __vis_bshufflev2si, __vis_bshufflev4hi, __vis_bshufflev8qi,
1825         __vis_edge8n, __vis_edge8ln, __vis_edge16n, __vis_edge16ln,
1826         __vis_edge32n, __vis_edge32ln): New VIS 2.0 interfaces.
1827         * doc/extend.texi: Document new VIS 2.0 builtins.
1828
1829 2011-09-29  Nick Clifton  <nickc@redhat.com>
1830             Bernd Schmidt  <bernds@codesourcery.com>
1831
1832         * config/frv/frvbegin.c: Fix location of unwind-dw2-fde.h header file.
1833         * config/frv/frvend.c: Likewise.
1834         * config/frv/frv.c (frv_function_prologue): Move misplaced
1835         CALL_ARG_LOCATION notes back to their proper locations.
1836
1837 2011-09-29  Georg-Johann Lay  <avr@gjlay.de>
1838
1839         PR target/50566
1840         * config/avr/avr-log.c (avr_log_vadump): Use %b to print bool.
1841         * config/avr/avr.c (avr_rtx_costs_1): New static function, renamed
1842         from avr_rtx_costs.
1843         (avr_legitimate_address_p): Use avr_edump to print log information
1844         filtered by avr_log.
1845         (extra_constraint_Q): Ditto.
1846         (avr_legitimize_address): Ditto.
1847         (avr_rtx_costs): Ditto.  Rewrite as wrapper for avr_rtx_costs_1.
1848         (final_prescan_insn): Use avr_log.rtx_costs as filter.
1849
1850 2011-09-29  Richard Sandiford  <richard.sandiford@linaro.org>
1851
1852         * config/arm/arm-protos.h (arm_modes_tieable_p): Declare.
1853         * config/arm/arm.h (MODES_TIEABLE_P): Use it.
1854         * config/arm/arm.c (arm_modes_tieable_p): New function.  Allow
1855         NEON vector and structure modes to be tied.
1856
1857 2011-09-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1858
1859         * graphite-scop-detection.c (make_close_phi_nodes_unique):  New
1860         forward declaration.
1861         (remove_duplicate_close_phi): Detect and repair creation of
1862         duplicate close-phis for a containing loop.
1863
1864 2011-09-27   Andi Kleen <ak@linux.intel.com>
1865
1866         * gcc.c (get_local_tick). Rename to get_random_number.  Read from
1867         /dev/urandom.  Add getpid call.
1868         (compare_debug_dump_opt_spec_function): Drop getpid call.
1869
1870 2011-09-26   Andi Kleen <ak@linux.intel.com>
1871
1872         * toplev.c (init_local_tick): Try reading random seed
1873         from /dev/urandom.
1874
1875 2011-09-26   Andi Kleen <ak@linux.intel.com>
1876
1877         * hwint.h (HOST_WIDE_INT_PRINT_HEX_PURE): Add.
1878         * lto-streamer.c (lto_get_section_name): Remove crc32_string.
1879         Handle numerical random seed.
1880         * lto-streamer.h (lto_file_decl_data): Change id to
1881         unsigned HOST_WIDE_INT.
1882         * toplev.c (random_seed): Add.
1883         (init_random_seed): Change for numerical random seed.
1884         (get_random_seed): Return as HOST_WIDE_INT.
1885         (set_random_seed): Crc32 existing string.
1886         * toplev.h (get_random_seed): Change to numercal return.
1887         * tree.c (get_file_function_name): Remove CRC. Handle
1888         numerical random seed.
1889
1890 2011-09-29  Georg-Johann Lay  <avr@gjlay.de>
1891
1892         PR target/50566
1893         * config.gcc (extra_objs): Add avr-log.o for $target in:
1894         avr-*-rtems*, avr-*-*.
1895         * config/avr/t-avr (avr-log.o): New rule to compile...
1896         * config/avr/avr-log.c: ...this new file.
1897         * config/avr/avr.opt (mlog=): New option.
1898         * config/avr/avr-protos.h (avr_edump, avr_fdump): New macros.
1899         (avr_log_set_caller_e, avr_log_set_caller_f): New prototypes.
1900         (avr_log_set_avr_log): New prototype.
1901         (avr_log_t): New typedef.
1902         (avr_log): New declaration.
1903         * config/avr/avr.c (avr_option_override): Call avr_log_set_avr_log.
1904
1905 2011-09-29  Artjoms Sinkarovs <artyom.shinkaroff@gmail.com>
1906
1907         * expr.c (do_store_flag): Expand vector comparison by
1908         building an appropriate VEC_COND_EXPR.
1909         * c-typeck.c (build_binary_op): Typecheck vector comparisons.
1910         (c_objc_common_truthvalue_conversion): Adjust.
1911         * tree-vect-generic.c (do_compare): Helper function.
1912         (expand_vector_comparison): Check if hardware supports
1913         vector comparison of the given type or expand vector piecewise.
1914         (expand_vector_operation): Treat comparison as binary
1915         operation of vector type.
1916         (expand_vector_operations_1): Adjust.
1917
1918 2011-09-29  Richard Guenther  <rguenther@suse.de>
1919
1920         * tree.c (build_opaque_vector_type): Make opaque vectors
1921         variant types of the corresponding non-opaque type.  Make
1922         sure to share opaque vector types properly.
1923
1924 2011-09-29  David S. Miller  <davem@davemloft.net>
1925
1926         * config/sparc/sparc.md (UNSPEC_ARRAY8, UNSPEC_ARRAY16,
1927         UNSPEC_ARRAY32): New unspec.
1928         (define_attr type): New type 'array'.
1929         (array{8,16,32}<P:mode>_vis): New patterns.
1930         * config/sparc/ultra1_2.md: Add reservations for 'array'.
1931         * config/sparc/ultra3.md: Likewise.
1932         * config/sparc/niagara.md: Likewise.
1933         * config/sparc/niagara2.md: Likewise.
1934         * config/sparc/sparc.c (sparc_vis_init_builtins): Build new
1935         array builtins.
1936         * config/sparc/visintrin.h (__vis_array8, __vis_array16,
1937         __vis_array32): New.
1938         * doc/extend.texi: Document new VIS builtins.
1939
1940         * config/sparc/sparc.md (gcond_name): Delete unnecessary code attr.
1941         (VIS pixel-compare insn): Just use <gcond:name>.
1942
1943         * config/sparc/sparc.md (VIS pixel-compare insn): There is only one
1944         code iterator used, so just use <code>.  There are two mode iterators
1945         so explicitly use <GCM:gcm_name>.
1946
1947 2011-09-29  Iain Sandoe  <iains@gcc.gnu.org>
1948
1949         * config/darwin9.h (STACK_CHECK_STATIC_BUILTIN): Enable for
1950         Darwin >= 9.
1951
1952 2011-09-28  David S. Miller  <davem@davemloft.net>
1953
1954         * config/sparc/sparc.md (UNSPEC_FCMPLE, UNSPEC_FCMPNE,
1955         UNSPEC_FCMPGT, UNSPEC_FCMPEQ): Delete and reduce to...
1956         (UNSPEC_FCMP): New unspec.
1957         (gcond): New code iterator.
1958         (gcond_name): New code attr.
1959         (GCM): New mode iterator.
1960         (gcm_name): New mode attr.
1961         (fcmp{le,ne,gt,eq}{16,32}_vis): Reimplement using iterators.
1962
1963 2011-09-28  Oleg Endo  <oleg.endo@t-online.de>
1964
1965         PR target/49486
1966         * config/sh/sh.md (negdi2): Move expansion into split to
1967         allow more combination options.  Add T_REG clobber.
1968         (abssi2): New expander.
1969         (*negdi2, *abssi2, *negabssi2): New insns.
1970         (cneg): Change from insn to insn_and_split.  Rename to
1971         negsi_cond.  Add alternative for non-SH4.
1972
1973 2011-09-28  Richard Sandiford  <richard.sandiford@linaro.org>
1974
1975         * config/arm/neon.md (neon_move_lo_quad_<mode>): Delete.
1976         (neon_move_hi_quad_<mode>): Likewise.
1977         (move_hi_quad_<mode>, move_lo_quad_<mode>): Use subreg moves.
1978
1979 2011-09-28  Nick Clifton  <nickc@redhat.com>
1980
1981         * config/rx/predicates.md (rx_minmax_operand): New predicate.
1982         Accepts immediates and a restricted subset of MEMs.
1983         * config/rx/rx.md (int_modes): New iterator.
1984         (smaxsi3, sminsi3): Delete and replace with...
1985         (smax<int_mode>3, smin<int_mode>3): New patterns.
1986         (umax<>3_u, umax<>3_ur, umax<>3, umin<>3): New patterns.
1987
1988 2011-09-28  Richard Guenther  <rguenther@suse.de>
1989
1990         PR middle-end/50460
1991         * fold-const.c (try_move_mult_to_index): Handle &a.array the
1992         same as &a.array[0].
1993
1994 2011-09-28  Kai Tietz  <ktietz@redhat.com>
1995
1996         * configure.ac: Add test for new section attribute
1997         specifier "e" via define HAVE_GAS_SECTION_EXCLUDE.
1998         * config.in: Regenerated.
1999         * configure: Regenerated.
2000         * config/i386/winnt.c (i386_pe_asm_named_section): Emit
2001         new section flag "e" for excluded sections, if supported.
2002         Otherwise we mark section withc SECTION_EXCLUDE flag as never-load.
2003
2004 2011-09-28  Richard Sandiford  <rdsandiford@googlemail.com>
2005
2006         * config/m32r/m32r.md: Use match_test rather than eq/ne symbol_ref
2007         throughout file.
2008
2009 2011-09-28  Richard Sandiford  <rdsandiford@googlemail.com>
2010
2011         * config/iq2000/iq2000.md: Use match_test rather than eq/ne symbol_ref
2012         throughout file.
2013
2014 2011-09-27  Sriraman Tallam  <tmsriram@google.com>
2015
2016         * output.h (SECTION_EXCLUDE): New macro.
2017         * varasm.c (default_elf_asm_named_section): Check for SECTION_EXCLUDE.
2018
2019 2011-09-27  Richard Sandiford  <rdsandiford@googlemail.com>
2020
2021         * fwprop.c (forward_propagate_and_simplify): After checking
2022         reg/subreg combinations, check whether the modes are the same.
2023
2024 2011-09-27  Bernd Schmidt  <bernds@codesourcery.com>
2025             Richard Sandiford  <rdsandiford@googlemail.com>
2026
2027         * config/mips/mips.c (mips_add_cfa_restore): New function.
2028         (mips16e_save_restore_reg): Use it.
2029         (mips_restore_reg): Likewise.  Split double FPRs for
2030         REG_CFA_RESTORE notes.
2031
2032 2011-09-27  Richard Sandiford  <rdsandiford@googlemail.com>
2033
2034         PR middle-end/50386
2035         PR middle-end/50326
2036         * tree-sra.c (build_ref_for_model): Use the type of the field as
2037         the type of the COMPONENT_REF.
2038
2039 2011-09-27  Jeff Law  <law@redhat.com>
2040
2041         * ifcvt.c (cheap_bb_rtx_cost_p): Add SCALE argument.  Scale
2042         non-jumping insns by REG_BR_PROB_BASE and the maximum cost by SCALE.
2043         (find_if_case_1): Use the probability of the THEN clause when
2044         determining if speculation is profitable.
2045         (find_if_case_2): Similarly for the ELSE clause.
2046
2047 2011-09-27  Jakub Jelinek  <jakub@redhat.com>
2048
2049         * common.opt: Add -foptimize-strlen option.
2050         * Makefile.in (OBJS): Add tree-ssa-strlen.o.
2051         (tree-sssa-strlen.o): Add dependencies.
2052         * opts.c (default_options_table): Enable -foptimize-strlen
2053         by default at -O2 if not -Os.
2054         * passes.c (init_optimization_passes): Add pass_strlen
2055         after pass_object_sizes.
2056         * timevar.def (TV_TREE_STRLEN): New timevar.
2057         * params.def (PARAM_MAX_TRACKED_STRLENS): New parameter.
2058         * tree-pass.h (pass_strlen): Declare.
2059         * tree-ssa-strlen.c: New file.
2060         * c-decl.c (merge_decls): If compatible stpcpy prototype
2061         is seen, set implicit_built_in_decls[BUILT_IN_STPCPY].
2062
2063 2011-09-27  Tom de Vries  <tom@codesourcery.com>
2064
2065         PR middle-end/43864
2066         * tree-ssa-tail-merge.c: New file.
2067         (struct same_succ_def): Define.
2068         (same_succ, const_same_succ): New typedef.
2069         (struct bb_cluster_def): Define.
2070         (bb_cluster, const_bb_cluster): New typedef.
2071         (struct aux_bb_info): Define.
2072         (BB_SIZE, BB_SAME_SUCC, BB_CLUSTER, BB_VOP_AT_EXIT): Define.
2073         (gvn_uses_equal): New function.
2074         (same_succ_print, same_succ_print_traverse, update_dep_bb)
2075         (stmt_update_dep_bb, local_def, same_succ_hash)
2076         (inverse_flags, same_succ_equal, same_succ_alloc, same_succ_delete)
2077         (same_succ_reset): New function.
2078         (same_succ_htab, same_succ_edge_flags)
2079         (deleted_bbs, deleted_bb_preds): New var.
2080         (debug_same_succ): New function.
2081         (worklist): New var.
2082         (print_worklist, add_to_worklist, find_same_succ_bb, find_same_succ)
2083         (init_worklist, delete_worklist, delete_basic_block_same_succ)
2084         (same_succ_flush_bbs, purge_bbs, update_worklist): New function.
2085         (print_cluster, debug_cluster, update_rep_bb)
2086         (add_bb_to_cluster, new_cluster, delete_cluster): New function.
2087         (all_clusters): New var.
2088         (alloc_cluster_vectors, reset_cluster_vectors, delete_cluster_vectors)
2089         (merge_clusters, set_cluster): New function.
2090         (gimple_equal_p, gsi_advance_bw_nondebug_nonlocal, find_duplicate)
2091         (same_phi_alternatives_1, same_phi_alternatives, bb_has_non_vop_phi)
2092         (deps_ok_for_redirect_from_bb_to_bb, deps_ok_for_redirect)
2093         (find_clusters_1, find_clusters): New function.
2094         (update_vuses, vop_phi, vop_at_entry, replace_block_by): New function.
2095         (update_bbs): New var.
2096         (apply_clusters): New function.
2097         (update_debug_stmt, update_debug_stmts): New function.
2098         (tail_merge_optimize): New function.
2099         tree-pass.h (tail_merge_optimize): Declare.
2100         * tree-ssa-pre.c (execute_pre): Use tail_merge_optimize.
2101         * Makefile.in (OBJS-common): Add tree-ssa-tail-merge.o.
2102         (tree-ssa-tail-merge.o): New rule.
2103         * opts.c (default_options_table): Set OPT_ftree_tail_merge by
2104         default at OPT_LEVELS_2_PLUS.
2105         * tree-ssa-sccvn.c (vn_valueize): Move to ...
2106         * tree-ssa-sccvn.h (vn_valueize): Here.
2107         * timevar.def (TV_TREE_TAIL_MERGE): New timevar.
2108         * common.opt (ftree-tail-merge): New switch.
2109         * params.def (PARAM_MAX_TAIL_MERGE_COMPARISONS)
2110         (PARAM_MAX_TAIL_MERGE_ITERATIONS): New parameter.
2111         * doc/invoke.texi (Optimization Options, -O2): Add -ftree-tail-merge.
2112         (-ftree-tail-merge, max-tail-merge-comparisons)
2113         (max-tail-merge-iterations): New item.
2114
2115 2011-09-27  Jan Hubicka  <jh@suse.cz>
2116
2117         * ipa-inline-analysis.c (MAX_TIME): Reduce to avoid overflows.
2118
2119 2011-09-27  Jan Hubicka  <jh@suse.cz>
2120
2121         * ipa-inline-analysis.c (eliminated_by_inlining_prob): Handle
2122         parameters passed by reference; handle loads from non-SSA scalars
2123         and update comments.
2124
2125 2011-09-27  Bernd Schmidt  <bernds@codesourcery.com>
2126
2127         PR rtl-optimization/50249
2128         * reload1.c (reload_reg_reaches_end_p): Accept a reloadnum argument
2129         instead of opnum and type.  All callers changed.  Remove useless
2130         declaration.
2131         Search forward for other reloads of the same type for the same operand
2132         using the same register; if any are found, return false.
2133         (reload_regs_reach_end_p): Same argument changes; all callers changed.
2134
2135 2011-09-27  Andi Kleen  <ak@linux.intel.com>
2136             Jan Hubicka  <jh@suse.cz>
2137
2138         * doc/invoke.texi (ffat-lto-objects): Document.
2139         * toplev.c (compile_file): Do not output assembly when doing slim lto;
2140         Output __gnu_slim_lto when doing slim lto.
2141         * cgraphunit.c (ipa_passes): Do only analysis when producing slim lto.
2142         (cgraph_optimize): Return early when doing slim lto.
2143         * opts.c (finish_options): Complain about lack of linker plugin
2144         when doing slim lto.
2145         * common.opt (ffat-lto-objects): New.
2146
2147 2011-09-27  Richard Sandiford  <richard.sandiford@linaro.org>
2148
2149         * ipa-inline-analysis.c (predicate_probability): Avoid comparison
2150         between signed and unsigned.
2151
2152 2011-09-27  Ira Rosen  <ira.rosen@linaro.org>
2153
2154         * tree-vect-stmts.c (vectorizable_type_demotion): Handle basic block
2155         vectorization.
2156         (vectorizable_type_promotion): Likewise.
2157         (vect_analyze_stmt): Call vectorizable_type_demotion and
2158         vectorizable_type_promotion for basic blocks.
2159         (supportable_widening_operation): Don't assume loop vectorization.
2160         * tree-vect-slp.c (vect_build_slp_tree): Allow multiple types for
2161         basic blocks.  Update vectorization factor for basic block
2162         vectorization.
2163         (vect_analyze_slp_instance): Allow multiple types for basic block
2164         vectorization.  Recheck unrolling factor after construction of SLP
2165         instance.
2166
2167 2011-09-27  Richard Guenther  <rguenther@suse.de>
2168
2169         * tree-object-size.c (compute_object_sizes): Fix dumping of
2170         folded statement.
2171
2172 2011-09-27  Richard Guenther  <rguenther@suse.de>
2173
2174         PR tree-optimization/50363
2175         * tree-ssa-pre.c (create_expression_by_pieces): Handle
2176         pointer conversions in POINTER_PLUS_EXPRs properly.
2177
2178 2011-09-27  Richard Sandiford  <richard.sandiford@linaro.org>
2179
2180         * config/arm/neon.md (neon_vget_highv16qi, neon_vget_highv8hi)
2181         (neon_vget_highv4si, neon_vget_highv4sf, neon_vget_highv2di)
2182         (neon_vget_lowv16qi, neon_vget_lowv8hi, neon_vget_lowv4si)
2183         (neon_vget_lowv4sf, neon_vget_lowv2di): Turn into define_expands
2184         that produce subreg moves.  Define using VQX iterators.
2185
2186 2011-09-27  Georg-Johann Lay  <avr@gjlay.de>
2187
2188         * config/avr/avr.md (ashrqi3): Split alternative "n"
2189         into its remaining parts C03, C04, C05, C06, C07 and describe
2190         impact in CC by attribute "cc" appropriately.
2191         * config/avr/avr.c (notice_update_cc): Clean-up: Don't patch CC0
2192         by digging RTX.
2193
2194 2011-09-27  Jakub Jelinek  <jakub@redhat.com>
2195
2196         * rtl.h (const_tiny_rtx): Change into array of 4 x MAX_MACHINE_MODE
2197         from 3 x MAX_MACHINE_MODE.
2198         (CONSTM1_RTX): Define.
2199         * emit-rtl.c (const_tiny_rtx): Change into array of
2200         4 x MAX_MACHINE_MODE from 3 x MAX_MACHINE_MODE.
2201         (gen_rtx_CONST_VECTOR): Use CONSTM1_RTX if all inner constants are
2202         CONSTM1_RTX.
2203         (init_emit_once): Initialize CONSTM1_RTX for MODE_INT and
2204         MODE_VECTOR_INT modes.
2205         * simplify-rtx.c (simplify_binary_operation_1) <case IOR, XOR, AND>:
2206         Optimize if one operand is CONSTM1_RTX.
2207         * config/i386/i386.c (ix86_expand_sse_movcc): Optimize mask ? -1 : x
2208         into mask | x.
2209
2210 2011-09-26  David S. Miller  <davem@davemloft.net>
2211
2212         * config/sparc/sparc.md (edge{8,16,32}{,l}): Return Pmode.
2213         (fcmp{le,ne,gt,eq}{16,32}): Likewise.
2214         * config/sparc/visintrin.h: Update edge and pixel-compare
2215         intrinsics to return 'long' instead of 'int'.
2216         * doc/extend.texi: Update documentation to match.
2217         * config/sparc/sparc.c (eligible_for_return_delay): When leaf or
2218         flat, allow any instruction.  Otherwise, when V9 allow parallels
2219         which consist only of sets to registers outside of %o0 to %o5.
2220         (sparc_vis_init_builtins): Update VIS builtin types for edge
2221         and pixel-compare.
2222
2223         * config/sparc/sparc.c (sparc_conditional_register_usage): When VIS
2224         is enabled, mark %gsr as global.
2225         * config/sparc/sparc.md (UNSPEC_WRGSR): Delete.
2226         (wrgsr_vis, *wrgsr_sp64, wrgsr_v8plus): Don't wrap in an unspec.
2227
2228         * config/sparc/sparc-c.c: New file implementing sparc_target_macros,
2229         which will now define __VIS and __VIS__ when -mvis is enabled.
2230         * config/sparc/t-sparc: Likewise.
2231         * config.gcc: Add sparc-c.o to c_target_objs and cxx_target_objs,
2232         and add t-sparc to tmake_file for all sparc targets.
2233         * config/sparc/sparc-protos.h (sparc_target_macros): Declare.
2234         * config/sparc/sparc.h (TARGE_CPU_CPP_BUILTINS): Call it.
2235
2236         * config/sparc/sparc.c (sparc_vis_init_builtins): Add explicit
2237         builtins for VIS vector addition and subtraction.
2238         * config/sparc/visintrin.h (__vis_fpadd16, __vis_fpadd16s,
2239         __vis_fpadd32, __vis_fpadd32s, __vis_fpsub16, __vis_fpsub16s,
2240         __vis_fpsub32, __vis_fpsub32s): New.
2241         * doc/extend.texi: Document new VIS intrinsics.
2242
2243 2011-09-26  Georg-Johann Lay  <avr@gjlay.de>
2244
2245         * config/avr/avr.md (peephole casesi+2): Use -1 instead of 65536.
2246         * config/avr/avr.c (avr_out_compare): Print shorter sequence for
2247         EQ/NE comparisons against +/-1 in the case of unused-after,
2248         non-ld-regs target.
2249
2250 2011-09-26  Jakub Jelinek  <jakub@redhat.com>
2251
2252         * gimple-fold.c (gimplify_and_update_call_from_tree): Set
2253         gctx.into_ssa after push_gimplify_context.
2254
2255         * gimple.c (gimple_build_call_valist): New function.
2256         * gimple.h (gimple_build_call_valist): New prototype.
2257         * tree-ssa-propagate.c (finish_update_gimple_call): New function.
2258         (update_gimple_call): Likewise.
2259         (update_call_from_tree): Use finish_update_gimple_call.
2260         * tree-ssa-propagate.h (update_gimple_call): New prototype.
2261
2262 2011-09-26  Richard Guenther  <rguenther@suse.de>
2263
2264         PR tree-optimization/50472
2265         * gimple-fold.c (fold_const_aggregate_ref_1): Do not fold
2266         volatile references.
2267
2268 2011-09-26  Bingfeng Mei <bmei@broadcom.com>
2269
2270         * doc/tm.texi: Correct documentation for TARGET_ADDR_SPACE_SUBSET_P.
2271         * target.def: (addr_space_subset_p): Likewise.
2272
2273 2011-09-26  Tom de Vries  <tom@codesourcery.com>
2274
2275         * tree-ssa-alias.h (pt_solution_singleton_p): Declare.
2276         * tree-ssa-structalias.c (pt_solution_singleton_p): New function.
2277         * tree-ssa-ccp.c (fold_builtin_alloca_for_var): Set points-to solution
2278         of new var.
2279
2280 2011-09-26  Georg-Johann Lay  <avr@gjlay.de>
2281
2282         PR target/50465
2283         * config/avr/avr-protos.h (output_reload_insisf): Don't pass insn.
2284         * config/avr/avr.md (*reload_insi, *reload_insf): Change call to
2285         output_reload_insisf.
2286         (adjust_len): Set default to "no".
2287         Remove alternative "yes".  Add alternatives: "mov8", "mov16",
2288         "mov32", "ashlqi", "ashrqi", "lshrqi", "ashlhi", "ashrhi",
2289         "lshrhi", "ashlsi, "ashrsi", "lshrsi".
2290         (*movqi, *movhi, *movsi, *ashlqi3, ashlhi3, ashlsi3,
2291         *ashlhi3_const, *ashlsi3_const, ashrqi3, ashrhi3, ashrsi3,
2292         *ashrhi3_const, *ashrsi3_const, *lshrqi3, lshrhi3, *lshrhi3_const,
2293         *lshrsi3_const): Set attribute "adjust_len".
2294         * config/avr/avr.c (output_reload_insisf): Remove parameter "insn".
2295         (output_movsisf): Don't pass insn to output_reload_insisf.
2296         (adjust_insn_length): Handle new alternatives to adjust_len.
2297         Remove handling of ADJUST_LEN_YES.  Clean-up code.
2298
2299 2011-09-26  Eric Botcazou  <ebotcazou@adacore.com>
2300
2301         * ifcvt.c (noce_try_cmove_arith): Use may_trap_or_fault_p in lieu of
2302         may_trap_p to detect loads that may trap of fault.
2303
2304 2011-09-26  Georg-Johann Lay  <avr@gjlay.de>
2305
2306         * config/avr/avr-protos.h (output_reload_inhi): Change prototype.
2307         * config/avr/avr.md (adjust_len): Add "reload_in16" alternative.
2308         (*reload_inhi): Use it.  Adapt call to output_reload_inhi to new
2309         prototype.
2310         (*movhi): Split constraint alternative "r,rL" into "r,r" and "r,L".
2311         * config/avr/avr.c: Rename output_reload_insisf_1 to
2312         output_reload_in_const.
2313         (avr_popcount_each_byte): Handle SFmode, too.
2314         (output_reload_in_const): Change so it can handle HI loads, too.
2315         Use avr_popcount_each_byte to work out if scratch register must be
2316         created on the fly.
2317         (output_reload_inhi): Rewrite using output_reload_in_const and...
2318         (output_movhi): ...use it to print constants' loads.
2319         (adjust_insn_length): New case ADJUST_LEN_RELOAD_IN16. Cleanup code.
2320
2321 2011-09-25  David S. Miller  <davem@davemloft.net>
2322
2323         * config/sparc/constraints.md (C, P, Z): New constraints for
2324         const_doube, const_int, and const_vector "all ones" values.
2325         Make unused constraint letters comment match reality.
2326         * config/sparc/predicates.md (const_all_ones_operand,
2327         register_or_zero_or_all_ones_operand): New predicates.
2328         * config/sparc/sparc.c (sparc_expand_move): Allow all ones
2329         as well as zero constants when VIS.
2330         (sparc_legitimate_constant_p): Likewise.
2331         * config/sparc/sparc.md (movsi_insn): Add fones alternative.
2332         (movsf_insn): Likewise
2333         (movdi_insn_sp64): Add fone alternative.
2334         (movdf_insn_sp32_v9): Likewise.
2335         (movdf_insn_sp64): Likewise.
2336
2337         * configure.ac: Add feature check to make sure the assembler
2338         supports the FMAF, HPC, and VIS 3.0 instructions found on
2339         Niagara-3 and later cpus.
2340         * configure: Rebuild.
2341         * config.in: Likewise.
2342         * config/sparc/sparc.opt: New option '-mfmaf'.
2343         * config/sparc/sparc.md: Add float fused multiply-add patterns.
2344         * config/sparc/sparc.h (AS_NIAGARA3_FLAG): New macro.
2345         (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC): Use it, as needed.
2346         * config/sparc/sol2.h (ASM_CPU32_DEFAULT_SPEC,
2347         ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC): Likewise.
2348         * config/sparc/sparc.c (sparc_option_override): Turn MASK_FMAF on
2349         by default for Niagara-3 and later.  Turn it off if TARGET_FPU is
2350         disabled.
2351         (sparc_rtx_costs): Handle 'FMA'.
2352         * doc/invoke.texi: Document -mfmaf.
2353
2354 2011-09-25  Jakub Jelinek  <jakub@redhat.com>
2355
2356         * tree-ssa-structalias.c (intra_create_variable_infos): Treat
2357         TYPE_RESTRICT REFERENCE_TYPE parameters like restricted
2358         DECL_BY_REFERENCE parameters.
2359
2360 2011-09-25  Eric Botcazou  <ebotcazou@adacore.com>
2361
2362         * tree-eh.c (cleanup_empty_eh): Allow a call to __builtin_stack_restore
2363         if there is no outgoing edge.
2364
2365         * tree-scalar-evolution.c (simple_iv): Accept all kinds of pointer and
2366         integral types.
2367
2368 2011-09-25  Ira Rosen  <ira.rosen@linaro.org>
2369
2370         * tree-vect-slp.c (vect_slp_analyze_bb_1): Split out core part
2371         of vect_analyze_bb here.
2372         (vect_analyze_bb): Loop over vector sizes calling vect_analyze_bb_1.
2373
2374 2011-09-25  Ira Rosen  <ira.rosen@linaro.org>
2375
2376         * tree-data-ref.c (dr_analyze_innermost): Add new argument.
2377         Allow not simple iv if analyzing basic block.
2378         (create_data_ref): Update call to dr_analyze_innermost.
2379         (stmt_with_adjacent_zero_store_dr_p, ref_base_address): Likewise.
2380         * tree-loop-distribution.c (generate_memset_zero): Likewise.
2381         * tree-predcom.c (find_looparound_phi): Likewise.
2382         * tree-data-ref.h (dr_analyze_innermost): Add new argument.
2383
2384 2011-09-24  David S. Miller  <davem@davemloft.net>
2385
2386         * config/sparc/sparc.h (FIRST_PSEUDO_REGISTER): Bump to 103.
2387         (SPARC_GSR_REG): Define.
2388         (FIXED_REGISTERS): Mark GSR as fixed.
2389         (CALL_USED_REGISTERS): Mark GSR as call used.
2390         (HARD_REGNO_NREGS): GSR is always 1 register.
2391         (REG_CLASS_CONTENTS): Add GSR to ALL_REGS.
2392         (REG_ALLOC_ORDER, REG_LEAF_ALLOC_ORDER): Add GSR to the end.
2393         (REGISTER_NAMES): Add "%gsr".
2394         * config/sparc/sparc.md (UNSPEC_ALIGNADDR, UNSPEC_ALIGNADDRL): Delete.
2395         (UNSPEC_WRGSR): New unspec.
2396         (GSR_REG): New constant.
2397         (type): Add new insn type 'gsr'.
2398         (fpack16_vis, fpackfix_vis, fpack32_vis,
2399         faligndata<V64I:MODE>_vis)): Add use of GSR_REG.
2400         (wrgsr_vis, *wrgsr_sp64, wrgsr_v8plus, rdgsr_vis, *rdgsr_sp64,
2401         rdgsr_v8plus): New expanders and insns.
2402         (alignaddr<P:mode>_vis, alignaddrl<P:mode>_vis): Reimplement
2403         using patterns which show that this is a plus in addition to a
2404         modification of GSR_REG, instead of an unspec.
2405         * config/sparc/ultra1_2.md: Handle 'gsr'.
2406         * config/sparc/ultra3.md: Likewise.
2407         * config/sparc/niagara.md: Likewise.
2408         * config/sparc/niagara2.md: Likewise.
2409         * config/sparc/sparc.c (leaf_reg_remap, sparc_leaf_regs): Fill out
2410         end of table.
2411         (sparc_option_override): Make -mvis imply -mv8plus.
2412         (hard_32bit_mode_classes, hard_64bit_mode_classes): Add entries
2413         for %gsr.
2414         (sparc_vis_init_builtins): Build __builtin_vis_write_gsr and
2415         __builtin_vis_read_gsr.
2416         (sparc_expand_buildin): Handle builtins that take one argument and
2417         return void.
2418         (sparc_fold_builtin): Never fold writes to %gsr.
2419         * config/sparc/visintrin.h (__vis_write_gsr, __vis_read_gsr): New.
2420         * doc/extend.texi: Document new VIS intrinsics.
2421
2422 2011-09-23  Jan Hubicka  <jh@suse.cz>
2423
2424         * ipa-inline-transform.c (inline_call): Add comment.
2425         * ipa-inline.h (inline_param_summary): New structure and vector.
2426         (struct inline_edge_summary): Add param field.
2427         * ipa-inline-analysis.c (CHANGED): New constant.
2428         (add_clause): Handle CHANGED and NOT_CONSTANT.
2429         (predicate_probability): New function.
2430         (dump_condition): Dump CHANGED predicate.
2431         (evaluate_conditions_for_known_args): Handle ERROR_MARK as marker
2432         of unknown function wide invariant.
2433         (evaluate_conditions_for_edge): Handle change probabilities.
2434         (inline_edge_duplication_hook): Copy param summaries.
2435         (inline_edge_removal_hook): Free param summaries.
2436         (dump_inline_edge_summary): Fix dumping of indirect edges and callee
2437         sizes; dump param summaries.
2438         (will_be_nonconstant_predicate): Use CHANGED predicate.
2439         (record_modified_bb_info): New structure.
2440         (record_modified): New function.
2441         (param_change_prob): New function.
2442         (estimate_function_body_sizes): Compute param summaries.
2443         (estimate_edge_size_and_time): Add probability argument.
2444         (estimate_node_size_and_time): Add inline_param_summary argument;
2445         handle predicate probabilities.
2446         (remap_predicate): Fix formating.
2447         (remap_edge_change_prob): New function.
2448         (remap_edge_summaries): Rename from ...; use remap_edge_change_prob.
2449         (remap_edge_predicates): ... this one.
2450         (inline_merge_summary): Remap edge summaries; handle predicate
2451         probabilities; remove param summaries after we are done.
2452         (do_estimate_edge_time): Update.
2453         (do_estimate_edge_growth): Update.
2454         (read_inline_edge_summary): Read param info.
2455         (inline_read_summary): Fix formating.
2456         (write_inline_edge_summary): Write param summaries.
2457
2458 2011-09-23  Jakub Jelinek  <jakub@redhat.com>
2459
2460         * config/i386/i386.c (ix86_print_operand): Handle %~.
2461         (ix86_print_operand_punct_valid_p): Return true also for '~'.
2462         * config/i386/sse.md (i128): New mode_attr.
2463         (vec_extract_hi_<mode>, vec_extract_hi_<mode>,
2464         avx_vbroadcastf128_<mode>, *avx_vperm2f128<mode>_full,
2465         *avx_vperm2f128<mode>_nozero, vec_set_lo_<mode>,
2466         vec_set_hi_<mode>, *vec_concat<mode>_avx): Use <i128> in the
2467         patterns, use "<sseinsnmode>" for "mode" attribute.
2468         (vec_extract_hi_v16hi, vec_extract_hi_v32qi, vec_set_lo_v16hi,
2469         vec_set_hi_v16hi, vec_set_lo_v32qi, vec_set_hi_v32qi): Use
2470         %~128 in the patterns, use "OI" for "mode" attribute.
2471
2472 2011-09-23  Georg-Johann Lay  <avr@gjlay.de>
2473
2474         PR target/50447
2475         * config/avr/avr.md (adjust_len): Add alternatives "tsthi",
2476         "tstsi", "compare".
2477         (*cmpqi_sign_extend): Use s8_operand.
2478         (*cmphi, *cmpsi): Rewrite using avr_out_compare.
2479         * config/avr/avr-protos.h (compare_diff_p, compare_eq_p): Remove
2480         prototypes.
2481         (out_tsthi, out_tstsi): Remove prototypes.
2482         (avr_out_tsthi, avr_out_tstsi): New prototypes.
2483         * config/avr/avr.c (out_tsthi, out_tstsi): Remove functions.
2484         (avr_asm_len): Negative length now sets *plen to -length.
2485         (compare_sign_p): Return bool instead of int.
2486         (compare_diff_p, compare_eq_p): Ditto and make static.
2487         (avr_out_tsthi): New function.
2488         (avr_out_tstsi): New function.
2489         (avr_out_compare): New function.
2490         (adjust_insn_length): Handle ADJUST_LEN_TSTHI, ADJUST_LEN_TSTSI,
2491         ADJUST_LEN_COMPARE.
2492
2493 2011-09-23  Georg-Johann Lay  <avr@gjlay.de>
2494
2495         PR target/50447
2496         * config/avr/avr.md: (adjust_len): Add alternative "out_plus".
2497         (addsi3): Rewrite using QI scratch register.  Adjust text
2498         peepholes using plus:SI.
2499         (*addsi3_zero_extend.hi): New insn.
2500         (*subsi3_zero_extend.hi): New insn.
2501         (*subhi3_zero_extend1): Set attribute "cc" to "set_czn".
2502         (*subsi3_zero_extend): Ditto.
2503         (subsi3): Change predicate #2 to register_operand.
2504         * config/avr/avr-protos.h (avr_out_plus): New prototype.
2505         (avr_out_plus_1): New static function.
2506         (avr_out_plus): New function.
2507         (adjust_insn_length): Handle ADJUST_LEN_OUT_PLUS.
2508
2509 2011-09-23  Jakub Jelinek  <jakub@redhat.com>
2510
2511         * config/i386/i386.c (ix86_prepare_sse_fp_compare_args): For
2512         GE/GT/UNLE/UNLT swap arguments and condition even for TARGET_AVX.
2513
2514 2011-09-23  Ian Lance Taylor  <iant@google.com>
2515
2516         * godump.c (go_define): Treat a single character in single quotes,
2517         or a string, as an operand.
2518
2519 2011-09-23  Martin Jambor  <mjambor@suse.cz>
2520
2521         * ipa-prop.h (jump_func_type): Updated comments.
2522         (ipa_known_type_data): New type.
2523         (ipa_jump_func): Use it to describe known type jump functions.
2524         * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Updated to
2525         reflect the new known type jump function contents.
2526         (compute_known_type_jump_func): Likewise.
2527         (combine_known_type_and_ancestor_jfs): Likewise.
2528         (try_make_edge_direct_virtual_call): Likewise.
2529         (ipa_write_jump_function): Likewise.
2530         (ipa_read_jump_function): Likewise.
2531         * ipa-cp.c (ipa_value_from_known_type_jfunc): New function.
2532         (ipa_value_from_jfunc): Use ipa_value_from_known_type_jfunc.
2533         (propagate_accross_jump_function): Likewise.
2534
2535 2011-09-23  Georg-Johann Lay  <avr@gjlay.de>
2536
2537         PR target/50446
2538         * config/avr/avr.md (rotlqi3): Support all offsets 0..7.
2539         (rotlqi3_4): Turn insn into expander.
2540         (*rotlqi3): New insn.
2541         (rotlhi3, rotlsi3): Support rotate left/right by 1.
2542         (*rotlhi2.1, *rotlhi2.15): New insns.
2543         (*rotlsi2.1, *rotlsi2.31): New insns.
2544         * config/avr/constraints.md (C03, C05, C06, C07): New constraints.
2545
2546 2011-09-23  Bin Cheng  <bin.cheng@arm.com>
2547
2548         * config/arm/bpabi.h (BE8_LINK_SPEC): Add cortex-m arch and processors.
2549
2550 2011-09-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
2551
2552         * ipa-prop.c (ipa_print_node_jump_functions): Fix typos.
2553
2554 2011-09-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2555
2556         * reload.c (find_reloads): Set operand_mode to Pmode for address
2557         operands consisting of just a CONST_INT.
2558
2559 2011-09-22  Uros Bizjak  <ubizjak@gmail.com>
2560
2561         PR target/50482
2562         * config/i386/i386.c (ix86_expand_sse_movcc): When generating
2563         blendv, force op_true to register if it doesn't satisfy
2564         nonimmediate_operand predicate.
2565
2566 2011-09-22  Richard Sandiford  <rdsandiford@googlemail.com>
2567
2568         PR middle-end/50113
2569         PR middle-end/50061
2570         * calls.c (emit_library_call_value_1): Use BLOCK_REG_PADDING to
2571         get the locate.where_pad value for register-only arguments.
2572         * config/arm/arm.c (arm_pad_arg_upward): Remove HFmode handling.
2573         (arm_pad_reg_upward): Handle null types.
2574
2575 2011-09-22  Jan Hubicka  <jh@suse.cz>
2576
2577         * ipa-inline-analysis.c: Fix overly long lines.
2578
2579 2011-09-22  Jan Hubicka  <jh@suse.cz>
2580
2581         * ipa-inline-transform.c (inline_call): Always update jump functions
2582         after inlining.
2583         * ipa-inline.c (ipa_inline): Likewise; do not call
2584         ipa_create_all_structures_for_iinln.
2585         (ipa_inline): Always free jump functions.
2586         * ipa-inline-analysis.c (evaluate_conditions_for_edge): Remove hack.
2587         (remap_edge_predicates): Fix pasto.
2588         (inline_merge_summary): Remove nlined edge predicate; remove hack.
2589         (inline_analyze_function): Always initialize jump functions.
2590         (inline_generate_summary): Likewise.
2591         (inline_write_summary): Always write jump functions when ipa-cp
2592         is not doing that.
2593         (inline_read_summary): Always read jump functions when ipa-cp
2594         is not doing that.
2595         * ipa-prop.c (iinlining_processed_edges): Remove.
2596         (update_indirect_edges_after_inlining): Do not use
2597         iinlining_processed_edges; instead set param_index to -1.
2598         (propagate_info_to_inlined_callees): Only try to indirect inlining
2599         when asked to do so; update jump functions of indirect calls, too;
2600         remove jump functions of the inlined edge.
2601         (ipa_edge_duplication_hook): Do not copy iinlining_processed_edges.
2602         (ipa_create_all_structures_for_iinln): Remove.
2603         (ipa_free_all_structures_after_iinln): Do not free
2604         iinlining_processed_edges.
2605         * ipa-prop.h (ipa_create_all_structures_for_iinln): Remove.
2606
2607 2011-09-22  Richard Sandiford  <richard.sandiford@linaro.org>
2608
2609         * config/arm/predicates.md (expandable_comparison_operator): New
2610         predicate, extracted from...
2611         (arm_comparison_operator): ...here.
2612         * config/arm/arm.md (cbranchsi4, cbranchsf4, cbranchdf4, cbranchdi4)
2613         (cstoresi4, cstoresf4, cstoredf4, cstoredi4, movsicc, movsfcc)
2614         (movdfcc): Use expandable_comparison_operator.
2615
2616 2011-09-22  Georg-Johann Lay  <avr@gjlay.de>
2617
2618         PR target/50447
2619         PR target/50465
2620         * config/avr/avr-protos.h (avr_out_bitop): New prototype.
2621         (avr_popcount_each_byte): New prototype.
2622         * config/avr/avr.c (avr_popcount): New static function.
2623         (avr_popcount_each_byte): New function.
2624         (avr_out_bitop): New function.
2625         (adjust_insn_length): ADJUST_LEN_OUT_BITOP dispatches to
2626         avr_out_bitop.  Cleanup code.
2627         * config/avr/constraints.md (Ca2, Co2, Cx2): New constraints.
2628         (Ca4, Co4, Cx4): New constraints.
2629         * config/avr/avr.md (adjust_len): Add "out_bitop" insn attribute
2630         alternative.
2631         (andhi3, iorhi3, xorhi3): Rewrite insns using avr_out_bitop.
2632         (andsi3, iorsi3, xorsi3): Ditto.
2633         (*iorhi3_clobber, *iorsi3_clobber): Remove insns.
2634
2635 2011-09-22  Ira Rosen  <ira.rosen@linaro.org>
2636
2637         PR tree-optimization/50451
2638         * tree-vect-slp.c (vect_get_constant_vectors): Don't fail for
2639         constant operands in reduction.
2640         (vect_get_slp_defs): Don't create vector operand for NULL scalar
2641         operand.
2642
2643 2011-09-22  David S. Miller  <davem@davemloft.net>
2644
2645         * config/sparc/sparc.c (sparc_vis_init_builtins): Do not mark
2646         fpack16, fpack32, fpackfix as const.
2647
2648         * config/sparc/sparc.md (G[0-7]_REG, O[0-7]_REG, L[0-7]_REG,
2649         I[0-7]_REG, F[0-62]_REG, FCC[0-3]_REG, CC_REG, SFP_REG): New
2650         constants.  Use them everywhere.
2651
2652 2011-09-22  Oleg Endo  <oleg.endo@t-online.de>
2653
2654         * config/sh/sh.c (andcosts): Renamed to and_xor_ior_costs.
2655         Added AND special case.  Adapted comments.
2656         (sh_rtx_costs): Added XOR and IOR case.
2657
2658 2011-09-21  Jan Hubicka  <jh@suse.cz>
2659
2660         * ipa-inline-analsis.c (compute_inline_parameters): Set
2661         cfun and current_function_decl.
2662
2663 2011-09-21  Jan Hubicka  <jh@suse.cz>
2664
2665         * ipa-inline-analysis.c (set_cond_stmt_execution_predicate): Allow
2666         handled components in parameter of builtin_constant_p.
2667         (will_be_nonconstant_predicate): Allow loads of non-SSA parameters.
2668
2669 2011-09-21  Jan Hubicka  <jh@suse.cz>
2670
2671         * ipa-inline.c (relative_time_benefit): Fix wrong bracketting.
2672         * ipa-inline.h (estimate_edge_time): Fix pasto.
2673         * ipa-inline-analysis.c (do_estiamte_edge_time): Remove capping.
2674
2675 2011-09-21  Jakub Jelinek  <jakub@redhat.com>
2676
2677         * config/i386/i386.c (ix86_expand_sse_movcc): Use
2678         blendvps, blendvpd and pblendvb if possible.
2679
2680 2011-09-21  Uros Bizjak  <ubizjak@gmail.com>
2681
2682         PR target/50464
2683         * config/i386/sse.md (xop_pcmov_<mode><avxsizesuffix>): Change
2684         operand 1 predicate to register_operand and operand 2 predicate
2685         to nonimmediate_operand.
2686         * config/i386/i386.c (ix86_expand_sse_movcc): When generating
2687         xop_pcmov, force op_true to register.  Also, force op_false to
2688         register if it doesn't satisfy nonimmediate_operand predicate.
2689
2690 2011-09-21  Kirill Yukhin  <kirill.yukhin@intel.com>
2691
2692         * config/i386/bmi2intrin.h (_mulx_u64): New.
2693         (_mulx_u32): Ditto.
2694
2695 2011-09-21  Jan Hubicka  <jh@suse.cz>
2696
2697         PR tree-optimization/50433
2698         * ipa-inline-analysis.c (eliminated_by_inlining_prob):
2699         Use get_base_address.
2700
2701 2011-09-21  Jakub Jelinek  <jakub@redhat.com>
2702
2703         * config/i386/sse.md (<code><mode>3 smaxmin:VI124_128 expander): Use
2704         nonimmediate_operand instead of register_operand predicate for operands
2705         1 and 2, force them into registers if expanding them as comparison.
2706         (<code><mode>3 umaxmin:VI124_128 expander): Similarly.  For UMAX
2707         V8HImode force into register just operand 1.
2708
2709 2011-09-21  Georg-Johann Lay  <avr@gjlay.de>
2710
2711         PR target/45099
2712         * config/avr/avr.c (avr_function_arg_advance): Change error to
2713         warning if a fixed register is needed as function argument.
2714
2715 2011-09-21  Georg-Johann Lay  <avr@gjlay.de>
2716
2717         PR target/50449
2718         PR target/50465
2719         * config/avr/avr.md (adjust_len): New insn attribute.
2720         (*reload_insi, *reload_insf): Use it.
2721         (*movsi, *movsf): Use new interface of output_movsisf.
2722         * config/avr/avr-protos.h (output_movsisf): Change prototype.
2723         * config/avr/avr.c (output_movsisf): Ditto.
2724         (adjust_insn_length): Use insn attribute "adjust_len" to adjust
2725         lengths of insns *reload_insi, *reload_insf.
2726         (output_reload_insisf_1): New static function.
2727         (output_reload_insisf): Use it.
2728
2729 2011-09-21  David S. Miller  <davem@davemloft.net>
2730
2731         * config/sparc/sparc.c (def_builtin): Change from macro into function.
2732         (def_builtin_const): New.
2733         (sparc_vis_init_builtins): Use def_builtin_const for all VIS builtins
2734         other than alignaddr and falignaddr.
2735
2736         * config/sparc/sparc.md (UNSPEC_FCMPLE, UNSPEC_FCMPNE, UNSPEC_FCMPGT,
2737         UNSPEC_FCMPEQ): New unspec codes.
2738         (fcmple16_vis, fcmple32_vis, fcmpne16_vis, fcmpne32_vis, fcmpgt16_vis,
2739         fcmpgt32_vis, fcmpeq16_vis, fcmpeq32_vis): New patterns.
2740         * config/sparc/sparc.c (sparc_vis_init_builtins): Create builtins for
2741         new pixel compare VIS patterns.
2742         * config/sparc/visintrin.h (__vis_fcmple16, __vis_fcmple32,
2743         __vis_fcmpne16, __vis_fcmpne32, __vis_fcmpgt16, __vis_fcmpgt32,
2744         __vis_fcmpeq16, __vis_fcmpeq32): New.
2745         * doc/extend.texi: Document new pixel compare VIS intrinsics.
2746
2747 2011-09-21  Tom de Vries  <tom@codesourcery.com>
2748
2749         * final.c (final): Handle if JUMP_LABEL is not LABEL_P.
2750
2751 2011-09-20  David S. Miller  <davem@davemloft.net>
2752
2753         * config/sparc/sparc.md (UNSPEC_ALIGNADDRL): New unspec.
2754         (aligneddrl<P:mode>_vis): New pattern.
2755         (edge8_vis, edge8l_vis, edge16_vis, edge16l_vis, edge32_vis,
2756         edge32l_vis): Adjust to take Pmode arguments, and return SImode.
2757         * config/sparc/sparc.c (sparc_vis_init_builtins): Handle new
2758         alignaddrl insn, and adjust edge operations for updated types.
2759         * config/sparc/visintrin.h: Likewise.
2760         * doc/extend.texi: Make typing in VIS documentation match reality.
2761
2762 2011-09-20  Terry Guo  <terry.guo@arm.com>
2763
2764         * config/arm/arm-arches.def: Add armv6s-m.
2765         * config/arm/arm-tables.opt: Regenerate.
2766
2767 2011-09-20  Wei Guozhi  <carrot@google.com>
2768
2769         PR rtl-optimization/49452
2770         * postreload.c (reload_combine): Invalidate use information when across
2771         volatile insn.
2772
2773 2011-09-19  Maxim Kuvyrkov  <maxim@codesourcery.com>
2774
2775         * haifa-sched.c (has_edge_p, prev_non_location_insn, check_cfg):
2776         Remove maintenance overhead.
2777         (haifa_sched_init, sched_finish): Update.
2778
2779 2011-09-19  Uros Bizjak  <ubizjak@gmail.com>
2780
2781         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use if_then_else RTX
2782         to calculate unit, prefix_rep and prefix_data16 attributes.
2783         (*mov<mode>_internal): Ditto for unit attribute.
2784         (*movv2sf_internal_rex64): Ditto for unit and prefix_rep attributes.
2785         (*movv2sf_internal): Ditto.
2786         * config/i386/sse.md (VI1248_256): Remove mode iterator.
2787         (avx2_eq<mode>3): Use VI_256 instead of VI1248_256.
2788         (*avx2_eq<mode>3): Ditto.
2789         (avx2_gt<mode>3): Ditto.
2790
2791 2011-09-19  Uros Bizjak  <ubizjak@gmail.com>
2792
2793         * config/i386/i386.md (maxmin): New code iterator.
2794         * config/i386/sse.md (<maxmin:code><mode>3): Macroize expander
2795         from <umaxmin:code><mode>3 and <smaxmin:code><mode>3 using maxmin
2796         code iterator.
2797         (*avx2_<maxmin:code><mode>3): Macroize isn from
2798         *avx2_<umaxmin:code><mode>3 and *avx2_<smaxmin:code><mode>3 using
2799         maxmin code iterator.
2800         (<smaxmin:code><VI124_128:mode>3): Merge with <smaxmin:code>v8hi3.
2801         (<umaxmin:code><VI124_128:mode>3): Merge with umaxv4si3 and
2802         <umaxmin:code>v16qi3.
2803
2804 2011-09-19  Alan Modra  <amodra@gmail.com>
2805             Michael Meissner  <meissner@linux.vnet.ibm.com>
2806
2807         PR target/50341
2808         * config/rs6000/rs6000.md (call_indirect_aix<ptrsize>): Do not
2809         split the load of the indirect function's TOC from the call to
2810         prevent the compiler from moving the load of the new TOC above
2811         code that references the current function's TOC.
2812         (call_indirect_aix<ptrsize>_internal): Ditto.
2813         (call_indirect_aix<ptrsize>_nor11): Ditto.
2814         (call_indirect_aix<ptrsize>_internal2): Ditto.
2815         (call_value_indirect_aix<ptrsize>): Ditto.
2816         (call_value_indirect_aix<ptrsize>_internal): Ditto.
2817         (call_value_indirect_aix<ptrsize>_nor11): Ditto.
2818         (call_value_indirect_aix<ptrsize>_internal2): Ditto.
2819
2820 2011-09-19  Jakub Jelinek  <jakub@redhat.com>
2821
2822         * config/i386/sse.md (*sse4_1_extractps): Change into
2823         define_insn_and_split, add =x 0 n and =x x n alternatives
2824         and split them after reload.
2825
2826 2011-09-19  Alexandre Oliva  <aoliva@redhat.com>
2827
2828         * tree.h (TREE_NOT_CHECK4): Rename from bogus NON_TREE_CHECK4.
2829
2830 2011-09-19  Alexandre Oliva  <aoliva@redhat.com>
2831
2832         * emit-rtl.c (copy_insn_1): Do not copy DEBUG_EXPRs.
2833
2834 2011-09-19  Ira Rosen  <ira.rosen@linaro.org>
2835
2836         PR tree-optimization/50413
2837         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail to vectorize
2838         a basic block if one of its data-refs can't be analyzed.
2839
2840 2011-09-19  Paul Brook  <paul@codesourcery.com>
2841
2842         * config/arm/predicates.md (shift_amount_operand): Check constant
2843         shift count is in range.
2844         (const_shift_operand): Remove.
2845
2846 2011-09-18  Eric Botcazou  <ebotcazou@adacore.com>
2847             Iain Sandoe  <developer@sandoe-acoustics.co.uk>
2848
2849         PR target/50091
2850         * config/rs6000/rs6000.md (probe_stack): Use explicit operand.
2851         * config/rs6000/rs6000.c (output_probe_stack_range): Likewise.
2852
2853 2011-09-18  H.J. Lu  <hongjiu.lu@intel.com>
2854
2855         * config/i386/bmiintrin.h: Remove tmp.
2856         * config/i386/tbmintrin.h: Likewise.
2857
2858 2011-09-18  Ira Rosen  <ira.rosen@linaro.org>
2859
2860         PR tree-optimization/50414
2861         * tree-vect-slp.c (vect_get_constant_vectors): Handle MAX_EXPR and
2862         MIN_EXPR.
2863
2864 2011-09-18  Ira Rosen  <ira.rosen@linaro.org>
2865
2866         PR tree-optimization/50412
2867         * tree-vect-data-refs.c (vect_analyze_group_access): Fail for
2868         acceses that require epilogue loop if vectorizing outer loop.
2869
2870 2011-09-17  David S. Miller  <davem@davemloft.net>
2871
2872         * config/sparc/sparc.md (UNSPEC_EDGE8, UNSPEC_EDGE8L,
2873         UNSPEC_EDGE16, UNSPEC_EDGE16L, UNSPEC_EDGE32, UNSPEC_EDGE32L):
2874         New unspecs.
2875         (define_attr type): New type 'edge'.
2876         (edge8_vis, edge8l_vis, edge16_vis, edge16l_vis, edge32_vis,
2877         edge32l_vis): New patterns.
2878         * config/sparc/ultra1_2.md: Add insn reservation for 'edge'.
2879         * config/sparc/ultra3.md: Likewise.
2880         * config/sparc/niagara.md: Likewise.
2881         * config/sparc/niagara2.md: Likewise.
2882         * config/sparc/sparc.d (sparc_vis_init_builtins): Generate
2883         builtins for VIS edge instructions.
2884         * config/sparc/visintrin.h (__vis_edge8, __vis_edge8l)
2885         (__vis_edge16, __vis_edge16l, __vis_edge32, __vis_edge32l): New
2886         intrinsics.
2887         (__v8qi, __v4qi): Make unsigned.
2888         (__vis_faligndatadi, ___vis_faligndatav2si, __vis_faligndatav4hi,
2889         __vis_faligndatav8qi, __vis_fmul8x16au, __vis_fmul8x16al,
2890         __vis_fpack32): Fix types.
2891         * doc/extend.texi: Document new 'edge' VIS intrinsics.
2892
2893         * gcc/config/sparc/sparc.c (niagara2_costs): Adjust integer
2894         divide costs.
2895         (niagara3_costs): New.
2896         (sparc_option_override): Use it.
2897         * gcc/config/sparc/niagara2.md: Adjust with more accurate
2898         Niagara-3 reservations.
2899
2900 2011-09-17  Jakub Jelinek  <jakub@redhat.com>
2901
2902         * config/i386/sse.md (VIMAX_AVX2): Change V4DI to V2TI.
2903         (sse2_avx, sseinsnmode): Add V2TI.
2904         (REDUC_SMINMAX_MODE): New mode iterator.
2905         (reduc_smax_v4sf, reduc_smin_v4sf, reduc_smax_v8sf,
2906         reduc_smin_v8sf, reduc_smax_v4df, reduc_smin_v4df): Remove.
2907         (reduc_<code>_<mode>): New smaxmin and umaxmin expanders.
2908         (sse2_lshrv1ti3): Rename to...
2909         (<sse2_avx2>_lshr<mode>3): ... this.  Use VIMAX_AVX2 mode
2910         iterator.  Move before umaxmin expanders.
2911         * config/i386/i386.h (VALID_AVX256_REG_MODE,
2912         SSE_REG_MODE_P): Accept V2TImode.
2913         * config/i386/i386.c (ix86_expand_reduc): Handle V32QImode,
2914         V16HImode, V8SImode and V4DImode.
2915
2916         * config/i386/i386.c (ix86_build_const_vector): Handle V8SImode
2917         and V4DImode.
2918         (ix86_build_signbit_mask): Likewise.
2919         (ix86_expand_int_vcond): Likewise.  Handle V16HImode and V32QImode.
2920         (bdesc_args): Use CODE_FOR_{s,u}m{ax,in}v{32q,16h,8s}i3
2921         instead of CODE_FOR_avx2_{s,u}m{ax,in}v{32q,16h,8s}i3.
2922         * config/i386/sse.md (avx2_<code><mode>3 umaxmin expand): Rename to...
2923         (<code><mode>3) ... this.
2924         (avx2_<code><mode>3 smaxmin expand): Rename to...
2925         (<code><mode>3) ... this.
2926         (smax<mode>3, smin<mode>3): Macroize using smaxmin code iterator.
2927         (smaxv2di3, sminv2di3): Macroize using smaxmin code iterator and
2928         VI8_AVX2 mode iterator.
2929         (umaxv2di3, uminv2di3): Macroize using umaxmin code iterator and
2930         VI8_AVX2 mode iterator.
2931         (vcond<V_256:mode><VI_256:mode>, vcondu<V_256:mode><VI_256:mode>):
2932         New expanders.
2933
2934 2011-09-17  Richard Sandiford  <rdsandiford@googlemail.com>
2935
2936         * config/ia64/itanium2.md: Use match_test rather than eq/ne symbol_ref
2937         throughout file.
2938
2939 2011-09-16  David S. Miller  <davem@davemloft.net>
2940
2941         * config/sparc/visintrin.h: New file.
2942         * config.gcc: Add it to extra_headers on sparc.
2943
2944 2011-09-16  Jakub Jelinek  <jakub@redhat.com>
2945
2946         * config/i386/i386.c (ix86_expand_reduc_v4sf): Rename to ...
2947         (ix86_expand_reduc): ... this.  Handle also V8SFmode and V4DFmode.
2948         * config/i386/sse.md (reduc_splus_v4sf, reduc_smax_v4sf,
2949         reduc_smin_v4sf): Adjust callers.
2950         (reduc_smax_v8sf, reduc_smin_v8sf, reduc_smax_v4df, reduc_smin_v4df):
2951         New expanders.
2952
2953         * config/i386/sse.md (vec_extract_hi_<mode>,
2954         vec_extract_hi_v16hi, vec_extract_hi_v32qi): Use
2955         vextracti128 instead of vextractf128 for -mavx2 and
2956         integer vectors.  For V4DFmode fix up mode attribute.
2957         (VEC_EXTRACT_MODE): For TARGET_AVX add 32-byte vectors.
2958         (vec_set_lo_<mode>, vec_set_hi_<mode>): For VI8F_256 modes use V4DF
2959         instead of V8SF mode attribute.
2960         (avx2_extracti128): Change into define_expand.
2961         * config/i386/i386.c (ix86_expand_vector_extract): Handle
2962         32-byte vector modes if TARGET_AVX.
2963
2964 2011-09-16  Georg-Johann Lay  <avr@gjlay.de>
2965
2966         * config/avr/avr.md: (umulqihi3, mulqihi3): Write as one pattern.
2967         (umulqi3_highpart, smulqi3_highpart): Ditto.
2968         (*maddqihi4.const, *umaddqihi4.uconst): Ditto.
2969         (*msubqihi4.const, *umsubqihi4.uconst): Ditto.
2970         (*muluqihi3.uconst, *mulsqihi3.sconst): Ditto.
2971
2972 2011-09-16  Georg-Johann Lay  <avr@gjlay.de>
2973
2974         PR target/50358
2975         * config/avr/avr.md (*ashiftqihi2.signx.1): New insn.
2976         (*maddqi4, *maddqi4.const): New insns.
2977         (*msubqi4, *msubqi4.const): New insns.
2978         * config/avr/avr.c (avr_rtx_costs): Record costs of above in cases
2979         PLUS:QI and MINUS:QI.  Increase costs of multiply-add/-sub for
2980         HImode by 1 in the case of multiplying with a CONST_INT.
2981         Record cost of *ashiftqihi2.signx.1 in case ASHIFT:QI.
2982
2983 2011-09-15   Jan Hubicka  <jh@suse.cz>
2984
2985         PR lto/50430
2986         * gimple-fold.c (gimple_get_virt_method_for_binfo): Do not ICE on
2987         error_mark_node in the DECL_INITIAL of vtable.
2988
2989 2011-09-15   Diego Novillo  <dnovillo@google.com>
2990
2991         * Makefile.in (SYSROOT_CFLAGS_FOR_TARGET): Define from
2992         @SYSROOT_CFLAGS_FOR_TARGET@.
2993         * configure.ac (SYSROOT_CFLAGS_FOR_TARGET): Set from build-sysroot.
2994         * configure: Regenerate.
2995         (site.exp): Add definition of TEST_ALWAYS_FLAGS.
2996         Remove setting of GCC_UNDER_TEST.
2997
2998 2011-09-15  Uros Bizjak  <ubizjak@gmail.com>
2999
3000         * config/i386/i386.c (output_fp_compare): Return %v prefixed
3001         instruction mnemonics for TARGET_AVX.
3002
3003         * config/i386/i386.md (*movdf_internal_rex64): use cond RTX in
3004         "type" attribute calculation.
3005         (*movdf_internal): Ditto.
3006         (*movsf_internal): Ditto.
3007
3008 2011-09-15  James Greenhalgh  <james.greenhalgh@arm.com>
3009
3010         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): New builtin macro.
3011
3012 2011-09-15  Jason Merrill  <jason@redhat.com>
3013
3014         PR c++/50361
3015         * expr.c (count_type_elements): Handle NULLPTR_TYPE.
3016
3017 2011-09-15  Jan Hubicka  <jh@suse.cz>
3018
3019         * ipa-inline-analysis.c (add_condition): Add conditions parameter;
3020         simplify obviously true clauses.
3021         (and_predicates, or_predicates): Add conditions parameter.
3022         (inline_duplication_hoook): Update.
3023         (mark_modified): New function.
3024         (unmodified_parm): New function.
3025         (eliminated_by_inlining_prob, (set_cond_stmt_execution_predicate,
3026         set_switch_stmt_execution_predicate, will_be_nonconstant_predicate):
3027         Use unmodified_parm.
3028         (estimate_function_body_sizes): Update.
3029         (remap_predicate): Update.
3030
3031 2011-09-15  Ira Rosen  <ira.rosen@linaro.org>
3032
3033         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Allow
3034         read-after-read dependencies in basic block SLP.
3035
3036 2011-09-14  Richard Sandiford  <rdsandiford@googlemail.com>
3037
3038         * config/sparc/sparc.md: Use match_test rather than eq/ne symbol_ref
3039         throughout file.
3040
3041 2011-09-14  Richard Sandiford  <rdsandiford@googlemail.com>
3042
3043         * config/sh/sh.md: Use match_test rather than eq/ne symbol_ref
3044         throughout file.
3045
3046 2011-09-14  Richard Sandiford  <rdsandiford@googlemail.com>
3047
3048         * config/s390/s390.md: Use match_test rather than eq/ne symbol_ref
3049         throughout file.
3050
3051 2011-09-14  Richard Sandiford  <rdsandiford@googlemail.com>
3052
3053         * config/rs6000/rs6000.md: Use match_test rather than eq/ne symbol_ref
3054         throughout file.
3055         * config/rs6000/constraints.md: Likewise.
3056
3057 2011-09-14  Richard Sandiford  <rdsandiford@googlemail.com>
3058
3059         * config/microblaze/microblaze.md: Use match_test rather than
3060         eq/ne symbol_ref throughout file.
3061
3062 2011-09-14  Richard Sandiford  <rdsandiford@googlemail.com>
3063
3064         * config/bfin/bfin.md: Use match_test rather than eq/ne symbol_ref
3065         throughout file.
3066
3067 2011-09-14  Tom de Vries  <tom@codesourcery.com>
3068
3069         PR middle-end/50251
3070         * explow.c (emit_stack_restore): Set crtl->need_drap if
3071         stack_restore is emitted.
3072
3073 2011-09-14  Julian Brown  <julian@codesourcery.com>
3074
3075         * config/arm/arm.c (arm_override_options): Add unaligned_access
3076         support.
3077         (arm_file_start): Emit attribute for unaligned access as appropriate.
3078         * config/arm/arm.md (UNSPEC_UNALIGNED_LOAD)
3079         (UNSPEC_UNALIGNED_STORE): Add constants for unspecs.
3080         (insv, extzv): Add unaligned-access support.
3081         (extv): Change to expander. Likewise.
3082         (extzv_t1, extv_regsi): Add helpers.
3083         (unaligned_loadsi, unaligned_loadhis, unaligned_loadhiu)
3084         (unaligned_storesi, unaligned_storehi): New.
3085         (*extv_reg): New (previous extv implementation).
3086         * config/arm/arm.opt (munaligned_access): Add option.
3087         * config/arm/constraints.md (Uw): New constraint.
3088         * expmed.c (store_bit_field_1): Adjust bitfield numbering according
3089         to size of access, not size of unit, when BITS_BIG_ENDIAN !=
3090         BYTES_BIG_ENDIAN. Don't use bitfield accesses for
3091         volatile accesses when -fstrict-volatile-bitfields is in effect.
3092         (extract_bit_field_1): Likewise.
3093
3094 2011-09-14  Richard Sandiford  <richard.sandiford@linaro.org>
3095
3096         * simplify-rtx.c (simplify_subreg): Check that the inner mode is
3097         a scalar integer before applying integer-only optimisations to
3098         inner arithmetic.
3099
3100 2011-09-14  Bernd Schmidt  <bernds@codesourcery.com>
3101
3102         * config/mips/mips.c (mips_expand_epilogue): Generate a
3103         simple_return only if the return address is in r31.
3104
3105 2011-09-13  Bernd Schmidt  <bernds@codesourcery.com>
3106
3107         * cfgcleanup.c (try_head_merge_bb): If get_condition returns
3108         NULL for a jump that is a cc0 insn, pick the previous insn for
3109         move_before.
3110
3111 2011-09-13  Richard Sandiford  <rdsandiford@googlemail.com>
3112
3113         * config/v850/v850.md: Use match_test rather than eq/ne symbol_ref
3114         throughout file.
3115
3116 2011-09-13  Richard Sandiford  <rdsandiford@googlemail.com>
3117
3118         * config/pa/pa.md: Use match_test rather than eq/ne symbol_ref
3119         throughout file.
3120
3121 2011-09-13  Richard Sandiford  <rdsandiford@googlemail.com>
3122
3123         * config/mn10300/mn10300.md: Use match_test rather than eq/ne
3124         symbol_ref throughout file.
3125
3126 2011-09-13  Richard Sandiford  <rdsandiford@googlemail.com>
3127
3128         * config/m68k/m68k.md: Use match_test rather than eq/ne symbol_ref
3129         throughout file.
3130
3131 2011-09-13  Richard Sandiford  <rdsandiford@googlemail.com>
3132
3133         * config/h8300/h8300.md: Use match_test rather than eq/ne symbol_ref
3134         throughout file.
3135
3136 2011-09-13  Richard Sandiford  <rdsandiford@googlemail.com>
3137
3138         * config/arm/arm.md: Use match_test rather than eq/ne symbol_ref
3139         throughout file.
3140         * config/arm/neon.md: Likewise.
3141         * config/arm/vfp.md: Likewise.
3142         * config/arm/thumb2.md: Likewise.
3143         * config/arm/cortex-m4.md: Likewise.
3144
3145 2011-09-13  Sevak Sargsyan <sevak.sargsyan@ispras.ru>
3146
3147         * config/arm/neon.md (neon_vabd<mode>_2, neon_vabd<mode>_3): New
3148         define_insn patterns for combine.
3149
3150 2011-09-13  Giuseppe Scrivano  <gscrivano@gnu.org>
3151
3152         * reorg.c: Always define make_return_insns.
3153
3154 2011-09-13  Jan Hubicka  <jh@suse.cz>
3155
3156         PR other/49533
3157         * cgraphunit.c (assemble_thunks_and_aliases): Force alias to be output.
3158
3159 2011-09-13  Jan Hubicka  <jh@suse.cz>
3160
3161         PR other/49533
3162         * ipa-inline-transform.c (can_remove_node_now_p): Fix thunkos.
3163
3164 2011-09-13  Paul Brook  <paul@codesourcery.com>
3165
3166         * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
3167         (ARM_TARGET2_DWARF_FORMAT): Provide default definition.
3168         * config/arm/linux-eabi.h (ARM_TARGET2_DWARF_FORMAT): Define.
3169         * config/arm/symbian.h (ARM_TARGET2_DWARF_FORMAT): Define.
3170         * config/arm/uclinux-eabi.h(ARM_TARGET2_DWARF_FORMAT): Define.
3171         * config/arm/t-bpabi (EXTRA_HEADERS): Add unwind-arm-common.h.
3172         * config/arm/t-symbian (EXTRA_HEADERS): Add unwind-arm-common.h.
3173         * config/c6x/c6x.c (c6x_output_file_unwind): Don't rely on dwarf2 code
3174         enabling unwind tables.
3175         (c6x_debug_unwind_info): New function.
3176         (TARGET_ARM_EABI_UNWINDER): Define.
3177         (TARGET_DEBUG_UNWIND_INFO): Define.
3178         * config/c6x/c6x.h (DWARF_FRAME_RETURN_COLUMN): Define.
3179         (TARGET_EXTRA_CFI_SECTION): Remove.
3180         * config/c6x/t-c6x-elf (EXTRA_HEADERS): Set.
3181         * ginclude/unwind-arm-common.h: New file.
3182
3183 2011-09-13  Georg-Johann Lay  <avr@gjlay.de>
3184
3185         PR target/50358
3186         * config/avr/predicates.md (const_1_to_6_operand): New predicate.
3187         * config/avr/avr.md: (extend_s): New code attribute.
3188         (mul_r_d): New code attribute.
3189         (*maddqihi4, *umaddqihi4): New insns.
3190         (*msubqihi4, *umsubqihi4): New insns.
3191         (*usmaddqihi4, *sumaddqihi4): New insns.
3192         (*usmsubqihi4, *susubdqihi4): New insns.
3193         (*umaddqihi4.uconst, *maddqihi4.sconst): New insn-and-splits.
3194         (*umsubqihi4.uconst, *msubqihi4.sconst): New insn-and-splits.
3195         (*umsubqihi4.uconst.ashift): New insn-and-split.
3196         (*msubqihi4.sconst.ashift): New insn-and-split.
3197         (*sumaddqihi4.uconst): New insn-and-split.
3198         (*sumsubqihi4.uconst): New insn-and-split.
3199         * config/avr/avr.c (avr_rtx_costs): Report costs of above in case
3200         PLUS:HI and MINUS:HI.
3201
3202 2011-09-13  Revital Eres  <revital.eres@linaro.org>
3203
3204         modulo-sched.c (remove_node_from_ps): Return void instead of bool.
3205         (optimize_sc): Adjust call to remove_node_from_ps.
3206         (sms_schedule): Add print info.
3207
3208 2011-09-13  Bernd Schmidt  <bernds@codesourcery.com>
3209
3210         * rtl.c (copy_rtx): Do not handle frame_related, jump or call
3211         flags specially.
3212
3213 2011-09-12  Jakub Jelinek  <jakub@redhat.com>
3214
3215         PR bootstrap/50010
3216         * dwarf2cfi.c (add_cfis_to_fde): Ignore non-active insns in between
3217         NOTE_INSN_CFI notes, with the exception of
3218         NOTE_INSN_SWITCH_TEXT_SECTIONS.
3219
3220 2011-09-12  Bernd Schmidt  <bernds@codesourcery.com>
3221             Richard Sandiford  <rdsandiford@googlemail.com>
3222
3223         * config/mips/mips.c (mips_epilogue): New structure.
3224         (mips16e_save_restore_reg): Queue REG_CFA_RESTORE notes when
3225         restoring registers.
3226         (mips_epilogue_emit_cfa_restores): New function.
3227         (mips_epilogue_set_cfa): Likewise.
3228         (mips_restore_reg): Queue REG_CFA_RESTORE notes.  When restoring
3229         the current CFA register from the stack, redefine the CFA in terms
3230         of the stack pointer.
3231         (mips_expand_epilogue): Set up mips_epilogue.  Attach CFA information
3232         to the epilogue instructions.
3233
3234 2011-09-12  Richard Sandiford  <rdsandiford@googlemail.com>
3235
3236         * config/mips/mips.c (mips16e_save_restore_reg): Add a reg_parm_p
3237         argument.
3238         (mips16e_build_save_restore): Update accordingly.
3239
3240 2011-09-12  Jakub Jelinek  <jakub@redhat.com>
3241
3242         PR rtl-optimization/50212
3243         * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
3244         Skip also lps with NULL landing_pad or non-LABEL_P landing_pad.
3245
3246         PR debug/50299
3247         * calls.c (load_register_parameters): Use use_reg_mode instead
3248         of use_reg when adding a single register CALL_INSN_FUNCTION_USAGE
3249         entry.
3250         (expand_call): Set EXPR_LIST mode to TYPE_MODE of the argument
3251         for stack CALL_INSN_FUNCTION_USAGE uses.
3252         * expr.h (use_reg_mode): New prototype.
3253         (use_reg): Changed into inline around use_reg_mode.
3254         * expr.c (use_reg): Renamed to...
3255         (use_reg_mode): ... this.  Added MODE argument, set EXPR_LIST
3256         mode to that mode instead of VOIDmode.
3257         * var-tracking.c (prepare_call_arguments): Don't track parameters
3258         whose EXPR_LIST mode is VOIDmode, BLKmode or X mode isn't convertible
3259         to it using lowpart_subreg.  Convert VALUE and REG/MEM to the
3260         EXPR_LIST mode.
3261
3262 2011-09-12  Georg-Johann Lay  <avr@gjlay.de>
3263
3264         PR target/43746
3265         * config/avr/avr.c (AVR_SECTION_PROGMEM): New Define.
3266         (progmem_section): New Variable.
3267         (avr_asm_init_sections): Initialize it.
3268         (TARGET_ASM_SELECT_SECTION): Define to...
3269         (avr_asm_select_section): ... this new Function.
3270         (avr_replace_prefix): New Function.
3271         (avr_asm_function_rodata_section): Use it.
3272         (avr_insert_attributes): Don't add section attribute for PROGMEM.
3273         (avr_section_type_flags): Use avr_progmem_p instead of section
3274         name to detect if object is in PROGMEM.
3275         (avr_asm_named_section): Set section name prefix for objects in
3276         PROGMEM.
3277
3278 2011-09-12  Jakub Jelinek  <jakub@redhat.com>
3279
3280         PR bootstrap/50352
3281         * config/arm/arm.md (*push_fp_multi): Add % before %( and %) in the
3282         sprintf format string.
3283
3284 2011-09-12  Richard Guenther  <rguenther@suse.de>
3285
3286         PR tree-optimization/50343
3287         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Check
3288         that the reduction is over an SSA name before checking its definition.
3289
3290 2011-09-11  Richard Sandiford  <rdsandiford@googlemail.com>
3291
3292         * config/cris/cris.md: Use match_test rather than eq/ne symbol_ref
3293         throughout file.
3294
3295 2011-09-11  Richard Sandiford  <rdsandiford@googlemail.com>
3296
3297         * config/mips/mips.md: Use match_test rather than eq/ne symbol_ref
3298         throughout file.
3299         * config/mips/sb1.md: Likewise.
3300         * config/mips/predicates.md: Replace (match_test "!...")
3301         with (not (match_test "..."))
3302         * config/mips/constraints.md: Likewise.
3303
3304 2011-09-09  Andrew Stubbs  <ams@codesourcery.com>
3305
3306         * config/arm/arm-cores.def (generic-armv7-a): New architecture.
3307         * config/arm/arm-tables.opt: Regenerate.
3308         * config/arm/arm-tune.md: Regenerate.
3309         * config/arm/arm.c (arm_file_start): Output .arch directive when
3310         user passes -mcpu=generic-*.
3311         (arm_issue_rate): Add genericv7a support.
3312         * config/arm/arm.h (EXTRA_SPECS): Add asm_cpu_spec.
3313         (ASM_CPU_SPEC): New define.
3314         * config/arm/elf.h (ASM_SPEC): Use %(asm_cpu_spec).
3315         * config/arm/semi.h (ASM_SPEC): Likewise.
3316         * doc/invoke.texi (ARM Options): Document -mcpu=generic-*
3317         and -mtune=generic-*.
3318
3319 2011-09-09  Richard Guenther  <rguenther@suse.de>
3320
3321         PR tree-optimization/50328
3322         * tree-vect-loop.c (vect_is_simple_reduction_1): Allow one
3323         constant or default-def operand.
3324
3325 2011-09-09  Richard Guenther  <rguenther@suse.de>
3326
3327         * tree-ssa-pre.c (create_expression_by_pieces): Fold the
3328         last statement.
3329
3330 2011-09-09  Richard Guenther  <rguenther@suse.de>
3331
3332         * gimple.h (fold_stmt_inplace): Adjust to take a gimple_stmt_iterator
3333         instead of a statement.
3334         * gimple-fold.c (fold_stmt_inplace): Likewise.
3335         * sese.c (graphite_copy_stmts_from_block): Adjust.
3336         * tree-ssa-dom.c (propagate_rhs_into_lhs): Likewise.
3337         * tree-ssa-forwprop.c (forward_propagate_into_comparison): Use
3338         fold_stmt.
3339         (forward_propagate_addr_into_variable_array_index): Likewise.
3340         (forward_propagate_addr_expr_1): adjust.
3341         (associate_plusminus): Likewise.
3342         (ssa_forward_propagate_and_combine): Likewise.
3343         * tree-ssa-mathopts.c (replace_reciprocal): Adjust.
3344         (execute_cse_reciprocals): Likewise.
3345         * tree-ssa.c (insert_debug_temp_for_var_def): Adjust.
3346
3347 2011-09-09  Nick Clifton  <nickc@redhat.com>
3348
3349         * config/mn10300/mn10300.c (mn10300_split_and_operand_count):
3350         Return a positive value to indicate that the bits at the
3351         bottom of the register should be cleared.
3352
3353 2011-09-09  Richard Guenther  <rguenther@suse.de>
3354
3355         * tree-ssa-operands.c (swap_tree_operands): Always adjust
3356         existing operand positions.
3357
3358 2011-09-09  Richard Guenther  <rguenther@suse.de>
3359
3360         PR middle-end/50333
3361         * tree-data-ref.c (split_constant_offset): Do not try to handle
3362         ternary ops.
3363
3364 2011-09-08  Andrew Stubbs  <ams@codesourcery.com>
3365
3366         PR tree-optimization/50318
3367         * tree-ssa-math-opts.c (convert_plusminus_to_widen): Correct
3368         typo in use of mult_rhs1 and mult_rhs2.
3369
3370 2011-09-08  Uros Bizjak  <ubizjak@gmail.com>
3371
3372         * config/i386/i386.c (standard_sse_constant_p): Handle AVX2 modes.
3373         (standard_sse_constant_opcode) <case 2>: Change vpcmpeqd template.
3374
3375 2011-09-08  Bernd Schmidt  <bernds@codesourcery.com>
3376
3377         * config/arm/arm.md (push_multi): Emit predicates.
3378         (push_fp_multi): Likewise.
3379         * config/arm/arm.c (vfp_output_fstmd): Likewise.
3380
3381 2011-09-08  Dodji Seketeli  <dodji@redhat.com>
3382
3383         PR c++/33255 - Support -Wunused-local-typedefs warning
3384         * c-decl.c (lookup_name): Use the new maybe_record_typedef_use.
3385         (pushdecl): Use the new record_locally_defined_typedef.
3386         (store_parm_decls): Allocate cfun->language.
3387         (finish_function): Use the new maybe_warn_unused_local_typedefs,
3388         and free cfun->language.
3389         (c_push_function_context): Allocate cfun->language here only if needed.
3390         (c_pop_function_context): Likewise, mark cfun->language
3391         for collection only when it should be done.
3392         * c-common.c (handle_used_attribute): Don't ignore TYPE_DECL nodes.
3393         * c-typeck.c (c_expr_sizeof_type, c_cast_expr): Use the new
3394         maybe_record_local_typedef_use.
3395         * doc/invoke.texi: Update documentation for
3396         -Wunused-local-typedefs.
3397
3398 2011-09-08  Enkovich Ilya  <ilya.enkovich@intel.com>
3399
3400         * config/i386/i386-protos.h (ix86_lea_outperforms): New.
3401         (ix86_avoid_lea_for_add): Likewise.
3402         (ix86_avoid_lea_for_addr): Likewise.
3403         (ix86_split_lea_for_addr): Likewise.
3404
3405         * config/i386/i386.c (LEA_MAX_STALL): New.
3406         (increase_distance): Likewise.
3407         (insn_defines_reg): Likewise.
3408         (insn_uses_reg_mem): Likewise.
3409         (distance_non_agu_define_in_bb): Likewise.
3410         (distance_agu_use_in_bb): Likewise.
3411         (ix86_lea_outperforms): Likewise.
3412         (ix86_ok_to_clobber_flags): Likewise.
3413         (ix86_avoid_lea_for_add): Likewise.
3414         (ix86_avoid_lea_for_addr): Likewise.
3415         (ix86_split_lea_for_addr): Likewise.
3416         (distance_non_agu_define): Search in pred BBs added.
3417         (distance_agu_use): Search in succ BBs added.
3418         (IX86_LEA_PRIORITY): Value changed from 2 to 0.
3419         (LEA_SEARCH_THRESHOLD): Now depends on LEA_MAX_STALL.
3420         (ix86_lea_for_add_ok): Use ix86_lea_outperforms to make decision.
3421
3422         * config/i386/i386.md: Split added to transform non destructive
3423         add into move and add.
3424         (lea_1): transformed into insn_and_split to avoid AGU stalls.
3425         (lea<mode>_2): Likewise.
3426
3427 2011-09-08  Martin Jambor  <mjambor@suse.cz>
3428
3429         PR tree-optimization/50287
3430         * ipa-split.c (split_function): Do not create SSA names for
3431         non-gimple-registers.
3432
3433 2011-09-08  Richard Guenther  <rguenther@suse.de>
3434
3435         PR tree-optimization/19831
3436         * tree-ssa-dce.c (mark_all_reaching_defs_necessary_1): Also
3437         skip builtins with vdefs that do not really store something.
3438         (propagate_necessity): For calls to free that we can associate
3439         with an allocation function do not mark the freed pointer
3440         definition necessary.
3441         (eliminate_unnecessary_stmts): Remove a call to free if
3442         the associated call to an allocation function is not necessary.
3443
3444 2011-09-08  Richard Guenther  <rguenther@suse.de>
3445
3446         PR tree-optimization/19831
3447         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Do not mark
3448         allocation functions as necessary.
3449
3450 2011-09-08  Iain Sandoe  <iains@gcc.gnu.org>
3451
3452         * config/darwin-driver.c (darwin_find_version_from_kernel): New routine
3453         cut from ...
3454         (darwin_default_min_version): Amended to provide defaults
3455         for the cross directory case.
3456         (darwin_driver_init): call darwin_default_min_version unconditionally.
3457         * config/darwin.h (DEF_MIN_OSX_VERSION): New.
3458         * config/darwin9.h: Likewise.
3459         * config/darwin10.h: Likewise.
3460         * config/rs6000/darwin7.h: Likewise.
3461
3462 2011-09-08  Jakub Jelinek  <jakub@redhat.com>
3463
3464         PR target/50310
3465         * config/i386/i386.c (ix86_prepare_sse_fp_compare_args): Return
3466         code early if TARGET_AVX.
3467         (ix86_expand_fp_vcond): Handle LTGT and UNEQ.
3468
3469 2011-09-07  Jakub Jelinek  <jakub@redhat.com>
3470
3471         * config/i386/sse.md (sseinsnmode): Remove 32-byte integer vector
3472         duplicates.
3473
3474         PR target/50310
3475         * config/i386/sse.md (*andnot<mode>3, *<code><mode>3): Fix up
3476         "mode" attribute computation.
3477
3478 2011-09-07  Bernd Schmidt  <bernds@codesourcery.com>
3479
3480         * regrename.c (struct du_head): Make nregs signed.
3481         (closed_chains): Remove.
3482         (create_new_chain): Return the new chain.
3483         (chain_from_id): New static function.
3484         (dump_def_use_chain): Change argument to be an int, indicating
3485         the first ID to print.  All callers changed.
3486         (merge_overlapping_regs): Use chain_from_id.  Assert that
3487         chains don't conflict with themselves.
3488         (rename_chains): Take no argument.  Iterate over id_to_chain
3489         rather to find chains to rename.  Clear tick before the main loop.
3490         (struct incoming_reg_info): New struct.
3491         (struct bb_rename_info): New struct.
3492         (init_rename_info, set_incoming_from_chain, merge_chains): New
3493         static functions.
3494         (regrename_analyze): New static function, broken out of
3495         regrename_optimize.  Record and make use of open chain information
3496         at basic block boundaries, and merge chains where possible.
3497         (scan_rtx_reg): Make this_nregs signed.  Don't update
3498         closed_chains.
3499         (build_def_use): Return a bool to indicate success.  All callers
3500         changed.  Don't initialize global data here.
3501         (regrename_optimize): Move most code out of here into
3502         regrename_analyze.
3503         * regs.h (add_range_to_hard_reg_set, remove_range_from_hard_reg_set,
3504         range_overlaps_hard_reg_set_p, range_in_hard_reg_set_p): New
3505         static inline functions.
3506         * vec.h (FOR_EACH_VEC_ELT_FROM): New macro.
3507
3508         * bb-reorder.c (insert_section_boundary_note): Don't check
3509         optimize_function_for_speed_p.
3510         (gate_handle_partition_blocks): Do it here instead.
3511         (gate_handle_reorder_blocks): Move preliminary checks here ...
3512         (rest_of_handle_reorder_blocks): ... from here.
3513
3514 2011-09-07  Martin Jambor  <mjambor@suse.cz>
3515
3516         PR middle-end/50301
3517         * ipa-cp.c (find_more_values_for_callers_subset): Check jump
3518         function index bounds.
3519         (perhaps_add_new_callers): Likewise.
3520
3521 2011-09-07  Martin Jambor  <mjambor@suse.cz>
3522
3523         PR tree-optimization/49911
3524         * tree-sra.c (analyze_access_subtree): Change type of to-be-replaced
3525         enumerations to the corresponding plain integer type.
3526
3527 2011-09-07  Richard Guenther  <rguenther@suse.de>
3528
3529         PR tree-optimization/50319
3530         * tree-if-conv.c (set_bb_predicate): Assert we only set
3531         canonical predicates.
3532         (add_to_predicate_list): Simplify.  Allow TRUTH_NOT_EXPR
3533         around canonical predicates.
3534         (predicate_bbs): Do not re-gimplify already canonical
3535         predicates.  Properly unshare them though.
3536         (find_phi_replacement_condition): Simplify.
3537
3538 2011-09-07  Richard Sandiford  <richard.sandiford@linaro.org>
3539
3540         PR target/49030
3541         * config/arm/arm-protos.h (maybe_get_arm_condition_code): Declare.
3542         * config/arm/arm.c (maybe_get_arm_condition_code): New function,
3543         reusing the old code from get_arm_condition_code.  Return ARM_NV
3544         for invalid comparison codes.
3545         (get_arm_condition_code): Redefine in terms of
3546         maybe_get_arm_condition_code.
3547         * config/arm/predicates.md (arm_comparison_operator): Use
3548         maybe_get_arm_condition_code.
3549
3550 2011-09-07  Richard Guenther  <rguenther@suse.de>
3551
3552         * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
3553         Canonicalize negated predicates by swapping edges.
3554         (forward_propagate_into_cond): Likewise.
3555
3556 2011-09-07  Richard Guenther  <rguenther@suse.de>
3557
3558         PR tree-optimization/50213
3559         * tree-flow.h (simple_iv_increment_p): Declare.
3560         * tree-ssa-dom.c (simple_iv_increment_p): Export.  Also handle
3561         POINTER_PLUS_EXPR.
3562         * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Do
3563         not propagate simple IV counter increments.
3564
3565 2011-09-07  Eric Botcazou  <ebotcazou@adacore.com>
3566             Iain Sandoe  <iains@gcc.gnu.org>
3567
3568         * config/rs6000/rs6000.c (compute_save_world_info): Test
3569         cfun->has_nonlocal_label to determine if the out-of-line save
3570         world call may be used.
3571
3572 2011-09-07  Nick Clifton  <nickc@redhat.com>
3573
3574         * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Set the jump
3575         label on the parallel part of the insn.
3576
3577 2011-09-07  Jakub Jelinek  <jakub@redhat.com>
3578
3579         PR debug/50191
3580         * dwarf2out.c (mem_loc_descriptor) <case MEM>: Try
3581         avoid_constant_pool_reference first instead of last.
3582
3583 2011-09-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
3584
3585         * doc/configfiles.texi (Configuration Files): Update documentation
3586         about tm_p.h and remove FIXME comment.
3587
3588 2011-09-06  Uros Bizjak  <ubizjak@gmail.com>
3589
3590         * config/i386/i386.c (ix86_function_value_regno_p): Use AX_REG.
3591         (function_value_32): Do not check TARGET_MMX, TARGET_SSE or TARGET_AVX.
3592
3593 2011-09-06  Iain Sandoe  <iains@gcc.gnu.org>
3594
3595         * config/darwin10.h Remove duplicate LIB_SPEC.
3596
3597 2011-09-06  Enkovich Ilya  <ilya.enkovich@intel.com>
3598
3599         PR middle-end/44382
3600         * target.def (reassociation_width): New hook.
3601
3602         * doc/tm.texi.in (reassociation_width): Likewise.
3603
3604         * doc/tm.texi (reassociation_width): Likewise.
3605
3606         * doc/invoke.texi (tree-reassoc-width): New param documented.
3607
3608         * hooks.h (hook_int_uint_mode_1): New default hook.
3609
3610         * hooks.c (hook_int_uint_mode_1): Likewise.
3611
3612         * config/i386/i386.h (ix86_tune_indices): Add
3613         X86_TUNE_REASSOC_INT_TO_PARALLEL and X86_TUNE_REASSOC_FP_TO_PARALLEL.
3614
3615         (TARGET_REASSOC_INT_TO_PARALLEL): New.
3616         (TARGET_REASSOC_FP_TO_PARALLEL): Likewise.
3617
3618         * config/i386/i386.c (initial_ix86_tune_features): Add
3619         X86_TUNE_REASSOC_INT_TO_PARALLEL and X86_TUNE_REASSOC_FP_TO_PARALLEL.
3620
3621         (ix86_reassociation_width): New function.
3622
3623         * params.def (PARAM_TREE_REASSOC_WIDTH): New param added.
3624
3625         * tree-ssa-reassoc.c (get_required_cycles): New function.
3626         (get_reassociation_width): Likewise.
3627         (swap_ops_for_binary_stmt): Likewise.
3628         (rewrite_expr_tree_parallel): Likewise.
3629
3630         (rewrite_expr_tree): Refactored.  Part of code moved into
3631         swap_ops_for_binary_stmt.
3632
3633         (reassociate_bb): Now checks reassociation width to be used and
3634         call rewrite_expr_tree_parallel instead of rewrite_expr_tree if needed.
3635
3636 2011-09-06  Richard Guenther  <rguenther@suse.de>
3637
3638         PR tree-optimization/47025
3639         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): BUILT_IN_VA_END
3640         uses nothing.
3641         (call_may_clobber_ref_p_1): BUILT_IN_VA_END is a barrier like
3642         BUILT_IN_FREE.
3643         (stmt_kills_ref_p_1): BUILT_IN_VA_END kills what its argument
3644         definitely points to.
3645         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
3646         BUILT_IN_VA_START doesn't let its va_list argument escape.
3647         * tree-ssa-dce.c (propagate_necessity): BUILT_IN_VA_END does
3648         not make any previous stores necessary.
3649
3650 2011-09-06  Martin Jambor  <mjambor@suse.cz>
3651
3652         * ipa-inline.h (struct inline_summary): Move versionable flag...
3653         * cgraph.h (struct cgraph_local_info): ...here
3654         * ipa-cp.c (determine_versionability): Use the new versionable flag.
3655         (determine_versionability): Likewise.
3656         (ipcp_versionable_function_p): Likewise.
3657         (ipcp_generate_summary): Likewise.
3658         * ipa-inline-analysis.c (dump_inline_summary): Do not dump the
3659         versionable flag.
3660         (compute_inline_parameters): Do not clear the versionable flag.
3661         (inline_read_section): Do not stream the versionable flag.
3662         (inline_write_summary): Likewise.
3663         * lto-cgraph.c (lto_output_node): Stream the versionable flag.
3664         (input_overwrite_node): Likewise.
3665
3666 2011-09-06  Richard Guenther  <rguenther@suse.de>
3667
3668         PR tree-optimization/48149
3669         * tree-ssa-sccvn.c (vn_get_expr_for): Simplify.  Fix tuplification bug.
3670         (vn_valueize): Move earlier.
3671         (valueize_expr): Use vn_valueize.
3672         (simplify_binary_expression): Simplify, also combine COMPLEX_EXPR
3673         operands.
3674         (simplify_unary_expression): Simplify.
3675
3676 2011-09-06  Richard Guenther  <rguenther@suse.de>
3677
3678         PR tree-optimization/48317
3679         * tree-ssa-sccvn.h (struct vn_nary_op_s): Make op a true
3680         trailing array.
3681         (sizeof_vn_nary_op): New inline function.
3682         (vn_nary_op_lookup_pieces): Adjust.
3683         (vn_nary_op_insert_pieces): Likewise.
3684         * tree-ssa-sccvn.c (vn_nary_op_eq): Also compare the length.
3685         (init_vn_nary_op_from_pieces): Adjust signature.  Deal with
3686         any number of operands.
3687         (vn_nary_length_from_stmt): New function.
3688         (init_vn_nary_op_from_stmt): Adjust for CONSTRUCTOR handling.
3689         (vn_nary_op_lookup_pieces): Adjust signature and allocate properly
3690         sized temporary.
3691         (vn_nary_op_lookup): Likewise.
3692         (vn_nary_op_lookup_stmt): Likewise.
3693         (vn_nary_op_insert_into): Likewise.
3694         (vn_nary_op_insert_stmt): Likewise.
3695         (visit_use): Handle CONSTRUCTOR as nary.
3696         * tree-ssa-pre.c (phi_translate_1): Adjust.
3697         (create_expression_by_pieces): Likewise.
3698         (compute_avail): Likewise.
3699
3700 2011-09-06  Ira Rosen  <ira.rosen@linaro.org>
3701
3702          * config/arm/arm.c (arm_preferred_simd_mode): Check
3703         TARGET_NEON_VECTORIZE_DOUBLE instead of
3704         TARGET_NEON_VECTORIZE_QUAD.
3705         (arm_autovectorize_vector_sizes): Likewise.
3706         * config/arm/arm.opt (mvectorize-with-neon-quad): Make inverse
3707         mask of mvectorize-with-neon-double.  Add RejectNegative.
3708         (mvectorize-with-neon-double): New.
3709
3710 2011-09-06  Richard Guenther  <rguenther@suse.de>
3711
3712         * tree-ssa-sccvn.c (visit_use): CSE stmt pieces and simplify matching.
3713
3714 2011-09-06  Tom de Vries  <tom@codesourcery.com>
3715
3716         * recog.c (asm_labels_ok): New function.
3717         (check_asm_operands): Use asm_labels_ok.
3718
3719 2011-09-05  Richard Sandiford  <rdsandiford@googlemail.com>
3720
3721         PR target/49606
3722         * config/mips/mips.h (ABI_HAS_64BIT_SYMBOLS): Check Pmode.
3723         (PMODE_INSN): New macro.
3724         * config/mips/mips.c (gen_load_const_gp): Use PMODE_INSN.
3725         (mips_got_load, mips_expand_synci_loop): Likewise.
3726         (mips_save_gp_to_cprestore_slot): Handle SImode and DImode
3727         cprestore patterns.
3728         (mips_emit_loadgp): Use PMODE_INSN.  Handle SImode and DImode
3729         copygp_mips16 patterns.
3730         (mips_expand_prologue): Handle SImode and DImode potential_cprestore
3731         and use_cprestore patterns.
3732         (mips_override_options): Check for incompatible -mabi and -mlong
3733         combinations.
3734         * config/mips/mips.md (unspec_got<mode>): Rename to...
3735         (unspec_got_<mode>): ...this.
3736         (copygp_mips16): Use the Pmode iterator.
3737         (potential_cprestore, cprestore, use_cprestore): Likewise.
3738         (clear_cache, indirect_jump): Use PMODE_INSN.
3739         (indirect_jump<mode>): Rename to...
3740         (indirect_jump_<mode>): ...this.
3741         (tablejump): Use PMODE_INSN.
3742         (tablejump<mode>): Rename to...
3743         (tablejump_<mode>): ...this.
3744         (exception_receiver): Handle restore_gp_si and restore_gp_di.
3745         (restore_gp): Use the Pmode iterator.
3746         * config/mips/mips-dsp.md (mips_lbux, mips_lhx, mips_lwx): Use
3747         PMODE_INSN.
3748
3749 2011-09-05  Richard Sandiford  <rdsandiford@googlemail.com>
3750
3751         * config/mips/mips.c (mips_gimplify_va_arg_expr): Unshare off.
3752         Fix the type of the BIT_AND_EXPR.
3753
3754 2011-09-05  David S. Miller  <davem@davemloft.net>
3755
3756         * config.host: Add driver-sparc.o and sparc/x-sparc on
3757         native sparc*-*-linux* builds.
3758         * config/sparc/driver-sparc.c: Correct Linux strings.
3759         * config/sparc/linux.h: Add DRIVER_SELF_SPECS.
3760         * config/sparc/linux64.h: Likewise.
3761         * doc/invoke.texi: Document that Linux also supports
3762         -mcpu=native and -mtune=native on sparc.
3763
3764         * config/sparc/sparc-opts.h (PROCESSOR_NIAGARA3,
3765         PROCESSOR_NIAGARA4): New.
3766         * config/sparc/sparc.opt: Handle new processor types.
3767         * config/sparc/sparc.md: Add to "cpu" attribute.
3768         * config/sparc/sparc.h (TARGET_CPU_niagara3,
3769         TARGET_CPU_niagara4): New, treat as niagara2.
3770         * config/sparc/linux64.h: Handle niagara3 and niagara4 like niagara2.
3771         * config/sparc/sol2.h: Likewise.
3772         * config/sparc/niagara2.md: Schedule niagara3 like niagara2.
3773         * config/sparc/sparc.c (sparc_option_override): Add
3774         niagara3 and niagara4 handling.
3775         (sparc32_initialize_trampoline): Likewise.
3776         (sparc64_initialize_trampoline): Likewise.
3777         (sparc_use_sched_lookahead): Likewise.
3778         (sparc_issue_rate): Likewise.
3779         (sparc_register_move_cost): Likewise.
3780         * config/sparc/driver-sparc.c (cpu_names): Use niagara3
3781         and niagara4 as appropriate.
3782         * doc/invoke.texi: Document new processor types.
3783         * config.gcc: Recognize niagara3 and niagara4 in --with-cpu
3784         and --with-tune options.
3785
3786         * config/sparc/sol2-64.h: Move ...
3787         * config/sparc/default-64.h: ... to here.  Update comment.
3788         * config.gcc: Update Solaris sparc to use default-64.h, also
3789         prefix this header into the list on sparc64-*-linux.
3790         * config/sparc/linux64.h (TARGET_DEFAULT): Only override if
3791         TARGET_64BIT_DEFAULT is defined.  Remove commented out reference
3792         to MASK_HARD_QUAD.
3793
3794 2011-09-05  Georg-Johann Lay  <avr@gjlay.de>
3795
3796         PR target/50289
3797         * config/avr/avr.c (sequent_regs_live): Don't recognize sequences
3798         that contain global register variable.
3799
3800 2011-09-05  Richard Guenther  <rguenther@suse.de>
3801
3802         * tree-cfg.c (replace_uses_by): Use fold_stmt, not fold_stmt_inplace.
3803
3804 2011-09-05  Richard Guenther  <rguenther@suse.de>
3805
3806         * stor-layout.c (layout_type): Use size_binop for array size
3807         calculations.
3808
3809 2011-09-05  Georg-Johann Lay  <avr@gjlay.de>
3810
3811         * config/avr/avr.h (progmem_section): Remove Declaration.
3812         * config/avr/avr.c (progmem_section): Make static and rename to
3813         progmem_swtable_section.
3814         (avr_output_addr_vec_elt): No need to switch sections.
3815         (avr_asm_init_sections): Use output_section_asm_op as section
3816         callback for progmem_swtable_section.
3817         (avr_output_progmem_section_asm_op): Remove Function.
3818         (TARGET_ASM_FUNCTION_RODATA_SECTION): New Define.
3819         (avr_asm_function_rodata_section): New static Function.
3820         * config/avr/elf.h (ASM_OUTPUT_BEFORE_CASE_LABEL): Output
3821         alignment 2**1 for jump tables.
3822
3823 2011-09-04  Jan Hubicka  <jh@suse.cz>
3824
3825         * ipa-inline-analysis.c (set_cond_stmt_execution_predicate): Check that
3826         parameter is SSA name.
3827
3828 2011-09-04  Richard Guenther  <rguenther@suse.de>
3829
3830         Revert
3831         2011-08-31  Richard Guenther  <rguenther@suse.de>
3832
3833         * fold-const.c (extract_muldiv_1): Remove bogus TYPE_IS_SIZETYPE
3834         special-casing.
3835
3836 2011-09-04  Iain Sandoe  <iains@gcc.gnu.org>
3837
3838         PR debug/49901
3839         * config/darwin.h (DEBUG_MACRO_SECTION): New macro.
3840
3841 2011-09-04  Jakub Jelinek  <jakub@redhat.com>
3842             Ira Rosen  <ira.rosen@linaro.org>
3843
3844         PR tree-optimization/50208
3845         * tree-vect-patterns.c (vect_handle_widen_mult_by_const): Add an
3846         argument.  Check that def_stmt is inside the loop.
3847         (vect_recog_widen_mult_pattern): Update calls to
3848         vect_handle_widen_mult_by_cons.
3849         (vect_operation_fits_smaller_type): Check that def_stmt is
3850         inside the loop.
3851
3852 2011-09-04  Ira Rosen  <ira.rosen@linaro.org>
3853
3854         * tree-vectorizer.c (vect_print_dump_info): Print line
3855         number when dumping to a file.
3856         (vectorize_loops): Add new messages to dump file.
3857
3858 2011-09-03  Martin Jambor  <mjambor@suse.cz>
3859
3860         * ipa-prop.h (ipa_jump_func_t): New typedef.
3861         (struct ipa_edge_args): Removed field argument_count, field
3862         jump_functions turned into a vector.
3863         (ipa_set_cs_argument_count): Removed.
3864         (ipa_get_cs_argument_count): Updated to work on vectors.
3865         (ipa_get_ith_jump_func): Likewise.
3866         * ipa-prop.c (ipa_count_arguments): Removed.
3867         (compute_scalar_jump_functions): Use ipa_get_ith_jump_func to access
3868         jump functions.  Update caller.
3869         (compute_pass_through_member_ptrs): Likewise.
3870         (compute_cst_member_ptr_arguments): Likewise.
3871         (ipa_compute_jump_functions_for_edge): Get number of arguments from
3872         the statement, allocate vector.
3873         (ipa_compute_jump_functions): Do not call ipa_count_arguments.
3874         (duplicate_ipa_jump_func_array): Removed.
3875         (ipa_edge_duplication_hook): Use VEC_copy, do not copy argument count.
3876         (ipa_read_node_info): Allocate vector.
3877
3878 2011-09-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3879
3880         PR middle-end/50232
3881         * config/pa/pa.md (return): Define "return" insn pattern.
3882         (epilogue): Use it when no epilogue is needed.
3883         * config/pa/pa.c (pa_can_use_return_insn): New function.
3884         * config/pa/pa-protos.h (pa_can_use_return_insn): Declare.
3885
3886 2011-09-03  Eric Botcazou  <ebotcazou@adacore.com>
3887
3888         * cfgexpand.c (add_stack_var): Assert that the alignment is not zero.
3889         * tree-ssa-ccp.c (fold_builtin_alloca_for_var): Revert latest change.
3890         Force at least BITS_PER_UNIT alignment on the new variable.
3891
3892 2011-09-02  Gary Funck <gary@intrepid.com>
3893
3894         * opts.c (print_specific_help): Fix off-by-one compare in
3895         assertion check.
3896         * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
3897         CL_TARGET, CL_COMMON, CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED):
3898         Increase by +5 to allow for more languages.
3899         * optc-gen.awk: Generate #if that ensures that the number of
3900         languages is within the implementation-defined limit.
3901
3902 2011-09-02  Michael Matz  <matz@suse.de>
3903
3904         PR middle-end/50260
3905         * ipa-split.c (split_function): Call add_referenced_var.
3906
3907         * tree-ssa-phiopt.c (cond_store_replacement): Don't call get_var_ann.
3908         (cond_if_else_store_replacement_1): Ditto.
3909         * tree-ssa-pre.c (get_representative_for): Ditto.
3910         (create_expression_by_pieces): Ditto.
3911         (insert_into_preds_of_block): Ditto.
3912         * tree-sra.c (create_access_replacement): Ditto.
3913         (get_replaced_param_substitute): Ditto.
3914
3915 2011-09-02  Bernd Schmidt  <bernds@codesourcery.com>
3916
3917         * config/c6x/c6x.md (collapse-ndfa, no-comb-vect): New
3918         automata_options.
3919         (d1, l1, s1, m1, d2, l2, s2, m2): Changed to define_query_cpu_unit.
3920         (l1w, s1w, l2w, s2w): Define in the main automaton.
3921         (fps1, fpl1, adddps1, adddpl1, fps2, fpl2, adddps2, adddpl2): New
3922         units.
3923         * config/c6x/c6x.c (c6x_sched_insn_info): Add unit_mask member.
3924         (c6x_unit_names): Add the new units.
3925         (c6x_unit_codes): New static array.
3926         (UNIT_QID_D1, UNIT_QID_L1, UNIT_QID_S1, UNIT_QID_M1, UNIT_QID_FPS1,
3927         UNIT_QID_FPL1, UNIT_QID_ADDDPS1, UNIT_QID_ADDDPL1,
3928         UNIT_QID_SIDE_OFFSET): New macros.
3929         (RESERVATION_S2): Adjust value.
3930         (c6x_option_override): Compute c6x_unit_codes.
3931         (assign_reservations): Take the unit_mask of the last instruction
3932         into account.  Detect floating point reservations by looking for
3933         the new units.  Don't assign reservations if the field is already
3934         nonzero.
3935         (struct c6x_sched_context): Add member prev_cycle_state_ctx.
3936         (init_sched_state): Initialize it.
3937         (c6x_clear_sched_context): Free it.
3938         (insn_set_clock): Clear reservation.
3939         (prev_cycle_state): New static variable.
3940         (c6x_init_sched_context): Save it.
3941         (c6x_sched_init): Allocate space for it and clear it.
3942         (c6x_sched_dfa_pre_cycle_insn): New static function.
3943         (c6x_dfa_new_cycle): Save state at the start of a new cycle.
3944         (c6x_variable_issue): Only record units in the unit_mask that
3945         were not set at the start of the cycle.
3946         (c6x_variable_issue): Compute and store the unit_mask from the
3947         current state.
3948         (reorg_split_calls): Ensure the new information remains correct.
3949         (TARGET_SCHED_DFA_NEW_CYCLE, TARGET_SCHED_CLEAR_SCHED_CONTEXT,
3950         TARGET_SCHED_DFA_PRE_CYCLE_INSN): Define.
3951         * config/c6x/c6x.h (CPU_UNITS_QUERY): Define.
3952         * config/c6x/c6x-sched.md.in (fp4_ls_N__CROSS_, adddp_ls_N__CROSS_):
3953         Add special reservations.
3954         * config/c6x/c6x-sched.md: Regenerate.
3955
3956 2011-09-02  Martin Jambor  <mjambor@suse.cz>
3957
3958         * ipa-prop.h (ipa_node_params): Removed fields
3959         called_with_var_arguments and node_versionable.
3960         (ipa_set_called_with_variable_arg): Removed.
3961         (ipa_is_called_with_var_arguments): Likewise.
3962         * ipa-cp.c (ipa_get_lattice): Fixed index check in an assert.
3963         (determine_versionability): Do not check for type attributes and va
3964         builtins.  Record versionability into inline summary.
3965         (initialize_node_lattices): Do not check
3966         ipa_is_called_with_var_arguments.
3967         (propagate_constants_accross_call): Likewise, ignore arguments we do
3968         not have PARM_DECLs for, set variable flag for parameters that were
3969         not passed a value.
3970         (create_specialized_node): Dump info that we cannot change signature.
3971         * ipa-prop.c (ipa_compute_jump_functions): Do not care about variable
3972         number of arguments.
3973         (ipa_make_edge_direct_to_target): Likewise.
3974         (ipa_update_after_lto_read): Likewise.
3975         (ipa_node_duplication_hook): Do not copy called_with_var_arguments flag.
3976         * tree-inline.c (copy_arguments_for_versioning): Copy PARM_DECLs if
3977         they were remapped.
3978
3979 2011-09-02  Richard Guenther  <rguenther@suse.de>
3980
3981         PR tree-optimization/27460
3982         PR middle-end/29269
3983         * doc/md.texi (vcond): Document.
3984         * genopinit.c (optabs): Turn vcond{,u}_optab into a conversion
3985         optab with two modes.
3986         * optabs.h (enum convert_optab_index): Add COI_vcond, COI_vcondu.
3987         (enum direct_optab_index): Remove DOI_vcond, DOI_vcondu.
3988         (vcond_optab): Adjust.
3989         (vcondu_optab): Likewise.
3990         (expand_vec_cond_expr_p): Adjust prototype.
3991         * optabs.c (get_vcond_icode): Adjust.
3992         (expand_vec_cond_expr_p): Likewise.
3993         (expand_vec_cond_expr): Likewise.
3994         * tree-vect-stmts.c (vect_is_simple_cond): Return the comparison
3995         vector type.
3996         (vectorizable_condition): Allow differing types for comparison
3997         and result.
3998         * config/i386/i386.c (ix86_expand_sse_cmp): Use proper mode
3999         for the comparison.
4000         * config/i386/sse.md (vcond<mode>): Split to
4001         vcond<V_256:mode><VF_256:mode>, vcond<V_128:mode><VF_128:mode>,
4002         vcond<V_128:mode><VI124_128:mode> and
4003         vcondu<V_128:mode><VI124_128:mode>.
4004         (vcondv2di): Change to vcond<VI8F_128:mode>v2di.
4005         (vconduv2di): Likewise.
4006         * config/arm/neon.md (vcond<mode>): Change to vcond*<mode><mode>.
4007         (vcondu<mode>): Likewise.
4008         * config/ia64/vect.md (vcond<mode>): Likewise.
4009         (vcondu<mode>): Likewise.
4010         (vcondv2sf): Likewise.
4011         * config/mips/mips-ps-3d.md (vcondv2sf): Likewise.
4012         * config/rs6000/paired.md (vcondv2sf): Likewise.
4013         * config/rs6000/vector.md (vcond<mode>): Likewise.
4014         (vcondu<mode>): Likewise.
4015         * config/spu/spu.md (vcond<mode>): Likewise.
4016         (vcondu<mode>): Likewise.
4017
4018 2011-09-02  Richard Guenther  <rguenther@suse.de>
4019
4020         * pretty-print.h (pp_unsigned_wide_integer): New.
4021         * tree-pretty-print.c (dump_generic_node): Print unsigned
4022         host-wide-int fitting INTEGER_CSTs with pp_unsigned_wide_integer.
4023
4024 2011-09-02  Richard Sandiford  <richard.sandiford@linaro.org>
4025
4026         PR target/49987
4027         * config/rs6000/rs6000.c (paired_expand_vector_init): Check for
4028         valid CONST_VECTOR operands.
4029         (rs6000_expand_vector_init): Likewise.
4030
4031 2011-09-02  Martin Jambor  <mjambor@suse.cz>
4032
4033         * cgraph.h (cgraph_indirect_call_info): Removed field thunk_delta.
4034         * gimple-fold.c (gimple_get_virt_method_for_binfo): Rewritten to use
4035         BINFO_VTABLE.  Parameter delta removed, all callers updated.
4036         * tree.c (free_lang_data_in_binfo): Clear BINFO_VIRTUALs instead
4037         BINFO_VTABLE.
4038         * cgraph.c (cgraph_make_edge_direct): Removed parameter delta, updated
4039         all calls.
4040         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Removed
4041         handling of thunk_delta.
4042         * ipa-cp.c (get_indirect_edge_target): Removed parameter delta.
4043         (devirtualization_time_bonus): Do not handle thunk deltas.
4044         (ipcp_discover_new_direct_edges): Likewise.
4045         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
4046         (try_make_edge_direct_simple_call): Likewise.
4047         (try_make_edge_direct_virtual_call): Likewise.
4048         * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise.  Mark
4049         parameter set as unused.
4050         (output_edge_opt_summary): Likewise.  Mark both parameters as unused.
4051         * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise.  Mark
4052         parameter set as unused.
4053         (output_edge_opt_summary): Likewise.  Mark both parameters as unused.
4054         (input_edge_opt_summary): Likewise.
4055         * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not stream
4056         BINFO_VIRTUALS at all.
4057         * lto-streamer-in.c (lto_input_ts_binfo_tree_pointers): Likewise.
4058
4059 2011-09-02  Richard Guenther  <rguenther@suse.de>
4060
4061         * tree-ssa-ccp.c (fold_builtin_alloca_for_var): Do not fold alloca (0).
4062         (ccp_fold_stmt): Continue replacing args when folding alloca fails.
4063
4064 2011-08-31  Richard Guenther  <rguenther@suse.de>
4065
4066         * expr.c (expand_expr_real_2): Move COND_EXPR and VEC_COND_EXPR
4067         handling here, from ...
4068         (expand_expr_real_1): ... here.
4069         * gimple-pretty-print.c (dump_ternary_rhs): Handle COND_EXPR
4070         and VEC_COND_EXPR.
4071         * gimple.c (gimple_rhs_class_table): Make COND_EXPR and VEC_COND_EXPR
4072         a GIMPLE_TERNARY_RHS.
4073         * tree-cfg.c (verify_gimple_assign_ternary): Handle COND_EXPR
4074         and VEC_COND_EXPR here ...
4075         (verify_gimple_assign_single): ... not here.
4076         * gimple-fold.c (fold_gimple_assign): Move COND_EXPR folding.
4077         * tree-object-size.c (cond_expr_object_size): Adjust.
4078         (collect_object_sizes_for): Likewise.
4079         * tree-scalar-evolution.c (interpret_expr): Don't handle ternary RHSs.
4080         * tree-ssa-forwprop.c (forward_propagate_into_cond): Fix and simplify.
4081         (ssa_forward_propagate_and_combine): Adjust.
4082         * tree-ssa-loop-im.c (move_computations_stmt): Build the COND_EXPR
4083         as ternary.
4084         * tree-ssa-threadedge.c (fold_assignment_stmt): Adjust.
4085         * tree-vect-loop.c (vect_is_simple_reduction_1): Likewise.
4086         * tree-vect-stmt.c (vectorizable_condition): Likewise.
4087         * tree-vrp.c (extract_range_from_cond_expr): Likewise.
4088         (extract_range_from_assignment): Likewise.
4089
4090 2011-08-31  Richard Sandiford  <rdsandiford@googlemail.com>
4091
4092         * config/i386/i386.md: Use (match_test ...) for attribute tests.
4093         * config/i386/mmx.md: Likewise.
4094         * config/i386/sse.md: Likewise.
4095         * config/i386/predicates.md (call_insn_operand): Use
4096         (not (match_test "...")) instead of (match_test "!...")
4097         * config/i386/constraints.md (w): Likewise.
4098
4099 2011-08-31  Richard Sandiford  <rdsandiford@googlemail.com>
4100
4101         * doc/md.texi: Describe the use of match_tests in attribute tests.
4102         * rtl.def (MATCH_TEST): Update commentary.
4103         * genattrtab.c (attr_copy_rtx, check_attr_test, clear_struct_flag)
4104         (write_test_expr, walk_attr_value): Handle MATCH_TEST.
4105
4106 2011-08-31  Richard Sandiford  <rdsandiford@googlemail.com>
4107
4108         * genattrtab.c (attr_rtx_1): Hash SYMBOL_REFs.
4109         (attr_string): Use copy_md_ptr_loc.
4110
4111 2011-08-31  Martin Jambor  <mjambor@suse.cz>
4112
4113         PR middle-end/49886
4114         * ipa-inline-analysis.c (compute_inline_parameters): Set
4115         can_change_signature of noes with typde attributes.
4116         * ipa-split.c (split_function): Do not skip any arguments if
4117         can_change_signature is set.
4118
4119 2011-08-31  Martin Jambor  <mjambor@suse.cz>
4120
4121         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Alias
4122         check removed.
4123
4124 2011-08-31  Richard Guenther  <rguenther@suse.de>
4125
4126         * fold-const.c (extract_muldiv_1): Remove bogus TYPE_IS_SIZETYPE
4127         special-casing.
4128
4129 2011-08-31  Marc Glisse  <marc.glisse@inria.fr>
4130
4131         * doc/generic.texi (Types for C++): CP_TYPE_QUALS -> cp_type_quals.
4132
4133 2011-08-31  Tom de Vries  <tom@codesourcery.com>
4134
4135         PR middle-end/43513
4136         * Makefile.in (tree-ssa-ccp.o): Add $(PARAMS_H) to rule.
4137         * tree-ssa-ccp.c (params.h): Include.
4138         (fold_builtin_alloca_for_var): New function.
4139         (ccp_fold_stmt): Use fold_builtin_alloca_for_var.
4140
4141 2011-08-30  Uros Bizjak  <ubizjak@gmail.com>
4142
4143         * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
4144         Handle FMA option.
4145
4146 2011-08-30  Andrew Stubbs  <ams@codesourcery.com>
4147
4148         * config/arm/arm.c (optimal_immediate_sequence_1): Make b1, b2,
4149         b3 and b4 unsigned.
4150
4151 2011-08-30  Andrew Stubbs  <ams@codesourcery.com>
4152
4153         * config/arm/arm.c (arm_gen_constant): Set can_negate correctly
4154         when code is SET.
4155
4156 2011-08-30  Richard Guenther  <rguenther@suse.de>
4157
4158         PR middle-end/48571
4159         * gimple.h (maybe_fold_offset_to_address): Remove.
4160         (maybe_fold_offset_to_reference): Likewise.
4161         (maybe_fold_stmt_addition): Likewise.
4162         (may_propagate_address_into_dereference): Likewise.
4163         * tree-inline.c (remap_gimple_op_r): Do not reconstruct
4164         array references.
4165         * gimple-fold.c (canonicalize_constructor_val): Likewise.
4166         Canonicalize invariant POINTER_PLUS_EXPRs to invariant MEM_REF
4167         addresses instead.
4168         (may_propagate_address_into_dereference): Remove.
4169         (maybe_fold_offset_to_array_ref): Likewise.
4170         (maybe_fold_offset_to_reference): Likewise.
4171         (maybe_fold_offset_to_address): Likewise.
4172         (maybe_fold_stmt_addition): Likewise.
4173         (fold_gimple_assign): Do not reconstruct array references but
4174         instead canonicalize invariant POINTER_PLUS_EXPRs to invariant
4175         MEM_REF addresses.
4176         (gimple_fold_stmt_to_constant_1): Likewise.
4177         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
4178         * gimplify.c (gimplify_conversion): Likewise.
4179         (gimplify_expr): Likewise.
4180
4181 2011-08-30  Ilya Tocar  <ilya.tocar@intel.com>
4182
4183         * config/i386/fmaintrin.h: New.
4184         * config.gcc: Add fmaintrin.h.
4185         * config/i386/i386.c
4186         (enum ix86_builtins) <IX86_BUILTIN_VFMADDSS3>: New.
4187         <IX86_BUILTIN_VFMADDSD3>: Likewise.
4188         * config/i386/sse.md (fmai_vmfmadd_<mode>): New.
4189         (*fmai_fmadd_<mode>): Likewise.
4190         (*fmai_fmsub_<mode>): Likewise.
4191         (*fmai_fnmadd_<mode>): Likewise.
4192         (*fmai_fnmsub_<mode>): Likewise.
4193         * config/i386/immintrin.h: Add fmaintrin.h.
4194
4195 2011-08-30  Bernd Schmidt  <bernds@codesourcery.com>
4196
4197         * genautomata.c (NO_COMB_OPTION): New macro.
4198         (no_comb_flag): New static variable.
4199         (gen_automata_option): Handle NO_COMB_OPTION.
4200         (comb_vect_p): False if no_comb_flag.
4201         (add_vect): Move computation of min/max values.  Return early if
4202         no_comb_flag.
4203         * doc/md.texi (automata_option): Document no-comb-vect.
4204
4205         * config/i386/i386.c (get_pc_thunk_name): Change prefix to
4206         "__x86.get_pc_thunk".
4207
4208         * bb-reorder.c (insert_section_boundary_note): Only do it if
4209         we reordered the blocks; i.e. not if !optimize_function_for_speed_p.
4210
4211 2011-08-30  Christian Bruel  <christian.bruel@st.com>
4212
4213         * coverage.c (coverage_init): Check flag_branch_probabilities instead of
4214         flag_profile_use.
4215
4216 2011-08-29  Michael Meissner  <meissner@linux.vnet.ibm.com>
4217
4218         * config/rs6000/rs6000.opt (-msave-toc-indirect): Change default
4219         to off.  Document switch.
4220         * doc/invoke.texi (-msave-toc-indirect): Ditto.
4221
4222 2011-08-29  Jakub Jelinek  <jakub@redhat.com>
4223
4224         * gthr-posix.h (__gthread_active_p): Do not use preprocessor
4225         conditionals and comments inside macro arguments.
4226
4227 2011-08-29  Artjoms Sinkarovs  <artyom.shinkaroff@gmail.com>
4228             Richard Guenther  <rguenther@suse.de>
4229
4230         * tree.h (constant_boolean_node): Adjust prototype.
4231         * fold-const.c (fold_convert_loc): Move aggregate conversion
4232         leeway down.
4233         (constant_boolean_node): Make value parameter boolean, add
4234         vector type handling.
4235         (fold_unary_loc): Use constant_boolean_node.
4236         (fold_binary_loc): Preserve types properly when folding
4237         COMPLEX_EXPR <__real x, __imag x>.
4238         * gimplify.c (gimplify_expr): Handle vector comparison.
4239         * tree.def (EQ_EXPR, ...): Document behavior on vector typed
4240         comparison.
4241         * tree-cfg.c (verify_gimple_comparison): Verify vector typed
4242         comparisons.
4243
4244 2011-08-29  Jakub Jelinek  <jakub@redhat.com>
4245
4246         PR middle-end/48722
4247         * emit-rtl.c (unshare_all_rtl_again): For CALL_INSNs,
4248         reset_used_flags also in CALL_INSN_FUNCTION_USAGE.
4249         (verify_rtl_sharing): Likewise and verify_rtx_sharing
4250         in there too.
4251         (unshare_all_rtl_in_chain): For CALL_INSNs
4252         copy_rtx_if_shared also CALL_INSN_FUNCTION_USAGE.
4253
4254 2011-08-29  Richard Guenther  <rguenther@suse.de>
4255
4256         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Set a location
4257         on the built ADDR_EXPR.
4258
4259 2011-08-29  Jakub Jelinek  <jakub@redhat.com>
4260
4261         PR debug/50215
4262         * var-tracking.c (create_entry_value): Call cselib_lookup_from_insn
4263         before adding ENTRY_VALUE to val->locs.
4264
4265 2011-08-28  Mikael Pettersson  <mikpe@it.uu.se>
4266
4267         PR bootstrap/50218
4268         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Initialize
4269         comp.
4270
4271 2011-08-27  Bernd Schmidt  <bernds@codesourcery.com>
4272
4273         * doc/rtl.texi (simple_return): Document.
4274         (parallel, PATTERN): Here too.
4275         * doc/md.texi (return): Mention it's allowed to expand to simple_return
4276         in some cases.
4277         (simple_return): Document standard pattern.
4278         * gengenrtl.c (special_rtx): SIMPLE_RETURN is special.
4279         * final.c (final_scan_insn): Use ANY_RETURN_P on body.
4280         * reorg.c (function_return_label, function_simple_return_label):
4281         New static variables, replacing...
4282         (end_of_function_label): ... this.
4283         (simplejump_or_return_p): New static function.
4284         (optimize_skip, steal_delay_list_from_fallthrough,
4285         fill_slots_from_thread): Use it.
4286         (relax_delay_slots): Likewise.  Use ANY_RETURN_P on body.
4287         (rare_destination, follow_jumps): Use ANY_RETURN_P on body.
4288         (find_end_label): Take a new arg which is one of the two return
4289         rtxs.  Depending on which, set either function_return_label or
4290         function_simple_return_label.  All callers changed.
4291         (make_return_insns): Make both kinds.
4292         (dbr_schedule): Adjust for two kinds of end labels.
4293         * function.c (emit_return_into_block): Set JUMP_LABEL properly.
4294         * genemit.c (gen_exp): Handle SIMPLE_RETURN.
4295         (gen_expand, gen_split): Use ANY_RETURN_P.
4296         * df-scan.c (df_uses_record): Handle SIMPLE_RETURN.
4297         * rtl.def (SIMPLE_RETURN): New code.
4298         * ifcvt.c (find_if_case_1): Be more careful about
4299         redirecting jumps to the EXIT_BLOCK.
4300         * jump.c (condjump_p, condjump_in_parallel_p, any_condjump_p,
4301         returnjump_p_1): Handle SIMPLE_RETURNs.
4302         * print-rtl.c (print_rtx): Likewise.
4303         * rtl.c (copy_rtx): Likewise.
4304         * bt-load.c (compute_defs_uses_and_gen): Use ANY_RETURN_P.
4305         * combine.c (simplify_set): Likewise.
4306         * resource.c (find_dead_or_set_registers, mark_set_resources):
4307         Likewise.
4308         * emit-rtl.c (verify_rtx_sharing, classify_insn, copy_insn_1,
4309         copy_rtx_if_shared_1, mark_used_flags): Handle SIMPLE_RETURNs.
4310         (init_emit_regs): Initialize simple_return_rtx.
4311         * cfglayout.c (fixup_reorder_chain): Pass a JUMP_LABEL to
4312         force_nonfallthru_and_redirect.
4313         * rtl.h (ANY_RETURN_P): Allow SIMPLE_RETURN.
4314         (GR_SIMPLE_RETURN): New enum value.
4315         (simple_return_rtx): New macro.
4316         * basic-block.h (force_nonfallthru_and_redirect): Adjust
4317         declaration.
4318         * cfgrtl.c (force_nonfallthru_and_redirect): Take a new jump_label
4319         argument.  All callers changed.  Be careful about what kinds of
4320         returnjumps to generate.
4321         * config/i386/3i86.c (ix86_pad_returns, ix86_count_insn_bb,
4322         ix86_pad_short_function): Likewise.
4323         * config/arm/arm.c (arm_final_prescan_insn): Handle both kinds
4324         of return.
4325         * config/mips/mips.md (any_return): New code_iterator.
4326         (optab): Add cases for return and simple_return.
4327         (return): Expand to a simple_return.
4328         (simple_return): New pattern.
4329         (*<optab>, *<optab>_internal for any_return): New patterns.
4330         (return_internal): Remove.
4331         * config/mips/mips.c (mips_expand_epilogue): Make the last insn
4332         a simple_return_internal.
4333
4334 2011-08-27  Uros Bizjak  <ubizjak@gmail.com>
4335
4336         * config/i386/sse.md (*absneg<mode>2): Fix split condition.
4337         (vec_extract_lo_<mode>): Prevent both operands in memory.
4338         (vec_extract_lo_v16hi): Ditto.
4339         (*vec_extract_v4sf_mem): Add TARGET_SSE insn constraint.
4340
4341 2011-08-27  Uros Bizjak  <ubizjak@gmail.com>
4342
4343         * config/i386/sse.md (mulv16qi3): Attach REG_EQUAL note.
4344         (*sse2_mulv4si3): Ditto.
4345         (mulv2di3): Ditto.
4346         * config/i386/i386.c (legitimize_tls_address): Change REG_EQIV
4347         notes to REG_EQUAL.
4348
4349 2011-08-27  Uros Bizjak  <ubizjak@gmail.com>
4350
4351         PR target/50202
4352         * config/i386/sse.md (sse4_2_pcmpestr): Emit NOTE_INSN_DELETED note
4353         when all outputs are unused.
4354         (sse4_2_pcmpistr): Ditto.
4355
4356 2011-08-26  Uros Bizjak  <ubizjak@gmail.com>
4357
4358         * config/i386/i386.md (round<mode>2): New expander.
4359         * config/i386/i386.c (enum ix86_builtins): Add
4360         IX86_BUILTIN_ROUND{PS,PD}_AZ{,256}.
4361         (struct builtin_description): Add __builtin_ia32_round{ps,pd}_az{,256}
4362         descriptions.
4363         (ix86_builtin_vectorized_function): Handle BUILT_IN_ROUND{,F} builtins.
4364         (ix86_build_const_vector): Rewrite using loop with RTVEC_ELT accessor.
4365
4366 2011-08-26  Uros Bizjak  <ubizjak@gmail.com>
4367
4368         PR middle-end/50083
4369         * convert.c (convert_to_integer) <BUIT_IN_ROUND{,F,L}>: Convert
4370         only when TARGET_C99_FUNCTIONS.
4371         <BUILT_IN_NEARBYINT{,F,L}>: Ditto.
4372         <BUILT_IN_RINT{,F,L}>: Ditto.
4373
4374 2011-08-26  Michael Matz  <matz@suse.de>
4375             Jakub Jelinek  <jakub@redhat.com>
4376
4377         PR lto/50165
4378         * lto-streamer-in.c (canon_file_name): Initialize new_slot->len;
4379         don't call strlen twice, use memcpy.
4380
4381 2011-08-26  H.J. Lu  <hongjiu.lu@intel.com>
4382
4383         * config/i386/bmi2intrin.h: Allow in <immintrin.h>.
4384         * config/i386/bmiintrin.h: Likewise.
4385         * config/i386/lzcntintrin.h: Likewise.
4386
4387         * config/i386/immintrin.h: Include <lzcntintrin.h>,
4388         <bmiintrin.h> and <bmi2intrin.h>.
4389
4390 2011-08-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4391
4392         PR target/50166
4393         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Check count in main.
4394         * configure: Regenerate.
4395
4396 2011-08-26  Jakub Jelinek  <jakub@redhat.com>
4397
4398         PR c/50179
4399         * c-typeck.c (c_process_expr_stmt): Skip over nops and
4400         call mark_exp_read even if exprv is ADDR_EXPR.
4401
4402 2011-08-26  Richard Sandiford  <richard.sandiford@linaro.org>
4403
4404         * df-problems.c (df_note_bb_compute): Pass uses rather than defs
4405         to df_set_dead_notes_for_mw.
4406
4407 2011-08-26  Richard Guenther  <rguenther@suse.de>
4408
4409         * varasm.c (decode_addr_const): Handle MEM_REF[&X, OFF].
4410
4411 2011-08-26  Zdenek Dvorak  <ook@ucw.cz>
4412             Tom de Vries  <tom@codesourcery.com>
4413
4414         * tree-ssa-loop-ivopts.c (struct cost_pair): Add comp field.
4415         (struct ivopts_data): Add loop_single_exit_p field.
4416         (niter_for_exit): Change parameter desc_p into return value.  Return
4417         desc if desc->may_be_zero.  Free desc if unused.
4418         (niter_for_single_dom_exit): Change return type.
4419         (find_induction_variables): Handle changed return type of
4420         niter_for_single_dom_exit.  Dump may_be_zero.
4421         (add_candidate_1): Keep original base and step type for IP_ORIGINAL.
4422         (set_use_iv_cost): Add and handle comp parameter.
4423         (determine_use_iv_cost_generic, determine_use_iv_cost_address): Add
4424         comp argument to set_use_iv_cost.
4425         (strip_wrap_conserving_type_conversions, expr_equal_p)
4426         (difference_cannot_overflow_p, iv_elimination_compare_lt): New function.
4427         (may_eliminate_iv): Add comp parameter.  Handle new return type of
4428         niter_for_exit.  Use loop_single_exit_p.  Use iv_elimination_compare_lt.
4429         (determine_use_iv_cost_condition): Add comp argument to set_use_iv_cost
4430         and may_eliminate_iv.
4431         (rewrite_use_compare): Move call to iv_elimination_compare to ...
4432         (may_eliminate_iv): Here.
4433         (tree_ssa_iv_optimize_loop): Initialize loop_single_exit_p.
4434
4435 2011-08-26  Tom de Vries  <tom@codesourcery.com>
4436
4437         * tree-pretty-print (dump_generic_node): Test for NULL_TREE before
4438         accessing TREE_TYPE.
4439
4440 2011-08-26  Jiangning Liu  <jiangning.liu@arm.com>
4441
4442         * config/arm/arm.md (*ior_scc_scc): Enable for Thumb2 as well.
4443         (*ior_scc_scc_cmp): Likewise
4444         (*and_scc_scc): Likewise.
4445         (*and_scc_scc_cmp): Likewise.
4446         (*and_scc_scc_nodom): Likewise.
4447         (*cmp_ite0, *cmp_ite1, *cmp_and, *cmp_ior): Handle Thumb2.
4448
4449 2011-08-26  Jakub Jelinek  <jakub@redhat.com>
4450
4451         * rtlanal.c (nonzero_bits1): Handle CLRSB.
4452
4453 2011-08-26  Richard Guenther  <rguenther@suse.de>
4454
4455         * expr.c (string_constant): Handle &MEM_REF.
4456
4457 2011-08-26  Andrew Stubbs  <ams@codesourcery.com>
4458
4459         * config/arm/arm.c (struct four_ints): New type.
4460         (count_insns_for_constant): Delete function.
4461         (find_best_start): Delete function.
4462         (optimal_immediate_sequence): New function.
4463         (optimal_immediate_sequence_1): New function.
4464         (arm_gen_constant): Move constant splitting code to
4465         optimal_immediate_sequence.
4466         Rewrite constant negation/invertion code.
4467
4468 2011-08-26  Andrew Stubbs  <ams@codesourcery.com>
4469
4470         * config/arm/arm-protos.h (const_ok_for_op): Add prototype.
4471         * config/arm/arm.c (const_ok_for_op): Add support for addw/subw.
4472         Remove prototype. Remove static function type.
4473         * config/arm/arm.md (*arm_addsi3): Add addw/subw support.
4474         Add arch attribute.
4475         * config/arm/constraints.md (Pj, PJ): New constraints.
4476
4477 2011-08-26  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4478
4479         * config/arm/cortex-a9.md ("cortex_a9_mult_long"): New.
4480         ("cortex_a9_multiply_long"): New and use above.  Handle all
4481         long multiply cases.
4482         ("cortex_a9_multiply"): Handle smmul and smmulr.
4483         ("cortex_a9_mac"): Handle smmla.
4484
4485 2011-08-25  Richard Henderson  <rth@redhat.com>
4486
4487         PR 50132
4488         PR 49864
4489         * cfgcleanup.c (old_insns_match_p): Don't allow cross-jump for
4490         non-constant stack adjutment.
4491         * expr.c (find_args_size_adjust): Break out from ...
4492         (fixup_args_size_notes): ... here.
4493         * rtl.h (find_args_size_adjust): Declare.
4494
4495 2011-08-25  Uros Bizjak  <ubizjak@gmail.com>
4496
4497         * config/i386/i386.md (isa): Add sse2, sse2_noavx, sse3,
4498         sse4 and sse4_noavx.
4499         (enabled): Handle sse2, sse2_noavx, sse3, sse4 and sse4_noavx.
4500         (*pushdf_rex64): Change Y2 register constraint to x.
4501         (*movdf_internal_rex64): Ditto.
4502         (*zero_extendsidi2_rex64): Ditto.
4503         (*movdi_internal): Change Y2 register constraint to x
4504         and update "isa" attribute.
4505         (*pushdf): Ditto.
4506         (*movdf internal): Ditto.
4507         (zero_extendsidi2_1): Ditto.
4508         (*truncdfdf_mixed): Ditto.
4509         (*truncxfdf2_mixed): Ditto.
4510         * config/i386/mmx.md (*mov<mode>_internal_rex64): Change Y2
4511         register constraint to x.
4512         (*movv2sf_internal_rex64): Ditto.
4513         (*mov<mode>_internal): Change Y2 register constraint to x
4514         and add "isa" attribute.
4515         (*movv2sf_internal): Ditto.
4516         (*vec_extractv2si_1): Ditto.
4517         * config/i386/sse.md ("vec_set<mode>_0): Change Y2 and Y4 register
4518         constraints to x and update "isa" attribute.
4519         (*vec_interleave_highv2df): Change Y3 registerconstraint
4520         to x and update "isa" attribute.
4521         (*vec_interleave_lowv2df): Ditto.
4522         (*vec_concatv2df): Change Y2 register constraint to x and
4523         update "isa" attribute.
4524         (sse2_loadld): Ditto.
4525         (*vec_extractv2di_1): Ditto.
4526         (*vec_dupv4si): Ditto.
4527         (*vec_dupv2di): Ditto.
4528         (*vec_concatv4si): Ditto.
4529         (vec_concatv2di): Ditto.
4530         * config/i386/constraints.md (Y2): Remove.
4531         (Y3): Ditto.
4532         (Y4): Ditto.
4533
4534 2011-08-25  Bernd Schmidt  <bernds@codesourcery.com>
4535
4536         * regrename.c (scan_rtx_reg, scan_rtx_address, build_def_use,
4537         dump_def_use_chain): Don't declare.
4538         (mark_conflict, create_new_chain): Move before users.
4539         (regrename_optimize): Move to near end of file.
4540
4541 2011-08-25  Georg-Johann Lay  <avr@gjlay.de>
4542
4543         * config/avr-protos.h (byte_immediate_operand): Remove Prototype.
4544         (secondary_input_reload_class): Remove Prototype.
4545         * config/avr/avr.c (byte_immediate_operand): Remove Function.
4546         * config/avr/avr.md (setmemhi): Use u8_operand.
4547         (strlenhi): Use const0_rtx for comparison.
4548         * config/avr/avr.h (avr_reg_order): Remove Declaration.
4549
4550 2011-08-25  Georg-Johann Lay  <avr@gjlay.de>
4551
4552         * config/avr/avr.c (reg_class_tab): Make local to
4553         avr_regno_reg_class.  Return smallest register class available.
4554
4555 2011-08-25  Georg-Johann Lay  <avr@gjlay.de>
4556
4557         * config/avr/avr.c (STR_PREFIX_P): New Define.
4558         (avr_asm_declare_function_name): Use it.
4559         (avr_asm_named_section): Use it.
4560         (avr_section_type_flags): Use it.
4561
4562 2011-08-25  Bernd Schmidt  <bernds@codesourcery.com>
4563
4564         * doc/md.texi (automata_option): Document collapse-ndfa.
4565         * genautomata.c (COLLAPSE_OPTION): New macro.
4566         (collapse_flag): New static variable.
4567         (struct description): New member normal_decls_num.
4568         (struct automaton): New members advance_ainsn and collapse_ainsn.
4569         (gen_automata_option): Check for COLLAPSE_OPTION.
4570         (collapse_ndfa_insn_decl): New static variable.
4571         (add_collapse_ndfa_insn_decl, special_decl_p): New functions.
4572         (find_arc): If insn is the collapse-ndfa insn, accept any arc we find.
4573         (transform_insn_regexps): Call add_collapse_ndfa_insn_decl if
4574         necessary.  Use normal_decls_num rather than decls_num, remove
4575         test for special decls.
4576         (create_alt_states, form_ainsn_with_same_reservs): Use special_decl_p.
4577         (make_automaton); Likewise.  Use the new advance_cycle_insn member
4578         of struct automaton.
4579         (create_composed_state): Disallow advance-cycle arcs if collapse_flag
4580         is set.
4581         (NDFA_to_DFA): Don't create composed states for the collapse-ndfa
4582         transition.  Create the necessary transitions for it.
4583         (create_ainsns): Return void.  Take an automaton_t argument, and
4584         update its ainsn_list, advance_ainsn and collapse_ainsn members.  All
4585         callers changed.
4586         (COLLAPSE_NDFA_VALUE_NAME): New macro.
4587         (output_tables): Output code to define it.
4588         (output_internal_insn_code_evaluation): Output code to accept
4589         const0_rtx as collapse-ndfa transition.
4590         (output_default_latencies, output_print_reservation_func,
4591         output_print_description): Reorganize loops to use normal_decls_num
4592         as loop bound; remove special case for advance_cycle_insn_decl.
4593         (initiate_automaton_gen): Handle COLLAPSE_OPTION.
4594         (check_automata_insn_issues): Check for collapse_ainsn.
4595         (expand_automate): Allocate sufficient space.  Initialize
4596         normal_decls_num.
4597
4598 2011-08-25  Georg-Johann Lay  <avr@gjlay.de>
4599
4600         * config/avr/avr.md: Fix indentation from r177991.
4601
4602 2011-08-25  Bernd Schmidt  <bernds@codesourcery.com>
4603
4604         * regrename.c (struct du_head): Remove member terminated.
4605         (create_new_chain): Don't initialize it.
4606         (scan_rtx_reg): Don't set or test it, test the open_chains_set
4607         bitmap instead.
4608         (tick, this_tick): New global variables, moved out of
4609         regrename_optimize.
4610         (current_id, open_chains, closed_chains, open_chains_set,
4611         live_in_chains, live_hard_regs): Reorder declarations.
4612         (dump_def_use_chain): Move function earlier in the file.
4613         (rename_chains): New static function, broken out of
4614         regrename_optimize.
4615         (regrename_optimize): Use it.  Remove #if 0'ed code.
4616
4617 2011-08-25  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
4618
4619         * varasm.c: (default_binds_local_p_1): Commentary typo fix.
4620
4621 2011-08-24  H.J. Lu  <hongjiu.lu@intel.com>
4622
4623         PR target/50172
4624         * config/i386/i386.c (ix86_expand_builtin): Convert to Pmode if needed.
4625
4626 2011-08-24  Richard Guenther  <rguenther@suse.de>
4627
4628         * tree-data-ref.c (dr_analyze_indices): Avoid unsharing the
4629         ref in the basic-block case.  Move stripping array-refs
4630         to the place we create an access-function for it.  Remove
4631         bogus stripping down a MEM_REF to its base.
4632
4633 2011-08-24  Richard Guenther  <rguenther@suse.de>
4634
4635         * fold-const.c (fold_comparison): Fold &a < &a + 4 even
4636         with -fno-strict-overflow.
4637
4638 2011-08-24  Richard Guenther  <rguenther@suse.de>
4639
4640         * tree-vectorizer.c (vect_print_dump_info): Avoid the
4641         file and location clutter when dumping to dump files.
4642
4643 2011-08-24  Simon Baldwin  <simonb@google.com>
4644
4645         * gengtype-state.c (write_state): Remove timestamped header line.
4646
4647 2011-08-24  Joseph Myers  <joseph@codesourcery.com>
4648
4649         * Makefile.in (CFLAGS-collect2.o, CFLAGS-c-family/c-opts.o)
4650         (CFLAGS-c-family/c-pch.o, CFLAGS-prefix.o, CFLAGS-version.o)
4651         (CFLAGS-lto-compress.o, CFLAGS-toplev.o, CFLAGS-intl.o)
4652         (CFLAGS-cppbuiltin.o, CFLAGS-cppdefault.o): New.
4653         (collect2.o, c-family/c-cppbuiltin.o, c-family/c-opts.o)
4654         (c-family/c-pch.o, prefix.o, version.o, lto-compress.o, toplev.o)
4655         (intl.o, cppbuiltin.o, cppdefault.o): Remove explicit compilation
4656         rules.
4657         (lto-wrapper$(exeext)): Use $(LINKER) not $(COMPILER).
4658
4659 2011-08-24  Joseph Myers  <joseph@codesourcery.com>
4660
4661         * Makefile.in (ALL_CXXFLAGS): Include $(CFLAGS-$@).
4662
4663 2011-08-24  Richard Guenther  <rguenther@suse.de>
4664
4665         PR tree-optimization/50067
4666         * tree-data-ref.c (dr_analyze_indices): Do not add an access
4667         function for a MEM_REF base that has no evolution in the loop
4668         nest or that is not analyzable.
4669
4670 2011-08-23  Vladimir Makarov  <vmakarov@redhat.com>
4671
4672         * ira.c (ira_init_register_move_cost): Check small subclasses
4673         through ira_reg_class_max_nregs and ira_available_class_regs.
4674
4675 2011-08-23  Uros Bizjak  <ubizjak@gmail.com>
4676
4677         * config/i386/constraints.md (Yp): New register constraint.
4678         * config/i386/i386.md (*addhi_1): Merge with *addhi_1_lea using
4679         Yp register constraint.
4680         (*addqi_1): Merge with *addqi_1_lea using Yp register constraint.
4681         (*ashlhi3_1): Merge with *ashlhi3_1_lea using Yp register constraint.
4682         (*ashlqi3_1): Merge with *ashlqi3_1_lea using Yp register constraint.
4683
4684 2011-08-23  Kirill Yukhin  <kirill.yukhin@intel.com>
4685
4686         * config/i386/sse.md (<s>mul<mode>3_highpart): Update.
4687
4688 2011-08-23  Mark Heffernan  <meheff@google.com>
4689
4690         PR middle-end/38509
4691         * common.opt (Wfree-nonheap-object): New option.
4692         * doc/invoke.texi (Warning options): Document -Wfree-nonheap-object.
4693         * builtins.c (maybe_emit_free_warning): Add OPT_Wfree_nonheap_object
4694         to warning.
4695         (expand_builtin): Make warning conditional.
4696
4697 2011-08-23  Uros Bizjak  <ubizjak@gmail.com>
4698
4699         * config/i386/i386.md (type): Add imulx, ishiftx and rotatex.
4700         (length_immediate): Handle imulx, ishiftx and rotatex.
4701         (imm_disp): Ditto.
4702         (isa): Add bmi2.
4703         (enabled): Handle bmi2.
4704         (*mul<mode><dwi>3): Split from *<u>mul<mode><dwi>3.
4705         (*umul<mode><dwi>3): Ditto.  Add imulx BMI2 alternative.
4706         (*bmi2_umulditi3_1): New insn pattern.
4707         (*bmi2_umulsidi3_1): Ditto.
4708         (*umul<mode><dwi>3 splitter): New splitter to avoid flags dependency.
4709         (*bmi2_ashl<mode>3_1): New insn pattern.
4710         (*ashl<mode>3_1): Add ishiftx BMI2 alternative.
4711         (*ashl<mode>3_1 splitter): New splitter to avoid flags dependency.
4712         (*bmi2_ashlsi3_1_zext): New insn pattern.
4713         (*ashlsi3_1_zext): Add ishiftx BMI2 alternative.
4714         (*ashlsi3_1_zext splitter): New splitter to avoid flags dependency.
4715         (*bmi2_<shiftrt_insn><mode>3_1): New insn pattern.
4716         (*<shiftrt_insn><mode>3_1): Add ishiftx BMI2 alternative.
4717         (*<shiftrt_insn><mode>3_1 splitter): New splitter to avoid
4718         flags dependency.
4719         (*bmi2_<shiftrt_insn>si3_1_zext): New insn pattern.
4720         (*<shiftrt_insn>si3_1_zext): Add ishiftx BMI2 alternative.
4721         (*<shiftrt_insn>si3_1_zext splitter): New splitter to avoid
4722         flags dependency.
4723         (*bmi2_rorx<mode>3_1): New insn pattern.
4724         (*<rotate_insn><mode>3_1): Add rotatex BMI2 alternative.
4725         (*rotate<mode>3_1 splitter): New splitter to avoid flags dependency.
4726         (*rotatert<mode>3_1 splitter): Ditto.
4727         (*bmi2_rorxsi3_1_zext): New insn pattern.
4728         (*<rotate_insn>si3_1_zext): Add rotatex BMI2 alternative.
4729         (*rotatesi3_1_zext splitter): New splitter to avoid flags dependency.
4730         (*rotatertsi3_1_zext splitter): Ditto.
4731
4732 2011-08-23  Kirill Yukhin  <kirill.yukhin@intel.com>
4733
4734         * common/config/i386/i386-common.c (OPTION_MASK_ISA_BMI2_SET): New.
4735         (OPTION_MASK_ISA_BMI2_UNSET): Likewise.
4736         (ix86_handle_option): Handle OPT_mbmi2 case.
4737         * config.gcc (i[34567]86-*-*): Add bmi2intrin.h.
4738         (x86_64-*-*): Likewise.
4739         * config/i386/bmi2intrin.h: New file.
4740         * config/i386/cpuid.h (bit_BMI2): New.
4741         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
4742         BMI2 feature.
4743         * config/i386/i386-c.c (ix86_target_macros_internal):
4744         Conditionally define __BMI2__.
4745         * config/i386/i386.c (ix86_option_override_internal): Define PTA_BMI2.
4746         Handle BMI2 option.
4747         (ix86_valid_target_attribute_inner_p): Handle BMI2 option.
4748         (print_reg): New code.
4749         (ix86_print_operand): Likewise.
4750         (ix86_builtins): Add IX86_BUILTIN_BZHI32, IX86_BUILTIN_BZHI64,
4751         IX86_BUILTIN_PDEP32, IX86_BUILTIN_PDEP64, IX86_BUILTIN_PEXT32,
4752         IX86_BUILTIN_PEXT64.
4753         (bdesc_args): Add IX86_BUILTIN_BZHI32, IX86_BUILTIN_BZHI64,
4754         IX86_BUILTIN_PDEP32, IX86_BUILTIN_PDEP64, IX86_BUILTIN_PEXT32,
4755         IX86_BUILTIN_PEXT64.
4756         * config/i386/i386.h (TARGET_BMI2): New.
4757         * config/i386/i386.md (UNSPEC_PDEP): New.
4758         (UNSPEC_PEXT): Likewise.
4759         (*bmi2_bzhi_<mode>3): Likewise.
4760         (*bmi2_pdep_<mode>3): Likewise.
4761         (*bmi2_pext_<mode>3): Likewise.
4762         * config/i386/i386.opt (mbmi2): New.
4763         * config/i386/x86intrin.h: Include bmi2intrin.h when __BMI2__
4764         is defined.
4765         * doc/extend.texi: Document BMI2 built-in functions.
4766         * doc/invoke.texi: Document -mbmi2.
4767
4768 2011-08-23  Jakub Jelinek  <jakub@redhat.com>
4769
4770         PR middle-end/50161
4771         * simplify-rtx.c (simplify_const_unary_operation): If
4772         op is CONST_INT, don't look at op_mode, but use instead mode.
4773         * optabs.c (add_equal_note): For FFS, CLZ, CTZ,
4774         CLRSB, POPCOUNT, PARITY and BSWAP use operand mode for
4775         operation and TRUNCATE/ZERO_EXTEND if needed.
4776         * doc/rtl.texi (ffs, clrsb, clz, ctz, popcount, parity, bswap):
4777         Document that operand mode must be same as operation mode,
4778         or VOIDmode.
4779         * config/avr/avr.md (paritysi2, *parityqihi2.libgcc,
4780         *paritysihi2.libgcc, popcountsi2, *popcountsi2.libgcc,
4781         *popcountqihi2.libgcc, clzsi2, *clzsihi2.libgcc, ctzsi2,
4782         *ctzsihi2.libgcc, ffssi2, *ffssihi2.libgcc): For unary ops
4783         use the mode of operand for the operation and add truncate
4784         or zero_extend around if needed.
4785         * config/c6x/c6x.md (ctzdi2): Likewise.
4786         * config/bfin/bfin.md (clrsbsi2, signbitssi2): Likewise.
4787
4788 2011-08-12  Michael Matz  <matz@suse.de>
4789
4790         * cfgexpand.c (expand_one_register_var): Use get_pointer_alignment.
4791         (gimple_expand_cfg): Merge alignment info for coalesced pointer
4792         SSA names.
4793
4794 2011-08-23  Richard Guenther  <rguenther@suse.de>
4795
4796         * Makefile.in (tree-data-ref.o): Add tree-affine.h dependency.
4797         * tree-affine.h (aff_comb_cannot_overlap_p): Declare.
4798         * tree-affine.c (aff_comb_cannot_overlap_p): New function, moved
4799         from ...
4800         * tree-ssa-loop-im.c (cannot_overlap_p): ... here.
4801         (mem_refs_may_alias_p): Adjust.
4802         * tree-data-ref.h (dr_may_alias_p): Adjust.
4803         * tree-data-ref.c: Include tree-affine.h.
4804         (dr_analyze_indices): Do nothing for the non-loop case.
4805         (dr_may_alias_p): Distinguish loop and non-loop case.  Disambiguate
4806         more cases in the non-loop case.
4807         * graphite-sese-to-poly.c (write_alias_graph_to_ascii_dimacs): Adjust
4808         calls to dr_may_alias_p.
4809         (write_alias_graph_to_ascii_ecc): Likewise.
4810         (write_alias_graph_to_ascii_dot): Likewise.
4811         (build_alias_set_optimal_p): Likewise.
4812
4813 2011-08-23  Richard Guenther  <rguenther@suse.de>
4814
4815         PR tree-optimization/50162
4816         * tree-vect-stmts.c (vectorizable_call): Fix argument lookup.
4817
4818 2011-08-23  Richard Guenther  <rguenther@suse.de>
4819
4820         * tree-data-ref.c (dr_analyze_indices): Add comments, handle
4821         REALPART_EXPR and IMAGPART_EXPR similar to ARRAY_REFs.
4822         (create_data_ref): Also dump access functions for the created data-ref.
4823
4824 2011-08-22  Uros Bizjak  <ubizjak@gmail.com>
4825             Kirill Yukhin  <kirill.yukhin@intel.com>
4826
4827         PR target/50155
4828         * config/i386/sse.md (VI_AVX2): New.
4829         (<plusminus_insn><mode>3): Use VI_AVX2 mode iterator.
4830         (*<plusminus_insn><mode>3): Ditto.
4831         (<sse2_avx2>_andnot<mode>3): Ditto.
4832         (*andnot<mode>3): Fix order of cond operands.
4833         Add asserts for correct TARGET_xxx.
4834         (*<any_logic:code><mode>3): Ditto.
4835
4836 2011-08-22  Anatoly Sokolov  <aesok@post.ru>
4837
4838         * config/m32c/m32c.h (CLASS_MAX_NREGS): Remove macro.
4839         * config/m32c/m32c-protos.h (m32c_class_max_nregs): Remove.
4840         * config/m32c/m32c.c (m32c_class_max_nregs): Make static. Change
4841         regclass argument type to reg_class_t. Change 'max' and 'v' vars
4842         and return types to unsigned char. Use reg_class_contents instead
4843         of class_contents.
4844         (TARGET_CLASS_MAX_NREGS): Define.
4845
4846 2011-08-22  Bernd Schmidt  <bernds@codesourcery.com>
4847
4848         * config/c6x/c6x.md (indirect_jump_shadow): Tweak representation
4849         to make computed_jump_p return true.
4850
4851 2011-08-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4852
4853         * configure.ac (GCC_PICFLAG_FOR_TARGET): Call it.
4854         (PICFLAG_FOR_TARGET): Substitute.
4855         * aclocal.m4: Regenerate.
4856         * configure: Regenerate.
4857
4858 2011-08-22  Dodji Seketeli  <dodji@redhat.com>
4859
4860         * c-family/c-pch.c (c_common_read_pch): Re-set line table right
4861         after reading in the pch.
4862
4863 2011-08-22  H.J. Lu  <hongjiu.lu@intel.com>
4864
4865         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Error if __ELF__ isn't defined.
4866         * configure: Regenerated.
4867
4868 2011-08-22  Jakub Jelinek  <jakub@redhat.com>
4869
4870         PR tree-optimization/50133
4871         * tree-vect-stmts.c (vect_finish_stmt_generation): Copy location
4872         from stmt instead of some statement around gsi.
4873
4874         PR middle-end/50141
4875         * expr.c (get_bit_range): Only use DECL_THREAD_LOCAL_P if
4876         innerdecl is a VAR_DECL.
4877
4878 2011-08-22  Kirill Yukhin  <kirill.yukhin@intel.com>
4879
4880         * config/i386/avx2intrin.h: New file.
4881         * config/i386/i386-builtin-types.def (PCINT, PCINT64, PV4SI,
4882         PV8SI, V32QI_FTYPE_V32QI, V32QI_FTYPE_V16QI, V16HI_FTYPE_V16HI,
4883         V16HI_FTYPE_V8HI, V8SI_FTYPE_V8SI, V16HI_FTYPE_V16QI,
4884         V8SI_FTYPE_V16QI, V4DI_FTYPE_V16QI, V8SI_FTYPE_V8HI,
4885         V4DI_FTYPE_V8HI, V4DI_FTYPE_V4SI, V4DI_FTYPE_PV4DI,
4886         V4DI_FTYPE_V2DI, V2DI_FTYPE_PCV2DI_V2DI, V4SI_FTYPE_PCV4SI_V4SI,
4887         V32QI_FTYPE_V16HI_V16HI, V16HI_FTYPE_V8SI_V8SI,
4888         V32QI_FTYPE_V32QI_V32QI, V16HI_FTYPE_V32QI_V32QI,
4889         V16HI_FTYPE_V16HI_V8HI, V16HI_FTYPE_V16HI_V16HI,
4890         V16HI_FTYPE_V16HI_INT, V16HI_FTYPE_V16HI_SI,
4891         V16HI_FTYPE_V16HI_V16HI_INT, V32QI_FTYPE_V32QI_V32QI_INT,
4892         V8SI_FTYPE_V8SI_V4SI, V8SI_FTYPE_V8SI_V8SI,
4893         V8SI_FTYPE_V16HI_V16HI, V8SI_FTYPE_V8SI_INT, V8SI_FTYPE_V8SI_SI,
4894         V8SI_FTYPE_PCV8SI_V8SI, V4DI_FTYPE_V4DI_V4DI,
4895         V4DI_FTYPE_V8SI_V8SI, V4DI_FTYPE_V4DI_V2DI,
4896         V4DI_FTYPE_PCV4DI_V4DI, V4DI_FTYPE_V4DI_INT,
4897         V2DI_FTYPE_V4DI_INT, V4DI_FTYPE_V4DI_V4DI_INT,
4898         V4DI_FTYPE_V4DI_V2DI_INT, VOID_FTYPE_PV2DI_V2DI_V2DI,
4899         VOID_FTYPE_PV4DI_V4DI_V4DI, VOID_FTYPE_PV4SI_V4SI_V4SI,
4900         VOID_FTYPE_PV8SI_V8SI_V8SI,
4901         V2DF_FTYPE_V2DF_PCDOUBLE_V4SI_V2DF_INT,
4902         V4DF_FTYPE_V4DF_PCDOUBLE_V4SI_V4DF_INT,
4903         V2DF_FTYPE_V2DF_PCDOUBLE_V2DI_V2DF_INT,
4904         V4DF_FTYPE_V4DF_PCDOUBLE_V4DI_V4DF_INT,
4905         V4SF_FTYPE_V4SF_PCFLOAT_V4SI_V4SF_INT,
4906         V8SF_FTYPE_V8SF_PCFLOAT_V8SI_V8SF_INT,
4907         V4SF_FTYPE_V4SF_PCFLOAT_V2DI_V4SF_INT,
4908         V4SF_FTYPE_V4SF_PCFLOAT_V4DI_V4SF_INT,
4909         V2DI_FTYPE_V2DI_PCINT64_V4SI_V2DI_INT,
4910         V4DI_FTYPE_V4DI_PCINT64_V4SI_V4DI_INT,
4911         V2DI_FTYPE_V2DI_PCINT64_V2DI_V2DI_INT,
4912         V4DI_FTYPE_V4DI_PCINT64_V4DI_V4DI_INT,
4913         V4SI_FTYPE_V4SI_PCINT_V4SI_V4SI_INT,
4914         V8SI_FTYPE_V8SI_PCINT_V8SI_V8SI_INT,
4915         V4SI_FTYPE_V4SI_PCINT_V2DI_V4SI_INT,
4916         V4SI_FTYPE_V4SI_PCINT_V4DI_V4SI_INT,
4917         V16HI_FTYPE_V16HI_SI_COUNT, V16HI_FTYPE_V16HI_V8HI_COUNT,
4918         V8SI_FTYPE_V8SI_SI_COUNT, V8SI_FTYPE_V8SI_V4SI_COUNT,
4919         V4DI_FTYPE_V4DI_INT_COUNT, V4DI_FTYPE_V4DI_V2DI_COUNT,
4920         V4DI_FTYPE_V4DI_INT_CONVERT,
4921         V4DI_FTYPE_V4DI_V4DI_INT_CONVERT): New.
4922         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MPSADBW256,
4923         IX86_BUILTIN_PABSB256, IX86_BUILTIN_PABSW256,
4924         IX86_BUILTIN_PABSD256, IX86_BUILTIN_PACKSSDW256,
4925         IX86_BUILTIN_PACKSSWB256, IX86_BUILTIN_PACKUSDW256,
4926         IX86_BUILTIN_PACKUSWB256, IX86_BUILTIN_PADDB256,
4927         IX86_BUILTIN_PADDW256, IX86_BUILTIN_PADDD256,
4928         IX86_BUILTIN_PADDQ256, IX86_BUILTIN_PADDSB256,
4929         IX86_BUILTIN_PADDSW256, IX86_BUILTIN_PADDUSB256,
4930         IX86_BUILTIN_PADDUSW256, IX86_BUILTIN_PALIGNR256,
4931         IX86_BUILTIN_AND256I, IX86_BUILTIN_ANDNOT256I,
4932         IX86_BUILTIN_PAVGB256, IX86_BUILTIN_PAVGW256,
4933         IX86_BUILTIN_PBLENDVB256, IX86_BUILTIN_PBLENDVW256,
4934         IX86_BUILTIN_PCMPEQB256, IX86_BUILTIN_PCMPEQW256,
4935         IX86_BUILTIN_PCMPEQD256, IX86_BUILTIN_PCMPEQQ256,
4936         IX86_BUILTIN_PCMPGTB256, IX86_BUILTIN_PCMPGTW256,
4937         IX86_BUILTIN_PCMPGTD256, IX86_BUILTIN_PCMPGTQ256,
4938         IX86_BUILTIN_PHADDW256, IX86_BUILTIN_PHADDD256,
4939         IX86_BUILTIN_PHADDSW256, IX86_BUILTIN_PHSUBW256,
4940         IX86_BUILTIN_PHSUBD256, IX86_BUILTIN_PHSUBSW256,
4941         IX86_BUILTIN_PMADDUBSW256, IX86_BUILTIN_PMADDWD256,
4942         IX86_BUILTIN_PMAXSB256, IX86_BUILTIN_PMAXSW256,
4943         IX86_BUILTIN_PMAXSD256, IX86_BUILTIN_PMAXUB256,
4944         IX86_BUILTIN_PMAXUW256, IX86_BUILTIN_PMAXUD256,
4945         IX86_BUILTIN_PMINSB256, IX86_BUILTIN_PMINSW256,
4946         IX86_BUILTIN_PMINSD256, IX86_BUILTIN_PMINUB256,
4947         IX86_BUILTIN_PMINUW256, IX86_BUILTIN_PMINUD256,
4948         IX86_BUILTIN_PMOVMSKB256, IX86_BUILTIN_PMOVSXBW256,
4949         IX86_BUILTIN_PMOVSXBD256, IX86_BUILTIN_PMOVSXBQ256,
4950         IX86_BUILTIN_PMOVSXWD256, IX86_BUILTIN_PMOVSXWQ256,
4951         IX86_BUILTIN_PMOVSXDQ256, IX86_BUILTIN_PMOVZXBW256,
4952         IX86_BUILTIN_PMOVZXBD256, IX86_BUILTIN_PMOVZXBQ256,
4953         IX86_BUILTIN_PMOVZXWD256, IX86_BUILTIN_PMOVZXWQ256,
4954         IX86_BUILTIN_PMOVZXDQ256, IX86_BUILTIN_PMULDQ256,
4955         IX86_BUILTIN_PMULHRSW256, IX86_BUILTIN_PMULHUW256,
4956         IX86_BUILTIN_PMULHW256, IX86_BUILTIN_PMULLW256,
4957         IX86_BUILTIN_PMULLD256, IX86_BUILTIN_PMULUDQ256,
4958         IX86_BUILTIN_POR256, IX86_BUILTIN_PSADBW256,
4959         IX86_BUILTIN_PSHUFB256, IX86_BUILTIN_PSHUFD256,
4960         IX86_BUILTIN_PSHUFHW256, IX86_BUILTIN_PSHUFLW256,
4961         IX86_BUILTIN_PSIGNB256, IX86_BUILTIN_PSIGNW256,
4962         IX86_BUILTIN_PSIGND256, IX86_BUILTIN_PSLLDQI256,
4963         IX86_BUILTIN_PSLLWI256, IX86_BUILTIN_PSLLW256,
4964         IX86_BUILTIN_PSLLDI256, IX86_BUILTIN_PSLLD256,
4965         IX86_BUILTIN_PSLLQI256, IX86_BUILTIN_PSLLQ256,
4966         IX86_BUILTIN_PSRAWI256, IX86_BUILTIN_PSRAW256,
4967         IX86_BUILTIN_PSRADI256, IX86_BUILTIN_PSRAD256,
4968         IX86_BUILTIN_PSRLDQI256, IX86_BUILTIN_PSRLWI256,
4969         IX86_BUILTIN_PSRLW256, IX86_BUILTIN_PSRLDI256,
4970         IX86_BUILTIN_PSRLD256, IX86_BUILTIN_PSRLQI256,
4971         IX86_BUILTIN_PSRLQ256, IX86_BUILTIN_PSUBB256,
4972         IX86_BUILTIN_PSUBW256, IX86_BUILTIN_PSUBD256,
4973         IX86_BUILTIN_PSUBQ256, IX86_BUILTIN_PSUBSB256,
4974         IX86_BUILTIN_PSUBSW256, IX86_BUILTIN_PSUBUSB256,
4975         IX86_BUILTIN_PSUBUSW256, IX86_BUILTIN_PUNPCKHBW256,
4976         IX86_BUILTIN_PUNPCKHWD256, IX86_BUILTIN_PUNPCKHDQ256,
4977         IX86_BUILTIN_PUNPCKHQDQ256, IX86_BUILTIN_PUNPCKLBW256,
4978         IX86_BUILTIN_PUNPCKLWD256, IX86_BUILTIN_PUNPCKLDQ256,
4979         IX86_BUILTIN_PUNPCKLQDQ256, IX86_BUILTIN_PXOR256,
4980         IX86_BUILTIN_MOVNTDQA256, IX86_BUILTIN_VBROADCASTSS_PS,
4981         IX86_BUILTIN_VBROADCASTSS_PS256,
4982         IX86_BUILTIN_VBROADCASTSD_PD256,
4983         IX86_BUILTIN_VBROADCASTSI256, IX86_BUILTIN_PBLENDD256,
4984         IX86_BUILTIN_PBLENDD128, IX86_BUILTIN_PBROADCASTB256,
4985         IX86_BUILTIN_PBROADCASTW256, IX86_BUILTIN_PBROADCASTD256,
4986         IX86_BUILTIN_PBROADCASTQ256, IX86_BUILTIN_PBROADCASTB128,
4987         IX86_BUILTIN_PBROADCASTW128, IX86_BUILTIN_PBROADCASTD128,
4988         IX86_BUILTIN_PBROADCASTQ128, IX86_BUILTIN_VPERMVARSI256,
4989         IX86_BUILTIN_VPERMDF256, IX86_BUILTIN_VPERMVARSF256,
4990         IX86_BUILTIN_VPERMDI256, IX86_BUILTIN_VPERMTI256,
4991         IX86_BUILTIN_VEXTRACT128I256, IX86_BUILTIN_VINSERT128I256,
4992         IX86_BUILTIN_MASKLOADD, IX86_BUILTIN_MASKLOADQ,
4993         IX86_BUILTIN_MASKLOADD256, IX86_BUILTIN_MASKLOADQ256,
4994         IX86_BUILTIN_MASKSTORED, IX86_BUILTIN_MASKSTOREQ,
4995         IX86_BUILTIN_MASKSTORED256, IX86_BUILTIN_MASKSTOREQ256,
4996         IX86_BUILTIN_PSLLVV4DI, IX86_BUILTIN_PSLLVV2DI,
4997         IX86_BUILTIN_PSLLVV8SI, IX86_BUILTIN_PSLLVV4SI,
4998         IX86_BUILTIN_PSRAVV8SI, IX86_BUILTIN_PSRAVV4SI,
4999         IX86_BUILTIN_PSRLVV4DI, IX86_BUILTIN_PSRLVV2DI,
5000         IX86_BUILTIN_PSRLVV8SI, IX86_BUILTIN_PSRLVV4SI,
5001         IX86_BUILTIN_GATHERSIV2DF, IX86_BUILTIN_GATHERSIV4DF,
5002         IX86_BUILTIN_GATHERDIV2DF, IX86_BUILTIN_GATHERDIV4DF,
5003         IX86_BUILTIN_GATHERSIV4SF, IX86_BUILTIN_GATHERSIV8SF,
5004         IX86_BUILTIN_GATHERDIV4SF, IX86_BUILTIN_GATHERDIV8SF,
5005         IX86_BUILTIN_GATHERSIV2DI, IX86_BUILTIN_GATHERSIV4DI,
5006         IX86_BUILTIN_GATHERDIV2DI, IX86_BUILTIN_GATHERDIV4DI,
5007         IX86_BUILTIN_GATHERSIV4SI, IX86_BUILTIN_GATHERSIV8SI,
5008         IX86_BUILTIN_GATHERDIV4SI, IX86_BUILTIN_GATHERDIV8SI.
5009         (bdesc_special_args): Add IX86_BUILTIN_MOVNTDQA256,
5010         IX86_BUILTIN_MASKLOADD, IX86_BUILTIN_MASKLOADQ,
5011         IX86_BUILTIN_MASKLOADD256, IX86_BUILTIN_MASKLOADQ256,
5012         IX86_BUILTIN_MASKSTORED, IX86_BUILTIN_MASKSTOREQ,
5013         IX86_BUILTIN_MASKSTORED256, IX86_BUILTIN_MASKSTOREQ256.
5014         (bdesc_args): Add  IX86_BUILTIN_MPSADBW256,
5015         IX86_BUILTIN_PABSB256, IX86_BUILTIN_PABSW256,
5016         IX86_BUILTIN_PABSD256, IX86_BUILTIN_PACKSSDW256,
5017         IX86_BUILTIN_PACKSSWB256, IX86_BUILTIN_PACKUSDW256,
5018         IX86_BUILTIN_PACKUSWB256, IX86_BUILTIN_PADDB256,
5019         IX86_BUILTIN_PADDW256, IX86_BUILTIN_PADDD256,
5020         IX86_BUILTIN_PADDQ256, IX86_BUILTIN_PADDSB256,
5021         IX86_BUILTIN_PADDSW256, IX86_BUILTIN_PADDUSB256,
5022         IX86_BUILTIN_PADDUSW256, IX86_BUILTIN_PALIGNR256,
5023         IX86_BUILTIN_AND256I, IX86_BUILTIN_ANDNOT256I,
5024         IX86_BUILTIN_PAVGB256, IX86_BUILTIN_PAVGW256,
5025         IX86_BUILTIN_PBLENDVB256, IX86_BUILTIN_PBLENDVW256,
5026         IX86_BUILTIN_PCMPEQB256, IX86_BUILTIN_PCMPEQW256,
5027         IX86_BUILTIN_PCMPEQD256, IX86_BUILTIN_PCMPEQQ256,
5028         IX86_BUILTIN_PCMPGTB256, IX86_BUILTIN_PCMPGTW256,
5029         IX86_BUILTIN_PCMPGTD256, IX86_BUILTIN_PCMPGTQ256,
5030         IX86_BUILTIN_PHADDW256, IX86_BUILTIN_PHADDD256,
5031         IX86_BUILTIN_PHADDSW256, IX86_BUILTIN_PHSUBW256,
5032         IX86_BUILTIN_PHSUBD256, IX86_BUILTIN_PHSUBSW256,
5033         IX86_BUILTIN_PMADDUBSW256, IX86_BUILTIN_PMADDWD256,
5034         IX86_BUILTIN_PMAXSB256, IX86_BUILTIN_PMAXSW256,
5035         IX86_BUILTIN_PMAXSD256, IX86_BUILTIN_PMAXUB256,
5036         IX86_BUILTIN_PMAXUW256, IX86_BUILTIN_PMAXUD256,
5037         IX86_BUILTIN_PMINSB256, IX86_BUILTIN_PMINSW256,
5038         IX86_BUILTIN_PMINSD256, IX86_BUILTIN_PMINUB256,
5039         IX86_BUILTIN_PMINUW256, IX86_BUILTIN_PMINUD256,
5040         IX86_BUILTIN_PMOVMSKB256, IX86_BUILTIN_PMOVSXBW256,
5041         IX86_BUILTIN_PMOVSXBD256, IX86_BUILTIN_PMOVSXBQ256,
5042         IX86_BUILTIN_PMOVSXWD256, IX86_BUILTIN_PMOVSXWQ256,
5043         IX86_BUILTIN_PMOVSXDQ256, IX86_BUILTIN_PMOVZXBW256,
5044         IX86_BUILTIN_PMOVZXBD256, IX86_BUILTIN_PMOVZXBQ256,
5045         IX86_BUILTIN_PMOVZXWD256, IX86_BUILTIN_PMOVZXWQ256,
5046         IX86_BUILTIN_PMOVZXDQ256, IX86_BUILTIN_PMULDQ256,
5047         IX86_BUILTIN_PMULHRSW256, IX86_BUILTIN_PMULHUW256,
5048         IX86_BUILTIN_PMULHW256, IX86_BUILTIN_PMULLW256,
5049         IX86_BUILTIN_PMULLD256, IX86_BUILTIN_PMULUDQ256,
5050         IX86_BUILTIN_POR256, IX86_BUILTIN_PSADBW256,
5051         IX86_BUILTIN_PSHUFB256, IX86_BUILTIN_PSHUFD256,
5052         IX86_BUILTIN_PSHUFHW256, IX86_BUILTIN_PSHUFLW256,
5053         IX86_BUILTIN_PSIGNB256, IX86_BUILTIN_PSIGNW256,
5054         IX86_BUILTIN_PSIGND256, IX86_BUILTIN_PSLLDQI256,
5055         IX86_BUILTIN_PSLLWI256, IX86_BUILTIN_PSLLW256,
5056         IX86_BUILTIN_PSLLDI256, IX86_BUILTIN_PSLLD256,
5057         IX86_BUILTIN_PSLLQI256, IX86_BUILTIN_PSLLQ256,
5058         IX86_BUILTIN_PSRAWI256, IX86_BUILTIN_PSRAW256,
5059         IX86_BUILTIN_PSRADI256, IX86_BUILTIN_PSRAD256,
5060         IX86_BUILTIN_PSRLDQI256, IX86_BUILTIN_PSRLWI256,
5061         IX86_BUILTIN_PSRLW256, IX86_BUILTIN_PSRLDI256,
5062         IX86_BUILTIN_PSRLD256, IX86_BUILTIN_PSRLQI256,
5063         IX86_BUILTIN_PSRLQ256, IX86_BUILTIN_PSUBB256,
5064         IX86_BUILTIN_PSUBW256, IX86_BUILTIN_PSUBD256,
5065         IX86_BUILTIN_PSUBQ256, IX86_BUILTIN_PSUBSB256,
5066         IX86_BUILTIN_PSUBSW256, IX86_BUILTIN_PSUBUSB256,
5067         IX86_BUILTIN_PSUBUSW256, IX86_BUILTIN_PUNPCKHBW256,
5068         IX86_BUILTIN_PUNPCKHWD256, IX86_BUILTIN_PUNPCKHDQ256,
5069         IX86_BUILTIN_PUNPCKHQDQ256, IX86_BUILTIN_PUNPCKLBW256,
5070         IX86_BUILTIN_PUNPCKLWD256, IX86_BUILTIN_PUNPCKLDQ256,
5071         IX86_BUILTIN_PUNPCKLQDQ256, IX86_BUILTIN_PXOR256,
5072         IX86_BUILTIN_VBROADCASTSS_PS, IX86_BUILTIN_VBROADCASTSS_PS256,
5073         IX86_BUILTIN_VBROADCASTSD_PD256,
5074         IX86_BUILTIN_VBROADCASTSI256, IX86_BUILTIN_PBLENDD256,
5075         IX86_BUILTIN_PBLENDD128, IX86_BUILTIN_PBROADCASTB256,
5076         IX86_BUILTIN_PBROADCASTW256, IX86_BUILTIN_PBROADCASTD256,
5077         IX86_BUILTIN_PBROADCASTQ256, IX86_BUILTIN_PBROADCASTB128,
5078         IX86_BUILTIN_PBROADCASTW128, IX86_BUILTIN_PBROADCASTD128,
5079         IX86_BUILTIN_PBROADCASTQ128, IX86_BUILTIN_VPERMVARSI256,
5080         IX86_BUILTIN_VPERMDF256, IX86_BUILTIN_VPERMVARSF256,
5081         IX86_BUILTIN_VPERMDI256, IX86_BUILTIN_VPERMTI256,
5082         IX86_BUILTIN_VEXTRACT128I256, IX86_BUILTIN_VINSERT128I256,
5083         IX86_BUILTIN_PSLLVV4DI, IX86_BUILTIN_PSLLVV2DI,
5084         IX86_BUILTIN_PSLLVV8SI, IX86_BUILTIN_PSLLVV4SI,
5085         IX86_BUILTIN_PSRAVV8SI, IX86_BUILTIN_PSRAVV4SI,
5086         IX86_BUILTIN_PSRLVV4DI, IX86_BUILTIN_PSRLVV2DI,
5087         IX86_BUILTIN_PSRLVV8SI, IX86_BUILTIN_PSRLVV4SI.
5088         (ix86_init_mmx_sse_builtins): Add IX86_BUILTIN_GATHERSIV2DF,
5089         IX86_BUILTIN_GATHERSIV4DF, IX86_BUILTIN_GATHERDIV2DF,
5090         IX86_BUILTIN_GATHERDIV4DF, IX86_BUILTIN_GATHERSIV4SF,
5091         IX86_BUILTIN_GATHERSIV8SF, IX86_BUILTIN_GATHERDIV4SF,
5092         IX86_BUILTIN_GATHERDIV8SF, IX86_BUILTIN_GATHERSIV2DI,
5093         IX86_BUILTIN_GATHERSIV4DI, IX86_BUILTIN_GATHERDIV2DI,
5094         IX86_BUILTIN_GATHERDIV4DI, IX86_BUILTIN_GATHERSIV4SI,
5095         IX86_BUILTIN_GATHERSIV8SI, IX86_BUILTIN_GATHERDIV4SI,
5096         IX86_BUILTIN_GATHERDIV8SI.
5097         (ix86_preferred_simd_mode): Support AVX2 modes.
5098         (ix86_expand_args_builtin): Support AVX2 builtins.
5099         (ix86_expand_special_args_builtin): Likewise.
5100         (ix86_expand_builtin): Likewise.
5101         * config/i386/i386.md (UNSPEC_VPERMSI): New.
5102         (UNSPEC_VPERMDF): Likewise.
5103         (UNSPEC_VPERMSF): Likewise.
5104         (UNSPEC_VPERMDI): Likewise.
5105         (UNSPEC_VPERMTI): Likewise.
5106         (UNSPEC_GATHER): Likewise.
5107         (ssemodesuffix): Extend.
5108         * config/i386/immintrin.h: Include avx2intrin.h when __AVX2__
5109         is defined.
5110         * config/i386/predicates.md (const1248_operand): New.
5111         * config/i386/sse.md (VI1_AVX2): New mode iterator.
5112         (VI2_AVX2): Likewise.
5113         (VI4_AVX2): Likewise.
5114         (VI8_AVX2): Likewise.
5115         (VIMAX_AVX2): Likewise.
5116         (SSESCALARMODE): Likewise.
5117         (VI12_AVX2): Likewise.
5118         (VI24_AVX2): Likewise.
5119         (VI124_AVX2): Likewise.
5120         (VI248_AVX2): Likewise.
5121         (VI48_AVX2): Likewise.
5122         (VI4SD_AVX2): Likewise.
5123         (V48_AVX2): Likewise.
5124         (AVX256MODE2P): Likewise.
5125         (AVXMODE48P_DI): Likewise.
5126         (sse2_avx2): New mode attribute.
5127         (ssse3_avx2): Likewise.
5128         (sse4_1_avx2): Likewise.
5129         (avx_avx2): Likewise.
5130         (ssebytemode): Likewise.
5131         (AVXTOSSEMODE): Likewise.
5132         (AVXMODE48P_DI): Likewise.
5133         (gthrfirstp): Likewise.
5134         (gthrlastp): Likewise.
5135         (lshift): New code_iterator
5136         (lshift): New code attribute.
5137         (lshift): Likewise.
5138         (ssescalarmodesuffix): Update.
5139         (sseunpackmode): Likewise.
5140         (ssepackmode): Likewise.
5141         (avx2_vec_dupv4sf): New insn pattern.
5142         (avx2_vec_dupv8sf): Likewise.
5143         (avx2_interleave_highv4di): Likewise.
5144         (avx2_interleave_lowv4di): Likewise.
5145         (avx2_umulv4siv4di3): Likewise
5146         (*avx2_umulv4siv4di3): Likewise
5147         (avx2_pmaddwd): Likewise.
5148         (*avx2_pmaddwd): Likewise.
5149         (avx2_lshrqv4di3): Likewise.
5150         (avx2_lshlqv4di3): Likewise.
5151         (avx2_lshl<mode>3): Likewise.
5152         (avx2_<umaxmin:code><mode>3): Likewise.
5153         (*avx2_<umaxmin:code><mode>3): Likewise.
5154         (avx2_<smaxmin:code><mode>3): Likewise.
5155         (*avx2_<smaxmin:code><mode>3): Likewise.
5156         (avx2_eq<mode>3): Likewise.
5157         (*avx2_eq<mode>3): Likewise.
5158         (avx2_gt<mode>3): Likewise.
5159         (avx2_interleave_highv32qi): New.
5160         (avx2_interleave_lowv32qi): Likewise.
5161         (avx2_interleave_highv16hi): Likewise.
5162         (avx2_interleave_lowv16hi): Likewise.
5163         (avx2_interleave_highv8si): Likewise.
5164         (avx2_interleave_lowv8si): Likewise.
5165         (avx2_pshufd): Likewise.
5166         (avx2_pshufd_1): Likewise.
5167         (avx2_pshuflwv3): Likewise.
5168         (avx2_pshuflw_1): Likewise.
5169         (avx2_pshufhwv3): Likewise.
5170         (avx2_pshufhw_1): Likewise.
5171         (avx2_uavgv32qi3): Likewise.
5172         (*avx2_uavgv32qi3): Likewise.
5173         (avx2_uavgv16hi3): Likewise.
5174         (*avx2_uavgv16hi3): Likewise.
5175         (avx2_pmovmskb): Likewise.
5176         (avx2_phaddwv16hi3): Likewise.
5177         (avx2_phadddv8si3): Likewise.
5178         (avx2_phaddswv16hi3): Likewise.
5179         (avx2_phsubwv16hi3): Likewise.
5180         (avx2_phsubdv8si3): Likewise.
5181         (avx2_phsubswv16hi3): Likewise.
5182         (avx2_pmaddubsw256): Likewise.
5183         (avx2_umulhrswv16hi3): Likewise.
5184         (*avx2_umulhrswv16hi3): Likewise.
5185         (avx2_packusdw): Likewise.
5186         (avx2_pblendd<mode>): Likewise.
5187         (avx2_<code>v16qiv16hi2): Likewise.
5188         (avx2_<code>v8qiv8si2): Likewise.
5189         (avx2_<code>v8hiv8si2): Likewise.
5190         (avx2_<code>v4qiv4di2): Likewise.
5191         (avx2_<code>v4hiv4di2): Likewise.
5192         (avx2_<code>v4siv4di2): Likewise.
5193         (avx2_pbroadcast<mode>): Likewise.
5194         (avx2_permvarv8si): Likewise.
5195         (avx2_permv4df): Likewise.
5196         (avx2_permvarv8sf): Likewise.
5197         (avx2_permv4di): Likewise.
5198         (avx2_permv2ti): Likewise.
5199         (avx2_vec_dupv4df): Likewise.
5200         (avx2_vbroadcasti128_<mode>): Likewise.
5201         (avx2_vec_set_lo_v4di): Likewise.
5202         (avx2_vec_set_hi_v4di): Likewise.
5203         (*avx2_maskmov<avx2modesuffix><avxmodesuffix>): Likewise.
5204         (avx2_extracti128): Likewise.
5205         (avx2_inserti128): Likewise.
5206         (avx2_ashrvv8si): Likewise.
5207         (avx2_ashrvv4si): Likewise.
5208         (avx2_<lshift>vv8si): Likewise.
5209         (avx2_<lshift>v<mode>): Likewise.
5210         (avx2_<lshift>vv2di): Likewise.
5211         (avx2_gathersi<mode>): Likewise.
5212         (*avx2_gathersi<mode>): Likewise.
5213         (avx2_gatherdi<mode>): Likewise.
5214         (*avx2_gatherdi<mode>): Likewise.
5215         (avx2_gatherdi<mode>256): Likewise.
5216         (*avx2_gatherdi<mode>256): Likewise.
5217         (<plusminus_insn><mode>3): Use VI mode iterator.
5218         (*<plusminus_insn><mode>3): Use VI mode iterator.
5219         (<sse2_avx2>_<plusminus_insn><mode>3): Rename from
5220         sse2_<plusminus_insn><mode>3.  Use VI12_AVX2 mode iterator.
5221         (*<sse2_avx2>_<plusminus_insn><mode>3): Rename from
5222         *sse2_<plusminus_insn><mode>3.  Use VI12_AVX2 mode iterator.
5223         (mul<mode>3): Rename from mulv8hi3.  Use VI2_AVX2 mode iterator.
5224         (*mul<mode>3): Rename from *mulv8hi3.  Use VI2_AVX2 mode iterator.
5225         (<s>mul<mode>3_highpart): Rename from <s>mulv8hi3_highpart.
5226         Use VI2_AVX2 mode iterator.
5227         (*<s>mul<mode>3_highpart): Rename from *<s>mulv8hi3_highpart.
5228         Use VI2_AVX2 mode iterator.
5229         (mul<mode>3): Rename from mulv4si3.  Use VI4_AVX2 mode iterator.
5230         (*mul<mode>3): Rename from *mulv4si3.  Use VI4_AVX2 mode iterator.
5231         (*<sse4_1_avx2>_mulv2siv2di3): Rename from *sse4_1_mulv4si3.
5232         Use VI4_AVX2 mode iterator.
5233         (ashr<mode>3): Use VI24_AVX2 mode iterator.
5234         (lshr<mode>3): Use VI248_AVX2 mode iterator.
5235         (<sse2_avx2>_ashl<mode>3): Rename from sse2_ashlv1ti3.
5236         Use VIMAX_AVX2 mode iterator.
5237         (<sse2_avx2>_andnot<mode>3): Rename from sse2_andnot<mode>3.
5238         Use VI mode iterator.
5239         (*andnot<mode>3): Update for AVX2.
5240         (*<any_logic:code><mode>3): Likewise.
5241         (<sse2_avx2>_packsswb): Rename from sse2_packsswb.
5242         Use VI1_AVX mode iterator.
5243         (<sse2_avx2>_packssdw):  Rename from sse2_packssdw.
5244         Use VI2_AVX mode iterator.
5245         (<sse2_avx2>_packuswb): Rename from sse2_packsswb.
5246         Use VI1_AVX mode iterator.
5247         (<sse2_avx2>_psadbw): Rename from sse2_psadbw.
5248         Use VI8_AVX2 mode iterator.
5249         (<ssse3_avx2>_pshufb<mode>3): Rename from ssse3_pshufbv16qi3.
5250         Use VI1_AVX2 mode iterator.
5251         (<ssse3_avx2>_psign<mode>3): Rename from ssse3_psign<mode>3.
5252         Use VI124_AVX2 mode iterator.
5253         (<ssse3_avx2>_palignr<mode>): Rename from ssse3_palignrti.
5254         Use SSESCALARMODE mode iterator.
5255         (abs<mode>2): Use VI124_AVX2 mode iterator.
5256         (<sse4_1_avx2>_movntdqa): Rename from sse4_1_movntdqa.
5257         Use VI8_AVX2 mode iterator.
5258         (<sse4_1_avx2>_mpsadbw): Rename from sse4_1_mpsadbw.
5259         Use VI1_AVX2 mode iterator.
5260         (<sse4_1_avx2>_pblendvb): Rename from sse4_1_pblendvb.
5261         Use VI1_AVX2 mode iterator.
5262         (<sse4_1_avx2>_pblendw): Rename from sse4_1_pblendvb.
5263         Use VI2_AVX2 mode iterator.
5264         (<avx_avx2>_maskload<avx2modesuffix><avxmodesuffix>): Rename from
5265         avx_maskload<ssemodesuffix><avxsizesuffix>. Use V48_AVX2 mode iterator.
5266         (<avx_avx2>_maskstore<avx2modesuffix><avxmodesuffix>): Rename from
5267         avx_maskstore<ssemodesuffix><avxsizesuffix>.
5268         Use V48_AVX2 mode iterator.
5269         * doc/extend.texi: Document AVX2 built-in functions.
5270         * doc/invoke.texi: Document -mavx2.
5271
5272 2011-08-22  Matthias Klose <doko@debian.org>
5273
5274         Revert:
5275         2011-07-11  Arthur Loiret  <aloiret@debian.org>
5276                     Matthias Klose <doko@debian.org>
5277         * config/mips/t-linux64 (MULTILIB_DIRNAMES): Set to 'n32 . 64' if
5278         tm_defines contains MIPS_ABI_DEFAULT ABI_32, to follow the glibc
5279         convention.
5280         * config.gcc (tm_defines): Add MIPS_ABI_DEFAULT=ABI_32.
5281
5282 2011-08-22  Mikael Pettersson  <mikpe@it.uu.se>
5283
5284         PR bootstrap/50146
5285         * ira-color.c (assign_hard_reg): Move saved_nregs declaration
5286         to #ifndef HONOR_REG_ALLOC_ORDER block.
5287
5288 2011-08-21  Richard Henderson  <rth@redhat.com>
5289
5290         * rtl.h (INSN_ANNULLED_BRANCH_P): Only allow JUMP_INSN.
5291         * dwarf2cfi.c (scan_trace): Test JUMP_P before INSN_ANNULLED_BRANCH_P.
5292         * resource.c (next_insn_no_annul): Likewise.
5293         (mark_set_resources): Likewise.
5294         * reorg.c (delete_from_delay_slot): Likewise.
5295         (dbr_schedule, redundant_insn, try_merge_delay_insns): Likewise.
5296         (get_branch_condition): Test pc_rtx and LABEL_REF before dereferencing.
5297
5298 2011-08-21  Uros Bizjak  <ubizjak@gmail.com>
5299
5300         * config/i386/i386.md (any_div): Remove.
5301         (sgnprefix): Update for removal.
5302         (u): Ditto.
5303
5304 2011-08-20  Vladimir Makarov  <vmakarov@redhat.com>
5305
5306         * ira-lives.c (mark_pseudo_regno_subword_live): Use allocno class
5307         for ira_reg_class_max_nregs.  Increase pressure by 1.
5308         (mark_pseudo_regno_subword_dead): Use allocno class
5309         for ira_reg_class_max_nregs.
5310
5311 2011-08-20  Richard Henderson  <rth@redhat.com>
5312
5313         * config/c6x/eqd.c, config/c6x/eqf.c, config/c6x/ged.c,
5314         config/c6x/gef.c, config/c6x/gtd.c, config/c6x/gtf.c,
5315         config/c6x/led.c, config/c6x/lef.c, config/c6x/ltd.c,
5316         config/c6x/ltf.c: Adjust include path for soft-fp.
5317
5318 2011-08-20  H.J. Lu  <hongjiu.lu@intel.com>
5319
5320         PR other/46770
5321         * config.gcc (tm_file): Add initfini-array.h if
5322         .init_arrary/.fini_array are supported.
5323
5324         * crtstuff.c: Don't generate .ctors nor .dtors sections if
5325         USE_INITFINI_ARRAY is defined.
5326
5327         * output.h (default_elf_init_array_asm_out_constructor): New.
5328         (default_elf_fini_array_asm_out_destructor): Likewise.
5329         * varasm.c (elf_init_array_section): Likewise.
5330         (elf_fini_array_section): Likewise.
5331         (get_elf_initfini_array_priority_section): Likewise.
5332         (default_elf_init_array_asm_out_constructor): Likewise.
5333         (default_elf_fini_array_asm_out_destructor): Likewise.
5334
5335         * config/initfini-array.h: New.
5336
5337 2011-08-20  Richard Sandiford  <rdsandiford@googlemail.com>
5338
5339         * config/mips/mips.c (mips_class_max_nregs): Check that the mode is
5340         OK for ST_REGS and FP_REGS before taking those classes into account.
5341
5342 2011-08-20  Richard Sandiford  <rdsandiford@googlemail.com>
5343
5344         * config/mips/mips.c (mips_reorg_process_insns): Check for jumps
5345         before checking for annulled branches.
5346
5347 2011-08-20  Uros Bizjak  <ubizjak@gmail.com>
5348
5349         * config/i386/i386.c (ix86_binary_operator_ok): Use
5350         satisfies_constraint_L.
5351
5352 2011-08-20  Uros Bizjak  <ubizjak@gmail.com>
5353             Michael Matz  <matz@suse.de>
5354
5355         * config/i386/i386.c (ix86_expand_round_sse4): Expand as
5356         trunc (a + copysign (nextafter (0.5, 0.0), a)).
5357
5358 2011-08-20  Anatoly Sokolov  <aesok@post.ru>
5359
5360         * doc/tm.texi.in (PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
5361         * doc/tm.texi: Regenerate.
5362         * targhooks.c (default_preferred_output_reload_class): Don't use
5363         PREFERRED_OUTPUT_RELOAD_CLASS macro.
5364         * system.h (PREFERRED_OUTPUT_RELOAD_CLASS): Poison.
5365
5366 2011-08-20  Jakub Jelinek  <jakub@redhat.com>
5367
5368         PR tree-optimization/48739
5369         * tree-ssa.c: Include cfgloop.h.
5370         (execute_update_addresses_taken): When updating ssa, if in loop closed
5371         SSA form, call rewrite_into_loop_closed_ssa instead of update_ssa.
5372         * Makefile.in (tree-ssa.o): Depend on $(CFGLOOP_H).
5373
5374 2011-08-19  Vladimir Makarov  <vmakarov@redhat.com>
5375
5376         PR rtl-optimization/49936
5377         * ira.c (ira_init_register_move_cost): Ignore too small subclasses
5378         for calculation of max register move costs.
5379
5380 2011-08-19  Joseph Myers  <joseph@codesourcery.com>
5381
5382         * c-parser.c (c_parser_postfix_expression): Convert operands of
5383         __builtin_complex to their semantic types.
5384
5385 2011-08-19  H.J. Lu  <hongjiu.lu@intel.com>
5386
5387         PR middle-end/49721
5388         * explow.c (convert_memory_address_addr_space): Also permute the
5389         conversion and addition of constant for zero-extend.
5390
5391 2011-08-19  Joseph Myers  <joseph@codesourcery.com>
5392
5393         * c-parser.c (c_parser_postfix_expression): Handle RID_BUILTIN_COMPLEX.
5394         * doc/extend.texi (__builtin_complex): Document.
5395
5396 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
5397
5398         * tree-ssa-math-opts.c (is_widening_mult_rhs_p): Handle constants
5399         beyond conversions.
5400         (convert_mult_to_widen): Convert constant inputs to the right type.
5401         (convert_plusminus_to_widen): Don't automatically reject inputs that
5402         are not an SSA_NAME.
5403         Convert constant inputs to the right type.
5404
5405 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
5406
5407         * tree-ssa-math-opts.c (convert_plusminus_to_widen): Convert add_rhs
5408         to the correct type.
5409
5410 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
5411
5412         * tree-ssa-math-opts.c (convert_mult_to_widen): Better handle
5413         unsigned inputs of different modes.
5414         (convert_plusminus_to_widen): Likewise.
5415
5416 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
5417
5418         * tree-ssa-math-opts.c (is_widening_mult_rhs_p): Add new argument
5419         'type'.
5420         Use 'type' from caller, not inferred from 'rhs'.
5421         Don't reject non-conversion statements. Do return lhs in this case.
5422         (is_widening_mult_p): Add new argument 'type'.
5423         Use 'type' from caller, not inferred from 'stmt'.
5424         Pass type to is_widening_mult_rhs_p.
5425         (convert_mult_to_widen): Pass type to is_widening_mult_p.
5426         (convert_plusminus_to_widen): Likewise.
5427
5428 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
5429
5430         * tree-ssa-math-opts.c (is_widening_mult_p): Remove FIXME.
5431         Ensure the the larger type is the first operand.
5432
5433 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
5434
5435         * tree-ssa-math-opts.c (convert_mult_to_widen): Convert
5436         unsupported unsigned multiplies to signed.
5437         (convert_plusminus_to_widen): Likewise.
5438
5439 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
5440
5441         * tree-ssa-math-opts.c (convert_plusminus_to_widen): Permit a single
5442         conversion statement separating multiply-and-accumulate.
5443
5444 2011-08-19  Richard Guenther  <rguenther@suse.de>
5445
5446         PR tree-optimization/50067
5447         * tree-data-ref.c (dr_analyze_indices): Simplify, strip MEM_REF
5448         offset only if we accounted for it.
5449
5450 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
5451
5452         * config/arm/arm.md (maddhidi4): Remove '*' from name.
5453         * expr.c (expand_expr_real_2): Use find_widening_optab_handler.
5454         * optabs.c (find_widening_optab_handler_and_mode): New function.
5455         (expand_widen_pattern_expr): Use find_widening_optab_handler.
5456         (expand_binop_directly): Likewise.
5457         (expand_binop): Likewise.
5458         * optabs.h (find_widening_optab_handler): New macro define.
5459         (find_widening_optab_handler_and_mode): New prototype.
5460         * tree-cfg.c (verify_gimple_assign_binary): Adjust WIDEN_MULT_EXPR
5461         type precision rules.
5462         (verify_gimple_assign_ternary): Likewise for WIDEN_MULT_PLUS_EXPR.
5463         * tree-ssa-math-opts.c (build_and_insert_cast): New function.
5464         (is_widening_mult_rhs_p): Allow widening by more than one mode.
5465         Explicitly disallow mis-matched input types.
5466         (convert_mult_to_widen): Use find_widening_optab_handler, and cast
5467         input types to fit the new handler.
5468         (convert_plusminus_to_widen): Likewise.
5469
5470 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
5471
5472         * expr.c (expand_expr_real_2): Use widening_optab_handler.
5473         * genopinit.c (optabs): Use set_widening_optab_handler for $N.
5474         (gen_insn): $N now means $a must be wider than $b, not consecutive.
5475         * optabs.c (widened_mode): New function.
5476         (expand_widen_pattern_expr): Use widening_optab_handler.
5477         (expand_binop_directly): Likewise.
5478         (expand_binop): Likewise.
5479         * optabs.h (widening_optab_handlers): New struct.
5480         (optab_d): New member, 'widening'.
5481         (widening_optab_handler): New function.
5482         (set_widening_optab_handler): New function.
5483         * tree-ssa-math-opts.c (convert_mult_to_widen): Use
5484         widening_optab_handler.
5485         (convert_plusminus_to_widen): Likewise.
5486
5487 2011-08-19  Joseph Myers  <joseph@codesourcery.com>
5488
5489         * c-decl.c (grokdeclarator): Diagnose _Noreturn for non-C1X if
5490         pedantic.
5491         * c-parser.c (c_parser_declspecs): Include _Noreturn in syntax comment.
5492         * ginclude/stdnoreturn.h (noreturn): Don't define for C++.
5493
5494 2011-08-19  Joseph Myers  <joseph@codesourcery.com>
5495
5496         * opth-gen.awk: Do not declare target save/restore structures and
5497         functions if IN_RTS defined.
5498
5499 2011-08-19  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
5500
5501         PR target/49437
5502         * config/arm/arm.c (arm_output_epilogue): Properly handle epilogue
5503         when stack was realigned in interrupt handler prologue.
5504
5505 2011-08-18  Joseph Myers  <joseph@codesourcery.com>
5506
5507         * c-decl.c (shadow_tag_warned): Check for _Noreturn.
5508         (quals_from_declspecs): Assert _Noreturn not present.
5509         (grokdeclarator): Handle _Noreturn.
5510         (build_null_declspecs): Initialize noreturn_p.
5511         (declspecs_add_scspec): Handle RID_NORETURN.
5512         * c-parser.c (c_token_starts_declspecs, c_parser_declspecs)
5513         (c_parser_attributes): Handle RID_NORETURN.
5514         * c-tree.h (struct c_declspecs): Add noreturn_p.
5515         * ginclude/stdnoreturn.h: New.
5516         * Makefile.in (USER_H): Add stdnoreturn.h.
5517
5518 2011-08-18  Kirill Yukhin  <kirill.yukhin@intel.com>
5519
5520         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX2_SET): New.
5521         (OPTION_MASK_ISA_AVX_UNSET): Update.
5522         (OPTION_MASK_ISA_AVX2_UNSET): New.
5523         (ix86_handle_option): Handle OPT_mavx2 case.
5524         * config/i386/cpuid.h (bit_AVX2): New.
5525         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
5526         AVX2 feature.
5527         * config/i386/i386-c.c (ix86_target_macros_internal):
5528         Conditionally define __AVX2__.
5529         * config/i386/i386.c (ix86_option_override_internal): Define PTA_AVX2.
5530         Define "core-avx2" processor alias.  Handle avx2 option.
5531         (ix86_valid_target_attribute_inner_p): Handle avx2 option.
5532         * config/i386/i386.h (TARGET_AVX2): New.
5533         * config/i386/i386.opt (mavx2): New.
5534         * doc/invoke.texi: Document -mavx2.
5535
5536 2011-08-18  Vladimir Makarov  <vmakarov@redhat.com>
5537
5538         PR rtl-optimization/49890
5539         * ira-costs.c (setup_regno_cost_classes_by_aclass): Don't exclude
5540         subclasses of class which is superset of a pressure class.
5541
5542 2011-08-18  H.J. Lu  <hongjiu.lu@intel.com>
5543             Igor Zamyatin <igor.zamyatin@intel.com>
5544
5545         * config/i386/i386-c.c (ix86_target_macros_internal): Replace int
5546         with HOST_WIDE_INT for isa_flag.
5547         (ix86_pragma_target_parse): Replace int with HOST_WIDE_INT for
5548         isa variables.
5549
5550         * config/i386/i386.c (ix86_target_string): Replace int with
5551         HOST_WIDE_INT for isa.  Use HOST_WIDE_INT_PRINT to print isa.
5552         (ix86_target_opts): Replace int with HOST_WIDE_INT on mask.
5553         (pta_flags): Removed.
5554         (PTA_XXX): Redefined as (HOST_WIDE_INT_1 << X).
5555         (pta): Use HOST_WIDE_INT on flags.
5556         (builtin_isa): Use HOST_WIDE_INT on isa.
5557         (ix86_add_new_builtins): Likewise.
5558         (def_builtin): Use HOST_WIDE_INT on mask.
5559         (def_builtin_const): Likewise.
5560         (builtin_description): Likewise.
5561
5562         * config/i386/i386.opt (ix86_isa_flags): Replace int with
5563         HOST_WIDE_INT.
5564         (ix86_isa_flags_explicit): Likewise.
5565         (x_ix86_isa_flags_explicit): Likewise.
5566
5567 2011-08-17  Vladimir Makarov  <vmakarov@redhat.com>
5568
5569         PR rtl-optimization/50107
5570         * ira-int.h (ira_hard_reg_not_in_set_p): Remove.
5571         (ira_hard_reg_in_set_p): New.
5572
5573         * ira-color.c (calculate_saved_nregs): New.
5574         (assign_hard_reg): Use it.  Set up allocated_hard_reg_p for all
5575         hard regs.
5576         (allocno_reload_assign, fast_allocation): Use
5577         ira_hard_reg_set_intersection_p instead of
5578         ira_hard_reg_not_in_set_p.
5579
5580         * ira.c (setup_reg_renumber): Use
5581         ira_hard_reg_set_intersection_p instead of
5582         ira_hard_reg_not_in_set_p.
5583         (setup_allocno_assignment_flags, calculate_allocation_cost): Use
5584         ira_hard_reg_in_set_p instead of ira_hard_reg_not_in_set_p.
5585
5586         * ira-costs.c (ira_tune_allocno_costs): Use
5587         ira_hard_reg_set_intersection_p instead of
5588         ira_hard_reg_not_in_set_p.
5589
5590 2011-08-18  H.J. Lu  <hongjiu.lu@intel.com>
5591             Igor Zamyatin <igor.zamyatin@intel.com>
5592
5593         * hwint.h (HOST_WIDE_INT_1): New.
5594
5595         * opt-functions.awk (switch_bit_fields): Initialize the
5596         host_wide_int field.
5597         (host_wide_int_var_name): New.
5598         (var_type_struct): Check and return HOST_WIDE_INT.
5599
5600         * opt-read.awk: Handle HOST_WIDE_INT for "Variable".
5601
5602         * optc-save-gen.awk: Support HOST_WIDE_INT on var_target_other.
5603
5604         * opth-gen.awk: Use HOST_WIDE_INT_1 on HOST_WIDE_INT.  Properly
5605         check masks for HOST_WIDE_INT.
5606
5607         * opts-common.c (set_option): Support HOST_WIDE_INT flag_var.
5608         (option_enabled): Likewise.
5609         (get_option_state): Likewise.
5610
5611         * opts.h (cl_option): Add cl_host_wide_int.  Change var_value
5612         to HOST_WIDE_INT.
5613
5614 2011-08-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5615             Marc Glisse  <marc.glisse@normalesup.org>
5616
5617         PR libstdc++-v3/1773
5618         * target.def (decl_mangling_context): New C++ hook.
5619         * doc/tm.texi: Regenerate.
5620         * config/sol2-cxx.c, config/sol2-stubs.c: New files.
5621         * config/sol2-protos.h: Group by source file.
5622         (solaris_cxx_decl_mangling_context): Declare.
5623         * config/sol2.h (TARGET_CXX_DECL_MANGLING_CONTEXT): Define.
5624         * config/t-sol2 (sol2-cxx.o, sol2-stubs.o): New targets.
5625         Use $<.
5626         * config.gcc (*-*-solaris2*): Add sol2-cxx.o to cxx_target_objs.
5627         Add sol2-stubs.o to extra_objs.
5628
5629 2011-08-18  Jakub Jelinek  <jakub@redhat.com>
5630
5631         PR target/50009
5632         * stor-layout.c (update_alignment_for_field): Don't ICE on
5633         packed flexible array members if ms_bitfield_layout_p.
5634
5635         PR target/50092
5636         * config/i386/i386.c (assign_386_stack_local): Call validize_mem
5637         on the result before returning it.
5638
5639         PR debug/50017
5640         * tree-vect-stmts.c (vect_finish_stmt_generation): If gsi_stmt (*gsi)
5641         is a debug stmt, use location of the first non-debug stmt after it.
5642
5643 2011-08-18  Richard Sandiford  <richard.sandiford@linaro.org>
5644
5645         * config/arm/arm.c (arm_rtx_costs_1): Don't modify the costs of SET.
5646         (arm_size_rtx_costs): Likewise.
5647
5648 2011-08-18  Richard Guenther  <rguenther@suse.de>
5649
5650         * tree.h (tree_int_cst_msb): Remove.
5651         * tree.c (tree_int_cst_msb): Likewise.
5652         (tree_int_cst_sign_bit): Move from ...
5653         * tree-ssa-loop-ivopts.c (tree_int_cst_sign_bit): ... here.
5654
5655 2011-08-18  Richard Sandiford  <richard.sandiford@linaro.org>
5656
5657         * doc/tm.texi.in (TARGET_RTX_COSTS): Add an opno paramter.
5658         * doc/tm.texi: Regenerate.
5659         * target.def (rtx_costs): Add an opno parameter.
5660         * hooks.h (hook_bool_rtx_int_int_intp_bool_false): Replace with...
5661         (hook_bool_rtx_int_int_int_intp_bool_false): ...this.
5662         * hooks.c (hook_bool_rtx_int_int_intp_bool_false): Replace with...
5663         (hook_bool_rtx_int_int_int_intp_bool_false): ...this.
5664         * cse.c (COST_IN): Add an opno parameter.
5665         (notreg_cost): Likewise.  Update call to rtx_cost.
5666         (COST, fold_rtx): Update accordingly.
5667         * dojump.c (prefer_and_bit_test): Update call to rtx_cost.
5668         * expmed.c (emit_store_flag): Likewise.
5669         * optabs.c (avoid_expensive_constant): Add an opno parameter.
5670         Update call to rtx_cost.
5671         (expand_binop_directly, expand_binop): Likewise.
5672         (expand_twoval_binop, prepare_cmp_insn): Likewise.
5673         * rtl.h (rtx_cost, get_full_rtx_cost): Add opno parameters.
5674         (set_src_cost, get_full_set_src_cost): Update accordingly.
5675         * rtlanal.c (rtx_cost): Add an opno parameter.  Update call
5676         to target hook.
5677         (get_full_rtx_cost): Add an opno paramter.  Update calls to rtx_cost.
5678         (default_adress_cost): Update calls to rtx_cost.
5679
5680         * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs)
5681         (arm_slowmul_rtx_costs): Adjust calls to rtx_cost.
5682         (arm_rtx_costs): Add an opno parameter.
5683         * config/alpha/alpha.c (alpha_rtx_costs): Add an opno parameter and
5684         adjust any recursive rtx-cost calls.
5685         * config/avr/avr.c (avr_operand_rtx_cost, avr_rtx_costs): Likewise.
5686         * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
5687         * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
5688         * config/cris/cris.c (cris_rtx_costs): Likewise.
5689         * config/frv/frv.c (frv_rtx_costs): Likewise.
5690         * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
5691         * config/i386/i386.c (ix86_rtx_costs): Likewise.
5692         * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
5693         * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
5694         * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
5695         * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
5696         * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
5697         * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
5698         * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
5699         * config/mep/mep.c (mep_rtx_cost): Likewise.
5700         * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
5701         * config/mips/mips.c (mips_binary_cost): Update call to rtx_cost.
5702         (mips_zero_extend_cost): Add an opno parameter.
5703         * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
5704         * config/mn10300/mn10300.c (mn10300_address_cost): Update call
5705         to rtx_cost.
5706         (mn10300_rtx_costs): Add an opno parameter and adjust any recursive
5707         rtx-cost calls.
5708         * config/pa/pa.c (hppa_rtx_costs): Likewise.
5709         * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
5710         * config/picochip/picochip.c (picochip_rtx_costs): Likewise.
5711         * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
5712         (rs6000_debug_rtx_costs): Likewise.
5713         * config/s390/s390.c (s390_rtx_costs): Likewise.
5714         * config/score/score-protos.h (score_rtx_costs): Likewise.
5715         * config/score/score.c (score_rtx_costs): Likewise.
5716         * config/sh/sh.c (andcosts): Update call to rtx_cost.
5717         (sh_rtx_costs): Add an opno parameter.
5718         * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
5719         * config/spu/spu.c (spu_rtx_costs): Likewise.
5720         * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
5721         * config/v850/v850.c (v850_rtx_costs): Likewise.
5722         * config/vax/vax.c (vax_rtx_costs): Likewise.
5723         * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
5724
5725 2011-08-18  Richard Sandiford  <richard.sandiford@linaro.org>
5726
5727         * rtl.h (set_src_cost, get_full_set_src_cost): New functions.
5728         * auto-inc-dec.c (attempt_change): Use set_src_cost instead of
5729         rtx_cost.
5730         * calls.c (precompute_register_parameters): Likewise.
5731         * combine.c (expand_compound_operation, make_extraction): Likewise.
5732         (force_to_mode, distribute_and_simplify_rtx): Likewise.
5733         * dse.c (find_shift_sequence): Likewise.
5734         * expmed.c (init_expmed, expand_mult, expand_smod_pow2): Likewise.
5735         * expr.c (compress_float_constant): Likewise.
5736         * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
5737         * gcse.c (want_to_gcse_p): Likewise.
5738         * ifcvt.c (noce_try_sign_mask): Likewise.
5739         * loop-doloop.c (doloop_optimize): Likewise.
5740         * loop-invariant.c (create_new_invariant): Likewise.
5741         * optabs.c (avoid_expensive_constant): Likewise.
5742         * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands)
5743         (try_replace_in_use, reload_cse_move2add): Likewise.
5744         * reload1.c (calculate_elim_costs_all_insns): Likewise.
5745         (note_reg_elim_costly): Likewise.
5746         * rtlanal.c (insn_rtx_cost): Likewise.
5747         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
5748         * stmt.c (lshift_cheap_p): Likewise.
5749         * tree-ssa-loop-ivopts.c (seq_cost, computation_cost): Likewise.
5750         * config/avr/avr.c (final_prescan_insn): Likewise.
5751         * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
5752         * config/mips/mips.c (mips_binary_cost, mips_rtx_costs): Likewise.
5753
5754 2011-08-18  Richard Sandiford  <richard.sandiford@linaro.org>
5755
5756         * rtl.h (set_rtx_cost, get_full_set_rtx_cost): New functions.
5757         * auto-inc-dec.c (attempt_change): Use set_rtx_cost.
5758         * cfgloopanal.c (seq_cost): Likewise.
5759         * loop-invariant.c (create_new_invariant): Likewise.
5760         * postreload.c (move2add_use_add2_insn, move2add_use_add3_insn)
5761         (reload_cse_move2add): Use get_full_set_rtx_cost.
5762
5763 2011-08-18  Richard Guenther  <rguenther@suse.de>
5764
5765         * expr.c (get_inner_reference): Fix typo in last change.
5766
5767 2011-08-18  Paolo Carlini  <paolo.carlini@oracle.com>
5768             Joseph Myers  <joseph@codesourcery.com>
5769
5770         PR tree-optimization/49963
5771         * hwint.c (absu_hwi): Define.
5772         * hwint.h (absu_hwi): Declare.
5773         * fold-const.c (fold_plusminus_mult_expr): Use absu_hwi instead
5774         of abs_hwi.
5775         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
5776         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Likewise.
5777
5778 2011-08-18  Richard Guenther  <rguenther@suse.de>
5779
5780         * expr.c (get_inner_reference): Sign-extend the constant
5781         twos-complement offset before doing arbitrary precision
5782         arithmetic on it.
5783         * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
5784         (get_constraint_for_1): Pass the offset of a MEM_REF unchanged
5785         to get_constraint_for_ptr_offset.
5786
5787 2011-08-17  Kaz Kojima  <kkojima@gcc.gnu.org>
5788
5789         PR target/50068
5790         * config/sh/sh.c (sh_output_mi_thunk): Don't call dbr_schedule.
5791
5792 2011-08-17  Richard Guenther  <rguenther@suse.de>
5793
5794         * tree.h (convert_to_ptrofftype_loc): New function.
5795         (convert_to_ptrofftype): Define.
5796         * builtins.c (expand_builtin_bzero): Use size_type_node.
5797         (fold_builtin_bzero): Likewise.
5798         (std_gimplify_va_arg_expr): Build the BIT_AND_EXPR on the pointer.
5799         * c-typeck.c (build_unary_op): Use convert_to_ptrofftype_loc.
5800         * cgraphunit.c (thunk_adjust): Use fold_build_pointer_plus_loc.
5801         (cgraph_redirect_edge_call_stmt_to_callee): Use size_int.
5802         * expr.c (expand_expr_addr_expr_1): Use fold_build_pointer_plus.
5803         * fold-const.c (build_range_check): Negate using the original type.
5804         (fold_unary_loc): Use fold_build_pointer_plus_loc.
5805         * gimple-fold.c (gimple_adjust_this_by_delta): Use
5806         convert_to_ptrofftype.
5807         * gimplify.c (gimplify_self_mod_expr): Likewise.
5808         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Likewise.
5809         (graphite_create_new_loop_guard): Likewise.
5810         * graphite-sese-to-poly.c (my_long_long): Remove.
5811         (scop_ivs_can_be_represented): Adjust.
5812         * tree-cfg.c (verify_gimple_assign_unary): Use ptrofftype_p.
5813         * tree-chrec.c (chrec_fold_plus_1): Use fold_build_pointer_plus.
5814         * tree-loop-distribution.c (build_size_arg_loc): Use
5815         size_type_node.
5816         (generate_memset_zero): Simplify.
5817         * tree-mudflap.c: Use fold_convert, not convert.
5818         * tree-predcom.c (suitable_reference_p): Expand DR_OFFSET in
5819         its own type.
5820         (determine_offset): Likewise for DR_STEP.
5821         (valid_initializer_p): Likewise.
5822         * tree-profile.c (prepare_instrumented_value): Convert the pointer
5823         to an integer type of same size.
5824         * tree-scalar-evolution.c (interpret_rhs_expr): Do not refer
5825         to sizetype without need.
5826         * tree-ssa-address.c (tree_mem_ref_addr): Likewise.
5827         * tree-ssa-loop-ivopts.c (find_bivs): Use convert_to_ptrofftype.
5828         * tree-ssa-loop-manip.c (create_iv): Likewise.
5829         (determine_exit_conditions): Adjust comment.
5830         * tree-ssa-pre.c (create_expression_by_pieces): Use
5831         convert_to_ptrofftype.
5832         * tree-ssa-structalias.c (get_constraint_for_1): Likewise.
5833         * varasm.c (array_size_for_constructor): Compute using double_ints.
5834
5835 2011-08-16  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5836
5837         * config/spu/spu.c (spu_emit_branch_or_set): Avoid reverse tests
5838         when generating an integer result where possible.  Short-cut
5839         comparison against 0 also for QImode.
5840
5841 2011-08-16  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5842
5843         * config/spu/spu.h (LEGITIMIZE_RELOAD_ADDRESS): New macro.
5844         * config/spu/spu-protos.h (spu_legitimize_reload_address): Add
5845         prototype.
5846         * config/spu/spu.c (spu_legitimize_reload_address): New function.
5847         (spu_legitimate_address_p): Do not check displacement if the base
5848         is an eliminable stack register.
5849
5850 2011-08-16  Anatoly Sokolov  <aesok@post.ru>
5851
5852         * config/m32c/m32c.h (PREFERRED_RELOAD_CLASS,
5853         PREFERRED_OUTPUT_RELOAD_CLASS): Remove macro.
5854         * config/m32c/m32c-protos.h (m32c_preferred_reload_class,
5855         m32c_preferred_output_reload_class): Remove.
5856         * config/m32c/m32c.c (m32c_preferred_reload_class): Make static.
5857         Change rclass argument and return types to reg_class_t. Use
5858         reg_class_subset_p instead of class_sizes.
5859         (m32c_preferred_output_reload_class): Make static. Change rclass
5860         argument and return types to reg_class_t.
5861         (TARGET_PREFERRED_RELOAD_CLASS,
5862         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
5863
5864 2011-08-16  Kai Tietz  <ktietz@redhat.com>
5865
5866         * config/i386/mingw32.h (GOMP_SELF_SPEC): Add -pthread option.
5867
5868 2011-08-16  Richard GUenther  <rguenther@suse.de>
5869
5870         PR tree-optimization/50082
5871         * tree-ssa-forwprop.c (combine_cond_expr_cond): Handle overflow
5872         warnings here, instead of ...
5873         (ssa_forward_propagate_and_combine): ... here.
5874         (forward_propagate_into_comparison_1): Adjust.
5875         (forward_propagate_into_comparison): Likewise.
5876         (forward_propagate_into_gimple_cond): Likewise.
5877         (forward_propagate_into_cond): Likewise.
5878
5879 2011-08-16  Andreas Schwab  <schwab@redhat.com>
5880
5881         * ggc.h (ggc_alloc_rtvec_sized): Use ggc_alloc_zone_rtvec_def
5882         instead of ggc_alloc_zone_vec_rtvec_def.
5883
5884 2011-08-16  Richard Guenther  <rguenther@suse.de>
5885
5886         * tree.h (ptrofftype_p): New helper function.
5887         * tree-cfg.c (verify_expr): Use ptrofftype_p for POINTER_PLUS_EXPR
5888         offset verification.
5889         (verify_gimple_assign_binary): Likewise.
5890         * tree.c (build2_stat): Likewise.
5891         * tree-chrec.c (chrec_fold_plus_poly_poly): Likewise.
5892         (reset_evolution_in_loop): Likewise.
5893         * tree-chrec.h (build_polynomial_chrec): Likewise.
5894
5895 2011-08-16  Liang Wang  <lwang1@marvell.com>
5896
5897         * ggc.h (ggc_alloc_rtvec_sized): Change arguments of
5898         ggc_alloc_zone_vec_rtvec_def.
5899
5900 2011-08-16  Richard Guenther  <rguenther@suse.de>
5901
5902         * tree-vrp.c (extract_range_from_multiplicative_op_1): New
5903         helper factored out from ...
5904         (extract_range_from_binary_expr_1): ... here.  Re-structure
5905         to not glob handling too different tree codes.
5906
5907 2011-08-15  Richard Henderson  <rth@redhat.com>
5908
5909         PR middle-end/50006
5910         * explow.c (allocate_dynamic_stack_space): Move suppress_reg_args_size
5911         setting out to include allocate_stack named pattern as well.
5912         * builtins.c (expand_builtin_apply): Add ARG_SIZE 0 note.
5913         * stmt.c (expand_stack_restore): Likewise.
5914
5915 2011-08-15  Richard Guenther  <rguenther@suse.de>
5916
5917         PR middle-end/50082
5918         * fold-const.c (maybe_canonicalize_comparison_1): Properly
5919         convert the modified operand to the other operand type.
5920         (fold_comparison): Call maybe_canonicalize_comparison_1 with
5921         useless conversions stripped from comparison operands.
5922
5923 2011-08-15  Richard Guenther  <rguenther@suse.de>
5924
5925         * tree-vrp.c (value_range_nonnegative_p): Fix anti-range case.
5926         (extract_range_from_unary_expr_1): Restructure.
5927
5928 2011-08-15  Richard Guenther  <rguenther@suse.de>
5929
5930         PR tree-optimization/50058
5931         * tree-ssa-sccvn.c (vn_reference_lookup_3): Relax aggregate
5932         copy matching.
5933
5934 2011-08-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
5935
5936         PR target/50022
5937         * config/arm/arm.c (output_move_double): Add 2 parameters
5938         to count the number of insns emitted and whether to emit or not.
5939         Use the flag to decide when to emit and count number of instructions
5940         that will be emitted.
5941         Handle case where output_move_double might be called for calculating
5942         lengths with an invalid constant.
5943         (arm_count_output_move_double_insns): Define.
5944         * config/arm/arm-protos.h (arm_count_output_move_double_insns): Declare.
5945         (output_move_double): Adjust prototype.
5946         * config/arm/vfp.md ("*movdi_vfp"): Adjust call to
5947         output_move_double.
5948         ("*movdi_vfp_cortexa8"): Likewise and add attribute
5949         for ce_count.
5950         * config/arm/arm.md ("*arm_movdi"): Adjust call to output_move_double.
5951         ("*movdf_soft_insn"): Likewise.
5952         * config/arm/cirrus.md ("*cirrus_arm_movdi"): Likewise.
5953         ("*cirrus_thumb2_movdi"): Likewise.
5954         ("*thumb2_cirrus_movdf_hard_insn"): Likewise.
5955         ("*cirrus_movdf_hard_insn"): Likewise.
5956         * config/arm/neon.md (*neon_mov<mode> VD): Likewise.
5957         * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Likewise.
5958         ("mov<mode>_internal VMMX"): Likewise.
5959         * config/arm/fpa.md (*movdf_fpa, *thumb2_movdf_fpa): Likewise.
5960
5961 2011-08-14  Uros Bizjak  <ubizjak@gmail.com>
5962
5963         * config/i386/i386.c (ix86_expand_round_sse4): New function.
5964         * config/i386/i386-protos.h (ix86_expand_round_sse4): New prototype.
5965         * config/i386/i386.md (round<mode>2): Use ix86_expand_round_sse4
5966         for TARGET_ROUND.
5967
5968         (rint<mode>2): Simplify TARGET_ROUND check.
5969         (floor<mode>2): Ditto.
5970         (ceil<mode>2): Ditto.
5971         (btrunc<mode>2): Ditto.
5972
5973 2011-08-14  Anatoly Sokolov  <aesok@post.ru>
5974
5975         * config/mmix/mmix.c (TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Redefine
5976         as mmix_preferred_output_reload_class.
5977
5978 2011-08-14  Georg-Johann Lay  <avr@gjlay.de>
5979
5980         * PR target/49903
5981         * config/avr/avr.md (UNSPEC_IDENTITY): New c_enum.
5982         (branch_unspec): New insn.
5983         (branch): Beauty farm.
5984         * config/avr/avr.c (compare_condition): Use JUMP_P.  Test SET_SRC
5985         to be IF_THEN_ELSE.
5986         (avr_compare_pattern, avr_reorg_remove_redundant_compare):
5987         New static functions.
5988         (avr_reorg): Use them.  Use next_real_insn instead of NEXT_INSN.
5989         Use CONST_INT_P.  Beauty.
5990
5991 2011-08-12  Richard Henderson  <rth@redhat.com>
5992
5993         PR rtl-opt/49994
5994         * sched-init.h (struct deps_desc): Add sched_before_next_jump.
5995         * sched-deps.c (init_deps): Clear it.
5996         (deps_analyze_insn): Consume it.
5997         (sched_analyze_insn): Fill it.
5998
5999 2011-08-12  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
6000
6001         PR target/48328
6002         * config/arm/arm.h (CASE_VECTOR_SHORTEN_MODE): Fix distance
6003         for tbh instructions.
6004
6005 2011-08-12  Diego Novillo  <dnovillo@google.com>
6006
6007         * data-streamer.h (streamer_write_zero): Rename from output_zero.
6008         (streamer_write_uhwi): Rename from lto_output_uleb128.
6009         (streamer_write_hwi): Rename from output_sleb128.
6010         (streamer_write_string): Rename from lto_output_string.
6011         (streamer_string_index): Rename from lto_string_index.
6012         (streamer_write_string_with_length): Rename from
6013         lto_output_string_with_length.
6014         (streamer_write_uhwi_stream): Rename from lto_output_uleb128_stream.
6015         (streamer_write_hwi_stream): Rename from lto_output_sleb128_stream.
6016         (streamer_read_string): Rename from lto_input_string.
6017         (streamer_read_indexed_string): Rename from input_string_internal.
6018         (streamer_read_uhwi): Rename from lto_input_uleb128.
6019         (streamer_read_hwi): Rename from lto_input_sleb128.
6020         (streamer_write_hwi_in_range): Rename from lto_output_int_in_range.
6021         (streamer_read_hwi_in_range): Rename from lto_input_int_in_range.
6022         (streamer_write_enum): Rename from lto_output_enum.
6023         (streamer_read_enum): Rename from lto_input_enum.
6024         (streamer_write_record_start): Rename from output_record_start.
6025         (streamer_read_record_start): Rename from input_record_start.
6026         (streamer_write_bitpack): Rename from lto_output_bitpack.
6027         (streamer_read_bitpack): Rename from lto_input_bitpack.
6028         (streamer_write_char_stream): Rename from lto_output_1_stream.
6029         (streamer_read_uchar): Rename from lto_input_1_unsigned.
6030         * tree-streamer.h (streamer_cache_d): Rename from lto_streamer_cache_d.
6031         (streamer_handle_as_builtin_p): Rename from lto_stream_as_builtin_p.
6032         (streamer_read_string_cst): Rename from input_string_cst.
6033         (streamer_read_chain): Rename from lto_input_chain.
6034         (streamer_alloc_tree): Rename from lto_materialize_tree.
6035         (streamer_read_tree_body): Rename from lto_input_tree_pointers.
6036         (streamer_get_pickled_tree): Rename from lto_get_pickled_tree.
6037         (streamer_get_builtin_tree): Rename from lto_get_builtin_tree.
6038         (streamer_read_integer_cst): Rename from lto_input_integer_cst.
6039         (streamer_read_tree_bitfields): Rename from tree_read_bitfields.
6040         (streamer_write_chain): Rename from lto_output_chain.
6041         (streamer_write_tree_header): Rename from lto_output_tree_header.
6042         (streamer_pack_tree_bitfields): Rename from pack_value_fields.
6043         (streamer_write_tree_body): Rename from lto_output_tree_pointers.
6044         (streamer_write_integer_cst): Rename from lto_output_integer_cst.
6045         (streamer_write_builtin): Rename from lto_output_builtin_tree.
6046         (streamer_check_handled_ts_structures): Rename from
6047         check_handled_ts_structures.
6048         (streamer_tree_cache_insert): Rename from lto_streamer_cache_insert.
6049         (streamer_tree_cache_insert_at): Rename from
6050         lto_streamer_cache_insert_at.
6051         (streamer_tree_cache_append): Rename from lto_streamer_cache_append.
6052         (streamer_tree_cache_lookup): Rename from lto_streamer_cache_lookup.
6053         (streamer_tree_cache_get): Rename from lto_streamer_cache_get.
6054         (streamer_tree_cache_create): Rename from lto_streamer_cache_create.
6055         (streamer_tree_cache_delete): Rename from lto_streamer_cache_delete.
6056         * tree-streamer-out.c (write_string_cst): Rename from output_string_cst.
6057         (write_identifier): Rename from output_identifier.
6058         (write_ts_common_tree_pointers): Rename from
6059         lto_output_ts_common_tree_pointers.
6060         (write_ts_vector_tree_pointers): Rename from
6061         lto_output_ts_vector_tree_pointers.
6062         (write_ts_complex_tree_pointers): Rename from
6063         lto_output_ts_complex_tree_pointers.
6064         (write_ts_decl_minimal_tree_pointers): Rename from
6065         lto_output_ts_decl_minimal_tree_pointers.
6066         (write_ts_decl_common_tree_pointers): Rename from
6067         lto_output_ts_decl_common_tree_pointers.
6068         (write_ts_decl_non_common_tree_pointers): Rename from
6069         lto_output_ts_decl_non_common_tree_pointers.
6070         (write_ts_decl_with_vis_tree_pointers): Rename from
6071         lto_output_ts_decl_with_vis_tree_pointers.
6072         (write_ts_field_decl_tree_pointers): Rename from
6073         lto_output_ts_field_decl_tree_pointers.
6074         (write_ts_function_decl_tree_pointers): Rename from
6075         lto_output_ts_function_decl_tree_pointers.
6076         (write_ts_type_common_tree_pointers): Rename from
6077         lto_output_ts_type_common_tree_pointers.
6078         (write_ts_type_non_common_tree_pointers): Rename from
6079         lto_output_ts_type_non_common_tree_pointers.
6080         (write_ts_list_tree_pointers): Rename from
6081         lto_output_ts_list_tree_pointers.
6082         (write_ts_vec_tree_pointers): Rename from
6083         lto_output_ts_vec_tree_pointers.
6084         (write_ts_exp_tree_pointers): Rename from
6085         lto_output_ts_exp_tree_pointers.
6086         (write_ts_block_tree_pointers): Rename from
6087         lto_output_ts_block_tree_pointers.
6088         (write_ts_binfo_tree_pointers): Rename from
6089         lto_output_ts_binfo_tree_pointers.
6090         (write_ts_constructor_tree_pointers): Rename from
6091         lto_output_ts_constructor_tree_pointers.
6092         (write_ts_target_option): Rename from lto_output_ts_target_option.
6093         (write_ts_translation_unit_decl_tree_pointers): Rename from
6094         lto_output_ts_translation_unit_decl_tree_pointers.
6095         * tree-streamer.c (streamer_tree_cache_add_to_node_array):
6096         Rename from lto_streamer_cache_add_to_node_array.
6097         (streamer_tree_cache_insert_1): Rename from lto_streamer_cache_insert_1.
6098         (record_common_node): Rename from lto_record_common_node.
6099
6100         * streamer-hooks.h (bitpack_d, lto_streamer_cache_d): Remove forward
6101         declarations.
6102         * data-streamer-in.c (lto_input_widest_uint_uleb128): Remove unused
6103         function.
6104         * data-streamer-out.c (lto_output_widest_uint_uleb128_stream): Remove
6105         unused function.
6106         * Makefile.in (lto-section-out.o): Add dependency on DATA_STREAMER_H.
6107         (ipa-reference.o): Likewise.
6108         * lto-section-out.c: Include data-streamer.h.
6109         * ipa-reference.c: Include data-streamer.h.
6110
6111 2011-08-12  Nick Clifton  <nickc@redhat.com>
6112
6113         * builtins.c (expand_builtin_memcmp): Do not use cmpstrnsi pattern.
6114         * doc/md.texi (cmpstrn): Note that the comparison stops if both
6115         fetched bytes are zero.
6116         (cmpstr): Likewise.
6117         (cmpmem): Note that the comparison does not stop if both of the
6118         fetched bytes are zero.
6119
6120 2011-08-12  Uros Bizjak  <ubizjak@gmail.com>
6121
6122         * builtins.def (BUILT_IN_ICEIL{,F,L}, BUILT_IN_IFLOOR{,F,L}
6123         BUILT_IN_IRINT{,F,L}, BUILT_IN_IROUND{,F,L}: New builtin definitions.
6124         * convert.c (convert_to_integer): Convert to BUILT_IN_ICEIL,
6125         BUILT_IN_IFLOOR, BUILT_IN_IRINT or BUILT_INT_IROUND when converting
6126         to integer_type_node.
6127         * fold-const.c (tree_call_nonnegative_warnv_p): Handle BUILT_IN_ICEIL,
6128         BUILT_IN_IFLOOR, BUILT_IN_IRINT and BUILT_INT_IROUND.
6129         * builtins.c (expand_builtin_in): Ditto.
6130         (mathfn_built_in_1): Ditto.
6131         (expand_builtin_int_roundingfn): Handle BUILT_IN_ICEIL and
6132         BUILT_IN_IFLOOR.
6133         (expand_builtin_int_roundingfn_2): Handle BUILT_IN_IRINT and
6134         BUILT_IN_IROUND.
6135         (fold_fixed_mathfn): Canonicalize BUILT_IN_ICEIL, BUILTIN_IN_IFLOOR
6136         BUILT_IN_IRINT and BUILT_IN_IROUND to BUILT_IN_LCEIL,
6137         BUILTIN_IN_LFLOOR, BUILT_IN_LRINT and BUILT_IN_LROUND on ILP32 targets.
6138
6139 2011-08-12  Richard Guenther  <rguenther@suse.de>
6140
6141         * tree-vrp.c (extract_range_from_unary_expr_1): Implement -X as 0 - X.
6142
6143 2011-08-12  Romain Geissler  <romain.geissler@gmail.com>
6144
6145         * Makefile.in (PLUGIN_HEADERS): Add C_TREE_H.
6146
6147 2011-08-12  Richard Sandiford  <rdsandiford@googlemail.com>
6148
6149         * config/arm/arm.c (get_label_padding): New function.
6150         (create_fix_barrier, arm_reorg): Use it.
6151
6152 2011-08-11  Uros Bizjak  <ubizjak@gmail.com>
6153
6154         PR target/49781
6155         * config/i386/i386.md (*lea_5_zext): New.
6156         (*lea_6_zext): Ditto.
6157         * config/i386/predicates.md (const_32bit_mask): New predicate.
6158         (lea_address_operand): Reject AND.
6159         * config/i386/i386.c (ix86_decompose_address): Allow Dimode AND with
6160         const_32bit_mask immediate.
6161         (ix86_print_operand_address): Handle AND.
6162         (memory_address_length): Ditto.
6163
6164 2011-08-11  Romain Geissler  <romain.geissler@gmail.com>
6165             Brian Hackett  <bhackett1024@gmail.com>
6166
6167         * plugin.def: Add event for finish_decl.
6168         * plugin.c (register_callback, invoke_plugin_callbacks): Same.
6169         * c-decl.c (finish_decl): Invoke callbacks on above event.
6170         * doc/plugins.texi: Document above event.
6171
6172 2011-08-11  Richard Guenther  <rguenther@suse.de>
6173
6174         * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid redundant
6175         lookups, make looking through aggregate copies stronger.
6176
6177 2011-08-11  Richard Henderson  <rth@redhat.com>
6178
6179         PR bootstrap/50018
6180         * expr.c (fixup_args_size_notes): Accept and ignore normal calls.
6181
6182 2011-08-11  Richard Guenther  <rguenther@suse.de>
6183
6184         * lto-cgraph.c (input_node): Use DECL_BUILT_IN.
6185         * tree-vrp.c (stmt_interesting_for_vrp): Likewise.
6186         (vrp_visit_stmt): Likewise.
6187
6188 2011-08-11  Richard Guenther  <rguenther@suse.de>
6189
6190         PR middle-end/50040
6191         * gimplify.c (gimplify_modify_expr_complex_part): Mark the
6192         load of the other piece with TREE_NO_WARNING.
6193         * tree-flow.h (warn_uninit): Adjust prototype.
6194         * tree-ssa.c (warn_uninit): Take uninitialized SSA name,
6195         the base variable and the expression that is used separately.
6196         Properly query all TREE_NO_WARNING flags.
6197         (struct walk_data): Remove.
6198         (warn_uninitialized_var): Likewise.
6199         (warn_uninitialized_vars): Do not walk gimple pieces but simply
6200         look at all SSA uses of the statement.  Handle unused memory
6201         separately.
6202         * tree-ssa-uninit.c (warn_uninitialized_phi): Adjust.
6203
6204 2011-08-11   Kazuhiro Inaoka  <kazuhiro.inaoka.ud@renesas.com>
6205
6206         * config/rx/rx.md (movsicc): Allow register to register transfers.
6207         (*movsicc): Likewise.
6208         (*stcc): Restrict this pattern to EQ and NE compares.
6209         (*stcc_reg): New pattern.  Works for any comparison but only for
6210         register transfers.
6211
6212 2011-08-11   Diego Novillo  <dnovillo@google.com>
6213
6214         * tree-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers):
6215         Call stream_write_tree instead of output_record_start.
6216         (lto_output_ts_binfo_tree_pointers): Likewise.
6217
6218         * streamer-hooks.h (stream_write_tree): Move from tree-streamer.h.
6219         Convert it to a macro.
6220         (stream_read_tree): Likewise.
6221
6222         * lto-streamer.h (lto_stream_as_builtin_p): Move ...
6223         * tree-streamer.h (lto_stream_as_builtin_p): ... here.
6224
6225         * lto-streamer-in.c (lto_read_tree): Call lto_streamer_cache_append
6226         and tree_read_bitfields.
6227         * lto-streamer-out.c (lto_is_streamable): Move from lto-streamer.c
6228         (lto_write_tree): Call it.
6229         * lto-streamer.c (lto_is_streamable): Move to lto-streamer-out.c
6230         * streamer-hooks.h (struct streamer_hooks): Remove fields
6231         name, is_streamable and alloc_tree. Update all users.
6232         * tree-streamer-in.c (tree_read_bitfields): Factor out of ...
6233         (lto_materialize_tree): ... here.
6234         Handle CALL_EXPR codes.
6235         Remove call to lto_streamer_cache_append.
6236         * tree-streamer-out.c (lto_output_tree_header): Handle CALL_EXPR nodes.
6237         * tree-streamer.h (tree_read_bitfields): Declare.
6238
6239         * Makefile.in (TREE_STREAMER_H): Add STREAMER_HOOKS_H.
6240         (gimple-streamer-in.o): Add dependency on TREE_STREAMER_H.
6241         * tree-streamer.h (stream_read_tree): New.  Replace all calls
6242         to lto_input_tree with it.
6243         (stream_write_tree): New.  Replace all calls to lto_output_tree,
6244         lto_output_tree_ref and lto_output_tree_or_ref with it.
6245         * lto-streamer-in.c (lto_read_tree): Inline code from
6246         lto_streamer_read_tree.
6247         (lto_input_tree): Move from tree-streamer-in.c.
6248         * lto-streamer-out.c (lto_output_tree_ref): Make static.
6249         Remove handling of NULL values for EXPR.
6250         Do not handle EXPRs that are not indexable.
6251         (lto_write_tree): Move from tree-streamer-out.c.
6252         Inline lto_streamer_write_tree.
6253         (lto_output_tree): Move from tree-streamer-out.c.
6254         If REF_P is true and EXPR is indexable, call lto_output_tree_ref.
6255         * lto-streamer.c (lto_record_common_node): Move to tree-streamer.c.
6256         (lto_preload_common_nodes): Likewise.
6257         Remove assertions and adjustments for nodes
6258         main_identifier_node, ptrdiff_type_node and fileptr_type_node.
6259         (lto_streamer_hooks_init): Set streamer_hooks.write_tree to
6260         lto_output_tree and streamer_hooks.read_tree to lto_input_tree.
6261         * lto-streamer.h (lto_input_tree): Declare.
6262         (lto_output_tree_ref): Remove.
6263         * streamer-hooks.h (struct streamer_hooks): Remove fields
6264         preload_common_nodes, indexable_with_decls_p,
6265         pack_value_fields, unpack_value_fields and output_tree_header.
6266         Update all users.
6267         * tree-streamer-in.c (lto_materialize_tree): Make extern.
6268         (lto_input_tree_pointers): Likewise.
6269         (lto_read_tree): Move to lto-streamer-in.c.
6270         (lto_input_integer_cst): Make extern.
6271         (lto_get_pickled_tree): Likewise.
6272         (lto_get_builtin_tree): Likewise.
6273         (lto_input_tree): Move to lto-streamer-in.c.
6274         * tree-streamer-out.c (pack_value_fields): Make extern.
6275         (lto_output_tree_or_ref): Remove.  Replace all callers with
6276         calls to stream_write_tree.
6277         (lto_output_builtin_tree): Make extern.
6278         (lto_streamer_write_tree): Inline into lto_write_tree.
6279         (lto_output_tree_pointers): Make extern.
6280         (lto_output_tree_header): Likewise.
6281         (lto_output_integer_cst): Likewise.
6282         (lto_write_tree): Move to lto-streamer-out.c.
6283         (lto_output_tree): Likewise.
6284         * tree-streamer.c (lto_record_common_node): Move from lto-streamer.c
6285         (preload_common_nodes): Likewise.
6286         (lto_streamer_cache_create): Call it.
6287         * tree-streamer.h: Include streamer-hooks.h.
6288         (stream_write_tree): New.
6289         (stream_read_tree): New.
6290         (lto_input_tree): Remove.
6291         (lto_materialize_tree): Declare.
6292         (lto_input_tree_pointers): Declare.
6293         (lto_get_pickled_tree): Declare.
6294         (lto_get_builtin_tree): Declare.
6295         (lto_input_integer_cst): Declare.
6296         (lto_output_tree_header): Declare.
6297         (pack_value_fields): Declare.
6298         (lto_output_tree_pointers): Declare.
6299         (lto_output_integer_cst): Declare.
6300         (lto_output_builtin_tree): Declare.
6301
6302 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
6303
6304         * sel-sched-ir.c (has_dependence_note_reg_use): Call ds_full_merge
6305         only if producer writes to the register given by regno.
6306
6307 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
6308             Alexander Monakov  <amonakov@ispras.ru>
6309
6310         * sched-deps.c (sched_get_condition_with_rev): Rename to ...
6311         (sched_get_condition_with_rev_uncached): ... this.  Factor out
6312         condition caching logic into ...
6313         (sched_get_condition_with_rev): ... this.  Reimplement.  Do not
6314         attempt to use cache for instructions with zero luid.
6315         (sched_analyze_insn): Use INSN_CACHED_COND instead of INSN_COND.
6316         * sched-int.h (INSN_COND): Rename to INSN_CACHED_COND.
6317
6318 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
6319
6320         * sel-sched-ir.c (get_seqno_of_a_pred): Rename to
6321         get_seqno_for_a_jump.  Update the caller.
6322         (get_seqno_by_succs): New.  Use it ...
6323         (get_seqno_for_a_jump): ... here to find a seqno if looking at
6324         predecessors was not sufficient.
6325         (get_seqno_by_preds): Include head in iteration range, exclude insn.
6326
6327 2011-08-11  Dmitry Melnik  <dm@ispras.ru>
6328
6329         * sel-sched-ir.c (invalidate_av_set): Remove the assert.
6330
6331 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
6332
6333         * sel-sched-ir.h (register_unavailable_p): Declare.
6334         * sel-sched-ir.c (register_unavailable_p): New.  Use it...
6335         (set_unavailable_target_for_expr): ... here to properly test
6336         availability of a register.
6337         (speculate_expr): Ditto.
6338         * sel-sched.c (substitute_reg_in_expr): Ditto.
6339         (av_set_could_be_blocked_by_bookkeeping_p): Ditto.
6340
6341 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
6342
6343         * sel-sched.c (verify_target_availability): Fix usage of
6344         hard_regno_nregs.
6345
6346 2011-08-11  Dmitry Melnik  <dm@ispras.ru>
6347
6348         * sel-sched-ir.c (init_global_and_expr_for_insn): Forbid copying of
6349         recognized by cannot_copy_insn_p hook and volatile instructions.
6350
6351 2011-08-11  Dmitry Melnik  <dm@ispras.ru>
6352
6353         * sel-sched-ir.c (merge_expr_data): Take maximum spec.
6354
6355 2011-08-11  Richard Sandiford  <richard.sandiford@linaro.org>
6356
6357         * doc/md.texi (define_bypass): Say that the instruction names can
6358         be filename-style globs.
6359         * Makefile.in (FNMATCH_H): Define.
6360         (build/genattrtab.o, build/genautomata.o): Depend on $(FNMATCH_H).
6361         * genattrtab.c: Include fnmatch.h.
6362         (bypass_list): Change field name from "insn" to "pattern".
6363         (gen_bypass_1): Update accordingly.
6364         (process_bypasses): Use fnmatch to check for matches between
6365         insn reservations and define_bypasses.
6366         * genautomata.c: Include fnmatch.h.
6367         (bypass_decl): Rename in_insn_name and out_insn_name to in_pattern
6368         and out_pattern respectively.
6369         (gen_bypass, insert_bypass): Update accordingly.
6370         (for_each_matching_insn, process_bypass_2, process_bypass_1)
6371         (process_bypass): New functions.
6372         (process_decls): Use process_bypass.  Update after field name changes.
6373
6374 2011-08-11  Georg-Johann Lay  <avr@gjlay.de>
6375
6376         PR target/49687
6377         * config/avr/avr.md (smulqi3_highpart): New insn.
6378         (umulqi3_highpart): New insn.
6379         (*subqi3.ashiftrt7): New insn.
6380         (smulhi3_highpart): New expander.
6381         (umulhi3_highpart): Nex expander.
6382         (*smulhi3_highpart_call): New insn.
6383         (*umulhi3_highpart_call): New insn.
6384         (extend_u): New code attribute.
6385         (extend_prefix): Rename code attribute to extend_su.
6386         * config/avr/avr.c (avr_rtx_costs): Report costs of highpart of
6387         widening QI/HI multiply.
6388
6389 2011-08-11  Ira Rosen  <ira.rosen@linaro.org>
6390
6391         PR tree-optimization/50039
6392         * tree-vect-patterns.c (vect_operation_fits_smaller_type): Check
6393         that DEF_STMT has a stmt_vec_info.
6394
6395 2011-08-10  Richard Guenther  <rguenther@suse.de>
6396
6397         * tree.h (can_trust_pointer_alignment): Remove.
6398         * builtins.c (can_trust_pointer_alignment): Remove.
6399
6400 2011-08-10  Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
6401
6402         * c-typeck.c (scalar_to_vector): New function. Try scalar to
6403         vector conversion.
6404         (stv_conv): New enum for scalar_to_vector return type.
6405         (build_binary_op): Adjust.
6406         * doc/extend.texi: Description of scalar to vector expansion.
6407
6408 2011-08-10  Richard Guenther  <rguenther@suse.de>
6409
6410         * tree.h (get_pointer_alignment): Remove max-align argument.
6411         (get_object_alignment): Likewise.
6412         * builtins.c (get_object_alignment_1): Adjust.
6413         (get_object_alignment): Remove max-align argument.
6414         (get_pointer_alignment): Likewise.
6415         (expand_builtin_strlen): Adjust.
6416         (expand_builtin_memcpy): Likewise.
6417         (expand_builtin_mempcpy_args): Likewise.
6418         (expand_builtin_strncpy): Likewise.
6419         (expand_builtin_memset_args): Likewise.
6420         (expand_builtin_memcmp): Likewise.
6421         (expand_builtin_strcmp): Likewise.
6422         (expand_builtin_strncmp): Likewise.
6423         (get_builtin_sync_mem): Likewise.
6424         (fold_builtin_memset): Likewise.
6425         (fold_builtin_memory_op): Likewise.
6426         (expand_builtin_memory_chk): Likewise.
6427         * emit-rtl.c (get_mem_align_offset): Likewise.
6428         (set_mem_attributes_minus_bitpos): Likewise.
6429         * expr.c (expand_assignment): Likewise.
6430         (expand_expr_real_1): Likewise.
6431         * tree-sra.c (tree_non_mode_aligned_mem_p): Likewise.
6432         * tree-ssa-forwprop.c (simplify_builtin_call): Likewise.
6433         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Likewise.
6434         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Likewise.
6435         * value-prof.c (gimple_stringops_transform): Likewise.
6436
6437 2011-08-10  Paulo J. Matos  <paulo.matos@csr.com>
6438
6439         * doc/tm.texi.in (CLASS_MAX_NREGS): Fix typo.
6440         * doc/tm.texi: Regenerate.
6441
6442 2011-08-10  Georg-Johann Lay  <avr@gjlay.de>
6443
6444         PR target/29560
6445         * config/avr/avr.md (*ashlhiqi3): New insn-and-split.
6446         (*ashl<extend_prefix>qihiqi3): New insn-and-splits.
6447         (*ashl<extend_prefix>qihiqi3.mem): New insn-and-splits.
6448         Add peephole2 to map ashlhi3 to ashlqi3 if high part of
6449         shift target is unused.
6450
6451 2011-08-10  Richard Guenther  <rguenther@suse.de>
6452
6453         PR tree-optimization/49937
6454         * tree-ssa-ccp.c (get_value_from_alignment): Re-implement
6455         using get_object_alignment_1.
6456
6457 2011-08-09  Uros Bizjak  <ubizjak@gmail.com>
6458
6459         * config/i386/i386.c (ix86_emit_i387_round): New function.
6460         * config/i386/i386-protos.h (ix86_emit_i387_round): Declare.
6461         * config/i386/i386.md (round<mode>2): Use X87MODEF mode iterator.
6462         Use ix86_emit_i387_round to expand round function for i387 math.
6463         (lround<X87MODEF:mode><SWI248x:mode>2): Use X87MODEF mode iterator.
6464         Use ix86_emit_i387_round to expand {l,ll}round function for i387 math.
6465
6466 2011-08-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6467
6468         * config/sync.c: Move to ../libgcc.
6469         * Makefile.in (libgcc.mvars): Remove LIBGCC_SYNC, LIBGCC_SYNC_CFLAGS.
6470         * config/mips/t-libgcc-mips16 (LIBGCC_SYNC, LIBGCC_SYNC_CFLAGS):
6471         Remove.
6472
6473 2011-08-09  Anatoly Sokolov  <aesok@post.ru>
6474
6475         * config/mmix/mmix.h (REGISTER_MOVE_COST): Remove macro.
6476         * config/mmix/mmix-protos.h (mmix_register_move_cost): Remove.
6477         * config/mmix/mmix.c (mmix_register_move_cost): Make static.
6478         Change 'from' and 'to' arguments type to reg_class_t.
6479         (TARGET_REGISTER_MOVE_COST): Define.
6480
6481 2011-08-09  Vladimir Makarov  <vmakarov@redhat.com>
6482
6483         PR target/50026
6484         Revert:
6485         PR rtl-optimization/49990
6486         * ira-costs.c (print_allocno_costs, print_pseudo_costs): Don't
6487         ignore classes which can not change mode.
6488         (find_costs_and_classes): Ditto.
6489
6490 2011-08-09  Richard Guenther  <rguenther@suse.de>
6491
6492         * tree-vrp.c (zero_nonzero_bits_from_vr): Also return precise
6493         information for ranges with only negative values.
6494         (extract_range_from_binary_expr_1): Adjust BIT_IOR_EXPR and
6495         BIT_AND_EXPR handling to handle ranges with negative values.
6496
6497 2011-08-09  Kirill Yukhin  <kirill.yukhin@intel.com>
6498
6499         * config/i386/i386.c: Remove traling spaces.
6500         * config/i386/sse.md: Likewise.
6501         (*fma_fmadd_<mode>): Fix insn alternative 1 mnemonic.
6502         (*fma_fmsub_<mode>): Likewise.
6503         (*fma_fnmadd_<mode>): Likewise.
6504         (*fma_fnmsub_<mode>): Likewise.
6505
6506 2011-08-09  Nick Clifton  <nickc@redhat.com>
6507
6508         * config/rx/rx.md: Disable extender peepholes at -O3.
6509
6510 2011-08-09  Uros Bizjak  <ubizjak@gmail.com>
6511
6512         PR target/49781
6513         * config/i386/i386.md (reload_noff_load): New.
6514         (reload_noff_store): Ditto.
6515         * config/i386/i386.c (ix86_secondary_reload): Use
6516         CODE_FOR_reload_noff_load and CODE_FOR_reload_noff_store to handle
6517         double-word moves from/to non-offsetable addresses instead of
6518         generating XMM temporary.
6519
6520 2011-08-09  Anatoly Sokolov  <aesok@post.ru>
6521
6522         * config/mmix/mmix.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P): Remove.
6523
6524 2011-08-09  Ira Rosen  <ira.rosen@linaro.org>
6525
6526         PR tree-optimization/50014
6527         * tree-vect-loop.c (vectorizable_reduction): Get def type before
6528         calling vect_get_vec_def_for_stmt_copy ().
6529
6530 2011-08-08  Vladimir Makarov  <vmakarov@redhat.com>
6531
6532         PR rtl-optimization/49990
6533         * ira-costs.c (print_allocno_costs, print_pseudo_costs): Don't
6534         ignore classes which can not change mode.
6535         (find_costs_and_classes): Ditto.
6536
6537 2011-08-08  Richard Henderson  <rth@redhat.com>
6538
6539         PR middle-end/49990
6540         * config/i386/i386.c (ix86_expand_prologue): Call
6541         for SEH target gen_prologue_use instead of gen_blockage
6542         at prologue's end.
6543
6544 2011-08-08  Martin Jambor  <mjambor@suse.cz>
6545
6546         PR middle-end/49923
6547         * tree-sra.c (access_precludes_ipa_sra_p): Also check access
6548         memory alignment.
6549
6550 2011-08-08   Diego Novillo  <dnovillo@google.com>
6551
6552         * Makefile.in (LTO_STREAMER_H): Add DIAGNOSTIC_H.
6553         (DATA_STREAMER_H): New.
6554         (GIMPLE_STREAMER_H): New.
6555         (TREE_STREAMER_H): New.
6556         (STREAMER_HOOKS_H): New.
6557         (OBJS): Add data-streamer.o, data-streamer-in.o, data-streamer-out.o,
6558         gimple-streamer-in.o, gimple-streamer-out.o, streamer-hooks.o,
6559         tree-streamer.o, tree-streamer-in.o and tree-streamer-out.o.
6560         (data-streamer.o): New.
6561         (data-streamer-in.o): New.
6562         (data-streamer-out.o): New.
6563         (gimple-streamer-in.o): New.
6564         (gimple-streamer-out.o): New.
6565         (streamer-hooks.o): New.
6566         (tree-streamer.o): New.
6567         (tree-streamer-in.o): New.
6568         (tree-streamer-out.o): New.
6569         (lto-cgraph.o): Add dependency on DATA_STREAMER_H and TREE_STREAMER_H.
6570         (lto-streamer-in.o): Add dependency on DATA_STREAMER_H,
6571         GIMPLE_STREAMER_H and TREE_STREAMER_H.
6572         (lto-streamer-out.o): Add dependency on DATA_STREAMER_H,
6573         GIMPLE_STREAMER_H and TREE_STREAMER_H.
6574         (lto-streamer.o): Add dependency on STREAMER_HOOKS_H.
6575         (ipa-prop.o): Add dependency on DATA_STREAMER_H and TREE_STREAMER_H.
6576         (ipa-inline-analysis.o): Likewise.
6577         (ipa-pure-const.o): Likewise.
6578         * data-streamer-in.c: New.
6579         * data-streamer-out.c: New.
6580         * data-streamer.c: New.
6581         * data-streamer.h: New.
6582         * gimple-streamer-in.c: New.
6583         * gimple-streamer-out.c: New.
6584         * gimple-streamer.h: New.
6585         * ipa-inline-analysis.c: Include data-streamer.h.
6586         * ipa-prop.c: Include data-streamer.h.
6587         * ipa-pure-const.c: Include data-streamer.h.
6588         * lto-cgraph.c: Include data-streamer.h.
6589         * lto-section-in.c (lto_input_uleb128): Move to data-streamer-in.c.
6590         (lto_input_widest_uint_uleb128): Likewise.
6591         (lto_input_sleb128): Likewise.
6592         (bp_unpack_var_len_unsigned): Likewise.
6593         (bp_unpack_var_len_int): Likewise.
6594         * lto-section-out.c (lto_output_uleb128_stream): Move to
6595         data-streamer-out.c.
6596         (lto_output_widest_uint_uleb128_stream): Likewise.
6597         (lto_output_sleb128_stream): Likewise.
6598         (bp_pack_var_len_unsigned): Likewise.
6599         (bp_pack_var_len_int): Likewise.
6600         * lto-streamer-in.c: Include data-streamer.h and gimple-streamer.h.
6601         (struct string_slot): Remove.  Update all users.
6602         (lto_tag_check_set): Make extern.
6603         (lto_tag_check_range): Move to lto-streamer.h.
6604         (lto_tag_check): Likewise.
6605         (hash_string_slot_node): Remove.  Update all users.
6606         (eq_string_slot_node): Remove.  Update all users.
6607         (string_for_index): Move to data-streamer-in.c
6608         (input_string_internal): Likewise.
6609         (input_string_cst): Move to tree-streamer-in.c.
6610         (input_identifier): Likewise.
6611         (lto_input_string): Move to data-streamer-in.c
6612         (input_record_start): Move to data-streamer.h
6613         (canon_file_name): Use new definition of struct string_slot
6614         from data-streamer.h.  Set S_SLOT.LEN.
6615         (lto_input_location): Make extern.
6616         (lto_input_chain): Move to tree-streamer-in.c.
6617         (lto_init_eh): Make extern.
6618         (input_phi): Move to gimple-streamer-in.c.
6619         (input_gimple_stmt): Likewise.
6620         (input_bb): Likewise.
6621         (unpack_ts_base_value_fields): Move to tree-streamer-in.c.
6622         (unpack_ts_real_cst_value_fields): Likewise.
6623         (unpack_ts_fixed_cst_value_fields): Likewise.
6624         (unpack_ts_decl_common_value_fields): Likewise.
6625         (unpack_ts_decl_wrtl_value_fields): Likewise.
6626         (unpack_ts_decl_with_vis_value_fields): Likewise.
6627         (unpack_ts_function_decl_value_fields): Likewise.
6628         (unpack_ts_type_common_value_fields): Likewise.
6629         (unpack_ts_block_value_fields): Likewise.
6630         (unpack_ts_translation_unit_decl_value_fields): Likewise.
6631         (unpack_value_fields): Likewise.
6632         (lto_materialize_tree): Likewise.
6633         (lto_input_ts_common_tree_pointers): Likewise.
6634         (lto_input_ts_vector_tree_pointers): Likewise.
6635         (lto_input_ts_complex_tree_pointers): Likewise.
6636         (lto_input_ts_decl_minimal_tree_pointers): Likewise.
6637         (lto_input_ts_decl_common_tree_pointers): Likewise.
6638         (lto_input_ts_decl_non_common_tree_pointers): Likewise.
6639         (lto_input_ts_decl_with_vis_tree_pointers): Likewise.
6640         (lto_input_ts_field_decl_tree_pointers): Likewise.
6641         (lto_input_ts_function_decl_tree_pointers): Likewise.
6642         (lto_input_ts_type_common_tree_pointers): Likewise.
6643         (lto_input_ts_type_non_common_tree_pointers): Likewise.
6644         (lto_input_ts_list_tree_pointers): Likewise.
6645         (lto_input_ts_vec_tree_pointers): Likewise.
6646         (lto_input_ts_exp_tree_pointers): Likewise.
6647         (lto_input_ts_block_tree_pointers): Likewise.
6648         (lto_input_ts_binfo_tree_pointers): Likewise.
6649         (lto_input_ts_constructor_tree_pointers): Likewise.
6650         (lto_input_ts_target_option): Likewise.
6651         (lto_input_ts_translation_unit_decl_tree_pointers): Likewise.
6652         (lto_input_tree_pointers): Likewise.
6653         (lto_get_pickled_tree): Likewise.
6654         (lto_get_builtin_tree): Likewise.
6655         (lto_read_tree): Likewise.
6656         (lto_input_integer_cst): Likewise.
6657         (lto_input_tree): Likewise.
6658         * lto-streamer-out.c: Include data-streamer.h,
6659         gimple-streamer.h and streamer-hooks.h.
6660         (struct string_slot): Move to data-streamer.h.
6661         (hash_string_slot_node): Likewise.
6662         (eq_string_slot_node): Likewise.
6663         (lto_string_index): Move to data-streamer-out.c.
6664         (lto_output_string_with_length): Likewise.
6665         (lto_output_string): Likewise.
6666         (output_string_cst): Move to tree-streamer-out.c.
6667         (output_identifier): Likewise.
6668         (output_zero): Move to data-streamer-out.c
6669         (output_uleb128): Likewise.
6670         (output_sleb128): Likewise.
6671         (output_record_start): Move to data-streamer.h
6672         (pack_ts_base_value_fields): Move to tree-streamer-out.c.
6673         (pack_ts_real_cst_value_fields): Likewise.
6674         (pack_ts_fixed_cst_value_fields): Likewise.
6675         (pack_ts_decl_common_value_fields): Likewise.
6676         (pack_ts_decl_wrtl_value_fields): Likewise.
6677         (pack_ts_decl_with_vis_value_fields): Likewise.
6678         (pack_ts_function_decl_value_fields): Likewise.
6679         (pack_ts_type_common_value_fields): Likewise.
6680         (pack_ts_block_value_fields): Likewise.
6681         (pack_ts_translation_unit_decl_value_fields): Likewise.
6682         (pack_value_fields): Likewise.
6683         (lto_output_chain): Likewise.
6684         (lto_output_ts_common_tree_pointers): Likewise.
6685         (lto_output_ts_vector_tree_pointers): Likewise.
6686         (lto_output_ts_complex_tree_pointers): Likewise.
6687         (lto_output_ts_decl_minimal_tree_pointers): Likewise.
6688         (lto_output_ts_decl_common_tree_pointers): Likewise.
6689         (lto_output_ts_decl_non_common_tree_pointers): Likewise.
6690         (lto_output_ts_decl_with_vis_tree_pointers): Likewise.
6691         (lto_output_ts_field_decl_tree_pointers): Likewise.
6692         (lto_output_ts_function_decl_tree_pointers): Likewise.
6693         (lto_output_ts_type_common_tree_pointers): Likewise.
6694         (lto_output_ts_type_non_common_tree_pointers): Likewise.
6695         (lto_output_ts_list_tree_pointers): Likewise.
6696         (lto_output_ts_vec_tree_pointers): Likewise.
6697         (lto_output_ts_exp_tree_pointers): Likewise.
6698         (lto_output_ts_block_tree_pointers): Likewise.
6699         (lto_output_ts_binfo_tree_pointers): Likewise.
6700         (lto_output_ts_constructor_tree_pointers): Likewise.
6701         (lto_output_ts_target_option): Likewise.
6702         (lto_output_ts_translation_unit_decl_tree_pointers): Likewise.
6703         (lto_output_tree_pointers): Likewise.
6704         (lto_output_tree_header): Likewise.
6705         (lto_output_builtin_tree): Likewise.
6706         (lto_write_tree): Likewise.
6707         (lto_output_integer_cst): Likewise.
6708         (lto_output_tree): Likewise.
6709         (output_phi): Move to gimple-streamer-out.c.
6710         (output_gimple_stmt): Likewise.
6711         (output_bb): Likewise.
6712         * lto-streamer.c: Include tree-streamer.h and streamer-hooks.h.
6713         (streamer_hooks): Move to streamer-hooks.c.
6714         (check_handled_ts_structures): Move to tree-streamer.c
6715         (lto_streamer_cache_add_to_node_array): Likewise.
6716         (lto_streamer_cache_insert_1): Likewise.
6717         (lto_streamer_cache_insert): Likewise.
6718         (lto_streamer_cache_insert_at): Likewise.
6719         (lto_streamer_cache_append): Likewise.
6720         (lto_streamer_cache_lookup): Likewise.
6721         (lto_streamer_cache_get): Likewise.
6722         (lto_record_common_node): Likewise.
6723         (lto_preload_common_nodes): Likewise.
6724         (lto_streamer_cache_create): Likewise.
6725         (lto_streamer_cache_delete): Likewise.
6726         (streamer_hooks_init): Move to streamer-hooks.c.
6727         * lto-streamer.h: Include diagnostic.h
6728         (struct output_block, struct lto_input_block,
6729         struct data_in, struct bitpack_d): Remove forward declarations.
6730         (struct bitpack_d): Move to data-streamer.h.
6731         (struct lto_streamer_cache_d): Move to tree-streamer.h.
6732         (struct streamer_hooks): Move to streamer-hooks.h.
6733         (bp_pack_var_len_unsigned): Move to data-streamer.h.
6734         (bp_pack_var_len_int): Likewise.
6735         (bp_unpack_var_len_unsigned): Likewise.
6736         (bp_unpack_var_len_int): Likewise.
6737         (lto_input_location): Declare.
6738         (lto_tag_check_set): Declare.
6739         (lto_init_eh): Declare.
6740         (lto_output_tree_ref): Declare.
6741         (lto_output_location): Declare.
6742         (bitpack_create): Move to data-streamer.h.
6743         (bp_pack_value): Likewise.
6744         (lto_output_bitpack): Likewise.
6745         (lto_input_bitpack): Likewise.
6746         (bp_unpack_value): Likewise.
6747         (lto_output_1_stream): Likewise.
6748         (lto_input_1_unsigned): Likewise.
6749         (lto_output_int_in_range): Likewise.
6750         (lto_input_int_in_range): Likewise.
6751         (bp_pack_int_in_range): Likewise.
6752         (bp_unpack_int_in_range): Likewise.
6753         (lto_output_enum): Likewise.
6754         (lto_input_enum): Likewise.
6755         (bp_pack_enum): Likewise.
6756         (bp_unpack_enum): Likewise.
6757         * streamer-hooks.c: New.
6758         * streamer-hooks.h: New.
6759         * tree-streamer-in.c: New.
6760         * tree-streamer-out.c: New.
6761         * tree-streamer.c: New.
6762         * tree-streamer.h: New.
6763
6764 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6765
6766         * gthr-posix95.h: Remove.
6767         * gthr.h [_PTHREADS95]: Remove.
6768         * configure.ac (enable_threads): Remove posix95.
6769         * configure: Regenerate.
6770         * doc/install.texi (Configuration, --enable-threads): Remove posix95.
6771
6772 2011-08-08  Uros Bizjak  <ubizjak@gmail.com>
6773
6774         PR target/49781
6775         * config/i386/i386.c (ix86_decompose_address): Allow zero-extended
6776         SImode addresses.
6777         (ix86_print_operand_address): Handle zero-extended addresses.
6778         (memory_address_length): Add length of addr32 prefix for
6779         zero-extended addresses.
6780         (ix86_secondary_reload): Handle moves to/from double-word general
6781         registers from/to zero-extended addresses.
6782         * config/i386/predicates.md (lea_address_operand): Reject
6783         zero-extended operands.
6784
6785 2011-08-08  H.J. Lu  <hongjiu.lu@intel.com>
6786
6787         PR other/48007
6788         * config.gcc (libgcc_tm_file): Add i386/value-unwind.h for Linux/x86.
6789
6790         * system.h (REG_VALUE_IN_UNWIND_CONTEXT): Poisoned.
6791         (ASSUME_EXTENDED_UNWIND_CONTEXT): Likewise.
6792
6793         * unwind-dw2.c (ASSUME_EXTENDED_UNWIND_CONTEXT): New.
6794         (_Unwind_Context_Reg_Val): Likewise.
6795         (_Unwind_Get_Unwind_Word): Likewise.
6796         (_Unwind_Get_Unwind_Context_Reg_Val): Likewise.
6797         (_Unwind_Context): Use _Unwind_Context_Reg_Val on the reg field.
6798         (_Unwind_IsExtendedContext): Check ASSUME_EXTENDED_UNWIND_CONTEXT
6799         for EXTENDED_CONTEXT_BIT.
6800         (__frame_state_for): Likewise.
6801         (uw_init_context_1): Likewise.
6802         (_Unwind_GetGR): Updated.
6803         (_Unwind_SetGR): Likewise.
6804         (_Unwind_GetGRPtr): Likewise.
6805         (_Unwind_SetGRPtr): Likewise.
6806         (_Unwind_SetGRValue): Likewise.
6807         (_Unwind_GRByValue): Likewise.
6808         (uw_install_context_1): Likewise.
6809
6810         * doc/tm.texi.in: Document REG_VALUE_IN_UNWIND_CONTEXT and
6811         ASSUME_EXTENDED_UNWIND_CONTEXT.
6812         * doc/tm.texi: Regenerated.
6813
6814 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6815
6816         * Makefile.in (gengtype$(exeext)): Add $(LDFLAGS).
6817
6818 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6819
6820         * doc/invoke.texi (DEC Alpha Options, -mcpu): native support isn't
6821         Linux/GNU-specific.
6822         (DEC Alpha Options, -mtune): Likewise.
6823         (MIPS Options, -march): native is supported on IRIX.
6824
6825 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6826
6827         * config/sparc/driver-sparc.c: New file.
6828         * config/sparc/x-sparc: New file.
6829         * config.host: Use driver-sparc.o, sparc/x-sparc on sparc*-*-solaris2*.
6830         * config/sparc/sparc.opt (native): New value for enum processor_type.
6831         * config/sparc/sparc-opts.h (PROCESSOR_NATIVE): Declare.
6832         * config/sparc/sparc.c (sparc_option_override): Abort if
6833         PROCESSOR_NATIVE gets here.
6834         * config/sparc/sol2.h [__sparc__] (host_detect_local_cpu): Declare.
6835         (EXTRA_SPEC_FUNCTIONS, MCPU_MTUNE_NATIVE_SPECS,
6836         DRIVER_SELF_SPECS): Define.
6837         * doc/invoke.texi (SPARC Options, -mcpu): Document native.
6838         (SPARC Options, -mtune): Likewise.
6839         * configure.ac (EXTRA_GCC_LIBS): Check for libkstat.
6840         Substitute result.
6841         * configure: Regenerate.
6842         * Makefile.in (EXTRA_GCC_LIBS): Set.
6843         (xgcc$(exeext)): Add $(EXTRA_GCC_LIBS).
6844         (cpp$(exeext)): Likewise.
6845
6846 2011-08-08  Richard Guenther  <rguenther@suse.de>
6847
6848         * tree-vrp.c (extract_range_from_unary_expr_1): New function,
6849         split out from ...
6850         (extract_range_from_unary_expr): ... here.  Handle BIT_NOT_EXPR
6851         by composition.
6852
6853 2011-08-08  Mikael Pettersson  <mikpe@it.uu.se>
6854
6855         PR tree-optimization/50005
6856         * ipa-inline-analysis (remap_predicate): Add cast to
6857         silence signed/unsigned comparison warning.
6858
6859 2011-08-08  Richard Sandiford  <richard.sandiford@linaro.org>
6860
6861         * modulo-sched.c (get_sched_window): Use a table for the debug output.
6862         Print the current ii.
6863         (sms_schedule_by_order): Reduce whitespace in dump line.
6864
6865 2011-08-08  Richard Sandiford  <richard.sandiford@linaro.org>
6866
6867         * modulo-sched.c (get_sched_window): Use just one loop for predecessors
6868         and one loop for successors.  Fix upper bound of memory range.
6869
6870 2011-08-06  Uros Bizjak  <ubizjak@gmail.com>
6871
6872         PR target/50001
6873         * config/alpha/alpha.c (alpha_instantiate_decls): New function.
6874         (TARGET_INSTANTIATE_DECLS): New define.
6875
6876 2011-08-06  Paolo Bonzini  <bonzini@gnu.org>
6877             Mikael Morin   <mikael.morin@sfr.fr>
6878
6879         * Makefile.in (INCLUDES_FOR_TARGET): New.
6880         (LIBGCC2_CFLAGS): Use it.
6881         (CRTSTUFF_CFLAGS): Use it instead of INCLUDES.
6882
6883 2011-08-06  Uros Bizjak  <ubizjak@gmail.com>
6884
6885         * config/i386/i386.c (ix86_compute_frame_layout): Simplify
6886         frame->save_regs_using_mov calculation.
6887
6888 2011-08-06  Uros Bizjak  <ubizjak@gmail.com>
6889
6890         * config/i386/i386.md (ssemodesuffix): Remove V8SI mode.
6891         * config/i386/sse.md (castmode): New mode attribute.
6892         (avx_<castmode><avxsizesuffix>_<castmode>): Rename from
6893         avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>.
6894
6895 2011-08-05  Jan Hubicka  <jh@suse.cz>
6896
6897         PR middle-end/49494
6898         * ipa-inline-analysis.c (remap_predicate): Add bounds check.
6899
6900 2011-08-05  Jan Hubicka  <jh@suse.cz>
6901
6902         PR middle-end/49500
6903         * tree-emultls.c (new_emutls_decl):Add alias_of parameter;
6904         handle aliases.
6905         (create_emultls_var):New function.
6906         (ipa_lower_emutls): Handle aliases correctly.
6907
6908 2011-08-05  Jan Hubicka  <jh@suse.cz>
6909
6910         PR middle-end/49735
6911         * ipa-inline.c (recursive_inlining): Look through aliases.
6912
6913 2011-08-05  Jason Merrill  <jason@redhat.com>
6914
6915         * config/i386/i386.c (setup_incoming_varargs_ms_64): Move
6916         declarations to beginning of function.
6917
6918 2011-08-05  Bernd Schmidt  <bernds@codesourcery.com>
6919
6920         PR rtl-optimization/49900
6921         * sched-ebb.c (add_deps_for_risky_insns): Also add dependencies to
6922         ensure basic blocks stay in the same order.
6923
6924 2011-08-05  Aldy Hernandez  <aldyh@redhat.com>
6925
6926         * config/s390/s390.c (s390_expand_cs_hqi): Add new arguments to
6927         store_bit_field.
6928         (s390_expand_atomic): Same.
6929
6930 2011-08-05  Richard Henderson  <rth@redhat.com>
6931
6932         PR rtl-opt/49977
6933         * dwarf2cfi.c (scan_insn_after): Split out of ...
6934         (scan_trace): ... here.  Correctly place notes wrt sequences.
6935
6936 2011-08-05  Kaz Kojima  <kkojima@gcc.gnu.org>
6937             Richard Henderson  <rth@redhat.com>
6938
6939         PR rtl-opt/49982
6940         * expr.c (fixup_args_size_notes): Look through no-op moves.
6941
6942 2011-08-05  Uros Bizjak  <ubizjak@gmail.com>
6943
6944         * config/i386/i386.md (*push<mode>2): Use "o" constraint instead
6945         of "m" for operand 0.  Add type and mode attribute.
6946         (*pushxf_nointeger"): Use "<" constraint for operand 0.
6947         (*pushdf_rex64): New pattern, split out of *pushdf.  Use "m"
6948         constraint instead of "o" for opreand 1.
6949         (*pushdf): Disable for TARGET_64BIT.  Correct mode attribute.
6950         (*movdi_internal_rex64): Use "!o" constraint instead of "!m" for
6951         operand 0, alternative 4.
6952         (*movdf_internal_rex64): Ditto for operand 0, alernative 6.
6953
6954 2011-08-05  Uros Bizjak  <ubizjak@gmail.com>
6955
6956         * config/i386/predicates.md (lea_address_operand): Rename from
6957         no_seg_address_operand.
6958         * config/i386/i386.md (*lea_1): Update operand 1 predicate for rename.
6959         (*lea_1_zext): Ditto.
6960         (*lea_2): Ditto.
6961         (*lea_2_zext): Ditto.
6962
6963 2011-08-05  Uros Bizjak  <ubizjak@gmail.com>
6964
6965         * config/i386/i386.c (ix86_print_operand_address): Handle SUBREGs of
6966         parts.base and parts.index.
6967         * config/i386/predicates.md (aligned_operand): Ditto.
6968         (cmpxchg8b_pic_memory_operand): Ditto.
6969
6970 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6971
6972         * config/soft-fp: Move to ../libgcc.
6973         * Makefile.in (SFP_MACHINE): Remove.
6974         (libgcc-support): Remove $(SFP_MACHINE) dependency.
6975         * config/arm/sfp-machine.h: Move to ../libgcc/config/arm.
6976         * config/arm/t-arm-softfp: Move to
6977         ../libgcc/config/arm/t-softfp.
6978         * config/c6x/sfp-machine.h: Move to ../libgcc/config/c6x.
6979         * config/c6x/t-c6x-softfp: Remove.
6980         * config/i386/sfp-machine.h: Move to ../libgcc/config/i386.
6981         * config/i386/t-fprules-softfp: Move to
6982         ../libgcc/config/t-softfp-tf.
6983         * config/ia64/sfp-machine.h: Move to ../libgcc/config/ia64.
6984         * config/ia64/t-fprules-softfp: Remove.
6985         * config/lm32/sfp-machine.h: Move to ../libgcc/config/lm32.
6986         * config/lm32/t-fprules-softfp: Remove.
6987         * config/moxie/sfp-machine.h: Remove.
6988         * config/moxie/t-moxie-softfp: Remove.
6989         * config/rs6000/darwin-ldouble-format: Move to
6990         ../libgcc/config/rs6000/ibm-ldouble-format.
6991         * config/rs6000/darwin-ldouble.c: Move to
6992         ../libgcc/config/rs6000/ibm-ldouble.c
6993         * config/rs6000/libgcc-ppc-glibc.ver: Move to ../libgcc/config/rs6000.
6994         * config/rs6000/libgcc-ppc64.ver: Likewise.
6995         * config/rs6000/sfp-machine.h: Likewise.
6996         * config/rs6000/t-aix43 (SHLIB_MAPFILES): Remove
6997         $(srcdir)/config/rs6000/libgcc-ppc64.ver.
6998         (LIB2FUNCS_EXTRA): Remove.
6999         (TARGET_LIBGCC2_CFLAGS): Remove.
7000         * config/rs6000/t-aix52: Likewise
7001         * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Remove
7002         $(srcdir)/config/rs6000/darwin-ldouble.c.
7003         (SHLIB_MAPFILES): Remove.
7004         * config/rs6000/t-darwin64 (LIB2FUNCS_EXTRA): Remove
7005         $(srcdir)/config/rs6000/darwin-ldouble.c.
7006         * config/rs6000/t-fprules-softfp: Move to
7007         ../libgcc/config/t-softfp-sfdf.
7008         * config/rs6000/t-freebsd: Move to ../libgcc/config/rs6000.
7009         * config/rs6000/t-linux64 (softfp_wrap_start, softfp_wrap_end): Remove.
7010         * config/rs6000/t-ppccomm (LIB2FUNCS_EXTRA): Remove
7011         $(srcdir)/config/rs6000/darwin-ldouble.c.
7012         * config/score/sfp-machine.h: Move to ../libgcc/config/score.
7013         * config/score/t-score-softfp: Remove.
7014         * config.gcc (arm*-*-linux*): Remove arm/t-arm-softfp,
7015         soft-fp/t-softfp from tmake_file.
7016         (arm*-*-uclinux*): Likewise.
7017         (arm*-*-ecos-elf): Likewise.
7018         (arm*-*-eabi*, arm*-*-symbianelf*): Likewise.
7019         (arm*-*-rtems*): Likewise.
7020         (arm*-*-elf): Likewise.
7021         (moxie-*-elf): Remove moxie/t-moxie-softfp, soft-fp/t-softfp from
7022         tmake_file.
7023         (moxie-*-uclinux*): Likewise.
7024         (moxie-*-rtems*): Likewise.
7025         (lm32-*-elf*): Remove lm32/t-fprules-softfp, soft-fp/t-softfp from
7026         tmake_file.
7027         (lm32-*-rtems*): Likewise.
7028         (lm32-*-uclinux*): Likewise.
7029         (powerpc-*-freebsd*): Remove rs6000/t-freebsd,
7030         rs6000/t-fprules-softfp, soft-fp/t-softfp from tmake_file.
7031         (powerpc-*-linux*, powerpc64-*-linux*): Remove
7032         rs6000/t-fprules-softfp, soft-fp/t-softfp from tmake_file.
7033         (score-*-elf): Remove score/t-score-softfp, soft-fp/t-softfp from
7034         tmake_file.
7035         (tic6x-*-elf): Remove c6x/t-c6x-softfp, soft-fp/t-softfp from
7036         tmake_file.
7037         (tic6x-*-uclinux): Likewise.
7038         (i[34567]86-*-darwin*, x86_64-*-darwin*): Remove i386/t-fprules-softfp,
7039         soft-fp/t-softfp from tmake_file.
7040         (i[34567]86-*-linux*, x86_64-*-linux*, i[34567]86-*-kfreebsd*-gnu)
7041         (x86_64-*-kfreebsd*-gnu, i[34567]86-*-gnu*): Likewise.
7042         (i[34567]86-*-solaris2*, x86_64-*-solaris2.1[0-9]*): Likewise.
7043         (i[34567]86-*-cygwin*, i[34567]86-*-mingw*, x86_64-*-mingw*): Likewise.
7044         (i[34567]86-*-freebsd*, x86_64-*-freebsd*): Likewise.
7045
7046 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7047
7048         * Makefile.in (FPBIT_FUNCS, DPBIT_FUNCS, TPBIT_FUNCS): Remove.
7049         (libgcc-support): Remove $(FPBIT), $(DPBIT), $(TPBIT) dependencies.
7050         (libgcc.mvars): Remove FPBIT, FPBIT_FUNCS, DPBIT, DPBIT_FUNCS,
7051         TPBIT, TPBIT_FUNCS.
7052         * config/fp-bit.c, config/fp-bit.h: Move to ../libgcc.
7053         * config/arm/t-strongarm-elf (FPBIT, DPBIT, dp-bit.c, fp-bit.c):
7054         Remove.
7055         * config/arm/t-vxworks: Likewise.
7056         * config/arm/t-wince-pe: Likewise.
7057         * config/avr/t-avr (fp-bit.c, FPBIT): Remove.
7058         * config/bfin/t-bfin (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
7059         * config/bfin/t-bfin-elf: Likewise.
7060         * config/bfin/t-bfin-linux: Likewise.
7061         * config/bfin/t-bfin-uclinux: Likewise.
7062         * config/cris/t-cris (FPBIT, DPBIT, dp-bit.c, tmplibgcc_fp_bit.c):
7063         Remove.
7064         * config/fr30/t-fr30: Likewise.
7065         * config/frv/t-frv: Likewise.
7066         * config/h8300/t-h8300 (FPBIT, fp-bit.c): Remove.
7067         * config/iq2000/t-iq2000 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
7068         * config/m32c/t-m32c: Likewise.
7069         * config/m32r/t-linux: (LIB2FUNCS_EXTRA, fp-bit.c, dp-bit.c): Remove.
7070         * config/m32r/t-m32r (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
7071         * config/mcore/t-mcore: Likewise.
7072         * config/mep/t-mep: Likewise.
7073         * config/microblaze/t-microblaze: Likewise.
7074         * config/mips/t-linux64 (TPBIT, tp-bit.c): Remove.
7075         * config/mips/t-mips (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
7076         * config/mips/t-sdemtk (FPBIT, DPBIT): Remove.
7077         * config/mips/t-sr71k (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
7078         * config/mn10300/t-linux: Remove.
7079         * config/mn10300/t-mn10300 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
7080         * config/pdp11/t-pdp11: Likewise.
7081         * config/picochip/t-picochip (FPBIT, fp-bit.c): Remove.
7082         * config/rs6000/ppc64-fp.c: Move to ../libgcc/config/rs6000.
7083         * config/rs6000/t-aix43 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
7084         (LIB2FUNCS_EXTRA): Remove $(srcdir)/config/rs6000/ppc64-fp.c.
7085         * config/rs6000/t-aix52: Likewise.
7086         * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Remove
7087         $(srcdir)/config/rs6000/ppc64-fp.c.
7088         * config/rs6000/t-fprules-fpbit: Remove.
7089         * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Remove.
7090         * config/rs6000/t-lynx (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
7091         * config/sh/t-netbsd (FPBIT, DPBIT): Remove.
7092         * config/sh/t-sh (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
7093         * config/sparc/t-elf: Likewise.
7094         * config/sparc/t-leon: Likewise.
7095         * config/sparc/t-leon3: Likewise.
7096         * config/spu/t-spu-elf: Likewise.
7097         (DPBIT_FUNCS): Remove.
7098         * config/stormy16/t-stormy16 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
7099         * config/v850/t-v850: Likewise.
7100         * config.gcc (avr-*-rtems*): Add avr/avr-lib.h to libgcc_tm_file.
7101         (avr-*-*): Likewise.
7102         (h8300-*-rtems*): Set libgcc_tm_file.
7103         (h8300-*-elf*): Likewise.
7104         (powerpc-*-eabisimaltivec*): Remove rs6000/t-fprules-fpbit from
7105         tmake_file.
7106         (powerpc-*-eabisim*): Likewise.
7107         (powerpc-*-elf*): Likewise.
7108         (powerpc-*-eabialtivec*): Likewise.
7109         (powerpc-xilinx-eabi*): Likewise.
7110         (powerpc-*-eabi*): Likewise.
7111         (powerpc-*-rtems*): Likewise.
7112         (powerpc-wrs-vxworks, powerpc-wrs-vxworksae): Likewise.
7113         (powerpcle-*-elf*): Likewise.
7114         (powerpcle-*-eabisim*): Likewise.
7115         (powerpcle-*-eabi*): Likewise.
7116         (rx-*-elf*): Add rx/rx-lib.h to libgcc_tm_file.
7117         (am33_2.0-*-linux*): Remove mn10300/t-linux from tmake_file.
7118         * doc/fragments.texi (Target Fragment, Floating Point Emulation):
7119         Remove.
7120
7121 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7122
7123         * Makefile.in (UNWIND_H): Remove.
7124         (LIB2ADDEH, LIB2ADDEHSTATIC, LIB2ADDEHSHARED): Move to
7125         ../libgcc/Makefile.in.
7126         (LIBUNWIND, SHLIBUNWIND_LINK, SHLIBUNWIND_INSTALL): Likewise.
7127         (LIBUNWINDDEP): Remove.
7128         (libgcc-support): Remove LIB2ADDEH, $(srcdir)/emutls.c dependencies.
7129         (libgcc.mvars): Remove LIB2ADDEH, LIB2ADDEHSTATIC, LIB2ADDEHSHARED,
7130         LIBUNWIND, SHLIBUNWIND_LINK, SHLIBUNWIND_INSTALL.
7131         (stmp-int-hdrs): Remove $(UNWIND_H) dependency.
7132         Don't copy $(UNWIND_H).
7133         * config.gcc (ia64*-*-linux*): Remove with_system_libunwind handling.
7134         * configure.ac (GCC_CHECK_UNWIND_GETIPINFO): Remove.
7135         * aclocal.m4: Regenerate.
7136         * configure: Regenerate.
7137         * emutls.c, unwind-c.c, unwind-compat.c, unwind-compat.h,
7138         unwind-dw2-fde-compat.c, unwind-dw2-fde-glibc.c, unwind-dw2-fde.c,
7139         unwind-dw2-fde.h, unwind-dw2.c, unwind-dw2.h, unwind-generic.h,
7140         unwind-pe.h, unwind-sjlj.c, unwind.inc: Move to ../libgcc.
7141         * unwind-dw2-fde-darwin.c: Move to ../libgcc/config.
7142         * config/arm/libunwind.S, config/arm/pr-support.c,
7143         config/arm/unwind-arm.c, config/arm/unwind-arm.h: Move to
7144         ../libgcc/config/arm.
7145         * config/arm/t-bpabi (UNWIND_H, LIB2ADDEH): Remove.
7146         * config/arm/t-symbian (UNWIND_H, LIB2ADDEH): Remove.
7147         * config/frv/t-frv ($(T)frvbegin$(objext)): Use
7148         $(srcdir)/../libgcc to refer to unwind-dw2-fde.h.
7149         ($(T)frvend$(objext)): Likewise.
7150         * config/ia64/t-glibc (LIB2ADDEH): Remove.
7151         * config/ia64/t-glibc-libunwind: Move to ../libgcc/config/ia64.
7152         * config/ia64/fde-glibc.c, config/ia64/fde-vms.c,
7153         config/ia64/unwind-ia64.c, config/ia64/unwind-ia64.h: Move to
7154         ../libgcc/config/ia64.
7155         * config/ia64/t-hpux (LIB2ADDEH): Remove.
7156         * config/ia64/t-ia64 (LIB2ADDEH): Remove.
7157         * config/ia64/t-vms (LIB2ADDEH): Remove.
7158         * config/ia64/vms.h (UNW_IVMS_MODE,
7159         MD_UNW_COMPATIBLE_PERSONALITY_P): Remove.
7160         * config/picochip/t-picochip (LIB2ADDEH): Remove.
7161         * config/rs6000/aix.h (R_LR, MD_FROB_UPDATE_CONTEXT): Remove.
7162         * config/rs6000/t-darwin (LIB2ADDEH): Remove.
7163         * config/rs6000/darwin-fallback.c: Move to ../libgcc/config/rs6000.
7164         * config/sh/t-sh ($(T)unwind-dw2-Os-4-200.o): Use
7165         $(srcdir)/../libgcc to refer to unwinder sources.
7166         * config/spu/t-spu-elf (LIB2ADDEH): Remove.
7167         * config/t-darwin (LIB2ADDEH): Remove.
7168         * config/t-freebsd (LIB2ADDEH): Remove.
7169         * config/t-libunwind (LIB2ADDEH, LIB2ADDEHSTATIC): Remove.
7170         * config/t-libunwind-elf: Move to ../libgcc/config.
7171         * config/t-linux (LIB2ADDEH): Remove.
7172         * config/t-sol2 (LIB2ADDEH): Remove.
7173         * config/xtensa/t-xtensa (LIB2ADDEH): Remove.
7174         * system.h (MD_FROB_UPDATE_CONTEXT): Poison.
7175
7176 2011-08-05  H.J. Lu  <hongjiu.lu@intel.com>
7177
7178         * config/i386/i386.c (processor_alias_table): Add core-avx-i.
7179
7180         * doc/invoke.texi: Document core-avx-i.
7181
7182 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7183
7184         * tsystem.h (CONST_CAST2, CONST_CAST): Define.
7185
7186 2011-08-05  Ira Rosen  <ira.rosen@linaro.org>
7187
7188         * tree-vect-loop.c (vect_create_epilog_for_reduction): Use the
7189         result of multiple results reduction when extracting the final
7190         value using scalar code.
7191
7192 2011-08-05  Richard Guenther  <rguenther@suse.de>
7193
7194         PR tree-optimization/49984
7195         * tree-vrp.c (extract_range_from_binary_expr_1): Handle BIT_XOR_EXPR.
7196
7197 2011-08-05  Richard Guenther  <rguenther@suse.de>
7198
7199         * tree-vrp.c (zero_nonzero_bits_from_vr): Make sure to always
7200         return true for constant integer ranges.
7201         (extract_range_from_binary_expr_1): Simplify BIT_AND_EXPR and
7202         BIT_IOR_EXPR handling.
7203
7204 2011-08-04  Kai Tietz  <ktietz@redhat.com>
7205
7206         * config/i386/i386.c (setup_incoming_varargs_ms_64): Set
7207         ix86_varargs_gpr_size and ix86_varargs_fpr_size to zero.
7208
7209 2011-08-04  Ira Rosen  <ira.rosen@linaro.org>
7210
7211         * tree-vectorizer.h (struct _stmt_vec_info): Add new field for
7212         pattern def statement, and its access macro.
7213         (NUM_PATTERNS): Set to 5.
7214         * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
7215         pattern def statement.
7216         (vect_transform_loop): Likewise.
7217         * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add new
7218         function vect_recog_over_widening_pattern ().
7219         (vect_operation_fits_smaller_type): New function.
7220         (vect_recog_over_widening_pattern, vect_mark_pattern_stmts):
7221         Likewise.
7222         (vect_pattern_recog_1): Move the code that marks pattern
7223         statements to vect_mark_pattern_stmts (), and call it.  Update
7224         documentation.
7225         * tree-vect-stmts.c (vect_supportable_shift): New function.
7226         (vect_analyze_stmt): Handle pattern def statement.
7227         (new_stmt_vec_info): Initialize pattern def statement.
7228
7229 2011-08-04  Richard Henderson  <rth@redhat.com>
7230
7231         PR target/49964
7232         * config/i386/i386.c (ix86_expand_call): Don't create nested
7233         PARALLELs for TARGET_VZEROUPPER.
7234         (ix86_split_call_vzeroupper): Fix extraction of the original call.
7235         * config/i386/i386.md (*call_rex64_ms_sysv_vzeroupper): Don't
7236         recognize nested PARALLELs.
7237         (*call_pop_vzeroupper, *sibcall_pop_vzeroupper,
7238         *call_value_rex64_ms_sysv_vzeroupper, *call_value_pop_vzeroupper,
7239         *sibcall_value_pop_vzeroupper): Likewise.
7240
7241 2011-08-04  Richard Henderson  <rth@redhat.com>
7242
7243         PR middle-end/49968
7244         * calls.c (expand_call): Use fixup_args_size_notes for
7245         emit_stack_restore.
7246         * expr.c (fixup_args_size_notes): Allow STACK_POINTER_REGNUM sets
7247         in non-standard modes.
7248
7249 2011-08-04  Jakub Jelinek  <jakub@redhat.com>
7250
7251         * gcc.c (self_spec): New variable.
7252         (static_specs): Add self_spec.
7253         (main): Call do_self_spec on "self_spec" specs after reading
7254         user specs files.  Move compare_debug handling right after that.
7255
7256 2011-08-04  Richard Guenther  <rguenther@suse.de>
7257
7258         * tree-vrp.c (vrp_expr_computes_nonnegative): Remove.
7259         (value_range_nonnegative_p): New function.
7260         (ssa_name_nonnegative_p): Use it.
7261         (value_range_constant_singleton): New function.
7262         (op_with_constant_singleton_value_range): Use it.
7263         (extract_range_from_binary_expr_1): New function, split out from ...
7264         (extract_range_from_binary_expr): ... this.  Remove fallback
7265         constant folding done here.
7266
7267 2011-08-04  Richard Guenther  <rguenther@suse.de>
7268
7269         PR tree-optimization/49806
7270         * tree-vrp.c (op_with_boolean_value_range_p): New function.
7271         (simplify_truth_ops_using_ranges): Simplify.  Allow inserting
7272         a new statement for a final conversion to bool.
7273
7274 2011-08-04  Romain Geissler  <romain.geissler@gmail.com>
7275
7276         * gengtype-state.c: Include "bconfig.h" if
7277         GENERATOR_FILE is defined, "config.h" otherwise.
7278         * gengtype.c: Likewise.
7279         * gengtype-lex.l: Likewise.
7280         * gengtype-parse.c: Likewise.
7281         * Makefile.in (gengtype-lex.o-warn): New variable.
7282         (plugin_resourcesdir): Likewise.
7283         (plugin_bindir): Likewise.
7284         (plugin_includedir): Use $(plugin_resourcesdir) as prefix base.
7285         (MOSTLYCLEANFILES): Add gengtype$(exeext).
7286         (native): Depend on gengtype$(exeext) is $enable_plugin
7287         is set to "yes".
7288         (gtype.state): Depend on s-gtype. Use temporary file.
7289         (gengtype-lex.o): New rule.
7290         (gengtype-parse.o): Likewise.
7291         (gengtype-state.o): Likewise.
7292         (gengtype$(exeext)): Likewise.
7293         (install-gengtype): Likewise.
7294         (gengtype.o): Likewise.
7295         (build/gengtype.o): Depend on version.h.
7296         (build/gengtype-state): Depend on double-int.h, version.h,
7297         $(HASHTAB_H), $(OBSTACK_H), $(XREGEX_H) and build/errors.o.
7298         (install-plugin): Depend on install-gengtype.
7299
7300 2011-08-04  Jakub Jelinek  <jakub@redhat.com>
7301
7302         PR middle-end/49905
7303         * tree.h (init_attributes): New prototype.
7304         * attribs.c (init_attributes): No longer static.
7305
7306 2011-08-04  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
7307
7308         * config/arm/arm.c (arm_set_fixed_optab_libfunc): Constify
7309         maybe_suffix.
7310
7311 2011-08-03   David Li  <davidxl@google.com>
7312
7313         * tree-optimize.c (execute_fixup_cfg): Fix up entry
7314         outgoing edge counts after inlining.
7315
7316 2011-08-03   David Li  <davidxl@google.com>
7317
7318         * profile.c (compute_branch_probabilities): Compute
7319         function frequency after profile annotation.
7320
7321 2011-08-04  Alan Modra  <amodra@gmail.com>
7322
7323         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Simplify
7324         use_backchain_to_restore_sp initialisation.
7325         (rs6000_legitimate_offset_address_p): Simplify offset test.
7326
7327 2011-08-03  Richard Henderson  <rth@redhat.com>
7328
7329         * config/spu/spu.md: Use define_c_enum instead of define_constants.
7330         (UNSPECV_BLOCKAGE, UNSPECV_LNOP, UNSPECV_SYNC): Rename from UNSPEC_*.
7331         (UNSPECV_NOP): New.
7332
7333 2011-08-03  Richard Henderson  <rth@redhat.com>
7334
7335         PR target/34888
7336         * config/avr/avr.md: New splitter for REG_ARGS_SIZE 0.
7337
7338 2011-08-03  Jakub Jelinek  <jakub@redhat.com>
7339
7340         PR tree-optimization/49948
7341         * gimple.c (walk_stmt_load_store_addr_ops): Walk CONSTRUCTOR elements.
7342
7343 2011-08-03  Anatoly Sokolov  <aesok@post.ru>
7344
7345         * config/m32c/m32c.c (class_sizes): Remove.
7346         (reduce_class): Change arguments and return type to reg_class_t.
7347         Change type cc var to HARD_REG_SET. Change type best var to
7348         reg_class_t. Change type best_size var to unsigned int. Remove
7349         initialization class_sizes var. Use reg_class_size array instead
7350         of class_sizes. Use reg_class_contents array instead
7351         of class_contents.
7352
7353 2011-08-03  Richard Guenther  <rguenther@suse.de>
7354
7355         PR middle-end/49958
7356         * fold-const.c (fold_binary_loc): Only associate
7357         (+ (+ (* a b) c) (* d e)) as (+ (+ (* a b) (* d e)) c) if
7358         overflow wraps.
7359
7360 2011-08-03  Alan Modra  <amodra@gmail.com>
7361
7362         PR rtl-optimization/49941
7363         * jump.c (mark_jump_label): Comment.
7364         (mark_jump_label_1): Set JUMP_LABEL for return jumps.
7365         * emit-rtl.c (copy_rtx_if_shared_1, copy_insn_1): Leave RETURN shared.
7366         (mark_used_flags): Don't mark RETURN.
7367
7368 2011-08-03  Richard Guenther  <rguenther@suse.de>
7369
7370         PR tree-optimization/49938
7371         * tree-scalar-evolution.c (interpret_loop_phi): Gracefully
7372         deal with a POLYNOMIAL_CHREC.
7373
7374 2011-08-03  Revital Eres  <revital.eres@linaro.org>
7375
7376         * modulo-sched.c (calculate_stage_count,
7377         calculate_must_precede_follow, get_sched_window,
7378         try_scheduling_node_in_cycle, remove_node_from_ps): Add
7379         declaration.
7380         (update_node_sched_params, set_must_precede_follow, optimize_sc):
7381         New functions.
7382         (reset_sched_times): Call update_node_sched_params.
7383         (sms_schedule): Call optimize_sc.
7384         (get_sched_window): Change function arguments.
7385         (sms_schedule_by_order): Update call to get_sched_window.
7386         Call set_must_precede_follow.
7387         (calculate_stage_count): Add function argument.
7388
7389 2011-08-02  Richard Henderson  <rth@redhat.com>
7390
7391         PR target/49864
7392         PR target/49879
7393         * reg-notes.def (REG_ARGS_SIZE): New.
7394         * calls.c (emit_call_1): Emit REG_ARGS_SIZE for call_pop.
7395         (expand_call): Add REG_ARGS_SIZE to emit_stack_restore.
7396         * cfgcleanup.c (old_insns_match_p): Don't allow cross-jumping to
7397         different stack levels.
7398         * combine-stack-adj.c (adjust_frame_related_expr): Remove.
7399         (maybe_move_args_size_note): New.
7400         (combine_stack_adjustments_for_block): Use it.
7401         * combine.c (distribute_notes): Place REG_ARGS_SIZE.
7402         * dwarf2cfi.c (dw_cfi_row_struct): Remove args_size member.
7403         (dw_trace_info): Add beg_true_args_size, end_true_args_size,
7404         beg_delay_args_size, end_delay_args_size, eh_head, args_size_undefined.
7405         (cur_cfa): New.
7406         (queued_args_size): Remove.
7407         (add_cfi_args_size): Assert size is non-negative.
7408         (stack_adjust_offset, dwarf2out_args_size): Remove.
7409         (dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust): Remove.
7410         (notice_args_size, notice_eh_throw): New.
7411         (dwarf2out_frame_debug_def_cfa): Use cur_cfa.
7412         (dwarf2out_frame_debug_adjust_cfa): Likewise.
7413         (dwarf2out_frame_debug_cfa_offset): Likewise.
7414         (dwarf2out_frame_debug_expr): Likewise.  Don't stack_adjust_offset.
7415         (dwarf2out_frame_debug): Don't handle non-frame-related-p insns.
7416         (change_cfi_row): Don't emit args_size.
7417         (maybe_record_trace_start_abnormal): Split out from ...
7418         (maybe_record_trace_start): Here.  Set args_size_undefined.
7419         (create_trace_edges): Update to match.
7420         (scan_trace): Handle REG_ARGS_SIZE.
7421         (connect_traces): Connect args_size between EH insns.
7422         * emit-rtl.c (try_split): Handle REG_ARGS_SIZE.
7423         * explow.c (suppress_reg_args_size): New.
7424         (adjust_stack_1): Split out from ...
7425         (adjust_stack): ... here.
7426         (anti_adjust_stack): Use it.
7427         (allocate_dynamic_stack_space): Suppress REG_ARGS_SIZE.
7428         * expr.c (mem_autoinc_base): New.
7429         (fixup_args_size_notes): New.
7430         (emit_single_push_insn_1): Rename from emit_single_push_insn.
7431         (emit_single_push_insn): New.  Generate REG_ARGS_SIZE.
7432         * recog.c (peep2_attempt): Handle REG_ARGS_SIZE.
7433         * reload1.c (reload_as_needed): Likewise.
7434         * rtl.h (fixup_args_size_notes): Declare.
7435
7436 2011-08-02  Paolo Carlini  <paolo.carlini@oracle.com>
7437
7438         PR bootstrap/49914
7439         * fold-const.c (fold_plusminus_mult_expr): Use abs_hwi instead
7440         of abs.
7441         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
7442         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Likewise.
7443
7444 2011-08-02  Richard Henderson  <rth@redhat.com>
7445
7446         * config/h8300/h8300.c (push, pop): Return the insn.
7447         (h8300_swap_into_er6): Generate correct unwind info.
7448         (h8300_swap_out_of_er6): Likewise.
7449         * dwarf2cfi.c (def_cfa_1): Clear cfa_cfi if we no longer have a
7450         complex cfa expression.
7451         (dwarf2out_frame_debug_def_cfa): Allow (plus (mem) (const_int)) too.
7452
7453 2011-08-02  H.J. Lu  <hongjiu.lu@intel.com>
7454
7455         * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
7456
7457 2011-08-02  Richard Henderson  <rth@redhat.com>
7458
7459         PR target/49878
7460         * config/h8300/h8300.c (h8300_move_ok): New.
7461         * config/h8300/h8300-protos.h: Declare it.
7462         * config/h8300/h8300.md (P): New mode iterator.
7463         (*movqi_h8300, *movqi_h8300hs, movqi): Use h8300_move_ok.
7464         (*movqi_h8sx, *movhi_h8300, *movhi_h8300hs, movhi): Likewise.
7465         (movsi, *movsi_h8300, *movsi_h8300hs): Likewise.
7466         (*pushqi1_h8300): Rename from pushqi1_h8300; use PRE_MODIFY.
7467         (*pushqi1_h8300hs_<P>): Macroize from pushqi1_h8300hs_advanced
7468         and pushqi1_h8300hs_normal; use PRE_MODIFY and
7469         register_no_sp_elim_operand.
7470         (*pushhi1_h8300hs_<P>): Similarly.
7471         (pushqi1, pushhi1, pushhi1_h8300): Remove.
7472         * config/h8300/predicates.md (register_no_sp_elim_operand): New.
7473
7474 2011-08-02  Richard Henderson  <rth@redhat.com>
7475
7476         PR target/49881
7477         * config/avr/avr.md (push<MPUSH>1): Don't constrain the operand.
7478
7479 2011-08-02  Jakub Jelinek  <jakub@redhat.com>
7480
7481         * c-parser.c (enum c_parser_prec): New enum, moved from within
7482         c_parser_binary_expression.
7483         (c_parser_binary_expression): Add PREC argument.  Stop parsing
7484         if operator has lower or equal precedence than PREC.
7485         (c_parser_conditional_expression, c_parser_omp_for_loop): Adjust
7486         callers.
7487         (c_parser_omp_atomic): Handle parsing OpenMP 3.1 atomics.
7488         Adjust c_finish_omp_atomic caller.
7489         (c_parser_omp_taskyield): New function.
7490         (c_parser_pragma): Handle PRAGMA_OMP_TASKYIELD.
7491         (c_parser_omp_clause_name): Handle final and mergeable clauses.
7492         (c_parser_omp_clause_final, c_parser_omp_clause_mergeable): New
7493         functions.
7494         (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_FINAL
7495         and PRAGMA_OMP_CLAUSE_MERGEABLE.
7496         (OMP_TASK_CLAUSE_MASK): Allow final and mergeable clauses.
7497         (c_parser_omp_clause_reduction): Handle min and max.
7498         * c-typeck.c (c_finish_omp_clauses): Don't complain about
7499         const qualified predetermined vars in firstprivate clause.
7500         andle OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
7501         Handle MIN_EXPR and MAX_EXPR.
7502         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_FINAL
7503         and OMP_CLAUSE_MERGEABLE.
7504         (dump_generic_node): Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD
7505         and OMP_ATOMIC_CAPTURE_NEW.
7506         * tree.c (omp_clause_num_ops): Add OMP_CLAUSE_FINAL and
7507         OMP_CLAUSE_MERGEABLE.
7508         (omp_clause_code_name): Likewise.
7509         (walk_tree_1): Handle OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
7510         * tree.h (enum omp_clause_code): Add OMP_CLAUSE_FINAL
7511         and OMP_CLAUSE_MERGEABLE.
7512         (OMP_CLAUSE_FINAL_EXPR): Define.
7513         * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE_FINAL and
7514         OMP_CLAUSE_MERGEABLE.
7515         (expand_task_call): Likewise.
7516         (expand_omp_atomic_load, expand_omp_atomic_store): New functions.
7517         (expand_omp_atomic_fetch_op): Handle cases where old or new
7518         value is needed afterwards.
7519         (expand_omp_atomic): Call expand_omp_atomic_load resp.
7520         expand_omp_atomic_store.
7521         * gimplify.c (gimplify_omp_atomic, gimplify_expr): Handle
7522         OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and OMP_ATOMIC_CAPTURE_NEW.
7523         (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
7524         OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
7525         * tree-nested.c (convert_nonlocal_omp_clauses,
7526         convert_local_omp_clauses): Likewise.
7527         * tree.def (OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD,
7528         OMP_ATOMIC_CAPTURE_NEW): New.
7529         * gimple.h (GF_OMP_ATOMIC_NEED_VALUE): New.
7530         (gimple_omp_atomic_need_value_p, gimple_omp_atomic_set_need_value):
7531         New inlines.
7532         * omp-builtins.def (BUILT_IN_GOMP_TASKYIELD): New builtin.
7533         * doc/generic.texi: Mention OMP_CLAUSE_COLLAPSE,
7534         OMP_CLAUSE_UNTIED, OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
7535
7536 2011-08-02  Kai Tietz  <ktietz@redhat.com>
7537
7538         * gimple.c (canonicalize_cond_expr_cond): Handle cast from
7539         boolean-type.
7540         (ssa_forward_propagate_and_combine): Interprete result of
7541         forward_propagate_comparison.
7542         * gcc/gimple-fold.c (fold_gimple_assign): Add canonicalization for
7543         boolean-typed operands for comparisons.
7544
7545 2011-08-02  Georg-Johann Lay  <avr@gjlay.de>
7546
7547         * config/avr/libgcc.S: Gather related function in the
7548         same input section.
7549         (__mulqihi3, __mulqihi3, __divmodqi4, __divmodhi4, __udivmodsi4,
7550         __divmodsi4): Use XCALL/XJMP instead of rcall/rjmp for external
7551         references.
7552         (__udivmodqi4, __divmodqi4, __udivmodhi4, __divmodhi4,
7553         __udivmodsi4, __divmodsi4, __prologue_saves__,
7554         __epilogue_restores__, _exit, __tablejump2__, __tablejump__,
7555         __do_copy_data, __do_clear_bss, __do_global_ctors,
7556         __do_global_dtors, __tablejump_elpm__): Enclose in DEFUN/ENDF.
7557
7558 2011-08-02  Uros Bizjak  <ubizjak@gmail.com>
7559
7560         PR target/47766
7561         * doc/md.texi (stack_protect_set): The pattern moves ptr_mode value.
7562         (stack_protect_test): The pattern compares ptr_mode value.
7563
7564 2011-08-02  Alan Modra  <amodra@gmail.com>
7565
7566         * config/rs6000/rs6000.c (rs6000_emit_prologue): Add REG_CFA_RESTORE
7567         note for save_LR_around_toc_setup sequence.
7568
7569 2011-08-01  H.J. Lu  <hongjiu.lu@intel.com>
7570
7571         * config/i386/lzcntintrin.h (__lzcnt64): Replace long with long long.
7572
7573 2011-08-01  Sebastian Pop  <sebastian.pop@amd.com>
7574             Joseph Myers  <joseph@codesourcery.com>
7575
7576         * Makefile.in (hwint.o): Depend on DIAGNOSTIC_CORE_H.
7577         * hwint.c: Include diagnostic-core.h.
7578         (abs_hwi): New.
7579         (gcd): Moved here...
7580         (pos_mul_hwi): New.
7581         (mul_hwi): New.
7582         (least_common_multiple): Moved here...
7583         * hwint.h (gcd): ... from here.
7584         (least_common_multiple): ... from here.
7585         (HOST_WIDE_INT_MIN): New.
7586         (HOST_WIDE_INT_MAX): New.
7587         (abs_hwi): Declared.
7588         (gcd): Declared.
7589         (pos_mul_hwi): Declared.
7590         (mul_hwi): Declared.
7591         (least_common_multiple): Declared.
7592         * omega.c (check_pos_mul): Removed.
7593         (check_mul): Removed.
7594         (omega_solve_geq): Use pos_mul_hwi instead of check_pos_mul and
7595         mul_hwi instead of check_mul.
7596
7597 2011-08-01  Richard Henderson  <rth@redhat.com>
7598
7599         PR target/49881
7600         * config/avr/avr.h (PUSH_ROUNDING): New.
7601         * config/avr/avr.md (pushqi1): Rename from *pushqi.
7602         (*pushhi, *pushsi, *pushsf): Remove.
7603         (MPUSH): New mode iterator.
7604         (push<MPUSH>1): New expander.
7605
7606 2011-08-01  Anatoly Sokolov  <aesok@post.ru>
7607
7608         * config/mmix/mmix.h (PREFERRED_RELOAD_CLASS,
7609         PREFERRED_OUTPUT_RELOAD_CLASS): Remove macro.
7610         * config/mmix/mmix-protos.h (mmix_preferred_reload_class,
7611         mmix_preferred_output_reload_class): Remove.
7612         * config/mmix/mmix.c (mmix_preferred_reload_class,
7613         mmix_preferred_output_reload_class): Make static. Change rclass
7614         argument and return type to reg_class_t.
7615         (TARGET_PREFERRED_RELOAD_CLASS,
7616         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
7617
7618 2011-08-01  Joern Rennecke  <joern.rennecke@embecosm.com>
7619
7620         * mode-switching.c (optimize_mode_switching): Fix bug in MODE_AFTER
7621         handling.
7622
7623 2011-08-01  H.J. Lu  <hongjiu.lu@intel.com>
7624
7625         PR target/47766
7626         * config/i386/i386.md (PTR): New.
7627         (stack_protect_set: Check TARGET_LP64 instead of TARGET_64BIT.
7628         (stack_protect_test): Likewise.
7629         (stack_protect_set_<mode>): Replace ":P" with ":PTR".
7630         (stack_tls_protect_set_<mode>): Likewise.
7631         (stack_tls_protect_test_<mode>): Likewise.
7632
7633 2011-08-01  Uros Bizjak  <ubizjak@gmail.com>
7634
7635         PR target/49927
7636         * config/i386/i386.c (ix86_address_subreg_operand): New.
7637         (ix86_decompose_address): Use ix86_address_subreg_operand.
7638         (ix86_legitimate_address_p): Do not assert that subregs satisfy
7639         register_no_elim_operand in DImode.
7640
7641 2011-08-01  Ira Rosen  <ira.rosen@linaro.org>
7642
7643         PR tree-optimization/49926
7644         * tree-vect-loop.c (vect_is_slp_reduction): Check that a statement
7645         in a chain doesn't have uses both inside and outside the loop.
7646
7647 2011-08-01  Georg-Johann Lay  <avr@gjlay.de>
7648
7649         * config/avr/avr.h (mcu_type_s): Add errata_skip field.
7650         * config/avr/avr-devices.c (avr_mcu_types): Use it.
7651         * config/avr/avr-mcus.def (AVR_MCU): Use it.
7652         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use it to builtin
7653         define __AVR_ERRATA_SKIP__ and __AVR_ERRATA_SKIP_JMP_CALL__.
7654         * config/avr/libgcc.S (__mulshisi3, __ffshi2, __fmulsu_exit):
7655         Use __AVR_ERRATA_SKIP_JMP_CALL__ instead of __AVR_HAVE_JMP_CALL__
7656         to detect if XJMP must not be skipped.
7657
7658 2011-08-02  Alan Modra  <amodra@gmail.com>
7659
7660         * config/rs6000/rs6000-protos.h (rs6000_save_toc_in_prologue_p):
7661         Delete.
7662         * config/rs6000/rs6000.c (rs6000_save_toc_in_prologue_p): Make static.
7663         (rs6000_emit_prologue): Don't prematurely return when
7664         TARGET_SINGLE_PIC_BASE.  Don't emit eh_frame info in
7665         save_toc_in_prologue case.
7666         (rs6000_call_indirect_aix): Only disallow save_toc_in_prologue for
7667         calls_alloca.
7668
7669 2011-08-01  Georg-Johann Lay  <avr@gjlay.de>
7670
7671         * config/avr/avr-devices.c: Delete SVN property svn:executable.
7672         * config/avr/predicates.md: Ditto.
7673         * config/avr/driver-avr.c: Ditto.
7674         * config/avr/genopt.sh: Set SVN property svn:executable to *.
7675
7676 2011-08-01  H.J. Lu  <hongjiu.lu@intel.com>
7677
7678         * calls.c (emit_library_call_value_1): Declare size only if
7679         BLOCK_REG_PADDING is defined.
7680
7681 2011-08-01  Kirill Yukhin  <kirill.yukhin@intel.com>
7682
7683         PR target/49547
7684         * config.gcc (i[34567]86-*-*): Replace abmintrin.h with lzcntintrin.h.
7685         (x86_64-*-*): Likewise.
7686         * config/i386/i386.opt (mlzcnt): New.
7687         * config/i386/abmintrin.h: File removed.
7688         (__lzcnt_u16, __lzcnt, __lzcnt_u64): Moved to ...
7689         * config/i386/lzcntintrin.h: ... here.  New file.
7690         (__lzcnt): Rename to ...
7691         (__lzcnt32): ... this.
7692         * config/i386/bmiintrin.h (head): Update copyright year.
7693         (__lzcnt_u16): Removed.
7694         (__lzcnt_u32): Likewise.
7695         (__lzcnt_u64): Likewise.
7696         * config/i386/x86intrin.h: Include lzcntintrin.h when __LZCNT__
7697         is defined, remove abmintrin.h.
7698         * config/i386/cpuid.h (bit_LZCNT): New.
7699         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
7700         LZCNT feature.
7701         * config/i386/i386-c.c (ix86_target_macros_internal): Define
7702         __LZCNT__ if needed.
7703         * config/i386/i386.c (ix86_target_string): New option -mlzcnt.
7704         (ix86_option_override_internal): Handle LZCNT option.
7705         (ix86_valid_target_attribute_inner_p): Likewise.
7706         (struct builtin_description bdesc_args) <IX86_BUILTIN_CLZS>: Update.
7707         * config/i386/i386.h (TARGET_LZCNT): New.
7708         (CLZ_DEFINED_VALUE_AT_ZERO): Update.
7709         * config/i386/i386.md (clz<mode>2): Update insn constraint.
7710         (clz<mode>2_lzcnt): Likewise.
7711         * doc/invoke.texi: Mention -mlzcnt option.
7712         * doc/extend.texi: Likewise.
7713
7714 2011-08-01  Julian Brown  <julian@codesourcery.com>
7715
7716         * configure.ac (fixed-point): Add ARM support.
7717         * configure: Regenerate.
7718         * config/arm/arm.c (arm_fixed_mode_set): New struct.
7719         (arm_set_fixed_optab_libfunc): New.
7720         (arm_set_fixed_conv_libfunc): New.
7721         (arm_init_libfuncs): Initialise fixed-point helper libfuncs with
7722         ARM-specific names.
7723         (aapcs_libcall_value): Return sub-word-size fixed-point libcall
7724         return values in SImode.
7725         (arm_return_in_msb): Return fixed-point types in the msb.
7726         (arm_pad_reg_upwards, arm_pad_arg_upwards): Pad fixed-point types
7727         upwards.
7728         (arm_scalar_mode_supported_p): Support fixed-point modes.
7729         (arm_vector_mode_supported_p): Support vector fixed-point modes.
7730         * config/arm/arm.h (SHORT_FRACT_TYPE_SIZE, FRACT_TYPE_SIZE)
7731         (LONG_FRACT_TYPE_SIZE, LONG_LONG_FRACT_TYPE_SIZE)
7732         (SHORT_ACCUM_TYPE_SIZE, ACCUM_TYPE_SIZE, LONG_ACCUM_TYPE_SIZE)
7733         (LONG_LONG_ACCUM_TYPE_SIZE, MAX_FIXED_MODE_SIZE): Define.
7734         * config/arm/iterators.md (FIXED, ADDSUB, UQADDSUB, QADDSUB, QMUL):
7735         New mode iterators.
7736         (qaddsub_suf): New mode attribute.
7737         * config/arm/arm-modes.def (FRACT, UFRACT, ACCUM, UACCUM): Declare
7738         vector modes.
7739         * config/arm/predicates.md (sat_shift_operator): New predicate.
7740         * config/arm/arm-fixed.md: New.
7741         * config/arm/arm.md: Include arm-fixed.md.
7742         * config/arm/t-arm (MD_INCLUDES): Add arm-fixed.md.
7743
7744 2011-08-01  Julian Brown  <julian@codesourcery.com>
7745
7746         * calls.c (emit_library_call_value_1): Support padding for libcall
7747         arguments and return values.
7748         * config/arm/arm.c (arm_pad_arg_upward): Pad half-float values
7749         downwards in big-endian mode.
7750
7751 2011-08-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7752
7753         PR debug/49887
7754         * config/sol2.c (solaris_code_end): Rename to solaris_file_end.
7755         * config/sol2-protos.h: Likewise.
7756         * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Don't call
7757         solaris_code_end.
7758         * config/i386/sol2.h [!USE_GAS] (TARGET_ASM_FILE_END): Redefine.
7759         * config/sparc/sparc.c (sparc_file_end) [TARGET_SOLARIS]: Call
7760         solaris_file_end.
7761         * config/sparc/sol2.h (TARGET_ASM_CODE_END): Remove.
7762
7763 2011-08-01  Julian Brown  <julian@codesourcery.com>
7764
7765         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Support FIXED_CST.
7766
7767 2011-08-01  Julian Brown  <julian@codesourcery.com>
7768
7769         * final.c (output_addr_const): Print fixed-point constants as
7770         decimal not hex.
7771
7772 2011-08-01  Richard Guenther  <rguenther@suse.de>
7773
7774         * stor-layout.c (initialize_sizetypes): Properly sign-extend
7775         bitsiztype TYPE_MAX_VALUE.
7776
7777 2011-08-01  Julian Brown  <julian@codesourcery.com>
7778
7779         * optabs.c (prepare_cmp_insn): Use correct biasing for fixed-point
7780         comparison helpers.
7781
7782 2011-07-31  Richard Henderson  <rth@redhat.com>
7783
7784         * config/h8300/crti.asm: Add flags to .section directive.
7785         * config/h8300/crtn.asm: Likewise.
7786
7787 2011-07-31  Richard Henderson  <rth@redhat.com>
7788
7789         * stor-layout.c (initialize_sizetypes): Handle unsigned short.
7790         * tree.c (build_common_tree_nodes): Likewise.
7791
7792 2011-07-31  Kaz Kojima  <kkojima@gcc.gnu.org>
7793
7794         PR target/49880
7795         * config/sh/sh.md (udivsi3_i1): Enable for TARGET_DIVIDE_CALL_DIV1.
7796         (divsi3_i1): Likewise.
7797
7798 2011-07-31  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7799
7800         PR tree-optimization/49749
7801         * tree-ssa-reassoc.c (get_rank): New forward declaration.
7802         (PHI_LOOP_BIAS): New macro.
7803         (phi_rank): New function.
7804         (loop_carried_phi): Likewise.
7805         (propagate_rank): Likewise.
7806         (get_rank): Add calls to phi_rank and propagate_rank.
7807
7808 2011-07-31  H.J. Lu  <hongjiu.lu@intel.com>
7809
7810         * config/i386/x86-64.h (SIZE_TYPE): Check TARGET_LP64 instead
7811         of TARGET_64BIT.
7812         (PTRDIFF_TYPE): Likewise.
7813
7814 2011-07-31  Uros Bizjak  <ubizjak@gmail.com>
7815
7816         PR target/49920
7817         * config/i386/i386.md (strset): Do not expand strset_singleop
7818         when %eax or $edi are fixed.
7819         (*strsetdi_rex_1): Disable when %eax or %edi are fixed.
7820         (*strsetsi_1): Ditto.
7821         (*strsethi_1): Ditto.
7822         (*strsetqi_1): Ditto.
7823         (*rep_stosdi_rex64): Disable when %eax, %ecx or %edi are fixed.
7824         (*rep_stossi): Ditto.
7825         (*rep_stosqi): Ditto.
7826         (*strlenqi_1): Ditto.
7827         (cmpstrnsi): Also fail when %ecx is fixed.
7828         (*cmpstrnqi_nz_1): Disable when %ecx, %esi or %edi are fixed.
7829         (*cmpstrnqi_1): Ditto.
7830         (*strmovdi_rex_1): Disable when %esi or %edi are fixed.
7831         (*strmovsi_1): Ditto.
7832         (*strmovhi_1): Ditto.
7833         (*strmovqi_1): Ditto.
7834         (*rep_movdi_rex64): Disable when %ecx, %esi or %edi are fixed.
7835         (*rep_movsi): Ditto.
7836         (*rep_movqi): Ditto.
7837
7838 2011-07-31  Mikael Pettersson  <mikpe@it.uu.se>
7839
7840         PR target/47908
7841         * config/m68k/m68k.c (m68k_override_options_after_change): New function.
7842         Disable instruction scheduling for non-ColdFire targets.
7843         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
7844
7845 2011-07-31  Revital Eres  <revital.eres@linaro.org>
7846
7847         * ddg.c (create_ddg_dep_from_intra_loop_link): Remove the creation
7848         of anti-dep edge from a branch.
7849         (add_cross_iteration_register_deps): Create anti-dep edge from
7850         a branch.
7851
7852 2011-07-31  Revital Eres  <revital.eres@linaro.org>
7853
7854         * modulo-sched.c: Change comment.
7855         (reset_sched_times): Fix print message.
7856         (print_partial_schedule): Add print info.
7857
7858 2011-07-31  Tom de Vries  <tom@codesourcery.com>
7859
7860         PR middle-end/43513
7861         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Use max of
7862         get_object_alignment and TYPE_ALIGN.
7863
7864 2011-07-30  Tom de Vries  <tom@codesourcery.com>
7865
7866         PR middle-end/43513
7867         * tree-ssa-dce.c (ref_may_be_aliased): Add assert.
7868         (propagate_necessity): Handle WITH_SIZE_EXPR call arg.
7869
7870 2011-07-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7871
7872         * config/mips/driver-native.c [__sgi__]: Include <invent.h>,
7873         <sys/sbd.h>.
7874         (cpu_types): New array.
7875         (cputype): New function.
7876         (host_detect_local_cpu): Only define buf, f if !__sgi__.
7877         Use scaninvent instead of /proc/cpuinfo if __sgi__.
7878         * config.host: Also use driver-native.o, mips/x-native on
7879         mips-sgi-irix*.
7880         * config/mips/iris6.h [__mips__] (host_detect_local_cpu): Declare.
7881         (EXTRA_SPEC_FUNCTIONS, MARCH_MTUNE_NATIVE_SPECS): Define.
7882         (DRIVER_SELF_SPECS): Add MARCH_MTUNE_NATIVE_SPECS.
7883
7884 2011-07-29  Jakub Jelinek  <jakub@redhat.com>
7885
7886         PR middle-end/49897
7887         PR middle-end/49898
7888         * omp-low.c (use_pointer_for_field): If disallowing copy-in/out
7889         in nested parallel and outer is a gimple_reg, mark it as addressable
7890         and set its bit in task_shared_vars bitmap too.
7891
7892 2011-07-29  Uros Bizjak  <ubizjak@gmail.com>
7893
7894         * config/i386/predicates.md (tp_or_register_operand): Remove predicate.
7895
7896 2011-07-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7897
7898         * config/alpha/driver-alpha.c (IMPLVER_EV4_FAMILY,
7899         IMPLVER_EV5_FAMILY, IMPLVER_EV6_FAMILY, IMPLVER_EV7_FAMILY): Define.
7900         (AMASK_BWX, AMASK_FIX, AMASK_CIX, AMASK_MVI, AMASK_PRECISE,
7901         AMASK_LOCKPFTCHOK): Define.
7902         (host_detect_local_cpu): Remove buf, f, cpu_names.
7903         Define cpu_types, implver, amask.
7904         Use __builtin_alpha_implver, __builtin_alpha_amask to determine
7905         native CPU.
7906         * config.host: Also use driver-alpha.o, alpha/x-alpha on
7907         alpha*-dec-osf*.
7908         * config/alpha/osf5.h [__alpha__ || __alpha]
7909         (host_detect_local_cpu): Declare.
7910         (EXTRA_SPEC_FUNCTIONS, MCPU_MTUNE_NATIVE_SPECS)
7911         (DRIVER_SELF_SPECS): Define.
7912
7913 2011-07-29  Uros Bizjak  <ubizjak@gmail.com>
7914
7915         PR target/47715
7916         * config/i386/i386.md (*load_tp_x32): New.
7917         (*load_tp_x32_zext): Ditto.
7918         (*add_tp_x32): Ditto.
7919         (*add_tp_x32_zext): Ditto.
7920         (*load_tp_<mode>): Disable for TARGET_X32 targets.
7921         (*add_tp_<mode>): Ditto.
7922         * config/i386/i386.c (get_thread_pointer): Load thread pointer in
7923         ptr_mode and convert to Pmode if needed.
7924
7925 2011-07-29  Georg-Johann Lay  <avr@gjlay.de>
7926
7927         PR target/49687
7928         * config/avr/avr.md (mulsi3, *mulsi3, mulu<mode>si3,
7929         muls<mode>si3, mulohisi3, mulhisi3, umulhisi3, usmulhisi3,
7930         *<any_extend:extend_prefix><any_extend2:extend_prefix>mul<QIHI:mode><QIHI2:mode>si3):
7931         Add X to register footprint: Clobber r26/r27.
7932
7933 2011-07-29  Richard Guenther  <rguenther@suse.de>
7934
7935         * builtins.c (fold_builtin_signbit): Build the comparison
7936         with a proper type.
7937
7938 2011-07-29  Richard Guenther  <rguenther@suse.de>
7939
7940         PR tree-optimization/49893
7941         * tree-predcom.c (suitable_reference_p): Volatile references
7942         are not suitable.
7943
7944 2011-07-29  Georg-Johann Lay  <avr@gjlay.de>
7945
7946         PR target/49313
7947         * config/avr/libgcc.S (__ffshi2): Don't skip 2-word instruction.
7948         (__ctzsi2): Result for 0 may be undefined.
7949         (__ctzhi2): Result for 0 may be undefined.
7950         (__popcounthi2): Don't clobber r30. Use __popcounthi2_tail.
7951         (__popcountsi2): Ditto. And don't clobber r26.
7952         (__popcountdi2): Ditto. And don't clobber r27.
7953         * config/avr/avr.md (UNSPEC_COPYSIGN): New c_enum.
7954         (parityhi2): New expand.
7955         (paritysi2): New expand.
7956         (popcounthi2): New expand.
7957         (popcountsi2): New expand.
7958         (clzhi2): New expand.
7959         (clzsi2): New expand.
7960         (ctzhi2): New expand.
7961         (ctzsi2): New expand.
7962         (ffshi2): New expand.
7963         (ffssi2): New expand.
7964         (copysignsf3): New insn.
7965         (bswapsi2): New expand.
7966         (*parityhi2.libgcc): New insn.
7967         (*parityqihi2.libgcc): New insn.
7968         (*paritysihi2.libgcc): New insn.
7969         (*popcounthi2.libgcc): New insn.
7970         (*popcountsi2.libgcc): New insn.
7971         (*popcountqi2.libgcc): New insn.
7972         (*popcountqihi2.libgcc): New insn-and-split.
7973         (*clzhi2.libgcc): New insn.
7974         (*clzsihi2.libgcc): New insn.
7975         (*ctzhi2.libgcc): New insn.
7976         (*ctzsihi2.libgcc): New insn.
7977         (*ffshi2.libgcc): New insn.
7978         (*ffssihi2.libgcc): New insn.
7979         (*bswapsi2.libgcc): New insn.
7980
7981 2011-07-29  Richard Guenther  <rguenther@suse.de>
7982
7983         * tree-vrp.c (get_value_range): Only set parameter default
7984         definitions to varying, leave others at undefined.
7985         (extract_range_from_binary_expr): Fix undefined handling.
7986         (vrp_visit_phi_node): Handle merged undefined state.
7987
7988 2011-07-29  Wei Guozhi  <carrot@google.com>
7989
7990         PR rtl-optimization/49799
7991         * combine.c (make_compound_operation): Check if the bit field is valid
7992         before change it to bit field extraction.
7993
7994 2011-07-29  Bernd Schmidt  <bernds@codesourcery.com>
7995
7996         PR rtl-optimization/49891
7997         * cfgrtl.c (force_nonfallthru_and_redirect): Set JUMP_LABEL for
7998         newly created returnjumps.
7999
8000 2011-07-28  DJ Delorie  <dj@redhat.com>
8001
8002         * expr.c (expand_expr_addr_expr_1): Detect a user request for a
8003         local frame in a naked function, and produce a suitable error for
8004         that specific case.
8005
8006         * config/m32c/m32c.c (m32c_secondary_reload_class): Allow PSI
8007         registers to be reloaded in HI classes when the target is HI.
8008
8009 2011-07-28  Sebastian Pop  <sebastian.pop@amd.com>
8010
8011         * graphite-clast-to-gimple.c: Replace v1, v2, lb, ub with
8012         bound_one, bound_two.
8013
8014 2011-07-28  Sebastian Pop  <sebastian.pop@amd.com>
8015
8016         PR middle-end/48648
8017         * graphite-clast-to-gimple.c (clast_get_body_of_loop): Handle
8018         CLAST assignments.
8019         (translate_clast): Same.
8020         (translate_clast_assignment): New.
8021
8022 2011-07-28  Sebastian Pop  <sebastian.pop@amd.com>
8023
8024         PR tree-optimization/49876
8025         * sese.c (rename_uses): Do not return false on gloog_error: set
8026         the new_expr to integer_zero_node and continue code generation.
8027         (graphite_copy_stmts_from_block): Remove early exit on gloog_error.
8028
8029 2011-07-28  Jakub Jelinek  <jakub@redhat.com>
8030
8031         PR debug/49846
8032         * var-tracking.c (prepare_call_arguments): For non-MODE_INT stack
8033         arguments also check if they aren't initialized with a MODE_INT
8034         mode of the same size.
8035
8036 2011-07-28  Aldy Hernandez  <aldyh@redhat.com>
8037
8038         * expr.c (get_bit_range): Handle *MEM_REF's.
8039
8040 2011-07-28  Bernd Schmidt  <bernds@codesourcery.com>
8041
8042         * rtlanal.c (tablejump_p): False for returns.
8043         * reorg.c (first_active_target_insn): New static function.
8044         (find_end_label): Set JUMP_LABEL for a new returnjump.
8045         (optimize_skip, get_jump_flags, rare_destination,
8046         mostly_true_jump, get_branch_condition,
8047         steal_delay_list_from_target, own_thread_p,
8048         fill_simple_delay_slots, follow_jumps, fill_slots_from_thread,
8049         fill_eager_delay_slots, relax_delay_slots, make_return_insns,
8050         dbr_schedule): Adjust to handle ret_rtx in JUMP_LABELs.
8051         * jump.c (delete_related_insns): Likewise.
8052         (jump_to_label_p): New function.
8053         (redirect_target): New static function.
8054         (redirect_exp_1): Use it.  Adjust to handle ret_rtx in JUMP_LABELS.
8055         (redirect_jump_1): Assert that the new label is nonnull.
8056         (redirect_jump): Likewise.
8057         (redirect_jump_2): Check for ANY_RETURN_P rather than NULL labels.
8058         * ifcvt.c (find_if_case_1): Take care when redirecting jumps to the
8059         exit block.
8060         (dead_or_predicable): Change NEW_DEST arg to DEST_EDGE.  All callers
8061         changed.  Ensure that the right label is passed to redirect_jump.
8062         * function.c (emit_return_into_block,
8063         thread_prologue_and_epilogue_insns): Ensure new returnjumps have
8064         ret_rtx in their JUMP_LABEL.
8065         * print-rtl.c (print_rtx): Handle ret_rtx in a JUMP_LABEL.
8066         * emit-rtl.c (skip_consecutive_labels): Allow the caller to
8067         pass ret_rtx as label.
8068         * cfglayout.c (fixup_reorder_chain): Use
8069         force_nonfallthru_and_redirect rather than force_nonfallthru.
8070         (duplicate_insn_chain): Copy JUMP_LABELs for returns.
8071         * rtl.h (ANY_RETURN_P): New macro.
8072         (jump_to_label_p): Declare.
8073         * resource.c (find_dead_or_set_registers): Handle ret_rtx in
8074         JUMP_LABELs.
8075         (mark_target_live_regs): Likewise.
8076         * basic-block.h (force_nonfallthru_and_redirect): Declare.
8077         * cfgrtl.c (force_nonfallthru_and_redirect): No longer static.
8078         * config/alpha/alpha.c (alpha_tablejump_addr_vec,
8079         alpha_tablejump_best_label): Remove functions.
8080         * config/alpha/alpha-protos.c (alpha_tablejump_addr_vec,
8081         alpha_tablejump_best_label): Remove declarations.
8082         * config/sh/sh.c (barrier_align, split_branches): Adjust for
8083         ret_rtx in JUMP_LABELs.
8084         * config/arm/arm.c (is_jump_table): Likewise.
8085
8086 2011-07-28  Uros Bizjak  <ubizjak@gmail.com>
8087
8088         * config/i386/predicates.md (pic_32bit_opreand): Do not define as
8089         special predicate.  Remove explicit mode checks.
8090
8091 2011-07-28  Jakub Jelinek  <jakub@redhat.com>
8092
8093         * dwarf2out.c (resolve_addr): For -gdwarf-2 don't optimize
8094         DW_AT_data_member_location containing just DW_OP_plus_uconst.
8095
8096         PR debug/49871
8097         * dwarf2out.c (size_of_die, value_format, output_die): Use
8098         DW_FORM_udata instead of DW_FORM_data[48] for
8099         dw_val_class_unsigned_const DW_AT_data_member_location for DWARF 3.
8100
8101 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
8102
8103         * config/i386/i386.md (*tls_global_dynamic_64): Update
8104         length attribute.
8105
8106 2011-07-28  Uros Bizjak  <ubizjak@gmail.com>
8107
8108         PR target/47715
8109         * config/i386/i386.md (*tls_global_dynamic_64): Remove mode from
8110         tls_symbolic_operand check.  Update code sequence for TARGET_X32.
8111         (tls_global_dynamic_64): Remove mode from tls_symbolic_operand check.
8112         (tls_dynamic_gnu2_64): Ditto.
8113         (*tls_dynamic_gnu2_lea_64): Ditto.
8114         (*tls_dynamic_gnu2_call_64): Ditto.
8115         (*tls_dynamic_gnu2_combine_64): Ditto.
8116
8117 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
8118
8119         * config.gcc: Set need_64bit_hwint to yes for x86 targets.
8120
8121 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
8122
8123         PR target/47364
8124         * config/i386/i386.md (strlen<mode>): Replace SWI48x with P.
8125
8126 2011-07-28  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
8127
8128         * config/arm/vfp.md ("*movdf_vfp"): Handle the VFP constraints
8129         before the core constraints. Adjust attributes.
8130         ("*thumb2_movdf_vfp"): Likewise.
8131
8132 2011-07-28  Kai Tietz  <ktietz@redhat.com>
8133
8134         * tree-vrp.c (simplify_stmt_using_ranges): Remove TRUTH_NOT_EXPR case.
8135         (simplify_truth_ops_using_ranges): Likewise.
8136         (build_assert_expr_for): Likewise.
8137         (build_assert_expr_for_1): Remove TRUTH_NOT_EXPR case
8138         and handle BIT_NOT_EXPR for truth-operation.
8139
8140 2011-07-28  Georg-Johann Lay  <avr@gjlay.de>
8141
8142         PR target/49313
8143         Undo r176835 from trunk
8144         2011-07-27  Georg-Johann Lay
8145
8146 2011-07-28  Georg-Johann Lay  <avr@gjlay.de>
8147
8148         PR target/49687
8149         * config/avr/t-avr (LIB1ASMFUNCS): Remove _xmulhisi3_exit.
8150         Add _muluhisi3, _mulshisi3, _usmulhisi3.
8151         * config/avr/libgcc.S (__mulsi3): Rewrite.
8152         (__mulhisi3): Rewrite.
8153         (__umulhisi3): Rewrite.
8154         (__usmulhisi3): New.
8155         (__muluhisi3): New.
8156         (__mulshisi3): New.
8157         (__mulohisi3): New.
8158         (__mulqi3, __mulqihi3, __umulqihi3, __mulhi3): Use DEFUN/ENDF to
8159         declare.
8160         * config/avr/predicates.md (pseudo_register_operand): Rewrite.
8161         (pseudo_register_or_const_int_operand): New.
8162         (combine_pseudo_register_operand): New.
8163         (u16_operand): New.
8164         (s16_operand): New.
8165         (o16_operand): New.
8166         * config/avr/avr.c (avr_rtx_costs): Handle costs for mult:SI.
8167         * config/avr/avr.md (QIHI, QIHI2): New mode iterators.
8168         (any_extend, any_extend2): New code iterators.
8169         (extend_prefix): New code attribute.
8170         (mulsi3): Rewrite. Turn insn to expander.
8171         (mulhisi3): Ditto.
8172         (umulhisi3): Ditto.
8173         (usmulhisi3): New expander.
8174         (*mulsi3): New insn-and-split.
8175         (mulu<mode>si3): New insn-and-split.
8176         (muls<mode>si3): New insn-and-split.
8177         (mulohisi3): New insn-and-split.
8178         (*uumulqihisi3, *uumulhiqisi3, *uumulhihisi3, *uumulqiqisi3,
8179         *usmulqihisi3, *usmulhiqisi3, *usmulhihisi3, *usmulqiqisi3,
8180         *sumulqihisi3, *sumulhiqisi3, *sumulhihisi3, *sumulqiqisi3,
8181         *ssmulqihisi3, *ssmulhiqisi3, *ssmulhihisi3, *ssmulqiqisi3): New
8182         insn-and-split.
8183         (*mulsi3_call): Rewrite.
8184         (*mulhisi3_call): Rewrite.
8185         (*umulhisi3_call): Rewrite.
8186         (*usmulhisi3_call): New insn.
8187         (*muluhisi3_call): New insn.
8188         (*mulshisi3_call): New insn.
8189         (*mulohisi3_call): New insn.
8190         (extendqihi2): Use combine_pseudo_register_operand as predicate
8191         for operand 1.
8192         (extendqisi2): Ditto.
8193         (zero_extendqihi2): Ditto.
8194         (zero_extendqisi2): Ditto.
8195         (zero_extendhisi2): Ditto.
8196         (extendhisi2): Ditto. Don't early-clobber operand 0.
8197
8198 2011-07-28  Uros Bizjak  <ubizjak@gmail.com>
8199
8200         * config/i386/i386.c (add->lea splitter): Add SWI mode to PLUS RTX.
8201
8202 2011-07-27  Sebastian Pop  <sebastian.pop@amd.com>
8203
8204         PR tree-optimization/49471
8205         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Build an unsigned
8206         iv only when the largest type is unsigned.  Do not call
8207         lang_hooks.types.type_for_size.
8208
8209 2011-07-27  Sebastian Pop  <sebastian.pop@amd.com>
8210
8211         PR middle-end/45450
8212         * graphite-poly.c (apply_poly_transforms): Disable legality check
8213         after an openscop read.
8214
8215 2011-07-27  Sebastian Pop  <sebastian.pop@amd.com>
8216
8217         PR middle-end/47691
8218         * graphite-clast-to-gimple.c (translate_clast_user): Update use of
8219         copy_bb_and_scalar_dependences.
8220         * sese.c (rename_uses): Do not call gcc_assert.  Set gloog_error.
8221         (graphite_copy_stmts_from_block): Update call to rename_uses.
8222         (copy_bb_and_scalar_dependences): Update call to
8223         graphite_copy_stmts_from_block.
8224         * sese.h (copy_bb_and_scalar_dependences): Update declaration.
8225
8226 2011-07-27  Georg-Johann Lay  <avr@gjlay.de>
8227
8228         PR target/49313
8229         * config/avr/libgcc.S (__ffshi2): Don't skip 2-word instruction.
8230         (__ctzsi2): Result for 0 may be undefined.
8231         (__ctzhi2): Result for 0 may be undefined.
8232         (__popcounthi2): Don't clobber r30. Use __popcounthi2_tail.
8233         (__popcountsi2): Ditto. And don't clobber r26.
8234         (__popcountdi2): Ditto. And don't clobber r27.
8235         * config/avr/avr.md (UNSPEC_COPYSIGN): New c_enum.
8236         (parityhi2): New expand.
8237         (paritysi2): New expand.
8238         (popcounthi2): New expand.
8239         (popcountsi2): New expand.
8240         (clzhi2): New expand.
8241         (clzsi2): New expand.
8242         (ctzhi2): New expand.
8243         (ctzsi2): New expand.
8244         (ffshi2): New expand.
8245         (ffssi2): New expand.
8246         (copysignsf3): New insn.
8247         (bswapsi2): New expand.
8248         (*parityhi2.libgcc): New insn.
8249         (*parityqihi2.libgcc): New insn.
8250         (*paritysihi2.libgcc): New insn.
8251         (*popcounthi2.libgcc): New insn.
8252         (*popcountsi2.libgcc): New insn.
8253         (*popcountqi2.libgcc): New insn.
8254         (*popcountqihi2.libgcc): New insn-and-split.
8255         (*clzhi2.libgcc): New insn.
8256         (*clzsihi2.libgcc): New insn.
8257         (*ctzhi2.libgcc): New insn.
8258         (*ctzsihi2.libgcc): New insn.
8259         (*ffshi2.libgcc): New insn.
8260         (*ffssihi2.libgcc): New insn.
8261         (*bswapsi2.libgcc): New insn.
8262
8263 2011-07-27  Uros Bizjak  <ubizjak@gmail.com>
8264
8265         * config/i386/i386.c (ix86_expand_move): Do not explicitly check
8266         the mode of symbolic_opreand RTXes.
8267
8268 2011-07-27  Uros Bizjak  <ubizjak@gmail.com>
8269
8270         * config/i386/predicates.md (x86_64_movabs_operand): Return false
8271         for pic_32bit_operand RTXes.
8272         * config/i386/i386.c (ix86_expand_move): Check x86_64_movabs_operand
8273         in DImode.
8274
8275 2011-07-27  Kai Tietz  <ktietz@redhat.com>
8276
8277         * config/i386/i386.c (ix86_option_override_internal): Allow -mabi
8278         for 32-bit, too.
8279         (ix86_handle_abi_attribute): Allow function attributes
8280         ms_abi/sysv_abi in 32-bit mode, too.
8281         * doc/extend.texi: Adjust attribute documentation.
8282
8283         * gimple-fold.c (or_comparisons_1): Remove TRUTH_AND/OR
8284         expression handling.
8285         (and_var_with_comparison_1): Likewise.
8286
8287 2011-07-27  Aldy Hernandez  <aldyh@redhat.com>
8288
8289         * params.h (ALLOW_STORE_DATA_RACES): New.
8290         * params.def (PARAM_ALLOW_STORE_DATA_RACES): New.
8291         * Makefile.in (expr.o): Depend on PARAMS_H.
8292         * machmode.h (get_best_mode): Add argument.
8293         * fold-const.c (optimize_bit_field_compare): Add argument to
8294         get_best_mode.
8295         (fold_truthop): Same.
8296         * ifcvt.c (noce_emit_move_insn): Add argument to store_bit_field.
8297         * expr.c (emit_group_store): Same.
8298         (copy_blkmode_from_reg): Same.
8299         (write_complex_part): Same.
8300         (optimize_bitfield_assignment_op): Add argument.
8301         Add argument to get_best_mode.
8302         (get_bit_range): New.
8303         (expand_assignment): Calculate maxbits and pass it down accordingly.
8304         (store_field): New argument.
8305         (expand_expr_real_2): New argument to store_field.  Include params.h.
8306         * expr.h (store_bit_field): New argument.
8307         * stor-layout.c (get_best_mode): Restrict mode expansion by taking
8308         into account maxbits.
8309         * calls.c (store_unaligned_arguments_into_pseudos): New argument
8310         to store_bit_field.
8311         * expmed.c (store_bit_field_1): New argument.  Use it.
8312         (store_bit_field): Same.
8313         (store_fixed_bit_field): Same.
8314         (store_split_bit_field): Same.
8315         (extract_bit_field_1): Pass new argument to get_best_mode.
8316         (extract_bit_field): Same.
8317         * stmt.c (store_bit_field): Pass new argument to store_bit_field.
8318         * doc/invoke.texi: Document parameter allow-store-data-races.
8319
8320 2011-07-27  Jakub Jelinek  <jakub@redhat.com>
8321
8322         * dwarf2out.c (gen_producer_string): Ignore also -fverbose-asm option.
8323
8324 2011-07-27  Kai Tietz  <ktietz@redhat.com>
8325
8326         * tree-vrp.c (extract_range_from_binary_expr): Remove
8327         TRUTH-binary cases and add new bitwise-cases.
8328         (extract_range_from_assignment): Likewise.
8329         (register_edge_assert_for_1): Likeiwise.
8330         (register_edge_assert_for): Likewise.
8331         (simplify_truth_ops_using_ranges): Likewise.
8332         (simplify_stmt_using_ranges): Likewise.
8333
8334 2011-07-26  H.J. Lu  <hongjiu.lu@intel.com>
8335
8336         PR target/47372
8337         * config/i386/i386.c (ix86_delegitimize_address): Call
8338         simplify_gen_subreg for PIC with mode of x only if modes of
8339         x and orig_x are different.
8340
8341 2011-07-26  Jakub Jelinek  <jakub@redhat.com>
8342
8343         * dwarf2out.c (output_macinfo_op): Ensure fd->filename points
8344         to GC allocated copy of the string.
8345         (dwarf2out_finish): Emit .debug_macinfo or .debug_macro sections
8346         before .debug_line, not after it.
8347
8348 2011-07-26  Sebastian Pop  <sebastian.pop@amd.com>
8349
8350         PR middle-end/47046
8351         * tree-chrec.h (evolution_function_is_affine_p): Recursively call
8352         evolution_function_is_affine_p on CHREC_RIGHT.
8353
8354 2011-07-26  Sebastian Pop  <sebastian.pop@amd.com>
8355
8356         * tree-data-ref.c (max_stmt_executions_tree): Do not call
8357         lang_hooks.types.type_for_size.
8358
8359 2011-07-26  Sebastian Pop  <sebastian.pop@amd.com>
8360
8361         PR middle-end/47653
8362         * graphite-scop-detection.c (graphite_can_represent_loop): Discard
8363         loops using wrapping semantics.
8364
8365 2011-07-26  Sebastian Pop  <sebastian.pop@amd.com>
8366
8367         PR middle-end/48805
8368         * tree-scalar-evolution.c (instantiate_scev_r): Return
8369         chrec_dont_know for ADDR_EXPR.
8370
8371 2011-07-26  Uros Bizjak  <ubizjak@gmail.com>
8372             H.J. Lu  <hongjiu.lu@intel.com>
8373
8374         PR target/47369
8375         PR target/49853
8376         * config/i386/i386.c (ix86_expand_move): Call convert_to_mode
8377         if legitimize_tls_address returned operand in wrong mode. Allow
8378         SImode and DImode symbolic operand for PIC.  Call convert_to_mode
8379         if legitimize_pic_address returned operand in wrong mode.
8380
8381 2011-07-26  Martin Jambor  <mjambor@suse.cz>
8382
8383         * tree-sra.c (tree_non_mode_aligned_mem_p): Strip conversions and
8384         return false for invariants.
8385
8386 2011-07-26  Uros Bizjak  <ubizjak@gmail.com>
8387
8388         * config/i386/i386.md (add->lea splitter): Implement using SWI
8389         mode iterator.  Change operand 2 predicate to <nonmemory_operand>.
8390         (add->lea zext splitter): Change operand 2 predicate to
8391         x86_64_nonmemory_operand.
8392
8393 2011-07-26  Richard Guenther  <rguenther@suse.de>
8394
8395         * predict.c (maybe_hot_frequency_p): Make sure a zero entry-block
8396         frequency makes everything hot.
8397
8398 2011-07-26  Richard Guenther  <rguenther@suse.de>
8399
8400         PR tree-optimization/49840
8401         * tree-vrp.c (range_fits_type_p): Properly handle full
8402         double-int precision.
8403
8404 2011-07-26  Martin Jambor  <mjambor@suse.cz>
8405
8406         PR bootstrap/49786
8407         * ipa-cp.c (update_profiling_info): Avoid overflow when updating
8408         counts.
8409         (update_specialized_profile): Likewise.
8410
8411 2011-07-26  Uros Bizjak  <ubizjak@gmail.com>
8412             H.J. Lu  <hongjiu.lu@intel.com>
8413
8414         PR target/47381
8415         PR target/49832
8416         PR target/49833
8417         * config/i386/i386.md (i): Change SImode attribute to "e".
8418         (g): Change SImode attribute to "rme".
8419         (di): Change SImode attribute to "nF".
8420         (general_operand): Change SImode attribute to x86_64_general_operand.
8421         (general_szext_operand): Change SImode attribute to
8422         x86_64_szext_general_operand.
8423         (immediate_operand): Change SImode attribute to
8424         x86_64_immediate_operand.
8425         (nonmemory_operand): Change SImode attribute to
8426         x86_64_nonmemory_operand.
8427         (*movdi_internal_rex64): Remove mode from pic_32bit_operand check.
8428         (*movsi_internal): Ditto.  Use "e" constraint in alternative 2.
8429         (*lea_1): Use SWI48 mode iterator.
8430         (*lea_1_zext): New insn pattern.
8431         (testsi_ccno_1): Use x86_64_nonmemory_operand predicate for operand 2.
8432         (*bt<mode>): Ditto.
8433         (*add<mode>1): Use x86_64_general_operand predicate for operand 2.
8434         Update operand constraints.
8435         (addsi_1_zext): Ditto.
8436         (*add<mode>2): Ditto.
8437         (*addsi_3_zext): Ditto.
8438         (*subsi_1_zext): Ditto.
8439         (*subsi_2_zext): Ditto.
8440         (*subsi_3_zext): Ditto.
8441         (*addsi3_carry_zext): Ditto.
8442         (*<plusminus_insn>si3_zext_cc_overflow): Ditto.
8443         (*mulsi3_1_zext): Ditto.
8444         (*andsi_1): Ditto.
8445         (*andsi_1_zext): Ditto.
8446         (*andsi_2_zext): Ditto.
8447         (*<any_or:code>si_1_zext): Ditto.
8448         (*<any_or:code>si_2_zext): Ditto.
8449         (*test<mode>_1): Use <general_operand> predicate for operand 1.
8450         (*and<mode>_2): Ditto.
8451         (mov<mode>cc): Use  <general_operand> predicate for operands 1 and 2.
8452         (add->lea splitter): Check operand modes in insn constraint.  Extend
8453         operands less than SImode wide to SImode.
8454         (add->lea zext splitter): Do not extend input operands to DImode.
8455         (*lea_general_1): Handle only QImode and HImode operands.
8456         (*lea_general_2): Ditto.
8457         (*lea_general_3): Ditto.
8458         (*lea_general_1_zext): Remove.
8459         (*lea_general_2_zext): Ditto.
8460         (*lea_general_3_zext): Ditto.
8461         (*lea_general_4): Check operand modes in insn constraint.  Extend
8462         operands less than SImode wide to SImode.
8463         (ashift->lea splitter): Ditto.
8464         * config/i386/i386.c (ix86_print_operand_address): Print address
8465         registers with 'q' modifier on 64bit targets.
8466         * config/i386/predicates.md (pic_32bit_opreand): Define as special
8467         predicate.  Reject non-SI and non-DI modes.
8468
8469 2011-07-25  Andrew Pinski  <apinski@cavium.com>
8470
8471         PR tree-opt/49671
8472         * tree-inline.c (remap_gimple_op_r): Copy TREE_THIS_VOLATILE and
8473         TREE_THIS_NOTRAP into the inner most MEM_REF.
8474         Always copy TREE_THIS_VOLATILE.
8475         * tree-sra.c (ptr_parm_has_direct_uses): Check that the lhs, rhs and
8476         arguments are not volatile references.
8477
8478 2011-07-25  Richard Henderson  <rth@redhat.com>
8479
8480         * insn-notes.def (NOTE_INSN_CFA_RESTORE_STATE): Remove.
8481         * final.c (final_scan_insn): Don't test for it.
8482         (rest_of_clean_state): Likewise.
8483
8484 2011-07-25  Richard Henderson  <rth@redhat.com>
8485
8486         PR debug/49841
8487         * config/rs6000/rs6000.c (rs6000_frame_related): Return the insn.
8488         (emit_frame_save): Likewise.
8489         (rs6000_emit_prologue): Move the FRAME_RELATED_EXPR from the save
8490         insn onto a dummy blockage insn after the join label.
8491
8492 2011-07-25  Richard Henderson  <rth@redhat.com>
8493
8494         * dwarf2cfi.c (dw_trace_info): Add ID member.
8495         (get_trace_index): Remove.  Change users to use ID member.
8496         (before_next_cfi_note): New.
8497         (connect_traces): Remove unreachable traces before the main loop.
8498         Look across one trace and generate remember/restore_state if needed.
8499
8500 2011-07-25  Richard Henderson  <rth@redhat.com>
8501
8502         * dwarf2cfi.c (dump_cfi_row, debug_cfi_row): New.
8503
8504 2011-07-25  Joern Rennecke  <joern.rennecke@embecosm.com>
8505
8506         * genattr.c (write_upcase, gen_attr <enum definition writing>):
8507         Move to ...
8508         * genattr-common.c ... here.
8509         (main): Call gen_attr.
8510         * optc-gen.awk: Make generated program include insn-attr-common.h .
8511         * Makefile.in (oprions.o): Depend on insn-attr-common.h
8512
8513 2011-07-25  Anatoly Sokolov  <aesok@post.ru>
8514
8515         * config/m32c/m32c.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
8516         PRINT_OPERAND_PUNCT_VALID_P): Remove macro.
8517         * config/m32c/m32c-protos.h (m32c_print_operand_punct_valid_p,
8518         m32c_print_operand, m32c_print_operand_address): Remove.
8519         * config/m32c/m32c.c (m32c_print_operand_punct_valid_p): Make static.
8520         Change return type to bool. Change argument type to bool.
8521         (m32c_print_operand, m32c_print_operand_address): Make static.
8522         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS,
8523         TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
8524
8525 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8526
8527         * doc/sourcebuild.texi (Effective-Target Keywords, Environment
8528         attributes): Document mmap.
8529
8530 2011-07-25  Anatoly Sokolov  <aesok@post.ru>
8531
8532         * config/mmix/mmix.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
8533         PRINT_OPERAND_PUNCT_VALID_P): Remove macro.
8534         * config/mmix/mmix-protos.h (mmix_print_operand_punct_valid_p,
8535         mmix_print_operand, mmix_print_operand_address): Remove.
8536         * config/mmix/mmix.c (mmix_print_operand_punct_valid_p): Make static.
8537         Change return type to bool. Change argument type to bool.
8538         (mmix_print_operand, mmix_print_operand_address): Make static.
8539         (mmix_intval, mmix_output_condition): Change 'x' argument type
8540         to const_rtx.
8541         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS,
8542         TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
8543
8544 2011-07-25  Georg-Johann Lay  <avr@gjlay.de>
8545
8546         PR target/39386
8547         * config/avr/avr.c (out_shift_with_cnt): Use tmp_reg as
8548         shift counter for x << x and x >> x shifts.
8549
8550 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8551
8552         PR target/47124
8553         * config.gcc: Reject *-*-solaris2 configuration.
8554
8555 2011-07-25  Richard Sandiford  <richard.sandiford@linaro.org>
8556
8557         PR tree-optimization/49809
8558         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Use
8559         gimple_get_lhs instead of gimple_assign_lhs.
8560
8561 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8562
8563         * system.h [__cplusplus]: Wrap C function declarations in extern "C".
8564
8565 2011-07-25  Richard Guenther  <rguenther@suse.de>
8566
8567         PR tree-optimization/49822
8568         * tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify
8569         more.  Make sure to preserve stmts with side-effects.  Properly
8570         handle virtual defs, follow a longer def chain.
8571
8572 2011-07-22  Romain Geissler  <romain.geissler@gmail.com>
8573
8574         PR plugins/45348
8575         PR plugins/48425
8576         PR plugins/46577
8577         * Makefile.in: Do not flatten c-family directory when installing
8578         plugin headers.
8579
8580 2011-07-25  Eric Botcazou  <ebotcazou@adacore.com>
8581
8582         * ipa-inline.c (can_inline_edge_p): Look into DECL_STRUCT_FUNCTION of
8583         original nodes if we are dealing with virtual clones.
8584
8585 2011-07-25  Bernd Schmidt  <bernds@codesourcery.com>
8586
8587         * common/config/c6x/c6x-common.c: New file.
8588
8589 2011-07-25  Roman Zhuykov  <zhroma@ispras.ru>
8590
8591         * tree-flow.h (tree_ssa_loop_version): Remove unused declaration.
8592
8593 2011-07-25  Richard Guenther  <rguenther@suse.de>
8594
8595         PR tree-optimization/49715
8596         * tree-vrp.c: Include expr.h and optabs.h.
8597         (range_fits_type_): New function.
8598         (simplify_float_conversion_using_ranges): Likewise.
8599         (simplify_stmt_using_ranges): Call it.
8600         * Makefile.in (tree-vrp.o): Add $(EXPR_H) and $(OPTABS_H) dependencies.
8601         * optabs.c (can_float_p): Export.
8602         * optabs.h (can_float_p): Declare.
8603
8604 2011-07-25  Richard Guenther  <rguenther@suse.de>
8605
8606         * tree-vrp.c (num_vr_values, values_propagated): New global vars.
8607         (get_value_range): For out-of-range SSA names or names created
8608         after propagation return a read-only varying range.
8609         (dump_all_value_ranges): Adjust.
8610         (vrp_initialize): Likewise.
8611         (vrp_finalize): Likewise.
8612
8613 2011-07-24  Richard Henderson  <rth@redhat.com>
8614
8615         PR debug/49831
8616         * dwarf2cfi.c (connect_traces): Allow unvisited traces.  Skip
8617         them entirely.
8618
8619 2011-07-24  Richard Henderson  <rth@redhat.com>
8620
8621         PR debug/49825
8622         * dwarf2cfi.c (dwarf2out_stack_adjust): Move A_O_A test earlier.
8623         (dwarf2out_notice_stack_adjust): Use args_size from call_insn.
8624
8625 2011-07-24  Richard Henderson  <rth@redhat.com>
8626
8627         PR debug/49827
8628         * dwarf2cfi.c (create_trace_edges): Handle sequences properly.
8629
8630 2011-07-24  Richard Henderson  <rth@redhat.com>
8631
8632         * dwarf2cfi.c (maybe_record_trace_start): Add abnormal parameter.
8633         Zero args_size for abnormal edges.  Adjust all callers.
8634
8635 2011-07-24  Richard Henderson  <rth@redhat.com>
8636
8637         PR debug/49825
8638         * dwarf2cfi.c (cfi_row_equal_p): Don't compare args_size.
8639
8640 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
8641
8642         PR bootstrap/49835
8643         * collect2.c (demangle_flag): Removed.
8644
8645 2011-07-24  Sandra Loosemore  <sandra@codesourcery.com>
8646
8647         * configure.ac (demangler_in_ld): Default to yes.
8648         * configure: Regenerated.
8649         * collect2.c (main): When HAVE_LD_DEMANGLE is defined, don't
8650         mess with COLLECT_NO_DEMANGLE, and just pass --demangle and
8651         --no-demangle options straight through to ld.  When
8652         HAVE_LD_DEMANGLE is not defined, set COLLECT_NO_DEMANGLE in a
8653         way that has the intended effect on Windows.
8654
8655 2011-07-23  Richard Henderson  <rth@redhat.com>
8656
8657         * dwarf2cfi.c: Include basic-block.h.
8658         (dw_label_info): Remove.
8659         (trace_work_list, trace_index): New.
8660         (remember_row, emit_cfa_remember): Remove.
8661         (dw_trace_info_hash, dw_trace_info_eq): New.
8662         (get_trace_index, get_trace_info): New.
8663         (save_point_p): New.
8664         (free_cfi_row): Remove.
8665         (add_cfi): Do not emit DW_CFA_remember_state.
8666         (cfa_row_equal_p): New.
8667         (barrier_args_size): Remove.
8668         (compute_barrier_args_size_1, compute_barrier_args_size): Remove.
8669         (dwarf2out_notice_stack_adjust): Don't compute_barrier_args_size.
8670         (maybe_record_trace_start, create_trace_edges, scan_trace): New.
8671         (dwarf2out_cfi_begin_epilogue): Remove.
8672         (dwarf2out_frame_debug_restore_state): Remove.
8673         (connect_traces, create_pseudo_cfg): New.
8674         (create_cfi_notes, execute_dwarf2_frame): Rewrite using traces.
8675         * Makefile.in (dwarf2cfi.o): Update.
8676
8677 2011-07-23  Richard Henderson  <rth@redhat.com>
8678
8679         * dwarf2cfi.c (dw_trace_info): New.
8680         (dw_label_info): New.
8681         (cie_return_save): New.
8682         (cur_trace): New.
8683         (queued_args_size): Rename from args_size.  Update all users.
8684         (cfa_store, cfa_temp, regs_saved_in_regs): Remove.
8685         (def_cfa_1): Use cur_trace instead of cfa_*.
8686         (dwarf2out_stack_adjust, record_reg_saved_in_reg): Likewise.
8687         (clobbers_queued_reg_save, reg_saved_in): Likewise.
8688         (dwarf2out_frame_debug_expr): Likewise.
8689         (create_cie_data): Split out from ...
8690         (execute_dwarf2_frame): ... here.  Initialize cur_trace.
8691
8692 2011-07-23  Richard Henderson  <rth@redhat.com>
8693
8694         * dwarf2cfi.c (regs_saved_in_regs): Allocate from heap, not gc.
8695         Update all users to match.
8696         (execute_dwarf2_frame): Free reg_saved_in_data.
8697
8698 2011-07-23  Richard Henderson  <rth@redhat.com>
8699
8700         * dwarf2cfi.c (queued_reg_save): Reorder for packing.  Don't GTY.
8701         (queued_reg_saves): Don't GTY.  Change to a VEC.
8702         (queue_reg_save): Update to match.
8703         (dwarf2out_flush_queued_reg_saves): Likewise.
8704         (clobbers_queued_reg_save): Likewise.
8705         (reg_saved_in): Likewise.
8706         (execute_dwarf2_frame): Free queued_reg_saves.
8707
8708 2011-07-23  Richard Henderson  <rth@redhat.com>
8709
8710         * dwarf2cfi.c (dw_cfi_row_ref): Remove.  Update all users.
8711
8712 2011-07-23  Richard Henderson  <rth@redhat.com>
8713
8714         * dwarf2cfi.c (add_cfi_args_size): Split out from...
8715         (dwarf2out_args_size): ... here.
8716         (add_cfi_restore): Split out from ...
8717         (dwarf2out_frame_debug_cfa_restore): ... here.
8718         (def_cfa_0): Split out from ...
8719         (def_cfa_1): ... here.
8720         (cfi_oprnd_equal_p, cfi_equal_p): New.
8721         (change_cfi_row): New.
8722         (add_cfis_to_fde): Set fde->dw_fde_switch_cfi_index.
8723         (create_cfi_notes): Use change_cfi_row at SWITCH_TEXT note.
8724         (output_cfis): Remove.
8725         * dwarf2out.c (output_fde): Simplify output_cfi loop.
8726         (dwarf2out_switch_text_section): Don't call output_cfis.
8727         (dw_val_equal_p, loc_descr_equal_p_1, loc_descr_equal_p): New.
8728         * dwarf2out.h: Update decls.
8729         (enum dw_val_class): Add dw_val_class_none.
8730
8731 2011-07-23  Richard Henderson  <rth@redhat.com>
8732
8733         * dwarf2cfi.c (update_row_reg_save): New.
8734         (dwarf2out_frame_debug_cfa_expression): Use it.
8735         (dwarf2out_frame_debug_cfa_restore): Likewise.
8736         (reg_save): Likewise.  Do not emit DW_CFA_same_value.
8737
8738 2011-07-23  Richard Henderson  <rth@redhat.com>
8739
8740         * dwarf2cfi.c (add_cfi_insn): Rename from cfi_insn.  Update all users.
8741
8742 2011-07-23  Richard Henderson  <rth@redhat.com>
8743
8744         * dwarf2cfi.c (dw_cfi_row, dw_cfi_row_ref): New.
8745         (cie_cfi_row): New.
8746         (new_cfi_row, copy_cfi_row, free_cfi_row): New.
8747         (cfa, old_cfa, cfa_remember, old_cfa_remember, old_args_size): Remove.
8748         (cur_row, remember_row): New.
8749         (def_cfa_1): Use cur_row instead of the old_* variables.
8750         (dwarf2out_frame_debug_restore_state): Similarly.
8751         (dwarf2out_args_size, dwarf2out_notice_stack_adjust): Likewise.
8752         (dwarf2out_frame_debug_def_cfa): Use a local variable instead of cfa.
8753         (dwarf2out_frame_debug_adjust_cfa): Likewise.
8754         (dwarf2out_frame_debug_cfa_offset): Likewise.
8755         (dwarf2out_frame_debug_expr): Likewise.
8756         (execute_dwarf2_frame): Set up cur_row.
8757         * dwarf2out.h (struct cfa_loc): Mark for GTY.
8758
8759 2011-07-23  Richard Henderson  <rth@redhat.com>
8760
8761         * basic-block.h (EDGE_PRESERVE): New.
8762         (EDGE_ALL_FLAGS, EDGE_COMPLEX): Include it.
8763         * bb-reorder.c: Include except.h.
8764         (fix_up_crossing_landing_pad): New.
8765         (find_rarely_executed_basic_blocks_and_crossing_edges): Place
8766         landing pads in the right partition.  Duplicate as necessary.
8767         (partition_hot_cold_basic_blocks): Fix up DF info after
8768         duplicating landing pads.
8769         * cfg.c (dump_edge_info): Add crossing and preserve to bitnames.
8770         * cfgrtl.c (rtl_verify_flow_info_1): Validate that EDGE_CROSSING
8771         is set properly.  Validate that EH edges are not CROSSING.
8772         * except.c (expand_dw2_landing_pad_for_region): Split out from ...
8773         (dw2_build_landing_pads): ... here.
8774         (convert_to_eh_region_ranges): Remove code to fixup crossing
8775         landing pads.
8776         * except.h (expand_dw2_landing_pad_for_region): Declare.
8777         * tree-cfg.c (gimple_can_merge_blocks_p): Don't merge PRESERVE edges.
8778
8779 2011-07-23  Richard Earnshaw  <rearnsha@arm.com>
8780
8781         PR target/49816
8782         * arm.c (aapcs_vfp_allocate_return_reg): Return NULL on failure.
8783
8784 2011-07-22  Jason Merrill  <jason@redhat.com>
8785
8786         * doc/invoke.texi (C++ Dialect Options): Document -Wno-narrowing.
8787
8788 2011-07-22  Richard Henderson  <rth@redhat.com>
8789
8790         * bb-reorder.c (gate_handle_partition_blocks): Honor optimize.
8791
8792 2011-07-22  Richard Henderson  <rth@redhat.com>
8793
8794         * jump.c (maybe_propagate_label_ref): Split out of...
8795         (mark_all_labels): ... here.  Do not attempt label_ref
8796         propagation while in cfglayout mode.
8797
8798 2011-07-22  Jakub Jelinek  <jakub@redhat.com>
8799
8800         * dwarf2out.c (struct macinfo_struct): Change code to unsigned char.
8801         (DEBUG_MACRO_SECTION, DEBUG_MACRO_SECTION_LABEL): Define.
8802         (dwarf_attr_name): Handle DW_AT_GNU_macros.
8803         (dwarf2out_define): If the vector is empty and
8804         lineno is 0, emit a dummy entry first.
8805         (dwarf2out_undef): Likewise.  Remove redundant semicolon.
8806         (htab_macinfo_hash, htab_macinfo_eq, output_macinfo_op,
8807         optimize_macinfo_range): New functions.
8808         (output_macinfo): Use them.  If !dwarf_strict and .debug_str is
8809         mergeable, optimize longer strings using
8810         DW_MACRO_GNU_{define,undef}_indirect and if HAVE_COMDAT_GROUP,
8811         optimize longer sequences of define/undef ops from headers
8812         using DW_MACRO_GNU_transparent_include.  For !dwarf_strict
8813         emit a section headers.
8814         (dwarf2out_init): For !dwarf_strict set debug_macinfo_section
8815         and macinfo_section_label to DEBUG_MACRO_SECTION
8816         resp. DEBUG_MACRO_SECTION_LABEL.
8817         (dwarf2out_finish): For !dwarf_strict emit DW_AT_GNU_macros
8818         instead of DW_AT_macro_info.
8819
8820         PR other/32998
8821         * common.opt (grecord-gcc-switches, gno-record-gcc-switches): New
8822         options.
8823         * dwarf2out.c: Include opts.h.
8824         (dchar_p): New typedef.  Define heap VEC for it.
8825         (producer_string): New variable.
8826         (gen_producer_string): New function.
8827         (gen_compile_unit_die): Use it.
8828         (dwarf2out_finish): Fix up comp_unit_die () DW_AT_producer if needed.
8829         * Makefile.in (dwarf2out.o): Depend on $(OPTS_H).
8830         * doc/invoke.texi: Document -grecord-gcc-switches and
8831         -gno-record-gcc-switches, add a -grecord-gcc-switches reference
8832         to -frecord-gcc-switches description.
8833
8834 2011-07-22  Jason Merrill  <jason@redhat.com>
8835
8836         PR c++/30112
8837         * c-decl.c (c_linkage_bindings): Define.
8838
8839 2011-07-22  Eric Botcazou  <ebotcazou@adacore.com>
8840
8841         PR debug/49815
8842         * var-tracking.c (vt_finalize): Always free windowed_parm_regs.
8843
8844 2011-07-22  H.J. Lu  <hongjiu.lu@intel.com>
8845
8846         * config/i386/i386.c (ix86_option_override_internal): Disallow
8847         MS ABI in x32 mode.
8848         (ix86_init_builtins): Call ix86_init_builtins_va_builtins_abi
8849         only for TARGET_LP64.
8850         (ix86_handle_abi_attribute): Check TARGET_LP64 instead of TARGET_64BIT.
8851
8852 2011-07-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
8853
8854         * config/rs6000/rs6000.c (rs6000_xcoff_strip_dollar): Rewrite to
8855         avoid warnings when GCC is built with a C++ compiler.
8856
8857 2011-07-22  Martin Jambor  <mjambor@suse.cz>
8858
8859         PR lto/49796
8860         * cgraphunit.c (verify_edge_corresponds_to_fndecl): Return false
8861         if decl node is in another partition, call cgraph_get_node only once.
8862
8863 2011-07-22  Uros Bizjak  <ubizjak@gmail.com>
8864
8865         * config.gcc (x86_64-*-linux*): Set
8866         default_gnu_indirect_function to yes.
8867
8868 2011-07-22  Richard Guenther  <rguenther@suse.de>
8869
8870         PR tree-optimization/45819
8871         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly
8872         preserve volatile and notrap flags.
8873
8874 2011-07-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8875             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8876
8877         PR bootstrap/49794
8878         * configure.ac: Test AM_ICONV with CXX.
8879         * configure: Regenerate.
8880         * config/sol2-c.c (solaris_format_types): Use EXPORTED_CONST.
8881
8882 2011-07-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8883
8884         PR bootstrap/49797
8885         * graphite-clast-to-gimple.c (CLOOG_LANGUAGE_C): Provide if missing.
8886         (set_cloog_options): Use it.
8887
8888 2011-07-22  Jakub Jelinek  <jakub@redhat.com>
8889
8890         PR c++/49756
8891         * gcc.c (main): Call stack_limit_increase (64MB).
8892         * toplev.c (toplev_main): Likewise.
8893
8894 2011-07-21  H.J. Lu  <hongjiu.lu@intel.com>
8895
8896         * config/i386/i386.c (ix86_expand_call): Call copy_to_mode_reg
8897         instead of force_reg.
8898
8899 2011-07-21  H.J. Lu  <hongjiu.lu@intel.com>
8900
8901         * config/i386/i386.c (ix86_expand_move): Convert to Pmode if
8902         needed and use force_reg after convert.
8903         (ix86_expand_call): Likewise.
8904         (ix86_expand_special_args_builtin): Likewise.
8905         (ix86_expand_builtin): Likewise.
8906
8907 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
8908
8909         PR middle-end/47654
8910         PR middle-end/49649
8911         * graphite-clast-to-gimple.c (type_for_clast_term): Pass v1 and v2
8912         in parameter.  Initialize v1 and v2 based on the values returned
8913         by clast_name_to_lb_ub.
8914         (type_for_clast_red): Pass v1 and v2 in parameter, and set their
8915         values.
8916         (type_for_clast_bin): Same.
8917         (type_for_clast_expr): Same.
8918         (type_for_clast_eq): Update calls to type_for_clast_expr.
8919         (type_for_clast_for): Same.
8920         (build_iv_mapping): Same.
8921         * graphite-ppl.h (value_min): New.
8922
8923 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
8924
8925         * graphite-clast-to-gimple.c (type_for_interval): Generate signed
8926         types whenever possible.
8927
8928 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
8929
8930         * graphite-clast-to-gimple.c (struct clast_name_index): Add lb
8931         and ub fields.
8932         (new_clast_name_index): Add lb and ub parameters.
8933         (free_clast_name_index): New.
8934         (clast_name_to_lb_ub): New.
8935         (save_clast_name_index): Add lb and ub parameters.
8936         (compute_bounds_for_param): New.
8937         (type_for_level): Removed.
8938         (type_for_clast_for): Removed level parameter.  Do not call
8939         type_for_level.
8940         (graphite_create_new_loop): Store the lb and ub for the clast_name
8941         of the iterator of the loop that has been generated.
8942         (graphite_create_new_loop_guard): Remove parameter level.
8943         (create_params_index): Store the lb and ub of each parameter.
8944         (gloog): Use free_clast_name_index.  Pass to create_params_index
8945         the current scop.
8946
8947 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
8948
8949         * graphite-clast-to-gimple.c (max_signed_precision_type): Removed.
8950         (max_precision_type): Inline max_signed_precision_type.
8951         (type_for_clast_red): Use max_precision_type.
8952         (type_for_clast_bin): Same.
8953         (type_for_clast_for): Same.
8954
8955 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
8956
8957         * graphite-clast-to-gimple.c (gcc_type_for_interval): Renamed
8958         type_for_interval.
8959         (gcc_type_for_value): Renamed type_for_value.
8960         (gcc_type_for_clast_term): Renamed type_for_clast_term.
8961         (gcc_type_for_clast_expr): Renamed type_for_clast_expr.
8962         (gcc_type_for_clast_red): Renamed type_for_clast_red.
8963         (gcc_type_for_clast_bin): Renamed type_for_clast_bin.
8964         (gcc_type_for_clast_eq): Renamed type_for_clast_eq.
8965         (graphite_translate_clast_equation): Update calls.
8966         (compute_type_for_level): Renamed type_for_level.
8967         (gcc_type_for_iv_of_clast_loop): Renamed type_for_clast_for.
8968         (build_iv_mapping): Update calls.
8969         (graphite_create_new_loop_guard): Same.
8970
8971 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
8972
8973         * graphite-clast-to-gimple.c (clast_get_body_of_loop): Add fixme
8974         comment.
8975
8976 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
8977
8978         * graphite-clast-to-gimple.c (struct ivs_params): New.
8979         (clast_name_to_gcc): Use ivs_params to pass around parameters.
8980         (clast_to_gcc_expression): Same.
8981         (clast_to_gcc_expression_red): Same.
8982         (gcc_type_for_clast_term): Same.
8983         (gcc_type_for_clast_expr): Same.
8984         (gcc_type_for_clast_red): Same.
8985         (gcc_type_for_clast_bin): Same.
8986         (gcc_type_for_clast_eq): Same.
8987         (graphite_translate_clast_equation): Same.
8988         (graphite_create_guard_cond_expr): Same.
8989         (graphite_create_new_guard): Same.
8990         (graphite_create_new_loop): Same.
8991         (build_iv_mapping): Same.
8992         (translate_clast_user): Same.
8993         (graphite_create_new_loop_guard): Same.
8994         (translate_clast): Same.
8995         (translate_clast_for_loop): Same.
8996         (translate_clast_for): Same.
8997         (translate_clast_guard): Same.
8998         (initialize_cloog_names): Fix typo.
8999         (gloog): Initialize an ivs_params struct, pass it to translate_clast.
9000
9001 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
9002
9003         * graphite-clast-to-gimple.c (struct clast_name_index): Add level.
9004         (new_clast_name_index): Add level parameter.
9005         (clast_name_to_level): New.
9006         (save_clast_name_index): Add level parameter.
9007         (newivs_to_depth_to_newiv): Removed.
9008         (clast_name_to_gcc): Inlined newivs_to_depth_to_newiv.
9009         (graphite_create_new_loop): Add level parameter.  Pass level to
9010         save_clast_name_index.
9011         (translate_clast_for_loop): Pass level to graphite_create_new_loop.
9012         (create_params_index): Pass level to save_clast_name_index.
9013
9014 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
9015
9016         * graphite-clast-to-gimple.c (graphite_create_new_loop): Do not
9017         recompute type, lb, and ub.  Get them from...
9018         (graphite_create_new_loop_guard): ...here.  Pass in parameter
9019         pointers to type, lb, and ub.
9020         (translate_clast_for_loop): Update function calls.
9021         (translate_clast_for): Same.
9022
9023 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
9024
9025         * graphite-clast-to-gimple.c (compute_bounds_for_level): Call
9026         psct_dynamic_dim.
9027         (translate_clast_for_loop): Pass loop level to dependency_in_loop_p.
9028         (gcc_type_for_iv_of_clast_loop): Update use of level.
9029         (gloog): Start counting nesting level from 0.
9030         * graphite-clast-to-gimple.h (get_scattering_level): Removed.
9031         * graphite-dependences.c (graphite_carried_dependence_level_k): Call
9032         psct_dynamic_dim on level.
9033
9034 2011-07-21  H.J. Lu  <hongjiu.lu@intel.com>
9035
9036         * config/i386/i386.c (ix86_legitimize_address): Convert to
9037         Pmode if needed.
9038
9039 2011-07-21  H.J. Lu  <hongjiu.lu@intel.com>
9040
9041         * config/i386/i386.c (function_value_64): Always return pointers
9042         in Pmode.
9043         (ix86_promote_function_mode): New.
9044         (TARGET_PROMOTE_FUNCTION_MODE): Likewise.
9045
9046 2011-07-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9047
9048         PR tree-optimization/49749
9049         * tree-ssa-reassoc.c (get_rank): Fix operand scan conditions and
9050         remove no-longer-used maxrank variable.
9051
9052 2011-07-21  Georg-Johann Lay  <avr@gjlay.de>
9053
9054         * config/avr/avr.c (final_prescan_insn): Fix printing of rtx_costs.
9055
9056 2011-07-21  Jason Merrill  <jason@redhat.com>
9057
9058         * system.h (HAVE_DESIGNATED_UNION_INITIALIZERS): New.
9059         * recog.h (struct insn_data_d): Check it instead of
9060         HAVE_DESIGNATED_INITIALIZERS.
9061         * genoutput.c (output_insn_data): Likewise.
9062
9063 2011-07-21  Richard Guenther  <rguenther@suse.de>
9064
9065         PR tree-optimization/49770
9066         * tree-ssa-sccvn.c (valueize_refs_1): Return whether we
9067         valueized any operand.  Renamed from ...
9068         (valueize_refs): ... this.  New wrapper around valueize_refs_1.
9069         (valueize_shared_reference_ops_from_ref): Return whether we
9070         valueized any operand.
9071         (vn_reference_lookup): Only when we valueized any operand
9072         use the valueized reference for alias analysis.  Do not preserve
9073         the original reference tree in this case.
9074
9075 2011-07-21  Uros Bizjak  <ubizjak@gmail.com>
9076
9077         * config/i386/i386.c (ix86_decompose_address): Reject all but
9078         register operands and subregs of DImode hard registers in index.
9079
9080 2011-07-21  Kai Tietz  <ktietz@redhat.com>
9081
9082         * fold-const.c (fold_unary_loc): Preserve indirect
9083         comparison cast to none-boolean type.
9084         * tree-ssa.c (useless_type_conversion_p): Preserve cast
9085         from/to boolean-type.
9086         * gimplify.c (gimple_boolify): Handle boolification of comparisons.
9087         (gimplify_expr): Boolifiy non aggregate-typed comparisons.
9088         * tree-cfg.c (verify_gimple_comparison): Check result
9089         type of comparison expression.
9090         * tree-ssa-forwprop.c (forward_propagate_comparison): Adjust test
9091         of condition result and disallow type-cast sinking into comparison.
9092
9093 2011-07-21  Richard Guenther  <rguenther@suse.de>
9094
9095         * tree-ssa-forwprop.c (combine_conversions): Return whether
9096         we have to run cfg-cleanup.  Properly remove dead stmts.
9097         (ssa_forward_propagate_and_combine): Adjust.
9098
9099 2011-07-21  Richard Sandiford  <richard.sandiford@linaro.org>
9100
9101         * regcprop.c (maybe_mode_change): Check HARD_REGNO_MODE_OK.
9102
9103 2011-07-21  Kai Tietz  <ktietz@redhat.com>
9104
9105         * tree-ssa-propagate.c (substitute_and_fold): Use
9106         do_dce flag to deside, if BB's statements are scanned
9107         in last to first, or first to last order.
9108
9109 2011-07-21  Georg-Johann Lay  <avr@gjlay.de>
9110
9111         * config/avr/avr.c (avr_rtx_costs): Set cost of CONST, LABEL_REF to 0.
9112
9113 2011-07-20  H.J. Lu  <hongjiu.lu@intel.com>
9114             Uros Bizjak  <ubizjak@gmail.com>
9115             Richard Henderson  <rth@redhat.com>
9116
9117         * config/i386/constraints.md (w): New.
9118
9119         * config/i386/i386.c (ix86_output_addr_vec_elt): Check
9120         TARGET_LP64 instead of TARGET_64BIT for ASM_QUAD.
9121
9122         * config/i386/i386.h (CASE_VECTOR_MODE): Check TARGET_LP64
9123         instead of TARGET_64BIT.
9124
9125         * config/i386/i386.md (indirect_jump): Replace
9126         nonimmediate_operand with indirect_branch_operand.
9127         (*indirect_jump): Likewise.  Replace constraint "m" with "w".
9128         (tablejump): Replace nonimmediate_operand with indirect_branch_operand.
9129         Convert operand 0 to Pmode for x32 if not PIC.
9130         (*tablejump_1): Replace nonimmediate_operand with
9131         indirect_branch_operand.  Replace constraint "m" with "w".
9132         (*call_vzeroupper): Replace constraint "m" with "w".
9133         (*call): Likewise.
9134         (*call_rex64_ms_sysv_vzeroupper): Likewise.
9135         (*call_rex64_ms_sysv): Likewise.
9136         (*call_value_vzeroupper): Likewise.
9137         (*call_value): Likewise.
9138         (*call_value_rex64_ms_sysv_vzeroupper): Likewise.
9139         (*call_value_rex64_ms_sysv): Likewise.
9140         (set_got_offset_rex64): Check TARGET_LP64 instead of TARGET_64BIT.
9141
9142         * config/i386/predicates.md (indirect_branch_operand): New.
9143         (call_insn_operand): Support x32.
9144
9145 2011-07-20  Michael Eager  <eager@eagercon.com>
9146
9147         * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Default to 12.
9148
9149 2011-07-20  Richard Henderson  <rth@redhat.com>
9150
9151         * cfg.c (dump_bb_info): Dump basic_block->flags.
9152         * cfgrtl.c (print_rtl_with_bb): Use dump_bb_info.
9153
9154 2011-07-20  Uros Bizjak  <ubizjak@gmail.com>
9155
9156         * config/i386/i386.c (ix86_decompose_address): Allow only subregs
9157         of DImode hard registers in index.
9158         (ix86_legitimate_address_p): Allow subregs of base and index to span
9159         more than a word.  Assert that subregs of base and index satisfy
9160         register_no_elim_operand predicates.  Reject addresses where
9161         base and index have different modes.
9162
9163 2011-07-20  Robert Millan  <rmh@gnu.org>
9164
9165         * config.gcc (mips*-*-linux*): Remove redundant tm_file entry.
9166
9167 2011-07-20  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9168
9169         * bb-reorder.c (fix_crossing_conditional_branches): Fix crash by
9170         removing now-unnecessary assignment.
9171
9172 2011-07-20  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9173
9174         * emit-rtl.c (set_mem_attributes_minus_bitpos): Restore setting
9175         memory address space to the type's address space.
9176
9177 2011-07-20  Georg-Johann Lay  <avr@gjlay.de>
9178
9179         PR target/36467
9180         PR target/49687
9181         * config/avr/avr.md (mulhi3): Use register_or_s9_operand for operand2
9182         and expand appropriately if there is a CONST_INT in operand2.
9183         (usmulqihi3): New insn.
9184         (*sumulqihi3): New insn.
9185         (*osmulqihi3): New insn.
9186         (*oumulqihi3): New insn.
9187         (*muluqihi3.uconst): New insn_and_split.
9188         (*muluqihi3.sconst): New insn_and_split.
9189         (*mulsqihi3.sconst): New insn_and_split.
9190         (*mulsqihi3.uconst): New insn_and_split.
9191         (*mulsqihi3.oconst): New insn_and_split.
9192         (*ashifthi3.signx.const): New insn_and_split.
9193         (*ashifthi3.signx.const7): New insn_and_split.
9194         (*ashifthi3.zerox.const): New insn_and_split.
9195         (mulsqihi3): New insn.
9196         (muluqihi3): New insn.
9197         (muloqihi3): New insn.
9198         * config/avr/predicates.md (const_2_to_7_operand): New.
9199         (const_2_to_6_operand): New.
9200         (u8_operand): New.
9201         (s8_operand): New.
9202         (o8_operand): New.
9203         (s9_operand): New.
9204         (register_or_s9_operand): New.
9205
9206 2011-07-20  Kai Tietz  <ktietz@redhat.com>
9207
9208         * builtins.c (fold_builtin_expect): See through the cast
9209         from truthvalue_type_node to long.
9210
9211 2011-07-20  Michael Meissner  <meissner@linux.vnet.ibm.com>
9212
9213         * config/rs6000/vsx.md (vsx_fma*): Use 4 argument fma instructions
9214         where we can use them from the standard and altivec instruction
9215         sets, instead of always using the 3 operand VSX forms that require
9216         the destination to overlap one of the inputs.
9217         (vsx_fms*): Ditto.
9218         (vsx_fnma*): Ditto.
9219         (vsx_fnms*): Ditto.
9220
9221         * config/rs6000/rs6000.md (fmadf4_fpr): Set fp_type fp_maddsub_d
9222         for DF types.
9223         (fmsdf4_fpr): Ditto.
9224         (nfmadf4_fpr): Ditto.
9225         (nfmsdf4_fpr): Ditto.
9226
9227 2011-07-20  Sandra Loosemore  <sandra@codesourcery.com>
9228
9229         * genrecog.c (make_insn_sequence): Correct position numbering
9230         when filtering out match_scratch and match_dup.
9231
9232 2011-07-20  Richard Guenther  <rguenther@suse.de>
9233
9234         * tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify
9235         against already removed statements.
9236         (forward_propagate_into_comparison): Remove dead defining stmts.
9237         (forward_propagate_into_gimple_cond): Likewise.
9238         (forward_propagate_into_cond): Simplify.
9239         (ssa_forward_propagate_and_combine): Handle changed cfg from
9240         forward_propagate_into_comparison.
9241         * tree-ssa-phiopt.c (conditional_replacement): Use proper
9242         locations for newly built statements.
9243
9244 2011-07-20  Georg-Johann Lay  <avr@gjlay.de>
9245
9246         * config/avr/avr.c (avr_rtx_costs): Set cost of SYMBOL_REF to 0.
9247
9248 2011-07-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9249
9250         * config/s390/s390.c (s390_class_max_nregs): Fix return type.
9251         * config/s390/s390-protos.h (s390_class_max_nregs): Likewise.
9252
9253 2011-07-20  Richard Guenther  <rguenther@suse.de>
9254
9255         PR middle-end/18908
9256         * tree.c (integer_all_onesp): Use TYPE_PRECISION, not mode precision.
9257         * tree-ssa-forwprop.c (simplify_bitwise_binary): Remove bogus
9258         ADDR_EXPR folding.  Canonicalize X ^ ~0 as ~X.
9259
9260 2011-07-20  Vladimir Makarov  <vmakarov@redhat.com>
9261
9262         * config/frv/frv.c (frv_register_move_cost): Define explicitly
9263         costs for subclasses of GR_REGS.
9264
9265 2011-07-20  Uros Bizjak  <ubizjak@gmail.com>
9266
9267         PR target/49780
9268         * config/i386/predicates.md (no_seg_addres_operand): No more special.
9269         * config/i386/i386.c (ix86_decompose_address): Allow only subregs
9270         of DImode hard registers in base.
9271         (ix86_legitimate_address_p): Allow SImode and DImode base and index
9272         registers.
9273
9274 2011-07-20  Richard Guenther  <rguenther@suse.de>
9275
9276         * tree-ssa-structalias.c (new_var_info): Allocate oldsolution lazily.
9277         (unify_nodes): Deal with that.
9278         (solve_graph): Likewise.
9279
9280 2011-07-20  Chung-Lin Tang  <cltang@codesourcery.com>
9281
9282         * config/arm/arm.c (arm_canonicalize_comparison): Add case to
9283         canonicalize left operand from ZERO_EXTEND to AND.
9284
9285 2011-07-20  Anatoly Sokolov  <aesok@post.ru>
9286
9287         * target.def (class_max_nregs): New hook.
9288         * doc/tm.texi.in (TARGET_CLASS_MAX_NREGS): Document.
9289         * doc/tm.texi: Regenerate.
9290         * targhooks.c (default_class_max_nregs): New function.
9291         * targhooks.h (default_class_max_nregs): Declare.
9292         * ira.h (target_ira): Change type x_ira_reg_class_max_nregs and
9293         x_ira_reg_class_min_nregs arrays to unsigned char.
9294         * ira.c (setup_reg_class_nregs): Use TARGET_CLASS_MAX_NREGS target
9295         hook instead of CLASS_MAX_NREGS macro.
9296         * reginfo.c (restore_register_info): Ditto.
9297         * ira-conflicts.c (process_regs_for_copy): Use
9298         ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
9299         Change type rclass and aclass vars to reg_class_t.
9300         * ira-costs.c (record_reg_classes): Use ira_reg_class_max_nregs
9301         array instead of CLASS_MAX_NREGS macro. Change type rclass var to
9302         reg_class_t.
9303         * reload.c (combine_reloads, find_reloads, find_reloads_address_1):
9304         Use ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
9305
9306         * config/i386/i386.h (CLASS_MAX_NREGS): Remove.
9307         * config/i386/i386.c (ix86_class_max_nregs): New function.
9308         (ix86_register_move_cost): Use TARGET_CLASS_MAX_NREGS target hook
9309         instead of CLASS_MAX_NREGS macro.
9310         (TARGET_CLASS_MAX_NREGS): Define.
9311         * config/avr/avr.h (CLASS_MAX_NREGS): Remove.
9312         * config/avr/avr-protos.h (class_max_nregs): Remove declaration.
9313         * config/avr/avr.c (class_max_nregs): Remove function.
9314         * config/alpha/alpha.h (CLASS_MAX_NREGS): Remove.
9315         * config/spu/spu.h (CLASS_MAX_NREGS): Remove.
9316         * config/mep/mep.h (CLASS_MAX_NREGS): Remove.
9317         * config/m32r/m32r.h (CLASS_MAX_NREGS): Remove.
9318         * config/microblaze/microblaze.h (CLASS_MAX_NREGS): Remove.
9319         * config/xtensa/xtensa.h (CLASS_MAX_NREGS): Remove.
9320         * config/stormy16/stormy16.h (CLASS_MAX_NREGS): Remove.
9321         * config/lm32/lm32.h (CLASS_MAX_NREGS): Remove.
9322         * config/moxie/moxie.h (CLASS_MAX_NREGS): Remove.
9323         * config/iq2000/iq2000.h (CLASS_MAX_NREGS): Remove.
9324         * config/mn10300/mn10300.h (CLASS_MAX_NREGS): Remove.
9325         * config/score/score.h (CLASS_MAX_NREGS): Remove.
9326         * config/vax/vax.h (CLASS_MAX_NREGS): Remove.
9327         * config/h8300/h8300.h (CLASS_MAX_NREGS): Remove.
9328         * config/v850/v850.h (CLASS_MAX_NREGS): Remove.
9329
9330 2011-07-19  Eric Botcazou  <ebotcazou@adacore.com>
9331
9332         * cif-code.def (OVERWRITABLE): Fix typo and move around.
9333         (TARGET_OPTIMIZATION_MISMATCH): Delete.
9334         (EH_PERSONALITY): Fix typo.
9335         (NON_CALL_EXCEPTIONS): Fix message.
9336         (OPTIMIZATION_MISMATCH): Adjust message.
9337         * ipa-inline.c (can_inline_edge_p): Use CIF_OPTIMIZATION_MISMATCH.
9338
9339 2011-07-19  Ian Lance Taylor  <iant@google.com>
9340
9341         * doc/install.texi (Configuration): Document
9342         --enable-build-poststage1-with-cxx.
9343
9344 2011-07-19  Robert Millan  <rmh@gnu.org>
9345
9346         * config/mips/gnu-user.h: Copy from linux.h.  Update comments.
9347         (GLIBC_DYNAMIC_LINKER): Remove.
9348
9349         * config/mips/gnu-user64.h: Copy from linux64.h.  Update comments.
9350         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
9351         (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
9352         (BIONIC_DYNAMIC_LINKERN32, GNU_USER_DYNAMIC_LINKERN32): Remove.
9353         (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32,
9354         GNU_USER_DYNAMIC_LINKER64 and GNU_USER_LINK_EMULATIONN32.
9355
9356         * config/mips/linux.h: Remove everything except for ...
9357         (GLIBC_DYNAMIC_LINKER): ... this macro.
9358
9359         * config/mips/linux64.h: Remove everything except for ...
9360         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
9361         (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
9362         (BIONIC_DYNAMIC_LINKERN32): ... these macros.
9363         (GNU_USER_LINK_EMULATION32, GNU_USER_LINK_EMULATION64)
9364         (GNU_USER_LINK_EMULATIONN32): New macros.
9365
9366         * config.gcc (mips64*-*-linux* | mipsisa64*-*-linux* | mips-*-linux*):
9367         Use the new headers.
9368
9369 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
9370
9371         * rtl.h (mem_attrs): Turn offset and size fields into HOST_WIDE_INTs.
9372         Add offset_known_p and size_known_p fields.
9373         (MEM_OFFSET_KNOWN_P): Update accordingly.
9374         (MEM_OFFSET, MEM_SIZE_KNOWN_P, MEM_SIZE): Likewise.
9375         * emit-rtl.c (mem_attrs_htab_hash): Update after mem_attrs changes.
9376         (mem_attrs_eq_p, set_mem_attributes_minus_bitpos, set_mem_offset)
9377         (clear_mem_offset, set_mem_size, clear_mem_size, change_address)
9378         (adjust_address_1, widen_memory_access, set_mem_attrs_for_spill)
9379         (init_emit_regs): Likewise.
9380
9381 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
9382
9383         * doc/rtl.texi (MEM_OFFSET_KNOWN_P): Document.
9384         (MEM_OFFSET): Change from returning an rtx to returning a
9385         HOST_WIDE_INT.
9386         * rtl.h (MEM_OFFSET_KNOWN_P): New macro.
9387         (MEM_OFFSET): Return a HOST_WIDE_INT rather than an rtx.
9388         * emit-rtl.h (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
9389         (clear_mem_offset): Declare.
9390         * alias.c (ao_ref_from_mem): Adjust uses of MEM_OFFSET, using
9391         MEM_OFFSET_KNOWN_P to test whether the offset is known, and
9392         MEM_OFFSET to get a HOST_WIDE_INT offset.
9393         (nonoverlapping_memrefs_p): Likewise.  Adjust calls to...
9394         (adjust_offset_for_component_ref): Take a bool "known_p"
9395         parameter and a HOST_WIDE_INT "offset" parameter.
9396         * builtins.c (get_memory_rtx): As for ao_ref_from_mem.
9397         Adjust calls to set_mem_offset, passing a HOST_WIDE_INT rather
9398         than an rtx.  Use clear_mem_offset to clear the offset.
9399         * cfgcleanup.c (merge_memattrs): Likewise.
9400         * dwarf2out.c (tls_mem_loc_descriptor): Likewise.
9401         * function.c (assign_parm_find_stack_rtl): Likewise.
9402         (assign_parm_setup_stack): Likewise.
9403         * print-rtl.c (print_rtx): Likewise.
9404         * reload.c (find_reloads_subreg_address): Likewise.
9405         * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
9406         * var-tracking.c (INT_MEM_OFFSET): Likewise.
9407         * emit-rtl.c (set_reg_attrs_from_value): Likewise.
9408         (get_mem_align_offset): Likewise.
9409         (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
9410         (clear_mem_offset): New function.
9411         * config/mips/mips.c (r10k_safe_mem_expr_p): Take a HOST_WIDE_INT
9412         offset rather than an rtx.  Assume both the expressio and offset
9413         are available.
9414         (r10k_needs_protection_p_1): Update accordingly, checking the
9415         expression and offset availability here instead.
9416
9417 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
9418
9419         * doc/rtl.texi (MEM_SIZE_KNOWN_P): Document.
9420         (MEM_SIZE): Change from returning an rtx to returning a HOST_WIDE_INT.
9421         * rtl.h (MEM_SIZE_KNOWN_P): New macro.
9422         (MEM_SIZE): Return a HOST_WIDE_INT rather than an rtx.
9423         * emit-rtl.h (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
9424         (clear_mem_size): Declare.
9425         * emit-rtl.c (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
9426         (clear_mem_size): New function.
9427         * alias.c (ao_ref_from_mem): Adjust uses of MEM_SIZE, using
9428         MEM_SIZE_KNOWN_P to test whether the size is known, and MEM_SIZE
9429         to get a HOST_WIDE_INT size.  Adjust calls to set_mem_size,
9430         passing a HOST_WIDE_INT rather than an rtx.  Use clear_mem_size
9431         to clear the size.
9432         (nonoverlapping_memrefs_p): Likewise.
9433         * builtins.c (get_memory_rtx, expand_builtin_memcmp): Likewise.
9434         (expand_builtin_init_trampoline): Likewise.
9435         * calls.c (compute_argument_addresses): Likewise.
9436         * cfgcleanup.c (merge_memattrs): Likewise.
9437         * dce.c (find_call_stack_args): Likewise.
9438         * dse.c (record_store, scan_insn): Likewise.
9439         * dwarf2out.c (dw_sra_loc_expr): Likewise.
9440         * expr.c (emit_block_move_hints): Likewise.
9441         * function.c (assign_parm_find_stack_rtl): Likewise.
9442         * print-rtl.c (print_rtx): Likewise.
9443         * reload.c (find_reloads_subreg_address): Likewise.
9444         * rtlanal.c (may_trap_p_1): Likewise.
9445         * var-tracking.c (track_expr_p): Likewise.
9446         * varasm.c (assemble_trampoline_template): Likewise.
9447         * config/arm/arm.c (arm_print_operand): Likewise.
9448         * config/h8300/h8300.c (h8sx_emit_movmd): Likewise.
9449         * config/i386/i386.c (expand_movmem_via_rep_mov): Likewise.
9450         (expand_setmem_via_rep_stos, expand_constant_movmem_prologue)
9451         (expand_constant_setmem_prologue): Likewise.
9452         * config/mips/mips.c (mips_get_unaligned_mem): Likewise.
9453         * config/rs6000/rs6000.c (expand_block_move): Likewise.
9454         (adjacent_mem_locations): Likewise.
9455         * config/s390/s390.c (s390_expand_setmem): Likewise.
9456         (s390_expand_insv): Likewise.
9457         * config/s390/s390.md (*extzv<mode>, *extv<mode>): Likewise.
9458         (*extendqi<mode>2_short_displ): Likewise.
9459         * config/sh/sh.c (expand_block_move): Likewise.
9460         * config/sh/sh.md (extv, extzv): Likewise.
9461
9462 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
9463
9464         * emit-rtl.c (mem_attrs_eq_p): New function, split out from...
9465         (mem_attrs_htab_eq): ...here.
9466         (find_mem_attrs): Replace with...
9467         (set_mem_attrs): ...this function.  Take a mem_attrs structure
9468         rather than individual fields.
9469         (set_mem_attributes_minus_bitpos, set_mem_alias_set)
9470         (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
9471         (set_mem_size, change_address, adjust_address_1, offset_address)
9472         (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
9473         Update accordingly.
9474
9475 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
9476
9477         * rtl.h (MEM_ALIAS_SET, MEM_EXPR, MEM_OFFSET, MEM_ADDR_SPACE)
9478         (MEM_SIZE, MEM_ALIGN): Redefine in terms of get_mem_attrs.
9479         Provide a dummy definition of MEM_ADDR_SPACE for generators.
9480         (target_rtl): Add x_mode_mem_attrs.
9481         (mode_mem_attrs): New macro.
9482         (get_mem_attrs): New function.
9483         * emit-rtl.c (get_mem_attrs): Rename to...
9484         (find_mem_attrs): ...this.
9485         (set_mem_attributes_minus_bitpos, set_mem_alias_set)
9486         (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
9487         (set_mem_size, change_address, adjust_address_1, offset_address)
9488         (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
9489         Update accordingly.
9490         (init_emit_regs): Initialize mode_mem_attrs.
9491
9492 2011-07-19  Richard Guenther  <rguenther@suse.de>
9493
9494         * tree-ssa-forwprop.c (lookup_logical_inverted_value): Remove
9495         TRUTH_*_EXPR handling.
9496         * tree-ssa-operands.c (get_expr_operands): Likewise.
9497         * tree-ssa-pre.c (fully_constant_expression): Likewise.
9498         * tree-ssa-uninit.c (use_pred_not_overlap_with_undef_path_pre):
9499         Likewise.
9500         (is_and_or_or): Likewise.
9501         (is_norm_cond_subset_of): Likewise.
9502
9503 2011-07-19  Richard Guenther  <rguenther@suse.de>
9504
9505         * tree.h (fold_build_pointer_plus_loc): New helper function.
9506         (fold_build_pointer_plus_hwi_loc): Likewise.
9507         (fold_build_pointer_plus): Define.
9508         (fold_build_pointer_plus_hwi): Likewise.
9509         * builtins.c (std_gimplify_va_arg_expr): Use fold_build_pointer_plus.
9510         (fold_builtin_memory_op): Likewise.
9511         (fold_builtin_stpcpy): Likewise.
9512         (fold_builtin_memchr): Likewise.
9513         (fold_builtin_strstr): Likewise.
9514         (fold_builtin_strchr): Likewise.
9515         (fold_builtin_strrchr): Likewise.
9516         (fold_builtin_strpbrk): Likewise.
9517         (fold_builtin_strcat): Likewise.
9518         (expand_builtin_memory_chk): Likewise.
9519         (fold_builtin_memory_chk): Likewise.
9520         * c-typeck.c (build_unary_op): Likewise.
9521         * cgraphunit.c (thunk_adjust): Likewise.
9522         * fold-const.c (build_range_check): Likewise.
9523         (fold_binary_loc): Likewise.
9524         * omp-low.c (extract_omp_for_data): Likewise.
9525         (expand_omp_for_generic): Likewise.
9526         (expand_omp_for_static_nochunk): Likewise.
9527         (expand_omp_for_static_chunk): Likewise.
9528         * tree-affine.c (add_elt_to_tree): Likewise.
9529         * tree-data-ref.c (split_constant_offset_1): Likewise.
9530         * tree-loop-distribution.c (generate_memset_zero): Likewise.
9531         * tree-mudflap.c (mf_xform_derefs_1): Likewise.
9532         * tree-predcom.c (ref_at_iteration): Likewise.
9533         * tree-ssa-address.c (tree_mem_ref_addr): Likewise.
9534         (add_to_parts): Likewise.
9535         (create_mem_ref): Likewise.
9536         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
9537         * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Likewise.
9538         (number_of_iterations_le): Likewise.
9539         * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Likewise.
9540         * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
9541         (vect_create_addr_base_for_vector_ref): Likewise.
9542         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Likewise.
9543         (vect_create_cond_for_alias_checks): Likewise.
9544         * tree-vrp.c (extract_range_from_assert): Likewise.
9545         * config/alpha/alpha.c (alpha_va_start): Likewise.
9546         (alpha_gimplify_va_arg_1): Likewise.
9547         * config/i386/i386.c (ix86_va_start): Likewise.
9548         (ix86_gimplify_va_arg): Likewise.
9549         * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
9550         * config/mep/mep.c (mep_expand_va_start): Likewise.
9551         (mep_gimplify_va_arg_expr): Likewise.
9552         * config/mips/mips.c (mips_va_start): Likewise.
9553         (mips_gimplify_va_arg_expr): Likewise.
9554         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
9555         * config/rs6000/rs6000.c (rs6000_va_start): Likewise.
9556         (rs6000_gimplify_va_arg): Likewise.
9557         * config/s390/s390.c (s390_va_start): Likewise.
9558         (s390_gimplify_va_arg): Likewise.
9559         * config/sh/sh.c (sh_va_start): Likewise.
9560         (sh_gimplify_va_arg_expr): Likewise.
9561         * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
9562         * config/spu/spu.c (spu_va_start): Likewise.
9563         (spu_gimplify_va_arg_expr): Likewise.
9564         * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
9565         Likewise.
9566         (xstormy16_gimplify_va_arg_expr): Likewise.
9567         * config/xtensa/xtensa.c (xtensa_va_start): Likewise.
9568         (xtensa_gimplify_va_arg_expr): Likewise.
9569
9570 2011-07-19  Richard Guenther  <rguenther@suse.de>
9571
9572         * expr.c (expand_expr_real_2): Remove TRUTH_*_EXPR handling.
9573         (expand_expr_real_1): Remove TRUTH_*IF_EXPR and STATEMENT_LIST
9574         handling.
9575
9576         PR middle-end/18908
9577         * expr.c (expand_expr_real_2): Do not unnecessarily truncate the
9578         result of BIT_*_EXPR to bitfield precision.
9579
9580 2011-07-19  Richard Sandiford  <richard.sandiford@linaro.org>
9581
9582         PR tree-optimization/49742
9583         * tree-data-ref.c (get_references_in_stmt): Treat the lhs of a call
9584         as a potential write.
9585
9586 2011-07-19  Richard Guenther  <rguenther@suse.de>
9587
9588         * Makefile.in (tree-ssa-forwprop.o): Depend on gimple-pretty-print.h.
9589         * tree-ssa-forwprop.c: Include gimple-pretty-print.h.
9590         (forward_propagate_comparison): Simplify, remove obsolete code.
9591
9592 2011-07-19  Richard Guenther  <rguenther@suse.de>
9593
9594         * gimplify.c (gimplify_expr): Gimplify TRUTH_NOT_EXPR as
9595         BIT_XOR_EXPR, same as the RTL expander does.
9596         * tree-cfg.c (verify_expr): Disallow TRUTH_NOT_EXPR in the gimple IL.
9597         (verify_gimple_assign_unary): Likewise.
9598         * tree-ssa-propagate.c (valid_gimple_rhs_p): Disallow TRUTH_*_EXPR.
9599         * tree-ssa-forwprop.c (forward_propagate_comparison): Handle
9600         BIT_NOT_EXPR and BIT_XOR_EXPR instead of TRUTH_NOT_EXPR.
9601
9602 2011-07-19  Jakub Jelinek  <jakub@redhat.com>
9603
9604         PR tree-optimization/49768
9605         * gimple-fold.c (fold_nonarray_ctor_reference): Return NULL
9606         if offset is smaller than bitoffset, but offset+size is bigger
9607         than bitoffset.
9608
9609 2011-07-19  Ira Rosen  <ira.rosen@linaro.org>
9610
9611         PR tree-optimization/49771
9612         * tree-vect-loop-manip.c (vect_vfa_segment_size): In case of
9613         zero step, set segment length to the size of the data-ref's type.
9614
9615 2011-07-18  Martin Jambor  <mjambor@suse.cz>
9616
9617         * ipa-prop.h: Include alloc-pool.h, all sorts of updates to general
9618         comments.
9619         (ipcp_values_pool): Declare.
9620         (ipcp_sources_pool): Likewise.
9621         (ipcp_lattice): Changed to forward declaration.
9622         (ipa_param_descriptor): Removed fields ipcp_lattice, types and
9623         cannot_devirtualize.
9624         (ipa_node_params): New fields descriptors, lattices, known_vals,
9625         clone_for_all_contexts and node dead, removed fields params and
9626         count_scale.
9627         (ipa_set_param_count): Removed.
9628         (ipa_get_param_count): Made to work with descriptors vector.
9629         (ipa_get_param): Updated.
9630         (ipa_param_cannot_devirtualize_p): Removed.
9631         (ipa_param_types_vec_empty): Likewise.
9632         (ipa_set_param_used): New function.
9633         (ipa_get_param_used): Updated to use descriptors vector.
9634         (ipa_func_list): Removed.
9635         (ipa_init_func_list): Removed declaration.
9636         (ipa_push_func_to_list_1): Likewise.
9637         (ipa_pop_func_from_list): Likewise.
9638         (ipa_push_func_to_list): Removed.
9639         (ipa_lattice_from_jfunc): Remove declaration.
9640         (ipa_get_jf_pass_through_result): Declare.
9641         (ipa_get_jf_ancestor_result): Likewise.
9642         (ipa_value_from_jfunc): Likewise.
9643         (ipa_get_lattice): Update.
9644         (ipa_lat_is_single_const): New function.
9645         * ipa-prop.c (ipa_push_func_to_list_1): Removed.
9646         (ipa_init_func_list): Likewise.
9647         (ipa_pop_func_from_list): Likewise.
9648         (ipa_get_param_decl_index): Fix coding style.
9649         (count_formal_params): Removed.
9650         (count_formal_params_1): Renamed to count_formal_params.
9651         (ipa_populate_param_decls): Update to use descriptors vector.
9652         (ipa_initialize_node_params): Likewise.
9653         (visit_ref_for_mod_analysis): Use ipa_set_param_used.
9654         (ipa_analyze_params_uses): Likewise.
9655         (ipa_free_node_params_substructures): Likewise and free also lattices
9656         and known values.
9657         (duplicate_array): Removed.
9658         (ipa_edge_duplication_hook): Add the new edge to the list of edge
9659         clones.
9660         (ipa_node_duplication_hook): Update to use new lattices.
9661         (ipa_free_all_structures_after_ipa_cp): Free alloc pools.
9662         (ipa_free_all_structures_after_iinln): Likewise.
9663         (ipa_write_node_info): Update to use new lattices.
9664         (ipa_read_node_info): Likewise.
9665         (ipa_get_jf_pass_through_result): New function.
9666         (ipa_get_jf_ancestor_result): Likewise.
9667         (ipa_value_from_jfunc): Likewise.
9668         (ipa_cst_from_jfunc): Reimplemented using ipa_value_from_jfunc.
9669         * ipa-cp.c: Reimplemented.
9670         * params.def (PARAM_DEVIRT_TYPE_LIST_SIZE): Removed.
9671         (PARAM_IPA_CP_VALUE_LIST_SIZE): New parameter.
9672         (PARAM_IPA_CP_EVAL_THRESHOLD): Likewise.
9673         * Makefile.in (IPA_PROP_H): Added alloc-pool.h to dependencies.
9674         * doc/invoke.texi (devirt-type-list-size): Removed description.
9675         (ipa-cp-value-list-size): Added description.
9676
9677 2011-07-18  Richard Henderson  <rth@redhat.com>
9678
9679         * bb-reorder.c (fix_crossing_conditional_branches): Emit all insns
9680         before calling create_basic_block.
9681
9682 2011-07-18  Jakub Jelinek  <jakub@redhat.com>
9683
9684         PR middle-end/49675
9685         * tree.c (build_common_builtin_nodes): Register
9686         __builtin_return_address, __cyg_profile_func_enter
9687         and __cyg_profile_func_exit.
9688
9689 2011-07-18  Richard Henderson  <rth@redhat.com>
9690
9691         * bb-reorder.c (emit_barrier_after_bb): Split out of ...
9692         (add_labels_and_missing_jumps): ... here.
9693         (fix_up_fall_thru_edges, fix_crossing_conditional_branches): Use it.
9694
9695 2011-07-18  Uros Bizjak  <ubizjak@gmail.com>
9696
9697         PR target/47744
9698         * config/i386/i386.c (ix86_decompose_address): Allow only subregs
9699         of DImode hard registers in PLUS address chains.
9700
9701 2011-07-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9702
9703         PR bootstrap/49769
9704         * config.gcc (alpha*-*-linux*): Add crtfastmath.o to extra_parts.
9705         (alpha*-*-freebsd*): Likewise.
9706         (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
9707         i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
9708         i[34567]86-*-kopensolaris*-gnu): Add crtprec32.o, crtprec64.o,
9709         crtprec80.o, crtfastmath.o to extra_parts for all targets.
9710         (ia64*-*-elf*): Remove extra_parts.
9711         (sparc-*-linux*): Add crtfastmath.o to extra_parts.
9712         (sparc64-*-linux*): Likewise.
9713         (sparc64-*-freebsd*): Likewise.
9714
9715         Revert:
9716         * config.gcc (ia64*-*-freebsd*): Remove crtfastmath.o from extra_parts.
9717         (ia64*-*-linux*): Likewise.
9718         (mips64*-*-linux*): Likewise.
9719         (mips*-*-linux*): Likewise.
9720
9721 2011-07-18  David Edelsohn  <dje.gcc@gmail.com>
9722
9723         * doc/install.texi (Specific, *-ibm-aix*): AIX assembler bug.
9724
9725 2011-07-18  Richard Guenther  <rguenther@suse.de>
9726
9727         * gimplify.c (gimplify_expr): Use input_location, not saved_location
9728         when building new trees.
9729
9730 2011-07-18  Richard Guenther  <rguenther@suse.de>
9731
9732         * expr.c (expand_expr_real_2): Properly truncate the BIT_NOT_EXPR
9733         expansion result to bitfield precision if required.
9734
9735 2011-07-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9736
9737         * config.gcc (i[3456x]86-*-netware*): Remove.
9738
9739         * gthr-nks.h: Remove.
9740         * configure.ac (enable_threads): Remove nks.
9741         * configure: Regenerate.
9742
9743         * config/i386/i386.c (ix86_encode_section_info): Remove netware
9744         reference.
9745         * config/i386/i386.h (KEEP_AGGREGATE_RETURN_POINTER): Remove
9746         <netware.h> reference.
9747
9748         * config/i386/netware-libgcc.c,
9749         gcc/config/i386/netware-libgcc.def,
9750         gcc/config/i386/netware-libgcc.exp, gcc/config/i386/netware.c,
9751         gcc/config/i386/netware.h, gcc/config/i386/netware.opt,
9752         gcc/config/i386/nwld.c, gcc/config/i386/nwld.h,
9753         gcc/config/i386/t-netware, gcc/config/i386/t-nwld: Remove
9754
9755         * doc/extend.texi (Function Attributes,
9756         callee_pop_aggregate_return): Remove i?86-netware reference.
9757         * doc/install.texi (Configuration, --enable-threads): Remove nks.
9758
9759 2011-07-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9760
9761         PR target/49746
9762         Revert:
9763         2010-12-30  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9764
9765         * config/pa/pa.md: Add ",*" condition to 64-bit add/subtract boolean
9766         patterns.
9767
9768 2011-07-17  Eric Botcazou  <ebotcazou@adacore.com>
9769
9770         PR middle-end/49732
9771         * tree.c (walk_tree_1) <DECL_EXPR>: Do not walk a pointed-to type.
9772
9773 2011-07-16  Matthias Klose  <doko@ubuntu.com>
9774
9775         * doc/install.texi: Document --enable-static-libjava.
9776
9777 2011-07-15  Richard Henderson  <rth@redhat.com>
9778
9779         * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
9780         Replace all three arguments by returning a VEC of edges.
9781         (add_labels_and_missing_jumps): Accept a VEC of edges, not bare
9782         pointers and counts.
9783         (fix_edges_for_rarely_executed_code): Merge ...
9784         (rest_of_handle_partition_blocks): ... into...
9785         (partition_hot_cold_basic_blocks): ... here.  Return todo items if
9786         any work was performed.
9787         (pass_partition_blocks): Clear todo_flags_finish.
9788
9789 2011-07-15  Paolo Carlini  <paolo.carlini@oracle.com>
9790             Jakub Jelinek  <jakub@redhat.com>
9791             Jonathan Wakely  <jwakely.gcc@gmail.com>
9792
9793         PR libstdc++/49745
9794         * gthr-posix.h: Do not include <unistd.h> unconditionally; use
9795         _GTHREADS_USE_MUTEX_TIMEDLOCK instead of _POSIX_TIMEOUTS.
9796
9797 2011-07-15  Jason Merrill  <jason@redhat.com>
9798
9799         PR testsuite/49741
9800         * Makefile.in ($(lang_checks_parallelized)): Allow --extra_opts
9801         rather than --tool_opts.
9802
9803 2011-07-15  Basile Starynkevitch  <basile@starynkevitch.net>
9804
9805         * doc/plugins.texi (Building GCC plugins): gengtype needs its
9806         corresponding gtype.state.
9807
9808 2011-07-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9809
9810         PR target/49723
9811         * config/pa/pa.md (casesi): Use gen_int_mode instead of GEN_INT.
9812
9813 2011-07-15  Eric Botcazou  <ebotcazou@adacore.com>
9814
9815         PR target/48220
9816         * doc/md.texi (Standard Names): Document window_save.
9817         * cfgexpand.c (expand_debug_parm_decl): New function extracted from
9818         expand_debug_expr and expand_debug_source_expr.  If the target has
9819         a window_save instruction, adjust the ENTRY_VALUE_EXP.
9820         (expand_debug_expr) <SSA_NAME>: Call expand_debug_parm_decl if the
9821         SSA_NAME_VAR is a parameter.
9822         (expand_debug_source_expr) <PARM_DECL>: Call expand_debug_parm_decl.
9823         * var-tracking.c (parm_reg_t): New type and associated vector type.
9824         (windowed_parm_regs): New variable.
9825         (adjust_insn): If the target has a window_save instruction and this
9826         is the instruction, make its effect on parameter registers explicit.
9827         (next_non_note_insn_var_location): New function.
9828         (emit_notes_in_bb): Use it instead of NEXT_INSN throughout.
9829         (vt_add_function_parameter): If the target has a window_save insn,
9830         adjust the incoming RTL and record that in windowed_parm_regs.
9831         (vt_finalize): Free windowed_parm_regs.
9832
9833 2011-07-15  Bernd Schmidt  <bernds@codesourcery.com>
9834
9835         * doc/invoke.texi (C6X Options): New section.
9836         * doc/md.texi (TI C6X family): New section.
9837         * config.gcc: Handle tic6x, in particular tic6x-*-elf and
9838         tic6x-*-uclinux.
9839         * longlong.h (add_ssaaaa, __umulsidi3, umul_ppmm,
9840         count_leading_zeros, count_trailing_zeros, UMUL_TIME, UDIV_TIME):
9841         Provide C6X definitions.
9842         * config/c6x/c6x.md: New file.
9843         * config/c6x/constraints.md: New file.
9844         * config/c6x/predicates.md: New file.
9845         * config/c6x/c6x-sched.md.in: New file.
9846         * config/c6x/c6x-sched.md: New file.
9847         * config/c6x/gensched.sh: New file.
9848         * config/c6x/c6x-mult.md.in: New file.
9849         * config/c6x/genmult.sh: New file.
9850         * config/c6x/c6x-mult.md: New file.
9851         * config/c6x/sync.md: New file.
9852         * config/c6x/c6x-protos.h: New file.
9853         * config/c6x/sfp-machine.h: New file.
9854         * config/c6x/c6x.c: New file.
9855         * config/c6x/c6x.h: New file.
9856         * config/c6x/crti.s: New file.
9857         * config/c6x/crtn.s: New file.
9858         * config/c6x/lib1funcs.asm: New file.
9859         * config/c6x/c6x-modes.def: New file.
9860         * config/c6x/genopt.sh: New file.
9861         * config/c6x/c6x.opt: New file.
9862         * config/c6x/c6x-tables.opt: New file.
9863         * config/c6x/c6x-opts.h: New file.
9864         * config/c6x/c6x-isas.def: New file.
9865         * config/c6x/elf.h: New file.
9866         * config/c6x/elf-common.h: New file.
9867         * config/c6x/uclinux-elf.h: New file.
9868         * config/c6x/t-c6x: New file.
9869         * config/c6x/t-c6x-elf: New file.
9870         * config/c6x/t-c6x-uclinux: New file.
9871         * config/c6x/t-c6x-softfp: New file.
9872         * config/c6x/gtd.c: New file.
9873         * config/c6x/gtf.c: New file.
9874         * config/c6x/ltd.c: New file.
9875         * config/c6x/ltf.c: New file.
9876         * config/c6x/ged.c: New file.
9877         * config/c6x/gef.c: New file.
9878         * config/c6x/led.c: New file.
9879         * config/c6x/lef.c: New file.
9880         * config/c6x/eqd.c: New file.
9881         * config/c6x/eqf.c: New file.
9882         * config/c6x/libgcc-c6xeabi.ver: New file.
9883
9884         Revert
9885         2003-07-10  Eric Botcazou  <ebotcazou@libertysurf.fr>
9886         PR rtl-optimization/11320
9887         * sched-int.h (struct deps) [reg_conditional_sets]: New field.
9888         (struct sched_info) [compute_jump_reg_dependencies]: New prototype.
9889         * sched-deps.c (sched_analyze_insn) [JUMP_INSN]: Update call to
9890         current_sched_info->compute_jump_reg_dependencies. Record which
9891         registers are used and which registers are set by the jump.
9892         Clear deps->reg_conditional_sets after a barrier.
9893         Set deps->reg_conditional_sets if the insn is a COND_EXEC.
9894         Clear deps->reg_conditional_sets if the insn is not a COND_EXEC.
9895         (init_deps): Initialize reg_conditional_sets.
9896         (free_deps): Clear reg_conditional_sets.
9897         * sched-ebb.c (compute_jump_reg_dependencies): New prototype.
9898         Mark registers live on entry of the fallthrough block and conditionally
9899         set as set by the jump. Mark registers live on entry of non-fallthrough
9900         blocks as used by the jump.
9901         * sched-rgn.c (compute_jump_reg_dependencies): New prototype.
9902         Mark new parameters as unused.
9903
9904 2011-07-14  Andrew Pinski  <pinskia@gmail.com>
9905
9906         PR tree-opt/49309
9907         * tree-mudflap.c (mf_xform_derefs_1 <case MEM_REF>):
9908         Use fold_build2_loc instead of build2.
9909         Use the correct type for the new tree.
9910
9911 2011-07-14  Bernd Schmidt  <bernds@codesourcery.com>
9912
9913         PR rtl-optimization/11320
9914         * config/ia64/ia64.md (load_symptr_low): Show a MEM.
9915         * config/ia64/ia64.c (ia64_expand_load_address): Generate it.
9916
9917 2011-07-14  Georg-Johann Lay  <avr@gjlay.de>
9918
9919         PR target/49487
9920         * config/avr/avr.md (rotl<mode>3): Generate SCRATCH instead
9921         of REG.
9922         (*rotw<mode>): Use const_int_operand for operand2.
9923         Use match_scatch for operand3.
9924         (*rotb<mode>): Ditto
9925         * config/avr/avr.c (avr_rotate_bytes): Treat SCRATCH.
9926
9927 2011-07-14  Richard Guenther  <rguenther@suse.de>
9928
9929         PR tree-optimization/49651
9930         * tree-ssa-structalias.c (get_constraint_for_1): Properly
9931         handle dereferences with subvariables.
9932
9933 2011-07-14  Richard Guenther  <rguenther@suse.de>
9934
9935         * gimple-fold.c (fold_gimple_assign): Remove operand swapping.
9936         (fold_stmt_1): Do it here directly on gimple and as a first thing.
9937
9938 2011-07-14  Richard Guenther  <rguenther@suse.de>
9939
9940         * fold-const.c (fold_binary_loc): Convert the !bool_var result,
9941         not bool_var when folding bool_var != 1 or bool_var == 0.
9942
9943 2011-07-14  Bernd Schmidt  <bernds@codesourcery.com>
9944
9945         * haifa-sched.c (schedule_insns): Remove outdated comment.
9946         (schedule_block): When computing a known value for TODO_SPEC,
9947         just set it rather than using logical operations.
9948         (try_ready): Likewise.  Use a local variable rather than a
9949         pointer to TODO_SPEC.  Reorder an if statement to move the
9950         easy case to the then block.
9951         * sched-deps.c (dep_spec_p): New static function.
9952         (update_dep): Use it to decide whether to call
9953         change_spec_dep_to_hard.
9954         (get_back_and_forw_lists): Use it.
9955         (sd_resolve_dep): Likewise.
9956         (init_dep): If !USE_DEPS_LIST, use zero to initialize status.
9957         (haifa_note_mem_dep): Likewise.
9958         (check_dep): Likewise.
9959         (sd_add_dep): Also clear SPECULATIVE bits if not DO_SPECULATION.
9960         (sched_free_deps): Free in two passes.
9961
9962 2011-07-14  Richard Sandiford  <richard.sandiford@linaro.org>
9963
9964         PR middle-end/49736
9965         * expr.c (all_zeros_p): Undo bogus part of last change.
9966
9967 2011-07-14  Matthias Klose <doko@ubuntu.com>
9968
9969         * doc/extend.texi (optimize attribute): Fix typo.
9970
9971 2011-07-14  Richard Guenther  <rguenther@suse.de>
9972
9973         * gimplify.c (gimplify_expr): Only do required conversions.
9974
9975 2011-07-14  Georg-Johann Lay  <avr@gjlay.de>
9976
9977         PR target/43746
9978         * config/avr/elf.h (TARGET_ASM_SELECT_SECTION): Remove,
9979         i.e. use default_elf_select_section.
9980         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Remove.
9981         (READONLY_DATA_SECTION_ASM_OP): Remove.
9982         (TARGET_ASM_NAMED_SECTION): Move from here...
9983         * config/avr/avr.c: ...to here.
9984         (avr_asm_init_sections): Set unnamed callback of readonly_data_section.
9985         (avr_asm_named_section): Make static.
9986
9987 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9988
9989         PR bootstrap/49739
9990         * config.gcc (extra_parts): Add crtprec32.o crtprec64.o crtprec80.o
9991         and crtfastmath.o for Linux/x86.
9992
9993 2011-07-14  Bernd Schmidt  <bernds@codesourcery.com>
9994
9995         * haifa-sched.c: Include "hashtab.h"
9996         (sched_no_dce): New global variable.
9997         (INSN_EXACT_TICK, INSN_TICK_ESTIMATE, FEEDS_BACKTRACK_INSN,
9998         SHADOW_P): New macros.
9999         (last_clock_var, cycle_issued_insns): Move declarations.
10000         (must_backtrack): New static variable.
10001         (struct delay_pair): New structure.
10002         (delay_htab, delay_htab_i2): New static variables.
10003         (delay_hash_i1, delay_hash_i2, delay_i1_eq, delay_i2_eq,
10004         record_delay_slot_pair, pair_delay, add_delay_dependencies): New
10005         functions.
10006         (dep_cost_1): If delay pairs exist, try to look up the insns and
10007         use the correct pair delay if we find them.
10008         (rank-for_schedule): Tweak priority for insns that must be scheduled
10009         soon to avoid backtracking.
10010         (queue_insn): Detect conditions which force backtracking.
10011         (ready_add): Likewise.
10012         (struct sched_block_state): Add member shadows_only_p.
10013         (struct haifa_save_data): New structure.
10014         (backtrack_queue): New static variable.
10015         (mark_backtrack_feeds, copy_insn_list, save_backtrack_point,
10016         unschedule_insns_until, restore_last_backtrack_point,
10017         free_topmost_backtrack_point, free_backtrack_queue,
10018         estimate_insn_tick, estimate_shadow_tick): New functions.
10019         (prune_ready_list): New arg shadows_only_p.  All callers changed.
10020         If true, remove everything that isn't SHADOW_P.  Look up delay
10021         pairs and estimate ticks to avoid scheduling the first insn too early.
10022         (verify_shadows): New function.
10023         (schedule_block): Add machinery to enable backtracking.
10024         (sched_init): Take sched_no_dce into account when setting
10025         DF_LR_RUN_DCE.
10026         (free_delay_pairs): New function.
10027         (init_h_i_d): Initialize INSN_EXACT_TICK.
10028         * Makefile.in (haifa-sched.o): Add $(HASHTAB_H).
10029         * sched-deps.c (sd_unresolve_dep): New function.
10030         * sched-int. (struct haifa_sched_info): New fields save_state
10031         and restore_state.
10032         (struct _haifa_insn_data): New fields exact_tick, tick_estimate,
10033         feeds_backtrack_insn and shadow_p.
10034         (DO_BACKTRACKING): New value in enum SCHED_FLAGS.
10035         (sched_no_dce): Declare variable.
10036         (record_delay_slot_pair, free_delay_pairs, add_delay_dependencies,
10037         sd_unresolve_dep): Declare functions.
10038         * modulo-sched.c (sms_sched_info): Clear the two new fields.
10039         * sched-rgn.c (rgn_const_sched_info): Likewise.
10040         * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
10041         * sched-ebb.c (save_ebb_state, restore_ebb_state): New functions.
10042         (ebb_sched_info): Add them for the two new fields.
10043         (add_deps_for_risky_insns): Call add_delay_dependencies.
10044
10045 2011-07-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
10046
10047         * config/rs6000/rs6000.opt (-mpointers-to-nested-functions):
10048         Rename -mr11.
10049         * config/rs6000/rs6000.c (rs6000_trampoline_init): Ditto.
10050         (rs6000_call_indirect_aix): Ditto.
10051         * config/rs6000/rs6000.md (call_indirect_aix<ptrsize>): Ditto.
10052         (call_indirect_aix<ptrsize>_internal): Ditto.
10053         (call_indirect_aix<ptrsize>_nor11): Ditto.
10054         (call_indirect_aix<ptrsize>_internal2): Ditto.
10055         (call_value_indirect_aix<ptrsize>): Ditto.
10056         (call_value_indirect_aix<ptrsize>_internal): Ditto.
10057         (call_value_indirect_aix<ptrsize>_nor11): Ditto.
10058         (call_value_indirect_aix<ptrsize>_internal2): Ditto.
10059         * doc/invoke.texi (RS/6000 and PowerPC Options): Ditto.
10060
10061 2011-07-13  Jason Merrill  <jason@redhat.com>
10062
10063         * Makefile.in ($(lang_checks_parallelized)): Allow --tool_opts.
10064
10065 2011-07-13  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10066
10067         * config/spu/spu.c (spu_init_libfuncs): Install __clrsbdi2.
10068         * config/spu/spu.md ("clrsb<mode>2"): New expander.
10069
10070 2011-07-13  Thomas Schwinge  <thomas@schwinge.name>
10071
10072         * acinclude.m4 (gcc_GAS_CHECK_FEATURE): Use AS_ECHO instead of echo.
10073         * configure: Regenerate.
10074
10075 2011-07-13  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10076
10077         * config/spu/spu.c (TARGET_ASM_FILE_START): Do not define.
10078         (asm_file_start): Remove.
10079         (spu_machine_dependent_reorg): Call compute_bb_for_insn and
10080         free_bb_for_insn around code that modifies insns before
10081         restarting df analysis.
10082
10083 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10084
10085         PR target/49541
10086         * config/sol2.h (LIB_SPEC): Simplify.  Move LIB_THREAD_LDFLAGS_SPEC ...
10087         (LINK_SPEC): ... here.
10088
10089 2011-07-13  Bernd Schmidt  <bernds@codesourcery.com>
10090
10091         * haifa-sched.c (struct sched_block_state): New.
10092         (schedule_block): Move some local variables into such a structure.
10093
10094 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10095
10096         * config/i386/crtprec.c: Move to ../libgcc/config/i386.
10097         * config/i386/t-crtpc: Remove.
10098         * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
10099         * config.gcc (i[34567]86-*-darwin*): Remove i386/t-crtpc from
10100         tmake_file.
10101         (x86_64-*-darwin*): Likewise.
10102         (i[34567]86-*-linux*): Likewise.
10103         (x86_64-*-linux*): Likewise.
10104
10105         * config/i386/sol2.h (ENDFILE_SPEC): Redefine.
10106         Handle -mpc32, -mpc64, -mpc80.
10107
10108 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10109
10110         * config/alpha/crtfastmath.c: Move to ../libgcc/config/alpha.
10111         * config/alpha/t-crtfm: Remove.
10112         * config/i386/crtfastmath.c: Move to ../libgcc/config/i386.
10113         * config/i386/t-crtfm: Remove.
10114         * config/ia64/crtfastmath.c: Move to ../libgcc/config/ia64.
10115         * config/mips/crtfastmath.c: Move to ../libgcc/config/mips.
10116         * config/sparc/crtfastmath.c: Move to ../libgcc/config/sparc.
10117         * config/sparc/t-crtfm: Remove.
10118
10119         * config.gcc (alpha*-*-linux*): Remove alpha/t-crtfm from tmake_file.
10120         (alpha*-*-freebsd*): Likewise.
10121         (i[34567]86-*-darwin*): Remove i386/t-crtfm from tmake_file.
10122         (x86_64-*-darwin*): Likewise.
10123         (i[34567]86-*-linux*): Likewise.
10124         (x86_64-*-linux*): Likewise.
10125         (x86_64-*-mingw*): Likewise.
10126         (ia64*-*-elf*): Remove crtfastmath.o from extra_parts.
10127         (ia64*-*-freebsd*): Likewise.
10128         (ia64*-*-linux*): Likewise.
10129         (mips64*-*-linux*): Likewise.
10130         (mips*-*-linux*): Likewise.
10131         (sparc-*-linux*): Remove sparc/t-crtfm from tmake_file.
10132         (sparc64-*-linux*): Likewise.
10133         (sparc64-*-freebsd*): Likewise.
10134
10135 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10136
10137         * config/darwin-crt2.c: Move to ../libgcc/config/rs6000.
10138         * config/darwin-crt3.c: Move to ../libgcc/config.
10139         * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
10140         ($(T)crt3$(objext)): Remove.
10141         * config/rs6000/t-darwin (DARWIN_EXTRA_CRT_BUILD_CFLAGS): Remove.
10142         ($(T)crt2$(objext)): Remove.
10143         * config.gcc (powerpc-*-darwin*): Remove extra_parts.
10144         (powerpc64-*-darwin*): Likewise.
10145
10146 2011-07-13  H.J. Lu  <hongjiu.lu@intel.com>
10147
10148         * config/i386/i386.c (x86_output_mi_thunk): Support ptr_mode != Pmode.
10149
10150         * config/i386/i386.md (*addsi_1_zext): Renamed to ...
10151         (addsi_1_zext): This.
10152
10153 2011-07-13  Bernd Schmidt  <bernds@codesourcery.com>
10154
10155         * doc/tm.texi.in (TARGET_ASM_MERGEABLE_RODATA_PREFIX): Add hook.
10156         * doc/tm.texi: Regenerate.
10157         * target.def (mergeable_rodata_prefix): New defhookpod.
10158         * varasm.c (mergeable_string_section, mergeable_constant_section):
10159         Use it. Allocate name with alloca.
10160
10161 2011-07-13  H.J. Lu  <hongjiu.lu@intel.com>
10162
10163         * doc/invoke.texi (x86): Remove -mfused-madd and add -mfma.
10164
10165 2011-07-13  Richard Sandiford  <richard.sandiford@linaro.org>
10166
10167         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Tighten
10168         overlap check.
10169
10170 2011-07-13  Richard Sandiford  <richard.sandiford@linaro.org>
10171
10172         * tree.h (categorize_ctor_elements): Remove comment.  Fix long line.
10173         (count_type_elements): Delete.
10174         (complete_ctor_at_level_p): Declare.
10175         * expr.c (flexible_array_member_p): New function, split out from...
10176         (count_type_elements): ...here.  Make static.  Replace allow_flexarr
10177         parameter with for_ctor_p.  When for_ctor_p is true, return the
10178         number of elements that should appear in the top-level constructor,
10179         otherwise return an estimate of the number of scalars.
10180         (categorize_ctor_elements): Replace p_must_clear with p_complete.
10181         (categorize_ctor_elements_1): Likewise.  Use complete_ctor_at_level_p.
10182         (complete_ctor_at_level_p): New function, borrowing union logic
10183         from old categorize_ctor_elements_1.
10184         (mostly_zeros_p): Return true if the constructor is not complete.
10185         (all_zeros_p): Update call to categorize_ctor_elements.
10186         * gimplify.c (gimplify_init_constructor): Update call to
10187         categorize_ctor_elements.  Don't call count_type_elements.
10188         Unconditionally prevent clearing for variable-sized types,
10189         otherwise rely on categorize_ctor_elements to detect
10190         incomplete initializers.
10191
10192 2011-07-13  Richard Guenther  <rguenther@suse.de>
10193
10194         * tree-vrp.c (simplify_conversion_using_ranges): Make sure
10195         the final type is integral.
10196
10197 2011-07-13  Bernd Schmidt  <bernds@codesourcery.com>
10198
10199         * sched-int.h (struct _dep): Add member cost.
10200         (DEP_COST, UNKNOWN_DEP_COST): New macros.
10201         * sched-deps.c (init_dep_1): Initialize DEP_COST.
10202         * haifa-sched.c (dep_cost_1): Use and set DEP_COST.
10203         (sched_change_pattern): Reset it for dependent insns.
10204
10205 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10206
10207         * Makefile.in (CRT0STUFF_T_CFLAGS): Remove.
10208         ($(T)crt0.o, $(T)mcrt0.o, s-crt0): Remove.
10209         * config/i386/netware-crt0.c: Move to ../libgcc/config/i386.
10210         * config/i386/t-nwld (CRTSTUFF_T_CFLAGS, CRT0STUFF_T_CFLAGS): Remove.
10211         (CRT0_S, MCRT0_S): Remove.
10212         ($(T)libgcc.def, $(T)libc.def, $(T)libcpre.def, $(T)posixpre.def):
10213         Remove.
10214         (s-crt0): Remove.
10215         * config.gcc (i[3456x]86-*-netware*): Remove extra_parts.
10216
10217 2011-07-12  Eric Botcazou  <ebotcazou@adacore.com>
10218
10219         * cse.c (insert_with_costs): Put semi-colon after empty loop body
10220         on the next line.
10221         * emit-rtl.c (push_to_sequence): Likewise.
10222         * haifa-sched.c (max_issue): Likewise.
10223         * matrix-reorg.c (add_allocation_site): Likewise.
10224         * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
10225         * reload.c (alternative_allows_const_pool_ref): Likewise.
10226         * sched-rgn.c (rgn_add_block): Likewise.
10227         (rgn_fix_recovery_cfg): Likewise.
10228         * tree.c (attribute_list_contained): Likewise.
10229
10230 2011-07-12  Uros Bizjak  <ubizjak@gmail.com>
10231
10232         * config/i386/i386.c: Tidy processor feature bitmasks.
10233         (m_P4_NOCONA): New.
10234
10235 2011-07-12  Andrew Pinski  <pinskia@gmail.com>
10236
10237         PR rtl-opt/49474
10238         * cprop.c (find_implicit_sets): Correct the condition.
10239
10240 2011-07-12  Richard Henderson  <rth@redhat.com>
10241
10242         PR target/49713
10243         * dwarf2out.h (dwarf_frame_regnum): Remove.
10244         * dwarf2out.c (based_loc_descr): Revert last change.  Initialize regno
10245         earlier from DWARF_FRAME_REGNUM.  Never use dbx_reg_number.
10246         * dwarf2cfi.c (dw_stack_pointer_regnum, dw_frame_pointer_regnum): New.
10247         (execute_dwarf2_frame): Initialize them.
10248         (DW_STACK_POINTER_REGNUM, DW_FRAME_POINTER_REGNUM): Remove; replace
10249         users of the macros with the variables.
10250         (expand_builtin_dwarf_sp_column): Revert last change.
10251         (expand_builtin_init_dwarf_reg_sizes): Likewise.  Compute the
10252         result of DWARF_FRAME_REGNUM into a local variable.
10253
10254 2011-07-12  Richard Henderson  <rth@redhat.com>
10255
10256         PR target/49714
10257         * config/i386/i386.c (x86_output_mi_thunk): Use
10258         machopic_indirect_call_target instead of machopic_indirection_name
10259         directly.
10260
10261 2011-07-12  Laurent GUERBY  <laurent@guerby.net>
10262             Eric Botcazou  <ebotcazou@adacore.com>
10263
10264         * prefix.h: Wrap up in extern "C" block.
10265
10266 2011-07-12  Harsha Jagasia  <harsha.jagasia@amd.com>
10267
10268         AMD bdver2 Enablement
10269         * config.gcc (i[34567]86-*-linux* | ...): Add bdver2.
10270         (case ${target}): Add bdver2.
10271         * config/i386/driver-i386.c (host_detect_local_cpu): Let
10272         -march=native recognize bdver2 processors.
10273         * config/i386/i386-c.c (ix86_target_macros_internal): Add
10274         bdver2 def_and_undef
10275         * config/i386/i386.c (struct processor_costs bdver2_cost): New
10276         bdver2 cost table.
10277         (m_BDVER2): New definition.
10278         (m_AMD_MULTIPLE): Includes m_BDVER2.
10279         (initial_ix86_tune_features): Add bdver2 tuning.
10280         (processor_target_table): Add bdver2 entry.
10281         (static const char *const cpu_names): Add bdver2 entry.
10282         (ix86_option_override_internal): Add bdver2 instruction sets.
10283         (ix86_issue_rate): Add bdver2.
10284         (ix86_adjust_cost): Add bdver2.
10285         (has_dispatch): Add bdver2.
10286         * config/i386/i386.h (TARGET_BDVER2): New definition.
10287         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_bdver2.
10288         (enum processor_type): Add PROCESSOR_BDVER2.
10289         * config/i386/i386.md (define_attr "cpu"): Add bdver2.
10290         * config/i386/i386.opt ( mdispatch-scheduler): Add bdver2 to
10291         description.
10292
10293 2011-07-12  Richard Henderson  <rth@redhat.com>
10294
10295         PR target/49714
10296         * config/i386/i386.c (x86_output_mi_thunk): Fix mode for
10297         destination address in memory on some paths.
10298
10299 2011-07-12  Bernd Schmidt  <bernds@codesourcery.com>
10300
10301         * doc/tm.texi.in (FUNCTION_ARG_PADDING): Mention
10302         TARGET_FUNCTION_ARG_ROUND_BOUNDARY.
10303         (TARGET_FUNCTION_ARG_ROUND_BOUNDARY): Add hook.
10304         * function.c (locate_and_pad_parm): Take it into account.
10305         * target.def (function_arg_round_boundary): New hook.
10306         * targhooks.c (default_function_arg_round_boundary): New function.
10307         * targhooks.h (default_function_arg_round_boundary): Declare.
10308         * doc/tm.texi: Regenerate.
10309
10310 2011-07-12  Richard Guenther  <rguenther@suse.de>
10311
10312         * tree-ssa-copyrename.c (rename_ssa_copies): Zero statistics.
10313         Do not perform no-op changes.
10314
10315 2011-07-12  Richard Sandiford  <richard.sandiford@linaro.org>
10316
10317         * config/arm/predicates.md (neon_struct_operand): Make a normal
10318         predicate.
10319         (neon_struct_or_register_operand): New predicate.
10320         * config/arm/neon.md (movmisalign<mode>): Replace predicates
10321         with neon_struct_or_register_operand.
10322         (*movmisalign<mode>_neon_store, *movmisalign<mode>_neon_load): Use
10323         neon_struct_operand instead of memory_operand.
10324
10325 2011-07-12  Martin Jambor  <mjambor@suse.cz>
10326
10327         * cgraph.h (cgraph_get_node_or_alias): Removed declaration.
10328         * cgraph.c (cgraph_get_node_or_alias): Removed.
10329         (change_decl_assembler_name): Changed all calls to
10330         cgraph_get_node_or_alias to a call to cgraph_get_node.
10331         (cgraph_make_decl_local): Likewise.
10332         * lto-symtab.c (lto_symtab_resolve_symbols): Likewise.
10333         * varasm.c (default_binds_local_p_1): Likewise.
10334         (decl_binds_to_current_def_p): Likewise.
10335
10336 2011-07-12  Jakub Jelinek  <jakub@redhat.com>
10337
10338         PR tree-optimization/49712
10339         * tree-ssa-loop-im.c (gen_lsm_tmp_name): Handle TARGET_MEM_REF.
10340
10341 2011-07-11  Bernd Schmidt  <bernds@codesourcery.com>
10342
10343         * genautomata.c (add_arc): Return void.  All callers changed.
10344         (make_automaton): Remove dead code.
10345
10346 2011-07-11  Richard Henderson  <rth@redhat.com>
10347
10348         * dwarf2cfi.c (DW_STACK_POINTER_REGNUM): New.
10349         (DW_FRAME_POINTER_REGNUM): New.
10350         (expand_builtin_init_dwarf_reg_sizes): Use unsigned for rnum.
10351         (def_cfa_1): Do not convert reg to DWARF_FRAME_REGNUM here.
10352         (dwf_regno): New.
10353         (dwarf2out_flush_queued_reg_saves, dwarf2out_frame_debug_def_cfa,
10354         dwarf2out_frame_debug_adjust_cfa, dwarf2out_frame_debug_cfa_register,
10355         dwarf2out_frame_debug_cfa_expression, dwarf2out_frame_debug_expr):
10356         Use it.
10357         * dwarf2out.c (based_loc_descr): Use dwarf_frame_regnum.
10358         * dwarf2out.h (dwarf_frame_regnum): New.
10359         (struct cfa_loc): Document the domain of the reg member.
10360
10361 2011-07-11  Uros Bizjak  <ubizjak@gmail.com>
10362
10363         * config/i386/i386.c (ix86_trampoline_init): Switch arms of if expr.
10364         Use offset everywhere.  Always assert that offset <= TRAMPOLINE_SIZE.
10365
10366 2011-07-11  Jakub Jelinek  <jakub@redhat.com>
10367
10368         PR debug/49676
10369         * dwarf2out.c (int_shift_loc_descriptor): New function.
10370         (int_loc_descriptor): If shorter, emit i as
10371         (i >> shift), shift, DW_OP_shl for suitable shift value.
10372         Similarly, try to optimize large negative values using
10373         DW_OP_neg of a positive value if shorter.
10374         (size_of_int_shift_loc_descriptor): New function.
10375         (size_of_int_loc_descriptor): Adjust to match int_loc_descriptor
10376         changes.
10377         (mem_loc_descriptor) <case CONST_INT>: Emit zero-extended constants
10378         that fit into DWARF2_ADDR_SIZE bytes as int_loc_descriptor +
10379         DW_OP_GNU_convert instead of DW_OP_GNU_const_type if the former
10380         is shorter.
10381         (resolve_addr_in_expr): Optimize DW_OP_plus_uconst with a large
10382         addend as added DW_OP_plus if it is shorter.
10383
10384 2011-07-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10385
10386         * config/i386/sol2.h [!USE_GLD] (CTORS_SECTION_ASM_OP): Define.
10387         (DTORS_SECTION_ASM_OP): Define.
10388
10389 2011-07-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10390
10391         * config/dfp-bit.c, config/dfp-bit.h: Move to ../libgcc.
10392         * config/t-dfprules: Move to ../libgcc/config.
10393         * config.gcc (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
10394         i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
10395         i[34567]86-*-kopensolaris*-gnu): Remove t-dfprules from tmake_file.
10396         (x86_64-*-linux*, x86_64-*-kfreebsd*-gnu, x86_64-*-knetbsd*-gnu):
10397         Likewise.
10398         (i[34567]86-*-cygwin*): Likewise.
10399         (i[34567]86-*-mingw*,  x86_64-*-mingw*): Likewise.
10400         (powerpc-*-linux*, powerpc64-*-linux*): Likewise.
10401         * Makefile.in (D32PBIT_FUNCS, D64PBIT_FUNCS, D128PBIT_FUNCS): Remove.
10402         (libgcc.mvars): Remove DFP_ENABLE, DFP_CFLAGS, D32PBIT_FUNCS,
10403         D64PBIT_FUNCS, D128PBIT_FUNCS.
10404
10405 2011-07-11  Richard Guenther  <rguenther@suse.de>
10406
10407         * tree-vrp.c (simplify_conversion_using_ranges): Manually
10408         translate the source value-range through the conversion chain.
10409
10410 2011-07-11  Richard Sandiford  <richard.sandiford@linaro.org>
10411
10412         * expr.c (expand_expr_real_1): Use expand_insn for movmisalign.
10413
10414 2011-07-11  Arthur Loiret  <aloiret@debian.org>
10415
10416         * config.gcc (s390-*-linux*): If 'enabled_targets' is 'all', build
10417         a bi-arch compiler defaulting to 31-bit. In this case:
10418         (tmake_file): Add s390/t-linux64.
10419         * doc/install.texi: Add s390-linux to the list of targets supporting
10420         --enable-targets=all.
10421
10422 2011-07-11  Arthur Loiret  <aloiret@debian.org>
10423             Matthias Klose <doko@debian.org>
10424
10425         * config.gcc (mips*-*-linux*): If 'enabled_targets' is 'all', build
10426         a tri-arch compiler defaulting to 32-bit (ABI o32). In this case:
10427         (tm_file): Add mips/linux64.h.
10428         (tmake_file): Add mips/t-linux64.
10429         (tm_defines): Add MIPS_ABI_DEFAULT=ABI_32.
10430         * config/mips/linux64.h (DRIVER_SELF_SPECS): Use MULTILIB_ABI_DEFAULT
10431         instead of hardcoded mabi=n32.
10432         * config/mips/t-linux64 (MULTILIB_DIRNAMES): Set to 'n32 . 64' if
10433         tm_defines contains MIPS_ABI_DEFAULT ABI_32, to follow the glibc
10434         convention.
10435
10436 2011-07-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10437
10438         * passes.c (init_optimization_passes): Add invariant motion pass
10439         after induction variable optimization.
10440
10441 2011-07-11  Georg-Johann Lay  <avr@gjlay.de>
10442
10443         PR target/39633
10444         * config/avr/avr.c (notice_update_cc): For ashiftrt:QI, only
10445         offsets 1..5 set cc0 in a usable way.
10446
10447 2011-07-11  Romain Geissler  <romain.geissler@gmail.com>
10448
10449         * tree.h (call_expr_arg): Remove.
10450         (call_expr_argp): Likewise.
10451
10452 2011-07-11  Eric Botcazou  <ebotcazou@adacore.com>
10453
10454         * config/sparc/sparc.md (save_register_window_1): Rename to...
10455         (window_save): ...this.
10456         * config/sparc/sparc.c (emit_save_register_window): Rename to...
10457         (emit_window_save): ...this.
10458         (sparc_expand_prologue): Adjust to above renaming.
10459
10460 2011-07-10  H.J. Lu  <hongjiu.lu@intel.com>
10461
10462         * config/i386/i386.c (ix86_trampoline_init): Use movl instead
10463         of movabs for x32.
10464
10465 2011-07-10  Richard Henderson  <rth@redhat.com>
10466
10467         * config/i386/i386.c (x86_output_mi_thunk): Generate rtl and
10468         run final, instead of emitting text directly.
10469
10470 2011-07-10  H.J. Lu  <hongjiu.lu@intel.com>
10471
10472         * config/i386/i386.c (ix86_option_override_internal): Turn on
10473         OPTION_MASK_ISA_64BIT for TARGET_X32.  Only allow small and
10474         small PIC models for TARGET_X32.
10475
10476 2011-07-10  Hans-Peter Nilsson  <hp@axis.com>
10477
10478         PR target/49684
10479         * config/cris/t-elfmulti (CRTSTUFF_T_CFLAGS): Don't include
10480         $(LIBGCC2_CFLAGS).
10481
10482         PR bootstrap/49680
10483         * config/cris/cris.c (cris_asm_output_case_end): Robustify against
10484         stray notes and debug insns by using prev_nonnote_nondebug_insn
10485         instead of PREV_INSN.
10486
10487 2011-07-09  Richard Henderson  <rth@redhat.com>
10488
10489         * defaults.h (DWARF2_ADDR_SIZE, DWARF_OFFSET_SIZE,
10490         DWARF_TYPE_SIGNATURE_SIZE): Move from ...
10491         * dwarf2out.c: ... here.
10492         (output_all_cfis): Remove.
10493         (dwarf2out_switch_text_section): Use output_cfis directly.
10494         (size_of_locs): Export.
10495         (output_loc_sequence, output_loc_sequence_raw): Export.
10496         (div_data_align, need_data_align_sf_opcode, dwarf_cfi_name, output_cfi,
10497         output_cfi_directive, dwarf2out_emit_cfi, output_cfis, output_cfa_loc,
10498         output_cfa_loc_raw): Move to ...
10499         * dwarfcfi.c: ... here.
10500         * dwarf2out.h: Update decls.
10501
10502 2011-07-09  Richard Henderson  <rth@redhat.com>
10503
10504         * defaults.h (DWARF_CIE_DATA_ALIGNMENT, DWARF_FRAME_RETURN_COLUMN,
10505         DWARF_FRAME_REGNUM, DWARF2_FRAME_REG_OUT): Move from ...
10506         * dwarf2cfi.c: ... here.
10507         (PTR_SIZE, DWARF_OFFSET_SIZE, DWARF_INITIAL_LENGTH_SIZE): Remove.
10508         (DWARF_ROUND, DWARF_CIE_ID): Remove.
10509         * dwarf2out.c (INCOMING_RETURN_ADDR_RTX): Remove.
10510         (DWARF2_FRAME_REG_OUT, DWARF_CIE_DATA_ALIGNMENT): Remove.
10511         (DWARF_FRAME_RETURN_COLUMN, DWARF_FRAME_REGNUM): Remove.
10512
10513 2011-07-09  Richard Henderson  <rth@redhat.com>
10514
10515         * dwarf2cfi.c (cie_return_save): New.
10516         (queue_reg_save): Use compare_reg_or_pc.
10517         (dwarf2out_flush_queued_reg_saves): Handle pc_rtx as return column.
10518         (dwarf2out_frame_debug_expr): Likewise.
10519         (dwarf2out_frame_debug_cfa_register): Record saved reg for pc too.
10520         (initial_return_save): Likewise.
10521         (execute_dwarf2_frame): Save and restore initial return save from
10522         the cie to the fde.
10523         * config/mips/mips.c (mips_frame_set): Remove special case for
10524         DWARF_FRAME_RETURN_COLUMN.
10525
10526 2011-07-09  Richard Henderson  <rth@redhat.com>
10527
10528         * dwarf2cfi.c (lookup_cfa): Remove.
10529         (execute_dwarf2_frame): Assert queues are empty on entry.
10530         Setup initial cfa directly, not via lookup_cfa.
10531         Don't clear args_size state here.
10532
10533 2011-07-09  Richard Henderson  <rth@redhat.com>
10534
10535         * dwarf2cfi.c (add_cfi_vec): New.
10536         (add_cfi): Rename from add_fde_cfi.  Add the element to add_cfi_vec.
10537         (def_cfa_1, reg_save): Remove for_cie argument.  Update all callers.
10538         (execute_dwarf2_frame): Set add_cfi_vec.
10539
10540 2011-07-09  Richard Henderson  <rth@redhat.com>
10541
10542         * defaults.h (ASM_COMMENT_START): Move here...
10543         * dwarf2asm.c: ... from here.
10544         * dwarf2out.c, final.c, vmsdbgout.c: Remove duplicates.
10545         * toplev.c: Remove ifndef tests of ASM_COMMENT_START.
10546         * varasm.c: Likewise.
10547
10548 2011-07-09  Richard Henderson  <rth@redhat.com>
10549
10550         PR debug/49686
10551         * dwarf2cfi.c (dwarf2out_frame_debug): Don't set cfi_insn here...
10552         (create_cfi_notes): ... do it here instead.
10553
10554 2011-07-09  Jakub Jelinek  <jakub@redhat.com>
10555
10556         PR debug/49676
10557         * dwarf2out.c (size_of_int_loc_descriptor): New function.
10558         (address_of_int_loc_descriptor): Use it.
10559         (scompare_loc_descriptor): Optimize EQ/NE comparison with constant.
10560
10561 2011-07-09  Richard Henderson  <rth@redhat.com>
10562
10563         * config/pdp11/pdp11.md (define_c_enum "unspecv"): New.
10564         (prologue, epilogue): New.
10565         (return, *rts): New.
10566         (blockage, setd, seti): New.
10567         * config/pdp11/pdp11.c (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
10568         (TARGET_ASM_FUNCTION_EPILOGUE): Remove.
10569         (pdp11_saved_regno): New.
10570         (pdp11_expand_prologue): Rename from pdp11_output_function_prologue;
10571         generate rtl instead of text.
10572         (pdp11_expand_epilogue): Similarly from pdp11_output_function_epilogue.
10573         (pdp11_sp_frame_offset): Export.  Use pdp11_saved_regno.
10574         * config/pdp11/pdp11-protos.h: Update.
10575
10576 2011-07-09  Richard Henderson  <rth@redhat.com>
10577
10578         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Don't
10579         try to insert an rtl prologue here.
10580         (rs6000_output_function_epilogue): Similarly.
10581         * config/rs6000/rs6000.md (prologue): Emit a barrier to
10582         satisfy !TARGET_SCHED_PROLOG.
10583         (epilogue, sibcall_epilogue): Likewise.
10584
10585 2011-07-09  Eric Botcazou  <ebotcazou@adacore.com>
10586
10587         * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Move around.
10588         (FP_REG_P): Delete.
10589         (IN_OR_GLOBAL_P): Likewise.
10590
10591 2011-07-08  Jason Merrill  <jason@redhat.com>
10592
10593         PR c++/45437
10594         * gimplify.c (goa_stabilize_expr): Handle RHS preevaluation in
10595         compound assignment.
10596
10597         * cgraph.c (cgraph_add_to_same_comdat_group): New.
10598         * cgraph.h: Declare it.
10599         * ipa.c (function_and_variable_visibility): Make sure thunks
10600         have the right visibility.
10601
10602 2011-07-08  Richard Henderson  <rth@redhat.com>
10603
10604         PR bootstrap/49680
10605         * dwarf2cfi.c (dwarf2out_frame_debug): Insert cfi notes after
10606         any tablejump vector.
10607
10608         PR bootstrap/49680
10609         * dwarf2cfi.c (create_cfi_notes): Flush queued saves at the
10610         end of the prologue.
10611
10612 2011-07-08  Jakub Jelinek  <jakub@redhat.com>
10613
10614         PR target/49621
10615         * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Use
10616         CONST0_RTX (dest_mode) instead of const0_rtx as second operand of NE.
10617         * config/rs6000/vector.md (vector_select_<mode>,
10618         vector_select_<mode>_uns): Change second operand of NE to
10619         CONST0_RTX (<MODE>mode) instead of const0_rtx.
10620         * config/rs6000/altivec.md (*altivec_vsel<mode>,
10621         *altivec_vsel<mode>_uns): Expect second operand of NE to be
10622         zero_constant of the corresponding vector mode.
10623         * config/rs6000/vsx.md (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns):
10624         Likewise.
10625
10626 2011-07-08  Sebastian Pop  <sebastian.pop@amd.com>
10627
10628         * graphite-dependences.c (build_alias_set_powerset): Remove
10629         continue from loop, add one more assert.
10630
10631 2011-07-08  Georg-Johann Lay  <avr@gjlay.de>
10632
10633         PR target/46779
10634         * config/avr/avr.c (avr_hard_regno_mode_ok): Rewrite.
10635         In particular, allow 8-bit values in r28 and r29.
10636         (avr_hard_regno_scratch_ok): Disallow any register that might be
10637         part of the frame pointer.
10638         (avr_hard_regno_rename_ok): Same.
10639         (avr_legitimate_address_p): Don't allow SUBREGs.
10640
10641 2011-07-08  Julian Brown  <julian@codesourcery.com>
10642
10643         * config/arm/neon.md (vec_shr_<mode>, vec_shl_<mode>): Disable in
10644         big-endian mode.
10645         (reduc_splus_<mode>, reduc_uplus_<mode>, reduc_smin_<mode>)
10646         (reduc_smax_<mode>, reduc_umin_<mode>, reduc_umax_<mode>)
10647         (neon_vec_unpack<US>_lo_<mode>, neon_vec_unpack<US>_hi_<mode>)
10648         (vec_unpack<US>_hi_<mode>, vec_unpack<US>_lo_<mode>)
10649         (neon_vec_<US>mult_lo_<mode>, vec_widen_<US>mult_lo_<mode>)
10650         (neon_vec_<US>mult_hi_<mode>, vec_widen_<US>mult_hi_<mode>)
10651         (vec_pack_trunc_<mode>, neon_vec_pack_trunc_<mode>): Disable for Q
10652         registers in big-endian mode.
10653
10654 2011-07-08  Bernd Schmidt  <bernds@codesourcery.com>
10655
10656         * genattrtab.c (evaluate_eq_attr): Allow an attribute to be defined
10657         in terms of another.
10658         (write_attr_value): Write a cast if necessary.
10659
10660         * defaults.h (REG_WORDS_BIG_ENDIAN): Provide a default.
10661         * doc/tm.texi.in (WORDS_BIG_ENDIAN): Mention REG_WORDS_BIG_ENDIAN.
10662         (REG_WORDS_BIG_ENDIAN): Document.
10663         * doc/tm.texi: Regenerate.
10664         * reload.c (operands_match_p): Take it into account.
10665         (reload_adjust_reg_for_mode): Likewise.
10666         * rtlanal.c (subreg_get_info): Likewise.
10667
10668 2011-07-08  Richard Guenther  <rguenther@suse.de>
10669
10670         * fold-const.c (fold_binary_loc): Remove index +p PTR -> PTR +p index
10671         folding.
10672
10673 2011-07-08  Kai Tietz  <ktietz@redhat.com>
10674
10675         * fold-const.c (fold_truth_andor): Factored out truth_andor
10676         label from fold_binary as function.
10677         (fold_binary_loc): Replace truth_andor lable
10678         by function fold_truth_andor.
10679
10680 2011-07-08  Kirill Yukhin  <kirill.yukhin@intel.com>
10681
10682         PR middle-end/49519
10683         * calls.c (mem_overlaps_already_clobbered_arg_p): Additional
10684         check if address is stored in register. If so - give up.
10685         (check_sibcall_argument_overlap_1): Do not perform check of
10686         overlapping when it is call to address.
10687
10688 2011-07-08  Georg-Johann Lay  <avr@gjlay.de>
10689
10690         * config/avr/avr.c (output_reload_insisf): Use 'REG_Z+1' instead
10691         of magic '31'.
10692
10693 2011-07-08  Bernd Schmidt  <bernds@codesourcery.com>
10694
10695         * optabs.c (expand_binop): Use GET_MODE_PRECISION instead of
10696         GET_MODE_BITSIZE where appropriate.
10697         (widen_leading, expand_parity, expand_ctz, expand_ffs,
10698         expand_unop, expand_abs_nojump, expand_one_cmpl_abs_nojump,
10699         expand_float, expand_fix): Likewise.
10700         * expr.c (convert_move, convert_modes, expand_expr_real_2,
10701         expand_expr_real_1, reduce_to_bit_field_precision): Likewise.
10702         * stor-layout.c (get_mode_bounds): Likewise.
10703         * cfgexpand.c (convert_debug_memory_address, expand_debug_expr):
10704         Likewise.
10705         * convert.c (convert_to_integer): Likewise.
10706         * expmed.c (expand_shift_1): Likewise.
10707
10708         * rtlanal.c (nonzero_bits1): Don't compare GET_MODE_SIZE against
10709         a bitsize.
10710
10711         * optabs.c (expand_binop): Tighten conditions for doubleword
10712         expansions.
10713         (widen_bswap): Assert that mode bitsize and precision are the same.
10714         * stor-layout.c (get_best_mode): Skip modes that have lower
10715         precision than bitsize.
10716         * recog.c (simplify_while_replacing): Assert that bitsize and
10717         precision are the same.
10718
10719 2011-07-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10720
10721         * Makefile.in (LIBGCOV): Remove.
10722         (libgcc.mvars): Remove LIBGCOV.
10723         * libgov.c: Move to ../libgcc.
10724
10725 2011-07-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10726
10727         * config/fixed-bit.c, config/fixed-bit.h: Move to ../libgcc.
10728
10729 2011-07-08  Martin Jambor  <mjambor@suse.cz>
10730
10731         * tree-sra.c (analyze_all_variable_accesses): Dump that a struture
10732         is too big for total scalarization.
10733
10734 2011-07-07  Richard Henderson  <rth@redhat.com>
10735
10736         * config/alpha/elf.h (MIPS_DEBUGGING_INFO): Undef.
10737         (DBX_DEBUGGING_INFO): Undef.
10738
10739 2011-07-07  Richard Henderson  <rth@redhat.com>
10740
10741         * dwarf2out.c (output_cfi_directive): Export.  Add FILE parameter.
10742         Handle some opcodes specially for debugging.
10743         * print-rtl.c: Include dwarf2out.h
10744         (print_rtx): Handle NOTE_INSN_CFI.
10745         * Makefile.in (print-rtl.o): Update.
10746
10747 2011-07-07  Richard Henderson  <rth@redhat.com>
10748
10749         * tree-pass.h (pass_dwarf2_frame): Declare.
10750         * passes.c (init_optimization_passes): Add it.
10751         * dwarf2cfi.c (dwarf2out_frame_debug): Make static.
10752         (create_cfi_notes): Rename from dwarf2out_frame_debug_after_prologue;
10753         make static, do not call add_cfis_to_fde.
10754         (dwarf2out_frame_debug_init, dwarf2cfi_function_init,
10755         dwarf2out_frame_init): Merge into...
10756         (execute_dwarf2_frame): ... here.  New function.
10757         (dwarf2out_do_frame, dwarf2out_do_cfi_asm): Make boolean.  Change
10758         saved_do_cfi_asm to a tri-state variable.
10759         (gate_dwarf2_frame, pass_dwarf2_frame): New.
10760         * dwarf2out.c (dwarf2out_begin_prologue): Only allocate the fde
10761         if it has yet to be done.  Don't call dwarf2cfi_function_init.
10762         * dwarf2out.h, debug.h: Update decls.
10763         * final.c (final_start_function): Don't call
10764         dwarf2out_frame_debug_init or dwarf2out_frame_debug_after_prologue.
10765         * lto-streamer-in.c (lto_init_eh): Don't call dwarf2out_frame_init.
10766         * toplev.c (lang_dependent_init): Likewise.
10767
10768 2011-07-07  Richard Henderson  <rth@redhat.com>
10769
10770         * dwarf2out.c (fde_table, fde_table_allocated, fde_table_in_use,
10771         FDE_TABLE_INCREMENT): Replace with...
10772         (fde_vec): ... this, a new vector.
10773         (current_fde): Remove.  Replace all users with cfun->fde.
10774         (output_call_frame_info): Use FOR_EACH_VEC_ELT over fde_vec.
10775         (size_of_aranges, dwarf2out_finish): Likewise.
10776         (dwarf2out_alloc_current_fde): Break out from ...
10777         (dwarf2out_begin_prologue): ... here.
10778         (dwarf2out_frame_init): Remove.
10779         * dwarf2cfi.c: Update all users of current_fde.
10780         (dwarf2out_frame_init): Rename from dwarf2cfi_frame_init.
10781         * dwarf2out.h: Update decls.
10782         (dw_fde_node): Add fde_index member.
10783         * function.h (struct function): Add fde member.
10784
10785 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
10786             Richard Henderson  <rth@redhat.com>
10787
10788         * dwarf2cfi.c (add_cfi): Remove.
10789         (dwarf2out_cfi_label): Remove force argument.  Only generate the
10790         label name.
10791         (add_fde_cfi): Simplify the different code paths.
10792         (add_cie_cfi): New.
10793         (old_cfa, old_cfa_remember): New.
10794         (def_cfa_1, reg_save): Remove label, add for_cie parameter.
10795         (last_reg_save_label): Remove.
10796         (dwarf2out_args_size, dwarf2out_stack_adjust, queue_reg_save,
10797         dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
10798         dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
10799         dwarf2out_frame_debug_cfa_expression,
10800         dwarf2out_frame_debug_cfa_restore,
10801         dwarf2out_frame_debug_cfa_window_save,
10802         dwarf2out_frame_debug_expr): Remove label parameter.
10803         (cfi_label_required_p, add_cfis_to_fde): New.
10804         (dwarf2out_frame_debug_after_prologue): New.
10805         (dwarf2cfi_frame_init): Initialize old_cfa.
10806         (dwarf2out_frame_debug_restore_state): Likewise.
10807         * dwarf2out.c (dwarf2out_emit_cfi): Only do output for cfi_asm.
10808         (dwarf2out_switch_text_section): Don't clear dw_fde_current_label here.
10809         * final.c (final_start_function): Call
10810         dwarf2out_frame_debug_after_prologue.
10811
10812 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
10813             Richard Henderson  <rth@redhat.com>
10814
10815         * dwarf2cfi.c (cfi_insn): New.
10816         (dwarf2out_cfi_label): Don't emit cfi label here.
10817         (add_fde_cfi): Create a NOTE_INSN_CFI.
10818         (dwarf2out_frame_debug): Setup cfi_insn.
10819         (dwarf2out_frame_debug_init): Loop over insns creating CFI notes.
10820         (dwarf2out_cfi_begin_epilogue): Make static.
10821         (dwarf2out_frame_debug_restore_state): Make static.
10822         * dwarf2out.c (output_cfi_directive): Make static.
10823         (dwarf2out_emit_cfi): New.
10824         * dwarf2out.h: Update.
10825         * final.c (final): Remove CFI notes.
10826         (final_scan_insn): Don't call dwarf2out_cfi_begin_epilogue,
10827         dwarf2out_frame_debug_restore_state, dwarf2out_frame_debug.
10828         Handle NOTE_INSN_CFI and NOTE_INSN_CFI_LABEL.
10829         * insn-notes.def (NOTE_INSN_CFI): New.
10830         (NOTE_INSN_CFI_LABEL): New.
10831         * rtl.h (union rtunion_def): Add rt_cfi member.
10832         (XCFI, XCCFI, NOTE_CFI, NOTE_LABEL_NUMBER): New.
10833
10834 2011-07-07  Richard Henderson  <rth@redhat.com>
10835
10836         * dwarf2cfi.c: New file.
10837         * Makefile.in (OBJS): Add it.
10838         (GTFILES): Add dwarf2cfi.c and dwarf2out.h.
10839         * gengtype.c (open_base_files): Include dwarf2out.h.
10840         * coretypes.h (enum var_init_status): Move from ...
10841         * rtl.h: ... here.
10842         * dwarf2out.c (saved_do_cfi_asm, dwarf2out_do_frame,
10843         dwarf2out_do_cfi_asm, cie_cfi_vec, dwarf2out_cfi_label_num,
10844         expand_builtin_dwarf_sp_column, init_return_column_size,
10845         expand_builtin_init_dwarf_reg_sizes, new_cfi, add_cfi,
10846         dwarf2out_cfi_label, emit_cfa_remember, any_cfis_emitted, add_fde_cfi,
10847         lookup_cfa_1, lookup_cfa, cfa, cfa_store, cfa_remember, args_size,
10848         old_args_size, cfa_equal_p, def_cfa_1, reg_save, initial_return_save,
10849         stack_adjust_offset, barrier_args_size, compute_barrier_args_size_1,
10850         compute_barrier_args_size, dwarf2out_args_size,
10851         dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust,
10852         queued_reg_saves, reg_saved_in_data, regs_saved_in_regs,
10853         compare_reg_or_pc, record_reg_saved_in_reg, last_reg_save_label,
10854         queue_reg_save, dwarf2out_flush_queued_reg_saves,
10855         clobbers_queued_reg_save, reg_saved_in, cfa_temp,
10856         dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
10857         dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
10858         dwarf2out_frame_debug_cfa_expression,
10859         dwarf2out_frame_debug_cfa_restore,
10860         dwarf2out_frame_debug_cfa_window_save, dwarf2out_frame_debug_expr,
10861         dwarf2out_frame_debug, dwarf2out_frame_debug_init,
10862         dwarf2out_cfi_begin_epilogue, dwarf2out_frame_debug_restore_state,
10863         get_cfa_from_loc_descr): Move to dwarf2cfi.c.
10864         (dw_cfi_ref, dw_fde_ref, dw_cfi_oprnd_ref, enum dw_cfi_oprnd_type,
10865         dw_cfi_oprnd, dw_cfi_node, cfi_vec, dw_cfa_location, dw_fde_node,
10866         dw_val_ref, dw_die_ref, const_dw_die_ref, dw_loc_descr_ref,
10867         dw_loc_list_ref, enum dw_val_class, dw_vec_const, dw_val_node,
10868         dw_loc_descr_node): Move to dwarf2out.h.
10869         (current_fde, output_cfi_directive, build_cfa_loc, get_address_mode,
10870         mem_loc_descriptor): Export.
10871         (build_cfa_aligned_loc): Export.  Take CFA as a parameter.
10872         (dwarf2out_frame_init): Extract CIE generation code to
10873         dwarf2cfi_frame_init.
10874
10875 2011-07-07  Eric Botcazou  <ebotcazou@adacore.com>
10876
10877         PR target/49660
10878         * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Add
10879         MASK_V8PLUS, remove commented out flag and reorder.
10880
10881 2011-07-07  Jakub Jelinek  <jakub@redhat.com>
10882
10883         PR c/49644
10884         * c-typeck.c (build_binary_op): For MULT_EXPR and TRUNC_DIV_EXPR with
10885         one non-complex and one complex argument, call c_save_expr on both
10886         operands.
10887
10888 2011-07-07  Martin Jambor  <mjambor@suse.cz>
10889
10890         PR middle-end/49495
10891         * cgraphunit.c (verify_edge_corresponds_to_fndecl): New function.
10892         (verify_cgraph_node): Some functinality moved to
10893         verify_edge_corresponds_to_fndecl, call it.
10894
10895 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
10896
10897         * config.gcc (*local*): Remove.
10898         * doc/install-old.texi: Don't mention local configurations.
10899
10900 2011-07-07  Jakub Jelinek  <jakub@redhat.com>
10901
10902         PR debug/49522
10903         * df-problems.c (dead_debug_reset): Remove dead_debug_uses
10904         referencing debug insns that have been reset.
10905         (dead_debug_insert_before): Don't assert reg is non-NULL,
10906         instead return immediately if it is NULL.
10907
10908 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
10909
10910         * config/i386/t-crtpic, config/i386/t-svr3dbx, config/pa/t-pa: Remove.
10911
10912 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
10913
10914         * hw-doloop.c: New file.
10915         * hw-doloop.h: New file.
10916         * Makefile.in (OBJS): Add hw-doloop.o.
10917         (hw-doloop.o): New rule.
10918         ($(obj_out_file)): Add hw-doloop.h dependency.
10919         * config/bfin/bfin.c: Include "hw-doloop.h".
10920         (loop_info, DEF_VEC_P for loop_info, loop_info_d): Remove.
10921         (bfin_dump_loops, bfin_bb_in_loop, bfin_scan_loop): Remove.
10922         (hwloop_optimize): Renamed from bfin_optimize_loop.  Argument
10923         type changed to hwloop_info.  Return bool, true if the loop was
10924         successfully optimized.  Remove code that was moved to
10925         hw-doloop.c, and adjust other parts.
10926         (hwloop_fail): New static function, containing parts that used
10927         to be in bfin_optimize_loop.
10928         (bfin_discover_loop, bfin_discover_loops, free_loops,
10929         bfin_reorder_loops): Remove.
10930         (hwloop_pattern_reg): New static function.
10931         (bfin_doloop_hooks): New variable.
10932         (bfin_reorg_loops): Remove most code, call reorg_loops.
10933         * config/bfin/bfin.md (doloop_end splitter): Also enable if
10934         loop counter is a memory_operand.
10935
10936 2011-07-07  H.J. Lu  <hongjiu.lu@intel.com>
10937
10938         * config.gcc: Support --with-multilib-list for x86 Linux targets.
10939
10940         * configure.ac: Mention x86-64 for --with-multilib-list.
10941         * configure: Regenerated.
10942
10943         * config/i386/gnu-user64.h (SPEC_64): Support x32.
10944         (SPEC_32): Likewise.
10945         (ASM_SPEC): Likewise.
10946         (LINK_SPEC): Likewise.
10947         (TARGET_THREAD_SSP_OFFSET): Likewise.
10948         (TARGET_THREAD_SPLIT_STACK_OFFSET): Likewise.
10949         (SPEC_X32): New.
10950
10951         * config/i386/i386.h (TARGET_X32): New.
10952         (TARGET_LP64): New.
10953         (LONG_TYPE_SIZE): Likewise.
10954         (POINTER_SIZE): Likewise.
10955         (POINTERS_EXTEND_UNSIGNED): Likewise.
10956         (OPT_ARCH64): Support x32.
10957         (OPT_ARCH32): Likewise.
10958
10959         * config/i386/i386.opt (mx32): New.
10960
10961         * config/i386/kfreebsd-gnu64.h (GNU_USER_LINK_EMULATIONX32): New.
10962         (GLIBC_DYNAMIC_LINKERX32): Likewise.
10963         * config/i386/linux64.h (GNU_USER_LINK_EMULATIONX32): Likewise.
10964         (GLIBC_DYNAMIC_LINKERX32): Likewise.
10965
10966         * config/linux.h (UCLIBC_DYNAMIC_LINKERX32): New.
10967         (BIONIC_DYNAMIC_LINKERX32): Likewise.
10968         (GNU_USER_DYNAMIC_LINKERX32): Likewise.
10969
10970         * config/i386/t-linux64: Support TM_MULTILIB_CONFIG.
10971
10972         * doc/install.texi: Document --with-multilib-list for Linux/x86-64.
10973
10974         * doc/invoke.texi: Document -mx32.
10975
10976 2011-07-07  Richard Sandiford  <richard.sandiford@linaro.org>
10977
10978         * doc/invoke.texi (mwords-little-endian): Deprecate.
10979         * config/arm/arm.opt (mwords-little-endian): Likewise.
10980         * config/arm/arm.c (arm_option_override): Warn about the deprecation
10981         of -mwords-little-endian.
10982
10983 2011-07-07  Richard Sandiford  <richard.sandiford@linaro.org>
10984
10985         * reload1.c (choose_reload_regs): Use mode sizes to check whether
10986         an old reload register completely defines the required value.
10987
10988 2011-07-07  Richard Guenther  <rguenther@suse.de>
10989
10990         * fold-const.c (fold_unary_loc): Do not strip sign-changes
10991         for NEGATE_EXPR.
10992
10993 2011-07-07  Richard Guenther  <rguenther@suse.de>
10994
10995         * tree-vrp.c (simplify_conversion_using_ranges): New function.
10996         (simplify_stmt_using_ranges): Call it.
10997
10998 2011-07-07  Kai Tietz  <ktietz@redhat.com>
10999
11000         * tree-ssa-forwprop.c (truth_valued_ssa_name): New function.
11001         (lookup_logical_inverted_value): Likewise.
11002         (simplify_bitwise_binary_1): Likewise.
11003         (simplify_bitwise_binary): Use simplify_bitwise_binary_1.
11004
11005 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
11006
11007         * gcc.c (%[Spec]): Don't document.
11008         (struct spec_list): Update comment.
11009         (do_spec_1): Don't handle %[Spec].
11010         * doc/invoke.texi (%[@var{name}]): Remove documentation of spec.
11011
11012 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
11013
11014         * common/common-target-def.h (TARGET_HAVE_NAMED_SECTIONS): Don't
11015         default based on TARGET_ASM_NAMED_SECTION.
11016         * common/common-target.def (have_named_sections): Default to true.
11017         * common/config/default-common.c: Don't include tm.h.
11018         * common/config/picochip/picochip-common.c
11019         (TARGET_HAVE_NAMED_SECTIONS): Don't define.
11020         * common/config/m32c/m32c-common.c: Remove.
11021         * config.gcc (m32c*-*-*): Set target_has_targetm_common=no.
11022         * config/alpha/osf5.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
11023         * config/i386/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
11024         * config/m68k/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
11025         * config/pa/som.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
11026         * config/pdp11/pdp11.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
11027         * config/vax/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
11028
11029 2011-07-07  Jakub Jelinek  <jakub@redhat.com>
11030
11031         PR middle-end/49640
11032         * gimplify.c (gimplify_compound_lval): For last 2 ARRAY_*REF operands
11033         and last COMPONENT_REF operand call gimplify_expr on it if non-NULL.
11034
11035 2011-07-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11036
11037         PR libmudflap/49550
11038         * gcc.c (MFWRAP_SPEC): Also wrap mmap64.
11039
11040 2011-07-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11041
11042         PR target/39150
11043         * configure.ac (gcc_cv_as_hidden): Also accept
11044         x86_64-*-solaris2.1[0-9]*.
11045         (gcc_cv_as_cfi_directive): Likewise.
11046         (gcc_cv_as_comdat_group_group): Likewise.
11047         (set_have_as_tls): Likewise.
11048         * configure: Regenerate.
11049         * config.gcc (i[34567]86-*-solaris2*): Also handle
11050         x86_64-*-solaris2.1[0-9]*.
11051         * config.host (i[34567]86-*-solaris2*): Likewise.
11052         * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
11053         * config/sol2-bi.h (ASM_CPU_DEFAULT_SPEC): Redefine.
11054         [USE_GLD] (ARCH_DEFAULT_EMULATION): Define.
11055         (TARGET_LD_EMULATION): Use it.
11056         * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC): Define.
11057         (SUBTARGET_CPU_EXTRA_SPECS): Add asm_cpu_default.
11058         * config/i386/sol2-bi.h (ASM_CPU32_DEFAULT_SPEC): Define.
11059         (ASM_CPU64_DEFAULT_SPEC): Define.
11060         (ASM_CPU_SPEC): Use %(asm_cpu_default).
11061         (ASM_SPEC): Redefine.
11062         (DEFAULT_ARCH32_P): Define using TARGET_64BIT_DEFAULT.
11063         * config/host-solaris.c [__x86_64__] (TRY_EMPTY_VM_SPACE): Reduce.
11064         * doc/install.texi (Specific, amd64-*-solaris2.1[0-9]*): Document.
11065         (Specific, i?86-*-solaris2.10): Mention x86_64-*-solaris2.1[0-9]*
11066         configuration.
11067         (Specific, x86_64-*-solaris2.1[0-9]*): Document.
11068
11069 2011-07-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11070
11071         * config/sol2.h (ASM_SPEC): Split into ...
11072         (ASM_SPEC_BASE, ASM_PIC_SPEC): ... this.
11073         * config/i386/sol2.h (ASM_SPEC): Define using ASM_SPEC_BASE.
11074         * config/i386/sol2-bi.h (ASM_CPU_SPEC): Redefine.
11075         (ASM_SPEC): Use ASM_SPEC_BASE.
11076         * config/sparc/sol2.h (ASM_SPEC): Redefine.
11077
11078 2011-07-07  Georg-Johann Lay  <avr@gjlay.de>
11079
11080         * config/avr/avr.md (*reload_insi): Change predicate #1 to
11081         const_int_operand.  Ditto for peep2 producing this insn.
11082         Add argument to output_reload_insisf call.
11083         (*movsi,*movsf): Add argument to output_movsisf call.
11084         (*reload_insf): New insn and new peep2 to produce it.
11085         * config/avr/avr-protos.h (output_movsisf): Change prototype.
11086         (output_reload_insisf): Change prototype.
11087         * config/avr/avr.c (avr_asm_len): New function.
11088         (output_reload_insisf): Rewrite.
11089         (output_movsisf): Change prototype.  output_reload_insisf for
11090         all CONST_INT and CONST_DOUBLE.  ALlow moving 0.0f to memory.
11091         (adjust_insn_length): Add argument to output_movsisf and
11092         output_reload_insisf call.
11093
11094 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
11095
11096         * emit-rtl.c (paradoxical_subreg_p): New function.
11097         * rtl.h (paradoxical_subreg_p): Declare.
11098         * combine.c (set_nonzero_bits_and_sign_copies, get_last_value,
11099         apply_distributive_law, simplify_comparison, simplify_set): Use it.
11100         * cse.c (record_jump_cond, cse_insn): Likewise.
11101         * expr.c (force_operand): Likewise.
11102         * rtlanal.c (num_sign_bit_copies1): Likewise.
11103         * reload1.c (eliminate_regs_1, strip_paradoxical_subreg): Likewise.
11104         * reload.c (push_secondary_reload, find_reloads_toplev): Likewise.
11105         (push_reload): Use precision to check for paradoxical subregs.
11106         * expmed.c (extract_bit_field_1): Likewise.
11107
11108         * machmode.h (HWI_COMPUTABLE_MODE_P): New macro.
11109         * combine.c (set_nonzero_bits_and_sign_copies): Use it.
11110         (find_split-point, combine_simplify_rtx, simplify_if_then_else,
11111         simplify_set, simplify_logical, expand_compound_operation,
11112         make_extraction, force_to_mode, if_then_else_cond, extended_count,
11113         try_widen_shift_mode, simplify_shift_const_1, simplify_comparison,
11114         record_value_for_reg): Likewise.
11115         * expmed.c (expand_widening_mult, expand_mult_highpart): Likewise.
11116         * simplify-rtx. c (simplify_unary_operation_1,
11117         simplify_binary_operation_1, simplify_const_relational_operation):
11118         Likewise.
11119
11120         * explow.c (trunc_int_for_mode): Use GET_MODE_PRECISION
11121         instead of GET_MODE_BITSIZE where appropriate.
11122         * rtlanal.c (subreg_lsb_1, subreg_get_info, nonzero_bits1,
11123         num_sign_bit_copies1, canonicalize_condition, low_bitmask_len,
11124         init_num_sign_bit_copies_in_rep): Likewise.
11125         * cse.c (fold_rtx, cse_insn): Likewise.
11126         * loop-doloop.c (doloop_modify, doloop_optimize): Likewise.
11127         * simplify-rtx.c (simplify_unary_operation_1,
11128         simplify_const_unary_operation, simplify_binary_operation_1,
11129         simplify_const_binary_operation, simplify_ternary_operation,
11130         simplify_const_relational_operation, simplify_subreg): Likewise.
11131         * combine.c (try_combine, find_split_point, combine_simplify_rtx,
11132         simplify_if_then_else, simplify_set, expand_compound_operation,
11133         expand_field_assignment, make_extraction, if_then_else_cond,
11134         make_compound_operation, force_to_mode, make_field_assignment,
11135         reg_nonzero_bits_for_combine, reg_num_sign_bit_copies_for_combine,
11136         extended_count, try_widen_shift_mode, simplify_shift_const_1,
11137         simplify_comparison, record_promoted_value, simplify_compare_const,
11138         record_dead_and_set_regs_1): Likewise.
11139
11140         Revert:
11141         * simplify-rtx.c (simplify_const_binary_operation): Use the
11142         shift_truncation_mask hook instead of performing modulo by width.
11143         Compare against mode precision, not bitsize.
11144         * combine.c (combine_simplify_rtx, simplify_shift_const_1):
11145         Use shift_truncation_mask instead of constructing the value manually.
11146
11147 2011-07-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
11148
11149         * config/rs6000/rs6000-protos.h (rs6000_call_indirect_aix): New
11150         declaration.
11151         (rs6000_save_toc_in_prologue_p): Ditto.
11152
11153         * config/rs6000/rs6000.opt (-mr11): New switch to disable loading
11154         up the static chain (r11) during indirect function calls.
11155         (-msave-toc-indirect): New undocumented debug switch.
11156
11157         * config/rs6000/rs6000.c (struct machine_function): Add
11158         save_toc_in_prologue field to note whether the prologue needs to
11159         save the TOC value in the reserved stack location.
11160         (rs6000_emit_prologue): Use TOC_REGNUM instead of 2.  If we need
11161         to save the TOC in the prologue, do so.
11162         (rs6000_trampoline_init): Don't allow creating AIX style
11163         trampolines if -mno-r11 is in effect.
11164         (rs6000_call_indirect_aix): New function to create AIX style
11165         indirect calls, adding support for -mno-r11 to suppress loading
11166         the static chain, and saving the TOC in the prologue instead of
11167         the call body.
11168         (rs6000_save_toc_in_prologue_p): Return true if we are saving the
11169         TOC in the prologue.
11170
11171         * config/rs6000/rs6000.md (STACK_POINTER_REGNUM): Add more fixed
11172         register numbers.
11173         (TOC_REGNUM): Ditto.
11174         (STATIC_CHAIN_REGNUM): Ditto.
11175         (ARG_POINTER_REGNUM): Ditto.
11176         (SFP_REGNO): Delete, unused.
11177         (TOC_SAVE_OFFSET_32BIT): Add constants for AIX TOC save and
11178         function descriptor offsets.
11179         (TOC_SAVE_OFFSET_64BIT): Ditto.
11180         (AIX_FUNC_DESC_TOC_32BIT): Ditto.
11181         (AIX_FUNC_DESC_TOC_64BIT): Ditto.
11182         (AIX_FUNC_DESC_SC_32BIT): Ditto.
11183         (AIX_FUNC_DESC_SC_64BIT): Ditto.
11184         (ptrload): New mode attribute for the appropriate load of a pointer.
11185         (call_indirect_aix32): Delete, rewrite AIX indirect function calls.
11186         (call_indirect_aix64): Ditto.
11187         (call_value_indirect_aix32): Ditto.
11188         (call_value_indirect_aix64): Ditto.
11189         (call_indirect_nonlocal_aix32_internal): Ditto.
11190         (call_indirect_nonlocal_aix32): Ditto.
11191         (call_indirect_nonlocal_aix64_internal): Ditto.
11192         (call_indirect_nonlocal_aix64): Ditto.
11193         (call): Rewrite AIX indirect function calls.  Add support for
11194         eliminating the static chain, and for moving the save of the TOC
11195         to the function prologue.
11196         (call_value): Ditto.
11197         (call_indirect_aix<ptrsize>): Ditto.
11198         (call_indirect_aix<ptrsize>_internal): Ditto.
11199         (call_indirect_aix<ptrsize>_internal2): Ditto.
11200         (call_indirect_aix<ptrsize>_nor11): Ditto.
11201         (call_value_indirect_aix<ptrsize>): Ditto.
11202         (call_value_indirect_aix<ptrsize>_internal): Ditto.
11203         (call_value_indirect_aix<ptrsize>_internal2): Ditto.
11204         (call_value_indirect_aix<ptrsize>_nor11): Ditto.
11205         (call_nonlocal_aix32): Relocate in the rs6000.md file.
11206         (call_nonlocal_aix64): Ditto.
11207
11208         * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mr11 and
11209         -mno-r11 documentation.
11210
11211 2011-07-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
11212
11213         PR other/49658
11214         * doc/extend.texi (Compound Literals): Fix typo.
11215
11216 2011-07-06  James Greenhalgh  <james.greenhalgh@arm.com>
11217
11218         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Add __ARM_FEATURE_DSP.
11219
11220 2011-07-06  Basile Starynkevitch  <basile@starynkevitch.net>
11221
11222         * configure.ac (plugin-version.h): Generate
11223         GCCPLUGIN_VERSION_MAJOR, GCCPLUGIN_VERSION_MINOR,
11224         GCCPLUGIN_VERSION_PATCHLEVEL, GCCPLUGIN_VERSION constant integer
11225         macros.
11226
11227         * configure: Regenerate.
11228
11229         * doc/plugins.texi (Building GCC plugins): Mention
11230         GCCPLUGIN_VERSION ... constant macros in plugin-version.h.
11231
11232 2011-07-06  Bernd Schmidt  <bernds@codesourcery.com>
11233
11234         * machmode.h (TRULY_NOOP_TRUNCATION_MODES_P): New macro.
11235         * combine.c (make_extraction, gen_lowpart_or_truncate,
11236         apply_distributive_law, simplify_comparison,
11237         reg_truncated_to_mode, record_truncated_value): Use it.
11238         * cse.c (notreg_cost): Likewise.
11239         * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
11240         * expr.c (convert_move, convert_modes): Likewise.
11241         * optabs.c (expand_binop, expand_unop): Likewise.
11242         * postreload.c (move2add_last_label): Likewise.
11243         * regmove.c (optimize_reg_copy_3): Likewise.
11244         * rtlhooks.c (gen_lowpart_general): Likewise.
11245         * simplify-rtx.c (simplify_unary_operation_1): Likewise.
11246
11247 2011-07-06  Joseph Myers  <joseph@codesourcery.com>
11248
11249         * config/rs6000/vxworks.h (WORDS_BIG_ENDIAN): Define.
11250
11251 2011-07-06  Bernd Schmidt  <bernds@codesourcery.com>
11252
11253         * cse.c (find_comparison_args): Use val_mode_signbit_set_p.
11254         * simplify-rtx.c (mode_signbit_p): Use GET_MODE_PRECISION.
11255         (val_mode_signbit_p, val_mode_signbit_set_p): New functions.
11256         (simplify_const_unary_operation, simplify_binary_operation_1,
11257         simplify_const_binary_operation, simplify_const_relational_operation):
11258         Use them.  Use GET_MODE_MASK for masking and sign-extensions.
11259         * combine.c (set_nonzero_bits_and_sign_copies, simplify_set,
11260         combine_simplify_rtx, force_to_mode, reg_nonzero_bits_for_combine,
11261         simplify_shift_const_1, simplify_comparison): Likewise.
11262         * expr.c (convert_modes): Likewise.
11263         * rtlanal.c (nonzero_bits1, canonicalize_condition): Likewise.
11264         * expmed.c (emit_cstore, emit_store_flag_1, emit_store_flag): Likewise.
11265         * rtl.h (val_mode_signbit_p, val_mode_signbit_set_p): Declare.
11266
11267         * simplify-rtx.c (simplify_ternary_operation): Remove dead code.
11268
11269 2011-07-06  Richard Guenther  <rguenther@suse.de>
11270
11271         PR tree-optimization/49645
11272         * c-decl.c (finish_decl): Also set DECL_HARD_REGISTER for global
11273         register variables.
11274         * tree-ssa-sccvn.c (vn_reference_op_eq): Disregard differences
11275         in type qualification here ...
11276         (copy_reference_ops_from_ref): ... not here.
11277         (vn_reference_lookup_3): ... or here.
11278         (copy_reference_ops_from_ref): Record decl bases as MEM[&decl].
11279         (vn_reference_lookup): Do the lookup with a valueized ao-ref.
11280
11281 2011-07-06  Ian Lance Taylor  <iant@google.com>
11282
11283         * doc/install.texi (Configuration): It's
11284         --enable-gnu-indirect-function, not --enable-indirect-function.
11285
11286 2011-07-06  Bernd Schmidt  <bernds@codesourcery.com>
11287
11288         * simplify-rtx.c (simplify_const_binary_operation): Use the
11289         shift_truncation_mask hook instead of performing modulo by width.
11290         Compare against mode precision, not bitsize.
11291         * combine.c (combine_simplify_rtx, simplify_shift_const_1):
11292         Use shift_truncation_mask instead of constructing the value manually.
11293
11294 2011-07-06  H.J. Lu  <hongjiu.lu@intel.com>
11295
11296         PR middle-end/47383
11297         * tree-ssa-address.c (addr_for_mem_ref): Use pointer_mode for
11298         address computation and convert to address_mode if needed.
11299
11300 2011-07-06  Richard Guenther  <rguenther@suse.de>
11301
11302         * tree.c (build_common_tree_nodes_2): Merge with
11303         build_common_tree_nodes.
11304         * tree.h (build_common_tree_nodes): Adjust prototype.
11305         (build_common_tree_nodes_2): Remove.
11306         * doc/tm.texi.in (lang_hooks.builtin_function): Adjust.
11307         * doc/tm.texi (lang_hooks.builtin_function): Regenerate.
11308
11309 2011-07-05  Jakub Jelinek  <jakub@redhat.com>
11310
11311         PR tree-optimization/49618
11312         * tree-eh.c (tree_could_trap_p) <case CALL_EXPR>: For DECL_WEAK
11313         t recurse on the decl.
11314         <case FUNCTION_DECL, case VAR_DECL>: For DECL_WEAK decls
11315         return true if expr isn't known to be defined in current
11316         TU or some other LTO partition.
11317
11318 2011-07-05  Michael Meissner  <meissner@linux.vnet.ibm.com>
11319
11320         * params.def (PARAM_CASE_VALUES_THRESHOLD): New parameter to
11321         override CASE_VALUES_THRESHOLD.
11322
11323         * stmt.c (toplevel): Include params.h.
11324         (case_values_threshold): Use the --param case-values-threshold
11325         value if non-zero, otherwise use machine dependent value.
11326         (expand_case): Use case_values_threshold.
11327
11328         * Makefile.in (stmt.o): Add $(PARAMS_H) dependency.
11329
11330         * doc/invoke.texi (--param case-values-threshold): Document.
11331
11332 2011-07-05  Richard Henderson  <rth@redhat.com>
11333
11334         * dwarf2out.c (dwarf2out_cfi_label): Make static.
11335         (dwarf2out_flush_queued_reg_saves): Make static.
11336         (dwarf2out_reg_save): Remove.
11337         (dwarf2out_return_save): Remove.
11338         (dwarf2out_return_reg): Remove.
11339         (dwarf2out_reg_save_reg): Remove.
11340         (dwarf2out_def_cfa): Merge into ...
11341         (dwarf2out_frame_init): ... here.
11342         * dwarf2out.h, tree.h: Remove declarations as necessary.
11343
11344 2011-07-05  Richard Henderson  <rth@redhat.com>
11345
11346         * config/ia64/ia64.c (ia64_dwarf_handle_frame_unspec): Remove.
11347         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
11348         (ia64_expand_epilogue): Emit an empty FRAME_RELATED_EXPR for
11349         the alloc insn.
11350
11351         * config/ia64/ia64.c (ia64_emit_deleted_label_after_insn): Remove.
11352         (IA64_CHANGE_CFA_IN_EPILOGUE): Remove.
11353         (process_epilogue): Don't call dwarf2out_def_cfa.
11354
11355         * config/ia64/ia64.c (ia64_expand_prologue): Use pc_rtx to
11356         indicate the return address save.
11357         (process_cfa_register): Likewise.
11358
11359         * config/ia64/ia64.c (ia64_dwarf2out_def_steady_cfa): Remove.
11360         (process_cfa_adjust_cfa, ia64_asm_unwind_emit): Don't call it.
11361
11362         * config/ia64/ia64.c (ia64_expand_prologue): Emit REG_CFA_REGISTER
11363         for ar.pfs save at alloc insn.
11364
11365 2011-07-05  Richard Henderson  <rth@redhat.com>
11366
11367         * config/arm/arm.c (arm_dwarf_handle_frame_unspec): Remove.
11368         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
11369         (arm_expand_prologue): Use REG_CFA_REGISTER to mark the
11370         stack pointer save.
11371         (arm_unwind_emit_set): Don't recognize UNSPEC_STACK_ALIGN.
11372         (arm_unwind_emit): Walk REG_NOTES for unwinding notes.  Emit
11373         proper unwind info for a REG_CFA_REGISTER save of stack pointer.
11374         * config/arm/arm.md (UNSPEC_STACK_ALIGN): Remove.
11375
11376 2011-07-05  Richard Henderson  <rth@redhat.com>
11377
11378         * config/vax/vax.md (define_c_enum unspecv): New.  Define the
11379         VUNSPEC_* constants here instead of via define_constants.
11380         (VUNSPEC_PEM): New constant.
11381         (procedure_entry_mask): New insn.
11382         (prologue): New expander.
11383         * config/vax/vax.c (vax_add_reg_cfa_offset): New.
11384         (vax_expand_prologue): Rename from vax_output_function_prologue;
11385         emit rtl instead of text.
11386         (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
11387         (print_operand): Add 'x' prefix.
11388
11389 2011-07-05  H.J. Lu  <hongjiu.lu@intel.com>
11390
11391         PR middle-end/47715
11392         * calls.c (precompute_register_parameters): Promote the function
11393         argument before checking non-legitimate constant.
11394
11395 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
11396
11397         PR tree-optimization/47654
11398         * graphite-blocking.c (pbb_strip_mine_time_depth): Do not return bool.
11399         (lst_do_strip_mine_loop): Return an int.
11400         (lst_do_strip_mine): Same.
11401         (scop_do_strip_mine): Same.
11402         (scop_do_block): Loop blocking should strip-mine at least two loops.
11403         * graphite-interchange.c (lst_interchange_select_outer): Return an int.
11404         (scop_do_interchange): Same.
11405         * graphite-poly.h (scop_do_interchange): Update declaration.
11406         (scop_do_strip_mine): Same.
11407
11408 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
11409
11410         * graphite-clast-to-gimple.c (precision_for_value): Removed.
11411         (precision_for_interval): Removed.
11412         (gcc_type_for_interval): Use mpz_sizeinbase.
11413
11414 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
11415
11416         * graphite-ppl.h (value_max): Correct computation of max.
11417
11418 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
11419
11420         * graphite-clast-to-gimple.c (clast_name_to_index): Add missing space.
11421
11422 2011-07-05  Richard Guenther  <rguenther@suse.de>
11423
11424         * c-decl.c (c_init_decl_processing): Defer building common
11425         tree nodes to c_common_nodes_and_builtins.
11426
11427 2011-07-05  Razya Ladelsky  <razya@il.ibm.com>
11428
11429         PR tree-optimization/49580
11430         * tree-cfg.c (gimple_duplicate_sese_tail): Remove handling of
11431         the loop's number of iterations.
11432         * tree-parloops.c (transform_to_exit_first_loop): Add the
11433         handling of the loop's number of iterations before the call
11434         to gimple_duplicate_sese_tail.
11435         Insert the stmt caclculating the new rhs of the loop's
11436         condition stmt to the preheader instead of iters_bb.
11437
11438 2011-07-05  H.J. Lu  <hongjiu.lu@intel.com>
11439
11440         PR rtl-optimization/47449
11441         * fwprop.c (forward_propagate_subreg): Don't propagate hard
11442         register nor zero/sign extended hard register.
11443
11444 2011-07-05  Richard Guenther  <rguenther@suse.de>
11445
11446         PR tree-optimization/49518
11447         PR tree-optimization/49628
11448         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Skip
11449         irrelevant and invariant data-references.
11450         (vect_analyze_data_ref_access): For invariant loads clear the
11451         group association.
11452
11453 2011-07-04  Jakub Jelinek  <jakub@redhat.com>
11454
11455         PR rtl-optimization/49619
11456         * combine.c (combine_simplify_rtx): In PLUS -> IOR simplification
11457         pass VOIDmode as op0_mode to recursive call, and return temp even
11458         when different from tor, just if it is not IOR of the original
11459         PLUS arguments.
11460
11461         PR rtl-optimization/49472
11462         * simplify-rtx.c (simplify_unary_operation_1) <case NEG>: When
11463         negating MULT, negate the second operand instead of first.
11464         (simplify_binary_operation_1) <case MULT>: If one operand is
11465         a NEG and the other is MULT, don't attempt to optimize by negation
11466         of the MULT operand if it only moves the NEG operation around.
11467
11468         PR debug/49602
11469         * tree-into-ssa.c (rewrite_debug_stmt_uses): Disregard
11470         get_current_def return value if it can't be trusted to be
11471         the current value of the variable in the current bb.
11472
11473 2011-07-04  Uros Bizjak  <ubizjak@gmail.com>
11474
11475         PR target/49600
11476         * config/i386/i386.md (SSE2 int->float split): Push operand 1 in
11477         general register to memory for !TARGET_INTER_UNIT_MOVES.
11478
11479 2011-07-04  Georg-Johann Lay  <avr@gjlay.de>
11480
11481         PR target/44643
11482         * config/avr/avr.c (avr_insert_attributes): Use TYPE_READONLY
11483         instead of TREE_READONLY.
11484
11485 2011-07-04  Georg-Johann Lay  <avr@gjlay.de>
11486
11487         * doc/extend.texi (AVR Built-in Functions): Update documentation
11488         of __builtin_avr_fmul*.
11489         * config/avr/avr.c (avr_init_builtins): Don't depend on AVR_HAVE_MUL.
11490         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Ditto.
11491         * config/avr/avr.md (fmul): Rename to fmul_insn.
11492         (fmuls): Rename to fmuls_insn.
11493         (fmulsu): Rename to fmulsu_insn.
11494         (fmul,fmuls,fmulsu): New expander.
11495         (*fmul.call,*fmuls.call,*fmulsu.call): New Insn.
11496         * config/avr/t-avr (LIB1ASMFUNCS): Add _fmul, _fmuls, _fmulsu.
11497         * config/avr/libgcc.S (__fmul): New function.
11498         (__fmuls): New function.
11499         (__fmulsu,__fmulsu_exit): New function.
11500
11501 2011-07-04  Richard Guenther  <rguenther@suse.de>
11502
11503         PR tree-optimization/49615
11504         * tree-cfgcleanup.c (split_bbs_on_noreturn_calls): Fix
11505         basic-block index check.
11506
11507 2011-07-04  Georg-Johann Lay  <avr@gjlay.de>
11508
11509         * longlong.h (count_leading_zeros, count_trailing_zeros,
11510         COUNT_LEADING_ZEROS_0): Define for target avr if W_TYPE_SIZE is 16
11511         resp. 64.
11512
11513 2011-07-03  Ira Rosen  <ira.rosen@linaro.org>
11514
11515         PR tree-optimization/49610
11516         * tree-vect-loop.c (vect_is_slp_reduction): Check that DEF_STMT has
11517         a basic block.
11518
11519 2011-07-02  Eric Botcazou  <ebotcazou@adacore.com>
11520             Olivier Hainque  <hainque@adacore.com>
11521             Nicolas Setton  <setton@adacore.com>
11522
11523         * tree.h (TYPE_ARTIFICIAL): New flag.
11524         * dwarf2out.c (modified_type_die): Add a DW_AT_artificial attribute to
11525         the DIE of the type if it is artificial.
11526         (gen_array_type_die): Likewise.
11527         (gen_enumeration_type_die): Likewise.
11528         (gen_struct_or_union_type_die): Likewise.
11529         * lto-streamer-in.c (unpack_ts_base_value_fields): Use TYPE_ARTIFICIAL.
11530         * lto-streamer-out.c (pack_ts_base_value_fields): Likewise.
11531
11532 2011-07-01  Jakub Jelinek  <jakub@redhat.com>
11533
11534         * tree-object-size.c (pass_through_call): Handle
11535         BUILT_IN_ASSUME_ALIGNED.
11536
11537 2011-07-01  Martin Jambor  <mjambor@suse.cz>
11538
11539         * tree-sra.c (tree_non_mode_aligned_mem_p): Also ignore MEM_REFs.
11540
11541 2011-07-01  H.J. Lu  <hongjiu.lu@intel.com>
11542
11543         PR middle-end/48016
11544         * explow.c (update_nonlocal_goto_save_area): Use proper mode
11545         for stack save area.
11546         * function.c (expand_function_start): Likewise.
11547
11548 2011-07-01  Richard Guenther  <rguenther@suse.de>
11549
11550         PR middle-end/49596
11551         * cgraph.h (varpool_all_refs_explicit_p): Not analyzed nodes
11552         may have unknown refs.
11553
11554 2011-07-01  Kai Tietz  <ktietz@redhat.com>
11555
11556         * tree-ssa-forwprop.c (simplify_bitwise_binary): Fix typo.
11557
11558 2011-07-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11559
11560         * config.gcc: Obsolete alpha*-dec-osf5.1, mips-sgi-irix6.5.
11561         * doc/install.texi (Specific, alpha*-dec-osf5.1): Document it.
11562         (Specific, mips-sgi-irix6): Likewise.
11563
11564 2011-07-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11565
11566         PR libmudflap/49549
11567         * doc/sourcebuild.texi (Effective-Target Keywords): Document gld.
11568
11569 2011-07-01  Jakub Jelinek  <jakub@redhat.com>
11570
11571         * tree-pretty-print.c (dump_generic_code) <case CONSTRUCTOR>: Print
11572         [idx]= and [idx1 ... idx2]= before initializers if needed for
11573         array initializers.
11574
11575 2011-07-01  Chen Liqin  <liqin.gcc@gmail.com>
11576
11577         * config.gcc (score-*-elf): Remove score7.o.
11578         * config/score/t-score-elf: Likewise.
11579         * config/score/score.c: Merge score7 to score.c and
11580         remove forwarding functions.
11581         * config/score/score7.c: Deleted.
11582         * config/score/score7.h: Deleted.
11583
11584 2011-07-01  Richard Guenther  <rguenther@suse.de>
11585
11586         PR tree-optimization/49603
11587         * tree-vect-stmts.c (vectorizable_load): Remove unnecessary assert.
11588
11589 2011-06-30  Martin Jambor  <mjambor@suse.cz>
11590
11591         * tree-sra.c (struct access): Rename total_scalarization to
11592         grp_total_scalarization
11593         (completely_scalarize_var): New function.
11594         (sort_and_splice_var_accesses): Set total_scalarization in the
11595         representative access.
11596         (analyze_access_subtree): Propagate total scalarization accross the
11597         tree, no holes in totally scalarized trees, simplify coverage
11598         computation.
11599         (analyze_all_variable_accesses): Call completely_scalarize_var instead
11600         of completely_scalarize_record.
11601
11602 2011-06-30  Richard Henderson  <rth@redhat.com>
11603
11604         * config/i386/i386.h (X86_TUNE_DEEP_BRANCH_PREDICTION): Remove.
11605         (TARGET_DEEP_BRANCH_PREDICTION): Remove.
11606         * config/i386/i386.c: Don't include dwarf2out.h.
11607         (initial_ix86_tune_features): Remove X86_TUNE_DEEP_BRANCH_PREDICTION.
11608         (output_set_got): Don't test TARGET_DEEP_BRANCH_PREDICTION, delete
11609         all code dead thereafter.  Don't do dwarf2out_flush_queued_reg_saves.
11610         (ix86_expand_prologue): Set REG_CFA_FLUSH_QUEUE on set_got insn.
11611         (machopic_output_stub): Don't test TARGET_DEEP_BRANCH_PREDICTION.
11612
11613 2011-06-30  Richard Henderson  <rth@redhat.com>
11614
11615         * reg-notes.def (REG_CFA_FLUSH_QUEUE): New.
11616         * dwarf2out.c (dwarf2out_frame_debug): Handle it.
11617         * final.c (final_scan_insn): Look for it, and invoke
11618         dwarf2out_frame_debug before the insn if found.
11619
11620 2011-06-30  Richard Henderson  <rth@redhat.com>
11621
11622         * dwarf2out.c (dwarf2out_frame_debug_cfa_offset): Allow PC_RTX
11623         as a source, and interpret that as DWARF_FRAME_RETURN_COLUMN.
11624
11625 2011-06-30  Richard Henderson  <rth@redhat.com>
11626
11627         * dwarf2out.c (struct reg_saved_in_data): Provide a typedef.
11628         Define a vector of this type.
11629         (regs_saved_in_regs): Use a VEC.
11630         (num_regs_saved_in_regs): Remove.
11631         (compare_reg_or_pc): New.
11632         (record_reg_saved_in_reg): Split out from...
11633         (dwarf2out_flush_queued_reg_saves): ... here.
11634         (clobbers_queued_reg_save): Update for VEC.
11635         (reg_saved_in): Likewise.
11636         (dwarf2out_frame_debug_init): Likewise.
11637         (dwarf2out_reg_save_reg): Use record_reg_saved_in_reg.
11638         (dwarf2out_frame_debug_cfa_register): Likewise.
11639
11640 2011-06-30  Eric Botcazou  <ebotcazou@adacore.com>
11641
11642         PR tree-optimization/49572
11643         * tree-ssa-dom.c (initialize_hash_element) <GIMPLE_SINGLE_RHS>: Use the
11644         type of the RHS instead of that of the LHS for the expression type.
11645
11646 2011-06-30  Eric Botcazou  <ebotcazou@adacore.com>
11647
11648         * df-scan.c (df_get_entry_block_def_set): Use INCOMING_REGNO macro
11649         unconditionally.
11650
11651 2011-06-30  Richard Guenther  <rguenther@suse.de>
11652
11653         * opts.c (finish_options): Do not disable IPA-PTA during ltrans.
11654         * tree-ssa-structalias.c (create_variable_info_for): Do not
11655         add initial constraints for non-var-decls.  Properly handle
11656         globals in other ltrans partitions.
11657         (intra_create_variable_infos): Manually create constraints for
11658         the fake no-alias parameter.
11659         (ipa_pta_execute): Dump the cgraph, handle ltrans partitions properly
11660         and assert there are no clones.
11661
11662 2011-06-30  Richard Guenther  <rguenther@suse.de>
11663
11664         PR tree-optimization/46787
11665         * tree-data-ref.c (dr_address_invariant_p): Remove.
11666         (find_data_references_in_stmt): Invariant accesses are ok now.
11667         * tree-vect-stmts.c (vectorizable_load): Handle invariant loads.
11668         * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
11669         invariant loads.
11670
11671 2011-06-30  Martin Jambor  <mjambor@suse.cz>
11672
11673         PR tree-optimization/49094
11674         * tree-sra.c (tree_non_mode_aligned_mem_p): New function.
11675         (build_accesses_from_assign): Use it.
11676
11677 2011-06-30  Jakub Jelinek  <jakub@redhat.com>
11678
11679         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
11680         handling of BUILT_IN_ASSUME_ALIGNED.
11681
11682         PR debug/49364
11683         * dwarf2out.c (output_abbrev_section): Don't return early
11684         if abbrev_die_table_in_use is 1.
11685         (dwarf2out_finish): Instead don't call output_abbrev_section
11686         nor emit abbrev_section_label in that case.
11687
11688 2011-06-30  Nick Clifton  <nickc@redhat.com>
11689
11690         * config/v850/v850.h (CPP_SPEC): Define __v850e__ when compiling
11691         for the V850E.
11692
11693 2011-06-30  Jakub Jelinek  <jakub@redhat.com>
11694
11695         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
11696         handling of BUILT_IN_MEMPCPY_CHK and BUILT_IN_STPCPY_CHK.
11697
11698 2011-06-30  Ira Rosen  <ira.rosen@linaro.org>
11699
11700         * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
11701         both pattern and original statements if necessary.
11702         (vect_transform_loop): Likewise.
11703         * tree-vect-patterns.c (vect_pattern_recog): Update documentation.
11704         * tree-vect-stmts.c (vect_mark_relevant): Add new argument.
11705         Mark the pattern statement only if the original statement doesn't
11706         have its own uses.
11707         (process_use): Call vect_mark_relevant with additional parameter.
11708         (vect_mark_stmts_to_be_vectorized): Likewise.
11709         (vect_get_vec_def_for_operand): Use vectorized pattern statement.
11710         (vect_analyze_stmt): Handle both pattern and original statements
11711         if necessary.
11712         (vect_transform_stmt): Don't store vectorized pattern statement
11713         in the original statement.
11714         (vect_is_simple_use_1): Use related pattern statement only if the
11715         original statement is irrelevant.
11716         * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
11717
11718 2011-06-29  Changpeng Fang  <changpeng.fang@amd.com>
11719
11720         * config/i386/i386.opt (mprefer-avx128): Redefine the flag as a Mask
11721         option.
11722         * config/i386/i386.h (ix86_tune_indices): Add X86_TUNE_AVX128_OPTIMAL
11723         entry.
11724         (TARGET_AVX128_OPTIMAL): New definition.
11725         * config/i386/i386.c (initial_ix86_tune_features): Initialize
11726         X86_TUNE_AVX128_OPTIMAL entry.
11727         (ix86_option_override_internal): Enable the generation
11728         of the 128-bit instructions when TARGET_AVX128_OPTIMAL is set.
11729         (ix86_preferred_simd_mode): Use TARGET_PREFER_AVX128.
11730         (ix86_autovectorize_vector_sizes): Use TARGET_PREFER_AVX128.
11731
11732 2011-06-29  Eric Botcazou  <ebotcazou@adacore.com>
11733
11734         PR tree-optimization/49539
11735         * tree-ssa-forwprop.c (can_propagate_from): Check for abnormal SSA
11736         names by means of stmt_references_abnormal_ssa_name.
11737         (associate_plusminus): Call can_propagate_from before propagating
11738         from definition statements.
11739         (ssa_forward_propagate_and_combine): Remove superfluous newline.
11740
11741 2011-06-29  Richard Guenther  <rguenther@suse.de>
11742
11743         * doc/invoke.texi: Document -scev dump modifier.
11744         * tree-pass.h (TDF_SCEV): New dump flag.
11745         * tree-dump.c (dump_option_value_in): Add scev.
11746         * tree-chrec.c: Replace all TDF_DETAILS checks with TDF_SCEV.
11747         * tree-scalar-evolution.c: Likewise.
11748
11749 2011-06-29  Nathan Sidwell  <nathan@codesourcery.com>
11750
11751         * config/arm/unwind-arm.c (enum __cxa_type_match_result): New.
11752         (cxa_type_match): Correct declaration.
11753         (__gnu_unwind_pr_common): Reconstruct additional indirection
11754         when __cxa_type_match returns succeeded_with_ptr_to_base.
11755
11756 2011-06-29  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11757
11758         PR rtl-optimization/49114
11759         * reload.c (struct replacement): Remove SUBREG_LOC member.
11760         (push_reload): Do not set it.
11761         (push_replacement): Likewise.
11762         (subst_reload): Remove dead code.
11763         (copy_replacements): Remove assertion.
11764         (copy_replacements_1): Do not handle SUBREG_LOC.
11765         (move_replacements): Likewise.
11766         (find_replacement): Remove dead code.  Use reload_adjust_reg_for_mode.
11767         Detect subregs via recursive descent instead of via SUBREG_LOC.
11768
11769 2011-06-29  Georg-Johann Lay  <avr@gjlay.de>
11770
11771         * config/avr/avr.c (avr_encode_section_info): Dispatch to
11772         default_encode_section_info.
11773
11774 2011-06-29  Richard Sandiford  <richard.sandiford@linaro.org>
11775
11776         PR tree-optimization/49545
11777         * builtins.c (get_object_alignment_1): Update function comment.
11778         Do not use DECL_ALIGN for functions, but test
11779         TARGET_PTRMEMFUNC_VBIT_LOCATION instead.
11780         * fold-const.c (get_pointer_modulus_and_residue): Don't check
11781         for functions here.
11782         * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
11783
11784 2011-06-29  Jakub Jelinek  <jakub@redhat.com>
11785
11786         PR debug/49567
11787         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTEND>: Give up for
11788         non-MODE_INT modes instead of asserting the mode has MODE_INT class.
11789
11790 2011-06-29  Georg-Johann Lay  <avr@gjlay.de>
11791
11792         PR target/34734
11793         * config/avr/avr.c (avr_handle_progmem_attribute): Move warning
11794         about uninitialized data attributed 'progmem' from here...
11795         (avr_encode_section_info): ...to this new function.
11796         (TARGET_ENCODE_SECTION_INFO): New define.
11797         (avr_section_type_flags): For data in ".progmem.data", remove
11798         section flag SECTION_WRITE.
11799
11800 2011-06-29  Georg-Johann Lay  <avr@gjlay.de>
11801
11802         * config/avr/t-avr (LIB1ASMFUNCS): Add _mulhisi3, _umulhisi3,
11803         _xmulhisi3_exit.
11804         * config/avr/libgcc.S (_xmulhisi3_exit): New Function.
11805         (__mulhisi3): Optimize if have MUL*.  Use XJMP instead of rjmp.
11806         (__umulhisi3): Ditto.
11807         * config/avr/avr.md (mulhisi3): New insn expender.
11808         (umulhisi3): New insn expender.
11809         (*mulhisi3_call): New insn.
11810         (*umulhisi3_call): New insn.
11811
11812 2011-06-28  Joseph Myers  <joseph@codesourcery.com>
11813
11814         * Makefile.in (LIBGCC2_CFLAGS): Remove -D__GCC_FLOAT_NOT_NEEDED.
11815
11816 2011-06-28  Richard Henderson  <rth@redhat.com>
11817
11818         * config/arm/arm.c (thumb_pop): Rename from thumb_pushpop.  Delete
11819         all code and arguments that handled pushes.  Update all callers.
11820
11821 2011-06-28  Richard Henderson  <rth@redhat.com>
11822
11823         * config/arm/arm.c (arm_output_function_prologue): Don't call
11824         thumb1_output_function_prologue.
11825         (arm_expand_prologue): Avoid dead store.
11826         (number_of_first_bit_set): Use ctz_hwi.
11827         (thumb1_emit_multi_reg_push): New.
11828         (thumb1_expand_prologue): Merge thumb1_output_function_prologue
11829         to emit the entire prologue as rtl.
11830         (thumb1_output_interwork): Split out from
11831         thumb1_output_function_prologue.
11832         (thumb1_output_function_prologue): Remove.
11833         (arm_attr_length_push_multi): Handle thumb1.
11834         * config/arm/arm.md (VUNSPEC_THUMB1_INTERWORK): New.
11835         (prologue_thumb1_interwork): New.
11836         (*push_multi): Allow thumb1; use push_mult_memory_operand.
11837         * config/arm/predicates.md (push_mult_memory_operand): New.
11838
11839 2011-06-28  Eric Botcazou  <ebotcazou@adacore.com>
11840
11841         * config/sparc/sync.md (*stbar): Delete.
11842         (*membar_v8): New insn to implement UNSPEC_MEMBAR in SPARC-V8.
11843
11844 2011-06-28  Eric Botcazou  <ebotcazou@adacore.com>
11845
11846         * tree-ssa-dom.c (initialize_hash_element): Fix oversight.
11847
11848 2011-06-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11849
11850         * config/sparc/sol2-64.h (TARGET_DEFAULT): Remove.
11851         (TARGET_64BIT_DEFAULT): Define.
11852         * config.gcc (sparc*-*-solaris2*): Move sparc/sol2-64.h to front
11853         of tm_file.
11854         * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Define.
11855
11856 2011-06-28  Joseph Myers  <joseph@codesourcery.com>
11857
11858         * common.opt (in_lto_p): New Variable entry.
11859         * flags.h (in_lto_p): Move to common.opt.
11860         * gcc.c: Include params.h.
11861         (set_option_handlers): Also use common_handle_option and
11862         target_handle_option.
11863         (main): Call global_init_params, finish_params and init_options_struct.
11864         * opts.c (debug_type_names): Move from toplev.c.
11865         (print_filtered_help): Access quiet_flag through opts pointer.
11866         (common_handle_option): Return early in the driver for some options.
11867         Access in_lto_p, dwarf_version and warn_maybe_uninitialized through
11868         opts pointer.
11869         * toplev.c (in_lto_p): Move to common.opt.
11870         (debug_type_names): Move to opts.c.
11871         * Makefile.in (OBJS): Remove opts.o.
11872         (OBJS-libcommon-target): Add opts.o.
11873         (gcc.o): Update dependencies.
11874
11875 2011-06-28  Kai Tietz  <ktietz@redhat.com>
11876
11877         * tree-ssa-forwprop.c (simplify_bitwise_binary): Improve type sinking.
11878
11879 2011-06-28  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
11880
11881         * config/arm/vfp.md ("*divsf3_vfp"): Replace '+' constraint modifier
11882         with '=' constraint modifier.
11883         (*divdf3_vfp): Likewise.
11884         ("*mulsf3_vfp"): Likewise.
11885         ("*muldf3_vfp"): Likewise.
11886         ("*mulsf3negsf_vfp"): Likewise.
11887         ("*muldf3negdf_vfp"): Likewise.
11888
11889 2011-06-28  Nick Clifton  <nickc@redhat.com>
11890
11891         * config/mn10300/mn10300.h (LINK_SPEC): Do not use linker
11892         relaxation when performing an incremental link.
11893
11894 2011-06-28  Kai Tietz  <ktietz@redhat.com>
11895
11896         * tree-ssa-math-opts.c (execute_optimize_bswap): Search
11897         within BB from last to first.
11898
11899 2011-06-28  Joseph Myers  <joseph@codesourcery.com>
11900
11901         * genattr-common.c: New.  Based on genattr.c.
11902         * Makefile.in (INSN_ATTR_H): Include insn-attr-common.h.
11903         (MOSTLYCLEANFILES): Add insn-attr-common.h.
11904         (opts.o): Update dependencies.
11905         (.PRECIOUS): Add insn-attr-common.h.
11906         (simple_rtl_generated_h): Add insn-attr-common.h.
11907         (build/genattr-common.o): New.
11908         (genprogrtl): Add attr-common.
11909         * genattr.c (main): Include insn-attr-common.h.  Don't generate
11910         definitions of DELAY_SLOTS or INSN_SCHEDULING.
11911         * opts.c: Include insn-attr-common.h instead of rtl.h and insn-attr.h.
11912
11913 2011-06-28  Georg-Johann Lay  <avr@gjlay.de>
11914
11915         * config.gcc (tm_file): Add elfos.h and avr/elf.h for
11916         avr-*-* and avr-*-rtems* targets.
11917
11918         * config/avr/elf.h: New file.
11919         (ASM_OUTPUT_BEFORE_CASE_LABEL): Define.
11920         (TARGET_ASM_SELECT_SECTION): Define.
11921         (INIT_SECTION_ASM_OP): Undefine.
11922         (FINI_SECTION_ASM_OP): Undefine.
11923         (READONLY_DATA_SECTION_ASM_OP): Undefine.
11924         (PCC_BITFIELD_TYPE_MATTERS): Undefine.
11925         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Undefine.
11926         * config/avr/avr.h:
11927         (PREFERRED_DEBUGGING_TYPE): Move to elf.h.
11928         (TARGET_ASM_NAMED_SECTION): Move to elf.h.
11929         (MAX_OFILE_ALIGNMENT): Move to elf.h.
11930         (STRING_LIMIT): Move to elf.h.
11931         (ASM_DECLARE_FUNCTION_NAME): Move to elf.h.
11932         (ASM_DECLARE_OBJECT_NAME): Remove.
11933         (ESCAPES): Remove.
11934         (ASM_OUTPUT_SKIP): Remove.
11935         (DWARF2_DEBUGGING_INFO): Remove.
11936         (OBJECT_FORMAT_ELF): Remove.
11937         (USER_LABEL_PREFIX): Remove.
11938         (ASM_OUTPUT_EXTERNAL): Remove.
11939         (ASM_OUTPUT_ASCII): Remove.
11940         (TYPE_ASM_OP): Remove.
11941         (SIZE_ASM_OP): Remove.
11942         (WEAK_ASM_OP): Remove.
11943         (STRING_ASM_OP): Remove.
11944         (SET_ASM_OP): Remove.
11945         (ASM_WEAKEN_LABEL): Remove.
11946         (TYPE_OPERAND_FMT): Remove.
11947         (ASM_DECLARE_FUNCTION_SIZE): Remove.
11948         (ASM_FINISH_DECLARE_OBJECT): Remove.
11949         (NO_DOLLAR_IN_LABEL): Remove.
11950         (ASM_GENERATE_INTERNAL_LABEL): Remove.
11951         (ASM_OUTPUT_CASE_LABEL): Remove.
11952         * config/avr/avr.c (avr_asm_output_aligned_decl_common): Use
11953         ASM_OUTPUT_ALIGNED_LOCAL, ASM_OUTPUT_ALIGNED_COMMON.
11954         (gas_output_ascii): Remove.
11955         (gas_output_limited_string): Remove.
11956         (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Remove.
11957         * config/avr/avr-protos.h
11958         (gas_output_ascii): Remove prototye.
11959         (gas_output_limited_string): Remove prototype.
11960
11961 2011-06-27  Richard Earnshaw  <rearnsha@arm.com>
11962
11963         PR target/48637
11964         * arm.c (arm_print_operand): Allow sym+offset.  Don't abort on invalid
11965         asm operands.
11966
11967 2011-06-27  Jan Hubicka  <jh@suse.cz>
11968
11969         * ipa.c (cgraph_address_taken_from_non_vtable_p): Walk references of
11970         node instead of references in node.
11971
11972 2011-06-27  Richard Henderson  <rth@redhat.com>
11973
11974         * config/alpha/alpha.c (vms_patch_builtins): Provide dummy definition.
11975         * config/ia64/ia64.c (ia64_init_builtins): Call vms_patch_builtins
11976         inside ifdef.
11977
11978 2011-06-27  Jakub Jelinek  <jakub@redhat.com>
11979
11980         * c-decl.c (union lang_tree_node): Use it in chain_next expression.
11981
11982         * builtin-types.def (BT_FN_PTR_CONST_PTR_SIZE_VAR): New.
11983         * builtins.def (BUILT_IN_ASSUME_ALIGNED): New builtin.
11984         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call,
11985         find_func_clobbers): Handle BUILT_IN_ASSUME_ALIGNED.
11986         * tree-ssa-ccp.c (bit_value_assume_aligned): New function.
11987         (evaluate_stmt, execute_fold_all_builtins): Handle
11988         BUILT_IN_ASSUME_ALIGNED.
11989         * tree-ssa-dce.c (propagate_necessity): Likewise.
11990         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
11991         call_may_clobber_ref_p_1): Likewise.
11992         * builtins.c (is_simple_builtin, expand_builtin): Likewise.
11993         (expand_builtin_assume_aligned): New function.
11994         * doc/extend.texi (__builtin_assume_aligned): Document.
11995
11996         PR debug/49544
11997         * cselib.c (promote_debug_loc): If cselib_preserve_constants
11998         and l has two DEBUG_INSN owned locs instead of just one, adjust
11999         the second location's setting_insn too.
12000
12001 2011-06-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12002
12003         PR libmudflap/38738
12004         * config/sol2.h [!USE_GLD] (MFLIB_SPEC): Define.
12005
12006 2011-06-27  Nick Clifton  <nickc@redhat.com>
12007
12008         * config/mn10300/mn10300.md (clzsi2): Use XOR after BSCH to convert
12009         bit position of highest bit set into a count of the high zero bits.
12010
12011 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
12012
12013         * dwarf2out.c (TYPE_DECL_IS_STUB): Extend mechanism to all types.
12014
12015 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
12016
12017         PR lto/48492
12018         * dwarf2out.c (dwarf2out_finish): Do not attach a DIE on the limbo list
12019         to a NULL parent.
12020
12021 2011-06-27  Richard Guenther  <rguenther@suse.de>
12022
12023         PR tree-optimization/49394
12024         * passes.c (execute_one_pass): Restore current_pass after
12025         applying IPA transforms.
12026
12027 2011-06-27  Kai Tietz  <ktietz@redhat.com>
12028
12029         * tree-ssa-math-opts.c (do_shift_rotate): Zero bits
12030         out of type precision after operation.
12031         (find_bswap): Take for limit value the integer auto-promotion
12032         into account.
12033
12034 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
12035
12036         * reorg.c (fill_simple_delay_slots): Use stop_search_p to stop the
12037         forward scan as well.
12038
12039 2011-06-27  Tristan Gingold  <gingold@adacore.com>
12040
12041         PR target/44241
12042         * config/vms/vms-protos.h: New file.
12043         * config/vms/vms-crtlmap.map: New file.
12044         * config/vms/vms.c: New file.
12045         * config/vms/make-crtlmap.awk: New file.
12046         * config/vms/vms-crtl.h: File removed.
12047         * config/vms/vms-crtl-64.h: File removed.
12048         * config/vms/t-vms (vms-crtlmap.h, vms.o): New targets.
12049         * config/alpha/vms64.h: Do not include vms-crtl-64.h
12050         * config/alpha/alpha.c (alpha_init_builtins): Remove code to
12051         clear some builtins on VMS.  Calls vms_patch_builtins.
12052         (avms_asm_output_external): Remove.
12053         * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Remove.
12054         (struct crtl_name_spec): Remove
12055         (DO_CTRL_NAMES): Remove.
12056         * config/ia64/vms.h (struct crtl_name_spec): Remove
12057         (DO_CTRL_NAMES): Remove.
12058         * config/ia64/ia64.c (alpha_init_builtins): Remove code to
12059         clear some builtins on VMS.  Calls vms_patch_builtins.
12060         (ia64_asm_output_external): Remove DO_CRTL_NAME.
12061         * config/ia64/vms64.h: Do not include vms-crtl-64.h
12062         * config.gcc (*-*-*vms*): Define extra_objs, target_gtfiles, tm_p_file.
12063
12064 2011-06-27  Tristan Gingold  <gingold@adacore.com>
12065
12066         * config/alpha/alpha.c (alpha_end_function): Always generate .end
12067         directive on VMS.
12068
12069 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
12070
12071         * config/sparc/sparc.c (sparc_frame_pointer_required): Return true if
12072         the function receives nonlocal gotos.
12073
12074 2011-06-27  Richard Guenther  <rguenther@suse.de>
12075
12076         PR tree-optimization/49536
12077         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
12078         For non-scalar inner types use a scalar type according to
12079         the scalar inner mode.
12080
12081 2011-06-27  Richard Guenther  <rguenther@suse.de>
12082
12083         PR tree-optimization/49365
12084         * params.def (min-insn-to-prefetch-ratio): Reduce from 10 to 9.
12085
12086 2011-06-27  Richard Guenther  <rguenther@suse.de>
12087
12088         PR tree-optimization/49169
12089         * fold-const.c (get_pointer_modulus_and_residue): Don't rely on
12090         the alignment of function decls.
12091
12092 2011-06-26  Iain Sandoe  <iains@gcc.gnu.org>
12093
12094         PR target/47997
12095         * config/darwin.c (darwin_mergeable_string_section): Place string
12096         constants in '.cstring' rather than '.const' when CF/NSStrings are
12097         active.
12098
12099 2011-06-26  Eric Botcazou  <ebotcazou@adacore.com>
12100
12101         * config/sparc/sparc.c (save_local_or_in_reg_p): Adjust comment.
12102         (emit_save_register_window): Likewise.
12103         (sparc_expand_prologue): Use SIZE_INT_RTX and SIZE_RTX variables.
12104         (sparc_flat_expand_prologue): Add comment.  Always emit blockage.
12105         Swap back %o7/%i7 in register naming.
12106
12107 2011-06-25  Iain Sandoe  <iains@gcc.gnu.org>
12108
12109         PR driver/49371
12110         * config/darwin.c (darwin_override_options): Improve warning when
12111         mdynamic-no-pic is given together with fPIC/fpic, also warn when it
12112         is given with fpie/fPIE.
12113         * config/darwin.h (PIE_SPEC): New, (LINK_SPEC): Use PIE_SPEC.
12114         * config/darwin9.h (PIE_SPEC): New.
12115
12116 2011-06-25  Basile Starynkevitch  <basile@starynkevitch.net>
12117
12118         * timevar.c (timevar_print): Increase width for display of timevar
12119         name.
12120
12121 2011-06-24  Jakub Jelinek  <jakub@redhat.com>
12122
12123         PR c++/46400
12124         * c-decl.c (union lang_tree_node): Use TYPE_NEXT_VARIANT
12125         instead of TYPE_CHAIN for chain_next for types.
12126
12127 2011-06-24  Richard Henderson  <rth@redhat.com>
12128
12129         * config/sparc/sparc.md (create_flat_frame_1<P:mode>): Remove.
12130         (create_flat_frame_2<P:mode>, create_flat_frame_3<P:mode>): Remove.
12131         * config/sparc/sparc.c (gen_create_flat_frame_1): Remove.
12132         (gen_create_flat_frame_2, gen_create_flat_frame_3): Remove.
12133         (sparc_flat_expand_prologue): Emit individual instructions
12134         instead of one of the above.
12135
12136 2011-06-24  Easwaran Raman  <eraman@google.com>
12137
12138         PR rtl-optimization/49429
12139         PR target/49454
12140         * expr.c (emit_block_move_hints):  Mark MEM_EXPR(x) and
12141         MEM_EXPR(y) addressable if emit_block_move_via_libcall is
12142         used to copy y into x.
12143         * calls.c (initialize_argument_information): Mark
12144         an argument addressable if it is passed by invisible reference.
12145         (emit_library_call_value_1): Mark  MEM_EXPR (val) addressable
12146         if it is passed by reference.
12147
12148 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
12149
12150         PR rtl-optimization/49504
12151         * rtlanal.c (nonzero_bits1): Properly handle addition or
12152         subtraction of a pointer in Pmode if pointers extend unsigned.
12153         (num_sign_bit_copies1): Likewise.
12154
12155 2011-06-24  Martin Jambor  <mjambor@suse.cz>
12156
12157         PR tree-optimizations/49516
12158         * tree-sra.c (sra_modify_assign): Choose the safe path for
12159         aggregate copies if we also did scalar replacements.
12160
12161 2011-06-24  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
12162
12163         PR target/49335
12164         * config/arm/predicates.md (add_operator): New.
12165         * config/arm/arm.md ("*arith_shiftsi"): Fix for SP reg usage in Thumb2.
12166
12167 2011-06-24  Andi Kleen  <ak@linux.intel.com>
12168
12169         * tree-sra.c (type_internals_preclude_sra_p): Add msg
12170         parameter. Split up ifs and report reason in *msg.
12171         (reject): Add.
12172         (find_var_candiate): Add msg variable.
12173         Split up ifs and report reason to reject.
12174         (find_param_candidates): Add msg variable.
12175         Pass msg to type_internals_preclude_sra_p.
12176
12177 2011-06-23  Jeff Law  <law@redhat.com>
12178
12179         PR middle-end/48770
12180         * reload.h (reload): Change to return a bool.
12181         * ira.c (ira): If requested by reload, run a fast DCE pass after
12182         reload has completed.  Fix comment typo.
12183         * reload1.c (need_dce): New file scoped static.
12184         (reload): Set reload_completed here.  Return whether or not a DCE
12185         pass after reload is needed.
12186         (delete_dead_insn): Set need_dce as needed.
12187
12188         PR middle-end/49465
12189         * tree-ssa-threadupate.c (fix_duplicate_block_edges): Fix condition
12190         to detect threading through joiner block.  If there was already
12191         an edge to the new target, then do not change the PHI nodes.
12192
12193 2011-06-23  Jakub Jelinek  <jakub@redhat.com>
12194
12195         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Use
12196         get_pointer_alignment to see if base isn't sufficiently aligned.
12197
12198 2011-06-23  Jan Hubicka  <jh@suse.cz>
12199
12200         PR tree-optimize/49373
12201         * tree-pass.h (all_late_ipa_passes): Declare.
12202         * cgraphunit.c (init_lowered_empty_function): Fix properties.
12203         (cgraph_optimize): Execute late passes; remove unreachable funcions
12204         after materialization.
12205         * ipa-inline.c (gate_ipa_inline): Enable only when optimizing or
12206         LTOing.
12207         * passes.c (all_late_ipa_passes): Declare.
12208         (dump_passes, register_pass): Handle late ipa passes.
12209         (init_optimization_passes): Move ipa_pta to late passes; schedule
12210         fixup_cfg at beggining of all_passes.
12211         (apply_ipa_transforms): New function.
12212         (execute_one_pass): When doing simple ipa pass, apply all transforms.
12213
12214 2011-06-23  Joseph Myers  <joseph@codesourcery.com>
12215
12216         * params.c: Include common/common-target.h.  Don't include tm.h.
12217         (lang_independent_params): Move from toplev.c.
12218         (global_init_params): New.
12219         * params.h (global_init_params): Declare.
12220         * target.def (default_params): Move to common-target.def.
12221         * toplev.c (lang_independent_options): Remove.
12222         (lang_independent_params): Move to params.c.
12223         (general_init): Use global_init_params.
12224         * common/common-target.def (option_default_params): Move from
12225         target.def.
12226         * common/config/ia64/ia64-common.c: Include params.h.
12227         (ia64_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
12228         from ia64.c.
12229         * common/config/rs6000/rs6000-common.c: Include params.h.
12230         (rs6000_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
12231         from rs6000.c.
12232         * common/config/sh/sh-common.c: Include params.h.
12233         (sh_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
12234         from sh.c.
12235         * common/config/spu/spu-common.c: Include params.h.
12236         (spu_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
12237         from spu.c.
12238         * config/ia64/ia64.c (ia64_option_default_params,
12239         TARGET_OPTION_DEFAULT_PARAMS): Move to ia64-common.c.
12240         * config/rs6000/rs6000.c (rs6000_option_default_params,
12241         TARGET_OPTION_DEFAULT_PARAMS): Move to rs6000-common.c.
12242         * config/sh/sh.c (sh_option_default_params,
12243         TARGET_OPTION_DEFAULT_PARAMS): Move to sh-common.c.
12244         * config/spu/spu.c (spu_option_default_params,
12245         TARGET_OPTION_DEFAULT_PARAMS): Move to spu-common.c.
12246         * Makefile.in (OBJS): Remove params.o.
12247         (OBJS-libcommon-target): Add params.o.
12248         (params.o, $(common_out_object_file)): Update dependencies.
12249         * doc/tm.texi: Regenerate.
12250
12251 2011-06-23  Alan Modra  <amodra@gmail.com>
12252
12253         PR bootstrap/49383
12254         * config/rs6000/rs6000.c (call_ABI_of_interest): Adjust cgraph
12255         invocation for 2011-06-09 changes.
12256
12257 2011-06-22  Jakub Jelinek  <jakub@redhat.com>
12258
12259         PR libgomp/49490
12260         * omp-low.c (expand_omp_for_static_nochunk): Only
12261         use n ceil/ nthreads size for the first n % nthreads threads in the
12262         team instead of all threads except for the last few ones which
12263         get less work or none at all.
12264
12265         PR debug/49496
12266         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Ignore debug
12267         uses.
12268
12269 2011-06-22  Richard Guenther  <rguenther@suse.de>
12270
12271         PR tree-optimization/49493
12272         * tree-ssa-structalias.c (get_constraint_for_ssa_var):
12273         Refer to the alias target of variables.
12274         (associate_varinfo_to_alias_1): Remove.
12275         (ipa_pta_execute): Do not associate aliases with anything.
12276         * cgraph.h (varpool_alias_aliased_node): Fix cut&paste errors.
12277         (cgraph_function_node): Likewise.
12278         (cgraph_function_or_thunk_node): Likewise.
12279         (varpool_variable_node): Likewise.
12280
12281 2011-06-22  Nathan Sidwell  <nathan@codesourcery.com>
12282
12283         * config/arm/arm.h (OPTION_DEFAULT_SPECS): Fix -mtls-dialect typo.
12284         * config.gcc (arm*-*-linux*): Default to gnu tls.
12285         (arm*-*-*): Add --with-tls option.
12286         (all_defaults): Add 'tls'.
12287
12288 2011-06-22  Richard Henderson  <rth@redhat.com>
12289
12290         * reg-notes.def (REG_CFA_WINDOW_SAVE): New.
12291         * dwarf2out.c (dwarf2out_frame_debug): Handle it.
12292         (dwarf2out_frame_debug_cfa_window_save): Rename from
12293         dwarf2out_window_save; make static.
12294         * tree.h (dwarf2out_window_save): Don't declare.
12295
12296         * config/sparc/sparc.c (sparc_dwarf_handle_frame_unspec): Remove.
12297         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
12298         (emit_save_register_window): Rename from gen_save_register_window;
12299         emit the insn and add REG_CFA_* notes.
12300         (sparc_expand_prologue): Update to match.
12301         * config/sparc/sparc.md (save_register_window_1): Simplify from
12302         save_register_window<P:mode>.
12303
12304 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
12305
12306         PR target/49497
12307         * config/i386/i386.md (*lea_general_2): Always allow SImode.
12308         (*lea_general_2_zext): Likewise.
12309         (imul to lea peepholes): Use const359_operand and check
12310         TARGET_PARTIAL_REG_STALL.
12311
12312         * config/i386/predicates.md (const359_operand): New.
12313
12314 2011-06-22  Michael Matz  <matz@suse.de>
12315
12316         * cgraphunit.c (assemble_thunk): Use correct return type.
12317
12318 2011-06-22  Dmitry Plotnikov  <dplotnikov@ispras.ru>
12319             Dmitry Melnik  <dm@ispras.ru>
12320
12321         * config/arm/arm.c (neon_immediate_valid_for_shift): New function.
12322         (neon_output_shift_immediate): Ditto.
12323         * config/arm/arm-protos.h (neon_immediate_valid_for_shift): New
12324         prototype.
12325         (neon_output_shift_immediate): Ditto.
12326         * config/arm/neon.md (vashl<mode>3): Modified constraint.
12327         (vashr<mode>3_imm): New insn pattern.
12328         (vlshr<mode>3_imm): Ditto.
12329         (vashr<mode>3): Modified constraint.
12330         (vlshr<mode>3): Ditto.
12331         * config/arm/predicates.md (imm_for_neon_lshift_operand): New
12332         predicate.
12333         (imm_for_neon_rshift_operand): Ditto.
12334         (imm_lshift_or_reg_neon): Ditto.
12335         (imm_rshift_or_reg_neon): Ditto.
12336
12337         * optabs.c (init_optabs): Init optab codes for vashl, vashr, vlshr.
12338
12339 2011-06-22  Jakub Jelinek  <jakub@redhat.com>
12340
12341         * tree-ssa-ccp.c (evaluate_stmt): Try bitwise tracking for
12342         builtin calls even if likelyvalue is not CONSTANT.
12343         Handle BUILT_IN_STRDUP and BUILT_IN_STRNDUP like BUILT_IN_MALLOC.
12344         Return get_value_for_expr of first operand
12345         for BUILT_IN_{MEM{CPY,MOVE,SET},STR{,N}CPY}{,_CHK}.
12346         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
12347         BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK like
12348         their non-checking counterparts.
12349         (call_may_clobber_ref_p_1): Likewise.
12350         (stmt_kills_ref_p_1): Handle BUILT_IN_MEM{{,P}CPY,MOVE,SET}_CHK
12351         like their non-checking counterparts.
12352         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
12353         Handle BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK
12354         like their non-checking counterparts.
12355         (find_func_clobbers): Likewise.
12356         * tree-ssa-dce.c (propagate_necessity): Handle BUILT_IN_MEMSET_CHK
12357         like BUILT_IN_MEMSET and BUILT_IN_CALLOC like BUILT_IN_MALLOC.
12358
12359         * dwarf2out.c (size_of_loc_descr, output_loc_operands,
12360         mark_base_types, hash_loc_operands, compare_loc_operands): Allow
12361         DW_OP_GNU_convert and DW_OP_GNU_reinterpret to use constant instead
12362         of base type reference as argument.
12363         (resolve_addr_in_expr): Likewise.  Fix keep computation.
12364         (convert_descriptor_to_signed): Renamed to...
12365         (convert_descriptor_to_mode): ... this.  For wider types convert to
12366         unsigned instead of signed, for <= DWARF2_ADDR_SIZE convert to untyped.
12367         (typed_binop): New function.
12368         (scompare_loc_descriptor, ucompare_loc_descriptor,
12369         minmax_loc_descriptor, mem_loc_descriptor): For wider integer modes
12370         default to unsigned type instead of signed.
12371
12372         PR debug/47858
12373         * gimple.h (enum gimple_debug_subcode): Add GIMPLE_DEBUG_SOURCE_BIND.
12374         (gimple_build_debug_source_bind_stat): New prototype.
12375         (gimple_build_debug_source_bind): Define.
12376         (gimple_debug_source_bind_p, gimple_debug_source_bind_get_var,
12377         gimple_debug_source_bind_get_value,
12378         gimple_debug_source_bind_get_value_ptr,
12379         gimple_debug_source_bind_set_var,
12380         gimple_debug_source_bind_set_value): New inlines.
12381         * gimple.c (gimple_build_debug_source_bind_stat): New function.
12382         * gimple-pretty-print.c (dump_gimple_debug): Handle
12383         GIMPLE_DEBUG_SOURCE_BIND.
12384         * sese.c (rename_uses): Handle gimple_debug_source_bind_p.
12385         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
12386         * tree-parloops.c (eliminate_local_variables,
12387         separate_decls_in_region): Likewise.
12388         (separate_decls_in_region_debug): Renamed from
12389         separate_decls_in_region_debug_bind.  Handle
12390         gimple_debug_source_bind_p.
12391         * tree.h (decl_debug_args_lookup, decl_debug_args_insert): New
12392         prototypes.
12393         (DECL_HAS_DEBUG_ARGS_P): Define.
12394         (struct tree_function_decl): Add has_debug_args_flag field.
12395         * tree.c (debug_args_for_decl): New variable.
12396         (decl_debug_args_lookup, decl_debug_args_insert): New functions.
12397         * tree-into-ssa.c (mark_def_sites): Handle uses in debug stmts.
12398         (rewrite_debug_stmt_uses): New function.
12399         (rewrite_stmt): Use it to rewrite debug stmt uses.
12400         * rtl.def (DEBUG_PARAMETER_REF): New.
12401         * rtl.h (DEBUG_PARAMETER_REF_DECL): Define.
12402         * cselib.c (rtx_equal_for_cselib_1, cselib_hash_rtx): Handle
12403         DEBUG_PARAMETER_REF.
12404         * rtl.c (rtx_equal_p_cb, rtx_equal_p, iterative_hash_rtx): Likewise.
12405         * print-rtl.c (print_rtx): Likewise.
12406         * tree-sra.c (sra_ipa_reset_debug_stmts): Prefer replacing of
12407         SSA_NAMEs with DEBUG_EXPR_DECLs initialized in source bind
12408         debug stmts in the first bb.
12409         * tree-inline.c (remap_ssa_name): If remapping default def
12410         of a PARM_DECL fails, map to a DEBUG_EXPR_DECL set in
12411         a source bind debug stmt.
12412         (remap_gimple_stmt): Handle gimple_debug_source_bind_p.
12413         (maybe_move_debug_stmts_to_successors): Likewise.
12414         (copy_debug_stmt): Likewise.  Avoid shadowing a variable.
12415         (tree_function_versioning): If DECL_HAS_DEBUG_ARGS_P, copy
12416         debug args vector from old_decl to new_decl.
12417         * ipa-prop.c (ipa_modify_call_arguments): For optimized away
12418         or modified parameters, add debug bind stmts before call
12419         setting DEBUG_EXPR_DECL which is remembered in debug args vector.
12420         * cfgexpand.c (expand_call_stmt): Call expand_debug_expr
12421         on DECL_DEBUG_EXPRs from debug args vector.
12422         (expand_debug_source_expr): New function.
12423         (expand_debug_locations): Use it for source bind insns.
12424         (expand_gimple_basic_block): Handle gimple_debug_source_bind_p.
12425         * var-tracking.c (prepare_call_arguments): Add debug args
12426         to call_arguments if any.
12427         * dwarf2out.c (dwarf_stack_op_name, size_of_loc_descr,
12428         output_loc_operands, output_loc_operands_raw, resolve_addr_in_expr,
12429         compare_loc_operands): Handle DW_OP_GNU_parameter_ref.
12430         (get_ref_die_offset, parameter_ref_descriptor): New functions.
12431         (mem_loc_descriptor): Handle DEBUG_PARAMETER_REF.
12432         (gen_subprogram_die): Handle parameters identified by
12433         DEBUG_PARAMETER_REF.
12434
12435 2011-06-22  Nathan Sidwell  <nathan@codesourcery.com>
12436
12437         * doc/invoke.texi (ARM Options): Document -mtls-dialect option.
12438         * doc/install.texi (Configuration): Document --with-tls.
12439         * config/arm/arm.c (enum tls_reloc): Add TLS_DESCSEQ.
12440         (arm_call_tls_get_addr): Clean up. Assert not tls descriptor.
12441         (arm_tls_descseq_addr): New.
12442         (legitimize_tls_address): Add tlsdesc support.
12443         (arm_cannot_copy_insn_p): Check for tlscall.
12444         (arm_emit_tls_decoration): Likewise.
12445         * config/arm/arm.h (TARGET_GNU2_TLS): New.
12446         (OPTION_DEFAULT_SPECS): Add with-tls support.
12447         * config/arm/arm.md (R1_REGNUM): Define.
12448         (tlscall): New.
12449         * config/arm/arm.opt (tls_type): New enumeration type and values.
12450         (mtls-dialect): New switch.
12451         * config/arm/arm-opts.h (enum tls_type): New.
12452
12453 2011-06-21  Nicola Pero  <nicola.pero@meta-innovation.com>
12454
12455         * attribs.c (register_attribute): Added assert to check that all
12456         attribute specs are registered with a name that is not empty and
12457         does not start with '_'.
12458         (decl_attributes): Avoid the lookup of the "naked" attribute spec
12459         if the function has no attributes.
12460         * tree.c (is_attribute_with_length_p): Removed.
12461         (is_attribute_p): Removed.
12462         (private_is_attribute_p): New.
12463         (private_lookup_attribute): New.
12464         (lookup_attribute): Removed.
12465         (lookup_ident_attribute): New.
12466         (remove_attribute): Require the first argument to be in the form
12467         'text', not '__text__'.  Updated asserts.
12468         (merge_attributes): Use lookup_ident_attributes instead of
12469         lookup_attribute.
12470         (merge_dllimport_decl_attributes): Use remove_attribute.
12471         (attribute_list_contained): Likewise.
12472         (attribute_list_equal): Immediately return 1 if the arguments are
12473         identical pointers.
12474         * tree.h (is_attribute_p): Made inline.  Return a 'bool', not an
12475         'int'.  Require the first argument to be in the form 'text', not
12476         '__text__'.  Require the second argument to be an identifier.
12477         (lookup_attribute): Made inline.  Require the first argument to be
12478         in the form 'text', not '__text__'.
12479         (private_is_attribute_p, private_lookup_attribute): New.
12480         Updated comments.
12481
12482 2011-06-21  Andrew MacLeod  <amacleod@redhat.com>
12483
12484         * builtins.c: Add sync_ or SYNC__ to builtin names.
12485         * sync-builtins.def: Add sync_ or SYNC__ to builtin names.
12486         * omp-low.c: Add sync_ or SYNC__ to builtin names.
12487
12488 2011-06-21  Georg-Johann Lay  <avr@gjlay.de>
12489
12490         PR target/33049
12491         * config/avr/avr.md (extzv): New expander.
12492         (*extzv): New insn.
12493         (*extzv.qihi1, *extzv.qihi2): New insn-and-split.
12494         * config/avr/constraints.md (C04): New constraint.
12495         * doc/md.texi (Machine Constraints): Document it.
12496
12497 2011-06-21  Jakub Jelinek  <jakub@redhat.com>
12498
12499         PR middle-end/49489
12500         * builtins.c (expand_builtin_unop): Call expand_unop with 0 as
12501         unsignedp argument instead of 1 for clrsb_optab.
12502         (fold_builtin_bitop): Fix masking for width > HOST_BITS_PER_WIDE_INT
12503         and < 2 * HOST_BITS_PER_WIDE_INT.  Optimize BUILT_IN_CLRSB*.
12504         (fold_builtin_1): Call fold_builtin_binop for BUILT_IN_CLRSB*.
12505         * optabs.c (widen_leading): Call widen_operand and expand_unop
12506         with 0 as unsignedp argument instead of 1 for clrsb_optab.
12507         (expand_unop): Subtract difference of mode sizes also for clrsb_optab.
12508
12509 2011-06-21  Georg-Johann Lay  <avr@gjlay.de>
12510
12511         * config/avr/avr.md (*jcindirect_jump): Fix build warning.
12512
12513 2011-06-21  Bernd Schmidt  <bernds@codesourcery.com>
12514
12515         * gensupport.c (add_define_attr): New static function.
12516         (is_predicable): Allow multi-alternative lists for the "predicable"
12517         attribute.
12518         (modify_attr_enabled_ce, alter_attrs_for_insn): New static functions.
12519         (process_one_cond_exec): Call alter_attrs_for_insn.
12520         * doc/md.texi (Defining Attributes): Mention some standard names.
12521         (Conditional Execution): Update documentation for "predicable".
12522
12523         * doc/extend.texi (__builtin_clrsb, __builtin_clrsbl,
12524         __builtin_clrsbll): Document.
12525         * doc/rtl.texi (clrsb): New entry.
12526         * optabs.c (widen_leading): Renamed from widen_clz.  New argument
12527         UNOPTAB.  All callers changed.  Use UNOPTAB instead of clz_optab.
12528         (expand_unop): Handle clrsb_optab.
12529         (init_optabs): Initialize it.
12530         * optabs.h (enum optab_index): New entry OTI_clrsb.
12531         (clrsb_optab): Define.
12532         * genopinit.c (optabs): Add an entry for it.
12533         * builtins.c (expand_builtin): Handle clrsb builtin functions.
12534         * builtins.def (BUILT_IN_CLRSB, BUILT_IN_CLRSBIMAX, BUILT_IN_CLRSBL,
12535         BUILT_IN_CLRSBLL): New.
12536         * rtl.def (CLRSB): New code.
12537         * dwarf2out.c (mem_loc_descriptor): Handle it.
12538         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
12539         Use op_mode rather than mode when optimizing ffs, clz, ctz, parity
12540         and popcount.
12541         * libgcc2.c (__clrsbSI2, __clrsbDI2): New functions.
12542         * libgcc2.h (__clrsbSI2, __clrsbDI2): Define and declare.
12543         (__ctzDI2): Move declaration.
12544         * config/bfin/bfin.md (clrsbsi2): New expander.
12545         (signbitssi2): Use the CLRSB rtx.
12546         (clrsbhi2): Renamed from signbitshi2.  Use the CLRSB rtx.
12547         * config/bfin/bfin.c (bdesc_1arg): Changed accordingly.
12548
12549 2011-06-21  Richard Guenther  <rguenther@suse.de>
12550
12551         * ipa-inline-transform.c (inline_transform): Fix previous change.
12552
12553 2011-06-21  Ira Rosen  <ira.rosen@linaro.org>
12554
12555         PR tree-optimization/49478
12556         * tree-vect-loop.c (vectorizable_reduction): Handle DOT_PROD_EXPR
12557         with constant operand.
12558
12559 2011-06-21  Richard Guenther  <rguenther@suse.de>
12560
12561         * ipa-inline-transform.c (inline_transform): Fix typo.
12562
12563 2011-06-21  Richard Guenther  <rguenther@suse.de>
12564
12565         PR tree-optimization/49483
12566         * tree-vect-stmts.c (vectorizable_assignment): Also handle
12567         VIEW_CONVERT_EXPR conversions.
12568
12569 2011-06-21  Joseph Myers  <joseph@codesourcery.com>
12570
12571         * config/avr/avr-mcus.def, config/avr/genopt.sh: New files.
12572         * config/avr/avr-tables.opt: New file (generated).
12573         * config.gcc (avr-*-*): Use avr/avr-tables.opt.
12574         * config/avr/avr-devices.c (avr_mcu_types): Move contents to
12575         avr-mcus.def.
12576         * config/avr/avr.c (avr_help, TARGET_HELP): Remove.
12577         (avr_option_override): Don't process -mmcu= argument here.  Set
12578         avr_current_device using avr_mcu_index.
12579         (avr_file_start): Use avr_current_device->name instead of avr_mcu_name.
12580         * config/avr/avr.opt (mmcu=): Use Enum.
12581         * config/avr/t-avr (avr-devices.o): Update dependencies.
12582         ($(srcdir)/config/avr/avr-tables.opt): New.
12583         * target.def (help): Remove.
12584         * doc/tm.texi.in (TARGET_HELP): Remove.
12585         * doc/tm.texi: Regenerate.
12586         * opts.c: Don't include target.h.
12587         (common_handle_option): Don't call targetm.help.
12588         * system.h (TARGET_HELP): Poison.
12589         * Makefile.in (opts.o): Update dependencies.
12590
12591 2011-06-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12592
12593         * config/usegld.h: New file.
12594         * config/sol2.h (PREFERRED_DEBUGGING_TYPE): Remove.
12595         (CPP_SUBTARGET_SPEC): Remove -compat-bsd support.
12596         (LIB_SPEC): Likewise.  Search /lib.
12597         (LINK_ARCH32_SPEC_BASE): Remove -compat-bsd support.
12598         (RDYNAMIC_SPEC): Handle GNU ld.
12599         [HAVE_LD_EH_FRAME_HDR && TARGET_DL_ITERATE_PHDR] (LINK_EH_SPEC):
12600         Define.
12601         (SUPPORTS_INIT_PRIORITY): Only disable for Sun ld.
12602         (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Define.
12603         [!USE_GAS] (NO_DBX_BNSYM_ENSYM): Redefine.
12604         (STACK_CHECK_STATIC_BUILTIN): Define.
12605         * config/sol2.opt (compat-bsd): Remove.
12606         * config/sol2-10.h (TARGET_C99_FUNCTIONS): Remove undef.
12607         * config/sol2-bi.h: New file.
12608         * config/sol2-gld.h: Remove.
12609         * config/i386/sol2.h (TLS_COMMON_ASM_OP): Only define if !USE_GAS.
12610         (NO_DBX_BNSYM_ENSYM): Remove.
12611         (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
12612         (STACK_CHECK_STATIC_BUILTIN): Remove.
12613         Test USE_GLD instead of TARGET_GNU_LD.
12614         * config/i386/sol2-10.h: Rename to ...
12615         * config/i386/sol2-bi.h .. this.
12616         (SUBTARGET_EXTRA_SPECS): Redefine.
12617         (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Remove.
12618         (MULTILIB_DEFAULTS): Remove.
12619         (DEFAULT_ARCH32_P): Define.
12620         (LINK_ARCH64_SPEC_BASE, LINK_ARCH64_SPEC): Remove.
12621         (ARCH64_SUBDIR): Define.
12622         Test USE_GLD instead of TARGET_GNU_LD.
12623         (I386_EMULATION): Rename to ...
12624         (ARCH32_EMULATION): ... this.
12625         (X86_64_EMULATION): Rename to ...
12626         (ARCH64_EMULATION): ... this.
12627         (TARGET_LD_EMULATION): Remove.
12628         (LINK_ARCH_SPEC): Remove.
12629         * config/i386/sol2-gas.h: Remove.
12630         * config/i386/t-sol2-10: Rename to ...
12631         * config/i386/t-sol2-64: ... this.
12632         * config/sparc/sol2.h (SPARC_DEFAULT_CMODEL): Redefine.
12633         (AS_SPARC64_FLAG): Define.
12634         (ASM_CPU32_DEFAULT_SPEC, ASM_CPU64_DEFAULT_SPEC): Redefine.
12635         (CPP_CPU64_DEFAULT_SPEC, ASM_CPU32_DEFAULT_SPEC): Redefine
12636         depending on TARGET_CPU_DEFAULT.
12637         (CPP_CPU_SPEC): Redefine.
12638         (ASM_CPU_SPEC): Handle DEFAULT_ARCH32_P.
12639         (CPP_CPU_DEFAULT_SPEC, ASM_CPU_DEFAULT_SPEC): Redefine.
12640         (CPP_ARCH32_SPEC, CPP_ARCH64_SPEC, CPP_ARCH_SPEC): Redefine.
12641         (ASM_ARCH_SPEC, ASM_ARCH32_SPEC, ASM_ARCH64_SPEC,
12642         ASM_ARCH_DEFAULT_SPEC): Redefine.
12643         (SUBTARGET_EXTRA_SPECS): Add LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
12644         LINK_ARCH_DEFAULT_SPEC.
12645         [USE_GLD] (ARCH32_EMULATION, ARCH64_EMULATION): Define.
12646         [USE_GLD] (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC): Redefine.
12647         (ARCH64_SUBDIR): Define.
12648         (LINK_ARCH64_SPEC): Redefine.
12649         (CC1_SPEC): Redefine.
12650         (OPTION_DEFAULT_SPECS): Redefine.
12651         (MULTILIB_DEFAULTS): Define.
12652         (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Redefine.
12653         [USE_GAS && HAVE_AS_TLS] (TARGET_SUN_TLS, TARGET_GNU_TLS): Redefine.
12654         [USE_GLD] (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undef.
12655         (NO_DBX_BNSYM_ENSYM): Remove.
12656         (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
12657         (ASM_OUTPUT_ALIGN_WITH_NOP): Only define if !USE_GAS.
12658         (TARGET_ASM_NAMED_SECTION): Likewise.
12659         (STACK_CHECK_STATIC_BUILTIN): Remove.
12660         * config/sparc/sol2-bi.h: Remove.
12661         * config/sparc/sol2-gas-bi.h: Remove.
12662         * config/sparc/sol2-gas.h: Remove.
12663         * config/sparc/sol2-gld-bi.h: Remove.
12664         * config.gcc (i[34567]86-*-solaris2*, sparc*-*-solaris2*): Move
12665         common parts ...
12666         (*-*-solaris2*): ... here.
12667
12668 2011-06-21  Christian Bruel  <christian.bruel@st.com>
12669
12670         PR other/43564
12671         * ipa-inline.c (can_inline_edge_p): Check
12672         !DECL_DISREGARD_INLINE_LIMITS.
12673
12674 2011-06-21  Christian Bruel  <christian.bruel@st.com>
12675
12676         PR middle-end/49139
12677         * cgraphunit.c (process_function_and_variable_attributes): warn when
12678         always_inline functions that are not inline.
12679         * ipa-inline-transform.c (inline_transform): Always call
12680         optimize_inline.
12681         * tree-inline.c (tree_inlinable_function_p): Use error instead
12682         of sorry.
12683         (expand_call_inline): Likewise.
12684
12685 2011-06-21  Jakub Jelinek  <jakub@redhat.com>
12686
12687         * Makefile.in (dg_target_exps): Set.
12688         (check_gcc_parallelize): Parallelize gcc testing into 10 jobs
12689         instead of 7, try to divide it more evenly.
12690
12691 2011-06-20  Changpeng Fang  <changpeng.fang@amd.com>
12692
12693         PR target/49089
12694         * config/i386/i386.c (avx256_split_unaligned_load): New definition.
12695         (avx256_split_unaligned_store): New definition.
12696         (ix86_option_override_internal): Enable avx256 unaligned load/store
12697         splitting only when avx256_split_unaligned_load/store is set.
12698
12699 2011-06-20  Bernd Schmidt  <bernds@codesourcery.com>
12700
12701         * regrename.c (scan_rtx_reg): Handle the case where we write to an
12702         open chain in a smaller mode without failing the entire block.
12703
12704 2011-06-21  Alan Modra  <amodra@gmail.com>
12705
12706         * config/rs6000/rs6000.c (rs6000_cannot_force_const_mem): Match
12707         CONST high part large-toc address.
12708         (rs6000_tls_referenced_p): Make static.
12709         * config/rs6000/rs6000-protos.h (rs6000_tls_referenced_p): Delete.
12710
12711 2011-06-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
12712
12713         PR target/49385
12714         * config/arm/thumb2.md (*thumb2_movhi_insn): Make sure atleast
12715         one of the operands is a register.
12716
12717 2011-06-20  Kai Tietz  <ktietz@redhat.com>
12718
12719         * fold-const.c (fold_binary_loc): Add missing folding for truth-not
12720         operations in combination with binary and.
12721
12722 2011-06-20  Bernd Schmidt  <bernds@codesourcery.com>
12723
12724         * regrename.c (do_replace): Don't update notes.
12725
12726 2011-06-20  Alan Modra  <amodra@gmail.com>
12727
12728         * config/rs6000/rs6000.c (create_TOC_reference): Wrap high part
12729         of toc-relative address in CONST.
12730         (rs6000_delegitimize_address): Recognize changed address.
12731         (rs6000_legitimize_reload_address): Likewise.
12732         (rs6000_emit_move): Don't force these constants to memory.
12733         * config/rs6000/rs6000.md (tls_gd, tls_gd_high): Wrap high part of
12734         toc-relative address in CONST.
12735         (tls_ld, tls_ld_high, tls_got_dtprel, tls_got_dtprel_high): Likewise.
12736         (tls_got_tprel, tls_got_tprel_high, largetoc_high): Likewise.
12737
12738 2011-06-18  H.J. Lu  <hongjiu.lu@intel.com>
12739
12740         * longlong.h (count_leading_zeros): Use long long builtin for x86-64.
12741         (count_trailing_zeros): Likewise.
12742
12743 2011-06-18  H.J. Lu  <hongjiu.lu@intel.com>
12744
12745         PR other/49325
12746         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Properly check if
12747         .init_array can be used with .ctors on targets.
12748         * configure: Regenerated.
12749
12750 2011-06-18  Eric Botcazou  <ebotcazou@adacore.com>
12751
12752         * tree-sra.c (type_internals_preclude_sra_p) <ARRAY_TYPE>: Return true
12753         if the element type is volatile.
12754
12755 2011-06-18  Jan Hubicka  <jh@suse.cz>
12756
12757         * lto-symtab.c (lto_varpool_replace_node): Remove code handling
12758         extra name aliases.
12759         (lto_symtab_resolve_can_prevail_p): Likewise.
12760         (lto_symtab_merge_cgraph_nodes): Update alias_of pointers.
12761         * cgraphbuild.c (record_reference): Remove extra body alias code.
12762         (mark_load): Likewise.
12763         (mark_store): Likewise.
12764         * cgraph.h (varpool_node): Remove extra_name filed;
12765         add alias_of and extraname_alias.
12766         (varpool_create_variable_alias, varpool_for_node_and_aliases): Declare.
12767         (varpool_alias_aliased_node): New inline function.
12768         (varpool_variable_node): New function.
12769         * cgraphunit.c (handle_alias_pairs): Handle also variable aliases.
12770         * ipa-ref.c (ipa_record_reference): Allow aliases on variables.
12771         * lto-cgraph.c (lto_output_varpool_node): Update streaming.
12772         (input_varpool_node): Likewise.
12773         * lto-streamer-out.c (produce_symtab): Remove extra name aliases.
12774         (varpool_externally_visible_p): Remove extra body alias code.
12775         (function_and_variable_visibility): Likewise.
12776         * tree-ssa-structalias.c (associate_varinfo_to_alias_1): New function.
12777         (ipa_pta_execute): Use it.
12778         * varpool.c (varpool_remove_node): Remove extra name alias code.
12779         (varpool_mark_needed_node): Likewise.
12780         (varpool_analyze_pending_decls): Analyze aliases.
12781         (assemble_aliases): New functoin.
12782         (varpool_assemble_decl): Use it.
12783         (varpool_create_variable_alias): New function.
12784         (varpool_extra_name_alias): Rewrite.
12785         (varpool_for_node_and_aliases): New function.
12786
12787 2011-06-18  Jakub Jelinek  <jakub@redhat.com>
12788
12789         PR target/49411
12790         * config/i386/i386.c (ix86_expand_multi_arg_builtins): If
12791         last_arg_constant and last argument doesn't match its predicate,
12792         for xop_vpermil2<mode>3 error out and for xop_rotl<mode>3
12793         if it is CONST_INT, mask it, otherwise expand using rotl<mode>3.
12794         (ix86_expand_sse_pcmpestr, ix86_expand_sse_pcmpistr): Fix
12795         spelling of error message.
12796         * config/i386/sse.md (sse4a_extrqi, sse4a_insertqi,
12797         vcvtps2ph, *vcvtps2ph, *vcvtps2ph_store, vcvtps2ph256): Use
12798         const_0_to_255_operand instead of const_int_operand.
12799
12800         Revert:
12801         2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
12802
12803         * config/i386/sse.md (blendbits): Remove mode attribute.
12804         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
12805         instead of const_0_to_<blendbits>_operand for operand 3 predicate.
12806         Check integer value of operand 3 in insn constraint.
12807
12808 2011-06-17  Hans-Peter Nilsson  <hp@axis.com>
12809
12810         PR rtl-optimization/48542
12811         * reload.c (find_equiv_reg): Stop looking when finding a
12812         setjmp-type call.
12813         * reload1.c (reload_as_needed): Invalidate all reload
12814         registers when crossing a setjmp-type call.
12815
12816 2011-06-16  Jeff Law  <law@redhat.com>
12817
12818         * tree-ssa-threadupdate.c (struct redirection_data): New field
12819         intermediate_edge.
12820         (THREAD_TARGET2): Define.
12821         (redirection_data_eq): Also check that the intermediate edge is equal.
12822         (lookup_redirection_data): Drop useless argument.  Extract the
12823         outgoing_edge and intermediate edge from E.  Callers updated.
12824         (copy_phi_args, update_destination_phis): New functions.
12825         (fix_duplicate_block_edges): Likewise.
12826         (create_edge_and_update_destination_phis): Duplicate all the edges
12827         hung off e->aux.  Use copy_phi_args.
12828         (create_duplicates): Use fix_duplicate_block_edges.
12829         (fixup_template_block): Likewise.
12830         (redirect_edges): If necessary, redirect the joiner block's incoming
12831         edge to the duplicate of the joiner block.
12832         (thread_block): Don't muck up loops when threading through a joiner
12833         block.
12834         (thread_through_loop_header): Handle threading through a joiner block.
12835         (mark_threaded_blocks, register_jump_thread): Likewise.
12836         * tree-flow.h (register_jump_thread): Add new argument.  Callers
12837         updated.
12838         * tree-ssa-threadedge.c (phi_args_equal_on_edges): New function.
12839         (thread_across_edge): Handle threading through a joiner block.
12840
12841 2011-06-16  Martin Jambor  <mjambor@suse.cz>
12842
12843         PR tree-optimization/49343
12844         * tree-sra.c (build_ref_for_model): Use component_ref_field_offset to
12845         calculate offset, provide 2nd operand for the new COMPONENT_REF.
12846
12847 2011-06-16  Iain Sandoe  <iains@gcc.gnu.org>
12848
12849         * config/darwin-protos.h (machopic_select_rtx_section): Move to
12850         inside RTX_CODE ifdef.
12851
12852 2011-06-16  Tom de Vries  <tom@codesourcery.com>
12853
12854         PR target/45098
12855         * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith):
12856         Disallow NULL pointer for pointer arithmetic.
12857
12858 2011-06-16  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
12859
12860         PR target/49398
12861         Revert.
12862         2011-06-10  Wei Guozhi  <carrot@google.com>
12863
12864         PR target/45335
12865         * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
12866         stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
12867         (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
12868         related peephole2.
12869         (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
12870         related peephole2.
12871         * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
12872         (arm_legitimate_ldrd_p): New prototype.
12873         (arm_output_ldrd): New prototype.
12874         * config/arm/arm.c (arm_check_ldrd_operands): New function.
12875         (arm_legitimate_ldrd_p): New function.
12876         (arm_output_ldrd): New function.
12877
12878 2011-06-16  Joern Rennecke  <joern.rennecke@embecosm.com>
12879
12880         PR middle-end/46500
12881         * doc/tm.texi.in: Update Copyright date.
12882         * doc/tm.texi: Regenerate.
12883         * targhooks.c (default_setup_incoming_varargs): Replace
12884         CUMULATIVE_ARGS* argument type with cumulative_args_t.
12885         (default_pretend_outgoing_varargs_named): Likewise.
12886         (hook_pass_by_reference_must_pass_in_stack): Likewise.
12887         (hook_callee_copies_named): Likewise.
12888         (default_function_arg_advance): Likewise.
12889         (default_function_arg): Likewise.
12890         (default_function_incoming_arg): Likewise.
12891         (hook_bool_CUMULATIVE_ARGS_false): Likewise.
12892         (hook_bool_CUMULATIVE_ARGS_true): Likewise.
12893         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
12894         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
12895         (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
12896         * targhooks.h (default_setup_incoming_varargs): Likewise.
12897         (default_pretend_outgoing_varargs_named): Likewise.
12898         (hook_pass_by_reference_must_pass_in_stack): Likewise.
12899         (hook_callee_copies_named): Likewise.
12900         (default_function_arg_advance): Likewise.
12901         (default_function_arg): Likewise.
12902         (default_function_incoming_arg): Likewise.
12903         (hook_bool_CUMULATIVE_ARGS_false): Likewise.
12904         (hook_bool_CUMULATIVE_ARGS_true): Likewise.
12905         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
12906         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
12907         (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
12908         * target.def (pass_by_reference): Likewise.
12909         (setup_incoming_varargs, strict_argument_naming): Likewise.
12910         (pretend_outgoing_varargs_named, callee_copies): Likewise.
12911         (arg_partial_bytes, function_arg_advance, function_arg): Likewise.
12912         (function_incoming_arg): Likewise.
12913         * target.h: Don't include "tm.h" .
12914         (cumulative_args_t): New typedef.
12915         [GCC_TM_H] (get_cumulative_args): New static inline function.
12916         [GCC_TM_H] (pack_cumulative_args): Likewise.
12917         * config/alpha/alpha.c (alpha_function_arg): Replace CUMULATIVE_ARGS*
12918         argument type with cumulative_args_t.
12919         (alpha_function_arg_advance, alpha_arg_partial_bytes): Likewise.
12920         (alpha_pass_by_reference, alpha_setup_incoming_varargs): Likewise.
12921         * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
12922         (frv_arg_partial_bytes, frv_function_arg): Likewise.
12923         (frv_function_incoming_arg, frv_function_arg_advance): Likewise.
12924         (frv_function_arg_1): Likewise.
12925         * config/s390/s390.c (s390_pass_by_reference): Likewise.
12926         (s390_function_arg_advance, s390_function_arg): Likewise.
12927         * config/m32c/m32c.c (m32c_function_arg): Likewise.
12928         (m32c_pass_by_reference, m32c_function_arg_advance): Likewise.
12929         (m32c_strict_argument_naming): Likewise.
12930         * config/spu/spu.c (spu_pass_by_reference, spu_function_arg): Likewise.
12931         (spu_function_arg_advance): Likewise.
12932         (spu_setup_incoming_varargs): Likewise.  Make static.
12933         * config/spu/spu-protos.h (spu_setup_incoming_varargs):
12934         Remove prototype.
12935         * config/sparc/sparc.c (sparc_strict_argument_naming): Replace
12936         CUMULATIVE_ARGS* argument type with cumulative_args_t.
12937         (sparc_pass_by_reference, sparc_function_arg_advance): Likewise.
12938         (sparc_function_arg, sparc_function_incoming_arg): Likewise.
12939         (sparc_arg_partial_bytes, sparc_function_arg_1): Likewise.
12940         * config/mep/mep.c (mep_setup_incoming_varargs): Likewise.
12941         (mep_pass_by_reference, mep_function_arg): Likewise.
12942         (mep_function_arg_advance): Likewise.
12943         * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
12944         (m32r_pass_by_reference, m32r_arg_partial_bytes): Likewise.
12945         (m32r_function_arg, m32r_function_arg_advance): Likewise.
12946         * config/rx/rx.c (rx_function_arg, rx_function_arg_advance): Likewise.
12947         * config/i386/i386.c (ix86_function_arg_advance): Likewise.
12948         (ix86_function_arg, ix86_pass_by_reference): Likewise.
12949         (ix86_setup_incoming_varargs): Likewise.
12950         * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
12951         (sh_strict_argument_naming): Likewise.
12952         (sh_pretend_outgoing_varargs_named, sh_pass_by_reference): Likewise.
12953         (sh_callee_copies, sh_arg_partial_bytes): Likewise.
12954         (sh_function_arg_advance, sh_function_arg): Likewise.
12955         * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
12956         (pdp11_function_arg_advance): Likewise.
12957         * config/microblaze/microblaze.c (microblaze_function_arg_advance):
12958         Likewise.
12959         (microblaze_function_arg, function_arg_partial_bytes): Likewise.
12960         * config/avr/avr.c (avr_function_arg): Likewise.
12961         (avr_function_arg_advance): Likewise.
12962         * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
12963         (xtensa_function_arg, xtensa_function_incoming_arg): Likewise.
12964         (xtensa_function_arg_1): Likewise.
12965         * config/stormy16/stormy16.c (xstormy16_function_arg_advance):
12966         Likewise.
12967         (xstormy16_function_arg): Likewise.
12968         * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
12969         (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
12970         (fr30_function_arg_advance): Likewise.
12971         * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
12972         (lm32_function_arg, lm32_function_arg_advance): Likewise.
12973         * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
12974         (moxie_function_arg, moxie_function_arg_advance): Likewise.
12975         (moxie_pass_by_reference, moxie_arg_partial_bytes): Likewise.
12976         * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
12977         (cris_pass_by_reference, cris_arg_partial_bytes): Likewise.
12978         (cris_function_arg, cris_function_incoming_arg): Likewise.
12979         (cris_function_arg_advance, cris_function_arg_1): Likewise.
12980         * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
12981         (iq2000_pass_by_reference, iq2000_arg_partial_bytes): Likewise.
12982         (iq2000_function_arg, iq2000_function_arg_advance): Likewise.
12983         * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
12984         (mn10300_function_arg, mn10300_function_arg_advance): Likewise.
12985         (mn10300_arg_partial_bytes): Likewise.
12986         * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
12987         (ia64_arg_partial_bytes, ia64_function_arg): Likewise.
12988         (ia64_function_incoming_arg, ia64_function_arg_advance): Likewise.
12989         (ia64_function_arg_1): Likewise.
12990         * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
12991         (m68k_function_arg): Likewise.
12992         * config/rs6000/rs6000.c (rs6000_function_arg_advance): Likewise.
12993         (rs6000_function_arg, setup_incoming_varargs): Likewise.
12994         (rs6000_pass_by_reference, rs6000_arg_partial_bytes): Likewise.
12995         * config/picochip/picochip.c (picochip_arg_partial_bytes): Likewise.
12996         (picochip_function_arg, picochip_incoming_function_arg): Likewise.
12997         (picochip_arg_advance): Likewise.
12998         * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
12999         (mcore_arg_partial_bytes, mcore_function_arg): Likewise.
13000         (mcore_function_arg_advance): Likewise.
13001         * config/score/score.c (score_pass_by_reference): Likewise.
13002         (score_function_arg_advance): Likewise.
13003         (score_arg_partial_bytes): Likewise.  Make static.
13004         * config/score/score-protos.h (score_arg_partial_bytes): Don't declare.
13005         * config/arm/arm.c (arm_arg_partial_bytes): Replace
13006         CUMULATIVE_ARGS* argument type with cumulative_args_t.
13007         (arm_function_arg, arm_function_arg_advance): Likewise.
13008         (arm_setup_incoming_varargs, arm_pass_by_reference): Likewise.
13009         * config/pa/pa.c (pa_pass_by_reference): Likewise.
13010         (pa_arg_partial_bytes, pa_function_arg_advance): Likewise.
13011         (pa_function_arg): Likewise.
13012         * config/mips/mips.c (mips_strict_argument_naming): Likewise.
13013         (mips_function_arg, mips_function_arg_advance): Likewise.
13014         (mips_arg_partial_bytes, mips_pass_by_reference): Likewise.
13015         (mips_callee_copies, mips_setup_incoming_varargs): Likewise.
13016         * config/vax/vax.c (vax_function_arg): Likewise.
13017         (vax_function_arg_advance): Likewise.
13018         * config/h8300/h8300.c (h8300_function_arg): Likewise.
13019         (h8300_function_arg_advance): Likewise.
13020         * config/v850/v850.c (v850_pass_by_reference): Likewise.
13021         (v850_strict_argument_naming, v850_function_arg): Likewise.
13022         (v850_arg_partial_bytes, v850_function_arg_advance): Likewise.
13023         (v850_setup_incoming_varargs): Likewise.
13024         * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
13025         (mmix_function_arg_advance, mmix_function_incoming_arg): Likewise.
13026         (mmix_function_arg, mmix_pass_by_reference): Likewise.
13027         (mmix_function_arg_1): Replace const CUMULATIVE_ARGS* argument type
13028         with const void *.
13029         * config/bfin/bfin.c (setup_incoming_varargs): Replace
13030         CUMULATIVE_ARGS* argument type with cumulative_args_t.
13031         (bfin_function_arg_advance, bfin_function_arg): Likewise.
13032         (bfin_arg_partial_bytes, bfin_pass_by_reference): Likewise.
13033         * calls.c (emit_call_1): Change type of args_so_far to
13034         cumulative_args_t.  Changed all callers.
13035         (initialize_argument_information): Likewise.
13036         (expand_call, emit_library_call_value_1): Use pack_cumulative_args.
13037         * dse.c (get_call_args): Likewise.
13038         * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
13039         * function.c (pass_by_reference, reference_callee_copied): Likewise.
13040         (struct assign_parm_data_all): Rename args_so_far to args_so_far_v.
13041         New member args_so_far_v.  Changed all users.
13042         * var-tracking.c (prepare_call_arguments): Use pack_cumulative_args.
13043         * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
13044         * config/mips/mips.c (mips_output_args_xfer): Likewise.
13045         * config/s390/s390.c (s390_call_saved_register_used): Likewise.
13046         * config/sh/sh.c (sh_output_mi_thunk): Likewise.
13047         * config/microblaze/microblaze.c (microblaze_expand_prologue):
13048         Likewise.
13049         * config/m32r/m32r.c (m32r_return_in_memory): Adjust for changed
13050         m32r_pass_by_reference.
13051
13052 2011-06-16  Ira Rosen  <ira.rosen@linaro.org>
13053
13054         * tree-vectorizer.h (vect_recog_func_ptr): Change the first
13055         argument to be a VEC of statements.
13056         * tree-vect-loop.c (vect_determine_vectorization_factor): Remove the
13057         assert that pattern statements have to have their vector type set.
13058         * tree-vect-patterns.c (vect_recog_widen_sum_pattern):
13059         Change the first argument to be a VEC of statements.  Update
13060         documentation.
13061         (vect_recog_dot_prod_pattern, vect_recog_pow_pattern): Likewise.
13062         (vect_handle_widen_mult_by_const): New function.
13063         (vect_recog_widen_mult_pattern):  Change the first argument to be a
13064         VEC of statements.  Update documentation.  Check that the constant is
13065         INTEGER_CST.  Support multiplication by a constant that fits an
13066         intermediate type - call vect_handle_widen_mult_by_const.
13067         (vect_pattern_recog_1): Update vect_recog_func_ptr and its
13068         call.  Handle additional pattern statements if necessary.
13069
13070 2011-06-16  Nick Clifton  <nickc@redhat.com>
13071
13072         PR target/49427
13073         * config.gcc: Set cpu_type to v850 for any V850 architecture.
13074         (v850*-*-*): Delete explicit setting of tm_p_file, tmake_file,
13075         md_file, extra_modes, out_file and extra_options are these are all
13076         deduced from cpu_type.
13077
13078 2011-06-16  Georg-Johann Lay  <avr@gjlay.de>
13079
13080         * config/avr/libgcc.S (__ashldi3, __ashrdi3, __lshrdi3): Set shift
13081         truncation mask to 63.
13082
13083 2011-06-16  Georg-Johann Lay  <avr@gjlay.de>
13084
13085         PR target/49313
13086         PR target/29524
13087         * longlong.h: Add AVR support:
13088         (count_leading_zeros): New macro.
13089         (count_trailing_zeros): New macro.
13090         (COUNT_LEADING_ZEROS_0): New macro.
13091         * config/avr/t-avr (LIB1ASMFUNCS): Add _ffssi2, _ffshi2, _loop_ffsqi2,
13092         _ctzsi2, _ctzhi2, _clzdi2, _clzsi2, _clzhi2, _paritydi2, _paritysi2,
13093         _parityhi2, _popcounthi2,_popcountsi2, _popcountdi2, _popcountqi2,
13094         _bswapsi2, _bswapdi2, _ashldi3, _ashrdi3, _lshrdi3.
13095         (LIB2FUNCS_EXCLUDE): Add _clz.
13096         * config/avr/libgcc.S (XCALL): Move up in file.
13097         (XJMP): New C Macro.
13098         (DEFUN): New asm macro.
13099         (ENDF): New asm macro.
13100         (__ffssi2): New function.
13101         (__ffshi2): New function.
13102         (__loop_ffsqi2): New function.
13103         (__ctzsi2): New function.
13104         (__ctzhi2): New function.
13105         (__clzdi2): New function.
13106         (__clzsi2): New function.
13107         (__clzhi2): New function.
13108         (__paritydi2): New function.
13109         (__paritysi2): New function.
13110         (__parityhi2): New function.
13111         (__parityqi2): New function.
13112         (__popcounthi2): New function.
13113         (__popcountsi2): New function.
13114         (__popcountdi2): New function.
13115         (__popcountqi2): New function.
13116         (__bswapsi2): New function.
13117         (__bswapdi2): New function.
13118         (__ashldi3): New function.
13119         (__ashrdi3): New function.
13120         (__lshrdi3): New function.
13121         Fix suspicous lines.
13122
13123 2011-06-16  Richard Guenther  <rguenther@suse.de>
13124
13125         * gimple.c (canonicalize_cond_expr_cond): (bool)x is not
13126         the same as x != 0.
13127         * fold-const.c (fold_binary_loc): Do not fold X & 1 != 0
13128         to (bool) X & 1.
13129         * ipa-prop.c (ipa_analyze_indirect_call_uses): Also allow
13130         equality compares against zero for the lower bit.
13131
13132 2011-06-16  Jakub Jelinek  <jakub@redhat.com>
13133
13134         PR tree-optimization/49419
13135         * tree-vrp.c (execute_vrp): Call init_range_assertions
13136         before estimate_numbers_of_iterations, call
13137         free_number_of_iterations_estimates before calling
13138         remove_range_assertions.
13139
13140 2011-06-16  Revital Eres  <revital.eres@linaro.org>
13141
13142         * modulo-sched.c (struct ps_insn): Remove row_rest_count field.
13143         (struct partial_schedule): Add rows_length field.
13144         (verify_partial_schedule): Check rows_length.
13145         (ps_insert_empty_row): Handle rows_length.
13146         (create_partial_schedule): Likewise.
13147         (free_partial_schedule): Likewise.
13148         (reset_partial_schedule): Likewise.
13149         (create_ps_insn): Remove rest_count argument.
13150         (remove_node_from_ps): Update rows_length.
13151         (add_node_to_ps): Update rows_length and call create_ps_insn
13152         without passing row_rest_count.
13153         (rotate_partial_schedule): Update rows_length.
13154
13155 2011-06-16  Revital Eres  <revital.eres@linaro.org>
13156
13157         * ddg.c (add_intra_loop_mem_dep): New function.
13158         (build_intra_loop_deps): Call it.
13159
13160 2011-06-13  Jeff Law  <law@redhat.com>
13161
13162         * df-problems.c (df_lr_local_compute): Manually CSE
13163         PIC_OFFSET_TABLE_REGNUM.
13164         * df-scan.c (df_get_regular_block_artificial_uses): Likewise.
13165         (df_get_entry_block_def_set, df_get_exit_block_use_set): Likewise.
13166
13167 2011-06-13  Jan Hubicka  <jh@suse.cz>
13168
13169         * cgraphunit.c (handle_alias_pairs): New function.
13170         (cgraph_finalize_compilation_unit): Use it.
13171         * ipa.c (cgraph_externally_visible_p): Remove hack marking asm names
13172         as externally visible.
13173
13174 2011-06-15  Richard Guenther  <rguenther@suse.de>
13175
13176         * expr.c (expand_expr_real_2): Reduce all integral types to
13177         bitfield precision.
13178         (expand_expr_real_1): Likewise.
13179
13180 2011-06-15  Martin Jambor  <mjambor@suse.cz>
13181
13182         PR tree-optimization/48613
13183         * ipa-prop.c (ipa_prop_write_jump_functions): Return immediately if
13184         ipa_node_params_vector is NULL.
13185
13186 2011-06-15  Jakub Jelinek  <jakub@redhat.com>
13187
13188         PR debug/49382
13189         * dwarf2out.c (dw_loc_list_node): Add force field.
13190         (add_var_loc_to_decl): For PARM_DECL, attempt to keep the incoming
13191         location in the list, even if it is modified before first real insn.
13192         (output_loc_list): Emit empty ranges with force flag set.
13193         (dw_loc_list): If first range of a PARM_DECL is empty, set force flag.
13194
13195 2011-06-15  Alexander Monakov  <amonakov@ispras.ru>
13196
13197         PR target/49349
13198         * sel-sched.c (find_place_for_bookkeeping): Add new parameter
13199         (fence_to_rewind).  Use it to notice when bookkeeping will be placed
13200         above a fence.  Update comments.
13201         (generate_bookkeeping_insn): Rewind fence when bookkeeping code is
13202         placed just above it.  Do not allow NULL place_to_insert.
13203
13204 2011-06-15  Ira Rosen  <ira.rosen@linaro.org>
13205
13206         * tree-vect-loop-manip.c (remove_dead_stmts_from_loop): Remove.
13207         (slpeel_tree_peel_loop_to_edge): Don't call
13208         remove_dead_stmts_from_loop.
13209         * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
13210         remove irrelevant pattern statements.  For irrelevant statements
13211         check if it is the last statement of a detected pattern, use
13212         corresponding pattern statement instead.
13213         (destroy_loop_vec_info): No need to remove pattern statements,
13214         only free stmt_vec_info.
13215         (vect_transform_loop): For irrelevant statements check if it is
13216         the last statement of a detected pattern, use corresponding
13217         pattern statement instead.
13218         * tree-vect-patterns.c (vect_pattern_recog_1): Don't insert
13219         pattern statements.  Set basic block for the new statement.
13220         (vect_pattern_recog): Update documentation.
13221         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Scan
13222         operands of pattern statements.
13223         (vectorizable_call): Fix printing.  In case of a pattern statement
13224         use the lhs of the original statement when creating a dummy
13225         statement to replace the original call.
13226         (vect_analyze_stmt): For irrelevant statements check if it is
13227         the last statement of a detected pattern, use corresponding
13228         pattern statement instead.
13229         * tree-vect-slp.c (vect_schedule_slp_instance): For pattern
13230         statements use gsi of the original statement.
13231
13232 2011-06-14  Joseph Myers  <joseph@codesourcery.com>
13233
13234         * target-def.h (TARGET_HAVE_NAMED_SECTIONS): Move to
13235         common/common-target-def.h.
13236         * target.def (default_target_flags, handle_option,
13237         supports_split_stack, optimization_table, init_struct,
13238         except_unwind_info, unwind_tables_default, have_named_sections):
13239         Move to common/common-target.def.
13240         * target.h (enum opt_levels, struct default_options): Move to
13241         common/common-target.h.
13242         * targhooks.c (default_except_unwind_info,
13243         dwarf2_except_unwind_info, sjlj_except_unwind_info,
13244         default_target_handle_option, empty_optimization_table): Move to
13245         common/common-targhooks.c.
13246         * targhooks.h (default_except_unwind_info,
13247         dwarf2_except_unwind_info, sjlj_except_unwind_info,
13248         default_target_handle_option, empty_optimization_table): Move to
13249         common/common-targhooks.h.
13250         * common/common-target-def.h: Include common/common-targhooks.h.
13251         (TARGET_HAVE_NAMED_SECTIONS): Define if TARGET_ASM_NAMED_SECTION
13252         defined.
13253         * common/common-target.def (handle_option, option_init_struct,
13254         option_optimization_table, default_target_flags,
13255         except_unwind_info, supports_split_stack, unwind_tables_default,
13256         have_named_sections): Move from target.def.
13257         (HOOK_PREFIX): Undefine at end of file.
13258         * common/common-target.h: Include input.h.
13259         (enum opt_levels, struct default_options): Move from target.h.
13260         * common/common-targhooks.c, common/common-targhooks.h: New.
13261         * config.gcc (target_has_targetm_common): Default to yes.
13262         (moxie*): Set target_has_targetm_common=no.
13263         (hppa*-*-*): Don't set target_has_targetm_common=yes.
13264         * doc/tm.texi: Regenerate.
13265         * Makefile.in (COMMON_TARGET_H): Add $(INPUT_H).
13266         (C_TARGET_DEF_H): Add common/common-targhooks.h.
13267         (GCC_OBJS): Remove vec.o.
13268         (OBJS): Remove hooks.o and vec.o.
13269         (OBJS-libcommon-target): Add vec.o, hooks.o and
13270         common/common-targhooks.o.
13271         (c-family/c-common.o, c-family/c-cppbuiltin.o, lto-opts.o, tree.o,
13272         tree-tailcall.o, opts.o, toplev.o, varasm.o, function.o, except.o,
13273         expr.o, explow.o, dbxout.o, dwarf2out.o, cfgrtl.o, haifa-sched.o,
13274         cfglayout.o, $(out_object_file), $(common_out_object_file)):
13275         Update dependencies.
13276         (common/common-targhooks.o): New.
13277         * common/config/default-common.c: Include tm.h.  Add FIXME comment.
13278         * common/config/pa/pa-common.c: Include more headers.  Take
13279         copyright dates from pa.c.
13280         (pa_option_optimization_table, pa_handle_option,
13281         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS,
13282         TARGET_HANDLE_OPTION): Move from pa.c.
13283         * common/config/alpha/alpha-common.c,
13284         common/config/arm/arm-common.c, common/config/avr/avr-common.c,
13285         common/config/bfin/bfin-common.c,
13286         common/config/cris/cris-common.c,
13287         common/config/fr30/fr30-common.c, common/config/frv/frv-common.c,
13288         common/config/h8300/h8300-common.c,
13289         common/config/i386/i386-common.c,
13290         common/config/ia64/ia64-common.c,
13291         common/config/iq2000/iq2000-common.c,
13292         common/config/lm32/lm32-common.c,
13293         common/config/m32c/m32c-common.c,
13294         common/config/m32r/m32r-common.c,
13295         common/config/m68k/m68k-common.c,
13296         common/config/mcore/mcore-common.c,
13297         common/config/mep/mep-common.c,
13298         common/config/microblaze/microblaze-common.c,
13299         common/config/mips/mips-common.c,
13300         common/config/mmix/mmix-common.c,
13301         common/config/mn10300/mn10300-common.c,
13302         common/config/pdp11/pdp11-common.c,
13303         common/config/picochip/picochip-common.c,
13304         common/config/rs6000/rs6000-common.c,
13305         common/config/rx/rx-common.c, common/config/s390/s390-common.c,
13306         common/config/score/score-common.c, common/config/sh/sh-common.c,
13307         common/config/sparc/sparc-common.c,
13308         common/config/spu/spu-common.c, common/config/v850/v850-common.c,
13309         common/config/vax/vax-common.c,
13310         common/config/xstormy16/xstormy16-common.c,
13311         common/config/xtensa/xtensa-common.c: New.
13312         * config/alpha/alpha.c: Include common/common-target.h.
13313         (alpha_option_optimization_table, alpha_handle_option,
13314         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
13315         TARGET_OPTION_OPTIMIZATION_TABLE): Move to alpha-common.c.
13316         * config/arm/arm-protos.h (arm_except_unwind_info): Declare.
13317         * config/arm/arm.c (arm_option_optimization_table,
13318         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
13319         TARGET_EXCEPT_UNWIND_INFO, arm_except_unwind_info): Move to
13320         arm-common.c.
13321         * config/avr/avr.c (avr_option_optimization_table,
13322         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
13323         to avr-common.c.
13324         * config/bfin/bfin.c (struct bfin_cpu): Move to bfin.h.
13325         (bfin_cpus, bfin_handle_option, TARGET_HANDLE_OPTION,
13326         TARGET_DEFAULT_TARGET_FLAGS): Move to bfin-common.c.
13327         * config/bfin/bfin.h struct bfin_cpu): Move from bfin.c.
13328         * config/cris/cris.c (cris_option_optimization_table,
13329         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
13330         TARGET_OPTION_OPTIMIZATION_TABLE, cris_handle_option): Move to
13331         cris-common.c.
13332         * config/fr30/fr30.c (fr30_option_optimization_table,
13333         TARGET_EXCEPT_UNWIND_INFO, TARGET_OPTION_OPTIMIZATION_TABLE): Move
13334         to fr30-common.c.
13335         * config/frv/frv.c (frv_option_optimization_table,
13336         MASK_DEFAULT_ALLOC_CC, TARGET_DEFAULT_TARGET_FLAGS,
13337         TARGET_OPTION_OPTIMIZATION_TABLE): Move to frv-common.c.
13338         * config/h8300/h8300.c (h8300_option_optimization_table,
13339         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
13340         TARGET_EXCEPT_UNWIND_INFO): Move to h8300-common.c.
13341         * config/i386/i386-protos.h (ix86_handle_option): Declare.
13342         * config/i386/i386.c: Include common/common-target.h.
13343         (OPTION_MASK_ISA_MMX_SET, OPTION_MASK_ISA_3DNOW_SET,
13344         OPTION_MASK_ISA_SSE_SET, OPTION_MASK_ISA_SSE2_SET,
13345         OPTION_MASK_ISA_SSE3_SET, OPTION_MASK_ISA_SSSE3_SET,
13346         OPTION_MASK_ISA_SSE4_1_SET, OPTION_MASK_ISA_SSE4_2_SET,
13347         OPTION_MASK_ISA_AVX_SET, OPTION_MASK_ISA_FMA_SET,
13348         OPTION_MASK_ISA_SSE4_SET, OPTION_MASK_ISA_SSE4A_SET,
13349         OPTION_MASK_ISA_FMA4_SET, OPTION_MASK_ISA_XOP_SET,
13350         OPTION_MASK_ISA_LWP_SET, OPTION_MASK_ISA_AES_SET,
13351         OPTION_MASK_ISA_PCLMUL_SET, OPTION_MASK_ISA_ABM_SET,
13352         OPTION_MASK_ISA_BMI_SET, OPTION_MASK_ISA_TBM_SET,
13353         OPTION_MASK_ISA_POPCNT_SET, OPTION_MASK_ISA_CX16_SET,
13354         OPTION_MASK_ISA_SAHF_SET, OPTION_MASK_ISA_MOVBE_SET,
13355         OPTION_MASK_ISA_CRC32_SET, OPTION_MASK_ISA_FSGSBASE_SET,
13356         OPTION_MASK_ISA_RDRND_SET, OPTION_MASK_ISA_F16C_SET,
13357         OPTION_MASK_ISA_MMX_UNSET, OPTION_MASK_ISA_3DNOW_UNSET,
13358         OPTION_MASK_ISA_3DNOW_A_UNSET, OPTION_MASK_ISA_SSE_UNSET,
13359         OPTION_MASK_ISA_SSE2_UNSET, OPTION_MASK_ISA_SSE3_UNSET,
13360         OPTION_MASK_ISA_SSSE3_UNSET, OPTION_MASK_ISA_SSE4_1_UNSET,
13361         OPTION_MASK_ISA_SSE4_2_UNSET, OPTION_MASK_ISA_AVX_UNSET,
13362         OPTION_MASK_ISA_FMA_UNSET, OPTION_MASK_ISA_SSE4_UNSET,
13363         OPTION_MASK_ISA_SSE4A_UNSET, OPTION_MASK_ISA_FMA4_UNSET,
13364         OPTION_MASK_ISA_XOP_UNSET, OPTION_MASK_ISA_LWP_UNSET,
13365         OPTION_MASK_ISA_AES_UNSET, OPTION_MASK_ISA_PCLMUL_UNSET,
13366         OPTION_MASK_ISA_ABM_UNSET, OPTION_MASK_ISA_BMI_UNSET,
13367         OPTION_MASK_ISA_TBM_UNSET, OPTION_MASK_ISA_POPCNT_UNSET,
13368         OPTION_MASK_ISA_CX16_UNSET, OPTION_MASK_ISA_SAHF_UNSET,
13369         OPTION_MASK_ISA_MOVBE_UNSET, OPTION_MASK_ISA_CRC32_UNSET,
13370         OPTION_MASK_ISA_FSGSBASE_UNSET, OPTION_MASK_ISA_RDRND_UNSET,
13371         OPTION_MASK_ISA_F16C_UNSET, ix86_handle_option,
13372         ix86_option_optimization_table, ix86_option_init_struct,
13373         ix86_supports_split_stack, TARGET_DEFAULT_TARGET_FLAGS,
13374         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
13375         TARGET_OPTION_INIT_STRUCT, TARGET_SUPPORTS_SPLIT_STACK): Move to
13376         i386-common.c.
13377         * config/i386/t-i386 (i386.o): Update dependencies.
13378         * config/ia64/ia64-protos.h (ia64_except_unwind_info): Declare.
13379         * config/ia64/ia64.c (ia64_option_optimization_table,
13380         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
13381         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
13382         ia64_handle_option): Move to ia64-common.c.
13383         * config/iq2000/iq2000.c (iq2000_option_optimization_table,
13384         TARGET_OPTION_OPTIMIZATION_TABLE): Move to iq2000-common.c.
13385         * config/lm32/lm32.c (lm32_option_optimization_table,
13386         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
13387         to lm32-common.c.
13388         * config/m32c/m32c.c (TARGET_HAVE_NAMED_SECTIONS): Move to
13389         m32c-common.c.
13390         * config/m32r/m32r.c (m32r_option_optimization_table,
13391         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
13392         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
13393         m32r_handle_option): Move to m32r-common.c.
13394         (m32r_memory_move_cost): Remove comment referring to
13395         TARGET_HANDLE_OPTION.
13396         * config/m68k/m68k.c (TARGET_HANDLE_OPTION, m68k_handle_option):
13397         Move to m68k-common.c.
13398         * config/mcore/mcore.c (mcore_option_optimization_table,
13399         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
13400         TARGET_EXCEPT_UNWIND_INFO): Move to mcore-common.c.
13401         * config/mep/mep.c (mep_option_optimization_table,
13402         mep_handle_option, TARGET_HANDLE_OPTION,
13403         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS):
13404         Move to mep-common.c.
13405         * config/microblaze/microblaze.c
13406         (microblaze_option_optimization_table,
13407         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
13408         TARGET_EXCEPT_UNWIND_INFO): Move to microblaze-common.c.
13409         * config/mips/mips.c (mips_handle_option,
13410         mips_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
13411         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Move to
13412         mips-common.c.
13413         * config/mmix/mmix.c (mmix_option_optimization_table,
13414         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
13415         Move to mmix-common.c.
13416         * config/mn10300/mn10300.c (mn10300_option_optimization_table,
13417         mn10300_handle_option, TARGET_EXCEPT_UNWIND_INFO,
13418         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
13419         TARGET_OPTION_OPTIMIZATION_TABLE): Move to mn10300-common.c.
13420         * config/pa/pa.c: Include common/common-target.h.
13421         (pa_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
13422         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
13423         pa_handle_option): Move to pa-common.c.
13424         (pa_option_override): Use targetm_common.except_unwind_info.
13425         (pa_asm_output_mi_thunk, pa_function_section): Use
13426         targetm_common.have_named_sections.
13427         * config/pdp11/pdp11.c (pdp11_option_optimization_table,
13428         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
13429         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
13430         pdp11_handle_option, pdp11_option_init_struct): Move to
13431         pdp11-common.c.
13432         * config/picochip/picochip.c (picochip_option_optimization_table,
13433         TARGET_HAVE_NAMED_SECTIONS, TARGET_OPTION_OPTIMIZATION_TABLE,
13434         TARGET_EXCEPT_UNWIND_INFO): Move to picochip-common.c.
13435         * config/rs6000/rs6000.c: Include common/common-target.h.
13436         (rs6000_option_optimization_table, TARGET_HANDLE_OPTION,
13437         TARGET_OPTION_INIT_STRUCT, TARGET_OPTION_OPTIMIZATION_TABLE,
13438         TARGET_DEFAULT_TARGET_FLAGS, rs6000_option_init_struct,
13439         rs6000_handle_option): Move to rs6000-common.c.
13440         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
13441         * config/rx/rx.c (rx_handle_option, rx_option_optimization_table,
13442         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
13443         TARGET_EXCEPT_UNWIND_INFO): Move to rx-common.c.
13444         * config/s390/s390.c (processor_flags_table,
13445         s390_option_optimization_table, s390_option_init_struct,
13446         s390_handle_option, TARGET_DEFAULT_TARGET_FLAGS,
13447         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
13448         TARGET_OPTION_INIT_STRUCT): Move to s390-common.c.
13449         * config/s390/s390.h (processor_flags_table): Declare.
13450         * config/score/score.c (score_option_optimization_table,
13451         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
13452         TARGET_OPTION_OPTIMIZATION_TABLE, MASK_ALL_CPU_BITS,
13453         score_handle_option): Move to score-common.c.
13454         * config/sh/sh.c (sh_option_optimization_table,
13455         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
13456         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
13457         sh_handle_option, sh_option_init_struct): Move to sh-common.c.
13458         * config/sparc/sparc.c: Include common/common-target.h.
13459         (sparc_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
13460         TARGET_OPTION_OPTIMIZATION_TABLE): Move to sparc-common.c.
13461         * config/spu/spu.c (TARGET_DEFAULT_TARGET_FLAGS,
13462         TARGET_OPTION_INIT_STRUCT, TARGET_EXCEPT_UNWIND_INFO,
13463         spu_option_init_struct): Move to spu-common.c.
13464         * config/stormy16/stormy16.c (xstorym16_option_optimization_table,
13465         TARGET_OPTION_OPTIMIZATION_TABLE): Move to xstormy16-common.c.
13466         * config/v850/v850.c (small_memory_physical_max,
13467         v850_handle_memory_optionn v850_handle_option,
13468         v850_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
13469         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE): Move to
13470         v850-common.c.
13471         * config/vax/vax.c (TARGET_DEFAULT_TARGET_FLAGS): Move to vax-common.c.
13472         * config/xtensa/xtensa.c (xtensa_option_optimization_table,
13473         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
13474         Move to xtensa-common.c.
13475         * cfglayout.c: Include common/common-target.h.
13476         (fixup_reorder_chain): Use targetm_common.have_named_sections.
13477         * cfgrtl.c: Include common/common-target.h.
13478         (force_nonfallthru_and_redirect, commit_one_edge_insertion): Use
13479         targetm_common.have_named_sections.
13480         * dbxout.c: Include common/common-target.h.
13481         (dbxout_function_end): Use targetm_common.have_named_sections.
13482         * defaults.h (STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT): Use
13483         targetm_common.except_unwind_info.
13484         * dwarf2out.c: Include common/common-target.h.
13485         (dwarf2out_do_frame, dwarf2out_do_cfi_asm,
13486         dwarf2out_begin_prologue, dwarf2out_frame_init,
13487         dwarf2out_frame_finish, dwarf2out_assembly_start): Use
13488         targetm_common.except_unwind_info.
13489         * except.c: Include common/common-target.h.
13490         (init_eh, finish_eh_generation,
13491         output_one_function_exception_table): Use
13492         targetm_common.except_unwind_info.
13493         (switch_to_exception_section): Use targetm_common.have_named_sections.
13494         * explow.c: Include common/common-target.h.
13495         * expr.c: Include common/common-target.h.
13496         (build_personality_function): Use targetm_common.except_unwind_info.
13497         * function.c: Include common/common-target.h.
13498         (expand_function_end): Use targetm_common.except_unwind_info.
13499         * haifa-sched.c: Include common/common-target.h.
13500         (sched_create_recovery_edges): Use targetm_common.have_named_sections.
13501         * lto-opts.c: Include common/common-target.h instead of target.h.
13502         (lto_reissue_options): Use targetm_common.handle_option.
13503         * opts.c: Include common/common-target.h.
13504         (target_handle_option): Use targetm_common.handle_option.
13505         (init_options_struct): Update comment referring to
13506         targetm.target_option.optimization.  Use
13507         targetm_common.default_target_flags,
13508         targetm_common.unwind_tables_default and
13509         targetm_common.option_init_struct.
13510         (default_options_optimization): Use
13511         targetm_common.option_optimization_table.
13512         (finish_options): Use targetm_common.except_unwind_info,
13513         targetm_common.unwind_tables_default,
13514         targetm_common.have_named_sections and
13515         targetm_common.supports_split_stack.
13516         * toplev.c: Include common/common-target.h.
13517         (process_options): Use targetm_common.have_named_sections.
13518         * tree-tailcall.c: Include common/common-target.h.
13519         (suitable_for_tail_call_opt_p): Use targetm_common.except_unwind_info.
13520         * tree.c: Include common/common-target.h.
13521         (build_common_builtin_nodes): Use targetm_common.except_unwind_info.
13522         * varasm.c: Include common/common-target.h.
13523         (resolve_unique_section, hot_function_section,
13524         default_function_section): Use targetm_common.have_named_sections.
13525
13526 2011-06-14  Easwaran Raman  <eraman@google.com>
13527
13528         PR rtl-optimization/44194
13529         * dse.c: Include tree-flow.h
13530         (insn_info): Add new field non_frame_wild_read.
13531         (group_info): Add new fields escaped_n and escaped_p.
13532         (kill_on_calls): New variable.
13533         (get_group_info): Initialize gi->escaped_n and gi->escaped_p.
13534         (dse_step0): Initialize kill_on_calls.
13535         (can_escape): New function.
13536         (set_usage_bits): Add additional parameter; record information
13537         about escaped locations.
13538         (record_store): Pass EXPR corresponding to MEM to set_usage_bits.
13539         (dse_step2_nospill): Set kill_on_calls based on
13540         group->escaped_n and group->escaped_n.
13541         (add_wild_read): Refactor into...
13542         (reset_active_stores): ... New function, and
13543         (free_read_records): ... New function.
13544         (add_non_frame_wild_read): New function.
13545         (scan_insn): Call add_non_frame_wild_read on non-const calls.
13546         (scan_reads_nospill): Handle instructions with non_frame_wild_read.
13547         (dse_step5_nospill): Call scan_reads_nospill for instructions
13548         marked as non_frame_wild_read.
13549         (dse_step7): Free escaped_n, escaped_p and kill_on_calls bitmaps.
13550
13551 2011-06-14  Joseph Myers  <joseph@codesourcery.com>
13552
13553         * common/common-target-def.h, common/common-target.def,
13554         common/common-target.h, common/config/default-common.c,
13555         common/config/pa/pa-common.c: New files.
13556         * Makefile.in (common_out_file, common_out_object_file,
13557         COMMON_TARGET_H, COMMON_TARGET_DEF_H): New.
13558         (OBJS-libcommon-target): Include $(common_out_object_file).
13559         (prefix.o): Update dependencies.
13560         ($(common_out_object_file), common/common-target-hooks-def.h,
13561         s-common-target-hooks-def-h): New.
13562         (s-tm-texi): Also check timestamp on common-target.def.
13563         (build/genhooks.o): Update dependencies.
13564         * config.gcc (common_out_file, target_has_targetm_common): Define.
13565         * config/pa/som.h (ALWAYS_STRIP_DOTDOT): Replace with
13566         TARGET_ALWAYS_STRIP_DOTDOT.
13567         * configure.ac (common_out_object_file): Define.
13568         (common_out_file, common_out_object_file): Substitute.
13569         (common): Create directory.
13570         * configure: Regenerate.
13571         * doc/tm.texi.in (targetm_common): Document.
13572         (TARGET_ALWAYS_STRIP_DOTDOT): Add @hook entry.
13573         * doc/tm.texi: Regenerate.
13574         * genhooks.c (hook_array): Also include common/common-target.def.
13575         * prefix.c (tm.h): Don't include.
13576         (common/common-target.h): Include.
13577         (ALWAYS_STRIP_DOTDOT): Don't define.
13578         (update_path): Use targetm_common.always_strip_dotdot instead of
13579         ALWAYS_STRIP_DOTDOT.
13580         * system.h (ALWAYS_STRIP_DOTDOT): Poison.
13581
13582 2011-06-14  David Li  <davidxl@google.com>
13583
13584         * passes.c (execute_function_todo): Remove TODO_dump_func.
13585         (execute_one_pass): Remove TODO_dump_func.
13586         (execute_function_dump): New function.
13587         * tree-vrp.c: Remove TODO_dump_func.
13588         * regrename.c: Remove TODO_dump_func.
13589         * fwprop.c: Remove TODO_dump_func.
13590         * tree-into-ssa.c: Remove TODO_dump_func.
13591         * tree-complex.c: Remove TODO_dump_func.
13592         * tracer.c: Remove TODO_dump_func.
13593         * tree-loop-distribution.c: Remove TODO_dump_func.
13594         * postreload-gcse.c: Remove TODO_dump_func.
13595         * postreload.c: Remove TODO_dump_func.
13596         * tree-ssa-loop-ch.c: Remove TODO_dump_func.
13597         * tree-tailcall.c: Remove TODO_dump_func.
13598         * ipa-cp.c: Remove TODO_dump_func.
13599         * final.c: Remove TODO_dump_func.
13600         * tree-emutls.c: Remove TODO_dump_func.
13601         * omp-low.c: Remove TODO_dump_func.
13602         * tree-ssa-dse.c: Remove TODO_dump_func.
13603         * tree-ssa-uncprop.c: Remove TODO_dump_func.
13604         * auto-inc-dec.c: Remove TODO_dump_func.
13605         * reorg.c: Remove TODO_dump_func.
13606         * tree-ssa-copyrename.c: Remove TODO_dump_func.
13607         * tree-ssa-ccp.c: Remove TODO_dump_func.
13608         * compare-elim.c: Remove TODO_dump_func.
13609         * mode-switching.c: Remove TODO_dump_func.
13610         * modulo-sched.c: Remove TODO_dump_func.
13611         * tree-call-cdce.c: Remove TODO_dump_func.
13612         * cse.c: Remove TODO_dump_func.
13613         * web.c: Remove TODO_dump_func.
13614         * tree-stdarg.c: Remove TODO_dump_func.
13615         * lto-streamer-out.c: Remove TODO_dump_func.
13616         * tree-ssa-math-opts.c: Remove TODO_dump_func.
13617         * tree-ssa-dom.c: Remove TODO_dump_func.
13618         * tree-nrv.c: Remove TODO_dump_func.
13619         * loop-init.c: Remove TODO_dump_func.
13620         * gimple-low.c: Remove TODO_dump_func.
13621         * ipa-inline.c: Remove TODO_dump_func.
13622         * tree-ssa-sink.c: Remove TODO_dump_func.
13623         * jump.c: Remove TODO_dump_func.
13624         * ifcvt.c: Remove TODO_dump_func.
13625         * tree-ssa-loop.c: Remove TODO_dump_func.
13626         * recog.c: Remove TODO_dump_func.
13627         * dse.c: Remove TODO_dump_func.
13628         * tree-ssa-ifcombine.c: Remove TODO_dump_func.
13629         * matrix-reorg.c: Remove TODO_dump_func.
13630         * tree-eh.c: Remove TODO_dump_func.
13631         * regmove.c: Remove TODO_dump_func.
13632         * function.c: Remove TODO_dump_func.
13633         * tree-vectorizer.c: Remove TODO_dump_func.
13634         * ipa-split.c: Remove TODO_dump_func.
13635         * gcse.c: Remove TODO_dump_func.
13636         * tree-if-conv.c: Remove TODO_dump_func.
13637         * init-regs.c: Remove TODO_dump_func.
13638         * tree-ssa-phiopt.c: Remove TODO_dump_func.
13639         * implicit-zee.c: Remove TODO_dump_func.
13640         * lower-subreg.c: Remove TODO_dump_func.
13641         * bt-load.c: Remove TODO_dump_func.
13642         * tree-dfa.c: Remove TODO_dump_func.
13643         * except.c: Remove TODO_dump_func.
13644         * emit-rtl.c: Remove TODO_dump_func.
13645         * store-motion.c: Remove TODO_dump_func.
13646         * cfgexpand.c: Remove TODO_dump_func.
13647         * tree-cfgcleanup.c: Remove TODO_dump_func.
13648         * cfgcleanup.c: Remove TODO_dump_func.
13649         * tree-ssa-pre.c: Remove TODO_dump_func.
13650         * tree-sra.c: Remove TODO_dump_func.
13651         * tree-mudflap.c: Remove TODO_dump_func.
13652         * tree-ssa-copy.c: Remove TODO_dump_func.
13653         * cfglayout.c: Remove TODO_dump_func.
13654         * tree-ssa-forwprop.c: Remove TODO_dump_func.
13655         * tree-ssa-dce.c: Remove TODO_dump_func.
13656         * ira.c: Remove TODO_dump_func.
13657         * tree-ssa.c: Remove TODO_dump_func.
13658         * integrate.c: Remove TODO_dump_func.
13659         * tree-optimize.c: Remove TODO_dump_func.
13660         * tree-ssa-phiprop.c: Remove TODO_dump_func.
13661         * tree-object-size.c: Remove TODO_dump_func.
13662         * combine.c: Remove TODO_dump_func.
13663         * bb-reorder.c: Remove TODO_dump_func.
13664         * cprop.c: Remove TODO_dump_func.
13665         * var-tracking.c: Remove TODO_dump_func.
13666         * tree-profile.c: Remove TODO_dump_func.
13667         * tree-vect-generic.c: Remove TODO_dump_func.
13668         * reg-stack.c: Remove TODO_dump_func.
13669         * sched-rgn.c: Remove TODO_dump_func.
13670         * tree-ssa-structalias.c: Remove TODO_dump_func.
13671         * tree-switch-conversion.c: Remove TODO_dump_func.
13672         * tree-cfg.c: Remove TODO_dump_func.
13673         * tree-ssa-reassoc.c: Remove TODO_dump_func.
13674         * combine-stack-adj.c: Remove TODO_dump_func.
13675         * dce.c: Remove TODO_dump_func.
13676         * tree-ssanames.c: Remove TODO_dump_func.
13677         * regcprop.c: Remove TODO_dump_func.
13678
13679 2011-06-14  H.J. Lu  <hongjiu.lu@intel.com>
13680
13681         PR middle-end/47364
13682         * builtins.c (expand_builtin_strlen): Expand strlen to Pmode
13683         and properly handle result not in Pmode.
13684
13685 2011-06-14  Robert Millan  <rmh@gnu.org>
13686
13687         * config/i386/kfreebsd-gnu.h: Resync with `config/i386/linux.h'.
13688         * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER): Resync with
13689         `config/linux.h'.
13690
13691         * config/i386/kfreebsd-gnu64.h: New file.
13692         * config.gcc (x86_64-*-kfreebsd*-gnu): Replace `i386/kfreebsd-gnu.h'
13693         with `i386/kfreebsd-gnu64.h'.
13694
13695         * config/i386/linux64.h (GNU_USER_LINK_EMULATION32)
13696         (GNU_USER_LINK_EMULATION64): New macros.
13697         * config/i386/gnu-user64.h (LINK_SPEC): Rely on
13698         `GNU_USER_LINK_EMULATION32' and `GNU_USER_LINK_EMULATION64' instead
13699         of hardcoding `elf_i386' and `elf_x86_64'.
13700
13701 2011-06-14  Nick Clifton  <nickc@redhat.com>
13702
13703         PR target/49403
13704         * config/v850/v850.c (v850_memory_move_cost): Add reg_class_t parameter.
13705
13706         PR target/49402
13707         * config.gcc(v850*-*-*): Avoid duplication of v850.opt.
13708
13709 2011-06-14  Jakub Jelinek  <jakub@redhat.com>
13710
13711         PR fortran/49103
13712         * tree.h (DECL_NONSHAREABLE): Define.
13713         (struct tree_decl_common): Change decl_common_unused to
13714         decl_nonshareable_flag.
13715         * cfgexpand.c (expand_used_vars_for_block, clear_tree_used):
13716         Ignore vars with DECL_NONSHAREABLE bit set.
13717         * tree-cfg.c (gimple_duplicate_bb): Set DECL_NONSHAREABLE
13718         on stores to automatic aggregate vars.
13719
13720         PR rtl-optimization/49390
13721         Revert:
13722         2010-06-29  Bernd Schmidt  <bernds@codesourcery.com>
13723
13724         * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
13725         MEM_ALIAS_SET.
13726
13727 2011-06-14  Zdenek Dvorak  <ook@ucw.cz>
13728             Tom de Vries  <tom@codesourcery.com>
13729
13730         PR target/45098
13731         * cfgloop.h (nb_iterations_upper_bound, nb_iterations_estimate):
13732         Document changed semantics.
13733         (max_stmt_executions, max_stmt_executions_int): Declare.
13734         * tree-data-ref.c (estimated_loop_iterations)
13735         (estimated_loop_iterations_int): Move functions...
13736         * tree-ssa-loop-niter.c (estimated_loop_iterations)
13737         (estimated_loop_iterations_int): here.
13738         (record_estimate): Change nb_iterations_upper_bound and
13739         nb_iterations_estimate semantics.
13740         (max_stmt_executions, max_stmt_executions_int): New function.
13741         * tree-data-ref.c (estimated_loop_iterations_tree): Rename to ...
13742         (max_stmt_executions_tree): this.
13743         (analyze_miv_subscript): Use max_stmt_executions_tree instead of
13744         estimated_loop_iterations_tree.
13745         tree-ssa-loop-ivopts.c (avg_loop_niter): Use
13746         max_stmt_executions_int instead of estimated_loop_iterations_int.
13747         * predict.c (predict_loops): Idem.
13748         * tree-parloops.c (parallelize_loops): Idem.
13749         * tree-data-ref.c (analyze_siv_subscript_cst_affine)
13750         (compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine)
13751         (init_omega_for_ddr_1): Idem.
13752         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse)
13753         (loop_prefetch_arrays): Idem
13754         * graphite-sese-to-poly.c (build_loop_iteration_domains): Use
13755         max_stmt_executions instead of estimated_loop_iterations.
13756         * tree-data-ref.c (estimated_loop_iterations_tree): Idem.
13757         * tree-vrp.c (adjust_range_with_scev): Use estimated_loop_iterations
13758         instead of nb_iterations_upper_bound.
13759
13760 2011-06-13  Jan Hubicka  <jh@suse.cz>
13761
13762         * ipa.c (cgraph_address_taken_from_non_vtable_p): Check the ref type.
13763
13764 2011-06-14  Richard Henderson  <rth@redhat.com>
13765
13766         PR debug/48459
13767         * dwarf2out.c (frame_pointer_fb_offset_valid): New.
13768         (based_loc_descr): Assert it's true.
13769         (compute_frame_pointer_to_fb_displacement): Set it, rather than
13770         aborting immediately.
13771
13772 2011-06-14  Sanjin Liu  <scliu@faraday-tech.com>
13773             Mingfeng Wu  <mingfeng@faraday-tech.com>
13774
13775         * doc/invoke.texi: Re-add missing -mcpu docs for Faraday cores.
13776
13777 2011-06-13  Jan Hubicka  <jh@suse.cz>
13778
13779         * ipa-cp.c (ipcp_iterate_stage): Revert accidental commit.
13780
13781 2011-06-13  Jan Hubicka  <jh@suse.cz>
13782
13783         * cgraph.c (cgraph_make_decl_local): Handle DECL_ONE_ONLY
13784         similarly to DECL_COMDAT.
13785         * cgraphunit.c (cgraph_analyze_function): Likewise.
13786         * ipa.c (function_and_variable_visibility): Likewise.
13787
13788 2011-06-13  Jan Hubicka  <jh@suse.cz>
13789
13790         * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not output
13791         BINFO_VIRTUALS when streaming for ltrans unit.
13792
13793 2011-06-13  David Edelsohn  <dje.gcc@gmail.com>
13794
13795         * config/rs6000/rs6000.md (movdi_mfpgpr): Remove POWER mnemonic.
13796         (movdi_internal64): Same.
13797
13798 2011-06-13  Edmar Wienskoski  <edmar@freescale.com>
13799
13800         PR target/44618
13801         * config/rs6000/rs6000.md (save_gpregs_<mode>): Replaced pattern with
13802         a set of similar patterns, where the MATCH_OPERAND for the function
13803         argument is replaced with individual references to hardware registers.
13804         (save_fpregs_<mode>): Ditto
13805         (restore_gpregs_<mode>): Ditto
13806         (return_and_restore_gpregs_<mode>): Ditto
13807         (return_and_restore_fpregs_<mode>): Ditto
13808         (return_and_restore_fpregs_aix_<mode>): Ditto
13809
13810 2011-06-13  Jan Hubicka  <jh@suse.cz>
13811
13812         * ipa-utils.c (postorder_stack): New structure.
13813         (ipa_reverse_postorder): Handle aliases.
13814
13815 2011-06-13  Jan Hubicka  <jh@suse.cz>
13816
13817         * ipa-inline.c (reset_edge_caches): Walk aliases.
13818         (update_caller_keys): Do not test inlinability of aliases.
13819         * ipa-inline-analysis.c (do_estimate_edge_time): Look through alias.
13820         (do_estimate_growth): Fix typo.
13821
13822 2011-06-13  Jan Hubicka  <jh@suse.cz>
13823
13824         * ipa-inline-transform.c (+can_remove_node_now_p_1): Break out from...
13825         (can_remove_node_now_p): ... here; handle same comdat groups.
13826         (clone_inlined_nodes): Update use of can_remove_node_now_p add TODO.
13827         (inline_call): Update use of can_remove_node_now_p.
13828
13829 2011-06-13  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
13830
13831         * config/h8300/h8300.md (bsetqi_msx, bclrqi_msx, bnotqi_msx): Added
13832         condition to disallow non-identical memory locations.
13833         (*andqi3_2, andqi3_1, iorqi3_1, xorqi3_1): Reorder insn to give
13834         preference to bit manipulation instructions.
13835
13836 2011-06-13  Jan Hubicka  <jh@suse.cz>
13837
13838         * cgraph.c (cgraph_for_node_thunks_and_aliases,
13839         cgraph_for_node_and_aliases): Fix thinko in recursive walking.
13840         (nonremovable_p): New function.
13841         (cgraph_can_remove_if_no_direct_calls_p): New function.
13842         (used_from_object_file_p): New functoin.
13843         (cgraph_will_be_removed_from_program_if_no_direct_calls): Look for
13844         references from aliases.
13845         * cgraph.h (cgraph_can_remove_if_no_direct_calls_p): Bring offline.
13846         * ipa-inline.c (check_caller_edge): New function.
13847         (want_inline_function_called_once_p): Use it; accept aliases called
13848         once, too.
13849         * ipa-inline-analysis.c (do_estimate_growth): Remove FIXME.
13850
13851 2011-06-13  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
13852
13853         PR target/48454
13854         * config/arm/neon.md (vec_pack_trunc): Set the lengths
13855         correctly for the case with Quad vectors.
13856
13857 2011-06-13 Jakub Jelinek  <jakub@redhat.com>
13858            Ira Rosen  <ira.rosen@linaro.org>
13859
13860         PR tree-optimization/49352
13861         * tree-vect-loop.c (vect_is_slp_reduction): Don't count debug uses at
13862         all, make sure loop_use_stmt after the loop is a def stmt of a used
13863         SSA_NAME that is the only one defined inside of the loop.  Don't
13864         check for COND_EXPR and GIMPLE_BINARY_RHS.
13865         (vect_is_simple_reduction_1): Call vect_is_slp_reduction only if
13866         check_reduction is true.
13867
13868 2011-06-11  Jan Hubicka  <jh@suse.cz>
13869
13870         PR middle-end/49373
13871         * ipa.c (cgraph_externally_visible_p): Check resolution info.
13872
13873 2011-06-11  Jan Hubicka  <jh@suse.cz>
13874
13875         PR middle-end/48836
13876         * ipa-inline-transform.c: Include tree-pass.h
13877         (inline_transform): Set TODO_update_ssa_only_virtuals.
13878         * Makefile.in (ipa-inline-transform.o): Add tree-pass.h.
13879
13880 2011-06-11  Jan Hubicka  <jh@suse.cz>
13881
13882         PR middle-end/49378
13883         * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p): Rule out
13884         aliases and thunks.
13885
13886 2011-06-12  Ira Rosen  <ira.rosen@linaro.org>
13887
13888         * tree-vect-data-refs.c (vect_peeling_hash_get_most_frequent):
13889         Take number of iterations to peel into account for equally frequent
13890         misalignment values.
13891
13892 2011-06-11  Jan Hubicka  <jh@suse.cz>
13893
13894         * lto-streamer-out.c (produce_symtab): Stream out the newly
13895         represented aliases.
13896
13897 2011-06-11  Jan Hubicka  <jh@suse.cz>
13898
13899         * ipa-prop.c (ipa_make_edge_direct_to_target): Fix code setting
13900         varying args.
13901         (ipa_update_after_lto_read): Likewise.
13902         (ipa_write_node_info): Do not sream call_with_var_arguments.
13903         (ipa_read_node_info): Likewise.
13904
13905 2011-06-11  Jan Hubicka  <jh@suse.cz>
13906
13907         * ipa.c (cgraph_comdat_can_be_unshared_p): Fix pasto.
13908
13909 2011-06-11  Jan Hubicka  <jh@suse.cz>
13910
13911         * lto-symtab.c (lto_cgraph_replace_node): Kill same body alias code.
13912         (lto_symtab_resolve_can_prevail_p): Likewise.
13913         (lto_symtab_merge_cgraph_nodes): Update merging of aliases.
13914         * cgraph.c (same_body_aliases_done): New global var.
13915         (cgraph_same_body_alias_1): Rename to ...
13916         (cgraph_create_function_alias): ... this one; reorg to new
13917         representation.
13918         (cgraph_same_body_alias): Use cgraph_create_function_alias;
13919         record references when asked to.
13920         (cgraph_add_thunk): Fix formating.
13921         (cgraph_get_node): Kill same body alias code.
13922         (cgraph_node_for_asm): Likewise.
13923         (cgraph_remove_same_body_alias): Remove.
13924         (cgraph_remove_node): Kill same body alias code.
13925         (cgraph_mark_address_taken_node): Mark also the aliased function
13926         as having address taken.
13927         (dump_cgraph_node): Dump same body aliases.
13928         (cgraph_for_node_thunks_and_aliases): Update for new alias
13929         representation.
13930         (cgraph_for_node_and_aliases): Likewise.
13931         * cgraph.h (same_body): Kll pointer.
13932         (same_body_alias): Update comment.
13933         (same_body_aliases_done): Declare.
13934         (cgraph_remove_same_body_alias): Remove declaration.
13935         (cgraph_create_function_alias): Declare.
13936         (cgraph_process_same_body_aliases): Declare.
13937         (cgraph_function_with_gimple_body_p): Check for alias.
13938         (cgraph_can_remove_if_no_direct_calls_p): Look for aliases.
13939         (cgraph_alias_aliased_node): New function.
13940         (cgraph_function_node): Update for new aliases.
13941         (cgraph_function_or_thunk_node): Likewise.
13942         * ipa-inline-transform.c (can_remove_node_now_p): Look for aliases.
13943         (inline_call): Remove dead aliases.
13944         * cgraphunit.c (cgraph_decide_is_function_needed): Disable assembler
13945         name hack for same body aliases.
13946         (clone_of_p): Look through aliases.
13947         (verify_cgraph_node): Verify aliases.
13948         (cgraph_analyze_function): Analyze aliases; fixup C++ bugs.
13949         (cgraph_process_same_body_aliases): New function.
13950         (process_function_and_variable_attributes): Disable weakref warning on
13951         alias.
13952         (cgraph_analyze_functions): Handle aliases.
13953         (cgraph_mark_functions_to_output): Handle aliases same way as thunks.
13954         (assemble_thunks): Rename to ...
13955         (assemble_thunks_and_aliases): ... this one; handle aliases, too.
13956         (cgraph_expand_function): Remove alias output code.
13957         (cgraph_output_in_order): Skip aliases.
13958         (cgraph_preserve_function_body_p): Aliases don't need preserving.
13959         * ipa-ref.c (ipa_ref_use_name): Add alias reference.
13960         (ipa_record_reference): Do not assert on alias references.
13961         (ipa_ref_has_aliases_p): New function.
13962         * ipa-ref.h (enum ipa_ref_use): Add IPA_REF_ALIAS.
13963         (ipa_ref_has_aliases_p): Declare.
13964         * lto-cgraph.c (lto_output_node): Handle aliases.
13965         (input_node): Likewise.
13966         * lto-streamer-out.c (lto_output): Skip aliases.
13967         (produce_symtab): Kill same_body_alias code.
13968         * ipa-utils.c (ipa_reverse_postorder): Add FIXME.
13969         (ipa_reverse_postorder): Use cgraph_only_called_directly_or_aliased_p.
13970         * ipa-inline.c (update_caller_keys): Walk aliases.
13971         (inline_small_functions): Fix thinko in previous patch.
13972         * ipa.c (cgraph_externally_visible_p): Do not walk aliases.
13973         (function_and_variable_visibility): Do not walk same body aliases.
13974         * tree-ssa-structalias.c (associate_varinfo_to_alias): New function.
13975         (ipa_pta_execute): Use it.
13976
13977 2011-06-11  Uros Bizjak  <ubizjak@gmail.com>
13978
13979         * config/i386/sse.md (vec_dupv4sf): Correct mode of forced register.
13980         (*vec_dupv2df): Rename from vec_dupv2df.
13981         (vec_dupv2df): New expander.
13982
13983 2011-06-11  Uros Bizjak  <ubizjak@gmail.com>
13984
13985         * config/i386/sse.md (AVX_VEC_DUP_MODE): Rename from AVX256MODE24P.
13986
13987 2011-06-11  Uros Bizjak  <ubizjak@gmail.com>
13988
13989         * config/i386/i386.md: Use default value in "isa" attribute.
13990         * config/i386/sse.md: Ditto.
13991         * config/i386/mmx.md: Ditto.
13992
13993 2011-06-10  Wei Guozhi  <carrot@google.com>
13994
13995         PR target/45335
13996         * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
13997         stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
13998         (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
13999         related peephole2.
14000         (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
14001         related peephole2.
14002         * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
14003         (arm_legitimate_ldrd_p): New prototype.
14004         (arm_output_ldrd): New prototype.
14005         * config/arm/arm.c (arm_check_ldrd_operands): New function.
14006         (arm_legitimate_ldrd_p): New function.
14007         (arm_output_ldrd): New function.
14008
14009 2011-06-10  David Li  <davidxl@google.com>
14010
14011         * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
14012         * passes.c (passr_eq): New function.
14013         (create_pass_tab): New function.
14014         (pass_traverse): New function.
14015         (dump_one_pass): New function.
14016         (dump_pass_list): New function.
14017         (dump_passes): New function.
14018
14019 2011-06-10  Jan Hubicka  <jh@suse.cz>
14020
14021         * cgraph.c (cgraph_set_nothrow_flag_1): Update cgraph after
14022         setting the nothrow flag.
14023         * ipa-reference.c (propagate): Skip aliases.
14024         * ipa-pure-const.c (propagate_pure_const): Skip aliases.
14025         (propagate_nothrow): Skip aliases; do not update cgraph.
14026         (local_pure_const): Do not update cgraph.
14027         * tree-profile.c (tree_profiling): Do fixup_cfg.
14028
14029 2011-06-10  Jan Hubicka  <jh@suse.cz>
14030
14031         * ipa.c (cgraph_non_local_node_p_1): Break out from ...;
14032         (cgraph_local_node_p): ... here; handle aliases.
14033         (has_addr_references_p): Break out from ...;
14034         (cgraph_remove_unreachable_nodes) ... here.
14035
14036 2011-06-10  Jan Hubicka  <jh@suse.cz>
14037
14038         * opts.c (default_options): Enlist OPT_finline_functions_called_once.
14039         * common.opt (flag_inline_functions_called_once): Do not
14040         initialize to 1.
14041
14042 2011-06-10  Jan Hubicka  <jh@suse.cz>
14043
14044         * ipa-cp.c (ipcp_versionable_function_p): Thunks are not versionable.
14045         (ipcp_initialize_node_lattices): Do not deal with aliases;
14046         Do not try to propagate through thunks.
14047         (ipcp_change_tops_to_bottom): Do not deal with aliases.
14048
14049 2011-06-10  Jan Hubicka  <jh@suse.cz>
14050
14051         * ipa-prop.c (ipa_write_node_info): Stream jump functions
14052         for indirect calls.
14053         (ipa_read_node_info): Likewise.
14054
14055 2011-06-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
14056
14057         PR lto/49302
14058         * tree-ssa-math-opts.c (powi_as_mults): Minor cleanup.
14059         (build_and_insert_call): Likewise.
14060         (build_and_insert_ref): New.
14061         (gimple_expand_builtin_pow): Minor cleanup.
14062         (gimple_expand_builtin_cabs): New.
14063         (execute_cse_sincos): Add case for BUILT_IN_CABS.
14064
14065 2011-06-10  Jan Hubicka  <jh@suse.cz>
14066
14067         * ipa-cp.c (ipcp_versionable_function_p): Aliases are not versionable.
14068         (ipcp_cloning_candidate_p): Aliases are not clonning candidates.
14069         (ipcp_initialize_node_lattices): We don't propagate through an aliases.
14070         (ipcp_propagate_stage): Skip aliases when propagating.
14071         (ipcp_need_redirect_p): Skip aliases.
14072         (ipcp_insert_stage): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY and
14073         collect_callers_of_node.
14074         * ipa-prop.c (ipa_init_func_list): Do not analyze datastructures
14075         for aliases.
14076         (ipa_compute_jump_functions): Look through aliases.
14077
14078 2011-06-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14079
14080         * doc/sourcebuild.texi (Effective-Target Keywords, pie): Document it.
14081
14082 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
14083
14084         * ira-costs.c: Remove #ifdefs on dead FORBIDDEN_INC_DEC_CLASSES.
14085         Adjust comments.
14086         * system.h (FORBIDDEN_INC_DEC_CLASSES): Poison.
14087
14088 2011-06-10  Jan Hubicka  <jh@suse.cz>
14089
14090         * ipa-cp.c (ipcp_process_devirtualization_opportunities):
14091         Update call of gimple_get_virt_method_for_binfo.
14092         * gimple-fold.c (gimple_get_virt_method_for_binfo): Remove
14093         refuse_thunks parameter.
14094         (gimple_fold_call): Update.
14095         * ipa-prop.c (try_make_edge_direct_virtual_call): Update.
14096
14097 2011-06-10  Jan Hubicka  <jh@suse.cz>
14098
14099         * tree-sra.c (all_callers_have_enough_arguments_p): Rename to ...
14100         (not_all_callers_have_enough_arguments_p): ... this one; turn into
14101         worker for cgraph_for_node_and_aliases.
14102         (convert_callers_for_node): Break out from ...
14103         (convert_callers): ... here.
14104         (modify_function): Use collect_callers_of_node.
14105         (ipa_early_sra): Use cgraph_for_node_and_aliases.
14106
14107 2011-06-10  Richard Guenther  <rguenther@suse.de>
14108
14109         PR tree-optimization/49361
14110         * fold-const.c (fold_binary_loc): Only fold x * x to pow (x, 2.0)
14111         when not already in gimple form.
14112
14113 2011-06-10  Richard Guenther  <rguenther@suse.de>
14114
14115         PR bootstrap/49344
14116         * tree-ssa-math-opts.c (convert_mult_to_fma): Use
14117         FOR_EACH_PHI_OR_STMT_USE.
14118
14119 2011-06-10  Jan Hubicka  <jh@suse.cz>
14120
14121         * ipa-inline-transform.c (can_remove_node_now_p): Move out of...
14122         (clone_inlined_nodes): ... here.
14123         (inline_call): Use cgraph_function_or_thunk_node; redirect edge
14124         to real destination prior inlining.
14125         * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
14126         can_early_inline_edge_p, want_early_inline_function_p,
14127         want_early_inline_function_p, want_inline_small_function_p,
14128         want_inline_self_recursive_call_p, want_inline_function_called_once_p,
14129         edge_badness, update_all_callee_keys, lookup_recursive_calls,
14130         add_new_edges_to_heap, inline_small_functions, flatten_function,
14131         inline_always_inline_functions, early_inline_small_functions): Use
14132         cgraph_function_or_thunk_node.
14133         * ipa-inline-analysis.c (evaluate_conditions_for_edge,
14134         dump_inline_edge_summary, estimate_function_body_sizes): Likewise.
14135         (do_estimate_edge_growth_1): Break out from ...
14136         (do_estimate_growth) ... here; walk aliases.
14137         (inline_generate_summary): Skip aliases.
14138
14139 2011-06-10  Richard Guenther  <rguenther@suse.de>
14140
14141         * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Scan stmts
14142         forward when combining, visit inserted stmts when a stmt was changed.
14143
14144 2011-06-10  Paolo Carlini  <paolo.carlini@oracle.com>
14145
14146         * tree.h (error_operand_p): Add.
14147         * dbxout.c (dbxout_type_fields): Use the latter.
14148         * c-decl.c (add_stmt): Likewise.
14149         * gimplify.c (omp_add_variable, omp_notice_variable,
14150         gimplify_scan_omp_clauses): Likewise.
14151
14152 2011-06-10  Georg-Johann Lay  <avr@gjlay.de>
14153
14154         * config/avr/avr.c (avr_function_arg_advance): Fix thinko about
14155         when a value is actually passed in regs.
14156
14157 2011-06-10  Eric Botcazou  <ebotcazou@adacore.com>
14158             Laurent Rougé  <laurent.rouge@menta.fr>
14159
14160         * doc/invoke.texi (SPARC options): Add -mflat.
14161         * config/sparc/sparc.opt: Likewise.
14162         * config/sparc/sparc-protos.h (sparc_expand_epilogue): Add parameter.
14163         (sparc_flat_expand_prologue): Declare.
14164         (sparc_flat_expand_epilogue): Likewise.
14165         * config/sparc/sparc.h (CPP_CPU_SPEC): Do not handle -msoft-float.
14166         (CPP_ENDIAN_SPEC): Replace with...
14167         (CPP_OTHER_SPEC): ...this.  Also handle -mflat and -msoft-float.
14168         (CPP_SPEC): Adjust to above change.
14169         (EXTRA_SPECS): Likewise.
14170         (SPARC_INCOMING_INT_ARG_FIRST): Add TARGET_FLAT handling.
14171         (INCOMING_REGNO): Likewise.
14172         (OUTGOING_REGNO): Likewise.
14173         (LOCAL_REGNO): Likewise.
14174         (SETUP_FRAME_ADDRESSES): Likewise.
14175         (FIXED_REGISTERS): Set 0 for %fp.
14176         (CALL_USED_REGISTERS): Likewise.
14177         (INITIAL_ELIMINATION_OFFSET): Pass current_function_is_leaf.
14178         (EXIT_IGNORE_STACK): Define to 1 unconditionally.
14179         (RETURN_ADDR_REGNUM): Define.
14180         (RETURN_ADDR_RTX): Use it.
14181         (INCOMING_RETURN_ADDR_REGNUM): Define.
14182         (INCOMING_RETURN_ADDR_RTX): Use it.
14183         (DWARF_FRAME_RETURN_COLUMN): Likewise.
14184         (EH_RETURN_REGNUM): Define.
14185         (EH_RETURN_STACKADJ_RTX): Use it.
14186         (EH_RETURN_HANDLER_RTX): Delete.
14187         (EPILOGUE_USES): Use them and add TARGET_FLAT handling.
14188         * config/sparc/sparc.c (apparent_fsize, actual_fsize, num_gfregs):
14189         Delete.
14190         (struct machine_function): Add frame_size, apparent_frame_size,
14191         frame_base_reg, frame_base_offset, n_global_fp_regs and
14192         save_local_in_regs_p fields.
14193         (sparc_frame_size, sparc_apparent_frame_size, sparc_frame_base_reg,
14194         sparc_frame_base_offset, sparc_n_global_fp_regs,
14195         sparc_save_local_in_regs_p): New macros.
14196         (sparc_option_override): Error out if -fcall-saved-REG is specified
14197         for Out registers.
14198         (eligible_for_restore_insn): Fix formatting.
14199         (eligible_for_return_delay): Likewise.  Add TARGET_FLAT handling.
14200         (eligible_for_sibcall_delay): Likewise.
14201         (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Add MODE parameter.
14202         (sparc_legitimate_address_p): Adjust to above change.
14203         (save_global_or_fp_reg_p): New predicate.
14204         (return_addr_reg_needed_p): Likewise.
14205         (save_local_or_in_reg_p): Likewise.
14206         (sparc_compute_frame_size): Use them.  Add TARGET_FLAT handling.
14207         (SORR_SAVE, SORR_RESTORE): Delete.
14208         (sorr_pred_t): New typedef.
14209         (sorr_act_t): New enum.
14210         (save_or_restore_regs): Rename to...
14211         (emit_save_or_restore_regs): ...this.  Change type of LOW and HIGH
14212         parameters, remove ACTION parameter, add LEAF_FUNCTION_P, SAVE_P,
14213         ACTION_TRUE and ACTION_FALSE parameters.  Implement more general
14214         mechanism.  Add CFI information for double-word saves in 32-bit mode.
14215         (emit_adjust_base_to_offset): New function extracted from...
14216         (emit_save_or_restore_regs): ...this.  Rename the rest to...
14217         (emit_save_or_restore_regs_global_fp_regs): ...this.
14218         (emit_save_or_restore_regs_local_in_regs): New function.
14219         (gen_create_flat_frame_[123]): New functions.
14220         (sparc_expand_prologue): Use SIZE local variable.  Adjust.
14221         (sparc_flat_expand_prologue): New function.
14222         (sparc_asm_function_prologue): Add TARGET_FLAT handling.
14223         (sparc_expand_epilogue): Use SIZE local variable.  Adjust.
14224         (sparc_flat_expand_epilogue): New function.
14225         (sparc_can_use_return_insn_p): Add TARGET_FLAT handling.
14226         (output_return): Likewise.
14227         (output_sibcall): Likewise.
14228         (sparc_output_mi_thunk): Likewise.
14229         (sparc_frame_pointer_required): Likewise.
14230         (sparc_conditional_register_usage): If TARGET_FLAT, disable the leaf
14231         function optimization.
14232         * config/sparc/sparc.md (flat): New attribute.
14233         (prologue): Add TARGET_FLAT handling.
14234         (save_register_window): Disable if TARGET_FLAT.
14235         (create_flat_frame_[123]): New patterns.
14236         (epilogue): Add TARGET_FLAT handling.
14237         (sibcall_epilogue): Likewise.
14238         (eh_return): New expander.
14239         (eh_return_internal): New insn and splitter.
14240         (return_internal): Add TARGET_FLAT handling.
14241         (untyped_return): Remove bogus test and use RETURN_ADDR_REGNUM.
14242         (save_stack_nonlocal): Use RETURN_ADDR_REGNUM.
14243         (nonlocal_goto): Add TARGET_FLAT handling.
14244         * config/sparc/t-elf: Add -mflat multilib.
14245         * config/sparc/t-leon: Likewise.
14246
14247 2011-06-10  Jan Hubicka  <jh@suse.cz>
14248
14249         * ipa-utils.c (searchc): Use cgraph_function_or_thunk_node.
14250         * ipa-pure-const.c (analyze_function): Aliases don't need analysis.
14251         (self_recursive_p): Use cgraph_function_node.
14252         (propagate_pure_const): Likewise.
14253         (propagate_nothrow): Likewise.
14254         * ipa-reference.c (ipa_reference_get_not_read_global): Use
14255         cgraph_function_node.
14256         (propagate_bits): Likewise.
14257         (propagate): Likewise.
14258
14259 2011-06-10  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
14260             Richard Earnshaw  <rearnsha@arm.com>
14261
14262         * config/arm/arm.c (const_ok_for_op): Check to see if mvn can be used.
14263         * config/arm/vfp.md (*arm_movdi_vfp): Delete.
14264         (*thumb2_movdi_vfp): Delete.
14265         (*arm_movdi_vfp_cortexa8): Delete.
14266         (*movdi_vfp): Consolidate from *arm_movdi_vfp and *thumb2_movdi_vfp.
14267         (*movdi_vfp_cortexa8): Likewise.
14268
14269 2011-06-10  Richard Guenther  <rguenther@suse.de>
14270
14271         * stor-layout.c (initialize_sizetypes): Give names to all
14272         sizetype kinds.
14273
14274 2011-06-10  Ira Rosen  <ira.rosen@linaro.org>
14275
14276         PR tree-optimization/49318
14277         * tree-vect-loop.c (vect_determine_vectorization_factor): Remove
14278         irrelevant pattern statements.
14279
14280 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
14281
14282         * system.h (SETJMP_VIA_SAVE_AREA): Poison.
14283
14284         PR bootstrap/49354
14285         * ira-costs.c (setup_regno_cost_classes_by_mode): Add missing cast
14286         to last assignment.
14287
14288 2011-06-09  Jan Hubicka  <jh@suse.cz>
14289
14290         * cgraphunit.c (cgraph_reset_node): Do not set redefined_extern_inline;
14291         do not recompute reachable flag.
14292         (cgraph_finalize_function, cgraph_analyze_functions): Set
14293         redefined_extern_inline here.
14294
14295 2011-06-09  Jan Hubicka  <jh@suse.cz>
14296
14297         * cgraph.h (cgraph_only_called_directly_or_aliased_p): Rename from ...
14298         (cgraph_only_called_directly_p): ... this one; bring offline.
14299         (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
14300         varpool_used_from_object_file_p): Drop names from the declaratoin.
14301         (cgraph_for_node_thunks_and_aliases, cgraph_for_node_and_aliases,
14302         collect_callers_of_node): New.
14303         (cgraph_function_node, cgraph_function_or_thunk_node): New functions.
14304         (cgraph_edge_recursive_p): Use cgraph_function_node.
14305         * cgraph.c (cgraph_add_thunk): Check that thunk is not already alias.
14306         (cgraph_node_cannot_be_local_p_1): Break out from ...
14307         (cgraph_node_can_be_local_p): ... here; walk aliases.
14308         (cgraph_for_node_thunks_and_aliases): New function.
14309         (cgraph_for_node_and_aliases): New function.
14310         (cgraph_make_node_local_1): Break out from ...
14311         (cgraph_make_node_local) ... here; use
14312         cgraph_for_node_thunks_and_aliases.
14313         (cgraph_set_nothrow_flag_1): Break out from ...
14314         (cgraph_set_nothrow_flag) ... here;
14315         use cgraph_for_node_thunks_and_aliases.
14316         (cgraph_set_const_flag_1): Break out from ...
14317         (cgraph_set_const_flag) ... here;
14318         use cgraph_for_node_thunks_and_aliases.
14319         (cgraph_set_pure_flag_1): Break out from ...
14320         (cgraph_set_pure_flag) ... here;
14321         use cgraph_for_node_thunks_and_aliases.
14322         (cgraph_propagate_frequency_1): Break out from ...
14323         (cgraph_propagate_frequency) ... here; use
14324         cgraph_for_node_thunks_and_aliases.
14325         (cgraph_used_from_object_file_p): Do not care about aliases.
14326         (cgraph_not_only_called_directly_p_1, cgraph_only_called_directly_p):
14327         New functions.
14328         (collect_callers_of_node_1, collect_callers_of_node): New functions.
14329
14330 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
14331
14332         PR rtl-optimization/49154
14333         * config/cris/cris.h (FIXED_REGISTERS): Include CRIS_CC0_REGNUM.
14334         (enum reg_class): Add SRP_REGS and MOF_SRP_REGS.
14335         (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
14336         (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Adjust to fit.
14337         * config/cris/cris.h (cris_register_move_cost): Remove
14338         !TARGET_V32 code.  Tweak comments.
14339
14340 2011-06-09  Jan Hubicka  <jh@suse.cz>
14341
14342         * cgraphbuild.c (record_eh_tables): Mark personality function as having
14343         address taken.
14344
14345 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
14346
14347         PR rtl-optimization/49154
14348         * ira-costs.c (setup_regno_cost_classes_by_mode): If there already
14349         is a matching slot in the hashtable, assign it to classes_ptr.
14350
14351         PR rtl-optimization/49154
14352         * doc/tm.texi.in (Register Classes): Document rule for the narrowest
14353         register classes.
14354         * doc/tm.texi: Regenerate.
14355
14356 2011-06-09  Kaz Kojima  <kkojima@gcc.gnu.org>
14357
14358         PR target/49307
14359         * config/sh/sh.md (UNSPEC_CHKADD): New.
14360         (chk_guard_add): New define_insn_and_split.
14361         (symGOT_load): Use chk_guard_add instead of blockage.
14362
14363 2011-06-09  Kai Tietz  <ktietz@redhat.com>
14364
14365         * libgcc2.c (L_trampoline): Include windows.h for mingw targets.
14366
14367 2011-06-09  Eric Botcazou  <ebotcazou@adacore.com>
14368
14369         * config/sparc/sparc.md (return_internal): Adjust 'length' attribute.
14370
14371 2011-06-09  Wei Guozhi  <carrot@google.com>
14372
14373         PR target/46975
14374         * config/arm/arm.md (*addsi3_carryin_compare0_<optab>): New pattern.
14375         (peephole2 for conditional move): Generate 16 bit instructions.
14376
14377 2011-06-09  Uros Bizjak  <ubizjak@gmail.com>
14378
14379         * config/i386/i386.md (*movdi_internal_rex64): Merge
14380         alternatives 6 and 8.
14381
14382 2011-06-09  David Li  <davidxl@google.com>
14383
14384         * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
14385         * passes.c (passr_eq): New function.
14386         (create_pass_tab): New function.
14387         (pass_traverse): New function.
14388         (dump_one_pass): New function.
14389         (dump_pass_list): New function.
14390         (dump_passes): New function.
14391
14392 2011-06-09  David Li  <davidxl@google.com>
14393
14394         * tree-complex.c (tree_lower_complex): Gate cleanup.
14395         * tree-stdarg.c (check_all_va_list_escapes): Ditto.
14396         (execute_optimize_stdarg): Ditto.
14397         * tree-eh.c (execute_lower_eh_dispatch): Ditto.
14398         (execute_cleanup_eh_1): Ditto.
14399         (execute_cleanup_eh): Ditto.
14400         * gcse.c (gate_rtl_pre): Ditto.
14401         (execute_rtl_pre): Ditto.
14402         * except.c (finish_eh_generation): Ditto.
14403         (convert_to_eh_region_ranges): Ditto.
14404         * cprop.c (one_cprop_pass): Ditto.
14405
14406 2011-06-09  Bernd Schmidt  <bernds@codesourcery.com>
14407
14408         PR target/48673
14409         * config/ia64/ia64.c (ia64_reorg): Clear BB_DISABLE_SCHEDULE flag
14410         in all basic blocks.
14411
14412 2011-06-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14413
14414         * config/alpha/netbsd.h (ENABLE_EXECUTE_STACK): Remove.
14415         (HAVE_ENABLE_EXECUTE_STACK): Define.
14416         * config/alpha/osf5.h (ENABLE_EXECUTE_STACK): Remove.
14417         (HAVE_ENABLE_EXECUTE_STACK): Define.
14418         * config/darwin.h (ENABLE_EXECUTE_STACK): Remove.
14419         (HAVE_ENABLE_EXECUTE_STACK): Define.
14420         * config/i386/mingw32.h (MINGW_ENABLE_EXECUTE_STACK): Remove.
14421         (ENABLE_EXECUTE_STACK): Remove.
14422         (HAVE_ENABLE_EXECUTE_STACK): Define.
14423         [IN_LIBGCC2]: Don't include <windows.h>.
14424         * config/i386/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
14425         (HAVE_ENABLE_EXECUTE_STACK): Define.
14426         * config/i386/netbsd64.h (ENABLE_EXECUTE_STACK): Remove.
14427         (HAVE_ENABLE_EXECUTE_STACK): Define.
14428         * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): Remove.
14429         * config/openbsd.h (ENABLE_EXECUTE_STACK): Remove.
14430         (HAVE_ENABLE_EXECUTE_STACK): Define.
14431         * config/sol2.h (ENABLE_EXECUTE_STACK): Remove.
14432         (HAVE_ENABLE_EXECUTE_STACK): Define.
14433         * config/sparc/freebsd.h (ENABLE_EXECUTE_STACK): Remove.
14434         (HAVE_ENABLE_EXECUTE_STACK): Define.
14435         * config/sparc/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
14436         (HAVE_ENABLE_EXECUTE_STACK): Define.
14437         * config/alpha/alpha.c (alpha_trampoline_init): Test
14438         HAVE_ENABLE_EXECUTE_STACK.
14439         * config/i386/i386.c (ix86_trampoline_init): Likewise.
14440         * config/sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
14441         (sparc64_initialize_trampoline): Likewise.
14442         * libgcc2.c [L_enable_execute_stack]: Remove.
14443         * system.h (ENABLE_EXECUTE_STACK): Poison.
14444         * doc/tm.texi.in (Trampolines, ENABLE_EXECUTE_STACK): Remove.
14445         * doc/tm.texi: Regenerate.
14446         * Makefile.in (LIBGCC2_CFLAGS): Add -fbuilding-libgcc.
14447
14448 2011-06-09  Jakub Jelinek  <jakub@redhat.com>
14449
14450         PR middle-end/49308
14451         * dce.c (reset_unmarked_insns_debug_uses): Avoid shadowing insn
14452         variable.  After resetting and rescanning insn continue with previous
14453         statement.
14454
14455 2011-06-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14456
14457         * configure.ac (gcc_cv_as_hidden): Enable on *-*-darwin*.
14458         (gcc_cv_ld_hidden): Likewise.
14459         * configure: Regenerate.
14460         * config/i386/i386.c (USE_HIDDEN_LINKONCE): Remove TARGET_MACHO.
14461         (ix86_stack_protect_fail): Mark unused.
14462         (TARGET_STACK_PROTECT_FAIL) [TARGET_MACHO]: Don't redefine.
14463         * config/rs6000/rs6000.c (rs6000_assemble_visibility)
14464         [TARGET_MACHO]: Don't define.
14465         (TARGET_ASM_ASSEMBLE_VISIBILITY): Likewise.
14466         (TARGET_STACK_PROTECT_FAIL): Likewise.
14467         (rs6000_stack_protect_fail): Mark unused.
14468         * dwarf2asm.c (dw2_output_indirect_constant_1): Mark decl hidden if
14469         USE_LINKONCE_INDIRECT.  Don't emit .hidden expicitly.
14470
14471 2011-06-08  Andi Kleen  <ak@linux.intel.com>
14472
14473         * varasm.c (get_section): Print location of other conflict
14474         for section conflicts.
14475
14476 2011-06-08  Andi Kleen  <ak@linux.intel.com>
14477
14478         * config/i386/driver-i386.c (host_detect_local_cpu):
14479         Add model 0x2d Intel CPU.
14480
14481 2011-06-08  Andi Kleen  <ak@linux.intel.com>
14482
14483         * reginfo.c (global_regs_decl): Add.
14484         (globalize_reg): Add decl parameter. Compute location.  Pass location
14485         to warnings and add inform. Store decl in global_regs_decl.
14486         * rtl.h (globalize_reg): Update prototype.
14487         * varasm.c (make_decl_rtl): Pass decl to globalize_reg().
14488
14489 2011-06-09  Mingjie Xing  <mingjie.xing@gmail.com>
14490
14491         * treestruct.def (TS_TYPE_DECL): Fix the printable name typo.
14492
14493 2011-06-08  Kaz Kojima  <kkojima@gcc.gnu.org>
14494
14495         PR target/49305
14496         * config/sh/predicates.md (general_movsrc_operand): Check
14497         mode for memory with indexed address for QI and HImode.
14498         (general_movdst_operand): Likewise.
14499
14500 2011-06-09  Nicola Pero  <nicola.pero@meta-innovation.com>
14501
14502         * doc/objc.texi (Traditional GNU Objective-C runtime API): Updated.
14503
14504 2011-06-08  Alexandre Oliva  <aoliva@redhat.com>
14505
14506         * tree-flow-inline.h (op_iter_init): Reject GIMPLE_PHI stmts.
14507         (num_ssa_operands): Likewise.
14508         (op_iter_init_phiuse): Forward-declare.
14509         (delink_stmt_imm_use): Iterate with FOR_EACH_PHI_OR_STMT_USE.
14510
14511 2011-06-08  Nick Clifton  <nickc@redhat.com>
14512
14513         * doc/invoke.texi (ARM Options): Update description of
14514         -mthumb-interwork.
14515
14516 2011-06-08  H.J. Lu  <hongjiu.lu@intel.com>
14517
14518         * config/i386/driver-i386.c (host_detect_local_cpu): Support
14519         unknown Intel family 0x6 CPUs.
14520
14521 2011-06-08  Martin Jambor  <mjambor@suse.cz>
14522
14523         * tree-sra.c (mark_rw_status): Removed.
14524         (analyze_access_subtree): New parameter parent instead of
14525         mark_read and mark_write, propagate from that.
14526
14527 2011-06-08  Julian Brown  <julian@codesourcery.com>
14528
14529         * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
14530         for double-precision helper functions in hard-float mode if only
14531         single-precision arithmetic is supported in hardware.
14532
14533 2011-06-08  Alexander Monakov  <amonakov@ispras.ru>
14534
14535         PR rtl-optimization/49303
14536         * sel-sched.c (move_op): Use correct type for 'res'.  Verify that
14537         code_motion_path_driver returned 0 or 1.
14538         (sel_region_finish): Clear h_d_i_d.
14539
14540 2011-06-08  Kaz Kojima  <kkojima@gcc.gnu.org>
14541
14542         * config/sh/sh.c (prepare_move_operands): Set pic register
14543         appropriately for global and local dynamic tls models even
14544         if flag_pic is unset.
14545
14546 2011-06-07  Jason Merrill  <jason@redhat.com>
14547
14548         * pretty-print.h (ATTRIBUTE_GCC_PPDIAG): Use GCC_DIAG_STYLE if set.
14549
14550 2011-06-07  Xinliang David Li  <davidxl@google.com>
14551         * passes.c (enable_disable_pass): Handle assembler name.
14552         (is_pass_explicitly_enabled_or_disabled): Ditto.
14553
14554 2011-06-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14555
14556         PR tree-optimization/48497
14557         * doc/sourcebuild.texi (Directives, dg-additional-options): Document.
14558
14559 2011-06-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
14560
14561         PR tree-optimization/46728
14562         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Change FIXME
14563         to use gimple_val_nonnegative_real_p.
14564         * gimple-fold.c (gimple_val_nonnegative_real_p): New function.
14565         * gimple.h (gimple_val_nonnegative_real_p): New declaration.
14566
14567 2011-06-07  H.J. Lu  <hongjiu.lu@intel.com>
14568
14569         * config/i386/i386.md (*movsf_internal): Optimize AVX check.
14570
14571 2011-06-07  Sergey Grechanik  <mouseentity@ispras.ru>
14572
14573         * config/arm/arm.c (coproc_secondary_reload_class): Return NO_REGS for
14574         constant vectors.
14575
14576 2011-06-07  Richard Guenther  <rguenther@suse.de>
14577
14578         * stor-layout.c (initialize_sizetypes): Initialize all
14579         sizetypes based on target definitions.
14580         (set_sizetype): Remove.
14581         * tree.c (build_common_tree_nodes): Do not call set_sizetype.
14582         * tree.h (set_sizetype): Remove.
14583
14584 2011-06-07  Nick Clifton  <nickc@redhat.com>
14585
14586         * config.gcc: Unify V850 architecture options and add support for
14587         newer V850 architectures.
14588         * config/v850/t-v850e: Delete.
14589
14590 2011-06-07  Richard Guenther  <rguenther@suse.de>
14591
14592         * tree.c (build_common_tree_nodes): Also initialize size_type_node.
14593         Call set_sizetype from here.
14594
14595 2011-06-07  Andrew Stubbs  <ams@codesourcery.com>
14596
14597         * config/arm/arm.md (*maddhidi4tb, *maddhidi4tt): New define_insns.
14598         (*maddhisi4tb, *maddhisi4tt): New define_insns.
14599
14600 2011-06-07  Bernd Schmidt  <bernds@codesourcery.com>
14601             Andrew Stubbs  <ams@codesourcery.com>
14602
14603         * simplify-rtx.c (simplify_unary_operation_1): Canonicalize widening
14604         multiplies.
14605         * doc/md.texi (Canonicalization of Instructions): Document widening
14606         multiply canonicalization.
14607
14608 2011-06-07  Jakub Jelinek  <jakub@redhat.com>
14609
14610         PR gcov-profile/49299
14611         * value-prof.c (gimple_ic): Don't assume icall has a fallthru edge.
14612
14613 2011-06-07  Ira Rosen  <ira.rosen@linaro.org>
14614
14615         * tree-vectorizer.h (vect_recog_func_ptr): Make last argument to be
14616         a pointer.
14617         * tree-vect-patterns.c (vect_recog_widen_sum_pattern,
14618         vect_recog_widen_mult_pattern, vect_recog_dot_prod_pattern,
14619         vect_recog_pow_pattern): Likewise.
14620         (vect_pattern_recog_1): Remove declaration.
14621         (widened_name_p): Remove declaration.  Add new argument to specify
14622         whether to check that both types are either signed or unsigned.
14623         (vect_recog_widen_mult_pattern): Update documentation.  Handle
14624         unsigned patterns and multiplication by constants.
14625         (vect_pattern_recog_1): Update vect_recog_func references.  Use
14626         statement information from the statement returned from pattern
14627         detection functions.
14628         (vect_pattern_recog): Update vect_recog_func reference.
14629         * tree-vect-stmts.c (vectorizable_type_promotion): For widening
14630         multiplication by a constant use the type of the other operand.
14631
14632 2011-06-06  Richard Sandiford  <rdsandiford@googlemail.com>
14633
14634         PR rtl-optimization/49145
14635         * combine.c (make_compound_operation): Handle ZERO_EXTEND specially.
14636
14637 2011-06-06  Jakub Jelinek  <jakub@redhat.com>
14638
14639         PR debug/49262
14640         * dwarf2out.c (native_encode_initializer): Decrement count in each
14641         iteration.
14642
14643         PR debug/49294
14644         * dwarf2out.c (mem_loc_descriptor) <do_shift>: Give up for
14645         non-MODE_INT modes.
14646
14647         PR c++/49264
14648         * gimple-fold.c (fold_stmt_1): Don't try to fold *& on the lhs
14649         if stmt folded into nothing.
14650         * tree-inline.c (fold_marked_statements): If a builtin at the end of
14651         a bb folded into nothing, just update cgraph edges and move to next bb.
14652         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Allow new_stmt
14653         to be NULL.  Don't compute count and frequency if new_call is NULL.
14654
14655 2011-06-04  Diego Novillo  <dnovillo@google.com>
14656
14657         * Makefile.in (lto-compress.o): Add dependency on LTO_STREAMER_H.
14658         (cgraph.o): Likewise.
14659         (cgraphunit.o): Likewise.
14660         * cgraphunit.c: Include lto-streamer.h
14661         (cgraph_finalize_compilation_unit): Call lto_streamer_hooks_init
14662         if LTO is enabled.
14663         * lto-streamer-in.c (unpack_value_fields): Call
14664         streamer_hooks.unpack_value_fields if set.
14665         (lto_materialize_tree): For unhandled nodes, first try to
14666         call lto_streamer_hooks.alloc_tree, if it exists.
14667         (lto_input_ts_decl_common_tree_pointers): Move reading of
14668         DECL_INITIAL to lto_streamer_read_tree.
14669         (lto_read_tree): Call lto_streamer_hooks.read_tree if set.
14670         (lto_streamer_read_tree): New.
14671         (lto_reader_init): Rename from lto_init_reader.
14672         Move initialization code to lto/lto.c.
14673         * lto-streamer-out.c (pack_value_fields): Call
14674         streamer_hooks.pack_value_fields if set.
14675         (lto_output_tree_ref): For tree nodes that are not normally indexable,
14676         call streamer_hooks.indexable_with_decls_p before giving up.
14677         (lto_output_ts_decl_common_tree_pointers): Move handling
14678         for FUNCTION_DECL and TRANSLATION_UNIT_DECL to lto_streamer_write_tree.
14679         (lto_output_tree_header): Call streamer_hooks.is_streamable instead of
14680         lto_is_streamable.  Call lto_streamer_hooks.output_tree_header if set.
14681         (lto_write_tree): Call lto_streamer_hooks.write_tree if set.
14682         (lto_streamer_write_tree): New.
14683         (lto_output): Call lto_streamer_init directly.
14684         (lto_writer_init): Remove.
14685         * lto-streamer.c (streamer_hooks): New.
14686         (lto_streamer_cache_create): Call streamer_hooks.preload_common_nodes
14687         instead of lto_preload_common_nodes.
14688         (lto_is_streamable): Move from lto-streamer.h
14689         (lto_streamer_hooks_init): New.
14690         (streamer_hooks): New.
14691         (streamer_hooks_init): New.
14692         * lto-streamer.h (struct output_block): Forward declare.
14693         (struct lto_input_block): Likewise.
14694         (struct data_in): Likewise.
14695         (struct bitpack_d): Likewise.
14696         (struct streamer_hooks): Declare.
14697         (streamer_hooks): Declare.
14698         (lto_streamer_hooks_init): Declare.
14699         (lto_streamer_write_tree): Declare.
14700         (lto_streamer_read_tree): Declare.
14701         (streamer_hooks_init): Declare.
14702         (lto_is_streamable): Move to lto-streamer.c
14703
14704 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14705
14706         * longlong.h (smul_ppmm): The resulting register pair contains the
14707         higher order word first.
14708
14709 2011-06-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
14710
14711         PR tree-optimization/46728
14712         * builtins.c (powi_table): Remove.
14713         (powi_lookup_cost): Remove.
14714         (powi_cost): Remove.
14715         (expand_powi_1): Remove.
14716         (expand_powi): Remove.
14717         (expand_builtin_pow_root): Remove.
14718         (expand_builtin_pow): Remove.
14719         (expand_builtin_powi): Eliminate handling of constant exponent.
14720         (expand_builtin): Use expand_builtin_mathfn_2 for BUILT_IN_POW.
14721
14722 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
14723
14724         * cprop.c (local_cprop_pass): Don't set changed for debug insns.
14725
14726 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
14727
14728         * dce.c (reset_unmarked_insns_debug_uses): New.
14729         (delete_unmarked_insns): Skip debug insns.
14730         (prescan_insns_for_dce): Likewise.
14731         (rest_of_handle_ud_dce): Reset debug uses of removed sets.
14732         * reg-stack.c (subst_stack_regs_in_debug_insn): Signal when no
14733         active reg can be found.
14734         (subst_all_stack_regs_in_debug_insn): New.  Reset debug insn then.
14735         (convert_regs_1): Use it.
14736
14737 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
14738
14739         * tree-pretty-print.c (dump_function_header): Add flags.
14740         Don't dump decl_uid with nouid.
14741         * tree-pretty-print.h (dump_function_header): Adjust.
14742         * final.c (rest_of_clean_state): Pass dump_flags on, with nouid.
14743         * passes.c (pass_init_dump_file): Pass dump_flags on.
14744         * tree-cfg.c (gimple_dump_cfg): Pass flags on.
14745
14746 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
14747
14748         PR bootstrap/49270
14749         * ipa-inline-analysis.c (read_predicate): Initialize all clauses.
14750
14751 2011-06-06  Mikael Pettersson  <mikpe@it.uu.se>
14752
14753         PR tree-optimization/49243
14754         * calls.c (setjmp_call_p): Also check if fndecl has the
14755         returns_twice attribute.
14756
14757 2011-06-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14758
14759         * config/mips/iris6.h (ENDFILE_SPEC): Use crtfastmath.o if
14760         -ffast-math etc.
14761
14762 2011-06-06  Richard Henderson  <rth@redhat.com>
14763             Georg-Johann Lay  <avr@gjlay.de>
14764
14765         PR target/42210
14766         * config/avr/predicates.md (const1_operand, const_0_to_7_operand):
14767         New predicates.
14768         * config/avr/avr.md ("insv"): New insn expander.
14769         ("*movbitqi.1-6.a", "*movbitqi.1-6.b", "*movbitqi.0", "*insv.io",
14770         "*insv.not.io", "*insv.reg"): New insns.
14771
14772 2011-06-06  Hans-Peter Nilsson  <hp@bitrange.com>
14773
14774         PR target/49285
14775         * config/mmix/mmix.md ("truncdfsf2", "extendsfdf2"): Correct predicate
14776         to nonimmediate_operand from memory_operand for the operand that is to
14777         be forced to memory by the expander.  Lose the constraints.
14778
14779 2011-06-05  Eric Botcazou  <ebotcazou@adacore.com>
14780
14781         * config/sparc/sparc.c (output_return): Fix thinko in the output of an
14782         EH return when delayed branches are disabled.
14783
14784 2011-06-05  Uros Bizjak  <ubizjak@gmail.com>
14785
14786         * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>:
14787         Remove MODE_TI handling.  Remove SSE1 handling in attribute "mode"
14788         calculation.
14789         (*movdf_internal_rex64) <case 6,7,8>: Remove MODE_TI handling.
14790         Simplify MODE_V1DF and MODE_V2SF handling.
14791         (*movsf_internal): Remove x constraint from alternative 7 of operand 1.
14792         Simplify MODE_SF handling.
14793
14794 2011-06-04  Jan Hubicka  <jh@suse.cz>
14795
14796         PR tree-optimization/48893
14797         PR tree-optimization/49091
14798         PR tree-optimization/49179
14799         * ipa-inline-analysis.c (evaluate_conditions_for_known_args):
14800         Bounds check.
14801
14802 2011-06-04  Jan Hubicka  <jh@suse.cz>
14803
14804         PR lto/48954
14805         * lto-cgraph.c (output_node_opt_summary): Handle NULL skip args
14806         bitmaps.
14807
14808 2011-06-04  Jonathan Wakely  <jwakely.gcc@gmail.com>
14809
14810         * doc/invoke.texi: Document -Wdelete-non-virtual-dtor.
14811
14812 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
14813
14814         PR target/49281
14815         * config/i386/i386.md (*lea_general_4): Require INTVAL (operands[3])
14816         to be strictly smaller than 1 << shiftcount.
14817
14818 2011-06-04  Jan Hubicka  <jh@suse.cz>
14819
14820         PR tree-optimize/48929
14821         * ipa-inline-analysis.c (remap_edge_predicates): Fix handling
14822         of empty predicate.
14823
14824 2011-06-04  Alexandre Oliva  <aoliva@redhat.com>
14825
14826         PR debug/48333
14827         * calls.c (emit_call_1): Prefer the __builtin declaration of
14828         builtin functions.
14829
14830 2011-06-03   Diego Novillo  <dnovillo@google.com>
14831
14832         * lto-streamer-in.c (unpack_value_fields): Remove unneeded asserts.
14833         (lto_input_tree_pointers): Likewise.
14834         * lto-streamer-out.c (pack_value_fields): Likewise.
14835         (lto_output_tree_pointers): Likewise.
14836         * lto-streamer.h (lto_is_streamable): Add check for OMP_CLAUSE
14837         and OPTIMIZATION_NODE.
14838
14839 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14840
14841         * config/alpha/linux.h (MD_UNWIND_SUPPORT): Remove.
14842         * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Remove.
14843         * config/alpha/vms.h (MD_UNWIND_SUPPORT): Remove.
14844         * config/bfin/linux.h (MD_UNWIND_SUPPORT): Remove.
14845         * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Remove.
14846         * config/i386/linux.h (MD_UNWIND_SUPPORT): Remove.
14847         * config/i386/linux64.h (MD_UNWIND_SUPPORT): Remove.
14848         * config/i386/sol2.h (MD_UNWIND_SUPPORT): Remove.
14849         * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Remove.
14850         * config/ia64/linux.h (MD_UNWIND_SUPPORT): Remove.
14851         * config/ia64/vms.h (MD_UNWIND_SUPPORT): Remove.
14852         * config/m68k/linux.h (MD_UNWIND_SUPPORT): Remove.
14853         * config/mips/linux.h (MD_UNWIND_SUPPORT): Remove.
14854         * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): Remove.
14855         * config/pa/pa32-linux.h (MD_UNWIND_SUPPORT): Remove.
14856         * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Remove.
14857         * config/rs6000/linux.h (MD_UNWIND_SUPPORT): Remove.
14858         * config/rs6000/linux64.h (MD_UNWIND_SUPPORT): Remove.
14859         * config/s390/linux.h (MD_UNWIND_SUPPORT): Remove.
14860         * config/s390/tpf.h (MD_UNWIND_SUPPORT): Remove.
14861         * config/sh/linux.h (MD_UNWIND_SUPPORT): Remove.
14862         * config/sparc/linux.h (MD_UNWIND_SUPPORT): Remove.
14863         * config/sparc/linux64.h (MD_UNWIND_SUPPORT): Remove.
14864         * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Remove.
14865         * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Remove.
14866         * config/alpha/linux-unwind.h: Move to ../libgcc/config/alpha.
14867         * config/alpha/osf5-unwind.h: Move to ../libgcc/config/alpha.
14868         * config/alpha/vms-unwind.h: Move to ../libgcc/config/alpha.
14869         * config/bfin/linux-unwind.h: Move to ../libgcc/config/bfin.
14870         * config/i386/linux-unwind.h: Move to ../libgcc/config/i386.
14871         * config/i386/sol2-unwind.h: Move to ../libgcc/config/i386.
14872         * config/i386/w32-unwind.h: Move to ../libgcc/config/i386.
14873         * config/ia64/linux-unwind.h: Move to ../libgcc/config/ia64.
14874         * config/ia64/vms-unwind.h: Move to ../libgcc/config/ia64.
14875         * config/m68k/linux-unwind.h: Move to ../libgcc/config/m68k.
14876         * config/mips/linux-unwind.h: Move to ../libgcc/config/mips.
14877         * config/pa/hpux-unwind.h: Move to ../libgcc/config/pa.
14878         * config/pa/linux-unwind.h: Move to ../libgcc/config/pa.
14879         * config/rs6000/darwin-unwind.h: Move to ../libgcc/config/rs6000.
14880         * config/rs6000/linux-unwind.h: Move to ../libgcc/config/rs6000.
14881         * config/s390/linux-unwind.h: Move to ../libgcc/config/s390.
14882         * config/s390/tpf-unwind.h: Move to ../libgcc/config/s390.
14883         * config/sh/linux-unwind.h: Move to ../libgcc/config/sh.
14884         * config/sparc/linux-unwind.h: Move to ../libgcc/config/sparc.
14885         * config/sparc/sol2-unwind.h: Move to ../libgcc/config/sparc.
14886         * config/xtensa/linux-unwind.h: Move to ../libgcc/config/xtensa.
14887         * config/darwin9.h (DARWIN_LIBSYSTEM_HAS_UNWIND): Remove.
14888         * system.h (MD_UNWIND_SUPPORT): Poison.
14889         * doc/tm.texi.in (Exception Handling, MD_UNWIND_SUPPORT): Remove.
14890         * doc/tm.texi: Regenerate.
14891         * unwind-dw2.c: Include md-unwind-support.h instead of
14892         MD_UNWIND_SUPPORT.
14893         * config/ia64/unwind-ia64.c: Likewise.
14894         * config/xtensa/unwind-dw2-xtensa.c: Likewise.
14895
14896 2011-06-03  Jack Howarth  <howarth@bromo.med.uc.edu>
14897
14898         * varpool.c (varpool_extra_name_alias): Return NULL, not false.
14899
14900 2011-06-03  Richard Henderson  <rth@redhat.com>
14901             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14902
14903         * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
14904         (sigill_hdlr): Correct insn, insn size.
14905         (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
14906
14907 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14908
14909         * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
14910         t-slibgcc-dummy.
14911         * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
14912         * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
14913         * config/mips/t-iris: Remove.
14914         * config/mips/t-irix6: New file.
14915         * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
14916
14917 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14918
14919         * Makefile.in (LIB2ADDEHDEP): Remove.
14920         * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
14921         * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
14922         * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
14923         * config/t-darwin (LIB2ADDEHDEP): Remove.
14924         * config/t-freebsd (LIB2ADDEHDEP): Remove.
14925         * config/t-linux (LIB2ADDEHDEP): Remove.
14926
14927 2011-06-03  Diego Novillo  <dnovillo@google.com>
14928
14929         * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
14930         (lto_register_var_decl_in_symtab): Likewise.
14931         (lto_register_function_decl_in_symtab): Likewise.
14932         (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
14933         logic to uniquify_nodes.
14934
14935 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14936
14937         * config/alpha/t-osf5: Remove.
14938         * config/alpha/t-osf-pthread: Remove.
14939         * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
14940         * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
14941
14942 2011-06-03  Julian Brown  <julian@codesourcery.com>
14943
14944         * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
14945         (strongarm1110): Use strongarm tuning.
14946         * config/arm/arm-protos.h (tune_params): Add max_insns_skipped field.
14947         * config/arm/arm.c (arm_strongarm_tune): New.
14948         (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
14949         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
14950         (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
14951         setting, using previous defaults or 1 for Cortex-A5.
14952         (arm_option_override): Set max_insns_skipped from current tuning.
14953
14954 2011-06-03  Nathan Sidwell  <nathan@codesourcery.com>
14955
14956         * doc/install.texi (Options specification): Document --with-specs.
14957
14958 2011-06-02  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
14959
14960         * config/arm/neon.md (orndi3_neon): Actually split it.
14961
14962 2011-06-02  Alexandre Oliva  <aoliva@redhat.com>
14963
14964         * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
14965         * var-tracking.c (reverse_op): Limite recurse depth to 5.
14966
14967 2011-06-02  Alexandre Oliva  <aoliva@redhat.com>
14968
14969         PR debug/47590
14970         * target.def (delay_sched2, delay_vartrack): New.
14971         * doc/tm.texi.in: Update.
14972         * doc/tm.texi: Rebuild.
14973         * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
14974         * var-tracking.c (gate_handle_var_tracking): Likewise.
14975         * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
14976         (bfin_flag_var_tracking): Drop.
14977         (output_file_start): Don't save and override flag_var_tracking.
14978         (bfin_option_override): Ditto flag_schedule_insns_after_reload.
14979         (bfin_reorg): Test original variables.
14980         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
14981         * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
14982         (ia64_flag_var_tracking): Drop.
14983         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
14984         (ia64_file_start): Don't save and override flag_var_tracking.
14985         (ia64_override_options_after_change): Ditto
14986         flag_schedule_insns_after_reload.
14987         (ia64_reorg): Test original variables.
14988         * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
14989         (picochip_flag_var_tracking): Drop.
14990         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
14991         (picochip_option_override): Don't save and override
14992         flag_schedule_insns_after_reload.
14993         (picochip_asm_file_start): Ditto flag_var_tracking.
14994         (picochip_reorg): Test original variables.
14995         * config/spu/spu.c (spu_flag_var_tracking): Drop.
14996         (TARGET_DELAY_VARTRACK): Define.
14997         (spu_var_tracking): New.
14998         (spu_machine_dependent_reorg): Call it.
14999         (asm_file_start): Don't save and override flag_var_tracking.
15000
15001 2011-06-02  Kaz Kojima  <kkojima@gcc.gnu.org>
15002
15003         PR target/49163
15004         * config/sh/predicates.md (general_movsrc_operand): Return 0
15005         for memory and memory subreg of which address is an invalid
15006         indexed address for QI and HImode.
15007         (general_movdst_operand): Likewise.
15008
15009 2011-06-02  Eric Botcazou  <ebotcazou@adacore.com>
15010
15011         * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
15012         edges only, when there is a non-local label in the function.
15013         * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
15014
15015 2011-06-02  Uros Bizjak  <ubizjak@gmail.com>
15016
15017         * config/i386/constraints.md (Y3): New register constraint.
15018         * config/i386/sse.md (*vec_interleave_highv2df): Merge with
15019         *sse3_interleave_highv2df and *sse2_interleave_highv2df.
15020         (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
15021         *sse2_interleave_lowv2df.
15022
15023 2011-06-02  Julian Brown  <julian@codesourcery.com>
15024
15025         * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
15026         * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
15027         (arm_cortex_a5_tune): New.
15028
15029 2011-06-02  Julian Brown  <julian@codesourcery.com>
15030
15031         * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
15032         * config/arm/arm.c (arm_default_branch_cost): New.
15033         (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
15034         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
15035         (arm_fa726_tune): Set branch_cost field using
15036         arm_default_branch_cost.
15037         * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
15038         current_tune structure.
15039         * dojump.c (tm_p.h): Include file.
15040
15041 2011-06-02  Julian Brown  <julian@codesourcery.com>
15042
15043         * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
15044         tuning.
15045         (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
15046         (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
15047         * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
15048         field.
15049         * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
15050         (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
15051         (arm_fa726te_tune): Add prefer_constant_pool setting.
15052         (arm_v6t2_tune, arm_cortex_tune): New.
15053         * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
15054         prefer_constant_pool setting.
15055
15056 2011-06-02  Uros Bizjak  <ubizjak@gmail.com>
15057
15058         * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
15059         switch statement.
15060         * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
15061         (*movdf_internal) <case 6,7,8>: Ditto.
15062
15063         * config/i386/constraints.md (Y4): New register constraint.
15064         * config/i386/sse.md (vec_set<mode>_0): Merge with
15065         *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
15066         (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
15067         *vec_extractv2di_1_sse.
15068         (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
15069         and *vec_concatv2di_rex64_sse.
15070
15071 2011-06-02  Stuart Henderson  <shenders@gcc.gnu.org>
15072
15073         PR target/48807
15074         * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
15075         of cgraph_local_info for null before attempting to use it.
15076
15077 2011-06-02  Eric Botcazou  <ebotcazou@adacore.com>
15078
15079         * function.h (struct stack_usage): Remove dynamic_alloc_count field.
15080         (current_function_dynamic_alloc_count): Delete.
15081         * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
15082         (expand_builtin_nonlocal_goto): Remove obsolete comment.
15083         (expand_builtin_update_setjmp_buf): Remove dead code.
15084         * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
15085         * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
15086         support.
15087         * function.c (instantiate_virtual_regs): Likewise.
15088         * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
15089         for a block with a single abnormal incoming edge.
15090         * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
15091         (SETJMP_VIA_SAVE_AREA): Delete.
15092         * config/sparc/sparc-protos.h (load_got_register): Declare.
15093         * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
15094         (load_got_register): Make global.
15095         (sparc_frame_pointer_required): Add 'static'.
15096         (sparc_can_eliminate): Likewise.  Call sparc_frame_pointer_required.
15097         (sparc_builtin_setjmp_frame_value): New function.
15098         * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
15099         (save_stack_nonlocal): New expander.
15100         (restore_stack_nonlocal): Likewise.
15101         (nonlocal_goto): Remove modes, adjust predicates and reimplement.
15102         (nonlocal_goto_internal): New insn.
15103         (goto_handler_and_restore): Delete.
15104         (builtin_setjmp_setup): Likewise.
15105         (do_builtin_setjmp_setup): Likewise.
15106         (setjmp): Likewise.
15107         (builtin_setjmp_receiver): New expander.
15108
15109 2011-06-01  David Li  <davidxl@google.com>
15110
15111         PR middle-end/49261
15112         * tree-pretty-print.c (dump_function_header): Format cleanup.
15113
15114 2011-06-01  Kaz Kojima  <kkojima@gcc.gnu.org>
15115
15116         PR target/49238
15117         * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
15118         needed when original operands are used for msw_skip comparison.
15119
15120 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
15121
15122         PR debug/49250
15123         * var-tracking.c (add_uses, add_stores): Don't call
15124         cselib_subst_to_values on ENTRY_VALUE.
15125
15126 2011-06-01  Diego Novillo  <dnovillo@google.com>
15127
15128         * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
15129         output_record_start with LTO_null instead of output_zero.
15130         (lto_output_ts_binfo_tree_pointers): Likewise.
15131         (lto_output_tree): Likewise.
15132         (output_eh_try_list): Likewise.
15133         (output_eh_region): Likewise.
15134         (output_eh_lp): Likewise.
15135         (output_eh_regions): Likewise.
15136         (output_bb): Likewise.
15137         (output_function): Likewise.
15138         (output_unreferenced_globals): Likewise.
15139         * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
15140         instead of NUM_TREE_CODES.
15141         (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
15142         (lto_output_int_in_range): Change << to >> when shifting VAL.
15143
15144 2011-06-01  Diego Novillo  <dnovillo@google.com>
15145
15146         * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
15147         Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
15148
15149 2011-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
15150
15151         PR target/45074
15152         * optabs.h (valid_multiword_target_p): Declare.
15153         * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
15154         doing multi-word operations.
15155         * optabs.c (expand_binop): Likewise.
15156         (expand_doubleword_bswap): Likewise.
15157         (expand_absneg_bit): Likewise.
15158         (expand_unop): Likewise.
15159         (expand_copysign_bit): Likewise.
15160         (multiword_target_p): New function.
15161
15162 2011-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
15163
15164         PR rtl-optimization/48830
15165         PR rtl-optimization/48808
15166         PR rtl-optimization/48792
15167         * reload.c (push_reload): Check contains_reg_of_mode.
15168         * reload1.c (strip_paradoxical_subreg): New function.
15169         (gen_reload_chain_without_interm_reg_p): Use it to handle
15170         paradoxical subregs.
15171         (emit_output_reload_insns, gen_reload): Likewise.
15172
15173 2011-06-01  David Li  <davidxl@google.com>
15174
15175         * predict.c : Change pass name
15176         * ipa.c: Ditto.
15177         * dce.c: Ditto.
15178         * tree-profile.c: Ditto.
15179         * except.c: Ditto.
15180
15181 2011-06-01  David Li  <davidxl@google.com>
15182
15183         * tree-pretty-print.c (dump_function_header): New function.
15184         * final.c (rest_of_clean_state): Use header dumper.
15185         * tree-cfg.c (gimple_dump_cfg): Use header dumper.
15186         * passes.c (pass_init_dump_file): Use header dumper.
15187
15188 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
15189
15190         * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
15191         ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
15192         popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
15193         New functions.
15194         (mem_loc_descriptor): Use them.
15195
15196         * var-tracking.c (create_entry_value): New function.
15197         (vt_add_function_parameter): Use it.
15198
15199 2011-06-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15200
15201         * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
15202         Include <signal.h>, <ucontext.h>.
15203         (sigill_caught): Define.
15204         (sigill_hdlr): New function.
15205         (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
15206         insns can be executed.
15207         * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
15208         * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
15209
15210 2011-06-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15211
15212         * config/t-slibgcc-darwin: Move to ...
15213         * config/t-slibgcc-dummy: ... this.  Clarify comments.
15214         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
15215         powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
15216         (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
15217         (i[34567]86-*-rtems*): Remove extra_parts.  Use i386/t-rtems.
15218         Remove i386/t-crtstuff from tmake_file.
15219         (i[34567]86-*-solaris2*): Remove t-svr4,
15220         t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
15221         t-slibgcc-dummy.
15222         (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
15223         (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
15224         sparc/t-crtfm from tmake_file.
15225         (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
15226         t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
15227         Remove extra_parts.
15228         * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
15229         * config/i386/t-nwld (SHLIB_LINK): Remove.
15230         * config/i386/t-rtems-i386: Rename to ...
15231         * config/i386/t-rtems: ... this.
15232         ($(T)crti.o, $(T)crtn.o): Remove.
15233         (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
15234         (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
15235         (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
15236         * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
15237         EXTRA_MULTILIB_PARTS): Remove.
15238         * config/sparc/t-sol2-64: Likewise.
15239         * config/sparc/t-sol2: Remove.
15240         * config/sparc/t-crtin: Remove.
15241         * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
15242         * config/i386/gmon-sol2.c: Remove.
15243         * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
15244         * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
15245         * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
15246         * config/i386/sol2-gc1.asm: Remove.
15247         * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
15248         * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
15249         * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
15250         * config/t-slibgcc-sld: Remove.
15251
15252 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
15253
15254         * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
15255         base_type_for_mode with op_mode instead of mode.
15256
15257 2011-06-01  Paul Brook  <paul@cpodesourcery.com>
15258
15259         * config/arm/arm-cores.def: Add cortex-r5.  Add DIV flags to
15260         Cortex-A15.
15261         * config/arm/arm-tune.md: Regenerate.
15262         * config/arm/arm-tables.opt: Regenerate.
15263         * config/arm/arm.c (FL_DIV): Rename...
15264         (FL_THUMB_DIV): ... to this.
15265         (FL_ARM_DIV): Define.
15266         (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
15267         (arm_arch_hwdiv): Remove.
15268         (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
15269         (arm_issue_rate): Add cortexr5.
15270         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
15271         __ARM_ARCH_EXT_IDIV__.
15272         (TARGET_IDIV): Define.
15273         (arm_arch_hwdiv): Remove.
15274         (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
15275         * config/arm/arm.md (tune_cortexr4): Add cortexr5.
15276         (divsi3, udivsi3): New patterns.
15277         * config/arm/thumb2.md (divsi3, udivsi3): Remove.
15278         * doc/invoke.texi: Document ARM -mcpu=cortex-r5
15279
15280 2011-06-01  Martin Jambor  <mjambor@suse.cz>
15281
15282         * ipa-utils.c (ipa_dfs_info): New field scc_no.
15283         * ipa-utils.c (searchc): Set scc_no.
15284
15285 2011-06-01  Martin Jambor  <mjambor@suse.cz>
15286
15287         * ipa-utils.c (searchc_env): New field allow_overwritable.
15288         (searchc): do not ignore edges to overwritable nodes if indicated
15289         by env->allow_overwritable.
15290         (ipa_reduced_postorder): Set env.allow_overwritable.
15291
15292 2011-06-01  Richard Guenther  <rguenther@suse.de>
15293
15294         * tree.c (free_lang_data): Do not reset boolean_type_node nor
15295         char_type_node.
15296         * lto-streamer.c (lto_record_common_node): Take node pointer,
15297         do not register types.
15298         (lto_preload_common_nodes): Explicitly skip preloading nodes
15299         that differ between frontends.
15300
15301 2011-05-31  Pat Haugen  <pthaugen@us.ibm.com>
15302
15303         * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
15304         NON_FLOAT_REGS.
15305
15306 2011-05-31  Pat Haugen  <pthaugen@us.ibm.com>
15307
15308         * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
15309         parameter value for dump. Dump cost on outermost call only.
15310         (rs6000_memory_move_cost): Dump cost on outermost call only.
15311
15312 2011-05-31  Jakub Jelinek  <jakub@redhat.com>
15313
15314         * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
15315         DW_OP_GNU_convert ops.
15316
15317         * cselib.c (promote_debug_loc): Allow l->next non-NULL for
15318         cselib_preserve_constants.
15319         (cselib_lookup_1): If cselib_preserve_constants,
15320         a new VALUE is being created for REG and there is a VALUE for the
15321         same register in wider mode, add another loc with lowpart SUBREG of
15322         the wider VALUE.
15323         (cselib_subst_to_values): Handle ENTRY_VALUE.
15324         * var-tracking.c  (replace_expr_with_values): Return NULL for
15325         ENTRY_VALUE too.
15326         * dwarf2out.c (convert_descriptor_to_signed): New function.
15327         (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
15328         instead of two shifts.
15329         (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
15330         the right mode if needed.
15331         (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
15332         (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
15333         convert_descriptor_to_signed.
15334         (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
15335         BSWAP, ROTATE, ROTATERT>: Handle these rtls.
15336
15337         PR target/48688
15338         * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
15339
15340 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
15341
15342         * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
15343         of X87MODEI12 and SWI48x instead of SSEMODEI24.
15344         (SWI248x): New mode iterator, rename from X87MODEI.
15345         (X87MODEI): Remove mode iterator.
15346         (X87MODEI12): Ditto.
15347         (SSEMODEI24): Ditto.
15348
15349 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
15350
15351         * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
15352         * doc/invoke.texi: Document max-vartrack-expr-depth.
15353         * var-tracking.c (EXPR_DEPTH): New.
15354         (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
15355
15356 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
15357
15358         * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
15359         * config/i386/sse.md: Add n to negated FMA pattern names.
15360
15361 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
15362
15363         * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
15364
15365 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
15366
15367         * gengtype-state.c (read_state_params_structs): Initialize previous.
15368
15369 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
15370
15371         * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
15372         (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
15373
15374 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
15375
15376         * config/i386/i386.md (*movtf_internal): Avoid allocating general
15377         registers.  Penalize F*r->o alternative to prevent partial memory
15378         stalls.  Slightly penalize *roF->*r alternative.  Generate SSE
15379         CONST_DOUBLE immediates when optimizing function for size.  Do not move
15380         CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
15381         (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
15382         (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
15383         (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
15384         alternatives.
15385         (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
15386
15387         (fp_register_operand splitters): Use fp_register_operand
15388         constraint.  Do not use FP_REG_P in insn condition.
15389         (any_fp_register_operand splitters): Use any_fp_register_operand
15390         constraint.  Do not use ANY_FP_REG_P in insn condition.
15391
15392 2011-05-31  Jan Hubicka  <jh@suse.cz>
15393
15394         * cgraph.h (cgraph_inline_failed_t): Give enum a name
15395         * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
15396         (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
15397         (lto_output_edge): Use output_enum and var_len_unsigned.
15398         (lto_output_varpool_node): Likewise.
15399         (input_overwrite_node): Do not take resolution parameter;
15400         extract it from a bitpack.
15401         (input_node): Do not read resolution; use input_enum and
15402         var_len_unsigned.
15403         (input_varpool_node): Likewise.
15404         (input_edge): Likewise.
15405         (input_cgraph_1): Likewise.
15406
15407 2011-05-31  Richard Guenther  <rguenther@suse.de>
15408
15409         * gimple.c (gimple_register_canonical_type): Do not register
15410         any types via gimple_register_type.
15411
15412 2011-05-31  Jan Hubicka  <jh@suse.cz>
15413
15414         * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
15415         of thunks.
15416
15417 2011-05-31  Jakub Jelinek  <jakub@redhat.com>
15418
15419         PR rtl-optimization/49235
15420         * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
15421         (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
15422
15423 2011-05-31  Ira Rosen  <ira.rosen@linaro.org>
15424
15425         PR tree-optimization/49093
15426         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
15427         data references.
15428
15429 2011-05-31  Dodji Seketeli  <dodji@redhat.com>
15430
15431         PR debug/49047
15432         * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
15433         for concrete functions containing the code of cloned functions.
15434
15435 2011-05-31  Richard Guenther  <rguenther@suse.de>
15436
15437         * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
15438         to ...
15439         (forward_propagate_into_comparison_1): ... this.
15440         (forward_propagate_comparison): Rename to ...
15441         (forward_propagate_into_comparison): ... this.  Split out
15442         real forward propagation code to ...
15443         (forward_propagate_comparison): ... this.
15444         (forward_propagate_into_gimple_cond): Remove looping.
15445         (forward_propagate_into_cond): Likewise.
15446         (simplify_not_neg_expr): Return whether we have done something.
15447         (simplify_gimple_switch): Likewise.
15448         (tree_ssa_forward_propagate_single_use_vars): Rename to ...
15449         (ssa_forward_propagate_and_combine): ... this.  Re-structure
15450         to do a forward forward-propagation walk on BBs and a backward
15451         stmt combining walk on BBs.  Consistently re-scan changed statements.
15452         (pass_forwprop): Adjust.
15453
15454 2011-05-30  Ian Lance Taylor  <iant@google.com>
15455
15456         * godump.c (go_format_type): Correct length of name added to
15457         obstack for anonymous field.
15458
15459 2011-05-30  Kaz Kojima  <kkojima@gcc.gnu.org>
15460
15461         PR target/49186
15462         * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
15463         part of the second operand is 0.
15464
15465 2011-05-30  Uros Bizjak  <ubizjak@gmail.com>
15466
15467         * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
15468         to prevent partial memory stalls.  Do not move CONST_DOUBLEs directly
15469         to memory for !TARGET_MEMORY_MISMATCH_STALL.
15470         (*movdf_internal_rex64): Do not penalize F->r alternative.
15471         (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
15472         memory stalls.  Generate SSE and x87 CONST_DOUBLE immediates only
15473         when optimizing function for size.  Do not move CONST_DOUBLEs
15474         directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
15475         (FP move splitters): Merge {TF,XF,DF}mode splitters.  Do not handle
15476         SUBREGs.  Do not check for MEM_P operands in the insn condition,
15477         check for ANY_FP_REGNO_P instead.
15478         * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
15479         TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
15480         function for speed.
15481         * config/i386/i386.c (ix86_option_override_internal): Do not
15482         set TARGET_INTEGER_DFMODE_MOVES here.
15483
15484 2011-05-30  H.J. Lu  <hongjiu.lu@intel.com>
15485
15486         PR target/49168
15487         * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
15488
15489 2011-05-30  Jakub Jelinek  <jakub@redhat.com>
15490
15491         * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
15492         DW_TAG_rvalue_reference_type even for
15493         -gdwarf-4 -fno-debug-types-section.
15494
15495 2011-05-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
15496
15497         PR tree-optimization/46728
15498         * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
15499         (build_and_insert_binop): New.
15500         (gimple_expand_builtin_pow): Reorder args for
15501         build_and_insert_call; use build_and_insert_binop; add more
15502         optimizations for fractional exponents.
15503
15504 2011-05-30  Nathan Froyd  <froydnj@gcc.gnu.org>
15505
15506         PR bootstrap/49190
15507
15508         Revert:
15509         2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
15510
15511         * tree.h (struct tree_identifier): Inherit from tree_typed, not
15512         tree_common.
15513         (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
15514         * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
15515         TS_BASE instead of TS_COMMON.
15516         * varasm.c (assemble_name): Remove assert.
15517
15518 2011-05-30  Richard Sandiford  <rdsandiford@googlemail.com>
15519
15520         * config.gcc: Keep obselete list sorted.
15521
15522 2011-05-30  Jakub Jelinek  <jakub@redhat.com>
15523             Eric Botcazou  <ebotcazou@adacore.com>
15524
15525         * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
15526         crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
15527         there is a DRAP register and arg_pointer_rtx is the CFA pointer.
15528         (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
15529         (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
15530
15531 2011-05-30  Richard Guenther  <rguenther@suse.de>
15532
15533         * gimple.c (gimple_types_compatible_p_1): Compare record
15534         and union type members properly.
15535
15536 2011-05-30  Richard Guenther  <rguenther@suse.de>
15537
15538         PR tree-optimization/49210
15539         * ipa-split.c (split_function): Care for the case where the call
15540         result is not trivially convertible to the result holding variable.
15541
15542 2011-05-30  Richard Guenther  <rguenther@suse.de>
15543
15544         PR tree-optimization/49218
15545         * tree-vrp.c (adjust_range_with_scev): Properly check whether
15546         overflow occured.
15547
15548 2011-05-30  Richard Guenther  <rguenther@suse.de>
15549
15550         * tree-ssa-forwprop.c (forward_propagate_into_comparison):
15551         New function split out from ...
15552         (forward_propagate_into_gimple_cond): ... here.  Adjust.
15553         (forward_propagate_into_cond): Likewise.
15554         (forward_propagate_comparison): Also propagate into
15555         comparisons on assignment RHS.  Change return value to
15556         behave similar to forward_propagate_into_cond.
15557         (tree_ssa_forward_propagate_single_use_vars): Handle
15558         strict-overflow warnings properly for forward_propagate_comparison.
15559
15560 2011-05-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15561
15562         * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
15563         from plugin linker.
15564         * configure: Regenerate.
15565
15566 2011-05-30  Ira Rosen  <ira.rosen@linaro.org>
15567
15568         PR tree-optimization/49199
15569         * tree-vect-loop.c (vect_is_slp_reduction): Check that the
15570         non-reduction operands are either defined in the loop or by induction.
15571
15572 2011-05-29  Xinliang David Li  <davidxl@google.com>
15573
15574         * opts-global.c (handle_common_deferred_options): Handle new options.
15575         * passes.c (register_one_dump_file): Call register_pass_name.
15576         (execute_one_pass): Check explicit enable/disable flag.
15577         (passr_hash): New function.
15578         (passr_eq): Ditto.
15579         (register_pass_name): Ditto.
15580         (get_pass_by_name): Ditto.
15581         (pass_hash): Ditto.
15582         (pass_eq): Ditto.
15583         (enable_pass): Ditto.
15584         (disable_pass): Ditto.
15585         (is_pass_explicitly_enabled_or_disabled): Ditto.
15586
15587 2011-05-29  Uros Bizjak  <ubizjak@gmail.com>
15588
15589         * config/i386/i386.md (*movoi_internal_avx): Use
15590         standard_sse_constant_opcode for alternative 0.
15591         (*movti_internal_sse): Ditto.
15592         (*movti_internal_rex64): Use standard_sse_constant_opcode for
15593         alternative 2.
15594         (*movdi_internal_rex64): Use standard_sse_constant_opcode for
15595         sselog1 type moves.
15596         (*movsi_internal): Ditto.
15597         (*movdi_internal): Ditto.  Add ssecvt type moves.
15598
15599 2011-05-29  Eric Botcazou  <ebotcazou@adacore.com>
15600
15601         PR target/48830
15602         * rtlanal.c (simplify_subreg_regno): Adjust comment.
15603
15604 2011-05-29  Jakub Jelinek  <jakub@redhat.com>
15605
15606         PR rtl-optimization/49095
15607         * config/i386/predicates.md (plusminuslogic_operator): New predicate.
15608         * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
15609
15610 2011-05-29  Richard Sandiford  <rdsandiford@googlemail.com>
15611
15612         PR target/43995
15613         * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
15614         recurse_p argument.  Only follow register copies if it is set,
15615         and prevent mips_find_pic_call_symbol from recursing.
15616         (mips_find_pic_call_symbol): Add a recurse_p argument.
15617         Pass it to mips_pic_call_symbol_from_set.
15618         (mips_annotate_pic_calls): Update accordingly.
15619
15620 2011-05-29  Richard Sandiford  <rdsandiford@googlemail.com>
15621
15622         * emit-rtl.c (try_split): Use a loop to search for
15623         NOTE_INSN_CALL_ARG_LOCATIONs.
15624
15625 2011-05-29  Richard Guenther  <rguenther@suse.de>
15626
15627         PR tree-optimization/49217
15628         * ipa-pure-const.c (propagate_pure_const): Fix typos.
15629
15630 2011-05-28  Jan Hubicka  <jh@suse.cz>
15631
15632         * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
15633         length.
15634         (string_slot_free): Remove
15635         (create_output_block): Initialize obstack.
15636         (destroy_output_block): Free obstack.
15637         (lto_string_index): Add PERSISTENT parameter; do not duplicate
15638         the string unless it needs to be added into the hash.
15639         (lto_output_string_with_length): Add persistent attribute;
15640         handle NULL strings.
15641         (lto_output_string): Add PERSISTENT parameter.
15642         (output_string_cst, output_identifier): Simplify.
15643         (lto_output_location_bitpack): Update.
15644         (lto_output_builtin_tree): Update.
15645         * lto-streamer.h (struct output_block): Add obstack.
15646         (lto_output_string, lto_output_string_with_length): Remove
15647         declarations; functions are static now.
15648
15649 2011-05-28  Jan Hubicka  <jh@suse.cz>
15650
15651         * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
15652         pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
15653         pack_ts_function_decl_value_fields, lto_output_builtin_tree,
15654         output_cfg, output_gimple_stmt): Use enum and variable length i/o.
15655         * lto-streamer-in.c (input_cfg, input_gimple_stmt,
15656         unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
15657         unpack_ts_decl_with_vis_value_fields,
15658         unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
15659         lto_get_builtin_tree): Use enum and variable length i/o.
15660         * basic-block.h (profile_status_d): Add PROFILE_LAST.
15661         * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
15662         New functions.
15663         (bp_pack_enum, bp_unpack_enum): New macros.
15664
15665 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
15666
15667         * genrecog.c: Remove redundant forward declarations.
15668
15669 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
15670
15671         * config.gcc: Deprecate mips*-*-openbsd*.
15672
15673 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
15674
15675         PR bootstrap/49195
15676         * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
15677         for match_op_dup.
15678
15679 2011-05-27  Andrew Pinski  <pinskia@gmail.com>
15680
15681         PR middle-end/48981
15682         * gengtype.c (vec_prefix_type): New function.
15683         (note_def_vec): Use vec_prefix_type and change the length
15684         attribute to be based on the prefix.
15685         * vec.c: Include coretypes.h before vec.h.
15686         (struct vec_prefix): Remove.
15687         (vec_gc_p_reserve): Change the offsetof to sizeof.
15688         (vec_gc_p_reserve_exact): Likewise.
15689         (vec_heap_p_reserve): Likewise.
15690         (vec_heap_p_reserve_exact): Likewise.
15691         (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
15692         (vec_stack_p_reserve): Change the offsetof to sizeof.
15693         (vec_stack_p_reserve_exact): Likewise.
15694         * vec.h (struct vec_prefix): New struct definition.
15695         (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
15696         (VEC_T_GTY(T,B)): Likewise.
15697         (DEF_VEC_FUNC_P(T)): Use prefix field.
15698         (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
15699         (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
15700
15701 2011-05-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
15702
15703         PR tree-optimization/46728
15704         * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
15705         (powi_as_mults): Add gimple_set_location.
15706         (build_and_insert_call): New.
15707         (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
15708         0.5, 0.25, 0.75, 1./3., or 1./6.
15709
15710 2011-05-27  Alexander Monakov  <amonakov@ispras.ru>
15711
15712         * doc/contrib.texi: Update copyright years.
15713         (Contributors): Add Zdenek Sojka.
15714
15715 2011-05-27  Nathan Froyd  <froydnj@codesourcery.com>
15716
15717         * c-decl.c (c_push_function_context): Copy the current statement
15718         list stack.
15719         (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
15720         (finish_struct): Call building_stmt_list_p instead of checking
15721         cur_stmt_list.
15722         * c-parser.c (c_parser_postfix_expression): Likewise.
15723         * c-typeck.c (c_end_compound_stmt): Likewise.
15724         * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
15725         * tree-iterator.c (stmt_list_cache): Change to a VEC.
15726         (alloc_stmt_list): Adjust for stmt_list_cache's new type.
15727         (free_stmt_list): Likewise.
15728         * tree.h (struct tree_statement_list): Include typed_tree instead
15729         of tree_common.
15730         * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
15731         as TS_TYPED instead of TS_COMMON.
15732
15733 2011-05-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15734             Uros Bizjak  <ubizjak@gmail.com>
15735
15736         * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
15737         (HAVE_AS_IX86_TLSGDPTL): Define.
15738         (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
15739         (HAVE_AS_IX86_TLSLDMPLT): Define.
15740         * configure: Regenerate.
15741         * config.in: Regenerate.
15742         * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
15743         * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
15744         TARGET_SUN_TLS, use @tlsgdplt or @plt.
15745         (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
15746         (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
15747         @tlsldmplt or @plt.
15748         (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
15749
15750 2011-05-27  Bernd Schmidt  <bernds@codesourcery.com>
15751
15752         * sched-int.h (struct _haifa_deps_insn_data): New members cond
15753         and reverse_cond.
15754         (INSN_COND, INSN_REVERSE_COND): New macros.
15755         * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
15756         once.
15757         (sched_get_condition_with_rev): Cache the results, and look them up
15758         if possible.
15759         (sched_analyze_insn): Destroy INSN_COND of previous insns if they
15760         are clobbered by the current insn.
15761         * target.def (exposed_pipline): New sched data hook.
15762         * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
15763         * doc/tm.texi: Regenerate.
15764
15765 2011-05-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
15766
15767         PR tree-optimization/49170
15768         * tree-ssa-math-opts.c (execute_cse_sincos):  Add checks for
15769         sincos or cexp.
15770
15771 2011-05-27  Richard Guenther  <rguenther@suse.de>
15772
15773         PR middle-end/49189
15774         * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
15775         of comparisons.
15776
15777 2011-05-27  Bernd Schmidt  <bernds@codesourcery.com>
15778
15779         * haifa-sched.c (sched_scan_info): Remove.
15780         (schedule_block): Call sched_extend_luids rather than sched_init_luids
15781         with NULL args.
15782         (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
15783         Remove functions.
15784         (sched_scan): Remove.
15785         (sched_extend_luids): Renamed from luids_extend_insn and no longer
15786         static.  All callers changed.
15787         (sched_init_insn_luid): Renamed from luids_init_insn and no longer
15788         static.  All callers changed.
15789         (sched_init_luids): Remove all arguments except the first.  All
15790         callers changed.  Don't use sched_scan.
15791         (haifa_init_h_i_d): Likewise.
15792         (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
15793         manually rather than using sched_init_luids.  Likewise with
15794         extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
15795         * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
15796         rather than sched_init_luids with NULL args.
15797         * sel-sched-ir.c (new_insns): Remove variable.
15798         (sched_scan): New static function, previously in haifa-sched.c.  Remove
15799         all arguments but the first two; all callers changed.
15800         (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
15801         rather than sched_init_luids.
15802         (sel_init_bbs): Remove second argument.  All callers changed.
15803         (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
15804         with NULL arguments.
15805         (create_insn_rtx_from_pattern): Likewise.
15806         * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
15807         * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
15808         (sched_init_insn_luid, sched_extend_luids): Declare.
15809         (sched_scan_info_def, sched_scan_info, sched_scan): Remove
15810         declarations.
15811
15812 2011-05-27  Richard Guenther  <rguenther@suse.de>
15813
15814         PR middle-end/49177
15815         * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
15816         A CMP B ? (T) true : (T) false for non-integral types T again.
15817
15818 2011-05-27  Jan Hubicka  <jh@suse.cz>
15819
15820         * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
15821         so 0 means NULL string.
15822         (lto_output_string_with_length): ... here.
15823         (lto_output_string, output_string_cst, output_identifier): Update
15824         handling of NULL strings.
15825         (lto_output_location_bitpack): New function.
15826         (lto_output_location): Use it.
15827         (lto_output_tree_ref): Use output_record_start.
15828         (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
15829         len values.
15830         * lto-streamer-in.c (string_for_index): Break out from ...; offset
15831         values by 1.
15832         (input_string_internal): ... here;
15833         (input_string_cst, input_identifier, lto_input_string): Update handling
15834         of NULL strings.
15835         (lto_input_location_bitpack): New function
15836         (lto_input_location): Use it.
15837         (unpack_ts_type_common_value_fields): Pack align & alias in var len
15838         values.
15839         * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
15840         bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
15841         (bp_pack_value): Sanity check the value range.
15842         * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
15843         New functions.
15844         * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
15845         New functions.
15846
15847 2011-05-27  Hariharan Sandanagobalane  <hariharan@picochip.com>
15848
15849         * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
15850         call_arg_location instructions down the floor.
15851
15852 2011-05-26  Vladimir Makarov  <vmakarov@redhat.com>
15853
15854         PR rtl-optimization/49154
15855         * ira.c (setup_pressure_classes): Process class without sublcasses
15856         as a candidate for pressure classes.
15857
15858 2011-05-26  Richard Sandiford  <rdsandiford@googlemail.com>
15859
15860         PR rtl-optimization/48575
15861         * genrecog.c (position_type): New enum.
15862         (position): New structure.
15863         (decision): Use position structure instead of a string.
15864         (root_pos, peep2_insn_pos_list): New variables.
15865         (next_position, compare_positions): New functions.
15866         (new_decision): Use position structures instead of strings.
15867         (maybe_both_true): Likewise.
15868         (change_state): Likewise.
15869         (write_tree): Likewise.
15870         (make_insn_sequence): Likewise.
15871
15872 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
15873
15874         * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
15875         TS_BASE instead of TS_COMMON.
15876         (find_decls_types_r): Check for TS_TYPED structure before looking at
15877         TREE_TYPE.
15878         * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
15879         Add chain field.
15880         (BLOCK_CHAIN): Use new chain field.
15881
15882 2011-05-26  Pat Haugen  <pthaugen@us.ibm.com>
15883
15884         * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
15885         moves expensive on Power7 also.
15886
15887 2011-05-26  Richard Guenther  <rguenther@suse.de>
15888
15889         * fold-const.c (fold_unary_loc): Remove bogus code.
15890
15891 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
15892
15893         * tree.h (struct tree_identifier): Inherit from tree_typed, not
15894         tree_common.
15895         (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
15896         * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
15897         TS_BASE instead of TS_COMMON.
15898         * varasm.c (assemble_name): Remove assert.
15899
15900 2011-05-26  Bernd Schmidt  <bernds@codesourcery.com>
15901
15902         * Makefile.in (srcdirify): Change order so that libgcc_objdir is
15903         substituted first.
15904         * libgcc-std.ver: Delete file.
15905
15906 2011-05-26  Richard Guenther  <rguenther@suse.de>
15907
15908         PR tree-optimization/48702
15909         * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
15910         only when we know the base address is within bounds.
15911         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
15912         assume the base address of TARGET_MEM_REFs is in bounds.
15913
15914 2011-05-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15915
15916         PR target/49099
15917         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
15918         declaration in TARGET_SOLARIS.
15919
15920 2011-05-26  Hariharan Sandanagobalane  <hariharan@picochip.com>
15921
15922         * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
15923         The instruction is then expanded explicitly.
15924         (supported_compare): Callable instruction.
15925         (compare): Likewise.
15926
15927 2011-05-26  Jakub Jelinek  <jakub@redhat.com>
15928
15929         PR c++/49165
15930         * gimplify.c (shortcut_cond_r): Don't special case
15931         COND_EXPRs if they have void type on one of their arms.
15932
15933 2011-05-26  Bernd Schmidt  <bernds@codesourcery.com>
15934
15935         * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
15936         to reduce duplication, and to achieve a slightly more logical order
15937         of operations.
15938
15939 2011-05-26  Jakub Jelinek  <jakub@redhat.com>
15940
15941         PR tree-optimization/49161
15942         * tree-vrp.c (struct case_info): New type.
15943         (compare_case_labels): Sort case_info structs instead of
15944         trees, and not primarily by CASE_LABEL uids but by
15945         label_for_block indexes.
15946         (find_switch_asserts): Put case labels into struct case_info
15947         array instead of TREE_VEC, adjust sorting, compare label_for_block
15948         values instead of CASE_LABELs.
15949
15950 2011-05-26  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
15951
15952         * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
15953         ("orndi3_neon"): Likewise.
15954         ("bic<mode>3_neon"): Likewise.
15955
15956 2011-05-26  Ira Rosen  <ira.rosen@linaro.org>
15957
15958         PR tree-optimization/49038
15959         * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
15960         Ensure at least one epilogue iteration if required by data
15961         accesses with gaps.
15962         * tree-vectorizer.h (struct _loop_vec_info): Add new field
15963         to mark loops that require peeling for gaps.
15964         * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
15965         (vect_get_known_peeling_cost): Take peeling for gaps into
15966         account.
15967         (vect_transform_loop): Generate epilogue if required by data
15968         access with gaps.
15969         * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
15970         loop as requiring an epilogue if there are gaps in the end of
15971         the strided group.
15972
15973 2011-05-25  Ian Lance Taylor  <iant@google.com>
15974
15975         * godump.c (go_format_type): Output the first field with a usable
15976         Go type, if any.
15977
15978 2011-05-25  Ian Lance Taylor  <iant@google.com>
15979
15980         * godump.c (go_format_type): Check for invalid type names, pointer
15981         target types, and struct field types.
15982
15983 2011-05-25  Jason Merrill  <jason@redhat.com>
15984
15985         * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
15986
15987 2011-05-25  Uros Bizjak  <ubizjak@gmail.com>
15988
15989         * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
15990
15991 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
15992
15993         * config/i386/i386.md (*movqi_extv_1)): Put back
15994         "register_operand" check in "type" calculation.
15995         (*movqi_extzv_2): Likewise.
15996
15997 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
15998
15999         * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
16000
16001 2011-05-25  Bernd Schmidt  <bernds@codesourcery.com>
16002
16003         PR bootstrap/49160
16004         * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
16005         __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
16006         __divxc3, __divtc3): Wrap definitions in #ifndef.
16007
16008 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
16009
16010         PR target/49142
16011         * config/i386/i386.md (*movqi_extv_1_rex64): Remove
16012         "register_operand" check and replace q_regs_operand with
16013         QIreg_operand in "type" calculation.
16014         (*movqi_extv_1): Likewise.
16015         (*movqi_extzv_2_rex64): Likewise.
16016         (*movqi_extzv_2): Likewise.
16017
16018         * config/i386/predicates.md (QIreg_operand): New.
16019
16020 2011-05-25  Richard Guenther  <rguenther@suse.de>
16021
16022         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
16023         type-based offset disambiguation, streamline MEM_REF and
16024         TARGET_MEM_REF handling.
16025
16026 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
16027
16028         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
16029         (bdesc_special_args): Add pause intrinsic.
16030
16031         * config/i386/i386.md (UNSPEC_PAUSE): New.
16032         (pause): Likewise.
16033         (*pause): Likewise.
16034         * config/i386/ia32intrin.h (__pause): Likewise.
16035
16036         * doc/extend.texi (X86 Built-in Functions): Add documentation for
16037         pause intrinsic.
16038
16039 2011-05-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
16040
16041         PR tree-optimization/46728
16042         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
16043         (execute_cse_sincos): Add switch case for BUILT_IN_POW.
16044
16045 2011-05-25  Nathan Froyd  <froydnj@codesourcery.com>
16046
16047         * tree.h (struct tree_exp): Inherit from struct tree_typed.
16048         * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
16049         instead of TS_COMMON.
16050
16051 2011-05-25  Bernd Schmidt  <bernds@codesourcery.com>
16052
16053         * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
16054         LIBGCC2_GNU_PREFIX is defined.
16055         (__N): New macro.
16056         (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
16057         __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
16058         __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
16059         __clz_tab): Define using __N.
16060         (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
16061         COMPAT_SIMODE_TRAPPING_ARITHMETIC.
16062         * target.def (libfunc_gnu_prefix): New hook.
16063         * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
16064         (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
16065         * doc/tm.texi: Regenerate.
16066         * system.h (LIBGCC2_GNU_PREFIX): Poison.
16067         * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
16068         account.
16069         (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
16070         (init_optabs): Likewise for the bswap libfuncs.
16071         * tree.c (build_common_builtin_nodes): Likewise for complex multiply
16072         and divide.
16073         * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
16074         * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
16075         * libgcc-std.ver: Remove.
16076         * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
16077         * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
16078         libgcc-std.ver.
16079         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
16080         * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
16081         * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
16082         * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
16083         * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
16084         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
16085         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
16086         * config/fixed-bit.h (FIXED_OP): Define differently depending on
16087         LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
16088         (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
16089
16090 2011-05-25  Jan Hubicka  <jh@suse.cz>
16091
16092         * lto-streamer-out.c (output_record_start): Use lto_output_enum
16093         (lto_output_tree): Use output_record_start.
16094         * lto-streamer-in.c (input_record_start): Use lto_input_enum
16095         (lto_get_pickled_tree): Use input_record_start.
16096         * lto-section-in.c (lto_section_overrun): Turn into fatal error.
16097         (lto_value_range_error): New function.
16098         * lto-streamer.h (lto_value_range_error): Declare.
16099         (lto_output_int_in_range, lto_input_int_in_range): New functions.
16100         (lto_output_enum, lto_input_enum): New macros.
16101
16102 2011-05-25  Eric Botcazou  <ebotcazou@adacore.com>
16103
16104         * common.opt (flag_stack_usage_info): New variable.
16105         (-Wstack-usage): New option.
16106         * doc/invoke.texi (Warning options): Document -Wstack-usage.
16107         * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
16108         <OPT_fstack_usage>: Likewise.
16109         * toplev.c (output_stack_usage): Handle -Wstack-usage.
16110         * calls.c (expand_call): Test flag_stack_usage_info variable instead
16111         of flag_stack_usage.
16112         (emit_library_call_value_1): Likewise.
16113         * explow.c (allocate_dynamic_stack_space): Likewise.
16114         * function.c (instantiate_virtual_regs ): Likewise.
16115         (prepare_function_start): Likewise.
16116         (rest_of_handle_thread_prologue_and_epilogue): Likewise.
16117         * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
16118         * config/arm/arm.c (arm_expand_prologue): Likewise.
16119         (thumb1_expand_prologue): Likewise.
16120         * config/avr/avr.c (expand_prologue): Likewise.
16121         * config/i386/i386.c (ix86_expand_prologue): Likewise.
16122         * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
16123         * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
16124         * config/mips/mips.c (mips_expand_prologue): Likewise.
16125         * config/pa/pa.c (hppa_expand_prologue): Likewise.
16126         * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
16127         * config/s390/s390.c (s390_emit_prologue): Likewise.
16128         * config/sh/sh.c (sh_expand_prologue): Likewise.
16129         * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
16130         * config/spu/spu.c (spu_expand_prologue): Likewise.
16131
16132 2011-05-25  Richard Guenther  <rguenther@suse.de>
16133
16134         * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
16135         (gimple_canonical_types_compatible_p): Likewise.
16136
16137 2011-05-25  Jan Hubicka  <jh@suse.cz>
16138
16139         PR middle-end/49062
16140         * ipa.c (function_and_variable_visibility): Only add to same
16141         comdat group list if DECL_ONE_ONLY.
16142
16143 2011-05-25  Andrey Belevantsev  <abel@ispras.ru>
16144
16145         PR rtl-optimization/49014
16146         * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
16147
16148 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
16149
16150         PR target/49128
16151         * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
16152
16153 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
16154
16155         PR rtl-optimization/48757
16156         * ira-build.c (loop_with_eh_edge_p): Rename to
16157         loop_with_complex_edge_p, check edges on complexity, make function
16158         conditional.
16159         (mark_loops_for_removal): Make call of loop_with_complex_edge_p
16160         conditional.
16161
16162 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
16163
16164         * config/sparc/sparc.c (sparc_option_override): If not set by the user,
16165         force flag_ira_share_save_slots to 0.
16166
16167 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
16168
16169         * var-tracking.c (compute_cfa_pointer): Adjust head comment.
16170         (vt_initialize): Set PROLOGUE_BB unconditionally.
16171         Add block comment about CFA_BASE_RTX machinery.
16172         Reset FP_CFA_OFFSET to -1 on all invalid paths.
16173         Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
16174
16175 2011-05-24  Nicola Pero  <nicola.pero@meta-innovation.com>
16176
16177         PR objc/48187
16178         * c-parser.c (c_parser_objc_class_instance_variables): More robust
16179         parsing of syntax error in ObjC instance variable lists.  In
16180         particular, avoid an infinite loop if there is a stray ']'.
16181         Updated error message.
16182
16183 2011-05-24  Ian Lance Taylor  <iant@google.com>
16184
16185         * godump.c (go_define): Don't accept a string immediately after
16186         another operand.
16187
16188 2011-05-24  Ian Lance Taylor  <iant@google.com>
16189
16190         * godump.c (struct godump_container): Add invalid_hash field.
16191         (go_format_type): Return false if type is found in invalid_hash.
16192         (go_output_typedef): Add invalid type to invalid_hash.
16193         (go_finish): Create and delete invalid_hash.
16194
16195 2011-05-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
16196
16197         PR tree-optimization/46728
16198         * tree-ssa-math-opts.c (powi_table): New.
16199         (powi_lookup_cost): New.
16200         (powi_cost): New.
16201         (powi_as_mults_1): New.
16202         (powi_as_mults): New.
16203         (gimple_expand_builtin_powi): New.
16204         (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
16205         (gate_cse_sincos): Remove sincos/cexp restriction.
16206
16207 2011-05-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16208
16209         PR target/3746
16210         * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
16211         mips-tdump native.
16212         * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
16213         * mips-tdump.c: Likewise.
16214
16215 2011-05-24  H.J. Lu  <hongjiu.lu@intel.com>
16216
16217         PR target/49128
16218         * config/i386/driver-i386.c (host_detect_local_cpu): Always
16219         add -mno-XXX.  Handle FMA.
16220
16221 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
16222
16223         PR rtl-optimization/48633
16224         * ira-build.c (loop_with_eh_edge_p): New function.
16225         (mark_loops_for_removal): Use it.
16226
16227 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
16228
16229         PR rtl-optimization/48971
16230         * ira.c (setup_pressure_classes): Don't check register move cost
16231         for classes with one registers.  Don't add pressure class if there
16232         is a pressure class with the same available hard registers.
16233         Check contains_reg_of_mode.  Fix a typo in collecting
16234         temp_hard_regset.  Ignore hard registers not belonging to a class.
16235
16236 2011-05-24  Uros Bizjak  <ubizjak@gmail.com>
16237
16238         PR target/49133
16239         * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
16240
16241 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
16242             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16243
16244         PR gcov-profile/48845
16245         * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
16246
16247 2011-05-24  Richard Guenther  <rguenther@suse.de>
16248
16249         * gimple.c (compare_type_names_p): Remove for_completion_p arg.
16250         (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
16251         (gimple_types_compatible_p_1): Adjust.
16252         (iterative_hash_canonical_type): Do not bother about complete vs.
16253         incomplete types.
16254         (gimple_canonical_types_compatible_p): Likewise.
16255
16256 2011-05-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16257
16258         * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
16259
16260 2011-05-24  Richard Guenther  <rguenther@suse.de>
16261
16262         PR bootstrap/49078
16263         * gimple.c (gimple_register_canonical_type): Revert
16264         previous change.
16265         * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
16266         does not for a tree for the case where it matters.  Cache
16267         pointer-type alias-sets.
16268
16269 2011-05-24  Joseph Myers  <joseph@codesourcery.com>
16270
16271         * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
16272         (OBJS): Remove options.o, opts-common.o and prefix.o.
16273         (OBJS-libcommon-target): New.
16274         (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
16275         (BACKEND): Include libcommon-target.a.
16276         (MOSTLYCLEANFILES): Include libcommon-target.a.
16277         (libcommon-target.a): New.
16278         (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
16279         prefix.o.
16280
16281 2011-05-23  Joseph Myers  <joseph@codesourcery.com>
16282
16283         * optc-save-gen.awk: New.  Based on optc-gen.awk.  Don't generate
16284         parts of output shared with the driver.
16285         * optc-gen.awk: Don't generate parts of output not shared with the
16286         driver.
16287         * opth-gen.awk: Remove GCC_DRIVER conditionals.
16288         * doc/options.texi (SourcerInclude): Mention options-save.c.
16289         * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
16290         (OBJS): Add options-save.o.
16291         (options-save.c, options-save.o): New.
16292         (options.o): Update dependencies.
16293         (gcc-options.o): Remove.
16294         (mostlyclean): Remove options-save.c.
16295
16296 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
16297
16298         PR debug/49032
16299         * dbxout.c: Include cgraph.h.
16300         (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
16301         and without value expr, return NULL if no varpool node exists for
16302         it or if it is not needed.
16303         * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
16304
16305         PR c/49120
16306         * c-decl.c (start_decl): Convert expr to void_type_node.
16307
16308 2011-05-23  Richard Sandiford  <rdsandiford@googlemail.com>
16309
16310         PR rtl-optimization/48826
16311         * emit-rtl.c (try_split): When splitting a call that is followed
16312         by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
16313
16314 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
16315
16316         * cfgexpand.c (expand_debug_expr): For unused non-addressable
16317         parameters passed in memory prefer using DECL_INCOMING_RTL over
16318         the pseudos it will be copied into.
16319
16320 2011-05-23  H.J. Lu  <hongjiu.lu@intel.com>
16321
16322         PR target/47315
16323         * config/i386/i386.c (ix86_option_override_internal): Save the
16324         initial options after checking vzeroupper.
16325
16326 2011-05-23  David Li  <davidxl@google.com>
16327
16328         PR tree-optimization/48988
16329         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
16330         Initialize has_valid_pred for each pred chain.
16331
16332 2011-05-23  Richard Guenther  <rguenther@suse.de>
16333
16334         * gimple.c (gimple_types_compatible_p_1): Always compare type names.
16335         (iterative_hash_gimple_type): Always hash type names.
16336
16337 2011-05-23  Nathan Froyd  <froydnj@codesourcery.com>
16338
16339         * c-typeck.c (build_function_call_vec): Tweak call to
16340         check_function_arguments.
16341
16342 2011-05-23  Richard Guenther  <rguenther@suse.de>
16343
16344         PR tree-optimization/49115
16345         * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
16346         is not necessarily carried out, do not claim it kills the ref.
16347         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
16348
16349 2011-05-23  Richard Guenther  <rguenther@suse.de>
16350
16351         PR middle-end/15419
16352         * builtins.c (fold_builtin_memory_op): Be less restrictive about
16353         what pointer types we accept for folding.
16354
16355 2011-05-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16356
16357         * gthr-gnat.c: Remove.
16358         * gthr-gnat.h: Remove.
16359         * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
16360         * config/t-freebsd (LIB2ADDEH): Likewise.
16361         * config/t-linux (LIB2ADDEH): Likewise.
16362         * config/t-sol2 (LIB2ADDEH): Likewise.
16363         * config/ia64/t-vms (LIB2ADDEH): Likewise.
16364         * configure.ac (target_thread_file): Remove gnat handling.
16365         * configure: Regenerate.
16366         * doc/install.texi (Configuration, --enable-threads): Remove gnat.
16367
16368 2011-05-23  Tristan Gingold  <gingold@adacore.com>
16369             Eric Botcazou  <ebotcazou@adacore.com>
16370
16371         * gcov.c (create_file_names): If no object directory is specified,
16372         keep the directory of the file.
16373
16374 2011-05-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16375
16376         * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
16377         * configure: Regenerate.
16378
16379 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
16380
16381         PR middle-end/48973
16382         * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
16383         failed and the comparison has a single bit signed type, use
16384         constm1_rtx instead of const1_rtx for true value.
16385         (do_store_flag): If ops->type is single bit signed type, disable
16386         signel bit test optimization and pass -1 instead of 1 as last
16387         parameter to emit_store_flag_force.
16388
16389 2011-05-23  Tom de Vries  <tom@codesourcery.com>
16390
16391         PR target/45098
16392         * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
16393         function.
16394         (infer_loop_bounds_from_undefined): Use new function.
16395
16396 2011-05-22  Richard Sandiford  <rdsandiford@googlemail.com>
16397
16398         * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
16399         (ASM_SPEC): Add a -O* option here.  Pass -O0 for -noasmopt,
16400         -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
16401         and -O0 otherwise.
16402         (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
16403
16404 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
16405
16406         * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
16407         (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
16408         returns true.
16409
16410 2011-05-22  Richard Sandiford  <rdsandiford@googlemail.com>
16411
16412         * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
16413
16414 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
16415
16416         * config/sparc/sparc.c (sparc_delegitimize_address): Handle
16417         UNSPEC_MOVE_PIC pattern.
16418
16419 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
16420
16421         * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
16422         (sparc-*-rtems*): Likewise.
16423         (sparc64-*-elf*): Likewise.
16424         (sparc64-*-rtems*): Likewise.
16425         (sparc*-*-solaris2*): Likewise.  Remove crti.o crtn.o extra parts.
16426         * config/sparc/t-crtin: New file.
16427         * config/sparc/t-sol2 (crti.o): Delete rule.
16428         (crtn.o): Likewise.
16429         * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
16430         * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
16431         * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
16432         (ENDFILE_SPEC): Add crtn.o.
16433
16434 2011-05-22  Tom de Vries  <tom@codesourcery.com>
16435
16436         PR middle-end/48689
16437         * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
16438         CODE_CONTAINS_STRUCT (TS_COMMON).
16439
16440 2011-05-22  Jakub Jelinek  <jakub@redhat.com>
16441
16442         PR middle-end/49029
16443         * expmed.c (extract_fixed_bit_field): Test whether target can be used
16444         only after deciding which mode to use.
16445
16446 2011-05-22  Tom de Vries  <tom@codesourcery.com>
16447
16448         PR target/45098
16449         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
16450         for call to get_shiftadd_cost.
16451
16452 2011-05-22  Uros Bizjak  <ubizjak@gmail.com>
16453
16454         PR target/49104
16455         * config/i386/cpuid.h (bit_MMXEXT): New define.
16456
16457 2011-05-22  Nick Clifton  <nickc@redhat.com>
16458
16459         * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
16460         initialisation of non-existant args[2] element.  Use args[] array
16461         not arg[] array to pass arguments to build_function_type_list.
16462
16463 2011-05-22  Ira Rosen  <ira.rosen@linaro.org>
16464
16465         PR tree-optimization/49087
16466         * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
16467
16468 2011-05-21  Jason Merrill  <jason@redhat.com>
16469
16470         PR c++/49092
16471         * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
16472         static storage duration.
16473
16474 2011-05-21  Eric Botcazou  <ebotcazou@adacore.com>
16475
16476         * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
16477         frame pointer.
16478
16479 2011-05-21  Eric Botcazou  <ebotcazou@adacore.com>
16480
16481         * config/sparc/sparc.c (eligible_for_return_delay): Do not return
16482         false if there are call-saved registers here...
16483         (sparc_can_use_return_insn_p): ...but here instead.
16484         (save_or_restore_regs): Fix thinko.
16485         (sparc_expand_prologue): Use current_function_is_leaf.
16486         (sparc_frame_pointer_required): Likewise.
16487
16488 2011-05-21  Nick Clifton  <nickc@redhat.com>
16489
16490         PR target/49098
16491         * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
16492
16493 2011-05-21  Nicola Pero  <nicola.pero@meta-innovation.com>
16494
16495         * gengtype.c (walk_type): Implemented "atomic" GTY option.
16496         * doc/gty.texi (GTY Options): Document "atomic" GTY option.
16497
16498 2011-05-21  Joseph Myers  <joseph@codesourcery.com>
16499
16500         * opt-read.awk: New.  Split out of optc-gen.awk and opth-gen.awk.
16501         * optc-gen.awk: Move common code to opt-read.awk.
16502         * opth-gen.awk: Likewise.
16503         * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
16504
16505 2011-05-20  Nathan Froyd  <froydnj@codesourcery.com>
16506
16507         * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
16508
16509 2011-05-20  Tom de Vries  <tom@codesourcery.com>
16510
16511         PR target/45098
16512         * tree-ssa-loop-ivopts.c: Include expmed.h.
16513         (get_shiftadd_cost): New function.
16514         (force_expr_to_var_cost): Declare forward.  Use get_shiftadd_cost.
16515
16516 2011-05-20  Jakub Jelinek  <jakub@redhat.com>
16517
16518         PR bootstrap/49086
16519         * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
16520         for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
16521
16522 2011-05-20  Joseph Myers  <joseph@codesourcery.com>
16523
16524         * Makefile.in: Update comment referring to $(OBJS-common).
16525
16526 2011-05-20  Ian Lance Taylor  <iant@google.com>
16527
16528         * godump.c (go_output_typedef): Put enum constants in the macro
16529         hash table to avoid duplicate Go const definitions.
16530
16531 2011-05-20  Joseph Myers  <joseph@codesourcery.com>
16532
16533         * Makefile.in (LIBDEPS): Add libcommon.a.
16534         (LIBS): Likewise.
16535         (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
16536         (OBJS-common): Remove diagnostic.o, input.o, intl.o,
16537         pretty-print.o and version.o.
16538         (OBJS-libcommon): New.
16539         (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
16540         (BACKEND): Add libcommon.a.
16541         (MOSTLYCLEANFILES): Likewise.
16542         (libcommon.a): New.
16543         (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
16544         (cpp$(exeext)): Likewise.
16545         (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
16546         pretty-print.o and input.o.
16547         (lto-wrapper$(exeext)): Don't explicitly use intl.o.
16548         (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
16549         (errors.o): Remove.
16550         (mips-tfile): Don't explicitly use version.o.
16551         (mips-tdump): Likewise.
16552         (gcov.o): Depend on $(DIAGNOSTIC_H).
16553         (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
16554         (GCOV_OBJS): Remove intl.o, version.o and errors.o.
16555         (GCOV_DUMP_OBJS): Remove version.o and errors.o.
16556         * gcov-dump.c: Include intl.h and diagnostic.h.
16557         (main): Initialize diagnostics.
16558         * gcov.c: Include diagnostic.h.
16559         (fnotice): Remove.
16560         (main): Initialize diagnostics.
16561         * lto-wrapper.c: Include diagnostic.h.
16562         (main): Initialize diagnostics.
16563
16564 2011-05-20  Michael Matz  <matz@suse.de>
16565
16566         * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
16567
16568 2011-05-20  Michael Matz  <matz@suse.de>
16569             Richard Guenther  <rguenther@suse.de>
16570
16571         * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
16572         use lto_streamer_cache_append directly instead of returning a VEC.
16573         (preload_common_node): Remove.
16574         (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
16575         track seen nodes.
16576         (lto_streamer_cache_create): Call lto_preload_common_nodes.
16577
16578 2011-05-20  Richard Guenther  <rguenther@suse.de>
16579
16580         PR tree-optimization/49079
16581         * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
16582         MEM_REFs correctly for the trailing array access detection.
16583         Special case constants the same way as decls for overall size
16584         constraining.
16585
16586 2011-05-20  Uros Bizjak  <ubizjak@gmail.com>
16587
16588         * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
16589         argument expansion.
16590
16591 2011-05-20  Jakub Jelinek  <jakub@redhat.com>
16592
16593         PR tree-optimization/49073
16594         * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
16595         PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
16596         * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
16597
16598 2011-05-20  Richard Guenther  <rguenther@suse.de>
16599
16600         PR middle-end/48849
16601         * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
16602         of pointer types the same way the middle-end does.
16603
16604 2011-05-20  Richard Guenther  <rguenther@suse.de>
16605
16606         * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
16607         or pointer-to chains.  Delay all fixup to uniquify_nodes.
16608
16609 2011-05-19  Quentin Neill  <quentin.neill@amd.com>
16610
16611         * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
16612         (fma4_fmaddsub): Likewise
16613
16614 2011-05-19  Jan Hubicka  <jh@suse.cz>
16615
16616         * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
16617         (GIMPLE_TYPE_PAIR_SIZE): New macro.
16618         (type_pair_cache): New static var.
16619         (lookup_type_pair): Use fixed sized custom hash; make inline.
16620         (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
16621         calls of lookup_type_pair.
16622         (print_gimple_types_stats): Remove cache stats.
16623         (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
16624         and gtc_ob.
16625
16626 2011-05-19  Uros Bizjak  <ubizjak@gmail.com>
16627
16628         * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
16629         when TARGET_RDRND is active.
16630         (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
16631         Generate dummy SImode target register when target is NULL.
16632
16633 2011-05-19  Joseph Myers  <joseph@codesourcery.com>
16634
16635         * config/arm/arm-fpus.def: New.
16636         * config/arm/genopt.sh: Generate Enum and EnumValue entries from
16637         arm-fpus.def.
16638         * config/arm/arm-tables.opt: Regenerate.
16639         * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
16640         (arm_option_override): Don't decode FPU name to string here.
16641         * config/arm/arm.opt (mfpu=): Use Enum.
16642         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
16643         Update dependencies.
16644
16645 2011-05-19  Joseph Myers  <joseph@codesourcery.com>
16646
16647         * collect2.c: Include diagnostic.h.
16648         (fatal_perror, fatal, error, fancy_abort): Remove.
16649         (main): Set progname.  Call xmalloc_set_program_name and
16650         diagnostic_initialize.
16651         (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
16652         scan_libraries, resolve_lib_name): Call fatal_error instead of
16653         fatal and fatal_perror.
16654         * collect2.h (error, fatal, fatal_perror): Don't declare.
16655         * tlink.c: Include diagnostic-core.h.
16656         (recompile_files): Call fatal_error instead of fatal_perror.
16657         * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
16658         pretty-print.o and input.o.
16659         (collect2.o, tlink.o): Update dependencies.
16660
16661 2011-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16662
16663         * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
16664
16665 2011-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16666
16667         PR target/40483
16668         * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
16669         COMDAT group syntax, both SPARC and x86 variants.
16670         (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
16671         * configure: Regenerate.
16672         * config/sol2.h (TARGET_SOLARIS): Define.
16673         (PUSHSECTION_FORMAT): Remove.
16674         (SECTION_NAME_FORMAT): Define.
16675         * config/sol2.c: Include hashtab.h.
16676         (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
16677         expansion, using SECTION_NAME_FORMAT.
16678         (solaris_comdat_htab): New variable.
16679         (struct comdat_entry): Define.
16680         (comdat_hash): New function.
16681         (comdat_eq): New function.
16682         (solaris_elf_asm_comdat_section): New function.
16683         (solaris_define_comdat_signature): New function.
16684         (solaris_code_end): New function.
16685         * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
16686         (solaris_code_end): Declare.
16687         * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
16688         * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
16689         solaris_code_end.
16690         (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
16691         Remove ATTRIBUTE_UNUSED.
16692         [!USE_GAS]: Call solaris_elf_asm_comdat_section for
16693         SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
16694         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
16695         * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
16696         * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
16697         * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
16698         (PUSHSECTION_FORMAT): Remove.
16699         (SECTION_NAME_FORMAT): Redefine.
16700
16701 2011-05-19  Kai Tietz  <ktietz@redhat.com>
16702
16703         * tree-cfg.c (verify_gimple_assign_binary): Barf on
16704         TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
16705         (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
16706
16707 2011-05-19  Anatoly Sokolov  <aesok@post.ru>
16708             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16709
16710         * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
16711
16712 2011-05-19  Richard Guenther  <rguenther@suse.de>
16713
16714         PR middle-end/48985
16715         * tree-object-size.c (addr_object_size): If the pointed-to
16716         variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
16717
16718 2011-05-19  Richard Guenther  <rguenther@suse.de>
16719
16720         * gimple.c (gimple_types_compatible_p_1): Compare names of
16721         the types themselves.
16722         (iterative_hash_gimple_type): And hash them that way.
16723         (gimple_register_type_1): If we register a main variant properly
16724         initialize the leader to ourselves.
16725
16726 2011-05-19  Tom de Vries  <tom@codesourcery.com>
16727
16728         PR target/45098
16729         * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
16730         get_loop_invariant_expr_id.
16731         (get_loop_invariant_expr_id): Use get_expr_id.
16732         (parm_decl_cost): New function.
16733         (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
16734         Improve bound cost estimation.  Use different inv_expr_id for elim and
16735         express cases.
16736
16737 2011-05-19  Tom de Vries  <tom@codesourcery.com>
16738
16739         PR target/45098
16740         * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
16741         cost_base.cost == 0.
16742
16743 2011-05-18  H.J. Lu  <hongjiu.lu@intel.com>
16744
16745         PR target/49002
16746         * config/i386/sse.md
16747         (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
16748         load cast.
16749
16750 2011-05-18  Jakub Jelinek  <jakub@redhat.com>
16751
16752         PR tree-optimization/49039
16753         * tree-vrp.c (extract_range_from_binary_expr): For
16754         MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
16755         return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
16756
16757 2011-05-18  Tom de Vries  <tom@codesourcery.com>
16758
16759         PR target/45098
16760         * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
16761
16762 2011-05-18  Uros Bizjak  <ubizjak@gmail.com>
16763
16764         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
16765         (*tls_global_dynamic_64): Ditto.
16766         (*tls_local_dynamic_base_32_gnu): Ditto.
16767         (*tls_local_dynamic_base_64): Ditto.
16768         (tls_initial_exec_64_sun): Ditto.
16769
16770 2011-05-18  Stuart Henderson  <shenders@gcc.gnu.org>
16771
16772         * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
16773         * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
16774         bf592-none.
16775         * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
16776         * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
16777         * config/bfin/bfin.c (bfin_cpus): Add bf592.
16778         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
16779         __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
16780         * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
16781         * config/bfin/elf.h (LIB_SPEC): Add bf592.
16782
16783 2011-05-18  Joseph Myers  <joseph@codesourcery.com>
16784
16785         * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
16786         arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
16787         * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
16788         target_thread_pointer, arm_structure_size_boundary, struct
16789         float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
16790         struct abi_name, arm_all_abis): Remove.
16791         (arm_option_override) Don't process most enumerated option values here.
16792         Don't process target_fpe_name here.  Work with integer not string for
16793         structure size boundary; use separate diagnostics for each case.
16794         * config/arm/arm.h (enum float_abi_type, enum
16795         arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
16796         to arm-opts.h.
16797         (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
16798         arm_structure_size_boundary): Remove.
16799         * config/arm/arm.opt (mabi=): Use Enum and Init.
16800         (arm_abi_type): New Enum and EnumValue entries.
16801         (mfloat-abi=): Use Enum and Init.
16802         (float_abi_type): New Enum and EnumValue entries.
16803         (mfp=, mfpe=): Replace by separate Alias entries for each argument.
16804         (mfp16-format=): Use Enum and Init.
16805         (arm_fp16_format_type): New Enum and EnumValue entries.
16806         (mstructure-size-boundary=): Use UInteger and Init.
16807         (mtp=): Use Enum and Init.
16808         (arm_tp_type): New Enum and EnumValue entries.
16809
16810 2011-05-18  Richard Guenther  <rguenther@suse.de>
16811
16812         PR tree-optimization/49018
16813         * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
16814         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
16815         gimple_has_side_effects.
16816
16817 2011-05-18  Richard Guenther  <rguenther@suse.de>
16818
16819         * gimple.c (gimple_register_type_1): New function, split out from ...
16820         (gimple_register_type): ... here.  Avoid infinite recursion.
16821
16822 2011-05-18  Ira Rosen  <ira.rosen@linaro.org>
16823
16824         PR tree-optimization/41881
16825         * tree-vectorizer.h (struct _loop_vec_info): Add new field
16826         reduction_chains along with a macro for its access.
16827         * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
16828         (destroy_loop_vec_info): Free reduction chains.
16829         (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
16830         (vect_is_slp_reduction): New function.
16831         (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
16832         (vect_create_epilog_for_reduction): Support SLP reduction chains.
16833         * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
16834         definition types for reduction chains.
16835         (vect_supported_load_permutation_p): Don't allow permutations for
16836         reduction chains.
16837         (vect_analyze_slp_instance): Support reduction chains.
16838         (vect_analyze_slp): Try to build SLP instance from reduction chains.
16839         (vect_get_constant_vectors):  Handle reduction chains.
16840         (vect_schedule_slp_instance): Mark the first statement of the
16841         reduction chain as reduction.
16842
16843 2011-05-18  Ira Rosen  <ira.rosen@linaro.org>
16844
16845         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
16846         names for group elements access.
16847         * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
16848         reduction chains as well.  Remove data reference and interleaving
16849         related words from the fields names.
16850         * tree-vect-loop.c (vect_transform_loop): Use new names for group
16851         elements access.
16852         * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
16853         vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
16854         vect_update_interleaving_chain, vect_same_range_drs,
16855         vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
16856         vect_verify_datarefs_alignment, vector_alignment_reachable_p,
16857         vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
16858         vect_analyze_group_access, vect_analyze_data_ref_access,
16859         vect_create_data_ref_ptr, vect_transform_strided_load,
16860         vect_record_strided_load_vectors): Likewise.
16861         * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
16862         vect_model_load_cost, vectorizable_store, vectorizable_load,
16863         vect_remove_stores, new_stmt_vec_info): Likewise.
16864         * tree-vect-slp.c (vect_build_slp_tree,
16865         vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
16866
16867 2011-05-18  Richard Guenther  <rguenther@suse.de>
16868
16869         PR middle-end/48989
16870         * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
16871         operand verification.
16872         (verify_gimple_assign_binary): Likewise.
16873         * tree-ssa.c (useless_type_conversion_p): Preserve conversions
16874         to non-1-precision BOOLEAN_TYPEs.
16875
16876 2011-05-18  Tom de Vries  <tom@codesourcery.com>
16877
16878         PR target/45098
16879         * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
16880
16881 2011-05-18  Jakub Jelinek  <jakub@redhat.com>
16882
16883         PR tree-optimization/49000
16884         * tree-ssa.c (execute_update_addresses_taken): Call
16885         maybe_rewrite_mem_ref_base on debug stmt value.  If it couldn't
16886         be rewritten and decl has been marked for renaming, reset
16887         the debug stmt.
16888
16889 2011-05-17  Joseph Myers  <joseph@codesourcery.com>
16890
16891         * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
16892         enum_opts_set when testing if attributes have set -mfpmath=.
16893
16894 2011-05-17  Richard Sandiford  <rdsandiford@googlemail.com>
16895
16896         * config/mips/mips.c (mips_handle_option): Remove unused variable.
16897
16898 2011-05-17  Uros Bizjak  <ubizjak@gmail.com>
16899
16900         * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
16901         info->entry with 0
16902         * tree-inline.c (maybe_inline_call_in_expr):  Initialize
16903         id.transform_lang_insert_block with NULL.
16904
16905 2011-05-17  Uros Bizjak  <ubizjak@gmail.com>
16906
16907         * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
16908         (output_fp_compare): Change args 3 and 4 to bool.
16909         (ix86_expand_call): Change arg 6 to bool.
16910         (ix86_attr_length_immediate_default): Change arg 2 to bool.
16911         (ix86_attr_length_vex_default): Change arg 3 to bool.
16912         * config/i386/i386.md: Update all uses.
16913         * config/i386/i386.c: Ditto.
16914         (ix86_flags_dependent): Change return type to bool.
16915
16916 2011-05-17  Richard Guenther  <rguenther@suse.de>
16917
16918         * gimple.c (type_hash_pair_compare): Fix comparison.
16919
16920 2011-05-17  Richard Guenther  <rguenther@suse.de>
16921
16922         * gimple.c (iterative_hash_gimple_type): Simplify singleton
16923         case some more, fix final hash value of the non-singleton case.
16924
16925 2011-05-17  Richard Guenther  <rguenther@suse.de>
16926
16927         PR bootstrap/49013
16928         Revert
16929         2011-05-16  Richard Guenther  <rguenther@suse.de>
16930
16931         * gimple.c (gimple_types_compatible_p_1): Use names of the
16932         type itself, not its main variant.
16933         (iterative_hash_gimple_type): Likewise.
16934
16935 2011-05-17  Richard Guenther  <rguenther@suse.de>
16936
16937         * gimple.c (gimple_register_canonical_type): Use the main-variant
16938         leader for computing the canonical type.
16939
16940 2011-05-17  Nick Clifton  <nickc@redhat.com>
16941
16942         * config/rx/rx.c (rx_memory_move_cost): Include cost of register
16943         moves.
16944
16945         * config/rx/rx.md: Add peephole to remove redundant extensions
16946         after loads.
16947         (bitset_in_memory): Use rx_restricted_mem_operand.
16948         (bitinvert_in_memory): Likewise.
16949         (bitclr_in_memory): Likewise.
16950
16951 2011-05-17  Kazuhio Inaoka  <kazuhiro.inaoka.ud@renesas.com>
16952             Nick Clifton  <nickc@redhat.com>
16953
16954         * config/rx/rx.md: Add peepholes to match a register move followed
16955         by a comparison of the moved register.  Replace these with an
16956         addition of zero that does both actions in one instruction.
16957
16958 2011-05-17  Jakub Jelinek  <jakub@redhat.com>
16959
16960         PR target/48986
16961         * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
16962         predicate to allow CONST_INT.
16963         (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
16964
16965 2011-05-16  Joseph Myers  <joseph@codesourcery.com>
16966
16967         * opts-common.c (opt_enum_arg_to_value): New.
16968         * opts.h (opt_enum_arg_to_value): Declare.
16969         * config/i386/i386.opt (fpmath): Remove.
16970         (mfpmath=): Use Enum, Init and Save.
16971         (fpmath_unit): New Enum and EnumValue entries.
16972         * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
16973         name for function fpmath state.
16974         * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
16975         * config/i386/i386.c: Include diagnostic.h.
16976         (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
16977         (ix86_target_string): Take enum fpmath_unit value instead of string.
16978         (ix86_debug_options): Update call to ix86_target_string.
16979         (ix86_option_override_internal): Don't process fpmath strings here.
16980         (x86_function_specific_save, ix86_function_specific_restore):
16981         Don't handle fpmath state specially.
16982         (ix86_function_specific_print): Pass fpmath state to
16983         ix86_target_string instead of printing in this function.
16984         (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
16985         Handle enum attributes.
16986         (IX86_ATTR_ENUM, ix86_opt_enum): New.
16987         (ix86_valid_target_attribute_tree): Update option_strings
16988         handling.  Handle fpmath as enum option.
16989         (ix86_can_inline_p): Update field names for function fpmath state.
16990         (ix86_expand_builtin): Update call to ix86_target_string.
16991         * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
16992         (ix86_fpmath): Remove.
16993         * config/i386/t-i386 (i386.o): Update dependencies.
16994
16995 2011-05-16  Joseph Myers  <joseph@codesourcery.com>
16996
16997         PR preprocessor/48677
16998         * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
16999         from decoded_options[0], not from itself.
17000
17001 2011-05-16  Uros Bizjak  <ubizjak@gmail.com>
17002
17003         * config/i386/constraints.md (z): New constraint.
17004         * config/i386/i386.c (c): New mode attribute.
17005         (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
17006         *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
17007         constraint for operand 0.
17008         (*call_vzeroupper): Ditto.
17009         (*call_rex64_ms_sysv): Ditto.  Use "rzm" constraint for operand 0.
17010         (*call_rex64_ms_sysv_vzeroupper): Ditto.
17011         (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
17012         Use "lzm" constraint for operand 0.
17013         (*call_pop_vzeroupper): Ditto.
17014         (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
17015         *sibcall_1_rex64 patterns using "P" mode iterator.  Use "Uz"
17016         constraint for operand 0.
17017         (*sibcall_vzeroupper): Ditto.
17018         (*sibcall_rex64_ms_sysv): Ditto.
17019         (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
17020         (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
17021         *sibcall_pop_1.  Use "Uz" constraint for operand 0.
17022         (*sibcall_pop_vzeroupper): Ditto.
17023         (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
17024         *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
17025         mode iterator.  Use "<c>zm" constraint for operand 1.
17026         (*call_value_vzeroupper): Ditto.
17027         (*call_value_rex64_ms_sysv): Ditto.  Use "rzm" constraint
17028         for operand 1.
17029         (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
17030         (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
17031         *call_value_pop_1.  Use "lzm" constraint for operand 1.
17032         (*call_value_pop_vzeroupper): Ditto.
17033         (*sibcall_value): Merge insn pattern from *sibcall_value_0,
17034         *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
17035         mode iterator.  Use "Uz" constraint for operand 1.
17036         (*sibcall_value_vzeroupper): Ditto.
17037         (*sibcall_value_rex64_ms_sysv): Ditto.
17038         (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
17039         (*sibcall_value_pop): Rename from *sibcall_pop_1.  Use "Uz"
17040         constraint for operand 1.
17041         (*sibcall_value_pop_vzeroupper): Ditto.
17042         (*tls_global_dynamic_64): Use constant_call_address_operand predicate
17043         and "z" constraint for operand 2.
17044         (*tls_global_dynamic_32_gnu): Ditto.
17045         (*tls_local_dynamic_base_32_gnu): Ditto.
17046         (*tls_local_dynamic_base_64): Ditto.
17047         (*tls_local_dynamic_32_once): Ditto.
17048         * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
17049         Update all callers.
17050         * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
17051
17052 2011-05-16  Richard Guenther  <rguenther@suse.de>
17053
17054         * gimple.c (gimple_types_compatible_p_1): Use names of the
17055         type itself, not its main variant.
17056         (iterative_hash_gimple_type): Likewise.
17057
17058 2011-05-16  Richard Guenther  <rguenther@suse.de>
17059
17060         * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
17061         always visit pointer target and function result and argument types.
17062
17063 2011-05-16  Jason Merrill  <jason@redhat.com>
17064
17065         PR c++/48999
17066         * tree-inline.c (copy_statement_list): Put back recursion.
17067
17068 2011-05-16  Georg-Johann Lay  <avr@gjlay.de>
17069
17070         PR target/27663
17071         PR target/41076
17072         * config/avr/predicates.md (const_8_16_24_operand): New predicate.
17073         * config/avr/avr.md ("*ior<mode>qi.byte0",
17074         "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
17075
17076 2011-05-16  Georg-Johann Lay  <avr@gjlay.de>
17077
17078         PR target/45099
17079         * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
17080         register is needed for a function argument.
17081
17082 2011-05-16  Richard Guenther  <rguenther@suse.de>
17083
17084         * gimple.c (struct type_hash_pair): New type.
17085         (type_hash_pair_compare): New function.
17086         (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
17087
17088 2011-05-16  Revital Eres  <revital.eres@linaro.org>
17089
17090         * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
17091
17092 2011-05-15  Uros Bizjak  <ubizjak@gmail.com>
17093
17094         * config/i386/i386.md (floating point move splitters): Fix
17095         usage of standard_80387_constant_p.
17096         * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
17097
17098 2011-05-15  Uros Bizjak  <ubizjak@gmail.com>
17099
17100         * config/i386/i386.md (*movdf_internal): Simplify insn condition.
17101
17102 2011-05-14  Eric Botcazou  <ebotcazou@adacore.com>
17103
17104         * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
17105         (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
17106         (tree_ssa_lim_finalize): Likewise.
17107
17108 2011-05-14  Uros Bizjak  <ubizjak@gmail.com>
17109
17110         * config/i386/constraint.md (Yd, Yx): New register constraints.
17111         * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger.  Use
17112         Yd conditional register constraint.
17113         (*movtf_internal): Use standard_sse_constant_opcode.
17114         (*movxf_internal): Merge with *movxf_internal_nointeger.  Use
17115         Yx conditional register constraint.
17116         (*movdf_internal): Merge with *movdf_internal_nointeger.  Use
17117         Yd conditional register constraint.  Use standard_sse_constant_p to
17118         check for valid SSE constants and call standard_sse_constant_opcode to
17119         output SSE insn.
17120         (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
17121         constants and call standard_sse_constant_opcode to output SSE insn.
17122         * config/i386/i386.c (ix86_option_ovverride_internal): Set
17123         TARGET_INTEGER_DFMODE_MOVES for 64bit targets.  Clear it when
17124         optimize_size is set.
17125         (standard_sse_constant_opcode): Output conditional AVX insn templates.
17126
17127 2011-05-14  Tobias Burnus  <burnus@net-b.de>
17128
17129         * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
17130
17131 2011-05-13  Martin Jambor  <mjambor@suse.cz>
17132
17133         * ipa-prop.c (ipa_cst_from_jfunc): New function.
17134         * ipa-prop.h (ipa_cst_from_jfunc): Declare.
17135         * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
17136         (evaluate_conditions_for_ipcp_clone): Removed.
17137         (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
17138         * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
17139         * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
17140
17141 2011-05-13  Eric Botcazou  <ebotcazou@adacore.com>
17142
17143         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
17144         * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
17145         lieu of MAY_HAVE_DEBUG_STMTS.
17146         * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
17147         debug statements if !MAY_HAVE_DEBUG_STMTS.
17148
17149 2011-05-13  Martin Thuresson  <martint@google.com>
17150
17151         PR gcov-profile/47793
17152         * libgcov.c (gcov_exit): Support relative profile paths.
17153         * doc/invoke.texi (-fprofile-dir): Update for above change.
17154
17155 2011-05-13  Richard Guenther  <rguenther@suse.de>
17156
17157         * gimple.c (gimple_canonical_types_compatible_p): Do not use
17158         type-pair caching, do not compare hashes.
17159
17160 2011-05-13  Nathan Froyd  <froydnj@codesourcery.com>
17161
17162         PR middle-end/48965
17163         * tree-cfg.c (edge_to_cases_cleanup): Return true.
17164         (verify_expr) [CASE_LABEL_EXPR]: Add checking.
17165
17166 2011-05-13  Kai Tietz  <ktietz@redhat.com>
17167
17168         * gimplify.c (gimplify_expr): Make sure operand is boolified.
17169         * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
17170         compatible type for TRUTH_NOT_EXPR.
17171
17172 2011-05-13  H.J. Lu  <hongjiu.lu@intel.com>
17173
17174         * config/i386/i386.c (ix86_save_reg): Change return type to bool.
17175         (ix86_hard_regno_mode_ok): Change return value to bool.  Use
17176         can_create_pseudo_p ().
17177
17178 2011-05-13  Richard Guenther  <rguenther@suse.de>
17179
17180         PR lto/48978
17181         * gimple.c (iterative_hash_gimple_type): Revert change in
17182         pointer target and function result and argument hashing.
17183
17184 2011-05-13  Uros Bizjak  <ubizjak@gmail.com>
17185
17186         * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
17187         (*movxf_internal_nointeger): Ditto.
17188         (*movdf_internal_rex64): Ditto.
17189         (*movdf_internal): Ditto.
17190         (*movdf_internal_nointeger): Ditto.
17191         (*movsf_internal): Ditto.
17192         (sincos splitters): Use can_create_pseudo ().
17193
17194 2011-05-13  Joseph Myers  <joseph@codesourcery.com>
17195
17196         * config/i386/i386-opts.h: New.
17197         * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
17198         ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
17199         ix86_section_threshold): Remove.
17200         (ix86_handle_option): Move MAX_CODE_ALIGN define here.  Handle
17201         OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
17202         OPT_mbranch_cost_.
17203         (ix86_option_override_internal): Don't decode strings for options
17204         other than -march=, -mtune= and -mfpmath=.  Don't allow for
17205         __attribute__ uses in remaining diagnostics for options with
17206         string arguments.  Don't check for integer arguments being negative.
17207         * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
17208         enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
17209         (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
17210         ix86_branch_cost, ix86_section_threshold): Remove.
17211         * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
17212         HeaderInclude.
17213         (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
17214         but not Var.
17215         (masm=): Use Enum and Init.
17216         (asm_dialect): New Enum and EnumValue entries.
17217         (mbranch-cost=): Use UInteger.
17218         (mlarge-data-threshold=): Use UInteger and Init.
17219         (mcmodel=): Use Enum and Init.
17220         (cmodel): New Enum and EnumValue entries.
17221         (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
17222         (mpreferred-stack-boundary=, mincoming-stack-boundary=,
17223         mregparm=): Use UInteger.
17224         (mstringop-strategy=): Use Enum and Init.
17225         (stringop_alg): New Enum and EnumValue entries.
17226         (mtls-dialect=): Use Enum and Init.
17227         (tls_dialect): New Enum and EnumValue entries.
17228         (mabi=): Use Enum and Init.
17229         (calling_abi): New Enum and EnumValue entries.
17230         (mveclibabi=): Use Enum and Init.
17231         (ix86_veclibabi): New Enum and EnumValue entries.
17232
17233 2011-05-13  Nick Clifton  <nickc@redhat.com>
17234
17235         * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
17236         * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
17237
17238 2011-05-13  Kai Tietz  <ktietz@redhat.com>
17239
17240         PR middle-end/48984
17241         * gimplify.c (gimplify_expr): Check for boolean_type_node instead
17242         for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
17243         (gimple_boolify): Check for cast for boolean_type_node instead for
17244         BOOLEAN_TYPE.
17245
17246 2011-05-13  Richard Guenther  <rguenther@suse.de>
17247
17248         PR tree-optimization/48172
17249         * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
17250         multiplying by number of iterations for equal step.
17251         (vect_create_cond_for_alias_checks): Likewise.
17252
17253 2011-05-13  Andreas Schwab  <schwab@redhat.com>
17254
17255         * configure.ac: Use AS_HELP_STRING throughout.
17256         * configure: Regenerate.
17257
17258 2011-05-12  H.J. Lu  <hongjiu.lu@intel.com>
17259
17260         * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
17261         (ix86_emit_restore_regs_using_mov): Likewise.
17262         (ix86_emit_restore_sse_regs_using_mov): Likewise.
17263
17264 2011-05-12  Anatoly Sokolov  <aesok@post.ru>
17265
17266         * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
17267         SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
17268         (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
17269         * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
17270         RTX_OK_FOR_OLO10_P): ...here.
17271         (sparc_mode_dependent_address_p): Use symbolic_operand instead of
17272         SYMBOLIC_CONST.
17273
17274 2011-05-12  Kai Tietz  <ktietz@redhat.com>
17275
17276         * gimplify.c (gimple_boolify): Re-boolify expression
17277         arguments even if expression type is of kind BOOLEAN_TYPE.
17278         (gimplify_boolean_expr): Removed.
17279         (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
17280         and XOR. Additional take care that we keep expression's type.
17281         * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
17282         of TRUTH_AND|OR|XOR_EXPR.
17283
17284 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
17285
17286         PR tree-optimization/48975
17287         * tree-if-conv.c (combine_blocks): Call free_bb_predicate
17288         on all bbs here and free and clear ifc_bbs at the end.
17289
17290 2011-05-12  Richard Guenther  <rguenther@suse.de>
17291
17292         * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
17293         NULLPTR_TYPE similar to VOID_TYPE.  Defer type-leader lookup
17294         until after simple checks.
17295         (gimple_types_compatible_p): Likewise.
17296         (iterative_hash_gimple_type): Always hash pointer targets
17297         and function return and argument types.
17298         (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
17299         hash TYPE_ALIGN.  Do not hash TYPE_MIN/MAX_VALUE.
17300         (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
17301         handle NULLPTR_TYPE similar to VOID_TYPE.  Handle non-aggregates
17302         completely in the simple compare section.
17303         (gimple_register_canonical_type): Query the cache again after
17304         registering.
17305
17306 2011-05-12  Richard Guenther  <rguenther@suse.de>
17307
17308         PR tree-optimization/48172
17309         * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
17310         the number of iterations from the segment size calculation.
17311         (vect_create_cond_for_alias_checks): Adjust.
17312
17313 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
17314
17315         PR debug/48967
17316         * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
17317         if validate_subreg fails.
17318
17319 2011-05-12  Hariharan Sandanagobalane  <hariharan@picochip.com>
17320
17321         * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
17322         accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
17323         early.
17324
17325 2011-05-12  DJ Delorie  <dj@redhat.com>
17326
17327         * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
17328         (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
17329         created builtin into rx_builtins array.
17330         (rx_builtin_decl): New function.
17331         (TARGET_BUITLIN_DECL): Define.  Include gt-rx.h.
17332
17333 2011-05-12  DJ Delorie  <dj@redhat.com>
17334             Nick Clifton  <nickc@redhat.com>
17335
17336         * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
17337         * config/rx/rx.c (CC_FLAG_FP): Fix comment.
17338         (rx_is_legitimate_address): Add pre-decrement and post-increment
17339         addressing in HImode and QImode.  Fix test for out of range
17340         REG+INT addressing.
17341         (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
17342         (rx_align_for_label): Test label before extracting its usage count.
17343         (rx_adjust_insn_lengths): Fix selection of insn codes.
17344         (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
17345
17346 2011-05-11  Jason Merrill  <jason@redhat.com>
17347
17348         * tree.c (type_hash_canon): Use struct tree_type_non_common.
17349
17350 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
17351
17352         * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
17353         reindent the subsequent block.
17354
17355 2011-05-11  Satoru Takabayashi  <satorux@google.com>
17356             Paul Pluzhnikov  <ppluzhnikov@google.com>
17357
17358         * doc/install.texi (Configuration): Document --with-linker-hash-style.
17359         * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
17360         * config.in: Add LINKER_HASH_STYLE.
17361         * configure.ac: Add --with-linker-hash-style.
17362         * configure: Regenerate.
17363
17364 2011-05-11  Richard Guenther  <rguenther@suse.de>
17365
17366         PR middle-end/48964
17367         * gimple.c (iterative_hash_canonical_type): Fix typo.
17368
17369 2011-05-11  Uros Bizjak  <ubizjak@gmail.com>
17370
17371         * config/i386/i386.c (legitimize_tls_address)
17372         <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
17373         expanders directly for TARGET_GNU2_TLS.  Determine pic and
17374         __tls_get_addr symbol reference here.  Update call to
17375         gen_tls_global_dynamic_{32,64} for added arguments.
17376         <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
17377         expanders directly for TARGET_GNU2_TLS.  Determine
17378         __tls_get_addr symbol reference here.  Update call to
17379         gen_tls_local_dynamic_base_{32,64} for added arguments.  Attach
17380         unique UNSPEC REG_EQUIV to libcall block.
17381         (ix86_tls_get_addr): Declare static.
17382         * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
17383         * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
17384         Do not determine pic and __tls_get_addr symbol reference here. Do not
17385         call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
17386         (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
17387         (tls_global_dynamic_64): Add operand 2.  Do not determine
17388         __tls_get_addr symbol reference here.  Do not call
17389         gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
17390         (tls_local_dynamic_base64): Ditto for operand 1.
17391
17392 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
17393
17394         * function.c (expand_function_start): Initialize stack_check_probe_note
17395         only if the generic stack checking mechanism is used.
17396
17397 2011-05-11  Richard Guenther  <rguenther@suse.de>
17398
17399         PR tree-optimization/15256
17400         * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
17401         (A & B) | C, combine (A op CST1) op CST2.
17402         (tree_ssa_forward_propagate_single_use_vars): Only bother to
17403         visit assigns that have uses.
17404
17405 2011-05-11  Nathan Froyd  <froydnj@codesourcery.com>
17406
17407         * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
17408         * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
17409         (unpack_ts_type_common_value_fields): ...this.  Update comment.
17410         (unpack_value_fields): Adjust for renaming.
17411         (lto_input_ts_type_tree_pointers): Split into...
17412         (lto_input_ts_type_common_tree_pointer): ...this and...
17413         (lto_input_ts_type_non_common_tree_pointers): ...this.
17414         (lto_input_tree_pointers): Adjust for above split.
17415         * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
17416         (pack_ts_type_common_value_fields): ...this.  Update comment.
17417         (lto_output_ts_type_tree_pointers): Split into...
17418         (lto_output_ts_type_common_tree_pointers): ...this and...
17419         (lto_output_ts_type_non_common_tree_pointers): ...this.
17420         (lto_output_tree_pointers): Adjust for above split.
17421         * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
17422         TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
17423         * stor-layout.c (vector_type_mode): Adjust location of mode field.
17424         * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
17425         Define.
17426         (struct tree_type): Split into...
17427         (struct tree_type_common: ...this and...
17428         (struct tree_type_with_lang_specific): ...this and...
17429         (struct tree_type_non_common): ...this.  Adjust accessor macros
17430         accordingly.
17431         (TYPE_VALUES_RAW): Define.
17432         (union tree_node): Update for above changes.
17433         * tree.c (tree_node_structure_for_code) [tcc_type]: Return
17434         TS_TYPE_NON_COMMON.
17435         (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
17436         Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
17437         (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
17438         * treestructu.def (TS_TYPE): Remove.
17439         (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
17440         Define.
17441
17442 2011-05-11  Jakub Jelinek  <jakub@redhat.com>
17443
17444         PR debug/48159
17445         * tree-ssa.c (reset_debug_uses): New function.
17446         * tree-flow.h (reset_debug_uses): New prototype.
17447         * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
17448         * tree-loop-distribution.c (generate_loops_for_partition): Call
17449         reset_debug_uses on the stmts that will be removed.  Keep around
17450         all debug stmts, don't count them as bits in partition bitmap.
17451         (generate_builtin): Don't count debug stmts or labels as bits in
17452         partition bitmap.
17453
17454 2011-05-11  Richard Guenther  <rguenther@suse.de>
17455
17456         * gimple.c (gimple_type_hash_1): Merge with ...
17457         (gimple_type_hash): ... this.
17458         (gtc_visit): Remove mode parameter and simplify accordingly.
17459         (gimple_types_compatible_p_1): Likewise.
17460         (gimple_types_compatible_p): Likewise.
17461         (iterative_hash_gimple_type): Likewise.
17462         (visit): Likewise.
17463         (gimple_type_eq): Adjust.
17464
17465 2011-05-11  Revital Eres  <revital.eres@linaro.org>
17466
17467         * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
17468         enters the branch create an anti edge in the opposite direction
17469         to prevent the creation of reg-moves.
17470         * modulo-sched.c: Adjust comment to reflect the fact we are
17471         scheduling closing branch.
17472         (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
17473         (stage_count): New field in struct partial_schedule.
17474         (calculate_stage_count): New function.
17475         (normalize_sched_times): Rename to reset_sched_times and handle
17476         incrementing the sched time of the nodes by a constant value
17477         passed as parameter.
17478         (duplicate_insns_of_cycles): Skip closing branch.
17479         (sms_schedule_by_order): Schedule closing branch.
17480         (ps_insn_find_column): Handle closing branch.
17481         (sms_schedule): Call reset_sched_times and adjust the code to
17482         support scheduling of the closing branch.
17483         (ps_insert_empty_row): Update calls to normalize_sched_times
17484         and rotate_partial_schedule functions.
17485
17486 2011-05-11  Richard Guenther  <rguenther@suse.de>
17487
17488         PR middle-end/48953
17489         * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
17490
17491 2011-05-11  Joseph Myers  <joseph@codesourcery.com>
17492
17493         * opts.c (finish_options): Move warning settings from process_options.
17494         * toplev.c (process_options): Move warning settings to finish_options.
17495
17496 2011-05-11  Richard Guenther  <rguenther@suse.de>
17497
17498         PR tree-optimization/18041
17499         * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
17500         (simplify_bitwise_binary): ... this.  Handle operand conversions
17501         by applying them to the result instead.
17502         (tree_ssa_forward_propagate_single_use_vars): Adjust.  CSE tree code.
17503
17504 2011-05-11  Richard Guenther  <rguenther@suse.de>
17505
17506         * gimple.c (gimple_canonical_types_compatible_p): Split out
17507         from gimple_types_compatible_p and friends.  Do not recurse
17508         to pointed-to types.
17509         (gimple_canonical_type_eq): Use it.
17510         (iterative_hash_canonical_type): Split out from
17511         iterative_hash_gimple_type and friends.  Do not recurse
17512         to pointed-to types.
17513         (gimple_canonical_type_hash): Use it, allocate the hash here.
17514
17515 2011-05-11  Revital Eres  <revital.eres@linaro.org>
17516
17517         * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
17518         recognizing doloop.
17519
17520 2011-05-11  Revital Eres  <revital.eres@linaro.org>
17521
17522         * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
17523         instead of PREV_INSN.
17524
17525 2011-05-11  Revital Eres  <revital.eres@linaro.org>
17526
17527         * modulo-sched.c (sms_schedule): Support new form of doloop pattern
17528         * loop-doloop.c (doloop_condition_get): Likewise.
17529         * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
17530         (doloop_end): New.
17531         * config/arm/arm.md (*addsi3_compare0): Remove "*".
17532
17533 2011-05-10  Nathan Froyd  <froydnj@codesourcery.com>
17534
17535         * tree.def (CASE_LABEL_EXPR): Add an operand.
17536         * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
17537
17538 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
17539
17540         * c-decl.c (c_override_global_bindings_to_false): Remove.
17541         (global_bindings_p): Don't check
17542         c_override_global_bindings_to_false.
17543         * c-tree.h (c_override_global_bindings_to_false): Remove.
17544         * c-typeck.c (composite_type): Don't set
17545         c_override_global_bindings_to_false.
17546
17547 2011-05-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
17548
17549         PR target/48857, 48495
17550         * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
17551         (VSX_MODE): Ditto.
17552         (VSX_MOVE_MODE): Ditto.
17553         (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
17554         VSX vector types.  Add V2DImode.
17555         (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
17556         ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
17557         (MODES_TIEABLE_P): Ditto.
17558
17559         * config/rs6000/rs6000.c (rs6000_emit_move): Use
17560         ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
17561         VSX_VECTOR_MODE.
17562         (init_cumulative_args): Ditto.
17563         (rs6000_function_arg_boundary): Ditto.
17564         (rs6000_function_arg_advance_1): Ditto.
17565         (rs6000_function_arg): Ditto.
17566         (rs6000_function_ok_for_sibcall): Ditto.
17567         (emit_frame_save): Ditto.
17568         (rs6000_function_value): Ditto.
17569         (rs6000_libcall_value): Ditto.
17570
17571 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
17572
17573         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
17574         i386/darwin-lib.h to $libgcc_tm_file.
17575         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
17576
17577 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
17578
17579         * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
17580
17581 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
17582
17583         * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
17584         * config/rs6000/rs6000-tables.opt: New file (generated).
17585         * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
17586         rs6000/rs6000-tables.opt to extra_options.
17587         * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
17588         * config/rs6000/rs6000.c (rs6000_select): Remove.
17589         (processor_target_table): Move contents to rs6000-cpus.def.
17590         (darwin_rs6000_override_options): Check
17591         global_options_set.x_rs6000_cpu_index instead of
17592         rs6000_select[1].string.
17593         (rs6000_option_override_internal): Likewise.
17594         (rs6000_handle_option): Don't assert that global structures are in
17595         use.  Don't handle OPT_mcpu_ and OPT_mtune_ here.
17596         (rs6000_default_cpu): New variable.
17597         (rs6000_file_start): Set it instead of local default_cpu.  Check
17598         rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
17599         global_options_set.x_rs6000_tune_index instead of rs6000_select.
17600         (rs6000_darwin_file_start): Check rs6000_default_cpu and
17601         global_options_set.x_rs6000_cpu_index instead of rs6000_select.
17602         * config/rs6000/rs6000.h (struct rs6000_cpu_select,
17603         rs6000_select): Remove.
17604         * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
17605         Remove.
17606         (mcpu=, mtune=): Use Var, Init, Enum and Save.
17607         * config/rs6000/t-rs6000
17608         ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
17609         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
17610         global_options_set.x_rs6000_cpu_index instead of
17611         rs6000_select[1].string.
17612         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
17613         global_options_set.x_rs6000_cpu_index instead of
17614         rs6000_select[1].string.
17615
17616 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
17617
17618         * config.gcc (libgcc_tm_file): Define instead of including files
17619         from ../../libgcc/config/ in tm_file.
17620         * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
17621         * configure: Regenerate.
17622         * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
17623         libgcc_tm.h, cs-libgcc_tm.h): New.
17624         (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
17625         (clean): Remove libgcc_tm.h.
17626         * config/arm/symbian.h (RENAME_LIBRARY): Remove.
17627         * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
17628         * system.h (DECLARE_LIBRARY_RENAMES): Poison.
17629
17630 2011-05-10  Georg-Johann Lay  <avr@gjlay.de>
17631
17632         PR target/48896
17633         * config/avr/avr.c (avr_ret_register): Return unsigned int
17634         instead of int.
17635         (avr_function_value): Mark fn_decl_or_type as unused, don't pass
17636         it to avr_libcall_value.
17637         avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
17638         expand_expr.
17639         (avr_expand_binop_builtin): Ditto.
17640         (avr_expand_unop_builtin): Ditto.
17641
17642 2011-05-10  DJ Delorie  <dj@redhat.com>
17643
17644         * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
17645         (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
17646         * config/rx/rx.c (rx_align_for_label): Add label and
17647         uses_threshold parameters.  Do not align when the label is not
17648         used enough.
17649         * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
17650
17651 2011-05-10  Richard Guenther  <rguenther@suse.de>
17652
17653         * tree-ssa-forwprop.c (combine_conversions): Pattern-match
17654         a series of conversions and apply foldings similar to what
17655         fold-const does.
17656         (tree_ssa_forward_propagate_single_use_vars): Call it.
17657
17658 2011-05-10  Jakub Jelinek  <jakub@redhat.com>
17659
17660         PR tree-optimization/48611
17661         PR tree-optimization/48794
17662         * tree-eh.c (remove_unreachable_handlers): Don't remove regions
17663         referenced from RESX or EH_DISPATCH arguments.
17664
17665         PR debug/48928
17666         * dfp.c (decimal_to_decnumber): Handle conversion from
17667         dconst{1,2,m1,half}.
17668
17669 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
17670
17671         * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
17672         for !flag_prefer_avx128.
17673         (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
17674
17675 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
17676
17677         * fold-const.c (fold_range_test): Pass LOC to build_range_check.
17678         (fold_ternary_loc): Use expr_location_or.
17679
17680 2011-05-09  H.J. Lu  <hongjiu.lu@intel.com>
17681
17682         PR debug/48853
17683         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
17684         POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
17685         Pmode and mem_mode is not VOIDmode.
17686
17687 2011-05-09  Ville Voutilainen  <ville.voutilainen@gmail.com>
17688
17689         * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
17690         TYPE_QUAL_RESTRICT): Convert to enum.
17691
17692 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
17693
17694         * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
17695         (const_pow2_1_to_8_operand): Ditto.
17696         (const_pow2_1_to_128_operand): Ditto.
17697         (const_pow2_1_to_32768_operand): Ditto.
17698         * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
17699         const_pow2_1_to_8_operand for operand 3 predicate.  Use exact_log2
17700         in insn constraint to check integer value of operand 3.
17701         * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
17702
17703         (PINSR_MODE): New mode iterator.
17704         (sse2p4_1): New mode attribute.
17705         (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
17706         sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
17707         iterator.  Use const_int_operand instead of
17708         const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate.  Use
17709         exact_log2 in insn constraint to check integer value of operand 3.
17710
17711 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
17712
17713         * config/i386/sse.md (blendbits): Remove mode attribute.
17714         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
17715         instead of const_0_to_<blendbits>_operand for operand 3 predicate.
17716         Check integer value of operand 3 in insn constraint.
17717
17718 2011-05-09  Richard Guenther  <rguenther@suse.de>
17719
17720         * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
17721         for diagnostics.
17722         (lto_symtab_merge): Likewise.  Do not register types here.
17723         (lto_symtab_merge_decls_2): Likewise.
17724         (lto_symtab_merge_decls_1): Likewise.
17725         * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
17726         * gimple.c (enum gtc_mode): Declare.
17727         (gimple_types_compatible_p): Make static.
17728
17729 2011-05-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17730
17731         * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
17732         temporary register to match Pmode.
17733
17734 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
17735
17736         * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
17737         and *vec_concatv4si_1_avx.
17738
17739 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
17740
17741         PR rtl-optimization/48927
17742         * ira-conflicts.c (commutative_constraint_p): Use
17743         recog_data.alternative_enabled_p to disable alternatives where
17744         "enabled" attribute is false.
17745         (get_dup_num): Ditto.
17746         * ira-lives.c (single_reg_class): Ditto.
17747         (ira_implicitly_set_insn_hard_regs): Ditto.
17748
17749 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
17750
17751         * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
17752         (dataflow_set_preserve_mem_locs): Likewise.
17753
17754 2011-05-09  Philipp Thomas  <pth@suse.de>
17755
17756         * config/mep/mep.c (mep_validate_vliw): Syntax description
17757         should not be translated.
17758
17759 2011-05-09  Joseph Myers  <joseph@codesourcery.com>
17760
17761         * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
17762         * config/mips/mips-tables.opt: New file (generated).
17763         * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
17764         * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
17765         MIPS_ARCH_OPTION_NATIVE): Define.
17766         * config/mips/mips.c (mips_cpu_info_table): Move contents to
17767         mips-cpus.def.
17768         (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
17769         mips_parse_cpu): Remove.
17770         (mips_cpu_info_from_opt, mips_default_arch): New.
17771         (mips_handle_option): Don't assert that global structures are in
17772         use.  Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
17773         (mips_option_override): Use new variables and functions to set
17774         state of these options.  Use strcmp to check for individual CPU names.
17775         * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
17776         definition.
17777         * config/mips/mips.opt (march=): Use ToLower and Enum.
17778         (mips): Use ToLower, Enum and Var.
17779         (mtune=): Use ToLower and Enum.
17780         * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
17781
17782 2011-05-08  Jan Hubicka  <jh@suse.cz>
17783
17784         * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
17785         Arrange type pairs to be UID ordered.
17786         (gimple_lookup_type_leader): Make inline.
17787
17788 2011-05-09  Nick Clifton  <nickc@redhat.com>
17789
17790         PR target/48899
17791         * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
17792         PROCESSOR_DEFAULT.
17793
17794         PR target/48897
17795         * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
17796         variable 's'.
17797
17798 2011-05-08  Chung-Lin Tang  <cltang@codesourcery.com>
17799
17800         * combine.c (simplify_comparison): Abstract out parts into...
17801         (simplify_compare_const): ... new function.
17802         (try_combine): Generalize parallel arithmetic/compare combining
17803         to call simplify_compare_const() and CANONICALIZE_COMPARE().
17804
17805 2011-05-08  Jan Hubicka  <jh@suse.cz>
17806
17807         * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
17808         (cgraph_create_virtual_clone): Call hooks once virtual clone
17809         is finished.
17810         * cgraph.h (cgraph_clone_node): Update prototype.
17811         * ipa-cp.c (ipcp_estimate_growth): Use
17812         estimate_ipcp_clone_size_and_time.
17813         * ipa-inline-transform.c (clone_inlined_nodes): Update.
17814         * lto-cgraph.c (input_node): Update.
17815         * ipa-inline.c (recursive_inlining): Update.
17816         * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
17817         (evaluate_conditions_for_known_args): Break out from ...
17818         (evaluate_conditions_for_edge): ... here.
17819         (evaluate_conditions_for_ipcp_clone): New function.
17820         (inline_node_duplication_hook): Update clone summary based
17821         on parameter map.
17822         (estimate_callee_size_and_time): Rename to ...
17823         (estimate_node_size_and_time): take NODE instead of EDGE;
17824         take POSSIBLE_TRUTHS as argument.
17825         (estimate_callee_size_and_time): Update.
17826         (estimate_ipcp_clone_size_and_time): New function.
17827         (do_estimate_edge_time): Update.
17828
17829 2011-05-08  Richard Guenther  <rguenther@suse.de>
17830
17831         PR middle-end/48908
17832         PR middle-end/48905
17833         * expmed.c (expand_shift_1): Compute adjusted constant shift
17834         amount manually.
17835
17836 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
17837
17838         * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
17839
17840 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
17841
17842         * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
17843
17844 2011-05-08  Jonathan Wakely  <jwakely.gcc@gmail.com>
17845
17846         * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
17847
17848 2011-05-07  Jan Hubicka  <jh@suse.cz>
17849
17850         * ipa-inline-transform.c (inline_call): Account when program size
17851         decreases.
17852         * ipa-inline.c (relative_time_benefit): New function.
17853         (edge_badness): Reorganize to be power 2 based; fix thinko when
17854         computing badness for negative growth; update comments to match
17855         reality; better dumps.
17856
17857 2011-05-07  Eric Botcazou  <ebotcazou@adacore.com>
17858
17859         * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
17860         type to bool and adjust comment.
17861         * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
17862         (fold_mathfn_compare): Remove calls to global_bindings_p.
17863         (fold_inf_compare): Likewise.
17864         * stor-layout.c (variable_size): Adjust call to global_bindings_p.
17865         * c-tree.h (global_bindings_p): Adjust prototype.
17866         * c-decl.c (global_bindings_p): Return bool and simplify.
17867
17868 2011-05-07  Zdenek Dvorak  <ook@ucw.cz>
17869
17870         PR tree-optimization/48837
17871         * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
17872         when accumulator transformation is performed.
17873
17874 2011-05-06  Jan Hubicka  <jh@suse.cz>
17875
17876         * i386.h (ix86_tune_indices): Add
17877         X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
17878         (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
17879         * i386.c (initial_ix86_tune_features): Add
17880         X86_SOFTARE_PREFETCHING_BENEFICIAL.
17881         (software_prefetching_beneficial_p): Remove predicate.
17882         (ix86_option_override_internal): Use new macro.
17883
17884 2011-05-06  Jan Hubicka  <jh@suse.cz>
17885
17886         * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
17887
17888 2011-05-06  Jan Hubicka  <jh@suse.cz>
17889
17890         * cgraph.c (cgraph_add_thunk): Create real function node instead
17891         of alias node; finalize it and mark needed/reachale; arrange visibility
17892         to be right and add it into the corresponding same comdat group list.
17893         (dump_cgraph_node): Dump thunks.
17894         * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
17895         cgraph_function_with_gimple_body_p,
17896         cgraph_first_function_with_gimple_body,
17897         cgraph_next_function_with_gimple_body): New functions.
17898         (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
17899         New macros.
17900         * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
17901         (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
17902         * cgraphunit.c (cgraph_finalize_function): Only look into possible
17903         devirtualization when optimizing.
17904         (verify_cgraph_node): Verify thunks.
17905         (cgraph_analyze_function): Analyze thunks.
17906         (cgraph_mark_functions_to_output): Output thunks only in combination
17907         with function they are assigned to.
17908         (assemble_thunk): Turn thunk into non-thunk; don't try to turn
17909         alias into normal node.
17910         (assemble_thunks): New functoin.
17911         (cgraph_expand_function): Use it.
17912         * lto-cgraph.c (lto_output_node): Stream thunks.
17913         (input_overwrite_node): Stream in thunks.
17914         * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
17915         * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
17916         * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
17917         * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
17918         (inline_analyze_function): Do not care about thunk jump functions.
17919         (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
17920         * ipa-prop.c (ipa_prop_write_jump_functions): Use
17921         cgraph_function_with_gimple_body_p.
17922         * passes.c (do_per_function_toporder): Use
17923         cgraph_function_with_gimple_body_p.
17924         (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
17925         (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
17926         (function_called_by_processed_nodes_p): Likewise.
17927
17928 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
17929
17930         * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
17931         rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
17932         entries.
17933         (mabi=): Replace with separate entries for mabi=altivec,
17934         mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
17935         mabi=ieeelongdouble and mabi=ibmlongdouble.
17936         * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
17937         check for -mabi=spe without SPE ABI support here.
17938         (rs6000_handle_option): Replace OPT_mabi_ handling with
17939         OPT_mabi_altivec and OPT_mabi_spe handling.
17940
17941 2011-05-06  Cary Coutant  <ccoutant@google.com>
17942
17943         * dwarf2out.c (contains_subprogram_definition): New function.
17944         (should_move_die_to_comdat): Call it.
17945
17946 2011-05-06  Jeff Law  <law@redhat.com>
17947
17948         * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
17949         remove_ctrl_stmt_and_useless_edges.
17950         (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
17951         (fixup_template_block, thread_single_edge): Likewise.
17952         (mark_threaded_blocks): Use THREAD_TARGET.
17953
17954 2011-05-06  Alan Modra  <amodra@gmail.com>
17955
17956         PR target/48900
17957         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
17958         const0_rtx as the arg to the dummy __tls_get_addr libcall.
17959
17960 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
17961
17962         * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
17963         constraint modifier to "r".
17964
17965 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
17966
17967         * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
17968         fall through for OPT_mcmodel_.
17969
17970 2011-05-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17971
17972         * config/s390/s390.c (s390_asm_trampoline_template): Comment
17973         instruction sizes.
17974         (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
17975
17976 2011-05-06  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
17977
17978         PR target/47930
17979         * config/arm/arm.opt (marm): Document it.
17980         (mthumb): Reject negative variant.
17981
17982 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
17983
17984         PR target/48898
17985         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
17986         Fix typo in "ccvt" variable name.
17987
17988 2011-05-06  Tristan Gingold  <gingold@adacore.com>
17989
17990         PR target/48895
17991         * config/vms/vms-ar.c (main): Remove cwd variable.
17992
17993 2011-05-06  Jakub Jelinek  <jakub@redhat.com>
17994
17995         PR debug/48902
17996         * var-tracking.c (prepare_call_arguments): Move else before #endif.
17997
17998 2011-05-05  Nathan Froyd  <froydnj@codesourcery.com>
17999
18000         * except.c (sjlj_emit_dispatch_table): Call build_case_label.
18001         * gimplify.c (gimplify_switch_expr): Likewise.
18002         * omp-low.c (expand_omp_sections): Likewise.
18003         * tree-eh.c (lower_try_finally_switch): Likewise.
18004         (lower_eh_dispatch): Likewise.
18005         * tree.h (build_case_label): Declare.
18006         * tree.c (build_case_label): Define.
18007
18008 2011-05-05  Jason Merrill  <jason@redhat.com>
18009
18010         PR c++/40975
18011         * tree-inline.c (copy_tree_r): Use copy_statement_list.
18012         (copy_statement_list): Don't recurse.
18013         * stor-layout.c (copy_self_referential_tree_r): Don't allow
18014         STATEMENT_LIST.
18015
18016 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
18017
18018         * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
18019         through from -mfpu= handling.
18020         * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
18021
18022 2011-05-05  Bernd Schmidt  <bernds@codesourcery.com>
18023
18024         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
18025         POST_MODIFY.
18026
18027 2011-05-05  Steve Ellcey  <sje@cup.hp.com>
18028
18029         * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
18030         for 11.31.
18031         (hppa[12]*-*-hpux11*): Ditto.
18032         (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
18033         * config/ia64/hpux-unix2003.h: New.
18034         * config/pa/pa-hpux1131.opt: New.
18035         * config/pa/pa-hpux1131.h: New.
18036         * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
18037         * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
18038         * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
18039
18040 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
18041
18042         PR debug/48853
18043         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
18044         instead of mode as 3rd argument to recursive call.
18045         (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
18046         emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
18047         VOIDmode.
18048         (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
18049         don't give up if mode is Pmode and mem_mode is not VOIDmode.
18050         (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
18051         use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
18052
18053 2011-05-05  Julian Brown  <julian@codesourcery.com>
18054
18055         * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
18056         parenthesis in D-register case.
18057
18058 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
18059
18060         * opt-functions.awk (var_type_struct): Handle Enum options.
18061         * optc-gen.awk: Don't check range of variables of character type.
18062         * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
18063         rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
18064         rs6000_sdata_name, rs6000_explicit_options): Remove.
18065         (rs6000_option_override_internal): Check for -malign-power here.
18066         Use global_options_set instead of rs6000_explicit_options.
18067         (rs6000_parse_fpu_option): Remove.
18068         (rs6000_handle_option): Access variables via opts and opts_set
18069         pointers.  Use error_at and warning_at.  Add fall-through
18070         comments.  Don't handle OPT_mcmodel_, OPT_maix_struct_return,
18071         OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
18072         OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
18073         OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
18074         here.  Don't use rs6000_parse_fpu_option.
18075         * config/rs6000/rs6000.h (fpu_type): Remove declaration.
18076         * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
18077         rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
18078         (mrecip=): Use Var.
18079         (mspe): Use Var and Save.
18080         (mtraceback=): Use Enum and Var.
18081         (rs6000_traceback_type): New Enum and EnumValue entries.
18082         (mfloat-gprs=): Use Enum, Var and Save.
18083         (rs6000_float_gprs): New Enum and EnumValue entries.
18084         (mlong-double-): use Var and Save.
18085         (msched-costly-dep=, minsert-sched-nops=): Use Var.
18086         (malign-): Use Enum and Var.
18087         (rs6000_alignment_flags): New Enum and EnumValue entries.
18088         (mfpu=): Use Enum.
18089         (fpu_type_t): New Enum and EnumValue entries.
18090         * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
18091         global_options_set instead of rs6000_explicit_options.
18092         * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
18093         global_options_set instead of rs6000_explicit_options.
18094         * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
18095         global_options_set instead of rs6000_explicit_options.
18096         * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
18097         global_options_set instead of rs6000_explicit_options.
18098         * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
18099         global_options_set instead of rs6000_explicit_options.
18100         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
18101         global_options_set instead of rs6000_explicit_options.
18102         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
18103         definition.
18104         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
18105         global_options_set instead of rs6000_explicit_options.
18106         * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
18107         (rs6000_cmodel): New Enum and EnumValue entries.
18108         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
18109         global_options_set instead of rs6000_explicit_options.
18110         * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
18111         (mtls-size=): Use Enum and Var.
18112         (rs6000_tls_size): New Enum and EnumValue entries.
18113
18114 2011-05-05  Michael Matz  <matz@suse.de>
18115
18116         * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
18117         * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
18118         * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
18119         * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
18120         * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
18121         * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
18122         * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
18123         * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
18124         * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
18125         * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
18126         * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
18127         * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
18128         * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
18129         * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
18130         * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
18131         * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
18132
18133 2011-05-05  Richard Guenther  <rguenther@suse.de>
18134
18135         * expmed.c (expand_variable_shift): Rename to ...
18136         (expand_shift_1): ... this.  Take an expanded shift amount.
18137         For rotates recurse directly not building trees for the shift amount.
18138         (expand_variable_shift): Wrap around expand_shift_1.
18139         (expand_shift): Adjust.
18140
18141 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
18142
18143         * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
18144
18145 2011-05-05  Eric Botcazou  <ebotcazou@adacore.com>
18146
18147         * tree.h (get_pending_sizes): Remove prototype.
18148         (put_pending_size): Likewise.
18149         (put_pending_sizes): Likewise.
18150         * stor-layout.c (pending_sizes): Delete.
18151         (get_pending_sizes): Likewise.
18152         (put_pending_size): Likewise.
18153         (put_pending_sizes): Likewise.
18154         (variable_size): Do not call put_pending_size and tidy up.
18155         * function.h (struct function): Remove dont_save_pending_sizes_p.
18156         * lto-streamer-in.c (input_function): Do not stream it.
18157         * lto-streamer-out.c (output_function): Likewise.
18158         * tree-inline.c (initialize_cfun): Do not copy it.
18159         * c-decl.c (store_parm_decls): Do not set it.
18160         * omp-low.c (create_task_copyfn): Likewise.
18161         * tree-optimize.c (tree_rest_of_compilation): Likewise.
18162
18163 2011-05-05  Uros Bizjak  <ubizjak@gmail.com>
18164
18165         * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
18166         conditions.
18167         (*movdf_internal): Ditto.
18168         (*movdf_internal_nointeger): Ditto.
18169         (*movsf_internal): Ditto.
18170
18171 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
18172
18173         * c-decl.c (finish_decl): Don't call get_pending_sizes.
18174         (grokparm): Add parameter expr.  Pass it to grokdeclarator.
18175         (push_parm_decl): Add parameter expr.  Pass it to grokdeclarator.
18176         (c_variable_size): Remove.
18177         (grokdeclarator): Use save_expr instead of c_variable_size.  Don't
18178         call put_pending_sizes.
18179         (get_parm_info): Add parameter expr.  Use it to set
18180         arg_info->pending_sizes.
18181         (store_parm_decls): Use arg_info->pending_sizes instead or calling
18182         get_pending_sizes.
18183         * c-parser.c (c_parser_parms_declarator): Update call to
18184         c_parser_parms_list_declarator.
18185         (c_parser_parms_list_declarator): Take parameter expr.  Update
18186         call to push_parm_decl.  Update recursive call.  Don't call
18187         get_pending_sizes.  Update calls to get_parm_info.
18188         (c_parser_objc_method_definition): Update calls to
18189         c_parser_objc_method_decl and objc_start_method_definition.
18190         (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
18191         (c_parser_objc_method_decl): Add parameter expr.  Update call to
18192         grokparm.
18193         (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
18194         * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
18195         (get_parm_info, grokparm, push_parm_decl): Update prototypes.
18196
18197 2011-05-05  Michael Hope  <michael.hope@linaro.org>
18198
18199         PR pch/45979
18200         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
18201         __ARM_EABI__ hosts.
18202
18203 2011-05-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
18204
18205         * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
18206         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
18207         (spu_output_mi_thunk): New function.
18208
18209 2011-05-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18210
18211         * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
18212         targetm.asm_out.print_operand.
18213         * config/sol2.c: Include target.h.
18214
18215 2011-05-04  Jan Hubicka  <jh@suse.cz>
18216
18217         * ipa-inline.c (reset_edge_caches): New function.
18218         (update_caller_keys): Add check_inlinablity_for; do not
18219         reset edge caches; remove now unnecesary loop.
18220         (update_callee_keys): Add comments; reset node_growth_cache of callee.
18221         (update_all_callee_keys): Likewise.
18222         (inline_small_functions): Sanity check cache; update code
18223         recomputing it.
18224
18225 2011-05-04  Bernd Schmidt  <bernds@codesourcery.com>
18226
18227         PR rtl-optimization/47612
18228         * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
18229         as the last insn of the sequence to be moved.
18230
18231 2011-05-04  Tobias Burnus  <burnus@net-b.de>
18232
18233         PR fortran/48864
18234         * doc/invoke.texi (Ofast): Document that it
18235         enables Fortran's -fno-protect-parens.
18236
18237 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
18238
18239         * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
18240
18241 2011-05-04  Eric Botcazou  <ebotcazou@adacore.com>
18242
18243         * stor-layout.c (variable_size): Do not issue errors.
18244
18245 2011-05-04  Richard Guenther  <rguenther@suse.de>
18246
18247         * coverage.c (tree_coverage_counter_ref): Use integer_type_node
18248         for array-ref indices.
18249         (tree_coverage_counter_addr): Likewise.
18250         (build_fn_info_type): Use size_int for index types.
18251         (build_gcov_info): Likewise.
18252
18253 2011-05-04  Richard Guenther  <rguenther@suse.de>
18254
18255         * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
18256         to build_int_cst.
18257         * c-typeck.c (really_start_incremental_init): Use bitsize_int
18258         for constructor indices.
18259         (push_init_level): Likewise.
18260
18261 2011-05-04  Richard Guenther  <rguenther@suse.de>
18262
18263         * explow.c (promote_mode): Move variable declarations before code.
18264
18265 2011-05-04  Nathan Froyd  <froydnj@codesourcery.com>
18266
18267         * tree.h (build_function_type_array): Declare.
18268         (build_varargs_function_type_array): Declare.
18269         (build_function_type_vec, build_varargs_function_type_vec): Define.
18270         * tree.c (build_function_type_array_1): New function.
18271         (build_function_type_array): New function.
18272         (build_varargs_function_type_array): New function.
18273
18274 2011-05-04  Richard Sandiford  <richard.sandiford@linaro.org>
18275
18276         * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
18277         before setting STMT_VINFO_TYPE.
18278
18279 2011-05-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
18280
18281         * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
18282         instead of spu_pass_by_reference.
18283
18284 2011-05-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18285
18286         * calls.c (emit_library_call_value_1): Invoke
18287         promote_function_mode hook on libcall arguments.
18288         * explow.c (promote_function_mode, promote_mode): Handle TYPE
18289         argument being NULL.
18290         * targhooks.c (default_promote_function_mode): Lisewise.
18291         * config/s390/s390.c (s390_promote_function_mode): Likewise.
18292         * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
18293
18294         * doc/tm.texi: Document that TYPE argument might be NULL.
18295
18296 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
18297
18298         * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
18299
18300 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
18301
18302         From Bernd Schmidt
18303         * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
18304
18305 2011-05-04  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18306
18307         * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
18308         (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
18309         Move ...
18310         * mips-tfile.c: ... here.
18311         Don't include coretypes.h, tm.h, filenames.h.
18312         (saber_stop): Remove definition and all calls.
18313         [__SABER__]: Remove.
18314         (__LINE__): Remove default.
18315         (Size_t, Ptrdiff_t): Remove definitions.
18316         Replace by size_t, ptrdiff_t.
18317         [!MIPS_DEBUGGING_INFO]: Remove.
18318         (SHASH_SIZE, THASH_SIZE): Remove defaults.
18319         (progname): Add const.
18320         (STATIC): Remove.
18321         Replace all uses by static.
18322         (ALIGN_SYMTABLE_OFFSET): Remove default.
18323         * mips-tdump.c: Don't include coretypes.h, tm.h.
18324         Remove !MIPS_IS_STAB guard.
18325         * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
18326         $(TM_H), filenames.h dependencies.
18327         (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
18328
18329 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
18330
18331         From Jie Zhang
18332         *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
18333         (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
18334
18335 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
18336
18337         From Bernd Schmidt
18338         * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
18339         account and save/restore RETS.
18340         (PROFILE_BEFORE_PROLOGUE): Define.
18341         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character.  Correct
18342         the push insn to use predecrement.
18343
18344 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
18345
18346         From Jie Zhang
18347         * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
18348
18349 2011-05-04  Nick Clifton  <nickc@redhat.com>
18350
18351         * config/mn10300/mn10300.c: Include cfgloop.h.
18352         (DUMP): New macro.
18353         (mn10300_insert_setlb_lcc): New function.  Inserts a SETLB and a
18354         Lcc or a FLcc insn into the instruction stream.
18355         (mn10300_block_contains_call): New function.  Returns true if the
18356         given basic block contains a CALL insn.
18357         (mn10300_loop_contains_call_insn): New function.  Returns true if
18358         the given loop contains a CALL insn.
18359         (mn10300_scan_for_setlb_lcc): New function.  Finds opportunities
18360         to use the SETLB and Lcc or FLcc insns.
18361         (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
18362         (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
18363         * config/mn10300/mn10300.opt (msetlb): New option.  Used to
18364         disable the SETLB optimization.
18365         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
18366         __SETLB__ or __NO_SETLB__.
18367         * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
18368         (movsf_internal): Handle MDR register.
18369         (cmpsi): Make visible.
18370         (setlb): New pattern.
18371         (Lcc): New pattern.
18372         (FLcc): New pattern.
18373
18374 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
18375
18376         PR target/48860
18377         * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
18378         for reg<->xmm moves.
18379         * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
18380         (vec_concatv2di_rex64_sse): Ditto.
18381         (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
18382         (*vec_extractv2di_1_rex64): Ditto.
18383
18384         Revert:
18385         2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
18386
18387         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
18388         reg<->xmm moves.
18389         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
18390
18391 2011-05-04  Richard Guenther  <rguenther@suse.de>
18392
18393         * tree.h (int_const_binop): Remove notrunc argument.
18394         * fold-const.c (int_const_binop): Remove notrunc argument.  Always
18395         create integer constants that are properly truncated.
18396         (extract_muldiv_1): Expand one notrunc int_const_binop caller.
18397         (const_binop): Remove zero notrunc argument to int_const_binop.
18398         (size_binop_loc): Likewise.
18399         (fold_div_compare): Likewise.
18400         (maybe_canonicalize_comparison_1): Likewise.
18401         (fold_comparison): Likewise.
18402         (fold_binary_loc): Likewise.
18403         (multiple_of_p): Likewise.
18404         * expr.c (store_constructor): Likewise.
18405         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
18406         (maybe_fold_stmt_addition): Likewise.
18407         * ipa-prop.c (ipa_modify_call_arguments): Likewise.
18408         * stor-layout.c (layout_type): Likewise.
18409         * tree-data-ref.c (tree_fold_divides_p): Likewise.
18410         * tree-sra.c (build_ref_for_offset): Likewise.
18411         (build_user_friendly_ref_for_offset): Likewise.
18412         * tree-ssa-address.c (maybe_fold_tmr): Likewise.
18413         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
18414         * tree-ssa-loop-niter.c (inverse): Likewise.
18415         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
18416         * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
18417         * tree-switch-conversion.c (check_range): Likewise.
18418         (build_constructors): Likewise.
18419         * tree-vect-generic.c (expand_vector_piecewise): Likewise.
18420         * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
18421         (extract_range_from_assert): Likewise.
18422         (vrp_int_const_binop): Likewise.
18423         (extract_range_from_binary_expr): Likewise.
18424         (extract_range_from_unary_expr): Likewise.
18425         (check_array_ref): Likewise.
18426         (find_case_label_range): Likewise.
18427         (simplify_div_or_mod_using_ranges): Likewise.
18428         * tree-cfg.c (group_case_labels_stmt): Use double-ints for
18429         comparing case labels for merging.
18430
18431 2011-05-03  Mark Wielaard  <mjw@redhat.com>
18432
18433         * dwarf2out.c (debug_str_hash_forced): Removed.
18434         (gen_label_for_indirect_string): Removed.
18435         (get_debug_string_label): Removed.
18436         (AT_string_form): Generate label directly.
18437         (output_indirect_string): Test indirect_string_node for
18438         DW_FORM_strp instead of checking label and refcount.
18439         (prune_indirect_string): Removed.
18440         (prune_unused_types): Don't check debug_str_hash_forced or
18441         call prune_indirect_string.
18442
18443 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
18444
18445         PR other/48093
18446         * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
18447
18448 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
18449
18450         PR debug/47994
18451         PR debug/47919
18452         * combine.c (try_combine): Skip debug insns at m_split tests.
18453
18454 2011-04-26  Mark Wielaard  <mjw@redhat.com>
18455
18456         PR42288
18457         * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
18458         when info_section_emitted.
18459
18460 2011-05-03  Joseph Myers  <joseph@codesourcery.com>
18461
18462         * config/mips/mips-opts.h: New.
18463         * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
18464         to mips-opts.h.
18465         (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
18466         (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
18467         or OPT_mr10k_cache_barrier_ here.  Access mips_cache_flush_func
18468         via opts pointer.
18469         * config/mips/mips.h (enum mips_code_readable_setting): Move to
18470         mips-opts.h.
18471         (mips_abi, mips_code_readable): Don't declare.
18472         * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
18473         (mabi=): Use Enum and Var.
18474         (mips_abi): New Enum and EnumValue entries.
18475         (mcode-readable=): Use Enum and Var.
18476         (mips_code_readable_setting): New Enum and EnumValue entries.
18477         (mr10k-cache-barrier=): Use Enum and Var.
18478         (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
18479
18480 2011-05-03  Jan Hubicka  <jh@suse.cz>
18481
18482         * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
18483         replace hash by pointer map.
18484         (cgraph_node_set_element_def, cgraph_node_set_element,
18485         const_cgraph_node_set_element, varpool_node_set_element_def,
18486         varpool_node_set_element, const_varpool_node_set_element): Remove.
18487         (free_cgraph_node_set, free_varpool_node_set): New function.
18488         (cgraph_node_set_size, varpool_node_set_size): Use vector size.
18489         * tree-emutls.c: Free varpool node set.
18490         * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
18491         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
18492         debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
18493         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
18494         dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
18495         Move here from ipa.c; implement using pointer_map
18496         * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
18497         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
18498         debug_cgraph_node_set, varpool_node_set_new,
18499         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
18500         dump_varpool_node_set, debug_varpool_node_set):
18501         Move to ipa-uitls.c.
18502         * passes.c (ipa_write_summaries): Update.
18503
18504 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
18505
18506         From Mike Frysinger:
18507         * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
18508         bf542/bf544/bf547/bf548/bf549.
18509
18510 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
18511
18512         * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
18513
18514 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
18515
18516         From Bernd Schmidt:
18517         * config/bfin/bfin.md (MOVCC): New mode_macro.
18518         (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
18519         movsicc_insn1, movsicc_insn2 and movsicc and macroized.  Remove
18520         comments from generated assembly.
18521
18522 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
18523
18524         From Bernd Schmidt
18525         * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
18526         * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
18527         * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
18528         * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
18529         * config/bfin/lib1funcs.asm (___muldi3): New function.
18530
18531 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
18532
18533         * config/stormy16/stormy16 (xstormy16_init_builtins): Call
18534         build_function_type_list instead of build_function_type.
18535         Rearrange initialization of `args' to do so.
18536
18537 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
18538
18539         * config/i386/i386.c (ix86_code_end): Call build_function_type_list
18540         instead of build_function_type.
18541
18542 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
18543
18544         * config/rs6000/rs6000.c (spe_init_builtins): Call
18545         build_function_type_list instead of build_function_type.
18546         (paired_init_builtins, altivec_init_builtins): Likewise.
18547         (builtin_function_type): Likewise.
18548
18549 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
18550
18551         * config/sh/sh.c (sh_media_init_builtins): Call
18552         build_function_type_list instead of build_function_type.
18553
18554 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
18555
18556         * config/sparc/sparc.c (sparc_file_end): Call
18557         build_function_type_list instead of build_function_type.
18558
18559 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
18560
18561         * config/alpha/alpha.c (alpha_init_builtins): Call
18562         build_function_type_list instead of build_function_type.
18563
18564 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
18565
18566         * config/xtensa/xtensa.c (xtensa_init_builtins): Call
18567         build_function_type_list instead of build_function_type.
18568
18569 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
18570
18571         * config/iq2000/i2000.c (iq2000_init_builtins): Call
18572         build_function_type_list instead of build_function_type.
18573         Delete `endlink' variable.
18574
18575 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
18576
18577         * config/avr/avr.c (avr_init_builtins): Call
18578         build_function_type_list instead of build_function_type.
18579
18580 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
18581
18582         * config/picochip/picochip.c (picochip_init_builtins): Call
18583         build_function_type_list instead of build_function_type.
18584         Delete `endlink' variable.
18585
18586 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
18587
18588         * config/bfin/bfin.c (bfin_init_builtins): Call
18589         build_function_type_list instead of build_function_type.
18590
18591 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
18592
18593         From Bernd Schmidt
18594         * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
18595         that's not CONST_INT.  Seemingly redundant check is due to PR39768.
18596
18597 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
18598
18599         From Jie Zhang:
18600         * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
18601         libbffastfp overrides libgcc when -mfast-fp.
18602
18603 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
18604
18605         Originally from Bernd Schmidt
18606         * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
18607         * config/bfin/bfin.c (override_options): Test it and error if
18608         TARGET_FDPIC.
18609
18610 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
18611
18612         Originally From Bernd Schmidt
18613         * config/bfin/bfin.c (override_options): Disable -fstack-limit for
18614         FD-PIC.
18615
18616 2011-05-03  Jeff Law  <law@redhat.com>
18617
18618         * tree-ssa-threadupdate.c (THREAD_TARGET): define.
18619         (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
18620         (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
18621         than accessing AUX field directly.  Free the AUX field before
18622         clearing it.
18623         (thread_block, thread_through_loop_header): Likewise.
18624         (thread_single_edge, mark_threaded_blocks): Likewise.
18625         (redirect_edges): Delay clearing the AUX field.  Free the AUX field.
18626         (register_jump_thread): Do not attempt to thread to a NULL edge.
18627
18628 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
18629
18630         * function.c (init_function_start): Call decide_function_section.
18631         * varasm.c (decide_function_section): New function.
18632         (assemble_start_function): When not using
18633         flag_reorder_blocks_and_partition, don't compute in_cold_section_p
18634         or first_function_block_is_cold.
18635         * rtl.h (decide_function_section): Declare.
18636
18637 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
18638             Jakub Jelinek  <jakub@redhat.com>
18639
18640         PR target/48774
18641         * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
18642         only succeed if req_mode is the same as set_mode.
18643
18644 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
18645
18646         * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
18647         * genemit.c (gen_exp): Handle RETURN.
18648         * emit-rtl.c (verify_rtx_sharing): Likewise.
18649         (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
18650         * rtl.c (copy_rtx): RETURN is shared.
18651         * rtl.h (enum global_rtl_index): Add GR_RETURN.
18652         (ret_rtx): New.
18653         * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
18654         * config/s390/s390.c (s390_emit_epilogue): Likewise.
18655         * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
18656         * config/cris/cris.c (cris_expand_return): Likewise.
18657         * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
18658         * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
18659         rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
18660         * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
18661         * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
18662         Likewise.
18663         * config/v850/v850.c (expand_epilogue): Likewise.
18664         * config/bfin/bfin.c (bfin_expand_call): Likewise.
18665         * config/arm/arm.md (epilogue): Likewise.
18666         * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
18667         * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
18668         variable to ret_reg.
18669
18670 2011-05-03  Richard Guenther  <rguenther@suse.de>
18671
18672         PR lto/48846
18673         * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
18674         Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
18675         * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
18676
18677 2011-05-03  Richard Guenther  <rguenther@suse.de>
18678
18679         * c-decl.c (grokdeclarator): Instead of looking at
18680         TREE_OVERFLOW check if the constant fits in the index type.
18681
18682 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
18683
18684         * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
18685         (vec_store_lanes<mode><mode>): Likewise.
18686
18687 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
18688
18689         * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
18690         * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
18691         convert_optab_index values.
18692         (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
18693         * genopinit.c (optabs): Initialize the new optabs.
18694         * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
18695         * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
18696         (expand_STORE_LANES): New functions.
18697         * tree.h (build_array_type_nelts): Declare.
18698         * tree.c (build_array_type_nelts): New function.
18699         * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
18700         (vect_model_load_cost): Likewise.
18701         (vect_store_lanes_supported, vect_load_lanes_supported)
18702         (vect_record_strided_load_vectors): Declare.
18703         * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
18704         (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
18705         (vect_transform_strided_load): Split out statement recording into...
18706         (vect_record_strided_load_vectors): ...this new function.
18707         * tree-vect-stmts.c (create_vector_array, read_vector_array)
18708         (write_vector_array, create_array_ref): New functions.
18709         (vect_model_store_cost): Add store_lanes_p argument.
18710         (vect_model_load_cost): Add load_lanes_p argument.
18711         (vectorizable_store): Try to use store-lanes functions for
18712         interleaved stores.
18713         (vectorizable_load): Likewise load-lanes and loads.
18714         * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
18715         to vect_model_store_cost.
18716         (vect_build_slp_tree): Likewise vect_model_load_cost.
18717
18718 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
18719
18720         * hooks.h (hook_bool_mode_uhwi_false): Declare.
18721         * hooks.c (hook_bool_mode_uhwi_false): New function.
18722         * target.def (array_mode_supported_p): New hook.
18723         * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
18724         * doc/tm.texi: Regenerate.
18725         * stor-layout.c (mode_for_array): New function.
18726         (layout_type): Use it.
18727         * config/arm/arm.c (arm_array_mode_supported_p): New function.
18728         (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
18729
18730 2011-05-03  Eric Botcazou  <ebotcazou@adacore.com>
18731
18732         PR target/48723
18733         * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
18734         for -fstack-check if the size to allocate is negative.
18735
18736 2011-05-02  Lawrence Crowl  <crowl@google.com>
18737
18738         * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
18739         (timevar_cond_start): New for starting a timer only when it is not
18740         already running.
18741         (timevar_cond_stop): New for stopping a timer when it was not already
18742         running.
18743
18744         * timevar.c (timevar_stop): Enable start/stop timers to start again.
18745         (timevar_cond_start): New as above.
18746         (timevar_cond_stop): New as above.
18747
18748         * timevar.def: Add start/stop timers for compiler phases,
18749         TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
18750         TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
18751         and TV_PHASE_FINALIZE.
18752         Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
18753         Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
18754         TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
18755         Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
18756         Make unused TV_OVERLOAD into a start/stop timer.
18757
18758         Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
18759         Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
18760         to indicate that they are start/stop timers.
18761
18762         * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
18763         Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
18764         Move initialization to do_compile.
18765         (do_compile): Add initialization from above.
18766         Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
18767
18768         * c-decl.c (c_write_global_declarations): Add start/stop of
18769         TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
18770
18771         * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
18772         or TV_PARSE_INLINE, as appropriate.
18773         (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
18774         (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
18775
18776 2011-05-02  Jason Merrill  <jason@redhat.com>
18777
18778         PR c++/40975
18779         * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
18780
18781 2011-05-02  Simon Martin  <simartin@users.sourceforge.net>
18782
18783         PR c/35445
18784         * c-decl.c (finish_decl): Only create a composite if the types are
18785         compatible.
18786
18787 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
18788
18789         * config/fr30/fr30-protos.h (Mmode): Don't define.
18790         * config/m32r/m32r-protos.h (Mmode): Don't define.  Expand
18791         definition where used.
18792         * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
18793         define.  Expand definitions where used.
18794         * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
18795         Expand definitions where used.
18796         * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
18797         rx_function_arg, rx_function_arg_advance,
18798         rx_function_arg_boundary): Expand definitions of those macros.
18799         * config/v850/v850-protos.h (Mmode): Don't define.  Expand
18800         definition where used.
18801
18802 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
18803
18804         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
18805         reg<->xmm moves.
18806         (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
18807         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.  Merge
18808         with *movv2sf_internal_rex64_avx.
18809         (*movv2sf_internal): Merge with *movv2sf_internal_avx.
18810         * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
18811         Use %v prefix in insn mnemonic to handle TARGET_AVX.
18812         (*movdi_internal): Add "isa" attribute.  Use "maybe_vex" instead of
18813         "vex" in "prefix" attribute calculation.
18814         (*movdf_internal): Output AVX mnemonics.  Add "prefix" attribute.
18815
18816 2011-05-02  Stuart Henderson  <shenders@gcc.gnu.org>
18817
18818         PR target/47951
18819         * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
18820         inputs match the output.
18821
18822 2011-05-02  Andreas Schwab  <schwab@linux-m68k.org>
18823
18824         PR target/47955
18825         * config/m68k/m68k.c (m68k_expand_prologue): Set
18826         current_function_static_stack_size.
18827
18828 2011-05-02   Jan Hubicka  <jh@suse.cz>
18829
18830         * lto-streamer.c (lto_streamer_cache_insert_1,
18831         lto_streamer_cache_lookup, lto_streamer_cache_create,
18832         lto_streamer_cache_delete): Use pointer map instead of hashtable.
18833         * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
18834
18835 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
18836
18837         * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
18838         config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
18839         config/m68k/t-opts: New files.
18840         * config/m68k/m68k-tables.opt: New file (generated).
18841         * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
18842         extra_options and m68k/t-opts to tmake_file.
18843         * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
18844         (all_isas): Initialize using m68k-isas.def.
18845         (all_microarchs): Initialize using m68k-microarchs.def.
18846         (m68k_find_selection): Remove.
18847         (m68k_handle_option): Don't assert that global structures are in
18848         use.  Use error_at.  Access variables via opts pointer.  Don't
18849         handle -march=, -mcpu= and -mtune= here.  Set gcc_options fields
18850         directly for -m68020-40 and -m68020-60.
18851         (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
18852         m68k_tune_entry here.
18853         * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
18854         to m68k-opts.h.
18855         (m68k_library_id_string): Remove declaration.
18856         * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
18857         (m68k_library_id_string): New Variable.
18858         (march=, mcpu=, mtune=): Use Enum and Var.
18859
18860 2011-05-02  Richard Guenther  <rguenther@suse.de>
18861
18862         * varasm.c (output_constructor_regular_field): Compute zero-based
18863         index with double-ints.  Make sure to ICE instead of producing
18864         wrong code.
18865         * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
18866         in asserts.  Properly use a signed type.
18867
18868 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
18869
18870         * config/i386/sse.md (V): New mode iterator.
18871         (V_128): Rename from SSEMODE.  Make V2DF mode conditional on
18872         TARGET_SSE2.
18873         (V_256): Rename from AVX256MODE.
18874         (VF): Make V4SF mode unconditional.  Add TARGET_SSE instruction
18875         condition to all users.
18876         (VF1): Ditto.
18877         (VF2): Make V2DF mode unconditional.  Add TARGET_SSE2 instruction
18878         condition to all users.
18879         (VF_128): Make V4SF mode unconditional.
18880         (VF_256): Rename from AVX256MODEF2P.
18881         (VI4F_128): Rename from SSEMODE4S.
18882         (VI8F_128): Rename from SSEMODE2D.
18883         (VI4F_256): Rename from AVX256MODE8P.
18884         (VI8F_256): Rename from AVX256MODE4P.
18885         (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
18886         (ssescalarmodesuffix): Remove SF and DF modes.
18887         (SSEMODE124): Remove.
18888         (SSEMODE1248): Ditto.
18889         (SSEMODEF2P): Ditto.
18890         (AVXMODEF2P): Ditto.
18891         (AVXMODEFDP): Ditto.
18892         (AVXMODEFSP): Ditto.
18893         (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
18894         unconditional.
18895         (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO.  Make V4SF mode
18896         unconditional.
18897         (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
18898         xop_pcmov_<mode>256.  Use V mode iterator.
18899
18900         Adjust RTX patterns globally for renamed mode attributes.
18901
18902 2011-05-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
18903
18904         * haifa-sched.c (sched_emit_insn): Emit insn before first
18905         non-scheduled insn.  Inform back-end about new insn.  Add
18906         new insn to scheduled_insns list.
18907
18908 2011-05-02  Richard Guenther  <rguenther@suse.de>
18909
18910         PR tree-optimization/48822
18911         * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
18912         (process_scc): Indicate which iteration we start.
18913
18914 2011-05-02  Jan Hubicka  <jh@suse.cz>
18915
18916         * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
18917         (lto_section_overrun): New.
18918         * lto-section-out.c (append_block): Rename to ...
18919         (lto_append_block): ... this one; export.
18920         (lto_output_1_stream): Move lto lto-streamer.h
18921         (lto_output_data_stream): Update.
18922         * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
18923         (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
18924         functions.
18925
18926 2011-05-02  Richard Guenther  <rguenther@suse.de>
18927
18928         * tree.c (tree_code_counts): New global array.
18929         (record_node_allocation_statistics): Count individual tree codes.
18930         (dump_tree_statistics): Dump individual code stats.
18931
18932 2011-05-01  Jan Hubicka  <jh@suse.cz>
18933
18934         * ipa-inline.c (caller_growth_limits): Fix thinko when
18935         looking for largest stack frame.
18936         * ipa-inline.h (dump_inline_summary): Declare.
18937         * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
18938         on stack usage.
18939         (dump_inline_summary): Export.
18940         (debug_inline_summary): Declare as DEBUG_FUNCTION.
18941
18942 2011-05-01  Anatoly Sokolov  <aesok@post.ru>
18943
18944         * reginfo.c (memory_move_cost): Change rclass argument type form
18945         'enum reg_class' to reg_class_t.
18946         * reload.h (memory_move_cost): Update prototype.
18947         * postreload.c reload_cse_simplify_set): Change type dclass var to
18948         reg_class_t.
18949         * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
18950         Update prototype.
18951         (ira_allocate_and_set_costs): Change aclass argument type form
18952         'enum reg_class' to reg_class_t.
18953         * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
18954         Change aclass argument type to reg_class_t.
18955         (update_conflict_hard_reg_costs): Change type aclass and pref vars
18956         to reg_class_t.
18957         * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
18958         memory_move_cost call.
18959
18960         * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
18961         'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
18962         Change type tmp var to reg_class_t.
18963
18964 2011-04-30  Jan Hubicka  <jh@suse.cz>
18965
18966         * ipa-inline.c (can_inline_edge_p): Disregard limits when
18967         inlining into function with flatten attribute.
18968         (want_inline_small_function_p): Be more realistic about inlining
18969         cold calls where callee size grows.
18970
18971 2011-04-30  Jan Hubicka  <jh@suse.cz>
18972
18973         * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
18974         flags.
18975
18976 2011-04-30  Anatoly Sokolov  <aesok@post.ru>
18977
18978         * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
18979         PRINT_OPERAND_PUNCT_VALID_P): Remove.
18980         * config/sparc/sparc-protos.h (print_operand): Remove declaration.
18981         * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
18982         TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
18983         (print_operand): Rename to...
18984         (sparc_print_operand): ...this. Make static. Adjust
18985         sparc_print_operand function call.
18986         (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
18987         functions.
18988
18989 2011-04-30  Jan Hubicka  <jh@suse.cz>
18990
18991         PR middle-end/48752
18992         * ipa-inline.c (early_inliner): Disable when doing late
18993         addition of function.
18994
18995 2011-04-30  Jakub Jelinek  <jakub@redhat.com>
18996
18997         * dwarf2out.c (get_address_mode): New inline.
18998         (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
18999         if not dwarf_strict emit
19000         DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
19001         desirable.  Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
19002         UNSIGNED_FLOAT, FIX and UNSIGNED_FIX.  Just return NULL for
19003         FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
19004         (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
19005         dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
19006         mem_loc_descriptor callers.
19007         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
19008         output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
19009         Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
19010         DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
19011         (base_types): New variable.
19012         (get_base_type_offset, calc_base_type_die_sizes,
19013         base_type_for_mode, mark_base_types, base_type_cmp,
19014         move_marked_base_types): New functions.
19015         (calc_die_sizes): Assert that die_offset is 0 or equal to
19016         next_die_offset.
19017         (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
19018         others defer to mem_loc_descriptor.  Adjust mem_loc_descriptor
19019         callers.  If not dwarf_strict, call mem_loc_descriptor even for
19020         non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
19021         (gen_subprogram_die): Don't give up on call site parameters
19022         with non-integral or large integral modes.  Adjust
19023         mem_loc_descriptor callers.
19024         (prune_unused_types): Call prune_unused_types_mark on base_types
19025         vector entries.
19026         (resolve_addr): Call mark_base_types.
19027         (dwarf2out_finish): Call move_marked_base_types.
19028
19029         PR tree-optimization/48809
19030         * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
19031         type.
19032         (gen_inbound_check): Don't compute index_expr - range_min in utype
19033         again, instead reuse SSA_NAME initialized in build_arrays.
19034         Remove two useless gsi_for_stmt calls.
19035
19036 2011-04-29  Jeff Law  <law@redhat.com>
19037
19038         * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
19039
19040 2011-04-29  Martin Jambor  <mjambor@suse.cz>
19041
19042         * cgraph.h (cgraph_postorder): Remove declaration.
19043         * ipa-utils.h (ipa_free_postorder_info): Declare.
19044         (ipa_reverse_postorder): Likewise.
19045         * cgraphunit.c: Include ipa-utils.h.
19046         (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
19047         * ipa-inline.c: Include ipa-utils.h.
19048         (ipa_inline): Update call to ipa_reverse_postorder.
19049         * ipa-pure-const.c (propagate_pure_const): Update call to
19050         ipa_reduced_postorder and ipa_print_order.  Call
19051         ipa_free_postorder_info to clean up.
19052         (propagate_nothrow): Likewise.
19053         * ipa-reference.c (propagate): Removed a useless call to
19054         ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
19055         and ipa_print_order.  Call ipa_free_postorder_info to clean up.
19056         * ipa.c: Include ipa-utils.h.
19057         (ipa_profile): Update call to ipa_reverse_postorder.
19058         (cgraph_postorder): Moved to...
19059         * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
19060         (ipa_utils_print_order): Renamed to ipa_print_order.
19061         (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
19062         comments.
19063         (ipa_free_postorder_info): New function.
19064         * passes.c: Include ipa-utils.h.
19065         (do_per_function_toporder): Update call to ipa_reverse_postorder.
19066         (ipa_write_summaries): Likewise.
19067         * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
19068         (cgraphunit.o): Likewise.
19069         (ipa.o): Likewise.
19070         (ipa-inline.o): Likewise.
19071
19072 2011-04-29  Jan Hubicka  <jh@suse.cz>
19073
19074         * gcc.dg/tree-ssa/inline-10.c: New testcase.
19075         * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
19076         * ipa-inline.h (clause_t): Turn into unsigned int.
19077         * ipa-inline-analysis.c (add_clause): Do more simplification.
19078         (and_predicates): Shortcut more cases.
19079         (predicates_equal_p): Move forward; check that clauses are properly
19080         ordered.
19081         (or_predicates): Shortcut more cases.
19082         (edge_execution_predicate): Rewrite as...
19083         (set_cond_stmt_execution_predicate): ... this function; handle
19084         __builtin_constant_p.
19085         (set_switch_stmt_execution_predicate): New .
19086         (compute_bb_predicates): New.
19087         (will_be_nonconstant_predicate): Update TODO.
19088         (estimate_function_body_sizes): Use compute_bb_predicates
19089         and free them later, always try to estimate if stmt is constant.
19090         (estimate_time_after_inlining, estimate_size_after_inlining):
19091         Gracefully handle optimized out edges.
19092         (read_predicate): Fix off by one error.
19093
19094 2011-04-29  Nicola Pero  <nicola.pero@meta-innovation.com>
19095
19096         * Makefile.in (ENABLE_MAINTAINER_RULES): New.
19097
19098 2011-04-27  Xinliang David Li  <davidxl@google.com>
19099
19100         * tree-profile.c (init_ic_make_global_vars): Set
19101         tls attribute on ic vars.
19102         * coverage.c (coverage_end_function): Initialize
19103         function_list with zero.
19104
19105 2011-04-29  Richard Guenther  <rguenther@suse.de>
19106
19107         * builtins.c (fold_builtin_classify_type): Use integer_type_node
19108         for the type of the result.
19109         (fold_builtin_isascii): Likewise.
19110         (fold_builtin_toascii): Use integer_type_node where appropriate.
19111         (fold_builtin_logb): Likewise.
19112         (fold_builtin_frexp): Likewise.
19113         (fold_builtin_strstr): Likewise.
19114         (fold_builtin_strpbrk): Likewise.
19115         (fold_builtin_fputs): Likewise.
19116         (fold_builtin_sprintf): Likewise.
19117         (fold_builtin_snprintf): Likewise.
19118         (fold_builtin_printf): Likewise.
19119         (do_mpfr_remquo): Use a proper type for the assigned constant.
19120         (do_mpfr_lgamma_r): Likewise.
19121         * dwarf2out.c (resolve_one_addr): Use size_int.
19122         * except.c (init_eh): Likewise.
19123         (assign_filter_values): Use integer_type_node for filter values.
19124         (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
19125         indices.
19126         * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
19127         for EH region numbers.
19128         * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
19129         for the shift amount.
19130
19131 2011-04-29  Richard Guenther  <rguenther@suse.de>
19132
19133         * expr.h (expand_shift): Rename to ...
19134         (expand_variable_shift): ... this.
19135         (expand_shift): Take a constant shift amount.
19136         * expmed.c (expand_shift): Rename to ...
19137         (expand_variable_shift): ... this.
19138         (expand_shift): New wrapper around expand_variable_shift.
19139         * expr.c (convert_move, emit_group_load_1, emit_group_store,
19140         optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
19141         expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
19142         * expmed.c (store_fixed_bit_field, extract_bit_field_1,
19143         extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
19144         expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
19145         extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
19146         emit_store_flag_1, emit_store_flag): Likewise.
19147         * builtins.c (expand_builtin_signbit): Likewise.
19148         * calls.c (load_register_parameters): Likewise.
19149         * function.c (assign_parm_setup_block): Likewise.
19150         * lower-subreg.c (resolve_shift_zext): Likewise.
19151         * optabs.c (widen_bswap, expand_abs_nojump,
19152         expand_one_cmpl_abs_nojump, expand_float): Likewise.
19153         * spu/spu.c (spu_expand_extv): Likewise.
19154         * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
19155
19156 2011-04-29  Richard Guenther  <rguenther@suse.de>
19157
19158         * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
19159         for the remapped region number.
19160         * predict.c (build_predict_expr): Use integer_type_node for the
19161         predict kind.
19162         * fold-const.c (fold_binary_loc): Use integer_type_node for
19163         the shift amount.  Use a proper type for the PLUS_EXPR operand.
19164
19165 2011-04-29  Michael Matz  <matz@suse.de>
19166
19167         * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
19168         other trees that just builtins.
19169         (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
19170
19171 2011-04-29  Richard Guenther  <rguenther@suse.de>
19172
19173         * tree-nested.c (get_trampoline_type): Use size_int.
19174         (get_nl_goto_field): Likewise.
19175         * tree-eh.c (lower_try_finally_switch): Use integer_type_node
19176         for all indexes.
19177         (lower_eh_constructs_2): Likewise.
19178         (lower_resx): Likewise.
19179         (lower_eh_dispatch): Likewise.
19180         * tree-mudflap.c (mf_build_string): Use size_int.
19181         (mudflap_register_call): Use integer_type_node for the flag.
19182         (mudflap_enqueue_constant): Use size_int.
19183         * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
19184         instead of rebuilding it.
19185
19186 2011-04-29  Richard Guenther  <rguenther@suse.de>
19187
19188         * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
19189         Handle OBJ_TYPE_REF.
19190         (find_func_aliases_for_call): Use it more consistently.
19191
19192 2011-04-29  Alexandre Oliva  <aoliva@redhat.com>
19193
19194         * haifa-sched.c (last_nondebug_scheduled_insn): New.
19195         (rank_for_schedule): Use it.
19196         (schedule_block): Set it.
19197
19198 2011-04-28  David Li  <davidxl@google.com>
19199
19200         * tree.c (crc32_string): Use crc32_byte.
19201         (crc32_byte): New function.
19202         * tree.h (crc32_byte): New function.
19203         * gcov.c (read_graph_file): Handle new cfg_cksum.
19204         (read_count_file): Ditto.
19205         * profile.c (instrument_values): Ditto.
19206         (get_exec_counts): Ditto.
19207         (read_profile_edge_counts): Ditto.
19208         (compute_branch_probabilities): Ditto.
19209         (compute_value_histograms): Ditto.
19210         (branch_prob): Ditto.
19211         (end_branch_prob): Ditto.
19212         * coverage.c (read_counts_file): Ditto.
19213         (get_coverage_counts): Ditto.
19214         (tree_coverage_counter_addr): Ditto.
19215         (coverage_checksum_string): Ditto.
19216         (coverage_begin_output): Ditto.
19217         (coverage_end_function): Ditto.
19218         (build_fn_info_type): Ditto.
19219         (build_fn_info_value): Ditto.
19220         * libgcov.c (gcov_exit): Ditto.
19221         * gcov-dump.c (tag_function): Ditto.
19222         (compute_checksum): Remove.
19223
19224 2011-04-29  Alan Modra  <amodra@gmail.com>
19225
19226         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
19227         unspec plus offset.  Tidy macho code.
19228
19229 2011-04-29  Martin Jambor  <mjambor@suse.cz>
19230
19231         * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
19232         node instead of a decl.  Update all callers.
19233         * cgraph.h: Update declaration.
19234
19235 2011-04-28  Ira Rosen  <ira.rosen@linaro.org>
19236
19237         PR tree-optimization/48765
19238         * tree-vectorizer.h (vect_make_slp_decision): Return bool.
19239         * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
19240         to indicate if loop aware SLP is being used.  Scan the statements
19241         and update the vectorization factor according to the type of
19242         vectorization before statement analysis.
19243         (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
19244         pass it to vect_analyze_loop_operations.
19245         (vectorizable_reduction): Set number of copies to 1 in case of pure
19246         SLP statement.
19247         * tree-vect-stmts.c (vectorizable_conversion,
19248         vectorizable_assignment, vectorizable_shift,
19249         vectorizable_operation, vectorizable_type_demotion,
19250         vectorizable_type_promotion, vectorizable_store, vectorizable_load):
19251         Likewise.
19252         (vectorizable_condition): Move the check that it is not SLP
19253         vectorization before the number of copies check.
19254         * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
19255         to vectorize the loop using SLP.
19256
19257 2011-04-28  Jakub Jelinek  <jakub@redhat.com>
19258
19259         PR middle-end/48597
19260         * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
19261         inline asm.
19262
19263 2011-04-28  Joseph Myers  <joseph@codesourcery.com>
19264
19265         * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
19266         *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
19267         (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
19268         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
19269         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
19270         linux*.h headers.
19271         * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
19272         * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
19273         * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
19274         * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
19275         * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
19276         * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
19277         REG_NAME.
19278         * config/i386/linux.h (REG_NAME): Don't define.
19279         * config/i386/linux64.h (REG_NAME): Don't define.
19280         * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
19281         Undefine before defining.
19282
19283 2011-04-28  Jan Hubicka  <jh@suse.cz>
19284
19285         * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
19286         nonconstant_names array.
19287         (estimate_function_body_sizes): Build nonconstant_names array; handle
19288         BUILT_IN_CONSTANT_P.
19289
19290 2011-04-28  Richard Guenther  <rguenther@suse.de>
19291
19292         PR bootstrap/48804
19293         Revert
19294         2011-04-28  Richard Guenther  <rguenther@suse.de>
19295
19296         * tree-ssa-structalias.c (solve_constraints): Build succ graph
19297         as late as possible.
19298
19299 2011-04-28  Richard Guenther  <rguenther@suse.de>
19300
19301         * tree-ssa-structalias.c (dump_constraint): Don't end the line.
19302         (debug_constraint): Do it here.
19303         (dump_constraints): And here.
19304         (rewrite_constraints): And here.
19305         (dump_constraint_edge): Remove.
19306         (dump_constraint_graph): Rewrite to produce DOT output.
19307         (solve_constraints): Build succ graph as late as possible.
19308         Dump constraint graphs before and after solving.
19309
19310 2011-04-28  Richard Guenther  <rguenther@suse.de>
19311
19312         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
19313         New function split out from ...
19314         (find_func_aliases): ... here.  Call it.
19315         (find_func_aliases_for_call): Likewise.
19316
19317 2011-04-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
19318
19319         * internal-fn.h (internal_fn_name_array): Declare.
19320         (internal_fn_flags_array): Likewise.
19321
19322 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
19323
19324         * config/i386/i386.md (ssemodesuffix):  Merge with ssevecsize,
19325         ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
19326         Move from sse.md.
19327         (ssemodefsuffix): Remove.
19328         (ssevecmodesuffix): New mode attribute.
19329         (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
19330         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
19331         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
19332         *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
19333         *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
19334         *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
19335         *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
19336         ssemodesuffix mode attribute.
19337         (float splitters): Use ssevecmodesuffix mode attribute.
19338         * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
19339         (sseinsmode): Rename from avxvecmode.
19340         (avxsizesuffix): Rename from avxmodesuffix.
19341         (sseintvecmode): Rename from avxpermvecmode.
19342         (ssedoublevecmode): Rename from ssedoublesizemode.
19343         (ssehalfvecmode): Rename from avxhalfvecmode.
19344         (ssescalarmode): Rename from avxscalarmode.
19345         (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
19346         templates for ssemodesuffix mode attribute.
19347         (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
19348         mode attribute.
19349
19350         Adjust RTX patterns globally for renamed mode attributes.
19351
19352 2011-04-27  Jan Hubcika  <jh@suse.cz>
19353
19354         * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
19355         * ipa-inline-analysis.c: Include alloc-pool.h.
19356         (edge_predicate_pool): New.
19357         (trye_predicate_p): New function
19358         (false_predicate_p): New function.
19359         (add_clause): Sanity check that false clauses are "optimized";
19360         never add clauses to predicate that is already known to be false.
19361         (and_predicate): Use flase_predicate_p.
19362         (evaulate_predicate): Rename to ...
19363         (evaluate_predicate): ... this one; update all callers; assert
19364         that false is not listed among possible truths.
19365         (dump_predicate): Use true_predicate_p.
19366         (account_size_time): Use false_predicate_p.
19367         (evaulate_conditions_for_edge): Rename to ...
19368         (evaluate_conditions_for_edge) ... this one.
19369         (edge_set_predicate): New function.
19370         (inline_edge_duplication_hook): Duplicate edge predicates.
19371         (inline_edge_removal_hook): Free edge predicates.
19372         (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
19373         (dump_inline_summary): Update.
19374         (estimate_function_body_sizes): Set edge predicates.
19375         (estimate_calls_size_and_time): Handle predicates.
19376         (estimate_callee_size_and_time): Update.
19377         (remap_predicate): Add toplev_predicate; update comment.
19378         (remap_edge_predicates): New function.
19379         (inline_merge_summary): Compute toplev predicate; update.
19380         (read_predicate): New function.
19381         (read_inline_edge_summary): Use it.
19382         (inline_read_section): Likewise.
19383         (write_predicate): New function.
19384         (write_inline_edge_summary): Use it.
19385         (inline_write_summary): Likewise.
19386         (inline_free_summary): Free alloc pool and edge summary vec.
19387
19388 2011-04-27  Richard Guenther  <rguenther@suse.de>
19389
19390         * tree-ssa-structalias.c (changed_count): Remove.
19391         (changed): Use a bitmap.
19392         (unify_nodes): Adjust.
19393         (do_sd_constraint): Likewise.
19394         (do_ds_constraint): Likewise.
19395         (do_complex_constraint): Likewise.
19396         (solve_graph): Likewise.
19397
19398 2011-04-27  Jan Hubicka  <jh@suse.cz>
19399
19400         * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
19401
19402 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
19403
19404         * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
19405         (avx_vperm2f128_*_operand): Ditto.
19406         * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
19407         Use avx_vpermilp_parallel in insn condition.
19408         (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
19409         Use avx_vperm2f128_parallel in insn condition.
19410
19411 2011-04-27  Richard Guenther  <rguenther@suse.de>
19412
19413         * Makefile.in (tree-ssa-structalias.o): Remove
19414         gt-tree-ssa-structalias.h dependency.
19415         (GTFILES): Remove tree-ssa-structalias.c.
19416         * tree.c (allocate_decl_uid): New function.
19417         (make_node_stat): Use it.
19418         (copy_node_stat): Likewise.
19419         * tree.h (allocate_decl_uid): Declare.
19420         * tree-ssa-alias.h (delete_alias_heapvars): Remove.
19421         * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
19422         * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
19423         * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
19424         * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
19425         (struct heapvar_map): Likewise.
19426         (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
19427         heapvar_insert): Likewise.
19428         (make_heapvar_for): Rename to ...
19429         (make_heapvar): ... this.  Simplify.
19430         (fake_var_decl_obstack): New global var.
19431         (build_fake_var_decl): New function.
19432         (make_constraint_from_heapvar): Adjust.
19433         (handle_lhs_call): Likewise.
19434         (create_function_info_for): Likewise.
19435         (intra_create_variable_infos): Likewise.
19436         (init_alias_vars): Allocate fake_var_decl_obstack.
19437         (init_alias_heapvars, delete_alias_heapvars): Remove.
19438         (compute_points_to_sets): Do not call init_alias_heapvars.
19439         (ipa_pta_execute): Likewise.
19440         (delete_points_to_sets): Free fake_var_decl_obstack.
19441
19442 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
19443
19444         * config/spu/divmovti4.c (union qword_UTItype): New data type.
19445         (si_from_UTItype, si_to_UTItype): New functions.
19446         (__udivmodti4): Use them to implement type-punning.
19447         * config/spu/multi3.c (union qword_TItype): New data type.
19448         (si_from_TItype, si_to_TItype): New functions.
19449         (__multi3): Use them to implement type-punning.
19450
19451 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
19452
19453         * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
19454
19455 2011-04-27  Jan Hubicka  <jh@suse.cz>
19456
19457         * ipa-prop.c (function_insertion_hook_holder): New holder.
19458         (ipa_add_new_function): New function.
19459         (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
19460         Register/deregister holder.
19461
19462 2011-04-27  Richard Guenther  <rguenther@suse.de>
19463
19464         PR tree-optimization/48772
19465         * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
19466
19467 2011-04-27  Richard Guenther  <rguenther@suse.de>
19468
19469         * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
19470         TARGET_MEM_REF handling.
19471
19472 2011-04-27  Nick Clifton  <nickc@redhat.com>
19473
19474         * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
19475         ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
19476         (REG_CLASS_NAMES): Likewise.
19477         (REG_CLASS_CONTENTS): Likewise.
19478         (EVEN_ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
19479         (ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
19480         (FEVEN_REGS): New macro.  Alias for QUAD_ACC_REGS.
19481         (FPR_REGS): New macro.  Alias for QUAD_ACC_REGS.
19482         (EVEN_REGS): New macro.  Alias for QUAD_REGS.
19483         * config/frv/frv.c (frv_secondary_reload_class): Remove use of
19484         duplicate register classes.
19485         (frv_class_likely_spilled_p): Likewise.
19486         (frv_register_move_cost): Likewise.
19487
19488         * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
19489         end of the regno_reg_class array.
19490
19491 2011-04-27  Jakub Jelinek  <jakub@redhat.com>
19492
19493         PR c/48742
19494         * c-typeck.c (build_binary_op): Don't wrap arguments if
19495         int_operands is true.
19496
19497 2011-04-26  Kaz Kojima  <kkojima@gcc.gnu.org>
19498
19499         PR target/48767
19500         * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
19501         targetm.calls.must_pass_in_stack for void type.
19502
19503 2011-04-26  Jan Hubicka  <jh@suse.cz>
19504
19505         * cgraphbuild.c (build_cgraph_edges): Update call
19506         of cgraph_create_edge and cgraph_create_indirect_edge.
19507         * cgraph.c (cgraph_create_edge_including_clones,
19508         cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
19509         cgraph_update_edges_for_call_stmt_node): Do not take nest
19510         argument; do not initialize call_stmt_size/time.
19511         (dump_cgraph_node): Do not dump nest.
19512         (cgraph_clone_edge): Do not take loop_nest argument;
19513         do not propagate it; do not clone call_stmt_size/time.
19514         (cgraph_clone_node): Likewise.
19515         (cgraph_create_virtual_clone): Update.
19516         * cgraph.h (struct cgraph_edge): Remove
19517         call_stmt_size/call_stmt_time/loop_nest.
19518         (cgraph_create_edge, cgraph_create_indirect_edge,
19519         cgraph_create_edge_including_clones, cgraph_clone_node): Update
19520         prototype.
19521         * tree-emutls.c (gen_emutls_addr): Update.
19522         * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
19523         loop_nest; handle indirect calls, too.
19524         (clone_inlined_nodes): Do not care about updating inline summaries.
19525         * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
19526         * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
19527         stream call_stmt_size/call_stmt_time/loop_nest.
19528         * ipa-inline.c (edge_badness): Update.
19529         (ipa_inline): dump summaries after inlining.
19530         * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
19531         New.
19532         (inline_edge_summary): New function.
19533         * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
19534         (inline_edge_removal_hook): Handle edge summaries.
19535         (inline_edge_duplication_hook): New hook.
19536         (inline_summary_alloc): Alloc hooks.
19537         (initialize_growth_caches): Do not register removal hooks.
19538         (free_growth_caches); Do not free removal hook.
19539         (dump_inline_edge_summary): New function.
19540         (dump_inline_summary): Use it.
19541         (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
19542         (inline_update_callee_summaries): New function.
19543         (inline_merge_summary): Use it.
19544         (do_estimate_edge_time, do_estimate_edge_growth): Update.
19545         (read_inline_edge_summary): New function.
19546         (inline_read_section): Use it.
19547         (write_inline_edge_summary): New function.
19548         (inline_write_summary): Use it.
19549         (inline_free_summary): Free edge new holders.
19550         * tree-inline.c (copy_bb): Update.
19551
19552 2011-04-26  Jason Merrill  <jason@redhat.com>
19553
19554         * tree-eh.c (lower_try_finally_switch): Create the label along with
19555         the CASE_LABEL_EXPR.
19556
19557 2011-04-26  David S. Miller  <davem@davemloft.net>
19558             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19559
19560         * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
19561         * configure: Regenerate.
19562
19563 2011-04-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
19564
19565         PR target/48258
19566         * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
19567         reduction.
19568         (VEC_reduc): New code iterator and splitters for vector reduction.
19569         (VEC_reduc_name): Ditto.
19570         (VEC_reduc_rtx): Ditto.
19571         (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
19572         (reduc_<VEC_reduc_name>_v4sf): Ditto.
19573
19574         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
19575         support for extracting SF on VSX.
19576
19577         * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
19578         generating xscvspdp.
19579         (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
19580         (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
19581         double add, minimum, maximum vector reduction.
19582         (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
19583         (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
19584         optimize double vector reduction.
19585         (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
19586
19587 2011-04-26  Joseph Myers  <joseph@codesourcery.com>
19588
19589         * config/fr30/fr30.h (inhibit_libc): Don't define.
19590         * config/m32r/m32r-protos.h: Correct comment.
19591         * config/v850/v850.h (GHS_default_section_names,
19592         GHS_current_section_names): Use tree, not union tree_node *.
19593
19594 2011-04-26  Xinliang David Li  <davidxl@google.com>
19595
19596         * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
19597         * c-family/c-opts.c (c_common_handle_option): Set
19598         warn_maybe_uninitialized.
19599         * opts.c (common_handle_option): Ditto.
19600         * common.opt:  New option.
19601         * tree-ssa.c (warn_uninit): Add one more parameter.
19602         (warn_uninitialized_var): Pass warning code.
19603         * tree-flow.h: Interface change.
19604
19605 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19606
19607         * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
19608         (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
19609         (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
19610
19611 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19612
19613         * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
19614         * config/mips/mips.opt (mmips-tfile): Remove.
19615
19616         * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
19617         mips-tdump reference to ...
19618         (Specific, alpha*-dec-osf5.1): ... here.  Adapt for Tru64 UNIX.
19619         * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
19620         reference by Tru64 UNIX.
19621
19622 2011-04-26  Jakub Jelinek  <jakub@redhat.com>
19623
19624         PR debug/48768
19625         * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
19626         is error_mark_node, set value to NULL.
19627
19628         PR tree-optimization/48734
19629         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
19630         if return value from maybe_fold_*_comparsions isn't something
19631         the code is prepared to handle.
19632
19633 2011-04-26  Uros Bizjak  <ubizjak@gmail.com>
19634
19635         * config/i386/predicates.md (ext_QIreg_operand): Remove extra
19636         mode check.
19637         (ext_QIreg_nomode_operands): Remove.
19638         * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
19639         (*andsi_1): Ditto.
19640         (*andhi_1): Ditto.
19641
19642 2011-04-26  Andrew Stubbs  <ams@codesourcery.com>
19643
19644         * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
19645
19646 2011-04-26  Richard Guenther  <rguenther@suse.de>
19647
19648         * c-typeck.c (build_unary_op): Do not expand array-refs via
19649         pointer arithmetic.  Only adjust qualifiers for function types.
19650
19651 2011-04-26  Richard Guenther  <rguenther@suse.de>
19652
19653         PR middle-end/48694
19654         * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
19655         * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
19656         compare the operands with OEP_CONSTANT_ADDRESS_OF.  Treat trees
19657         with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
19658
19659 2011-04-25  Paolo Carlini  <paolo.carlini@oracle.com>
19660
19661         * doc/extend.texi: Document __underlying_type.
19662
19663 2011-04-25  Segher Boessenkool  <segher@kernel.crashing.org>
19664
19665         * config/rs6000/titan.md (automata_option "progress"): Remove.
19666
19667 2011-04-25  Jeff Law  <law@redhat.com>
19668
19669         * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
19670
19671 2011-04-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
19672
19673         * system.h (ENUM_BITFIELD): Remove.
19674
19675 2011-04-25  Maxim Kuvyrkov  <maxim@codesourcery.com>
19676             Eric Botcazou  <ebotcazou@adacore.com>
19677
19678         * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
19679         for STORE_FLAG_VALUE==-1 case.
19680
19681 2011-04-24  Richard Sandiford  <richard.sandiford@linaro.org>
19682
19683         PR target/43804
19684         * config/m68k/constraints.md (T): Allow PIC operands that satisfy
19685         LEGITIMATE_PIC_OPERAND_P.
19686
19687 2011-04-24  Jan Hubicka  <jh@suse.cz>
19688
19689         * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
19690         WPA hack.
19691         * ipa-prop.h (ipa_get_param, ipa_is_param_used,
19692         ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
19693         ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
19694         * ipa-inline-analysis.c (add_clause): Fix clause ordering.
19695         (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
19696         Sanity check predicate length.
19697         (remap_predicate): Likewise; sanity check jump functions.
19698         (inline_read_section, inline_write_summary): Sanity check
19699         predicate length.
19700
19701 2011-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
19702
19703         PR other/48748
19704         * doc/extend.texi (Type Traits): Document __is_standard_layout,
19705         __is_literal_type, and __is_trivial; update throughout about
19706         possibly cv-qualified void types.
19707
19708 2011-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
19709
19710         * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
19711         testsuite and make it version agnostic.
19712
19713 2011-04-22  Jan Hubicka  <jh@suse.cz>
19714
19715         * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
19716
19717 2011-04-23  Jakub Jelinek  <jakub@redhat.com>
19718
19719         PR c/48685
19720         * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
19721         to VOID_TYPE even around MODIFY_EXPR.
19722
19723 2011-04-22  Mike Stump  <mikestump@comcast.net>
19724
19725         * gensupport.c (read_md_rtx): Fix typo in comment.
19726         * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
19727         comment.
19728
19729 2011-04-22  Jan Hubicka  <jh@suse.cz>
19730
19731         * gengtype.c (open_base_files): Add ipa-inline.h include.
19732         * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
19733         ipa-prop.c; update all uses.
19734         * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
19735         * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
19736         merge summary of inlined function into former caller.
19737         * ipa-inline.c (max_benefit): Remove.
19738         (edge_badness): Compensate for removal of benefits.
19739         (update_caller_keys): Use
19740         reset_node_growth_cache/reset_edge_growth_cache.
19741         (update_callee_keys): Likewise.
19742         (update_all_callee_keys): Likewise.
19743         (inline_small_functions): Do not collect max_benefit; do not reset
19744         estimated_growth; call free_growth_caches and initialize_growth_caches.
19745         * ipa-inline.h (struct condition, type clause_t, struct predicate,
19746         struct size_time_entry): New structures.
19747         (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
19748         (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
19749         and estimated_growth.
19750         (edge_growth_cache_entry): New structure.
19751         (node_growth_cache, edge_growth_cache): New global vars.
19752         (estimate_growth): Turn into inline.
19753         (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
19754         initialize_growth_caches, free_growth_caches): Declare.
19755         (estimate_edge_growth): Rewrite.
19756         (estimate_edge_time): Implement as inline cache lookup.
19757         (reset_node_growth_cache, reset_edge_growth_cache): New inline
19758         functions.
19759         (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
19760         (NUM_CONDITIONS): New constant.
19761         (predicate_conditions): New enum.
19762         (IS_NOT_CONSTANT): New constant.
19763         (edge_removal_hook_holder): New var.
19764         (node_growth_cache, edge_growth_cache): New global vars.
19765         (true_predicate, single_cond_predicate, false_predicate,
19766         not_inlined_predicate, add_condition, add_clause, and_predicates,
19767         or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
19768         dump_clause, dump_predicate, account_size_time,
19769         evaulate_conditions_for_edge): New functions.
19770         (inline_summary_alloc): Move to heap.
19771         (inline_node_removal_hook): Clear condition and entry vectors.
19772         (inline_edge_removal_hook): New function.
19773         (initialize_growth_caches, free_growth_caches): New function.
19774         (dump_inline_summary): Update.
19775         (edge_execution_predicate): New function.
19776         (will_be_nonconstant_predicate): New function.
19777         (estimate_function_body_sizes): Compute BB and constantness predicates.
19778         (compute_inline_parameters): Do not clear estimated_growth.
19779         (estimate_edge_size_and_time): New function.
19780         (estimate_calls_size_and_time): New function.
19781         (estimate_callee_size_and_time): New function.
19782         (remap_predicate): New function.
19783         (inline_merge_summary): New function.
19784         (do_estimate_edge_time): New function based on...
19785         (estimate_edge_time): ... this one.
19786         (do_estimate_edge_growth): New function.
19787         (do_estimate_growth): New function based on....
19788         (estimate_growth): ... this one.
19789         (inline_analyze_function): Analyze after deciding on jump functions.
19790         (inline_read_section): New function.
19791         (inline_read_summary): Use it.
19792         (inline_write_summary): Write all the new data.
19793         * ipa-prop.c (ipa_get_param_decl_index): Export.
19794         (ipa_lattice_from_jfunc): Move here from ipa-cp.c
19795         * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
19796         Declare.
19797         (ipa_get_lattice): Move here from ipa-cp.c
19798         * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
19799         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
19800         * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
19801         cgraph_edge_inlinable_p): Remove.
19802         * cgraphunit.c: Include ipainline.h
19803         (cgraph_process_new_functions): Update call of
19804         compute_inline_parameters.
19805
19806 2011-04-22  Richard Guenther  <rguenther@suse.de>
19807
19808         * tree.c (build_int_cst): Properly create canonicalized integer
19809         constants.
19810         (build_int_cst_type): Remove scary comments.
19811
19812 2011-04-22  Xinliang David Li  <davidxl@google.com>
19813
19814         * toplev.c (process_options): Enable -Werror=coverage-mismatch
19815         by default when -Wno-error is not specified.
19816         * opts-global.c (decode_options): Remove call to
19817         control_warning_options.
19818
19819 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
19820
19821         PR tree-optimization/48717
19822         * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
19823         ~A + A optimizations use build_int_cst_type instead of build_int_cst.
19824
19825 2011-04-22  Joseph Myers  <joseph@codesourcery.com>
19826
19827         * config/bfin/bfin-protos.h (Mmode): Don't define.  Expand
19828         definition where used.
19829
19830 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
19831
19832         PR c/48716
19833         * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
19834         TREE_STATIC variables declared inside of some OpenMP construct.
19835
19836 2011-04-22  Martin Jambor  <mjambor@suse.cz>
19837
19838         PR middle-end/48585
19839         * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
19840
19841 2011-04-22  Alexander Monakov  <amonakov@ispras.ru>
19842
19843         PR c/36750
19844         * c-typeck.c (pop_init_level): Do not warn about initializing
19845         with ` = {0}'.
19846
19847 2011-04-22  Alan Modra  <amodra@gmail.com>
19848
19849         * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
19850         when returning call_cookie.
19851         (rs6000_function_ok_for_sibcall): Allow sibcalls via function
19852         pointers, to functions with no more vector args than the current
19853         function, and some non-local calls for ABI_V4.
19854         * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
19855         sibcall_nonlocal_aix64): Combine to ..
19856         (sibcall_nonlocal_aix<mode>): ..this.  Handle function pointer calls.
19857         (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
19858         (sibcall_value_nonlocal_aix<mode>): ..likewise.
19859         (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
19860         (sibcall_value_nonlocal_sysv<mode>): Likewise.  Correct call cookie
19861         operand.
19862         * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
19863         sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
19864         sibcall_value_symbolic_64): Delete.
19865
19866 2011-04-21  Xinliang David Li  <davidxl@google.com>
19867
19868         * cgraph.h: Remove pid.
19869         * cgraph.c: Remove pid.
19870         * value-prof.c (init_node_map): New function.
19871         (del_node_map): New function.
19872         (find_func_by_funcdef_no): New function.
19873         (gimple_ic_transform): Call new function.
19874         * cgraphunit.c (cgraph_finalize_function): Remove pid.
19875         * function.c (get_last_funcdef_no): New function.
19876         * function.h (get_last_funcdef_no): New function.
19877         * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
19878         to libgcov function.
19879         (tree-profiling): Call node map init and delete function.
19880
19881 2011-04-21  Ian Lance Taylor  <iant@google.com>
19882
19883         * godump.c (go_format_type): Use exported Go name for anonymous
19884         field name.
19885
19886 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
19887
19888         * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
19889         Call builtin_function_type_list instead of builtin_function_type.
19890         (UNARY, BINARY, TRINARY, QUAD): Likewise.
19891
19892 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
19893
19894         * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
19895         build_function_type_list instead of build_function_type.
19896         Delete variable `endlink'.
19897
19898 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
19899
19900         * config/s390/s390.c (s390_init_builtins): Call
19901         build_function_type_list instead of build_function_type.
19902
19903 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
19904
19905         * config/ia64/ia64.c (ia64_init_builtins): Call
19906         build_function_type_list instead of builtin_function_type.
19907
19908 2011-04-21  Easwaran Raman  <eraman@google.com>
19909
19910         * cfgexpand.c (stack_var): Remove OFFSET...
19911         (add_stack_var): ...and its reference here...
19912         (expand_stack_vars): ...and here.
19913         (stack_var_cmp): Sort by descending order of size.
19914         (partition_stack_vars): Change heuristic.
19915         (union_stack_vars): Fix to reflect changes in partition_stack_vars.
19916         (dump_stack_var_partition): Add newline after each partition.
19917
19918 2011-04-21  Dimitrios Apostolou  <jimis@gmx.net>
19919             Jeff Law  <law@redhat.com>
19920
19921         * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
19922         * gengtype.c (matching_file_name_substitute): Likewise.
19923
19924 2011-04-21  Richard Guenther  <rguenther@suse.de>
19925
19926         PR lto/48703
19927         * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
19928
19929 2011-04-21  Eric Botcazou  <ebotcazou@adacore.com>
19930
19931         * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
19932
19933 2011-04-21  Richard Guenther  <rguenther@suse.de>
19934
19935         * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
19936         file name.
19937
19938 2011-04-21  Richard Guenther  <rguenther@suse.de>
19939
19940         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
19941         MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
19942         Use DECL_P, not SSA_VAR_P.
19943         (ptr_derefs_may_alias_p): Likewise.
19944         (ptr_deref_may_alias_ref_p_1): Likewise.
19945         (decl_refs_may_alias_p): Likewise.
19946         (refs_may_alias_p_1): Likewise.
19947         (ref_maybe_used_by_call_p_1): Likewise.
19948         (call_may_clobber_ref_p_1): Likewise.
19949         (indirect_ref_may_alias_decl_p): Assume indirect refrences
19950         are either MEM_REF or TARGET_MEM_REF.
19951         (indirect_refs_may_alias_p): Likewise.
19952         * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
19953         for MEM_EXPR of indirect calls.
19954
19955 2011-04-21  Tristan Gingold  <gingold@adacore.com>
19956
19957         * vmsdbgout.c (write_srccorr): Compute file length from the string.
19958         (dst_file_info_struct): Remove flen field.
19959         (lookup_filename): Remove code that set flen field.
19960
19961 2011-04-21  Tristan Gingold  <gingold@adacore.com>
19962
19963         * config/ia64/ia64.c (ia64_start_function): Add a guard.
19964
19965 2011-04-21  Uros Bizjak  <ubizjak@gmail.com>
19966
19967         PR target/48708
19968         * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
19969         vec_extract and vec_concat for non-SSE4_1 targets.
19970
19971 2011-04-21  Richard Guenther  <rguenther@suse.de>
19972
19973         * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
19974         return statements.
19975
19976 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
19977
19978         * config/i386/cygming.h (union tree_node, TREE): Don't define or
19979         undefine.
19980         (FILE): Don't undefine.
19981
19982 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
19983
19984         * config/alpha/alpha.c (struct machine_function): Use rtx, not
19985         struct rtx_def *.
19986         * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
19987         struct rtx_def *.
19988         * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
19989         * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
19990         * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
19991         rtx_def *.
19992         * config/m32c/m32c-protos.h (MM, UINT): Don't define.  Expand
19993         definitions where used.
19994         * config/microblaze/microblaze.h (struct microblaze_args): Use
19995         rtx, not struct rtx_def *.
19996         * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
19997         rtx_def *.
19998         * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
19999         * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
20000         * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
20001         not struct rtx_def *.
20002         * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
20003         struct rtx_def *.
20004         * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
20005         rtx_def *.
20006         * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
20007
20008 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
20009
20010         * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
20011         operand_equal_p to compare DR_BASE_ADDRESSes.
20012         (vect_check_interleaving): Likewise.
20013
20014 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
20015
20016         PR target/46329
20017         * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
20018         for all Neon struct constants.
20019
20020 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
20021
20022         * target.def (legitimate_constant_p): New hook.
20023         * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
20024         (TARGET_LEGITIMATE_CONSTANT_P): ...this.
20025         * doc/tm.texi: Regenerate.
20026         * hooks.h (hook_bool_mode_rtx_true): Declare.
20027         * hooks.c (hook_bool_mode_rtx_true): Define.
20028         * system.h (LEGITIMATE_CONSTANT_P): Poison.
20029         * calls.c (precompute_register_parameters): Replace uses of
20030         LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
20031         (emit_library_call_value_1): Likewise.
20032         * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
20033         (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
20034         * ira-costs.c (scan_one_insn): Likewise.
20035         * recog.c (general_operand, immediate_operand): Likewise.
20036         * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
20037         * reload1.c (init_eliminable_invariants): Likewise.
20038
20039         * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
20040         mode argument.
20041         * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
20042         * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
20043         argument.
20044         (TARGET_LEGITIMATE_CONSTANT_P): Define.
20045         * config/alpha/predicates.md (input_operand): Update call to
20046         alpha_legitimate_constant_p.
20047
20048         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
20049         * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
20050         (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
20051         * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
20052         (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
20053         (arm_legitimate_constant_p): New functions.
20054         (arm_cannot_force_const_mem): Make static.
20055
20056         * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
20057
20058         * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
20059         * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
20060         * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
20061         instead of bfin_legitimate_constant_p.
20062         (bfin_legitimate_constant_p): Make static.  Add a mode argument.
20063         (TARGET_LEGITIMATE_CONSTANT_P): Define.
20064
20065         * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
20066
20067         * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
20068
20069         * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
20070         * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
20071         * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
20072         (frv_legitimate_constant_p): Make static.  Add a mode argument.
20073
20074         * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
20075         * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
20076         * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
20077
20078         * config/i386/i386-protos.h (legitimate_constant_p): Delete.
20079         * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
20080         * config/i386/i386.c (legitimate_constant_p): Rename to...
20081         (ix86_legitimate_constant_p): ...this.  Make static.  Add a mode
20082         argument.
20083         (ix86_cannot_force_const_mem): Update accordingly.
20084         (ix86_legitimate_address_p): Likewise.
20085         (TARGET_LEGITIMATE_CONSTANT_P): Define.
20086         * config/i386/i386.md: Update commentary.
20087
20088         * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
20089         * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
20090         * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
20091         (ia64_legitimate_constant_p): Make static.  Add a mode argument.
20092
20093         * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
20094
20095         * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
20096         * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
20097         * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
20098         (lm32_legitimate_constant_p): Make static.  Add a mode argument.
20099
20100         * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
20101         * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
20102         * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
20103
20104         * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
20105         * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
20106         (m32r_legitimate_constant_p): New function.
20107
20108         * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
20109         * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
20110         LEGITIMATE_CONSTANT_P.
20111         (LEGITIMATE_CONSTANT_P): Delete.
20112         * config/m68k/m68k.c (m68k_expand_prologue): Call
20113         m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
20114         (m68k_legitimate_constant_p): New function.
20115         * config/m68k/m68k.md: Update comments.
20116
20117         * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
20118         * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
20119         (mcore_legitimate_constant_p): New function.
20120
20121         * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
20122         * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
20123         * config/mep/mep.c (mep_legitimate_constant_p): Make static.
20124         Add a mode argument.
20125         (mep_legitimate_address): Update accordingly.
20126         (TARGET_LEGITIMATE_CONSTANT_P): Define.
20127
20128         * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
20129         Delete.
20130         * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
20131         * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
20132         static.  Check OP's mode for VOIDmode.
20133         (microblaze_legitimate_constant_p): New function.
20134         (TARGET_LEGITIMATE_CONSTANT_P): Define.
20135
20136         * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
20137         * config/mips/mips.c (mips_legitimate_constant_p): New function.
20138         (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
20139         (TARGET_LEGITIMATE_CONSTANT_P): Define.
20140         * config/mips/predicates.md: Update comments.
20141
20142         * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
20143         * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
20144         * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
20145         (mmix_legitimate_constant_p): Make static, return a bool, and take
20146         a mode argument.
20147         (mmix_print_operand_address): Update accordingly.
20148
20149         * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
20150         Delete.
20151         * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
20152         * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
20153         static.  Add a mode argument.
20154         (TARGET_LEGITIMATE_CONSTANT_P): Define.
20155
20156         * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
20157
20158         * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
20159         * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
20160         (pa_legitimate_constant_p): New function.
20161
20162         * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
20163
20164         * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
20165         * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
20166         (pdp11_legitimate_constant_p): New function.
20167
20168         * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
20169         * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
20170         (rs6000_legitimate_constant_p): New function.
20171
20172         * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
20173         (rx_legitimate_constant_p): ...this.
20174         * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
20175         * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
20176         (rx_legitimate_constant_p): ...this.
20177         (TARGET_LEGITIMATE_CONSTANT_P): Define.
20178         * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
20179
20180         * config/s390/s390-protos.h (legitimate_constant_p): Delete.
20181         * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
20182         * config/s390/s390.c (legitimate_constant_p): Rename to...
20183         (s390_legitimate_constant_p): ...this.  Make static, return a bool,
20184         and add a mode argument.
20185         (TARGET_LEGITIMATE_CONSTANT_P): Define.
20186
20187         * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
20188
20189         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
20190         * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
20191         (sh_legitimate_constant_p): New function.
20192
20193         * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
20194         * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
20195         * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
20196         (legitimate_constant_p): Rename to...
20197         (sparc_legitimate_constant_p): ...this.  Make static.  Add a mode
20198         argument.
20199         (constant_address_p): Update accordingly.
20200
20201         * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
20202         argument and return a bool.
20203         * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
20204         * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
20205         (spu_legitimate_constant_p): Add a mode argument and return a bool.
20206         (spu_rtx_costs): Update accordingly.
20207         * config/spu/predicates.md (vec_imm_operand): Likewise.
20208
20209         * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
20210
20211         * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
20212         * config/v850/v850.c (v850_legitimate_constant_p): New function.
20213         (TARGET_LEGITIMATE_CONSTANT_P): Define.
20214
20215         * config/vax/vax-protos.h (legitimate_constant_p): Delete.
20216         * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
20217         * config/vax/vax.c (legitimate_constant_p): Likewise.
20218
20219         * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
20220         * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
20221         (xtensa_legitimate_constant_p): New function.
20222
20223 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
20224
20225         * target.def (cannot_force_const_mem): Add a mode argument.
20226         * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
20227         * doc/tm.texi: Regenerate.
20228         * hooks.h (hook_bool_mode_rtx_false): Declare.
20229         * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
20230         (hook_bool_mode_const_rtx_true): Likewise.
20231         (hook_bool_mode_rtx_false): New function.
20232         * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
20233         to be non-VOID.  Update call to cannot_force_const_mem.
20234         (find_reloads): Update accordingly.
20235         * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
20236         * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
20237         argument.
20238         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
20239         * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
20240         * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
20241         * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
20242         * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
20243         * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
20244         * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
20245         * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
20246         (m68k_cannot_force_const_mem): ...this new function.
20247         * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
20248         argument.
20249         (mips_const_insns, mips_legitimize_const_move): Update calls.
20250         (mips_secondary_reload_class): Likewise.
20251         * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
20252         (pa_cannot_force_const_mem): ...this new function.
20253         * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
20254         (rs6000_cannot_force_const_mem): ...this new function.
20255         * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
20256         argument.
20257         * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
20258         * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
20259         to...
20260         (xtensa_cannot_force_const_mem): ...this new function.
20261
20262 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
20263
20264         * config/mips/mips.c (mips16_build_function_stub): Call
20265         build_function_type_list instead of build_function_type.
20266         (mips16_build_call_stub): Likewise.
20267
20268 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
20269
20270         * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
20271         instead of build_function_type.
20272
20273 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
20274
20275         * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
20276         instead of build_function_type.
20277
20278 2011-04-20  Uros Bizjak  <ubizjak@gmail.com>
20279
20280         PR target/48678
20281         * config/i386/i386.md (insv): Change operand 0 constraint to
20282         "register_operand".  Change operand 1 and 2 constraint to
20283         "const_int_operand".  Expand to pinsr{b,w,d,q} * when appropriate.
20284         * config/i386/sse.md (sse4_1_pinsrb): Export.
20285         (sse2_pinsrw): Ditto.
20286         (sse4_1_pinsrd): Ditto.
20287         (sse4_1_pinsrq): Ditto.
20288         * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
20289         * config/i386/i386.c (ix86_expand_pinsr): New.
20290
20291 2011-04-20  Easwaran Raman  <eraman@google.com>
20292
20293         * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
20294         containing union type only with -fstrict-aliasing.
20295
20296 2011-04-20  Jim Meyering  <meyering@redhat.com>
20297
20298         Remove useless if-before-free tests.
20299         * calls.c (expand_call, save_area): Likewise.
20300         * cfgcleanup.c (try_forward_edges): Likewise.
20301         * collect2.c (collect_execute): Likewise.
20302         * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
20303         * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
20304         * coverage.c (coverage_checksum_string): Likewise.
20305         * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
20306         * cselib.c (cselib_init): Likewise.
20307         * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
20308         (df_set_clean_cfg): Likewise.
20309         * function.c (free_after_compilation): Likewise.
20310         * gcc.c (do_spec_1, main): Likewise.
20311         * gcov.c (create_file_names): Likewise.
20312         * gensupport.c (identify_predicable_attribute): Likewise.
20313         * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
20314         * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
20315         * haifa-sched.c (haifa_finish_h_i_d): Likewise.
20316         * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
20317         * ipa-pure-const.c (local_pure_const): Likewise.
20318         * ipa-reference.c (propagate): Likewise.
20319         * ira-costs.c (free_ira_costs): Likewise.
20320         * ira.c (free_register_move_costs, build_insn_chain): Likewise.
20321         * matrix-reorg.c (mat_free): Likewise.
20322         * prefix.c (get_key_value): Likewise.
20323         * profile.c (compute_value_histograms): Likewise.
20324         * reload1.c (free_reg_equiv): Likewise.
20325         * sched-deps.c (free_deps): Likewise.
20326         * sel-sched-ir.c (fence_clear): Likewise.
20327         * sese.c (set_rename, if_region_set_false_region): Likewise.
20328         * tree-data-ref.c (free_rdg): Likewise.
20329         * tree-eh.c (lower_try_finally): Likewise.
20330         * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
20331         * tree-ssa-live.c (delete_var_map): Likewise.
20332         * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
20333         * tree-ssa-pre.c (phi_trans_add): Likewise.
20334
20335 2011-04-20  Jakub Jelinek  <jakub@redhat.com>
20336
20337         PR tree-optimization/48611
20338         * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
20339         beyond ERT_MUST_NOT_THROW region.
20340
20341 2011-04-20  Catherine Moore  <clm@codesourcery.com>
20342
20343         * config/mips/mips.opt (mfix-24k): New.
20344         * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
20345         * config/mips/mips.md (length): Increase by 4 for stores if
20346         fixing 24K errata.
20347         * config/mips/mips.c (mips_reorg_process_insns): Do not allow
20348         all noreorder if fixing 24K errata.
20349         * doc/invoke.texi: Document mfix-24k.
20350
20351 2011-04-20  Chung-Lin Tang  <cltang@codesourcery.com>
20352
20353         * config/arm/arm.c (arm_legitimize_reload_address): For NEON
20354         quad-word modes, reduce to 9-bit index range when above 1016 limit.
20355
20356 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
20357
20358         * config/arm/arm.c (arm_gen_constant): Move movw support ....
20359         (const_ok_for_op): ... to here.
20360
20361 2011-04-20  Kai Tietz  <ktietz@redhat.com>
20362
20363         * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
20364         and (X && !Y) | (!X && Y) optimization to (X ^ Y).
20365
20366 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
20367
20368         * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
20369
20370 2011-04-20  Richard Guenther  <rguenther@suse.de>
20371
20372         PR tree-optimization/47892
20373         * tree-if-conv.c (if_convertible_stmt_p): Const builtins
20374         are if-convertible.
20375
20376 2011-04-20  Eric Botcazou  <ebotcazou@adacore.com>
20377
20378         * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
20379
20380 2011-04-20  Tristan Gingold  <gingold@adacore.com>
20381
20382         * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
20383
20384 2011-04-20  Georg-Johann Lay  <avr@gjlay.de>
20385
20386         PR target/18145
20387
20388         * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
20389         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
20390         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
20391         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
20392         (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
20393
20394         * config/avr/avr-protos.h (avr_asm_output_aligned_common):
20395         New prototype.
20396
20397         * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
20398         (avr_asm_named_section, avr_asm_output_aligned_common,
20399         avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
20400         New functions to update...
20401         (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
20402         (avr_asm_init_sections): Overwrite section callbacks for
20403         data_section, bss_section.
20404         (avr_file_start): Move output of __do_copy_data, __do_clear_bss
20405         from here to...
20406         (avr_file_end): ...here.
20407
20408 2011-04-20  Richard Guenther  <rguenther@suse.de>
20409
20410         PR middle-end/48695
20411         * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
20412         objects and types here.  Adjust for their offset before comparing.
20413
20414 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
20415
20416         * tree-vect-stmts.c (vectorizable_store): Only chain one related
20417         statement per copy.
20418
20419 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
20420
20421         * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
20422         (GIMPLE_H): Include $(INTERNAL_FN_H).
20423         (OBJS-common): Add internal-fn.o.
20424         (internal-fn.o): New rule.
20425         * internal-fn.def: New file.
20426         * internal-fn.h: Likewise.
20427         * internal-fn.c: Likewise.
20428         * gimple.h: Include internal-fn.h.
20429         (GF_CALL_INTERNAL): New gf_mask.
20430         (gimple_statement_call): Put fntype into a union with a new
20431         internal_fn field.
20432         (gimple_build_call_internal): Declare.
20433         (gimple_build_call_internal_vec): Likewise.
20434         (gimple_call_same_target_p): Likewise.
20435         (gimple_call_internal_p): New function.
20436         (gimple_call_internal_fn): Likewise.
20437         (gimple_call_fntype): Return null for internal calls.
20438         (gimple_call_set_fntype): Assert that the function is not internal.
20439         (gimple_call_set_fn): Likewise.
20440         (gimple_call_set_fndecl): Likewise.
20441         (gimple_call_set_internal_fn): New function.
20442         (gimple_call_addr_fndecl): Handle null functions.
20443         (gimple_call_return_type): Likewise null types.
20444         * gimple.c (gimple_build_call_internal_1): New function.
20445         (gimple_build_call_internal): Likewise.
20446         (gimple_build_call_internal_vec): Likewise.
20447         (gimple_call_same_target_p): Likewise.
20448         (gimple_call_flags): Handle calls to internal functions.
20449         (gimple_call_fnspec): New function.
20450         (gimple_call_arg_flags, gimple_call_return_flags): Use it.
20451         (gimple_has_side_effects): Handle null functions.
20452         (gimple_rhs_has_side_effects): Likewise.
20453         (gimple_call_copy_skip_args): Handle calls to internal functions.
20454         * cfgexpand.c (expand_call_stmt): Likewise.
20455         * expr.c (expand_expr_real_1): Assert that the call isn't internal.
20456         * gimple-fold.c (gimple_fold_call): Handle null functions.
20457         (gimple_fold_stmt_to_constant_1): Don't fold
20458         calls to internal functions.
20459         * gimple-low.c (gimple_check_call_args): Handle calls to internal
20460         functions.
20461         * gimple-pretty-print.c (dump_gimple_call): Likewise.
20462         * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
20463         * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
20464         (do_warn_unused_result): Likewise.
20465         * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
20466         * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
20467         * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
20468         the target of a call.
20469         (initialize_hash_element): Update accordingly.
20470         (hashable_expr_equal_p): Use gimple_call_same_target_p.
20471         (iterative_hash_hashable_expr): Handle calls to internal functions.
20472         (print_expr_hash_elt): Likewise.
20473         * tree-ssa-pre.c (can_value_number_call): Likewise.
20474         (eliminate): Handle null functions.
20475         * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
20476         * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
20477         (find_func_aliases): Likewise.
20478         * value-prof.c (gimple_ic_transform): Likewise.
20479         (gimple_indirect_call_to_profile): Likewise.
20480         * lto-streamer-in.c (input_gimple_stmt): Likewise.
20481         * lto-streamer-out.c (output_gimple_stmt): Likewise.
20482
20483 2011-04-19  Jan Hubicka  <jh@suse.cz>
20484
20485         * ipa-inline-transform.c (save_inline_function_body): Add comments.
20486         * ipa-inline.c (inline_small_functions): Compute summaries first,
20487         populate heap later.
20488
20489 2011-04-19  Jan Hubicka  <jh@suse.cz>
20490
20491         * cgraph.h (save_inline_function_body): Remove.
20492         * ipa-inline-transform.c: New file, broke out of...
20493         * ipa-inline.c: ... this one; Update toplevel comment.
20494         (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
20495         make global.
20496         (update_noncloned_frequencies): Move to ipa-inline-transform.c
20497         (cgraph_mark_inline_edge): Rename to inline_call; move to
20498         ipa-inline-transform.c.
20499         (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
20500         move to ipa-inline-transform.c
20501         (recursive_inlining, inline_small_functions, flatten_function,
20502         ipa_inline, inline_always_inline_functions,
20503         early_inline_small_functions): Update.
20504         (inline_transform): Move to ipa-inline-transform.c.
20505         * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
20506         Declare.
20507         * Makefile.in (ipa-inline-transform.o): New file.
20508         * cgraphunit.c (save_inline_function_body): Move to
20509         ipa-inline-transform.c
20510
20511 2011-04-19  DJ Delorie  <dj@redhat.com>
20512
20513         * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
20514         registers if we already know there aren't any.
20515         (m32c_emit_epilogue): Don't emit a barrier here.
20516         (m32c_emit_eh_epilogue): Likewise.
20517         * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
20518         operands at expand time.
20519         * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
20520         int" wchar type.
20521         (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
20522         duplicates.  Provide aliases instead.
20523         * config/m32c/prologue.md (eh_return): Emit a barrier here.
20524         (eh_epilogue): Add a "(return)" here as a hint to other parts of
20525         the compiler.
20526
20527 2011-04-19  Anatoly Sokolov  <aesok@post.ru>
20528
20529         * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
20530         * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
20531         (general_or_i64_p, sparc_register_move_cost): New function.
20532
20533 2011-04-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20534
20535         * doc/install.texi (Configuration, --enable-threads): Remove mach.
20536         Add lynx, mipssde.  Sort table.
20537
20538 2011-04-19  Xinliang David Li  <davidxl@google.com>
20539
20540         * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
20541         not negative.
20542
20543 2011-04-19  Jakub Jelinek  <jakub@redhat.com>
20544
20545         PR target/48678
20546         * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
20547         is a SUBREG with non-MODE_INT mode inside of it.
20548
20549 2011-04-19  Martin Jambor  <mjambor@suse.cz>
20550
20551         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
20552         also according to actual contants.
20553         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
20554         (gimple_fold_call): Use it.
20555         * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
20556
20557 2011-04-19  Martin Jambor  <mjambor@suse.cz>
20558
20559         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
20560         non-pointer assignments.
20561
20562 2011-04-19  Martin Jambor  <mjambor@suse.cz>
20563
20564         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
20565         account anc_offset and otr_type from the indirect edge info.
20566         * ipa-prop.c (get_ancestor_addr_info): New function.
20567         (compute_complex_ancestor_jump_func): Assignment analysis moved to
20568         get_ancestor_addr_info, call it.
20569         (ipa_note_param_call): Do not initialize information about polymorphic
20570         calls, return the indirect call graph edge.  Remove the last
20571         parameter, adjust all callers.
20572         (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
20573         parameters.  Initialize polymorphic information in the indirect edge.
20574
20575 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
20576
20577         PR lto/48148
20578         * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
20579         the types if they have different enumeration identifiers.
20580
20581 2011-04-19  Jan Hubicka  <jh@suse.cz>
20582
20583         * cgraph.h (cgraph_optimize_for_size_p): Declare.
20584         * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
20585         * predict.c (cgraph_optimize_for_size_p): Break out from ...
20586         (optimize_function_for_size_p) ... here.
20587
20588 2011-04-19  Richard Guenther  <rguenther@suse.de>
20589
20590         PR lto/48207
20591         * tree.c (free_lang_data): Do not reset the decl-assembler-name
20592         langhook.
20593
20594 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
20595
20596         * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
20597         if DECL_NO_INLINE_WARNING_P is set on the function.
20598
20599 2011-04-19  Bernd Schmidt  <bernds@codesourcery.com>
20600
20601         PR fortran/47976
20602         * reload1.c (inc_for_reload): Return void. All callers changed.
20603         (emit_input_reload_insns): Don't try to delete previous output
20604         reloads to a register, or record spill_reg_store for autoincs.
20605
20606 2011-04-19  Basile Starynkevitch  <basile@starynkevitch.net>
20607
20608         * gengtype.h: Updated copyright year.
20609         (struct input_file_st): Add inpisplugin field.
20610         (type_fileloc): New function.
20611         * gengtype.c
20612         (write_typed_struct_alloc_def): Add gcc_assert.
20613         (write_typed_alloc_defns): Ditto. Don't output for plugin files.
20614         (write_typed_alloc_defns): Don't output for plugin files.
20615         (input_file_by_name): Clear inpisplugin field.
20616         (main): Set inpisplugin field for plugin files.
20617
20618 2011-04-19  Nicola Pero  <nicola.pero@meta-innovation.com>
20619
20620         * gengtype-state.c (string_eq): New.
20621         (read_state): Use string_eq instead of strcmp when creating the
20622         state_ident_tab.
20623
20624 2011-04-19  Wei Guozhi  <carrot@google.com>
20625
20626         PR target/47855
20627         * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
20628         * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
20629         linkage.
20630         * config/arm/constraints.md (Uu): New constraint.
20631         * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
20632
20633 2011-04-19  Tristan Gingold  <gingold@adacore.com>
20634
20635         * config.gcc (-*-*-*vms): Added.
20636         (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
20637         definitions moved.
20638         * config/vms/vms-ld.c: New file.
20639         * config/vms/vms-ar.c: New file.
20640         * config/vms/t-vmsnative: New file.
20641
20642 2011-04-18  Xinliang David Li  <davidxl@google.com>
20643
20644         * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
20645
20646 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
20647
20648         PR middle-end/48661
20649         * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
20650         if TREE_TYPE (v) is non-NULL.
20651
20652         * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
20653         gimple_get_virt_mehtod_for_binfo.
20654         * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
20655         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
20656         callers.
20657         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
20658
20659 2011-04-18  Michael Matz  <matz@suse.de>
20660             Steve Ellcey  <sje@cup.hp.com>
20661
20662         * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
20663         use its mode as source mode if it isn't VOIDmode.
20664
20665 2011-04-18  Dennis, CHENG Renquan  <crquan@fedoraproject.org>
20666
20667         * doc/passes.texi: Fill crossref nodes.
20668
20669 2011-04-18  Jim Meyering  <meyering@redhat.com>
20670
20671         Fix doubled-word typos in comments and strings
20672         * config/alpha/vms-unwind.h: s/for for/for/
20673         * config/arm/unwind-arm.h: Likewise.
20674         * config/microblaze/microblaze.c: Likewise.
20675         * config/sh/constraints.md: s/in in/in/
20676         * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
20677
20678 2011-04-18  Uros Bizjak  <ubizjak@gmail.com>
20679
20680         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
20681         (AVX_FLOAT_MODE_P): Ditto.
20682         (AVX128_VEC_FLOAT_MODE_P): Ditto.
20683         (AVX256_VEC_FLOAT_MODE_P): Ditto.
20684         (AVX_VEC_FLOAT_MODE_P): Ditto.
20685         * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
20686         (UNSPEC_MASKSTORE): Ditto.
20687         * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
20688         Merge from <sse>_movmsk<ssemodesuffix> and
20689         avx_movmsk<ssemodesuffix>256.  Use VF mode iterator.
20690         (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64.  Use P mode
20691         iterator.
20692         (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
20693         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
20694         (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
20695
20696 2011-04-18  Jan Hubicka  <jh@suse.cz>
20697
20698         * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
20699
20700         * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
20701         (want_inline_function_called_once_p): Break out the logic from
20702         ipa_inline.
20703         (edge_badness): Ensure that profile is not misupdated.
20704         (lookup_recursive_calls): Prioritize by call frequencies.
20705         (inline_small_functions): Move program size estimates here;
20706         actually process whole queue even when unit growth has been
20707         met. (to properly compute inline_failed reasons and for the
20708         case unit size decrease.) Revisit comments on recursive inlining.
20709         (ipa_inline): Remove unit summary code; first inline hot calls
20710         of functions called once, cold calls next.
20711         (order, nnodes): Remove unused variables.
20712         * Makefile.in (ipa-inline.o): No longer depent on ggc files.
20713         (GTFILES): Remove ipa-inline.c
20714         * sel-sched.c (fill_insns): Silence uninitialized var warning.
20715
20716 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
20717
20718         * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
20719
20720 2011-04-18  Jie Zhang  <jie@codesourcery.com>
20721             Richard Earnshaw  <rearnsha@arm.com>
20722
20723         * arm.c (neon_builtin_type_bits): Remove.
20724         (typedef enum neon_builtin_mode): New.
20725         (T_MAX): Don't define.
20726         (typedef enum neon_builtin_datum): Remove bits, codes[],
20727         num_vars and base_fcode.  Add mode, code and fcode.
20728         (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
20729         VAR10): Change accordingly.
20730         (neon_builtin_data[]): Change accordingly
20731         (arm_init_neon_builtins): Change accordingly.
20732         (neon_builtin_compare): Remove.
20733         (locate_neon_builtin_icode): Remove.
20734         (arm_expand_neon_builtin): Change accordingly.
20735
20736         * arm.h (enum arm_builtins): Move to ...
20737         * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
20738
20739         * arm.c (arm_builtin_decl): Declare.
20740         (TARGET_BUILTIN_DECL): Define.
20741         (enum arm_builtins): Correct ARM_BUILTIN_MAX.
20742         (arm_builtin_decls[]): New.
20743         (arm_init_neon_builtins): Store builtin declarations in
20744         arm_builtin_decls[].
20745         (arm_init_tls_builtins): Likewise.
20746         (arm_init_iwmmxt_builtins): Likewise.  Refactor initialization code.
20747         (arm_builtin_decl): New.
20748
20749 2011-04-18  Richard Guenther  <rguenther@suse.de>
20750
20751         * tree.c (upper_bound_in_type): Build properly canonicalized
20752         INTEGER_CSTs.
20753         (lower_bound_in_type): Likewise.
20754
20755 2011-04-18  Richard Guenther  <rguenther@suse.de>
20756
20757         * gimple.h (gimple_call_addr_fndecl): New function.
20758         (gimple_call_fndecl): Use it.
20759         * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
20760         for direct calls.
20761         * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
20762         * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
20763
20764 2011-04-18  Richard Guenther  <rguenther@suse.de>
20765
20766         PR middle-end/48650
20767         * tree.c (build_string): STRING_CST is now derived from tree_typed.
20768
20769 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
20770
20771         PR lto/48492
20772         * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
20773         DECL_IN_CONSTANT_POOL without RTL.
20774
20775 2011-04-18  Ulrich Weigand  <ulrich.weigand@linaro.org>
20776             Ira Rosen  <ira.rosen@linaro.org>
20777
20778         PR target/48252
20779         * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
20780         to match neon_vzip/vuzp/vtrn_internal.
20781         * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
20782         outputs explicitly dependent on both inputs.
20783         (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
20784
20785 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
20786
20787         PR tree-optimization/48616
20788         * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
20789         whether the shift is by scalar or vector based on whether all SLP
20790         scalar stmts have the same rhs.
20791
20792 2011-04-17  Chung-Lin Tang  <cltang@codesourcery.com>
20793
20794         * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
20795         memory operands.
20796
20797 2011-04-17  Richard Sandiford  <rdsandiford@googlemail.com>
20798
20799         PR target/43700
20800         * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
20801         registers.
20802
20803 2011-04-17  Jan Hubicka  <jh@suse.cz>
20804
20805         * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
20806         * cgrpahunit.c (cgraph_finalize_function): Do not set
20807         finalized_by_frontend.
20808         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
20809         finalized_by_frontend.
20810
20811 2011-04-17  Jan Hubicka  <jh@suse.cz>
20812
20813         * cgraph.c (cgraph_clone_node): Do not handle vtable_method
20814         * cgraph.h (struct cgraph_local_info): Drop vtable_method.
20815         * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
20816         * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
20817         method.
20818         * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
20819         gimple-fold.c
20820         * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
20821
20822 2011-04-17  Eric Botcazou  <ebotcazou@adacore.com>
20823
20824         PR lto/48538
20825         * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
20826         is non-null before accessing it.
20827         (input_cgraph): Remove trailing spaces.
20828
20829 2011-04-17  Revital Eres  <revital.eres@linaro.org>
20830
20831         * params.def (sms-min-sc): New param flag.
20832         * modulo-sched.c (sms_schedule): Use it.
20833         * doc/invoke.texi (sms-min-sc): Document it.
20834
20835 2011-04-17  Jan Hubicka  <jh@suse.cz>
20836
20837         * lto-symtab.c (lto_cgraph_replace_node): When call statement is
20838         present, also set gimple_call_set_cannot_inline.
20839         * ipa-inline.c: Update toplevel comment.
20840         (MAX_TIME): Remove.
20841         (cgraph_clone_inlined_nodes): Fix linebreaks.
20842         (cgraph_check_inline_limits): Restructure to ...
20843         (caller_growth_limits): ... this one; be more tolerant
20844         on growth in nested inline chains; add explanatory comment;
20845         fix stack accounting thinko introduced by previous patch.
20846         (cgraph_default_inline_p): Remove.
20847         (report_inline_failed_reason): New function.
20848         (can_inline_edge_p): New function.
20849         (can_early_inline_edge_p): New function.
20850         (leaf_node_p): Move upwards in file.
20851         (want_early_inline_function_p): New function.
20852         (want_inline_small_function_p): New function.
20853         (want_inline_self_recursive_call_p): New function.
20854         (cgraph_edge_badness): Rename to ...
20855         (edge_badness) ... this one; fix linebreaks.
20856         (update_edge_key): Update call of edge_baddness; add
20857         detailed dump about queue updates.
20858         (update_caller_keys): Use can_inline_edge_p and
20859         want_inline_small_function_p.
20860         (cgraph_decide_recursive_inlining): Rename to...
20861         (recursive_inlining): Use can_inline_edge_p and
20862         want_inline_self_recursive_call_p; simplify and remove no longer
20863         valid FIXME.
20864         (cgraph_set_inline_failed): Remove.
20865         (add_new_edges_to_heap): Use can_inline_edge_p and
20866         want_inline_small_function_p.
20867         (cgraph_decide_inlining_of_small_functions): Rename to ...
20868         (inline_small_functions): ... this one; cleanup; use
20869         can/want predicates; cleanup debug ouput; work edges till fibheap
20870         is exhausted and do not stop once unit growth is reached; remove
20871         later loop processing remaining edges.
20872         (cgraph_flatten): Rename to ...
20873         (flatten_function): ... this one; use can_inline_edge_p
20874         and can_early_inline_edge_p predicates.
20875         (cgraph_decide_inlining): Rename to ...
20876         (ipa_inline): ... this one; remove unreachable nodes before
20877         inlining functions called once; simplify the pass.
20878         (cgraph_perform_always_inlining): Rename to ...
20879         (inline_always_inline_functions): ... this one; use
20880         DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
20881         (cgraph_decide_inlining_incrementally): Rename to ...
20882         (early_inline_small_functions): ... this one; simplify
20883         using new predicates; cleanup; make dumps prettier.
20884         (cgraph_early_inlining): Rename to ...
20885         (early_inliner): newer inline regular functions into always-inlines;
20886         fix updating of call stmt summaries.
20887         (pass_early_inline): Update for new names.
20888         (inline_transform): Fix formating.
20889         (gate_cgraph_decide_inlining): Rename to ...
20890         (pass_ipa_inline): ... this one.
20891         * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
20892         * ipa-inline-analysis.c (dump_inline_summary): Update.
20893         (compute_inline_parameters): Do not compute disregard_inline_limits;
20894         look for mismatching arguments.
20895         (estimate_growth): Fix handlig of non-trivial self recursion.
20896         (inline_read_summary): Do not read info->disregard_inline_limits.
20897         (inline_write_summary): Do not write info->disregard_inline_limits.
20898         * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
20899         and move all checks into can_inline_edge_p predicate; re-enable code
20900         comparing optimization levels.
20901         (expand_call_inline): Do not test inline_forbidden_into_p.
20902         * Makefile.in (ipa-inline.o): Update arguments.
20903
20904 2011-04-17  Revital Eres  <revital.eres@linaro.org>
20905
20906         * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
20907
20908 2011-04-17  Revital Eres  <revital.eres@linaro.org>
20909
20910         * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
20911
20912 2011-04-17  Michael Matz  <matz@suse.de>
20913
20914         PR tree-optimization/48622
20915         PR lto/48645
20916         * ipa-inline-analysis.c (inline_read_summary): Read size/time
20917         in same order as they're written.
20918
20919 2011-04-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
20920
20921         * config/pa/predicates.md: Reorganize and simplify predicates.
20922         Eliminate duplicate code checks.
20923         (arith_operand): Rename to arith14_operand
20924         (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
20925         * config/pa/pa.md: Use renamed operands.
20926         * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
20927         (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
20928         arith11_operand, adddi3_operand, indexed_memory_operand,
20929         symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
20930         arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
20931         borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
20932         move_dest_operand, move_src_operand, prefetch_cc_operand,
20933         prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
20934         uint32_operand, reg_before_reload_operand, reg_or_0_operand,
20935         reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
20936         div_operand, int5_operand, movb_comparison_operator,
20937         ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
20938         arith_double_operand, ireg_operand, lhs_lshift_operand,
20939         pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
20940         integer_store_memory_operand): Likewise.
20941         * config/pa/pa.c (adddi3_operand): Move to predicates.md.
20942         (integer_store_memory_operand, read_only_operand,
20943         function_label_operand, borx_reg_operand,
20944         non_hard_reg_operand): Likewise.
20945         (eq_neq_comparison_operator): Delete unused operator.
20946         (legitimize_pic_address): Use VOIDmode for mode argument in calls to
20947         function_label_operand.
20948         (emit_move_sequence): Likewise.
20949
20950 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
20951
20952         * config/i386/sse.md (sseunpackmode): New mode attribute.
20953         (ssepackmode): Ditto.
20954         (vec_pack_trunc_<mode>): Macroize expander from
20955         vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
20956         (vec_unpacks_lo_<mode>): Macroize expander from
20957         vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
20958         (vec_unpacks_hi_<mode>): Macroize expander from
20959         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
20960         (vec_unpacku_lo_<mode>): Macroize expander from
20961         vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
20962         (vec_unpacku_hi_<mode>): Macroize expander from
20963         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
20964         * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
20965         ix86_expand_sse4_unpack.
20966         * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
20967
20968 2011-04-16  Jan Hubicka  <jh@suse.cz>
20969
20970         * cgraphbuild.c: Include ipa-inline.h.
20971         (reset_inline_failed): Use initialize_inline_failed.
20972         * cgraph.c: Include ipa-inline.h.
20973         (cgraph_create_node_1): Do not initialize estimated_growth.
20974         (initialize_inline_failed): More to ipa-inline-analysis.c
20975         (dump_cgraph_node): Do not dump inline flags.
20976         * cgraph.h (cgraph_local_info): Remove inlineable, versionable
20977         and disregard_inline_limits flags.
20978         (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
20979         time, size, estimated_growth.
20980         * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
20981         Update.
20982         * cgraphunit.c (cgraph_decide_is_function_needed): Use
20983         DECL_DISREGARD_INLINE_LIMITS.
20984         (cgraph_analyze_function): Do not initialize
20985         node->local.disregard_inline_limits.
20986         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
20987         inlinable, versionable and disregard_inline_limits.
20988         * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
20989         cgraph_check_inline_limits, cgraph_default_inline_p,
20990         cgraph_edge_badness, update_caller_keys, update_callee_keys,
20991         add_new_edges_to_heap): Update.
20992         (cgraph_decide_inlining_of_small_function): Update; set
20993         CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
20994         (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
20995         cgraph_decide_inlining_incrementally): Update.
20996         * ipa-inline.h (inline_summary): Add inlinable, versionable,
20997         disregard_inline_limits, estimated_stack_size, stack_frame_offset,
20998         time, size and estimated_growth parameters.
20999         (estimate_edge_growth): Update.
21000         (initialize_inline_failed): Declare.
21001         * ipa-split.c: Include ipa-inline.h
21002         (execute_split_functions): Update.
21003         * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
21004         (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
21005         (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
21006         * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
21007         estimated_growth to INT_MIN.
21008         (inline_node_duplication_hook): Likewise.
21009         (dump_inline_summary): Dump new fields.
21010         (compute_inline_parameters): Update.
21011         (estimate_edge_time, estimate_time_after_inlining,
21012         estimate_size_after_inlining, estimate_growth, inline_read_summary,
21013         inline_write_summary):
21014         (initialize_inline_failed): Move here from cgraph.c.
21015         * tree-sra.c: Include ipa-inline.h.
21016         (ipa_sra_preliminary_function_checks): Update.
21017         * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
21018         ipa-inline.h.
21019
21020 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
21021
21022         * config/i386/sse.md (V16): New mode iterator.
21023         (VI1, VI8): Ditto.
21024         (AVXMODEQI, AVXMODEDI): Remove.
21025         (sse2, sse3): New mode attribute.
21026         (mov<mode>): Use V16 mode iterator.
21027         (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
21028         (push<mode>1): Use V16 mode iterator.
21029         (movmisalign<mode>): Ditto.
21030         (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
21031         <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
21032         (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
21033         *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
21034         (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
21035         avx_movdqu<avxmodesuffix>.
21036         (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
21037         *avx_movdqu<avxmodesuffix>.
21038         (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
21039         avx_lddqu<avxmodesuffix>.
21040         (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
21041         (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
21042         avx_movnt<AVXMODEDI:mode>.
21043         * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
21044         renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
21045
21046 2011-04-16  Bernd Schmidt  <bernds@codesourcery.com>
21047
21048         PR target/48629
21049         * haifa-sched.c (prune_ready_list, schedule_block): Use
21050         sched_pressure_p rather than flag_sched_pressure.
21051
21052 2011-04-15  Pat Haugen  <pthaugen@us.ibm.com>
21053
21054         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
21055         cgraph_get_node instead of cgraph_get_create_node.
21056
21057 2011-04-15  Jakub Jelinek  <jakub@redhat.com>
21058
21059         * cfgexpand.c (expand_debug_expr): Use
21060         simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
21061
21062 2011-04-15  Michael Matz  <matz@suse.de>
21063
21064         * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
21065         * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
21066         * function.c (gimplify_parameters): Ditto.
21067         * gimplify.c (gimplify_vla_decl): Ditto.
21068
21069         * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
21070         (gimple_call_set_alloca_for_var): New inline function.
21071         (gimple_call_alloca_for_var_p): Ditto.
21072         * gimple.c (gimple_build_call_from_tree): Remember
21073         CALL_ALLOCA_FOR_VAR_P state.
21074         * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
21075
21076         * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
21077         calls if they were for VLA objects.
21078
21079 2011-04-15  Martin Jambor  <mjambor@suse.cz>
21080
21081         * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
21082         of ADR_EXPRs.
21083
21084 2011-04-15  Martin Jambor  <mjambor@suse.cz>
21085
21086         PR middle-end/48601
21087         * tree-emutls.c (lower_emutls_function_body): Call
21088         cgraph_get_create_node instead of cgraph_get_node.  Do not assert the
21089         result is non-NULL.
21090
21091 2011-04-15  Nicola Pero  <nicola.pero@meta-innovation.com>
21092
21093         * c-decl.c (detect_field_duplicates): Call
21094         objc_detect_field_duplicates instead of objc_get_interface_ivars.
21095
21096 2011-04-15  Nathan Froyd  <froydnj@codesourcery.com>
21097
21098         * gimple.h (gimple_asm_clobbers_memory_p): Declare.
21099         * gimple.c (gimple_asm_clobbers_memory_p): Define.
21100         * ipa-pure-const.c (check_stmt): Call it.
21101         * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
21102
21103 2011-04-15  Richard Guenther  <rguenther@suse.de>
21104
21105         PR tree-optimization/48290
21106         * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
21107         Properly decide inhibiting propagation based on the valueized
21108         operand.  Do loop-closed SSA form preserving here ...
21109         (init_copy_prop): ... not here.
21110
21111 2011-04-15  H.J. Lu  <hongjiu.lu@intel.com>
21112
21113         PR target/48612
21114         * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
21115         (*ieee_smax<mode>3): Likewise.
21116
21117 2011-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21118
21119         * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
21120         Replace match_operand with match_dup for the third operand in
21121         these expanders.
21122
21123 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
21124
21125         * combine.c (subst, combine_simlify_rtx): Add new argument, use it
21126         to track processing of conditionals.  Update all callers.
21127         (try_combine, simplify_if_then_else): Update.
21128
21129 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
21130
21131         * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
21132         -fsched-pressure.
21133
21134 2011-04-15  Georg-Johann Lay  <avr@gjlay.de>
21135
21136         * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
21137         instead of match_operand for operand 3.
21138
21139 2011-04-15  Richard Sandiford  <richard.sandiford@linaro.org>
21140
21141         * recog.h (insn_operand_data): Add an "allows_mem" field.
21142         * genoutput.c (output_operand_data): Initialize it.
21143         * optabs.c (maybe_legitimize_operand_same_code): New function.
21144         (maybe_legitimize_operand): Use it when matching the original
21145         op->value.
21146
21147 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
21148
21149         * gimplify.c: Fix issues in comments throughout.
21150         (voidify_wrapper_expr): Fix long line.
21151         (build_stack_save_restore): Likewise.
21152         (gimplify_loop_expr): Likewise.
21153         (gimplify_compound_lval): Likewise.
21154         (gimplify_init_ctor_eval): Likewise.
21155         (gimplify_modify_expr_rhs): Likewise.
21156         (omp_notice_threadprivate_variable): Likewise.
21157
21158 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
21159
21160         * cfgexpand.c (expand_call_stmt): Convert the function type to the
21161         original one if this is not a builtin function.
21162
21163 2011-04-14  Jakub Jelinek  <jakub@redhat.com>
21164
21165         PR target/48605
21166         * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
21167         offset it as needed based on top 2 bits in operands[3], change
21168         MEM mode to SFmode and mask those 2 bits away from operands[3].
21169
21170 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
21171
21172         * c-parser.c (c_parser_objc_protocol_definition): Updated for
21173         change from objc_declare_protocols() to objc_declare_protocol().
21174
21175 2011-04-14  Uros Bizjak  <ubizjak@gmail.com>
21176
21177         * config/i386/sse.md (sse4_1): New mode attribute.
21178         (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
21179         avx_blend<ssemodesuffix><avxmodesuffix> and
21180         sse4_1_blend<ssemodesuffix> using VF mode iterator.
21181         (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
21182         avx_blendv<ssemodesuffix><avxmodesuffix> and
21183         sse4_1_blendv<ssemodesuffix> using VF mode iterator.
21184         (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
21185         avx_dp<ssemodesuffix><avxmodesuffix> and
21186         sse4_1_dp<ssemodesuffix> using VF mode iterator.
21187         (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
21188         (sse4_1_packusdw): Merge with *avx_packusdw.
21189         (sse4_1_pblendvb): Merge with *avx_pblendvb.
21190         (sse4_1_pblendw): Merge with *avx_pblendw.
21191         (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
21192         (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
21193         avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
21194         VF mode iterator.
21195         (sse4_1_round<ssescalarmodesuffix>): Merge with
21196         *avx_round<ssescalarmodesuffix>.
21197         (aesenc): Merge with *avx_aesenc.
21198         (aesenclast): Merge with *avx_aesenclast.
21199         (aesdec): Merge with *avx_aesdec.
21200         (aesdeclast): Merge with *avx_aesdeclast.
21201         (pclmulqdq): Merge with *pclmulqdq.
21202         * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
21203         New predicate.
21204         (nonimm_not_xmm0_operand_maybe_avx): Ditto.
21205
21206 2011-04-14  H.J. Lu  <hongjiu.lu@intel.com>
21207
21208         PR middle-end/48608
21209         * cfgexpand.c (get_decl_align_unit): Renamed to ...
21210         (align_local_variable): This.  Update DECL_ALIGN.
21211         (add_stack_var): Updated.
21212         (expand_one_stack_var): Likewise.
21213
21214 2011-04-14  Richard Guenther  <rguenther@suse.de>
21215
21216         * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
21217         Remove.
21218         (dse_initialize_block_local_data, dse_leave_block,
21219         record_voperand_set, get_stmt_uid): Likewise.
21220         (dse_possible_dead_store_p): Allow any kind of killing stmt.
21221         (dse_optimize_stmt): Remove voperand set handling code.
21222         Simplify and improve to handle any kind of killing stmt.
21223         (dse_record_phi): Remove.
21224         (dse_enter_block): Simplify.
21225         (tree_ssa_dse): Likewise.
21226         * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
21227
21228 2011-04-14  Jan Hubicka  <jh@suse.cz>
21229
21230         * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
21231         * cgraph.h (struct inline_summary): Move to ipa-inline.h
21232         (cgraph_local_info): Remove inline_summary.
21233         * ipa-cp.c: Include ipa-inline.h.
21234         (ipcp_cloning_candidate_p, ipcp_estimate_growth,
21235         ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
21236         accesor.
21237         * lto-cgraph.c (lto_output_node): Do not stream inline summary.
21238         (input_overwrite_node): Do not set inline summary.
21239         (input_node): Do not stream inline summary.
21240         * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
21241         (cgraph_decide_inlining_incrementally): Do not try to estimate overall
21242         growth; we do not have inline parameters computed for that anyway.
21243         (cgraph_early_inlining): After inlining compute call_stmt_sizes.
21244         * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
21245         (inline_summary_t): New type and VECtor.
21246         (debug_inline_summary, dump_inline_summaries): Declare.
21247         (inline_summary): Use VOCtor.
21248         (estimate_edge_growth): Kill hack computing call stmt size directly.
21249         * lto-section-in.c (lto_section_name): Add inline section.
21250         * ipa-inline-analysis.c: Include lto-streamer.h
21251         (node_removal_hook_holder, node_duplication_hook_holder): New holders
21252         (inline_node_removal_hook, inline_node_duplication_hook): New functions.
21253         (inline_summary_vec): Define.
21254         (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
21255         dump_inline_summaries): New functions.
21256         (estimate_function_body_sizes): Properly compute size/time of outgoing
21257         calls.
21258         (compute_inline_parameters): Alloc inline_summary; do not compute
21259         size/time of incomming calls.
21260         (estimate_edge_time): Avoid missing time summary hack.
21261         (inline_read_summary): Read inline summary info.
21262         (inline_write_summary): Write inline summary info.
21263         (inline_free_summary): Free all hooks and inline summary vector.
21264         * lto-streamer.h: Add LTO_section_inline_summary section.
21265         * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
21266         * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
21267
21268 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
21269
21270         * tree-vectorizer.h (vect_strided_store_supported): Add a
21271         HOST_WIDE_INT argument.
21272         (vect_strided_load_supported): Likewise.
21273         (vect_permute_store_chain): Return void.
21274         (vect_transform_strided_load): Likewise.
21275         (vect_permute_load_chain): Delete.
21276         * tree-vect-data-refs.c (vect_strided_store_supported): Take a
21277         count argument.  Check that the count is a power of two.
21278         (vect_strided_load_supported): Likewise.
21279         (vect_permute_store_chain): Return void.  Update after above changes.
21280         Assert that the access is supported.
21281         (vect_permute_load_chain): Likewise.
21282         (vect_transform_strided_load): Return void.
21283         * tree-vect-stmts.c (vectorizable_store): Update calls after
21284         above interface changes.
21285         (vectorizable_load): Likewise.
21286         (vect_analyze_stmt): Don't check for strided powers of two here.
21287
21288 2011-04-14  Richard Guenther  <rguenther@suse.de>
21289
21290         PR tree-optimization/48590
21291         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
21292         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
21293         (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
21294         BUILT_IN_STACK_SAVE.
21295         * tree-ssa-dce.c (propagate_necessity): Handle
21296         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
21297
21298 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
21299
21300         * c-parser.c (c_parser_objc_class_declaration): Updated call to
21301         objc_declare_class.
21302
21303 2011-04-14  Richard Guenther  <rguenther@suse.de>
21304
21305         * tree.h (get_object_alignment_1): Declare.
21306         * builtins.c (get_object_alignment_1): Split out worker from ...
21307         (get_object_alignment): ... here.
21308         * fold-const.c (get_pointer_modulus_and_residue): Use
21309         get_object_alignment_1.
21310
21311 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
21312
21313         * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
21314         type parameter.
21315         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
21316         parameter.  Generalise code to handle arrays as well as vectors.
21317         (vect_setup_realignment): Update accordingly.
21318         * tree-vect-stmts.c (vectorizable_store): Likewise.
21319         (vectorizable_load): Likewise.
21320
21321 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
21322
21323         * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
21324         within the per-copy loop.
21325
21326 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
21327
21328         * tree-vect-stmts.c (vectorizable_load): Print the number of copies
21329         in the dump file.
21330
21331 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
21332
21333         * doc/options.texi (Negative): Explicitly mention that the
21334         Negative chain must be circular.
21335
21336 2011-04-14  Nathan Froyd  <froydnj@codesourcery.com>
21337
21338         * function.h (block_chainon): Declare.
21339         * function.c (block_chainon): Define.
21340
21341 2011-04-14  Anatoly Sokolov  <aesok@post.ru>
21342             Eric Weddington  <eric.weddington@atmel.com>
21343             Georg-Johann Lay  <avr@gjlay.de>
21344
21345         * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
21346         New Includes
21347         (avr_init_builtins, avr_expand_builtin,
21348         avr_expand_delay_cycles, avr_expand_unop_builtin,
21349         avr_expand_binop_builtin ): New functions.
21350         (avr_builtin_id): New enum
21351         (struct avr_builtin_description): New struct
21352         (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
21353         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
21354
21355         * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
21356         UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
21357         UNSPECV_DELAY_CYCLES): new enumeration values
21358         (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
21359         ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
21360         ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
21361         ("*rotlqi3_4"): rename insn to "rotlqi3_4"
21362         ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
21363         "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
21364         "fmulsu"): New insns
21365
21366         * config/avr/avr-c.c: fix line endings
21367         (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
21368         __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
21369         __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
21370         __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
21371         __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
21372
21373         * doc/extend.texi (AVR Built-in Functions): New node
21374         (Target Builtins): Add documentation of AVR
21375         built-in functions.
21376
21377 2011-04-14  Georg-Johann Lay  <avr@gjlay.de>
21378
21379         PR target/44643
21380         * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
21381         alone. Error if non-const data has attribute progmem.
21382
21383 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
21384
21385         * tree.h (struct tree_constructor): Include tree_typed instead of
21386         tree_common.
21387         * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
21388         TS_TYPED instead of TS_COMMON.
21389
21390 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
21391
21392         * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
21393         (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
21394         (sse2_psadbw): Merge with *avx_psadbw.
21395         (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
21396         (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
21397         (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
21398         (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
21399         (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
21400         (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
21401         (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
21402         (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
21403         (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
21404         (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
21405         (ssse3_palignrti): Merge with *avx_palignrti.
21406
21407 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
21408
21409         * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
21410         * tree-ssanames.c (fini_ssanames): VEC_free it.
21411         (make_ssa_name_fn): Update for VECness of free_ssanames.
21412         (release_ssa_name, release_dead_ssa_names): Likewise.
21413         * tree.h (struct tree_ssa_name): Include tree_typed instead of
21414         tree_common.
21415         * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
21416         TS_TYPED instead of TS_COMMON.
21417
21418 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
21419
21420         * postreload-gcse.c (gcse_after_reload_main): Add calls to
21421         statistics_counter_event.
21422         * tree-ssa-copyrename.c (stats): Define.
21423         (rename_ssa_copies): Count coalesced SSA_NAMEs.  Add call to
21424         statistics_counter_event.
21425         * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
21426         (bswap_stats, widen_mul_stats): Define.
21427         (insert_reciprocals): Increment rdivs_inserted.
21428         (execute_cse_reciprocals): Zeroize reciprocal_stats.  Increment
21429         rfuncs_inserted.  Add calls to statistics_counter_event.
21430         (execute_cse_sincos_1): Increment inserted.
21431         (execute_cse_sincos): Zeroize sincos_stats.  Add call to
21432         statistics_counter_event.
21433         (execute_optimize_bswap): Zeroize bswap_stats.  Increment fields
21434         of bswap_stats.  Add calls to statistics_counter_event.
21435         (convert_mult_to_widen): Increment widen_mults_inserted.
21436         (convert_plusminus_to_widen): Increment maccs_inserted.
21437         (convert_mult_to_fma): Increment fmas_inserted.
21438         (execute_optimize_widening_mul): Zeroize widen_mul_stats.  Add
21439         calls to statistics_counter_event.
21440
21441 2011-04-13  Vladimir Makarov  <vmakarov@redhat.com>
21442
21443         PR rtl-optimization/48455
21444         * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
21445         `temp_costs->mem_cost'.
21446
21447 2011-04-13  Jan Hubicka  <jh@suse.cz>
21448
21449         * ipa-inline.h: New file.
21450         * ipa-inline-analysis.c: New file. Broken out of ...
21451         * ipa-inline.c: ... this file; update toplevel comment;
21452         include ipa-inline.h
21453         (inline_summary): Move to ipa-inline.h
21454         (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
21455         ipa-inline-analysis.c.
21456         (cgraph_estimate_time_after_inlining): Rename to
21457         estiamte_time_after_inlining; move to ipa-inline-analysis.c
21458         (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
21459         to estimate_edge_growth.
21460         (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
21461         rename to estimate_size_after_inlining.
21462         (cgraph_mark_inline_edge): Update for new naming convention.
21463         (cgraph_check_inline_limits): Likewise.
21464         (cgraph_edge_badness): Likewise.
21465         (cgraph_decide_recursive_inlining): Likewise.
21466         (cgraph_decide_inlining_of_small_functions): Likewise.
21467         (cgraph_decide_inlining_incrementally): Likewise.
21468         (cgraph_estimate_growth): Rename to estimate_growth; move to
21469         ipa-inline-analysis.c.
21470         (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
21471         (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
21472         (compute_inline_parameters): Likewise.
21473         (compute_inline_parameters_for_current): Likewise.
21474         (pass_inline_parameters): Likewise.
21475         (inline_indirect_intraprocedural_analysis): Likewise.
21476         (analyze_function): Rename to inline_analyze_function; likewise.
21477         (add_new_function): Move to ipa-inline-analysis.c.
21478         (inline_generate_summary): Likewise.
21479         (inline_read_summary): Likewise.
21480         (inline_write_summary): Likewise.
21481         * Makefile.in (ipa-inline-analysis.c): New file.
21482
21483 2011-04-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21484
21485         * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
21486         * configure: Regenerate.
21487
21488 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
21489
21490         * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
21491         instead of tree_common.
21492         (struct tree_fixed_cst, struct tree_string, struct tree_complex):
21493         Likewise.
21494         * tree.c (initialize_tree_contains_struct): Mark such nodes as being
21495         TS_TYPED rather than TS_COMMON.
21496         * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
21497
21498 2011-04-01  Georg-Johann Lay  <avr@gjlay.de>
21499
21500         PR target/45263
21501         * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
21502         r20 around calls of __tablejump_elpm__
21503
21504 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
21505
21506         PR middle-end/48591
21507         * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
21508         NULL.
21509         (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
21510
21511 2011-04-13  Bernd Schmidt  <bernds@codesourcery.com>
21512
21513         * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
21514         (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
21515         (cfi_vec): New typedef.
21516         (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
21517         dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
21518         (cie_cfi_vec): New static variable.
21519         (cie_cfi_head): Delete.
21520         (add_cfi): Accept a cfi_vec * as first argument. All callers and
21521         declaration changed. Use vector rather than list operations.
21522         (new_cfi): Don't initialize the dw_cfi_next field.
21523         (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
21524         rather than list operations.
21525         (lookup_cfa): Use vector rather than list operations.
21526         (output_cfis): New argument upto. Accept a cfi_vec rather than
21527         a dw_cfi_ref list head as argument. All callers changed.
21528         Iterate over the vector using upto as a maximum index.
21529         (output_all_cfis): New static function.
21530         (output_fde): Use vector rather than list operations. Use the
21531         new upto argument for output_cfis rather than manipulating a
21532         list.
21533         (dwarf2out_begin_prologue): Change initializations to match
21534         new struct members.
21535         (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
21536         from the vector length rather than searching for the end of a list.
21537         Use output_all_cfis.
21538         (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
21539
21540 2011-04-13  Nick Clifton  <nickc@redhat.com>
21541
21542         * config/rx/rx.md (movmemsi): Do not use this pattern when
21543         volatile pointers are involved.
21544
21545 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
21546
21547         * config/i386/sse.md (pinsrbits): Remove.
21548         (sse2_packsswb): Merge with *avx_packsswb.
21549         (sse2_packssdw): Merge with *avx_packssdw.
21550         (sse2_packuswb): Merge with *avx_packuswb.
21551         (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
21552         (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
21553         (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
21554         (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
21555         (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
21556         (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
21557         (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
21558         (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
21559         (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
21560         (*sse4_1_pinsrq): Merge with *avx_pinsrq.
21561         (sse2_loadld): Merge with *avx_loadld.
21562         (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
21563         (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
21564         (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
21565         (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
21566         (vec_concatv2di): Merge with *vec_concatv2di_avx.
21567
21568 2011-04-12  Nathan Froyd  <froydnj@codesourcery.com>
21569
21570         * c-decl.c (union lang_tree_node): Check for TS_COMMON before
21571         calling TREE_CHAIN.
21572         * print-tree.c (print_node): Likewise.
21573         * tree-inline.c (copy_tree_r): Likewise.
21574         * c-lang.c (LANG_HOOKS_INIT_TS): Define.
21575         * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
21576         instead of TS_COMMON.
21577         * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
21578         * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
21579         (copy_node_stat): Zero TREE_CHAIN only if necessary.
21580         (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
21581         (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
21582         ...and these...
21583         (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
21584         * tree.h: ...here.
21585         (TREE_CHAIN): Check for a TS_COMMON structure.
21586         (TREE_TYPE): Check for a TS_TYPED structure.
21587
21588 2011-04-12  Pat Haugen  <pthaugen@us.ibm.com>
21589
21590         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
21591         cgraph_get_create_node instead of cgraph_node.
21592
21593 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
21594
21595         * c-parser.c (c_parser_initelt): Updated call to
21596         objc_build_message_expr.
21597         (c_parser_postfix_expression): Likewise.
21598
21599 2011-04-12  Kai Tietz  <ktietz@redhat.com>
21600
21601         * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
21602         MASK_MS_BITFIELD_LAYOUT bit.
21603
21604 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
21605
21606         * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
21607         assert it is always true.
21608         (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
21609         moves.
21610
21611 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
21612
21613         * c-parser.c (c_lex_one_token): Rewritten conditional used when
21614         compiling Objective-C to be more efficient.
21615
21616 2011-04-12  Axel Freyn  <axel-freyn@gmx.de>
21617
21618         * opts-common.c (decode_cmdline_options_to_array): Remove variable
21619         argv_copied.
21620
21621 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
21622
21623         * recog.h, genoutput.c, optabs.c: Revert last patch.
21624
21625 2011-04-12  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
21626
21627         PR target/48090
21628         * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
21629
21630 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
21631
21632         * recog.h (insn_operand_data): Add an "allows_mem" field.
21633         * genoutput.c (output_operand_data): Initialize it.
21634         * optabs.c (maybe_legitimize_operand_same_code): New function.
21635         (maybe_legitimize_operand): Use it when matching the original
21636         op->value.
21637
21638 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
21639
21640         * genpreds.c (process_define_predicate): Move most processing
21641         to gensupport.c.  Continue to validate the expression.
21642         * genrecog.c (did_you_mean_codes, compute_predicate_codes)
21643         (process_define_predicate): Move processing to gensupport.c.
21644         (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
21645         * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
21646         (compute_predicate_codes): Moved from genrecog.c.  Add lineno
21647         argument.
21648         (valid_predicate_name_p): New function, split out from old
21649         genpreds.c:process_define_predicate.
21650         (process_define_predicate): New function, combining code from
21651         old genpreds.c and genrecog.c functions.
21652         (process_rtx): Call it for DEFINE_PREDICATE and
21653         DEFINE_SPECIAL_PREDICATE.
21654
21655 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
21656
21657         * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
21658         size of a '%A' memory reference.
21659         (T_DREG, T_QREG): New neon_builtin_type_bits.
21660         (arm_init_neon_builtins): Assert that the load and store operands
21661         are neon_struct_operands.
21662         (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
21663         (NEON_ARG_MEMORY): New builtin_arg.
21664         (neon_dereference_pointer): New function.
21665         (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
21666         Handle NEON_ARG_MEMORY.
21667         (arm_expand_neon_builtin): Update after above interface changes.
21668         Use NEON_ARG_MEMORY for loads and stores.
21669         * config/arm/predicates.md (neon_struct_operand): New predicate.
21670         * config/arm/iterators.md (V_two_elem): Tweak formatting.
21671         (V_three_elem): Use BLKmode for accesses that have no associated mode.
21672         (V_four_elem): Tweak formatting.
21673         * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
21674         (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
21675         (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
21676         (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
21677         (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
21678         (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
21679         (neon_vst4<mode>): Replace pointer operand with a memory operand.
21680         Use %A in the output template.
21681         (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
21682         (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
21683         (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
21684         the width of the memory access.  Remove post-increment.
21685         * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
21686
21687 2011-04-12  Nick Clifton  <nickc@redhat.com>
21688
21689         * config/v850/v850.c (expand_prologue): Do not use the CALLT
21690         instruction for interrupt handlers if the target is the basic V850
21691         architecture.
21692         (expand_epilogue): Likewise.
21693
21694 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
21695
21696         PR rtl-optimization/48549
21697         * combine.c (propagate_for_debug): Also stop after BB_END of
21698         this_basic_block.  Process LAST and just stop processing after it.
21699         (combine_instructions): If last_combined_insn has been deleted,
21700         set last_combined_insn to its PREV_INSN.
21701
21702 2011-04-12  Richard Guenther  <rguenther@suse.de>
21703
21704         PR tree-optimization/46076
21705         * gimple.h (struct gimple_statement_call): Add fntype field.
21706         (gimple_call_fntype): Adjust.
21707         (gimple_call_set_fntype): New function.
21708         * gimple.c (gimple_build_call_1): Set the call function type.
21709         * gimplify.c (gimplify_call_expr): Preserve the function
21710         type the frontend used for the call.
21711         (gimplify_modify_expr): Likewise.
21712         * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
21713         function type.
21714         * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
21715         function type.
21716         * tree-ssa.c (useless_type_conversion_p): Function pointer
21717         conversions are useless.
21718
21719 2011-04-12  Martin Jambor  <mjambor@suse.cz>
21720
21721         * cgraph.h (cgraph_node): Remove function declaration.
21722         (cgraph_create_node): Declare.
21723         (cgraph_get_create_node): Likewise.
21724         * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
21725         Updated all callers.
21726         (cgraph_node): Renamed to cgraph_create_node, assert that a node for
21727         the decl does not already exist.  Call cgraph_get_create_node instead
21728         of cgraph_node.
21729         (cgraph_get_create_node): New function.
21730         (cgraph_same_body_alias): Update comment.
21731         (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
21732         assert it does not return NULL.
21733         (cgraph_update_edges_for_call_stmt): Likewise.
21734         (cgraph_clone_edge): Likewise.
21735         (cgraph_create_virtual_clone): Likewise.
21736         (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
21737         instead of cgraph_node.
21738         (cgraph_add_new_function): Call cgraph_create_node or
21739         cgraph_get_create_node instead of cgraph_node.
21740         * cgraphbuild.c (record_reference): Call cgraph_get_create_node
21741         instead of cgraph_node.
21742         (record_eh_tables): Likewise.
21743         (mark_address): Likewise.
21744         (mark_load): Likewise.
21745         (build_cgraph_edges): Call cgraph_get_create_node instead
21746         of cgraph_node.
21747         (rebuild_cgraph_edges): Likewise.
21748         * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
21749         instead of cgraph_node.
21750         (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
21751         cgraph_node.
21752         * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
21753         cgraph_create_node instead of cgraph_node.
21754         * c-decl.c (finish_function): Call cgraph_get_create_node instead
21755         of cgraph_node.
21756         * lto-cgraph.c (input_node): Likewise.
21757         * lto-streamer-in.c (input_function): Likewise.
21758         * varasm.c (mark_decl_referenced): Likewise.
21759         (assemble_alias): Likewise.
21760
21761 2011-04-12  Martin Jambor  <mjambor@suse.cz>
21762
21763         * tree-inline.c (tree_function_versioning): Call cgraph_get_node
21764         instead of cgraph_node and assert it does not return NULL.
21765         * lto-streamer-in.c (lto_read_body): Likewise.
21766         * omp-low.c (new_omp_context): Likewise.
21767         (create_task_copyfn): Likewise.
21768         * tree-emutls.c (lower_emutls_function_body): Likewise.
21769         * matrix-reorg.c (transform_allocation_sites): Likewise.
21770
21771 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
21772
21773         PR c/48552
21774         * c-typeck.c (build_asm_expr): Error out on attempts to use
21775         void type outputs or inputs for constraints that allow reg or
21776         don't allow memory.
21777
21778 2011-04-11  Chung-Lin Tang  <cltang@codesourcery.com>
21779             Richard Earnshaw  <rearnsha@arm.com>
21780
21781         PR target/48250
21782         * config/arm/arm.c (arm_legitimize_reload_address): Update cases
21783         to use sign-magnitude offsets. Reject unsupported unaligned
21784         cases. Add detailed description in comments.
21785         * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
21786         condition from TARGET_32BIT to TARGET_ARM.
21787
21788 2011-04-11  Nathan Froyd  <froydnj@codesourcery.com>
21789
21790         * tree.h (struct typed_tree): New.
21791         (struct tree_common): Include it instead of tree_base.
21792         (TREE_TYPE): Update for new location of type field.
21793         (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
21794         (DECL_USER_ALIGN, DECL_PACKED): Likewise.
21795         (union tree_node): Add typed field.
21796         * treestruct.def (TS_TYPED): New.
21797         * lto-streamer.c (check_handled_ts_structures): Handle it.
21798         * tree.c (MARK_TS_TYPED): New macro.
21799         (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
21800
21801 2011-04-11  Eric Botcazou  <ebotcazou@adacore.com>
21802
21803         * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
21804         (force_nonfallthru): Do not alter the loop nest if no basic block
21805         was created.
21806
21807 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
21808
21809         * config/i386/sse.md (VI): New mode iterator.
21810         (SSEMODEI): Remove.
21811         (AVX256MODEI): Ditto.
21812         (AVXMODEF4P): Ditto.
21813         (avxvecpsmode): Ditto.
21814         (one_cmpl<mode>2): Enable for TARGET_SSE.  Use VI mode iterator.
21815         (sse2_andnot<mode>3): New expander.
21816         (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
21817         *avx_andnot<mode>3.  Enable for TARGET_SSE.  Use VI mode iterator.
21818         (<any_logic:code><mode>3): Use VI mode iterator.
21819         (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
21820         and *avx_<any_logic:code><mode>3.  Use VI mode iterator.
21821         (*andnottf3): Handle AVX three-operand constraints.
21822         (*<any_logic:code>tf3): Handle AVX three-operand constraints.
21823
21824 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
21825             Robert Millan  <rmh@gnu.org>
21826
21827         * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
21828         * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
21829         GNU_USER_DYNAMIC_LINKER64): Define.
21830         (REG_NAME): Don't undefine.
21831         (MD_UNWIND_SUPPORT): Undefine.
21832         * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
21833         (REG_NAME): Don't undefine.
21834         (MD_UNWIND_SUPPORT): Undefine.
21835         * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
21836
21837 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
21838
21839         * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
21840         (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
21841
21842 2011-04-11  Xinliang David Li  <davidxl@google.com>
21843
21844         * value-profile.c (check_ic_target): New function.
21845         (gimple_ic_transform): Sanity check indirect call target.
21846         * gimple-low.c (gimple_check_call_args): Interface change.
21847         (gimple_check_call_matching_types): New function.
21848         * tree-inline.c (tree_can_inline_p): Call new function.
21849
21850 2011-04-11  Basile Starynkevitch  <basile@starynkevitch.net>
21851
21852         * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
21853         tree-pretty-print.h & realmpfr.h.
21854
21855 2011-04-11  Vladimir Makarov  <vmakarov@redhat.com>
21856
21857         PR middle-end/48464
21858         * ira.c (setup_pressure_classes): Fix typo in loop condition.
21859         (setup_allocno_and_important_classes): Ditto.
21860
21861 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
21862
21863         * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
21864         GNU_USER_DYNAMIC_LINKER.
21865         * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
21866         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
21867         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
21868         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
21869         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
21870         GNU_USER_TARGET_OS_CPP_BUILTINS.
21871         * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
21872         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
21873         * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
21874         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
21875         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
21876         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
21877         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
21878         GNU_USER_TARGET_OS_CPP_BUILTINS.
21879         * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
21880         GNU_USER_DYNAMIC_LINKER.
21881         * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
21882         GNU_USER_TARGET_OS_CPP_BUILTINS.
21883         * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
21884         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
21885         * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
21886         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
21887         * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
21888         * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
21889         GNU_USER_DYNAMIC_LINKER64): Remove.
21890         * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
21891         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
21892         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
21893         GNU_USER_DYNAMIC_LINKER.
21894         * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
21895         GNU_USER_TARGET_OS_CPP_BUILTINS.
21896         * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
21897         GNU_USER_TARGET_OS_CPP_BUILTINS.
21898         * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
21899         to GNU_USER_TARGET_OS_CPP_BUILTINS.
21900         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
21901         GNU_USER_TARGET_OS_CPP_BUILTINS.
21902         (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
21903         (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
21904         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
21905         * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
21906         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
21907         * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
21908         GNU_USER_DYNAMIC_LINKER.
21909         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
21910         GNU_USER_TARGET_OS_CPP_BUILTINS.
21911         * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
21912         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
21913         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
21914         GNU_USER_DYNAMIC_LINKER.
21915         * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
21916         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
21917         * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
21918         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
21919         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
21920         GNU_USER_DYNAMIC_LINKER.
21921         * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
21922         GNU_USER_DYNAMIC_LINKERN32.
21923         (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
21924         GNU_USER_DYNAMIC_LINKERN32.  Change LINUX_DYNAMIC_LINKER64 to
21925         GNU_USER_DYNAMIC_LINKER64.  Change LINUX_DYNAMIC_LINKER32 to
21926         GNU_USER_DYNAMIC_LINKER32.
21927         * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
21928         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
21929         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
21930         GNU_USER_DYNAMIC_LINKER.
21931         * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
21932         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
21933         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
21934         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
21935         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
21936         * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
21937         GNU_USER_DYNAMIC_LINKER32.
21938         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
21939         * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
21940         GNU_USER_DYNAMIC_LINKER.
21941         * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
21942         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
21943         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
21944         GNU_USER_DYNAMIC_LINKER32.  Change LINUX_DYNAMIC_LINKER64 to
21945         GNU_USER_DYNAMIC_LINKER64.
21946         * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
21947         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
21948         (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
21949         GNU_USER_DYNAMIC_LINKER.
21950         * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
21951         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
21952         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
21953         GNU_USER_DYNAMIC_LINKER.
21954         * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
21955         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
21956         (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
21957         GNU_USER_DYNAMIC_LINKER32.
21958         (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
21959         GNU_USER_DYNAMIC_LINKER64.
21960         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
21961         GNU_USER_DYNAMIC_LINKER64.
21962         * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
21963         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
21964         * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
21965         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
21966         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
21967
21968 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
21969
21970         * config/i386/gnu-user.h: Copy from linux.h.  Update comments.
21971         (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
21972         (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
21973         GNU_USER_DYNAMIC_LINKER.
21974         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
21975         * config/i386/gnu-user64.h: Copy from linux64.h.  Update comments.
21976         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
21977         (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
21978         GNU_USER_DYNAMIC_LINKER64.
21979         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
21980         * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
21981         GNU_USER_LINK_EMULATION.
21982         * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
21983         DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
21984         ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
21985         MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
21986         PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
21987         CPP_SPEC, CC1_SPEC): Remove.
21988         (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
21989         (GNU_USER_DYNAMIC_LINKER): Define.
21990         (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
21991         ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
21992         ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
21993         LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
21994         TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
21995         STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
21996         TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
21997         * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
21998         CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
21999         TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
22000         LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
22001         LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
22002         (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
22003         (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
22004         TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
22005         TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
22006         * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
22007         GNU_USER_DYNAMIC_LINKER.
22008         * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
22009         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
22010         * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
22011         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
22012         * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
22013         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
22014         * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
22015         i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
22016         i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
22017         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
22018
22019 2011-04-11  Kai Tietz  <ktietz@redhat.com>
22020
22021         PR target/9601
22022         PR target/11772
22023         * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
22024         * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
22025         comment.
22026         (ix86_is_msabi_thiscall): Removed.
22027         (ix86_is_type_thiscall): Likewise.
22028         (ix86_get_callcvt): New function.
22029         (ix86_comp_type_attributes): Simplify check.
22030         (ix86_function_regparm): Use ix86_get_callcvt for calling
22031         convention attribute checks.
22032         (ix86_return_pops_args): Likewise.
22033         (ix86_static_chain): Likewise.
22034         (x86_this_parameter): Likewise.
22035         (x86_output_mi_thunk): Likewise.
22036         (ix86_function_type_abi): Optimize check for types without attributes.
22037         * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
22038         IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
22039         IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
22040         by flag-values.
22041         (IX86_BASE_CALLCVT): Helper macro.
22042         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
22043         Use ix86_get_callcvt for calling convention attribute checks and avoid
22044         symbol-decoration for stdcall in TARGET_RTD case.
22045         * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
22046         Likewise.
22047         (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
22048         for declaration.
22049
22050 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
22051
22052         * config/i386/sse.md (VI_128): New mode iterator.
22053         (VI12_128): Rename from SSEMODE12.
22054         (VI14_128): Rename from SSEMODE14.
22055         (VI124_128): New mode iterator.
22056         (VI24_128): Rename from SSEMODE248.
22057         (VI248_128): Rename from SSEMODE248.
22058         (SSEMODE124C8): Remove.
22059         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
22060         (*sse2_<plusminus_insn><mode>3): Merge with
22061         *avx_<plusminus_insn><mode>3.
22062         (*mulv8hi3): Merge with *avx_mulv8hi3.
22063         (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
22064         (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
22065         (*sse2_pmaddwd): Merge with *avx_pmaddwd.
22066         (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
22067         (ashr<mode>3): Merge with *avx_ashr<mode>3.
22068         (lshr<mode>3): Merge with *avx_lshr<mode>3.
22069         (ashl<mode>3): Merge with *avx_ashl<mode>3.
22070         (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
22071         (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
22072         (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
22073         (*<smaxmin:code>v8hi3): Ditto.
22074         (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
22075         (*<smaxmin:code>v16qi3): Ditto.
22076         (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
22077         (*sse2_eq<mode>3): Ditto.
22078         (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
22079         (*sse2_gt<mode>3): Ditto.
22080         (vcondv2di): Split out of vcond<mode>.
22081         (vconduv2di): Split out of vcondu<mode>.
22082
22083 2011-04-11  Richard Guenther  <rguenther@suse.de>
22084
22085         * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
22086         before calling tree_low_cst.
22087
22088 2011-04-11  Richard Guenther  <rguenther@suse.de>
22089
22090         * stor-layout.c (layout_type): Compute all array index size operations
22091         in the original type.
22092         (initialize_sizetypes): Add comment.
22093         (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
22094
22095 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
22096
22097         * common.opt (Tbss=, Tdata=, Ttext=): New options.
22098
22099 2011-04-11  Martin Jambor  <mjambor@suse.cz>
22100
22101         * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
22102         of cgraph_node, handle NULL return value.
22103         (cgraph_global_info): Likewise.
22104         (cgraph_rtl_info): Likewise.
22105         * tree-inline.c (estimate_num_insns): Likewise.
22106         * gimplify.c (unshare_body): Likewise.
22107         (unvisit_body): Likewise.
22108         (gimplify_body): Likewise.
22109         * predict.c (optimize_function_for_size_p): Likewise.
22110         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
22111         (call_may_clobber_ref_p_1): Likewise.
22112         * varasm.c (function_section_1): Likewise.
22113         (assemble_start_function): Likewise.
22114
22115 2011-04-11  Martin Jambor  <mjambor@suse.cz>
22116
22117         * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
22118         of cgraph_node.
22119         * final.c (rest_of_clean_state): Likewise.
22120         * gimple-iterator.c (update_call_edge_frequencies): Likewise.
22121         * passes.c (pass_init_dump_file): Likewise.
22122         (execute_all_ipa_transforms): Likewise.
22123         (function_called_by_processed_nodes_p): Likewise.
22124         * predict.c (maybe_hot_frequency_p): Likewise.
22125         (probably_never_executed_bb_p): Likewise.
22126         (compute_function_frequency): Likewise.
22127         * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
22128         (unnest_nesting_tree_1): Likewise.
22129         (lower_nested_functions): Likewise.
22130         * tree-optimize.c (execute_fixup_cfg): Likewise.
22131         (tree_rest_of_compilation): Likewise.
22132         * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
22133         * tree-sra.c (ipa_early_sra): Likewise.
22134         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
22135         * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
22136         * ipa.c (record_cdtor_fn): Likewise.
22137         * ipa-inline.c (cgraph_early_inlining): Likewise.
22138         (compute_inline_parameters_for_current): Likewise.
22139         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
22140         * ipa-pure-const.c (local_pure_const): Likewise.
22141         * ipa-split.c (split_function): Likewise.
22142         (execute_split_functions): Likewise.
22143         * cgraphbuild.c (build_cgraph_edges): Likewise.
22144         (rebuild_cgraph_edges): Likewise.
22145         (cgraph_rebuild_references): Likewise.
22146         (remove_cgraph_callee_edges): Likewise.
22147         * cgraphunit.c (cgraph_mark_if_needed): Likewise.
22148         (verify_cgraph_node): Likewise.
22149         (cgraph_analyze_functions): Likewise.
22150         (cgraph_preserve_function_body_p): Likewise.
22151         (save_inline_function_body): Likewise.
22152         (save_inline_function_body): Likewise.
22153         * tree-inline.c (copy_bb): Likewise.
22154         (optimize_inline_calls): Likewise.
22155
22156 2011-04-11  Martin Jambor  <mjambor@suse.cz>
22157
22158         PR tree-optimization/48195
22159         * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
22160         ipa_check_create_edge_args.
22161         (ipcp_generate_summary): Do not call ipa_check_create_node_params and
22162         ipa_check_create_edge_args.
22163         * ipa-inline.c (inline_generate_summary): Do not call
22164         ipa_check_create_node_params and ipa_check_create_edge_args.
22165         * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
22166         ipa_check_create_edge_args.
22167
22168 2011-04-09  Anatoly Sokolov  <aesok@post.ru>
22169
22170         * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
22171         instead of loop.
22172         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
22173         * function.c (record_hard_reg_sets): Likewise.
22174         * ira.c (compute_regs_asm_clobbered): Likewise.
22175         * sched-deps.c (sched_analyze_1): Likewise.
22176         * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
22177
22178 2011-04-09  Xinliang David Li  <davidxl@google.com>
22179
22180         PR tree-optimization/PR48484
22181         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
22182         has_valid_pred lazily
22183
22184 2011-04-09  Duncan Sands  <baldrick@free.fr>
22185
22186         * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
22187
22188 2011-04-08  Eric Botcazou  <ebotcazou@adacore.com>
22189
22190         * combine.c (combine_validate_cost): Adjust comments.  Set registered
22191         cost of I0 to zero at the end, if any.
22192
22193 2011-04-08  Xinliang David Li  <davidxl@google.com>
22194
22195         * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
22196         to insane profile data.
22197
22198 2011-04-08  Xinliang David Li  <davidxl@google.com>
22199
22200         * ipa-cp.c (ipcp_update_profiling): Correct
22201          negative scale factor due to insane profile data.
22202
22203 2011-04-08  Xinliang David Li  <davidxl@google.com>
22204
22205         * final.c (dump_basic_block_info): New function.
22206         (final): Dump basic block.
22207         (final_scan_insn): Remove old dump.
22208
22209 2011-04-08  Steven G. Kargl  <kargl@gcc.gnu.org>
22210
22211         PR target/47829
22212         * config.gcc (i386-*-freebsd): Disable unwind table generation for
22213         crtbegin/crtend.
22214
22215 2011-04-08  Michael Matz  <matz@suse.de>
22216
22217         PR middle-end/48389
22218         * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
22219         functions.
22220         (rebuild_jump_labels): Call rebuild_jump_labels_1.
22221         * rtl.h (rebuild_jump_labels_chain): Declare.
22222         * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
22223         insns inserted on edges.
22224
22225 2011-04-08  Joseph Myers  <joseph@codesourcery.com>
22226
22227         * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
22228         * config/arm/arm-arches.def: New.
22229         * config/arm/arm-opts.h: New.
22230         * config/arm/genopt.sh: New.
22231         * config/arm/arm-tables.opt: New (generated).
22232         * config/arm/arm.c (arm_handle_option, arm_target_help,
22233         TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
22234         (all_architectures): Get most table contents from arm-arches.def.
22235         (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
22236         arm_selected_tune here.
22237         * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
22238         * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
22239         (march=, mcpu=, mtune=): Use Enum and Var.
22240         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
22241         (arm.o): Update dependencies.
22242
22243 2011-04-08  Basile Starynkevitch  <basile@starynkevitch.net>
22244
22245         * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
22246         of header_file.
22247         (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
22248         (write_typed_alloc_defns): Likewise.
22249         (main): Calls write_typed_alloc_defns with output_header.
22250
22251 2011-04-08  Vladimir Makarov  <vmakarov@redhat.com>
22252
22253         PR inline-asm/48435
22254         * ira-color.c (setup_profitable_hard_regs): Add comments.
22255         Don't take prohibited hard regs into account.
22256         (setup_conflict_profitable_regs): Rename to
22257         get_conflict_profitable_regs.
22258         (check_hard_reg_p): Check prohibited hard regs.
22259
22260 2011-04-08  Nathan Froyd  <froydnj@codesourcery.com>
22261
22262         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
22263         * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
22264         * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
22265
22266 2011-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
22267
22268         PR target/48366
22269         * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
22270         move from floating point to shift amount register.
22271         (emit_move_sequence): Remove secondary reload support for floating
22272         point to shift amount amount register copies.
22273         (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
22274         amount register copies.
22275         * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
22276         register, return false if mode isn't a scalar integer mode.
22277         * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
22278
22279 2011-04-08  Richard Guenther  <rguenther@suse.de>
22280
22281         * gimple.c (gimple_call_flags): Remove kludge.
22282
22283 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
22284
22285         * sel-sched.c (sel_region_init): Move call to
22286         sel_setup_region_sched_flags after setup_current_loop_nest.
22287
22288 2011-04-08  Andrey Belevantsev  <abel@ispras.ru>
22289
22290         PR rtl-optimization/48272
22291         * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
22292         init_insn_reg_pressure_info.  Adjust a caller.
22293         * sched-int.h (init_insn_reg_pressure_info): Declare.
22294         * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
22295         when sched-pressure is enabled.
22296
22297 2011-04-08  Richard Guenther  <rguenther@suse.de>
22298
22299         * gimple.c (gimple_set_modified): Do not queue calls to
22300         MODIFIED_NORETURN_CALLS here ...
22301         * tree-ssa-operands.c (update_stmt_operands): ... but here.
22302
22303 2011-04-08  Richard Guenther  <rguenther@suse.de>
22304
22305         PR lto/48467
22306         * toplev.c (lang_dependent_init): Do not open asm_out_file
22307         in WPA mode, nor perform debug machinery initialization.
22308         (finalize): Do not unlink asm_out_file in WPA mode.
22309
22310 2011-04-08  Richard Guenther  <rguenther@suse.de>
22311
22312         * gimple.h (gimple_call_fntype): New function.
22313         (gimple_call_return_type): Use it.
22314         * expr.c (expand_expr_real_1): Use gimple_call_fntype.
22315         * gimple-low.c (gimple_check_call_args): Likewise.
22316         * gimple.c (gimple_call_flags): Likewise.
22317         (gimple_call_arg_flags): Likewise.
22318         (gimple_call_return_flags): Likewise.
22319         * tree-cfg.c (verify_gimple_call): Likewise.
22320         (do_warn_unused_result): Likewise.
22321         * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
22322         * value-prof.c (gimple_ic_transform): Fix fndecl check.
22323
22324 2011-04-08  Dmitry Melnik  <dm@ispras.ru>
22325
22326         PR rtl-optimization/48235
22327         * sel-sched.c (code_motion_process_successors): Recompute the last
22328         insn in basic block if control flow changed.
22329         (code_motion_path_driver): Ditto.  Recompute the first insn as well.
22330         Update condition for ilist_remove.
22331
22332 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
22333
22334         PR rtl-optimization/48302
22335         * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
22336         * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument.  Use
22337         it to record added preheader blocks.
22338         * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument.  Pass it
22339         on to sel_add_loop_preheaders.
22340         (sel_region_init): Move call to setup_current_loop_nest after
22341         sel_init_bbs.
22342
22343 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
22344
22345         PR target/48273
22346         * cfgloop.h (loop_has_exit_edges): New helper.
22347         * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
22348         non-clonable.
22349         * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
22350         that have no exit edges.
22351
22352 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
22353
22354         PR rtl-optimization/48442
22355         * sel-sched.c (init_seqno): Remove number_of_insns argument.  Update
22356         all callers.  Adjust assert.
22357
22358 2011-04-08  Jakub Jelinek  <jakub@redhat.com>
22359
22360         PR tree-optimization/48377
22361         * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
22362         is_packed to true even for types with smaller TYPE_ALIGN than
22363         TYPE_SIZE.
22364
22365 2011-04-08  Richard Guenther  <rguenther@suse.de>
22366
22367         PR bootstrap/48513
22368         * doc/tm.texi: Re-generate.
22369
22370 2011-04-08  Wei Guozhi  <carrot@google.com>
22371
22372         PR target/47855
22373         * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
22374         * config/arm/arm.c (arm_attr_length_push_multi): New function.
22375         * config/arm/arm.md (*push_multi): Change the length computation to
22376         call a C function.
22377
22378 2011-04-08  Anatoly Sokolov  <aesok@post.ru>
22379
22380         * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
22381         (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
22382         * doc/tm.texi: Regenerate.
22383         * system.h (ASM_OUTPUT_BSS): Poison.
22384         * varasm.c (asm_output_bss): Remove function.
22385         (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
22386
22387         * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
22388         * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
22389         * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
22390         * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
22391         Likewise.
22392         * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
22393         Likewise.
22394         * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
22395         Likewise.
22396         * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
22397
22398 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
22399
22400         * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
22401         EnumValue lines.
22402
22403 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
22404
22405         * config/m68k/m68k.c (m68k_handle_option): Don't handle
22406         OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
22407         OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
22408         OPT_mcpu32.
22409         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
22410         handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
22411         -m68030, -m68040, -m68060, -mcpu32 and -m68332.
22412         * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
22413         m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
22414         * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
22415         (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
22416         (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
22417         options.  Don't map other m68k options manually.  Don't handle
22418         old-style options as canonical.
22419         (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
22420         * doc/install.texi (m68k-*-*): Document binutils version requirement.
22421
22422 2011-04-07  Eric Botcazou  <ebotcazou@adacore.com>
22423
22424         * basic-block.h (force_nonfallthru): Move to...
22425         * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
22426         (force_nonfallthru): ...here.
22427         * cfghooks.c (force_nonfallthru): New function.
22428         * cfgrtl.c (force_nonfallthru): Rename into...
22429         (rtl_force_nonfallthru): ...this.
22430         (commit_one_edge_insertion): Do not set AUX field.
22431         (commit_edge_insertions): Do not discover new basic blocks.
22432         (rtl_cfg_hooks): Add rtl_force_nonfallthru.
22433         (cfg_layout_rtl_cfg_hooks): Likewise.
22434         * function.c (thread_prologue_and_epilogue_insns): Remove bogus
22435         ATTRIBUTE_UNUSED.  Discover new basic blocks in the prologue insns.
22436         * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
22437
22438 2011-04-07  Anatoly Sokolov  <aesok@post.ru>
22439
22440         * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
22441         Remove macros.
22442
22443 2011-04-07  Uros Bizjak  <ubizjak@gmail.com>
22444
22445         * config/i386/sse.md: Update copyright year.
22446         (avxcvtvecmode): Remove.
22447         (sse_movhlps): Merge with *avx_movhlps.
22448         (sse_movlhps): Merge with *avx_movlhps.
22449         (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
22450         (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
22451         (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
22452         (sse_loadhps): Merge with *avx_loadhps.
22453         (sse_storelps): Merge with *avx_storelps.
22454         (sse_loadlps): Merge with *avx_loadlps.
22455         (sse_movss): Merge with *avx_movss.
22456         (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
22457         (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
22458         (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
22459         (*vec_set<mode>_0_sse2): Split multi-unit alternative.
22460         (vec_set<mode>_0): Ditto.
22461         (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
22462         (sse4_1_insertps): Merge with *avx_insertps.
22463         (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
22464         (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
22465         (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
22466         (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
22467         (sse2_storehpd): Merge with *avx_storehpd.
22468         (sse2_loadhpd): Merge with *avx_loadhpd.
22469         (sse2_loadlpd): Merge with *avx_loadlpd.
22470         (sse2_movsd): Merge with *avx_movsd.
22471         (*vec_concatv2df): Merge with *vec_concatv2df.
22472
22473 2011-04-07  Jakub Jelinek  <jakub@redhat.com>
22474
22475         PR debug/48343
22476         * combine.c (combine_instructions): Add last_combined_insn,
22477         update it if insn is after it, pass it to all try_combine calls.
22478         (try_combine): Add last_combined_insn parameter, pass it instead of
22479         i3 to propagate_for_debug.
22480
22481 2011-04-07  Nick Clifton  <nickc@redhat.com>
22482
22483         * config/mn10300/mn10300.md (movqi_internal): Add alternatives
22484         to handle MDR <-> data register transfers.
22485         (movhi_internal): Likewise.
22486
22487 2011-04-07  Alan Modra  <amodra@gmail.com>
22488
22489         * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
22490         previous stack info.
22491
22492 2011-04-07  Tom de Vries  <tom@codesourcery.com>
22493
22494         PR target/43920
22495         * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter.  Pass dir to
22496         flow_find_cross_jump.  Swap variables to implement backward replacement.
22497         (try_crossjump_bb): Add argument to try_crossjump_to_edge.
22498
22499 2011-04-07  Tom de Vries  <tom@codesourcery.com>
22500
22501         PR target/43920
22502         * cfgcleanup.c (walk_to_nondebug_insn): New function.
22503         (flow_find_cross_jump): Use walk_to_nondebug_insn.  Recalculate bb1
22504         and bb2.
22505         (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
22506         src1 or src2.  Redirect edges to the last basic block.  Update
22507         frequency and count on multiple basic blocks in case of fallthru.
22508
22509 2011-04-07  Tom de Vries  <tom@codesourcery.com>
22510
22511         PR target/43920
22512         * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
22513         function.
22514         (old_insns_match_p): Change return type.  Replace return false/true
22515         with return dir_none/dir_both.  Use can_replace_by.
22516         (flow_find_cross_jump): Add dir_p parameter.  Init replacement
22517         direction from dir_p.  Register replacement direction in dir, last_dir
22518         and afterlast_dir.  Handle new return type of old_insns_match_p using
22519         merge_dir.  Return replacement direction in dir_p.
22520         (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
22521         return type of old_insns_match_p.
22522         (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
22523         * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
22524         flow_find_cross_jump.
22525         * basic-block.h (enum replace_direction): New type.
22526         (flow_find_cross_jump): Add parameter to declaration.
22527
22528 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
22529
22530         * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
22531         (AVXMODEDCVTPS2DQ): Ditto.
22532         (VEC_FLOAT_MODE): Ditto.
22533         (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3.  Use VF mode
22534         iterator.  Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
22535         (<any_logic:code><mode>3): Use VF mode iterator.
22536         (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
22537         Use VF mode iterator.
22538         (copysign<mode>3): Use VF mode iterator.
22539         (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3.  Handle
22540         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
22541         (*<any_logic:code><MODEF:mode>3): Merge with
22542         *avx_<any_logic:code><MODEF:mode>3.
22543         (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
22544         (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
22545         (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
22546         (avx_cvtdq2ps<avxmodesuffix>): Remove.
22547         (sse2_cvtdq2ps): Use %v modifier.
22548         (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
22549         (avx_cvtps2dq<avxmodesuffix>): Remove.
22550         (sse2_cvtps2dq): Use %v modifier.
22551         (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
22552         (avx_cvttps2dq<avxmodesuffix>): Remove.
22553         (sse2_cvttps2dq): Use %v modifier.
22554         (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
22555         (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
22556         (sse2_cvtsd2siq): Fix insn template.
22557         (sse2_cvtsd2siq_2): Ditto.
22558         (sse2_cvttsd2siq): Ditto.
22559         (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
22560         (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
22561
22562 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
22563
22564         * gcov-io.c: Use GCC Runtime Library Exception.
22565
22566 2011-04-06  Jakub Jelinek  <jakub@redhat.com>
22567
22568         PR debug/48466
22569         * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
22570         as base_reg whatever register reg has been eliminated to, instead
22571         of hardcoding STACK_POINTER_REGNUM.
22572
22573 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
22574
22575         * doc/tm.texi.in: Document C target hooks as separate from general
22576         target hooks.
22577         * doc/tm.texi: Regenerate.
22578         * genhooks.c (struct hook_desc): Add docname field.
22579         (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC).  Initialize
22580         docname field.
22581         (hook_array): Include c-target.def.
22582         (emit_documentation): Use docname field in output.
22583         (emit_init_macros): Take docname argument.  Only emit definitions
22584         for hooks matching docname.
22585         (main): Expect additional arguments in all cases.  Pass argument
22586         to emit_init_macros.
22587         * target.def: Move initial macro definitions and comments to
22588         target-hooks-macros.h.
22589         (gcc_targetcm): Move to c-family/c-target.def.
22590         * target.h (targetcm): Move declaration to c-family/c-target.h.
22591         * targhooks.c (default_handle_c_option): Move to
22592         c-family/c-opts.c.
22593         * targhooks.h (default_handle_c_option): Move declaration to
22594         c-family/c-common.h.
22595         * target-hooks-macros.h: New file.
22596         * config.gcc (target_has_targetcm): Define and use to add to
22597         c_target_objs and cxx_target_objs.
22598         * config/default-c.c: New file.
22599         * config/darwin-c.c: Include c-target.h and c-target-def.h instead
22600         of target.h and target-def.h.
22601         (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
22602         (darwin_objc_construct_string, darwin_cfstring_ref_p,
22603         darwin_check_cfstring_format_arg): Make static.
22604         (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
22605         TARGET_STRING_OBJECT_REF_TYPE_P,
22606         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
22607         * config/darwin-protos.h (darwin_objc_construct_string,
22608         darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
22609         declare.
22610         * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
22611         TARGET_STRING_OBJECT_REF_TYPE_P,
22612         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
22613         * config/t-darwin (darwin-c.o): Update dependencies.
22614         * system.h (TARGET_HAS_TARGETCM): Poison.
22615         * Makefile.in (TARGET_H): Update.
22616         (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
22617         (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
22618         (default-c.o): New target.
22619         (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
22620         (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
22621         (s-tm-texi): Pass -d option to genhooks.  Also test timestamp on
22622         c-target.def.
22623         (build/genhooks.o): Update dependencies.
22624
22625 2011-04-06  Richard Guenther  <rguenther@suse.de>
22626
22627         * ipa-inline.c (enum inlining_mode): Remove.
22628         (cgraph_flatten): Use some other token.
22629         (cgraph_edge_early_inlinable_p): New function, split out from ...
22630         (cgraph_perform_always_inlining): New function, split out from ...
22631         (cgraph_decide_inlining_incrementally): ... here.
22632         (cgraph_mark_inline_edge): Adjust.
22633         (cgraph_early_inlining): Re-structure.
22634         (pass_early_inline): Require SSA form.
22635
22636 2011-04-06  Andrew Stubbs  <ams@codesourcery.com>
22637             Julian Brown  <julian@codesourcery.com>
22638             Mark Shinwell  <shinwell@codesourcery.com>
22639
22640         * config/arm/arm.h (arm_class_likely_spilled_p): Check against
22641         LO_REGS only for Thumb-1.
22642         (MODE_BASE_REG_CLASS): Restrict base registers to those which can
22643         be used in short instructions when optimising for size on Thumb-2.
22644
22645 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
22646
22647         * gimple-low.c (lower_gimple_return): When not optimizing, force labels
22648         associated with user returns to be preserved.
22649
22650 2011-04-06  Tristan Gingold  <gingold@adacore.com>
22651
22652         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
22653         symbol_queue_size, DBXOUT_DECR_NESTING,
22654         (DBXOUT_DECR_NESTING_AND_RETURN): Also define
22655         if XCOFF_DEBUGGING_INFO.
22656
22657 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
22658
22659         * config/i386/i386.md (attribute isa): New.
22660         (attribute enabled): New.
22661         (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
22662         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
22663         (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
22664         (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
22665         (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
22666         (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
22667         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
22668         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
22669
22670         * config/i386/sse.md (VF): New mode iterator.
22671         (VF1): Ditto.
22672         (VF2): Ditto.
22673         (VF_128): Ditto.
22674         (SSEMODEF4): Remove.
22675         (attribute sse): Handle V8SF and V4DF modes.
22676         (<absneg:code><mode>2): Use VF mode iterator.
22677         (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2.  Use VF
22678         mode iterator.
22679         (<plusminus_insn><mode>3): Use VF mode iterator.
22680         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
22681         Use VF mode iterator.
22682         (<sse>_vm<plusminus_insn><mode>3): Merge with
22683         *avx_vm<plusminus_insn><mode>3.  Use VF_128 mode iterator.
22684         (mul<mode>3): Use VF mode iterator.
22685         (*mul<mode>3): Merge with *avx_mul<mode>3.  Use VF mode iterator.
22686         (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3.  Use VF_128
22687         mode iterator.
22688         (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
22689         (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
22690         (<sse>_div<mode>3): Merge with *avx_div<mode>3.  Use VF mode iterator.
22691         (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3.  Use VF_128
22692         mode iterator.
22693         (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
22694         Use VF1 mode iterator.
22695         (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
22696         (sqrt<VF2:mode>2): New expander.
22697         (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
22698         (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
22699         and sqrtv2df2.  Use VF mode iterator.
22700         (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2.  Use VF_128
22701         mode iterator.
22702         (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
22703         (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
22704         Use VF1 mode iterator.
22705         (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
22706         (<smaxmin:code><mode>3): Use VF mode iterator.
22707         (*<smaxmin:code><mode>3_finite): Merge with
22708         *avx_<smaxmin:code><mode>3_finite.  Use VF mode iterator.
22709         (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
22710         (<sse>_vm<smaxmin:code><mode>2): Merge with
22711         *avx_vm<smaxmin:code><mode>2.  Use VF_128 mode iterator.
22712         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.  Use VF
22713         mode iterator.
22714         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.  Use VF
22715         mode iterator.
22716         (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
22717         (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
22718         (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
22719         (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
22720         (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3.  Use
22721         VF mode iterator.
22722         (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
22723         Use VF_128 mode iterator.
22724         (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3.  Use VF
22725         mode iterator.
22726         (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3.  Use
22727         VF_128 mode iterator.
22728         (vcond<mode>): Use VF mode iterator.
22729         * config/i386/predicates.md (sse_comparison_operator): Merge with
22730         avx_comparison_float_operator.  Do not declare as special_predicate.
22731         * config/i386/i386.c (struct builtin_description): Update for renamed
22732         compare patterns.
22733         (ix86_expand_args_builtin): Ditto.
22734         (ix86_expand_sse_compare_mask): Ditto.
22735
22736 2011-04-06  Richard Guenther  <rguenther@suse.de>
22737
22738         * tree-inline.c (estimate_num_insns): For calls simply account
22739         for all passed arguments and a used return value.
22740
22741 2011-04-06  Richard Guenther  <rguenther@suse.de>
22742
22743         PR tree-optimization/47663
22744         * cgraph.h (struct cgraph_edge): Add call_stmt_size and
22745         call_stmt_time fields.
22746         (cgraph_edge_inlinable_p): Declare.
22747         (cgraph_edge_recursive_p): New inline function.
22748         * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
22749         (cgraph_clone_edge): Copy it.
22750         * ipa-inline.c (cgraph_estimate_edge_time): New function.
22751         Account for call stmt time.
22752         (cgraph_estimate_time_after_inlining): Take edge argument.
22753         (cgraph_estimate_edge_growth): Account call stmt size.
22754         (cgraph_estimate_size_after_inlining): Take edge argument.
22755         (cgraph_mark_inline_edge): Adjust.
22756         (cgraph_check_inline_limits): Likewise.
22757         (cgraph_recursive_inlining_p): Remove.
22758         (cgraph_edge_badness): Use cgraph_edge_recursive_p.
22759         (cgraph_decide_recursive_inlining): Take edge argument and
22760         adjust.
22761         (cgraph_decide_inlining_of_small_functions): Do not avoid
22762         diags for recursive inlining here.
22763         (cgraph_flatten): Adjust.
22764         (cgraph_decide_inlining_incrementally): Likewise.
22765         (estimate_function_body_sizes): Remove call cost handling.
22766         (compute_inline_parameters): Initialize caller edge call costs.
22767         (cgraph_estimate_edge_growth): New function.
22768         (cgraph_estimate_growth): Use it.
22769         (cgraph_edge_badness): Likewise.
22770         (cgraph_check_inline_limits): Take an edge argument.
22771         (cgraph_decide_inlining_of_small_functions): Adjust.
22772         (cgraph_decide_inlining): Likewise.
22773         * tree-inline.c (estimate_num_insns): Only account for call
22774         return value if it is used.
22775         (expand_call_inline): Avoid diagnostics on recursive inline
22776         functions here.
22777         * lto-cgraph.c (lto_output_edge): Output edge call costs.
22778         (input_edge): Input edge call costs.
22779
22780 2011-04-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22781
22782         * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
22783
22784 2011-04-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
22785
22786         * doc/invoke.texi (Spec Files): Fix typo.
22787
22788 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
22789
22790         * profile.c (branch_prob): Move declaration of local variable.  Remove
22791         obsolete ??? comment.  Expand the location explicitly instead of using
22792         the LOCATION_FILE and LOCATION_LINE macros.
22793
22794 2011-04-06  Wei Guozhi  <carrot@google.com>
22795
22796         PR target/47855
22797         * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
22798         (arm_cond_branch): Likewise.
22799         (arm_cond_branch_reversed): Likewise.
22800         (arm_jump): Likewise.
22801         (push_multi): Likewise.
22802         * config/arm/constraints.md (Py): New constraint.
22803
22804 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
22805
22806         PR bootstrap/48471
22807         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
22808         Move these...
22809         (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
22810         (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
22811         #ifdef DBX_DEBUGGING_INFO.
22812
22813 2011-04-05  Bernd Schmidt  <bernds@codesourcery.com>
22814
22815         PR bootstrap/48403
22816         * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
22817         if old and new states differ.
22818
22819 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
22820
22821         * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
22822         OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
22823         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
22824         handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
22825         * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
22826         mcfv4e): Use Alias.
22827         * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
22828         ColdFire options to -mcpu= options.
22829
22830 2011-04-05  Jeff Law  <law@redhat.com>
22831
22832         * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
22833         check if BB is a successor of LOOP->header and return
22834         NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
22835
22836 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
22837
22838         * cprop.c (struct reg_use): Remove.
22839         (reg_use_table): Make an array of RTX.
22840         (find_used_regs, constprop_register, local_cprop_pass,
22841         bypass_block): Simplify users of reg_use_table.
22842         (cprop_insn): Likewise.  Iterate if copy propagation succeeded
22843         on one of the uses found by find_used_regs.
22844
22845 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
22846
22847         PR bootstrap/48469
22848         * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
22849         declaration.
22850
22851 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
22852
22853         * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
22854         as an rtx.
22855         (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
22856
22857 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
22858
22859         PR middle-end/48441
22860         * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
22861
22862 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
22863
22864         * combine.c: Include obstack.h.
22865         (struct insn_link): Define.
22866         (uid_log_links): Adjust type.
22867         (FOR_EACH_LOG_LINK): New macro.
22868         (insn_link_obstack): Declare.
22869         (alloc_insn_link): Define.
22870         (create_log_links): Call it.  Use FOR_EACH_LOG_LINK and adjust
22871         type of link variables.
22872         (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
22873         (try_combine, record_promoted_values, distribute_notes): Likewise.
22874         (distribute_links): Likewise.  Tweak prototype.
22875         (clear_log_links): Delete.
22876         (adjust_for_new_dest): Call alloc_insn_link.
22877         * Makefile.in (combine.o): Depend on $(OBSTACK_H).
22878
22879 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
22880
22881         * gcse.c (modify_mem_list): Convert to an array of VECs.
22882         (canon_modify_mem_list, compute_transp): Tweak formatting.
22883         (alloc_gcse_mem): Likewise.  Adjust for modify_mem_list change.
22884         (load_killed_in_block_p): Likewise.
22885         (record_last_mem_set_info): Likewise.
22886         (clear_modify_mem_tables): Likewise.
22887
22888 2011-04-05  Tom de Vries  <tom@codesourcery.com>
22889
22890         PR middle-end/48461
22891         * function.c (emit_use_return_register_into_block): Only define if
22892         HAVE_return.
22893
22894 2011-04-05  Eric Botcazou  <ebotcazou@adacore.com>
22895
22896         * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
22897
22898 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
22899
22900         * config/rx/rx-opts.h: New.
22901         * config/rx/rx.c (rx_cpu_type): Remove.
22902         (rx_handle_option): Don't assert that global structures are in
22903         use.  Access variables via opts pointer.  Defer most handling of
22904         OPT_mint_register_.  Use error_at.
22905         (rx_option_override): Handle deferred OPT_mint_register_ here.
22906         * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
22907         * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
22908         (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
22909         (rx_cpu_types): New Enum and EnumValue entries.
22910         (mint-register=): Use Defer and use Var accordingly.
22911
22912 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
22913
22914         * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
22915         (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
22916         * final.c (debug_flush_symbol_queue, debug_queue_symbol):
22917         Move these...
22918         (debug_free_queue, debug_nesting, symbol_queue_index):
22919         ...and these...
22920         * dbxout.c: ...to here.  Make static.
22921
22922 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
22923
22924         * gcse.c (modify_pair): Define.  Define a VEC of it.
22925         (canon_modify_mem_list): Convert to an array of VECs.
22926         (free_insn_expr_list_list): Delete.
22927         (clear_modify_mem_tables): Call VEC_free instead.
22928         (record_last_mem_set_info): Don't modify canon_modify_mem_list.
22929         (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
22930         (canon_list_insert, compute_transp): Likewise.
22931
22932 2011-04-05  Tom de Vries  <tom@codesourcery.com>
22933
22934         PR target/43920
22935         * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
22936         for size.
22937
22938 2011-04-05  Tom de Vries  <tom@codesourcery.com>
22939
22940         PR target/43920
22941         * function.c (emit_use_return_register_into_block): New function.
22942         (thread_prologue_and_epilogue_insns): Use
22943         emit_use_return_register_into_block.
22944
22945 2011-04-05  Tom de Vries  <tom@codesourcery.com>
22946
22947         PR target/43920
22948         * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
22949         insn.
22950
22951 2011-04-05  Tom de Vries  <tom@codesourcery.com>
22952
22953         * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
22954
22955 2011-04-05  Yufeng Zhang  <yufeng.zhang@arm.com>
22956
22957         * config/arm/arm.md (define_constants for unspec): Replace with
22958         define_c_enum.
22959         (define_constants for unspecv): Replace with define_c_enum.
22960         * config/arm/neon.md (define_constants for unspec): Replace with
22961         define_c_enum.
22962
22963 2011-04-04  Richard Henderson  <rth@redhat.com>
22964
22965         PR bootstrap/48400
22966         * dwarf2out.c (output_line_info): Always emit line info from
22967         at least one section.
22968         (dwarf2out_init): Create text_section_line_info here ...
22969         (set_cur_line_info_table): ... not here.
22970
22971 2011-04-04  Vladimir Makarov  <vmakarov@redhat.com>
22972
22973         PR target/48380
22974         * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
22975         not called.
22976
22977         * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
22978
22979 2011-04-04  Steven Bosscher  <steven@gcc.gnu.org>
22980
22981         * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
22982         (expr_equiv_p): Remove.
22983         (insert_set_in_table): Look at <dest, src> pair instead of expr.
22984         (hash_scan_set): Update call to insert_set_in_table.
22985         (dump_hash_table): Dump <dest, src> pair.
22986         (lookup_set): Simplify.  Lookup <dest, src> pair.
22987         (compute_transp): Remove, fold heavily simplified code into...
22988         (compute_local_properties): ...here.  Expect COMP and TRANSP
22989         unconditionally.
22990         (find_avail_set): Take set directly from struct expr.
22991         (find_bypass-set): Likewise.
22992         (bypass_block): Likewise.
22993         (cprop_insn): Likewise.  Remove redundant INSN_P test.
22994
22995         * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
22996         checks on form of COND from find_implicit_sets to here.
22997         (find_implicit_sets): Cleanup control flow. Split critical edges
22998         if it exposes implicit sets.  Allocate/resize implicit_sets as
22999         necessary.
23000         (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
23001         changed something.  Run df_analyze after find_implicit_sets if any
23002         edges were split.  Do not allocate implicit_sets here.
23003
23004         * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
23005         (gcse_obstack): Renamed to cprop_obstack.
23006         (GNEW, GNEWVEC, GNEWVAR): Remove.
23007         (gmalloc): Remove.
23008         (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
23009         (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
23010         (gcse_alloc): Likewise, and rename to cprop_alloc.
23011         (alloc_gcse_men, free_gcse_mem): Remove.
23012         (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
23013         (compute_hash_table_work): Allocate and free reg_set_bitmap here.
23014         (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
23015
23016         * cprop.c (oprs_not_set_p): Remove.
23017         (mark_set, mark_clobber): Remove.
23018         (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
23019         (reg_not_set_p): New function.
23020         (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
23021         (cprop_insn): Likewise.
23022         (cprop_jump): Use FOR_EACH_EDGE.
23023
23024 2011-04-04  Bernd Schmidt  <bernds@codesourcery.com>
23025
23026         PR bootstrap/48403
23027         * haifa-sched.c (nonscheduled_insns_begin): New static variable.
23028         (rank_for_schedule): Use scheduled_insns vector instead of
23029         last_scheduled_insn.
23030         (ok_for_early_queue_removal): Likewise.
23031         (queue_to_ready): Search forward in nonscheduled_insns_begin if
23032         we have a dbg_cnt.
23033         (choose_ready): Likewise.
23034         (commit_schedule): Use VEC_iterate.
23035         (schedule_block): Initialize nonscheduled_insns_begin.  If we have
23036         a dbg_cnt, use it and ensure the first insn is in the ready list.
23037         (haifa_sched_init): Allocate scheduled_insns.
23038         (sched_extend_ready_list): Don't allocate it; reserve space.
23039         (haifa_sched_finish): Free it.
23040
23041 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
23042
23043         * optc-gen.awk: Always remove type from Variable entry before
23044         recording in var_seen.
23045
23046 2011-04-04  Eric Botcazou  <ebotcazou@adacore.com>
23047
23048         * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
23049         * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
23050         call to tidy_fallthru_edges.
23051
23052 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
23053
23054         * doc/options.texi (ToLower): Document.
23055         * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
23056         * opts-common.c (decode_cmdline_option): Handle cl_tolower.
23057         * opts.h (cl_option): Add cl_tolower field.
23058         * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
23059         arguments with lowercase strings.
23060         * config/rx/rx.opt (mcpu=): Add ToLower.
23061         * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
23062         argument.
23063
23064 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
23065
23066         * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
23067
23068 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
23069
23070         * config/vax/vax.c: Include reload.h.
23071
23072 2011-04-04  Anatoly Sokolov  <aesok@post.ru>
23073
23074         * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
23075         * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
23076         (sparc_preferred_reload_class): New function.
23077
23078 2011-04-04  Jakub Jelinek  <jakub@redhat.com>
23079
23080         PR debug/48401
23081         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
23082         Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
23083
23084 2011-04-03  Nathan Froyd  <froydnj@codesourcery.com>
23085
23086         * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
23087         * tree.c (initialize_tree_contains_struct): Adjust accordingly.
23088
23089 2011-04-03  Anatoly Sokolov  <aesok@post.ru>
23090
23091         * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
23092         (ASM_OUTPUT_ALIGNED_BSS): Define.
23093
23094 2011-04-03  Michael Matz  <matz@suse.de>
23095
23096         * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
23097         and next_slot members.
23098         (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
23099         lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
23100         (lto_streamer_cache_append): Declare.
23101         * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
23102         unsigned index, remove offset parameter, ensure that we append
23103         or update existing entries.
23104         (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
23105         parameter, update next_slot for append.
23106         (lto_streamer_cache_insert): Use unsigned index, remove offset_p
23107         parameter.
23108         (lto_streamer_cache_insert_at): Likewise.
23109         (lto_streamer_cache_append): New function.
23110         (lto_streamer_cache_lookup): Use unsigned index.
23111         (lto_streamer_cache_get): Likewise.
23112         (lto_record_common_node): Don't test tree_node_can_be_shared.
23113         (preload_common_node): Adjust call to lto_streamer_cache_insert.
23114         (lto_streamer_cache_delete): Don't free offsets member.
23115         * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
23116         (lto_output_string_with_length): Use lto_output_data_stream.
23117         (lto_output_tree_header): Remove ix parameter, don't write it.
23118         (lto_output_builtin_tree): Likewise.
23119         (lto_write_tree): Adjust callers to above, don't track and write
23120         offset, write unsigned index.
23121         (output_unreferenced_globals): Don't emit all global vars.
23122         (write_global_references): Use unsigned indices.
23123         (lto_output_decl_state_refs): Likewise.
23124         (write_symbol): Likewise.
23125         * lto-streamer-in.c (lto_input_chain): Move earlier.
23126         (input_function): Use unsigned index.
23127         (input_alias_pairs): Don't read and then ignore all global vars.
23128         (lto_materialize_tree): Remove ix_p parameter, don't read index,
23129         don't pass it back, use lto_streamer_cache_append.
23130         (lto_register_var_decl_in_symtab): Use unsigned index.
23131         (lto_register_function_decl_in_symtab): Likewise.
23132         (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
23133         index.
23134         (lto_get_builtin_tree): Don't read index, use
23135         lto_streamer_cache_append.
23136         (lto_read_tree): Adjust call to lto_materialize_tree.
23137
23138         * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
23139         don't use function calls in arguments to MIN.
23140
23141         * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
23142         twice.
23143
23144         * gimple.c (gimple_type_leader_entry): Mark deletable.
23145
23146 2011-04-03  Alan Modra  <amodra@gmail.com>
23147
23148         * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
23149
23150 2011-04-03  Michael Matz  <matz@suse.de>
23151
23152         * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
23153         an integer.
23154         * tree.h (tree_decl_non_common.vindex): Adjust comment.
23155
23156 2011-04-03  Michael Matz  <matz@suse.de>
23157
23158         * cgraphbuild.c (record_reference): Canonicalize constructor values.
23159         * gimple-fold.c (canonicalize_constructor_val): Accept being called
23160         without function context.
23161         * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
23162         current_function_decl and cfun.
23163
23164 2011-04-03  Michael Matz  <matz@suse.de>
23165
23166         * tree.c (decl_init_priority_insert): Don't create entry for
23167         default priority.
23168         (decl_fini_priority_insert): Ditto.
23169         (fields_compatible_p, find_compatible_field): Remove.
23170         * tree.h (fields_compatible_p, find_compatible_field): Remove.
23171         * gimple.c (gimple_compare_field_offset): Adjust block comment.
23172
23173 2011-04-03  Eric Botcazou  <ebotcazou@adacore.com>
23174
23175         * combine.c (try_combine): Remove useless local variable.
23176
23177 2011-04-03  Richard Guenther  <rguenther@suse.de>
23178             Ira Rosen  <ira.rosen@linaro.org>
23179
23180         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
23181         non-variable offsets and compare the remaining bases of the two
23182         accesses instead of looking for exact same data-ref.
23183
23184 2011-04-02  Kai Tietz  <ktietz@redhat.com>
23185
23186         PR target/48416
23187         * i386.c (ix86_function_arg_boundary): Fix printf formatter.
23188
23189         * i386.c (ix86_is_msabi_thiscall): New helper function.
23190         (ix86_is_type_thiscall): New helper function.
23191         (ix86_comp_type_attributes): Handle thiscall for method-functions
23192         special.
23193         (init_cumulative_args): Likewise.
23194         (find_drap_reg): Likewise.
23195         (ix86_static_chain): Likewise.
23196         (x86_this_parameter): Likewise.
23197         (x86_output_mi_thunk): Likewise.
23198
23199 2011-04-01  Olivier Hainque  <hainque@adacore.com>
23200             Nicolas Setton  <setton@adacore.com>
23201             Eric Botcazou  <ebotcazou@adacore.com>
23202
23203         * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
23204         (add_gnat_descriptive_type_attribute): New function.
23205         (gen_array_type_die): Call it.
23206         (gen_enumeration_type_die): Likewise.
23207         (gen_struct_or_union_type_die): Likewise.
23208         (modified_type_die): Likewise.
23209         * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
23210         * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
23211         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
23212
23213 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
23214
23215         PR bootstrap/48148
23216         * dwarf2out.c (resolve_addr): Don't call force_decl_die
23217         if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
23218
23219         Revert:
23220         2011-03-17  Richard Guenther  <rguenther@suse.de>
23221
23222         PR bootstrap/48148
23223         * lto-cgraph.c (input_overwrite_node): Clear the abstract
23224         origin for decls in other ltrans units.
23225         (input_varpool_node): Likewise.
23226
23227 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
23228
23229         PR middle-end/48335
23230         * expr.c (expand_assignment): Handle all possibilities
23231         if TO_RTX is CONCAT.
23232         * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
23233         (store_split_bit_field): If SUBREG_REG (op0) or
23234         op0 itself has smaller mode than word, return it
23235         for offset 0 and const0_rtx for out-of-bounds stores.
23236         If word is const0_rtx, skip it.
23237
23238 2011-04-01  Naveen H.S  <naveen.S@kpitcummins.com>
23239
23240         * config/h8300/h8300.c (print_operand_address): Rename to...
23241         (h8300_print_operand_address): ...this. Make static. Adjust comments.
23242         Call h8300_print_operand and h8300_print_operand_address instead of
23243         print_operand and print_operand_address. Declare.
23244         (print_operand): Renake to...
23245         (h8300_print_operand): ...this. Make static. Adjust comments.
23246         Call h8300_print_operand instead of print_operand. Declare.
23247         (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
23248         (h8300_register_move_cost): Likewise.
23249         (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
23250         TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
23251         * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
23252         PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
23253         * config/h8300/h8300-protos.h (print_operand): Delete.
23254         (print_operand_address): Delete.
23255
23256 2011-04-01  Richard Henderson  <rth@redhat.com>
23257
23258         PR 48400
23259         * dwarf2out.c (dwarf2out_source_line): Disable discriminators
23260         in strict mode before dwarf4.  Re-order tests to early out
23261         before switching sections.
23262
23263 2011-04-01  Nathan Froyd  <froydnj@codesourcery.com>
23264
23265         * config/h8300/constraints.md: New file.
23266         * config/h8300/h8300.md: Include it.  Use satisfies_constraint_J,
23267         satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
23268         (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
23269         * config/h8300/predicates.md (bit_operand): Likewise.
23270         (incdec_operand): Use satisfies_constraint_M and
23271         satisfies_constraint_O.  Don't use C code block.
23272         * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
23273         * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
23274         (compute_mov_length): Use satisfies_constraint_G.
23275         (fix_bit_operand): Use satisfies_constraint_U.
23276         * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
23277         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
23278         (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
23279         (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
23280         (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
23281         (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
23282         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
23283         (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
23284         (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
23285         (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
23286         (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
23287         (EXTRA_MEMORY_CONSTRAINT): Delete.
23288
23289 2011-04-01  Andrew Pinski  <pinskia@gmail.com>
23290             Michael Meissner  <meissner@linux.vnet.ibm.com>
23291
23292         PR target/48262
23293         * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
23294         operands, as per the specifications.
23295
23296         * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
23297         (vec_extract_evenv4sf): Ditto.
23298         (vec_extract_evenv8hi): Ditto.
23299         (vec_extract_evenv16qi): Ditto.
23300         (vec_extract_oddv4si): Ditto.
23301
23302 2011-03-31  Mark Wielaard  <mjw@redhat.com>
23303
23304         * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
23305         high_pc attribute if the CU has no associated code. Only output
23306         DW_AT_entry_pc for CU if not generating strict dwarf and
23307         dwarf_version < 4.
23308
23309 2011-04-01  Bernd Schmidt  <bernds@codesourcery.com>
23310
23311         * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
23312         * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
23313         out of ...
23314         (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
23315         * final.c (final_start_function): Call the new function rather
23316         than using a NULL argument for dwarf2out_frame_debug.
23317
23318         * ifcvt.c (cond_exec_process_insns): Disallow converting a block
23319         that contains the prologue.
23320
23321         * haifa-sched.c (queue_insn): New arg REASON.  All callers
23322         changed.  Print it in debugging output.
23323
23324         * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
23325
23326         * sched-ebb.c (begin_schedule_ready): Remove second argument.
23327         Split most of the code into...
23328         (begin_move_insn): ... here.  New function.
23329         (ebb_sched_info): Add a pointer to it.
23330         * haifa-sched.c (scheduled_insns): New static variable.
23331         (sched_extend_ready_list): Allocate it.
23332         (schedule_block): Use it to record the order of scheduled insns.
23333         Perform RTL changes to move insns only after all scheduling
23334         decisions have been made.
23335         * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
23336         begin_move_insn field.
23337         * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
23338         * sched-int.h (struct haifa_sched_info): Remove second argument
23339         from begin_schedule_ready hook.  Add new member begin_move_insn.
23340         * sched-rgn.c (begin_schedule_ready): Remove second argument.
23341         (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
23342
23343         * haifa-sched.c (prune_ready_list): New function, broken out of
23344         schedule_block.
23345         (schedule_block): Use it.
23346
23347 2011-04-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
23348
23349         * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
23350
23351 2011-04-01  Kai Tietz  <ktietz@redhat.com>
23352
23353         * config.gcc (*-*-mingw*): Allow as option the
23354         posix threading model.
23355         * config/i386/mingw32.h (SPEC_PTHREAD1,  SPEC_PTHREAD2):
23356         New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
23357         definition.
23358         (CPP_SPEC): Add pthread/no-pthread handling.
23359         (LIB_SPEC): Likewise.
23360         * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
23361         (LIB_SPEC): Likewise.
23362         * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
23363         flag to pass -pthread option for shared libgcc build.
23364         (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
23365         for shared libgcc build.
23366         * config/i386/t-mingw-pthread: New file.
23367         * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
23368         New define to enable use of library pthread by default.
23369         * config/i386/mingw.opt (pthread): New driver option.
23370         (no-pthread): New driver option.
23371         * config/i386/cygming.opt: Make sure trailing empty line is retained.
23372         * config/i386/mingw-w64.opt: Likewise.
23373
23374 2011-04-01  Gary Funck  <gary@intrepid.com>
23375
23376         * c-decl.c (grokdeclarator): Fix formatting.
23377
23378 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
23379
23380         * expr.c (emit_block_move_via_movmem): Use n_generator_args
23381         instead of n_operands.
23382         (set_storage_via_setmem): Likewise.
23383         * optabs.c (maybe_gen_insn): Likewise.
23384         * config/arm/arm.c (arm_init_neon_builtins): Likewise.
23385         * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
23386         (mips_expand_builtin_direct): Likewise.
23387         * config/spu/spu.c (expand_builtin_args): Likewise.
23388
23389 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
23390
23391         * recog.h (insn_data_d): Add n_generator_args.
23392         * genoutput.c (data): Likewise.
23393         (output_insn_data): Print it.
23394         (max_opno, num_dups): Delete.
23395         (scan_operands): Just fill in "d->operand[...]".
23396         (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
23397
23398 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
23399
23400         * gensupport.h (pattern_stats): New structure.
23401         * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
23402         * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
23403         (max_operand_1, max_operand_vec): Delete.
23404         (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
23405
23406 2011-03-31  Nathan Froyd  <froydnj@codesourcery.com>
23407
23408         * emit-rtl.c (emit_pattern_after_setloc): New function.
23409         (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
23410         (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
23411         (emit_pattern_after): New function.
23412         (emit_insn_after, emit_jump_insn_after): Call it.
23413         (emit_call_insn_after, emit_debug_insn_after): Likewise.
23414         (emit_pattern_before_setloc): New function.
23415         (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
23416         (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
23417         Likewise.
23418         (emit_pattern_before): New function.
23419         (emit_insn_before, emit_jump_insn_before): Call it.
23420         (emit_call_insn_before, emit_debug_insn_before): Likewise.
23421
23422 2011-03-31  Richard Henderson  <rth@redhat.com>
23423
23424         * dwarf2out.c (dw_separate_line_info_ref): Remove.
23425         (dw_separate_line_info_entry): Remove.
23426         (enum dw_line_info_opcode): New.
23427         (dw_line_info_entry): Use it.
23428         (dw_line_info_table, dw_line_info_table_p): New.
23429         (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
23430         (line_info_table, line_info_label_num): Remove.
23431         (line_info_table_in_use): Remove.
23432         (separate_line_info_table): Remove.
23433         (separate_line_info_table_allocated): Remove.
23434         (separate_line_info_table_in_use): Remove.
23435         (LINE_INFO_TABLE_INCREMENT): Remove.
23436         (line_info_label_num): New.
23437         (cur_line_info_table): New.
23438         (text_section_line_info, cold_text_section_line_info): New.
23439         (separate_line_info): New.
23440         (SEPARATE_LINE_CODE_LABEL): Remove.
23441         (print_dwarf_line_table): Remove.
23442         (debug_dwarf): Don't dump it.
23443         (output_one_line_info_table): New.
23444         (output_line_info): Use it.
23445         (new_line_info_table): New.
23446         (set_cur_line_info_table): New.
23447         (dwarf2out_switch_text_section): Use it.
23448         (dwarf2out_begin_function): Likewise.
23449         (push_dw_line_info_entry): New.
23450         (dwarf2out_source_line): Rewrite for new line info tables.
23451         (dwarf2out_init): Remove dead initailizations.
23452
23453 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
23454
23455         * opts.h (cl_option): Add comments to fields.  Add bit-fields for
23456         various flags.
23457         (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
23458         CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
23459         CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
23460         CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
23461         (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
23462         * opt-functions.awk (flag_init, switch_bit_fields): New.
23463         (switch_flags): Don't handle flags moved to bit-fields.  Don't
23464         generate CL_MISSING_OK or CL_SAVE.
23465         * optc-gen.awk: Update to generate bit-field output as well as
23466         flags field.
23467         * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
23468         bit-field instead of CL_REJECT_DRIVER flag.
23469         * opts-common.c (generate_canonical_option,
23470         decode_cmdline_option): Use bit-fields instead of CL_* flags.
23471         * opts.c (maybe_default_option): Use cl_reject_negative bit-field
23472         instead of CL_REJECT_NEGATIVE flag.
23473         * toplev.c (print_switch_values): Use cl_report bit-field instead
23474         of CL_REPORT flag.
23475
23476 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
23477
23478         * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
23479         a zero minimum index only if it is redundant.
23480
23481 2011-03-31  Vladimir Makarov  <vmakarov@redhat.com>
23482
23483         PR rtl-optimization/48381
23484         * ira-color.c (assign_hard_reg): Use hard reg set intersection
23485         instead of ira_class_hard_reg_index for calculating conflicting
23486         hard registers.
23487
23488 2011-03-31  Steven Bosscher  <steven@gcc.gnu.org>
23489
23490         * cprop.c: Clean up hash table building.
23491         (reg_avail_info): Remove.
23492         (oprs_available_p): Remove.
23493         (record_last_reg_set_info): Remove.
23494         (record_last_set_info): Remove.
23495         (reg_available_p): New function.
23496         (gcse_constant_p): Do not treat unfolded conditions as constants.
23497         (make_set_regs_unavailable): New function.
23498         (hash_scan_set): Simplify with new reg_available_p.
23499         (compute_hash_table_work): Traverse insns stream only once.
23500         Do not compute reg_avail_info. Traverse insns in reverse order.
23501         Record implicit sets after recording explicit sets from the block.
23502
23503 2011-03-31  Michael Matz  <matz@suse.de>
23504
23505         * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
23506
23507 2011-03-31  Anatoly Sokolov  <aesok@post.ru>
23508
23509         * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
23510         * config/h8300/h8300-protos.h (h8300_get_index): Remove.
23511         * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
23512         (h8300_mode_dependent_address_p): New function.
23513         (h8300_get_index): Make static.
23514
23515 2011-03-31  Jeff Law  <law@redhat.com>
23516
23517         * reload1.c (elimination_effects): Fix typo in recent change.
23518
23519         * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
23520         typo potentially leading to null pointer dereference.
23521
23522         * caller-save.c (new_saved_hard_reg): Eliminate return value.
23523         (setup_save_areas): Corresponding changes to avoid useless
23524         assignments.
23525
23526         * jump.c (reversed_comparison_code_parts): Avoid successive return
23527         statements when REVERSE_CONDITION is defined.
23528
23529         * expr.c (expand_assignment): Avoid useless assignments.
23530         (expand_expr_real_1): Likewise.
23531         (expand_expr_real_2): Avoid useless statements.
23532
23533         * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
23534
23535         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
23536
23537         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
23538         statements.
23539
23540         * stmt.c (expand_expr_stmt): Avoid useless assignment.
23541
23542 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
23543
23544         PR target/47109
23545         * doc/tm.texi.in (TARGET_VERSION): Remove.
23546         * doc/tm.texi: Regenerate.
23547         * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
23548         * collect2.c (main): Don't use TARGET_VERSION.
23549         * mips-tdump.c (main): Don't use TARGET_VERSION.
23550         * mips-tfile.c (main): Don't use TARGET_VERSION.
23551         * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
23552         * config/rs6000/vxworksae.h: Remove.
23553         * config/alpha/alpha.h (TARGET_VERSION): Remove.
23554         * config/alpha/freebsd.h (TARGET_VERSION): Remove.
23555         * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
23556         * config/alpha/netbsd.h (TARGET_VERSION): Remove.
23557         * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
23558         * config/arm/arm.h (TARGET_VERSION): Remove.
23559         * config/arm/coff.h (TARGET_VERSION): Remove.
23560         * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
23561         * config/arm/elf.h (TARGET_VERSION): Remove.
23562         * config/arm/freebsd.h (TARGET_VERSION): Remove.
23563         * config/arm/linux-elf.h (TARGET_VERSION): Remove.
23564         * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
23565         * config/arm/pe.h (TARGET_VERSION): Remove.
23566         * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
23567         * config/arm/semi.h (TARGET_VERSION): Remove.
23568         * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
23569         * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
23570         * config/arm/vxworks.h (TARGET_VERSION): Remove.
23571         * config/avr/avr.h (TARGET_VERSION): Remove.
23572         * config/bfin/bfin.h (TARGET_VERSION): Remove.
23573         * config/fr30/fr30.h (TARGET_VERSION): Remove.
23574         * config/frv/frv.h (TARGET_VERSION): Remove.
23575         * config/h8300/h8300.h (TARGET_VERSION): Remove.
23576         * config/i386/cygwin.h (TARGET_VERSION): Remove.
23577         * config/i386/darwin.h (TARGET_VERSION): Remove.
23578         * config/i386/darwin64.h (TARGET_VERSION): Remove.
23579         * config/i386/djgpp.h (TARGET_VERSION): Remove.
23580         * config/i386/freebsd.h (TARGET_VERSION): Remove.
23581         * config/i386/freebsd64.h (TARGET_VERSION): Remove.
23582         * config/i386/gnu.h (TARGET_VERSION): Remove.
23583         * config/i386/i386-interix.h (TARGET_VERSION): Remove.
23584         * config/i386/i386elf.h (TARGET_VERSION): Remove.
23585         * config/i386/linux.h (TARGET_VERSION): Remove.
23586         * config/i386/linux64.h (TARGET_VERSION): Remove.
23587         * config/i386/lynx.h (TARGET_VERSION): Remove.
23588         * config/i386/mingw32.h (TARGET_VERSION): Remove.
23589         * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
23590         * config/i386/netbsd64.h (TARGET_VERSION): Remove.
23591         * config/i386/netware.h (TARGET_VERSION): Remove.
23592         * config/i386/nto.h (TARGET_VERSION): Remove.
23593         * config/i386/openbsd.h (TARGET_VERSION): Remove.
23594         * config/i386/vxworks.h (TARGET_VERSION): Remove.
23595         * config/ia64/elf.h (TARGET_VERSION): Remove.
23596         * config/ia64/freebsd.h (TARGET_VERSION): Remove.
23597         * config/ia64/hpux.h (TARGET_VERSION): Remove.
23598         * config/ia64/linux.h (TARGET_VERSION): Remove.
23599         * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
23600         * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
23601         TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
23602         * config/lm32/lm32.h (TARGET_VERSION): Remove.
23603         * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
23604         * config/m32c/m32c.h (TARGET_VERSION): Remove.
23605         * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
23606         * config/m32r/m32r.h (TARGET_VERSION): Remove.
23607         * config/m68k/linux.h (TARGET_VERSION): Remove.
23608         * config/m68k/m68k.h (TARGET_VERSION): Remove.
23609         * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
23610         * config/m68k/uclinux.h (TARGET_VERSION): Remove.
23611         * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
23612         * config/mep/mep.h (TARGET_VERSION): Remove.
23613         * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
23614         MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
23615         * config/mips/iris6.h (MACHINE_TYPE): Remove.
23616         * config/mips/linux.h (TARGET_VERSION): Remove.
23617         * config/mips/netbsd.h (MACHINE_TYPE): Remove.
23618         * config/mips/vxworks.h (TARGET_VERSION): Remove.
23619         * config/mmix/mmix.h (TARGET_VERSION): Remove.
23620         * config/mn10300/linux.h (TARGET_VERSION): Remove.
23621         * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
23622         * config/pa/pa.h (TARGET_VERSION): Remove.
23623         * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
23624         * config/picochip/picochip.h (TARGET_VERSION): Remove.
23625         * config/rs6000/aix.h (TARGET_VERSION): Remove.
23626         * config/rs6000/darwin.h (TARGET_VERSION): Remove.
23627         * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
23628         * config/rs6000/eabi.h (TARGET_VERSION): Remove.
23629         * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
23630         * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
23631         * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
23632         * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
23633         * config/rs6000/linux.h (TARGET_VERSION): Remove.
23634         * config/rs6000/linux64.h (TARGET_VERSION): Remove.
23635         * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
23636         * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
23637         * config/rs6000/lynx.h (TARGET_VERSION): Remove.
23638         * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
23639         * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
23640         * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
23641         * config/s390/linux.h (TARGET_VERSION): Remove.
23642         * config/s390/s390.h (TARGET_VERSION): Remove.
23643         * config/s390/tpf.h (TARGET_VERSION): Remove.
23644         * config/score/score.h (TARGET_VERSION): Remove.
23645         * config/sh/linux.h (TARGET_VERSION): Remove.
23646         * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
23647         TARGET_VERSION_CPU, TARGET_VERSION): Remove.
23648         * config/sh/sh.h (TARGET_VERSION): Remove.
23649         * config/sh/sh64.h (TARGET_VERSION): Remove.
23650         * config/sh/superh.h (TARGET_VERSION): Remove.
23651         * config/sh/vxworks.h (TARGET_VERSION): Remove.
23652         * config/sparc/freebsd.h (TARGET_VERSION): Remove.
23653         * config/sparc/linux.h (TARGET_VERSION): Remove.
23654         * config/sparc/linux64.h (TARGET_VERSION): Remove.
23655         * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
23656         TARGET_NAME32, TARGET_NAME): Remove.
23657         * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
23658         * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
23659         * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
23660         * config/sparc/sysv4.h (TARGET_VERSION): Remove.
23661         * config/sparc/vxworks.h (TARGET_VERSION): Remove.
23662         * config/spu/spu.h (TARGET_VERSION): Remove.
23663         * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
23664         * config/v850/v850.h (TARGET_VERSION): Remove.
23665         * config/vax/linux.h (TARGET_VERSION): Remove.
23666         * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
23667         * config/xtensa/elf.h (TARGET_VERSION): Remove.
23668         * config/xtensa/linux.h (TARGET_VERSION): Remove.
23669
23670 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
23671
23672         PR target/48142
23673         * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
23674         frame-related from frame-unrelated adjustments to the stack pointer.
23675
23676 2011-03-31  Jakub Jelinek  <jakub@redhat.com>
23677
23678         * common.opt (fdebug-types-section): Move earlier.
23679         * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
23680
23681 2011-03-31  Andreas Tobler  <andreast@fgznet.ch>
23682
23683         * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
23684         var.
23685
23686 2011-03-30  Nathan Froyd  <froydnj@codesourcery.com>
23687
23688         * tree.h (CASE_CHAIN): Define.
23689         * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
23690         (gimple_redirect_edge_and_branch): Likewise.
23691
23692 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
23693
23694         PR middle-end/48367
23695         * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
23696         calculation.
23697
23698 2011-03-30  Jeff Law  <law@redhat.com>
23699
23700         * PR bootstrap/48371
23701         * reload1.c (reload): Fix botch in last change.
23702
23703         * reload.h (struct reload): Fix typo introduced in last change.
23704
23705 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
23706
23707         * config/arm/arm.opt (mhard-float, msoft-float): Mark
23708         Undocumented.  Remove help text.
23709         * doc/invoke.texi (ARM Options): Don't document -msoft-float and
23710         -mhard-float.
23711
23712 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
23713
23714         * doc/options.texi (NegativeAlias): Document.
23715         (Alias): Mention NegativeAlias.
23716         * opt-functions.awk: Handle NegativeAlias.
23717         * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
23718         * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
23719         * opts.h (CL_NEGATIVE_ALIAS): Define.
23720         * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
23721         (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
23722         OPT_mspe_.
23723         * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
23724         Alias entries.
23725         * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
23726         mno-spe and mno-isel instead of mspe=no and -misel=no.
23727
23728 2011-03-29  Mark Wielaard  <mjw@redhat.com>
23729
23730         * common.opt (fdebug-types-section): New flag.
23731         * doc/invoke.texi: Document new -fno-debug-types-section flag.
23732         * dwarf2out.c (use_debug_types): New define.
23733         (struct die_struct): Mark die_id with GTY desc use_debug_types.
23734         (print_die): Guard output of type unit signatures using
23735         use_debug_types.
23736         (build_abbrev_table): Replace assert of dwarf_version >= 4
23737         with assert on use_debug_types.
23738         (size_of_die): Likewise.
23739         (unmark_dies): Likewise.
23740         (value_format): Decide AT_ref_external form on use_debug_types.
23741         (output_die): Replace dwarf_version version check guard with
23742         use_debug_types where appropriate.
23743         (modified_type_die): Likewise.
23744         (gen_reference_type_die): Likewise.
23745         (dwarf2out_start_source_file): Likewise.
23746         (dwarf2out_end_source_file): Likewise.
23747         (prune_unused_types_walk_attribs): Likewise.
23748         (dwarf2out_finish): Likewise.
23749
23750 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
23751
23752         * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
23753
23754 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
23755
23756         PR rtl-optimization/48332
23757         * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
23758         mode of input operand N and modeN to its actual mode.
23759
23760 2011-03-30  Jeff Law  <law@redhat.com>
23761
23762         * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
23763         define accessor macro.
23764         (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
23765         (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
23766         (reg_equiv_init): Likewise.
23767         (reg_equivs_size): New variable.
23768         (reg_equiv_init_size): Remove.
23769         (allocate_initial_values): Move prototype to here from....
23770         * integrate.h (allocate_initial_values): Remove prototype.
23771         * integrate.c: Include reload.h.
23772         (allocate_initial_values): Corresponding changes.
23773         * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
23774         (fix_reg_equiv_init, no_equiv): Corresponding changes.
23775         (update_equiv_regs): Corresponding changes.
23776         (ira): Corresponding changes.
23777         * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
23778         (push_secondary_reload): Corresponding changes.
23779         (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
23780         (make_memloc, find_reloads_address): Corresponding changes.
23781         (subst_reg_equivs, subst_indexed_address): Corresponding changes.
23782         (find_reloads_address_1): Corresponding changes.
23783         (find_reloads_subreg_address, subst_reloads): Corresponding changes.
23784         (refers_to_regno_for_reload_p): Corresponding changes.
23785         (reg_overlap_mentioned_for_reload_p): Corresponding changes.
23786         (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
23787         * reload1.c: Include ggc.h.
23788         (grow_reg_equivs): New function.
23789         (replace_pseudos_in, reload): Corresponding changes.
23790         (calculate_needs_all_insns, alter_regs): Corresponding changes.
23791         (eliminate_regs_1, elimination_effects): Corresponding changes.
23792         (emit_input_reload_insns, emit_output_reload_insns): Likewise.
23793         (delete_output_reload): Likewise.
23794         * caller-save.c (mark_referenced_regs): Corresponding changes.
23795         * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
23796         * frv/predicates.md (frv_load_operand): Corresponding changes.
23797         * microblaze/microblaze.c (double_memory_operand): Corresponding
23798         changes.
23799         * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
23800         * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
23801         * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
23802         * m68k/m68k.c (emit_move_sequence): Corresponding changes.
23803         * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
23804         changes.
23805         * pa/pa.c (emit_move_sequence): Corresponding changes.
23806         * vax/vax.c (nonindexed_address_p): Corresponding changes.
23807
23808 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
23809
23810         PR target/47551
23811         * config/arm/arm.c (coproc_secondary_reload_class): Handle
23812         structure modes.  Don't check neon_vector_mem_operand for
23813         vector or structure modes.
23814
23815 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
23816             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
23817
23818         PR target/43590
23819         * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
23820         operand 1 and reshuffle the operands to match.
23821         (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
23822
23823 2011-03-30  Christian Schüler  <cschueler@gmx.de>
23824
23825         PR driver/48208
23826         * config/c.opt (F): Added 'Driver' to -F option.
23827
23828         PR driver/48260
23829         * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
23830           handler function.
23831         * config/darwin.opt: Added '-arch' option.
23832
23833 2011-03-30  Nick Clifton  <nickc@redhat.com>
23834
23835         * config/rx/rx.md: Add peepholes and patterns to combine
23836         extending loads and simple arithmetic instructions.
23837         * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
23838         * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
23839         * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
23840         modes to use pre-decrement and post-increment addressing.
23841         (rx_is_restricted_memory_address): Add range checking of REG+INT
23842         addresses.
23843         (rx_print_operand): Add support for %Q.  Fix handling of %Q.
23844         (rx_memory_move_cost): Adjust cost of stores.
23845         (rx_adjust_insn_length): New function.
23846
23847 2011-03-30  Jakub Jelinek  <jakub@redhat.com>
23848
23849         PR c/48305
23850         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
23851         arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
23852         matching arg00/arg01 types.
23853
23854 2011-03-30  Eric Botcazou  <ebotcazou@adacore.com>
23855
23856         * cfglayout.c (insn_locators_alloc): Initialize curr_location and
23857         last_location to UNKNOWN_LOCATION.
23858
23859 2011-03-30  H.J. Lu  <hongjiu.lu@intel.com>
23860
23861         PR target/48349
23862         * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
23863         FLOAT_SSE_REGS.
23864
23865 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
23866             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23867
23868         PR bootstrap/48337
23869         * config/sparc/sparc.opt (sparc_cpu_and_features): Add
23870         Init(PROCESSOR_V7).
23871         (sparc_cpu): Likewise.
23872         * config/sparc/sparc.c (sparc_option_override): Replace 0 by
23873         PROCESSOR_V7.
23874
23875 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
23876
23877         PR target/48336
23878         PR middle-end/48342
23879         PR rtl-optimization/48345
23880         * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
23881         hard regs for given mode from profitable regs when doing secondary
23882         allocation.
23883
23884 2011-03-29  Jeff Law  <law@redhat.com>
23885
23886         PR bootstrap/48327
23887         * tree-ssa-threadupdate.c (struct redirection_data): Remove
23888         do_not_duplicate field.
23889         (lookup_redirection_data): Corresponding changes.
23890         (create_duplicates): Always create a template block.
23891         (redirect_edges): Remove code which reused the original block
23892         when it was going to become unreachable code.
23893         (thread_block): Don't set do_not_duplicate field.
23894
23895 2011-03-29  Joseph Myers  <joseph@codesourcery.com>
23896
23897         * lto-opts.c (register_user_option_p, lto_register_user_option):
23898         Make type argument unsigned.
23899         * lto-streamer.h (lto_register_user_option): Make type argument
23900         unsigned.
23901         * opth-gen.awk: Make CL_* macros unsigned.
23902         * opts-common.c (find_opt): Make lang_mask argument unsigned.
23903         * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
23904         CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
23905         CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
23906         CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
23907         CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
23908         (find_opt): Make lang_mask argument unsigned.
23909
23910 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
23911
23912         PR rtl-optimization/48331
23913         PR rtl-optimization/48334
23914         * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
23915         for any used algorithm.
23916
23917 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
23918
23919         * ira-conflicts.c (build_object_conflicts): Add unused attribute
23920         to parent_max.
23921
23922 2011-03-29  Uros Bizjak  <ubizjak@gmail.com>
23923
23924         * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
23925         (alpha_option_override): Don't set alpha_sr_alias_set.
23926         (emit_frame_store_1): Use gen_frame_mem rather than calling
23927         set_mem_alias_set.
23928         (alpha_expand_epilogue): Ditto.
23929
23930 2011-03-29  Ira Rosen  <ira.rosen@linaro.org>
23931
23932         PR tree-optimization/48290
23933         * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
23934         vectorization, check that relevant phis in the basic block after
23935         the inner loop are really inner loop's exit phis.
23936
23937 2011-03-29  Richard Sandiford  <richard.sandiford@linaro.org>
23938
23939         PR debug/48190
23940         * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
23941         (cached_dw_loc_list_def): New structure.
23942         (cached_dw_loc_list): New typedef.
23943         (cached_dw_loc_list_table): New variable.
23944         (cached_dw_loc_list_table_hash): New function.
23945         (cached_dw_loc_list_table_eq): Likewise.
23946         (add_location_or_const_value_attribute): Take a bool cache_p.
23947         Cache the list when the parameter is true.
23948         (gen_formal_parameter_die): Update caller.
23949         (gen_variable_die): Likewise.
23950         (dwarf2out_finish): Likewise.
23951         (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
23952         while generating debug info for the decl.
23953         (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
23954         (dwarf2out_init): Initialize cached_dw_loc_list_table.
23955         (resolve_addr): Cache the result of resolving a chain of
23956         location lists.
23957
23958 2011-03-28  Vladimir Makarov  <vmakarov@redhat.com>
23959
23960         * ira-color.c (update_left_conflict_sizes_p): Don't assume that
23961         conflict object hard regset nodes have intersecting hard reg sets.
23962
23963         * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
23964         after regstat_init_n_sets_and_refs.
23965
23966         * ira.c: Add more comments at the top.
23967         (setup_stack_reg_pressure_class, setup_pressure_classes):
23968         Add comments how we compute the register pressure classes.
23969         (setup_allocno_and_important_classes): Add more comments.
23970         (setup_class_translate_array, reorder_important_classes)
23971         (setup_reg_class_relations): Add comments.
23972
23973         * ira-emit.c: Add 2011 to the Copyright line.  Add comments at the
23974         start of the file.
23975
23976         * ira-color.c: Add 2011 to the Copyright line.
23977         (assign_hard_reg):  Add more comments.
23978         (improve_allocation): Ditto.
23979
23980         * ira-costs.c: Add 2011 to the Copyright line.
23981         (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
23982         comments.
23983         (setup_regno_cost_classes_by_mode): Ditto.
23984
23985         Initial patches from ira-improv branch:
23986
23987         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
23988
23989         * ira-build.c (ira_create_object): Remove initialization of
23990         OBJECT_PROFITABLE_HARD_REGS.  Initialize OBJECT_ADD_DATA.
23991         (ira_create_allocno): Remove initialization of
23992         ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
23993         ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
23994         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
23995         ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
23996         ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
23997         Initialize ALLOCNO_ADD_DATA.
23998         (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
23999         and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
24000         ALLOCNO_REG.
24001         (ira_flattening): Ditto.  Use ALLOCNO_EMIT_DATA instead of
24002         ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
24003
24004         * ira.c (ira_reallocate): Remove.
24005         (setup_pressure_classes): Call
24006         ira_init_register_move_cost_if_necessary.  Use
24007         ira_register_move_cost instead of ira_get_register_move_cost.
24008         (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
24009         (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
24010
24011         * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
24012         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
24013         ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
24014         ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
24015         instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
24016         OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
24017         Fix formatting.
24018         (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
24019         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
24020         (struct allocno_color_data): New.
24021         (allocno_color_data_t): New typedef.
24022         (allocno_color_data): New definition.
24023         (ALLOCNO_COLOR_DATA): New macro.
24024         (struct object_color_data): New.
24025         (object_color_data_t): New typedef.
24026         (object_color_data): New definition.
24027         (OBJECT_COLOR_DATA): New macro.
24028         (update_copy_costs, calculate_allocno_spill_cost): Call
24029         ira_init_register_move_cost_if_necessary.  Use
24030         ira_register_move_cost instead of ira_get_register_move_cost.
24031         (move_spill_restore, update_curr_costs): Ditto.
24032         (allocno_spill_priority): Make it inline.
24033         (color_pass): Allocate and free allocno_color_dat and object_color_data.
24034         (struct coalesce_data, coalesce_data_t): New.
24035         (allocno_coalesce_data): New definition.
24036         (ALLOCNO_COALESCE_DATA): New macro.
24037         (merge_allocnos, coalesced_allocno_conflict_p): Use
24038         ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
24039         ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
24040         (coalesce_allocnos): Ditto.
24041         (setup_coalesced_allocno_costs_and_nums): Ditto.
24042         (collect_spilled_coalesced_allocnos): Ditto.
24043         (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
24044         (setup_slot_coalesced_allocno_live_ranges): Ditto.
24045         (coalesce_spill_slots): Ditto.
24046         (ira_sort_regnos_for_alter_reg): Ditto.  Allocate, initialize and
24047         free allocno_coalesce_data.
24048
24049         * ira-conflicts.c: Fix formatting.
24050         (process_regs_for_copy): Call
24051         ira_init_register_move_cost_if_necessary.  Use
24052         ira_register_move_cost instead of ira_get_register_move_cost.
24053         (build_object_conflicts): Optimize.
24054
24055         * ira-costs.c (record_reg_classes): Optimize.  Call
24056         ira_init_register_move_cost_if_necessary.  Use
24057         ira_register_move_cost, ira_may_move_in_cost, and
24058         ira_may_move_out_cost instead of ira_get_register_move_cost and
24059         ira_get_may_move_cost.
24060         (record_address_regs): Ditto.
24061         (scan_one_insn): Optimize.
24062         (find_costs_and_classes): Optimize.
24063         (process_bb_node_for_hard_reg_moves): Call
24064         ira_init_register_move_cost_if_necessary.  Use
24065         ira_register_move_cost instead of ira_get_register_move_cost.
24066
24067         * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
24068         ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
24069         ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
24070         (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
24071         definitions.
24072         (ira_initiate_emit_data, ira_finish_emit_data)
24073         (create_new_allocno): New functions.
24074         (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
24075         (emit_move_list): Call ira_init_register_move_cost_if_necessary.
24076         Use ira_register_move_cost instead of ira_get_register_move_cost.
24077
24078         * ira-int.h: Fix some comments.
24079         (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
24080         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
24081         (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
24082         hard_regs_subnodes_start, hard_regs_subnodes_num.  Add new member
24083         add_data.
24084         (struct ira_allocno): Make mode and aclass a bitfield.  Move other
24085         bitfield after mode.  Make hard_regno a short int.  Make
24086         hard_regno short.  Remove first_coalesced_allocno and
24087         next_coalesced_allocno.  Move mem_optimized_dest_p,
24088         somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
24089         into struct ira_emit_data.  Remove in_graph_p, may_be_spilled_p,
24090         available_regs_num, next_bucket_allocno, prev_bucket_allocno,
24091         temp, colorable_p.  Add new member add_data.
24092         (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
24093         (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
24094         (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
24095         (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
24096         (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
24097         (ALLOCNO_ADD_DATA): New macro.
24098         (ira_emit_data_t): New typedef.
24099         (struct ira_emit_data): New.  Move mem_optimized_dest_p,
24100         somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
24101         from struct ira_allocno.
24102         (ALLOCNO_EMIT_DATA): New macro.
24103         (ira_allocno_emit_data, allocno_emit_reg): New.
24104         (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
24105         (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
24106         (OBJECT_ADD_DATA): New macro.
24107         (ira_reallocate): Remove.
24108         (ira_initiate_emit_data, ira_finish_emit_data): New.
24109         (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
24110         (ira_init_register_move_cost_if_necessary): New.
24111         (ira_object_conflict_iter_next): Merge into
24112         ira_object_conflict_iter_cond.
24113         (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
24114
24115         * ira-live.c (process_single_reg_class_operands): Call
24116         ira_init_register_move_cost_if_necessary.  Use
24117         ira_register_move_cost instead of ira_get_register_move_cost.
24118
24119         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
24120
24121         * ira-int.h (struct target_ira_int): Remove x_cost_classes.
24122
24123         * ira-costs.c: Fix formatting.
24124         (cost_classes, cost_classes_num): Remove.
24125         (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
24126         (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
24127         (cost_classes_del, cost_classes_htab): New.
24128         (cost_classes_aclass_cache, cost_classes_mode_cache): New.
24129         (initiate_regno_cost_classes, setup_cost_classes): New.
24130         (setup_regno_cost_classes_by_aclass): New.
24131         (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
24132         (record_reg_classes): Use regno_cost_classes instead of
24133         cost_classes.  Move checking opposite operand up.
24134         (record_address_regs): Use regno_cost_classes
24135         instead of cost_classes.
24136         (scan_one_insn): Ditto.  Use always general register.
24137         (print_allocno_costs): Use regno_cost_classes instead of
24138         cost_classes.
24139         (print_pseudo_costs): Ditto.  Use Reg_N_REFS.
24140         (find_costs_and_classes): Set up cost classes for each registers.
24141         Use also their mode for this.  Use regno_cost_classes instead of
24142         cost_classes.
24143         (setup_allocno_class_and_costs): Use regno_cost_classes instead of
24144         cost_classes.
24145         (free_ira_costs, ira_init_costs): Don't use cost_classes.
24146         (ira_costs, ira_set_pseudo_classes): Call
24147         initiate_regno_cost_classes and finish_regno_cost_classes.
24148
24149         2010-10-04  Vladimir Makarov  <vmakarov@redhat.com>
24150
24151         * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
24152
24153         * target.def (ira_cover_classes): Remove.
24154
24155         * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
24156
24157         * doc/tm.texi.in: Ditto.
24158
24159         * ira-conflicts.c: Remove mentioning cover classes from the file.
24160         Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Use
24161         ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST.  Fix formatting.
24162
24163         * targhooks.c (default_ira_cover_classes): Remove.
24164
24165         * targhooks.h (default_ira_cover_classes): Ditto.
24166
24167         * haifa-sched.c: Remove mentioning cover classes from the file.
24168         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
24169         ira_pressure_classes and ira_pressure_classes_num instead of
24170         ira_reg_class_cover_size and ira_reg_class_cover.  Use
24171         sched_regno_pressure_class instead of sched_regno_cover_class.
24172         (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
24173         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
24174
24175         * ira-int.h: Add 2010 to Copyright.  Remove mentioning cover
24176         classes from the file.
24177         (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
24178         (struct object_hard_regs, struct object_hard_regs_node): New.
24179         (struct ira_object): New members profitable_hard_regs,
24180         hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
24181         (struct ira_allocno): Rename cover_class to aclass.  Rename
24182         cover_class_cost and updated_cover_class_cost to class_cost and
24183         updated_class_cost.  Remove splay_removed_p and
24184         left_conflict_size.  Add new members colorable_p.
24185         (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
24186         (ALLOCNO_COLORABLE_P): New macro.
24187         (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
24188         (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
24189         Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
24190         (OBJECT_...): Rename parameter C to O.
24191         (OBJECT_PROFITABLE_HARD_REGS): New macro.
24192         (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
24193         (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
24194         (struct target_ira_int): New members x_ira_max_memory_move_cost,
24195         x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
24196         x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
24197         x_ira_reg_pressure_class_p, x_ira_important_class_nums,
24198         x_ira_reg_class_superunion.  Rename x_prohibited_class_mode_reg to
24199         x_ira_prohibited_class_mode_reg.  Rename x_ira_reg_class_union to
24200         x_ira_reg_class_subunion.
24201         (ira_max_memory_move_cost, ira_max_register_move_cost)
24202         (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
24203         (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
24204         (ira_important_class_nums, ira_reg_class_superunion): New macros.
24205         (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
24206         (ira_reg_class_union): Rename to ira_reg_class_subunion.
24207         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
24208         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
24209         (ira_tune_allocno_costs_and_cover_classes): Rename to
24210         ira_tune_allocno_costs.
24211         (ira_debug_hard_regs_forest): New.
24212         (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
24213         (ira_object_conflict_iter_next): Fix comments.
24214         (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
24215         (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
24216         cover_class to aclass.
24217         (ira_allocate_and_accumulate_costs): Ditto.
24218         (ira_allocate_and_set_or_copy_costs): Ditto.
24219
24220         * opts.c (decode_options): Remove ira_cover_class check.
24221
24222         * ira-color.c: Remove mentioning cover classes from the file.  Use
24223         ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
24224         instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
24225         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
24226         (splay-tree.h): Remove include.
24227         (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
24228         before copy_freq_compare_func.
24229         (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
24230         (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
24231         New definitions.
24232         (hard_regs_roots, hard_regs_node_vec): Ditto.
24233         (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
24234         (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
24235         (finish_object_hard_regs, object_hard_regs_compare): Ditto.
24236         (create_new_object_hard_regs_node): Ditto.
24237         (add_new_object_hard_regs_node_to_forest): Ditto.
24238         (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
24239         (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
24240         Ditto.
24241         (print_hard_reg_set, print_hard_regs_subforest): Ditto.
24242         (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
24243         (remove_unused_object_hard_regs_nodes): Ditto.
24244         (enumerate_object_hard_regs_nodes): Ditto.
24245         (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
24246         (object_hard_regs_subnode_t): Ditto.
24247         (struct object_hard_regs_subnode): Ditto.
24248         (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
24249         (setup_object_hard_regs_subnode_index): Ditto.
24250         (get_object_hard_regs_subnodes_num): Ditto.
24251         (form_object_hard_regs_nodes_forest): Ditto.
24252         (finish_object_hard_regs_nodes_tree): Ditto.
24253         (finish_object_hard_regs_nodes_forest): Ditto.
24254         (allocnos_have_intersected_live_ranges_p): Rename to
24255         allocnos_conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
24256         (pseudos_have_intersected_live_ranges_p): Rename to
24257         conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
24258         (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
24259         (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
24260         (update_copy_costs): Remove assert.  Skip cost update if the hard
24261         reg does not belong the class.
24262         (assign_hard_reg): Process only profitable hard regs.
24263         (uncolorable_allocnos_num): Make it scalar.
24264         (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
24265         and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
24266         and ira_reg_class_max_nregs.
24267         (bucket_allocno_compare_func): Check frequency first.
24268         (sort_bucket): Add compare function as a parameter.
24269         (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
24270         (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
24271         (push_allocno_to_stack): Rewrite for checking new allocno
24272         colorability.
24273         (remove_allocno_from_bucket_and_push): Print cost too.  Remove assert.
24274         (push_only_colorable): Pass new parameter to sort_bucket.
24275         (push_allocno_to_spill): Remove.
24276         (allocno_spill_priority_compare): Make it inline and rewrite.
24277         (splay_tree_allocate, splay_tree_free): Remove.
24278         (allocno_spill_sort_compare): New function.
24279         (push_allocnos_to_stack): Sort allocnos for spilling once.  Don't
24280         build and use splay tree.  Choose first allocno in uncolorable
24281         allocno bucket to spill.  Remove setting spill cost.
24282         (all_conflicting_hard_regs): Remove.
24283         (setup_allocno_available_regs_num): Check only profitable hard
24284         regs.  Print info about hard regs nodes.
24285         (setup_allocno_left_conflicts_size): Remove.
24286         (put_allocno_into_bucket): Don't call
24287         setup_allocno_left_conflicts_size.  Use setup_left_conflict_sizes_p.
24288         (improve_allocation): New.
24289         (color_allocnos): Call setup_profitable_hard_regs,
24290         form_object_hard_regs_nodes_forest, improve_allocation,
24291         finish_object_hard_regs_nodes_forest.  Setup spill cost.
24292         (print_loop_title): Use pressure classes.
24293         (color_allocnso): Ditto.
24294         (do_coloring): Remove allocation and freeing splay_tree_node_pool
24295         and allocnos_for_spilling.
24296         (ira_sort_regnos_for_alter_reg): Don't setup members
24297         {first,next}_coalesced_allocno.
24298         (color): Remove allocating and freeing removed_splay_allocno_vec.
24299         (fast_allocation): Use ira_prohibited_class_mode_regs instead of
24300         prohibited_class_mode_regs.
24301
24302         * ira-lives.c: Remove mentioning cover classes from the file.  Fix
24303         formatting.
24304         (update_allocno_pressure_excess_length): Use pressure classes.
24305         (inc_register_pressure, dec_register_pressure): Check for pressure
24306         class.
24307         (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
24308         pressure class.  Use ira_reg_class_nregs instead of
24309         ira_reg_class_max_nregs.
24310         (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
24311         (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
24312         (single_reg_class): Use ira_reg_class_nregs instead of
24313         ira_reg_class_max_nregs.
24314         (process_bb_node_lives): Use pressure classes.
24315
24316         * ira-emit.c: Remove mentioning cover classes from the file.  Use
24317         ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Fix formatting.
24318         (change_loop): Use pressure classes.
24319         (modify_move_list): Call ira_set_allocno_class instead of
24320         ira_set_allocno_cover_class.
24321
24322         * ira-build.c: Remove mentioning cover classes from the file.  Use
24323         ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
24324         ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST.  Use
24325         ALLOCNO_UPDATED_CLASS_COST instead of
24326         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
24327         (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
24328         (ira_create_allocno): Remove initialization of
24329         ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE.  Initialize
24330         ALLOCNO_COLORABLE_P.
24331         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
24332         Update conflict regs for the objects.
24333         (create_cap_allocno): Remove assert.  Don't propagate
24334         ALLOCNO_AVAILABLE_REGS_NUM.
24335         (ira_free_allocno_costs): New function.
24336         (finish_allocno): Change a part of code into call of
24337         ira_free_allocno_costs.
24338         (low_pressure_loop_node_p): Use pressure classes.
24339         (object_range_compare_func): Don't compare classes.
24340         (setup_min_max_conflict_allocno_ids): Ditto.
24341
24342         * loop-invariant.c: Remove mentioning cover classes from the file.
24343         Use ira_pressure_classes and ira_pressure_classes_num instead of
24344         ira_reg_class_cover_size and ira_reg_class_cover.  Fix formatting.
24345         (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
24346         Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
24347         Use reg_allocno_class instead of reg_cover_class.
24348         (get_inv_cost): Use instead ira_stack_reg_pressure_class of
24349         STACK_REG_COVER_CLASS.
24350         (get_regno_cover_class): Rename to get_regno_pressure_class.
24351         (move_loop_invariants): Initialize and finalize regstat.
24352
24353         * ira.c: Remove mentioning cover classes from the file.  Add
24354         comments about coloring without cover classes.  Use ALLOCNO_CLASS
24355         instead of ALLOCNO_COVER_CLASS.  Fix formatting.
24356         (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
24357         setup_class_subset_and_memory_move_costs.
24358         (setup_stack_reg_pressure_class, setup_pressure_classes): New.
24359         (setup_cover_and_important_classes): Rename to
24360         setup_allocno_and_important_classes.
24361         (setup_class_translate_array): New.
24362         (setup_class_translate): Call it for allocno and pressure classes.
24363         (cover_class_order): Rename to allocno_class_order.
24364         (comp_reg_classes_func): Use ira_allocno_class_translate instead
24365         of ira_class_translate.
24366         (reorder_important_classes): Set up ira_important_class_nums.
24367         (setup_reg_class_relations): Set up ira_reg_class_superunion.
24368         (print_class_cover): Rename to print_classes.  Add parameter.
24369         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
24370         Print pressure classes too.
24371         (find_reg_class_closure): Rename to find_reg_classes.  Don't call
24372         setup_reg_subclasses.
24373         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
24374         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
24375         (setup_prohibited_class_mode_regs): Use
24376         ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
24377         (clarify_prohibited_class_mode_regs): New function.
24378         (ira_init_register_move_cost): Set up ira_max_register_move_cost,
24379         ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
24380         (ira_init_once): Initialize them.
24381         (free_register_move_costs): Process them.
24382         (ira_init): Move calls of find_reg_classes and
24383         setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
24384         Call clarify_prohibited_class_mode_regs.
24385         (ira_no_alloc_reg): Remove.
24386         (too_high_register_pressure_p): Use pressure classes.
24387
24388         * sched-deps.c: Remove mentioning cover classes from the file.
24389         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
24390         ira_pressure_classes and ira_pressure_classes_num instead of
24391         ira_reg_class_cover_size and ira_reg_class_cover.
24392         (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
24393         sched_regno_pressure_class instead of sched_regno_cover_class.
24394         (mark_insn_pseudo_birth, mark_pseudo_death): Ditto.  Use
24395         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
24396
24397         * ira.h: Add 2010 to Copyright.
24398         (ira_no_alloc_reg): Remove external.
24399         (struct target_ira): Rename x_ira_hard_regno_cover_class,
24400         x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
24401         x_ira_class_translate to x_ira_hard_regno_allocno_class,
24402         x_ira_allocno_classes_num, x_ira_allocno_classes, and
24403         x_ira_allocno_class_translate.  Add x_ira_pressure_classes_num,
24404         x_ira_pressure_classes, x_ira_pressure_class_translate, and
24405         x_ira_stack_reg_pressure_class.  Rename x_ira_reg_class_nregs to
24406         x_ira_reg_class_max_nregs.  Add x_ira_reg_class_min_nregs and
24407         x_ira_no_alloc_regs.
24408         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
24409         (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
24410         ira_allocno_classes_num and ira_allocno_classes.
24411         (ira_class_translate): Rename to ira_allocno_class_translate.
24412         (ira_pressure_classes_num, ira_pressure_classes): New definitions.
24413         (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
24414         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
24415         (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
24416         (ira_no_alloc_regs): New.
24417
24418         * ira-costs.c: Add 2010 to Copyright.  Remove mentioning cover
24419         classes from the file.  Use ALLOCNO_CLASS instead of
24420         ALLOCNO_COVER_CLASS.  Use ALLOCNO_CLASS_COST instead of
24421         ALLOCNO_COVER_CLASS_COST.
24422         (regno_cover_class): Rename to regno_aclass.
24423         (record_reg_classes): Use ira_reg_class_subunion instead of
24424         ira_reg_class_union.
24425         (record_address_regs): Check overflow.
24426         (scan_one_insn): Ditto.
24427         (print_allocno_costs): Print total mem cost fore regional allocation.
24428         (print_pseudo_costs): Use REG_N_REFS.
24429         (find_costs_and_classes): Use classes intersected with them on the
24430         1st pass. Check overflow.  Use ira_reg_class_subunion instead of
24431         ira_reg_class_union.  Use ira_allocno_class_translate and
24432         regno_aclass instead of ira_class_translate and regno_cover_class.
24433         Modify code for finding regno_aclass.  Setup preferred classes for
24434         the next pass.
24435         (setup_allocno_cover_class_and_costs): Rename to
24436         setup_allocno_class_and_costs.  Use regno_aclass instead of
24437         regno_cover_class.  Use ira_set_allocno_class instead of
24438         ira_set_allocno_cover_class.
24439         (init_costs, finish_costs): Use regno_aclass instead of
24440         regno_cover_class.
24441         (ira_costs): Use setup_allocno_class_and_costs instead of
24442         setup_allocno_cover_class_and_costs.
24443         (ira_tune_allocno_costs_and_cover_classes): Rename to
24444         ira_tune_allocno_costs.  Check overflow.  Skip conflict hard regs
24445         by processing objects.  Use ira_reg_class_max_nregs instead of
24446         ira_reg_class_nregs.
24447
24448         * rtl.h (reg_cover_class): Rename to reg_allocno_class.
24449
24450         * sched-int.h: Remove mentioning cover classes from the file.
24451         (sched_regno_cover_class): Rename to sched_regno_pressure_class.
24452
24453         * reginfo.c: Add 2010 to Copyright.  Remove mentioning cover
24454         classes from the file.
24455         (struct reg_pref): Rename coverclass into allocnoclass.
24456         (reg_cover_class): Rename to reg_allocno_class.
24457
24458         * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
24459
24460         * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
24461
24462         * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
24463
24464         * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
24465
24466         * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
24467
24468         * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
24469
24470         * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
24471
24472         * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
24473
24474         * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
24475
24476         * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
24477
24478         * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
24479         (i386_ira_cover_classes): Ditto.
24480
24481         * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
24482
24483         * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
24484
24485         * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
24486
24487         * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
24488
24489         * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
24490
24491         * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
24492
24493         * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
24494         (mips_ira_cover_classes): Ditto.
24495
24496         * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
24497
24498         * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
24499
24500         * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
24501
24502         * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
24503
24504         * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
24505
24506         * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
24507         (IRA_COVER_CLASSES_VSX): Ditto.
24508
24509         * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
24510         (rs6000_ira_cover_classes): Ditto.
24511
24512         * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
24513
24514         * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
24515
24516         * config/score/score.h (IRA_COVER_CLASSES): Ditto.
24517
24518         * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
24519
24520         * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
24521
24522         * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
24523
24524         * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
24525
24526         * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
24527
24528         * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
24529
24530         * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
24531
24532 2011-03-29  Jakub Jelinek  <jakub@redhat.com>
24533
24534         PR debug/48253
24535         * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
24536         dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
24537         dw_fde_unlikely_section_end_label, cold_in_std_section,
24538         dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
24539         Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
24540         fields.
24541         (output_fde): Use dw_fde_second_{begin,end} if second is
24542         true, otherwise dw_fde_{begin,end}.
24543         (output_call_frame_info): Test dw_fde_second_begin != NULL
24544         instead of dw_fde_switched_sections.
24545         (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
24546         fields, initialize new fields.  Initialize in_std_section
24547         unconditionally from the first partition.
24548         (dwarf2out_end_epilogue): Don't override dw_fde_end when
24549         dw_fde_second_begin is non-NULL.
24550         (dwarf2out_switch_text_section): Stop initializing removed
24551         dw_fde_struct fields, initialize new fields, initialize
24552         also dw_fde_end here.  Set dw_fde_switch_cfi even when
24553         dwarf2out_do_cfi_asm ().  Call var_location_switch_text_section.
24554         (struct var_loc_list_def): Add last_before_switch field.
24555         (arange_table, arange_table_allocated, arange_table_in_use,
24556         ARANGE_TABLE_INCREMENT, add_arange): Removed.
24557         (size_of_aranges): Count !in_std_section and !second_in_std_section
24558         hunks in fdes, instead of looking at arange_table_in_use.
24559         (output_aranges): Add aranges_length argument, don't call
24560         size_of_aranges here.  Instead of using aranges_table*
24561         emit ranges for fdes when !in_std_section resp.
24562         !second_in_std_section.
24563         (dw_loc_list): Break ranges crossing section switch.
24564         (convert_cfa_to_fb_loc_list): Likewise.  If switched sections,
24565         use dw_fde_second_end instead of dw_fde_end as end of last range.
24566         (gen_subprogram_die): Don't call add_arange.  Use
24567         dw_fde_{begin,end} for first partition and if switched
24568         section dw_fde_second_{begin,end} for the second.
24569         (var_location_switch_text_section_1,
24570         var_location_switch_text_section): New functions.
24571         (dwarf2out_begin_function): Initialize cold_text_section even
24572         when function_section () isn't text_section.
24573         (prune_unused_types): Don't walk arange_table.
24574         (dwarf2out_finish): Don't needlessly test
24575         flag_reorder_blocks_and_partition when testing cold_text_section_used.
24576         If info_section_emitted, call size_of_aranges and if it indicates
24577         non-empty .debug_aranges, call output_aranges with the computed
24578         size.  Stop using removed dw_fde_struct fields, use
24579         dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
24580         for second.
24581
24582         PR debug/48203
24583         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
24584         create ENTRY_VALUE if incoming or address of incoming's MEM
24585         is a hard REG.
24586         * dwarf2out.c (mem_loc_descriptor): Don't emit
24587         DW_OP_GNU_entry_value of DW_OP_fbreg.
24588         * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
24589         on ENTRY_VALUE is able to find the canonical parameter VALUE.
24590         * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
24591         rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
24592         ENTRY_VALUE_EXPs.
24593         (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
24594         is a REG_P or MEM_P with REG_P address, compute hash directly
24595         instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
24596         (preserve_only_constants): Don't clear VALUES forwaring
24597         ENTRY_VALUE to some other VALUE.
24598
24599 2011-03-28  Richard Sandiford  <richard.sandiford@linaro.org>
24600
24601         * builtins.c (expand_builtin_memset_args): Use gen_int_mode
24602         instead of GEN_INT.
24603
24604 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
24605
24606         * cfgexpand.c (expand_gimple_cond): Always set the source location and
24607         block before expanding the statement.
24608         (expand_gimple_stmt_1): Likewise.  Set them here...
24609         (expand_gimple_stmt): ...and not here.  Tidy.
24610         * cfglayout.c (curr_insn_locator): Return 0 if the current location is
24611         unknown.
24612
24613 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
24614
24615         * Makefile.in: New rule for cprop.o.
24616         * gcse.c: Move constant/copy propagation to cprop.c.
24617         (compute_local_properties): Only handle expression tables.
24618         (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
24619         (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
24620         (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
24621         next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
24622         mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
24623         compute_cprop_data, find_used_regs, try_replace_reg,
24624         find_avail_set, cprop_jump, constprop_register, cprop_insn,
24625         local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
24626         fis_get_condition, implicit_set_cond_p, find_implicit_sets,
24627         find_bypass_set, reg_killed_on_edge, bypass_block,
24628         bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
24629         execute_rtl_cprop, pass_rtl_cprop): Move to...
24630         * cprop.c: ...here.  New file, constant/copy propagation for RTL
24631         moved from gcse.c to here with minor cleanups in duplicated code.
24632
24633 2011-03-28  H.J. Lu  <hongjiu.lu@intel.com>
24634
24635         * config/i386/i386.c (flag_opts): Fix a typo in
24636         -mavx256-split-unaligned-store.
24637
24638 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
24639
24640         * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
24641         LIBCALL_VALUE): Remove macros.
24642         * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
24643         TARGET_FUNCTION_VALUE_REGNO_P): Define.
24644         (h8300_function_value, h8300_libcall_value,
24645         h8300_function_value_regno_p): New functions.
24646
24647 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
24648
24649         * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
24650
24651 2011-03-28  Jeff Law  <law@redhat.com>
24652
24653         * tree-ssa-threadupdate.c (redirect_edges): Call
24654         create_edge_and_update_destination_phis as needed.
24655         (create_edge_and_update_destination_phis): Accept new BB argument.
24656         All callers updated.
24657         (thread_block): Do not update the profile when threading around
24658         intermediate blocks.
24659         (thread_single_edge): Likewise.
24660         (determine_bb_domination_status): If BB is not a successor of the
24661         loop header, return NONDOMINATING.
24662         (register_jump_thread): Note when we register a jump thread around
24663         an intermediate block.
24664         * tree-ssa-threadedge.c (thread_around_empty_block): New function.
24665         (thread_across_edge): Use it.
24666
24667 2011-03-28  Tristan Gingold  <gingold@adacore.com>
24668
24669         * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
24670         when for_return is 2.
24671
24672 2011-03-28  Jeff Law  <law@redhat.com>
24673
24674         * var-tracking.c (canonicalize_values_mark): Delete unused
24675         lhs assignment.
24676         (canonicalize_values_star, set_variable_part): Likewise.
24677         (clobber_variable_part, delete_variable_part): Likewise.
24678
24679 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
24680
24681         * gcse.c (free_gcse_mem): Free reg_set_bitmap.
24682
24683 2011-03-28  Martin Jambor  <mjambor@suse.cz>
24684
24685         * tree-inline.c (expand_call_inline): Do not check that destination
24686         node is analyzed.
24687         (optimize_inline_calls): Assert that destination node is analyzed.
24688         * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
24689         not call tree_lowering_passes.
24690         * cgraph.h (cgraph_analyze_function): Declare.
24691         * cgraphunit.c (cgraph_analyze_function): Make public.
24692
24693 2011-03-28  Joseph Myers  <joseph@codesourcery.com>
24694
24695         * config/sparc/sparc-opts.h: New.
24696         * config/sparc/sparc.c (sparc_handle_option, sparc_select,
24697         sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
24698         (sparc_option_override): Store processor_type enumeration rather
24699         than string in cpu_default.  Remove name and enumeration from
24700         cpu_table.  Directly default -mcpu then default -mtune from -mcpu
24701         without using sparc_select.  Use target_flags_explicit instead of
24702         fpu_option_set.
24703         * config/sparc/sparc.h (enum processor_type): Move to
24704         sparc-opts.h.
24705         (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
24706         * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
24707         HeaderInclude entry.
24708         (mcpu=, mtune=): Use Var and Enum.
24709         (sparc_processor_type): New Enum and EnumValue entries.
24710
24711 2011-03-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24712             Iain Sandoe  <iains@gcc.gnu.org>
24713
24714         PR target/48245
24715         * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
24716
24717 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
24718
24719         * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
24720         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
24721         Insert new statements at it in lieu of STMT.
24722         (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
24723         * tree-vect-stmts.c (vectorizable_store): Likewise.
24724         (vectorizable_load): Likewise.
24725
24726 2011-03-28  Uros Bizjak  <ubizjak@gmail.com>
24727
24728         * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
24729         (divtf3): Ditto.
24730         (multf3): Ditto.
24731         (subtf3): Ditto.
24732
24733 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
24734
24735         * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
24736         unaligned 256bit load/store.
24737         (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
24738         (*avx_movdqu<avxmodesuffix>): Likewise.
24739
24740 2011-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
24741
24742         PR target/48288
24743         * config/pa/predicates.md (reg_or_ior_operand): New predicate.
24744         * config/pa/pa.md (iordi3): Use new predicate in expander.
24745         (iorsi3): Likewise.
24746
24747 2011-03-27  Anatoly Sokolov  <aesok@post.ru>
24748
24749         * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
24750         FUNCTION_VALUE_REGNO_P): Remove macros.
24751         * config/mips/mips-protos.h (mips_function_value): Remove.
24752         * config/mips/mips.c (mips_function_value): Rename to...
24753         (mips_function_value_1): ... this. Make static.  Handle receiving
24754         the function type in 'fn_decl_or_type' argument.
24755         (mips_function_value, mips_libcall_value,
24756         mips_function_value_regno_p): New function.
24757         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
24758         TARGET_FUNCTION_VALUE_REGNO_P): Define.
24759
24760 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
24761
24762         * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
24763         and -mavx256-split-unaligned-store.
24764         (ix86_option_override_internal): Split 32-byte AVX unaligned
24765         load/store by default.
24766         (ix86_avx256_split_vector_move_misalign): New.
24767         (ix86_expand_vector_move_misalign): Use it.
24768
24769         * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
24770         -mavx256-split-unaligned-store.
24771
24772         * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
24773         256bit load/store.  Generate unaligned store on misaligned memory
24774         operand.
24775         (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
24776         256bit load/store.
24777         (*avx_movdqu<avxmodesuffix>): Likewise.
24778
24779         * doc/invoke.texi: Document -mavx256-split-unaligned-load and
24780         -mavx256-split-unaligned-store.
24781
24782 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
24783
24784         PR target/38598
24785         * config/mips/mips.md (extendsidi2): Add an "l" alternative.
24786         Update commentary.
24787
24788 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
24789
24790         * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
24791         opno arguments with an expand_operand.  Use create_input_operand.
24792         (mips_prepare_builtin_target): Delete.
24793         (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
24794         functions.
24795         (mips_expand_builtin_direct): Use create_output_operand and
24796         mips_expand_builtin_insn.  Update call to mips_prepare_builtin_arg.
24797         (mips_expand_builtin_movtf): Likewise.  Use mips_expand_fp_comparison.
24798         (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
24799
24800 2011-03-27  Ira Rosen  <ira.rosen@linaro.org>
24801
24802         * config/arm/arm.c (arm_autovectorize_vector_sizes): New
24803         function.
24804         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
24805
24806 2011-03-26  Eric Botcazou  <ebotcazou@adacore.com>
24807
24808         * basic-block.h (fixup_abnormal_edges): Adjust prototype.
24809         * reload1.c (reload): Adjust call to fixup_abnormal_edges.  Rediscover
24810         basic blocks and call commit_edge_insertions directly.
24811         (fixup_abnormal_edges): Move from here to...
24812         * cfgrtl.c (fixup_abnormal_edges): ...here.  Only insert instructions
24813         on the edges and return whether some have actually been inserted.
24814         * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
24815         compensation code.
24816
24817 2011-03-26  Andrey Belevantsev  <abel@ispras.ru>
24818
24819         PR rtl-optimization/48144
24820         * sel-sched-ir.c (merge_history_vect): Factor out from ...
24821         (merge_expr_data): ... here.
24822         (av_set_intersect): Rename to av_set_code_motion_filter.
24823         Update all callers.  Call merge_history_vect when an expression
24824         is found in both sets.
24825         * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
24826
24827 2011-03-26  Alan Modra  <amodra@gmail.com>
24828
24829         * config/rs6000/predicates.md (word_offset_memref_op): Handle
24830         cmodel medium addresses.
24831         * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
24832         64-bit gpr loads and stores.
24833         (rs6000_secondary_reload_ppc64): New function.
24834         * config/rs6000/rs6000-protos.h: Declare it.
24835         * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
24836
24837 2011-03-26  Alan Modra  <amodra@gmail.com>
24838
24839         PR target/47487
24840         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
24841         GNU Go in traceback table.
24842
24843 2011-03-25  Richard Henderson  <rth@redhat.com>
24844
24845         * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
24846         if there are exactly 6 operands.
24847         (set_storage_via_setmem): Similarly.
24848
24849 2011-03-25  Kai Tietz  <ktietz@redhat.com>
24850
24851         * collect2.c (write_c_file_stat): Handle backslash
24852         as right-hand directory separator.
24853         (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
24854         checking just for slash.
24855         * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
24856         instead of checking for trailing slash.
24857         * gcc.c (record_temp_file): Use filename_cmp instead
24858         of strcmp.
24859         (do_spec_1): Likewise.
24860         (replace_outfile_spec_function): Likewise.
24861         (is_directory): Use filename_ncmp instead of strncmp.
24862         (print_multilib_info): Likewise.
24863         * gcov.c (find_source): Use filename_cmp instead
24864         instead of strcmp.
24865         (make_gcov_file_name): Fix order of slash/backslash
24866         checks.
24867         * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
24868         (add_standard_paths): Likewise.
24869         * mips-tfile.c (saber_stop): Handle backslash.
24870         * prefix.c (update_path): Use filename_ncmp instead of
24871         strncmp.
24872         * profile.c (output_location): Use filename_cmp instead
24873         of strcmp.
24874         * read-md.c (handle_toplevel_file): Handle backslash.
24875         * tlink.c (frob_extension):  Likewise.
24876         * tree-cfg.c (same_line_p): Use filename_cmp instead of
24877         strcmp.
24878         * tree-dump.c (dequeue_and_dump): Handle backslash.
24879         * tree.c (get_file_function_name): Likewise.
24880         * gengtype.c (read_input_list): Likewise.
24881         (get_file_realbasename): Likewise.
24882         (get_output_file_with_visibility): Use filename_cmp
24883         instead of strcmp.
24884
24885 2011-03-25  Richard Sandiford  <richard.sandiford@linaro.org>
24886
24887         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
24888         case to VFPv1.
24889
24890 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
24891
24892         * fold-const.c (expr_location_or): New function.
24893         (fold_truth_not_expr): Call it.
24894
24895 2011-03-25  Jeff Law  <law@redhat.com>
24896
24897         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
24898         va_end.
24899         * c-family/c-common.c (def_fn_type): Likewise.
24900         * ada/gcc-interface/utils.c (def_fn_type): Likewise.
24901         * emit-rtl.c (gen_rtvec): Likewise.
24902         * lto/lto-lang.c (def_fn_type): Likewise.
24903
24904 2011-03-25  Richard Guenther  <rguenther@suse.de>
24905
24906         * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
24907         also generate copies.
24908         (fini_copy_prop): Handle constant values properly.
24909
24910 2011-03-25  Jakub Jelinek  <jakub@redhat.com>
24911
24912         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
24913         mode size instead of bitsize with DWARF2_ADDR_SIZE.
24914         (hash_loc_operands, compare_loc_operands): Handle
24915         DW_OP_GNU_entry_value.
24916
24917 2011-03-25  Kai Tietz  <ktietz@redhat.com>
24918
24919         * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
24920         (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
24921         * config/i386/i386.c (ix86_conditional_register_usage): Adjust
24922         comment and use macro TARGET_64BIT_MS_ABI instead.
24923         (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
24924         and change default behavior for 32-bit MS_ABI.
24925         (ix86_reg_parm_stack_space): Check additionally for bit-ness.
24926         (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
24927         32-bit, too.
24928         (ix86_cfun_abi): Likewise.
24929         (ix86_maybe_switch_abi): Adjust comment.
24930         (init_cumulative_args): Check for bit-ness in MS_ABI case.
24931         (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
24932         instead of checking for SYSV_ABI.
24933         (ix86_nsaved_sseregs): Likewise.
24934         (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
24935         to 16 bytes.
24936         (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
24937         * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
24938         (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
24939         (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
24940         * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
24941
24942 2011-03-25  Richard Guenther  <rguenther@suse.de>
24943
24944         * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
24945         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
24946         (verify_gimple): Remove.
24947         * tree-cfg.c (verify_gimple_call): Merge verification
24948         from verify_stmts.
24949         (verify_gimple_phi): Merge verification from verify_stmts.
24950         (verify_gimple_label): New function.
24951         (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
24952         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
24953         (verify_stmt): Merge into verify_gimple_in_cfg and callees.
24954         (verify_stmts): Rename to verify_gimple_in_cfg.
24955         (verify_gimple_in_cfg): New function.
24956         * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
24957         * tree-ssa.c (verify_ssa): Likewise.
24958         * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
24959
24960 2011-03-25  Richard Guenther  <rguenther@suse.de>
24961
24962         * passes.c (init_optimization_passes): Add FRE pass after
24963         early SRA.
24964
24965 2011-03-25  Bernd Schmidt  <bernds@codesourcery.com>
24966             Andrew Stubbs  <ams@codesourcery.com>
24967
24968         * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
24969         for Cortex-A8.
24970         (arm_movdi_vfp_cortexa8): New pattern.
24971         * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
24972         iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
24973         instructions when tuning for Cortex-A8.  Set attribute "arch".
24974         * config/arm/arm.md: Move include arm-tune.md up a bit.
24975         (define_attr "arch"): Add "onlya8" and "nota8" values.
24976         (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
24977
24978 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
24979
24980         PR bootstrap/48282
24981         Revert:
24982         2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
24983
24984         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
24985         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
24986         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
24987         * passes.c (init_optimization_passes): Move
24988         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
24989
24990 2011-03-25  Kai Tietz  <ktietz@redhat.com>
24991
24992         * c-typeck.c (comptypes_internal): Replace target
24993         hook call of comp_type_attributes by version in tree.c file.
24994         * gimple.c (gimple_types_compatible_p_1): Likewise.
24995         * tree-ssa.c (useless_type_conversion_p): Likewise.
24996         * tree.c (build_type_attribute_qual_variant): Likewise.
24997         (attribute_value_equal): New static helper function.
24998         (comp_type_attributes): New function.
24999         (merge_attributes): Use attribute_value_equal for comparison.
25000         (attribute_list_contained): Likewise.
25001         * tree.h (comp_type_attributes): New prototype.
25002
25003 2011-03-25  Richard Guenther  <rguenther@suse.de>
25004
25005         * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
25006         of complex types at -O0.
25007         (verify_gimple_assign_binary): Likewise.
25008         (verify_gimple_assign_ternary): Likewise.
25009
25010 2011-03-24  Mark Wielaard  <mjw@redhat.com>
25011
25012         * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
25013         (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
25014
25015 2011-03-24  Mark Wielaard  <mjw@redhat.com>
25016
25017         PR debug/48041
25018         * dwarf2out.c (output_abbrev_section): Only write table when
25019         abbrev_die_table_in_use > 1.
25020
25021 2011-02-24  Richard Henderson  <rth@redhat.com>
25022
25023         * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
25024         (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
25025         (alpha_expand_unaligned_load_words): Use extql.
25026         (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
25027         (emit_insxl): Handle all modes for consistency.
25028
25029 2011-02-24  Richard Henderson  <rth@redhat.com>
25030
25031         * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
25032         (alpha_expand_unaligned_load): Likewise.
25033         (alpha_expand_unaligned_store): Likewise.
25034         (alpha_expand_unaligned_load_words): Likewise.
25035         (alpha_expand_unaligned_store_words): Likewise.
25036         (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
25037         (alpha_split_lock_test_and_set_12): Likewise.
25038         (print_operand, alpha_fold_builtin_extxx): Likewise.
25039         (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
25040         * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
25041         (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
25042         (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
25043         (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
25044         (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
25045         (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
25046         (unaligned_storeqi_be, unaligned_storehi_be): Remove.
25047         (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
25048         (extwl, extll, extql): Similarly.
25049         (inswh, inslh, insqh): Similarly.
25050         (mskbl, mskwl, mskll, mskql): Similarly.
25051         (mskwh, msklh, mskqh): Similarly.
25052
25053 2011-02-24  Richard Henderson  <rth@redhat.com>
25054
25055         * config/alpha/alpha.md (attribute isa): Add er, ner.
25056         (attribute enabled): Handle them.
25057         (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
25058
25059 2011-02-24  Richard Henderson  <rth@redhat.com>
25060
25061         * config/alpha/alpha.md (attribute isa): Add vms.
25062         (attribute enabled): Handle it.
25063         (*movsf): Merge *movsf_{nofix,fix,nofp}.
25064         (*movdf): Merge *movdf_{nofix,fix,nofp}.
25065         (*movtf): Rename from *movtf_internal for consistency.
25066         (*movsi): Merge with *movsi_nt_vms.
25067         (*movhi): Merge *movhi_nobwx, *movhi_bwx.
25068         (*movqi): Merge *movqi_nobwx, *movqi_bwx.
25069         (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
25070         * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
25071
25072 2011-02-24  Richard Henderson  <rth@redhat.com>
25073
25074         * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
25075         (extendqisi2, extendhisi2): Likewise.
25076         (extendqidi2): Simplify BWX/non-BWX expansions.
25077         (extendhidi2): Similarly.
25078
25079 2011-02-24  Richard Henderson  <rth@redhat.com>
25080
25081         * config/alpha/alpha.md (attribute isa): New.
25082         (attribute enabled): New.
25083         (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
25084         (zero_extendqisi2, zero_extendqidi2): Similarly.
25085         (zero_extendhisi2, zero_extendhidi2): Similarly.
25086         * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
25087
25088 2011-02-24  Richard Henderson  <rth@redhat.com>
25089
25090         * config/alpha/predicates.md (input_operand): Revert last change;
25091         update comment to mention 32-bit VMS rather than Windows.
25092
25093 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
25094
25095         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
25096         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
25097         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
25098         * passes.c (init_optimization_passes): Move
25099         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
25100
25101 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
25102
25103         * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
25104
25105 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
25106
25107         * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
25108         correctly.
25109
25110 2011-03-24  Jakub Jelinek  <jakub@redhat.com>
25111
25112         PR debug/48204
25113         * simplify-rtx.c (simplify_const_unary_operation): Call
25114         real_convert when changing mode class with FLOAT_EXTEND.
25115
25116 2011-03-24  Nick Clifton  <nickc@redhat.com>
25117
25118         * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
25119         (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
25120         * config/rx/rx.c (rx_option_override): Set align_jumps,
25121         align_loops and align_labels if not set by the user.
25122         (rx_align_for_label): New function.
25123         (rx_max_skip_for_label): New function.
25124         (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
25125         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
25126         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
25127         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
25128         * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
25129
25130 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
25131
25132         PR rtl-optimization/48263
25133         * optabs.c (expand_binop_directly): Reinstate convert_modes code
25134         and original commutative_p handling.  Use maybe_gen_insn.
25135
25136 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25137
25138         * reload.c (find_reloads_subreg_address): Add address_reloaded
25139         parameter and return true there if the full address has been
25140         reloaded.
25141         (find_reloads_toplev): Pass address_reloaded flag.
25142         (find_reloads_address_1): Don't use address_reloaded parameter.
25143
25144 2011-03-24  Jeff Law  <law@redhat.com>
25145
25146         * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
25147         unused variable "ann".
25148         (remove_unused_locals): Likewise.
25149
25150         * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
25151         statement.
25152
25153         * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
25154         after it is freed.
25155
25156 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25157
25158         * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
25159         for invalid symbolic addresses.
25160         (s390_secondary_reload): Don't use s390_check_symref_alignment for
25161         larl operands.
25162
25163 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
25164
25165         * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
25166         the argument in calls to fold_truth_not_expr.
25167
25168 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
25169
25170         * tree.c (record_node_allocation_statistics): New function.
25171         (make_node_stat, copy_node_stat, build_string): Call it.
25172         (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
25173         (build1_stat, build_omp_clause): Likewise.
25174
25175 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
25176
25177         * builtins.c (expand_movstr): Fix endp == 1 adjustment after
25178         last commit.
25179
25180 2011-03-24  Richard Guenther  <rguenther@suse.de>
25181
25182         PR tree-optimization/48271
25183         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
25184         blocks that still exist.
25185
25186 2011-03-24  Richard Guenther  <rguenther@suse.de>
25187
25188         PR tree-optimization/48270
25189         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
25190         not free datarefs before ddrs.
25191
25192 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
25193
25194         * tree-sra.c (build_ref_for_offset): Strip useless type conversions
25195         from the address built for a reference with variable offset.
25196
25197 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
25198
25199         PR target/48237
25200         * config/i386/i386.md (*movdf_internal_rex64): Do not split
25201         alternatives that can be handled with movq or movabsq insn.
25202         (*movdf_internal): Disable for !TARGET_64BIT.
25203         (*movdf_internal_nointeger): Ditto.
25204         * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
25205
25206 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
25207
25208         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
25209         (FUNCTION_ARG_ADVANCE): Likewise.
25210         * tm.texi.in: Change references to them to hook references.
25211         * tm.texi: Regenerate.
25212         * targhooks.c (default_function_arg): Eliminate check for target macro.
25213         (default_function_incoming_arg): Likewise.
25214         (default_function_arg_advance): Likewise.
25215         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
25216         (function_arg_advance): Likewise.
25217         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
25218
25219 2011-03-24  Richard Guenther  <rguenther@suse.de>
25220
25221         PR middle-end/48269
25222         * tree-object-size.c (addr_object_size): Do not double-account
25223         for MEM_REF offsets.
25224
25225 2011-03-24  Diego Novillo  <dnovillo@google.com>
25226
25227         * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
25228         * lto-streamer-in.c (input_string_internal): Add clarifying comments.
25229         (lto_input_data_block): Move from lto-opts.c.  Make extern.
25230         Update all users.
25231         (lto_input_string): Rename from input_string.  Make extern.
25232         Update all users.
25233         * lto-streamer-out.c (lto_output_string_with_length): Rename from
25234         output_string_with_length.
25235         Output 0 to indicate a non-NULL string.  Update all callers to
25236         not emit 0.
25237         (lto_output_string): Rename from output_string.  Make extern.
25238         Update all users.
25239         (lto_output_decl_state_streams): Make extern.
25240         (lto_output_decl_state_refs): Make extern.
25241         * lto-streamer.h (lto_input_string): Declare.
25242         (lto_input_data_block): Declare.
25243         (lto_output_string): Declare.
25244         (lto_output_string_with_length): Declare.
25245         (lto_output_decl_state_streams): Declare.
25246         (lto_output_decl_state_refs): Declare.
25247
25248 2011-03-24  Richard Guenther  <rguenther@suse.de>
25249
25250         PR tree-optimization/46562
25251         * tree.c (build_invariant_address): New function.
25252         * tree.h (build_invariant_address): Declare.
25253         * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
25254         a renamed function moved ...
25255         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
25256         Take valueization callback parameter.
25257         * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
25258         * gimple-fold.h: New file.
25259         * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
25260         (ccp_fold, fold_const_aggregate_ref,
25261         fold_ctor_reference, fold_nonarray_ctor_reference,
25262         fold_array_ctor_reference, fold_string_cst_ctor_reference,
25263         get_base_constructor): Move ...
25264         * gimple-fold.c: ... here.
25265         (gimple_fold_stmt_to_constant_1): New function
25266         split out from ccp_fold.  Take a valueization callback parameter.
25267         Valueize all operands.
25268         (gimple_fold_stmt_to_constant): New wrapper function.
25269         (fold_const_aggregate_ref_1): New function split out from
25270         fold_const_aggregate_ref.  Take a valueization callback parameter.
25271         (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
25272         * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
25273         invariant POINTER_PLUS_EXPRs to invariant form.
25274         (vn_valueize): New function.
25275         (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
25276         * tree-vrp.c (vrp_valueize): New function.
25277         (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
25278         to fold statements to constants.
25279         * tree-ssa-pre.c (eliminate): Properly guard propagation of
25280         function declarations.
25281         * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
25282         tree-ssa-ccp.o): Add gimple-fold.h dependencies.
25283
25284 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
25285
25286         * config/h8300/predicates.md (jump_address_operand): Fix register
25287         mode check.
25288
25289 2011-03-24  Ira Rosen  <ira.rosen@linaro.org>
25290
25291         * doc/invoke.texi (max-stores-to-sink): Document.
25292         * params.h (MAX_STORES_TO_SINK): Define.
25293         * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
25294         if either vectorization or if-conversion is disabled.
25295         * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
25296         tree-vect-data-refs.c vect_equal_offsets.
25297         (dr_equal_offsets_p): New function.
25298         (find_data_references_in_bb): Remove static.
25299         * tree-data-ref.h (find_data_references_in_bb): Declare.
25300         (dr_equal_offsets_p): Likewise.
25301         * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
25302         (vect_drs_dependent_in_basic_block): Update calls to
25303         vect_equal_offsets.
25304         (vect_check_interleaving): Likewise.
25305         * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
25306         (cond_if_else_store_replacement): Rename to...
25307         (cond_if_else_store_replacement_1): ... this.  Change arguments and
25308         documentation.
25309         (cond_if_else_store_replacement): New function.
25310         * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
25311         * params.def (PARAM_MAX_STORES_TO_SINK): Define.
25312
25313 2011-03-23  Chung-Lin Tang  <cltang@codesourcery.com>
25314
25315         PR target/46934
25316         * config/arm/arm.md (casesi): Use the gen_int_mode() function
25317         to subtract lower bound instead of GEN_INT().
25318
25319 2011-03-23  Jonathan Wakely  <jwakely.gcc@gmail.com>
25320
25321         PR other/48179
25322         PR other/48221
25323         PR other/48234
25324         * doc/extend.texi (Alignment): Move section to match order in TOC.
25325         * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
25326         (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
25327
25328 2011-03-23  Jeff Law  <law@redhat.com>
25329
25330         * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
25331         before removing the edge.
25332
25333         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
25334         it may have been freed by redirect_branch_edge or
25335         redirect_edge_succ_nodup.
25336
25337 2011-03-23  Richard Guenther  <rguenther@suse.de>
25338
25339         * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
25340         (check_va_list_escapes): Likewise.
25341         (check_all_va_list_escapes): Likewise.
25342
25343 2011-03-23  Richard Guenther  <rguenther@suse.de>
25344
25345         * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
25346         (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
25347         (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
25348         (alias.o): Likewise.
25349         (ipa-type-escape.o): Remove.
25350         (ipa-struct-reorg.o): Likewise.
25351         (GTFILES): Remove ipa-struct-reorg.c.
25352         * alias.c: Do not include ipa-type-escape.h.
25353         * tree-ssa-alias.c: Likewise.
25354         * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
25355         * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
25356         * passes.c (init_optimization_passes): Remove ipa-struct-reorg
25357         and ipa-type-escape passes.
25358         * tree-pass.h (pass_ipa_type_escape): Remove.
25359         (pass_ipa_struct_reorg): Likewise.
25360         * ipa-struct-reorg.h: Remove.
25361         * ipa-struct-reorg.c: Likewise.
25362         * ipa-type-escape.h: Likewise.
25363         * ipa-type-escape.c: Likewise.
25364         * doc/invoke.texi (-fipa-struct-reorg): Remove.
25365         (--param struct-reorg-cold-struct-ratio): Likewise.
25366         * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
25367         * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
25368         * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
25369
25370 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25371
25372         * config/s390/2084.md: Enable all insn reservations also for z9_ec
25373         cpu attribute value.
25374         * config/s390/s390-opts.h (enum s390_arch_option): Remove.
25375         (enum processor_type): Add PROCESSOR_2094_Z9_EC.
25376         * config/s390/s390.c (processor_flags_table): New constant array.
25377         (s390_handle_arch_option): Remove.
25378         (s390_handle_option): Remove s390_handle_arch_option invocations
25379         and OPT_mwarn_framesize_ handling.
25380         (s390_option_override): Remove s390_handle_arch_option invocation.
25381         (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
25382         warnings.
25383         * config/s390/s390.md (cpu attribute): Add z9_ec value.
25384         * config/s390/s390.opt (s390_tune, s390_arch)
25385         (march=): Replace s390_arch_option enum and values with
25386         processor_type.  Set variable name to s390_arch.  Set
25387         initialization value.
25388         (mtune=): Replace s390_arch_option with processor_type.  Set
25389         variable name to s390_tune.  Set initialization value.
25390
25391 2011-03-23  Julian Brown  <julian@codesourcery.com>
25392
25393         * expr.c (expand_expr_real_1): Only use BLKmode for volatile
25394         accesses which are not naturally aligned.
25395
25396 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
25397
25398         PR target/47553
25399         * config/arm/predicates.md (neon_lane_number): Accept 0..15.
25400
25401 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
25402
25403         * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
25404         parameter from "int" to "enum insn_code".
25405         (expand_operand_type): New enum.
25406         (expand_operand): New structure.
25407         (create_expand_operand): New function.
25408         (create_fixed_operand, create_output_operand): Likewise
25409         (create_input_operand, create_convert_operand_to): Likewise.
25410         (create_convert_operand_from, create_address_operand): Likewise.
25411         (create_integer_operand): Likewise.
25412         (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
25413         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
25414         (expand_insn, expand_jump_insn): Likewise.
25415         * builtins.c (expand_builtin_prefetch): Use the new interfaces.
25416         (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
25417         (expand_movstr, expand_builtin___clear_cache): Likewise.
25418         (expand_builtin_lock_release): Likewise.
25419         * explow.c (allocate_dynamic_stack_space): Likewise.
25420         (probe_stack_range): Likewise.  Allow check_stack to FAIL,
25421         and use the default handling in that case.
25422         * expmed.c (check_predicate_volatile_ok): Delete.
25423         (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
25424         (emit_cstore): Likewise.
25425         * expr.c (emit_block_move_via_movmem): Likewise.
25426         (set_storage_via_setmem, expand_assignment): Likewise.
25427         (emit_storent_insn, try_casesi): Likewise.
25428         (emit_single_push_insn): Likewise.  Allow the expansion to fail.
25429         * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
25430         (expand_vec_shift_expr, expand_binop_directly): Likewise.
25431         (expand_twoval_unop, expand_twoval_binop): Likewise.
25432         (expand_unop_direct, emit_indirect_jump): Likewise.
25433         (emit_conditional_move, vector_compare_rtx): Likewise.
25434         (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
25435         (expand_sync_operation, expand_sync_fetch_operation): Likewise.
25436         (expand_sync_lock_test_and_set): Likewise.
25437         (maybe_emit_unop_insn): Likewise.  Change icode to an insn_code.
25438         (emit_unop_insn): Likewise.
25439         (expand_copysign_absneg): Change icode to an insn_code.
25440         (create_convert_operand_from_type): New function.
25441         (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
25442         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
25443         (expand_insn, expand_jump_insn): Likewise.
25444         * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
25445         than const_int_operand for operand 2.
25446
25447 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25448
25449         * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
25450         if possible.
25451
25452 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
25453
25454         * emit-rtl.c (emit_pattern_before_noloc): New function.
25455         (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
25456         (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
25457         (emit_pattern_after_noloc): New function.
25458         (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
25459         (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
25460
25461 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
25462
25463         * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
25464         (__ffsDI2): Likewise.
25465
25466 2011-03-22  Richard Henderson  <rth@redhat.com>
25467
25468         * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
25469         of !TARGET_ABI_OPEN_VMS.
25470         (alpha_trampoline_init, alpha_start_function): Likewise.
25471         (alpha_expand_epilogue, alpha_file_start): Likewise.
25472         * config/alpha/alpha.md (divsi3, modsi3): Likewise.
25473         (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
25474         (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
25475         (*divmodsi_internal, *divmoddi_internal_er): Likewise.
25476         (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
25477
25478 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
25479
25480         * config/s390/s390-opts.h: New.
25481         * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
25482         s390_arch_flags, s390_warn_framesize, s390_stack_size,
25483         s390_stack_guard): Remove.
25484         (s390_handle_arch_option): Return void.  Take enum
25485         s390_arch_option value instead of string and searching array.
25486         (s390_handle_option): Don't assert that global structures are in
25487         use.  Access variables via opts pointer.  Use error_at.  Don't use
25488         sscanf for -mstack-guard= or -mstack-size=.  Update call to
25489         s390_handle_arch_option.
25490         (s390_option_override): Update call to s390_handle_arch_option.
25491         (s390_emit_prologue): Use %d format for s390_stack_size in
25492         diagnostic.  Use %wd for HOST_WIDE_INT.
25493         * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
25494         (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
25495         * config/s390/s390.opt (config/s390/s390-opts.h): New
25496         HeaderInclude entry.
25497         (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
25498         s390_arch_flags, s390_warn_framesize): New Variable entries.
25499         (s390_arch_option): New Enum and EnumValue entries.
25500         (march=): Use Enum instead of Var.
25501         (mstack-guard=, mstack-size=): Use UInteger and Var.
25502         (mtune=): Use Enum.
25503
25504 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
25505
25506         * config/score/score.c (score_handle_option): Don't assert that
25507         global structures are in use.  Access target_flags via opts
25508         pointer.  Use value of -march= option to determine target_flags
25509         settings.
25510         * config/score/score.opt (march=): Use Enum.
25511         (score_arch): New Enum and EnumValue entries.
25512
25513 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
25514
25515         * config/mep/mep.c (option_mtiny_specified): Remove.
25516         (mep_option_override): Move register handling for -mivc2 from
25517         mep_handle_option.  Use global_options_set.x_mep_tiny_cutoff
25518         instead of option_mtiny_specified.
25519         (mep_handle_option): Access target_flags via opts pointer.  Don't
25520         assert that global structures are in use.  Defer part of -mivc2
25521         handling and move it to mep_option_override.
25522         * config/mep/mep.opt (IVC2): New Mask entry.
25523         (mivc2): Use Var and Defer instead of Mask.
25524
25525 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
25526
25527         * config/v850/v850-opts.h: New.
25528         * config/v850/v850.c (small_memory): Replace with
25529         small_memory_physical_max array.  Make that array static const.
25530         (v850_handle_memory_option): Take integer value of argument.  Take
25531         gcc_options pointer, option text and location.  Return void.
25532         Update for changes to small memory structures.
25533         (v850_handle_option): Access target_flags via opts pointer.  Don't
25534         assert that global structures are in use.  Update calls to
25535         v850_handle_memory_option.
25536         (v850_encode_data_area): Update references to small memory settings.
25537         * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
25538         (enum small_memory_type): Move to v850-opts.h.
25539         * config/v850/v850.opt (config/v850/v850-opts.h): New
25540         HeaderInclude entry.
25541         (small_memory_max): New Variable entry.
25542         (msda): Replace by pair of options msda= and msda-.  Use UInteger.
25543         (mtda, mzda): Likewise.
25544
25545 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
25546
25547         * config/sh/sh.c (sh_handle_option): Access target_flags via opts
25548         pointer.  Don't assert that global structures are in use.
25549
25550 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
25551
25552         * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
25553         via opts pointer.  Don't assert that global structures are in use.
25554
25555 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
25556
25557         * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
25558         (munix=93): Use Var.
25559         * config/pa/pa-hpux1010.opt (munix=95): Use Var.
25560         * config/pa/pa-hpux1111.opt (munix=98): Use Var.
25561         * config/pa/pa-opts.h: New.
25562         * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
25563         (pa_handle_option): Don't assert that global structures are in
25564         use.  Access target_flags via opts pointer.  Don't handle
25565         OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
25566         OPT_munix_98 here.
25567         (pa_option_override): Handle deferred OPT_mfixed_range_.
25568
25569 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
25570
25571         * config/mn10300/mn10300-opts.h: New.
25572         * config/mn10300/mn10300.c (mn10300_processor,
25573         mn10300_tune_string): Remove.
25574         (mn10300_handle_option): Don't assert that global structures are
25575         in use.  Access mn10300_processor via opts pointer.  Don't handle
25576         OPT_mtune_ here.
25577         * config/mn10300/mn10300.h (enum processor_type): Move to
25578         mn10300-opts.h.
25579         (mn10300_processor): Remove.
25580         * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
25581         HeaderInclude entry.
25582         (mn10300_processor): New Variable entry.
25583         (mtune=): Use Var.
25584
25585 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
25586
25587         * config/microblaze/microblaze.c: Don't include opts.h.
25588         (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
25589         * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
25590         (mno-clearbss): Use Var and Warn.
25591
25592 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
25593
25594         * config/m32r/m32r-opts.h: New.
25595         * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
25596         (m32r_handle_option): Don't assert that global structures are in
25597         use.  Access target_flags and m32r_cache_flush_func via opts
25598         pointer.  Don't handle OPT_mmodel_, OPT_msdata_ or
25599         OPT_mno_flush_trap here.
25600         * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
25601         include of m32r-opts.h.
25602         * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
25603         HeaderInclude entry.
25604         (m32r_model_selected, m32r_sdata_selected): New Variable entries.
25605         (mmodel=): Use Enum and Var.
25606         (m32r_model): New Enum and EnumValue entries.
25607         (mno-flush-trap): Use Var.
25608         (msdata=): Use Enum and Var.
25609         (m32r_sdata): New Enum and EnumValue entries.
25610
25611 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
25612
25613         * config/m32c/m32c.c: Don't include opts.h.
25614         (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
25615         m32c_handle_option): Remove.
25616         (m32c_option_override): Check global_options_set.x_target_memregs
25617         instead of target_memregs_set.
25618         * config/m32c/m32c.h (target_memregs): Remove.
25619         * config/m32c/m32c.opt (memregs=): Use UInteger with integer
25620         variable.
25621
25622 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
25623
25624         * config/iq2000/iq2000-opts.h: New.
25625         * config/iq2000/iq2000.c: Don't include opts.h.
25626         (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
25627         * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
25628         * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
25629         HeaderInclude entry.
25630         (iq2000_tune): New Variable entry.
25631         (march=): Add comment.  Use Enum.
25632         (iq2000_arch): New Enum and EnumValue entries.
25633         (mcpu=): Use Enum and Var.
25634         (iq2000_tune): New Enum and EnumValue entries.
25635
25636 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
25637
25638         * config/ia64/ia64-opts.h: New.
25639         * config/ia64/ia64.c (ia64_tune): Remove.
25640         (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
25641         here.  Use error_at.
25642         (ia64_option_override): Handle deferred OPT_mfixed_range_.
25643         * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
25644         * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
25645         HeaderInclude entry.
25646         (ia64_tune): New Variable entry.
25647         (mfixed-range=): Use Defer and Var.
25648         (mtune=): Use Enum and Var.
25649         (ia64_tune): New Enum and EnumValue entries.
25650
25651 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
25652
25653         * config/frv/frv-opts.h: New.
25654         * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
25655         frv-opts.h.
25656         (frv_cpu_type): Remove.
25657         * config/frv/frv.c: Don't include opts.h.
25658         (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
25659         * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
25660         (frv_cpu_type): New Variable entry.
25661         (frv_cpu): New Enum and EnumValue entries.
25662
25663 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
25664
25665         * config/cris/cris.c (cris_handle_option): Access target_flags via
25666         opts pointer.  Don't assert that global structures are in use.
25667         Don't call CRIS_SUBTARGET_HANDLE_OPTION.
25668         * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
25669
25670 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
25671
25672         * config/bfin/bfin-opts.h: New.
25673         * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
25674         bfin_si_revision, bfin_workarounds): Remove.
25675         (bfin_cpus): Make static const.
25676         (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
25677         not bfin_lib_id_given.
25678         (bfin_handle_option): Don't set bfin_lib_id_given.  Access
25679         bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
25680         pointer. Use error_at.  Don't assert that global structures are in use.
25681         * config/bfin/bfin.h: Include bfin-opts.h.
25682         (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
25683         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
25684         * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
25685         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
25686         entries.
25687
25688 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
25689
25690         * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
25691         * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
25692         or -msoft-float here.
25693         * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
25694         -msoft-float and -mhard-float.
25695         (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
25696         * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
25697         msoft-float.
25698         * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
25699         -msoft-float.
25700         (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
25701         * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
25702         not mhard-float.
25703         (LIBGCC_SPEC): Don't handle -msoft-float.
25704         * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
25705         -mhard-float.
25706         * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
25707         msoft-float.
25708         * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
25709         -mfloat-abi=*, not -msoft-float and -mhard-float.
25710         * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
25711         -msoft-float.
25712         * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
25713         Use mfloat-abi=hard and mfloat-abi=soft in comments, not
25714         mhard-float and msoft-float.
25715         * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
25716         mfloat-abi=soft in comments, not mhard-float and msoft-float.
25717         * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
25718         mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
25719         mhard-float.
25720         * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
25721         mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
25722         msoft-float.
25723         * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
25724         not mhard-float.
25725         * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
25726         not msoft-float.
25727
25728 2011-03-22  Richard Henderson  <rth@redhat.com>
25729
25730         * config/alpha/alpha.c (alpha_expand_prologue): Don't test
25731         TARGET_ABI_WINDOWS_NT.
25732         (alpha_output_function_end_prologue): Likewise.
25733         * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
25734         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
25735         * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
25736         (trap, *movsi_nt_vms): Likewise.
25737         (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
25738         (*tablejump_osf_nt_internal): Remove.
25739         * config/alpha/predicates.md (input_operand): Only test Pmode.
25740
25741 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
25742
25743         * config/alpha/alpha.c (alpha_handle_option): Access target_flags
25744         via opts pointer.  Use error_at.  Don't assert that global
25745         structures are in use.
25746
25747 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
25748
25749         * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
25750         (ix86_handle_option): Access ix86_isa_flags and
25751         ix86_isa_flags_explicit via opts pointer.  Don't assert that
25752         global structures are in use.
25753         (ix86_function_specific_save, ix86_function_specific_restore):
25754         Update ix86_isa_flags_explicit field name.
25755         * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
25756         (ix86_isa_flags_explicit): Rename TargetSave entry to
25757         x_ix86_isa_flags_explicit.
25758
25759 2011-03-22  Richard Henderson  <rth@redhat.com>
25760
25761         * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
25762         (alpha_option_override, direct_return): Likewise.
25763         (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
25764         (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
25765         (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
25766         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
25767         (alpha_expand_epilogue, alpha_end_function): Likewise.
25768         (alpha_init_libfuncs): Likewise.
25769         (struct machine_function): Remove unicosmk members.
25770         (print_operand) ['t']: Remove.
25771         (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
25772         unicosmk_output_module_name, unicosmk_output_common,
25773         current_section_align, unicosmk_output_text_section_asm_op,
25774         unicosmk_output_data_section_asm_op, unicosmk_init_sections,
25775         unicosmk_section_type_flags, unicosmk_unique_section,
25776         unicosmk_asm_named_section, unicosmk_insert_attributes,
25777         unicosmk_output_align, unicosmk_defer_case_vector,
25778         unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
25779         SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
25780         unicosmk_output_ssib, unicosmk_add_call_info_word,
25781         unicosmk_extern_head, unicosmk_output_default_externs,
25782         unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
25783         unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
25784         unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
25785         * config/alpha/alpha-protos.h: Update.
25786         * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
25787         * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
25788         (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
25789         (mulsi3): Don't test TARGET_ABI_UNICOSMK.
25790         (*mulsi_se, mulvsi3): Likewise.
25791         (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
25792         (*divmodsi_internal, call, call_value, realign): Likewise.
25793         (moddi3, umoddi3): Likewise; remove duplicate expander.
25794         (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
25795         (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
25796         (*movdi_nofix): Remove r/U alternative.
25797         (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
25798         * config/alpha/constraints.md ("U"): Remove.
25799         * config/alpha/predicates.md (call_operand"): Don't test
25800         TARGET_ABI_UNICOSMK.
25801
25802 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
25803
25804         * target.def (handle_option): Take gcc_options and
25805         cl_decoded_option pointers and location_t.
25806         * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
25807         * doc/tm.texi: Regenerate.
25808         * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
25809         * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
25810         * lto-opts.c (lto_reissue_options): Generate option structure for
25811         targetm.handle_option call.
25812         * opts.c (target_handle_option): Update call to
25813         targetm.handle_option.  Remove assertions about values now passed
25814         down to hook.
25815         * targhooks.c (default_target_handle_option): New.
25816         * targhooks.h (default_target_handle_option): Declare.
25817         * config/alpha/alpha.c: Include opts.h.
25818         (alpha_handle_option): Update to new hook interface.
25819         * config/arm/arm.c: Include opts.h.
25820         (arm_handle_option): Update to new hook interface.
25821         * config/arm/t-arm (arm.o): Update dependencies.
25822         * config/bfin/bfin.c: Include opts.h.
25823         (bfin_handle_option): Update to new hook interface.
25824         * config/cris/cris.c: Include opts.h.
25825         (cris_handle_option): Update to new hook interface.
25826         * config/frv/frv.c: Include opts.h.
25827         (frv_handle_option): Update to new hook interface.
25828         * config/i386/i386.c: Include opts.h.
25829         (ix86_handle_option): Update to new hook interface.
25830         (ix86_valid_target_attribute_inner_p): Generate option structure
25831         for call to ix86_handle_option.
25832         * config/i386/t-i386 (i386.o): Update dependencies.
25833         * config/ia64/ia64.c: Include opts.h.
25834         (ia64_handle_option): Update to new hook interface.
25835         * config/ia64/t-ia64 (ia64.o): Update dependencies.
25836         * config/iq2000/iq2000.c: Include opts.h.
25837         (iq2000_handle_option): Update to new hook interface.
25838         * config/m32c/m32c.c: Include opts.h.
25839         (m32c_handle_option): Update to new hook interface.
25840         * config/m32r/m32r.c: Include opts.h.
25841         (m32r_handle_option): Update to new hook interface.
25842         * config/m68k/m68k.c: Include opts.h.
25843         (m68k_handle_option): Update to new hook interface.
25844         * config/mep/mep.c: Include opts.h.
25845         (mep_handle_option): Update to new hook interface.
25846         * config/microblaze/microblaze.c: Include opts.h.
25847         (microblaze_handle_option): Update to new hook interface.
25848         * config/mips/mips.c: Include opts.h.
25849         (mips_handle_option): Update to new hook interface.
25850         * config/mn10300/mn10300.c: Include opts.h.
25851         (mn10300_handle_option): Update to new hook interface.
25852         * config/pa/pa.c: Include opts.h.
25853         (pa_handle_option): Update to new hook interface.
25854         * config/pdp11/pdp11.c: Include opts.h.
25855         (pdp11_handle_option): Update to new hook interface.
25856         * config/rs6000/rs6000.c: Include opts.h.
25857         (rs6000_handle_option): Update to new hook interface.
25858         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
25859         * config/rx/rx.c: Include opts.h.
25860         (rx_handle_option): Update to new hook interface.
25861         * config/s390/s390.c: Include opts.h.
25862         (s390_handle_option): Update to new hook interface.
25863         * config/score/score.c: Include opts.h.
25864         (score_handle_option): Update to new hook interface.
25865         * config/sh/sh.c: Include opts.h.
25866         (sh_handle_option): Update to new hook interface.
25867         * config/sparc/sparc.c: Include opts.h.
25868         (sparc_handle_option): Update to new hook interface.
25869         * config/v850/v850.c: Include opts.h.
25870         (v850_handle_option): Update to new hook interface.
25871
25872 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
25873
25874         * gcc.c (driver_unknown_option_callback): Only permit and save
25875         unknown -Wno- options.
25876         (driver_wrong_lang_callback): Save options directly instead of via
25877         driver_unknown_option_callback.
25878
25879 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
25880
25881         * combine.c (simplify_set): Try harder to find the best CC mode when
25882         simplifying a nested COMPARE on the RHS.
25883
25884 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
25885
25886         * config/alpha/gnu.h: Remove.
25887         * config/arc: Remove directory.
25888         * config/arm/netbsd.h: Remove.
25889         * config/arm/t-pe: Remove.
25890         * config/crx: Remove directory.
25891         * config/i386/netbsd.h: Remove.
25892         * config/m68hc11: Remove directory.
25893         * config/m68k/uclinux-oldabi.h: Remove.
25894         * config/mcore/mcore-pe.h: Remove.
25895         * config/mcore/t-mcore-pe: Remove.
25896         * config/netbsd-aout.h: Remove.
25897         * config/rs6000/gnu.h: Remove.
25898         * config/sh/sh-symbian.h: Remove.
25899         * config/sh/symbian-base.c: Remove.
25900         * config/sh/symbian-c.c: Remove.
25901         * config/sh/symbian-cxx.c: Remove.
25902         * config/sh/symbian-post.h: Remove.
25903         * config/sh/symbian-pre.h: Remove.
25904         * config/sh/t-symbian: Remove.
25905         * config/svr3.h: Remove.
25906         * config/vax/netbsd.h: Remove.
25907         * config.build: Don't handle i[34567]86-*-pe.
25908         * config.gcc: Remove handling of deprecations for most deprecated
25909         targets.
25910         (m68k-*-uclinuxoldabi*): Add to second deprecated list.
25911         (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
25912         i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
25913         m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
25914         powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
25915         sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
25916         Remove cases.
25917         * config.host: Don't handle i[34567]86-*-pe.
25918         * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
25919         (ASM_SPEC32): Don't handle -mcall-gnu.
25920         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
25921         -mcall-gnu.
25922         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
25923         STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
25924         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
25925         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
25926         (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
25927         * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
25928         conditional on SYMBIAN.
25929         * configure.ac: Don't handle powerpc*-*-gnu*.
25930         * configure: Regenerate.
25931         * doc/extend.texi (interrupt attribute): Don't mention CRX.
25932         * doc/install-old.texi (m6811, m6812): Don't mention.
25933         * doc/install.texi (arc-*-elf*): Don't document multilib option.
25934         (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
25935         (m68k-uclinuxoldabi): Don't mention.
25936         * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
25937         Remove.
25938         (-mcall-gnu): Remove.
25939         * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
25940         families): Remove constraint documentation.
25941
25942 2011-03-22  Marius Strobl  <marius@FreeBSD.org>
25943
25944         * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
25945         (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
25946         (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
25947
25948 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
25949
25950         PR target/48226
25951         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
25952         vector when peeking at the next token for vector, don't expand the
25953         keywords.
25954
25955 2011-03-21  Georg-Johann Lay  <avr@gjlay.de>
25956
25957         * config/avr/avr-protos.h (expand_epilogue): Change prototype
25958         * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
25959         * config/avr/avr.c (init_cumulative_args)
25960         (avr_function_arg_advance): Use it.
25961         * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
25962         sibcall epilogues.
25963         (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
25964         (avr_function_ok_for_sibcall): ...this new function.
25965         (avr_lookup_function_attribute1): New static Function.
25966         (avr_naked_function_p, interrupt_function_p)
25967         (signal_function_p, avr_OS_task_function_p)
25968         (avr_OS_main_function_p): Use it.
25969         * config/avr/avr.md ("sibcall", "sibcall_value")
25970         ("sibcall_epilogue"): New expander.
25971         ("*call_insn", "*call_value_insn"): New insn.
25972         ("call_insn", "call_value_insn"): Remove
25973         ("call", "call_value", "epilogue"): Change expander to handle
25974         sibling calls.
25975
25976 2011-03-21  Nick Clifton  <nickc@redhat.com>
25977
25978         * doc/invoke.texi (Overall Options): Move closing brace to end of
25979         options list.
25980         (Optimization Options): Add missing @gol.
25981         (Directory Options): Likewise.
25982         (i386 and x86-64 Options): Likewise.
25983         (RS6000 and PowerPC Options): Likewise.
25984         (i386 and x86-64 Windows Options): Likewise.
25985         (V850 Options): Add text missing from descriptions.
25986
25987 2011-03-22  Richard Henderson  <rth@redhat.com>
25988
25989         * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
25990         (avr_incoming_return_addr_rtx): New.
25991         (emit_push_byte): New.
25992         (expand_prologue): Use it.  Remove incorrect dwarf annotation for
25993         SREG, RAMPZ, zero register.  Push frame pointer by bytes.  Add dwarf
25994         annotation for __prologue_saves__.  Fixup dwarf annotation for CFA.
25995         (emit_pop_byte): New.
25996         (expand_epilogue): Use it.  Pop frame pointer by bytes.
25997         * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
25998         (INCOMING_RETURN_ADDR_RTX): New.
25999         (INCOMING_FRAME_SP_OFFSET): New.
26000         (ARG_POINTER_CFA_OFFSET): New.
26001         * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
26002         (*pushhi, *pushsi, *pushsf, popqi): Likewise.
26003         (pophi): Remove.
26004
26005         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
26006
26007 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
26008
26009         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
26010         (FUNCTION_ARG_ADVANCE): Likewise.
26011         * tm.texi.in: Change references to them to hook references.
26012         * tm.texi: Regenerate.
26013         * targhooks.c (default_function_arg): Eliminate check for target
26014         macro.
26015         (default_function_incoming_arg): Likewise.
26016         (default_function_arg_advance): Likewise.
26017         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
26018         (function_arg_advance): Likewise.
26019         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
26020
26021 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
26022
26023         * tree.c (build_call_1): New function.
26024         (build_call_valist, build_call_array_loc, build_call_vec): Call it.
26025
26026 2011-03-22  Richard Guenther  <rguenther@suse.de>
26027
26028         PR tree-optimization/48228
26029         * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
26030         for single-arg PHIs.
26031
26032 2011-03-22  Andrey Belevantsev  <abel@ispras.ru>
26033
26034         PR rtl-optimization/48143
26035         * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
26036         (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
26037         sse2_cvtps2pd): Likewise.
26038
26039 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26040
26041         * recog.c (canonicalize_change_group): Use validate_unshare_change.
26042
26043 2011-03-22  Richard Guenther  <rguenther@suse.de>
26044
26045         * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
26046         a valid RHS.  Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
26047         * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
26048         and REALIGN_LOAD_EXPR.
26049         (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
26050         DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
26051         * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
26052         DOT_PROD_EXPR case ...
26053         (expand_expr_real_2): ... here.
26054         * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
26055         and REALIGN_LOAD_EXPR.
26056         * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
26057         * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
26058         (vect_create_epilog_for_reduction): Likewise.
26059         (vectorizable_reduction): Likewise.
26060         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
26061         * tree-vect-stmts.c (vectorizable_load): Likewise.
26062
26063 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
26064
26065         * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
26066
26067 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26068
26069         * config/s390/s390.c (s390_delegitimize_address): Fix offset
26070         handling for PLTOFF/GOTOFF.
26071
26072 2011-03-22  Nick Clifton  <nickc@redhat.com>
26073
26074         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
26075         trailing backslash from the end of the macro definition.
26076
26077 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26078
26079         * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
26080         and PLT unspecs.
26081
26082 2011-03-21  Richard Sandiford  <richard.sandiford@linaro.org>
26083
26084         * expr.h (prepare_operand): Move to...
26085         * optabs.h (prepare_operand): ...here and change the insn code
26086         parameter from "int" to "enum insn_code".
26087         (insn_operand_matches): Declare.
26088         * expr.c (init_expr_target): Use insn_operand_matches.
26089         (compress_float_constant): Likewise.
26090         * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
26091         * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
26092         (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
26093         (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
26094         Likewise.
26095         (gen_cond_trap): Likewise.
26096         (prepare_operand): Likewise.  Change icode to an insn_code.
26097         (insn_operand_matches): New function.
26098         * reload.c (find_reloads_address_1): Use insn_operand_matches.
26099         * reload1.c (gen_reload): Likewise.
26100         * targhooks.c (default_secondary_reload): Likewise.
26101
26102 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
26103
26104         * config/alpha/alpha.md (unspec): New define_c_enum.
26105         (unspecv): Ditto.
26106
26107 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
26108
26109         PR debug/48214
26110         * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
26111         between a call and its CALL_ARG_LOCATION note.
26112
26113 2011-03-21  Eric Botcazou  <ebotcazou@adacore.com>
26114
26115         * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
26116
26117 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
26118
26119         PR c/42544
26120         PR c/48197
26121         * c-common.c (shorten_compare): If primopN is first sign-extended
26122         to opN and then zero-extended to result type, set primopN to opN.
26123
26124 2011-03-21  Daniel Jacobowitz  <dan@codesourcery.com>
26125
26126         * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
26127         for barrier handlers.
26128
26129 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
26130
26131         * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
26132         UNSPEC constants to be in the unspec enumeration, and redefine
26133         all UNSPECV constants to be in the unspecv enumeration, so that
26134         dumps print which unspec/unspec_volatile this is.
26135         * config/rs6000/vector.md (UNSPEC_*): Ditto.
26136         * config/rs6000/paired.md (UNSPEC_*): Ditto.
26137         * config/rs6000/vsx.md (UNSPEC_*): Ditto.
26138         * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
26139         * config/rs6000/dfp.md (UNSPEC_*): Ditto.
26140
26141         * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
26142         UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
26143         UNSPECV_LWSYNC, since these are used as unspec_volatile.
26144         * config/rs6000/sync.md (isync, lwsync): Ditto.
26145
26146 2011-03-21  Richard Guenther  <rguenther@suse.de>
26147
26148         * params.def (lto-min-partition): Fix typo.
26149
26150 2011-03-21  Richard Guenther  <rguenther@suse.de>
26151
26152         PR c/47939
26153         * c-decl.c (grokdeclarator): Drop to the main variant only
26154         for array types.  Drop flag_gen_aux_info check.
26155
26156 2011-03-21  Richard Guenther  <rguenther@suse.de>
26157
26158         PR translation/47911
26159         * params.def (lto-partitions): Fix typo.
26160         (lto-min-partition): Fix wording.
26161
26162 2011-03-21  Andreas Tobler  <andreast@fgznet.ch>
26163
26164         * config/rs6000/t-freebsd: Remove duplication from file.
26165
26166 2011-03-21  Richard Guenther  <rguenther@suse.de>
26167
26168         PR middle-end/47661
26169         * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
26170
26171 2011-03-21  Richard Guenther  <rguenther@suse.de>
26172
26173         PR lto/48210
26174         * params.def (lto-partitions): Require at least 1 partition.
26175
26176 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26177
26178         * gthr-solaris.h: Remove.
26179         * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
26180         * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
26181         (LIB_SPEC): Likewise.
26182         * config/sol2.opt (threads): Remove.
26183         * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
26184         (sparc*-*-solaris2*): Likewise.
26185         * configure.ac (enable_threads): Enable solaris support.
26186         * configure: Regenerate.
26187         * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
26188         * doc/install.texi (Configuration, --enable-threads=lib): Remove
26189         solaris.
26190
26191 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26192
26193         * config.gcc: Obsolete *-*-solaris2.8*.
26194         * doc/install.texi (Specific, *-*-solaris2*): Document it.
26195
26196 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26197
26198         PR bootstrap/48135
26199         * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
26200         reference.  Solaris 8 perl works.
26201
26202 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26203
26204         PR bootstrap/48135
26205         * doc/install.texi (Prerequisites): Move jar etc. up.
26206         Explain support library version requirements.
26207
26208 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26209
26210         PR bootstrap/48135
26211         * doc/install.texi (Prerequisites): Move Perl to build
26212         requirements.  Always necessary on Solaris 2 with Sun ld.
26213
26214 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26215
26216         * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
26217         binutils 2.21.
26218         (Specific, i?86-*-solaris2.[89]): Likewise.
26219         (Specific, i?86-*-solaris2.10): Likewise.
26220         (Specific, mips-sgi-irix6): Likewise.
26221         (Specific, *-*-solaris2*): Remove Sun Studio download URL.
26222         Update for binutils 2.21.
26223
26224 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26225
26226         * configure.ac (gcc_cv_lto_plugin): Fix typo.
26227         Allow -fuse-linker-plugin for non-default plugin linker.
26228         * configure: Regenerate.
26229
26230 2011-03-21  Nicola Pero  <nicola.pero@meta-innovation.com>
26231
26232         PR bootstrap/48167
26233         * gengtype.c (files_rules): Added rule for cp/parser.h.
26234
26235 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
26236
26237         PR target/48213
26238         * config/s390/s390.c (s390_delegitimize_address): Don't call
26239         lowpart_subreg if orig_x has BLKmode.
26240
26241 2011-03-21  Kai Tietz  <ktietz@redhat.com>
26242
26243         PR target/12171
26244         * doc/plugins.texi: Adjust documentation for plugin register_callback.
26245         * tree.h (attribute_spec): Add new member affects_type_identity.
26246         * attribs.c (empty_attribute_table): Adjust attribute_spec
26247         initializers.
26248         * config/alpha/alpha.c: Likewise.
26249         * config/arc/arc.c: Likewise.
26250         * config/arm/arm.c: Likewise.
26251         * config/avr/avr.c: Likewise.
26252         * config/bfin/bfin.c: Likewise.
26253         * config/crx/crx.c: Likewise.
26254         * config/darwin.h: Likewise.
26255         * config/h8300/h8300.c: Likewise.
26256         * config/i386/cygming.h: Likewise.
26257         * config/i386/i386.c: Likewise.
26258         * config/ia64/ia64.c: Likewise.
26259         * config/m32c/m32c.c: Likewise.
26260         * config/m32r/m32r.c: Likewise.
26261         * config/m68hc11/m68hc11.c: Likewise.
26262         * config/m68k/m68k.c: Likewise.
26263         * config/mcore/mcore.c: Likewise.
26264         * config/mep/mep.c: Likewise.
26265         * config/microblaze/microblaze.c: Likewise.
26266         * config/mips/mips.c: Likewise.
26267         * config/rs6000/rs6000.c: Likewise.
26268         * config/rx/rx.c: Likewise.
26269         * config/sh/sh.c: Likewise.
26270         * config/sol2.h: Likewise.
26271         * config/sparc/sparc.c: Likewise.
26272         * config/spu/spu.c: Likewise.
26273         * config/stormy16/stormy16.c: Likewise.
26274         * config/v850/v850.c: Likewise.
26275
26276 2011-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
26277
26278         * simplify-rtx.c (simplify_binary_operation_1): Handle
26279         (xor (and A B) C) case when B and C are both constants.
26280
26281 2011-03-21  Mingjie Xing  <mingjie.xing@gmail.com>
26282
26283         * tree-dfa.c (add_referenced_var): Fix typo in comment.
26284
26285 2011-03-20  Eric Botcazou  <ebotcazou@adacore.com>
26286
26287         PR bootstrap/48168
26288         * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
26289
26290 2011-03-20  Jakub Jelinek  <jakub@redhat.com>
26291
26292         PR rtl-optimization/48156
26293         * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
26294         assume df and df_lr are not NULL.
26295
26296 2011-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
26297
26298         PR debug/48023
26299         * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
26300         between a call and its CALL_ARG_LOCATION note.
26301
26302 2011-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
26303
26304         PR debug/48178
26305         * config/sh/sh.c (find_barrier): Don't emit a constant pool
26306         between a call and its corresponding CALL_ARG_LOCATION note.
26307
26308 2011-03-19  Anatoly Sokolov  <aesok@post.ru>
26309
26310         * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
26311         instead of loop. Use HARD_REGISTER_NUM_P predicate.
26312         * haifa-sched.c (setup_ref_regs): Ditto.
26313         * caller-save.c (add_used_regs_1): Ditto.
26314         * dse.c (look_for_hardregs): Ditto.
26315         * df-problems.c (df_simulate_one_insn_forwards): Ditto.
26316         * sched-rgn.c (check_live_1): Ditto.
26317
26318 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
26319
26320         * c-decl.c (diagnose_mismatched_decls): Give an error for
26321         redefining a typedef with variably modified type.
26322
26323 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
26324
26325         * c-decl.c (grokfield): Don't allow typedefs for structures or
26326         unions with no tag by default.
26327         * doc/extend.texi (Unnamed Fields): Update.
26328
26329 2011-03-18  Uros Bizjak  <ubizjak@gmail.com>
26330
26331         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
26332         Rewrite using indirect functions.
26333         (lwp_slwpcb): Ditto.
26334         * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
26335         (avx_vinsertf128<mode>): Ditto.
26336
26337 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26338
26339         * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
26340         unspecs.
26341
26342 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26343
26344         * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
26345         splitting between a call and its corresponding CALL_ARG_LOCATION note.
26346
26347 2011-03-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
26348
26349         PR rtl-optimization/48170
26350         * gcse.c (hoist_code): Remove bogus asserts.
26351
26352 2011-03-18  Georg-Johann Lay  <avr@gjlay.de>
26353
26354         * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
26355         computation for prologue/epilogue.
26356
26357 2011-03-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26358
26359         * Makefile.in (check-consistency): Remove.
26360
26361 2011-03-18  Jakub Jelinek  <jakub@redhat.com>
26362
26363         PR debug/48176
26364         * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
26365         arange_table_in_use is 0, but either text_section_used or
26366         cold_text_section_used is true.  Don't call it if
26367         !info_section_emitted.
26368
26369 2011-03-18  Anatoly Sokolov  <aesok@post.ru>
26370
26371         * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
26372         FUNCTION_VALUE_REGNO_P): Remove.
26373         * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
26374         Remove.
26375         * config/avr/avr.c (avr_ret_register): Make static inline.
26376         (avr_function_value_regno_p): New function.
26377         (avr_libcall_value): Make static. Add 'func' argument.
26378         (avr_function_value): Make static. Rename 'func' argument to
26379         'fn_decl_or_type', forward it to avr_libcall_value. Call
26380         avr_ret_register function instead of RET_REGISTER macro.
26381         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
26382
26383 2011-03-18  Jason Merrill  <jason@redhat.com>
26384
26385         PR c++/23372
26386         * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
26387
26388 2011-03-18  Richard Guenther  <rguenther@suse.de>
26389
26390         * doc/install.texi (--enable-gold): Remove.
26391         (--with-plugin-ld): Document.
26392         * doc/invoke.texi (-fuse-linker-plugin): Clarify.
26393
26394 2011-03-18  Andrew Pinski  <pinskia@gmail.com>
26395
26396         PR middle-end/47790
26397         * expr.c (optimize_bitfield_assignment_op): Revamp to work
26398         again after expansion changes.
26399
26400 2011-03-18  Chung-Lin Tang  <cltang@codesourcery.com>
26401
26402         * combine.c (try_combine): Do simplification only call of
26403         subst() on i2 even when i1 is present. Update comments.
26404
26405 2011-03-18  Kaz Kojima  <kkojima@gcc.gnu.org>
26406
26407         * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
26408         and UNSPEC_PCREL_SYMOFF.
26409
26410 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26411
26412         * config/s390/s390.md: Use define_c_enum for the unspec constant
26413         definitions.
26414
26415 2011-03-18  Richard Henderson  <rth@redhat.com>
26416             Jakub Jelinek  <jakub@redhat.com>
26417
26418         PR bootstrap/48161
26419         * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
26420         instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
26421
26422 2011-03-17  Anatoly Sokolov  <aesok@post.ru>
26423
26424         * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
26425         * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
26426         * config/v850/v850.c (v850_output_addr_const_extra): Make static.
26427         Change return type to bool.
26428         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
26429
26430 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
26431
26432         PR debug/48163
26433         * var-tracking.c (prepare_call_arguments): If CALL target
26434         is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
26435         pc instead of looking it up using cselib_lookup and use
26436         Pmode for it if x has VOIDmode.
26437         * dwarf2out.c (gen_subprogram_die): If also both first and
26438         second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
26439
26440         PR debug/48163
26441         * function.c (assign_parms): For data.passed_pointer parms
26442         use MEM of data.entry_parm instead of data.entry_parm itself
26443         as DECL_INCOMING_RTL.
26444         * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
26445         also when passed and declared mode is the same, DECL_RTL
26446         is a MEM with pseudo as address and DECL_INCOMING_RTL is
26447         a MEM too.
26448
26449 2011-03-16  Jeff Law  <law@redhat.com>
26450
26451         PR rtl-optimization/37273
26452         * ira-costs.c (scan_one_insn): Detect constants living in memory and
26453         handle them like argument loads from stack slots.  Do not double
26454         count memory for memory constants and argument loads from stack slots.
26455
26456 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
26457
26458         PR debug/48160
26459         * var-tracking.c (prepare_call_arguments): Check SUBREG.
26460
26461 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
26462
26463         PR target/48171
26464         * config/i386/i386.opt: Add Save to -mavx and -mfma.
26465
26466 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
26467
26468         PR bootstrap/48153
26469         * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
26470         if dwarf_strict.
26471         (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
26472         Clear call_arg_locations and call_arg_loc_last always.
26473
26474         PR middle-end/48152
26475         * var-tracking.c (prepare_call_arguments): If argument needs to be
26476         passed by reference, adjust argtype and mode.
26477
26478 2011-03-17  Richard Guenther  <rguenther@suse.de>
26479
26480         PR middle-end/48134
26481         * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
26482         a value make sure to fold the statement.
26483
26484 2011-03-17  Chung-Lin Tang  <cltang@codesourcery.com>
26485
26486         PR target/43872
26487         * config/arm/arm.c (arm_get_frame_offsets): Adjust early
26488         return condition with !cfun->calls_alloca.
26489
26490 2011-03-17  Richard Guenther  <rguenther@suse.de>
26491
26492         PR bootstrap/48148
26493         * lto-cgraph.c (input_overwrite_node): Clear the abstract
26494         origin for decls in other ltrans units.
26495         (input_varpool_node): Likewise.
26496
26497 2011-03-17  Richard Guenther  <rguenther@suse.de>
26498
26499         PR middle-end/48165
26500         * tree-object-size.c (compute_object_offset): Properly return
26501         the offset operand of MEM_REFs as sizetype.
26502
26503 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
26504
26505         PR rtl-optimization/48141
26506         * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
26507         * dse.c: Include params.h.
26508         (active_local_stores_len): New variable.
26509         (add_wild_read, dse_step1): Clear it when setting active_local_stores
26510         to NULL.
26511         (record_store, check_mem_read_rtx): Decrease it when removing
26512         from the chain.
26513         (scan_insn): Likewise.  Increase it when adding to chain, if it
26514         reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
26515         set active_local_stores to NULL before the addition.
26516         * Makefile.in (dse.o): Depend on $(PARAMS_H).
26517
26518         PR rtl-optimization/48141
26519         * dse.c (record_store): If no positions are needed in an insn
26520         that cannot be deleted, at least unchain it from active_local_stores.
26521
26522 2011-03-16  Dodji Seketeli  <dodji@redhat.com>
26523
26524         PR debug/47510
26525         * dwarf2out.c (strip_naming_typedef): Factorize out of ...
26526         (lookup_type_die_strip_naming_typedef): ... here.
26527         (get_context_die): Use it.
26528         (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
26529         the anonymous struct named by the naming typedef.
26530
26531 2011-03-16  H.J. Lu  <hongjiu.lu@intel.com>
26532
26533         PR target/48154
26534         * config/i386/i386.c (ix86_builtin_vectorized_function): Check
26535         TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
26536
26537 2011-03-16  Jeff Law  <law@redhat.com>
26538
26539         * tree-vrp.c (identify_jump_threads): Slightly simplify type
26540         check for operands of conditional.  Allow type to be a pointer.
26541
26542 2011-03-16  Richard Guenther  <rguenther@suse.de>
26543
26544         PR tree-optimization/48149
26545         * fold-const.c (fold_binary_loc): Fold
26546         COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
26547
26548 2011-03-16  Richard Guenther  <rguenther@suse.de>
26549
26550         PR tree-optimization/26134
26551         * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
26552         complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
26553         (non_rewritable_mem_ref_base): Handle complex type component
26554         accesses, constrain offsets for vector and complex extracts
26555         more properly.
26556
26557 2011-03-16  Richard Guenther  <rguenther@suse.de>
26558
26559         PR tree-optimization/48146
26560         * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
26561         operands avoiding the need for renaming.
26562
26563 2011-03-16  Richard Guenther  <rguenther@suse.de>
26564
26565         * gimple-fold.c (maybe_fold_reference): Open-code relevant
26566         constant folding.  Move MEM_REF canonicalization first.
26567         Rely on fold_const_aggregate_ref for initializer folding.
26568         * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
26569
26570 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
26571
26572         PR middle-end/48136
26573         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
26574         arg0/arg1 or their arguments are always fold converted to matching
26575         types.
26576
26577         * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
26578         to nargs.
26579
26580 2011-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26581
26582         PR lto/46944
26583         * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
26584         Handle in-tree gold.
26585         (ld_vers): Extract binutils version for gold.
26586         (gcc_cv_ld_hidden): Handle gold here.
26587         (gcc_cv_lto_plugin): Determine level of linker plugin support.
26588         * configure: Regenerate.
26589         * config.in: Regenerate.
26590         * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
26591         -fuse-linker-plugin otherwise.
26592         (LINK_PLUGIN_SPEC): Define.  Extract from LINK_COMMAND_SPEC.
26593         (LINK_COMMAND_SPEC): Use it.
26594         (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
26595
26596 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
26597
26598         * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
26599         * calls.c: Remove debug.h include.
26600         (emit_call_1): Don't call virtual_call_token debug hook.
26601         * dwarf2out.c (debug_dcall_section, debug_vcall_section,
26602         dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
26603         vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
26604         size_of_dcall_table, output_dcall_table, size_of_vcall_table,
26605         output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
26606         vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
26607         dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
26608         dwarf2out_virtual_call): Remove.
26609         (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
26610         copy_call_info and virtual_call hooks.
26611         (dwarf2out_init): Don't initialize vcall_insn_table,
26612         debug_dcall_section and debug_vcall_section.
26613         (prune_unused_types): Don't mark nodes from dcall_table.
26614         (dwarf2out_finish): Don't output dcall or vcall tables.
26615         * final.c (final_scan_insn): Don't call direct_call or
26616         virtual_call debug hooks.
26617         * debug.h (struct gcc_debug_hooks): Remove direct_call,
26618         virtual_call_token, copy_call_info and virtual_call hooks.
26619         (debug_nothing_uid): Remove prototype.
26620         * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
26621         copy_call_info and virtual_call hooks.
26622         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
26623         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
26624         * debug.c (do_nothing_debug_hooks): Likewise.
26625         (debug_nothing_uid): Remove.
26626         * doc/invoke.texi (-fenable-icf-debug): Remove.
26627         * common.opt (-fenable-icf-debug): Likewise.
26628
26629         * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
26630         * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
26631         call's MEM.  Handle functions returning aggregate through a hidden
26632         first pointer.  For virtual calls add clobbered pc to call arguments
26633         chain.
26634         * dwarf2out.c (gen_subprogram_die): Emit
26635         DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
26636         can't be emitted.
26637
26638         PR debug/45882
26639         * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
26640         * rtl.h (ENTRY_VALUE_EXP): Define.
26641         * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
26642         * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
26643         * print-rtl.c (print_rtx): Likewise.
26644         * gengtype.c (adjust_field_rtx_def): Likewise.
26645         * var-tracking.c (vt_add_function_parameter): Adjust
26646         gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
26647         * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
26648         * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
26649         partition is a default definition of a PARM_DECL, use ENTRY_VALUE
26650         of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
26651
26652         * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
26653         Call var_location debug hook even on CALL_INSNs.
26654         (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
26655         * rtl.def (ENTRY_VALUE): New.
26656         * dwarf2out.c: Include cfglayout.h.
26657         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
26658         output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
26659         (struct call_arg_loc_node): New type.
26660         (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
26661         tail_call_site_count): New variables.
26662         (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
26663         DW_TAG_GNU_call_site_parameter.
26664         (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
26665         DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
26666         DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
26667         DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
26668         and DW_AT_GNU_all_source_call_sites.
26669         (mem_loc_descriptor): Handle ENTRY_VALUE.
26670         (add_src_coords_attributes): Don't add enything if
26671         DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
26672         (dwarf2out_abstract_function): Save and clear call_arg_location,
26673         call_site_count and tail_call_site_count around dwarf2out_decl call.
26674         (gen_call_site_die): New function.
26675         (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
26676         (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
26677         (dwarf2out_function_decl): Clear call_arg_locations,
26678         call_arg_loc_last, set call_site_count and tail_call_site_count
26679         to -1 and free block_map.
26680         (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
26681         CALL_INSNs.  Add NOTE_DURING_CALL_P var location notes even when not
26682         followed by any real instructions.
26683         (dwarf2out_begin_function): Set call_site_count and
26684         tail_call_site_count to 0.
26685         (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
26686         is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
26687         attempt to force a DIE for it and worst case remove the attribute.
26688         (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
26689         check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
26690         the decl itself.
26691         * var-tracking.c: Include tm_p.h.
26692         (vt_stack_adjustments): For calls call note_register_arguments.
26693         (argument_reg_set): New variable.
26694         (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
26695         ensure the VALUE is resolved.
26696         (call_arguments): New variable.
26697         (prepare_call_arguments): New function.
26698         (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
26699         (struct expand_loc_callback_data): Add ignore_cur_loc field.
26700         (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
26701         always use the best expression.
26702         (vt_expand_loc): Add ignore_cur_loc argument.
26703         (vt_expand_loc_dummy): Clear ignore_cur_loc field.
26704         (emit_note_insn_var_location): Adjust vt_expand_loc callers.
26705         (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
26706         note for all calls.
26707         (vt_add_function_parameter): Use cselib_lookup_from_insn.
26708         If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
26709         argument.  Don't call cselib_preserve_only_values and
26710         cselib_reset_table.
26711         (note_register_arguments): New function.
26712         (vt_initialize): Compute argument_reg_set.  Call
26713         vt_add_function_parameters before processing basic blocks instead of
26714         afterwards.  For calls call prepare_call_arguments before calling
26715         cselib_process_insn.
26716         * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
26717         * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
26718         (var-tracking.o): Depend on $(TM_P_H).
26719         * cfglayout.h (insn_scope): New prototype.
26720         * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
26721         * cfglayout.c (insn_scope): No longer static.
26722         * insn-notes.def (CALL_ARG_LOCATION): New.
26723         * calls.c (expand_call, emit_library_call_value_1): Put USEs for
26724         MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
26725         * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
26726         nothing for DECL_EXTERNAL BLOCK_VARS.
26727
26728 2011-03-16  Alan Modra  <amodra@gmail.com>
26729
26730         PR target/45844
26731         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
26732         create invalid offset address for vsx splat insn.
26733         * config/rs6000/predicates.md (splat_input_operand): New.
26734         * config/rs6000/vsx.md (vsx_splat_*): Use it.
26735
26736 2011-03-15  Xinliang David Li  <davidxl@google.com>
26737
26738         PR c/47837
26739         * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
26740         (normalize_preds): New function.
26741         (is_use_properly_guarded): Normalize def predicates.
26742
26743 2011-03-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
26744
26745         PR target/46788
26746         * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
26747         in the output template.
26748
26749 2011-03-15  Richard Guenther  <rguenther@suse.de>
26750
26751         PR middle-end/47650
26752         * tree-pretty-print.c (dump_function_declaration): Properly
26753         dump unprototyped and varargs function types.
26754
26755 2011-03-15  Richard Guenther  <rguenther@suse.de>
26756
26757         PR tree-optimization/13954
26758         * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
26759         and friends.
26760
26761 2011-03-15  Richard Guenther  <rguenther@suse.de>
26762
26763         PR tree-optimization/48037
26764         * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
26765         selects into BIT_FIELD_REFs.
26766         (non_rewritable_mem_ref_base): Check if a MEM_REF is a
26767         vector select.
26768
26769 2011-03-15  Jakub Jelinek  <jakub@redhat.com>
26770
26771         PR tree-optimization/48129
26772         * builtins.c (fold_builtin_snprintf): Convert to type of
26773         built_in_decls[BUILT_IN_SNPRINTF] retval instead of
26774         implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
26775
26776 2011-03-15  Richard Guenther  <rguenther@suse.de>
26777
26778         PR tree-optimization/41490
26779         * tree-ssa-dce.c (propagate_necessity): Handle returns without
26780         value but with VUSE.
26781         * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
26782         return statements.
26783         * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
26784         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
26785         * tree-tailcall.c (find_tail_calls): Ignore returns.
26786
26787 2011-03-15  Richard Guenther  <rguenther@suse.de>
26788
26789         PR middle-end/48031
26790         * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
26791         or variable-indexed array accesses when in gimple form.
26792
26793 2011-03-15  Richard Guenther  <rguenther@suse.de>
26794
26795         * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
26796
26797 2011-03-15  Alan Modra  <amodra@gmail.com>
26798
26799         PR target/48032
26800         * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
26801         presume symbol_refs without a symbol_ref_decl are suitably
26802         aligned, nor other trees we may see here.  Handle anchor symbols.
26803         (legitimate_constant_pool_address_p): Comment.  Add mode param.
26804         Check cmodel=medium addresses.  Adjust all calls.
26805         (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
26806         creating cmodel=medium optimized access to locals.
26807         * config/rs6000/constraints.md (R): Pass QImode to
26808         legitimate_constant_pool_address_p.
26809         * config/rs6000/predicates.md (input_operand): Pass mode to
26810         legitimate_constant_pool_address_p.
26811         * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
26812         Update prototype.
26813
26814 2011-03-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
26815
26816         PR target/48053
26817         * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
26818         64-bit constants being loaded into registers other than GPRs such
26819         as loading 0 into a VSX register.
26820
26821 2011-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26822
26823         * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
26824
26825 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
26826
26827         PR middle-end/47917
26828         * builtins.c (fold_builtin_snprintf): New function.
26829         (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
26830         (fold_builtin_4): Likewise.
26831
26832         PR middle-end/38878
26833         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
26834         STRIP_NOPS on arg0 and arg1.  When optimizing X +- C == X
26835         and C - X == X also strip nops from +/-/p+ operand.
26836         When optimizing -X == C, fold C to arg0's type.
26837
26838         PR debug/47946
26839         * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
26840         emit it as add_AT_int instead of add_AT_unsigned.
26841
26842 2011-03-14  Tom Tromey  <tromey@redhat.com>
26843
26844         * unwind-dw2.c: Include sys/sdt.h if it exists.
26845         (_Unwind_DebugHook): Use STAP_PROBE2.
26846         * config.in, configure: Rebuild.
26847         * configure.ac: Check for sys/sdt.h.
26848
26849 2011-03-14  Uros Bizjak  <ubizjak@gmail.com>
26850
26851         * config/i386/i386.md (ROUND_FLOOR): New constant.
26852         (ROUND_CEIL): Ditto.
26853         (ROUND_TRUNC): Ditto.
26854         (ROUND_MXCSR): Ditto.
26855         (ROUND_NO_EXC): Ditto.
26856         (rint<mode>2): Use new defines instead of numerical constants.
26857         (floor<mode>2): Ditto.
26858         (ceil<mode>2): Ditto.
26859         (btrunc<mode>2): Ditto.
26860         * config/i386/i386-builtin-types.def: Define ROUND function type
26861         aliases.
26862         * config/i386/i386.c (enum ix86_builtins): Add
26863         IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
26864         (struct builtin_description): Add
26865         __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
26866         (ix86_expand_sse_round): New static function.
26867         (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
26868         function types.
26869         (ix86_builtin_vectorized_function): Handle
26870         BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
26871
26872 2011-03-14  Tom Tromey  <tromey@redhat.com>
26873
26874         * c-parser.c (c_parser_asm_string_literal): Clear
26875         warn_overlength_strings.
26876
26877 2011-03-14  Tom Tromey  <tromey@redhat.com>
26878
26879         * c-parser.c (disable_extension_diagnostics): Save
26880         warn_overlength_strings.
26881         (restore_extension_diagnostics): Restore warn_overlength_strings.
26882
26883 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
26884
26885         * BASE-VER: Change to 4.7.0.
26886
26887 2011-03-14  Richard Guenther  <rguenther@suse.de>
26888
26889         PR middle-end/48098
26890         * tree.c (build_vector_from_val): Adjust assert to requirements
26891         and reality.
26892
26893 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
26894
26895         PR bootstrap/48102
26896         * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
26897
26898 2011-03-14  Andreas Tobler  <andreast@fgznet.ch>
26899
26900         * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
26901         terms of target_flags_explicit. Adjust copyright year.
26902
26903         * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
26904         * config/rs6000/t-freebsd: New file. Add override for
26905         LIB2FUNCS_EXTRA.
26906
26907 2011-03-13  Chris Demetriou  <cgd@google.com>
26908
26909         * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
26910         (-fno-diagnostics-show-option): this, to reflect current default.
26911         (-Werror=): Update text about -fno-diagnostics-show-option.
26912
26913 2011-03-12  Peter Bergner  <bergner@vnet.ibm.com>
26914
26915         PR target/48053
26916         * config/rs6000/predicates.md (easy_vector_constant_add_self,
26917         easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
26918         * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
26919         mode is not V2DImode or V2DFmode.
26920         (vspltis_constant): Do not handle V2DImode and V2DFmode.
26921         (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
26922         * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
26923         registers to 0.
26924         (movdi_internal64): Likewise.
26925
26926 2011-03-12  Sebastian Pop  <sebastian.pop@amd.com>
26927
26928         PR tree-optimization/47127
26929         * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
26930         parameter.
26931         (set_cloog_options): Same.
26932         (scop_to_clast): Same.
26933         (print_clast_stmt): Do not call cloog_state_malloc and
26934         cloog_state_free.
26935         (print_generated_program): Same.
26936         (gloog): Same.
26937         * graphite-clast-to-gimple.h (cloog_state): Declared.
26938         (scop_to_clast): Adjust declaration.
26939         * graphite.c (cloog_state): Defined here.
26940         (graphite_initialize): Call cloog_state_malloc.
26941         (graphite_finalize): Call cloog_state_free.
26942
26943 2011-03-11  Jason Merrill  <jason@redhat.com>
26944
26945         * attribs.c (lookup_attribute_spec): Take const_tree.
26946         * tree.h: Adjust.
26947
26948 2011-03-11  Joseph Myers  <joseph@codesourcery.com>
26949
26950         * config/sparc/sparc.c (sparc_option_override): Use
26951         PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
26952
26953 2011-03-11  Richard Guenther  <rguenther@suse.de>
26954
26955         PR tree-optimization/48067
26956         * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
26957         multiplication result will be only used once on the target
26958         stmt.
26959
26960 2011-03-11  Richard Guenther  <rguenther@suse.de>
26961
26962         * doc/invoke.texi (max-inline-insns-single): Adjust default value.
26963
26964 2011-03-11  Richard Guenther  <rguenther@suse.de>
26965
26966         PR lto/48073
26967         * tree.c (find_decls_types_r): Do not walk types only reachable
26968         from IDENTIFIER_NODEs.
26969
26970 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
26971
26972         PR middle-end/48044
26973         * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
26974         all vnode->force_output nodes as needed.
26975
26976 2011-03-11  Jason Merrill  <jason@redhat.com>
26977
26978         PR c++/48069
26979         * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
26980         COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
26981
26982 2011-03-11  Martin Jambor  <mjambor@suse.cz>
26983
26984         * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
26985         cgraph_node.
26986
26987 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
26988
26989         PR tree-optimization/48063
26990         * ipa-inline.c (cgraph_decide_inlining): Don't try to
26991         inline functions called once if !tree_can_inline_p (node->callers).
26992
26993 2011-03-11  Chen Liqin  <liqin.gcc@gmail.com>
26994
26995         * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
26996         extra_objs.
26997         * config/score/score3.c: Delete.
26998         * config/score/score3.h: Delete.
26999         * config/score/mul-div.S: Delete.
27000         * config/score/sfp-machine.h: Add new file.
27001         * config/score/constraints.md: Add new file.
27002         * config/score/t-score-softfp: Add new file.
27003         * config/score/t-score-elf: Remove score3.o, do not generate multilib.
27004         * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
27005         (score7_extra_constraint): Delete.
27006         (score7_option_override): Remove unused code.
27007         * config/score/score.c: Remove score3 and score5 define and code.
27008         * config/score/score.h: Remove score3 and score5 define and code.
27009         * config/score/score.md: Remove score3 template and unusual insn.
27010         * config/score/score.opt: Remove score3 and score5 options.
27011
27012 2011-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
27013
27014         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
27015         when _HPUX_SOURCE is defined.
27016         (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
27017
27018 2011-03-10  Jason Merrill  <jason@redhat.com>
27019
27020         PR c++/48029
27021         * stor-layout.c (layout_type): Don't set structural equality
27022         on arrays of incomplete type.
27023         * tree.c (type_hash_eq): Handle comparing them properly.
27024
27025 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
27026
27027         PR debug/48043
27028         * config/s390/s390.c (s390_delegitimize_address): Make sure the
27029         result mode matches original rtl mode.
27030
27031 2011-03-10  Nick Clifton  <nickc@redhat.com>
27032
27033         * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
27034         (andsi3, andsi3_flags): Fix timings for three operand alternative.
27035
27036 2011-03-09  Jakub Jelinek  <jakub@redhat.com>
27037
27038         PR rtl-optimization/47866
27039         * expr.c (store_field): If MEM_SCALAR_P (target), don't use
27040         MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
27041         if target wasn't scalar.
27042         * function.c (assign_stack_temp_for_type): Assert that neither
27043         MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
27044         MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
27045         macro.
27046         * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
27047
27048 2011-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27049
27050         * config/s390/s390-protos.h (s390_label_align): New prototype.
27051         * config/s390/s390.c (s390_label_align): New function.
27052         * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
27053
27054 2011-03-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
27055
27056         PR target/47755
27057         * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
27058         V2DI/V2DF constants.  Only all 0's or all 1's are easy.
27059         (output_vec_const_move): Ditto.
27060
27061 2011-03-08  Anatoly Sokolov  <aesok@post.ru>
27062
27063         * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
27064         * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
27065         * config/mips/mips.c (mips_preferred_reload_class): Make static.
27066         Change 'rclass' argument and result type to reg_class_t.
27067         (TARGET_PREFERRED_RELOAD_CLASS): Define.
27068
27069 2011-03-08  Georg-Johann Lay  <avr@gjlay.de>
27070
27071         * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
27072         * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
27073         (TARGET_MEMORY_MOVE_COST): Define.
27074         (avr_register_move_cost, avr_memory_move_cost): New Functions.
27075
27076 2011-03-08  Jakub Jelinek  <jakub@redhat.com>
27077
27078         PR debug/47881
27079         * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
27080         removed anything.
27081
27082         PR tree-optimization/48022
27083         * fold-const.c (fold_comparison): Don't call fold_overflow_warning
27084         for EQ/NE_EXPR.
27085
27086 2011-03-07  Jakub Jelinek  <jakub@redhat.com>
27087
27088         PR debug/47991
27089         * var-tracking.c (find_use_val): Return NULL for
27090         cui->sets && cui->store_p BLKmode MEMs.
27091
27092 2011-03-07  Anatoly Sokolov  <aesok@post.ru>
27093
27094         * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
27095         Remove.
27096         * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
27097         xstormy16_print_operand_address): Remove.
27098         * config/stormy16/stormy16.c (xstormy16_print_operand,
27099         xstormy16_print_operand_address): Make static.
27100         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
27101
27102 2011-03-07  Pat Haugen  <pthaugen@us.ibm.com>
27103
27104         PR target/47862
27105         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
27106         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
27107         before definition.
27108
27109 2011-03-07  Zdenek Dvorak  <ook@ucw.cz>
27110
27111         PR bootstrap/48000
27112         * cfgloopmanip.c (fix_bb_placements): Return immediately
27113         if FROM is BASE_LOOP's header.
27114
27115 2011-03-07  Paul Wögerer  <paul_woegerer@mentor.com>
27116
27117         * gimplify.c (gimplify_function_tree): Fix building calls
27118         to __builtin_return_address.
27119
27120 2011-03-07  Alan Modra  <amodra@gmail.com>
27121
27122         * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
27123         * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
27124         * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
27125         * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
27126         return_mode args.
27127         * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
27128         (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
27129         (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
27130         (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
27131         * config/rs6000/rs6000.c
27132         (rs6000_elf_end_indicate_exec_stack): Rename to..
27133         (rs6000_elf_file_end): ..this.  Only call file_end_indicate_exec_stack
27134         for POWERPC_LINUX.  Move code emitting .gnu_attribute to here, from..
27135         (rs6000_file_start): ..here.
27136         (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
27137         file scope variables.
27138         (call_ABI_of_interest): New function.
27139         (init_cumulative_args): Set above vars when function return value
27140         is a float, vector, or small struct.
27141         (rs6000_function_arg_advance_1): Likewise for function args.
27142         (rs6000_va_start): Set rs6000_passes_float if variable arg function
27143         references float args.
27144
27145 2011-03-07  Mingjie Xing  <mingjie.xing@gmail.com>
27146
27147         * doc/cfg.texi: Remove "See" before @ref.
27148         * doc/invoke.texi: Likewise.
27149
27150 2011-03-05  Jason Merrill  <jason@redhat.com>
27151
27152         * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
27153
27154 2011-03-05  Anthony Green  <green@moxielogic.com>
27155
27156         * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
27157
27158 2011-03-05  Zdenek Dvorak  <ook@ucw.cz>
27159
27160         PR rtl-optimization/47899
27161         * cfgloopmanip.c (fix_bb_placements): Fix first argument
27162         to flow_loop_nested_p when moving the loop upward.
27163
27164 2011-03-05  Richard Earnshaw  <rearnsha@arm.com>
27165
27166         PR target/47719
27167         * arm.md (movhi_insn_arch4):  Accept any immediate constant.
27168
27169 2011-03-05  Jakub Jelinek  <jakub@redhat.com>
27170
27171         PR tree-optimization/47967
27172         * ipa-cp.c (build_const_val): Return NULL instead of creating
27173         VIEW_CONVERT_EXPR for mismatching sizes.
27174         (ipcp_create_replace_map): Return NULL if build_const_val failed.
27175         (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
27176         give up on versioning.
27177
27178 2011-03-05  Alan Modra  <amodra@gmail.com>
27179
27180         PR target/47986
27181         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
27182         full cmodel medium/large lo_sum + high addresses.
27183
27184 2011-03-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27185
27186         * config/s390/s390.c (s390_decompose_address): Reject non-literal
27187         pool references in UNSPEC_LTREL_OFFSET.
27188
27189 2011-03-04  Jan Hubicka  <jh@suse.cz>
27190
27191         PR lto/47497
27192         * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
27193         (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
27194         * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
27195         Add node pointers.
27196         * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
27197         cgraph_add_thunk): Add node pointers.
27198         * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
27199         associated to right node.
27200         (input_node): Update use of cgraph_same_body_alias
27201         and cgraph_add_thunk.
27202
27203 2011-03-04  Changpeng Fang  <changpeng.fang@amd.com>
27204
27205         * config/i386/i386.opt (mprefer-avx128): New flag.
27206         * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
27207         modes when the flag -mprefer-avx128 is on.
27208
27209 2011-03-04  Richard Sandiford  <richard.sandiford@linaro.org>
27210
27211         * dwarf2out.c (compare_loc_operands): Fix address handling.
27212
27213 2011-03-04  Alan Modra  <amodra@gmail.com>
27214
27215         * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
27216
27217 2011-03-04  Richard Guenther  <rguenther@suse.de>
27218
27219         PR middle-end/47968
27220         * expmed.c (extract_bit_field_1): Prefer vector modes that
27221         vec_extract patterns can handle.
27222
27223 2011-03-04  Richard Guenther  <rguenther@suse.de>
27224
27225         PR middle-end/47975
27226         * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
27227
27228 2011-03-04  Richard Henderson  <rth@redhat.com>
27229
27230         * explow.c (emit_stack_save): Remove 'after' parameter.
27231         (emit_stack_restore): Likewise.
27232         * expr.h: Update to match.
27233         * builtins.c, calls.c, stmt.c: Likewise.
27234         * config/alpha/alpha.md, config/avr/avr.md: Likewise.
27235         * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
27236         * function.c (expand_function_end): Insert the emit_stack_save
27237         sequence before parm_birth_insn instead of after.
27238
27239 2011-03-03  Uros Bizjak  <ubizjak@gmail.com>
27240
27241         * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
27242         (ssse3_pmaddubsw128): Ditto.
27243         (ssse3_pmaddubsw): Ditto.
27244
27245 2011-03-03  Steve Ellcey  <sje@cup.hp.com>
27246
27247         * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
27248
27249 2011-03-03  Jakub Jelinek  <jakub@redhat.com>
27250
27251         PR c/47963
27252         * gimplify.c (omp_add_variable): Only call omp_notice_variable
27253         on TYPE_SIZE_UNIT if it is a DECL.
27254
27255         PR debug/47283
27256         * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
27257         first operand is not is_gimple_mem_ref_addr, try to fold it.
27258         If the operand still isn't is_gimple_mem_ref_addr, clear
27259         MEM_EXPR on op0.
27260
27261 2011-03-03  Richard Guenther  <rguenther@suse.de>
27262
27263         PR middle-end/47283
27264         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
27265         match comment.
27266         (refs_may_alias_p_1): For release branches return true if
27267         we are confused by our input.
27268
27269 2011-03-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27270
27271         * config/s390/s390.c (s390_function_value): Rename to ...
27272         (s390_function_and_libcall_value): ... this.
27273         (s390_function_value): New function.
27274         (s390_libcall_value): New function.
27275         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
27276         * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
27277         target macro definitions.
27278         * config/s390/s390-protos.h (s390_function_value): Remove prototype.
27279
27280 2011-03-02  Joseph Myers  <joseph@codesourcery.com>
27281
27282         * config/i386/freebsd64.h (CC1_SPEC): Define.
27283         * config/i386/linux64.h (CC1_SPEC): Define.
27284         * config/i386/x86-64.h (CC1_SPEC): Don't define.
27285
27286 2011-03-02  Anatoly Sokolov  <aesok@post.ru>
27287
27288         * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
27289         Remove.
27290         * config/stormy16/stormy16.c: Include reload.h.
27291         (xstormy16_memory_move_cost): New function.
27292         (TARGET_MEMORY_MOVE_COST): Define.
27293
27294 2011-03-02  Richard Sandiford  <richard.sandiford@linaro.org>
27295
27296         PR rtl-optimization/47925
27297         * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
27298         with side effects.  Remove the more-specific check for volatile asms.
27299
27300 2011-03-02  Alan Modra  <amodra@gmail.com>
27301
27302         PR target/47935
27303         * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
27304         toc relative addresses for valid offsets.
27305
27306 2011-03-01  Richard Guenther  <rguenther@suse.de>
27307
27308         PR tree-optimization/47890
27309         * tree-vect-loop.c (get_initial_def_for_induction): Set
27310         related stmt properly.
27311
27312 2011-03-01  Richard Guenther  <rguenther@suse.de>
27313
27314         PR lto/47924
27315         * lto-streamer.c (lto_record_common_node): Also register
27316         the canonical type.
27317
27318 2011-03-01  Richard Guenther  <rguenther@suse.de>
27319
27320         PR lto/46911
27321         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
27322         Do not stream DECL_ABSTRACT_ORIGIN.
27323         (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
27324         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
27325         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
27326         Do not stream DECL_ABSTRACT_ORIGIN.
27327         (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
27328         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
27329
27330 2011-02-28  Anatoly Sokolov  <aesok@post.ru>
27331
27332         * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
27333         FUNCTION_VALUE_REGNO_P): Remove.
27334         * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
27335         * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
27336         Add 'outgoing' argument.
27337         (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
27338         function.
27339         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
27340         TARGET_FUNCTION_VALUE_REGNO_P): Define.
27341
27342 2011-02-28  Kai Tietz  <kai.tietz@onevision.com>
27343
27344         PR debug/28047
27345         * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
27346         (lookup_filename): Likewise.
27347         * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
27348
27349 2011-02-28  Bernd Schmidt  <bernds@codesourcery.com>
27350             Jakub Jelinek  <jakub@redhat.com>
27351
27352         PR middle-end/47893
27353         * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
27354         (assign_stack_local_1): Change last argument type to int.
27355         * function.c (assign_stack_local_1): Replace reduce_alignment_ok
27356         argument with kind.  If bit ASLK_RECORD_PAD is not set in it,
27357         don't record padding space into frame_space_list nor use those areas.
27358         (assign_stack_local): Adjust caller.
27359         (assign_stack_temp_for_type): Call assign_stack_local_1 instead
27360         of assign_stack_local, pass 0 as last argument.
27361         * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
27362         callers.
27363
27364 2011-02-28  Jakub Jelinek  <jakub@redhat.com>
27365
27366         PR debug/47283
27367         * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
27368         Use target address_mode and pointer_mode hooks instead of hardcoded
27369         Pmode and ptr_mode.  Handle some simple cases of extending if
27370         POINTERS_EXTEND_UNSIGNED < 0.
27371         (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
27372         Call convert_debug_memory_address.
27373         (expand_debug_expr) <case ADDR_EXPR>: Pass as to
27374         convert_debug_memory_address.
27375
27376         PR middle-end/46790
27377         * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
27378         * configure: Regenerated.
27379         * config.in: Regenerated.
27380         * varasm.c (default_function_section): Return NULL
27381         if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
27382
27383 2011-02-28  Martin Jambor  <mjambor@suse.cz>
27384
27385         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
27386         the description to match the printed values.
27387
27388 2011-02-28  Richard Guenther  <rguenther@suse.de>
27389
27390         * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
27391         of the copied scope tree.
27392
27393 2011-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27394
27395         * doc/extend.texi (Function Attributes): Avoid deeply (and
27396         wrongly) nested tables.
27397
27398 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
27399
27400         PR middle-end/47903
27401         * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
27402         MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
27403         r isn't op0 nor op1.
27404
27405 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
27406
27407         * config/avr/avr.md: Remove magic comment for emacs.
27408
27409 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
27410
27411         PR target/45261
27412         * config/avr/avr.c (avr_option_override): Use error on bad options.
27413         (avr_help): New function.
27414         (TARGET_HELP): Define.
27415
27416 2011-02-22  Georg-Johann Lay  <avr@gjlay.de>
27417
27418         PR target/42240
27419         * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
27420         (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
27421
27422 2011-02-26  Gerald Pfeifer  <gerald@pfeifer.com>
27423
27424         * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
27425         (ARM Options): Ditto.
27426         (i386 and x86-64 Options): Ditto.
27427         (RX Options): Ditto.
27428         (SPARC Options): Ditto.
27429
27430 2011-02-26  Tijl Coosemans  <tijl@coosemans.org>
27431
27432         * config.gcc (i386-*-freebsd*): Make i486 the default arch on
27433         FreeBSD 6 and later.  Generally use cpu generic.
27434
27435 2011-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
27436
27437         * doc/cpp.texi: Update copyright years.
27438
27439 2011-02-25  Sebastien Bourdeauducq  <sebastien@milkymist.org>
27440
27441         PR target/46898
27442         * config/lm32/lm32.md (ashrsi3): Added needed variable.
27443
27444 2011-02-25  Jon Beniston  <jon@beniston.com>
27445
27446         PR target/46898
27447         * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
27448         * config/lm32/lm32.md (ashlsi3): Remove unused variable.
27449         * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
27450         (lm32_block_move_inline): Add type cast to remove warning.
27451         (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
27452         (gen_int_relational): Move declarations to start of function.
27453
27454 2011-02-25  Eric Botcazou  <ebotcazou@adacore.com>
27455
27456         PR tree-optimization/45470
27457         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
27458         can throw internally only.
27459         * tree-vect-stmts.c (vectorizable_call): Likewise.
27460
27461 2011-02-24  Anatoly Sokolov  <aesok@post.ru>
27462
27463         * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
27464         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
27465         * config/stormy16/stormy16-protos.h
27466         (xstormy16_preferred_reload_class): Remove.
27467         * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
27468         static. Change 'rclass' argument and return type to reg_class_t.
27469         (TARGET_PREFERRED_RELOAD_CLASS,
27470         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
27471
27472 2011-02-24  Richard Guenther  <rguenther@suse.de>
27473
27474         * lto-streamer-in.c (input_bb): Do not find referenced vars
27475         in debug statements.
27476
27477 2011-02-23  Jason Merrill  <jason@redhat.com>
27478
27479         * common.opt (fabi-version): Document v5 and v6.
27480
27481 2011-02-23  Richard Guenther  <rguenther@suse.de>
27482
27483         PR tree-optimization/47849
27484         * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
27485
27486 2011-02-23  Jie Zhang  <jie@codesourcery.com>
27487
27488         * opts-common.c (decode_cmdline_option): Print empty string
27489         argument as "" in decoded->orig_option_with_args_text.
27490         * gcc.c (execute): Print empty string argument as ""
27491         in the verbose output.
27492         (do_spec_1): Keep empty string argument.
27493
27494 2011-02-23  Nathan Froyd  <froydnj@codesourcery.com>
27495
27496         * config.gcc: Declare score-* and crx-* obsolete.
27497
27498 2011-02-23  Jie Zhang  <jie@codesourcery.com>
27499
27500         PR rtl-optimization/47763
27501         * web.c (web_main): Ignore naked clobber when replacing register.
27502
27503 2011-02-22  Anatoly Sokolov  <aesok@post.ru>
27504
27505         * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
27506         Remove.
27507
27508 2011-02-22  Sebastian Pop  <sebastian.pop@amd.com>
27509
27510         PR doc/47848
27511         * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
27512
27513 2011-02-22  Mike Stump  <mikestump@comcast.net>
27514
27515         * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
27516         assembler.
27517         * configure: Regenerate.
27518
27519 2011-02-21  Chung-Lin Tang  <cltang@codesourcery.com>
27520
27521         PR rtl-optimization/46002
27522         * ira-color.c (update_copy_costs): Change class intersection
27523         test to reg_class_contents[] test of 'hard_regno'.
27524
27525 2011-02-21  Joseph Myers  <joseph@codesourcery.com>
27526
27527         * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
27528         than Driver option.
27529         * config/hpux11.opt (mt): Likewise.
27530         * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
27531         * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
27532         * config/vax/elf.opt (mno-asm-pic): Likewise.
27533         * config/vms/vms.opt (map, mvms-return-codes): Likewise.
27534
27535 2011-02-21  Mike Stump  <mikestump@comcast.net>
27536
27537         PR target/47822
27538         * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
27539         tree so we can get save the type.
27540         * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
27541         for CFString instead of trying to use past the end of the builtins.
27542         * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
27543         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
27544         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
27545         * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
27546         Rename to darwin_builtin_cfstring.
27547         (darwin_init_cfstring_builtins): Return the built type.
27548
27549 2011-02-21  Uros Bizjak  <ubizjak@gmail.com>
27550
27551         PR target/47840
27552         * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
27553         (_mm256_insert_epi64): Use _mm_insert_epi64.
27554
27555 2011-02-21  Anatoly Sokolov  <aesok@post.ru>
27556
27557         * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
27558         * config/stormy16/stormy16-protos.h
27559         (xstormy16_mode_dependent_address_p): Remove.
27560         * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
27561         Make static. Change return type to bool. Change argument type to
27562         const_rtx. Remove dead code.
27563         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
27564
27565 2011-02-21  Richard Guenther  <rguenther@suse.de>
27566
27567         PR lto/47820
27568         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
27569         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
27570         (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
27571         TUs context.
27572         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
27573         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
27574
27575 2011-02-20  Richard Guenther  <rguenther@suse.de>
27576
27577         PR lto/47822
27578         * tree.c (free_lang_data_in_decl): Clean builtins from
27579         the TU decl BLOCK_VARS.
27580
27581 2011-02-19  Alexandre Oliva  <aoliva@redhat.com>
27582
27583         PR debug/47620
27584         PR debug/47630
27585         * haifa-sched.c (fix_tick_ready): Skip tick computation
27586         for debug insns.
27587
27588 2011-02-19  Richard Guenther  <rguenther@suse.de>
27589
27590         PR lto/47647
27591         * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
27592         Remove lazy BLOCK_VARS streaming.
27593         (lto_input_ts_block_tree_pointers): Likewise.
27594         * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
27595
27596 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
27597
27598         * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
27599
27600 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
27601
27602         * config/i386/biarch32.h, config/i386/mach.h,
27603         config/rs6000/aix.opt, config/sh/superh64.h: Remove.
27604
27605 2011-02-19  Jakub Jelinek  <jakub@redhat.com>
27606
27607         PR target/47800
27608         * config/i386/i386.md (peephole2 for shift and plus): Use
27609         operands[1] original mode in the first insn.
27610
27611 2011-02-18  Mike Stump  <mikestump@comcast.net>
27612
27613         * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
27614
27615 2011-02-18  Jan Hubicka  <jh@suse.cz>
27616
27617         PR middle-end/47788
27618         * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
27619         to zero when the function is not inlinable at all.
27620
27621 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
27622
27623         * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
27624         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
27625         pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
27626         * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
27627         * config/pa/t-pa64: Likewise.
27628         * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
27629
27630 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
27631
27632         PR driver/47787
27633         * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
27634
27635 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
27636
27637         PR target/47792
27638         * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
27639
27640 2011-02-18  Anatoly Sokolov  <aesok@post.ru>
27641
27642         * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
27643         RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
27644         LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
27645         GO_IF_LEGITIMATE_ADDRESS): Remove macros.
27646         * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
27647         (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
27648         m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
27649         m32r_load_postinc_p, m32r_store_preinc_predec_p,
27650         m32r_legitimate_address_p): New functions.
27651         * config/m32r/constraints.md (constraint "S"): Don't use
27652         STORE_PREINC_PREDEC_P.
27653         (constraint "U"): Don't use LOAD_POSTINC_P.
27654
27655 2011-02-18  Chung-Lin Tang  <cltang@codesourcery.com>
27656
27657         PR rtl-optimization/46178
27658         * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
27659         compute ira_hard_regno_cover_class[].
27660
27661 2011-02-18  Richard Guenther  <rguenther@suse.de>
27662
27663         PR lto/47798
27664         * lto-streamer.h (lto_global_var_decls): Declare.
27665         * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
27666         statics for global var processing.
27667
27668 2011-02-18  Richard Guenther  <rguenther@suse.de>
27669
27670         PR tree-optimization/47737
27671         * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
27672         edge dominance check.
27673
27674 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
27675
27676         PR debug/47780
27677         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
27678         avoid invalid rtx sharing.
27679
27680 2011-02-18  Gerald Pfeifer  <gerald@pfeifer.com>
27681
27682         * doc/cpp.texi (Obsolete Features): Add background on the
27683         origin of assertions.
27684
27685 2011-02-17  Iain Sandoe  <iains@gcc.gnu.org>
27686
27687         * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
27688         objc_abi == 2.
27689         * config/darwin.c (output_objc_section_asm_op): Added support for
27690         ABI v1 and v2.
27691         (is_objc_metadata): New.
27692         (darwin_objc2_section): New.
27693         (darwin_objc1_section): New.
27694         (machopic_select_section): Added support for ABI v1 and v2.
27695         (darwin_emit_objc_zeroed): New.
27696         (darwin_output_aligned_bss): Detect objc metadata and treat it
27697         appropriately.
27698         (darwin_asm_output_aligned_decl_common): Same.
27699         (darwin_asm_output_aligned_decl_local): Same.
27700         * config/darwin-sections.def: Updated for ABI v1 and v2.
27701         * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
27702         compiling Objective-C code for the NeXT runtime, default to using
27703         ABI version 0 for 32-bit, and version 2 for 64-bit.
27704
27705 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
27706
27707         * common.opt (optimize_fast): New Variable.
27708         * opts.c (default_options_optimization): Use opts->x_optimize_fast
27709         instead of local variable ofast.
27710
27711 2011-02-17  Nicola Pero  <nicola.pero@meta-innovation.com>
27712
27713         * doc/invoke.texi (fobjc-abi-version): Documented.
27714         (fobjc-nilcheck): Documented.
27715         (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
27716         version.
27717
27718 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
27719
27720         PR driver/47390
27721         * common.opt (export-dynamic): New Driver option.
27722         * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
27723
27724 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
27725
27726         * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
27727
27728 2011-02-17  Alexandre Oliva  <aoliva@redhat.com>
27729             Jan Hubicka  <jh@suse.cz>
27730
27731         PR debug/47106
27732         PR debug/47402
27733         * cfgexpand.c (account_used_vars_for_block): Remove.
27734         (estimated_stack_frame_size): Use referenced vars.
27735         * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
27736         that were referenced in the original function.  Test src_fn
27737         rather than cfun.  Drop redundant get_var_ann.
27738         (setup_one_parameter): Drop redundant get_var_ann.
27739         (declare_return_variable): Likewise.
27740         (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
27741         (copy_arguments_for_versioning): Drop redundant get_var_ann.
27742         * ipa-inline.c (compute_inline_parameters): Do not compute
27743         disregard_inline_limits here.
27744         (compute_inlinable_for_current, pass_inlinable): New.
27745         (pass_inline_parameters): Require PROP_referenced_vars.
27746         * cgraphunit.c (cgraph_process_new_functions): Don't run
27747         compute_inline_parameters explicitly unless function is in SSA form.
27748         (cgraph_analyze_function): Set .disregard_inline_limits.
27749         * tree-sra.c (convert_callers): Compute inliner parameters
27750         only for functions already in SSA form.
27751
27752 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
27753
27754         * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
27755         -mlittle-endian-data.
27756
27757 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
27758
27759         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
27760         -mno-fpu, not -fpu and -no-fpu.
27761         * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
27762         * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
27763
27764 2011-02-17  Uros Bizjak  <ubizjak@gmail.com>
27765
27766         PR target/43653
27767         * config/i386/i386.c (ix86_secondary_reload): Handle SSE
27768         input reload with PLUS RTX.
27769
27770 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
27771
27772         * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
27773         of InverseVar(MDMX).
27774
27775 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
27776
27777         * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
27778         --m4-340.
27779
27780 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
27781
27782         * config/mn10300/mn10300.opt (mno-crt0): New.
27783
27784 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
27785
27786         * config/m68k/uclinux.opt (static-libc): New Driver option.
27787
27788 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
27789
27790         * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
27791
27792 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
27793
27794         * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
27795         %{muser-extend-enabled}.
27796
27797 2011-02-16  Richard Guenther  <rguenther@suse.de>
27798
27799         PR tree-optimization/47738
27800         * tree-ssa-loop.c (run_tree_predictive_commoning): Return
27801         the TODO from tree_predictive_commoning.
27802
27803 2011-02-15  Jeff Law  <law@redhat.com>
27804
27805         Revert
27806         2011-01-25  Jeff Law  <law@redhat.com>
27807
27808         PR rtl-optimization/37273
27809         * ira-costs.c (scan_one_insn): Detect constants living in memory and
27810         handle them like argument loads from stack slots.  Do not double
27811         count memory for memory constants and argument loads from stack slots.
27812
27813 2011-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
27814
27815         PR target/47755
27816         * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
27817         mode for vector constants.  Remove code that checks for TImode.
27818
27819 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
27820
27821         PR debug/47106
27822         PR debug/47402
27823         * cgraph.h (compute_inline_parameters): Return void.
27824         * ipa-inline.c (compute_inline_parameters): Adjust.
27825
27826 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
27827
27828         PR debug/47106
27829         PR debug/47402
27830         * tree-inline.h (estimated_stack_frame_size): Take cgraph node
27831         rather than decl.
27832         * cfgexpand.c (estimated_stack_frame_size): Likewise.
27833         * ipa-inline.c (compute_inline_parameters): Adjust.
27834
27835 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
27836
27837         PR debug/47106
27838         PR debug/47402
27839         * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
27840         Adjust all users.  Pass FN to...
27841         * tree-flow-inline.h (first_referenced_var): ... this.  Add
27842         fn argument.
27843         * ipa-struct-reorg.c: Adjust.
27844         * tree-dfa.c: Adjust.
27845         * tree-into-ssa.c: Adjust.
27846         * tree-sra.c: Adjust.
27847         * tree-ssa-alias.c: Adjust.
27848         * tree-ssa-live.c: Adjust.
27849         * tree-ssa.c: Adjust.
27850         * tree-ssanames.c: Adjust.
27851         * tree-tailcall.c: Adjust.
27852
27853 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
27854
27855         PR debug/47106
27856         PR debug/47402
27857         * tree-flow.h (referenced_var_lookup): Add fn parameter.
27858         Adjust all callers.
27859         * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
27860         * tree-flow-inline.h: Adjust.
27861         * gimple-pretty-print.c: Adjust.
27862         * tree-into-ssa.c: Adjust.
27863         * tree-ssa.c: Adjust.
27864         * cfgexpand.c: Adjust.
27865
27866 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
27867
27868         * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
27869         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
27870         (EXTRA_CONSTRAINT): Delete.
27871         * config/iq2000/constraints.md: New file.
27872         * config/iq2000/iq2000.md: Include it.
27873         (define_insn ""): Delete.
27874         (movsi_internal2, movhi_internal2, movqi_internal2): Delete
27875         unsupported constraint letters from patterns.
27876         (call_value, call_value_internal1): Likewise.
27877         (call_value_multiple_internal1): Likewise.
27878
27879 2011-02-15  Nick Clifton  <nickc@redhat.com>
27880
27881         * config/mn10300/mn10300.c: Include tm-constrs.h.
27882         (struct liw_data): New data structure describing an LIW candidate
27883         instruction.
27884         (extract_bundle): Use struct liw_data.  Allow small integer
27885         operands for some instructions.
27886         (check_liw_constraints): Use struct liw_data.  Remove swapped
27887         parameter.  Add comments describing the checks.  Fix bug when
27888         assigning the source of liw1 to the source of liw2.
27889         (liw_candidate): Delete.  Code moved into extract_bundle.
27890         (mn10300_bundle_liw): Use struct liw_data.  Check constraints
27891         before swapping.
27892         * config/mn10300/predicates.md (liw_operand): New predicate.
27893         Allows registers and small integer constants.
27894         * config/mn10300/constraints.md (O): New constraint.  Accetps
27895         integers in the range -8 to +7 inclusive.
27896         * config/mn10300/mn10300.md (movesi_internal): Add an alternative
27897         for moving a small integer into a register.  Give this alternative
27898         LIW attributes.
27899         (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
27900         (ashlsi3): Likewise, plus give LIW attributes to the alternatives
27901         using the J,K,L and M constraints,
27902         (liw): Remove SI mode on second operands to allow for HI and QI
27903         mode values.
27904         (cmp_liw, liw_cmp): Likewise.  Plus fix order of operands in the
27905         instruction.
27906
27907 2011-02-15  Richard Guenther  <rguenther@suse.de>
27908
27909         PR tree-optimization/47743
27910         * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
27911         for a non-type-compatible VN lookup bail out.
27912
27913 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
27914
27915         * config/fr30/constraints.md: New file.
27916         * config/fr30/fr30.md: Include it.
27917         * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
27918         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
27919         (EXTRA_CONSTRAINT): Delete.
27920
27921 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
27922
27923         * config/frv/constraints.md: New file.
27924         * config/frv/predicates.md: Include it.
27925         * config/frv/frv.c (reg_class_from_letter): Delete.
27926         (frv_option_override): Don't initialize it.
27927         * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
27928         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
27929         (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
27930         (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
27931         (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
27932         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
27933         (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
27934         (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
27935         (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
27936         (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
27937         (REG_CLASS_FROM_CONSTRAINT): Delete.
27938
27939 2011-02-15  Jakub Jelinek  <jakub@redhat.com>
27940
27941         PR middle-end/47581
27942         * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
27943         if frame size is 0 in a leaf function.
27944
27945 2011-02-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27946
27947         PR pch/14940
27948         * config/alpha/host-osf.c: New file.
27949         * config/alpha/x-osf: New file.
27950         * config.host (alpha*-dec-osf*): Use it.
27951
27952 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
27953
27954         * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
27955         * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
27956         * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
27957         (rx_mode_dependent_address_p): ...this. Make static. Change argument
27958         type to const_rtx.
27959         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
27960
27961 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
27962
27963         * config/stormy16/constraints.md: New file.
27964         * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
27965         Use satisfies_constraint_Q and satisfies_constraint_R.
27966         * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
27967         Delete.
27968         (xstormy16_legitiamte_address_p): Declare.
27969         * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
27970         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
27971         (EXTRA_CONSTRAINT): Delete.
27972         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
27973         Un-staticize.
27974         (xstormy16_extra_constraint_p): Delete.
27975
27976 2011-02-14  Eric Botcazou  <ebotcazou@adacore.com>
27977
27978         PR tree-optimization/46494
27979         * loop-unroll.c (split_edge_and_insert): Adjust comment.
27980         * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
27981         (pass_rtl_loop_done): Add TODO_verify_flow.
27982         * fwprop.c (pass_rtl_fwprop): Likewise.
27983         * modulo-sched.c (pass_sms): Likewise.
27984         * tree-ssa-dom.c (pass_dominator): Likewise.
27985         * tree-ssa-loop-ch.c (pass_ch): Likewise.
27986         * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
27987         (pass_tree_loop_done): Likewise.
27988         * tree-ssa-pre.c (execute_pre): Likewise.
27989         * tree-ssa-reassoc.c (pass_reassoc): Likewise.
27990         * tree-ssa-sink.c (pass_sink_code): Likewise.
27991         * tree-vrp.c (pass_vrp): Likewise.
27992
27993 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
27994
27995         * config/v850/constraints.md: New file.
27996         * config/v850/v850.md: Include it.
27997         * config/v850/predicates.md (reg_or_0_operand): Use
27998         satisfies_constraint_G.
27999         (special_symbolref_operand): Use satisfies_constraint_K.
28000         * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
28001         (GO_IF_LEGITIMATE_ADDRESS): Likewise.
28002         (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
28003         (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
28004         (EXTRA_CONSTRAINT): Delete.
28005         (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
28006         (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
28007         (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
28008
28009 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
28010
28011         PR target/47696
28012         * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
28013         description.
28014
28015 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
28016
28017         * config/mcore/constraints.md: New file.
28018         * config/mcore/mcore.md: Include it.
28019         * config/mcore/mcore.c (reg_class_from_letter): Delete.
28020         * config/mcore/mcore.h (reg_class_from_letter): Delete.
28021         (REG_CLASS_FROM_LETTER): Delete.
28022         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
28023         insn_const_int_ok_for_constraint.
28024         (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
28025         (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
28026         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
28027         (EXTRA_CONSTRAINT): Delete.
28028
28029 2011-02-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28030
28031         PR ada/41929
28032         * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
28033         (IS_SIGHANDLER): Define.
28034         (sparc64_is_sighandler): New function, split off from
28035         sparc64_fallback_frame_state.
28036         (sparc_is_sighandler): New function, split off from
28037         sparc_fallback_frame_state.
28038         (sparc64_fallback_frame_state): Merge with ...
28039         (sparc_fallback_frame_state): ... this into ...
28040         (MD_FALLBACK_FRAME_STATE_FOR): ... this.
28041         Change new_cfa to long.  Remove regs_off, fpu_save_off, fpu_save.
28042         Define nframes, mctx.  Use IS_SIGHANDLER, handler_args, mctx, walk
28043         stack instead of hardcoded offsets.
28044
28045 2011-02-14  Andriy Gapon  <avg@freebsd.org>
28046
28047         PR target/45808
28048         * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
28049
28050 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28051
28052         * configure: Regenerate.
28053
28054 2011-02-12  Joseph Myers  <joseph@codesourcery.com>
28055
28056         PR driver/45731
28057         * gcc.c (asm_options): Correct spec matching --target-help.
28058
28059 2011-02-12  Martin Jambor  <mjambor@suse.cz>
28060
28061         * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
28062         to gimple call error.
28063
28064 2011-02-12  Mike Stump  <mikestump@comcast.net>
28065
28066         * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
28067         comments in backslash regions.
28068
28069 2011-02-12  Mike Stump  <mikestump@comcast.net>
28070             Jakub Jelinek  <jakub@redhat.com>
28071             Iain Sandoe  <iains@gcc.gnu.org>
28072
28073         PR target/47324
28074         * dwarf2out.c (output_cfa_loc): When required, apply the
28075         DWARF2_FRAME_REG_OUT macro to adjust register numbers.
28076         (output_loc_sequence): Likewise.
28077         (output_loc_operands_raw): Likewise.
28078         (output_loc_sequence_raw): Likewise.
28079         (output_cfa_loc): Likewise.
28080         (output_loc_list): Suppress register number adjustment when
28081         calling output_loc_sequence()
28082         (output_die): Likewise.
28083
28084 2011-02-12  Anatoly Sokolov  <aesok@post.ru>
28085
28086         * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
28087         Remove macros.
28088         * config/xtensa/xtensa.c (xtensa_register_move_cost,
28089         xtensa_memory_move_cost): New functions.
28090         (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
28091
28092 2011-02-12  Alexandre Oliva  <aoliva@redhat.com>
28093
28094         PR lto/47225
28095         * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
28096         in the current directory.
28097         * configure: Rebuilt.
28098
28099 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
28100
28101         * config/darwin.c (darwin_override_options): Add a hunk missed
28102         from the commit of r168571.  Trim comment line lengths and
28103         correct indents of the preceding block.
28104
28105 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
28106
28107         * gcc.c (driver_handle_option): Concatenate the argument to -F with
28108         the switch.
28109
28110 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
28111
28112         * common.opt (nostartfiles): New Driver option.
28113
28114 2011-02-11  Xinliang David Li  <davidxl@google.com>
28115
28116         PR tree-optimization/47707
28117         * tree-chrec.c (convert_affine_scev): Keep type precision.
28118
28119 2011-02-11  Eric Botcazou  <ebotcazou@adacore.com>
28120
28121         PR tree-optimization/47420
28122         * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
28123
28124 2011-02-11  Pat Haugen  <pthaugen@us.ibm.com>
28125
28126         PR rtl-optimization/47614
28127         * rtl.h (check_for_inc_dec): Declare.
28128         * dse.c (check_for_inc_dec): Externalize...
28129         * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
28130         (reload_cse_simplify_operands): Don't simplify opnds with side effects.
28131
28132 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
28133
28134         PR driver/47678
28135         * gcc.c (main): Do not compile inputs if there were errors in
28136         option handling.
28137         * opts-common.c (read_cmdline_option): Check for wrong language
28138         after other error checks.
28139
28140 2011-02-11  Nathan Froyd  <froydnj@codesourcery.com>
28141
28142         * cgraph.c: Fix comment typos.
28143         * cgraph.h: Likewise.
28144         * cgraphunit.c: Likewise.
28145         * ipa-cp.c: Likewise.
28146         * ipa-inline.c: Likewise.
28147         * ipa-prop.c: Likewise.
28148         * ipa-pure-const.c: Likewise.
28149         * ipa-ref.c: Likewise.
28150         * ipa-reference.c: Likewise.
28151
28152 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
28153
28154         PR debug/47684
28155         * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
28156
28157 2011-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28158
28159         PR testsuite/47400
28160         * doc/sourcebuild.texi (Require Support): Document
28161         dg-require-ascii-locale.
28162
28163 2011-02-11  Mingjie Xing  <mingjie.xing@gmail.com>
28164
28165         * doc/lto.texi (Write summary): Fix missing parentheses.
28166
28167 2011-02-10  DJ Delorie  <dj@redhat.com>
28168
28169         * config/m32c/m32c.c (m32c_option_override): Disable
28170         -fcombine-stack-adjustments until flag value tracking and compare
28171         optimization can be rewritten.
28172
28173 2011-02-10  Peter Bergner  <bergner@vnet.ibm.com>
28174
28175         * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
28176         PROCESSOR_POWER7.
28177         (PROCESSOR_DEFAULT64): Likewise.
28178
28179 2011-02-10  Richard Henderson  <rth@redhat.com>
28180
28181         * config/rx/predicates.md (rx_zs_comparison_operator): Revert
28182         change from 2011-02-03.
28183         * config/rx/rx.c (flags_from_code): Likewise.
28184         (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
28185         is valid, n/pz otherwise.
28186         (rx_select_cc_mode): Return CCmode if Y is not zero.
28187
28188 2011-02-10  Richard Guenther  <rguenther@suse.de>
28189
28190         * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
28191
28192 2011-02-10  Richard Guenther  <rguenther@suse.de>
28193
28194         PR tree-optimization/47677
28195         * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
28196
28197 2011-02-10  Jakub Jelinek  <jakub@redhat.com>
28198
28199         PR target/47665
28200         * combine.c (make_compound_operation): Only change shifts into
28201         multiplication for SCALAR_INT_MODE_P.
28202
28203 2011-02-10  Jie Zhang  <jie@codesourcery.com>
28204
28205         PR testsuite/47622
28206         Revert
28207         2011-02-05  Jie Zhang  <jie@codesourcery.com>
28208         PR debug/42631
28209         * web.c (entry_register): Don't clobber the number of the
28210         first uninitialized reference in used[].
28211
28212 2011-02-09  Richard Guenther  <rguenther@suse.de>
28213
28214         PR tree-optimization/47664
28215         * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
28216         all edges again.
28217
28218 2011-02-09  David Edelsohn  <dje.gcc@gmail.com>
28219
28220         PR target/46481
28221         PR target/47032
28222         * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
28223         PROCESSOR_POWER7.
28224         (PROCESSOR_DEFAULT64): Same.
28225         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
28226
28227 2011-02-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28228
28229         * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
28230
28231 2011-02-09  Martin Jambor  <mjambor@suse.cz>
28232
28233         PR middle-end/45505
28234         * tree-sra.c (struct access): New flags grp_scalar_read and
28235         grp_scalar_write.  Changed description of assignment read and write
28236         flags.
28237         (dump_access): Dump new flags, reorder all of them.
28238         (sort_and_splice_var_accesses): Set the new flag accordingly, use them
28239         to detect multiple scalar reads.
28240         (analyze_access_subtree): Use the new scalar read write flags instead
28241         of the old flags.  Adjusted comments.
28242
28243 2011-02-08  DJ Delorie  <dj@redhat.com>
28244
28245         PR target/47548
28246         * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
28247         patterns.
28248
28249 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
28250
28251         * config/m68k/uclinux.opt: New.
28252         * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
28253
28254 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
28255
28256         * config/cris/elf.opt (sim): New Driver option.
28257
28258 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
28259
28260         * config/xtensa/elf.opt: New.
28261         * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
28262
28263 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
28264
28265         * config/vax/elf.opt: New.
28266         * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
28267
28268 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
28269
28270         * config/rs6000/aix64.opt (posix, pthread): New Driver options.
28271
28272 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
28273
28274         * config/gnu-user.opt: New.
28275         * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
28276         *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
28277         *-*-uclinux*): Use gnu-user.opt.
28278
28279 2011-02-08  Thomas Schwinge  <thomas@schwinge.name>
28280
28281         * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
28282         * config/i386/gnu.h (CPP_SPEC): Likewise.
28283
28284 2011-02-08  Ian Lance Taylor  <iant@google.com>
28285
28286         * common.opt (fcx-limited-range): Add SetByCombined flag.
28287         (ffinite-math-only, fmath-errno, frounding-math): Likewise.
28288         (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
28289         (fassociative-math, freciprocal-math): Likewise.
28290         (funsafe-math-optimizations): Likewise.
28291         * opth-gen.awk: Handle SetByCombined.
28292         * optc-gen.awk: Likewise.
28293         * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
28294         (set_unsafe_math_optimizations_flags): Likewise.
28295         * doc/options.texi (Option properties): Document SetByCombined.
28296
28297 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
28298
28299         * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
28300         i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
28301         m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
28302         m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
28303         sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
28304
28305 2011-02-08  Sebastian Pop  <sebastian.pop@amd.com>
28306
28307         PR tree-optimization/46834
28308         PR tree-optimization/46994
28309         PR tree-optimization/46995
28310         * graphite-sese-to-poly.c (used_outside_reduction): New.
28311         (detect_commutative_reduction): Call used_outside_reduction.
28312         (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
28313         translate_scalar_reduction_to_array only when at least one
28314         loop-phi/close-phi tuple has been detected.
28315
28316 2011-02-08  Richard Guenther  <rguenther@suse.de>
28317
28318         PR middle-end/47639
28319         * tree-vect-generic.c (expand_vector_operations_1): Update
28320         stmts here ...
28321         (expand_vector_operations): ... not here.  Cleanup EH info
28322         and the CFG if required.
28323
28324 2011-02-08  Richard Guenther  <rguenther@suse.de>
28325
28326         PR tree-optimization/47641
28327         * tree-ssa.c (execute_update_addresses_taken): For asm outputs
28328         require type compatibility.
28329
28330 2011-02-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
28331
28332         * gimple-low.c (lower_function_body): Don't remove the location of
28333         the return statement here.
28334         (lower_gimple_return): Do it here instead but only if the return
28335         statement is actually used twice.
28336
28337 2011-02-08  Richard Guenther  <rguenther@suse.de>
28338
28339         PR tree-optimization/47632
28340         * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
28341         unused up_to_stmt parameter, return whether cfg-cleanup is
28342         necessary, remove EH info properly.
28343         (forward_propagate_into_gimple_cond): Adjust caller.
28344         (forward_propagate_into_cond): Likewise.
28345         (forward_propagate_comparison): Likewise.
28346         (tree_ssa_forward_propagate_single_use_vars): Make
28347         forward_propagate_comparison case similar to the two others.
28348
28349 2011-02-08  Nick Clifton  <nickc@redhat.com>
28350
28351         * config/mn10300/mn10300.opt (mliw): New command line option.
28352         * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
28353         (liw_bundling): New automaton.
28354         (liw): New attribute.
28355         (liw_op): New attribute.
28356         (liw_op1, liw_op2, liw_both, liw_either): New reservations.
28357         (movsi_internal): Add LIW attributes.
28358         (andsi3): Likewise.
28359         (iorsi3): Likewise.
28360         (xorsi3): Likewise.
28361         (addsi3): Separate register and immediate alternatives.
28362         Add LIW attributes.
28363         (subsi3): Likewise.
28364         (cmpsi): Likewise.
28365         (aslsi3): Likewise.
28366         (lshrsi3): Likewise.
28367         (ashrsi3): Likewise.
28368         (liw): New pattern.
28369         * config/mn10300/mn10300.c (liw_op_names): New
28370         (mn10300_print_operand): Handle 'W' operand descriptor.
28371         (extract_bundle): New function.
28372         (check_liw_constraints): New function.
28373         (liw_candidate): New function.
28374         (mn10300_bundle_liw): New function.
28375         (mn10300_reorg): New function.
28376         (TARGET_MACHINE_DEPENDENT_REORG): Define.
28377         (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
28378         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
28379         __LIW__ or __NO_LIW__.
28380         * doc/invoke.texi: Describe the -mliw command line option.
28381
28382 2011-02-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
28383
28384         * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
28385         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
28386         pthread_mutex_unlock): Remove.
28387         * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
28388         * config/pa/t-pa64: Likewise.
28389         * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
28390         shared libc if not linking against libpthread.
28391         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
28392
28393 2011-02-07  Iain Sandoe  <iains@gcc.gnu.org>
28394
28395         PR target/47558
28396         * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
28397         on 10.6 and later to ensure that we always use the unwinder from
28398         the system.  Only add -no_compact_unwind when tarteting darwin
28399         10.6 or later.
28400
28401 2011-02-07  Steve Ellcey  <sje@cup.hp.com>
28402
28403         PR target/46997
28404         * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
28405         (vec_interleave_lowv2sf): Ditto.
28406         (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
28407         (vec_extract_oddv2sf): Ditto.
28408
28409 2011-02-07  Mike Stump  <mikestump@comcast.net>
28410
28411         PR target/42333
28412         Add __ieee_divdc3 entry point.
28413         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
28414         entry point.
28415         (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
28416         * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
28417         * config/darwin.c (darwin_rename_builtins): Add.
28418         * config/darwin-protos.h (darwin_rename_builtins): Add.
28419
28420 2011-02-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
28421
28422         PR target/47636
28423         * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
28424         for the condition.
28425
28426 2011-02-07  Mike Stump  <mikestump@comcast.net>
28427
28428         * config/darwin.opt (mmacosx-version-min): Update default OS version.
28429
28430 2011-02-07  Denis Chertykov  <chertykov@gmail.com>
28431
28432         PR target/47534
28433         * config/avr/libgcc.S (exit): Move .endfunc
28434
28435 2011-02-07  Richard Guenther  <rguenther@suse.de>
28436
28437         PR tree-optimization/47615
28438         * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
28439         * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
28440         (run_scc_vn): Initialize it.
28441         (visit_reference_op_load): Use it.
28442         * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
28443
28444 2011-02-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
28445
28446         * config/spu/spu.c (spu_init_libfuncs): Install SImode and
28447         DImode trapping arithmetic libfuncs.
28448
28449 2011-02-07  Richard Guenther  <rguenther@suse.de>
28450
28451         PR tree-optimization/47621
28452         * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
28453         two duplicates ...
28454         (execute_update_addresses_taken): ... here.  Make it more
28455         conservative in what we accept.
28456
28457 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
28458
28459         * config/sparc/freebsd.h (ASM_SPEC): Define.
28460         * config/sparc/vxworks.h (ASM_SPEC): Define.
28461
28462 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
28463
28464         * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
28465
28466 2011-02-06  Steven Bosscher  <steven@gcc.gnu.org>
28467
28468         * doc/invoke.texi: Remove reference to compiler internals from
28469         user documentation.
28470
28471         * reg-notes.def: Remove REG_VALUE_PROFILE.
28472         * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
28473
28474 2011-02-05  Jakub Jelinek  <jakub@redhat.com>
28475
28476         PR middle-end/47610
28477         * varasm.c (default_section_type_flags): If decl is NULL,
28478         and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
28479
28480 2011-02-05  Jie Zhang  <jie@codesourcery.com>
28481
28482         PR debug/42631
28483         * web.c (entry_register): Don't clobber the number of the
28484         first uninitialized reference in used[].
28485
28486 2011-02-04  Sebastian Pop  <sebastian.pop@amd.com>
28487
28488         PR tree-optimization/46194
28489         * tree-data-ref.c (analyze_miv_subscript): Remove comment.
28490         (build_classic_dist_vector_1): Do not represent classic distance
28491         vectors when the access functions are variating in different loops.
28492
28493 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
28494
28495         * config/mips/iris6.opt: New.
28496         * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
28497
28498 2011-02-04  Richard Henderson  <rth@redhat.com>
28499             Steve Ellcey  <sje@cup.hp.com>
28500
28501         PR target/46997
28502         * config/ia64/predicates.md (mux1_brcst_element): New.
28503         * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
28504         * config/ia64/ia64.c (ia64_unpack_assemble): New.
28505         (ia64_unpack_sign): New.
28506         (ia64_expand_unpack): Rewrite using new routines.
28507         (ia64_expand_widen_sum): Ditto.
28508         (ia64_expand_dot_prod_v8qi): Ditto.
28509         * config/ia64/vect.md (mulv8qi3): Rewrite to use new
28510         routines, add endian check.
28511         (pmpy2_even): Rename from pmpy2_r, add endian check.
28512         (pmpy2_odd): Rename from pmpy2_l, add endian check.
28513         (vec_widen_smult_lo_v4hi): Rewrite using new routines.
28514         (vec_widen_smult_hi_v4hi): Ditto.
28515         (vec_widen_umult_lo_v4hi): Ditto.
28516         (vec_widen_umult_hi_v4hi): Ditto.
28517         (mulv2si3): Change endian checks.
28518         (sdot_prodv4hi): Rewrite with new calls.
28519         (udot_prodv4hi): New.
28520         (vec_pack_ssat_v4hi): Add endian check.
28521         (vec_pack_usat_v4hi): Ditto.
28522         (vec_pack_ssat_v2si): Ditto.
28523         (max1_even): Rename from max1_r, add endian check.
28524         (max1_odd): Rename from max1_l, add endian check.
28525         (*mux1_rev): Format change.
28526         (*mux1_mix): Ditto.
28527         (*mux1_shuf): Ditto.
28528         (*mux1_alt): Ditto.
28529         (*mux1_brcst_v8qi): Use new predicate.
28530         (vec_extract_evenv8qi): Remove endian check.
28531         (vec_extract_oddv8qi): Ditto.
28532         (vec_interleave_lowv4hi): Format change.
28533         (vec_interleave_highv4hi): Ditto.
28534         (mix2_even): Rename from mix2_r, add endian check.
28535         (mix2_odd): Rename from mux2_l, add endian check.
28536         (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
28537         (vec_extract_evenodd_helper): Format change.
28538         (vec_extract_evenv4hi): Remove endian check.
28539         (vec_extract_oddv4hi): Remove endian check.
28540         (vec_interleave_lowv2si): Format change.
28541         (vec_interleave_highv2si): Format change.
28542         (vec_initv2si): Remove endian check.
28543         (vecinit_v2si): Add endian check.
28544         (reduc_splus_v2sf): Add endian check.
28545         (reduc_smax_v2sf): Ditto.
28546         (reduc_smin_v2sf): Ditto.
28547         (vec_initv2sf): Remove endian check.
28548         (fpack): Add endian check.
28549         (fswap): Add endian check.
28550         (vec_interleave_highv2sf): Add endian check.
28551         (vec_interleave_lowv2sf): Add endian check.
28552         (fmix_lr): Add endian check.
28553         (vec_setv2sf): Format change.
28554         (*vec_extractv2sf_0_be): Use shift to extract operand.
28555         (*vec_extractv2sf_1_be): New.
28556         (vec_pack_trunc_v4hi): Add endian check.
28557         (vec_pack_trunc_v2si): Format change.
28558
28559 2011-02-04  Jakub Jelinek  <jakub@redhat.com>
28560
28561         PR inline-asm/23200
28562         * tree-ssa-ter.c (is_replaceable_p): Add TER argument.  Don't
28563         do bb, locus and block comparison and disallow loads if it is not set.
28564         (stmt_is_replaceable_p): New function.
28565         (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
28566         callers.
28567         * expr.c (expand_expr_real_1) <case SSA_NAME>: If
28568         get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
28569         SSA_NAME_DEF_STMT.
28570         * tree-flow.h (stmt_is_replaceable_p): New prototype.
28571
28572 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
28573
28574         * config/rs6000/xilinx.opt: New.
28575         * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
28576
28577 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
28578
28579         * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
28580
28581 2011-02-03  Anatoly Sokolov  <aesok@post.ru>
28582
28583         * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
28584         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
28585         * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
28586         secondary_reload_info, xtensa_secondary_reload): Remove.
28587         * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
28588         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
28589         (xtensa_preferred_reload_class): Make static. Change return and
28590         'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
28591         Use CONST_DOUBLE_P predicate.
28592         (xtensa_preferred_output_reload_class): New function.
28593         (xtensa_secondary_reload): Make static.
28594
28595 2011-02-03  Joseph Myers  <joseph@codesourcery.com>
28596
28597         * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
28598         Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
28599         Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
28600
28601 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
28602
28603         PR middle-end/31490
28604         * output.h (SECTION_RELRO): Define.
28605         (SECTION_MACH_DEP): Adjust.
28606         (get_variable_section): New prototype.
28607         * varpool.c (varpool_finalize_named_section_flags): New function.
28608         (varpool_assemble_pending_decls): Call it.
28609         * cgraph.h (varpool_finalize_named_section_flags): New prototype.
28610         * cgraphunit.c (cgraph_output_in_order): Call
28611         varpool_finalize_named_section_flags.
28612         * varasm.c (get_section): Allow section flags conflicts between
28613         relro and read-only sections if the section hasn't been declared yet.
28614         Set SECTION_OVERRIDE after diagnosing section type conflict.
28615         (get_variable_section): No longer static.
28616         (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
28617         readonly sections that need relocations.
28618         (decl_readonly_section_1): New function.
28619         (decl_readonly_section): Use it.
28620
28621         Revert:
28622         2010-11-17  Dinar Temirbulatov  <dtemirbulatov@gmail.com>
28623                     Steve Ellcey  <sje@cup.hp.com>
28624
28625         PR middle-end/31490
28626         * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
28627         if section attribute used.
28628
28629 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
28630
28631         * config/darwin.h (SECTION_NO_ANCHOR): Remove.
28632         * config/darwin.c (SECTION_NO_ANCHOR): Define.
28633         (darwin_init_sections): Remove assertion.
28634
28635 2011-02-03  Nick Clifton  <nickc@redhat.com>
28636
28637         * config/rx/predicates.md (rx_zs_comparison_operator): Remove
28638         lt and ge.
28639         * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
28640         * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
28641         instead of "n" and "pz".
28642         (flags_from_code): LT and GE tests need CC_FLAG_O as well as
28643         CC_FLAG_S.
28644
28645 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
28646
28647         PR target/47312
28648         * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
28649         fma, expand FMA_EXPR as fma{,f,l} call.
28650
28651         PR lto/47274
28652         * lto-streamer-out.c (write_symbol): When writing kind and visibility,
28653         copy them into a unsigned char variable and pass address of it to
28654         lto_output_data_stream.
28655
28656         PR target/47564
28657         * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
28658         around backend_init_target and lang_dependent_init_target calls.
28659         * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
28660         (verify_cgraph_node): Don't call set_cfun here.  Use
28661         cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
28662         Set error_found for incorrectly represented calls to thunks.
28663
28664 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
28665
28666         PR debug/43092
28667         PR rtl-optimization/43494
28668         * rtl.h (for_each_inc_dec_fn): New type.
28669         (for_each_inc_dec): Declare.
28670         * rtlanal.c (struct for_each_inc_dec_ops): New type.
28671         (for_each_inc_dec_find_inc_dec): New fn.
28672         (for_each_inc_dec_find_mem): New fn.
28673         (for_each_inc_dec): New fn.
28674         * dse.c (struct insn_size): Remove.
28675         (replace_inc_dec, replace_inc_dec_mem): Remove.
28676         (emit_inc_dec_insn_before): New fn.
28677         (check_for_inc_dec): Use it, along with for_each_inc_dec.
28678         (canon_address): Pass mem modes to cselib_lookup.
28679         * cselib.h (cselib_lookup): Add memmode argument.  Adjust callers.
28680         (cselib_lookup_from_insn): Likewise.
28681         (cselib_subst_to_values): Likewise.
28682         * cselib.c (find_slot_memmode): New var.
28683         (cselib_find_slot): New fn.  Use it instead of
28684         htab_find_slot_with_hash everywhere.
28685         (entry_and_rtx_equal_p): Use find_slot_memmode.
28686         (autoinc_split): New fn.
28687         (rtx_equal_for_cselib_p): Rename and implement in terms of...
28688         (rtx_equal_for_cselib_1): ... this.  Take memmode, pass it on.
28689         Deal with autoinc.  Special-case recursion into MEMs.
28690         (cselib_hash_rtx): Likewise.
28691         (cselib_lookup_mem): Infer pmode from address mode.  Distinguish
28692         address and MEM modes.
28693         (cselib_subst_to_values): Add memmode, pass it on.
28694         Deal with autoinc.
28695         (cselib_lookup): Add memmode argument, pass it on.
28696         (cselib_lookup_from_insn): Add memmode.
28697         (cselib_invalidate_rtx): Discard obsolete push_operand handling.
28698         (struct cselib_record_autoinc_data): New.
28699         (cselib_record_autoinc_cb): New fn.
28700         (cselib_record_sets): Use it, along with for_each_inc_dec.  Pass MEM
28701         mode to cselib_lookup.  Reset autoinced REGs here instead of...
28702         (cselib_process_insn): ... here.
28703         * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
28704         to cselib_lookup.
28705         (add_uses): Likewise, also to cselib_subst_to_values.
28706         (add_stores): Likewise.
28707         * sched-deps.c (add_insn_mem_dependence): Pass mode to
28708         cselib_subst_to_values.
28709         (sched_analyze_1, sched_analyze_2): Likewise.  Adjusted.
28710         * gcse.c (do_local_cprop): Adjusted.
28711         * postreload.c (reload_cse_simplify_set): Adjusted.
28712         (reload_cse_simplify_operands): Adjusted.
28713         * sel-sched-dump (debug_mem_addr_value): Pass mode.
28714
28715 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
28716
28717         PR tree-optimization/45122
28718         * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
28719         unsafe assumptions when there's more than one loop exit.
28720
28721 2011-02-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
28722
28723         PR target/47272
28724         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
28725         Document using vector double with the load/store builtins, and
28726         that the load/store builtins always use Altivec instructions.
28727
28728         * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
28729         to use altivec memory instructions, even on VSX.
28730         (vector_altivec_store_<mode>): Ditto.
28731
28732         * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
28733         function.
28734
28735         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
28736         V2DF, V2DI support to load/store overloaded builtins.
28737
28738         * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
28739         altivec load/store builtins for V2DF/V2DI types.
28740
28741         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
28742         set avoid indexed addresses on power6 if -maltivec.
28743         (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
28744         vector_altivec_load/vector_altivec_store builtins.
28745         (altivec_expand_st_builtin): Ditto.
28746         (altivec_expand_builtin): Add VSX memory builtins.
28747         (rs6000_init_builtins): Add V2DI types to internal types.
28748         (altivec_init_builtins): Add support for V2DF/V2DI altivec
28749         load/store builtins.
28750         (rs6000_address_for_altivec): Insure memory address is appropriate
28751         for Altivec.
28752
28753         * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
28754         vec_vsx_ld and vec_vsx_st.
28755         (vsx_store_<mode>): Ditto.
28756
28757         * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
28758         variables to hold long long types for VSX vector memory builtins.
28759         (RS6000_BTI_unsigned_long_long): Ditto.
28760         (long_long_integer_type_internal_node): Ditti.
28761         (long_long_unsigned_type_internal_node): Ditti.
28762
28763         * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
28764         (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
28765         (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
28766
28767         * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
28768         short cuts.
28769         (vec_vsx_st): Ditto.
28770
28771 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
28772
28773         * config/pa/pa-hpux10.opt: New.
28774         * config/hpux11.opt (pthread): New Driver option.
28775         * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
28776         * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
28777
28778 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
28779
28780         * config/ia64/vms.opt: New.
28781         * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
28782
28783 2011-02-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
28784
28785         PR target/47580
28786         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
28787         gpc_reg_operand instead of vsx_register_operand to match rs6000.md
28788         generator functions.
28789         (vsx_floatuns<VSi><mode>2): Ditto.
28790         (vsx_fix_trunc<mode><VSi>2): Ditto.
28791         (vsx_fixuns_trunc<mode><VSi>2): Ditto.
28792
28793 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
28794
28795         * config/i386/djgpp.opt (posix): New Driver option.
28796
28797 2011-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
28798
28799         * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
28800         Move to the unsupported targets list.
28801
28802 2011-02-02  Peter Bergner  <bergner@vnet.ibm.com>
28803
28804         PR rtl-optimization/47525
28805         * df-scan.c: Update copyright years.
28806         (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
28807         and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
28808
28809 2011-02-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28810
28811         * config/i386/sysv4.h (TARGET_VERSION): Remove.
28812         (SUBTARGET_RETURN_IN_MEMORY): Remove.
28813         (ASM_OUTPUT_ASCII): Remove.
28814         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
28815
28816 2011-02-02  Jeff Law  <law@redhat.com>
28817
28818         PR middle-end/47543
28819         * reload.c (find_reloads_address): Handle reg+d address where both
28820         components are invalid by reloading the entire address.
28821
28822 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
28823             Richard Guenther  <rguenther@suse.de>
28824
28825         PR tree-optimization/40979
28826         PR bootstrap/47044
28827         * passes.c (init_optimization_passes): After LIM call copy_prop
28828         and DCE to clean up.
28829         * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
28830
28831 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
28832
28833         PR tree-optimization/47576
28834         PR tree-optimization/47555
28835         * doc/invoke.texi (scev-max-expr-complexity): Documented.
28836         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
28837         (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
28838         * tree-scalar-evolution.c (follow_ssa_edge): Use
28839         PARAM_SCEV_MAX_EXPR_COMPLEXITY.
28840
28841 2011-02-02  Richard Guenther  <rguenther@suse.de>
28842
28843         PR tree-optimization/47566
28844         * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
28845
28846 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
28847
28848         PR debug/47106
28849         PR debug/47402
28850         * tree-inline.c (declare_return_variable): Remove unused caller
28851         variable.
28852
28853         PR debug/47106
28854         PR debug/47402
28855         * tree-flow-inline.h (clear_is_used, is_used_p): New.
28856         * cfgexpand.c (account_used_vars_for_block): Use them.
28857         * tree-nrv.c (tree_nrv): Likewise.
28858         * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
28859         (dump_scope_block): Likewise.
28860         (remove_unused_locals): Likewise.
28861
28862         PR debug/47106
28863         PR debug/47402
28864         * tree-inline.c (declare_return_variable): Add result decl to
28865         local decls only once.
28866         * gimple-low.c (record_vars_into): Mark newly-created variables
28867         as referenced.
28868
28869 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
28870
28871         PR debug/47498
28872         PR debug/47501
28873         PR debug/45136
28874         PR debug/45130
28875         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
28876         debug insns.
28877         (no_real_insns_p, schedule_block, set_priorities): Drop special
28878         treatment of boundary debug insns.
28879         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
28880         * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
28881         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
28882         (BOUNDARY_DEBUG_INSN_P): Likewise.
28883         (SCHEDULE_DEBUG_INSN_P): Likewise.
28884         * sched-rgn.c (init_ready_list): Drop special treatment of
28885         boundary debug insns.
28886         * final.c (rest_of_clean_state): Clear notes' BB.
28887
28888 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
28889
28890         * config/openbsd.opt (assert=): New Driver option.
28891
28892 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
28893
28894         * config/i386/nto.opt: New.
28895         * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
28896
28897 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
28898
28899         * config/i386/netware.opt: New.
28900         * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
28901
28902 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
28903
28904         * config/interix.opt (posix): New Driver option.
28905
28906 2011-02-01  DJ Delorie  <dj@redhat.com>
28907
28908         * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
28909
28910         * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
28911         class for A0/A1.
28912
28913 2011-02-01  Sebastian Pop  <sebastian.pop@amd.com>
28914
28915         PR tree-optimization/47561
28916         * toplev.c (process_options): Print the Graphite flags.  Add
28917         flag_loop_flatten to the list of options requiring Graphite.
28918
28919 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
28920
28921         * config/i386/cygming.opt (posix): New Driver option.
28922
28923 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
28924
28925         * config/arm/vxworks.opt: New.
28926         * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
28927
28928 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
28929
28930         * config/alpha/elf.opt: New.
28931         * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
28932         alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
28933
28934 2011-02-01  Richard Guenther  <rguenther@suse.de>
28935
28936         PR tree-optimization/47559
28937         * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
28938         store-motion on references that can throw.
28939
28940 2011-02-01  Bernd Schmidt  <bernds@codesourcery.com>
28941
28942         * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
28943         * tree-pass.h (TDF_CSELIB): New macro.
28944         * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
28945         cselib_lookup): Check for it rather than for TDF_DETAILS.
28946
28947 2011-02-01  H.J. Lu  <hongjiu.lu@intel.com>
28948
28949         PR driver/47547
28950         * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
28951         is HOST_BIT_BUCKET.
28952
28953         * opts.c (finish_options): Don't add x_aux_base_name if it is
28954         HOST_BIT_BUCKET.
28955
28956 2011-02-01  Richard Guenther  <rguenther@suse.de>
28957
28958         PR tree-optimization/47555
28959         Revert
28960         2010-07-15  Sebastian Pop  <sebastian.pop@amd.com>
28961
28962         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
28963
28964 2011-02-01  Sebastien Bourdeauducq  <sebastien@milkymist.org>
28965
28966         PR gcc/46692
28967         * config/lm32/t-lm32: Add multilib for all CPU options.
28968
28969 2011-02-01  Richard Guenther  <rguenther@suse.de>
28970
28971         PR tree-optimization/47541
28972         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
28973         sure to have a field at offset zero.
28974
28975 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
28976
28977         * config/arc/arc.opt (EB, EL): New Driver options.
28978
28979 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
28980
28981         * config/alpha/osf5.opt: New.
28982         * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
28983
28984 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
28985
28986         * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
28987
28988 2011-01-31  Sebastian Pop  <sebastian.pop@amd.com>
28989
28990         * common.opt (ftree-loop-linear): Use Alias to make it an alias of
28991         -floop-interchange.
28992         * invoke.texi (-ftree-loop-linear): Make it clear that this flag
28993         is an alias of -floop-interchange and that it requires the
28994         Graphite infrastructure.
28995         * tree-ssa-loop.c (gate_graphite_transforms): Do not set
28996         flag_loop_interchange based on the value of flag_tree_loop_linear.
28997
28998 2011-01-31  Jakub Jelinek  <jakub@redhat.com>
28999             Richard Guenther  <rguenther@suse.de>
29000
29001         PR tree-optimization/47538
29002         * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
29003         type instead of r1type, except for comparisons.  For right
29004         shifts and comparisons punt if there are mismatches in
29005         sizetype vs. non-sizetype types.
29006
29007 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29008
29009         * doc/sourcebuild.texi (Effective-Target Keywords): Document
29010         avx_runtime.
29011
29012 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29013
29014         * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
29015         version number.
29016         * configure: Regenerate.
29017
29018 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29019
29020         * configure.ac (gcc_cv_ld_static_option): Define.
29021         (gcc_cv_ld_dynamic_option): Define.
29022         (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
29023         instead.
29024         (HAVE_LD_STATIC_DYNAMIC): Update message.
29025         (LD_STATIC_OPTION): Define.
29026         (LD_DYNAMIC_OPTION): Define.
29027         * configure: Regenerate.
29028         * config.in: Regenerate.
29029         * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
29030         HAVE_LD_STATIC_DYNAMIC]: Use them.
29031
29032 2011-01-31  Nick Clifton  <nickc@redhat.com>
29033
29034         * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
29035         registers inside interrupt handlers if the handler is not a leaf
29036         function.
29037
29038 2011-01-31  Nick Clifton  <nickc@redhat.com>
29039
29040         * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
29041         reg_renumber returning an INVALID_REGNUM.
29042
29043 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
29044
29045         PR libgcj/44341
29046         * doc/install.texi: Document host options discarded when cross
29047         configuring target libraries.
29048
29049 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
29050
29051         Reverted:
29052         2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
29053         PR debug/45136
29054         PR debug/45130
29055         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
29056         debug insns.
29057         (no_real_insns_p, schedule_block, set_priorities): Drop special
29058         treatment of boundary debug insns.
29059         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
29060         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
29061         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
29062         (BOUNDARY_DEBUG_INSN_P): Likewise.
29063         (SCHEDULE_DEBUG_INSN_P): Likewise.
29064         * sched-rgn.c (init_ready_list): Drop special treatment of
29065         boundary debug insns.
29066         * final.c (rest_of_clean-state): Clear notes' BB.
29067
29068 2011-01-31  Alan Modra  <amodra@gmail.com>
29069
29070         * config/rs6000/rs6000.c (print_operand): Rearrange addends in
29071         toc relative expressions as we do in print_operand_address.
29072
29073 2011-01-30  Kazu Hirata  <kazu@codesourcery.com>
29074
29075         * doc/extend.texi: Follow spelling conventions.
29076         * doc/invoke.texi: Fix a typo.
29077
29078 2011-01-30  Joseph Myers  <joseph@codesourcery.com>
29079
29080         * config/hpux11.opt: New.
29081         * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
29082         ia64*-*-hpux*): Use hpux11.opt.
29083
29084 2011-01-30  Jonathan Yong  <jon_y@users.sourceforge.net>
29085
29086         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
29087         to tmake_file.
29088
29089 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
29090
29091         * doc/install.texi (hppa-hp-hpux10): Remove references to HP
29092         support sites.
29093
29094 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
29095
29096         * doc/install.texi (Binaries): Remove outdated reference for
29097         Motorola 68HC11/68HC12 downloads.
29098
29099 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
29100
29101         * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
29102         Drepper's paper.
29103
29104 2011-01-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
29105
29106         PR bootstrap/47147
29107         * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
29108         used by NetBSD.
29109
29110 2011-01-28  Ahmad Sharif  <asharif@google.com>
29111
29112         * value-prof.c (check_counter): Corrected error message.
29113
29114 2011-01-29  Jie Zhang  <jie@codesourcery.com>
29115
29116         * config/arm/arm.c (arm_legitimize_reload_address): New.
29117         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
29118         arm_legitimize_reload_address.
29119         * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
29120
29121 2011-01-28  Ian Lance Taylor  <iant@google.com>
29122
29123         * godump.c (go_define): Ignore macros whose definitions include
29124         two adjacent operands.
29125
29126 2011-01-28  Jakub Jelinek  <jakub@redhat.com>
29127
29128         PR target/42894
29129         * varasm.c (force_const_mem): Store copy of x in desc->constant
29130         instead of x itself.
29131         * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
29132         itself into REG_EQUAL note.
29133
29134 2011-01-28  Joseph Myers  <joseph@codesourcery.com>
29135
29136         * config/freebsd.opt (posix, rdynamic): New Driver options.
29137
29138 2011-01-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29139
29140         * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
29141         -Bstatic/-Bdynamic.
29142         * configure: Regenerate.
29143
29144 2011-01-27  Joseph Myers  <joseph@codesourcery.com>
29145
29146         * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
29147         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
29148
29149 2011-01-27  Anatoly Sokolov  <aesok@post.ru>
29150
29151         * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
29152         * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
29153         * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
29154         (s390_preferred_reload_class): Make static. Change return and
29155         'rclass' argument type to reg_class_t.
29156
29157 2011-01-27  Jan Hubicka  <jh@suse.cz>
29158
29159         PR middle-end/46949
29160         * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
29161         (process_function_and_variable_attributes): Check defined weakrefs.
29162
29163 2011-01-27  Martin Jambor  <mjambor@suse.cz>
29164
29165         PR tree-optimization/47228
29166         * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
29167         build_ref_for_offset.
29168
29169 2011-01-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
29170
29171         * config/spu/spu-elf.h (ASM_SPEC): Remove.
29172
29173 2011-01-26  Mikael Pettersson  <mikpe@it.uu.se>
29174
29175         PR rtl-optimization/46856
29176         * postreload.c (reload_combine_recognize_const_pattern): Do not
29177         separate cc0 setter and user on cc0 targets.
29178
29179 2011-01-26  Nicola Pero  <nicola.pero@meta-innovation.com>
29180
29181         PR c/43082
29182         * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
29183         passed a VOID_TYPE expression, immediately emit an error and
29184         return error_mark_node.
29185
29186 2011-01-26  Jeff Law  <law@redhat.com>
29187
29188         PR rtl-optimization/47464
29189         * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
29190         rather than may_trap_p as needed.
29191
29192 2011-01-26  DJ Delorie  <dj@redhat.com>
29193
29194         PR rtl-optimization/46878
29195         * combine.c (insn_a_feeds_b): Check for the implicit cc0
29196         setter/user dependency as well.
29197
29198 2011-01-26  Eric Botcazou  <ebotcazou@adacore.com>
29199
29200         PR rtl-optimization/44469
29201         * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
29202         after removing trivially dead basic blocks.
29203
29204 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
29205
29206         * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
29207         * config/frv/frv.h (LINK_SPEC): Likewise.
29208         * config/i386/netware.h (LINK_SPEC): Likewise.
29209         * config/m68k/linux.h (ASM_SPEC): Likewise.
29210         * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
29211         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
29212         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
29213         * config/sparc/linux.h (ASM_SPEC): Likewise.
29214         * config/sparc/linux64.h (ASM_SPEC): Likewise.
29215         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
29216
29217 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
29218
29219         * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
29220         * config/frv/frv.h (ASM_SPEC): Likewise.
29221         * config/m68k/linux.h (ASM_SPEC): Likewise.
29222         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
29223         * config/rs6000/linux64.h (ASM_SPEC): Likewise.
29224         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
29225         * config/sparc/linux.h (ASM_SPEC): Likewise.
29226         * config/sparc/linux64.h (ASM_SPEC): Likewise.
29227         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
29228
29229 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
29230
29231         * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
29232         * config/frv/frv.h (LINK_SPEC): Likewise.
29233         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
29234
29235 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
29236
29237         * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
29238         * config/frv/frv.h (ASM_SPEC): Likewise.
29239         * config/i386/sol2-10.h (ASM_SPEC): Likewise.
29240         * config/m68k/linux.h (ASM_SPEC): Likewise.
29241         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
29242         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
29243         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
29244         * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
29245         * config/sparc/linux.h (ASM_SPEC): Likewise.
29246         * config/sparc/linux64.h (ASM_SPEC): Likewise.
29247         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
29248         * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
29249
29250 2011-01-26  Steve Ellcey  <sje@cup.hp.com>
29251
29252         PR target/46997
29253         * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
29254         (*mux2): Ditto.
29255         (vec_extract_evenodd_help): Ditto.
29256         (vec_extract_evenv4hi): Ditto.
29257         (vec_extract_oddv4hi): Ditto.
29258         (vec_interleave_lowv2si): Ditto.
29259         (vec_interleave_highv2si): Ditto.
29260         (vec_extract_evenv2si): Ditto.
29261         (vec_extract_oddv2si: Ditto.
29262         (vec_pack_trunc_v2si): Ditto.
29263
29264 2011-01-22  Jan Hubicka  <jh@suse.cz>
29265
29266         PR target/47237
29267         * cgraph.h (cgraph_local_info): New field can_change_signature.
29268         * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
29269         signature can change.
29270         (ipcp_estimate_growth): Call sequence simplify only if calle signature
29271         can change.
29272         (ipcp_insert_stage): Only compute args_to_skip if signature can change.
29273         (cgraph_function_versioning): We can not change signature of functions
29274         that don't allow that.
29275         * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
29276         (lto_input_node): Likewise.
29277         * ipa-inline.c (compute_inline_parameters): Compute
29278         local.can_change_signature.
29279         * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
29280         * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
29281         functions that can not change signature.
29282         * i386.c (ix86_function_regparm, ix86_function_sseregparm,
29283         init_cumulative_args): Do not use local calling conventions
29284         for functions that can not change signature.
29285
29286 2011-01-22  Jan Hubicka  <jh@suse.cz>
29287
29288         * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
29289
29290 2011-01-26  Richard Guenther  <rguenther@suse.de>
29291
29292         PR tree-optimization/47190
29293         * cgraphunit.c (process_common_attributes): New function.
29294         (process_function_and_variable_attributes): Use it.
29295
29296 2011-01-26  Richard Guenther  <rguenther@suse.de>
29297
29298         PR lto/47423
29299         * cgraphbuild.c (record_eh_tables): Record reference to personality
29300         function.
29301
29302 2011-01-26  Alexandre Oliva  <aoliva@redhat.com>
29303
29304         PR debug/45454
29305         * sel-sched.c (moveup_expr): Don't let debug insns prevent
29306         non-debug insns from moving up.
29307
29308 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
29309
29310         PR target/40125
29311         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
29312         t-dlldir{,-x} fragment for build and add it to tmake_file.
29313         (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
29314         * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
29315         * config/i386/t-dlldir: New file.
29316         (SHLIB_DLLDIR): Define.
29317         * config/i386/t-dlldir-x: New file.
29318         (SHLIB_DLLDIR): Define.
29319         * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
29320         (SHLIB_INSTALL): Use it.
29321
29322 2011-01-26  Chung-Lin Tang  <cltang@codesourcery.com>
29323
29324         PR target/47246
29325         * config/arm/arm.c (thumb2_legitimate_index_p): Change the
29326         lower bound of the allowed Thumb-2 coprocessor load/store
29327         index range to -256. Add explaining comment.
29328
29329 2011-01-25  Ian Lance Taylor  <iant@google.com>
29330
29331         * godump.c (go_define): Improve lexing of macro expansion to only
29332         accept expressions which match Go spec.
29333
29334 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
29335
29336         PR c++/43601
29337         * tree.c (handle_dll_attribute): Handle it.
29338         * doc/extend.texi (@item dllexport): Mention it.
29339         * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
29340
29341 2011-01-25  Ian Lance Taylor  <iant@google.com>
29342
29343         PR tree-optimization/26854
29344         * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
29345         (decl_jump_unsafe): Move higher in file, with no other change.
29346         (bind): Set has_jump_unsafe_decl if appropriate.
29347         (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
29348         (check_earlier_gotos): Likewise.
29349         (c_check_switch_jump_warnings): Likewise.
29350
29351 2011-01-25  Jonathan Wakely  <jwakely.gcc@gmail.com>
29352
29353         * doc/invoke.texi (Warning Options): Add missing hyphen.
29354         (-fprofile-dir): Minor grammatical fixes.
29355         (-fbranch-probabilities): Likewise.
29356
29357 2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
29358
29359         PR debug/45136
29360         PR debug/45130
29361         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
29362         debug insns.
29363         (no_real_insns_p, schedule_block, set_priorities): Drop special
29364         treatment of boundary debug insns.
29365         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
29366         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
29367         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
29368         (BOUNDARY_DEBUG_INSN_P): Likewise.
29369         (SCHEDULE_DEBUG_INSN_P): Likewise.
29370         * sched-rgn.c (init_ready_list): Drop special treatment of
29371         boundary debug insns.
29372         * final.c (rest_of_clean-state): Clear notes' BB.
29373
29374 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
29375
29376         * Makefile.in (LAMBDA_H): Removed.
29377         (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
29378         (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
29379         lambda-trans.o, and tree-loop-linear.o.
29380         (lto-symtab.o): Remove dependence on LAMBDA_H.
29381         (tree-loop-linear.o): Remove rule.
29382         (lambda-mat.o): Same.
29383         (lambda-trans.o): Same.
29384         (lambda-code.o): Same.
29385         (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
29386         (tree-vect-slp.o): Same.
29387         * hwint.h (gcd): Moved here.
29388         (least_common_multiple): Same.
29389         * lambda-code.c: Removed.
29390         * lambda-mat.c: Removed.
29391         * lambda-trans.c: Removed.
29392         * lambda.h: Removed.
29393         * tree-loop-linear.c: Removed.
29394         * lto-symtab.c: Do not include lambda.h.
29395         * omega.c (gcd): Removed.
29396         * passes.c (init_optimization_passes): Remove pass_linear_transform.
29397         * tree-data-ref.c (print_lambda_vector): Moved here.
29398         (lambda_vector_copy): Same.
29399         (lambda_matrix_copy): Same.
29400         (lambda_matrix_id): Same.
29401         (lambda_vector_first_nz): Same.
29402         (lambda_matrix_row_add): Same.
29403         (lambda_matrix_row_exchange): Same.
29404         (lambda_vector_mult_const): Same.
29405         (lambda_vector_negate): Same.
29406         (lambda_matrix_row_negate): Same.
29407         (lambda_vector_equal): Same.
29408         (lambda_matrix_right_hermite): Same.
29409         * tree-data-ref.h: Do not include lambda.h.
29410         (lambda_vector): Moved here.
29411         (lambda_matrix): Same.
29412         (dependence_level): Same.
29413         (lambda_transform_legal_p): Removed declaration.
29414         (lambda_collect_parameters): Same.
29415         (lambda_compute_access_matrices): Same.
29416         (lambda_vector_gcd): Same.
29417         (lambda_vector_new): Same.
29418         (lambda_vector_clear): Same.
29419         (lambda_vector_lexico_pos): Same.
29420         (lambda_vector_zerop): Same.
29421         (lambda_matrix_new): Same.
29422         * tree-flow.h (least_common_multiple): Removed declaration.
29423         * tree-parloops.c (lambda_trans_matrix): Moved here.
29424         (LTM_MATRIX): Same.
29425         (LTM_ROWSIZE): Same.
29426         (LTM_COLSIZE): Same.
29427         (LTM_DENOMINATOR): Same.
29428         (lambda_trans_matrix_new): Same.
29429         (lambda_matrix_vector_mult): Same.
29430         (lambda_transform_legal_p): Same.
29431         * tree-pass.h (pass_linear_transform): Removed declaration.
29432         * tree-ssa-loop.c (tree_linear_transform): Removed.
29433         (gate_tree_linear_transform): Removed.
29434         (pass_linear_transform): Removed.
29435         (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
29436         flag_loop_interchange.
29437
29438 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
29439
29440         PR tree-optimization/47265
29441         PR tree-optimization/47443
29442         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
29443         if name still has some uses.
29444
29445 2011-01-25  Martin Jambor  <mjambor@suse.cz>
29446
29447         PR tree-optimization/47382
29448         * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
29449         (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
29450
29451 2011-01-25  Joel Sherrill  <joel.sherrill@oarcorp.com>
29452
29453         * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
29454         sjlj_except_unwind_info.
29455
29456 2011-01-25  Richard Guenther  <rguenther@suse.de>
29457
29458         PR tree-optimization/47426
29459         * tree-ssa-structalias.c (ipa_pta_execute): Make externally
29460         visible functions results escape.
29461
29462 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
29463
29464         PR target/45701
29465         * config/arm/arm.c (any_sibcall_uses_r3): New function.
29466         (arm_get_frame_offsets): Use it.
29467
29468 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
29469             Jakub Jelinek  <jakub@redhat.com>
29470
29471         PR tree-optimization/47271
29472         * tree-if-conv.c (bb_postdominates_preds): New.
29473         (if_convertible_bb_p): Call bb_postdominates_preds.
29474         (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
29475         (predicate_scalar_phi): Call bb_postdominates_preds.
29476
29477 2011-01-25  Nick Clifton  <nickc@redhat.com>
29478
29479         * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
29480         * config/rx/rx.c (rx_function_value): Likewise.
29481         (rx_promote_function_mode): Likewise.
29482         (gen_safe_add): Place an outsized immediate value inside an UNSPEC
29483         in order to make it legitimate.
29484         * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
29485         make sure that the first operand is the same as the result register.
29486         (addsi3_unspec): Delete.
29487         (subdi3): Do not accept immediate operands.
29488         (subdi3_internal): Likewise.
29489
29490 2011-01-25  Jeff Law  <law@redhat.com>
29491
29492         PR rtl-optimization/37273
29493         * ira-costs.c (scan_one_insn): Detect constants living in memory and
29494         handle them like argument loads from stack slots.  Do not double
29495         count memory for memory constants and argument loads from stack slots.
29496
29497 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
29498
29499         PR tree-optimization/47427
29500         PR tree-optimization/47428
29501         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
29502         coalesce if the new root var would be TREE_READONLY.
29503
29504 2011-01-25  Richard Guenther  <rguenther@suse.de>
29505
29506         PR middle-end/47414
29507         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
29508         correct type for TBAA.
29509
29510 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
29511
29512         * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
29513         (close_phi_written_to_memory): Call for_each_index with
29514         dr_indices_valid_in_loop.
29515
29516 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
29517
29518         * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
29519         when it is initialized.
29520
29521 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
29522
29523         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
29524         call to graphite_find_data_references_in_stmt.
29525         * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
29526         (try_generate_gimple_bb): Call outermost_loop_in_sese_1.  Update
29527         call to graphite_find_data_references_in_stmt.
29528         (analyze_drs_in_stmts): Same.
29529         * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
29530         in which the scalar analysis of indices is performed.
29531         (create_data_ref): Same.  Update call to dr_analyze_indices.
29532         (find_data_references_in_stmt): Update call to create_data_ref.
29533         (graphite_find_data_references_in_stmt): Same.
29534         * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
29535         declaration.
29536         (create_data_ref): Same.
29537         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
29538         call to create_data_ref.
29539
29540 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
29541
29542         * graphite-sese-to-poly.c (build_poly_scop): Move
29543         rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
29544
29545 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
29546
29547         * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
29548         VAR_DECL, PARM_DECL, and RESULT_DECL.
29549
29550 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
29551
29552         * graphite-dependences.c (reduction_dr_1): Allow several reductions
29553         in a reduction PBB.
29554         * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
29555         that have already been marked as PBB_IS_REDUCTION.
29556
29557 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
29558
29559         * graphite-scop-detection.c (same_close_phi_node): New.
29560         (remove_duplicate_close_phi): New.
29561         (make_close_phi_nodes_unique): New.
29562         (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
29563
29564 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
29565
29566         * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
29567         * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
29568         of both data references to be the same.
29569
29570 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
29571
29572         * graphite-dependences.c (build_lexicographical_constraint): Remove
29573         the gdim parameter.
29574         (build_lexicographical_constraint): Adjust call to
29575         ppl_powerset_is_empty.
29576         (dependence_polyhedron): Same.
29577         (graphite_legal_transform_dr): Same.
29578         (graphite_carried_dependence_level_k): Same.
29579         * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
29580         parameter.
29581         * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
29582
29583 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
29584
29585         * graphite-sese-to-poly.c
29586         (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
29587         (close_phi_written_to_memory): New.
29588         (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
29589         and unshare_expr.
29590
29591 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
29592
29593         * doc/install.texi: Update the expected version number of PPL to 0.11.
29594         * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
29595         #if PPL_VERSION_MINOR < 11.
29596
29597 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
29598
29599         * graphite-dependences.c: Include graphite-cloog-util.h.
29600         (new_poly_ddr): Inlined into dependence_polyhedron.
29601         (free_poly_ddr): Moved close by new_poly_ddr.
29602         (dependence_polyhedron_1): Renamed dependence_polyhedron.
29603         Early return NULL when ppl_powerset_is_empty returns true.
29604         (dependence_polyhedron): Renamed new_poly_ddr.  Call only once
29605         poly_drs_may_alias_p.  Avoid one call to ppl_powerset_is_empty.
29606         (graphite_legal_transform_dr): Call new_poly_ddr.
29607         (graphite_carried_dependence_level_k): Same.
29608         (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2.  Use new_poly_ddr.
29609         (dot_transformed_deps_stmt_1): Removed.
29610         (dot_deps_stmt_1): Call dot_deps_stmt_2.
29611         (dot_original_deps): Renamed dot_deps_2.  Call new_poly_ddr.
29612         (dot_deps_1): Call dot_deps_2.
29613         * Makefile.in (graphite-dependences.o): Add missing dependence on
29614         graphite-cloog-util.h.
29615
29616 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
29617
29618         * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
29619         (build_lexicographical_constraint): Same.
29620         (dependence_polyhedron_1): Same.
29621         (graphite_legal_transform_dr): Same.
29622         (graphite_carried_dependence_level_k): Same.
29623         * graphite-ppl.c (ppl_powerset_is_empty): New.
29624         * graphite-ppl.h (ppl_powerset_is_empty): Declared.
29625         * tree-data-ref.c (dump_data_reference): Print the basic block index.
29626
29627 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
29628
29629         * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
29630         the "a followed by b" relation and document it.
29631
29632 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
29633
29634         * graphite-dependences.c (build_lexicographical_constraint): Stop the
29635         iteration when the bag of constraints is empty.
29636
29637 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
29638
29639         * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
29640
29641 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
29642
29643         * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
29644         nest and two loop depths as parameters.
29645         (lst_try_interchange_loops): Call lst_interchange_profitable_p after
29646         lst_perfect_nestify.
29647
29648 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
29649
29650         * graphite-dependences.c (print_pddr): Call
29651         ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
29652
29653 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
29654
29655         * graphite-ppl.c (debug_gmp_value): New.
29656         * graphite-ppl.h (debug_gmp_value): Declared.
29657
29658 2011-01-25  Tobias Grosser  <grosser@fim.uni-passau.de>
29659
29660         * doc/install.texi: Document availability of cloog-0.16.
29661
29662 2011-01-25  Vladimir Kargov  <kargov@gmail.com>
29663
29664         * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
29665         invalid postdominance info.
29666
29667 2011-01-24  Jan Hubicka  <jh@suse.cz>
29668
29669         PR c/21659
29670         * doc/extend.texi (weak pragma): Drop claim that it must
29671         appear before definition.
29672         * varasm.c (merge_weak, declare_weak): Only sanity check
29673         that DECL is not output at a time it is declared weak.
29674
29675 2011-01-24  Kenneth Zadeck  <zadeck@naturalbridge.com>
29676
29677         * machmode.def: Fixed comments.
29678
29679 2011-01-24  Kai Tietz  <kai.tietz@onevision.com>
29680
29681         * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
29682
29683 2011-01-24  Paul Koning  <ni1d@arrl.net>
29684
29685         * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
29686         WORDS_BIG_ENDIAN.
29687
29688 2011-01-24  H.J. Lu  <hongjiu.lu@intel.com>
29689
29690         PR target/46519
29691         * config/i386/i386.c: Include sbitmap.h and fibheap.h.
29692         (block_info): Add scanned and prev.
29693         (move_or_delete_vzeroupper_2): Return if the basic block
29694         has been scanned and the upper 128bit state is unchanged
29695         from the last scan.
29696         (move_or_delete_vzeroupper_1): Return true if the exit
29697         state is changed.
29698         (move_or_delete_vzeroupper): Visit basic blocks using the
29699         work-list based algorithm based on vt_find_locations in
29700         var-tracking.c.
29701
29702         * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
29703
29704 2011-01-24  Nick Clifton  <nickc@redhat.com>
29705
29706         * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
29707         * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
29708         -mv850e1 to the assembler.  If -mv850e1 or -mv850es is specified
29709         then define __v850e1__.
29710         * doc/invoke.texi: Document -mv850es.
29711
29712 2011-01-24  Richard Henderson  <rth@redhat.com>
29713
29714         * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
29715         compound unordered comparisons.
29716         * config/rx/rx.c (rx_split_fp_compare): Remove.
29717         * config/rx/rx-protos.h: Update.
29718         * config/rx/rx.md (gcc_conds, rx_conds): Remove.
29719         (cbranchsf4): Don't call rx_split_fp_compare.
29720         (*cbranchsf4): Use rx_split_cbranch.
29721         (*cmpsf): Don't accept "i" constraint.
29722         (*conditional_branch): Only valid after reload.
29723         (cstoresf4): Merge expander with insn.  Don't call rx_split_fp_compare.
29724
29725 2011-01-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
29726
29727         PR target/47385
29728         * config/rs6000/altivec.md (vector constant splitters): Add
29729         support for creating vector single precision constants if -mvsx is
29730         used and we would create the constant using Altivec primitives.
29731
29732 2011-01-23  Bernd Schmidt  <bernds@codesourcery.com>
29733             Richard Sandiford  <rdsandiford@googlemail.com>
29734
29735         PR rtl-optimization/47166
29736         * reload1.c (emit_reload_insns): Disable the spill_reg_store
29737         mechanism for PRE_MODIFY and POST_MODIFY.
29738         (inc_for_reload): For PRE_MODIFY, return the insn that sets the
29739         reloadreg.
29740
29741 2011-01-23  Andreas Schwab  <schwab@linux-m68k.org>
29742
29743         * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
29744
29745 2011-01-22  Jan Hubicka  <jh@suse.cz>
29746
29747         PR lto/47333
29748         * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
29749
29750 2011-01-22  Jan Hubicka  <jh@suse.cz>
29751
29752         PR tree-optimization/43884
29753         PR lto/44334
29754         * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
29755         * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
29756
29757 2011-01-22  Anatoly Sokolov  <aesok@post.ru>
29758
29759         * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
29760         * config/s390/s390.c (s390_register_move_cost,
29761         s390_memory_move_cost): New.
29762         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
29763
29764 2011-01-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
29765
29766         PR middle-end/47401
29767         * except.c (sjlj_assign_call_site_values): Move setting the
29768         crtl->uses_eh_lsda flag to ...
29769         (sjlj_mark_call_sites): ... here.
29770         (sjlj_emit_function_enter): Support NULL dispatch label.
29771         (sjlj_build_landing_pads): In a function with no landing pads
29772         that still has must-not-throw regions, generate code to register
29773         a personality function with empty LSDA.
29774
29775 2011-01-21  Richard Henderson  <rth@redhat.com>
29776
29777         * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
29778
29779         * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
29780
29781         * compare-elim.c: New file.
29782         * Makefile.in (OBJS-common): Add it.
29783         (compare-elim.o): New.
29784         * common.opt (fcompare-elim): New.
29785         * opts.c (default_options_table): Add OPT_fcompare_elim.
29786         * tree-pass.h (pass_compare_elim_after_reload): New.
29787         * passes.c (init_optimization_passes): Add it.
29788         * recog.h: Protect against re-inclusion.
29789         * target.def (TARGET_FLAGS_REGNUM): New POD hook.
29790         * doc/invoke.texi (-fcompare-elim): Document it.
29791         * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
29792         * doc/tm.texi: Rebuild.
29793
29794 2011-01-22  Nick Clifton  <nickc@redhat.com>
29795
29796         * config/rx/rx.md (cstoresf4): Pass comparison operator to
29797         rx_split_fp_compare.
29798
29799 2011-01-22  Nick Clifton  <nickc@redhat.com>
29800
29801         * config/rx/rx.md (UNSPEC_CONST): New.
29802         (deallocate_and_return): Wrap the amount popped off the stack in
29803         an UNSPEC_CONST in order to stop it being rejected by
29804         -mmax-constant-size.
29805         (pop_and_return): Add a "(return)" rtx.
29806         (call): Drop the immediate operand.
29807         (call_internal): Likewise.
29808         (call_value): Likewise.
29809         (call_value_internal): Likewise.
29810         (sibcall_internal): Likewise.
29811         (sibcall_value_internal): Likewise.
29812         (sibcall): Likewise.  Generate an explicit call using
29813         sibcall_internal.
29814         (sibcall_value): Likewise.
29815         (mov<>): FAIL if a constant operand is not legitimate.
29816         (addsi3_unpsec): New pattern.
29817
29818         * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
29819         (ok_for_max_constant): New function.
29820         (gen_safe_add): New function.
29821         (rx_expand_prologue): Use gen_safe_add.
29822         (rx_expand_epilogue): Likewise.
29823         (rx_is_legitimate_constant): Use ok_for_max_constant.  Handle
29824         UNSPEC CONSTs.
29825
29826 2011-01-21  Jeff Law  <law@redhat.com>
29827
29828         PR tree-optimization/47053
29829         * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
29830         (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
29831         statements are deleted.
29832         (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP.  If NEED_EH_CLEANUP
29833         is nonempty, then purge dead edges and cleanup the CFG.
29834
29835 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
29836
29837         PR debug/47402
29838         Temporarily revert:
29839         2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
29840         PR debug/47106
29841         * tree-dfa.c (create_var_ann): Mark variable as used.
29842
29843 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
29844
29845         PR middle-end/45566
29846         * except.c (convert_to_eh_region_ranges): Emit queued no-region
29847         notes from other section in hot/cold partitioning even if
29848         last_action is -3.  Increment call_site_base.
29849
29850         PR rtl-optimization/47366
29851         * fwprop.c (forward_propagate_into): Return bool.  If
29852         any changes are made, -fnon-call-exceptions is used and
29853         REG_EH_REGION note is present, call purge_dead_edges
29854         and return true if it purged anything.
29855         (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
29856         any EH edges were purged.
29857
29858 2011-01-21  Jeff Law  <law@redhat.com>
29859
29860         PR rtl-optimization/41619
29861         * caller-save.c (setup_save_areas): Break out code to determine
29862         which hard regs are live across calls by examining the reload chains
29863         so that it is always used.
29864         Eliminate code which checked REG_N_CALLS_CROSSED.
29865
29866 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
29867
29868         PR tree-optimization/47355
29869         * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
29870         NOP has non-debug uses beyond PHIs in new_bb.
29871
29872 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
29873
29874         PR debug/47106
29875         * cfgexpand.c (account_used_vars_for_block): Only account vars
29876         that are annotated as used.
29877         (estimated_stack_frame_size): Don't set TREE_USED.
29878         * tree-dfa.c (create_var_ann): Mark variable as used.
29879
29880 2011-01-21  Richard Guenther  <rguenther@suse.de>
29881
29882         PR middle-end/47395
29883         * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
29884
29885 2011-01-21  Richard Guenther  <rguenther@suse.de>
29886
29887         PR tree-optimization/47365
29888         * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
29889         (vn_reference_lookup_pieces): Adjust.
29890         (vn_reference_lookup): Likewise.
29891         * tree-ssa-sccvn.c (vn_walk_kind): New static global.
29892         (vn_reference_lookup_3): Only look through kills if in
29893         VN_WALKREWRITE mode.
29894         (vn_reference_lookup_pieces): Adjust.
29895         (vn_reference_lookup): Likewise.
29896         (visit_reference_op_load): Likewise.
29897         (visit_reference_op_store): Likewise.
29898         * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
29899         (compute_avail): Likewise.
29900         (eliminate): Likewise.
29901
29902 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
29903
29904         * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
29905         DECL_IGNORED_P non-reg vars if they are used.
29906
29907         PR tree-optimization/47391
29908         * varpool.c (const_value_known_p): Return false if
29909         decl is volatile.
29910
29911 2011-01-21  Kai Tietz  <kai.tietz@onevision.com>
29912
29913         PR bootstrap/47215
29914         * config/i386/i386.c (ix86_local_alignment): Handle
29915         case for va_list_type_node is nil.
29916         (ix86_canonical_va_list_type): Likewise.
29917
29918 2011-01-21  Alan Modra  <amodra@gmail.com>
29919
29920         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
29921         builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
29922
29923 2011-01-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
29924
29925         * config/arm/arm.md (define_attr type): Rename f_load
29926         and f_store to f_fpa_load and f_fpa_store. Update.
29927         (write_conflict): Deal with rename fallout.
29928         (*push_fp_multi): Likewise.
29929         * config/arm/fpa.md (f_load): Use f_fpa_load.
29930         (f_store): Use f_fpa_store.
29931         (*movsf_fpa): Likewise.
29932         (*movdf_fpa): Likewise.
29933         (*movxf_fpa): Likewise.
29934         (*thumb2_movsf_fpa): Likewise.
29935         (*thumb2_movdf_fpa): Likewise.
29936         (*thumb2_movxf_fpa): Likewise.
29937         * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
29938         f_loadd and f_stored.
29939         (*thumb2_movdi_vfp): Likewise.
29940         (*thumb2_movsf_vfp): Fix attribute to f_loads.
29941         (*thumb2_movsi_vfp): Likewise.
29942         * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
29943         Use f_loads instead of f_load.
29944         * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
29945
29946 2011-01-20  Anatoly Sokolov  <aesok@post.ru>
29947
29948         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
29949         * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
29950         * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
29951         (xtensa_mode_dependent_address_p): New function.
29952         (constantpool_address_p): Make static. Change return type to bool.
29953         Change argument type to const_rtx. Use CONST_INT_P predicate.
29954
29955 2011-01-20  Alexandre Oliva  <aoliva@redhat.com>
29956
29957         PR debug/46583
29958         * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
29959
29960 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
29961
29962         PR debug/47283
29963         * cfgexpand.c (expand_debug_expr): Instead of generating
29964         (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
29965         etc. handling.
29966
29967 2011-01-20  Richard Guenther  <rguenther@suse.de>
29968
29969         PR middle-end/47370
29970         * tree-inline.c (remap_gimple_op_r): Recurse manually for
29971         the pointer operand of MEM_REFs.
29972
29973 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
29974
29975         PR tree-optimization/46130
29976         * ipa-split.c (consider_split): If return_bb contains non-virtual
29977         PHIs other than for retval or if split_function would not adjust it,
29978         refuse to split.
29979
29980 2011-01-20  Richard Guenther  <rguenther@suse.de>
29981
29982         PR tree-optimization/47167
29983         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
29984         Revert previous change, only avoid enumeral type changes.
29985
29986 2011-01-19  Mike Stump  <mikestump@comcast.net>
29987
29988         * doc/tm.texi.in (BRANCH_COST): Englishify.
29989         * doc/tm.texi (BRANCH_COST): Likewise.
29990
29991 2011-01-19  Dodji Seketeli  <dodji@redhat.com>
29992
29993         PR c++/47291
29994         * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
29995         (gen_scheduled_generic_parms_dies): New functions.
29996         (gen_struct_or_union_type_die): Schedule template parameters DIEs
29997         generation for the end of CU compilation.
29998         (dwarf2out_finish): Generate template parameters DIEs here.
29999
30000 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
30001
30002         PR debug/46240
30003         * tree-into-ssa.c (maybe_register_def): Do not attempt to add
30004         debug bind stmt on merge edges.
30005
30006 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
30007
30008         PR debug/47079
30009         PR debug/46724
30010         * function.c (instantiate_expr): Instantiate incoming rtl of
30011         implicit arguments, and recurse on VALUE_EXPRs.
30012         (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
30013         * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
30014
30015 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
30016
30017         * c-parser.c (c_parser_for_statement): Initialize
30018         collection_expression.
30019
30020 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
30021
30022         * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
30023
30024 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
30025
30026         * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
30027         (LINK_SHLIB_SPEC): Don't use %(link_path).
30028         (SUBTARGET_EXTRA_SPECS): Remove link_path.
30029
30030 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
30031
30032         * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
30033         (NO_SHARED_LIB_SUPPORT): Remove.
30034         (LINK_SHLIB_SPEC): Remove one conditional definition.
30035
30036 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
30037
30038         * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
30039         %{call_shared}.
30040         * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
30041         * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
30042         * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
30043         %{call_shared} and conditionals on these options not being passed.
30044         * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
30045         %{call_shared}.
30046
30047 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
30048
30049         * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
30050         simplify.
30051
30052         * ipa-split.c: Spelling fixes.
30053
30054 2011-01-19  Richard Henderson  <rth@redhat.com>
30055
30056         * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
30057         (*mulsi3): Likewise.
30058
30059         * longlong.h [__mn10300__] (count_leading_zeros): New.
30060         [__mn10300__] (umul_ppmm, smul_ppmm): New.
30061         [__mn10300__] (add_ssaaaa, subddmmss): New.
30062         [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
30063         [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
30064
30065 2011-01-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
30066
30067         * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
30068
30069 2011-01-19  Richard Henderson  <rth@redhat.com>
30070
30071         * config/mn10300/mn10300.md (addsi3_flags): New.
30072         (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
30073         (subsi3_flags, subc_internal, subdi3): New.
30074         (subdi3_internal, *subdi3_degenerate): New.
30075         * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
30076
30077         * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
30078         (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
30079         (mn10300_expand_epilogue): Use it.  Compute REG_SAVE_BYTES once.
30080         * config/mn10300/mn10300-protos.h: Update.
30081         * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
30082         (return_ret): Likewise.  Rename from return_internal_regs.
30083         (return_internal): Remove.
30084
30085         * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
30086         (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
30087         (mn10300_legitimate_constant_p): Likewise.
30088         (mn10300_can_use_return_insn): Use mn10300_initial_offset.
30089         (mn10300_frame_size): New.
30090         (mn10300_expand_prologue): Use it.
30091         (mn10300_expand_epilogue): Likewise.
30092         (mn10300_initial_offset): Likewise.
30093         * config/mn10300/mn10300-protos.h: Update.
30094         * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
30095         * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
30096         (prologue, epilogue, return_internal): Tidy output code.
30097         (mn10300_store_multiple_operation, return): Likewise.
30098         (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
30099         (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
30100         (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
30101         (load_pic, am33_load_pic): New.
30102         (mn10300_load_pic0, mn10300_load_pic1): New.
30103
30104         * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
30105         * config/mn10300/mn10300.c (CC_FLAG_Z): New.
30106         (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
30107         (cc_flags_for_mode, cc_flags_for_code): New.
30108         (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
30109         overflow flag is not valid.  Validate that the flags we need
30110         for the comparison are valid.
30111         (mn10300_output_cmp): Remove.
30112         (mn10300_output_add): New.
30113         (mn10300_select_cc_mode): Use cc_flags_for_code.
30114         (mn10300_split_cbranch): New.
30115         (mn10300_match_ccmode): New.
30116         (mn10300_split_and_operand_count): New.
30117         * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
30118         to the function.
30119         * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
30120         (addsi3): ... here.  Use mn10300_output_add.
30121         (*addsi3_flags): New.
30122         (*am33_subsi3, *mn10300_subsi3): Merge...
30123         (subsi3): ... here.  Use attribute isa.
30124         (*subsi3_flags): New.
30125         (negsi2): Rewrite from expander to insn_and_split.  Use NOT+INC
30126         when possible.
30127         (*am33_andsi3, *mn10300_andsi3): Merge...
30128         (andsi3): ... here.
30129         (*andsi3_flags): New.
30130         (andsi3 splitters): New.
30131         (*am33_iorsi3, *mn10300_iorsi3): Merge...
30132         (iorsi3): ... here.
30133         (*iorsi3_flags): New.
30134         (*am33_xorsi3, *mn10300_xorsi3): Merge...
30135         (xorsi3): ... here.
30136         (*xorsi3_flags): New.
30137         (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
30138         (one_cmplsi2): ... here.
30139         (*one_cmplsi2_flags): New.
30140         (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload.  Use "r"
30141         instead of "dax" in constraints.  Use mn10300_split_cbranch.
30142         (*cmpsi): Rename from cmpsi.  Do not use mn10300_output_cmp.  Do not
30143         use matching constraints to eliminate a self-comparison.
30144         (*integer_conditional_branch): Rename from integer_conditional_branch.
30145         Use int_mode_flags to match CC_REG.
30146         (*cbranchsi4_btst, *btstsi): New.
30147         (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload.  Use
30148         mn10300_split_cbranch.
30149         (*am33_cmpsf): Rename from am33_cmpsf.
30150         (*float_conditional_branch): Rename from float_conditional_branch.
30151         (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
30152         (zero_extendqisi2): ... here.
30153         (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
30154         (zero_extendhisi2): ... here.
30155         (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
30156         (extendqisi2): ... here.
30157         (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
30158         (extendhisi2): ... here.
30159         (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
30160         (ashlsi3): ... here.
30161         (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
30162         (lshrsi3): ... here.
30163         (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
30164         (ashrsi3): ... here.
30165         (consecutive add peephole): Remove.
30166         * config/mn10300/predicates.md (label_ref_operand): New.
30167         (int_mode_flags): New.
30168         (CCZN_comparison_operator): New.
30169
30170         * config/mn10300/mn10300.md (UNSPEC_EXT): New.
30171         (throughput_42_latency_43): New reservation.
30172         (mulsidi3, umulsidi3): New expanders.
30173         (mulsidi3_internal): Rewrite from old mulsidi3 pattern.  Expose
30174         the MDR register to allocation; separately allocate the low and
30175         high parts of the DImode result.
30176         (umulsidi3_internal): Similarly.
30177         (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
30178         (*mulsi3): ... here.  Clobber MDR as a scratch as necessary.
30179         (udivsi3, umodsi3): Remove.
30180         (udivmodsi4, divmodsi4): New expanders.
30181         (*udivmodsi4): Rename from udivmodsi4.  Expose MDR properly.
30182         (*divmodsi4): Simiarly.
30183         (ext_internal): New.
30184
30185         * config/mn10300/constraints.md ("z"): New constraint.
30186         * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
30187         (FIXED_REGISTERS): Don't fix MDR.
30188         (CALL_USED_REGSITERS): Reformat nicely.
30189         (REG_ALLOC_ORDER): Add MDR.
30190         (enum regclass): Add MDR_REGS.
30191         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
30192         (IRA_COVER_CLASSES): Add MDR_REGS.
30193         (REGNO_REG_CLASS): Handle MDR_REG.
30194         * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
30195         (mn10300_register_move_cost): Likewise.
30196         * config/mn10300/mn10300.md (MDR_REG): New.
30197         (*movsi_internal): Handle moves to/from MDR_REGS.
30198
30199         * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
30200         POST_MODIFY.
30201         (mn10300_secondary_reload): Tidy combination reload classes.
30202         (mn10300_legitimate_address_p): Allow post-modify and reg+reg
30203         addresses for AM33.  Allow symbolic offsets for reg+imm.
30204         (mn10300_regno_in_class_p): New.
30205         (mn10300_legitimize_reload_address): New.
30206         * config/mn10300/mn10300.h (enum reg_class): Remove
30207         DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
30208         SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS.  Add
30209         SP_OR_GENERAL_REGS.
30210         (REG_CLASS_NAMES): Update to match.
30211         (REG_CLASS_CONTENTS): Likewise.
30212         (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
30213         (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
30214         (REGNO_IN_RANGE_P): Remove.
30215         (REGNO_DATA_P): Use mn10300_regno_in_class_p.
30216         (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
30217         (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
30218         (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
30219         (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
30220         (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
30221         (REGNO_GENERAL_P): New.
30222         (HAVE_POST_MODIFY_DISP): New.
30223         (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
30224         (LEGITIMIZE_RELOAD_ADDRESS): New.
30225         * config/mn10300/mn10300-protos.h: Update.
30226
30227         * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
30228         DATA_REGS for AM33 stack-pointer destination.
30229         (mn10300_preferred_output_reload_class): Likewise.
30230         (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
30231         into a form appropriate for ...
30232         (TARGET_SECONDARY_RELOAD): New.
30233         * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
30234         * config/mn10300/mn10300-protos.h: Update.
30235         * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
30236         reload_insi; use the "A" constraint for the scratch; handle AM33
30237         moves of sp to non-address registers.
30238
30239         * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
30240         (*movqi_internal): ... here.
30241         (*am33_movhi, *mn10300_movhi): Merge into...
30242         (*movhi_internal): ... here.
30243         (*movsi_internal): Use "r" instead of "dax" in constraints.  Use "A"
30244         as the source/destination of moves from/to SP.
30245         (movsf): Only allow for AM33-2.
30246         (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
30247         any integer constant constraint.  Only allow for AM33-2.  Tidy
30248         all of the alternative outputs.
30249         (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
30250         (udivmodsi4): Delete expander and promote *udivmodsi4.  Disallow
30251         for MN103.
30252         (udivsi3, umodsi3): New patterns for MN103 only.
30253
30254 2011-01-19  Joern Rennecke  <amylaar@spamcop.net>
30255
30256         * doc/tm.texi.in: Spell out that a lack of register class unions
30257         can lead to ICEs.
30258         * doc/tm.texi: Regenerate.
30259
30260 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
30261
30262         PR rtl-optimization/47337
30263         * dce.c (check_argument_store): New function.
30264         (find_call_stack_args): Ignore debug insns.  Use check_argument_store.
30265
30266         PR tree-optimization/47290
30267         * tree-eh.c (infinite_empty_loop_p): New function.
30268         (cleanup_empty_eh): Use it.
30269
30270 2011-01-18  Steve Ellcey  <sje@cup.hp.com>
30271
30272         PR target/46997
30273         * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
30274         (a64_expand_widen_sum): Ditto.
30275         * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
30276         (vec_extract_evenodd_help): Ditto.
30277         (vec_extract_evenv4hi): Ditto.
30278         (vec_extract_oddv4hi): Ditto.
30279         (vec_extract_evenv2si): Ditto.
30280         (vec_extract_oddv2si): Ditto.
30281         (vec_extract_evenv2sf): Ditto.
30282         (vec_extract_oddv2sf): Ditto.
30283         (vec_pack_trunc_v4hi: Ditto.
30284         (vec_pack_trunc_v2si): Ditto.
30285         (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
30286         (vec_interleave_highv8qi): Ditto.
30287         (mix1_r): Ditto.
30288         (vec_extract_oddv8qi): Ditto.
30289         (vec_interleave_lowv4hi): Ditto.
30290         (vec_interleave_highv4hi): Ditto.
30291         (vec_interleave_lowv2si): Ditto.
30292         (vec_interleave_highv2si): Ditto.
30293
30294 2011-01-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
30295
30296         * doc/extend.texi: Mention __float128 support on hppa HP-UX.
30297         * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
30298         * config/pa/pa.c (pa_expand_builtin): New.  Include "langhooks.h".
30299         (pa_c_mode_for_suffix): New.
30300         (TARGET_EXPAND_BUILTIN): Define.
30301         (TARGET_C_MODE_FOR_SUFFIX): Define.
30302         (pa_builtins): Define.
30303         (pa_init_builtins): Register __float128 type and init new support
30304         builtins.
30305         * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
30306         * config/pa/quadlib.c (_U_Qfcopysign): New.
30307
30308 2011-01-18  Eric Botcazou  <ebotcazou@adacore.com>
30309
30310         PR middle-end/46894
30311         * explow.c (allocate_dynamic_stack_space): Do not assume more than
30312         BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
30313         are defined.
30314
30315 2011-01-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
30316
30317         PR tree-optimization/47179
30318         * config/spu/spu.c (spu_ref_may_alias_errno): New function.
30319         (TARGET_REF_MAY_ALIAS_ERRNO): Define.
30320
30321 2011-01-18  Richard Guenther  <rguenther@suse.de>
30322
30323         PR rtl-optimization/47216
30324         * emit-rtl.c: Include tree-flow.h.
30325         (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
30326         of replicating it with different semantics.
30327         * Makefile.in (emit-rtl.o): Adjust.
30328
30329 2011-01-18  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
30330
30331         * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
30332         (cortex_a9_dp): Handle neon types correctly.
30333
30334 2011-01-18  Jakub Jelinek  <jakub@redhat.com>
30335
30336         PR rtl-optimization/47299
30337         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
30338         subtarget.  Use normal multiplication if both operands are constants.
30339         * expmed.c (expand_widening_mult): Don't try to optimize constant
30340         multiplication if op0 has VOIDmode.  Convert op1 constant to mode
30341         before using it.
30342
30343 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30344
30345         * doc/lto.texi (LTO): Ensure two spaces after period.  Fix
30346         spacing after 'e.g.', typos, comma, hyphenation.
30347
30348 2011-01-17  Richard Henderson  <rth@redhat.com>
30349
30350         * config/rx/predicates.md (rx_constshift_operand): Use match_test.
30351         (rx_restricted_mem_operand): New.
30352         (rx_shift_operand): Use register_operand.
30353         (rx_source_operand, rx_compare_operand): Likewise.
30354         * config/rx/rx.md (addsi3_flags): New expander.
30355         (adddi3): Rewrite as expander.
30356         (adc_internal, *adc_flags, adddi3_internal): New patterns.
30357         (subsi3_flags): New expander.
30358         (subdi3): Rewrite as expander.
30359         (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
30360
30361         * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
30362         (rx_init_builtins): Remove sat builtin.
30363         (rx_expand_builtin): Likewise.
30364         * config/rx/rx.md (ssaddsi3): New.
30365         (*sat): Rename from sat.  Represent the CC_REG input.
30366
30367         * config/rx/predicates.md (rshift_operator): New.
30368         * config/rx/rx.c (rx_expand_insv): Remove.
30369         * config/rx/rx-protos.h: Update.
30370         * config/rx/rx.md (*bitset): Rename from bitset.  Swap the ashift
30371         operand to the canonical position.
30372         (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
30373         (*bitclr, *bitclr_in_memory): Similarly.
30374         (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
30375         (insv): Retain the zero_extract in the expansion.
30376
30377         * config/rx/rx.md (bswapsi2): Use = not + for output reload.
30378         (bswaphi2, bitinvert, revw): Likewise.
30379
30380         * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
30381         (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
30382         * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
30383         (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
30384         (bitset, bitset_in_memory): Likewise.
30385         (bitinvert, bitinvert_in_memory): Likewise.
30386         (bitclr, bitclr_in_memory): Likewise.
30387         (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
30388         (rx_strend, rx_cmpstrn): Likewise.
30389         (rx_setmem): Likewise.  Make the source BLKmode to match the dest.
30390         (bitop peep2 patterns): Remove.
30391
30392         * config/rx/rx.c (rx_match_ccmode): New.
30393         * config/rx/rx-protos.h: Update.
30394         * config/rx/rx.md (abssi2): Clobber, don't set flags.
30395         (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
30396         (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
30397         (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
30398         (fix_truncsfsi2, floatsisf2): Likewise.
30399         (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
30400         (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
30401         (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
30402         (*subsi3_flags, *xorsi3_flags): New.
30403
30404         * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
30405
30406         * config/rx/rx.c (rx_print_operand): Remove workaround for
30407         unsplit comparison operations.
30408
30409         * config/rx/rx.md (movsicc): Split after reload.
30410         (*movsicc): Merge *movsieq and *movsine via match_operator.
30411         (*stcc): New pattern.
30412
30413         * config/rx/rx.c (rx_float_compare_mode): Remove.
30414         * config/rx/rx.h (rx_float_compare_mode): Remove.
30415         * config/rx/rx.md (cstoresi4): Split after reload.
30416         (*sccc): New pattern.
30417
30418         * config/rx/predicates.md (label_ref_operand): New.
30419         (rx_z_comparison_operator): New.
30420         (rx_zs_comparison_operator): New.
30421         (rx_fp_comparison_operator): New.
30422         * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
30423         Validate that the flags are set properly for the comparison.
30424         (rx_gen_cond_branch_template): Remove.
30425         (rx_cc_modes_compatible): Remove.
30426         (mode_from_flags): New.
30427         (flags_from_code): Rename from flags_needed_for_conditional.
30428         (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
30429         (rx_select_cc_mode): Likewise.
30430         (rx_split_fp_compare): New.
30431         (rx_split_cbranch): New.
30432         * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
30433         (*cbranchsi4): Use match_operator and rx_split_cbranch.
30434         (*cbranchsf4): Similarly.
30435         (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>.  Use
30436         match_operator and rx_split_cbranch.
30437         (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
30438         tstbranchsi4m_ne.  Use match_operator and rx_split_cbranch.
30439         (*cmpsi): Rename from cmpsi.
30440         (*tstsi): Rename from tstsi.
30441         (*cmpsf): Rename from cmpsf; use CC_Fmode.
30442         (*conditional_branch): Rename from conditional_branch.
30443         (*reveresed_conditional_branch): Remove.
30444         (b<code>): Remove expander.
30445         * config/rx/rx-protos.h: Update.
30446
30447         * config/rx/rx.c (rx_compare_redundant): Remove.
30448         * config/rx/rx.md (cmpsi): Don't use it.
30449         * config/rx/rx-protos.h: Update.
30450
30451         * config/rx/rx-modes.def (CC_F): New mode.
30452         * config/rx/rx.c (rx_select_cc_mode): New.
30453         * config/rx/rx.h (SELECT_CC_MODE): Use it.
30454         * config/rx/rx-protos.h: Update.
30455
30456 2011-01-17  Richard Henderson  <rth@redhat.com>
30457
30458         * except.c (dump_eh_tree): Fix stray ; after for statement.
30459
30460 2011-01-17  Richard Guenther  <rguenther@suse.de>
30461
30462         PR tree-optimization/47313
30463         * tree-inline.c (tree_function_versioning): Move DECL_RESULT
30464         handling before copying the body.  Properly deal with
30465         by-reference result in SSA form.
30466
30467 2011-01-17  Ian Lance Taylor  <iant@google.com>
30468
30469         PR target/47219
30470         * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
30471         (struct_value_alias_set): Don't define.
30472         (sparc_option_override): Don't set sparc_sr_alias_set and
30473         struct_value_alias_set.
30474         (save_or_restore_regs): Use gen_frame_mem rather than calling
30475         set_mem_alias_set.
30476         (sparc_struct_value_rtx): Likewise.
30477
30478 2011-01-17  H.J. Lu  <hongjiu.lu@intel.com>
30479
30480         PR target/47318
30481         * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
30482         (_mm_maskstore_pd): Likewise.
30483         (_mm_maskload_ps): Likewise.
30484         (_mm_maskstore_ps): Likewise.
30485         (_mm256_maskload_pd): Change mask to __m256i.
30486         (_mm256_maskstore_pd): Likewise.
30487         (_mm256_maskload_ps): Likewise.
30488         (_mm256_maskstore_ps): Likewise.
30489
30490         * config/i386/i386-builtin-types.def: Updated.
30491         (ix86_expand_special_args_builtin): Likewise.
30492
30493         * config/i386/i386.c (bdesc_special_args): Update
30494         __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
30495         __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
30496         __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
30497         __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
30498
30499         * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
30500         Use <avxpermvecmode> on mask register.
30501         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
30502
30503 2011-01-17  Olivier Hainque  <hainque@adacore.com>
30504             Michael Haubenwallner  <michael.haubenwallner@salomon.at>
30505             Eric Botcazou  <ebotcazou@adacore.com>
30506
30507         PR target/46655
30508         * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
30509         if <= USHRT_MAX in 32-bit mode.
30510
30511 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30512
30513         * doc/install.texi (Configuration, Specific): Wrap long
30514         lines in examples.  Allow line wrapping in long options
30515         and URLs where beneficial for PDF output.
30516
30517 2011-01-16  Richard Sandiford  <rdsandiford@googlemail.com>
30518
30519         * config/mips/mips.c (mips_classify_symbol): Don't return
30520         SYMBOL_PC_RELATIVE for nonlocal labels.
30521
30522 2011-01-15  Eric Botcazou  <ebotcazou@adacore.com>
30523
30524         * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
30525
30526 2011-01-15  Jan Hubicka  <jh@suse.cz>
30527
30528         PR tree-optimization/47276
30529         * ipa.c (function_and_variable_visibility): Do not try to mark alias
30530         declarations as needed.
30531
30532 2011-01-15  Martin Jambor  <mjambor@suse.cz>
30533
30534         * common.opt (fdevirtualize): New flag.
30535         * doc/invoke.texi (Option Summary): Document it.
30536         * opts.c (default_options_table): Add devirtualize flag.
30537         * ipa-prop.c (detect_type_change): Return immediately if
30538         devirtualize flag is not set.
30539         (detect_type_change_ssa): Likewise.
30540         (compute_known_type_jump_func): Likewise.
30541         (ipa_analyze_virtual_call_uses): Likewise.
30542
30543 2011-01-14  Martin Jambor  <mjambor@suse.cz>
30544
30545         PR tree-optimization/45934
30546         PR tree-optimization/46302
30547         * ipa-prop.c (type_change_info): New type.
30548         (stmt_may_be_vtbl_ptr_store): New function.
30549         (check_stmt_for_type_change): Likewise.
30550         (detect_type_change): Likewise.
30551         (detect_type_change_ssa): Likewise.
30552         (compute_complex_assign_jump_func): Check for dynamic type change.
30553         (compute_complex_ancestor_jump_func): Likewise.
30554         (compute_known_type_jump_func): Likewise.
30555         (compute_scalar_jump_functions): Likewise.
30556         (ipa_analyze_virtual_call_uses): Likewise.
30557         (ipa_analyze_node): Push and pop cfun, set current_function_decl.
30558
30559 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
30560
30561         * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
30562         * config/i386/i386.opt (msse5): New Alias.
30563
30564 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
30565
30566         * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
30567         * config/sparc/linux64.h (CC1_SPEC): Likewise.
30568         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
30569         * config/sparc/sparc.h (CC1_SPEC): Likewise.
30570
30571 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
30572
30573         * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
30574         -mcpu options.
30575         * config/sparc/linux64.h (CC1_SPEC): Likewise.
30576         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
30577         * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
30578         * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
30579         Likewise.
30580         * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
30581
30582 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
30583
30584         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
30585
30586 2011-01-14  Mike Stump  <mikestump@comcast.net>
30587
30588         * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
30589         * config/fr30/fr30.md: Likweise
30590         (movsi_push): Likewise.
30591         (movsi_pop): Likewise.
30592         (enter_func): Likewise.
30593         * config/moxie/moxie.md (movsi_push): Likewise.
30594         (movsi_pop): Likewise.
30595
30596 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
30597
30598         * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
30599         %{no_archive} %{exact_version}.
30600         * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
30601         * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
30602         %{no_archive} %{exact_version}.
30603         * config/mips/openbsd.h (LINK_SPEC): Likewise.
30604         * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
30605         * config/mips/vxworks.h: Likewise.
30606
30607 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
30608
30609         * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
30610
30611 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
30612
30613         * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
30614         ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
30615
30616 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
30617
30618         * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
30619         -nodefaultlib.
30620
30621 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
30622
30623         * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
30624         for mcpu not cpu.
30625         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
30626         CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
30627         not cpu.
30628         (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
30629         Don't handle -shlib.
30630
30631 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
30632
30633         * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
30634         (CC1_SPEC): Don't handle -profile.
30635
30636 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
30637
30638         * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
30639         * config/mips/mips.h (CC1_SPEC): Likewise.
30640
30641 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
30642
30643         * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
30644         * config/mips/mips.h (CC1_SPEC): Likewise.
30645
30646 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
30647
30648         * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
30649         * config/m32r/linux.h (LINK_SPEC): Likewise.
30650         * config/mips/linux.h (LINK_SPEC): Likewise.
30651         * config/mips/linux64.h (LINK_SPEC): Likewise.
30652         * config/sparc/linux.h (LINK_SPEC): Likewise.
30653         * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
30654         LINK_SPEC): Likewise.
30655         * config/xtensa/linux.h (LINK_SPEC): Likewise.
30656
30657 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
30658
30659         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
30660         %{version:-v}.
30661         * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
30662
30663 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
30664
30665         * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
30666         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
30667
30668 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
30669
30670         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
30671
30672 2011-01-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30673
30674         * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
30675         supports -Bstatic/-Bdynamic.
30676         * configure: Regenerate.
30677
30678 2011-01-14  Jan Hubicka  <jh@suse.cz>
30679             Jack Howarth  <howarth@bromo.med.uc.edu>
30680
30681         PR target/46037
30682         * config/darwin.c (darwin_override_options): Honor flag_gtoggle
30683         when checking debug_info_level. Test write_symbols instead of
30684         debug_hooks->var_location when setting flag_var_tracking_uninit.
30685
30686 2011-01-14  Richard Guenther  <rguenther@suse.de>
30687
30688         PR tree-optimization/47179
30689         * target.def (ref_may_alias_errno): New target hook.
30690         * targhooks.h (default_ref_may_alias_errno): Declare.
30691         * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
30692         (default_ref_may_alias_errno): New function.
30693         * target.h (struct ao_ref_s): Declare.
30694         * tree-ssa-alias.c: Include target.h.
30695         (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
30696         * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
30697         (targhooks.o): Likewise.
30698         * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
30699         * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
30700
30701 2011-01-14  Richard Guenther  <rguenther@suse.de>
30702
30703         * tree-ssa-structalias.c  (new_var_info): Use DECL_HARD_REGISTER.
30704
30705 2011-01-14  Richard Guenther  <rguenther@suse.de>
30706
30707         PR tree-optimization/47280
30708         * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
30709         return CFG changes.
30710         (tree_ssa_forward_propagate_single_use_vars): Deal with
30711         CFG changes from associate_plusminus.
30712
30713 2011-01-14  Richard Guenther  <rguenther@suse.de>
30714
30715         PR middle-end/47281
30716         Revert
30717         2011-01-11  Richard Guenther  <rguenther@suse.de>
30718
30719         PR tree-optimization/46076
30720         * tree-ssa.c (useless_type_conversion_p): Conversions from
30721         unprototyped to empty argument list function types are useless.
30722
30723 2011-01-14  Richard Guenther  <rguenther@suse.de>
30724
30725         PR tree-optimization/47286
30726         * tree-ssa-structalias.c (new_var_info): Register variables are global.
30727
30728 2011-01-14  Martin Jambor  <mjambor@suse.cz>
30729
30730         PR middle-end/46823
30731         * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
30732
30733 2011-01-13  Anatoly Sokolov  <aesok@post.ru>
30734
30735         * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
30736         LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
30737         * config/xtensa/xtensa.c (xtensa_libcall_value,
30738         xtensa_function_value_regno_p): New functions.
30739         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
30740
30741 2011-01-13  Kai Tietz  <kai.tietz@onevision.com>
30742
30743         PR c++/47213
30744         * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
30745         PE specific hook.
30746         * config/i386/i386-protos.h (i386_pe_assemble_visibility):
30747         New function prototype.
30748         * config/i386/winnt.c (i386_pe_assemble_visibility):
30749         Warn only if attribute was specified by user.
30750
30751 2011-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
30752
30753         PR target/47251
30754         * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
30755         floating point.
30756         (floatunsdidf2_fcfidu): Ditto.
30757
30758 2011-01-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
30759
30760         * config/s390/s390.c (print_operand_address): Replace 'error' with
30761         'output_operand_lossage'.
30762         (print_operand): Likewise.
30763
30764 2011-01-13  Jeff Law  <law@redhat.com>
30765
30766         PR rtl-optimization/39077
30767         * doc/invoke.texi (max-gcse-insertion-ratio): Document.
30768         * params.h (MAX_GCSE_INSERTION_RATIO): Define.
30769         * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
30770         * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
30771         * gcse.c (prune_insertions_deletions): New function.
30772         (compute_pre_data): Use it.
30773
30774 2011-01-13  Dodji Seketeli  <dodji@redhat.com>
30775
30776         PR debug/PR46973
30777         * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
30778         static function.
30779         (prune_unused_types_mark): Use it.
30780
30781 2011-01-13  Andrey Belevantsev  <abel@ispras.ru>
30782
30783         PR rtl-optimization/45352
30784         * sel-sched.c: Update copyright years.
30785         (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
30786         in the advancing loop when we have issued issue_rate insns.
30787
30788 2011-01-12  Richard Henderson  <rth@redhat.com>
30789
30790         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
30791         (TARGET_MD_ASM_CLOBBERS): New.
30792
30793         * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
30794         (TARGET_DELEGITIMIZE_ADDRESS): New.
30795
30796         * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
30797         (clzsi2, *bsch): New patterns.
30798
30799         * config/mn10300/mn10300.md (INT): New mode iterator.
30800         (*mov<INT>_clr): New pattern, and peep2 to generate it.
30801
30802         * config/mn10300/mn10300.c (mn10300_option_override): Force enable
30803         flag_split_wide_types.
30804
30805         * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
30806         (mn10300_trampoline_init): Rewrite without a template, an immediate
30807         load and a direct branch.
30808         * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
30809
30810 2011-01-12  Anatoly Sokolov  <aesok@post.ru>
30811
30812         * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
30813         * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
30814         * config/s390/s390.c (s390_output_addr_const_extra): Make static.
30815         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
30816
30817 2011-01-12  Kai Tietz  <kai.tietz@onevision.com>
30818
30819         PR debug/47209
30820         * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
30821         of type.
30822
30823 2011-01-12  Jan Hubicka  <jh@suse.cz>
30824
30825         PR driver/47244
30826         * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
30827         (PLUGIN_COND_CLOSE): New macro.
30828         (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
30829
30830 2011-01-12  Richard Guenther  <rguenther@suse.de>
30831
30832         PR lto/47259
30833         * lto-streamer-out.c (output_gimple_stmt): Do not wrap
30834         register variables in a MEM_REF.
30835
30836 2011-01-12  Joseph Myers  <joseph@codesourcery.com>
30837
30838         * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
30839         crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
30840         hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
30841         i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
30842         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
30843         x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
30844         ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
30845         m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
30846         mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
30847         s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
30848         sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
30849         am33_2.0-*-linux*): Use gnu-user.h before linux.h.
30850         * config/gnu-user.h: New.  Copied from linux.h.
30851         (LINUX_TARGET_STARTFILE_SPEC): Rename to
30852         GNU_USER_TARGET_STARTFILE_SPEC.
30853         (LINUX_TARGET_ENDFILE_SPEC): Rename to
30854         GNU_USER_TARGET_ENDFILE_SPEC.
30855         (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
30856         (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
30857         (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
30858         LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
30859         CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
30860         UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
30861         BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
30862         BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
30863         LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
30864         TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
30865         * config/arm/linux-eabi.h (CC1_SPEC): Use
30866         GNU_USER_TARGET_CC1_SPEC.
30867         (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
30868         (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
30869         (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
30870         * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
30871         LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
30872         LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
30873         CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
30874         LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
30875
30876 2011-01-12  Richard Guenther  <rguenther@suse.de>
30877
30878         PR other/46946
30879         * doc/invoke.texi (ffast-math): Document it is turned on
30880         with -Ofast.
30881
30882 2011-01-12  Jan Hubicka  <jh@suse.cz>
30883
30884         PR tree-optimization/47233
30885         * opts.c (common_handle_option): Disable ipa-reference with profile
30886         feedback.
30887
30888 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
30889
30890         * c-parser.c (c_parser_objc_at_property_declaration): Improved
30891         error message.
30892
30893 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
30894
30895         * c-parser.c (c_lex_one_token): Updated and reindented some
30896         comments.  No changes in code.
30897
30898 2011-01-11  Ian Lance Taylor  <iant@google.com>
30899
30900         * godump.c (go_output_var): Don't output the variable if there is
30901         already a type with the same name.
30902
30903 2011-01-11  Ian Lance Taylor  <iant@google.com>
30904
30905         * godump.c (go_format_type): Don't generate float80.
30906
30907 2011-01-11  Richard Henderson  <rth@redhat.com>
30908
30909         * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
30910         declaration.  Rewrite for both speed and size.
30911         (mn10300_address_cost_1): Remove.
30912         (mn10300_register_move_cost): New.
30913         (mn10300_memory_move_cost): New.
30914         (mn10300_rtx_costs): Rewrite for both speed and size.  Don't handle
30915         ZERO_EXTRACT.  Do handle UNSPEC, arithmetic, logicals, compare,
30916         extensions, shifts, BSWAP, CLZ.
30917         (mn10300_wide_const_load_uses_clr): Remove.
30918         (TARGET_REGISTER_MOVE_COST): New.
30919         (TARGET_MEMORY_MOVE_COST): New.
30920         * config/mn10300/mn10300-protos.h: Update.
30921         * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
30922
30923         * config/mn10300/constraints.md ("R", "T"): Remove constraints.
30924         * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
30925         * config/mn10300/mn10300-protos.h: Update.
30926         * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
30927         (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
30928         (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
30929         (*test_int_bitfield, *test_byte_bitfield): Remove.
30930         (*bit_test, *subreg_bit_test): Remove.
30931         * config/mn10300/predicates.md (const_8bit_operand): Remove.
30932
30933         * config/mn10300/constraints.md ("c"): Rename from "A".
30934         ("A", "D"): New constraint letters.
30935         * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
30936         (fmssf4, fnmasf4, fnmssf4): Likewise.
30937
30938         * config/mn10300/mn10300.md (isa): New attribute.
30939         (enabled): New attribute.
30940
30941         * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
30942         (abssf2, negsf2): Define only for hardware fp.
30943         (sqrtsf2): Reformat.
30944         (addsf3, subsf3, mulsf3): Merge expander and insn.
30945
30946         * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
30947         (DEBUGGER_AUTO_OFFSET): Remove.
30948         (DEBUGGER_ARG_OFFSET): Remove.
30949
30950         * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
30951         Emit register stores with the same offsets as the hardware.
30952         (mn10300_store_multiple_operation): Don't check that the register
30953         save offsets are monotonic.
30954         * config/mn10300/mn10300-protos.h: Update.
30955
30956         * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
30957
30958         * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
30959         in terms of the value on the stack, not the MDR register.
30960
30961 2011-01-11  Jan Hubicka  <jh@suse.cz>
30962
30963         PR lto/45721
30964         PR lto/45375
30965         * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
30966         (symbol_alias_set_destroy, symbol_alias_set_contains,
30967         propagate_aliases_backward): Declare.
30968         * lto-streamer-out.c (struct sets): New sturcture.
30969         (trivally_defined_alias): New function.
30970         (output_alias_pair_p): Rewrite.
30971         (output_unreferenced_globals): Fix output of alias pairs.
30972         (produce_symtab): Likewise.
30973         * ipa.c (function_and_variable_visibility): Set weak alias destination
30974         as needed in lto.
30975         * varasm.c (symbol_alias_set_t): Remove.
30976         (symbol_alias_set_destroy): Export.
30977         (propagate_aliases_forward, propagate_aliases_backward): New functions
30978         based on ...
30979         (compute_visible_aliases): ... this one; remove.
30980         (trivially_visible_alias): New
30981         (trivially_defined_alias): New.
30982         (remove_unreachable_alias_pairs): Rewrite.
30983         (finish_aliases_1): Reorganize code checking if alias is defined.
30984         * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
30985         in LTO mode.
30986
30987 2011-01-11  Richard Guenther  <rguenther@suse.de>
30988
30989         PR tree-optimization/46076
30990         * tree-ssa.c (useless_type_conversion_p): Conversions from
30991         unprototyped to empty argument list function types are useless.
30992
30993 2011-01-11  Richard Guenther  <rguenther@suse.de>
30994
30995         PR middle-end/45235
30996         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
30997         volatile MEMs as MEM_READONLY_P.
30998
30999 2011-01-11  Richard Guenther  <rguenther@suse.de>
31000
31001         PR tree-optimization/47239
31002         * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
31003
31004 2011-01-11  Jeff Law  <law@redhat.com>
31005
31006         PR tree-optimization/47086
31007         * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
31008         IVs from statements that might throw.
31009
31010 2011-01-10  Jan Hubicka  <jh@suse.cz>
31011
31012         PR lto/45375
31013         * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
31014
31015 2011-01-10  Jan Hubicka  <jh@suse.cz>
31016
31017         PR lto/45375
31018         * profile.c (read_profile_edge_counts): Ignore profile inconistency
31019         when correcting profile.
31020
31021 2011-01-10  Jan Hubicka  <jh@suse.cz>
31022
31023         PR lto/46083
31024         * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
31025         DECL_FINI_PRIORITY.
31026         * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
31027         Restore DECL_FINI_PRIORITY.
31028
31029 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31030
31031         * doc/gimple.texi: Fix quoting of multi-word return values in
31032         @deftypefn statements.  Ensure presence of return value.  Wrap
31033         overlong @deftypefn lines.
31034         (is_gimple_operand, is_gimple_min_invariant_address): Remove
31035         descriptions of removed functions.
31036         * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
31037         of multi-word return value in @deftypefn statement.
31038
31039 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31040
31041         * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
31042         (Conditional Expressions, Logical Operators)
31043         (Statement and operand traversals): Do not indent smallexample
31044         code.  Fix duplicate function argument in example.
31045
31046 2011-01-10  Jeff Law  <law@redhat.com>
31047
31048         PR tree-optimization/47141
31049         * ipa-split.c (split_function): Handle case where we are
31050         returning a value and the return block has a virtual operand phi.
31051
31052 2011-01-10  Jan Hubicka  <jh@suse.cz>
31053
31054         PR tree-optimization/47234
31055         * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
31056         (pass_feedback_split_functions): Declare.
31057         * passes.c (init_optimization_passes): Add ipa-split as subpass of
31058         tree-profile.
31059         * ipa-split.c (gate_split_functions): Update comments; disable
31060         split-functions for profile_arc_flag and branch_probabilities.
31061         (gate_feedback_split_functions): New function.
31062         (execute_feedback_split_functions): New function.
31063         (pass_feedback_split_functions): New global var.
31064
31065 2011-01-10  H.J. Lu  <hongjiu.lu@intel.com>
31066
31067         PR lto/46760
31068         * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
31069         calling gimple_call_set_cannot_inline.
31070
31071 2011-01-10  Iain Sandoe  <iains@gcc.gnu.org>
31072
31073         * config/darwin-sections.def: Remove unused section.
31074
31075 2011-01-10  Dave Korn  <dave.korn.cygwin@gmail.com>
31076
31077         PR c++/47218
31078         * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
31079
31080 2011-01-09  Nicola Pero  <nicola.pero@meta-innovation.com>
31081
31082         PR objc/47232
31083         * c-parser.c (c_parser_declaration_or_fndef): Improved
31084         error message.
31085
31086 2011-01-09  Kai Tietz  <kai.tietz@onevision.com>
31087
31088         * config/i386/winnt.c (i386_pe_start_function): Make sure
31089         to switch back to function's section.
31090
31091 2011-01-09  Iain Sandoe  <iains@gcc.gnu.org>
31092
31093         PR gcc/46902
31094         PR testsuite/46912
31095         * plugin.c: Move include of dlfcn.h from here...
31096         * system.h: ... to here.
31097
31098 2011-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31099
31100         * doc/cpp.texi (C++ Named Operators): Fix markup for header
31101         file name.
31102         * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
31103         two extra empty pages in PDF output.
31104
31105 2011-01-08  Nicola Pero  <nicola.pero@meta-innovation.com>
31106
31107         PR objc/47078
31108         * c-parser.c (c_parser_objc_type_name): If the type is unknown,
31109         for error recovery purposes behave as if it was not specified so
31110         that the default type is usd.
31111
31112 2011-01-07  Jan Hubicka  <jh@suse.cz>
31113
31114         PR tree-optmization/46469
31115         * ipa.c (function_and_variable_visibility): Clear needed flags on
31116         nodes with external decls; handle weakrefs merging correctly.
31117
31118 2011-01-07  Joseph Myers  <joseph@codesourcery.com>
31119
31120         * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
31121         not false.
31122
31123 2011-01-07  Jan Hubicka  <jh@suse.cz>
31124
31125         * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
31126         and no longer claim that gold is required for linker plugin.
31127         * configure: Regenerate.
31128         * gcc.c (PLUGIN_COND): New macro.
31129         (LINK_COMMAND_SPEC): Use it.
31130         (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
31131         * config.in (HAVE_LTO_PLUGIN): New.
31132         * configure.ac (--with-lto-plugin): New parameter; autodetect
31133         HAVE_LTO_PLUGIN.
31134
31135 2011-01-07  Jan Hubicka  <jh@suse.cz>
31136
31137         PR tree-optimization/46367
31138         * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
31139         when we can update original.
31140         (cgraph_mark_inline_edge): Sanity check.
31141         * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
31142
31143 2011-01-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
31144
31145         * config/spu/spu.h (ASM_COMMENT_START): Define.
31146
31147 2011-01-07  H.J. Lu  <hongjiu.lu@intel.com>
31148
31149         PR driver/42445
31150         * gcc.c (%>S): New.
31151         (SWITCH_KEEP_FOR_GCC): Likewise.
31152         (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
31153         (do_spec_1): Handle "%>".
31154
31155         * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
31156
31157 2011-01-07  Jakub Jelinek  <jakub@redhat.com>
31158
31159         PR target/47201
31160         * config/i386/i386.c (ix86_delegitimize_address): If
31161         simplify_gen_subreg fails, return orig_x.
31162
31163         PR bootstrap/47187
31164         * value-prof.c (gimple_stringop_fixed_value): Handle
31165         lhs of the call properly.
31166
31167 2011-01-07  Jan Hubicka  <jh@suse.cz>
31168
31169         PR lto/45375
31170         * lto-opt.c (lto_reissue_options): Set flag_shlib.
31171
31172 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
31173
31174         * target.def (function_switched_text_sections): New hook.
31175         * doc/tm.texi: Regenerated.
31176         * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
31177         * final.c (default_function_switched_text_sections): New.
31178         (final_scan_insn): Call function_switched_text_sections when a
31179         mid-function section change occurs.
31180         * output.h (default_function_switched_text_sections): Declare.
31181         * config/darwin-protos.h (darwin_function_switched_text_sections):
31182         Likewise.
31183         * config/darwin.c (darwin_function_switched_text_sections): New.
31184         * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
31185
31186 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
31187
31188         * dwarf2out.c (gen_subprogram_die):  Add pubnames with code ranges for
31189         DWARF >= 3.  Add pubnames for the primary section and a reduced DIE for
31190         the secondary code fragment when outputting for DWARF == 2.
31191
31192 2011-01-07  Anatoly Sokolov  <aesok@post.ru>
31193
31194         * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
31195         * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
31196         Remove.
31197         * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
31198         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
31199
31200 2011-01-06  Eric Botcazou  <ebotcazou@adacore.com>
31201
31202         PR debug/46704
31203         * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
31204         when it is not empty.
31205
31206 2011-01-06  Changpeng Fang  <changpeng.fang@amd.com>
31207
31208         Bobcat Enablement
31209         * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
31210         (case ${target}): Add btver1.
31211         * config/i386/driver-i386.c (host_detect_local_cpu): Let
31212         -march=native recognize btver1 processors.
31213         * config/i386/i386-c.c (ix86_target_macros_internal): Add
31214         btver1 def_and_undef
31215         * config/i386/i386.c (struct processor_costs btver1_cost): New
31216         btver1 cost table.
31217         (m_BTVER1): New definition.
31218         (m_AMD_MULTIPLE): Includes m_BTVER1.
31219         (initial_ix86_tune_features): Add btver1 tune.
31220         (processor_target_table): Add btver1 entry.
31221         (static const char *const cpu_names): Add btver1 entry.
31222         (software_prefetching_beneficial_p): Add btver1.
31223         (ix86_option_override_internal): Add btver1 instruction sets.
31224         (ix86_issue_rate): Add btver1.
31225         (ix86_adjust_cost): Add btver1.
31226         * config/i386/i386.h (TARGET_BTVER1): New definition.
31227         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
31228         (enum processor_type): Add PROCESSOR_BTVER1.
31229         * config/i386/i386.md (define_attr "cpu"): Add btver1.
31230
31231 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31232
31233         PR target/43309
31234         * config/i386/i386.c (legitimize_tls_address)
31235         <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
31236         * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
31237         (tls_initial_exec_64_sun): New pattern.
31238
31239 2011-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
31240
31241         * doc/invoke.texi (Overall Options): Improve wording and markup
31242         of the description of -wrapper.
31243
31244 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
31245
31246         * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
31247         rdynamic, threads): New Driver options.
31248
31249 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31250
31251         PR target/38118
31252         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
31253         if coming from .tdata.
31254         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
31255
31256 2011-01-06  Jan Hubicka  <jh@suse.cz>
31257
31258         PR lto/47188
31259         * collect2.c (main): Do not enable LTOmode when plugin is active.
31260
31261 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31262
31263         PR other/45915
31264         * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
31265         --version output if supported.
31266         * configure: Regenerate.
31267
31268 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
31269
31270         * config/linux-android.opt (tno-android-cc, tno-android-ld): New
31271         Driver options.
31272
31273 2011-01-06  Jakub Jelinek  <jakub@redhat.com>
31274
31275         PR c/47150
31276         * c-convert.c (convert): When converting a complex expression
31277         other than COMPLEX_EXPR to a different complex type, ensure
31278         c_save_expr is called instead of save_expr, unless in_late_binary_op.
31279         * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
31280         when converting COMPLEX_TYPE.
31281
31282 2011-01-06  Ira Rosen  <irar@il.ibm.com>
31283
31284         PR tree-optimization/47139
31285         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
31286         only the last reduction value is used outside the loop.  Update
31287         documentation.
31288
31289 2011-01-05  Joseph Myers  <joseph@codesourcery.com>
31290
31291         * config/rtems.opt: New.
31292         * config.gcc (*-*-rtems*): Use rtems.opt.
31293
31294 2011-01-05  Changpeng Fang  <changpeng.fang@amd.com>
31295
31296         * config/i386/i386.c (ix86_option_override_internal): Bulldozer
31297         processors do not support 3DNow instructions.
31298
31299 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
31300
31301         * config/spu/spu.c (spu_option_override): Set parameter
31302         PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
31303
31304 2011-01-05  Jan Hubicka  <jh@suse.cz>
31305
31306         * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
31307         at the command line.
31308
31309 2011-01-05  Martin Jambor  <mjambor@suse.cz>
31310
31311         PR lto/47162
31312         * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
31313         deltas on streamed outgoing edges.
31314         (output_node_opt_summary): Output info for outgoing edges only when
31315         the node is in new parameter set.
31316         (output_cgraph_opt_summary): New parameter set, passed to the two
31317         aforementioned functions.  Update its forward declaration and its
31318         callee too.
31319
31320 2011-01-05  Tom Tromey  <tromey@redhat.com>
31321
31322         * c-parser.c (c_parser_omp_atomic): Pass location of assignment
31323         operator to c_finish_omp_atomic.
31324         * c-typeck.c (lvalue_or_else): Add 'loc' argument.
31325         (build_unary_op): Update.
31326         (build_modify_expr): Update.
31327         (build_asm_expr): Update.
31328
31329 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
31330
31331         * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
31332         newly inserted insns.
31333         (pad_bb): Likewise.
31334         (spu_emit_branch_hint): Likewise.
31335         (insert_hbrp_for_ilb_runout): Likewise.
31336         (spu_machine_dependent_reorg): Call df_finish_pass after
31337         schedule_insns returns.
31338
31339 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
31340
31341         * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
31342
31343 2011-01-05  Eric Botcazou  <ebotcazou@adacore.com>
31344
31345         PR tree-optimization/47005
31346         * tree-sra.c (struct access): Add 'non_addressable' bit.
31347         (create_access): Set it for a DECL_NONADDRESSABLE_P field.
31348         (decide_one_param_reduction): Return 0 if the parameter is passed by
31349         reference and one of the accesses in the group is non_addressable.
31350
31351 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
31352
31353         PR tree-optimization/47056
31354         * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
31355         (mark_load): Likewise.  Handle FUNCTION_DECL specially.
31356         (mark_store): Likewise.  Pass STMT to ipa_record_reference.
31357
31358 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
31359
31360         * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
31361         initializer.  Skip view conversions from aggregate types.
31362
31363 2011-01-04  Kai Tietz  <kai.tietz@onevision.com>
31364
31365         PR bootstrap/47055
31366         * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
31367
31368 2011-01-04  Philipp Thomas  <pth@suse.de>
31369
31370         * config/microblaze/microbalse.opt (mxl-float-convert): Fix
31371         obvious typo.
31372
31373 2011-01-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
31374
31375         * function.c (thread_prologue_and_epilogue_insns): Do not crash
31376         on empty epilogue sequences.
31377
31378 2011-01-04  Joseph Myers  <joseph@codesourcery.com>
31379
31380         * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
31381         non-static): New Driver options.
31382
31383 2011-01-04  Jie Zhang  <jie@codesourcery.com>
31384
31385         PR driver/47137
31386         * gcc.c (default_compilers[]): Set combinable field to 0
31387         for all assembly languages.
31388
31389 2011-01-04  Mingjie Xing  <mingjie.xing@gmail.com>
31390
31391         * config/mips/loongson3a.md: New file.
31392         * config/mips/mips.md: Include loongson3a.md.
31393         * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
31394         TUNE_LOONGSON_3A.
31395
31396 2011-01-03  Eric Botcazou  <ebotcazou@adacore.com>
31397
31398         PR middle-end/47017
31399         * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
31400         instead of convert_memory_address_addr_space on the base expression.
31401
31402 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
31403
31404         * config/spu/spu.c (spu_option_override): Update error text
31405         for bad -march= / -mtune= values.
31406
31407 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
31408
31409         * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
31410         if branch-hint optimization will be performed.
31411
31412 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
31413
31414         PR tree-optimization/47148
31415         * ipa-split.c (split_function): Convert arguments to
31416         DECL_ARG_TYPE if possible.
31417
31418         PR tree-optimization/47155
31419         * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
31420         when computing uns.
31421
31422         PR rtl-optimization/47157
31423         * combine.c (try_combine): If undobuf.other_insn becomes
31424         (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
31425         and set *new_direct_jump_p too.
31426
31427 2011-01-03  Sebastian Pop  <sebastian.pop@amd.com>
31428
31429         PR tree-optimization/47021
31430         * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
31431
31432 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
31433
31434         * gcc.c (process_command): Update copyright notice dates.
31435         * gcov.c (print_version): Likewise.
31436         * gcov-dump.c (print_version): Likewise.
31437         * mips-tfile.c (main): Likewise.
31438         * mips-tdump.c (main): Likewise.
31439
31440 2011-01-03  Martin Jambor  <mjambor@suse.cz>
31441
31442         PR tree-optimization/46801
31443         * tree-sra.c (type_internals_preclude_sra_p): Check whether
31444         aggregate fields start at byte boundary instead of the bit-field flag.
31445
31446 2011-01-03  H.J. Lu  <hongjiu.lu@intel.com>
31447
31448         PR driver/47137
31449         * gcc.c (main): Revert revision 168407.
31450
31451 2011-01-03  Martin Jambor  <mjambor@suse.cz>
31452
31453         * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
31454
31455 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
31456
31457         * tree-vect-generic.c (expand_vector_operations_1): When using vector/
31458         vector optab to expand vector/scalar shift, update gimple to vector.
31459
31460 2011-01-03  Martin Jambor  <mjambor@suse.cz>
31461
31462         * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
31463         a thunk.
31464
31465 2011-01-03  Martin Jambor  <mjambor@suse.cz>
31466
31467         PR tree-optimization/46984
31468         * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
31469         HOST_WIDE_INT.
31470         (cgraph_create_indirect_edge): Fixed line length.
31471         (cgraph_indirect_call_info): Declare.
31472         (cgraph_make_edge_direct) Update declaration.
31473         * cgraph.c (cgraph_allocate_init_indirect_info): New function.
31474         (cgraph_create_indirect_edge): Use it.
31475         (cgraph_make_edge_direct): Made delta HOST_WIDE_INT.  Updated all
31476         callees.
31477         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
31478         the new thunk_delta representation.
31479         * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
31480         HOST_WIDE_INT.
31481         (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
31482         (ipa_read_indirect_edge_info): Likewise.
31483         * lto-cgraph.c (output_edge_opt_summary): New function.
31484         (output_node_opt_summary): Call it on all outgoing edges.
31485         (input_edge_opt_summary): New function.
31486         (input_node_opt_summary): Call it on all outgoing edges.
31487
31488 2011-01-02  H.J. Lu  <hongjiu.lu@intel.com>
31489
31490         PR driver/47137
31491         * gcc.c (main): Don't check have_o when settting combine_inputs.
31492
31493 2011-01-02  Eric Botcazou  <ebotcazou@adacore.com>
31494
31495         * regrename.c: Add general comment describing the pass.
31496         (struct du_head): Remove 'length' field.
31497         (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
31498         (regrename_optimize): Do not sort chains.  Rework comments, add others.
31499         Force renaming to the preferred class (if any) in the first pass and do
31500         not consider registers that belong to it in the second pass.
31501         (create_new_chain): Do not set 'length' field.
31502         (scan_rtx_reg): Likewise.
31503
31504 2011-01-02  Jakub Jelinek  <jakub@redhat.com>
31505
31506         PR tree-optimization/47140
31507         * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
31508         TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
31509         to bit_value_binop.
31510
31511         PR rtl-optimization/47028
31512         * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
31513         parm_birth_insn instead of at the beginning of first bb.
31514
31515 2011-01-02  Mingjie Xing  <mingjie.xing@gmail.com>
31516
31517         * doc/generic.texi: Remove duplicated "@subsubsection Statements".
31518         Remove the word "see" before "@pxref".
31519         * doc/rtl.texi: Remove the word "see" before "@pxref".
31520
31521 2011-01-01  Jan Hubicka  <jh@suse.cz>
31522
31523         * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
31524         memory.
31525
31526 2011-01-01  Kai Tietz  <kai.tietz@onevision.com>
31527
31528         PR target/38662
31529         * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
31530
31531 \f
31532 Copyright (C) 2011 Free Software Foundation, Inc.
31533
31534 Copying and distribution of this file, with or without modification,
31535 are permitted in any medium without royalty provided the copyright
31536 notice and this notice are preserved.