OSDN Git Service

6a514e8b0ab043e7d8c520ed945f60a3320ecd29
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2011-10-13  Jakub Jelinek  <jakub@redhat.com>
2
3         * config/i386/sse.md (vec_set<mode>): Change V_128 iterator mode
4         to V.
5
6 2011-10-13  Jakub Jelinek  <jakub@redhat.com>
7             Richard Guenther  <rguenther@suse.de>
8
9         * tree-ssa.c (maybe_optimize_var): Drop TREE_ADDRESSABLE
10         from vector or complex vars even if their DECL_UID is in not_reg_needs
11         bitmap.
12
13 2011-10-13  Jakub Jelinek  <jakub@redhat.com>
14
15         * config/i386/sse.md (reduc_umin_v8hi): New pattern.
16         * config/i386/i386.c (ix86_build_const_vector): Handle
17         also V32QI, V16QI, V16HI and V8HI modes.
18         (emit_reduc_half): New function.
19         (ix86_expand_reduc): Use phminposuw insn for V8HImode UMIN.
20         Use emit_reduc_half helper function.
21
22 2011-10-13   Lawrence Crowl  <crowl@google.com>
23              Diego Novillo  <dnovillo@google.com>
24
25         * lto-streamer-in.c (input_struct_function_base): Factor out of ...
26         (input_function): ... here.
27         * lto-streamer-out.c (output_struct_function_base): Factor out of ...
28         (output_function): ... here.
29
30 2011-10-13  Gabriel Charette  <gchare@google.com>
31             Diego Novillo  <dnovillo@google.com>
32
33         * streamer-hooks.h (struct streamer_hooks): Add hooks
34         input_location and output_location.
35         * lto-streamer-in.c (lto_input_location): Use
36         streamer_hooks.input_location, if set.
37         * lto-streamer-out.c (lto_output_location): Use
38         streamer_hooks.output_location, if set.
39
40 2011-10-13  Richard Guenther  <rguenther@suse.de>
41
42         PR tree-optimization/50712
43         * ipa-split.c (split_function): Always re-gimplify parameters
44         when they are not gimple vals before passing them.  Properly
45         check for type compatibility.
46
47 2011-10-13  Tom de Vries  <tom@codesourcery.com>
48
49         * function.c (gimplify_parameters): Set number of arguments of call to
50         BUILT_IN_ALLOCA_WITH_ALIGN to 2.
51
52 2011-10-13  Tom de Vries  <tom@codesourcery.com>
53
54         * emit-rtl.c (set_mem_attributes_minus_bitpos): Set MEM_READONLY_P
55         for static const strings.
56         * varasm.c (build_constant_desc): Generate the memory location of the
57         constant using gen_const_mem.
58
59 2011-10-13  Richard Guenther  <rguenther@suse.de>
60
61         PR tree-optimization/50698
62         * tree-data-ref.c (split_constant_offset_1): Also process
63         offsets of &MEM.
64
65 2011-10-12  David S. Miller  <davem@davemloft.net>
66
67         * config/sparc/sparc.md (UNSPEC_FPMERGE): Delete.
68         (UNSPEC_MUL16AU, UNSPEC_MUL8, UNSPEC_MUL8SU, UNSPEC_MULDSU): New
69         unspecs.
70         (fpmerge_vis): Remove inaccurate comment, represent using vec_select
71         of a vec_concat.
72         (vec_interleave_lowv8qi, vec_interleave_highv8qi): New insns.
73         (fmul8x16_vis, fmul8x16au_vis, fmul8sux16_vis, fmuld8sux16_vis):
74         Reimplement as unspecs and remove inaccurate comments.
75         (vis3_shift_patname): New code attr.
76         (<vis3_shift_insn><vbits>_vis): Rename to "v<vis3_shift_patname><mode>3".
77         (vis3_addsub_ss_patname): New code attr.
78         (<vis3_addsub_ss_insn><vbits>_vis): Rename to
79         "<vis3_addsub_ss_patname><mode>3".
80         * config/sparc/sparc.c (sparc_vis_init_builtins): Update to
81         accommodate pattern name changes.
82
83         * config/sparc/sparc.h: Do not force TARGET_VIS3 and TARGET_FMAF
84         to zero when assembler lacks support for such instructions.
85         * config/sparc/sparc.c (sparc_option_override): Clear MASK_VIS3
86         and MASK_FMAF in defaults when assembler lacks necessary support.
87
88 2011-10-12  Jakub Jelinek  <jakub@redhat.com>
89
90         * config/i386/sse.md (vec_unpacks_lo_<mode>,
91         vec_unpacks_hi_<mode>, vec_unpacku_lo_<mode>,
92         vec_unpacku_hi_<mode>): Change VI124_128 mode to
93         VI124_AVX2.
94         * config/i386/i386.c (ix86_expand_sse_unpack): Handle
95         V32QImode, V16HImode and V8SImode for TARGET_AVX2.
96
97         * config/i386/sse.md (vec_avx2): New mode_attr.
98         (mulv16qi3): Macroize to cover also mulv32qi3 for
99         TARGET_AVX2 into ...
100         (mul<mode>3): ... this.
101
102         * config/i386/i386.md (UNSPEC_VPERMDI): Remove.
103         * config/i386/i386.c (ix86_expand_vec_perm): Handle
104         V16QImode and V32QImode for TARGET_AVX2.
105         (MAX_VECT_LEN): Increase to 32.
106         (expand_vec_perm_blend): Add support for 32-byte integer
107         vectors with TARGET_AVX2.
108         (valid_perm_using_mode_p): New function.
109         (expand_vec_perm_pshufb): Add support for 32-byte integer
110         vectors with TARGET_AVX2.
111         (expand_vec_perm_vpshufb2_vpermq): New function.
112         (expand_vec_perm_vpshufb2_vpermq_even_odd): New function.
113         (expand_vec_perm_even_odd_1): Handle 32-byte integer vectors
114         with TARGET_AVX2.
115         (ix86_expand_vec_perm_builtin_1): Try expand_vec_perm_vpshufb2_vpermq
116         and expand_vec_perm_vpshufb2_vpermq_even_odd.
117         * config/i386/sse.md (VEC_EXTRACT_EVENODD_MODE): Add for TARGET_AVX2
118         32-byte integer vector modes.
119         (vec_pack_trunc_<mode>): Use VI248_AVX2 instead of VI248_128.
120         (avx2_interleave_highv32qi, avx2_interleave_lowv32qi): Remove pasto.
121         (avx2_pshufdv3, avx2_pshuflwv3, avx2_pshufhwv3): Generate
122         4 new operands.
123         (avx2_pshufd_1, avx2_pshuflw_1, avx2_pshufhw_1): Don't use
124         match_dup, instead add 4 new operands and require they have
125         right cross-lane values.
126         (avx2_permv4di): Change into define_expand.
127         (avx2_permv4di_1): New instruction.
128         (avx2_permv2ti): Use nonimmediate_operand instead of register_operand
129         for "xm" constrained operand.
130         (VEC_PERM_AVX2): Add V32QI and V16QI for TARGET_AVX2.
131
132         * config/i386/sse.md (avx2_gathersi<mode>,
133         avx2_gatherdi<mode>, avx2_gatherdi<mode>256): Add clobber of
134         match_scratch, change memory_operand to register_operand,
135         add (mem:BLK (scratch)) use.
136         (*avx2_gathersi<mode>, *avx2_gatherdi<mode>,
137         *avx2_gatherdi<mode>256): Add clobber of match_scratch,
138         add earlyclobber to the output operand and match_scratch,
139         add (mem:BLK (scratch)) use, change the other mem to match_operand.
140         Use %p6 instead of %c6 in the pattern.
141         * config/i386/i386.c (ix86_expand_builtin): Adjust for
142         operand 2 being a Pmode register_operand instead of memory_operand.
143
144 2011-10-12  Kai Tietz  <ktietz@redhat.com>
145
146         * config/i386/i386.md (simple_return): Disable
147         if TARGET_SEH is active.
148
149 2011-10-12  Steve Ellcey  <sje@cup.hp.com>
150
151         * config/ia64/ia64.c (ia64_init_builtins): Fix unbalanced parentheses.
152
153 2011-10-12  Richard Guenther  <rguenther@suse.de>
154
155         * tree-ssa-alias.c (maybe_skip_until): Cache also at the point
156         of the first store we visit in a basic-block.
157         (get_continuation_for_phi): Search for a candidate VUSE that
158         might dominates all others.  Do pairwise disambiguation against
159         that candidate.
160
161 2011-10-12  Paul Koning  <pkoning@gcc.gnu.org>
162
163         PR tree-optimization/50189
164         * tree-vrp.c (extract_range_from_assert): Use the type of
165         the variable, not the limit.
166
167 2011-10-12  Richard Guenther  <rguenther@suse.de>
168
169         PR tree-optimization/50700
170         * tree-object-size.c (addr_object_size): Simplify and treat
171         MEM_REF bases consistently.
172
173 2011-10-12  Bernd Schmidt  <bernds@codesourcery.com>
174
175         * function.c (prepare_shrink_wrap, bb_active_p): New function.
176         (thread_prologue_and_epilogue_insns): Use bb_active_p.
177         Call prepare_shrink_wrap, then recompute bb_active_p for the
178         last block.
179
180 2011-10-12  Joseph Myers  <joseph@codesourcery.com>
181
182         PR c/50565
183         * convert.c (convert_to_integer): Do not narrow operands of
184         pointer subtraction.
185
186 2011-10-12  Nick Clifton  <nickc@redhat.com>
187
188         * config/arm/arm.h (EMIT_EABI_ATTRIBUTE): New macro.  Used to
189         emit a .eabi_attribute assembler directive, possibly with a
190         comment attached.
191         * config/arm/arm.c (arm_file_start): Use the new macro.
192         * config/arm/arm-c.c (arm_output_c_attributes): Likewise.
193
194 2011-10-12  Georg-Johann Lay  <avr@gjlay.de>
195
196         PR target/49939
197         * config/avr/avr.md (*movqi): Rename to movqi_insn.
198         (*call_insn): Rename to call_insn.
199         (*call_value_insn): Rename to call_value_insn.
200         * config/avr/avr.c (avr_2word_insn_p): New static function.
201         (jump_over_one_insn_p): Use it.
202
203 2011-10-12  Richard Sandiford  <richard.sandiford@linaro.org>
204
205         * expr.h (copy_blkmode_to_reg): Declare.
206         * expr.c (copy_blkmode_to_reg): New function.
207         (expand_assignment): Don't expand register RESULT_DECLs before
208         the lhs.  Use copy_blkmode_to_reg to copy BLKmode values into a
209         RESULT_DECL register.
210         (expand_expr_real_1): Handle BLKmode decls when looking for promotion.
211         * stmt.c (expand_return): Move BLKmode-to-register code into
212         copy_blkmode_to_reg.
213
214 2011-10-11  Eric Botcazou  <ebotcazou@adacore.com>
215
216         PR target/49965
217         * config/sparc/sparc.md (mov<I:mode>cc): Do not save comparison code.
218         (mov<F:mode>cc): Likewise.
219
220 2011-10-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
221
222         * tree-ssa-address.c (copy_ref_info): Remove copy of TREE_THIS_NOTRAP.
223
224 2011-10-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
225
226         * tree.h (built_in_decls): Delete old interface with two parallel
227         arrays to hold standard builtin declarations, and replace it with
228         a function based interface that can support creating builtins on
229         the fly in the future.  Change all uses, and poison the old
230         names.  Make sure 0 is not a legitimate builtin index.
231         (implicit_built_in_decls): Ditto.
232         (built_in_info): Ditto.
233         (BUILTIN_VALID_P): Ditto.
234         (builtin_decl_explicit): Ditto.
235         (builtin_decl_implicit): Ditto.
236         (set_builtin_decl): Ditto.
237         (set_builtin_decl_implicit_p): Ditto.
238         (builtin_decl_explicit_p): Ditto.
239         (builtin_decl_implicit_p): Ditto.
240         * tree-complex.c (expand_complex_libcall): Ditto.
241         * tree-loop-distribution.c (generate_memset_zero): Ditto.
242         * tree-ssa-strlen.c (get_string_length): Ditto.
243         (handle_builtin_strcpy): Ditto.
244         (handle_builtin_strcat): Ditto.
245         * tree.c (iterative_hash_expr): Ditto.
246         (local_define_builtin): Ditto.
247         (build_common_builtin_nodes): Ditto.
248         * builtins.c (built_in_decls): Ditto.
249         (implicit_built_in_decls): Ditto.
250         (built_in_info): Ditto
251         (expand_builtin_classify_type): Ditto.
252         (mathfn_built_in_1): Ditto.
253         (expand_builtin_cexpi): Ditto.
254         (expand_builtin_mempcpy_args): Ditto.
255         (expand_builtin_stpcpy): Ditto.
256         (gimplify_va_arg_expr): Ditto.
257         (expand_builtin_sync_operation): Ditto.
258         (build_builtin_expect_predicate): Ditto.
259         (fold_builtin_memory_op): Ditto.
260         (fold_builtin_strcpy): Ditto.
261         (fold_builtin_stpcpy): Ditto.
262         (fold_builtin_strncpy): Ditto.
263         (fold_builtin_interclass_mathfn): Ditto.
264         (fold_builtin_classify): Ditto.
265         (fold_builtin_2): Ditto.
266         (fold_builtin_strstr): Ditto.
267         (fold_builtin_strrchr): Ditto.
268         (fold_builtin_strpbrk): Ditto.
269         (fold_builtin_strcat): Ditto.
270         (fold_builtin_strncat): Ditto.
271         (fold_builtin_strcspn): Ditto.
272         (fold_builtin_fputs): Ditto.
273         (fold_builtin_sprintf): Ditto.
274         (fold_builtin_snprintf): Ditto.
275         (expand_builtin_memory_chk): Ditto.
276         (fold_builtin_memory_chk): Ditto.
277         (fold_builtin_stxcpy_chk): Ditto.
278         (fold_builtin_strncpy_chk): Ditto.
279         (fold_builtin_strcat_chk): Ditto.
280         (fold_builtin_strncat_chk): Ditto.
281         (fold_builtin_sprintf_chk_1): Ditto.
282         (fold_builtin_snprintf_chk_1): Ditto.
283         (fold_builtin_printf): Ditto.
284         (fold_builtin_fprintf): Ditto.
285         (fold_call_stmt): Ditto.
286         (set_builtin_user_assembler_name): Ditto.
287         * tree-emutls.c (emutls_common_1): Ditto.
288         * omp-low.c (scan_omp): Ditto.
289         (lower_rec_input_clauses): Ditto.
290         (lower_reduction_clauses): Ditto.
291         (expand_parallel_call): Ditto.
292         (expand_task_call): Ditto.
293         (maybe_catch_exception): Ditto.
294         (optimize_omp_library_calls): Ditto.
295         (expand_omp_for_generic): Ditto.
296         (expand_omp_for_static_nochunk): Ditto.
297         (expand_omp_for_static_chunk): Ditto.
298         (expand_omp_sections): Ditto.
299         (expand_omp_atomic_fetch_op): Ditto.
300         (expand_omp_atomic_pipeline): Ditto.
301         (expand_omp_atomic_mutex): Ditto.
302         (lower_omp_single_simple): Ditto.
303         (lower_omp_single_copy): Ditto.
304         (lower_omp_master): Ditto.
305         (lower_omp_ordered): Ditto.
306         (lower_omp_critical): Ditto.
307         * tree-ssa-ccp.c (optimize_stdarg_builtin): Ditto.
308         * builtins.c (DEF_BUILTIN_STUB): Ditto.
309         (BUILT_IN_NONE): Ditto.
310         * tree-ssa-math-opts.c (execute_optimize_bswap): Ditto.
311         * gimple-low.c (lower_function_body): Ditto.
312         (lower_builtin_setjmp): Ditto.
313         * c-decl.c (merge_decls): Ditto.
314         * tree-eh.c (lower_resx): Ditto.
315         (lower_resx): Ditto.
316         (lower_eh_dispatch): Ditto.
317         * function (gimplify_parameters): Ditto.
318         * c-typeck.c (build_function_call_vec): Ditto.
319         * gimplify.c (build_stack_save_restore): Ditto.
320         (gimplify_vla_decl): Ditto.
321         (gimplify_modify_expr_to_memcpy): Ditto.
322         (gimplify_modify_expr_to_memset): Ditto.
323         (gimplify_variable_sized_compare): Ditto.
324         (gimplify_function_tree): Ditto.
325         * calls.c (emit_call_1): Ditto.
326         * tree-ssa-forprop.c (simplify_builtin_call): Ditto.
327         * tree-nested.c (convert_nl_goto_reference): Ditto.
328         (convert_tramp_reference_op): Ditto.
329         (finalize_nesting_tree_1): Ditto.
330         * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Ditto.
331         (tree_ssa_prefetch_arrays): Ditto.
332         * tree-streamer-in.c (streamer_get_builtin_tree): Ditto.
333         * system.h (built_in_decls): Ditto.
334         (implicit_built_in_decls): Ditto.
335         * tree-vect-generic.c (expand_vector_operations_1): Ditto.
336         * config/sparc/sparc.c (sparc_gimplify_va_arg): Ditto.
337         * config/i386/i386.c (ix86_gimplify_va_arg): Ditto.
338         (ix86_veclibabi_svml): Ditto.
339         (ix86_veclibabi_acml): Ditto.
340         * config/vms/vms.c (vms_patch_builtins): Ditto.
341         * config/ia64/ia64.c (ia64_init_builtins): Ditto.
342         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Ditto.
343         (rs6000_builtin_vectorized_libmass): Ditto.
344         (rs6000_init_builtins): Ditto.
345         * config/darwin.c (darwin_override_options): Ditto.
346         (darwin_patch_builtin): Ditto.
347         (darwin_rename_builtins): Ditto.
348         * config/pa/pa.c (pa_init_builtins): Ditto.
349
350 2011-10-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
351
352         * tree.h (copy_ref_info): Expose existing function.
353         * tree-ssa-loop-ivopts.c (copy_ref_info): Move function to...
354         * tree-ssa-address.c (copy_ref_info): ...here, and remove static token.
355
356 2011-10-11  Georg-Johann Lay  <avr@gjlay.de>
357
358         * config/avr/avr-protos.h (avr_mode_code_base_reg_class): New prototype.
359         (avr_regno_mode_code_ok_for_base_p): New prototype.
360         * config/avr/avr.h (BASE_REG_CLASS): Remove.
361         (REGNO_OK_FOR_BASE_P): Remove.
362         (REG_OK_FOR_BASE_NOSTRICT_P): Remove.
363         (REG_OK_FOR_BASE_STRICT_P): Remove.
364         (MODE_CODE_BASE_REG_CLASS): New define.
365         (REGNO_MODE_CODE_OK_FOR_BASE_P): New define.
366         * config/avr/avr.c (avr_mode_code_base_reg_class): New function.
367         (avr_regno_mode_code_ok_for_base_p): New function.
368         (avr_reg_ok_for_addr_p): New static function.
369         (avr_legitimate_address_p): Use it.  Beautify.
370
371 2011-10-11  Georg-Johann Lay  <avr@gjlay.de>
372
373         PR target/50447
374         * config/avr/avr.md (cc): Add out_plus attribute alternative.
375         (addsi3): Use it.  Adapt avr_out_plus to new prototype.  Use
376         avr_out_plus for all CONST_INT addends.
377         * config/avr/avr-protos.h (avr_out_plus): Change prototype.
378         * config/avr/avr.c (notice_update_cc): Call avr_out_plus on
379         CC_OUT_PLUS.
380         (avr_out_plus_1): Change prototype and report effect on cc0.
381         (avr_out_plus): Ditto.
382         (adjust_insn_length): Adapt call to avr_out_plus to new prototype.
383
384 2011-10-11  H.J. Lu  <hongjiu.lu@intel.com>
385
386         * config/i386/i386.c (ix86_expand_special_args_builtin): Remove
387         the extra break.
388
389 2011-10-11  Artjoms Sinkarovs  <artyom.shinkaroff@gmail.com>
390
391         * doc/invoke.texi: Document new warning.
392         * common.opt (Wvector-operation-performance): Define new warning.
393         * tree-vect-generic.c (expand_vector_piecewise): Warn about expanded
394         vector operation.
395         (exapnd_vector_parallel): Warn about expanded vector operation.
396         (lower_vec_shuffle): Warn about expanded vector operation.
397         * c-typeck.c (c_build_vec_perm_expr): Store correct location
398         when creating VEC_PERM_EXPR.
399
400 2011-10-11  Richard Guenther  <rguenther@suse.de>
401
402         PR tree-optimization/50204
403         * tree-ssa-alias.c (get_continuation_for_phi_1): Split out
404         two argument handling from ...
405         (get_continuation_for_phi): ... here.  Handle arbitrary number
406         of PHI args.
407
408 2011-10-11  Paolo Carlini  <paolo.carlini@oracle.com>
409
410         PR c++/33067
411         * c-family/c-pretty-print.c (pp_c_floating_constant): Output
412         max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
413
414 2011-10-11  Richard Sandiford  <richard.sandiford@linaro.org>
415
416         * modulo-sched.c: Fix comment typo.  Mention the possibility
417         of using scheduling windows of II+1 cycles.
418
419 2011-10-11  Tristan Gingold  <gingold@adacore.com>
420
421         * doc/invoke.texi (C Dialect Options): Document
422         -fallow-parameterless-variadic-functions.
423         * c-parser.c (c_parser_parms_list_declarator): Handle it.
424
425 2011-10-10  Georg-Johann Lay  <avr@gjlay.de>
426
427         * config/avr/avr.c (avr_option_override): Set
428         flag_omit_frame_pointer to 0 if frame pointer is needed for
429         unwinding.
430
431 2011-10-10  Uros Bizjak  <ubizjak@gmail.com>
432
433         PR bootstrap/50665
434         * optabs.h (DOI_vec_perm): Rename from OTI_vec_perm.  Move from enum
435         optab_index to enum direct_optab_index.
436         (vec_perm_optab): Update.
437
438 2011-10-10  Anatoly Sokolov  <aesok@post.ru>
439
440         * config/cris/cris.c (cris_preferred_reload_class): New function.
441         (TARGET_PREFERRED_RELOAD_CLASS): Define.
442         * config/cris/cris.h (PREFERRED_RELOAD_CLASS): Remove.
443
444 2011-10-10  Georg-Johann Lay  <avr@gjlay.de>
445
446         * config/avr/avr.md (*tablejump_rjmp): Change insn condition to
447         !AVR_HAVE_JMP_CALL.
448         (*tablejump_lib): Change insn condition to AVR_HAVE_JMP_CALL.
449         (*tablejump_enh, *tablejump): Remove insns.
450         * config/avr/libgcc.S (__tablejump__): Use RET instead of EIND +
451         EIJMP for indirect jump.  Use LPM Z+ where available.
452
453 2011-10-10  Richard Henderson  <rth@redhat.com>
454
455         * doc/md.texi (vec_perm_const): Fix typo in cindex.
456
457 2011-10-10  Kirill Yukhin  <kirill.yukhin@intel.com>
458             Yakovlev Vladimir  <vladimir.b.yakovlev@intel.com>
459
460         * config/i386/sse.md (fma_fnmsub_<mode>): Fix a typo.
461
462 2011-10-10  Richard Guenther  <rguenther@suse.de>
463
464         PR middle-end/50389
465         * gimple-fold.c (gimplify_and_update_call_from_tree): Do not
466         mark symbols for renaming.  Append the VUSE to all statements
467         that possibly can have one.
468
469 2011-10-10  Richard Guenther  <rguenther@suse.de>
470
471         * ipa-split.c (pass_split_functions): Add verification TODOs.
472         (pass_feedback_split_functions): Likewise.
473
474 2011-10-10  Richard Guenther  <rguenther@suse.de>
475
476         PR middle-end/50195
477         * fold-const.c (fold_binary_loc): Canonicalize x*x to pow (x, 2)
478         only when optimizing.
479
480 2011-10-10  Nick Clifton  <nickc@redhat.com>
481
482         PR middle-end/49801
483         * compare-elim.c (find_comparisons_in_bb): Use df_get_live_in and
484         df_get_live_out instead of accessing the bitmaps directly.
485         (execute_compare_elim_after_reload): Remove calls to df_set_flags,
486         df_live_add_problem and df_analyze.
487
488 2011-10-10  Michael Matz  <matz@suse.de>
489
490         PR middle-end/50638
491         * tree-emutls.c (gen_emutls_addr): Call add_referenced_var.
492
493 2011-10-10  Richard Sandiford  <richard.sandiford@linaro.org>
494
495         * modulo-sched.c (ps_reg_move_info): Add num_consecutive_stages.
496         (SCHED_FIRST_REG_MOVE, SCHED_NREG_MOVES): Delete.
497         (node_sched_params): Remove first_reg_move and nreg_moves.
498         (ps_num_consecutive_stages, extend_node_sched_params): New functions.
499         (update_node_sched_params): Move up file.
500         (print_node_sched_params): Print the stage.  Don't dump info related
501         to first_reg_move and nreg_moves.
502         (set_columns_for_row): New function.
503         (set_columns_for_ps): Move up file and use set_columns_for_row.
504         (schedule_reg_move): New function.
505         (schedule_reg_moves): Call extend_node_sched_params and
506         schedule_reg_move.  Extend size of uses bitmap.  Initialize
507         num_consecutive_stages.  Return false if a move could not be
508         scheduled.
509         (apply_reg_moves): Don't emit moves here.
510         (permute_partial_schedule): Handle register moves.
511         (duplicate_insns_of_cycles): Remove for_prolog.  Emit moves according
512         to the same stage-count test as ddg nodes.
513         (generate_prolog_epilog): Update calls accordingly.
514         (sms_schedule): Allow move-scheduling to add a new first stage.
515
516 2011-10-10  Richard Sandiford  <richard.sandiford@linaro.org>
517
518         * modulo-sched.c (ps_insn): Adjust comment.
519         (ps_reg_move_info): New structure.
520         (partial_schedule): Add reg_moves field.
521         (SCHED_PARAMS): Use node_sched_param_vec instead of node_sched_params.
522         (node_sched_params): Turn first_reg_move into an identifier.
523         (ps_reg_move): New function.
524         (ps_rtl_insn): Cope with register moves.
525         (ps_first_note): Adjust comment and assert that the instruction
526         isn't a register move.
527         (node_sched_params): Replace with...
528         (node_sched_param_vec): ...this vector.
529         (set_node_sched_params): Adjust accordingly.
530         (print_node_sched_params): Take a partial schedule instead of a ddg.
531         Use ps_rtl_insn and ps_reg_move.
532         (generate_reg_moves): Rename to...
533         (schedule_reg_moves): ...this.  Remove rescan parameter.  Record each
534         move in the partial schedule, but don't emit it here.  Don't perform
535         register substitutions here either.
536         (apply_reg_moves): New function.
537         (duplicate_insns_of_cycles): Use register indices directly,
538         rather than finding instructions using PREV_INSN.  Use ps_reg_move.
539         (sms_schedule): Call schedule_reg_moves before committing to
540         a partial schedule.   Try the next ii if the schedule fails.
541         Use apply_reg_moves instead of generate_reg_moves.  Adjust
542         call to print_node_sched_params.  Free node_sched_param_vec
543         instead of node_sched_params.
544         (create_partial_schedule): Initialize reg_moves.
545         (free_partial_schedule): Free reg_moves.
546
547 2011-10-10  Richard Sandiford  <richard.sandiford@linaro.org>
548
549         * modulo-sched.c (ps_insn): Replace node field with an identifier.
550         (SCHED_ASAP): Replace with..
551         (NODE_ASAP): ...this macro.
552         (SCHED_PARAMS): New macro.
553         (SCHED_TIME, SCHED_FIRST_REG_MOVE, SCHED_NREG_MOVES, SCHED_ROW)
554         (SCHED_STAGE, SCHED_COLUMN): Redefine using SCHED_PARAMS.
555         (node_sched_params): Remove asap.
556         (ps_rtl_insn, ps_first_note): New functions.
557         (set_node_sched_params): Use XCNEWVEC.  Don't copy across the
558         asap values.
559         (print_node_sched_params): Use SCHED_PARAMS and NODE_ASAP.
560         (generate_reg_moves): Pass ids to the SCHED_* macros.
561         (update_node_sched_params): Take a ps insn identifier rather than
562         a node as parameter.  Use ps_rtl_insn.
563         (set_columns_for_ps): Update for above field and SCHED_* macro changes.
564         (permute_partial_schedule): Use ps_rtl_insn and ps_first_note.
565         (optimize_sc): Update for above field and SCHED_* macro changes.
566         Update calls to try_scheduling_node_in_cycle and
567         update_node_sched_params.
568         (duplicate_insns_of_cycles): Adjust for above field and SCHED_*
569         macro changes.  Use ps_rtl_insn and ps_first_note.
570         (sms_schedule): Pass ids to the SCHED_* macros.
571         (get_sched_window): Adjust for above field and SCHED_* macro changes.
572         Use NODE_ASAP instead of SCHED_ASAP.
573         (try_scheduling_node_in_cycle): Remove node parameter.  Update
574         call to ps_add_node_check_conflicts.  Pass ids to the SCHED_*
575         macros.
576         (sms_schedule_by_order): Update call to try_scheduling_node_in_cycle.
577         (ps_insert_empty_row): Adjust for above field changes.
578         (compute_split_row): Use ids rather than nodes.
579         (verify_partial_schedule): Adjust for above field changes.
580         (print_partial_schedule): Use ps_rtl_insn.
581         (create_ps_insn): Take an id rather than a node.
582         (ps_insn_find_column): Adjust for above field changes.
583         Use ps_rtl_insn.
584         (ps_insn_advance_column): Adjust for above field changes.
585         (add_node_to_ps): Remove node parameter.  Update call to
586         create_ps_insn.
587         (ps_has_conflicts): Use ps_rtl_insn.
588         (ps_add_node_check_conflicts): Replace node parameter than an id.
589
590 2011-10-10  Richard Sandiford  <richard.sandiford@linaro.org>
591
592         * modulo-sched.c (undo_replace_buff_elem): Delete.
593         (generate_reg_moves): Don't build and return an undo list.
594         (free_undo_replace_buff): Delete.
595         (sms_schedule): Adjust call to generate_reg_moves.
596         Don't call free_undo_replace_buff.
597
598 2011-10-10  Matthias Klose <doko@ubuntu.com>
599
600         * common/config/m32c: Remove empty directory.
601
602 2011-10-10  Georg-Johann Lay  <avr@gjlay.de>
603
604         * config/avr/avr.md (*mulhi3_enh): Treat squaring smarter.
605
606 2011-10-10  Georg-Johann Lay  <avr@gjlay.de>
607
608         PR target/50652
609         * config/avr/avr-mcus.def (AVR_MCU): Set .data_section_start of
610         atmega164a to 0x100.
611
612 2011-10-09  Eric Botcazou  <ebotcazou@adacore.com>
613
614         * tree-ssa-forwprop.c (forward_propagate_into_comparison): Do not make
615         the replacement if the conversion to the LHS type is not useless.
616
617 2011-10-09  Ira Rosen  <ira.rosen@linaro.org>
618
619         PR tree-optimization/50635
620         * tree-vect-patterns.c (vect_handle_widen_mult_by_const): Add
621         DEF_STMT to the list of statements to be replaced by the
622         pattern statements.
623         (vect_handle_widen_mult_by_const): Don't check TYPE_OUT.
624
625 2011-10-09  Anatoly Sokolov  <aesok@post.ru>
626
627         * system.h: Commit forgotten hunk in previous patch.
628         (OUTPUT_ADDR_CONST_EXTRA): Poison.
629
630 2011-10-08  Nicola Pero  <nicola.pero@meta-innovation.com>
631
632         PR libobjc/50428
633         * doc/objc.texi (Garbage Collection): Updated example to protect
634         +initialize against execution in subclasses.
635
636 2011-10-07  Richard Henderson  <rth@redhat.com>
637
638         * doc/extend.texi (__builtin_shuffle): Improve the description to
639         include the modulus of the selector.  Mention OpenCL.
640         * doc/md.texi (vec_perm, vec_perm_const): Document named patterns.
641
642         * tree.def (VEC_PERM_EXPR): Rename from VEC_SHUFFLE_EXPR.
643         * genopinit.c (optabs): Rename vshuffle to vec_perm.
644         * c-typeck.c (c_build_vec_perm_expr): Rename from
645         c_build_vec_shuffle_expr.  Update for name changes.
646         * optabs.c (expand_vec_perm_expr_p): Rename from
647         expand_vec_shuffle_expr_p.
648         (expand_vec_perm_expr): Rename from expand_vec_shuffle_expr.
649         * optabs.h (OTI_vec_perm): Rename from DOI_vshuffle.
650         (vec_perm_optab): Rename from vshuffle_optab.
651         * expr.c, gimple-pretty-print.c, gimple.c, gimplify.c,
652         c-tree.h, c-parser.c, tree-cfg.c, tree-inline.c, tree-pretty-print.c,
653         tree-ssa-operands.c, tree-vect-generic.c: Update for name changes.
654
655         * config/i386/i386.c (ix86_expand_vec_perm): Rename from
656         ix86_expand_vshuffle.
657         * config/i386/i386-protos.h: Update.
658         * config/i386/sse.md (VEC_PERM_AVX2): Rename from VSHUFFLE_AVX2.
659         (vec_perm<VEC_PERM_AVX2>): Rename from vshuffle<VSHUFFLE_AVX2>.
660
661 2011-10-07  Richard Henderson  <rth@redhat.com>
662
663         * config/i386/predicates.md (avx2_pblendw_operand): New.
664         * config/i386/sse.md (sse4_1_pblendw): Un-macroize.
665         (avx2_pblendw, *avx2_pblendw): New expander and insn.
666
667 2011-10-07  Richard Henderson  <rth@redhat.com>
668
669         * config/i386/i386.c (bdesc_args): Update code for
670         __builtin_ia32_palignr256.  Change type of __builtin_ia32_pslldqi256,
671         and __builtin_ia32_psrldqi256 to V4DI_FTYPE_V4DI_INT_CONVERT.
672         (ix86_expand_args_builtin): Handle V4DI_FTYPE_V4DI_INT_CONVERT.
673         * config/i386/sse.md (mode iterator V16): Add V2TI.
674         (mode iterator SSESCALARMODE): Use V2TI not V4DI.
675         (mode attr ssse3_avx2): Add V2TI.
676         (avx2_lshrqv4di3, avx2_lshlqv4di3): Remove.
677
678 2011-10-07  David S. Miller  <davem@davemloft.net>
679
680         PR 50655
681         * configure.ac: Add .register directives to VIS3 test.
682         * configure: Regenerate.
683
684 2011-10-07  Richard Henderson  <rth@redhat.com>
685
686         * config.gcc (x86_64-*): Add core-avx-i, core-avx2 for with_cpu.
687
688 2011-10-07  Richard Henderson  <rth@redhat.com>
689
690         PR 49752
691         * fold-const.c (fold_checksum_tree): Remove out-of-date assert.
692
693 2011-10-07  Andrew Stubbs  <ams@codesourcery.com>
694
695         * config/arm/predicates.md (shift_amount_operand): Remove constant
696         range check.
697         (shift_operator): Check range of constants for all shift operators.
698
699 2011-10-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
700
701         * config/s390/s390.c (s390_emit_tls_call_insn): Remove assertion.
702         Load GOT pointer for non-pic builds.
703         (s390_load_got): Replace pic_offset_table_rtx with hardcoded r12.
704         (s390_emit_call): Likewise.
705
706 2011-10-07  Tom de Vries  <tom@codesourcery.com>
707
708         PR middle-end/50527
709         * tree.c (build_common_builtin_nodes): Add local_define_builtin for
710         BUILT_IN_ALLOCA_WITH_ALIGN.  Mark that BUILT_IN_ALLOCA_WITH_ALIGN can
711         throw.
712         * builtins.c (expand_builtin_alloca): Handle BUILT_IN_ALLOCA_WITH_ALIGN
713         arglist.  Set align for BUILT_IN_ALLOCA_WITH_ALIGN.
714         (expand_builtin): Handle BUILT_IN_ALLOCA_WITH_ALIGN.
715         (is_inexpensive_builtin): Handle BUILT_IN_ALLOCA_WITH_ALIGN.
716         * tree-ssa-ccp.c (evaluate_stmt): Set align for
717         BUILT_IN_ALLOCA_WITH_ALIGN.
718         (fold_builtin_alloca_for_var): Rename to ...
719         (fold_builtin_alloca_with_align): Set DECL_ALIGN from 2nd
720         BUILT_IN_ALLOCA_WITH_ALIGN argument.
721         (ccp_fold_stmt): Try folding BUILT_IN_ALLOCA_WITH_ALIGN using
722         fold_builtin_alloca_with_align.
723         (optimize_stack_restore): Handle BUILT_IN_ALLOCA_WITH_ALIGN.
724         * builtins.def (BUILT_IN_ALLOCA_WITH_ALIGN): Declare using
725         DEF_BUILTIN_STUB.
726         * ipa-pure-const.c (special_builtin_state): Handle
727         BUILT_IN_ALLOCA_WITH_ALIGN.
728         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1)
729         (call_may_clobber_ref_p_1): Same.
730         * function.c (gimplify_parameters): Lower vla to
731         BUILT_IN_ALLOCA_WITH_ALIGN.
732         * gimplify.c (gimplify_vla_decl): Same.
733         * cfgexpand.c (expand_call_stmt): Handle BUILT_IN_ALLOCA_WITH_ALIGN.
734         * tree-mudflap.c (mf_xform_statements): Same.
735         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary)
736         (mark_all_reaching_defs_necessary_1, propagate_necessity): Same.
737         * varasm.c (incorporeal_function_p): Same.
738         * tree-object-size.c (alloc_object_size): Same.
739         * gimple.c (gimple_build_call_from_tree): Same.
740
741 2011-10-07  Bernd Schmidt  <bernds@codesourcery.com>
742
743         * function.c (frame_required_for_rtx): Remove function.
744         (requires_stack_frame_p): New arg set_up_by_prologue.  All callers
745         changed.  Compute a set of mentioned registers and compare against
746         the new arg rather than calling frame_required_for_rtx.
747         (thread_prologue_and_epilogue_insns): Compute the set_up_by_prologue
748         reg set.  Convert the unconverted_simple_returns mechanism to store
749         jump insns rather than their basic blocks.  Also check the
750         orig_entry_edge destination for new blocks.
751
752 2011-10-07  Jakub Jelinek  <jakub@redhat.com>
753
754         PR tree-optimization/50650
755         * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): Don't
756         call vect_is_simple_cond here, instead fail if cond_expr isn't
757         COMPARISON_CLASS_P or if get_vectype_for_scalar_type returns NULL
758         for cond_expr's first operand.
759         * tree-vect-stmts.c (vect_is_simple_cond): Static again.
760         * tree-vectorizer.h (vect_is_simple_cond): Remove prototype.
761
762 2011-10-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
763
764         * config/s390/s390.md (DWH, dwh): New mode macros.
765         ("umulsidi3"): Extend to support "umulditi3" as well.
766
767 2011-10-07  Uros Bizjak  <ubizjak@gmail.com>
768             H.J. Lu  <hongjiu.lu@intel.com>
769
770         PR target/50603
771         * config/i386/i386.c (ix86_fixup_binary_operands): Force src2 of
772         integer PLUS RTX to a register to improve address combine.
773
774 2011-10-06  Richard Henderson  <rth@redhat.com>
775
776         * combine-stack-adjust.c (maybe_move_args_size_note): Add after
777         parameter; use it to decide whether to merge two notes.
778         (combine_stack_adjustments_for_block): Use maybe_move_args_size_note
779         for the deallocation case as well.
780
781 2011-10-06  Anatoly Sokolov  <aesok@post.ru>
782
783         * system.h (OUTPUT_ADDR_CONST_EXTRA): Poison.
784         * doc/tm.texi.in (OUTPUT_ADDR_CONST_EXTRA): Remove documentation.
785         * doc/tm.texi: Regenerate.
786         * target.def (output_addr_const_extra): Use
787         hook_bool_FILEptr_rtx_false.
788         * targhooks.c (default_asm_output_addr_const_extra): Remove.
789         * targhooks.h (default_asm_output_addr_const_extra): Remove.
790         * hooks.c (hook_bool_FILEptr_rtx_false): New functions.
791         * hooks.h (hook_bool_FILEptr_rtx_false): Declare.
792
793 2011-10-06  David S. Miller  <davem@davemloft.net>
794
795         * config/sparc/sparc.md (popcount<mode>2, clz<mode>2): Split up into...
796         (popcountdi2, popcountsi2, clzdi2, clzsi2): Explicit expanders, in the
797         SI mode 64-bit code gen case explicitly zero-extend and truncate.
798         (*popcount<mode>_sp64): Split up into...
799         (*popcountdi_sp64, *popcountsi_64): Explicit instantiations, and in the
800         SImode case use truncate.
801         (*clzsi_sp64): Rewrite to use truncate, and let the expander emit the
802         subtract so the compiler can optimize it.
803         (SIDI): Remove unused mode iterator.
804
805 2011-10-06  Bernd Schmidt  <bernds@codesourcery.com>
806
807         * function.c (thread_prologue_and_epilogue_insns): Emit split prologue
808         on the orig_entry_edge. Don't account for it in prologue_clobbered.
809
810 2011-10-06  Jakub Jelinek  <jakub@redhat.com>
811
812         PR tree-optimization/50596
813         * tree-vectorizer.h (vect_is_simple_cond): New prototype.
814         (NUM_PATTERNS): Change to 6.
815         * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): New
816         function.
817         (vect_vect_recog_func_ptrs): Add vect_recog_mixed_size_cond_pattern.
818         (vect_mark_pattern_stmts): Don't create stmt_vinfo for def_stmt
819         if it already has one, and don't set STMT_VINFO_VECTYPE in it
820         if it is already set.
821         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Handle
822         COND_EXPR in pattern stmts.
823         (vect_is_simple_cond): No longer static.
824
825 2001-10-06  Richard Henderson  <rth@redhat.com>
826
827         * config/i386/i386.c (ix86_expand_vshuffle): Add AVX2 support.
828         * config/i386/sse.md (sseshuffint): Remove.
829         (sseintvecmode): Support V16HI, V8HI, V32QI, V16QI.
830         (VSHUFFLE_AVX2): New mode iterator.
831         (vshuffle<mode>): Use it.
832         (avx_vec_concat<V_256>): Rename from *vec_concat<V_256>_avx.
833
834         * config/i386/i386.c (ix86_expand_sse_movcc): Use correct mode
835         for vector_all_ones_operand.
836         (ix86_expand_int_vcond): Distinguish between comparison mode
837         and data mode.  Allow them to differ.
838         (ix86_expand_vshuffle): Don't force data mode to match maskmode.
839
840 2001-10-06  Richard Henderson  <rth@redhat.com>
841
842         * optabs.c (expand_vec_shuffle_expr): Use the proper mode for the
843         mask operand.  Tidy the code.
844
845 2011-10-06  Jakub Jelinek  <jakub@redhat.com>
846
847         * tree-vect-patterns.c (vect_pattern_recog_1): Use
848         vect_recog_func_ptr typedef for the first argument.
849         (vect_pattern_recog): Rename vect_recog_func_ptr variable
850         to vect_recog_func, use vect_recog_func_ptr typedef for it.
851
852         PR tree-optimization/49279
853         * tree-ssa-structalias.c (find_func_aliases): Don't handle
854         CAST_RESTRICT.
855         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Allow
856         restrict propagation.
857         * tree-ssa.c (useless_type_conversion_p): Don't return false
858         if TYPE_RESTRICT differs.
859
860 2011-10-06  Bernd Schmidt  <bernds@codesourcery.com>
861
862         * function.c (thread_prologue_and_epilogue_insns): Build a vector
863         of unconverted simple return blocks rather than trying to
864         recompute them later based on bb_flags bitmap tests.
865
866 2011-10-06  Michael Matz  <matz@suse.de>
867
868         * tree-flow.h (get_var_ann): Don't declare.
869         * tree-flow-inline.h (get_var_ann): Remove.
870         (set_is_used): Use var_ann, not get_var_ann.
871         * tree-dfa.c (add_referenced_var): Inline body of get_var_ann.
872         * tree-profile.c (gimple_gen_edge_profiler): Call
873         find_referenced_var_in.
874         (gimple_gen_interval_profiler): Ditto.
875         (gimple_gen_pow2_profiler): Ditto.
876         (gimple_gen_one_value_profiler): Ditto.
877         (gimple_gen_average_profiler): Ditto.
878         (gimple_gen_ior_profiler): Ditto.
879         (gimple_gen_ic_profiler): Ditto plus call add_referenced_var.
880         (gimple_gen_ic_func_profiler): Call add_referenced_var.
881         * tree-mudflap.c (execute_mudflap_function_ops): Call
882         add_referenced_var.
883
884 2011-10-06  Jakub Jelinek  <jakub@redhat.com>
885
886         * tree-vect-patterns.c (vect_handle_widen_mult_by_const): For lhs
887         don't set SSA_NAME_DEF_STMT that has been already set by
888         gimple_build_assign_with_ops.
889         (vect_recog_pow_pattern, vect_recog_widen_sum_pattern,
890         vect_operation_fits_smaller_type, vect_recog_over_widening_pattern):
891         Likewise.
892
893         * tree.h (avoid_folding_inline_builtin): New prototype.
894         * builtins.c (avoid_folding_inline_builtin): No longer static.
895         * gimple-fold.c (gimple_fold_builtin): Give up if
896         avoid_folding_inline_builtin returns true.
897
898 2011-10-06  Richard Guenther  <rguenther@suse.de>
899
900         * tree-vect-generic.c (vector_element): Look at previous
901         generated results.
902
903 2011-10-06  David Edelsohn  <dje.gcc@gmail.com>
904
905         PR target/39950
906         * config/rs6000/aix.h (TARGET_OS_AIX_CPP_BUILTINS): Define
907         __powerpc__, __PPC__, __unix__.
908
909 2011-10-06  Michael Matz  <matz@suse.de>
910
911         * i386/i386.opt (recip_mask, recip_mask_explicit,
912         x_recip_mask_explicit): New variables and cl_target member.
913         (mrecip=): New option.
914         * i386/i386.h (RECIP_MASK_DIV, RECIP_MASK_SQRT, RECIP_MASK_VEC_DIV,
915         RECIP_MASK_VEC_SQRT, RECIP_MASK_ALL, RECIP_MASK_NONE): New bitmasks.
916         (TARGET_RECIP_DIV, TARGET_RECIP_SQRT, TARGET_RECIP_VEC_DIV,
917         TARGET_RECIP_VEC_SQRT): New tests.
918         * i386/i386.md (divsf3): Check TARGET_RECIP_DIV.
919         (sqrt<mode>2): Check TARGET_RECIP_SQRT.
920         * i386/sse.md (div<mode>3): Check TARGET_RECIP_VEC_DIV.
921         (sqrt<mode>2): Check TARGET_RECIP_VEC_SQRT.
922         * i386/i386.c (ix86_option_override_internal): Set recip_mask
923         for -mrecip and -mrecip=options.
924         (ix86_function_specific_save): Save recip_mask_explicit.
925         (ix86_function_specific_restore): Restore recip_mask_explicit.
926
927         * doc/invoke.texi (ix86 Options): Document the new option.
928
929 2011-10-06  Bernd Schmidt  <bernds@codesourcery.com>
930
931         PR target/49049
932         * config/arm/arm.md (arm_subsi3_insn): Lose the last alternative.
933
934 2011-10-06  Ulrich Weigand  <ulrich.weigand@linaro.org>
935
936         PR target/50305
937         * config/arm/arm.c (arm_legitimize_reload_address): Recognize
938         output of a previous pass through legitimize_reload_address.
939         Do not attempt to optimize addresses if the base register is
940         equivalent to a constant.
941
942 2011-10-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
943
944         * function.c (thread_prologue_and_epilogue_insns): Mark
945         last_bb_active as possibly unused.  It is unused for targets which
946         do neither have "return" nor "simple_return" expanders.
947
948 2011-10-06  Richard Guenther  <rguenther@suse.de>
949
950         * fold-const.c (fold_ternary_loc): Also fold non-constant
951         vector CONSTRUCTORs.  Make more efficient.
952         * tree-ssa-dom.c (cprop_operand): Don't handle virtual operands.
953         (cprop_into_stmt): Don't propagate into virtual operands.
954         (optimize_stmt): Really dump original statement.
955
956 2011-10-06  Nick Clifton  <nickc@redhat.com>
957
958         * config/rx/rx.md (smin3): Revert previous delta.
959
960 2011-10-06  Richard Guenther  <rguenther@suse.de>
961
962         PR tree-optimization/38884
963         * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle partial
964         reads from aggregate SSA names.
965
966 2011-10-05  Jakub Jelinek  <jakub@redhat.com>
967
968         * tree-vect-patterns.c (vect_pattern_recog_1): Add stmts_to_replace
969         argument, truncate it at the beginning instead of allocating there
970         and freeing at the end.
971         (vect_pattern_recog): Allocate stmts_to_replace here and free at end,
972         pass its address to vect_pattern_recog_1.
973
974 2011-10-05  David S. Miller  <davem@davemloft.net>
975
976         * config/sparc/sparc.opt (POPC): New option.
977         * doc/invoke.texi: Document it.
978         * config/sparc/sparc.c (sparc_option_override): Enable MASK_POPC by
979         default on Niagara-2 and later.
980         * config/sparc/sparc.h (CLZ_DEFINED_VALUE_AT_ZERO): Define.
981         * config/sparc/sparc.md (SIDI): New mode iterator.
982         (ffsdi2): Delete commented out pattern and comments.
983         (popcount<mode>2, clz<mode>2): New expanders.
984         (*popcount<mode>_sp64, popcountsi_v8plus, popcountdi_v8plus,
985         *clzdi_sp64, clzdi_v8plus, *clzsi_sp64, clzsi_v8plus): New insns.
986
987 2011-10-06  Artjoms Sinkarovs  <artyom.shinkaroff@gmail.com>
988
989         PR middle-end/50607
990         * c-tree.h (c_expr_t): New typedef for struct c_expr.
991         (C_EXPR_APPEND): New macro.
992         * c-parser.c (c_parser_get_builtin_args): Preserve
993         original_tree_code of c_expr structure.
994         (c_parser_postfix_expression): Adjust to the new function.
995
996 2011-10-05  Bernd Schmidt  <bernds@codesourcery.com>
997
998         * function.c (thread_prologue_and_epilogue_insns): Don't shrink-wrap
999         if profiling after the prologue.
1000
1001 2011-10-05  Jakub Jelinek  <jakub@redhat.com>
1002
1003         PR tree-optimization/50613
1004         * tree-ssa-strlen.c (find_equal_ptrs): If CASE_CONVERT
1005         operand is ADDR_EXPR, fallthru into ADDR_EXPR handling,
1006         and if it is neither that not SSA_NAME, give up.
1007
1008 2011-10-05  Richard Henderson  <rth@redhat.com>
1009
1010         * tree-vect-generic.c (vector_element): Never fail.  Use
1011         build_zero_cst.  Tidy up type references.
1012         (lower_vec_shuffle): Never fail.  Mask shuffle indicies.  Reduce
1013         code duplication.  Do update_stmt here ...
1014         (expand_vector_operations_1): ... not here.
1015
1016         * config/i386/i386.c (ix86_expand_vshuffle): Never fail.  Handle
1017         TARGET_XOP.  Fix pshufb constant vector creation.  Reduce code
1018         duplication.  Handle V2DI without SSE4.1.
1019         * config/i386/i386-protos.h (ix86_expand_vshuffle): Update decl.
1020         * config/i386/i386.md (vshuffle<V_128>): Remove assert for ok.
1021
1022 2011-10-05  Uros Bizjak  <ubizjak@gmail.com>
1023
1024         * config/i386/i386.c (distance_non_agu_define): Simplify calculation
1025         of "found".  Simplify return value calculation.
1026         (distance_agu_use): Ditto.
1027
1028 2011-10-05  Bernd Schmidt  <bernds@codesourcery.com>
1029
1030         PR bootstrap/50621
1031         * config/i386/i386.c (ix86_add_cfa_restore_note): Omit notes only
1032         if the function was not shrink-wrapped.
1033         (ix86_expand_epilogue): Ensure queued cfa_adjust notes are attached
1034         to an insn.
1035         * function.c (thread_prologue_and_epilogue_insns): Make sure the
1036         shrink_wrapped flag is set even if there is no dump file.
1037
1038 2011-10-05  DJ Delorie  <dj@redhat.com>
1039             Nick Clifton  <nickc@redhat.com>
1040
1041         * config/rx/rx.opt (mpid): Define.
1042         * config/rx/t-rx (MULTILIB_OPTIONS): Add -mpid
1043         (MULTILIB_DIRNAMES): Add pid.
1044         * config/rx/rx.c (rx_gp_base_regnum_val, rx_pid_base_regnum_val)
1045         (rx_num_interrupt_regs): New variable.
1046         (rx_gp_base_regnum): New function.  Returns the number of the
1047         small data area register.
1048         (rx_pid_base_regnum): New function.  Returns the number of the pid
1049         base register.
1050         (rx_decl_for_addr): New function.  Returns the symbolic part of a MEM.
1051         (rx_pid_data_operand): New function.  Returns whether an object is
1052         in the position independent data area.
1053         (rx_legitimize_address): New function.  Puts undecided PID
1054         objects in the PID data area.
1055         (rx_is_legitimate_address): Add support for PID operands.
1056         (rx_print_operand_address): Likewise.
1057         (rx_print_operand): Likewise.
1058         (rx_maybe_pidify_operand): New function.  Determine if an operand
1059         is suitable for PID addressing.
1060         (rx_gen_move_template): Add PID support.
1061         (rx_conditional_register_usage): Likewise.
1062         (rx_option_override): Initialise rx_num_interrupt_regs.
1063         (rx_is_legitimate_constant): Add support for PID constants.
1064         (TARGET_LEGITIMIZE_ADDRESS): Define.
1065         * config/rx/constraints.md (Rpid): Define.
1066         (Rpda): Define.
1067         * config/rx/rx.md (UNSPEC_PID_ADDR): Define.
1068         (tablejump): Add PID support.
1069         (mov<>): Likewise.
1070         (mov<>_internal): Likewise.
1071         (addsi3): Convert to an expander.  Add PID support.
1072         (pid_addr): New pattern.
1073         * config/rx/rx.h (CPP_SPEC): Define.
1074         (ASM_SPEC): Pass -mpid and -mint-register on to assembler.
1075         (CASE_VECTOR_PC_RELATIVE): Define.
1076         (JUMP_TABLES_IN_TEXT_SECTION): Enable for PID mode.
1077         * config/rx/rx-protos.h (rx_maybe_pidify_operand): Prototype.
1078         * doc/invoke.texi (RX Options): Document -mpid command line option.
1079
1080 2011-10-05  Richard Guenther  <rguenther@suse.de>
1081
1082         PR tree-optimization/38885
1083         * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle partial reads
1084         from constants.
1085
1086 2011-10-05  Bernd Schmidt  <bernds@codesourcery.com>
1087
1088         * doc/invoke.texi (-fshrink-wrap): Document.
1089         * opts.c (default_options_table): Add it.
1090         * common.opt (fshrink-wrap): Add.
1091         * function.c (emit_return_into_block): Remove useless declaration.
1092         (record_hard_reg_uses_1, record_hard_reg_uses, frame_required_for_rtx,
1093         requires_stack_frame_p, gen_return_pattern): New static functions.
1094         (emit_return_into_block): New arg simple_p.  All callers changed.
1095         Use gen_return_pattern.
1096         (thread_prologue_and_epilogue_insns): Implement shrink-wrapping.
1097         * config/i386/i386.md (return): Expand into a simple_return.
1098         (simple_return): New expander):
1099         (simple_return_internal, simple_return_internal_long,
1100         simple_return_pop_internal_long, simple_return_indirect_internal):
1101         Renamed from return_internal, return_internal_long,
1102         return_pop_internal_long and return_indirect_internal; changed to use
1103         simple_return.
1104         * config/i386/i386.c (ix86_expand_epilogue): Adjust to expand
1105         simple returns.
1106         (ix86_pad_returns): Likewise.
1107         * function.h (struct rtl_data): Add member shrink_wrapped.
1108         * cfgcleanup.c (outgoing_edges_match): If shrink-wrapped, edges that
1109         are not jumps or sibcalls can't be compared.
1110
1111 2011-10-05  Richard Guenther  <rguenther@suse.de>
1112
1113         * tree-ssa-sccvn.c (vn_get_expr_for): Handle CONSTRUCTOR of
1114         vector type.
1115         (simplify_unary_expression): Handle BIT_FIELD_REFs.
1116         (try_to_simplify): Handle BIT_FIELD_REFs.
1117
1118 2011-10-05  Georg-Johann Lay  <avr@gjlay.de>
1119
1120         * config/avr/avr-protos.h (avr_out_addto_sp): New prototype.
1121         * config/avr/avr.c (avr_out_addto_sp): New function.
1122         (adjust_insn_length): Handle ADJUST_LEN_ADDTO_SP.
1123         * config/avr/avr.md (adjust_len): Add "addto_sp".
1124         (*movhi_sp): Remove insn.
1125         (*addhi3_sp_R_pc2, *addhi3_sp_R_pc3): Merge to *addhi3_sp_R.
1126
1127 2011-10-05  Richard Guenther  <rguenther@suse.de>
1128
1129         * gimple-fold.c (gimple_fold_stmt_to_constant_1): For ternary ops
1130         with an embedded expression valueize and fold that as well.
1131         * tree-ssa-sccvn.c (try_to_simplify): Also allow SSA name
1132         results from gimple_fold_stmt_to_constant_1.
1133
1134 2011-10-05  Nick Clifton  <nickc@redhat.com>
1135
1136         * config/rx/rx.md (tablejump): Add missing label.
1137         (adddi3_internal): Mark operand 0 as early-clobbered.
1138         (smaxsi3): Revert previous delta.
1139         (adc_internal): Fix whitespace in generated asm.
1140         (adc_flags): Likewise.
1141
1142 2011-10-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1143
1144         * expmed.c (expand_mult_highpart_optab): Replace optab_handler
1145         with the new widening_optab_handler.
1146
1147 2011-10-05  Richard Guenther  <rguenther@suse.de>
1148
1149         PR tree-optimization/50609
1150         * gimple-fold.c (fold_array_ctor_reference): Also handle
1151         vector typed constructors.
1152         (fold_ctor_reference): Dispatch to fold_array_ctor_reference
1153         for vector typed constructors.
1154
1155 2011-10-05  Uros Bizjak  <ubizjak@gmail.com>
1156
1157         * config/i386/i386.c (ix86_emit_binop): New static function.
1158         (ix86_split_lea_for_addr): Use ix86_emit_binop to emit add and shl
1159         instructions.
1160         (x86_output_mi_thunk): Use ix86_emit_binop to emit add instructions.
1161
1162 2011-10-04  David S. Miller  <davem@davemloft.net>
1163
1164         * config/sparc/sparc.md (UNSPEC_FHADD, UNSPEC_FHSUB,
1165         UNSPEC_XMUL): New unspecs.
1166         (muldi3_v8plus): Use output_v8plus_mult.
1167         (*naddsf3, *nadddf3, *nmulsf3, *nmuldf3, *nmuldf3_extend):
1168         New VIS 3.0 combiner patterns.
1169         (fhaddsf_vis, fhadddf_vis, fhsubsf_vis, fhsubdf_vis,
1170         fnhaddsf_vis, fnhaddf_vis, umulxhi_vis, *umulxhi_sp64,
1171         umulxhi_v8plus, xmulx_vis, *xmulx_sp64, xmulx_v8plus,
1172         xmulxhi_vis, *xmulxhi_sp64, xmulxhi_v8plus): New VIS 3.0
1173         builtins patterns.
1174         * config/sparc/sparc.c (sparc_vis_init_builtins): Emit new builtins.
1175         (output_v8plus_mult): New function.
1176         * config/sparc/sparc-protos.h: Declare it.
1177         * config/sparc/visintrin.h (__vis_fhadds, __vis_fhaddd,
1178         __vis_fhsubs, __vis_fhsubd, __vis_fnhadds, __vis_fnhaddd,
1179         __vis_umulxhi, __vis_xmulx, __vis_xmulxhi): New intrinsics.
1180         * doc/extend.texi: Document new builtins.
1181
1182 2011-10-04  Richard Henderson  <rth@redhat.com>
1183
1184         * c-typeck.c (c_build_vec_shuffle_expr): Fix uninitialized variable.
1185         Avoid save_expr unless two_arguments.
1186
1187 2011-10-04  Ozkan Sezer  <sezeroz@gmail.com>
1188
1189         * config/i386/mingw-w64.h (CPP_SPEC): Rename _REENTRANCE to _REENTRANT.
1190         * config/i386/mingw32.h (CPP_SPEC): Likewise.
1191
1192 2011-10-04  David S. Miller  <davem@davemloft.net>
1193
1194         * config/sparc/driver-sparc.c (cpu_names): Fix string for supersparc
1195         under Linux.
1196
1197 2011-10-04  Jakub Jelinek  <jakub@redhat.com>
1198
1199         PR tree-optimization/50604
1200         * builtins.c (fold_builtin_strcpy, fold_builtin_stpcpy,
1201         fold_builtin_strncpy, fold_builtin_stxcpy_chk): Ensure
1202         last argument to memcpy has size_type_node type instead of ssizetype.
1203         * tree-ssa-strlen.c (handle_builtin_memcpy): Use size_type_node
1204         instead of TREE_TYPE (len) as type for newlen.
1205
1206         PR tree-optimization/50522
1207         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Don't test
1208         TYPE_RESTRICT.
1209         (ptr_derefs_may_alias_p): Call pt_solutions_same_restrict_base
1210         unconditionally.
1211
1212         * fold-const.c (fold_unary_loc): Don't optimize
1213         POINTER_PLUS_EXPR casted to TYPE_RESTRICT pointer by
1214         casting the inner pointer if it isn't TYPE_RESTRICT.
1215         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't through
1216         casts from non-TYPE_RESTRICT pointer to TYPE_RESTRICT pointer.
1217
1218 2011-10-04  Joseph Myers  <joseph@codesourcery.com>
1219
1220         * config.gcc (i[34567]86-*-elf*, x86_64-*-elf*): Use i386/t-crtstuff.
1221
1222 2011-10-04  Jan Hubicka  <jh@suse.cz>
1223
1224         * lto-streamer.h (lto_input_toplevel_asms): Add order_base parameter.
1225         * lto-streamer-in.c (lto_input_toplevel_asms): Stream in order.
1226         * lto-streamer-out.c (lto_output_toplevel_asms): Stream out order.
1227         * lto-cgraph.c (order_base): New static var.
1228         (lto_output_node): Stream in order.
1229         (lto_output_varpool_node): Stream out order.
1230         (input_node): Stream in order.
1231         (input_varpool_node): Stream out order.
1232         (input_cgraph_1): Initialize order base; update call of
1233         lto_input_toplevel_asms.
1234
1235 2011-10-04  Georg-Johann Lay  <avr@gjlay.de>
1236
1237         PR target/50566
1238         * config/avr/avr-protos.h (avr_legitimize_reload_address): New
1239         prototype.
1240         * config/avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Copy worker code
1241         from here...
1242         * config/avr/avr.c (avr_legitimize_reload_address) ...to this new
1243         function.  Log if avr_log.legitimize_reload_address.
1244
1245 2011-10-04  Eric Botcazou  <ebotcazou@adacore.com>
1246
1247         * config/sparc/sparc.c (sparc_fold_builtin): Use a sequence of tests.
1248
1249 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1250
1251         * longlong.h (smul_ppmm, sdiv_qrnnd): Add underscores to the local
1252         variables.  Fix second operand of DR.  Swap inputs for sdiv_qrnnd.
1253
1254 2011-10-03  David S. Miller  <davem@davemloft.net>
1255
1256         * config/sparc/sparc.md (fpack16_vis, fpackfix_vis, fpack32_vis): Make
1257         GSR_REG an input operand to UNSPEC instead of a parallel USE.
1258         (faligndata<V64I:mode>_vis): Likewise and use DI mode.
1259         (alignaddrsi_vis, alignaddrdi_vis, alignaddrlsi_vis, alignaddrldi_vis):
1260         Reference GSR_REG in DI mode, simplify convoluted expressions by using
1261         zero_extract.
1262         (bshuffle<V64I:mode>_vis): Reference GSR_REG in DI mode.
1263
1264 2011-10-03  Maxim Kuvyrkov  <maxim@codesourcery.com>
1265
1266         * tree-eh.c (remove_unreachable_handlers): Obvious cleanup.
1267
1268 2011-10-03  Jakub Jelinek  <jakub@redhat.com>
1269             Ian Lance Taylor  <iant@google.com>
1270
1271         * godump.c (go_output_typedef): Support printing enum values that
1272         don't fit in a signed HOST_WIDE_INT.
1273
1274 2011-10-03  Anatoly Sokolov  <aesok@post.ru>
1275
1276         * config/cris/cris.c (cris_output_addr_const_extra): Make static.
1277         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
1278         * config/cris/cris.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
1279         * config/cris/cris-protos.h (cris_output_addr_const_extra): Remove.
1280
1281 2011-10-03  Anatoly Sokolov  <aesok@post.ru>
1282
1283         * config/m68k/m68k.c (m68k_output_addr_const_extra): Make static.
1284         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
1285         * config/m68k/m68k.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
1286         * config/m68k/m68k-protos.h (m68k_output_addr_const_extra): Remove.
1287
1288 2011-10-03  Steve Ellcey  <sje@cup.hp.com>
1289
1290         PR target/49967
1291         * configure.ac (gcc_cv_ld_static_dynamic): Define for *-*-hpux*.
1292         (gcc_cv_ld_static_option): Ditto.
1293         (gcc_cv_ld_dynamic_option): Ditto.
1294         * configure: Regenerate.
1295
1296 2011-10-03  David S. Miller  <davem@davemloft.net>
1297
1298         * config/sparc/sparc.md (bmask<P:mode>_vis): Split into explicit 'di'
1299         and 'si' patterns which describe the GSR changes explicitly in the
1300         RTL using zero_extract.
1301         (bshuffle<V64I:mode>_vis): Put the GSR use inside of the unspec.
1302
1303         * config/sparc/sparc.md (bshuffle<V64I:mode>_vis): Don't wrap
1304         GSR_REG in a USE, since it's now a true arg to the UNSPEC.
1305
1306 2011-10-03  Artjoms Sinkarovs  <artyom.shinkaroff@gmail.com>
1307
1308         * optabs.c (expand_vec_shuffle_expr_p): New function. Checks
1309         if given expression can be expanded by the target.
1310         (expand_vec_shuffle_expr): New function. Expand VEC_SHUFFLE_EXPR
1311         using target vector instructions.
1312         * optabs.h: New optab vshuffle.
1313         (expand_vec_shuffle_expr_p): New prototype.
1314         (expand_vec_shuffle_expr): New prototype.
1315         (vshuffle_optab): New optab.
1316         * genopinit.c: Adjust to support vecshuffle.
1317         * c-tree.h (c_build_vec_shuffle_expr): New prototype.
1318         * expr.c (expand_expr_real_2): Adjust.
1319         * c-typeck.c: (c_build_vec_shuffle_expr): Build a VEC_SHUFFLE_EXPR
1320         recognizing the cases of two and three arguments.
1321         (convert_arguments) (build_binary_op)
1322         (scalar_to_vector) (build_array_ref): Spurious whitespace.
1323         * gimplify.c (gimplify_exp): Adjusted to support VEC_SHUFFLE_EXPR.
1324         * tree.def: New tree code VEC_SHUFFLE_EXPR.
1325         * tree-inline.c (estimate_operator_cost): Recognize VEC_SHUFFLE_EXPR.
1326         * tree-vect-generic.c (vector_element): New function. Returns an
1327         element of the vector at the given position.
1328         (lower_vec_shuffle): Checks if VEC_SHUFLLE_EXPR is supported
1329         by the backend or expand an expression piecewise.
1330         (expand_vector_operations_1): Adjusted.
1331         (gate_expand_vector_operations_noop): New gate function.
1332         * Makefile.in (tree-vect-generic.o): New include.
1333         * gimple.c (get_gimple_rhs_num_ops): Adjust.
1334         * tree-cfg.c (verify_gimple_assign_trenary): Verify VEC_SHUFFLE_EXPR.
1335         * passes.c: Move veclower down.
1336         * tree-pretty-print.c (dump_generic_node): Recognize
1337         VEC_SHUFFLE_EXPR as valid expression.
1338         * c-parser.c (c_parser_get_builtin_args): Helper function for the
1339         builtins with variable number of arguments.
1340         (c_parser_postfix_expression): Use a new helper function for
1341         RID_CHOOSE_EXPR, RID_BUILTIN_COMPLEX and RID_BUILTIN_SHUFFLE.
1342         * tree-ssa-operands: Adjust.
1343         * c-family/c-common.c: New __builtin_shuffle keyword.
1344         * c-family/c-common.h: New __builtin_shuffle keyword.
1345         * gcc/doc/extend.texi: Adjust.
1346
1347         * gcc/config/i386/sse.md: (sseshuffint) New mode_attr.  Correspondence
1348         between the vector and the type of the mask when shuffling.
1349         (vecshuffle<mode>): New expansion.
1350         * gcc/config/i386/i386-protos.h (ix86_expand_vshuffle): New prototype.
1351         * gcc/config/i386/i386.c (ix86_expand_vshuffle): New function.
1352         (ix86_vectorize_builtin_vec_perm_ok): Adjust.
1353
1354 2011-10-03  Jakub Jelinek  <jakub@redhat.com>
1355
1356         PR tree-optimization/50587
1357         * tree-ssa-reassoc.c (init_range_entry): Stop iterating when
1358         arg0 is not a SSA_NAME.
1359
1360 2011-10-03  Richard Sandiford  <rdsandiford@googlemail.com>
1361
1362         * ipa-inline-analysis.c (MAX_TIME): Update comment.
1363
1364 2011-10-02  Richard Henderson  <rth@redhat.com>
1365             David S. Miller  <davem@davemloft.net>
1366
1367         * config/sparc/sparc.md (ashlsi3, *ashldi3_sp64): Remove
1368         conditional insn type setting, we always emit a shift.
1369         (*ashlsi3_extend, *lshrsi3_extend0): New patterns.
1370         (*lshrsi3_extend): Rename to *lshrsi3_extend1.
1371         * config/sparc/predicates.md (const_one_operand): Delete.
1372
1373 2011-10-02  Gerald Pfeifer  <gerald@pfeifer.com>
1374
1375         * invoke.texi (SPARC Options): Refer to GNU/Linux.
1376
1377 2011-10-02  Richard Sandiford  <rdsandiford@googlemail.com>
1378
1379         * config/mips/mips.c (mips_frame_barrier): New function.
1380         (mips_expand_prologue): Call it after allocating stack space.
1381         (mips_deallocate_stack): New function.
1382         (mips_expand_epilogue): Call mips_frame_barrier and
1383         mips_deallocate_stack.
1384
1385 2011-10-02  Richard Sandiford  <rdsandiford@googlemail.com>
1386
1387         PR target/49696
1388         * config/mips/sync.md (sync_<optab>_12): Allow zero operands.
1389         (sync_old_<optab>_12, sync_new_<optab>_12, sync_nand_12): Likewise.
1390         (sync_old_nand_12, sync_new_nand_12, test_and_set_12): Likewise.
1391
1392 2011-10-02  Jan Hubicka  <jh@suse.cz>
1393
1394         * cgraphunit.c (verify_edge_count_and_frequency): Bounds check.
1395
1396         * cgraphunit.c (ipa_passes): Remove unrechable nodes.
1397         * lto-streamer-out.c (produce_symtab): Skip unused extern declarations.
1398         * ipa.c (cgraph_remove_unreachable_nodes): Do not assume that external
1399         functions are reachable when address is taken.
1400         * tree-sra.c (modify_function): Free dominance info.
1401
1402 2011-10-02  Jan Hubicka  <jh@suse.cz>
1403
1404         * ipa-inline-analysis.c (inline_summary_alloc): Bounds check.
1405
1406         * ipa-inline-analysis.c (reset_inline_edge_summary): New function.
1407         (reset_inline_summary): New function.
1408         (compute_inline_parameters, inline_node_removal_hook,
1409         inline_edge_removal_hook): Use it.
1410         (inline_free_summary): Reset holders correctly.
1411         (inline_generate_summary): Free summary before computing it.
1412
1413 2011-10-02  Paolo Carlini  <paolo.carlini@oracle.com>
1414
1415         PR preprocessor/36819
1416         * incpath.c (merge_include_chains): Call free_path on
1417         heads[QUOTE] and tails[QUOTE].
1418
1419 2011-10-02  Jan Hubicka  <jh@suse.cz>
1420
1421         PR lto/47247
1422         * lto-symtab.c (lto_symtab_resolve_symbols): Do not resolve
1423         when resolution is already availbale from plugin.
1424         (lto_symtab_merge_decls_1): Handle LDPR_PREVAILING_DEF_IRONLY_EXP.
1425         * cgraph.c (ld_plugin_symbol_resolution): Add
1426         prevailing_def_ironly_exp.
1427         * lto-cgraph.c (LDPR_NUM_KNOWN): Update.
1428         * ipa.c (varpool_externally_visible_p): IRONLY variables are never
1429         externally visible.
1430         * varasm.c (resolution_to_local_definition_p): Add
1431         LDPR_PREVAILING_DEF_IRONLY_EXP.
1432         (resolution_local_p): Likewise.
1433
1434 2011-10-01  David S. Miller  <davem@davemloft.net>
1435
1436         * config/sparc/sparc.opt (VIS3): New option.
1437         * doc/invoke.texi: Document it.
1438         * config/sparc/sparc.h: Force TARGET_VIS3 to zero if assembler is
1439         not capable of such instructions.
1440         * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__
1441         to 0x300 when TARGET_VIS3.
1442         * config/sparc/sparc-modes.def: Create 16-byte vector modes.
1443         * config/sparc/sparc.md (UNSPEC_CMASK8, UNSPEC_CMASK16, UNSPEC_CMASK32,
1444         UNSPEC_FCHKSM16, UNSPEC_PDISTN, UNSPC_FUCMP): New unspecs.
1445         (V64N8, VASS): New mode iterators.
1446         (vis3_shift, vis3_addsub_ss): New code iterators.
1447         (vbits, vconstr): New mode attributes.
1448         (vis3_shift_insn, vis3_addsub_ss_insn): New code attributes.
1449         (cmask8<P:mode>_vis, cmask16<P:mode>_vis, cmask32<P:mode>_vis,
1450         fchksm16_vis, <vis3_shift_insn><vbits>_vis, pdistn<mode>_vis,
1451         fmean16_vis, fpadd64_vis, fpsub64_vis,
1452         <vis3_addsub_ss_insn><vbits>_vis, fucmp<code>8<P:mode>_vis): New
1453         VIS 3.0 instruction patterns.
1454         * config/sparc/sparc.c (sparc_option_override): Set MASK_VIS3 by
1455         default when targetting capable cpus.  TARGET_VIS3 implies
1456         TARGET_VIS2 and TARGET_VIS, and clear them when TARGET_FPU is disabled.
1457         (sparc_vis_init_builtins): Emit new VIS 3.0 builtins.
1458         (sparc_fold_builtin): Do not eliminate cmask{8,16,32} when result
1459         is ignored.
1460         * config/sparc/visintrin.h (__vis_cmask8, __vis_cmask16,
1461         __vis_cmask32, __vis_fchksm16, __vis_fsll16, __vis_fslas16,
1462         __vis_fsrl16, __vis_fsra16, __vis_fsll32, __vis_fslas32,
1463         __vis_fsrl32, __vis_fsra32, __vis_pdistn, __vis_fmean16,
1464         __vis_fpadd64, __vis_fpsub64, __vis_fpadds16, __vis_fpadds16s,
1465         __vis_fpsubs16, __vis_fpsubs16s, __vis_fpadds32, __vis_fpadds32s,
1466         __vis_fpsubs32, __vis_fpsubs32s, __vis_fucmple8, __vis_fucmpne8,
1467         __vis_fucmpgt8, __vis_fucmpeq8): New VIS 3.0 interfaces.
1468         * doc/extend.texi: Document new VIS 3.0 builtins.
1469
1470 2011-10-01  Eric Botcazou  <ebotcazou@adacore.com>
1471
1472         * ira-color.c (assign_hard_reg): Fix typo.
1473
1474 2011-09-30  H.J. Lu  <hongjiu.lu@intel.com>
1475
1476         * doc/extend.texi: Add missing ','.
1477
1478 2011-09-30  Bernd Schmidt  <bernds@codesourcery.com>
1479
1480         * common/config/c6x/c6x-common.c (c6x_option_optimization_table):
1481         Enable -fmodulo-sched at -O2 and above.
1482         * config/c6x/c6x.md (doloop_end): New expander.
1483         (mvilc, sploop, spkernel, loop_end): New patterns.
1484         (loop_end with memory destination splitter): New.
1485         * config/c6x/c6x.c: Include "hw-doloop.h".
1486         (enum unitreqs): New.
1487         (unit_req_table): New typedef.
1488         (unit_reqs): New static variable.
1489         (unit_req_factor, get_unit_reqs, count_unit_reqs, merge_unit_reqs,
1490         res_mii, split_delayed_nonbranch, undo_split_delayed_nonbranch,
1491         hwloop_pattern_reg, bb_earliest_end_cycle, filter_insns_above,
1492         hwloop_optimize, hwloop_fail, c6x_hwloops): New static functions.
1493         (struct c6x_sched_context): New member last_scheduled_iter0.
1494         (init_sched_state): Initialize it.
1495         (c6x_variable_issue): Update it.
1496         (sploop_max_uid_iter0): New static variable.
1497         (c6x_sched_reorder_1): Be careful about issuing sploop.
1498         (c6x_reorg): Call c6x_hwlooops before the final schedule.
1499
1500 2011-09-30  Georg-Johann Lay  <avr@gjlay.de>
1501
1502         PR target/50566
1503         * config/avr/avr-protos.h (avr_log_t): New field address_cost.
1504         * config/avr/avr.c (avr_address_cost): Use it.
1505         * config/avr/avr-log.c (avr_log_set_avr_log): Initialize it.
1506         (avr_log_vadump): Unknown %-codes finish printing.
1507
1508 2011-09-30  Jakub Jelinek  <jakub@redhat.com>
1509
1510         PR inline-asm/50571
1511         * gimple-fold.c (fold_stmt_1) <case GIMPLE_ASM>: If
1512         input constraints allow mem and not reg, pass true instead of
1513         false as second argument to maybe_fold_reference.
1514
1515         PR tree-optimization/46309
1516         * fold-const.c (make_range, merge_ranges): Remove prototypes.
1517         (make_range_step): New function.
1518         (make_range): Use it.
1519         * tree.h (make_range_step): New prototypes.
1520         * Makefile.in (tree-ssa-reassoc.o): Depend on $(DIAGNOSTIC_CORE_H).
1521         * tree-ssa-reassoc.c: Include diagnostic-core.h.
1522         (struct range_entry): New type.
1523         (init_range_entry, range_entry_cmp, update_range_test,
1524         optimize_range_tests): New functions.
1525         (reassociate_bb): Call optimize_range_tests.
1526
1527 2011-09-30  Jakub Jelinek  <jakub@redhat.com>
1528             Richard Guenther  <rguenther@suse.de>
1529
1530         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Handle
1531         BUILT_IN_STRDUP and BUILT_IN_STRNDUP.
1532         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Likewise.  Fix
1533         handling of BUILT_IN_STRNCAT and BUILT_IN_STRNCAT_CHK.
1534         (ref_maybe_used_by_call_p_1): Fix handling of BUILT_IN_STRCAT,
1535         BUILT_IN_STRNCAT, BUILT_IN_STRCAT_CHK and BUILT_IN_STRNCAT_CHK.
1536
1537 2011-09-30  Jan Beulich  <jbeulich@suse.com>
1538
1539         * lto-cgraph.c (output_cgraph): Remove processing of
1540         'cgraph_asm_nodes', call lto_output_toplevel_asms() instead.
1541         (input_cgraph_1): Remove loop calling cgraph_add_asm_node(), call
1542         lto_input_toplevel_asms() instead.
1543         * lto-section-in.c (lto_section_name): Add "asm" entry.
1544         * lto-streamer-in.c (lto_input_toplevel_asms): New.
1545         * lto-streamer-out.c (lto_output_toplevel_asms): New.
1546         * lto-streamer.h (LTO_minor_version): Bump.
1547         (enum lto_section_type): Add LTO_section_asm.
1548         (struct lto_asm_header): New.
1549         (lto_input_toplevel_asms, lto_output_toplevel_asms): Declare.
1550         * tree-streamer.h (streamer_write_string_cst): Declare.
1551         * tree-streamer-out.c (write_string_cst): Rename to
1552         streamer_write_string_cst and make global. Handle incoming string
1553         being NULL.
1554         (streamer_write_tree_header): Adjust call to renamed function.
1555
1556 2011-09-30  Bernd Schmidt  <bernds@codesourcery.com>
1557
1558         * haifa-sched.c (modulo_ii, modulo_max_states, modulo_n_insns,
1559         modulo_insns_scheduled, modulo_iter0_max_uid, modulo_backtracks_left,
1560         modulo_last_stage): New static variables.
1561         (set_modulo_params, discard_delay_pairs_above): New functions.
1562         (struct delay_pair): New member stages.
1563         (htab_i2_traverse, htab_i1_traverse): New static functions.
1564         (record_delay_slot_pair): New arg stages.  All callers changed.
1565         Record it.
1566         (pair_delay): Take stages into account.
1567         (add_delay_dependencies): Don't do so for stage pairs.
1568         (struct sched_block_state): New member modulo_epilogue.
1569         (save_backtrack_point): Don't set SHADOW_P for stage pairs.
1570         (unschedule_insns_until): Decrease modulo_insns_scheduled.
1571         Set HARD_DEP without using or.
1572         (resolve_dependencies): New static function.
1573         (prune_ready_list): New arg modulo_epilogue_p.  All callers changed.
1574         If it is true, allow only insns with INSN_EXACT_TICK set.
1575         (schedule_block): Return bool, always true for normal scheduling,
1576         true or false depending on modulo scheduling success otherwise.
1577         Add bookkeeping for modulo scheduling, and call resolve_dependencies
1578         on everything left over after a modulo schedule.
1579         (haifa_sched_init): Remove check_cfg call.  Clear modulo_ii.
1580         * sched-int.h (schedule_block, record_delay_slot_pair): Adjust
1581         declarations.
1582         (set_modulo_params, discard_delay_pairs_above): Declare.
1583         * params.def (PARAM_MAX_MODULO_BACKTRACK_ATTEMPS): New.
1584         * doc/invoke.texi (--param): Document it.
1585
1586         * sched-ebb.c (schedule_ebb): No longer static.  Remove declaration.
1587         New arg modulo_scheduling.  All callers changed.  Move note handling
1588         code here from schedule_ebbs.
1589         (schedule_ebbs_finish, schedule_ebbs_init): New functions, broken
1590         out of schedule_ebbs.
1591         (schedule_ebbs): Call them.  Remove note handling code moved to
1592         schedule_ebb.
1593         * sched-int.h (schedule_ebb, schedule_ebbs_init,
1594         schedule_ebbs_finish): Declare.
1595
1596 2011-09-30  Richard Guenther  <rguenther@suse.de>
1597
1598         PR middle-end/50574
1599         * tree-cfg.c (verify_gimple_comparison): Compare component
1600         mode sizes for vector comparisons.
1601
1602 2011-09-30  Revital Eres  <revital.eres@linaro.org>
1603
1604         * ddg.c (autoinc_var_is_used_p): New function.
1605         (create_ddg_dep_from_intra_loop_link,
1606         add_cross_iteration_register_deps): Call it.
1607         * ddg.h (autoinc_var_is_used_p): Declare.
1608         * modulo-sched.c (generate_reg_moves): Call autoinc_var_is_used_p.
1609         (sms_schedule): Handle instructions with REG_INC.
1610
1611 2011-09-30  Revital Eres  <revital.eres@linaro.org>
1612
1613         * modulo-sched.c (generate_reg_moves): Skip instructions that
1614         do not set a register and verify no regmoves are created for
1615         !single_set instructions.
1616
1617 2011-09-30  Bernd Schmidt  <bernds@codesourcery.com>
1618
1619         * hw-doloop.c (scan_loop): Compute register usage only for non-debug
1620         insns.
1621
1622 2011-09-30  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
1623
1624         PR target/50099
1625         * config/arm/iterators.md (qhs_zextenddi_cstr): New.
1626         (qhs_zextenddi_op): New.
1627         * config/arm/arm.md ("zero_extend<mode>di2"): Use them.
1628         * config/arm/predicates.md ("arm_extendqisi_mem_op"):
1629         Distinguish between ARM and Thumb2 states.
1630
1631 2011-09-30  David S. Miller  <davem@davemloft.net>
1632
1633         * config/sparc/sparc.opt (VIS2): New option.
1634         * doc/invoke.texi: Document it.
1635         * config/sparc/sparc.md (UNSPEC_EDGE8N, UNSPEC_EDGE8LN,
1636         UNSPEC_EDGE16N, UNSPEC_EDGE16LN, UNSPEC_EDGE32N,
1637         UNSPEC_EDGE32LN, UNSPEC_BSHUFFLE): New unspecs.
1638         (define_attr type): New insn type 'edgen'.
1639         (bmask<P:mode>_vis, bshuffle<V64I:mode>_vis, edge8n<P:mode>_vis,
1640         edge8ln<P:mode>_vis, edge16n<P:mode>_vis, edge16ln<P:mode>_vis,
1641         edge32n<P:mode>_vis, edge32ln<P:mode>_vis): New insn VIS 2.0
1642         patterns.
1643         * niagara.md: Handle edgen.
1644         * niagara2.md: Likewise.
1645         * ultra1_2.md: Likewise.
1646         * ultra3.md: Likewise.
1647         * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__
1648         to 0x200 when TARGET_VIS2.
1649         * config/sparc/sparc.c (sparc_option_override): Set MASK_VIS2 by
1650         default when targetting capable cpus.  TARGET_VIS2 implies
1651         TARGET_VIS, clear and it when TARGET_FPU is disabled.
1652         (sparc_vis_init_builtins): Emit new VIS 2.0 builtins.
1653         (sparc_expand_builtin): Fix predicate indexing when builtin returns
1654         void.
1655         (sparc_fold_builtin): Do not eliminate bmask when result is ignored.
1656         * config/sparc/visintrin.h (__vis_bmask, __vis_bshuffledi,
1657         __vis_bshufflev2si, __vis_bshufflev4hi, __vis_bshufflev8qi,
1658         __vis_edge8n, __vis_edge8ln, __vis_edge16n, __vis_edge16ln,
1659         __vis_edge32n, __vis_edge32ln): New VIS 2.0 interfaces.
1660         * doc/extend.texi: Document new VIS 2.0 builtins.
1661
1662 2011-09-29  Nick Clifton  <nickc@redhat.com>
1663             Bernd Schmidt  <bernds@codesourcery.com>
1664
1665         * config/frv/frvbegin.c: Fix location of unwind-dw2-fde.h header file.
1666         * config/frv/frvend.c: Likewise.
1667         * config/frv/frv.c (frv_function_prologue): Move misplaced
1668         CALL_ARG_LOCATION notes back to their proper locations.
1669
1670 2011-09-29  Georg-Johann Lay  <avr@gjlay.de>
1671
1672         PR target/50566
1673         * config/avr/avr-log.c (avr_log_vadump): Use %b to print bool.
1674         * config/avr/avr.c (avr_rtx_costs_1): New static function, renamed
1675         from avr_rtx_costs.
1676         (avr_legitimate_address_p): Use avr_edump to print log information
1677         filtered by avr_log.
1678         (extra_constraint_Q): Ditto.
1679         (avr_legitimize_address): Ditto.
1680         (avr_rtx_costs): Ditto.  Rewrite as wrapper for avr_rtx_costs_1.
1681         (final_prescan_insn): Use avr_log.rtx_costs as filter.
1682
1683 2011-09-29  Richard Sandiford  <richard.sandiford@linaro.org>
1684
1685         * config/arm/arm-protos.h (arm_modes_tieable_p): Declare.
1686         * config/arm/arm.h (MODES_TIEABLE_P): Use it.
1687         * config/arm/arm.c (arm_modes_tieable_p): New function.  Allow
1688         NEON vector and structure modes to be tied.
1689
1690 2011-09-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1691
1692         * graphite-scop-detection.c (make_close_phi_nodes_unique):  New
1693         forward declaration.
1694         (remove_duplicate_close_phi): Detect and repair creation of
1695         duplicate close-phis for a containing loop.
1696
1697 2011-09-27   Andi Kleen <ak@linux.intel.com>
1698
1699         * gcc.c (get_local_tick). Rename to get_random_number.  Read from
1700         /dev/urandom.  Add getpid call.
1701         (compare_debug_dump_opt_spec_function): Drop getpid call.
1702
1703 2011-09-26   Andi Kleen <ak@linux.intel.com>
1704
1705         * toplev.c (init_local_tick): Try reading random seed
1706         from /dev/urandom.
1707
1708 2011-09-26   Andi Kleen <ak@linux.intel.com>
1709
1710         * hwint.h (HOST_WIDE_INT_PRINT_HEX_PURE): Add.
1711         * lto-streamer.c (lto_get_section_name): Remove crc32_string.
1712         Handle numerical random seed.
1713         * lto-streamer.h (lto_file_decl_data): Change id to
1714         unsigned HOST_WIDE_INT.
1715         * toplev.c (random_seed): Add.
1716         (init_random_seed): Change for numerical random seed.
1717         (get_random_seed): Return as HOST_WIDE_INT.
1718         (set_random_seed): Crc32 existing string.
1719         * toplev.h (get_random_seed): Change to numercal return.
1720         * tree.c (get_file_function_name): Remove CRC. Handle
1721         numerical random seed.
1722
1723 2011-09-29  Georg-Johann Lay  <avr@gjlay.de>
1724
1725         PR target/50566
1726         * config.gcc (extra_objs): Add avr-log.o for $target in:
1727         avr-*-rtems*, avr-*-*.
1728         * config/avr/t-avr (avr-log.o): New rule to compile...
1729         * config/avr/avr-log.c: ...this new file.
1730         * config/avr/avr.opt (mlog=): New option.
1731         * config/avr/avr-protos.h (avr_edump, avr_fdump): New macros.
1732         (avr_log_set_caller_e, avr_log_set_caller_f): New prototypes.
1733         (avr_log_set_avr_log): New prototype.
1734         (avr_log_t): New typedef.
1735         (avr_log): New declaration.
1736         * config/avr/avr.c (avr_option_override): Call avr_log_set_avr_log.
1737
1738 2011-09-29  Artjoms Sinkarovs <artyom.shinkaroff@gmail.com>
1739
1740         * expr.c (do_store_flag): Expand vector comparison by
1741         building an appropriate VEC_COND_EXPR.
1742         * c-typeck.c (build_binary_op): Typecheck vector comparisons.
1743         (c_objc_common_truthvalue_conversion): Adjust.
1744         * tree-vect-generic.c (do_compare): Helper function.
1745         (expand_vector_comparison): Check if hardware supports
1746         vector comparison of the given type or expand vector piecewise.
1747         (expand_vector_operation): Treat comparison as binary
1748         operation of vector type.
1749         (expand_vector_operations_1): Adjust.
1750
1751 2011-09-29  Richard Guenther  <rguenther@suse.de>
1752
1753         * tree.c (build_opaque_vector_type): Make opaque vectors
1754         variant types of the corresponding non-opaque type.  Make
1755         sure to share opaque vector types properly.
1756
1757 2011-09-29  David S. Miller  <davem@davemloft.net>
1758
1759         * config/sparc/sparc.md (UNSPEC_ARRAY8, UNSPEC_ARRAY16,
1760         UNSPEC_ARRAY32): New unspec.
1761         (define_attr type): New type 'array'.
1762         (array{8,16,32}<P:mode>_vis): New patterns.
1763         * config/sparc/ultra1_2.md: Add reservations for 'array'.
1764         * config/sparc/ultra3.md: Likewise.
1765         * config/sparc/niagara.md: Likewise.
1766         * config/sparc/niagara2.md: Likewise.
1767         * config/sparc/sparc.c (sparc_vis_init_builtins): Build new
1768         array builtins.
1769         * config/sparc/visintrin.h (__vis_array8, __vis_array16,
1770         __vis_array32): New.
1771         * doc/extend.texi: Document new VIS builtins.
1772
1773         * config/sparc/sparc.md (gcond_name): Delete unnecessary code attr.
1774         (VIS pixel-compare insn): Just use <gcond:name>.
1775
1776         * config/sparc/sparc.md (VIS pixel-compare insn): There is only one
1777         code iterator used, so just use <code>.  There are two mode iterators
1778         so explicitly use <GCM:gcm_name>.
1779
1780 2011-09-29  Iain Sandoe  <iains@gcc.gnu.org>
1781
1782         * config/darwin9.h (STACK_CHECK_STATIC_BUILTIN): Enable for
1783         Darwin >= 9.
1784
1785 2011-09-28  David S. Miller  <davem@davemloft.net>
1786
1787         * config/sparc/sparc.md (UNSPEC_FCMPLE, UNSPEC_FCMPNE,
1788         UNSPEC_FCMPGT, UNSPEC_FCMPEQ): Delete and reduce to...
1789         (UNSPEC_FCMP): New unspec.
1790         (gcond): New code iterator.
1791         (gcond_name): New code attr.
1792         (GCM): New mode iterator.
1793         (gcm_name): New mode attr.
1794         (fcmp{le,ne,gt,eq}{16,32}_vis): Reimplement using iterators.
1795
1796 2011-09-28  Oleg Endo  <oleg.endo@t-online.de>
1797
1798         PR target/49486
1799         * config/sh/sh.md (negdi2): Move expansion into split to
1800         allow more combination options.  Add T_REG clobber.
1801         (abssi2): New expander.
1802         (*negdi2, *abssi2, *negabssi2): New insns.
1803         (cneg): Change from insn to insn_and_split.  Rename to
1804         negsi_cond.  Add alternative for non-SH4.
1805
1806 2011-09-28  Richard Sandiford  <richard.sandiford@linaro.org>
1807
1808         * config/arm/neon.md (neon_move_lo_quad_<mode>): Delete.
1809         (neon_move_hi_quad_<mode>): Likewise.
1810         (move_hi_quad_<mode>, move_lo_quad_<mode>): Use subreg moves.
1811
1812 2011-09-28  Nick Clifton  <nickc@redhat.com>
1813
1814         * config/rx/predicates.md (rx_minmax_operand): New predicate.
1815         Accepts immediates and a restricted subset of MEMs.
1816         * config/rx/rx.md (int_modes): New iterator.
1817         (smaxsi3, sminsi3): Delete and replace with...
1818         (smax<int_mode>3, smin<int_mode>3): New patterns.
1819         (umax<>3_u, umax<>3_ur, umax<>3, umin<>3): New patterns.
1820
1821 2011-09-28  Richard Guenther  <rguenther@suse.de>
1822
1823         PR middle-end/50460
1824         * fold-const.c (try_move_mult_to_index): Handle &a.array the
1825         same as &a.array[0].
1826
1827 2011-09-28  Kai Tietz  <ktietz@redhat.com>
1828
1829         * configure.ac: Add test for new section attribute
1830         specifier "e" via define HAVE_GAS_SECTION_EXCLUDE.
1831         * config.in: Regenerated.
1832         * configure: Regenerated.
1833         * config/i386/winnt.c (i386_pe_asm_named_section): Emit
1834         new section flag "e" for excluded sections, if supported.
1835         Otherwise we mark section withc SECTION_EXCLUDE flag as never-load.
1836
1837 2011-09-28  Richard Sandiford  <rdsandiford@googlemail.com>
1838
1839         * config/m32r/m32r.md: Use match_test rather than eq/ne symbol_ref
1840         throughout file.
1841
1842 2011-09-28  Richard Sandiford  <rdsandiford@googlemail.com>
1843
1844         * config/iq2000/iq2000.md: Use match_test rather than eq/ne symbol_ref
1845         throughout file.
1846
1847 2011-09-27  Sriraman Tallam  <tmsriram@google.com>
1848
1849         * output.h (SECTION_EXCLUDE): New macro.
1850         * varasm.c (default_elf_asm_named_section): Check for SECTION_EXCLUDE.
1851
1852 2011-09-27  Richard Sandiford  <rdsandiford@googlemail.com>
1853
1854         * fwprop.c (forward_propagate_and_simplify): After checking
1855         reg/subreg combinations, check whether the modes are the same.
1856
1857 2011-09-27  Bernd Schmidt  <bernds@codesourcery.com>
1858             Richard Sandiford  <rdsandiford@googlemail.com>
1859
1860         * config/mips/mips.c (mips_add_cfa_restore): New function.
1861         (mips16e_save_restore_reg): Use it.
1862         (mips_restore_reg): Likewise.  Split double FPRs for
1863         REG_CFA_RESTORE notes.
1864
1865 2011-09-27  Richard Sandiford  <rdsandiford@googlemail.com>
1866
1867         PR middle-end/50386
1868         PR middle-end/50326
1869         * tree-sra.c (build_ref_for_model): Use the type of the field as
1870         the type of the COMPONENT_REF.
1871
1872 2011-09-27  Jeff Law  <law@redhat.com>
1873
1874         * ifcvt.c (cheap_bb_rtx_cost_p): Add SCALE argument.  Scale
1875         non-jumping insns by REG_BR_PROB_BASE and the maximum cost by SCALE.
1876         (find_if_case_1): Use the probability of the THEN clause when
1877         determining if speculation is profitable.
1878         (find_if_case_2): Similarly for the ELSE clause.
1879
1880 2011-09-27  Jakub Jelinek  <jakub@redhat.com>
1881
1882         * common.opt: Add -foptimize-strlen option.
1883         * Makefile.in (OBJS): Add tree-ssa-strlen.o.
1884         (tree-sssa-strlen.o): Add dependencies.
1885         * opts.c (default_options_table): Enable -foptimize-strlen
1886         by default at -O2 if not -Os.
1887         * passes.c (init_optimization_passes): Add pass_strlen
1888         after pass_object_sizes.
1889         * timevar.def (TV_TREE_STRLEN): New timevar.
1890         * params.def (PARAM_MAX_TRACKED_STRLENS): New parameter.
1891         * tree-pass.h (pass_strlen): Declare.
1892         * tree-ssa-strlen.c: New file.
1893         * c-decl.c (merge_decls): If compatible stpcpy prototype
1894         is seen, set implicit_built_in_decls[BUILT_IN_STPCPY].
1895
1896 2011-09-27  Tom de Vries  <tom@codesourcery.com>
1897
1898         PR middle-end/43864
1899         * tree-ssa-tail-merge.c: New file.
1900         (struct same_succ_def): Define.
1901         (same_succ, const_same_succ): New typedef.
1902         (struct bb_cluster_def): Define.
1903         (bb_cluster, const_bb_cluster): New typedef.
1904         (struct aux_bb_info): Define.
1905         (BB_SIZE, BB_SAME_SUCC, BB_CLUSTER, BB_VOP_AT_EXIT): Define.
1906         (gvn_uses_equal): New function.
1907         (same_succ_print, same_succ_print_traverse, update_dep_bb)
1908         (stmt_update_dep_bb, local_def, same_succ_hash)
1909         (inverse_flags, same_succ_equal, same_succ_alloc, same_succ_delete)
1910         (same_succ_reset): New function.
1911         (same_succ_htab, same_succ_edge_flags)
1912         (deleted_bbs, deleted_bb_preds): New var.
1913         (debug_same_succ): New function.
1914         (worklist): New var.
1915         (print_worklist, add_to_worklist, find_same_succ_bb, find_same_succ)
1916         (init_worklist, delete_worklist, delete_basic_block_same_succ)
1917         (same_succ_flush_bbs, purge_bbs, update_worklist): New function.
1918         (print_cluster, debug_cluster, update_rep_bb)
1919         (add_bb_to_cluster, new_cluster, delete_cluster): New function.
1920         (all_clusters): New var.
1921         (alloc_cluster_vectors, reset_cluster_vectors, delete_cluster_vectors)
1922         (merge_clusters, set_cluster): New function.
1923         (gimple_equal_p, gsi_advance_bw_nondebug_nonlocal, find_duplicate)
1924         (same_phi_alternatives_1, same_phi_alternatives, bb_has_non_vop_phi)
1925         (deps_ok_for_redirect_from_bb_to_bb, deps_ok_for_redirect)
1926         (find_clusters_1, find_clusters): New function.
1927         (update_vuses, vop_phi, vop_at_entry, replace_block_by): New function.
1928         (update_bbs): New var.
1929         (apply_clusters): New function.
1930         (update_debug_stmt, update_debug_stmts): New function.
1931         (tail_merge_optimize): New function.
1932         tree-pass.h (tail_merge_optimize): Declare.
1933         * tree-ssa-pre.c (execute_pre): Use tail_merge_optimize.
1934         * Makefile.in (OBJS-common): Add tree-ssa-tail-merge.o.
1935         (tree-ssa-tail-merge.o): New rule.
1936         * opts.c (default_options_table): Set OPT_ftree_tail_merge by
1937         default at OPT_LEVELS_2_PLUS.
1938         * tree-ssa-sccvn.c (vn_valueize): Move to ...
1939         * tree-ssa-sccvn.h (vn_valueize): Here.
1940         * timevar.def (TV_TREE_TAIL_MERGE): New timevar.
1941         * common.opt (ftree-tail-merge): New switch.
1942         * params.def (PARAM_MAX_TAIL_MERGE_COMPARISONS)
1943         (PARAM_MAX_TAIL_MERGE_ITERATIONS): New parameter.
1944         * doc/invoke.texi (Optimization Options, -O2): Add -ftree-tail-merge.
1945         (-ftree-tail-merge, max-tail-merge-comparisons)
1946         (max-tail-merge-iterations): New item.
1947
1948 2011-09-27  Jan Hubicka  <jh@suse.cz>
1949
1950         * ipa-inline-analysis.c (MAX_TIME): Reduce to avoid overflows.
1951
1952 2011-09-27  Jan Hubicka  <jh@suse.cz>
1953
1954         * ipa-inline-analysis.c (eliminated_by_inlining_prob): Handle
1955         parameters passed by reference; handle loads from non-SSA scalars
1956         and update comments.
1957
1958 2011-09-27  Bernd Schmidt  <bernds@codesourcery.com>
1959
1960         PR rtl-optimization/50249
1961         * reload1.c (reload_reg_reaches_end_p): Accept a reloadnum argument
1962         instead of opnum and type.  All callers changed.  Remove useless
1963         declaration.
1964         Search forward for other reloads of the same type for the same operand
1965         using the same register; if any are found, return false.
1966         (reload_regs_reach_end_p): Same argument changes; all callers changed.
1967
1968 2011-09-27  Andi Kleen  <ak@linux.intel.com>
1969             Jan Hubicka  <jh@suse.cz>
1970
1971         * doc/invoke.texi (ffat-lto-objects): Document.
1972         * toplev.c (compile_file): Do not output assembly when doing slim lto;
1973         Output __gnu_slim_lto when doing slim lto.
1974         * cgraphunit.c (ipa_passes): Do only analysis when producing slim lto.
1975         (cgraph_optimize): Return early when doing slim lto.
1976         * opts.c (finish_options): Complain about lack of linker plugin
1977         when doing slim lto.
1978         * common.opt (ffat-lto-objects): New.
1979
1980 2011-09-27  Richard Sandiford  <richard.sandiford@linaro.org>
1981
1982         * ipa-inline-analysis.c (predicate_probability): Avoid comparison
1983         between signed and unsigned.
1984
1985 2011-09-27  Ira Rosen  <ira.rosen@linaro.org>
1986
1987         * tree-vect-stmts.c (vectorizable_type_demotion): Handle basic block
1988         vectorization.
1989         (vectorizable_type_promotion): Likewise.
1990         (vect_analyze_stmt): Call vectorizable_type_demotion and
1991         vectorizable_type_promotion for basic blocks.
1992         (supportable_widening_operation): Don't assume loop vectorization.
1993         * tree-vect-slp.c (vect_build_slp_tree): Allow multiple types for
1994         basic blocks.  Update vectorization factor for basic block
1995         vectorization.
1996         (vect_analyze_slp_instance): Allow multiple types for basic block
1997         vectorization.  Recheck unrolling factor after construction of SLP
1998         instance.
1999
2000 2011-09-27  Richard Guenther  <rguenther@suse.de>
2001
2002         * tree-object-size.c (compute_object_sizes): Fix dumping of
2003         folded statement.
2004
2005 2011-09-27  Richard Guenther  <rguenther@suse.de>
2006
2007         PR tree-optimization/50363
2008         * tree-ssa-pre.c (create_expression_by_pieces): Handle
2009         pointer conversions in POINTER_PLUS_EXPRs properly.
2010
2011 2011-09-27  Richard Sandiford  <richard.sandiford@linaro.org>
2012
2013         * config/arm/neon.md (neon_vget_highv16qi, neon_vget_highv8hi)
2014         (neon_vget_highv4si, neon_vget_highv4sf, neon_vget_highv2di)
2015         (neon_vget_lowv16qi, neon_vget_lowv8hi, neon_vget_lowv4si)
2016         (neon_vget_lowv4sf, neon_vget_lowv2di): Turn into define_expands
2017         that produce subreg moves.  Define using VQX iterators.
2018
2019 2011-09-27  Georg-Johann Lay  <avr@gjlay.de>
2020
2021         * config/avr/avr.md (ashrqi3): Split alternative "n"
2022         into its remaining parts C03, C04, C05, C06, C07 and describe
2023         impact in CC by attribute "cc" appropriately.
2024         * config/avr/avr.c (notice_update_cc): Clean-up: Don't patch CC0
2025         by digging RTX.
2026
2027 2011-09-27  Jakub Jelinek  <jakub@redhat.com>
2028
2029         * rtl.h (const_tiny_rtx): Change into array of 4 x MAX_MACHINE_MODE
2030         from 3 x MAX_MACHINE_MODE.
2031         (CONSTM1_RTX): Define.
2032         * emit-rtl.c (const_tiny_rtx): Change into array of
2033         4 x MAX_MACHINE_MODE from 3 x MAX_MACHINE_MODE.
2034         (gen_rtx_CONST_VECTOR): Use CONSTM1_RTX if all inner constants are
2035         CONSTM1_RTX.
2036         (init_emit_once): Initialize CONSTM1_RTX for MODE_INT and
2037         MODE_VECTOR_INT modes.
2038         * simplify-rtx.c (simplify_binary_operation_1) <case IOR, XOR, AND>:
2039         Optimize if one operand is CONSTM1_RTX.
2040         * config/i386/i386.c (ix86_expand_sse_movcc): Optimize mask ? -1 : x
2041         into mask | x.
2042
2043 2011-09-26  David S. Miller  <davem@davemloft.net>
2044
2045         * config/sparc/sparc.md (edge{8,16,32}{,l}): Return Pmode.
2046         (fcmp{le,ne,gt,eq}{16,32}): Likewise.
2047         * config/sparc/visintrin.h: Update edge and pixel-compare
2048         intrinsics to return 'long' instead of 'int'.
2049         * doc/extend.texi: Update documentation to match.
2050         * config/sparc/sparc.c (eligible_for_return_delay): When leaf or
2051         flat, allow any instruction.  Otherwise, when V9 allow parallels
2052         which consist only of sets to registers outside of %o0 to %o5.
2053         (sparc_vis_init_builtins): Update VIS builtin types for edge
2054         and pixel-compare.
2055
2056         * config/sparc/sparc.c (sparc_conditional_register_usage): When VIS
2057         is enabled, mark %gsr as global.
2058         * config/sparc/sparc.md (UNSPEC_WRGSR): Delete.
2059         (wrgsr_vis, *wrgsr_sp64, wrgsr_v8plus): Don't wrap in an unspec.
2060
2061         * config/sparc/sparc-c.c: New file implementing sparc_target_macros,
2062         which will now define __VIS and __VIS__ when -mvis is enabled.
2063         * config/sparc/t-sparc: Likewise.
2064         * config.gcc: Add sparc-c.o to c_target_objs and cxx_target_objs,
2065         and add t-sparc to tmake_file for all sparc targets.
2066         * config/sparc/sparc-protos.h (sparc_target_macros): Declare.
2067         * config/sparc/sparc.h (TARGE_CPU_CPP_BUILTINS): Call it.
2068
2069         * config/sparc/sparc.c (sparc_vis_init_builtins): Add explicit
2070         builtins for VIS vector addition and subtraction.
2071         * config/sparc/visintrin.h (__vis_fpadd16, __vis_fpadd16s,
2072         __vis_fpadd32, __vis_fpadd32s, __vis_fpsub16, __vis_fpsub16s,
2073         __vis_fpsub32, __vis_fpsub32s): New.
2074         * doc/extend.texi: Document new VIS intrinsics.
2075
2076 2011-09-26  Georg-Johann Lay  <avr@gjlay.de>
2077
2078         * config/avr/avr.md (peephole casesi+2): Use -1 instead of 65536.
2079         * config/avr/avr.c (avr_out_compare): Print shorter sequence for
2080         EQ/NE comparisons against +/-1 in the case of unused-after,
2081         non-ld-regs target.
2082
2083 2011-09-26  Jakub Jelinek  <jakub@redhat.com>
2084
2085         * gimple-fold.c (gimplify_and_update_call_from_tree): Set
2086         gctx.into_ssa after push_gimplify_context.
2087
2088         * gimple.c (gimple_build_call_valist): New function.
2089         * gimple.h (gimple_build_call_valist): New prototype.
2090         * tree-ssa-propagate.c (finish_update_gimple_call): New function.
2091         (update_gimple_call): Likewise.
2092         (update_call_from_tree): Use finish_update_gimple_call.
2093         * tree-ssa-propagate.h (update_gimple_call): New prototype.
2094
2095 2011-09-26  Richard Guenther  <rguenther@suse.de>
2096
2097         PR tree-optimization/50472
2098         * gimple-fold.c (fold_const_aggregate_ref_1): Do not fold
2099         volatile references.
2100
2101 2011-09-26  Bingfeng Mei <bmei@broadcom.com>
2102
2103         * doc/tm.texi: Correct documentation for TARGET_ADDR_SPACE_SUBSET_P.
2104         * target.def: (addr_space_subset_p): Likewise.
2105
2106 2011-09-26  Tom de Vries  <tom@codesourcery.com>
2107
2108         * tree-ssa-alias.h (pt_solution_singleton_p): Declare.
2109         * tree-ssa-structalias.c (pt_solution_singleton_p): New function.
2110         * tree-ssa-ccp.c (fold_builtin_alloca_for_var): Set points-to solution
2111         of new var.
2112
2113 2011-09-26  Georg-Johann Lay  <avr@gjlay.de>
2114
2115         PR target/50465
2116         * config/avr/avr-protos.h (output_reload_insisf): Don't pass insn.
2117         * config/avr/avr.md (*reload_insi, *reload_insf): Change call to
2118         output_reload_insisf.
2119         (adjust_len): Set default to "no".
2120         Remove alternative "yes".  Add alternatives: "mov8", "mov16",
2121         "mov32", "ashlqi", "ashrqi", "lshrqi", "ashlhi", "ashrhi",
2122         "lshrhi", "ashlsi, "ashrsi", "lshrsi".
2123         (*movqi, *movhi, *movsi, *ashlqi3, ashlhi3, ashlsi3,
2124         *ashlhi3_const, *ashlsi3_const, ashrqi3, ashrhi3, ashrsi3,
2125         *ashrhi3_const, *ashrsi3_const, *lshrqi3, lshrhi3, *lshrhi3_const,
2126         *lshrsi3_const): Set attribute "adjust_len".
2127         * config/avr/avr.c (output_reload_insisf): Remove parameter "insn".
2128         (output_movsisf): Don't pass insn to output_reload_insisf.
2129         (adjust_insn_length): Handle new alternatives to adjust_len.
2130         Remove handling of ADJUST_LEN_YES.  Clean-up code.
2131
2132 2011-09-26  Eric Botcazou  <ebotcazou@adacore.com>
2133
2134         * ifcvt.c (noce_try_cmove_arith): Use may_trap_or_fault_p in lieu of
2135         may_trap_p to detect loads that may trap of fault.
2136
2137 2011-09-26  Georg-Johann Lay  <avr@gjlay.de>
2138
2139         * config/avr/avr-protos.h (output_reload_inhi): Change prototype.
2140         * config/avr/avr.md (adjust_len): Add "reload_in16" alternative.
2141         (*reload_inhi): Use it.  Adapt call to output_reload_inhi to new
2142         prototype.
2143         (*movhi): Split constraint alternative "r,rL" into "r,r" and "r,L".
2144         * config/avr/avr.c: Rename output_reload_insisf_1 to
2145         output_reload_in_const.
2146         (avr_popcount_each_byte): Handle SFmode, too.
2147         (output_reload_in_const): Change so it can handle HI loads, too.
2148         Use avr_popcount_each_byte to work out if scratch register must be
2149         created on the fly.
2150         (output_reload_inhi): Rewrite using output_reload_in_const and...
2151         (output_movhi): ...use it to print constants' loads.
2152         (adjust_insn_length): New case ADJUST_LEN_RELOAD_IN16. Cleanup code.
2153
2154 2011-09-25  David S. Miller  <davem@davemloft.net>
2155
2156         * config/sparc/constraints.md (C, P, Z): New constraints for
2157         const_doube, const_int, and const_vector "all ones" values.
2158         Make unused constraint letters comment match reality.
2159         * config/sparc/predicates.md (const_all_ones_operand,
2160         register_or_zero_or_all_ones_operand): New predicates.
2161         * config/sparc/sparc.c (sparc_expand_move): Allow all ones
2162         as well as zero constants when VIS.
2163         (sparc_legitimate_constant_p): Likewise.
2164         * config/sparc/sparc.md (movsi_insn): Add fones alternative.
2165         (movsf_insn): Likewise
2166         (movdi_insn_sp64): Add fone alternative.
2167         (movdf_insn_sp32_v9): Likewise.
2168         (movdf_insn_sp64): Likewise.
2169
2170         * configure.ac: Add feature check to make sure the assembler
2171         supports the FMAF, HPC, and VIS 3.0 instructions found on
2172         Niagara-3 and later cpus.
2173         * configure: Rebuild.
2174         * config.in: Likewise.
2175         * config/sparc/sparc.opt: New option '-mfmaf'.
2176         * config/sparc/sparc.md: Add float fused multiply-add patterns.
2177         * config/sparc/sparc.h (AS_NIAGARA3_FLAG): New macro.
2178         (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC): Use it, as needed.
2179         * config/sparc/sol2.h (ASM_CPU32_DEFAULT_SPEC,
2180         ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC): Likewise.
2181         * config/sparc/sparc.c (sparc_option_override): Turn MASK_FMAF on
2182         by default for Niagara-3 and later.  Turn it off if TARGET_FPU is
2183         disabled.
2184         (sparc_rtx_costs): Handle 'FMA'.
2185         * doc/invoke.texi: Document -mfmaf.
2186
2187 2011-09-25  Jakub Jelinek  <jakub@redhat.com>
2188
2189         * tree-ssa-structalias.c (intra_create_variable_infos): Treat
2190         TYPE_RESTRICT REFERENCE_TYPE parameters like restricted
2191         DECL_BY_REFERENCE parameters.
2192
2193 2011-09-25  Eric Botcazou  <ebotcazou@adacore.com>
2194
2195         * tree-eh.c (cleanup_empty_eh): Allow a call to __builtin_stack_restore
2196         if there is no outgoing edge.
2197
2198         * tree-scalar-evolution.c (simple_iv): Accept all kinds of pointer and
2199         integral types.
2200
2201 2011-09-25  Ira Rosen  <ira.rosen@linaro.org>
2202
2203         * tree-vect-slp.c (vect_slp_analyze_bb_1): Split out core part
2204         of vect_analyze_bb here.
2205         (vect_analyze_bb): Loop over vector sizes calling vect_analyze_bb_1.
2206
2207 2011-09-25  Ira Rosen  <ira.rosen@linaro.org>
2208
2209         * tree-data-ref.c (dr_analyze_innermost): Add new argument.
2210         Allow not simple iv if analyzing basic block.
2211         (create_data_ref): Update call to dr_analyze_innermost.
2212         (stmt_with_adjacent_zero_store_dr_p, ref_base_address): Likewise.
2213         * tree-loop-distribution.c (generate_memset_zero): Likewise.
2214         * tree-predcom.c (find_looparound_phi): Likewise.
2215         * tree-data-ref.h (dr_analyze_innermost): Add new argument.
2216
2217 2011-09-24  David S. Miller  <davem@davemloft.net>
2218
2219         * config/sparc/sparc.h (FIRST_PSEUDO_REGISTER): Bump to 103.
2220         (SPARC_GSR_REG): Define.
2221         (FIXED_REGISTERS): Mark GSR as fixed.
2222         (CALL_USED_REGISTERS): Mark GSR as call used.
2223         (HARD_REGNO_NREGS): GSR is always 1 register.
2224         (REG_CLASS_CONTENTS): Add GSR to ALL_REGS.
2225         (REG_ALLOC_ORDER, REG_LEAF_ALLOC_ORDER): Add GSR to the end.
2226         (REGISTER_NAMES): Add "%gsr".
2227         * config/sparc/sparc.md (UNSPEC_ALIGNADDR, UNSPEC_ALIGNADDRL): Delete.
2228         (UNSPEC_WRGSR): New unspec.
2229         (GSR_REG): New constant.
2230         (type): Add new insn type 'gsr'.
2231         (fpack16_vis, fpackfix_vis, fpack32_vis,
2232         faligndata<V64I:MODE>_vis)): Add use of GSR_REG.
2233         (wrgsr_vis, *wrgsr_sp64, wrgsr_v8plus, rdgsr_vis, *rdgsr_sp64,
2234         rdgsr_v8plus): New expanders and insns.
2235         (alignaddr<P:mode>_vis, alignaddrl<P:mode>_vis): Reimplement
2236         using patterns which show that this is a plus in addition to a
2237         modification of GSR_REG, instead of an unspec.
2238         * config/sparc/ultra1_2.md: Handle 'gsr'.
2239         * config/sparc/ultra3.md: Likewise.
2240         * config/sparc/niagara.md: Likewise.
2241         * config/sparc/niagara2.md: Likewise.
2242         * config/sparc/sparc.c (leaf_reg_remap, sparc_leaf_regs): Fill out
2243         end of table.
2244         (sparc_option_override): Make -mvis imply -mv8plus.
2245         (hard_32bit_mode_classes, hard_64bit_mode_classes): Add entries
2246         for %gsr.
2247         (sparc_vis_init_builtins): Build __builtin_vis_write_gsr and
2248         __builtin_vis_read_gsr.
2249         (sparc_expand_buildin): Handle builtins that take one argument and
2250         return void.
2251         (sparc_fold_builtin): Never fold writes to %gsr.
2252         * config/sparc/visintrin.h (__vis_write_gsr, __vis_read_gsr): New.
2253         * doc/extend.texi: Document new VIS intrinsics.
2254
2255 2011-09-23  Jan Hubicka  <jh@suse.cz>
2256
2257         * ipa-inline-transform.c (inline_call): Add comment.
2258         * ipa-inline.h (inline_param_summary): New structure and vector.
2259         (struct inline_edge_summary): Add param field.
2260         * ipa-inline-analysis.c (CHANGED): New constant.
2261         (add_clause): Handle CHANGED and NOT_CONSTANT.
2262         (predicate_probability): New function.
2263         (dump_condition): Dump CHANGED predicate.
2264         (evaluate_conditions_for_known_args): Handle ERROR_MARK as marker
2265         of unknown function wide invariant.
2266         (evaluate_conditions_for_edge): Handle change probabilities.
2267         (inline_edge_duplication_hook): Copy param summaries.
2268         (inline_edge_removal_hook): Free param summaries.
2269         (dump_inline_edge_summary): Fix dumping of indirect edges and callee
2270         sizes; dump param summaries.
2271         (will_be_nonconstant_predicate): Use CHANGED predicate.
2272         (record_modified_bb_info): New structure.
2273         (record_modified): New function.
2274         (param_change_prob): New function.
2275         (estimate_function_body_sizes): Compute param summaries.
2276         (estimate_edge_size_and_time): Add probability argument.
2277         (estimate_node_size_and_time): Add inline_param_summary argument;
2278         handle predicate probabilities.
2279         (remap_predicate): Fix formating.
2280         (remap_edge_change_prob): New function.
2281         (remap_edge_summaries): Rename from ...; use remap_edge_change_prob.
2282         (remap_edge_predicates): ... this one.
2283         (inline_merge_summary): Remap edge summaries; handle predicate
2284         probabilities; remove param summaries after we are done.
2285         (do_estimate_edge_time): Update.
2286         (do_estimate_edge_growth): Update.
2287         (read_inline_edge_summary): Read param info.
2288         (inline_read_summary): Fix formating.
2289         (write_inline_edge_summary): Write param summaries.
2290
2291 2011-09-23  Jakub Jelinek  <jakub@redhat.com>
2292
2293         * config/i386/i386.c (ix86_print_operand): Handle %~.
2294         (ix86_print_operand_punct_valid_p): Return true also for '~'.
2295         * config/i386/sse.md (i128): New mode_attr.
2296         (vec_extract_hi_<mode>, vec_extract_hi_<mode>,
2297         avx_vbroadcastf128_<mode>, *avx_vperm2f128<mode>_full,
2298         *avx_vperm2f128<mode>_nozero, vec_set_lo_<mode>,
2299         vec_set_hi_<mode>, *vec_concat<mode>_avx): Use <i128> in the
2300         patterns, use "<sseinsnmode>" for "mode" attribute.
2301         (vec_extract_hi_v16hi, vec_extract_hi_v32qi, vec_set_lo_v16hi,
2302         vec_set_hi_v16hi, vec_set_lo_v32qi, vec_set_hi_v32qi): Use
2303         %~128 in the patterns, use "OI" for "mode" attribute.
2304
2305 2011-09-23  Georg-Johann Lay  <avr@gjlay.de>
2306
2307         PR target/50447
2308         * config/avr/avr.md (adjust_len): Add alternatives "tsthi",
2309         "tstsi", "compare".
2310         (*cmpqi_sign_extend): Use s8_operand.
2311         (*cmphi, *cmpsi): Rewrite using avr_out_compare.
2312         * config/avr/avr-protos.h (compare_diff_p, compare_eq_p): Remove
2313         prototypes.
2314         (out_tsthi, out_tstsi): Remove prototypes.
2315         (avr_out_tsthi, avr_out_tstsi): New prototypes.
2316         * config/avr/avr.c (out_tsthi, out_tstsi): Remove functions.
2317         (avr_asm_len): Negative length now sets *plen to -length.
2318         (compare_sign_p): Return bool instead of int.
2319         (compare_diff_p, compare_eq_p): Ditto and make static.
2320         (avr_out_tsthi): New function.
2321         (avr_out_tstsi): New function.
2322         (avr_out_compare): New function.
2323         (adjust_insn_length): Handle ADJUST_LEN_TSTHI, ADJUST_LEN_TSTSI,
2324         ADJUST_LEN_COMPARE.
2325
2326 2011-09-23  Georg-Johann Lay  <avr@gjlay.de>
2327
2328         PR target/50447
2329         * config/avr/avr.md: (adjust_len): Add alternative "out_plus".
2330         (addsi3): Rewrite using QI scratch register.  Adjust text
2331         peepholes using plus:SI.
2332         (*addsi3_zero_extend.hi): New insn.
2333         (*subsi3_zero_extend.hi): New insn.
2334         (*subhi3_zero_extend1): Set attribute "cc" to "set_czn".
2335         (*subsi3_zero_extend): Ditto.
2336         (subsi3): Change predicate #2 to register_operand.
2337         * config/avr/avr-protos.h (avr_out_plus): New prototype.
2338         (avr_out_plus_1): New static function.
2339         (avr_out_plus): New function.
2340         (adjust_insn_length): Handle ADJUST_LEN_OUT_PLUS.
2341
2342 2011-09-23  Jakub Jelinek  <jakub@redhat.com>
2343
2344         * config/i386/i386.c (ix86_prepare_sse_fp_compare_args): For
2345         GE/GT/UNLE/UNLT swap arguments and condition even for TARGET_AVX.
2346
2347 2011-09-23  Ian Lance Taylor  <iant@google.com>
2348
2349         * godump.c (go_define): Treat a single character in single quotes,
2350         or a string, as an operand.
2351
2352 2011-09-23  Martin Jambor  <mjambor@suse.cz>
2353
2354         * ipa-prop.h (jump_func_type): Updated comments.
2355         (ipa_known_type_data): New type.
2356         (ipa_jump_func): Use it to describe known type jump functions.
2357         * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Updated to
2358         reflect the new known type jump function contents.
2359         (compute_known_type_jump_func): Likewise.
2360         (combine_known_type_and_ancestor_jfs): Likewise.
2361         (try_make_edge_direct_virtual_call): Likewise.
2362         (ipa_write_jump_function): Likewise.
2363         (ipa_read_jump_function): Likewise.
2364         * ipa-cp.c (ipa_value_from_known_type_jfunc): New function.
2365         (ipa_value_from_jfunc): Use ipa_value_from_known_type_jfunc.
2366         (propagate_accross_jump_function): Likewise.
2367
2368 2011-09-23  Georg-Johann Lay  <avr@gjlay.de>
2369
2370         PR target/50446
2371         * config/avr/avr.md (rotlqi3): Support all offsets 0..7.
2372         (rotlqi3_4): Turn insn into expander.
2373         (*rotlqi3): New insn.
2374         (rotlhi3, rotlsi3): Support rotate left/right by 1.
2375         (*rotlhi2.1, *rotlhi2.15): New insns.
2376         (*rotlsi2.1, *rotlsi2.31): New insns.
2377         * config/avr/constraints.md (C03, C05, C06, C07): New constraints.
2378
2379 2011-09-23  Bin Cheng  <bin.cheng@arm.com>
2380
2381         * config/arm/bpabi.h (BE8_LINK_SPEC): Add cortex-m arch and processors.
2382
2383 2011-09-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
2384
2385         * ipa-prop.c (ipa_print_node_jump_functions): Fix typos.
2386
2387 2011-09-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2388
2389         * reload.c (find_reloads): Set operand_mode to Pmode for address
2390         operands consisting of just a CONST_INT.
2391
2392 2011-09-22  Uros Bizjak  <ubizjak@gmail.com>
2393
2394         PR target/50482
2395         * config/i386/i386.c (ix86_expand_sse_movcc): When generating
2396         blendv, force op_true to register if it doesn't satisfy
2397         nonimmediate_operand predicate.
2398
2399 2011-09-22  Richard Sandiford  <rdsandiford@googlemail.com>
2400
2401         PR middle-end/50113
2402         PR middle-end/50061
2403         * calls.c (emit_library_call_value_1): Use BLOCK_REG_PADDING to
2404         get the locate.where_pad value for register-only arguments.
2405         * config/arm/arm.c (arm_pad_arg_upward): Remove HFmode handling.
2406         (arm_pad_reg_upward): Handle null types.
2407
2408 2011-09-22  Jan Hubicka  <jh@suse.cz>
2409
2410         * ipa-inline-analysis.c: Fix overly long lines.
2411
2412 2011-09-22  Jan Hubicka  <jh@suse.cz>
2413
2414         * ipa-inline-transform.c (inline_call): Always update jump functions
2415         after inlining.
2416         * ipa-inline.c (ipa_inline): Likewise; do not call
2417         ipa_create_all_structures_for_iinln.
2418         (ipa_inline): Always free jump functions.
2419         * ipa-inline-analysis.c (evaluate_conditions_for_edge): Remove hack.
2420         (remap_edge_predicates): Fix pasto.
2421         (inline_merge_summary): Remove nlined edge predicate; remove hack.
2422         (inline_analyze_function): Always initialize jump functions.
2423         (inline_generate_summary): Likewise.
2424         (inline_write_summary): Always write jump functions when ipa-cp
2425         is not doing that.
2426         (inline_read_summary): Always read jump functions when ipa-cp
2427         is not doing that.
2428         * ipa-prop.c (iinlining_processed_edges): Remove.
2429         (update_indirect_edges_after_inlining): Do not use
2430         iinlining_processed_edges; instead set param_index to -1.
2431         (propagate_info_to_inlined_callees): Only try to indirect inlining
2432         when asked to do so; update jump functions of indirect calls, too;
2433         remove jump functions of the inlined edge.
2434         (ipa_edge_duplication_hook): Do not copy iinlining_processed_edges.
2435         (ipa_create_all_structures_for_iinln): Remove.
2436         (ipa_free_all_structures_after_iinln): Do not free
2437         iinlining_processed_edges.
2438         * ipa-prop.h (ipa_create_all_structures_for_iinln): Remove.
2439
2440 2011-09-22  Richard Sandiford  <richard.sandiford@linaro.org>
2441
2442         * config/arm/predicates.md (expandable_comparison_operator): New
2443         predicate, extracted from...
2444         (arm_comparison_operator): ...here.
2445         * config/arm/arm.md (cbranchsi4, cbranchsf4, cbranchdf4, cbranchdi4)
2446         (cstoresi4, cstoresf4, cstoredf4, cstoredi4, movsicc, movsfcc)
2447         (movdfcc): Use expandable_comparison_operator.
2448
2449 2011-09-22  Georg-Johann Lay  <avr@gjlay.de>
2450
2451         PR target/50447
2452         PR target/50465
2453         * config/avr/avr-protos.h (avr_out_bitop): New prototype.
2454         (avr_popcount_each_byte): New prototype.
2455         * config/avr/avr.c (avr_popcount): New static function.
2456         (avr_popcount_each_byte): New function.
2457         (avr_out_bitop): New function.
2458         (adjust_insn_length): ADJUST_LEN_OUT_BITOP dispatches to
2459         avr_out_bitop.  Cleanup code.
2460         * config/avr/constraints.md (Ca2, Co2, Cx2): New constraints.
2461         (Ca4, Co4, Cx4): New constraints.
2462         * config/avr/avr.md (adjust_len): Add "out_bitop" insn attribute
2463         alternative.
2464         (andhi3, iorhi3, xorhi3): Rewrite insns using avr_out_bitop.
2465         (andsi3, iorsi3, xorsi3): Ditto.
2466         (*iorhi3_clobber, *iorsi3_clobber): Remove insns.
2467
2468 2011-09-22  Ira Rosen  <ira.rosen@linaro.org>
2469
2470         PR tree-optimization/50451
2471         * tree-vect-slp.c (vect_get_constant_vectors): Don't fail for
2472         constant operands in reduction.
2473         (vect_get_slp_defs): Don't create vector operand for NULL scalar
2474         operand.
2475
2476 2011-09-22  David S. Miller  <davem@davemloft.net>
2477
2478         * config/sparc/sparc.c (sparc_vis_init_builtins): Do not mark
2479         fpack16, fpack32, fpackfix as const.
2480
2481         * config/sparc/sparc.md (G[0-7]_REG, O[0-7]_REG, L[0-7]_REG,
2482         I[0-7]_REG, F[0-62]_REG, FCC[0-3]_REG, CC_REG, SFP_REG): New
2483         constants.  Use them everywhere.
2484
2485 2011-09-22  Oleg Endo  <oleg.endo@t-online.de>
2486
2487         * config/sh/sh.c (andcosts): Renamed to and_xor_ior_costs.
2488         Added AND special case.  Adapted comments.
2489         (sh_rtx_costs): Added XOR and IOR case.
2490
2491 2011-09-21  Jan Hubicka  <jh@suse.cz>
2492
2493         * ipa-inline-analsis.c (compute_inline_parameters): Set
2494         cfun and current_function_decl.
2495
2496 2011-09-21  Jan Hubicka  <jh@suse.cz>
2497
2498         * ipa-inline-analysis.c (set_cond_stmt_execution_predicate): Allow
2499         handled components in parameter of builtin_constant_p.
2500         (will_be_nonconstant_predicate): Allow loads of non-SSA parameters.
2501
2502 2011-09-21  Jan Hubicka  <jh@suse.cz>
2503
2504         * ipa-inline.c (relative_time_benefit): Fix wrong bracketting.
2505         * ipa-inline.h (estimate_edge_time): Fix pasto.
2506         * ipa-inline-analysis.c (do_estiamte_edge_time): Remove capping.
2507
2508 2011-09-21  Jakub Jelinek  <jakub@redhat.com>
2509
2510         * config/i386/i386.c (ix86_expand_sse_movcc): Use
2511         blendvps, blendvpd and pblendvb if possible.
2512
2513 2011-09-21  Uros Bizjak  <ubizjak@gmail.com>
2514
2515         PR target/50464
2516         * config/i386/sse.md (xop_pcmov_<mode><avxsizesuffix>): Change
2517         operand 1 predicate to register_operand and operand 2 predicate
2518         to nonimmediate_operand.
2519         * config/i386/i386.c (ix86_expand_sse_movcc): When generating
2520         xop_pcmov, force op_true to register.  Also, force op_false to
2521         register if it doesn't satisfy nonimmediate_operand predicate.
2522
2523 2011-09-21  Kirill Yukhin  <kirill.yukhin@intel.com>
2524
2525         * config/i386/bmi2intrin.h (_mulx_u64): New.
2526         (_mulx_u32): Ditto.
2527
2528 2011-09-21  Jan Hubicka  <jh@suse.cz>
2529
2530         PR tree-optimization/50433
2531         * ipa-inline-analysis.c (eliminated_by_inlining_prob):
2532         Use get_base_address.
2533
2534 2011-09-21  Jakub Jelinek  <jakub@redhat.com>
2535
2536         * config/i386/sse.md (<code><mode>3 smaxmin:VI124_128 expander): Use
2537         nonimmediate_operand instead of register_operand predicate for operands
2538         1 and 2, force them into registers if expanding them as comparison.
2539         (<code><mode>3 umaxmin:VI124_128 expander): Similarly.  For UMAX
2540         V8HImode force into register just operand 1.
2541
2542 2011-09-21  Georg-Johann Lay  <avr@gjlay.de>
2543
2544         PR target/45099
2545         * config/avr/avr.c (avr_function_arg_advance): Change error to
2546         warning if a fixed register is needed as function argument.
2547
2548 2011-09-21  Georg-Johann Lay  <avr@gjlay.de>
2549
2550         PR target/50449
2551         PR target/50465
2552         * config/avr/avr.md (adjust_len): New insn attribute.
2553         (*reload_insi, *reload_insf): Use it.
2554         (*movsi, *movsf): Use new interface of output_movsisf.
2555         * config/avr/avr-protos.h (output_movsisf): Change prototype.
2556         * config/avr/avr.c (output_movsisf): Ditto.
2557         (adjust_insn_length): Use insn attribute "adjust_len" to adjust
2558         lengths of insns *reload_insi, *reload_insf.
2559         (output_reload_insisf_1): New static function.
2560         (output_reload_insisf): Use it.
2561
2562 2011-09-21  David S. Miller  <davem@davemloft.net>
2563
2564         * config/sparc/sparc.c (def_builtin): Change from macro into function.
2565         (def_builtin_const): New.
2566         (sparc_vis_init_builtins): Use def_builtin_const for all VIS builtins
2567         other than alignaddr and falignaddr.
2568
2569         * config/sparc/sparc.md (UNSPEC_FCMPLE, UNSPEC_FCMPNE, UNSPEC_FCMPGT,
2570         UNSPEC_FCMPEQ): New unspec codes.
2571         (fcmple16_vis, fcmple32_vis, fcmpne16_vis, fcmpne32_vis, fcmpgt16_vis,
2572         fcmpgt32_vis, fcmpeq16_vis, fcmpeq32_vis): New patterns.
2573         * config/sparc/sparc.c (sparc_vis_init_builtins): Create builtins for
2574         new pixel compare VIS patterns.
2575         * config/sparc/visintrin.h (__vis_fcmple16, __vis_fcmple32,
2576         __vis_fcmpne16, __vis_fcmpne32, __vis_fcmpgt16, __vis_fcmpgt32,
2577         __vis_fcmpeq16, __vis_fcmpeq32): New.
2578         * doc/extend.texi: Document new pixel compare VIS intrinsics.
2579
2580 2011-09-21  Tom de Vries  <tom@codesourcery.com>
2581
2582         * final.c (final): Handle if JUMP_LABEL is not LABEL_P.
2583
2584 2011-09-20  David S. Miller  <davem@davemloft.net>
2585
2586         * config/sparc/sparc.md (UNSPEC_ALIGNADDRL): New unspec.
2587         (aligneddrl<P:mode>_vis): New pattern.
2588         (edge8_vis, edge8l_vis, edge16_vis, edge16l_vis, edge32_vis,
2589         edge32l_vis): Adjust to take Pmode arguments, and return SImode.
2590         * config/sparc/sparc.c (sparc_vis_init_builtins): Handle new
2591         alignaddrl insn, and adjust edge operations for updated types.
2592         * config/sparc/visintrin.h: Likewise.
2593         * doc/extend.texi: Make typing in VIS documentation match reality.
2594
2595 2011-09-20  Terry Guo  <terry.guo@arm.com>
2596
2597         * config/arm/arm-arches.def: Add armv6s-m.
2598         * config/arm/arm-tables.opt: Regenerate.
2599
2600 2011-09-20  Wei Guozhi  <carrot@google.com>
2601
2602         PR rtl-optimization/49452
2603         * postreload.c (reload_combine): Invalidate use information when across
2604         volatile insn.
2605
2606 2011-09-19  Maxim Kuvyrkov  <maxim@codesourcery.com>
2607
2608         * haifa-sched.c (has_edge_p, prev_non_location_insn, check_cfg):
2609         Remove maintenance overhead.
2610         (haifa_sched_init, sched_finish): Update.
2611
2612 2011-09-19  Uros Bizjak  <ubizjak@gmail.com>
2613
2614         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use if_then_else RTX
2615         to calculate unit, prefix_rep and prefix_data16 attributes.
2616         (*mov<mode>_internal): Ditto for unit attribute.
2617         (*movv2sf_internal_rex64): Ditto for unit and prefix_rep attributes.
2618         (*movv2sf_internal): Ditto.
2619         * config/i386/sse.md (VI1248_256): Remove mode iterator.
2620         (avx2_eq<mode>3): Use VI_256 instead of VI1248_256.
2621         (*avx2_eq<mode>3): Ditto.
2622         (avx2_gt<mode>3): Ditto.
2623
2624 2011-09-19  Uros Bizjak  <ubizjak@gmail.com>
2625
2626         * config/i386/i386.md (maxmin): New code iterator.
2627         * config/i386/sse.md (<maxmin:code><mode>3): Macroize expander
2628         from <umaxmin:code><mode>3 and <smaxmin:code><mode>3 using maxmin
2629         code iterator.
2630         (*avx2_<maxmin:code><mode>3): Macroize isn from
2631         *avx2_<umaxmin:code><mode>3 and *avx2_<smaxmin:code><mode>3 using
2632         maxmin code iterator.
2633         (<smaxmin:code><VI124_128:mode>3): Merge with <smaxmin:code>v8hi3.
2634         (<umaxmin:code><VI124_128:mode>3): Merge with umaxv4si3 and
2635         <umaxmin:code>v16qi3.
2636
2637 2011-09-19  Alan Modra  <amodra@gmail.com>
2638             Michael Meissner  <meissner@linux.vnet.ibm.com>
2639
2640         PR target/50341
2641         * config/rs6000/rs6000.md (call_indirect_aix<ptrsize>): Do not
2642         split the load of the indirect function's TOC from the call to
2643         prevent the compiler from moving the load of the new TOC above
2644         code that references the current function's TOC.
2645         (call_indirect_aix<ptrsize>_internal): Ditto.
2646         (call_indirect_aix<ptrsize>_nor11): Ditto.
2647         (call_indirect_aix<ptrsize>_internal2): Ditto.
2648         (call_value_indirect_aix<ptrsize>): Ditto.
2649         (call_value_indirect_aix<ptrsize>_internal): Ditto.
2650         (call_value_indirect_aix<ptrsize>_nor11): Ditto.
2651         (call_value_indirect_aix<ptrsize>_internal2): Ditto.
2652
2653 2011-09-19  Jakub Jelinek  <jakub@redhat.com>
2654
2655         * config/i386/sse.md (*sse4_1_extractps): Change into
2656         define_insn_and_split, add =x 0 n and =x x n alternatives
2657         and split them after reload.
2658
2659 2011-09-19  Alexandre Oliva  <aoliva@redhat.com>
2660
2661         * tree.h (TREE_NOT_CHECK4): Rename from bogus NON_TREE_CHECK4.
2662
2663 2011-09-19  Alexandre Oliva  <aoliva@redhat.com>
2664
2665         * emit-rtl.c (copy_insn_1): Do not copy DEBUG_EXPRs.
2666
2667 2011-09-19  Ira Rosen  <ira.rosen@linaro.org>
2668
2669         PR tree-optimization/50413
2670         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail to vectorize
2671         a basic block if one of its data-refs can't be analyzed.
2672
2673 2011-09-19  Paul Brook  <paul@codesourcery.com>
2674
2675         * config/arm/predicates.md (shift_amount_operand): Check constant
2676         shift count is in range.
2677         (const_shift_operand): Remove.
2678
2679 2011-09-18  Eric Botcazou  <ebotcazou@adacore.com>
2680             Iain Sandoe  <developer@sandoe-acoustics.co.uk>
2681
2682         PR target/50091
2683         * config/rs6000/rs6000.md (probe_stack): Use explicit operand.
2684         * config/rs6000/rs6000.c (output_probe_stack_range): Likewise.
2685
2686 2011-09-18  H.J. Lu  <hongjiu.lu@intel.com>
2687
2688         * config/i386/bmiintrin.h: Remove tmp.
2689         * config/i386/tbmintrin.h: Likewise.
2690
2691 2011-09-18  Ira Rosen  <ira.rosen@linaro.org>
2692
2693         PR tree-optimization/50414
2694         * tree-vect-slp.c (vect_get_constant_vectors): Handle MAX_EXPR and
2695         MIN_EXPR.
2696
2697 2011-09-18  Ira Rosen  <ira.rosen@linaro.org>
2698
2699         PR tree-optimization/50412
2700         * tree-vect-data-refs.c (vect_analyze_group_access): Fail for
2701         acceses that require epilogue loop if vectorizing outer loop.
2702
2703 2011-09-17  David S. Miller  <davem@davemloft.net>
2704
2705         * config/sparc/sparc.md (UNSPEC_EDGE8, UNSPEC_EDGE8L,
2706         UNSPEC_EDGE16, UNSPEC_EDGE16L, UNSPEC_EDGE32, UNSPEC_EDGE32L):
2707         New unspecs.
2708         (define_attr type): New type 'edge'.
2709         (edge8_vis, edge8l_vis, edge16_vis, edge16l_vis, edge32_vis,
2710         edge32l_vis): New patterns.
2711         * config/sparc/ultra1_2.md: Add insn reservation for 'edge'.
2712         * config/sparc/ultra3.md: Likewise.
2713         * config/sparc/niagara.md: Likewise.
2714         * config/sparc/niagara2.md: Likewise.
2715         * config/sparc/sparc.d (sparc_vis_init_builtins): Generate
2716         builtins for VIS edge instructions.
2717         * config/sparc/visintrin.h (__vis_edge8, __vis_edge8l)
2718         (__vis_edge16, __vis_edge16l, __vis_edge32, __vis_edge32l): New
2719         intrinsics.
2720         (__v8qi, __v4qi): Make unsigned.
2721         (__vis_faligndatadi, ___vis_faligndatav2si, __vis_faligndatav4hi,
2722         __vis_faligndatav8qi, __vis_fmul8x16au, __vis_fmul8x16al,
2723         __vis_fpack32): Fix types.
2724         * doc/extend.texi: Document new 'edge' VIS intrinsics.
2725
2726         * gcc/config/sparc/sparc.c (niagara2_costs): Adjust integer
2727         divide costs.
2728         (niagara3_costs): New.
2729         (sparc_option_override): Use it.
2730         * gcc/config/sparc/niagara2.md: Adjust with more accurate
2731         Niagara-3 reservations.
2732
2733 2011-09-17  Jakub Jelinek  <jakub@redhat.com>
2734
2735         * config/i386/sse.md (VIMAX_AVX2): Change V4DI to V2TI.
2736         (sse2_avx, sseinsnmode): Add V2TI.
2737         (REDUC_SMINMAX_MODE): New mode iterator.
2738         (reduc_smax_v4sf, reduc_smin_v4sf, reduc_smax_v8sf,
2739         reduc_smin_v8sf, reduc_smax_v4df, reduc_smin_v4df): Remove.
2740         (reduc_<code>_<mode>): New smaxmin and umaxmin expanders.
2741         (sse2_lshrv1ti3): Rename to...
2742         (<sse2_avx2>_lshr<mode>3): ... this.  Use VIMAX_AVX2 mode
2743         iterator.  Move before umaxmin expanders.
2744         * config/i386/i386.h (VALID_AVX256_REG_MODE,
2745         SSE_REG_MODE_P): Accept V2TImode.
2746         * config/i386/i386.c (ix86_expand_reduc): Handle V32QImode,
2747         V16HImode, V8SImode and V4DImode.
2748
2749         * config/i386/i386.c (ix86_build_const_vector): Handle V8SImode
2750         and V4DImode.
2751         (ix86_build_signbit_mask): Likewise.
2752         (ix86_expand_int_vcond): Likewise.  Handle V16HImode and V32QImode.
2753         (bdesc_args): Use CODE_FOR_{s,u}m{ax,in}v{32q,16h,8s}i3
2754         instead of CODE_FOR_avx2_{s,u}m{ax,in}v{32q,16h,8s}i3.
2755         * config/i386/sse.md (avx2_<code><mode>3 umaxmin expand): Rename to...
2756         (<code><mode>3) ... this.
2757         (avx2_<code><mode>3 smaxmin expand): Rename to...
2758         (<code><mode>3) ... this.
2759         (smax<mode>3, smin<mode>3): Macroize using smaxmin code iterator.
2760         (smaxv2di3, sminv2di3): Macroize using smaxmin code iterator and
2761         VI8_AVX2 mode iterator.
2762         (umaxv2di3, uminv2di3): Macroize using umaxmin code iterator and
2763         VI8_AVX2 mode iterator.
2764         (vcond<V_256:mode><VI_256:mode>, vcondu<V_256:mode><VI_256:mode>):
2765         New expanders.
2766
2767 2011-09-17  Richard Sandiford  <rdsandiford@googlemail.com>
2768
2769         * config/ia64/itanium2.md: Use match_test rather than eq/ne symbol_ref
2770         throughout file.
2771
2772 2011-09-16  David S. Miller  <davem@davemloft.net>
2773
2774         * config/sparc/visintrin.h: New file.
2775         * config.gcc: Add it to extra_headers on sparc.
2776
2777 2011-09-16  Jakub Jelinek  <jakub@redhat.com>
2778
2779         * config/i386/i386.c (ix86_expand_reduc_v4sf): Rename to ...
2780         (ix86_expand_reduc): ... this.  Handle also V8SFmode and V4DFmode.
2781         * config/i386/sse.md (reduc_splus_v4sf, reduc_smax_v4sf,
2782         reduc_smin_v4sf): Adjust callers.
2783         (reduc_smax_v8sf, reduc_smin_v8sf, reduc_smax_v4df, reduc_smin_v4df):
2784         New expanders.
2785
2786         * config/i386/sse.md (vec_extract_hi_<mode>,
2787         vec_extract_hi_v16hi, vec_extract_hi_v32qi): Use
2788         vextracti128 instead of vextractf128 for -mavx2 and
2789         integer vectors.  For V4DFmode fix up mode attribute.
2790         (VEC_EXTRACT_MODE): For TARGET_AVX add 32-byte vectors.
2791         (vec_set_lo_<mode>, vec_set_hi_<mode>): For VI8F_256 modes use V4DF
2792         instead of V8SF mode attribute.
2793         (avx2_extracti128): Change into define_expand.
2794         * config/i386/i386.c (ix86_expand_vector_extract): Handle
2795         32-byte vector modes if TARGET_AVX.
2796
2797 2011-09-16  Georg-Johann Lay  <avr@gjlay.de>
2798
2799         * config/avr/avr.md: (umulqihi3, mulqihi3): Write as one pattern.
2800         (umulqi3_highpart, smulqi3_highpart): Ditto.
2801         (*maddqihi4.const, *umaddqihi4.uconst): Ditto.
2802         (*msubqihi4.const, *umsubqihi4.uconst): Ditto.
2803         (*muluqihi3.uconst, *mulsqihi3.sconst): Ditto.
2804
2805 2011-09-16  Georg-Johann Lay  <avr@gjlay.de>
2806
2807         PR target/50358
2808         * config/avr/avr.md (*ashiftqihi2.signx.1): New insn.
2809         (*maddqi4, *maddqi4.const): New insns.
2810         (*msubqi4, *msubqi4.const): New insns.
2811         * config/avr/avr.c (avr_rtx_costs): Record costs of above in cases
2812         PLUS:QI and MINUS:QI.  Increase costs of multiply-add/-sub for
2813         HImode by 1 in the case of multiplying with a CONST_INT.
2814         Record cost of *ashiftqihi2.signx.1 in case ASHIFT:QI.
2815
2816 2011-09-15   Jan Hubicka  <jh@suse.cz>
2817
2818         PR lto/50430
2819         * gimple-fold.c (gimple_get_virt_method_for_binfo): Do not ICE on
2820         error_mark_node in the DECL_INITIAL of vtable.
2821
2822 2011-09-15   Diego Novillo  <dnovillo@google.com>
2823
2824         * Makefile.in (SYSROOT_CFLAGS_FOR_TARGET): Define from
2825         @SYSROOT_CFLAGS_FOR_TARGET@.
2826         * configure.ac (SYSROOT_CFLAGS_FOR_TARGET): Set from build-sysroot.
2827         * configure: Regenerate.
2828         (site.exp): Add definition of TEST_ALWAYS_FLAGS.
2829         Remove setting of GCC_UNDER_TEST.
2830
2831 2011-09-15  Uros Bizjak  <ubizjak@gmail.com>
2832
2833         * config/i386/i386.c (output_fp_compare): Return %v prefixed
2834         instruction mnemonics for TARGET_AVX.
2835
2836         * config/i386/i386.md (*movdf_internal_rex64): use cond RTX in
2837         "type" attribute calculation.
2838         (*movdf_internal): Ditto.
2839         (*movsf_internal): Ditto.
2840
2841 2011-09-15  James Greenhalgh  <james.greenhalgh@arm.com>
2842
2843         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): New builtin macro.
2844
2845 2011-09-15  Jason Merrill  <jason@redhat.com>
2846
2847         PR c++/50361
2848         * expr.c (count_type_elements): Handle NULLPTR_TYPE.
2849
2850 2011-09-15  Jan Hubicka  <jh@suse.cz>
2851
2852         * ipa-inline-analysis.c (add_condition): Add conditions parameter;
2853         simplify obviously true clauses.
2854         (and_predicates, or_predicates): Add conditions parameter.
2855         (inline_duplication_hoook): Update.
2856         (mark_modified): New function.
2857         (unmodified_parm): New function.
2858         (eliminated_by_inlining_prob, (set_cond_stmt_execution_predicate,
2859         set_switch_stmt_execution_predicate, will_be_nonconstant_predicate):
2860         Use unmodified_parm.
2861         (estimate_function_body_sizes): Update.
2862         (remap_predicate): Update.
2863
2864 2011-09-15  Ira Rosen  <ira.rosen@linaro.org>
2865
2866         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Allow
2867         read-after-read dependencies in basic block SLP.
2868
2869 2011-09-14  Richard Sandiford  <rdsandiford@googlemail.com>
2870
2871         * config/sparc/sparc.md: Use match_test rather than eq/ne symbol_ref
2872         throughout file.
2873
2874 2011-09-14  Richard Sandiford  <rdsandiford@googlemail.com>
2875
2876         * config/sh/sh.md: Use match_test rather than eq/ne symbol_ref
2877         throughout file.
2878
2879 2011-09-14  Richard Sandiford  <rdsandiford@googlemail.com>
2880
2881         * config/s390/s390.md: Use match_test rather than eq/ne symbol_ref
2882         throughout file.
2883
2884 2011-09-14  Richard Sandiford  <rdsandiford@googlemail.com>
2885
2886         * config/rs6000/rs6000.md: Use match_test rather than eq/ne symbol_ref
2887         throughout file.
2888         * config/rs6000/constraints.md: Likewise.
2889
2890 2011-09-14  Richard Sandiford  <rdsandiford@googlemail.com>
2891
2892         * config/microblaze/microblaze.md: Use match_test rather than
2893         eq/ne symbol_ref throughout file.
2894
2895 2011-09-14  Richard Sandiford  <rdsandiford@googlemail.com>
2896
2897         * config/bfin/bfin.md: Use match_test rather than eq/ne symbol_ref
2898         throughout file.
2899
2900 2011-09-14  Tom de Vries  <tom@codesourcery.com>
2901
2902         PR middle-end/50251
2903         * explow.c (emit_stack_restore): Set crtl->need_drap if
2904         stack_restore is emitted.
2905
2906 2011-09-14  Julian Brown  <julian@codesourcery.com>
2907
2908         * config/arm/arm.c (arm_override_options): Add unaligned_access
2909         support.
2910         (arm_file_start): Emit attribute for unaligned access as appropriate.
2911         * config/arm/arm.md (UNSPEC_UNALIGNED_LOAD)
2912         (UNSPEC_UNALIGNED_STORE): Add constants for unspecs.
2913         (insv, extzv): Add unaligned-access support.
2914         (extv): Change to expander. Likewise.
2915         (extzv_t1, extv_regsi): Add helpers.
2916         (unaligned_loadsi, unaligned_loadhis, unaligned_loadhiu)
2917         (unaligned_storesi, unaligned_storehi): New.
2918         (*extv_reg): New (previous extv implementation).
2919         * config/arm/arm.opt (munaligned_access): Add option.
2920         * config/arm/constraints.md (Uw): New constraint.
2921         * expmed.c (store_bit_field_1): Adjust bitfield numbering according
2922         to size of access, not size of unit, when BITS_BIG_ENDIAN !=
2923         BYTES_BIG_ENDIAN. Don't use bitfield accesses for
2924         volatile accesses when -fstrict-volatile-bitfields is in effect.
2925         (extract_bit_field_1): Likewise.
2926
2927 2011-09-14  Richard Sandiford  <richard.sandiford@linaro.org>
2928
2929         * simplify-rtx.c (simplify_subreg): Check that the inner mode is
2930         a scalar integer before applying integer-only optimisations to
2931         inner arithmetic.
2932
2933 2011-09-14  Bernd Schmidt  <bernds@codesourcery.com>
2934
2935         * config/mips/mips.c (mips_expand_epilogue): Generate a
2936         simple_return only if the return address is in r31.
2937
2938 2011-09-13  Bernd Schmidt  <bernds@codesourcery.com>
2939
2940         * cfgcleanup.c (try_head_merge_bb): If get_condition returns
2941         NULL for a jump that is a cc0 insn, pick the previous insn for
2942         move_before.
2943
2944 2011-09-13  Richard Sandiford  <rdsandiford@googlemail.com>
2945
2946         * config/v850/v850.md: Use match_test rather than eq/ne symbol_ref
2947         throughout file.
2948
2949 2011-09-13  Richard Sandiford  <rdsandiford@googlemail.com>
2950
2951         * config/pa/pa.md: Use match_test rather than eq/ne symbol_ref
2952         throughout file.
2953
2954 2011-09-13  Richard Sandiford  <rdsandiford@googlemail.com>
2955
2956         * config/mn10300/mn10300.md: Use match_test rather than eq/ne
2957         symbol_ref throughout file.
2958
2959 2011-09-13  Richard Sandiford  <rdsandiford@googlemail.com>
2960
2961         * config/m68k/m68k.md: Use match_test rather than eq/ne symbol_ref
2962         throughout file.
2963
2964 2011-09-13  Richard Sandiford  <rdsandiford@googlemail.com>
2965
2966         * config/h8300/h8300.md: Use match_test rather than eq/ne symbol_ref
2967         throughout file.
2968
2969 2011-09-13  Richard Sandiford  <rdsandiford@googlemail.com>
2970
2971         * config/arm/arm.md: Use match_test rather than eq/ne symbol_ref
2972         throughout file.
2973         * config/arm/neon.md: Likewise.
2974         * config/arm/vfp.md: Likewise.
2975         * config/arm/thumb2.md: Likewise.
2976         * config/arm/cortex-m4.md: Likewise.
2977
2978 2011-09-13  Sevak Sargsyan <sevak.sargsyan@ispras.ru>
2979
2980         * config/arm/neon.md (neon_vabd<mode>_2, neon_vabd<mode>_3): New
2981         define_insn patterns for combine.
2982
2983 2011-09-13  Giuseppe Scrivano  <gscrivano@gnu.org>
2984
2985         * reorg.c: Always define make_return_insns.
2986
2987 2011-09-13  Jan Hubicka  <jh@suse.cz>
2988
2989         PR other/49533
2990         * cgraphunit.c (assemble_thunks_and_aliases): Force alias to be output.
2991
2992 2011-09-13  Jan Hubicka  <jh@suse.cz>
2993
2994         PR other/49533
2995         * ipa-inline-transform.c (can_remove_node_now_p): Fix thunkos.
2996
2997 2011-09-13  Paul Brook  <paul@codesourcery.com>
2998
2999         * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
3000         (ARM_TARGET2_DWARF_FORMAT): Provide default definition.
3001         * config/arm/linux-eabi.h (ARM_TARGET2_DWARF_FORMAT): Define.
3002         * config/arm/symbian.h (ARM_TARGET2_DWARF_FORMAT): Define.
3003         * config/arm/uclinux-eabi.h(ARM_TARGET2_DWARF_FORMAT): Define.
3004         * config/arm/t-bpabi (EXTRA_HEADERS): Add unwind-arm-common.h.
3005         * config/arm/t-symbian (EXTRA_HEADERS): Add unwind-arm-common.h.
3006         * config/c6x/c6x.c (c6x_output_file_unwind): Don't rely on dwarf2 code
3007         enabling unwind tables.
3008         (c6x_debug_unwind_info): New function.
3009         (TARGET_ARM_EABI_UNWINDER): Define.
3010         (TARGET_DEBUG_UNWIND_INFO): Define.
3011         * config/c6x/c6x.h (DWARF_FRAME_RETURN_COLUMN): Define.
3012         (TARGET_EXTRA_CFI_SECTION): Remove.
3013         * config/c6x/t-c6x-elf (EXTRA_HEADERS): Set.
3014         * ginclude/unwind-arm-common.h: New file.
3015
3016 2011-09-13  Georg-Johann Lay  <avr@gjlay.de>
3017
3018         PR target/50358
3019         * config/avr/predicates.md (const_1_to_6_operand): New predicate.
3020         * config/avr/avr.md: (extend_s): New code attribute.
3021         (mul_r_d): New code attribute.
3022         (*maddqihi4, *umaddqihi4): New insns.
3023         (*msubqihi4, *umsubqihi4): New insns.
3024         (*usmaddqihi4, *sumaddqihi4): New insns.
3025         (*usmsubqihi4, *susubdqihi4): New insns.
3026         (*umaddqihi4.uconst, *maddqihi4.sconst): New insn-and-splits.
3027         (*umsubqihi4.uconst, *msubqihi4.sconst): New insn-and-splits.
3028         (*umsubqihi4.uconst.ashift): New insn-and-split.
3029         (*msubqihi4.sconst.ashift): New insn-and-split.
3030         (*sumaddqihi4.uconst): New insn-and-split.
3031         (*sumsubqihi4.uconst): New insn-and-split.
3032         * config/avr/avr.c (avr_rtx_costs): Report costs of above in case
3033         PLUS:HI and MINUS:HI.
3034
3035 2011-09-13  Revital Eres  <revital.eres@linaro.org>
3036
3037         modulo-sched.c (remove_node_from_ps): Return void instead of bool.
3038         (optimize_sc): Adjust call to remove_node_from_ps.
3039         (sms_schedule): Add print info.
3040
3041 2011-09-13  Bernd Schmidt  <bernds@codesourcery.com>
3042
3043         * rtl.c (copy_rtx): Do not handle frame_related, jump or call
3044         flags specially.
3045
3046 2011-09-12  Jakub Jelinek  <jakub@redhat.com>
3047
3048         PR bootstrap/50010
3049         * dwarf2cfi.c (add_cfis_to_fde): Ignore non-active insns in between
3050         NOTE_INSN_CFI notes, with the exception of
3051         NOTE_INSN_SWITCH_TEXT_SECTIONS.
3052
3053 2011-09-12  Bernd Schmidt  <bernds@codesourcery.com>
3054             Richard Sandiford  <rdsandiford@googlemail.com>
3055
3056         * config/mips/mips.c (mips_epilogue): New structure.
3057         (mips16e_save_restore_reg): Queue REG_CFA_RESTORE notes when
3058         restoring registers.
3059         (mips_epilogue_emit_cfa_restores): New function.
3060         (mips_epilogue_set_cfa): Likewise.
3061         (mips_restore_reg): Queue REG_CFA_RESTORE notes.  When restoring
3062         the current CFA register from the stack, redefine the CFA in terms
3063         of the stack pointer.
3064         (mips_expand_epilogue): Set up mips_epilogue.  Attach CFA information
3065         to the epilogue instructions.
3066
3067 2011-09-12  Richard Sandiford  <rdsandiford@googlemail.com>
3068
3069         * config/mips/mips.c (mips16e_save_restore_reg): Add a reg_parm_p
3070         argument.
3071         (mips16e_build_save_restore): Update accordingly.
3072
3073 2011-09-12  Jakub Jelinek  <jakub@redhat.com>
3074
3075         PR rtl-optimization/50212
3076         * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
3077         Skip also lps with NULL landing_pad or non-LABEL_P landing_pad.
3078
3079         PR debug/50299
3080         * calls.c (load_register_parameters): Use use_reg_mode instead
3081         of use_reg when adding a single register CALL_INSN_FUNCTION_USAGE
3082         entry.
3083         (expand_call): Set EXPR_LIST mode to TYPE_MODE of the argument
3084         for stack CALL_INSN_FUNCTION_USAGE uses.
3085         * expr.h (use_reg_mode): New prototype.
3086         (use_reg): Changed into inline around use_reg_mode.
3087         * expr.c (use_reg): Renamed to...
3088         (use_reg_mode): ... this.  Added MODE argument, set EXPR_LIST
3089         mode to that mode instead of VOIDmode.
3090         * var-tracking.c (prepare_call_arguments): Don't track parameters
3091         whose EXPR_LIST mode is VOIDmode, BLKmode or X mode isn't convertible
3092         to it using lowpart_subreg.  Convert VALUE and REG/MEM to the
3093         EXPR_LIST mode.
3094
3095 2011-09-12  Georg-Johann Lay  <avr@gjlay.de>
3096
3097         PR target/43746
3098         * config/avr/avr.c (AVR_SECTION_PROGMEM): New Define.
3099         (progmem_section): New Variable.
3100         (avr_asm_init_sections): Initialize it.
3101         (TARGET_ASM_SELECT_SECTION): Define to...
3102         (avr_asm_select_section): ... this new Function.
3103         (avr_replace_prefix): New Function.
3104         (avr_asm_function_rodata_section): Use it.
3105         (avr_insert_attributes): Don't add section attribute for PROGMEM.
3106         (avr_section_type_flags): Use avr_progmem_p instead of section
3107         name to detect if object is in PROGMEM.
3108         (avr_asm_named_section): Set section name prefix for objects in
3109         PROGMEM.
3110
3111 2011-09-12  Jakub Jelinek  <jakub@redhat.com>
3112
3113         PR bootstrap/50352
3114         * config/arm/arm.md (*push_fp_multi): Add % before %( and %) in the
3115         sprintf format string.
3116
3117 2011-09-12  Richard Guenther  <rguenther@suse.de>
3118
3119         PR tree-optimization/50343
3120         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Check
3121         that the reduction is over an SSA name before checking its definition.
3122
3123 2011-09-11  Richard Sandiford  <rdsandiford@googlemail.com>
3124
3125         * config/cris/cris.md: Use match_test rather than eq/ne symbol_ref
3126         throughout file.
3127
3128 2011-09-11  Richard Sandiford  <rdsandiford@googlemail.com>
3129
3130         * config/mips/mips.md: Use match_test rather than eq/ne symbol_ref
3131         throughout file.
3132         * config/mips/sb1.md: Likewise.
3133         * config/mips/predicates.md: Replace (match_test "!...")
3134         with (not (match_test "..."))
3135         * config/mips/constraints.md: Likewise.
3136
3137 2011-09-09  Andrew Stubbs  <ams@codesourcery.com>
3138
3139         * config/arm/arm-cores.def (generic-armv7-a): New architecture.
3140         * config/arm/arm-tables.opt: Regenerate.
3141         * config/arm/arm-tune.md: Regenerate.
3142         * config/arm/arm.c (arm_file_start): Output .arch directive when
3143         user passes -mcpu=generic-*.
3144         (arm_issue_rate): Add genericv7a support.
3145         * config/arm/arm.h (EXTRA_SPECS): Add asm_cpu_spec.
3146         (ASM_CPU_SPEC): New define.
3147         * config/arm/elf.h (ASM_SPEC): Use %(asm_cpu_spec).
3148         * config/arm/semi.h (ASM_SPEC): Likewise.
3149         * doc/invoke.texi (ARM Options): Document -mcpu=generic-*
3150         and -mtune=generic-*.
3151
3152 2011-09-09  Richard Guenther  <rguenther@suse.de>
3153
3154         PR tree-optimization/50328
3155         * tree-vect-loop.c (vect_is_simple_reduction_1): Allow one
3156         constant or default-def operand.
3157
3158 2011-09-09  Richard Guenther  <rguenther@suse.de>
3159
3160         * tree-ssa-pre.c (create_expression_by_pieces): Fold the
3161         last statement.
3162
3163 2011-09-09  Richard Guenther  <rguenther@suse.de>
3164
3165         * gimple.h (fold_stmt_inplace): Adjust to take a gimple_stmt_iterator
3166         instead of a statement.
3167         * gimple-fold.c (fold_stmt_inplace): Likewise.
3168         * sese.c (graphite_copy_stmts_from_block): Adjust.
3169         * tree-ssa-dom.c (propagate_rhs_into_lhs): Likewise.
3170         * tree-ssa-forwprop.c (forward_propagate_into_comparison): Use
3171         fold_stmt.
3172         (forward_propagate_addr_into_variable_array_index): Likewise.
3173         (forward_propagate_addr_expr_1): adjust.
3174         (associate_plusminus): Likewise.
3175         (ssa_forward_propagate_and_combine): Likewise.
3176         * tree-ssa-mathopts.c (replace_reciprocal): Adjust.
3177         (execute_cse_reciprocals): Likewise.
3178         * tree-ssa.c (insert_debug_temp_for_var_def): Adjust.
3179
3180 2011-09-09  Nick Clifton  <nickc@redhat.com>
3181
3182         * config/mn10300/mn10300.c (mn10300_split_and_operand_count):
3183         Return a positive value to indicate that the bits at the
3184         bottom of the register should be cleared.
3185
3186 2011-09-09  Richard Guenther  <rguenther@suse.de>
3187
3188         * tree-ssa-operands.c (swap_tree_operands): Always adjust
3189         existing operand positions.
3190
3191 2011-09-09  Richard Guenther  <rguenther@suse.de>
3192
3193         PR middle-end/50333
3194         * tree-data-ref.c (split_constant_offset): Do not try to handle
3195         ternary ops.
3196
3197 2011-09-08  Andrew Stubbs  <ams@codesourcery.com>
3198
3199         PR tree-optimization/50318
3200         * tree-ssa-math-opts.c (convert_plusminus_to_widen): Correct
3201         typo in use of mult_rhs1 and mult_rhs2.
3202
3203 2011-09-08  Uros Bizjak  <ubizjak@gmail.com>
3204
3205         * config/i386/i386.c (standard_sse_constant_p): Handle AVX2 modes.
3206         (standard_sse_constant_opcode) <case 2>: Change vpcmpeqd template.
3207
3208 2011-09-08  Bernd Schmidt  <bernds@codesourcery.com>
3209
3210         * config/arm/arm.md (push_multi): Emit predicates.
3211         (push_fp_multi): Likewise.
3212         * config/arm/arm.c (vfp_output_fstmd): Likewise.
3213
3214 2011-09-08  Dodji Seketeli  <dodji@redhat.com>
3215
3216         PR c++/33255 - Support -Wunused-local-typedefs warning
3217         * c-decl.c (lookup_name): Use the new maybe_record_typedef_use.
3218         (pushdecl): Use the new record_locally_defined_typedef.
3219         (store_parm_decls): Allocate cfun->language.
3220         (finish_function): Use the new maybe_warn_unused_local_typedefs,
3221         and free cfun->language.
3222         (c_push_function_context): Allocate cfun->language here only if needed.
3223         (c_pop_function_context): Likewise, mark cfun->language
3224         for collection only when it should be done.
3225         * c-common.c (handle_used_attribute): Don't ignore TYPE_DECL nodes.
3226         * c-typeck.c (c_expr_sizeof_type, c_cast_expr): Use the new
3227         maybe_record_local_typedef_use.
3228         * doc/invoke.texi: Update documentation for
3229         -Wunused-local-typedefs.
3230
3231 2011-09-08  Enkovich Ilya  <ilya.enkovich@intel.com>
3232
3233         * config/i386/i386-protos.h (ix86_lea_outperforms): New.
3234         (ix86_avoid_lea_for_add): Likewise.
3235         (ix86_avoid_lea_for_addr): Likewise.
3236         (ix86_split_lea_for_addr): Likewise.
3237
3238         * config/i386/i386.c (LEA_MAX_STALL): New.
3239         (increase_distance): Likewise.
3240         (insn_defines_reg): Likewise.
3241         (insn_uses_reg_mem): Likewise.
3242         (distance_non_agu_define_in_bb): Likewise.
3243         (distance_agu_use_in_bb): Likewise.
3244         (ix86_lea_outperforms): Likewise.
3245         (ix86_ok_to_clobber_flags): Likewise.
3246         (ix86_avoid_lea_for_add): Likewise.
3247         (ix86_avoid_lea_for_addr): Likewise.
3248         (ix86_split_lea_for_addr): Likewise.
3249         (distance_non_agu_define): Search in pred BBs added.
3250         (distance_agu_use): Search in succ BBs added.
3251         (IX86_LEA_PRIORITY): Value changed from 2 to 0.
3252         (LEA_SEARCH_THRESHOLD): Now depends on LEA_MAX_STALL.
3253         (ix86_lea_for_add_ok): Use ix86_lea_outperforms to make decision.
3254
3255         * config/i386/i386.md: Split added to transform non destructive
3256         add into move and add.
3257         (lea_1): transformed into insn_and_split to avoid AGU stalls.
3258         (lea<mode>_2): Likewise.
3259
3260 2011-09-08  Martin Jambor  <mjambor@suse.cz>
3261
3262         PR tree-optimization/50287
3263         * ipa-split.c (split_function): Do not create SSA names for
3264         non-gimple-registers.
3265
3266 2011-09-08  Richard Guenther  <rguenther@suse.de>
3267
3268         PR tree-optimization/19831
3269         * tree-ssa-dce.c (mark_all_reaching_defs_necessary_1): Also
3270         skip builtins with vdefs that do not really store something.
3271         (propagate_necessity): For calls to free that we can associate
3272         with an allocation function do not mark the freed pointer
3273         definition necessary.
3274         (eliminate_unnecessary_stmts): Remove a call to free if
3275         the associated call to an allocation function is not necessary.
3276
3277 2011-09-08  Richard Guenther  <rguenther@suse.de>
3278
3279         PR tree-optimization/19831
3280         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Do not mark
3281         allocation functions as necessary.
3282
3283 2011-09-08  Iain Sandoe  <iains@gcc.gnu.org>
3284
3285         * config/darwin-driver.c (darwin_find_version_from_kernel): New routine
3286         cut from ...
3287         (darwin_default_min_version): Amended to provide defaults
3288         for the cross directory case.
3289         (darwin_driver_init): call darwin_default_min_version unconditionally.
3290         * config/darwin.h (DEF_MIN_OSX_VERSION): New.
3291         * config/darwin9.h: Likewise.
3292         * config/darwin10.h: Likewise.
3293         * config/rs6000/darwin7.h: Likewise.
3294
3295 2011-09-08  Jakub Jelinek  <jakub@redhat.com>
3296
3297         PR target/50310
3298         * config/i386/i386.c (ix86_prepare_sse_fp_compare_args): Return
3299         code early if TARGET_AVX.
3300         (ix86_expand_fp_vcond): Handle LTGT and UNEQ.
3301
3302 2011-09-07  Jakub Jelinek  <jakub@redhat.com>
3303
3304         * config/i386/sse.md (sseinsnmode): Remove 32-byte integer vector
3305         duplicates.
3306
3307         PR target/50310
3308         * config/i386/sse.md (*andnot<mode>3, *<code><mode>3): Fix up
3309         "mode" attribute computation.
3310
3311 2011-09-07  Bernd Schmidt  <bernds@codesourcery.com>
3312
3313         * regrename.c (struct du_head): Make nregs signed.
3314         (closed_chains): Remove.
3315         (create_new_chain): Return the new chain.
3316         (chain_from_id): New static function.
3317         (dump_def_use_chain): Change argument to be an int, indicating
3318         the first ID to print.  All callers changed.
3319         (merge_overlapping_regs): Use chain_from_id.  Assert that
3320         chains don't conflict with themselves.
3321         (rename_chains): Take no argument.  Iterate over id_to_chain
3322         rather to find chains to rename.  Clear tick before the main loop.
3323         (struct incoming_reg_info): New struct.
3324         (struct bb_rename_info): New struct.
3325         (init_rename_info, set_incoming_from_chain, merge_chains): New
3326         static functions.
3327         (regrename_analyze): New static function, broken out of
3328         regrename_optimize.  Record and make use of open chain information
3329         at basic block boundaries, and merge chains where possible.
3330         (scan_rtx_reg): Make this_nregs signed.  Don't update
3331         closed_chains.
3332         (build_def_use): Return a bool to indicate success.  All callers
3333         changed.  Don't initialize global data here.
3334         (regrename_optimize): Move most code out of here into
3335         regrename_analyze.
3336         * regs.h (add_range_to_hard_reg_set, remove_range_from_hard_reg_set,
3337         range_overlaps_hard_reg_set_p, range_in_hard_reg_set_p): New
3338         static inline functions.
3339         * vec.h (FOR_EACH_VEC_ELT_FROM): New macro.
3340
3341         * bb-reorder.c (insert_section_boundary_note): Don't check
3342         optimize_function_for_speed_p.
3343         (gate_handle_partition_blocks): Do it here instead.
3344         (gate_handle_reorder_blocks): Move preliminary checks here ...
3345         (rest_of_handle_reorder_blocks): ... from here.
3346
3347 2011-09-07  Martin Jambor  <mjambor@suse.cz>
3348
3349         PR middle-end/50301
3350         * ipa-cp.c (find_more_values_for_callers_subset): Check jump
3351         function index bounds.
3352         (perhaps_add_new_callers): Likewise.
3353
3354 2011-09-07  Martin Jambor  <mjambor@suse.cz>
3355
3356         PR tree-optimization/49911
3357         * tree-sra.c (analyze_access_subtree): Change type of to-be-replaced
3358         enumerations to the corresponding plain integer type.
3359
3360 2011-09-07  Richard Guenther  <rguenther@suse.de>
3361
3362         PR tree-optimization/50319
3363         * tree-if-conv.c (set_bb_predicate): Assert we only set
3364         canonical predicates.
3365         (add_to_predicate_list): Simplify.  Allow TRUTH_NOT_EXPR
3366         around canonical predicates.
3367         (predicate_bbs): Do not re-gimplify already canonical
3368         predicates.  Properly unshare them though.
3369         (find_phi_replacement_condition): Simplify.
3370
3371 2011-09-07  Richard Sandiford  <richard.sandiford@linaro.org>
3372
3373         PR target/49030
3374         * config/arm/arm-protos.h (maybe_get_arm_condition_code): Declare.
3375         * config/arm/arm.c (maybe_get_arm_condition_code): New function,
3376         reusing the old code from get_arm_condition_code.  Return ARM_NV
3377         for invalid comparison codes.
3378         (get_arm_condition_code): Redefine in terms of
3379         maybe_get_arm_condition_code.
3380         * config/arm/predicates.md (arm_comparison_operator): Use
3381         maybe_get_arm_condition_code.
3382
3383 2011-09-07  Richard Guenther  <rguenther@suse.de>
3384
3385         * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
3386         Canonicalize negated predicates by swapping edges.
3387         (forward_propagate_into_cond): Likewise.
3388
3389 2011-09-07  Richard Guenther  <rguenther@suse.de>
3390
3391         PR tree-optimization/50213
3392         * tree-flow.h (simple_iv_increment_p): Declare.
3393         * tree-ssa-dom.c (simple_iv_increment_p): Export.  Also handle
3394         POINTER_PLUS_EXPR.
3395         * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Do
3396         not propagate simple IV counter increments.
3397
3398 2011-09-07  Eric Botcazou  <ebotcazou@adacore.com>
3399             Iain Sandoe  <iains@gcc.gnu.org>
3400
3401         * config/rs6000/rs6000.c (compute_save_world_info): Test
3402         cfun->has_nonlocal_label to determine if the out-of-line save
3403         world call may be used.
3404
3405 2011-09-07  Nick Clifton  <nickc@redhat.com>
3406
3407         * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Set the jump
3408         label on the parallel part of the insn.
3409
3410 2011-09-07  Jakub Jelinek  <jakub@redhat.com>
3411
3412         PR debug/50191
3413         * dwarf2out.c (mem_loc_descriptor) <case MEM>: Try
3414         avoid_constant_pool_reference first instead of last.
3415
3416 2011-09-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
3417
3418         * doc/configfiles.texi (Configuration Files): Update documentation
3419         about tm_p.h and remove FIXME comment.
3420
3421 2011-09-06  Uros Bizjak  <ubizjak@gmail.com>
3422
3423         * config/i386/i386.c (ix86_function_value_regno_p): Use AX_REG.
3424         (function_value_32): Do not check TARGET_MMX, TARGET_SSE or TARGET_AVX.
3425
3426 2011-09-06  Iain Sandoe  <iains@gcc.gnu.org>
3427
3428         * config/darwin10.h Remove duplicate LIB_SPEC.
3429
3430 2011-09-06  Enkovich Ilya  <ilya.enkovich@intel.com>
3431
3432         PR middle-end/44382
3433         * target.def (reassociation_width): New hook.
3434
3435         * doc/tm.texi.in (reassociation_width): Likewise.
3436
3437         * doc/tm.texi (reassociation_width): Likewise.
3438
3439         * doc/invoke.texi (tree-reassoc-width): New param documented.
3440
3441         * hooks.h (hook_int_uint_mode_1): New default hook.
3442
3443         * hooks.c (hook_int_uint_mode_1): Likewise.
3444
3445         * config/i386/i386.h (ix86_tune_indices): Add
3446         X86_TUNE_REASSOC_INT_TO_PARALLEL and X86_TUNE_REASSOC_FP_TO_PARALLEL.
3447
3448         (TARGET_REASSOC_INT_TO_PARALLEL): New.
3449         (TARGET_REASSOC_FP_TO_PARALLEL): Likewise.
3450
3451         * config/i386/i386.c (initial_ix86_tune_features): Add
3452         X86_TUNE_REASSOC_INT_TO_PARALLEL and X86_TUNE_REASSOC_FP_TO_PARALLEL.
3453
3454         (ix86_reassociation_width): New function.
3455
3456         * params.def (PARAM_TREE_REASSOC_WIDTH): New param added.
3457
3458         * tree-ssa-reassoc.c (get_required_cycles): New function.
3459         (get_reassociation_width): Likewise.
3460         (swap_ops_for_binary_stmt): Likewise.
3461         (rewrite_expr_tree_parallel): Likewise.
3462
3463         (rewrite_expr_tree): Refactored.  Part of code moved into
3464         swap_ops_for_binary_stmt.
3465
3466         (reassociate_bb): Now checks reassociation width to be used and
3467         call rewrite_expr_tree_parallel instead of rewrite_expr_tree if needed.
3468
3469 2011-09-06  Richard Guenther  <rguenther@suse.de>
3470
3471         PR tree-optimization/47025
3472         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): BUILT_IN_VA_END
3473         uses nothing.
3474         (call_may_clobber_ref_p_1): BUILT_IN_VA_END is a barrier like
3475         BUILT_IN_FREE.
3476         (stmt_kills_ref_p_1): BUILT_IN_VA_END kills what its argument
3477         definitely points to.
3478         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
3479         BUILT_IN_VA_START doesn't let its va_list argument escape.
3480         * tree-ssa-dce.c (propagate_necessity): BUILT_IN_VA_END does
3481         not make any previous stores necessary.
3482
3483 2011-09-06  Martin Jambor  <mjambor@suse.cz>
3484
3485         * ipa-inline.h (struct inline_summary): Move versionable flag...
3486         * cgraph.h (struct cgraph_local_info): ...here
3487         * ipa-cp.c (determine_versionability): Use the new versionable flag.
3488         (determine_versionability): Likewise.
3489         (ipcp_versionable_function_p): Likewise.
3490         (ipcp_generate_summary): Likewise.
3491         * ipa-inline-analysis.c (dump_inline_summary): Do not dump the
3492         versionable flag.
3493         (compute_inline_parameters): Do not clear the versionable flag.
3494         (inline_read_section): Do not stream the versionable flag.
3495         (inline_write_summary): Likewise.
3496         * lto-cgraph.c (lto_output_node): Stream the versionable flag.
3497         (input_overwrite_node): Likewise.
3498
3499 2011-09-06  Richard Guenther  <rguenther@suse.de>
3500
3501         PR tree-optimization/48149
3502         * tree-ssa-sccvn.c (vn_get_expr_for): Simplify.  Fix tuplification bug.
3503         (vn_valueize): Move earlier.
3504         (valueize_expr): Use vn_valueize.
3505         (simplify_binary_expression): Simplify, also combine COMPLEX_EXPR
3506         operands.
3507         (simplify_unary_expression): Simplify.
3508
3509 2011-09-06  Richard Guenther  <rguenther@suse.de>
3510
3511         PR tree-optimization/48317
3512         * tree-ssa-sccvn.h (struct vn_nary_op_s): Make op a true
3513         trailing array.
3514         (sizeof_vn_nary_op): New inline function.
3515         (vn_nary_op_lookup_pieces): Adjust.
3516         (vn_nary_op_insert_pieces): Likewise.
3517         * tree-ssa-sccvn.c (vn_nary_op_eq): Also compare the length.
3518         (init_vn_nary_op_from_pieces): Adjust signature.  Deal with
3519         any number of operands.
3520         (vn_nary_length_from_stmt): New function.
3521         (init_vn_nary_op_from_stmt): Adjust for CONSTRUCTOR handling.
3522         (vn_nary_op_lookup_pieces): Adjust signature and allocate properly
3523         sized temporary.
3524         (vn_nary_op_lookup): Likewise.
3525         (vn_nary_op_lookup_stmt): Likewise.
3526         (vn_nary_op_insert_into): Likewise.
3527         (vn_nary_op_insert_stmt): Likewise.
3528         (visit_use): Handle CONSTRUCTOR as nary.
3529         * tree-ssa-pre.c (phi_translate_1): Adjust.
3530         (create_expression_by_pieces): Likewise.
3531         (compute_avail): Likewise.
3532
3533 2011-09-06  Ira Rosen  <ira.rosen@linaro.org>
3534
3535          * config/arm/arm.c (arm_preferred_simd_mode): Check
3536         TARGET_NEON_VECTORIZE_DOUBLE instead of
3537         TARGET_NEON_VECTORIZE_QUAD.
3538         (arm_autovectorize_vector_sizes): Likewise.
3539         * config/arm/arm.opt (mvectorize-with-neon-quad): Make inverse
3540         mask of mvectorize-with-neon-double.  Add RejectNegative.
3541         (mvectorize-with-neon-double): New.
3542
3543 2011-09-06  Richard Guenther  <rguenther@suse.de>
3544
3545         * tree-ssa-sccvn.c (visit_use): CSE stmt pieces and simplify matching.
3546
3547 2011-09-06  Tom de Vries  <tom@codesourcery.com>
3548
3549         * recog.c (asm_labels_ok): New function.
3550         (check_asm_operands): Use asm_labels_ok.
3551
3552 2011-09-05  Richard Sandiford  <rdsandiford@googlemail.com>
3553
3554         PR target/49606
3555         * config/mips/mips.h (ABI_HAS_64BIT_SYMBOLS): Check Pmode.
3556         (PMODE_INSN): New macro.
3557         * config/mips/mips.c (gen_load_const_gp): Use PMODE_INSN.
3558         (mips_got_load, mips_expand_synci_loop): Likewise.
3559         (mips_save_gp_to_cprestore_slot): Handle SImode and DImode
3560         cprestore patterns.
3561         (mips_emit_loadgp): Use PMODE_INSN.  Handle SImode and DImode
3562         copygp_mips16 patterns.
3563         (mips_expand_prologue): Handle SImode and DImode potential_cprestore
3564         and use_cprestore patterns.
3565         (mips_override_options): Check for incompatible -mabi and -mlong
3566         combinations.
3567         * config/mips/mips.md (unspec_got<mode>): Rename to...
3568         (unspec_got_<mode>): ...this.
3569         (copygp_mips16): Use the Pmode iterator.
3570         (potential_cprestore, cprestore, use_cprestore): Likewise.
3571         (clear_cache, indirect_jump): Use PMODE_INSN.
3572         (indirect_jump<mode>): Rename to...
3573         (indirect_jump_<mode>): ...this.
3574         (tablejump): Use PMODE_INSN.
3575         (tablejump<mode>): Rename to...
3576         (tablejump_<mode>): ...this.
3577         (exception_receiver): Handle restore_gp_si and restore_gp_di.
3578         (restore_gp): Use the Pmode iterator.
3579         * config/mips/mips-dsp.md (mips_lbux, mips_lhx, mips_lwx): Use
3580         PMODE_INSN.
3581
3582 2011-09-05  Richard Sandiford  <rdsandiford@googlemail.com>
3583
3584         * config/mips/mips.c (mips_gimplify_va_arg_expr): Unshare off.
3585         Fix the type of the BIT_AND_EXPR.
3586
3587 2011-09-05  David S. Miller  <davem@davemloft.net>
3588
3589         * config.host: Add driver-sparc.o and sparc/x-sparc on
3590         native sparc*-*-linux* builds.
3591         * config/sparc/driver-sparc.c: Correct Linux strings.
3592         * config/sparc/linux.h: Add DRIVER_SELF_SPECS.
3593         * config/sparc/linux64.h: Likewise.
3594         * doc/invoke.texi: Document that Linux also supports
3595         -mcpu=native and -mtune=native on sparc.
3596
3597         * config/sparc/sparc-opts.h (PROCESSOR_NIAGARA3,
3598         PROCESSOR_NIAGARA4): New.
3599         * config/sparc/sparc.opt: Handle new processor types.
3600         * config/sparc/sparc.md: Add to "cpu" attribute.
3601         * config/sparc/sparc.h (TARGET_CPU_niagara3,
3602         TARGET_CPU_niagara4): New, treat as niagara2.
3603         * config/sparc/linux64.h: Handle niagara3 and niagara4 like niagara2.
3604         * config/sparc/sol2.h: Likewise.
3605         * config/sparc/niagara2.md: Schedule niagara3 like niagara2.
3606         * config/sparc/sparc.c (sparc_option_override): Add
3607         niagara3 and niagara4 handling.
3608         (sparc32_initialize_trampoline): Likewise.
3609         (sparc64_initialize_trampoline): Likewise.
3610         (sparc_use_sched_lookahead): Likewise.
3611         (sparc_issue_rate): Likewise.
3612         (sparc_register_move_cost): Likewise.
3613         * config/sparc/driver-sparc.c (cpu_names): Use niagara3
3614         and niagara4 as appropriate.
3615         * doc/invoke.texi: Document new processor types.
3616         * config.gcc: Recognize niagara3 and niagara4 in --with-cpu
3617         and --with-tune options.
3618
3619         * config/sparc/sol2-64.h: Move ...
3620         * config/sparc/default-64.h: ... to here.  Update comment.
3621         * config.gcc: Update Solaris sparc to use default-64.h, also
3622         prefix this header into the list on sparc64-*-linux.
3623         * config/sparc/linux64.h (TARGET_DEFAULT): Only override if
3624         TARGET_64BIT_DEFAULT is defined.  Remove commented out reference
3625         to MASK_HARD_QUAD.
3626
3627 2011-09-05  Georg-Johann Lay  <avr@gjlay.de>
3628
3629         PR target/50289
3630         * config/avr/avr.c (sequent_regs_live): Don't recognize sequences
3631         that contain global register variable.
3632
3633 2011-09-05  Richard Guenther  <rguenther@suse.de>
3634
3635         * tree-cfg.c (replace_uses_by): Use fold_stmt, not fold_stmt_inplace.
3636
3637 2011-09-05  Richard Guenther  <rguenther@suse.de>
3638
3639         * stor-layout.c (layout_type): Use size_binop for array size
3640         calculations.
3641
3642 2011-09-05  Georg-Johann Lay  <avr@gjlay.de>
3643
3644         * config/avr/avr.h (progmem_section): Remove Declaration.
3645         * config/avr/avr.c (progmem_section): Make static and rename to
3646         progmem_swtable_section.
3647         (avr_output_addr_vec_elt): No need to switch sections.
3648         (avr_asm_init_sections): Use output_section_asm_op as section
3649         callback for progmem_swtable_section.
3650         (avr_output_progmem_section_asm_op): Remove Function.
3651         (TARGET_ASM_FUNCTION_RODATA_SECTION): New Define.
3652         (avr_asm_function_rodata_section): New static Function.
3653         * config/avr/elf.h (ASM_OUTPUT_BEFORE_CASE_LABEL): Output
3654         alignment 2**1 for jump tables.
3655
3656 2011-09-04  Jan Hubicka  <jh@suse.cz>
3657
3658         * ipa-inline-analysis.c (set_cond_stmt_execution_predicate): Check that
3659         parameter is SSA name.
3660
3661 2011-09-04  Richard Guenther  <rguenther@suse.de>
3662
3663         Revert
3664         2011-08-31  Richard Guenther  <rguenther@suse.de>
3665
3666         * fold-const.c (extract_muldiv_1): Remove bogus TYPE_IS_SIZETYPE
3667         special-casing.
3668
3669 2011-09-04  Iain Sandoe  <iains@gcc.gnu.org>
3670
3671         PR debug/49901
3672         * config/darwin.h (DEBUG_MACRO_SECTION): New macro.
3673
3674 2011-09-04  Jakub Jelinek  <jakub@redhat.com>
3675             Ira Rosen  <ira.rosen@linaro.org>
3676
3677         PR tree-optimization/50208
3678         * tree-vect-patterns.c (vect_handle_widen_mult_by_const): Add an
3679         argument.  Check that def_stmt is inside the loop.
3680         (vect_recog_widen_mult_pattern): Update calls to
3681         vect_handle_widen_mult_by_cons.
3682         (vect_operation_fits_smaller_type): Check that def_stmt is
3683         inside the loop.
3684
3685 2011-09-04  Ira Rosen  <ira.rosen@linaro.org>
3686
3687         * tree-vectorizer.c (vect_print_dump_info): Print line
3688         number when dumping to a file.
3689         (vectorize_loops): Add new messages to dump file.
3690
3691 2011-09-03  Martin Jambor  <mjambor@suse.cz>
3692
3693         * ipa-prop.h (ipa_jump_func_t): New typedef.
3694         (struct ipa_edge_args): Removed field argument_count, field
3695         jump_functions turned into a vector.
3696         (ipa_set_cs_argument_count): Removed.
3697         (ipa_get_cs_argument_count): Updated to work on vectors.
3698         (ipa_get_ith_jump_func): Likewise.
3699         * ipa-prop.c (ipa_count_arguments): Removed.
3700         (compute_scalar_jump_functions): Use ipa_get_ith_jump_func to access
3701         jump functions.  Update caller.
3702         (compute_pass_through_member_ptrs): Likewise.
3703         (compute_cst_member_ptr_arguments): Likewise.
3704         (ipa_compute_jump_functions_for_edge): Get number of arguments from
3705         the statement, allocate vector.
3706         (ipa_compute_jump_functions): Do not call ipa_count_arguments.
3707         (duplicate_ipa_jump_func_array): Removed.
3708         (ipa_edge_duplication_hook): Use VEC_copy, do not copy argument count.
3709         (ipa_read_node_info): Allocate vector.
3710
3711 2011-09-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3712
3713         PR middle-end/50232
3714         * config/pa/pa.md (return): Define "return" insn pattern.
3715         (epilogue): Use it when no epilogue is needed.
3716         * config/pa/pa.c (pa_can_use_return_insn): New function.
3717         * config/pa/pa-protos.h (pa_can_use_return_insn): Declare.
3718
3719 2011-09-03  Eric Botcazou  <ebotcazou@adacore.com>
3720
3721         * cfgexpand.c (add_stack_var): Assert that the alignment is not zero.
3722         * tree-ssa-ccp.c (fold_builtin_alloca_for_var): Revert latest change.
3723         Force at least BITS_PER_UNIT alignment on the new variable.
3724
3725 2011-09-02  Gary Funck <gary@intrepid.com>
3726
3727         * opts.c (print_specific_help): Fix off-by-one compare in
3728         assertion check.
3729         * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
3730         CL_TARGET, CL_COMMON, CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED):
3731         Increase by +5 to allow for more languages.
3732         * optc-gen.awk: Generate #if that ensures that the number of
3733         languages is within the implementation-defined limit.
3734
3735 2011-09-02  Michael Matz  <matz@suse.de>
3736
3737         PR middle-end/50260
3738         * ipa-split.c (split_function): Call add_referenced_var.
3739
3740         * tree-ssa-phiopt.c (cond_store_replacement): Don't call get_var_ann.
3741         (cond_if_else_store_replacement_1): Ditto.
3742         * tree-ssa-pre.c (get_representative_for): Ditto.
3743         (create_expression_by_pieces): Ditto.
3744         (insert_into_preds_of_block): Ditto.
3745         * tree-sra.c (create_access_replacement): Ditto.
3746         (get_replaced_param_substitute): Ditto.
3747
3748 2011-09-02  Bernd Schmidt  <bernds@codesourcery.com>
3749
3750         * config/c6x/c6x.md (collapse-ndfa, no-comb-vect): New
3751         automata_options.
3752         (d1, l1, s1, m1, d2, l2, s2, m2): Changed to define_query_cpu_unit.
3753         (l1w, s1w, l2w, s2w): Define in the main automaton.
3754         (fps1, fpl1, adddps1, adddpl1, fps2, fpl2, adddps2, adddpl2): New
3755         units.
3756         * config/c6x/c6x.c (c6x_sched_insn_info): Add unit_mask member.
3757         (c6x_unit_names): Add the new units.
3758         (c6x_unit_codes): New static array.
3759         (UNIT_QID_D1, UNIT_QID_L1, UNIT_QID_S1, UNIT_QID_M1, UNIT_QID_FPS1,
3760         UNIT_QID_FPL1, UNIT_QID_ADDDPS1, UNIT_QID_ADDDPL1,
3761         UNIT_QID_SIDE_OFFSET): New macros.
3762         (RESERVATION_S2): Adjust value.
3763         (c6x_option_override): Compute c6x_unit_codes.
3764         (assign_reservations): Take the unit_mask of the last instruction
3765         into account.  Detect floating point reservations by looking for
3766         the new units.  Don't assign reservations if the field is already
3767         nonzero.
3768         (struct c6x_sched_context): Add member prev_cycle_state_ctx.
3769         (init_sched_state): Initialize it.
3770         (c6x_clear_sched_context): Free it.
3771         (insn_set_clock): Clear reservation.
3772         (prev_cycle_state): New static variable.
3773         (c6x_init_sched_context): Save it.
3774         (c6x_sched_init): Allocate space for it and clear it.
3775         (c6x_sched_dfa_pre_cycle_insn): New static function.
3776         (c6x_dfa_new_cycle): Save state at the start of a new cycle.
3777         (c6x_variable_issue): Only record units in the unit_mask that
3778         were not set at the start of the cycle.
3779         (c6x_variable_issue): Compute and store the unit_mask from the
3780         current state.
3781         (reorg_split_calls): Ensure the new information remains correct.
3782         (TARGET_SCHED_DFA_NEW_CYCLE, TARGET_SCHED_CLEAR_SCHED_CONTEXT,
3783         TARGET_SCHED_DFA_PRE_CYCLE_INSN): Define.
3784         * config/c6x/c6x.h (CPU_UNITS_QUERY): Define.
3785         * config/c6x/c6x-sched.md.in (fp4_ls_N__CROSS_, adddp_ls_N__CROSS_):
3786         Add special reservations.
3787         * config/c6x/c6x-sched.md: Regenerate.
3788
3789 2011-09-02  Martin Jambor  <mjambor@suse.cz>
3790
3791         * ipa-prop.h (ipa_node_params): Removed fields
3792         called_with_var_arguments and node_versionable.
3793         (ipa_set_called_with_variable_arg): Removed.
3794         (ipa_is_called_with_var_arguments): Likewise.
3795         * ipa-cp.c (ipa_get_lattice): Fixed index check in an assert.
3796         (determine_versionability): Do not check for type attributes and va
3797         builtins.  Record versionability into inline summary.
3798         (initialize_node_lattices): Do not check
3799         ipa_is_called_with_var_arguments.
3800         (propagate_constants_accross_call): Likewise, ignore arguments we do
3801         not have PARM_DECLs for, set variable flag for parameters that were
3802         not passed a value.
3803         (create_specialized_node): Dump info that we cannot change signature.
3804         * ipa-prop.c (ipa_compute_jump_functions): Do not care about variable
3805         number of arguments.
3806         (ipa_make_edge_direct_to_target): Likewise.
3807         (ipa_update_after_lto_read): Likewise.
3808         (ipa_node_duplication_hook): Do not copy called_with_var_arguments flag.
3809         * tree-inline.c (copy_arguments_for_versioning): Copy PARM_DECLs if
3810         they were remapped.
3811
3812 2011-09-02  Richard Guenther  <rguenther@suse.de>
3813
3814         PR tree-optimization/27460
3815         PR middle-end/29269
3816         * doc/md.texi (vcond): Document.
3817         * genopinit.c (optabs): Turn vcond{,u}_optab into a conversion
3818         optab with two modes.
3819         * optabs.h (enum convert_optab_index): Add COI_vcond, COI_vcondu.
3820         (enum direct_optab_index): Remove DOI_vcond, DOI_vcondu.
3821         (vcond_optab): Adjust.
3822         (vcondu_optab): Likewise.
3823         (expand_vec_cond_expr_p): Adjust prototype.
3824         * optabs.c (get_vcond_icode): Adjust.
3825         (expand_vec_cond_expr_p): Likewise.
3826         (expand_vec_cond_expr): Likewise.
3827         * tree-vect-stmts.c (vect_is_simple_cond): Return the comparison
3828         vector type.
3829         (vectorizable_condition): Allow differing types for comparison
3830         and result.
3831         * config/i386/i386.c (ix86_expand_sse_cmp): Use proper mode
3832         for the comparison.
3833         * config/i386/sse.md (vcond<mode>): Split to
3834         vcond<V_256:mode><VF_256:mode>, vcond<V_128:mode><VF_128:mode>,
3835         vcond<V_128:mode><VI124_128:mode> and
3836         vcondu<V_128:mode><VI124_128:mode>.
3837         (vcondv2di): Change to vcond<VI8F_128:mode>v2di.
3838         (vconduv2di): Likewise.
3839         * config/arm/neon.md (vcond<mode>): Change to vcond*<mode><mode>.
3840         (vcondu<mode>): Likewise.
3841         * config/ia64/vect.md (vcond<mode>): Likewise.
3842         (vcondu<mode>): Likewise.
3843         (vcondv2sf): Likewise.
3844         * config/mips/mips-ps-3d.md (vcondv2sf): Likewise.
3845         * config/rs6000/paired.md (vcondv2sf): Likewise.
3846         * config/rs6000/vector.md (vcond<mode>): Likewise.
3847         (vcondu<mode>): Likewise.
3848         * config/spu/spu.md (vcond<mode>): Likewise.
3849         (vcondu<mode>): Likewise.
3850
3851 2011-09-02  Richard Guenther  <rguenther@suse.de>
3852
3853         * pretty-print.h (pp_unsigned_wide_integer): New.
3854         * tree-pretty-print.c (dump_generic_node): Print unsigned
3855         host-wide-int fitting INTEGER_CSTs with pp_unsigned_wide_integer.
3856
3857 2011-09-02  Richard Sandiford  <richard.sandiford@linaro.org>
3858
3859         PR target/49987
3860         * config/rs6000/rs6000.c (paired_expand_vector_init): Check for
3861         valid CONST_VECTOR operands.
3862         (rs6000_expand_vector_init): Likewise.
3863
3864 2011-09-02  Martin Jambor  <mjambor@suse.cz>
3865
3866         * cgraph.h (cgraph_indirect_call_info): Removed field thunk_delta.
3867         * gimple-fold.c (gimple_get_virt_method_for_binfo): Rewritten to use
3868         BINFO_VTABLE.  Parameter delta removed, all callers updated.
3869         * tree.c (free_lang_data_in_binfo): Clear BINFO_VIRTUALs instead
3870         BINFO_VTABLE.
3871         * cgraph.c (cgraph_make_edge_direct): Removed parameter delta, updated
3872         all calls.
3873         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Removed
3874         handling of thunk_delta.
3875         * ipa-cp.c (get_indirect_edge_target): Removed parameter delta.
3876         (devirtualization_time_bonus): Do not handle thunk deltas.
3877         (ipcp_discover_new_direct_edges): Likewise.
3878         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
3879         (try_make_edge_direct_simple_call): Likewise.
3880         (try_make_edge_direct_virtual_call): Likewise.
3881         * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise.  Mark
3882         parameter set as unused.
3883         (output_edge_opt_summary): Likewise.  Mark both parameters as unused.
3884         * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise.  Mark
3885         parameter set as unused.
3886         (output_edge_opt_summary): Likewise.  Mark both parameters as unused.
3887         (input_edge_opt_summary): Likewise.
3888         * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not stream
3889         BINFO_VIRTUALS at all.
3890         * lto-streamer-in.c (lto_input_ts_binfo_tree_pointers): Likewise.
3891
3892 2011-09-02  Richard Guenther  <rguenther@suse.de>
3893
3894         * tree-ssa-ccp.c (fold_builtin_alloca_for_var): Do not fold alloca (0).
3895         (ccp_fold_stmt): Continue replacing args when folding alloca fails.
3896
3897 2011-08-31  Richard Guenther  <rguenther@suse.de>
3898
3899         * expr.c (expand_expr_real_2): Move COND_EXPR and VEC_COND_EXPR
3900         handling here, from ...
3901         (expand_expr_real_1): ... here.
3902         * gimple-pretty-print.c (dump_ternary_rhs): Handle COND_EXPR
3903         and VEC_COND_EXPR.
3904         * gimple.c (gimple_rhs_class_table): Make COND_EXPR and VEC_COND_EXPR
3905         a GIMPLE_TERNARY_RHS.
3906         * tree-cfg.c (verify_gimple_assign_ternary): Handle COND_EXPR
3907         and VEC_COND_EXPR here ...
3908         (verify_gimple_assign_single): ... not here.
3909         * gimple-fold.c (fold_gimple_assign): Move COND_EXPR folding.
3910         * tree-object-size.c (cond_expr_object_size): Adjust.
3911         (collect_object_sizes_for): Likewise.
3912         * tree-scalar-evolution.c (interpret_expr): Don't handle ternary RHSs.
3913         * tree-ssa-forwprop.c (forward_propagate_into_cond): Fix and simplify.
3914         (ssa_forward_propagate_and_combine): Adjust.
3915         * tree-ssa-loop-im.c (move_computations_stmt): Build the COND_EXPR
3916         as ternary.
3917         * tree-ssa-threadedge.c (fold_assignment_stmt): Adjust.
3918         * tree-vect-loop.c (vect_is_simple_reduction_1): Likewise.
3919         * tree-vect-stmt.c (vectorizable_condition): Likewise.
3920         * tree-vrp.c (extract_range_from_cond_expr): Likewise.
3921         (extract_range_from_assignment): Likewise.
3922
3923 2011-08-31  Richard Sandiford  <rdsandiford@googlemail.com>
3924
3925         * config/i386/i386.md: Use (match_test ...) for attribute tests.
3926         * config/i386/mmx.md: Likewise.
3927         * config/i386/sse.md: Likewise.
3928         * config/i386/predicates.md (call_insn_operand): Use
3929         (not (match_test "...")) instead of (match_test "!...")
3930         * config/i386/constraints.md (w): Likewise.
3931
3932 2011-08-31  Richard Sandiford  <rdsandiford@googlemail.com>
3933
3934         * doc/md.texi: Describe the use of match_tests in attribute tests.
3935         * rtl.def (MATCH_TEST): Update commentary.
3936         * genattrtab.c (attr_copy_rtx, check_attr_test, clear_struct_flag)
3937         (write_test_expr, walk_attr_value): Handle MATCH_TEST.
3938
3939 2011-08-31  Richard Sandiford  <rdsandiford@googlemail.com>
3940
3941         * genattrtab.c (attr_rtx_1): Hash SYMBOL_REFs.
3942         (attr_string): Use copy_md_ptr_loc.
3943
3944 2011-08-31  Martin Jambor  <mjambor@suse.cz>
3945
3946         PR middle-end/49886
3947         * ipa-inline-analysis.c (compute_inline_parameters): Set
3948         can_change_signature of noes with typde attributes.
3949         * ipa-split.c (split_function): Do not skip any arguments if
3950         can_change_signature is set.
3951
3952 2011-08-31  Martin Jambor  <mjambor@suse.cz>
3953
3954         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Alias
3955         check removed.
3956
3957 2011-08-31  Richard Guenther  <rguenther@suse.de>
3958
3959         * fold-const.c (extract_muldiv_1): Remove bogus TYPE_IS_SIZETYPE
3960         special-casing.
3961
3962 2011-08-31  Marc Glisse  <marc.glisse@inria.fr>
3963
3964         * doc/generic.texi (Types for C++): CP_TYPE_QUALS -> cp_type_quals.
3965
3966 2011-08-31  Tom de Vries  <tom@codesourcery.com>
3967
3968         PR middle-end/43513
3969         * Makefile.in (tree-ssa-ccp.o): Add $(PARAMS_H) to rule.
3970         * tree-ssa-ccp.c (params.h): Include.
3971         (fold_builtin_alloca_for_var): New function.
3972         (ccp_fold_stmt): Use fold_builtin_alloca_for_var.
3973
3974 2011-08-30  Uros Bizjak  <ubizjak@gmail.com>
3975
3976         * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
3977         Handle FMA option.
3978
3979 2011-08-30  Andrew Stubbs  <ams@codesourcery.com>
3980
3981         * config/arm/arm.c (optimal_immediate_sequence_1): Make b1, b2,
3982         b3 and b4 unsigned.
3983
3984 2011-08-30  Andrew Stubbs  <ams@codesourcery.com>
3985
3986         * config/arm/arm.c (arm_gen_constant): Set can_negate correctly
3987         when code is SET.
3988
3989 2011-08-30  Richard Guenther  <rguenther@suse.de>
3990
3991         PR middle-end/48571
3992         * gimple.h (maybe_fold_offset_to_address): Remove.
3993         (maybe_fold_offset_to_reference): Likewise.
3994         (maybe_fold_stmt_addition): Likewise.
3995         (may_propagate_address_into_dereference): Likewise.
3996         * tree-inline.c (remap_gimple_op_r): Do not reconstruct
3997         array references.
3998         * gimple-fold.c (canonicalize_constructor_val): Likewise.
3999         Canonicalize invariant POINTER_PLUS_EXPRs to invariant MEM_REF
4000         addresses instead.
4001         (may_propagate_address_into_dereference): Remove.
4002         (maybe_fold_offset_to_array_ref): Likewise.
4003         (maybe_fold_offset_to_reference): Likewise.
4004         (maybe_fold_offset_to_address): Likewise.
4005         (maybe_fold_stmt_addition): Likewise.
4006         (fold_gimple_assign): Do not reconstruct array references but
4007         instead canonicalize invariant POINTER_PLUS_EXPRs to invariant
4008         MEM_REF addresses.
4009         (gimple_fold_stmt_to_constant_1): Likewise.
4010         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
4011         * gimplify.c (gimplify_conversion): Likewise.
4012         (gimplify_expr): Likewise.
4013
4014 2011-08-30  Ilya Tocar  <ilya.tocar@intel.com>
4015
4016         * config/i386/fmaintrin.h: New.
4017         * config.gcc: Add fmaintrin.h.
4018         * config/i386/i386.c
4019         (enum ix86_builtins) <IX86_BUILTIN_VFMADDSS3>: New.
4020         <IX86_BUILTIN_VFMADDSD3>: Likewise.
4021         * config/i386/sse.md (fmai_vmfmadd_<mode>): New.
4022         (*fmai_fmadd_<mode>): Likewise.
4023         (*fmai_fmsub_<mode>): Likewise.
4024         (*fmai_fnmadd_<mode>): Likewise.
4025         (*fmai_fnmsub_<mode>): Likewise.
4026         * config/i386/immintrin.h: Add fmaintrin.h.
4027
4028 2011-08-30  Bernd Schmidt  <bernds@codesourcery.com>
4029
4030         * genautomata.c (NO_COMB_OPTION): New macro.
4031         (no_comb_flag): New static variable.
4032         (gen_automata_option): Handle NO_COMB_OPTION.
4033         (comb_vect_p): False if no_comb_flag.
4034         (add_vect): Move computation of min/max values.  Return early if
4035         no_comb_flag.
4036         * doc/md.texi (automata_option): Document no-comb-vect.
4037
4038         * config/i386/i386.c (get_pc_thunk_name): Change prefix to
4039         "__x86.get_pc_thunk".
4040
4041         * bb-reorder.c (insert_section_boundary_note): Only do it if
4042         we reordered the blocks; i.e. not if !optimize_function_for_speed_p.
4043
4044 2011-08-30  Christian Bruel  <christian.bruel@st.com>
4045
4046         * coverage.c (coverage_init): Check flag_branch_probabilities instead of
4047         flag_profile_use.
4048
4049 2011-08-29  Michael Meissner  <meissner@linux.vnet.ibm.com>
4050
4051         * config/rs6000/rs6000.opt (-msave-toc-indirect): Change default
4052         to off.  Document switch.
4053         * doc/invoke.texi (-msave-toc-indirect): Ditto.
4054
4055 2011-08-29  Jakub Jelinek  <jakub@redhat.com>
4056
4057         * gthr-posix.h (__gthread_active_p): Do not use preprocessor
4058         conditionals and comments inside macro arguments.
4059
4060 2011-08-29  Artjoms Sinkarovs  <artyom.shinkaroff@gmail.com>
4061             Richard Guenther  <rguenther@suse.de>
4062
4063         * tree.h (constant_boolean_node): Adjust prototype.
4064         * fold-const.c (fold_convert_loc): Move aggregate conversion
4065         leeway down.
4066         (constant_boolean_node): Make value parameter boolean, add
4067         vector type handling.
4068         (fold_unary_loc): Use constant_boolean_node.
4069         (fold_binary_loc): Preserve types properly when folding
4070         COMPLEX_EXPR <__real x, __imag x>.
4071         * gimplify.c (gimplify_expr): Handle vector comparison.
4072         * tree.def (EQ_EXPR, ...): Document behavior on vector typed
4073         comparison.
4074         * tree-cfg.c (verify_gimple_comparison): Verify vector typed
4075         comparisons.
4076
4077 2011-08-29  Jakub Jelinek  <jakub@redhat.com>
4078
4079         PR middle-end/48722
4080         * emit-rtl.c (unshare_all_rtl_again): For CALL_INSNs,
4081         reset_used_flags also in CALL_INSN_FUNCTION_USAGE.
4082         (verify_rtl_sharing): Likewise and verify_rtx_sharing
4083         in there too.
4084         (unshare_all_rtl_in_chain): For CALL_INSNs
4085         copy_rtx_if_shared also CALL_INSN_FUNCTION_USAGE.
4086
4087 2011-08-29  Richard Guenther  <rguenther@suse.de>
4088
4089         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Set a location
4090         on the built ADDR_EXPR.
4091
4092 2011-08-29  Jakub Jelinek  <jakub@redhat.com>
4093
4094         PR debug/50215
4095         * var-tracking.c (create_entry_value): Call cselib_lookup_from_insn
4096         before adding ENTRY_VALUE to val->locs.
4097
4098 2011-08-28  Mikael Pettersson  <mikpe@it.uu.se>
4099
4100         PR bootstrap/50218
4101         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Initialize
4102         comp.
4103
4104 2011-08-27  Bernd Schmidt  <bernds@codesourcery.com>
4105
4106         * doc/rtl.texi (simple_return): Document.
4107         (parallel, PATTERN): Here too.
4108         * doc/md.texi (return): Mention it's allowed to expand to simple_return
4109         in some cases.
4110         (simple_return): Document standard pattern.
4111         * gengenrtl.c (special_rtx): SIMPLE_RETURN is special.
4112         * final.c (final_scan_insn): Use ANY_RETURN_P on body.
4113         * reorg.c (function_return_label, function_simple_return_label):
4114         New static variables, replacing...
4115         (end_of_function_label): ... this.
4116         (simplejump_or_return_p): New static function.
4117         (optimize_skip, steal_delay_list_from_fallthrough,
4118         fill_slots_from_thread): Use it.
4119         (relax_delay_slots): Likewise.  Use ANY_RETURN_P on body.
4120         (rare_destination, follow_jumps): Use ANY_RETURN_P on body.
4121         (find_end_label): Take a new arg which is one of the two return
4122         rtxs.  Depending on which, set either function_return_label or
4123         function_simple_return_label.  All callers changed.
4124         (make_return_insns): Make both kinds.
4125         (dbr_schedule): Adjust for two kinds of end labels.
4126         * function.c (emit_return_into_block): Set JUMP_LABEL properly.
4127         * genemit.c (gen_exp): Handle SIMPLE_RETURN.
4128         (gen_expand, gen_split): Use ANY_RETURN_P.
4129         * df-scan.c (df_uses_record): Handle SIMPLE_RETURN.
4130         * rtl.def (SIMPLE_RETURN): New code.
4131         * ifcvt.c (find_if_case_1): Be more careful about
4132         redirecting jumps to the EXIT_BLOCK.
4133         * jump.c (condjump_p, condjump_in_parallel_p, any_condjump_p,
4134         returnjump_p_1): Handle SIMPLE_RETURNs.
4135         * print-rtl.c (print_rtx): Likewise.
4136         * rtl.c (copy_rtx): Likewise.
4137         * bt-load.c (compute_defs_uses_and_gen): Use ANY_RETURN_P.
4138         * combine.c (simplify_set): Likewise.
4139         * resource.c (find_dead_or_set_registers, mark_set_resources):
4140         Likewise.
4141         * emit-rtl.c (verify_rtx_sharing, classify_insn, copy_insn_1,
4142         copy_rtx_if_shared_1, mark_used_flags): Handle SIMPLE_RETURNs.
4143         (init_emit_regs): Initialize simple_return_rtx.
4144         * cfglayout.c (fixup_reorder_chain): Pass a JUMP_LABEL to
4145         force_nonfallthru_and_redirect.
4146         * rtl.h (ANY_RETURN_P): Allow SIMPLE_RETURN.
4147         (GR_SIMPLE_RETURN): New enum value.
4148         (simple_return_rtx): New macro.
4149         * basic-block.h (force_nonfallthru_and_redirect): Adjust
4150         declaration.
4151         * cfgrtl.c (force_nonfallthru_and_redirect): Take a new jump_label
4152         argument.  All callers changed.  Be careful about what kinds of
4153         returnjumps to generate.
4154         * config/i386/3i86.c (ix86_pad_returns, ix86_count_insn_bb,
4155         ix86_pad_short_function): Likewise.
4156         * config/arm/arm.c (arm_final_prescan_insn): Handle both kinds
4157         of return.
4158         * config/mips/mips.md (any_return): New code_iterator.
4159         (optab): Add cases for return and simple_return.
4160         (return): Expand to a simple_return.
4161         (simple_return): New pattern.
4162         (*<optab>, *<optab>_internal for any_return): New patterns.
4163         (return_internal): Remove.
4164         * config/mips/mips.c (mips_expand_epilogue): Make the last insn
4165         a simple_return_internal.
4166
4167 2011-08-27  Uros Bizjak  <ubizjak@gmail.com>
4168
4169         * config/i386/sse.md (*absneg<mode>2): Fix split condition.
4170         (vec_extract_lo_<mode>): Prevent both operands in memory.
4171         (vec_extract_lo_v16hi): Ditto.
4172         (*vec_extract_v4sf_mem): Add TARGET_SSE insn constraint.
4173
4174 2011-08-27  Uros Bizjak  <ubizjak@gmail.com>
4175
4176         * config/i386/sse.md (mulv16qi3): Attach REG_EQUAL note.
4177         (*sse2_mulv4si3): Ditto.
4178         (mulv2di3): Ditto.
4179         * config/i386/i386.c (legitimize_tls_address): Change REG_EQIV
4180         notes to REG_EQUAL.
4181
4182 2011-08-27  Uros Bizjak  <ubizjak@gmail.com>
4183
4184         PR target/50202
4185         * config/i386/sse.md (sse4_2_pcmpestr): Emit NOTE_INSN_DELETED note
4186         when all outputs are unused.
4187         (sse4_2_pcmpistr): Ditto.
4188
4189 2011-08-26  Uros Bizjak  <ubizjak@gmail.com>
4190
4191         * config/i386/i386.md (round<mode>2): New expander.
4192         * config/i386/i386.c (enum ix86_builtins): Add
4193         IX86_BUILTIN_ROUND{PS,PD}_AZ{,256}.
4194         (struct builtin_description): Add __builtin_ia32_round{ps,pd}_az{,256}
4195         descriptions.
4196         (ix86_builtin_vectorized_function): Handle BUILT_IN_ROUND{,F} builtins.
4197         (ix86_build_const_vector): Rewrite using loop with RTVEC_ELT accessor.
4198
4199 2011-08-26  Uros Bizjak  <ubizjak@gmail.com>
4200
4201         PR middle-end/50083
4202         * convert.c (convert_to_integer) <BUIT_IN_ROUND{,F,L}>: Convert
4203         only when TARGET_C99_FUNCTIONS.
4204         <BUILT_IN_NEARBYINT{,F,L}>: Ditto.
4205         <BUILT_IN_RINT{,F,L}>: Ditto.
4206
4207 2011-08-26  Michael Matz  <matz@suse.de>
4208             Jakub Jelinek  <jakub@redhat.com>
4209
4210         PR lto/50165
4211         * lto-streamer-in.c (canon_file_name): Initialize new_slot->len;
4212         don't call strlen twice, use memcpy.
4213
4214 2011-08-26  H.J. Lu  <hongjiu.lu@intel.com>
4215
4216         * config/i386/bmi2intrin.h: Allow in <immintrin.h>.
4217         * config/i386/bmiintrin.h: Likewise.
4218         * config/i386/lzcntintrin.h: Likewise.
4219
4220         * config/i386/immintrin.h: Include <lzcntintrin.h>,
4221         <bmiintrin.h> and <bmi2intrin.h>.
4222
4223 2011-08-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4224
4225         PR target/50166
4226         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Check count in main.
4227         * configure: Regenerate.
4228
4229 2011-08-26  Jakub Jelinek  <jakub@redhat.com>
4230
4231         PR c/50179
4232         * c-typeck.c (c_process_expr_stmt): Skip over nops and
4233         call mark_exp_read even if exprv is ADDR_EXPR.
4234
4235 2011-08-26  Richard Sandiford  <richard.sandiford@linaro.org>
4236
4237         * df-problems.c (df_note_bb_compute): Pass uses rather than defs
4238         to df_set_dead_notes_for_mw.
4239
4240 2011-08-26  Richard Guenther  <rguenther@suse.de>
4241
4242         * varasm.c (decode_addr_const): Handle MEM_REF[&X, OFF].
4243
4244 2011-08-26  Zdenek Dvorak  <ook@ucw.cz>
4245             Tom de Vries  <tom@codesourcery.com>
4246
4247         * tree-ssa-loop-ivopts.c (struct cost_pair): Add comp field.
4248         (struct ivopts_data): Add loop_single_exit_p field.
4249         (niter_for_exit): Change parameter desc_p into return value.  Return
4250         desc if desc->may_be_zero.  Free desc if unused.
4251         (niter_for_single_dom_exit): Change return type.
4252         (find_induction_variables): Handle changed return type of
4253         niter_for_single_dom_exit.  Dump may_be_zero.
4254         (add_candidate_1): Keep original base and step type for IP_ORIGINAL.
4255         (set_use_iv_cost): Add and handle comp parameter.
4256         (determine_use_iv_cost_generic, determine_use_iv_cost_address): Add
4257         comp argument to set_use_iv_cost.
4258         (strip_wrap_conserving_type_conversions, expr_equal_p)
4259         (difference_cannot_overflow_p, iv_elimination_compare_lt): New function.
4260         (may_eliminate_iv): Add comp parameter.  Handle new return type of
4261         niter_for_exit.  Use loop_single_exit_p.  Use iv_elimination_compare_lt.
4262         (determine_use_iv_cost_condition): Add comp argument to set_use_iv_cost
4263         and may_eliminate_iv.
4264         (rewrite_use_compare): Move call to iv_elimination_compare to ...
4265         (may_eliminate_iv): Here.
4266         (tree_ssa_iv_optimize_loop): Initialize loop_single_exit_p.
4267
4268 2011-08-26  Tom de Vries  <tom@codesourcery.com>
4269
4270         * tree-pretty-print (dump_generic_node): Test for NULL_TREE before
4271         accessing TREE_TYPE.
4272
4273 2011-08-26  Jiangning Liu  <jiangning.liu@arm.com>
4274
4275         * config/arm/arm.md (*ior_scc_scc): Enable for Thumb2 as well.
4276         (*ior_scc_scc_cmp): Likewise
4277         (*and_scc_scc): Likewise.
4278         (*and_scc_scc_cmp): Likewise.
4279         (*and_scc_scc_nodom): Likewise.
4280         (*cmp_ite0, *cmp_ite1, *cmp_and, *cmp_ior): Handle Thumb2.
4281
4282 2011-08-26  Jakub Jelinek  <jakub@redhat.com>
4283
4284         * rtlanal.c (nonzero_bits1): Handle CLRSB.
4285
4286 2011-08-26  Richard Guenther  <rguenther@suse.de>
4287
4288         * expr.c (string_constant): Handle &MEM_REF.
4289
4290 2011-08-26  Andrew Stubbs  <ams@codesourcery.com>
4291
4292         * config/arm/arm.c (struct four_ints): New type.
4293         (count_insns_for_constant): Delete function.
4294         (find_best_start): Delete function.
4295         (optimal_immediate_sequence): New function.
4296         (optimal_immediate_sequence_1): New function.
4297         (arm_gen_constant): Move constant splitting code to
4298         optimal_immediate_sequence.
4299         Rewrite constant negation/invertion code.
4300
4301 2011-08-26  Andrew Stubbs  <ams@codesourcery.com>
4302
4303         * config/arm/arm-protos.h (const_ok_for_op): Add prototype.
4304         * config/arm/arm.c (const_ok_for_op): Add support for addw/subw.
4305         Remove prototype. Remove static function type.
4306         * config/arm/arm.md (*arm_addsi3): Add addw/subw support.
4307         Add arch attribute.
4308         * config/arm/constraints.md (Pj, PJ): New constraints.
4309
4310 2011-08-26  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4311
4312         * config/arm/cortex-a9.md ("cortex_a9_mult_long"): New.
4313         ("cortex_a9_multiply_long"): New and use above.  Handle all
4314         long multiply cases.
4315         ("cortex_a9_multiply"): Handle smmul and smmulr.
4316         ("cortex_a9_mac"): Handle smmla.
4317
4318 2011-08-25  Richard Henderson  <rth@redhat.com>
4319
4320         PR 50132
4321         PR 49864
4322         * cfgcleanup.c (old_insns_match_p): Don't allow cross-jump for
4323         non-constant stack adjutment.
4324         * expr.c (find_args_size_adjust): Break out from ...
4325         (fixup_args_size_notes): ... here.
4326         * rtl.h (find_args_size_adjust): Declare.
4327
4328 2011-08-25  Uros Bizjak  <ubizjak@gmail.com>
4329
4330         * config/i386/i386.md (isa): Add sse2, sse2_noavx, sse3,
4331         sse4 and sse4_noavx.
4332         (enabled): Handle sse2, sse2_noavx, sse3, sse4 and sse4_noavx.
4333         (*pushdf_rex64): Change Y2 register constraint to x.
4334         (*movdf_internal_rex64): Ditto.
4335         (*zero_extendsidi2_rex64): Ditto.
4336         (*movdi_internal): Change Y2 register constraint to x
4337         and update "isa" attribute.
4338         (*pushdf): Ditto.
4339         (*movdf internal): Ditto.
4340         (zero_extendsidi2_1): Ditto.
4341         (*truncdfdf_mixed): Ditto.
4342         (*truncxfdf2_mixed): Ditto.
4343         * config/i386/mmx.md (*mov<mode>_internal_rex64): Change Y2
4344         register constraint to x.
4345         (*movv2sf_internal_rex64): Ditto.
4346         (*mov<mode>_internal): Change Y2 register constraint to x
4347         and add "isa" attribute.
4348         (*movv2sf_internal): Ditto.
4349         (*vec_extractv2si_1): Ditto.
4350         * config/i386/sse.md ("vec_set<mode>_0): Change Y2 and Y4 register
4351         constraints to x and update "isa" attribute.
4352         (*vec_interleave_highv2df): Change Y3 registerconstraint
4353         to x and update "isa" attribute.
4354         (*vec_interleave_lowv2df): Ditto.
4355         (*vec_concatv2df): Change Y2 register constraint to x and
4356         update "isa" attribute.
4357         (sse2_loadld): Ditto.
4358         (*vec_extractv2di_1): Ditto.
4359         (*vec_dupv4si): Ditto.
4360         (*vec_dupv2di): Ditto.
4361         (*vec_concatv4si): Ditto.
4362         (vec_concatv2di): Ditto.
4363         * config/i386/constraints.md (Y2): Remove.
4364         (Y3): Ditto.
4365         (Y4): Ditto.
4366
4367 2011-08-25  Bernd Schmidt  <bernds@codesourcery.com>
4368
4369         * regrename.c (scan_rtx_reg, scan_rtx_address, build_def_use,
4370         dump_def_use_chain): Don't declare.
4371         (mark_conflict, create_new_chain): Move before users.
4372         (regrename_optimize): Move to near end of file.
4373
4374 2011-08-25  Georg-Johann Lay  <avr@gjlay.de>
4375
4376         * config/avr-protos.h (byte_immediate_operand): Remove Prototype.
4377         (secondary_input_reload_class): Remove Prototype.
4378         * config/avr/avr.c (byte_immediate_operand): Remove Function.
4379         * config/avr/avr.md (setmemhi): Use u8_operand.
4380         (strlenhi): Use const0_rtx for comparison.
4381         * config/avr/avr.h (avr_reg_order): Remove Declaration.
4382
4383 2011-08-25  Georg-Johann Lay  <avr@gjlay.de>
4384
4385         * config/avr/avr.c (reg_class_tab): Make local to
4386         avr_regno_reg_class.  Return smallest register class available.
4387
4388 2011-08-25  Georg-Johann Lay  <avr@gjlay.de>
4389
4390         * config/avr/avr.c (STR_PREFIX_P): New Define.
4391         (avr_asm_declare_function_name): Use it.
4392         (avr_asm_named_section): Use it.
4393         (avr_section_type_flags): Use it.
4394
4395 2011-08-25  Bernd Schmidt  <bernds@codesourcery.com>
4396
4397         * doc/md.texi (automata_option): Document collapse-ndfa.
4398         * genautomata.c (COLLAPSE_OPTION): New macro.
4399         (collapse_flag): New static variable.
4400         (struct description): New member normal_decls_num.
4401         (struct automaton): New members advance_ainsn and collapse_ainsn.
4402         (gen_automata_option): Check for COLLAPSE_OPTION.
4403         (collapse_ndfa_insn_decl): New static variable.
4404         (add_collapse_ndfa_insn_decl, special_decl_p): New functions.
4405         (find_arc): If insn is the collapse-ndfa insn, accept any arc we find.
4406         (transform_insn_regexps): Call add_collapse_ndfa_insn_decl if
4407         necessary.  Use normal_decls_num rather than decls_num, remove
4408         test for special decls.
4409         (create_alt_states, form_ainsn_with_same_reservs): Use special_decl_p.
4410         (make_automaton); Likewise.  Use the new advance_cycle_insn member
4411         of struct automaton.
4412         (create_composed_state): Disallow advance-cycle arcs if collapse_flag
4413         is set.
4414         (NDFA_to_DFA): Don't create composed states for the collapse-ndfa
4415         transition.  Create the necessary transitions for it.
4416         (create_ainsns): Return void.  Take an automaton_t argument, and
4417         update its ainsn_list, advance_ainsn and collapse_ainsn members.  All
4418         callers changed.
4419         (COLLAPSE_NDFA_VALUE_NAME): New macro.
4420         (output_tables): Output code to define it.
4421         (output_internal_insn_code_evaluation): Output code to accept
4422         const0_rtx as collapse-ndfa transition.
4423         (output_default_latencies, output_print_reservation_func,
4424         output_print_description): Reorganize loops to use normal_decls_num
4425         as loop bound; remove special case for advance_cycle_insn_decl.
4426         (initiate_automaton_gen): Handle COLLAPSE_OPTION.
4427         (check_automata_insn_issues): Check for collapse_ainsn.
4428         (expand_automate): Allocate sufficient space.  Initialize
4429         normal_decls_num.
4430
4431 2011-08-25  Georg-Johann Lay  <avr@gjlay.de>
4432
4433         * config/avr/avr.md: Fix indentation from r177991.
4434
4435 2011-08-25  Bernd Schmidt  <bernds@codesourcery.com>
4436
4437         * regrename.c (struct du_head): Remove member terminated.
4438         (create_new_chain): Don't initialize it.
4439         (scan_rtx_reg): Don't set or test it, test the open_chains_set
4440         bitmap instead.
4441         (tick, this_tick): New global variables, moved out of
4442         regrename_optimize.
4443         (current_id, open_chains, closed_chains, open_chains_set,
4444         live_in_chains, live_hard_regs): Reorder declarations.
4445         (dump_def_use_chain): Move function earlier in the file.
4446         (rename_chains): New static function, broken out of
4447         regrename_optimize.
4448         (regrename_optimize): Use it.  Remove #if 0'ed code.
4449
4450 2011-08-25  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
4451
4452         * varasm.c: (default_binds_local_p_1): Commentary typo fix.
4453
4454 2011-08-24  H.J. Lu  <hongjiu.lu@intel.com>
4455
4456         PR target/50172
4457         * config/i386/i386.c (ix86_expand_builtin): Convert to Pmode if needed.
4458
4459 2011-08-24  Richard Guenther  <rguenther@suse.de>
4460
4461         * tree-data-ref.c (dr_analyze_indices): Avoid unsharing the
4462         ref in the basic-block case.  Move stripping array-refs
4463         to the place we create an access-function for it.  Remove
4464         bogus stripping down a MEM_REF to its base.
4465
4466 2011-08-24  Richard Guenther  <rguenther@suse.de>
4467
4468         * fold-const.c (fold_comparison): Fold &a < &a + 4 even
4469         with -fno-strict-overflow.
4470
4471 2011-08-24  Richard Guenther  <rguenther@suse.de>
4472
4473         * tree-vectorizer.c (vect_print_dump_info): Avoid the
4474         file and location clutter when dumping to dump files.
4475
4476 2011-08-24  Simon Baldwin  <simonb@google.com>
4477
4478         * gengtype-state.c (write_state): Remove timestamped header line.
4479
4480 2011-08-24  Joseph Myers  <joseph@codesourcery.com>
4481
4482         * Makefile.in (CFLAGS-collect2.o, CFLAGS-c-family/c-opts.o)
4483         (CFLAGS-c-family/c-pch.o, CFLAGS-prefix.o, CFLAGS-version.o)
4484         (CFLAGS-lto-compress.o, CFLAGS-toplev.o, CFLAGS-intl.o)
4485         (CFLAGS-cppbuiltin.o, CFLAGS-cppdefault.o): New.
4486         (collect2.o, c-family/c-cppbuiltin.o, c-family/c-opts.o)
4487         (c-family/c-pch.o, prefix.o, version.o, lto-compress.o, toplev.o)
4488         (intl.o, cppbuiltin.o, cppdefault.o): Remove explicit compilation
4489         rules.
4490         (lto-wrapper$(exeext)): Use $(LINKER) not $(COMPILER).
4491
4492 2011-08-24  Joseph Myers  <joseph@codesourcery.com>
4493
4494         * Makefile.in (ALL_CXXFLAGS): Include $(CFLAGS-$@).
4495
4496 2011-08-24  Richard Guenther  <rguenther@suse.de>
4497
4498         PR tree-optimization/50067
4499         * tree-data-ref.c (dr_analyze_indices): Do not add an access
4500         function for a MEM_REF base that has no evolution in the loop
4501         nest or that is not analyzable.
4502
4503 2011-08-23  Vladimir Makarov  <vmakarov@redhat.com>
4504
4505         * ira.c (ira_init_register_move_cost): Check small subclasses
4506         through ira_reg_class_max_nregs and ira_available_class_regs.
4507
4508 2011-08-23  Uros Bizjak  <ubizjak@gmail.com>
4509
4510         * config/i386/constraints.md (Yp): New register constraint.
4511         * config/i386/i386.md (*addhi_1): Merge with *addhi_1_lea using
4512         Yp register constraint.
4513         (*addqi_1): Merge with *addqi_1_lea using Yp register constraint.
4514         (*ashlhi3_1): Merge with *ashlhi3_1_lea using Yp register constraint.
4515         (*ashlqi3_1): Merge with *ashlqi3_1_lea using Yp register constraint.
4516
4517 2011-08-23  Kirill Yukhin  <kirill.yukhin@intel.com>
4518
4519         * config/i386/sse.md (<s>mul<mode>3_highpart): Update.
4520
4521 2011-08-23  Mark Heffernan  <meheff@google.com>
4522
4523         PR middle-end/38509
4524         * common.opt (Wfree-nonheap-object): New option.
4525         * doc/invoke.texi (Warning options): Document -Wfree-nonheap-object.
4526         * builtins.c (maybe_emit_free_warning): Add OPT_Wfree_nonheap_object
4527         to warning.
4528         (expand_builtin): Make warning conditional.
4529
4530 2011-08-23  Uros Bizjak  <ubizjak@gmail.com>
4531
4532         * config/i386/i386.md (type): Add imulx, ishiftx and rotatex.
4533         (length_immediate): Handle imulx, ishiftx and rotatex.
4534         (imm_disp): Ditto.
4535         (isa): Add bmi2.
4536         (enabled): Handle bmi2.
4537         (*mul<mode><dwi>3): Split from *<u>mul<mode><dwi>3.
4538         (*umul<mode><dwi>3): Ditto.  Add imulx BMI2 alternative.
4539         (*bmi2_umulditi3_1): New insn pattern.
4540         (*bmi2_umulsidi3_1): Ditto.
4541         (*umul<mode><dwi>3 splitter): New splitter to avoid flags dependency.
4542         (*bmi2_ashl<mode>3_1): New insn pattern.
4543         (*ashl<mode>3_1): Add ishiftx BMI2 alternative.
4544         (*ashl<mode>3_1 splitter): New splitter to avoid flags dependency.
4545         (*bmi2_ashlsi3_1_zext): New insn pattern.
4546         (*ashlsi3_1_zext): Add ishiftx BMI2 alternative.
4547         (*ashlsi3_1_zext splitter): New splitter to avoid flags dependency.
4548         (*bmi2_<shiftrt_insn><mode>3_1): New insn pattern.
4549         (*<shiftrt_insn><mode>3_1): Add ishiftx BMI2 alternative.
4550         (*<shiftrt_insn><mode>3_1 splitter): New splitter to avoid
4551         flags dependency.
4552         (*bmi2_<shiftrt_insn>si3_1_zext): New insn pattern.
4553         (*<shiftrt_insn>si3_1_zext): Add ishiftx BMI2 alternative.
4554         (*<shiftrt_insn>si3_1_zext splitter): New splitter to avoid
4555         flags dependency.
4556         (*bmi2_rorx<mode>3_1): New insn pattern.
4557         (*<rotate_insn><mode>3_1): Add rotatex BMI2 alternative.
4558         (*rotate<mode>3_1 splitter): New splitter to avoid flags dependency.
4559         (*rotatert<mode>3_1 splitter): Ditto.
4560         (*bmi2_rorxsi3_1_zext): New insn pattern.
4561         (*<rotate_insn>si3_1_zext): Add rotatex BMI2 alternative.
4562         (*rotatesi3_1_zext splitter): New splitter to avoid flags dependency.
4563         (*rotatertsi3_1_zext splitter): Ditto.
4564
4565 2011-08-23  Kirill Yukhin  <kirill.yukhin@intel.com>
4566
4567         * common/config/i386/i386-common.c (OPTION_MASK_ISA_BMI2_SET): New.
4568         (OPTION_MASK_ISA_BMI2_UNSET): Likewise.
4569         (ix86_handle_option): Handle OPT_mbmi2 case.
4570         * config.gcc (i[34567]86-*-*): Add bmi2intrin.h.
4571         (x86_64-*-*): Likewise.
4572         * config/i386/bmi2intrin.h: New file.
4573         * config/i386/cpuid.h (bit_BMI2): New.
4574         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
4575         BMI2 feature.
4576         * config/i386/i386-c.c (ix86_target_macros_internal):
4577         Conditionally define __BMI2__.
4578         * config/i386/i386.c (ix86_option_override_internal): Define PTA_BMI2.
4579         Handle BMI2 option.
4580         (ix86_valid_target_attribute_inner_p): Handle BMI2 option.
4581         (print_reg): New code.
4582         (ix86_print_operand): Likewise.
4583         (ix86_builtins): Add IX86_BUILTIN_BZHI32, IX86_BUILTIN_BZHI64,
4584         IX86_BUILTIN_PDEP32, IX86_BUILTIN_PDEP64, IX86_BUILTIN_PEXT32,
4585         IX86_BUILTIN_PEXT64.
4586         (bdesc_args): Add IX86_BUILTIN_BZHI32, IX86_BUILTIN_BZHI64,
4587         IX86_BUILTIN_PDEP32, IX86_BUILTIN_PDEP64, IX86_BUILTIN_PEXT32,
4588         IX86_BUILTIN_PEXT64.
4589         * config/i386/i386.h (TARGET_BMI2): New.
4590         * config/i386/i386.md (UNSPEC_PDEP): New.
4591         (UNSPEC_PEXT): Likewise.
4592         (*bmi2_bzhi_<mode>3): Likewise.
4593         (*bmi2_pdep_<mode>3): Likewise.
4594         (*bmi2_pext_<mode>3): Likewise.
4595         * config/i386/i386.opt (mbmi2): New.
4596         * config/i386/x86intrin.h: Include bmi2intrin.h when __BMI2__
4597         is defined.
4598         * doc/extend.texi: Document BMI2 built-in functions.
4599         * doc/invoke.texi: Document -mbmi2.
4600
4601 2011-08-23  Jakub Jelinek  <jakub@redhat.com>
4602
4603         PR middle-end/50161
4604         * simplify-rtx.c (simplify_const_unary_operation): If
4605         op is CONST_INT, don't look at op_mode, but use instead mode.
4606         * optabs.c (add_equal_note): For FFS, CLZ, CTZ,
4607         CLRSB, POPCOUNT, PARITY and BSWAP use operand mode for
4608         operation and TRUNCATE/ZERO_EXTEND if needed.
4609         * doc/rtl.texi (ffs, clrsb, clz, ctz, popcount, parity, bswap):
4610         Document that operand mode must be same as operation mode,
4611         or VOIDmode.
4612         * config/avr/avr.md (paritysi2, *parityqihi2.libgcc,
4613         *paritysihi2.libgcc, popcountsi2, *popcountsi2.libgcc,
4614         *popcountqihi2.libgcc, clzsi2, *clzsihi2.libgcc, ctzsi2,
4615         *ctzsihi2.libgcc, ffssi2, *ffssihi2.libgcc): For unary ops
4616         use the mode of operand for the operation and add truncate
4617         or zero_extend around if needed.
4618         * config/c6x/c6x.md (ctzdi2): Likewise.
4619         * config/bfin/bfin.md (clrsbsi2, signbitssi2): Likewise.
4620
4621 2011-08-12  Michael Matz  <matz@suse.de>
4622
4623         * cfgexpand.c (expand_one_register_var): Use get_pointer_alignment.
4624         (gimple_expand_cfg): Merge alignment info for coalesced pointer
4625         SSA names.
4626
4627 2011-08-23  Richard Guenther  <rguenther@suse.de>
4628
4629         * Makefile.in (tree-data-ref.o): Add tree-affine.h dependency.
4630         * tree-affine.h (aff_comb_cannot_overlap_p): Declare.
4631         * tree-affine.c (aff_comb_cannot_overlap_p): New function, moved
4632         from ...
4633         * tree-ssa-loop-im.c (cannot_overlap_p): ... here.
4634         (mem_refs_may_alias_p): Adjust.
4635         * tree-data-ref.h (dr_may_alias_p): Adjust.
4636         * tree-data-ref.c: Include tree-affine.h.
4637         (dr_analyze_indices): Do nothing for the non-loop case.
4638         (dr_may_alias_p): Distinguish loop and non-loop case.  Disambiguate
4639         more cases in the non-loop case.
4640         * graphite-sese-to-poly.c (write_alias_graph_to_ascii_dimacs): Adjust
4641         calls to dr_may_alias_p.
4642         (write_alias_graph_to_ascii_ecc): Likewise.
4643         (write_alias_graph_to_ascii_dot): Likewise.
4644         (build_alias_set_optimal_p): Likewise.
4645
4646 2011-08-23  Richard Guenther  <rguenther@suse.de>
4647
4648         PR tree-optimization/50162
4649         * tree-vect-stmts.c (vectorizable_call): Fix argument lookup.
4650
4651 2011-08-23  Richard Guenther  <rguenther@suse.de>
4652
4653         * tree-data-ref.c (dr_analyze_indices): Add comments, handle
4654         REALPART_EXPR and IMAGPART_EXPR similar to ARRAY_REFs.
4655         (create_data_ref): Also dump access functions for the created data-ref.
4656
4657 2011-08-22  Uros Bizjak  <ubizjak@gmail.com>
4658             Kirill Yukhin  <kirill.yukhin@intel.com>
4659
4660         PR target/50155
4661         * config/i386/sse.md (VI_AVX2): New.
4662         (<plusminus_insn><mode>3): Use VI_AVX2 mode iterator.
4663         (*<plusminus_insn><mode>3): Ditto.
4664         (<sse2_avx2>_andnot<mode>3): Ditto.
4665         (*andnot<mode>3): Fix order of cond operands.
4666         Add asserts for correct TARGET_xxx.
4667         (*<any_logic:code><mode>3): Ditto.
4668
4669 2011-08-22  Anatoly Sokolov  <aesok@post.ru>
4670
4671         * config/m32c/m32c.h (CLASS_MAX_NREGS): Remove macro.
4672         * config/m32c/m32c-protos.h (m32c_class_max_nregs): Remove.
4673         * config/m32c/m32c.c (m32c_class_max_nregs): Make static. Change
4674         regclass argument type to reg_class_t. Change 'max' and 'v' vars
4675         and return types to unsigned char. Use reg_class_contents instead
4676         of class_contents.
4677         (TARGET_CLASS_MAX_NREGS): Define.
4678
4679 2011-08-22  Bernd Schmidt  <bernds@codesourcery.com>
4680
4681         * config/c6x/c6x.md (indirect_jump_shadow): Tweak representation
4682         to make computed_jump_p return true.
4683
4684 2011-08-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4685
4686         * configure.ac (GCC_PICFLAG_FOR_TARGET): Call it.
4687         (PICFLAG_FOR_TARGET): Substitute.
4688         * aclocal.m4: Regenerate.
4689         * configure: Regenerate.
4690
4691 2011-08-22  Dodji Seketeli  <dodji@redhat.com>
4692
4693         * c-family/c-pch.c (c_common_read_pch): Re-set line table right
4694         after reading in the pch.
4695
4696 2011-08-22  H.J. Lu  <hongjiu.lu@intel.com>
4697
4698         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Error if __ELF__ isn't defined.
4699         * configure: Regenerated.
4700
4701 2011-08-22  Jakub Jelinek  <jakub@redhat.com>
4702
4703         PR tree-optimization/50133
4704         * tree-vect-stmts.c (vect_finish_stmt_generation): Copy location
4705         from stmt instead of some statement around gsi.
4706
4707         PR middle-end/50141
4708         * expr.c (get_bit_range): Only use DECL_THREAD_LOCAL_P if
4709         innerdecl is a VAR_DECL.
4710
4711 2011-08-22  Kirill Yukhin  <kirill.yukhin@intel.com>
4712
4713         * config/i386/avx2intrin.h: New file.
4714         * config/i386/i386-builtin-types.def (PCINT, PCINT64, PV4SI,
4715         PV8SI, V32QI_FTYPE_V32QI, V32QI_FTYPE_V16QI, V16HI_FTYPE_V16HI,
4716         V16HI_FTYPE_V8HI, V8SI_FTYPE_V8SI, V16HI_FTYPE_V16QI,
4717         V8SI_FTYPE_V16QI, V4DI_FTYPE_V16QI, V8SI_FTYPE_V8HI,
4718         V4DI_FTYPE_V8HI, V4DI_FTYPE_V4SI, V4DI_FTYPE_PV4DI,
4719         V4DI_FTYPE_V2DI, V2DI_FTYPE_PCV2DI_V2DI, V4SI_FTYPE_PCV4SI_V4SI,
4720         V32QI_FTYPE_V16HI_V16HI, V16HI_FTYPE_V8SI_V8SI,
4721         V32QI_FTYPE_V32QI_V32QI, V16HI_FTYPE_V32QI_V32QI,
4722         V16HI_FTYPE_V16HI_V8HI, V16HI_FTYPE_V16HI_V16HI,
4723         V16HI_FTYPE_V16HI_INT, V16HI_FTYPE_V16HI_SI,
4724         V16HI_FTYPE_V16HI_V16HI_INT, V32QI_FTYPE_V32QI_V32QI_INT,
4725         V8SI_FTYPE_V8SI_V4SI, V8SI_FTYPE_V8SI_V8SI,
4726         V8SI_FTYPE_V16HI_V16HI, V8SI_FTYPE_V8SI_INT, V8SI_FTYPE_V8SI_SI,
4727         V8SI_FTYPE_PCV8SI_V8SI, V4DI_FTYPE_V4DI_V4DI,
4728         V4DI_FTYPE_V8SI_V8SI, V4DI_FTYPE_V4DI_V2DI,
4729         V4DI_FTYPE_PCV4DI_V4DI, V4DI_FTYPE_V4DI_INT,
4730         V2DI_FTYPE_V4DI_INT, V4DI_FTYPE_V4DI_V4DI_INT,
4731         V4DI_FTYPE_V4DI_V2DI_INT, VOID_FTYPE_PV2DI_V2DI_V2DI,
4732         VOID_FTYPE_PV4DI_V4DI_V4DI, VOID_FTYPE_PV4SI_V4SI_V4SI,
4733         VOID_FTYPE_PV8SI_V8SI_V8SI,
4734         V2DF_FTYPE_V2DF_PCDOUBLE_V4SI_V2DF_INT,
4735         V4DF_FTYPE_V4DF_PCDOUBLE_V4SI_V4DF_INT,
4736         V2DF_FTYPE_V2DF_PCDOUBLE_V2DI_V2DF_INT,
4737         V4DF_FTYPE_V4DF_PCDOUBLE_V4DI_V4DF_INT,
4738         V4SF_FTYPE_V4SF_PCFLOAT_V4SI_V4SF_INT,
4739         V8SF_FTYPE_V8SF_PCFLOAT_V8SI_V8SF_INT,
4740         V4SF_FTYPE_V4SF_PCFLOAT_V2DI_V4SF_INT,
4741         V4SF_FTYPE_V4SF_PCFLOAT_V4DI_V4SF_INT,
4742         V2DI_FTYPE_V2DI_PCINT64_V4SI_V2DI_INT,
4743         V4DI_FTYPE_V4DI_PCINT64_V4SI_V4DI_INT,
4744         V2DI_FTYPE_V2DI_PCINT64_V2DI_V2DI_INT,
4745         V4DI_FTYPE_V4DI_PCINT64_V4DI_V4DI_INT,
4746         V4SI_FTYPE_V4SI_PCINT_V4SI_V4SI_INT,
4747         V8SI_FTYPE_V8SI_PCINT_V8SI_V8SI_INT,
4748         V4SI_FTYPE_V4SI_PCINT_V2DI_V4SI_INT,
4749         V4SI_FTYPE_V4SI_PCINT_V4DI_V4SI_INT,
4750         V16HI_FTYPE_V16HI_SI_COUNT, V16HI_FTYPE_V16HI_V8HI_COUNT,
4751         V8SI_FTYPE_V8SI_SI_COUNT, V8SI_FTYPE_V8SI_V4SI_COUNT,
4752         V4DI_FTYPE_V4DI_INT_COUNT, V4DI_FTYPE_V4DI_V2DI_COUNT,
4753         V4DI_FTYPE_V4DI_INT_CONVERT,
4754         V4DI_FTYPE_V4DI_V4DI_INT_CONVERT): New.
4755         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MPSADBW256,
4756         IX86_BUILTIN_PABSB256, IX86_BUILTIN_PABSW256,
4757         IX86_BUILTIN_PABSD256, IX86_BUILTIN_PACKSSDW256,
4758         IX86_BUILTIN_PACKSSWB256, IX86_BUILTIN_PACKUSDW256,
4759         IX86_BUILTIN_PACKUSWB256, IX86_BUILTIN_PADDB256,
4760         IX86_BUILTIN_PADDW256, IX86_BUILTIN_PADDD256,
4761         IX86_BUILTIN_PADDQ256, IX86_BUILTIN_PADDSB256,
4762         IX86_BUILTIN_PADDSW256, IX86_BUILTIN_PADDUSB256,
4763         IX86_BUILTIN_PADDUSW256, IX86_BUILTIN_PALIGNR256,
4764         IX86_BUILTIN_AND256I, IX86_BUILTIN_ANDNOT256I,
4765         IX86_BUILTIN_PAVGB256, IX86_BUILTIN_PAVGW256,
4766         IX86_BUILTIN_PBLENDVB256, IX86_BUILTIN_PBLENDVW256,
4767         IX86_BUILTIN_PCMPEQB256, IX86_BUILTIN_PCMPEQW256,
4768         IX86_BUILTIN_PCMPEQD256, IX86_BUILTIN_PCMPEQQ256,
4769         IX86_BUILTIN_PCMPGTB256, IX86_BUILTIN_PCMPGTW256,
4770         IX86_BUILTIN_PCMPGTD256, IX86_BUILTIN_PCMPGTQ256,
4771         IX86_BUILTIN_PHADDW256, IX86_BUILTIN_PHADDD256,
4772         IX86_BUILTIN_PHADDSW256, IX86_BUILTIN_PHSUBW256,
4773         IX86_BUILTIN_PHSUBD256, IX86_BUILTIN_PHSUBSW256,
4774         IX86_BUILTIN_PMADDUBSW256, IX86_BUILTIN_PMADDWD256,
4775         IX86_BUILTIN_PMAXSB256, IX86_BUILTIN_PMAXSW256,
4776         IX86_BUILTIN_PMAXSD256, IX86_BUILTIN_PMAXUB256,
4777         IX86_BUILTIN_PMAXUW256, IX86_BUILTIN_PMAXUD256,
4778         IX86_BUILTIN_PMINSB256, IX86_BUILTIN_PMINSW256,
4779         IX86_BUILTIN_PMINSD256, IX86_BUILTIN_PMINUB256,
4780         IX86_BUILTIN_PMINUW256, IX86_BUILTIN_PMINUD256,
4781         IX86_BUILTIN_PMOVMSKB256, IX86_BUILTIN_PMOVSXBW256,
4782         IX86_BUILTIN_PMOVSXBD256, IX86_BUILTIN_PMOVSXBQ256,
4783         IX86_BUILTIN_PMOVSXWD256, IX86_BUILTIN_PMOVSXWQ256,
4784         IX86_BUILTIN_PMOVSXDQ256, IX86_BUILTIN_PMOVZXBW256,
4785         IX86_BUILTIN_PMOVZXBD256, IX86_BUILTIN_PMOVZXBQ256,
4786         IX86_BUILTIN_PMOVZXWD256, IX86_BUILTIN_PMOVZXWQ256,
4787         IX86_BUILTIN_PMOVZXDQ256, IX86_BUILTIN_PMULDQ256,
4788         IX86_BUILTIN_PMULHRSW256, IX86_BUILTIN_PMULHUW256,
4789         IX86_BUILTIN_PMULHW256, IX86_BUILTIN_PMULLW256,
4790         IX86_BUILTIN_PMULLD256, IX86_BUILTIN_PMULUDQ256,
4791         IX86_BUILTIN_POR256, IX86_BUILTIN_PSADBW256,
4792         IX86_BUILTIN_PSHUFB256, IX86_BUILTIN_PSHUFD256,
4793         IX86_BUILTIN_PSHUFHW256, IX86_BUILTIN_PSHUFLW256,
4794         IX86_BUILTIN_PSIGNB256, IX86_BUILTIN_PSIGNW256,
4795         IX86_BUILTIN_PSIGND256, IX86_BUILTIN_PSLLDQI256,
4796         IX86_BUILTIN_PSLLWI256, IX86_BUILTIN_PSLLW256,
4797         IX86_BUILTIN_PSLLDI256, IX86_BUILTIN_PSLLD256,
4798         IX86_BUILTIN_PSLLQI256, IX86_BUILTIN_PSLLQ256,
4799         IX86_BUILTIN_PSRAWI256, IX86_BUILTIN_PSRAW256,
4800         IX86_BUILTIN_PSRADI256, IX86_BUILTIN_PSRAD256,
4801         IX86_BUILTIN_PSRLDQI256, IX86_BUILTIN_PSRLWI256,
4802         IX86_BUILTIN_PSRLW256, IX86_BUILTIN_PSRLDI256,
4803         IX86_BUILTIN_PSRLD256, IX86_BUILTIN_PSRLQI256,
4804         IX86_BUILTIN_PSRLQ256, IX86_BUILTIN_PSUBB256,
4805         IX86_BUILTIN_PSUBW256, IX86_BUILTIN_PSUBD256,
4806         IX86_BUILTIN_PSUBQ256, IX86_BUILTIN_PSUBSB256,
4807         IX86_BUILTIN_PSUBSW256, IX86_BUILTIN_PSUBUSB256,
4808         IX86_BUILTIN_PSUBUSW256, IX86_BUILTIN_PUNPCKHBW256,
4809         IX86_BUILTIN_PUNPCKHWD256, IX86_BUILTIN_PUNPCKHDQ256,
4810         IX86_BUILTIN_PUNPCKHQDQ256, IX86_BUILTIN_PUNPCKLBW256,
4811         IX86_BUILTIN_PUNPCKLWD256, IX86_BUILTIN_PUNPCKLDQ256,
4812         IX86_BUILTIN_PUNPCKLQDQ256, IX86_BUILTIN_PXOR256,
4813         IX86_BUILTIN_MOVNTDQA256, IX86_BUILTIN_VBROADCASTSS_PS,
4814         IX86_BUILTIN_VBROADCASTSS_PS256,
4815         IX86_BUILTIN_VBROADCASTSD_PD256,
4816         IX86_BUILTIN_VBROADCASTSI256, IX86_BUILTIN_PBLENDD256,
4817         IX86_BUILTIN_PBLENDD128, IX86_BUILTIN_PBROADCASTB256,
4818         IX86_BUILTIN_PBROADCASTW256, IX86_BUILTIN_PBROADCASTD256,
4819         IX86_BUILTIN_PBROADCASTQ256, IX86_BUILTIN_PBROADCASTB128,
4820         IX86_BUILTIN_PBROADCASTW128, IX86_BUILTIN_PBROADCASTD128,
4821         IX86_BUILTIN_PBROADCASTQ128, IX86_BUILTIN_VPERMVARSI256,
4822         IX86_BUILTIN_VPERMDF256, IX86_BUILTIN_VPERMVARSF256,
4823         IX86_BUILTIN_VPERMDI256, IX86_BUILTIN_VPERMTI256,
4824         IX86_BUILTIN_VEXTRACT128I256, IX86_BUILTIN_VINSERT128I256,
4825         IX86_BUILTIN_MASKLOADD, IX86_BUILTIN_MASKLOADQ,
4826         IX86_BUILTIN_MASKLOADD256, IX86_BUILTIN_MASKLOADQ256,
4827         IX86_BUILTIN_MASKSTORED, IX86_BUILTIN_MASKSTOREQ,
4828         IX86_BUILTIN_MASKSTORED256, IX86_BUILTIN_MASKSTOREQ256,
4829         IX86_BUILTIN_PSLLVV4DI, IX86_BUILTIN_PSLLVV2DI,
4830         IX86_BUILTIN_PSLLVV8SI, IX86_BUILTIN_PSLLVV4SI,
4831         IX86_BUILTIN_PSRAVV8SI, IX86_BUILTIN_PSRAVV4SI,
4832         IX86_BUILTIN_PSRLVV4DI, IX86_BUILTIN_PSRLVV2DI,
4833         IX86_BUILTIN_PSRLVV8SI, IX86_BUILTIN_PSRLVV4SI,
4834         IX86_BUILTIN_GATHERSIV2DF, IX86_BUILTIN_GATHERSIV4DF,
4835         IX86_BUILTIN_GATHERDIV2DF, IX86_BUILTIN_GATHERDIV4DF,
4836         IX86_BUILTIN_GATHERSIV4SF, IX86_BUILTIN_GATHERSIV8SF,
4837         IX86_BUILTIN_GATHERDIV4SF, IX86_BUILTIN_GATHERDIV8SF,
4838         IX86_BUILTIN_GATHERSIV2DI, IX86_BUILTIN_GATHERSIV4DI,
4839         IX86_BUILTIN_GATHERDIV2DI, IX86_BUILTIN_GATHERDIV4DI,
4840         IX86_BUILTIN_GATHERSIV4SI, IX86_BUILTIN_GATHERSIV8SI,
4841         IX86_BUILTIN_GATHERDIV4SI, IX86_BUILTIN_GATHERDIV8SI.
4842         (bdesc_special_args): Add IX86_BUILTIN_MOVNTDQA256,
4843         IX86_BUILTIN_MASKLOADD, IX86_BUILTIN_MASKLOADQ,
4844         IX86_BUILTIN_MASKLOADD256, IX86_BUILTIN_MASKLOADQ256,
4845         IX86_BUILTIN_MASKSTORED, IX86_BUILTIN_MASKSTOREQ,
4846         IX86_BUILTIN_MASKSTORED256, IX86_BUILTIN_MASKSTOREQ256.
4847         (bdesc_args): Add  IX86_BUILTIN_MPSADBW256,
4848         IX86_BUILTIN_PABSB256, IX86_BUILTIN_PABSW256,
4849         IX86_BUILTIN_PABSD256, IX86_BUILTIN_PACKSSDW256,
4850         IX86_BUILTIN_PACKSSWB256, IX86_BUILTIN_PACKUSDW256,
4851         IX86_BUILTIN_PACKUSWB256, IX86_BUILTIN_PADDB256,
4852         IX86_BUILTIN_PADDW256, IX86_BUILTIN_PADDD256,
4853         IX86_BUILTIN_PADDQ256, IX86_BUILTIN_PADDSB256,
4854         IX86_BUILTIN_PADDSW256, IX86_BUILTIN_PADDUSB256,
4855         IX86_BUILTIN_PADDUSW256, IX86_BUILTIN_PALIGNR256,
4856         IX86_BUILTIN_AND256I, IX86_BUILTIN_ANDNOT256I,
4857         IX86_BUILTIN_PAVGB256, IX86_BUILTIN_PAVGW256,
4858         IX86_BUILTIN_PBLENDVB256, IX86_BUILTIN_PBLENDVW256,
4859         IX86_BUILTIN_PCMPEQB256, IX86_BUILTIN_PCMPEQW256,
4860         IX86_BUILTIN_PCMPEQD256, IX86_BUILTIN_PCMPEQQ256,
4861         IX86_BUILTIN_PCMPGTB256, IX86_BUILTIN_PCMPGTW256,
4862         IX86_BUILTIN_PCMPGTD256, IX86_BUILTIN_PCMPGTQ256,
4863         IX86_BUILTIN_PHADDW256, IX86_BUILTIN_PHADDD256,
4864         IX86_BUILTIN_PHADDSW256, IX86_BUILTIN_PHSUBW256,
4865         IX86_BUILTIN_PHSUBD256, IX86_BUILTIN_PHSUBSW256,
4866         IX86_BUILTIN_PMADDUBSW256, IX86_BUILTIN_PMADDWD256,
4867         IX86_BUILTIN_PMAXSB256, IX86_BUILTIN_PMAXSW256,
4868         IX86_BUILTIN_PMAXSD256, IX86_BUILTIN_PMAXUB256,
4869         IX86_BUILTIN_PMAXUW256, IX86_BUILTIN_PMAXUD256,
4870         IX86_BUILTIN_PMINSB256, IX86_BUILTIN_PMINSW256,
4871         IX86_BUILTIN_PMINSD256, IX86_BUILTIN_PMINUB256,
4872         IX86_BUILTIN_PMINUW256, IX86_BUILTIN_PMINUD256,
4873         IX86_BUILTIN_PMOVMSKB256, IX86_BUILTIN_PMOVSXBW256,
4874         IX86_BUILTIN_PMOVSXBD256, IX86_BUILTIN_PMOVSXBQ256,
4875         IX86_BUILTIN_PMOVSXWD256, IX86_BUILTIN_PMOVSXWQ256,
4876         IX86_BUILTIN_PMOVSXDQ256, IX86_BUILTIN_PMOVZXBW256,
4877         IX86_BUILTIN_PMOVZXBD256, IX86_BUILTIN_PMOVZXBQ256,
4878         IX86_BUILTIN_PMOVZXWD256, IX86_BUILTIN_PMOVZXWQ256,
4879         IX86_BUILTIN_PMOVZXDQ256, IX86_BUILTIN_PMULDQ256,
4880         IX86_BUILTIN_PMULHRSW256, IX86_BUILTIN_PMULHUW256,
4881         IX86_BUILTIN_PMULHW256, IX86_BUILTIN_PMULLW256,
4882         IX86_BUILTIN_PMULLD256, IX86_BUILTIN_PMULUDQ256,
4883         IX86_BUILTIN_POR256, IX86_BUILTIN_PSADBW256,
4884         IX86_BUILTIN_PSHUFB256, IX86_BUILTIN_PSHUFD256,
4885         IX86_BUILTIN_PSHUFHW256, IX86_BUILTIN_PSHUFLW256,
4886         IX86_BUILTIN_PSIGNB256, IX86_BUILTIN_PSIGNW256,
4887         IX86_BUILTIN_PSIGND256, IX86_BUILTIN_PSLLDQI256,
4888         IX86_BUILTIN_PSLLWI256, IX86_BUILTIN_PSLLW256,
4889         IX86_BUILTIN_PSLLDI256, IX86_BUILTIN_PSLLD256,
4890         IX86_BUILTIN_PSLLQI256, IX86_BUILTIN_PSLLQ256,
4891         IX86_BUILTIN_PSRAWI256, IX86_BUILTIN_PSRAW256,
4892         IX86_BUILTIN_PSRADI256, IX86_BUILTIN_PSRAD256,
4893         IX86_BUILTIN_PSRLDQI256, IX86_BUILTIN_PSRLWI256,
4894         IX86_BUILTIN_PSRLW256, IX86_BUILTIN_PSRLDI256,
4895         IX86_BUILTIN_PSRLD256, IX86_BUILTIN_PSRLQI256,
4896         IX86_BUILTIN_PSRLQ256, IX86_BUILTIN_PSUBB256,
4897         IX86_BUILTIN_PSUBW256, IX86_BUILTIN_PSUBD256,
4898         IX86_BUILTIN_PSUBQ256, IX86_BUILTIN_PSUBSB256,
4899         IX86_BUILTIN_PSUBSW256, IX86_BUILTIN_PSUBUSB256,
4900         IX86_BUILTIN_PSUBUSW256, IX86_BUILTIN_PUNPCKHBW256,
4901         IX86_BUILTIN_PUNPCKHWD256, IX86_BUILTIN_PUNPCKHDQ256,
4902         IX86_BUILTIN_PUNPCKHQDQ256, IX86_BUILTIN_PUNPCKLBW256,
4903         IX86_BUILTIN_PUNPCKLWD256, IX86_BUILTIN_PUNPCKLDQ256,
4904         IX86_BUILTIN_PUNPCKLQDQ256, IX86_BUILTIN_PXOR256,
4905         IX86_BUILTIN_VBROADCASTSS_PS, IX86_BUILTIN_VBROADCASTSS_PS256,
4906         IX86_BUILTIN_VBROADCASTSD_PD256,
4907         IX86_BUILTIN_VBROADCASTSI256, IX86_BUILTIN_PBLENDD256,
4908         IX86_BUILTIN_PBLENDD128, IX86_BUILTIN_PBROADCASTB256,
4909         IX86_BUILTIN_PBROADCASTW256, IX86_BUILTIN_PBROADCASTD256,
4910         IX86_BUILTIN_PBROADCASTQ256, IX86_BUILTIN_PBROADCASTB128,
4911         IX86_BUILTIN_PBROADCASTW128, IX86_BUILTIN_PBROADCASTD128,
4912         IX86_BUILTIN_PBROADCASTQ128, IX86_BUILTIN_VPERMVARSI256,
4913         IX86_BUILTIN_VPERMDF256, IX86_BUILTIN_VPERMVARSF256,
4914         IX86_BUILTIN_VPERMDI256, IX86_BUILTIN_VPERMTI256,
4915         IX86_BUILTIN_VEXTRACT128I256, IX86_BUILTIN_VINSERT128I256,
4916         IX86_BUILTIN_PSLLVV4DI, IX86_BUILTIN_PSLLVV2DI,
4917         IX86_BUILTIN_PSLLVV8SI, IX86_BUILTIN_PSLLVV4SI,
4918         IX86_BUILTIN_PSRAVV8SI, IX86_BUILTIN_PSRAVV4SI,
4919         IX86_BUILTIN_PSRLVV4DI, IX86_BUILTIN_PSRLVV2DI,
4920         IX86_BUILTIN_PSRLVV8SI, IX86_BUILTIN_PSRLVV4SI.
4921         (ix86_init_mmx_sse_builtins): Add IX86_BUILTIN_GATHERSIV2DF,
4922         IX86_BUILTIN_GATHERSIV4DF, IX86_BUILTIN_GATHERDIV2DF,
4923         IX86_BUILTIN_GATHERDIV4DF, IX86_BUILTIN_GATHERSIV4SF,
4924         IX86_BUILTIN_GATHERSIV8SF, IX86_BUILTIN_GATHERDIV4SF,
4925         IX86_BUILTIN_GATHERDIV8SF, IX86_BUILTIN_GATHERSIV2DI,
4926         IX86_BUILTIN_GATHERSIV4DI, IX86_BUILTIN_GATHERDIV2DI,
4927         IX86_BUILTIN_GATHERDIV4DI, IX86_BUILTIN_GATHERSIV4SI,
4928         IX86_BUILTIN_GATHERSIV8SI, IX86_BUILTIN_GATHERDIV4SI,
4929         IX86_BUILTIN_GATHERDIV8SI.
4930         (ix86_preferred_simd_mode): Support AVX2 modes.
4931         (ix86_expand_args_builtin): Support AVX2 builtins.
4932         (ix86_expand_special_args_builtin): Likewise.
4933         (ix86_expand_builtin): Likewise.
4934         * config/i386/i386.md (UNSPEC_VPERMSI): New.
4935         (UNSPEC_VPERMDF): Likewise.
4936         (UNSPEC_VPERMSF): Likewise.
4937         (UNSPEC_VPERMDI): Likewise.
4938         (UNSPEC_VPERMTI): Likewise.
4939         (UNSPEC_GATHER): Likewise.
4940         (ssemodesuffix): Extend.
4941         * config/i386/immintrin.h: Include avx2intrin.h when __AVX2__
4942         is defined.
4943         * config/i386/predicates.md (const1248_operand): New.
4944         * config/i386/sse.md (VI1_AVX2): New mode iterator.
4945         (VI2_AVX2): Likewise.
4946         (VI4_AVX2): Likewise.
4947         (VI8_AVX2): Likewise.
4948         (VIMAX_AVX2): Likewise.
4949         (SSESCALARMODE): Likewise.
4950         (VI12_AVX2): Likewise.
4951         (VI24_AVX2): Likewise.
4952         (VI124_AVX2): Likewise.
4953         (VI248_AVX2): Likewise.
4954         (VI48_AVX2): Likewise.
4955         (VI4SD_AVX2): Likewise.
4956         (V48_AVX2): Likewise.
4957         (AVX256MODE2P): Likewise.
4958         (AVXMODE48P_DI): Likewise.
4959         (sse2_avx2): New mode attribute.
4960         (ssse3_avx2): Likewise.
4961         (sse4_1_avx2): Likewise.
4962         (avx_avx2): Likewise.
4963         (ssebytemode): Likewise.
4964         (AVXTOSSEMODE): Likewise.
4965         (AVXMODE48P_DI): Likewise.
4966         (gthrfirstp): Likewise.
4967         (gthrlastp): Likewise.
4968         (lshift): New code_iterator
4969         (lshift): New code attribute.
4970         (lshift): Likewise.
4971         (ssescalarmodesuffix): Update.
4972         (sseunpackmode): Likewise.
4973         (ssepackmode): Likewise.
4974         (avx2_vec_dupv4sf): New insn pattern.
4975         (avx2_vec_dupv8sf): Likewise.
4976         (avx2_interleave_highv4di): Likewise.
4977         (avx2_interleave_lowv4di): Likewise.
4978         (avx2_umulv4siv4di3): Likewise
4979         (*avx2_umulv4siv4di3): Likewise
4980         (avx2_pmaddwd): Likewise.
4981         (*avx2_pmaddwd): Likewise.
4982         (avx2_lshrqv4di3): Likewise.
4983         (avx2_lshlqv4di3): Likewise.
4984         (avx2_lshl<mode>3): Likewise.
4985         (avx2_<umaxmin:code><mode>3): Likewise.
4986         (*avx2_<umaxmin:code><mode>3): Likewise.
4987         (avx2_<smaxmin:code><mode>3): Likewise.
4988         (*avx2_<smaxmin:code><mode>3): Likewise.
4989         (avx2_eq<mode>3): Likewise.
4990         (*avx2_eq<mode>3): Likewise.
4991         (avx2_gt<mode>3): Likewise.
4992         (avx2_interleave_highv32qi): New.
4993         (avx2_interleave_lowv32qi): Likewise.
4994         (avx2_interleave_highv16hi): Likewise.
4995         (avx2_interleave_lowv16hi): Likewise.
4996         (avx2_interleave_highv8si): Likewise.
4997         (avx2_interleave_lowv8si): Likewise.
4998         (avx2_pshufd): Likewise.
4999         (avx2_pshufd_1): Likewise.
5000         (avx2_pshuflwv3): Likewise.
5001         (avx2_pshuflw_1): Likewise.
5002         (avx2_pshufhwv3): Likewise.
5003         (avx2_pshufhw_1): Likewise.
5004         (avx2_uavgv32qi3): Likewise.
5005         (*avx2_uavgv32qi3): Likewise.
5006         (avx2_uavgv16hi3): Likewise.
5007         (*avx2_uavgv16hi3): Likewise.
5008         (avx2_pmovmskb): Likewise.
5009         (avx2_phaddwv16hi3): Likewise.
5010         (avx2_phadddv8si3): Likewise.
5011         (avx2_phaddswv16hi3): Likewise.
5012         (avx2_phsubwv16hi3): Likewise.
5013         (avx2_phsubdv8si3): Likewise.
5014         (avx2_phsubswv16hi3): Likewise.
5015         (avx2_pmaddubsw256): Likewise.
5016         (avx2_umulhrswv16hi3): Likewise.
5017         (*avx2_umulhrswv16hi3): Likewise.
5018         (avx2_packusdw): Likewise.
5019         (avx2_pblendd<mode>): Likewise.
5020         (avx2_<code>v16qiv16hi2): Likewise.
5021         (avx2_<code>v8qiv8si2): Likewise.
5022         (avx2_<code>v8hiv8si2): Likewise.
5023         (avx2_<code>v4qiv4di2): Likewise.
5024         (avx2_<code>v4hiv4di2): Likewise.
5025         (avx2_<code>v4siv4di2): Likewise.
5026         (avx2_pbroadcast<mode>): Likewise.
5027         (avx2_permvarv8si): Likewise.
5028         (avx2_permv4df): Likewise.
5029         (avx2_permvarv8sf): Likewise.
5030         (avx2_permv4di): Likewise.
5031         (avx2_permv2ti): Likewise.
5032         (avx2_vec_dupv4df): Likewise.
5033         (avx2_vbroadcasti128_<mode>): Likewise.
5034         (avx2_vec_set_lo_v4di): Likewise.
5035         (avx2_vec_set_hi_v4di): Likewise.
5036         (*avx2_maskmov<avx2modesuffix><avxmodesuffix>): Likewise.
5037         (avx2_extracti128): Likewise.
5038         (avx2_inserti128): Likewise.
5039         (avx2_ashrvv8si): Likewise.
5040         (avx2_ashrvv4si): Likewise.
5041         (avx2_<lshift>vv8si): Likewise.
5042         (avx2_<lshift>v<mode>): Likewise.
5043         (avx2_<lshift>vv2di): Likewise.
5044         (avx2_gathersi<mode>): Likewise.
5045         (*avx2_gathersi<mode>): Likewise.
5046         (avx2_gatherdi<mode>): Likewise.
5047         (*avx2_gatherdi<mode>): Likewise.
5048         (avx2_gatherdi<mode>256): Likewise.
5049         (*avx2_gatherdi<mode>256): Likewise.
5050         (<plusminus_insn><mode>3): Use VI mode iterator.
5051         (*<plusminus_insn><mode>3): Use VI mode iterator.
5052         (<sse2_avx2>_<plusminus_insn><mode>3): Rename from
5053         sse2_<plusminus_insn><mode>3.  Use VI12_AVX2 mode iterator.
5054         (*<sse2_avx2>_<plusminus_insn><mode>3): Rename from
5055         *sse2_<plusminus_insn><mode>3.  Use VI12_AVX2 mode iterator.
5056         (mul<mode>3): Rename from mulv8hi3.  Use VI2_AVX2 mode iterator.
5057         (*mul<mode>3): Rename from *mulv8hi3.  Use VI2_AVX2 mode iterator.
5058         (<s>mul<mode>3_highpart): Rename from <s>mulv8hi3_highpart.
5059         Use VI2_AVX2 mode iterator.
5060         (*<s>mul<mode>3_highpart): Rename from *<s>mulv8hi3_highpart.
5061         Use VI2_AVX2 mode iterator.
5062         (mul<mode>3): Rename from mulv4si3.  Use VI4_AVX2 mode iterator.
5063         (*mul<mode>3): Rename from *mulv4si3.  Use VI4_AVX2 mode iterator.
5064         (*<sse4_1_avx2>_mulv2siv2di3): Rename from *sse4_1_mulv4si3.
5065         Use VI4_AVX2 mode iterator.
5066         (ashr<mode>3): Use VI24_AVX2 mode iterator.
5067         (lshr<mode>3): Use VI248_AVX2 mode iterator.
5068         (<sse2_avx2>_ashl<mode>3): Rename from sse2_ashlv1ti3.
5069         Use VIMAX_AVX2 mode iterator.
5070         (<sse2_avx2>_andnot<mode>3): Rename from sse2_andnot<mode>3.
5071         Use VI mode iterator.
5072         (*andnot<mode>3): Update for AVX2.
5073         (*<any_logic:code><mode>3): Likewise.
5074         (<sse2_avx2>_packsswb): Rename from sse2_packsswb.
5075         Use VI1_AVX mode iterator.
5076         (<sse2_avx2>_packssdw):  Rename from sse2_packssdw.
5077         Use VI2_AVX mode iterator.
5078         (<sse2_avx2>_packuswb): Rename from sse2_packsswb.
5079         Use VI1_AVX mode iterator.
5080         (<sse2_avx2>_psadbw): Rename from sse2_psadbw.
5081         Use VI8_AVX2 mode iterator.
5082         (<ssse3_avx2>_pshufb<mode>3): Rename from ssse3_pshufbv16qi3.
5083         Use VI1_AVX2 mode iterator.
5084         (<ssse3_avx2>_psign<mode>3): Rename from ssse3_psign<mode>3.
5085         Use VI124_AVX2 mode iterator.
5086         (<ssse3_avx2>_palignr<mode>): Rename from ssse3_palignrti.
5087         Use SSESCALARMODE mode iterator.
5088         (abs<mode>2): Use VI124_AVX2 mode iterator.
5089         (<sse4_1_avx2>_movntdqa): Rename from sse4_1_movntdqa.
5090         Use VI8_AVX2 mode iterator.
5091         (<sse4_1_avx2>_mpsadbw): Rename from sse4_1_mpsadbw.
5092         Use VI1_AVX2 mode iterator.
5093         (<sse4_1_avx2>_pblendvb): Rename from sse4_1_pblendvb.
5094         Use VI1_AVX2 mode iterator.
5095         (<sse4_1_avx2>_pblendw): Rename from sse4_1_pblendvb.
5096         Use VI2_AVX2 mode iterator.
5097         (<avx_avx2>_maskload<avx2modesuffix><avxmodesuffix>): Rename from
5098         avx_maskload<ssemodesuffix><avxsizesuffix>. Use V48_AVX2 mode iterator.
5099         (<avx_avx2>_maskstore<avx2modesuffix><avxmodesuffix>): Rename from
5100         avx_maskstore<ssemodesuffix><avxsizesuffix>.
5101         Use V48_AVX2 mode iterator.
5102         * doc/extend.texi: Document AVX2 built-in functions.
5103         * doc/invoke.texi: Document -mavx2.
5104
5105 2011-08-22  Matthias Klose <doko@debian.org>
5106
5107         Revert:
5108         2011-07-11  Arthur Loiret  <aloiret@debian.org>
5109                     Matthias Klose <doko@debian.org>
5110         * config/mips/t-linux64 (MULTILIB_DIRNAMES): Set to 'n32 . 64' if
5111         tm_defines contains MIPS_ABI_DEFAULT ABI_32, to follow the glibc
5112         convention.
5113         * config.gcc (tm_defines): Add MIPS_ABI_DEFAULT=ABI_32.
5114
5115 2011-08-22  Mikael Pettersson  <mikpe@it.uu.se>
5116
5117         PR bootstrap/50146
5118         * ira-color.c (assign_hard_reg): Move saved_nregs declaration
5119         to #ifndef HONOR_REG_ALLOC_ORDER block.
5120
5121 2011-08-21  Richard Henderson  <rth@redhat.com>
5122
5123         * rtl.h (INSN_ANNULLED_BRANCH_P): Only allow JUMP_INSN.
5124         * dwarf2cfi.c (scan_trace): Test JUMP_P before INSN_ANNULLED_BRANCH_P.
5125         * resource.c (next_insn_no_annul): Likewise.
5126         (mark_set_resources): Likewise.
5127         * reorg.c (delete_from_delay_slot): Likewise.
5128         (dbr_schedule, redundant_insn, try_merge_delay_insns): Likewise.
5129         (get_branch_condition): Test pc_rtx and LABEL_REF before dereferencing.
5130
5131 2011-08-21  Uros Bizjak  <ubizjak@gmail.com>
5132
5133         * config/i386/i386.md (any_div): Remove.
5134         (sgnprefix): Update for removal.
5135         (u): Ditto.
5136
5137 2011-08-20  Vladimir Makarov  <vmakarov@redhat.com>
5138
5139         * ira-lives.c (mark_pseudo_regno_subword_live): Use allocno class
5140         for ira_reg_class_max_nregs.  Increase pressure by 1.
5141         (mark_pseudo_regno_subword_dead): Use allocno class
5142         for ira_reg_class_max_nregs.
5143
5144 2011-08-20  Richard Henderson  <rth@redhat.com>
5145
5146         * config/c6x/eqd.c, config/c6x/eqf.c, config/c6x/ged.c,
5147         config/c6x/gef.c, config/c6x/gtd.c, config/c6x/gtf.c,
5148         config/c6x/led.c, config/c6x/lef.c, config/c6x/ltd.c,
5149         config/c6x/ltf.c: Adjust include path for soft-fp.
5150
5151 2011-08-20  H.J. Lu  <hongjiu.lu@intel.com>
5152
5153         PR other/46770
5154         * config.gcc (tm_file): Add initfini-array.h if
5155         .init_arrary/.fini_array are supported.
5156
5157         * crtstuff.c: Don't generate .ctors nor .dtors sections if
5158         USE_INITFINI_ARRAY is defined.
5159
5160         * output.h (default_elf_init_array_asm_out_constructor): New.
5161         (default_elf_fini_array_asm_out_destructor): Likewise.
5162         * varasm.c (elf_init_array_section): Likewise.
5163         (elf_fini_array_section): Likewise.
5164         (get_elf_initfini_array_priority_section): Likewise.
5165         (default_elf_init_array_asm_out_constructor): Likewise.
5166         (default_elf_fini_array_asm_out_destructor): Likewise.
5167
5168         * config/initfini-array.h: New.
5169
5170 2011-08-20  Richard Sandiford  <rdsandiford@googlemail.com>
5171
5172         * config/mips/mips.c (mips_class_max_nregs): Check that the mode is
5173         OK for ST_REGS and FP_REGS before taking those classes into account.
5174
5175 2011-08-20  Richard Sandiford  <rdsandiford@googlemail.com>
5176
5177         * config/mips/mips.c (mips_reorg_process_insns): Check for jumps
5178         before checking for annulled branches.
5179
5180 2011-08-20  Uros Bizjak  <ubizjak@gmail.com>
5181
5182         * config/i386/i386.c (ix86_binary_operator_ok): Use
5183         satisfies_constraint_L.
5184
5185 2011-08-20  Uros Bizjak  <ubizjak@gmail.com>
5186             Michael Matz  <matz@suse.de>
5187
5188         * config/i386/i386.c (ix86_expand_round_sse4): Expand as
5189         trunc (a + copysign (nextafter (0.5, 0.0), a)).
5190
5191 2011-08-20  Anatoly Sokolov  <aesok@post.ru>
5192
5193         * doc/tm.texi.in (PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
5194         * doc/tm.texi: Regenerate.
5195         * targhooks.c (default_preferred_output_reload_class): Don't use
5196         PREFERRED_OUTPUT_RELOAD_CLASS macro.
5197         * system.h (PREFERRED_OUTPUT_RELOAD_CLASS): Poison.
5198
5199 2011-08-20  Jakub Jelinek  <jakub@redhat.com>
5200
5201         PR tree-optimization/48739
5202         * tree-ssa.c: Include cfgloop.h.
5203         (execute_update_addresses_taken): When updating ssa, if in loop closed
5204         SSA form, call rewrite_into_loop_closed_ssa instead of update_ssa.
5205         * Makefile.in (tree-ssa.o): Depend on $(CFGLOOP_H).
5206
5207 2011-08-19  Vladimir Makarov  <vmakarov@redhat.com>
5208
5209         PR rtl-optimization/49936
5210         * ira.c (ira_init_register_move_cost): Ignore too small subclasses
5211         for calculation of max register move costs.
5212
5213 2011-08-19  Joseph Myers  <joseph@codesourcery.com>
5214
5215         * c-parser.c (c_parser_postfix_expression): Convert operands of
5216         __builtin_complex to their semantic types.
5217
5218 2011-08-19  H.J. Lu  <hongjiu.lu@intel.com>
5219
5220         PR middle-end/49721
5221         * explow.c (convert_memory_address_addr_space): Also permute the
5222         conversion and addition of constant for zero-extend.
5223
5224 2011-08-19  Joseph Myers  <joseph@codesourcery.com>
5225
5226         * c-parser.c (c_parser_postfix_expression): Handle RID_BUILTIN_COMPLEX.
5227         * doc/extend.texi (__builtin_complex): Document.
5228
5229 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
5230
5231         * tree-ssa-math-opts.c (is_widening_mult_rhs_p): Handle constants
5232         beyond conversions.
5233         (convert_mult_to_widen): Convert constant inputs to the right type.
5234         (convert_plusminus_to_widen): Don't automatically reject inputs that
5235         are not an SSA_NAME.
5236         Convert constant inputs to the right type.
5237
5238 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
5239
5240         * tree-ssa-math-opts.c (convert_plusminus_to_widen): Convert add_rhs
5241         to the correct type.
5242
5243 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
5244
5245         * tree-ssa-math-opts.c (convert_mult_to_widen): Better handle
5246         unsigned inputs of different modes.
5247         (convert_plusminus_to_widen): Likewise.
5248
5249 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
5250
5251         * tree-ssa-math-opts.c (is_widening_mult_rhs_p): Add new argument
5252         'type'.
5253         Use 'type' from caller, not inferred from 'rhs'.
5254         Don't reject non-conversion statements. Do return lhs in this case.
5255         (is_widening_mult_p): Add new argument 'type'.
5256         Use 'type' from caller, not inferred from 'stmt'.
5257         Pass type to is_widening_mult_rhs_p.
5258         (convert_mult_to_widen): Pass type to is_widening_mult_p.
5259         (convert_plusminus_to_widen): Likewise.
5260
5261 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
5262
5263         * tree-ssa-math-opts.c (is_widening_mult_p): Remove FIXME.
5264         Ensure the the larger type is the first operand.
5265
5266 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
5267
5268         * tree-ssa-math-opts.c (convert_mult_to_widen): Convert
5269         unsupported unsigned multiplies to signed.
5270         (convert_plusminus_to_widen): Likewise.
5271
5272 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
5273
5274         * tree-ssa-math-opts.c (convert_plusminus_to_widen): Permit a single
5275         conversion statement separating multiply-and-accumulate.
5276
5277 2011-08-19  Richard Guenther  <rguenther@suse.de>
5278
5279         PR tree-optimization/50067
5280         * tree-data-ref.c (dr_analyze_indices): Simplify, strip MEM_REF
5281         offset only if we accounted for it.
5282
5283 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
5284
5285         * config/arm/arm.md (maddhidi4): Remove '*' from name.
5286         * expr.c (expand_expr_real_2): Use find_widening_optab_handler.
5287         * optabs.c (find_widening_optab_handler_and_mode): New function.
5288         (expand_widen_pattern_expr): Use find_widening_optab_handler.
5289         (expand_binop_directly): Likewise.
5290         (expand_binop): Likewise.
5291         * optabs.h (find_widening_optab_handler): New macro define.
5292         (find_widening_optab_handler_and_mode): New prototype.
5293         * tree-cfg.c (verify_gimple_assign_binary): Adjust WIDEN_MULT_EXPR
5294         type precision rules.
5295         (verify_gimple_assign_ternary): Likewise for WIDEN_MULT_PLUS_EXPR.
5296         * tree-ssa-math-opts.c (build_and_insert_cast): New function.
5297         (is_widening_mult_rhs_p): Allow widening by more than one mode.
5298         Explicitly disallow mis-matched input types.
5299         (convert_mult_to_widen): Use find_widening_optab_handler, and cast
5300         input types to fit the new handler.
5301         (convert_plusminus_to_widen): Likewise.
5302
5303 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
5304
5305         * expr.c (expand_expr_real_2): Use widening_optab_handler.
5306         * genopinit.c (optabs): Use set_widening_optab_handler for $N.
5307         (gen_insn): $N now means $a must be wider than $b, not consecutive.
5308         * optabs.c (widened_mode): New function.
5309         (expand_widen_pattern_expr): Use widening_optab_handler.
5310         (expand_binop_directly): Likewise.
5311         (expand_binop): Likewise.
5312         * optabs.h (widening_optab_handlers): New struct.
5313         (optab_d): New member, 'widening'.
5314         (widening_optab_handler): New function.
5315         (set_widening_optab_handler): New function.
5316         * tree-ssa-math-opts.c (convert_mult_to_widen): Use
5317         widening_optab_handler.
5318         (convert_plusminus_to_widen): Likewise.
5319
5320 2011-08-19  Joseph Myers  <joseph@codesourcery.com>
5321
5322         * c-decl.c (grokdeclarator): Diagnose _Noreturn for non-C1X if
5323         pedantic.
5324         * c-parser.c (c_parser_declspecs): Include _Noreturn in syntax comment.
5325         * ginclude/stdnoreturn.h (noreturn): Don't define for C++.
5326
5327 2011-08-19  Joseph Myers  <joseph@codesourcery.com>
5328
5329         * opth-gen.awk: Do not declare target save/restore structures and
5330         functions if IN_RTS defined.
5331
5332 2011-08-19  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
5333
5334         PR target/49437
5335         * config/arm/arm.c (arm_output_epilogue): Properly handle epilogue
5336         when stack was realigned in interrupt handler prologue.
5337
5338 2011-08-18  Joseph Myers  <joseph@codesourcery.com>
5339
5340         * c-decl.c (shadow_tag_warned): Check for _Noreturn.
5341         (quals_from_declspecs): Assert _Noreturn not present.
5342         (grokdeclarator): Handle _Noreturn.
5343         (build_null_declspecs): Initialize noreturn_p.
5344         (declspecs_add_scspec): Handle RID_NORETURN.
5345         * c-parser.c (c_token_starts_declspecs, c_parser_declspecs)
5346         (c_parser_attributes): Handle RID_NORETURN.
5347         * c-tree.h (struct c_declspecs): Add noreturn_p.
5348         * ginclude/stdnoreturn.h: New.
5349         * Makefile.in (USER_H): Add stdnoreturn.h.
5350
5351 2011-08-18  Kirill Yukhin  <kirill.yukhin@intel.com>
5352
5353         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX2_SET): New.
5354         (OPTION_MASK_ISA_AVX_UNSET): Update.
5355         (OPTION_MASK_ISA_AVX2_UNSET): New.
5356         (ix86_handle_option): Handle OPT_mavx2 case.
5357         * config/i386/cpuid.h (bit_AVX2): New.
5358         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
5359         AVX2 feature.
5360         * config/i386/i386-c.c (ix86_target_macros_internal):
5361         Conditionally define __AVX2__.
5362         * config/i386/i386.c (ix86_option_override_internal): Define PTA_AVX2.
5363         Define "core-avx2" processor alias.  Handle avx2 option.
5364         (ix86_valid_target_attribute_inner_p): Handle avx2 option.
5365         * config/i386/i386.h (TARGET_AVX2): New.
5366         * config/i386/i386.opt (mavx2): New.
5367         * doc/invoke.texi: Document -mavx2.
5368
5369 2011-08-18  Vladimir Makarov  <vmakarov@redhat.com>
5370
5371         PR rtl-optimization/49890
5372         * ira-costs.c (setup_regno_cost_classes_by_aclass): Don't exclude
5373         subclasses of class which is superset of a pressure class.
5374
5375 2011-08-18  H.J. Lu  <hongjiu.lu@intel.com>
5376             Igor Zamyatin <igor.zamyatin@intel.com>
5377
5378         * config/i386/i386-c.c (ix86_target_macros_internal): Replace int
5379         with HOST_WIDE_INT for isa_flag.
5380         (ix86_pragma_target_parse): Replace int with HOST_WIDE_INT for
5381         isa variables.
5382
5383         * config/i386/i386.c (ix86_target_string): Replace int with
5384         HOST_WIDE_INT for isa.  Use HOST_WIDE_INT_PRINT to print isa.
5385         (ix86_target_opts): Replace int with HOST_WIDE_INT on mask.
5386         (pta_flags): Removed.
5387         (PTA_XXX): Redefined as (HOST_WIDE_INT_1 << X).
5388         (pta): Use HOST_WIDE_INT on flags.
5389         (builtin_isa): Use HOST_WIDE_INT on isa.
5390         (ix86_add_new_builtins): Likewise.
5391         (def_builtin): Use HOST_WIDE_INT on mask.
5392         (def_builtin_const): Likewise.
5393         (builtin_description): Likewise.
5394
5395         * config/i386/i386.opt (ix86_isa_flags): Replace int with
5396         HOST_WIDE_INT.
5397         (ix86_isa_flags_explicit): Likewise.
5398         (x_ix86_isa_flags_explicit): Likewise.
5399
5400 2011-08-17  Vladimir Makarov  <vmakarov@redhat.com>
5401
5402         PR rtl-optimization/50107
5403         * ira-int.h (ira_hard_reg_not_in_set_p): Remove.
5404         (ira_hard_reg_in_set_p): New.
5405
5406         * ira-color.c (calculate_saved_nregs): New.
5407         (assign_hard_reg): Use it.  Set up allocated_hard_reg_p for all
5408         hard regs.
5409         (allocno_reload_assign, fast_allocation): Use
5410         ira_hard_reg_set_intersection_p instead of
5411         ira_hard_reg_not_in_set_p.
5412
5413         * ira.c (setup_reg_renumber): Use
5414         ira_hard_reg_set_intersection_p instead of
5415         ira_hard_reg_not_in_set_p.
5416         (setup_allocno_assignment_flags, calculate_allocation_cost): Use
5417         ira_hard_reg_in_set_p instead of ira_hard_reg_not_in_set_p.
5418
5419         * ira-costs.c (ira_tune_allocno_costs): Use
5420         ira_hard_reg_set_intersection_p instead of
5421         ira_hard_reg_not_in_set_p.
5422
5423 2011-08-18  H.J. Lu  <hongjiu.lu@intel.com>
5424             Igor Zamyatin <igor.zamyatin@intel.com>
5425
5426         * hwint.h (HOST_WIDE_INT_1): New.
5427
5428         * opt-functions.awk (switch_bit_fields): Initialize the
5429         host_wide_int field.
5430         (host_wide_int_var_name): New.
5431         (var_type_struct): Check and return HOST_WIDE_INT.
5432
5433         * opt-read.awk: Handle HOST_WIDE_INT for "Variable".
5434
5435         * optc-save-gen.awk: Support HOST_WIDE_INT on var_target_other.
5436
5437         * opth-gen.awk: Use HOST_WIDE_INT_1 on HOST_WIDE_INT.  Properly
5438         check masks for HOST_WIDE_INT.
5439
5440         * opts-common.c (set_option): Support HOST_WIDE_INT flag_var.
5441         (option_enabled): Likewise.
5442         (get_option_state): Likewise.
5443
5444         * opts.h (cl_option): Add cl_host_wide_int.  Change var_value
5445         to HOST_WIDE_INT.
5446
5447 2011-08-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5448             Marc Glisse  <marc.glisse@normalesup.org>
5449
5450         PR libstdc++-v3/1773
5451         * target.def (decl_mangling_context): New C++ hook.
5452         * doc/tm.texi: Regenerate.
5453         * config/sol2-cxx.c, config/sol2-stubs.c: New files.
5454         * config/sol2-protos.h: Group by source file.
5455         (solaris_cxx_decl_mangling_context): Declare.
5456         * config/sol2.h (TARGET_CXX_DECL_MANGLING_CONTEXT): Define.
5457         * config/t-sol2 (sol2-cxx.o, sol2-stubs.o): New targets.
5458         Use $<.
5459         * config.gcc (*-*-solaris2*): Add sol2-cxx.o to cxx_target_objs.
5460         Add sol2-stubs.o to extra_objs.
5461
5462 2011-08-18  Jakub Jelinek  <jakub@redhat.com>
5463
5464         PR target/50009
5465         * stor-layout.c (update_alignment_for_field): Don't ICE on
5466         packed flexible array members if ms_bitfield_layout_p.
5467
5468         PR target/50092
5469         * config/i386/i386.c (assign_386_stack_local): Call validize_mem
5470         on the result before returning it.
5471
5472         PR debug/50017
5473         * tree-vect-stmts.c (vect_finish_stmt_generation): If gsi_stmt (*gsi)
5474         is a debug stmt, use location of the first non-debug stmt after it.
5475
5476 2011-08-18  Richard Sandiford  <richard.sandiford@linaro.org>
5477
5478         * config/arm/arm.c (arm_rtx_costs_1): Don't modify the costs of SET.
5479         (arm_size_rtx_costs): Likewise.
5480
5481 2011-08-18  Richard Guenther  <rguenther@suse.de>
5482
5483         * tree.h (tree_int_cst_msb): Remove.
5484         * tree.c (tree_int_cst_msb): Likewise.
5485         (tree_int_cst_sign_bit): Move from ...
5486         * tree-ssa-loop-ivopts.c (tree_int_cst_sign_bit): ... here.
5487
5488 2011-08-18  Richard Sandiford  <richard.sandiford@linaro.org>
5489
5490         * doc/tm.texi.in (TARGET_RTX_COSTS): Add an opno paramter.
5491         * doc/tm.texi: Regenerate.
5492         * target.def (rtx_costs): Add an opno parameter.
5493         * hooks.h (hook_bool_rtx_int_int_intp_bool_false): Replace with...
5494         (hook_bool_rtx_int_int_int_intp_bool_false): ...this.
5495         * hooks.c (hook_bool_rtx_int_int_intp_bool_false): Replace with...
5496         (hook_bool_rtx_int_int_int_intp_bool_false): ...this.
5497         * cse.c (COST_IN): Add an opno parameter.
5498         (notreg_cost): Likewise.  Update call to rtx_cost.
5499         (COST, fold_rtx): Update accordingly.
5500         * dojump.c (prefer_and_bit_test): Update call to rtx_cost.
5501         * expmed.c (emit_store_flag): Likewise.
5502         * optabs.c (avoid_expensive_constant): Add an opno parameter.
5503         Update call to rtx_cost.
5504         (expand_binop_directly, expand_binop): Likewise.
5505         (expand_twoval_binop, prepare_cmp_insn): Likewise.
5506         * rtl.h (rtx_cost, get_full_rtx_cost): Add opno parameters.
5507         (set_src_cost, get_full_set_src_cost): Update accordingly.
5508         * rtlanal.c (rtx_cost): Add an opno parameter.  Update call
5509         to target hook.
5510         (get_full_rtx_cost): Add an opno paramter.  Update calls to rtx_cost.
5511         (default_adress_cost): Update calls to rtx_cost.
5512
5513         * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs)
5514         (arm_slowmul_rtx_costs): Adjust calls to rtx_cost.
5515         (arm_rtx_costs): Add an opno parameter.
5516         * config/alpha/alpha.c (alpha_rtx_costs): Add an opno parameter and
5517         adjust any recursive rtx-cost calls.
5518         * config/avr/avr.c (avr_operand_rtx_cost, avr_rtx_costs): Likewise.
5519         * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
5520         * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
5521         * config/cris/cris.c (cris_rtx_costs): Likewise.
5522         * config/frv/frv.c (frv_rtx_costs): Likewise.
5523         * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
5524         * config/i386/i386.c (ix86_rtx_costs): Likewise.
5525         * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
5526         * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
5527         * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
5528         * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
5529         * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
5530         * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
5531         * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
5532         * config/mep/mep.c (mep_rtx_cost): Likewise.
5533         * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
5534         * config/mips/mips.c (mips_binary_cost): Update call to rtx_cost.
5535         (mips_zero_extend_cost): Add an opno parameter.
5536         * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
5537         * config/mn10300/mn10300.c (mn10300_address_cost): Update call
5538         to rtx_cost.
5539         (mn10300_rtx_costs): Add an opno parameter and adjust any recursive
5540         rtx-cost calls.
5541         * config/pa/pa.c (hppa_rtx_costs): Likewise.
5542         * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
5543         * config/picochip/picochip.c (picochip_rtx_costs): Likewise.
5544         * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
5545         (rs6000_debug_rtx_costs): Likewise.
5546         * config/s390/s390.c (s390_rtx_costs): Likewise.
5547         * config/score/score-protos.h (score_rtx_costs): Likewise.
5548         * config/score/score.c (score_rtx_costs): Likewise.
5549         * config/sh/sh.c (andcosts): Update call to rtx_cost.
5550         (sh_rtx_costs): Add an opno parameter.
5551         * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
5552         * config/spu/spu.c (spu_rtx_costs): Likewise.
5553         * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
5554         * config/v850/v850.c (v850_rtx_costs): Likewise.
5555         * config/vax/vax.c (vax_rtx_costs): Likewise.
5556         * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
5557
5558 2011-08-18  Richard Sandiford  <richard.sandiford@linaro.org>
5559
5560         * rtl.h (set_src_cost, get_full_set_src_cost): New functions.
5561         * auto-inc-dec.c (attempt_change): Use set_src_cost instead of
5562         rtx_cost.
5563         * calls.c (precompute_register_parameters): Likewise.
5564         * combine.c (expand_compound_operation, make_extraction): Likewise.
5565         (force_to_mode, distribute_and_simplify_rtx): Likewise.
5566         * dse.c (find_shift_sequence): Likewise.
5567         * expmed.c (init_expmed, expand_mult, expand_smod_pow2): Likewise.
5568         * expr.c (compress_float_constant): Likewise.
5569         * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
5570         * gcse.c (want_to_gcse_p): Likewise.
5571         * ifcvt.c (noce_try_sign_mask): Likewise.
5572         * loop-doloop.c (doloop_optimize): Likewise.
5573         * loop-invariant.c (create_new_invariant): Likewise.
5574         * optabs.c (avoid_expensive_constant): Likewise.
5575         * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands)
5576         (try_replace_in_use, reload_cse_move2add): Likewise.
5577         * reload1.c (calculate_elim_costs_all_insns): Likewise.
5578         (note_reg_elim_costly): Likewise.
5579         * rtlanal.c (insn_rtx_cost): Likewise.
5580         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
5581         * stmt.c (lshift_cheap_p): Likewise.
5582         * tree-ssa-loop-ivopts.c (seq_cost, computation_cost): Likewise.
5583         * config/avr/avr.c (final_prescan_insn): Likewise.
5584         * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
5585         * config/mips/mips.c (mips_binary_cost, mips_rtx_costs): Likewise.
5586
5587 2011-08-18  Richard Sandiford  <richard.sandiford@linaro.org>
5588
5589         * rtl.h (set_rtx_cost, get_full_set_rtx_cost): New functions.
5590         * auto-inc-dec.c (attempt_change): Use set_rtx_cost.
5591         * cfgloopanal.c (seq_cost): Likewise.
5592         * loop-invariant.c (create_new_invariant): Likewise.
5593         * postreload.c (move2add_use_add2_insn, move2add_use_add3_insn)
5594         (reload_cse_move2add): Use get_full_set_rtx_cost.
5595
5596 2011-08-18  Richard Guenther  <rguenther@suse.de>
5597
5598         * expr.c (get_inner_reference): Fix typo in last change.
5599
5600 2011-08-18  Paolo Carlini  <paolo.carlini@oracle.com>
5601             Joseph Myers  <joseph@codesourcery.com>
5602
5603         PR tree-optimization/49963
5604         * hwint.c (absu_hwi): Define.
5605         * hwint.h (absu_hwi): Declare.
5606         * fold-const.c (fold_plusminus_mult_expr): Use absu_hwi instead
5607         of abs_hwi.
5608         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
5609         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Likewise.
5610
5611 2011-08-18  Richard Guenther  <rguenther@suse.de>
5612
5613         * expr.c (get_inner_reference): Sign-extend the constant
5614         twos-complement offset before doing arbitrary precision
5615         arithmetic on it.
5616         * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
5617         (get_constraint_for_1): Pass the offset of a MEM_REF unchanged
5618         to get_constraint_for_ptr_offset.
5619
5620 2011-08-17  Kaz Kojima  <kkojima@gcc.gnu.org>
5621
5622         PR target/50068
5623         * config/sh/sh.c (sh_output_mi_thunk): Don't call dbr_schedule.
5624
5625 2011-08-17  Richard Guenther  <rguenther@suse.de>
5626
5627         * tree.h (convert_to_ptrofftype_loc): New function.
5628         (convert_to_ptrofftype): Define.
5629         * builtins.c (expand_builtin_bzero): Use size_type_node.
5630         (fold_builtin_bzero): Likewise.
5631         (std_gimplify_va_arg_expr): Build the BIT_AND_EXPR on the pointer.
5632         * c-typeck.c (build_unary_op): Use convert_to_ptrofftype_loc.
5633         * cgraphunit.c (thunk_adjust): Use fold_build_pointer_plus_loc.
5634         (cgraph_redirect_edge_call_stmt_to_callee): Use size_int.
5635         * expr.c (expand_expr_addr_expr_1): Use fold_build_pointer_plus.
5636         * fold-const.c (build_range_check): Negate using the original type.
5637         (fold_unary_loc): Use fold_build_pointer_plus_loc.
5638         * gimple-fold.c (gimple_adjust_this_by_delta): Use
5639         convert_to_ptrofftype.
5640         * gimplify.c (gimplify_self_mod_expr): Likewise.
5641         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Likewise.
5642         (graphite_create_new_loop_guard): Likewise.
5643         * graphite-sese-to-poly.c (my_long_long): Remove.
5644         (scop_ivs_can_be_represented): Adjust.
5645         * tree-cfg.c (verify_gimple_assign_unary): Use ptrofftype_p.
5646         * tree-chrec.c (chrec_fold_plus_1): Use fold_build_pointer_plus.
5647         * tree-loop-distribution.c (build_size_arg_loc): Use
5648         size_type_node.
5649         (generate_memset_zero): Simplify.
5650         * tree-mudflap.c: Use fold_convert, not convert.
5651         * tree-predcom.c (suitable_reference_p): Expand DR_OFFSET in
5652         its own type.
5653         (determine_offset): Likewise for DR_STEP.
5654         (valid_initializer_p): Likewise.
5655         * tree-profile.c (prepare_instrumented_value): Convert the pointer
5656         to an integer type of same size.
5657         * tree-scalar-evolution.c (interpret_rhs_expr): Do not refer
5658         to sizetype without need.
5659         * tree-ssa-address.c (tree_mem_ref_addr): Likewise.
5660         * tree-ssa-loop-ivopts.c (find_bivs): Use convert_to_ptrofftype.
5661         * tree-ssa-loop-manip.c (create_iv): Likewise.
5662         (determine_exit_conditions): Adjust comment.
5663         * tree-ssa-pre.c (create_expression_by_pieces): Use
5664         convert_to_ptrofftype.
5665         * tree-ssa-structalias.c (get_constraint_for_1): Likewise.
5666         * varasm.c (array_size_for_constructor): Compute using double_ints.
5667
5668 2011-08-16  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5669
5670         * config/spu/spu.c (spu_emit_branch_or_set): Avoid reverse tests
5671         when generating an integer result where possible.  Short-cut
5672         comparison against 0 also for QImode.
5673
5674 2011-08-16  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5675
5676         * config/spu/spu.h (LEGITIMIZE_RELOAD_ADDRESS): New macro.
5677         * config/spu/spu-protos.h (spu_legitimize_reload_address): Add
5678         prototype.
5679         * config/spu/spu.c (spu_legitimize_reload_address): New function.
5680         (spu_legitimate_address_p): Do not check displacement if the base
5681         is an eliminable stack register.
5682
5683 2011-08-16  Anatoly Sokolov  <aesok@post.ru>
5684
5685         * config/m32c/m32c.h (PREFERRED_RELOAD_CLASS,
5686         PREFERRED_OUTPUT_RELOAD_CLASS): Remove macro.
5687         * config/m32c/m32c-protos.h (m32c_preferred_reload_class,
5688         m32c_preferred_output_reload_class): Remove.
5689         * config/m32c/m32c.c (m32c_preferred_reload_class): Make static.
5690         Change rclass argument and return types to reg_class_t. Use
5691         reg_class_subset_p instead of class_sizes.
5692         (m32c_preferred_output_reload_class): Make static. Change rclass
5693         argument and return types to reg_class_t.
5694         (TARGET_PREFERRED_RELOAD_CLASS,
5695         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
5696
5697 2011-08-16  Kai Tietz  <ktietz@redhat.com>
5698
5699         * config/i386/mingw32.h (GOMP_SELF_SPEC): Add -pthread option.
5700
5701 2011-08-16  Richard GUenther  <rguenther@suse.de>
5702
5703         PR tree-optimization/50082
5704         * tree-ssa-forwprop.c (combine_cond_expr_cond): Handle overflow
5705         warnings here, instead of ...
5706         (ssa_forward_propagate_and_combine): ... here.
5707         (forward_propagate_into_comparison_1): Adjust.
5708         (forward_propagate_into_comparison): Likewise.
5709         (forward_propagate_into_gimple_cond): Likewise.
5710         (forward_propagate_into_cond): Likewise.
5711
5712 2011-08-16  Andreas Schwab  <schwab@redhat.com>
5713
5714         * ggc.h (ggc_alloc_rtvec_sized): Use ggc_alloc_zone_rtvec_def
5715         instead of ggc_alloc_zone_vec_rtvec_def.
5716
5717 2011-08-16  Richard Guenther  <rguenther@suse.de>
5718
5719         * tree.h (ptrofftype_p): New helper function.
5720         * tree-cfg.c (verify_expr): Use ptrofftype_p for POINTER_PLUS_EXPR
5721         offset verification.
5722         (verify_gimple_assign_binary): Likewise.
5723         * tree.c (build2_stat): Likewise.
5724         * tree-chrec.c (chrec_fold_plus_poly_poly): Likewise.
5725         (reset_evolution_in_loop): Likewise.
5726         * tree-chrec.h (build_polynomial_chrec): Likewise.
5727
5728 2011-08-16  Liang Wang  <lwang1@marvell.com>
5729
5730         * ggc.h (ggc_alloc_rtvec_sized): Change arguments of
5731         ggc_alloc_zone_vec_rtvec_def.
5732
5733 2011-08-16  Richard Guenther  <rguenther@suse.de>
5734
5735         * tree-vrp.c (extract_range_from_multiplicative_op_1): New
5736         helper factored out from ...
5737         (extract_range_from_binary_expr_1): ... here.  Re-structure
5738         to not glob handling too different tree codes.
5739
5740 2011-08-15  Richard Henderson  <rth@redhat.com>
5741
5742         PR middle-end/50006
5743         * explow.c (allocate_dynamic_stack_space): Move suppress_reg_args_size
5744         setting out to include allocate_stack named pattern as well.
5745         * builtins.c (expand_builtin_apply): Add ARG_SIZE 0 note.
5746         * stmt.c (expand_stack_restore): Likewise.
5747
5748 2011-08-15  Richard Guenther  <rguenther@suse.de>
5749
5750         PR middle-end/50082
5751         * fold-const.c (maybe_canonicalize_comparison_1): Properly
5752         convert the modified operand to the other operand type.
5753         (fold_comparison): Call maybe_canonicalize_comparison_1 with
5754         useless conversions stripped from comparison operands.
5755
5756 2011-08-15  Richard Guenther  <rguenther@suse.de>
5757
5758         * tree-vrp.c (value_range_nonnegative_p): Fix anti-range case.
5759         (extract_range_from_unary_expr_1): Restructure.
5760
5761 2011-08-15  Richard Guenther  <rguenther@suse.de>
5762
5763         PR tree-optimization/50058
5764         * tree-ssa-sccvn.c (vn_reference_lookup_3): Relax aggregate
5765         copy matching.
5766
5767 2011-08-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
5768
5769         PR target/50022
5770         * config/arm/arm.c (output_move_double): Add 2 parameters
5771         to count the number of insns emitted and whether to emit or not.
5772         Use the flag to decide when to emit and count number of instructions
5773         that will be emitted.
5774         Handle case where output_move_double might be called for calculating
5775         lengths with an invalid constant.
5776         (arm_count_output_move_double_insns): Define.
5777         * config/arm/arm-protos.h (arm_count_output_move_double_insns): Declare.
5778         (output_move_double): Adjust prototype.
5779         * config/arm/vfp.md ("*movdi_vfp"): Adjust call to
5780         output_move_double.
5781         ("*movdi_vfp_cortexa8"): Likewise and add attribute
5782         for ce_count.
5783         * config/arm/arm.md ("*arm_movdi"): Adjust call to output_move_double.
5784         ("*movdf_soft_insn"): Likewise.
5785         * config/arm/cirrus.md ("*cirrus_arm_movdi"): Likewise.
5786         ("*cirrus_thumb2_movdi"): Likewise.
5787         ("*thumb2_cirrus_movdf_hard_insn"): Likewise.
5788         ("*cirrus_movdf_hard_insn"): Likewise.
5789         * config/arm/neon.md (*neon_mov<mode> VD): Likewise.
5790         * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Likewise.
5791         ("mov<mode>_internal VMMX"): Likewise.
5792         * config/arm/fpa.md (*movdf_fpa, *thumb2_movdf_fpa): Likewise.
5793
5794 2011-08-14  Uros Bizjak  <ubizjak@gmail.com>
5795
5796         * config/i386/i386.c (ix86_expand_round_sse4): New function.
5797         * config/i386/i386-protos.h (ix86_expand_round_sse4): New prototype.
5798         * config/i386/i386.md (round<mode>2): Use ix86_expand_round_sse4
5799         for TARGET_ROUND.
5800
5801         (rint<mode>2): Simplify TARGET_ROUND check.
5802         (floor<mode>2): Ditto.
5803         (ceil<mode>2): Ditto.
5804         (btrunc<mode>2): Ditto.
5805
5806 2011-08-14  Anatoly Sokolov  <aesok@post.ru>
5807
5808         * config/mmix/mmix.c (TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Redefine
5809         as mmix_preferred_output_reload_class.
5810
5811 2011-08-14  Georg-Johann Lay  <avr@gjlay.de>
5812
5813         * PR target/49903
5814         * config/avr/avr.md (UNSPEC_IDENTITY): New c_enum.
5815         (branch_unspec): New insn.
5816         (branch): Beauty farm.
5817         * config/avr/avr.c (compare_condition): Use JUMP_P.  Test SET_SRC
5818         to be IF_THEN_ELSE.
5819         (avr_compare_pattern, avr_reorg_remove_redundant_compare):
5820         New static functions.
5821         (avr_reorg): Use them.  Use next_real_insn instead of NEXT_INSN.
5822         Use CONST_INT_P.  Beauty.
5823
5824 2011-08-12  Richard Henderson  <rth@redhat.com>
5825
5826         PR rtl-opt/49994
5827         * sched-init.h (struct deps_desc): Add sched_before_next_jump.
5828         * sched-deps.c (init_deps): Clear it.
5829         (deps_analyze_insn): Consume it.
5830         (sched_analyze_insn): Fill it.
5831
5832 2011-08-12  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
5833
5834         PR target/48328
5835         * config/arm/arm.h (CASE_VECTOR_SHORTEN_MODE): Fix distance
5836         for tbh instructions.
5837
5838 2011-08-12  Diego Novillo  <dnovillo@google.com>
5839
5840         * data-streamer.h (streamer_write_zero): Rename from output_zero.
5841         (streamer_write_uhwi): Rename from lto_output_uleb128.
5842         (streamer_write_hwi): Rename from output_sleb128.
5843         (streamer_write_string): Rename from lto_output_string.
5844         (streamer_string_index): Rename from lto_string_index.
5845         (streamer_write_string_with_length): Rename from
5846         lto_output_string_with_length.
5847         (streamer_write_uhwi_stream): Rename from lto_output_uleb128_stream.
5848         (streamer_write_hwi_stream): Rename from lto_output_sleb128_stream.
5849         (streamer_read_string): Rename from lto_input_string.
5850         (streamer_read_indexed_string): Rename from input_string_internal.
5851         (streamer_read_uhwi): Rename from lto_input_uleb128.
5852         (streamer_read_hwi): Rename from lto_input_sleb128.
5853         (streamer_write_hwi_in_range): Rename from lto_output_int_in_range.
5854         (streamer_read_hwi_in_range): Rename from lto_input_int_in_range.
5855         (streamer_write_enum): Rename from lto_output_enum.
5856         (streamer_read_enum): Rename from lto_input_enum.
5857         (streamer_write_record_start): Rename from output_record_start.
5858         (streamer_read_record_start): Rename from input_record_start.
5859         (streamer_write_bitpack): Rename from lto_output_bitpack.
5860         (streamer_read_bitpack): Rename from lto_input_bitpack.
5861         (streamer_write_char_stream): Rename from lto_output_1_stream.
5862         (streamer_read_uchar): Rename from lto_input_1_unsigned.
5863         * tree-streamer.h (streamer_cache_d): Rename from lto_streamer_cache_d.
5864         (streamer_handle_as_builtin_p): Rename from lto_stream_as_builtin_p.
5865         (streamer_read_string_cst): Rename from input_string_cst.
5866         (streamer_read_chain): Rename from lto_input_chain.
5867         (streamer_alloc_tree): Rename from lto_materialize_tree.
5868         (streamer_read_tree_body): Rename from lto_input_tree_pointers.
5869         (streamer_get_pickled_tree): Rename from lto_get_pickled_tree.
5870         (streamer_get_builtin_tree): Rename from lto_get_builtin_tree.
5871         (streamer_read_integer_cst): Rename from lto_input_integer_cst.
5872         (streamer_read_tree_bitfields): Rename from tree_read_bitfields.
5873         (streamer_write_chain): Rename from lto_output_chain.
5874         (streamer_write_tree_header): Rename from lto_output_tree_header.
5875         (streamer_pack_tree_bitfields): Rename from pack_value_fields.
5876         (streamer_write_tree_body): Rename from lto_output_tree_pointers.
5877         (streamer_write_integer_cst): Rename from lto_output_integer_cst.
5878         (streamer_write_builtin): Rename from lto_output_builtin_tree.
5879         (streamer_check_handled_ts_structures): Rename from
5880         check_handled_ts_structures.
5881         (streamer_tree_cache_insert): Rename from lto_streamer_cache_insert.
5882         (streamer_tree_cache_insert_at): Rename from
5883         lto_streamer_cache_insert_at.
5884         (streamer_tree_cache_append): Rename from lto_streamer_cache_append.
5885         (streamer_tree_cache_lookup): Rename from lto_streamer_cache_lookup.
5886         (streamer_tree_cache_get): Rename from lto_streamer_cache_get.
5887         (streamer_tree_cache_create): Rename from lto_streamer_cache_create.
5888         (streamer_tree_cache_delete): Rename from lto_streamer_cache_delete.
5889         * tree-streamer-out.c (write_string_cst): Rename from output_string_cst.
5890         (write_identifier): Rename from output_identifier.
5891         (write_ts_common_tree_pointers): Rename from
5892         lto_output_ts_common_tree_pointers.
5893         (write_ts_vector_tree_pointers): Rename from
5894         lto_output_ts_vector_tree_pointers.
5895         (write_ts_complex_tree_pointers): Rename from
5896         lto_output_ts_complex_tree_pointers.
5897         (write_ts_decl_minimal_tree_pointers): Rename from
5898         lto_output_ts_decl_minimal_tree_pointers.
5899         (write_ts_decl_common_tree_pointers): Rename from
5900         lto_output_ts_decl_common_tree_pointers.
5901         (write_ts_decl_non_common_tree_pointers): Rename from
5902         lto_output_ts_decl_non_common_tree_pointers.
5903         (write_ts_decl_with_vis_tree_pointers): Rename from
5904         lto_output_ts_decl_with_vis_tree_pointers.
5905         (write_ts_field_decl_tree_pointers): Rename from
5906         lto_output_ts_field_decl_tree_pointers.
5907         (write_ts_function_decl_tree_pointers): Rename from
5908         lto_output_ts_function_decl_tree_pointers.
5909         (write_ts_type_common_tree_pointers): Rename from
5910         lto_output_ts_type_common_tree_pointers.
5911         (write_ts_type_non_common_tree_pointers): Rename from
5912         lto_output_ts_type_non_common_tree_pointers.
5913         (write_ts_list_tree_pointers): Rename from
5914         lto_output_ts_list_tree_pointers.
5915         (write_ts_vec_tree_pointers): Rename from
5916         lto_output_ts_vec_tree_pointers.
5917         (write_ts_exp_tree_pointers): Rename from
5918         lto_output_ts_exp_tree_pointers.
5919         (write_ts_block_tree_pointers): Rename from
5920         lto_output_ts_block_tree_pointers.
5921         (write_ts_binfo_tree_pointers): Rename from
5922         lto_output_ts_binfo_tree_pointers.
5923         (write_ts_constructor_tree_pointers): Rename from
5924         lto_output_ts_constructor_tree_pointers.
5925         (write_ts_target_option): Rename from lto_output_ts_target_option.
5926         (write_ts_translation_unit_decl_tree_pointers): Rename from
5927         lto_output_ts_translation_unit_decl_tree_pointers.
5928         * tree-streamer.c (streamer_tree_cache_add_to_node_array):
5929         Rename from lto_streamer_cache_add_to_node_array.
5930         (streamer_tree_cache_insert_1): Rename from lto_streamer_cache_insert_1.
5931         (record_common_node): Rename from lto_record_common_node.
5932
5933         * streamer-hooks.h (bitpack_d, lto_streamer_cache_d): Remove forward
5934         declarations.
5935         * data-streamer-in.c (lto_input_widest_uint_uleb128): Remove unused
5936         function.
5937         * data-streamer-out.c (lto_output_widest_uint_uleb128_stream): Remove
5938         unused function.
5939         * Makefile.in (lto-section-out.o): Add dependency on DATA_STREAMER_H.
5940         (ipa-reference.o): Likewise.
5941         * lto-section-out.c: Include data-streamer.h.
5942         * ipa-reference.c: Include data-streamer.h.
5943
5944 2011-08-12  Nick Clifton  <nickc@redhat.com>
5945
5946         * builtins.c (expand_builtin_memcmp): Do not use cmpstrnsi pattern.
5947         * doc/md.texi (cmpstrn): Note that the comparison stops if both
5948         fetched bytes are zero.
5949         (cmpstr): Likewise.
5950         (cmpmem): Note that the comparison does not stop if both of the
5951         fetched bytes are zero.
5952
5953 2011-08-12  Uros Bizjak  <ubizjak@gmail.com>
5954
5955         * builtins.def (BUILT_IN_ICEIL{,F,L}, BUILT_IN_IFLOOR{,F,L}
5956         BUILT_IN_IRINT{,F,L}, BUILT_IN_IROUND{,F,L}: New builtin definitions.
5957         * convert.c (convert_to_integer): Convert to BUILT_IN_ICEIL,
5958         BUILT_IN_IFLOOR, BUILT_IN_IRINT or BUILT_INT_IROUND when converting
5959         to integer_type_node.
5960         * fold-const.c (tree_call_nonnegative_warnv_p): Handle BUILT_IN_ICEIL,
5961         BUILT_IN_IFLOOR, BUILT_IN_IRINT and BUILT_INT_IROUND.
5962         * builtins.c (expand_builtin_in): Ditto.
5963         (mathfn_built_in_1): Ditto.
5964         (expand_builtin_int_roundingfn): Handle BUILT_IN_ICEIL and
5965         BUILT_IN_IFLOOR.
5966         (expand_builtin_int_roundingfn_2): Handle BUILT_IN_IRINT and
5967         BUILT_IN_IROUND.
5968         (fold_fixed_mathfn): Canonicalize BUILT_IN_ICEIL, BUILTIN_IN_IFLOOR
5969         BUILT_IN_IRINT and BUILT_IN_IROUND to BUILT_IN_LCEIL,
5970         BUILTIN_IN_LFLOOR, BUILT_IN_LRINT and BUILT_IN_LROUND on ILP32 targets.
5971
5972 2011-08-12  Richard Guenther  <rguenther@suse.de>
5973
5974         * tree-vrp.c (extract_range_from_unary_expr_1): Implement -X as 0 - X.
5975
5976 2011-08-12  Romain Geissler  <romain.geissler@gmail.com>
5977
5978         * Makefile.in (PLUGIN_HEADERS): Add C_TREE_H.
5979
5980 2011-08-12  Richard Sandiford  <rdsandiford@googlemail.com>
5981
5982         * config/arm/arm.c (get_label_padding): New function.
5983         (create_fix_barrier, arm_reorg): Use it.
5984
5985 2011-08-11  Uros Bizjak  <ubizjak@gmail.com>
5986
5987         PR target/49781
5988         * config/i386/i386.md (*lea_5_zext): New.
5989         (*lea_6_zext): Ditto.
5990         * config/i386/predicates.md (const_32bit_mask): New predicate.
5991         (lea_address_operand): Reject AND.
5992         * config/i386/i386.c (ix86_decompose_address): Allow Dimode AND with
5993         const_32bit_mask immediate.
5994         (ix86_print_operand_address): Handle AND.
5995         (memory_address_length): Ditto.
5996
5997 2011-08-11  Romain Geissler  <romain.geissler@gmail.com>
5998             Brian Hackett  <bhackett1024@gmail.com>
5999
6000         * plugin.def: Add event for finish_decl.
6001         * plugin.c (register_callback, invoke_plugin_callbacks): Same.
6002         * c-decl.c (finish_decl): Invoke callbacks on above event.
6003         * doc/plugins.texi: Document above event.
6004
6005 2011-08-11  Richard Guenther  <rguenther@suse.de>
6006
6007         * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid redundant
6008         lookups, make looking through aggregate copies stronger.
6009
6010 2011-08-11  Richard Henderson  <rth@redhat.com>
6011
6012         PR bootstrap/50018
6013         * expr.c (fixup_args_size_notes): Accept and ignore normal calls.
6014
6015 2011-08-11  Richard Guenther  <rguenther@suse.de>
6016
6017         * lto-cgraph.c (input_node): Use DECL_BUILT_IN.
6018         * tree-vrp.c (stmt_interesting_for_vrp): Likewise.
6019         (vrp_visit_stmt): Likewise.
6020
6021 2011-08-11  Richard Guenther  <rguenther@suse.de>
6022
6023         PR middle-end/50040
6024         * gimplify.c (gimplify_modify_expr_complex_part): Mark the
6025         load of the other piece with TREE_NO_WARNING.
6026         * tree-flow.h (warn_uninit): Adjust prototype.
6027         * tree-ssa.c (warn_uninit): Take uninitialized SSA name,
6028         the base variable and the expression that is used separately.
6029         Properly query all TREE_NO_WARNING flags.
6030         (struct walk_data): Remove.
6031         (warn_uninitialized_var): Likewise.
6032         (warn_uninitialized_vars): Do not walk gimple pieces but simply
6033         look at all SSA uses of the statement.  Handle unused memory
6034         separately.
6035         * tree-ssa-uninit.c (warn_uninitialized_phi): Adjust.
6036
6037 2011-08-11   Kazuhiro Inaoka  <kazuhiro.inaoka.ud@renesas.com>
6038
6039         * config/rx/rx.md (movsicc): Allow register to register transfers.
6040         (*movsicc): Likewise.
6041         (*stcc): Restrict this pattern to EQ and NE compares.
6042         (*stcc_reg): New pattern.  Works for any comparison but only for
6043         register transfers.
6044
6045 2011-08-11   Diego Novillo  <dnovillo@google.com>
6046
6047         * tree-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers):
6048         Call stream_write_tree instead of output_record_start.
6049         (lto_output_ts_binfo_tree_pointers): Likewise.
6050
6051         * streamer-hooks.h (stream_write_tree): Move from tree-streamer.h.
6052         Convert it to a macro.
6053         (stream_read_tree): Likewise.
6054
6055         * lto-streamer.h (lto_stream_as_builtin_p): Move ...
6056         * tree-streamer.h (lto_stream_as_builtin_p): ... here.
6057
6058         * lto-streamer-in.c (lto_read_tree): Call lto_streamer_cache_append
6059         and tree_read_bitfields.
6060         * lto-streamer-out.c (lto_is_streamable): Move from lto-streamer.c
6061         (lto_write_tree): Call it.
6062         * lto-streamer.c (lto_is_streamable): Move to lto-streamer-out.c
6063         * streamer-hooks.h (struct streamer_hooks): Remove fields
6064         name, is_streamable and alloc_tree. Update all users.
6065         * tree-streamer-in.c (tree_read_bitfields): Factor out of ...
6066         (lto_materialize_tree): ... here.
6067         Handle CALL_EXPR codes.
6068         Remove call to lto_streamer_cache_append.
6069         * tree-streamer-out.c (lto_output_tree_header): Handle CALL_EXPR nodes.
6070         * tree-streamer.h (tree_read_bitfields): Declare.
6071
6072         * Makefile.in (TREE_STREAMER_H): Add STREAMER_HOOKS_H.
6073         (gimple-streamer-in.o): Add dependency on TREE_STREAMER_H.
6074         * tree-streamer.h (stream_read_tree): New.  Replace all calls
6075         to lto_input_tree with it.
6076         (stream_write_tree): New.  Replace all calls to lto_output_tree,
6077         lto_output_tree_ref and lto_output_tree_or_ref with it.
6078         * lto-streamer-in.c (lto_read_tree): Inline code from
6079         lto_streamer_read_tree.
6080         (lto_input_tree): Move from tree-streamer-in.c.
6081         * lto-streamer-out.c (lto_output_tree_ref): Make static.
6082         Remove handling of NULL values for EXPR.
6083         Do not handle EXPRs that are not indexable.
6084         (lto_write_tree): Move from tree-streamer-out.c.
6085         Inline lto_streamer_write_tree.
6086         (lto_output_tree): Move from tree-streamer-out.c.
6087         If REF_P is true and EXPR is indexable, call lto_output_tree_ref.
6088         * lto-streamer.c (lto_record_common_node): Move to tree-streamer.c.
6089         (lto_preload_common_nodes): Likewise.
6090         Remove assertions and adjustments for nodes
6091         main_identifier_node, ptrdiff_type_node and fileptr_type_node.
6092         (lto_streamer_hooks_init): Set streamer_hooks.write_tree to
6093         lto_output_tree and streamer_hooks.read_tree to lto_input_tree.
6094         * lto-streamer.h (lto_input_tree): Declare.
6095         (lto_output_tree_ref): Remove.
6096         * streamer-hooks.h (struct streamer_hooks): Remove fields
6097         preload_common_nodes, indexable_with_decls_p,
6098         pack_value_fields, unpack_value_fields and output_tree_header.
6099         Update all users.
6100         * tree-streamer-in.c (lto_materialize_tree): Make extern.
6101         (lto_input_tree_pointers): Likewise.
6102         (lto_read_tree): Move to lto-streamer-in.c.
6103         (lto_input_integer_cst): Make extern.
6104         (lto_get_pickled_tree): Likewise.
6105         (lto_get_builtin_tree): Likewise.
6106         (lto_input_tree): Move to lto-streamer-in.c.
6107         * tree-streamer-out.c (pack_value_fields): Make extern.
6108         (lto_output_tree_or_ref): Remove.  Replace all callers with
6109         calls to stream_write_tree.
6110         (lto_output_builtin_tree): Make extern.
6111         (lto_streamer_write_tree): Inline into lto_write_tree.
6112         (lto_output_tree_pointers): Make extern.
6113         (lto_output_tree_header): Likewise.
6114         (lto_output_integer_cst): Likewise.
6115         (lto_write_tree): Move to lto-streamer-out.c.
6116         (lto_output_tree): Likewise.
6117         * tree-streamer.c (lto_record_common_node): Move from lto-streamer.c
6118         (preload_common_nodes): Likewise.
6119         (lto_streamer_cache_create): Call it.
6120         * tree-streamer.h: Include streamer-hooks.h.
6121         (stream_write_tree): New.
6122         (stream_read_tree): New.
6123         (lto_input_tree): Remove.
6124         (lto_materialize_tree): Declare.
6125         (lto_input_tree_pointers): Declare.
6126         (lto_get_pickled_tree): Declare.
6127         (lto_get_builtin_tree): Declare.
6128         (lto_input_integer_cst): Declare.
6129         (lto_output_tree_header): Declare.
6130         (pack_value_fields): Declare.
6131         (lto_output_tree_pointers): Declare.
6132         (lto_output_integer_cst): Declare.
6133         (lto_output_builtin_tree): Declare.
6134
6135 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
6136
6137         * sel-sched-ir.c (has_dependence_note_reg_use): Call ds_full_merge
6138         only if producer writes to the register given by regno.
6139
6140 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
6141             Alexander Monakov  <amonakov@ispras.ru>
6142
6143         * sched-deps.c (sched_get_condition_with_rev): Rename to ...
6144         (sched_get_condition_with_rev_uncached): ... this.  Factor out
6145         condition caching logic into ...
6146         (sched_get_condition_with_rev): ... this.  Reimplement.  Do not
6147         attempt to use cache for instructions with zero luid.
6148         (sched_analyze_insn): Use INSN_CACHED_COND instead of INSN_COND.
6149         * sched-int.h (INSN_COND): Rename to INSN_CACHED_COND.
6150
6151 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
6152
6153         * sel-sched-ir.c (get_seqno_of_a_pred): Rename to
6154         get_seqno_for_a_jump.  Update the caller.
6155         (get_seqno_by_succs): New.  Use it ...
6156         (get_seqno_for_a_jump): ... here to find a seqno if looking at
6157         predecessors was not sufficient.
6158         (get_seqno_by_preds): Include head in iteration range, exclude insn.
6159
6160 2011-08-11  Dmitry Melnik  <dm@ispras.ru>
6161
6162         * sel-sched-ir.c (invalidate_av_set): Remove the assert.
6163
6164 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
6165
6166         * sel-sched-ir.h (register_unavailable_p): Declare.
6167         * sel-sched-ir.c (register_unavailable_p): New.  Use it...
6168         (set_unavailable_target_for_expr): ... here to properly test
6169         availability of a register.
6170         (speculate_expr): Ditto.
6171         * sel-sched.c (substitute_reg_in_expr): Ditto.
6172         (av_set_could_be_blocked_by_bookkeeping_p): Ditto.
6173
6174 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
6175
6176         * sel-sched.c (verify_target_availability): Fix usage of
6177         hard_regno_nregs.
6178
6179 2011-08-11  Dmitry Melnik  <dm@ispras.ru>
6180
6181         * sel-sched-ir.c (init_global_and_expr_for_insn): Forbid copying of
6182         recognized by cannot_copy_insn_p hook and volatile instructions.
6183
6184 2011-08-11  Dmitry Melnik  <dm@ispras.ru>
6185
6186         * sel-sched-ir.c (merge_expr_data): Take maximum spec.
6187
6188 2011-08-11  Richard Sandiford  <richard.sandiford@linaro.org>
6189
6190         * doc/md.texi (define_bypass): Say that the instruction names can
6191         be filename-style globs.
6192         * Makefile.in (FNMATCH_H): Define.
6193         (build/genattrtab.o, build/genautomata.o): Depend on $(FNMATCH_H).
6194         * genattrtab.c: Include fnmatch.h.
6195         (bypass_list): Change field name from "insn" to "pattern".
6196         (gen_bypass_1): Update accordingly.
6197         (process_bypasses): Use fnmatch to check for matches between
6198         insn reservations and define_bypasses.
6199         * genautomata.c: Include fnmatch.h.
6200         (bypass_decl): Rename in_insn_name and out_insn_name to in_pattern
6201         and out_pattern respectively.
6202         (gen_bypass, insert_bypass): Update accordingly.
6203         (for_each_matching_insn, process_bypass_2, process_bypass_1)
6204         (process_bypass): New functions.
6205         (process_decls): Use process_bypass.  Update after field name changes.
6206
6207 2011-08-11  Georg-Johann Lay  <avr@gjlay.de>
6208
6209         PR target/49687
6210         * config/avr/avr.md (smulqi3_highpart): New insn.
6211         (umulqi3_highpart): New insn.
6212         (*subqi3.ashiftrt7): New insn.
6213         (smulhi3_highpart): New expander.
6214         (umulhi3_highpart): Nex expander.
6215         (*smulhi3_highpart_call): New insn.
6216         (*umulhi3_highpart_call): New insn.
6217         (extend_u): New code attribute.
6218         (extend_prefix): Rename code attribute to extend_su.
6219         * config/avr/avr.c (avr_rtx_costs): Report costs of highpart of
6220         widening QI/HI multiply.
6221
6222 2011-08-11  Ira Rosen  <ira.rosen@linaro.org>
6223
6224         PR tree-optimization/50039
6225         * tree-vect-patterns.c (vect_operation_fits_smaller_type): Check
6226         that DEF_STMT has a stmt_vec_info.
6227
6228 2011-08-10  Richard Guenther  <rguenther@suse.de>
6229
6230         * tree.h (can_trust_pointer_alignment): Remove.
6231         * builtins.c (can_trust_pointer_alignment): Remove.
6232
6233 2011-08-10  Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
6234
6235         * c-typeck.c (scalar_to_vector): New function. Try scalar to
6236         vector conversion.
6237         (stv_conv): New enum for scalar_to_vector return type.
6238         (build_binary_op): Adjust.
6239         * doc/extend.texi: Description of scalar to vector expansion.
6240
6241 2011-08-10  Richard Guenther  <rguenther@suse.de>
6242
6243         * tree.h (get_pointer_alignment): Remove max-align argument.
6244         (get_object_alignment): Likewise.
6245         * builtins.c (get_object_alignment_1): Adjust.
6246         (get_object_alignment): Remove max-align argument.
6247         (get_pointer_alignment): Likewise.
6248         (expand_builtin_strlen): Adjust.
6249         (expand_builtin_memcpy): Likewise.
6250         (expand_builtin_mempcpy_args): Likewise.
6251         (expand_builtin_strncpy): Likewise.
6252         (expand_builtin_memset_args): Likewise.
6253         (expand_builtin_memcmp): Likewise.
6254         (expand_builtin_strcmp): Likewise.
6255         (expand_builtin_strncmp): Likewise.
6256         (get_builtin_sync_mem): Likewise.
6257         (fold_builtin_memset): Likewise.
6258         (fold_builtin_memory_op): Likewise.
6259         (expand_builtin_memory_chk): Likewise.
6260         * emit-rtl.c (get_mem_align_offset): Likewise.
6261         (set_mem_attributes_minus_bitpos): Likewise.
6262         * expr.c (expand_assignment): Likewise.
6263         (expand_expr_real_1): Likewise.
6264         * tree-sra.c (tree_non_mode_aligned_mem_p): Likewise.
6265         * tree-ssa-forwprop.c (simplify_builtin_call): Likewise.
6266         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Likewise.
6267         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Likewise.
6268         * value-prof.c (gimple_stringops_transform): Likewise.
6269
6270 2011-08-10  Paulo J. Matos  <paulo.matos@csr.com>
6271
6272         * doc/tm.texi.in (CLASS_MAX_NREGS): Fix typo.
6273         * doc/tm.texi: Regenerate.
6274
6275 2011-08-10  Georg-Johann Lay  <avr@gjlay.de>
6276
6277         PR target/29560
6278         * config/avr/avr.md (*ashlhiqi3): New insn-and-split.
6279         (*ashl<extend_prefix>qihiqi3): New insn-and-splits.
6280         (*ashl<extend_prefix>qihiqi3.mem): New insn-and-splits.
6281         Add peephole2 to map ashlhi3 to ashlqi3 if high part of
6282         shift target is unused.
6283
6284 2011-08-10  Richard Guenther  <rguenther@suse.de>
6285
6286         PR tree-optimization/49937
6287         * tree-ssa-ccp.c (get_value_from_alignment): Re-implement
6288         using get_object_alignment_1.
6289
6290 2011-08-09  Uros Bizjak  <ubizjak@gmail.com>
6291
6292         * config/i386/i386.c (ix86_emit_i387_round): New function.
6293         * config/i386/i386-protos.h (ix86_emit_i387_round): Declare.
6294         * config/i386/i386.md (round<mode>2): Use X87MODEF mode iterator.
6295         Use ix86_emit_i387_round to expand round function for i387 math.
6296         (lround<X87MODEF:mode><SWI248x:mode>2): Use X87MODEF mode iterator.
6297         Use ix86_emit_i387_round to expand {l,ll}round function for i387 math.
6298
6299 2011-08-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6300
6301         * config/sync.c: Move to ../libgcc.
6302         * Makefile.in (libgcc.mvars): Remove LIBGCC_SYNC, LIBGCC_SYNC_CFLAGS.
6303         * config/mips/t-libgcc-mips16 (LIBGCC_SYNC, LIBGCC_SYNC_CFLAGS):
6304         Remove.
6305
6306 2011-08-09  Anatoly Sokolov  <aesok@post.ru>
6307
6308         * config/mmix/mmix.h (REGISTER_MOVE_COST): Remove macro.
6309         * config/mmix/mmix-protos.h (mmix_register_move_cost): Remove.
6310         * config/mmix/mmix.c (mmix_register_move_cost): Make static.
6311         Change 'from' and 'to' arguments type to reg_class_t.
6312         (TARGET_REGISTER_MOVE_COST): Define.
6313
6314 2011-08-09  Vladimir Makarov  <vmakarov@redhat.com>
6315
6316         PR target/50026
6317         Revert:
6318         PR rtl-optimization/49990
6319         * ira-costs.c (print_allocno_costs, print_pseudo_costs): Don't
6320         ignore classes which can not change mode.
6321         (find_costs_and_classes): Ditto.
6322
6323 2011-08-09  Richard Guenther  <rguenther@suse.de>
6324
6325         * tree-vrp.c (zero_nonzero_bits_from_vr): Also return precise
6326         information for ranges with only negative values.
6327         (extract_range_from_binary_expr_1): Adjust BIT_IOR_EXPR and
6328         BIT_AND_EXPR handling to handle ranges with negative values.
6329
6330 2011-08-09  Kirill Yukhin  <kirill.yukhin@intel.com>
6331
6332         * config/i386/i386.c: Remove traling spaces.
6333         * config/i386/sse.md: Likewise.
6334         (*fma_fmadd_<mode>): Fix insn alternative 1 mnemonic.
6335         (*fma_fmsub_<mode>): Likewise.
6336         (*fma_fnmadd_<mode>): Likewise.
6337         (*fma_fnmsub_<mode>): Likewise.
6338
6339 2011-08-09  Nick Clifton  <nickc@redhat.com>
6340
6341         * config/rx/rx.md: Disable extender peepholes at -O3.
6342
6343 2011-08-09  Uros Bizjak  <ubizjak@gmail.com>
6344
6345         PR target/49781
6346         * config/i386/i386.md (reload_noff_load): New.
6347         (reload_noff_store): Ditto.
6348         * config/i386/i386.c (ix86_secondary_reload): Use
6349         CODE_FOR_reload_noff_load and CODE_FOR_reload_noff_store to handle
6350         double-word moves from/to non-offsetable addresses instead of
6351         generating XMM temporary.
6352
6353 2011-08-09  Anatoly Sokolov  <aesok@post.ru>
6354
6355         * config/mmix/mmix.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P): Remove.
6356
6357 2011-08-09  Ira Rosen  <ira.rosen@linaro.org>
6358
6359         PR tree-optimization/50014
6360         * tree-vect-loop.c (vectorizable_reduction): Get def type before
6361         calling vect_get_vec_def_for_stmt_copy ().
6362
6363 2011-08-08  Vladimir Makarov  <vmakarov@redhat.com>
6364
6365         PR rtl-optimization/49990
6366         * ira-costs.c (print_allocno_costs, print_pseudo_costs): Don't
6367         ignore classes which can not change mode.
6368         (find_costs_and_classes): Ditto.
6369
6370 2011-08-08  Richard Henderson  <rth@redhat.com>
6371
6372         PR middle-end/49990
6373         * config/i386/i386.c (ix86_expand_prologue): Call
6374         for SEH target gen_prologue_use instead of gen_blockage
6375         at prologue's end.
6376
6377 2011-08-08  Martin Jambor  <mjambor@suse.cz>
6378
6379         PR middle-end/49923
6380         * tree-sra.c (access_precludes_ipa_sra_p): Also check access
6381         memory alignment.
6382
6383 2011-08-08   Diego Novillo  <dnovillo@google.com>
6384
6385         * Makefile.in (LTO_STREAMER_H): Add DIAGNOSTIC_H.
6386         (DATA_STREAMER_H): New.
6387         (GIMPLE_STREAMER_H): New.
6388         (TREE_STREAMER_H): New.
6389         (STREAMER_HOOKS_H): New.
6390         (OBJS): Add data-streamer.o, data-streamer-in.o, data-streamer-out.o,
6391         gimple-streamer-in.o, gimple-streamer-out.o, streamer-hooks.o,
6392         tree-streamer.o, tree-streamer-in.o and tree-streamer-out.o.
6393         (data-streamer.o): New.
6394         (data-streamer-in.o): New.
6395         (data-streamer-out.o): New.
6396         (gimple-streamer-in.o): New.
6397         (gimple-streamer-out.o): New.
6398         (streamer-hooks.o): New.
6399         (tree-streamer.o): New.
6400         (tree-streamer-in.o): New.
6401         (tree-streamer-out.o): New.
6402         (lto-cgraph.o): Add dependency on DATA_STREAMER_H and TREE_STREAMER_H.
6403         (lto-streamer-in.o): Add dependency on DATA_STREAMER_H,
6404         GIMPLE_STREAMER_H and TREE_STREAMER_H.
6405         (lto-streamer-out.o): Add dependency on DATA_STREAMER_H,
6406         GIMPLE_STREAMER_H and TREE_STREAMER_H.
6407         (lto-streamer.o): Add dependency on STREAMER_HOOKS_H.
6408         (ipa-prop.o): Add dependency on DATA_STREAMER_H and TREE_STREAMER_H.
6409         (ipa-inline-analysis.o): Likewise.
6410         (ipa-pure-const.o): Likewise.
6411         * data-streamer-in.c: New.
6412         * data-streamer-out.c: New.
6413         * data-streamer.c: New.
6414         * data-streamer.h: New.
6415         * gimple-streamer-in.c: New.
6416         * gimple-streamer-out.c: New.
6417         * gimple-streamer.h: New.
6418         * ipa-inline-analysis.c: Include data-streamer.h.
6419         * ipa-prop.c: Include data-streamer.h.
6420         * ipa-pure-const.c: Include data-streamer.h.
6421         * lto-cgraph.c: Include data-streamer.h.
6422         * lto-section-in.c (lto_input_uleb128): Move to data-streamer-in.c.
6423         (lto_input_widest_uint_uleb128): Likewise.
6424         (lto_input_sleb128): Likewise.
6425         (bp_unpack_var_len_unsigned): Likewise.
6426         (bp_unpack_var_len_int): Likewise.
6427         * lto-section-out.c (lto_output_uleb128_stream): Move to
6428         data-streamer-out.c.
6429         (lto_output_widest_uint_uleb128_stream): Likewise.
6430         (lto_output_sleb128_stream): Likewise.
6431         (bp_pack_var_len_unsigned): Likewise.
6432         (bp_pack_var_len_int): Likewise.
6433         * lto-streamer-in.c: Include data-streamer.h and gimple-streamer.h.
6434         (struct string_slot): Remove.  Update all users.
6435         (lto_tag_check_set): Make extern.
6436         (lto_tag_check_range): Move to lto-streamer.h.
6437         (lto_tag_check): Likewise.
6438         (hash_string_slot_node): Remove.  Update all users.
6439         (eq_string_slot_node): Remove.  Update all users.
6440         (string_for_index): Move to data-streamer-in.c
6441         (input_string_internal): Likewise.
6442         (input_string_cst): Move to tree-streamer-in.c.
6443         (input_identifier): Likewise.
6444         (lto_input_string): Move to data-streamer-in.c
6445         (input_record_start): Move to data-streamer.h
6446         (canon_file_name): Use new definition of struct string_slot
6447         from data-streamer.h.  Set S_SLOT.LEN.
6448         (lto_input_location): Make extern.
6449         (lto_input_chain): Move to tree-streamer-in.c.
6450         (lto_init_eh): Make extern.
6451         (input_phi): Move to gimple-streamer-in.c.
6452         (input_gimple_stmt): Likewise.
6453         (input_bb): Likewise.
6454         (unpack_ts_base_value_fields): Move to tree-streamer-in.c.
6455         (unpack_ts_real_cst_value_fields): Likewise.
6456         (unpack_ts_fixed_cst_value_fields): Likewise.
6457         (unpack_ts_decl_common_value_fields): Likewise.
6458         (unpack_ts_decl_wrtl_value_fields): Likewise.
6459         (unpack_ts_decl_with_vis_value_fields): Likewise.
6460         (unpack_ts_function_decl_value_fields): Likewise.
6461         (unpack_ts_type_common_value_fields): Likewise.
6462         (unpack_ts_block_value_fields): Likewise.
6463         (unpack_ts_translation_unit_decl_value_fields): Likewise.
6464         (unpack_value_fields): Likewise.
6465         (lto_materialize_tree): Likewise.
6466         (lto_input_ts_common_tree_pointers): Likewise.
6467         (lto_input_ts_vector_tree_pointers): Likewise.
6468         (lto_input_ts_complex_tree_pointers): Likewise.
6469         (lto_input_ts_decl_minimal_tree_pointers): Likewise.
6470         (lto_input_ts_decl_common_tree_pointers): Likewise.
6471         (lto_input_ts_decl_non_common_tree_pointers): Likewise.
6472         (lto_input_ts_decl_with_vis_tree_pointers): Likewise.
6473         (lto_input_ts_field_decl_tree_pointers): Likewise.
6474         (lto_input_ts_function_decl_tree_pointers): Likewise.
6475         (lto_input_ts_type_common_tree_pointers): Likewise.
6476         (lto_input_ts_type_non_common_tree_pointers): Likewise.
6477         (lto_input_ts_list_tree_pointers): Likewise.
6478         (lto_input_ts_vec_tree_pointers): Likewise.
6479         (lto_input_ts_exp_tree_pointers): Likewise.
6480         (lto_input_ts_block_tree_pointers): Likewise.
6481         (lto_input_ts_binfo_tree_pointers): Likewise.
6482         (lto_input_ts_constructor_tree_pointers): Likewise.
6483         (lto_input_ts_target_option): Likewise.
6484         (lto_input_ts_translation_unit_decl_tree_pointers): Likewise.
6485         (lto_input_tree_pointers): Likewise.
6486         (lto_get_pickled_tree): Likewise.
6487         (lto_get_builtin_tree): Likewise.
6488         (lto_read_tree): Likewise.
6489         (lto_input_integer_cst): Likewise.
6490         (lto_input_tree): Likewise.
6491         * lto-streamer-out.c: Include data-streamer.h,
6492         gimple-streamer.h and streamer-hooks.h.
6493         (struct string_slot): Move to data-streamer.h.
6494         (hash_string_slot_node): Likewise.
6495         (eq_string_slot_node): Likewise.
6496         (lto_string_index): Move to data-streamer-out.c.
6497         (lto_output_string_with_length): Likewise.
6498         (lto_output_string): Likewise.
6499         (output_string_cst): Move to tree-streamer-out.c.
6500         (output_identifier): Likewise.
6501         (output_zero): Move to data-streamer-out.c
6502         (output_uleb128): Likewise.
6503         (output_sleb128): Likewise.
6504         (output_record_start): Move to data-streamer.h
6505         (pack_ts_base_value_fields): Move to tree-streamer-out.c.
6506         (pack_ts_real_cst_value_fields): Likewise.
6507         (pack_ts_fixed_cst_value_fields): Likewise.
6508         (pack_ts_decl_common_value_fields): Likewise.
6509         (pack_ts_decl_wrtl_value_fields): Likewise.
6510         (pack_ts_decl_with_vis_value_fields): Likewise.
6511         (pack_ts_function_decl_value_fields): Likewise.
6512         (pack_ts_type_common_value_fields): Likewise.
6513         (pack_ts_block_value_fields): Likewise.
6514         (pack_ts_translation_unit_decl_value_fields): Likewise.
6515         (pack_value_fields): Likewise.
6516         (lto_output_chain): Likewise.
6517         (lto_output_ts_common_tree_pointers): Likewise.
6518         (lto_output_ts_vector_tree_pointers): Likewise.
6519         (lto_output_ts_complex_tree_pointers): Likewise.
6520         (lto_output_ts_decl_minimal_tree_pointers): Likewise.
6521         (lto_output_ts_decl_common_tree_pointers): Likewise.
6522         (lto_output_ts_decl_non_common_tree_pointers): Likewise.
6523         (lto_output_ts_decl_with_vis_tree_pointers): Likewise.
6524         (lto_output_ts_field_decl_tree_pointers): Likewise.
6525         (lto_output_ts_function_decl_tree_pointers): Likewise.
6526         (lto_output_ts_type_common_tree_pointers): Likewise.
6527         (lto_output_ts_type_non_common_tree_pointers): Likewise.
6528         (lto_output_ts_list_tree_pointers): Likewise.
6529         (lto_output_ts_vec_tree_pointers): Likewise.
6530         (lto_output_ts_exp_tree_pointers): Likewise.
6531         (lto_output_ts_block_tree_pointers): Likewise.
6532         (lto_output_ts_binfo_tree_pointers): Likewise.
6533         (lto_output_ts_constructor_tree_pointers): Likewise.
6534         (lto_output_ts_target_option): Likewise.
6535         (lto_output_ts_translation_unit_decl_tree_pointers): Likewise.
6536         (lto_output_tree_pointers): Likewise.
6537         (lto_output_tree_header): Likewise.
6538         (lto_output_builtin_tree): Likewise.
6539         (lto_write_tree): Likewise.
6540         (lto_output_integer_cst): Likewise.
6541         (lto_output_tree): Likewise.
6542         (output_phi): Move to gimple-streamer-out.c.
6543         (output_gimple_stmt): Likewise.
6544         (output_bb): Likewise.
6545         * lto-streamer.c: Include tree-streamer.h and streamer-hooks.h.
6546         (streamer_hooks): Move to streamer-hooks.c.
6547         (check_handled_ts_structures): Move to tree-streamer.c
6548         (lto_streamer_cache_add_to_node_array): Likewise.
6549         (lto_streamer_cache_insert_1): Likewise.
6550         (lto_streamer_cache_insert): Likewise.
6551         (lto_streamer_cache_insert_at): Likewise.
6552         (lto_streamer_cache_append): Likewise.
6553         (lto_streamer_cache_lookup): Likewise.
6554         (lto_streamer_cache_get): Likewise.
6555         (lto_record_common_node): Likewise.
6556         (lto_preload_common_nodes): Likewise.
6557         (lto_streamer_cache_create): Likewise.
6558         (lto_streamer_cache_delete): Likewise.
6559         (streamer_hooks_init): Move to streamer-hooks.c.
6560         * lto-streamer.h: Include diagnostic.h
6561         (struct output_block, struct lto_input_block,
6562         struct data_in, struct bitpack_d): Remove forward declarations.
6563         (struct bitpack_d): Move to data-streamer.h.
6564         (struct lto_streamer_cache_d): Move to tree-streamer.h.
6565         (struct streamer_hooks): Move to streamer-hooks.h.
6566         (bp_pack_var_len_unsigned): Move to data-streamer.h.
6567         (bp_pack_var_len_int): Likewise.
6568         (bp_unpack_var_len_unsigned): Likewise.
6569         (bp_unpack_var_len_int): Likewise.
6570         (lto_input_location): Declare.
6571         (lto_tag_check_set): Declare.
6572         (lto_init_eh): Declare.
6573         (lto_output_tree_ref): Declare.
6574         (lto_output_location): Declare.
6575         (bitpack_create): Move to data-streamer.h.
6576         (bp_pack_value): Likewise.
6577         (lto_output_bitpack): Likewise.
6578         (lto_input_bitpack): Likewise.
6579         (bp_unpack_value): Likewise.
6580         (lto_output_1_stream): Likewise.
6581         (lto_input_1_unsigned): Likewise.
6582         (lto_output_int_in_range): Likewise.
6583         (lto_input_int_in_range): Likewise.
6584         (bp_pack_int_in_range): Likewise.
6585         (bp_unpack_int_in_range): Likewise.
6586         (lto_output_enum): Likewise.
6587         (lto_input_enum): Likewise.
6588         (bp_pack_enum): Likewise.
6589         (bp_unpack_enum): Likewise.
6590         * streamer-hooks.c: New.
6591         * streamer-hooks.h: New.
6592         * tree-streamer-in.c: New.
6593         * tree-streamer-out.c: New.
6594         * tree-streamer.c: New.
6595         * tree-streamer.h: New.
6596
6597 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6598
6599         * gthr-posix95.h: Remove.
6600         * gthr.h [_PTHREADS95]: Remove.
6601         * configure.ac (enable_threads): Remove posix95.
6602         * configure: Regenerate.
6603         * doc/install.texi (Configuration, --enable-threads): Remove posix95.
6604
6605 2011-08-08  Uros Bizjak  <ubizjak@gmail.com>
6606
6607         PR target/49781
6608         * config/i386/i386.c (ix86_decompose_address): Allow zero-extended
6609         SImode addresses.
6610         (ix86_print_operand_address): Handle zero-extended addresses.
6611         (memory_address_length): Add length of addr32 prefix for
6612         zero-extended addresses.
6613         (ix86_secondary_reload): Handle moves to/from double-word general
6614         registers from/to zero-extended addresses.
6615         * config/i386/predicates.md (lea_address_operand): Reject
6616         zero-extended operands.
6617
6618 2011-08-08  H.J. Lu  <hongjiu.lu@intel.com>
6619
6620         PR other/48007
6621         * config.gcc (libgcc_tm_file): Add i386/value-unwind.h for Linux/x86.
6622
6623         * system.h (REG_VALUE_IN_UNWIND_CONTEXT): Poisoned.
6624         (ASSUME_EXTENDED_UNWIND_CONTEXT): Likewise.
6625
6626         * unwind-dw2.c (ASSUME_EXTENDED_UNWIND_CONTEXT): New.
6627         (_Unwind_Context_Reg_Val): Likewise.
6628         (_Unwind_Get_Unwind_Word): Likewise.
6629         (_Unwind_Get_Unwind_Context_Reg_Val): Likewise.
6630         (_Unwind_Context): Use _Unwind_Context_Reg_Val on the reg field.
6631         (_Unwind_IsExtendedContext): Check ASSUME_EXTENDED_UNWIND_CONTEXT
6632         for EXTENDED_CONTEXT_BIT.
6633         (__frame_state_for): Likewise.
6634         (uw_init_context_1): Likewise.
6635         (_Unwind_GetGR): Updated.
6636         (_Unwind_SetGR): Likewise.
6637         (_Unwind_GetGRPtr): Likewise.
6638         (_Unwind_SetGRPtr): Likewise.
6639         (_Unwind_SetGRValue): Likewise.
6640         (_Unwind_GRByValue): Likewise.
6641         (uw_install_context_1): Likewise.
6642
6643         * doc/tm.texi.in: Document REG_VALUE_IN_UNWIND_CONTEXT and
6644         ASSUME_EXTENDED_UNWIND_CONTEXT.
6645         * doc/tm.texi: Regenerated.
6646
6647 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6648
6649         * Makefile.in (gengtype$(exeext)): Add $(LDFLAGS).
6650
6651 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6652
6653         * doc/invoke.texi (DEC Alpha Options, -mcpu): native support isn't
6654         Linux/GNU-specific.
6655         (DEC Alpha Options, -mtune): Likewise.
6656         (MIPS Options, -march): native is supported on IRIX.
6657
6658 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6659
6660         * config/sparc/driver-sparc.c: New file.
6661         * config/sparc/x-sparc: New file.
6662         * config.host: Use driver-sparc.o, sparc/x-sparc on sparc*-*-solaris2*.
6663         * config/sparc/sparc.opt (native): New value for enum processor_type.
6664         * config/sparc/sparc-opts.h (PROCESSOR_NATIVE): Declare.
6665         * config/sparc/sparc.c (sparc_option_override): Abort if
6666         PROCESSOR_NATIVE gets here.
6667         * config/sparc/sol2.h [__sparc__] (host_detect_local_cpu): Declare.
6668         (EXTRA_SPEC_FUNCTIONS, MCPU_MTUNE_NATIVE_SPECS,
6669         DRIVER_SELF_SPECS): Define.
6670         * doc/invoke.texi (SPARC Options, -mcpu): Document native.
6671         (SPARC Options, -mtune): Likewise.
6672         * configure.ac (EXTRA_GCC_LIBS): Check for libkstat.
6673         Substitute result.
6674         * configure: Regenerate.
6675         * Makefile.in (EXTRA_GCC_LIBS): Set.
6676         (xgcc$(exeext)): Add $(EXTRA_GCC_LIBS).
6677         (cpp$(exeext)): Likewise.
6678
6679 2011-08-08  Richard Guenther  <rguenther@suse.de>
6680
6681         * tree-vrp.c (extract_range_from_unary_expr_1): New function,
6682         split out from ...
6683         (extract_range_from_unary_expr): ... here.  Handle BIT_NOT_EXPR
6684         by composition.
6685
6686 2011-08-08  Mikael Pettersson  <mikpe@it.uu.se>
6687
6688         PR tree-optimization/50005
6689         * ipa-inline-analysis (remap_predicate): Add cast to
6690         silence signed/unsigned comparison warning.
6691
6692 2011-08-08  Richard Sandiford  <richard.sandiford@linaro.org>
6693
6694         * modulo-sched.c (get_sched_window): Use a table for the debug output.
6695         Print the current ii.
6696         (sms_schedule_by_order): Reduce whitespace in dump line.
6697
6698 2011-08-08  Richard Sandiford  <richard.sandiford@linaro.org>
6699
6700         * modulo-sched.c (get_sched_window): Use just one loop for predecessors
6701         and one loop for successors.  Fix upper bound of memory range.
6702
6703 2011-08-06  Uros Bizjak  <ubizjak@gmail.com>
6704
6705         PR target/50001
6706         * config/alpha/alpha.c (alpha_instantiate_decls): New function.
6707         (TARGET_INSTANTIATE_DECLS): New define.
6708
6709 2011-08-06  Paolo Bonzini  <bonzini@gnu.org>
6710             Mikael Morin   <mikael.morin@sfr.fr>
6711
6712         * Makefile.in (INCLUDES_FOR_TARGET): New.
6713         (LIBGCC2_CFLAGS): Use it.
6714         (CRTSTUFF_CFLAGS): Use it instead of INCLUDES.
6715
6716 2011-08-06  Uros Bizjak  <ubizjak@gmail.com>
6717
6718         * config/i386/i386.c (ix86_compute_frame_layout): Simplify
6719         frame->save_regs_using_mov calculation.
6720
6721 2011-08-06  Uros Bizjak  <ubizjak@gmail.com>
6722
6723         * config/i386/i386.md (ssemodesuffix): Remove V8SI mode.
6724         * config/i386/sse.md (castmode): New mode attribute.
6725         (avx_<castmode><avxsizesuffix>_<castmode>): Rename from
6726         avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>.
6727
6728 2011-08-05  Jan Hubicka  <jh@suse.cz>
6729
6730         PR middle-end/49494
6731         * ipa-inline-analysis.c (remap_predicate): Add bounds check.
6732
6733 2011-08-05  Jan Hubicka  <jh@suse.cz>
6734
6735         PR middle-end/49500
6736         * tree-emultls.c (new_emutls_decl):Add alias_of parameter;
6737         handle aliases.
6738         (create_emultls_var):New function.
6739         (ipa_lower_emutls): Handle aliases correctly.
6740
6741 2011-08-05  Jan Hubicka  <jh@suse.cz>
6742
6743         PR middle-end/49735
6744         * ipa-inline.c (recursive_inlining): Look through aliases.
6745
6746 2011-08-05  Jason Merrill  <jason@redhat.com>
6747
6748         * config/i386/i386.c (setup_incoming_varargs_ms_64): Move
6749         declarations to beginning of function.
6750
6751 2011-08-05  Bernd Schmidt  <bernds@codesourcery.com>
6752
6753         PR rtl-optimization/49900
6754         * sched-ebb.c (add_deps_for_risky_insns): Also add dependencies to
6755         ensure basic blocks stay in the same order.
6756
6757 2011-08-05  Aldy Hernandez  <aldyh@redhat.com>
6758
6759         * config/s390/s390.c (s390_expand_cs_hqi): Add new arguments to
6760         store_bit_field.
6761         (s390_expand_atomic): Same.
6762
6763 2011-08-05  Richard Henderson  <rth@redhat.com>
6764
6765         PR rtl-opt/49977
6766         * dwarf2cfi.c (scan_insn_after): Split out of ...
6767         (scan_trace): ... here.  Correctly place notes wrt sequences.
6768
6769 2011-08-05  Kaz Kojima  <kkojima@gcc.gnu.org>
6770             Richard Henderson  <rth@redhat.com>
6771
6772         PR rtl-opt/49982
6773         * expr.c (fixup_args_size_notes): Look through no-op moves.
6774
6775 2011-08-05  Uros Bizjak  <ubizjak@gmail.com>
6776
6777         * config/i386/i386.md (*push<mode>2): Use "o" constraint instead
6778         of "m" for operand 0.  Add type and mode attribute.
6779         (*pushxf_nointeger"): Use "<" constraint for operand 0.
6780         (*pushdf_rex64): New pattern, split out of *pushdf.  Use "m"
6781         constraint instead of "o" for opreand 1.
6782         (*pushdf): Disable for TARGET_64BIT.  Correct mode attribute.
6783         (*movdi_internal_rex64): Use "!o" constraint instead of "!m" for
6784         operand 0, alternative 4.
6785         (*movdf_internal_rex64): Ditto for operand 0, alernative 6.
6786
6787 2011-08-05  Uros Bizjak  <ubizjak@gmail.com>
6788
6789         * config/i386/predicates.md (lea_address_operand): Rename from
6790         no_seg_address_operand.
6791         * config/i386/i386.md (*lea_1): Update operand 1 predicate for rename.
6792         (*lea_1_zext): Ditto.
6793         (*lea_2): Ditto.
6794         (*lea_2_zext): Ditto.
6795
6796 2011-08-05  Uros Bizjak  <ubizjak@gmail.com>
6797
6798         * config/i386/i386.c (ix86_print_operand_address): Handle SUBREGs of
6799         parts.base and parts.index.
6800         * config/i386/predicates.md (aligned_operand): Ditto.
6801         (cmpxchg8b_pic_memory_operand): Ditto.
6802
6803 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6804
6805         * config/soft-fp: Move to ../libgcc.
6806         * Makefile.in (SFP_MACHINE): Remove.
6807         (libgcc-support): Remove $(SFP_MACHINE) dependency.
6808         * config/arm/sfp-machine.h: Move to ../libgcc/config/arm.
6809         * config/arm/t-arm-softfp: Move to
6810         ../libgcc/config/arm/t-softfp.
6811         * config/c6x/sfp-machine.h: Move to ../libgcc/config/c6x.
6812         * config/c6x/t-c6x-softfp: Remove.
6813         * config/i386/sfp-machine.h: Move to ../libgcc/config/i386.
6814         * config/i386/t-fprules-softfp: Move to
6815         ../libgcc/config/t-softfp-tf.
6816         * config/ia64/sfp-machine.h: Move to ../libgcc/config/ia64.
6817         * config/ia64/t-fprules-softfp: Remove.
6818         * config/lm32/sfp-machine.h: Move to ../libgcc/config/lm32.
6819         * config/lm32/t-fprules-softfp: Remove.
6820         * config/moxie/sfp-machine.h: Remove.
6821         * config/moxie/t-moxie-softfp: Remove.
6822         * config/rs6000/darwin-ldouble-format: Move to
6823         ../libgcc/config/rs6000/ibm-ldouble-format.
6824         * config/rs6000/darwin-ldouble.c: Move to
6825         ../libgcc/config/rs6000/ibm-ldouble.c
6826         * config/rs6000/libgcc-ppc-glibc.ver: Move to ../libgcc/config/rs6000.
6827         * config/rs6000/libgcc-ppc64.ver: Likewise.
6828         * config/rs6000/sfp-machine.h: Likewise.
6829         * config/rs6000/t-aix43 (SHLIB_MAPFILES): Remove
6830         $(srcdir)/config/rs6000/libgcc-ppc64.ver.
6831         (LIB2FUNCS_EXTRA): Remove.
6832         (TARGET_LIBGCC2_CFLAGS): Remove.
6833         * config/rs6000/t-aix52: Likewise
6834         * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Remove
6835         $(srcdir)/config/rs6000/darwin-ldouble.c.
6836         (SHLIB_MAPFILES): Remove.
6837         * config/rs6000/t-darwin64 (LIB2FUNCS_EXTRA): Remove
6838         $(srcdir)/config/rs6000/darwin-ldouble.c.
6839         * config/rs6000/t-fprules-softfp: Move to
6840         ../libgcc/config/t-softfp-sfdf.
6841         * config/rs6000/t-freebsd: Move to ../libgcc/config/rs6000.
6842         * config/rs6000/t-linux64 (softfp_wrap_start, softfp_wrap_end): Remove.
6843         * config/rs6000/t-ppccomm (LIB2FUNCS_EXTRA): Remove
6844         $(srcdir)/config/rs6000/darwin-ldouble.c.
6845         * config/score/sfp-machine.h: Move to ../libgcc/config/score.
6846         * config/score/t-score-softfp: Remove.
6847         * config.gcc (arm*-*-linux*): Remove arm/t-arm-softfp,
6848         soft-fp/t-softfp from tmake_file.
6849         (arm*-*-uclinux*): Likewise.
6850         (arm*-*-ecos-elf): Likewise.
6851         (arm*-*-eabi*, arm*-*-symbianelf*): Likewise.
6852         (arm*-*-rtems*): Likewise.
6853         (arm*-*-elf): Likewise.
6854         (moxie-*-elf): Remove moxie/t-moxie-softfp, soft-fp/t-softfp from
6855         tmake_file.
6856         (moxie-*-uclinux*): Likewise.
6857         (moxie-*-rtems*): Likewise.
6858         (lm32-*-elf*): Remove lm32/t-fprules-softfp, soft-fp/t-softfp from
6859         tmake_file.
6860         (lm32-*-rtems*): Likewise.
6861         (lm32-*-uclinux*): Likewise.
6862         (powerpc-*-freebsd*): Remove rs6000/t-freebsd,
6863         rs6000/t-fprules-softfp, soft-fp/t-softfp from tmake_file.
6864         (powerpc-*-linux*, powerpc64-*-linux*): Remove
6865         rs6000/t-fprules-softfp, soft-fp/t-softfp from tmake_file.
6866         (score-*-elf): Remove score/t-score-softfp, soft-fp/t-softfp from
6867         tmake_file.
6868         (tic6x-*-elf): Remove c6x/t-c6x-softfp, soft-fp/t-softfp from
6869         tmake_file.
6870         (tic6x-*-uclinux): Likewise.
6871         (i[34567]86-*-darwin*, x86_64-*-darwin*): Remove i386/t-fprules-softfp,
6872         soft-fp/t-softfp from tmake_file.
6873         (i[34567]86-*-linux*, x86_64-*-linux*, i[34567]86-*-kfreebsd*-gnu)
6874         (x86_64-*-kfreebsd*-gnu, i[34567]86-*-gnu*): Likewise.
6875         (i[34567]86-*-solaris2*, x86_64-*-solaris2.1[0-9]*): Likewise.
6876         (i[34567]86-*-cygwin*, i[34567]86-*-mingw*, x86_64-*-mingw*): Likewise.
6877         (i[34567]86-*-freebsd*, x86_64-*-freebsd*): Likewise.
6878
6879 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6880
6881         * Makefile.in (FPBIT_FUNCS, DPBIT_FUNCS, TPBIT_FUNCS): Remove.
6882         (libgcc-support): Remove $(FPBIT), $(DPBIT), $(TPBIT) dependencies.
6883         (libgcc.mvars): Remove FPBIT, FPBIT_FUNCS, DPBIT, DPBIT_FUNCS,
6884         TPBIT, TPBIT_FUNCS.
6885         * config/fp-bit.c, config/fp-bit.h: Move to ../libgcc.
6886         * config/arm/t-strongarm-elf (FPBIT, DPBIT, dp-bit.c, fp-bit.c):
6887         Remove.
6888         * config/arm/t-vxworks: Likewise.
6889         * config/arm/t-wince-pe: Likewise.
6890         * config/avr/t-avr (fp-bit.c, FPBIT): Remove.
6891         * config/bfin/t-bfin (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
6892         * config/bfin/t-bfin-elf: Likewise.
6893         * config/bfin/t-bfin-linux: Likewise.
6894         * config/bfin/t-bfin-uclinux: Likewise.
6895         * config/cris/t-cris (FPBIT, DPBIT, dp-bit.c, tmplibgcc_fp_bit.c):
6896         Remove.
6897         * config/fr30/t-fr30: Likewise.
6898         * config/frv/t-frv: Likewise.
6899         * config/h8300/t-h8300 (FPBIT, fp-bit.c): Remove.
6900         * config/iq2000/t-iq2000 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
6901         * config/m32c/t-m32c: Likewise.
6902         * config/m32r/t-linux: (LIB2FUNCS_EXTRA, fp-bit.c, dp-bit.c): Remove.
6903         * config/m32r/t-m32r (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
6904         * config/mcore/t-mcore: Likewise.
6905         * config/mep/t-mep: Likewise.
6906         * config/microblaze/t-microblaze: Likewise.
6907         * config/mips/t-linux64 (TPBIT, tp-bit.c): Remove.
6908         * config/mips/t-mips (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
6909         * config/mips/t-sdemtk (FPBIT, DPBIT): Remove.
6910         * config/mips/t-sr71k (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
6911         * config/mn10300/t-linux: Remove.
6912         * config/mn10300/t-mn10300 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
6913         * config/pdp11/t-pdp11: Likewise.
6914         * config/picochip/t-picochip (FPBIT, fp-bit.c): Remove.
6915         * config/rs6000/ppc64-fp.c: Move to ../libgcc/config/rs6000.
6916         * config/rs6000/t-aix43 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
6917         (LIB2FUNCS_EXTRA): Remove $(srcdir)/config/rs6000/ppc64-fp.c.
6918         * config/rs6000/t-aix52: Likewise.
6919         * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Remove
6920         $(srcdir)/config/rs6000/ppc64-fp.c.
6921         * config/rs6000/t-fprules-fpbit: Remove.
6922         * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Remove.
6923         * config/rs6000/t-lynx (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
6924         * config/sh/t-netbsd (FPBIT, DPBIT): Remove.
6925         * config/sh/t-sh (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
6926         * config/sparc/t-elf: Likewise.
6927         * config/sparc/t-leon: Likewise.
6928         * config/sparc/t-leon3: Likewise.
6929         * config/spu/t-spu-elf: Likewise.
6930         (DPBIT_FUNCS): Remove.
6931         * config/stormy16/t-stormy16 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
6932         * config/v850/t-v850: Likewise.
6933         * config.gcc (avr-*-rtems*): Add avr/avr-lib.h to libgcc_tm_file.
6934         (avr-*-*): Likewise.
6935         (h8300-*-rtems*): Set libgcc_tm_file.
6936         (h8300-*-elf*): Likewise.
6937         (powerpc-*-eabisimaltivec*): Remove rs6000/t-fprules-fpbit from
6938         tmake_file.
6939         (powerpc-*-eabisim*): Likewise.
6940         (powerpc-*-elf*): Likewise.
6941         (powerpc-*-eabialtivec*): Likewise.
6942         (powerpc-xilinx-eabi*): Likewise.
6943         (powerpc-*-eabi*): Likewise.
6944         (powerpc-*-rtems*): Likewise.
6945         (powerpc-wrs-vxworks, powerpc-wrs-vxworksae): Likewise.
6946         (powerpcle-*-elf*): Likewise.
6947         (powerpcle-*-eabisim*): Likewise.
6948         (powerpcle-*-eabi*): Likewise.
6949         (rx-*-elf*): Add rx/rx-lib.h to libgcc_tm_file.
6950         (am33_2.0-*-linux*): Remove mn10300/t-linux from tmake_file.
6951         * doc/fragments.texi (Target Fragment, Floating Point Emulation):
6952         Remove.
6953
6954 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6955
6956         * Makefile.in (UNWIND_H): Remove.
6957         (LIB2ADDEH, LIB2ADDEHSTATIC, LIB2ADDEHSHARED): Move to
6958         ../libgcc/Makefile.in.
6959         (LIBUNWIND, SHLIBUNWIND_LINK, SHLIBUNWIND_INSTALL): Likewise.
6960         (LIBUNWINDDEP): Remove.
6961         (libgcc-support): Remove LIB2ADDEH, $(srcdir)/emutls.c dependencies.
6962         (libgcc.mvars): Remove LIB2ADDEH, LIB2ADDEHSTATIC, LIB2ADDEHSHARED,
6963         LIBUNWIND, SHLIBUNWIND_LINK, SHLIBUNWIND_INSTALL.
6964         (stmp-int-hdrs): Remove $(UNWIND_H) dependency.
6965         Don't copy $(UNWIND_H).
6966         * config.gcc (ia64*-*-linux*): Remove with_system_libunwind handling.
6967         * configure.ac (GCC_CHECK_UNWIND_GETIPINFO): Remove.
6968         * aclocal.m4: Regenerate.
6969         * configure: Regenerate.
6970         * emutls.c, unwind-c.c, unwind-compat.c, unwind-compat.h,
6971         unwind-dw2-fde-compat.c, unwind-dw2-fde-glibc.c, unwind-dw2-fde.c,
6972         unwind-dw2-fde.h, unwind-dw2.c, unwind-dw2.h, unwind-generic.h,
6973         unwind-pe.h, unwind-sjlj.c, unwind.inc: Move to ../libgcc.
6974         * unwind-dw2-fde-darwin.c: Move to ../libgcc/config.
6975         * config/arm/libunwind.S, config/arm/pr-support.c,
6976         config/arm/unwind-arm.c, config/arm/unwind-arm.h: Move to
6977         ../libgcc/config/arm.
6978         * config/arm/t-bpabi (UNWIND_H, LIB2ADDEH): Remove.
6979         * config/arm/t-symbian (UNWIND_H, LIB2ADDEH): Remove.
6980         * config/frv/t-frv ($(T)frvbegin$(objext)): Use
6981         $(srcdir)/../libgcc to refer to unwind-dw2-fde.h.
6982         ($(T)frvend$(objext)): Likewise.
6983         * config/ia64/t-glibc (LIB2ADDEH): Remove.
6984         * config/ia64/t-glibc-libunwind: Move to ../libgcc/config/ia64.
6985         * config/ia64/fde-glibc.c, config/ia64/fde-vms.c,
6986         config/ia64/unwind-ia64.c, config/ia64/unwind-ia64.h: Move to
6987         ../libgcc/config/ia64.
6988         * config/ia64/t-hpux (LIB2ADDEH): Remove.
6989         * config/ia64/t-ia64 (LIB2ADDEH): Remove.
6990         * config/ia64/t-vms (LIB2ADDEH): Remove.
6991         * config/ia64/vms.h (UNW_IVMS_MODE,
6992         MD_UNW_COMPATIBLE_PERSONALITY_P): Remove.
6993         * config/picochip/t-picochip (LIB2ADDEH): Remove.
6994         * config/rs6000/aix.h (R_LR, MD_FROB_UPDATE_CONTEXT): Remove.
6995         * config/rs6000/t-darwin (LIB2ADDEH): Remove.
6996         * config/rs6000/darwin-fallback.c: Move to ../libgcc/config/rs6000.
6997         * config/sh/t-sh ($(T)unwind-dw2-Os-4-200.o): Use
6998         $(srcdir)/../libgcc to refer to unwinder sources.
6999         * config/spu/t-spu-elf (LIB2ADDEH): Remove.
7000         * config/t-darwin (LIB2ADDEH): Remove.
7001         * config/t-freebsd (LIB2ADDEH): Remove.
7002         * config/t-libunwind (LIB2ADDEH, LIB2ADDEHSTATIC): Remove.
7003         * config/t-libunwind-elf: Move to ../libgcc/config.
7004         * config/t-linux (LIB2ADDEH): Remove.
7005         * config/t-sol2 (LIB2ADDEH): Remove.
7006         * config/xtensa/t-xtensa (LIB2ADDEH): Remove.
7007         * system.h (MD_FROB_UPDATE_CONTEXT): Poison.
7008
7009 2011-08-05  H.J. Lu  <hongjiu.lu@intel.com>
7010
7011         * config/i386/i386.c (processor_alias_table): Add core-avx-i.
7012
7013         * doc/invoke.texi: Document core-avx-i.
7014
7015 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7016
7017         * tsystem.h (CONST_CAST2, CONST_CAST): Define.
7018
7019 2011-08-05  Ira Rosen  <ira.rosen@linaro.org>
7020
7021         * tree-vect-loop.c (vect_create_epilog_for_reduction): Use the
7022         result of multiple results reduction when extracting the final
7023         value using scalar code.
7024
7025 2011-08-05  Richard Guenther  <rguenther@suse.de>
7026
7027         PR tree-optimization/49984
7028         * tree-vrp.c (extract_range_from_binary_expr_1): Handle BIT_XOR_EXPR.
7029
7030 2011-08-05  Richard Guenther  <rguenther@suse.de>
7031
7032         * tree-vrp.c (zero_nonzero_bits_from_vr): Make sure to always
7033         return true for constant integer ranges.
7034         (extract_range_from_binary_expr_1): Simplify BIT_AND_EXPR and
7035         BIT_IOR_EXPR handling.
7036
7037 2011-08-04  Kai Tietz  <ktietz@redhat.com>
7038
7039         * config/i386/i386.c (setup_incoming_varargs_ms_64): Set
7040         ix86_varargs_gpr_size and ix86_varargs_fpr_size to zero.
7041
7042 2011-08-04  Ira Rosen  <ira.rosen@linaro.org>
7043
7044         * tree-vectorizer.h (struct _stmt_vec_info): Add new field for
7045         pattern def statement, and its access macro.
7046         (NUM_PATTERNS): Set to 5.
7047         * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
7048         pattern def statement.
7049         (vect_transform_loop): Likewise.
7050         * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add new
7051         function vect_recog_over_widening_pattern ().
7052         (vect_operation_fits_smaller_type): New function.
7053         (vect_recog_over_widening_pattern, vect_mark_pattern_stmts):
7054         Likewise.
7055         (vect_pattern_recog_1): Move the code that marks pattern
7056         statements to vect_mark_pattern_stmts (), and call it.  Update
7057         documentation.
7058         * tree-vect-stmts.c (vect_supportable_shift): New function.
7059         (vect_analyze_stmt): Handle pattern def statement.
7060         (new_stmt_vec_info): Initialize pattern def statement.
7061
7062 2011-08-04  Richard Henderson  <rth@redhat.com>
7063
7064         PR target/49964
7065         * config/i386/i386.c (ix86_expand_call): Don't create nested
7066         PARALLELs for TARGET_VZEROUPPER.
7067         (ix86_split_call_vzeroupper): Fix extraction of the original call.
7068         * config/i386/i386.md (*call_rex64_ms_sysv_vzeroupper): Don't
7069         recognize nested PARALLELs.
7070         (*call_pop_vzeroupper, *sibcall_pop_vzeroupper,
7071         *call_value_rex64_ms_sysv_vzeroupper, *call_value_pop_vzeroupper,
7072         *sibcall_value_pop_vzeroupper): Likewise.
7073
7074 2011-08-04  Richard Henderson  <rth@redhat.com>
7075
7076         PR middle-end/49968
7077         * calls.c (expand_call): Use fixup_args_size_notes for
7078         emit_stack_restore.
7079         * expr.c (fixup_args_size_notes): Allow STACK_POINTER_REGNUM sets
7080         in non-standard modes.
7081
7082 2011-08-04  Jakub Jelinek  <jakub@redhat.com>
7083
7084         * gcc.c (self_spec): New variable.
7085         (static_specs): Add self_spec.
7086         (main): Call do_self_spec on "self_spec" specs after reading
7087         user specs files.  Move compare_debug handling right after that.
7088
7089 2011-08-04  Richard Guenther  <rguenther@suse.de>
7090
7091         * tree-vrp.c (vrp_expr_computes_nonnegative): Remove.
7092         (value_range_nonnegative_p): New function.
7093         (ssa_name_nonnegative_p): Use it.
7094         (value_range_constant_singleton): New function.
7095         (op_with_constant_singleton_value_range): Use it.
7096         (extract_range_from_binary_expr_1): New function, split out from ...
7097         (extract_range_from_binary_expr): ... this.  Remove fallback
7098         constant folding done here.
7099
7100 2011-08-04  Richard Guenther  <rguenther@suse.de>
7101
7102         PR tree-optimization/49806
7103         * tree-vrp.c (op_with_boolean_value_range_p): New function.
7104         (simplify_truth_ops_using_ranges): Simplify.  Allow inserting
7105         a new statement for a final conversion to bool.
7106
7107 2011-08-04  Romain Geissler  <romain.geissler@gmail.com>
7108
7109         * gengtype-state.c: Include "bconfig.h" if
7110         GENERATOR_FILE is defined, "config.h" otherwise.
7111         * gengtype.c: Likewise.
7112         * gengtype-lex.l: Likewise.
7113         * gengtype-parse.c: Likewise.
7114         * Makefile.in (gengtype-lex.o-warn): New variable.
7115         (plugin_resourcesdir): Likewise.
7116         (plugin_bindir): Likewise.
7117         (plugin_includedir): Use $(plugin_resourcesdir) as prefix base.
7118         (MOSTLYCLEANFILES): Add gengtype$(exeext).
7119         (native): Depend on gengtype$(exeext) is $enable_plugin
7120         is set to "yes".
7121         (gtype.state): Depend on s-gtype. Use temporary file.
7122         (gengtype-lex.o): New rule.
7123         (gengtype-parse.o): Likewise.
7124         (gengtype-state.o): Likewise.
7125         (gengtype$(exeext)): Likewise.
7126         (install-gengtype): Likewise.
7127         (gengtype.o): Likewise.
7128         (build/gengtype.o): Depend on version.h.
7129         (build/gengtype-state): Depend on double-int.h, version.h,
7130         $(HASHTAB_H), $(OBSTACK_H), $(XREGEX_H) and build/errors.o.
7131         (install-plugin): Depend on install-gengtype.
7132
7133 2011-08-04  Jakub Jelinek  <jakub@redhat.com>
7134
7135         PR middle-end/49905
7136         * tree.h (init_attributes): New prototype.
7137         * attribs.c (init_attributes): No longer static.
7138
7139 2011-08-04  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
7140
7141         * config/arm/arm.c (arm_set_fixed_optab_libfunc): Constify
7142         maybe_suffix.
7143
7144 2011-08-03   David Li  <davidxl@google.com>
7145
7146         * tree-optimize.c (execute_fixup_cfg): Fix up entry
7147         outgoing edge counts after inlining.
7148
7149 2011-08-03   David Li  <davidxl@google.com>
7150
7151         * profile.c (compute_branch_probabilities): Compute
7152         function frequency after profile annotation.
7153
7154 2011-08-04  Alan Modra  <amodra@gmail.com>
7155
7156         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Simplify
7157         use_backchain_to_restore_sp initialisation.
7158         (rs6000_legitimate_offset_address_p): Simplify offset test.
7159
7160 2011-08-03  Richard Henderson  <rth@redhat.com>
7161
7162         * config/spu/spu.md: Use define_c_enum instead of define_constants.
7163         (UNSPECV_BLOCKAGE, UNSPECV_LNOP, UNSPECV_SYNC): Rename from UNSPEC_*.
7164         (UNSPECV_NOP): New.
7165
7166 2011-08-03  Richard Henderson  <rth@redhat.com>
7167
7168         PR target/34888
7169         * config/avr/avr.md: New splitter for REG_ARGS_SIZE 0.
7170
7171 2011-08-03  Jakub Jelinek  <jakub@redhat.com>
7172
7173         PR tree-optimization/49948
7174         * gimple.c (walk_stmt_load_store_addr_ops): Walk CONSTRUCTOR elements.
7175
7176 2011-08-03  Anatoly Sokolov  <aesok@post.ru>
7177
7178         * config/m32c/m32c.c (class_sizes): Remove.
7179         (reduce_class): Change arguments and return type to reg_class_t.
7180         Change type cc var to HARD_REG_SET. Change type best var to
7181         reg_class_t. Change type best_size var to unsigned int. Remove
7182         initialization class_sizes var. Use reg_class_size array instead
7183         of class_sizes. Use reg_class_contents array instead
7184         of class_contents.
7185
7186 2011-08-03  Richard Guenther  <rguenther@suse.de>
7187
7188         PR middle-end/49958
7189         * fold-const.c (fold_binary_loc): Only associate
7190         (+ (+ (* a b) c) (* d e)) as (+ (+ (* a b) (* d e)) c) if
7191         overflow wraps.
7192
7193 2011-08-03  Alan Modra  <amodra@gmail.com>
7194
7195         PR rtl-optimization/49941
7196         * jump.c (mark_jump_label): Comment.
7197         (mark_jump_label_1): Set JUMP_LABEL for return jumps.
7198         * emit-rtl.c (copy_rtx_if_shared_1, copy_insn_1): Leave RETURN shared.
7199         (mark_used_flags): Don't mark RETURN.
7200
7201 2011-08-03  Richard Guenther  <rguenther@suse.de>
7202
7203         PR tree-optimization/49938
7204         * tree-scalar-evolution.c (interpret_loop_phi): Gracefully
7205         deal with a POLYNOMIAL_CHREC.
7206
7207 2011-08-03  Revital Eres  <revital.eres@linaro.org>
7208
7209         * modulo-sched.c (calculate_stage_count,
7210         calculate_must_precede_follow, get_sched_window,
7211         try_scheduling_node_in_cycle, remove_node_from_ps): Add
7212         declaration.
7213         (update_node_sched_params, set_must_precede_follow, optimize_sc):
7214         New functions.
7215         (reset_sched_times): Call update_node_sched_params.
7216         (sms_schedule): Call optimize_sc.
7217         (get_sched_window): Change function arguments.
7218         (sms_schedule_by_order): Update call to get_sched_window.
7219         Call set_must_precede_follow.
7220         (calculate_stage_count): Add function argument.
7221
7222 2011-08-02  Richard Henderson  <rth@redhat.com>
7223
7224         PR target/49864
7225         PR target/49879
7226         * reg-notes.def (REG_ARGS_SIZE): New.
7227         * calls.c (emit_call_1): Emit REG_ARGS_SIZE for call_pop.
7228         (expand_call): Add REG_ARGS_SIZE to emit_stack_restore.
7229         * cfgcleanup.c (old_insns_match_p): Don't allow cross-jumping to
7230         different stack levels.
7231         * combine-stack-adj.c (adjust_frame_related_expr): Remove.
7232         (maybe_move_args_size_note): New.
7233         (combine_stack_adjustments_for_block): Use it.
7234         * combine.c (distribute_notes): Place REG_ARGS_SIZE.
7235         * dwarf2cfi.c (dw_cfi_row_struct): Remove args_size member.
7236         (dw_trace_info): Add beg_true_args_size, end_true_args_size,
7237         beg_delay_args_size, end_delay_args_size, eh_head, args_size_undefined.
7238         (cur_cfa): New.
7239         (queued_args_size): Remove.
7240         (add_cfi_args_size): Assert size is non-negative.
7241         (stack_adjust_offset, dwarf2out_args_size): Remove.
7242         (dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust): Remove.
7243         (notice_args_size, notice_eh_throw): New.
7244         (dwarf2out_frame_debug_def_cfa): Use cur_cfa.
7245         (dwarf2out_frame_debug_adjust_cfa): Likewise.
7246         (dwarf2out_frame_debug_cfa_offset): Likewise.
7247         (dwarf2out_frame_debug_expr): Likewise.  Don't stack_adjust_offset.
7248         (dwarf2out_frame_debug): Don't handle non-frame-related-p insns.
7249         (change_cfi_row): Don't emit args_size.
7250         (maybe_record_trace_start_abnormal): Split out from ...
7251         (maybe_record_trace_start): Here.  Set args_size_undefined.
7252         (create_trace_edges): Update to match.
7253         (scan_trace): Handle REG_ARGS_SIZE.
7254         (connect_traces): Connect args_size between EH insns.
7255         * emit-rtl.c (try_split): Handle REG_ARGS_SIZE.
7256         * explow.c (suppress_reg_args_size): New.
7257         (adjust_stack_1): Split out from ...
7258         (adjust_stack): ... here.
7259         (anti_adjust_stack): Use it.
7260         (allocate_dynamic_stack_space): Suppress REG_ARGS_SIZE.
7261         * expr.c (mem_autoinc_base): New.
7262         (fixup_args_size_notes): New.
7263         (emit_single_push_insn_1): Rename from emit_single_push_insn.
7264         (emit_single_push_insn): New.  Generate REG_ARGS_SIZE.
7265         * recog.c (peep2_attempt): Handle REG_ARGS_SIZE.
7266         * reload1.c (reload_as_needed): Likewise.
7267         * rtl.h (fixup_args_size_notes): Declare.
7268
7269 2011-08-02  Paolo Carlini  <paolo.carlini@oracle.com>
7270
7271         PR bootstrap/49914
7272         * fold-const.c (fold_plusminus_mult_expr): Use abs_hwi instead
7273         of abs.
7274         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
7275         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Likewise.
7276
7277 2011-08-02  Richard Henderson  <rth@redhat.com>
7278
7279         * config/h8300/h8300.c (push, pop): Return the insn.
7280         (h8300_swap_into_er6): Generate correct unwind info.
7281         (h8300_swap_out_of_er6): Likewise.
7282         * dwarf2cfi.c (def_cfa_1): Clear cfa_cfi if we no longer have a
7283         complex cfa expression.
7284         (dwarf2out_frame_debug_def_cfa): Allow (plus (mem) (const_int)) too.
7285
7286 2011-08-02  H.J. Lu  <hongjiu.lu@intel.com>
7287
7288         * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
7289
7290 2011-08-02  Richard Henderson  <rth@redhat.com>
7291
7292         PR target/49878
7293         * config/h8300/h8300.c (h8300_move_ok): New.
7294         * config/h8300/h8300-protos.h: Declare it.
7295         * config/h8300/h8300.md (P): New mode iterator.
7296         (*movqi_h8300, *movqi_h8300hs, movqi): Use h8300_move_ok.
7297         (*movqi_h8sx, *movhi_h8300, *movhi_h8300hs, movhi): Likewise.
7298         (movsi, *movsi_h8300, *movsi_h8300hs): Likewise.
7299         (*pushqi1_h8300): Rename from pushqi1_h8300; use PRE_MODIFY.
7300         (*pushqi1_h8300hs_<P>): Macroize from pushqi1_h8300hs_advanced
7301         and pushqi1_h8300hs_normal; use PRE_MODIFY and
7302         register_no_sp_elim_operand.
7303         (*pushhi1_h8300hs_<P>): Similarly.
7304         (pushqi1, pushhi1, pushhi1_h8300): Remove.
7305         * config/h8300/predicates.md (register_no_sp_elim_operand): New.
7306
7307 2011-08-02  Richard Henderson  <rth@redhat.com>
7308
7309         PR target/49881
7310         * config/avr/avr.md (push<MPUSH>1): Don't constrain the operand.
7311
7312 2011-08-02  Jakub Jelinek  <jakub@redhat.com>
7313
7314         * c-parser.c (enum c_parser_prec): New enum, moved from within
7315         c_parser_binary_expression.
7316         (c_parser_binary_expression): Add PREC argument.  Stop parsing
7317         if operator has lower or equal precedence than PREC.
7318         (c_parser_conditional_expression, c_parser_omp_for_loop): Adjust
7319         callers.
7320         (c_parser_omp_atomic): Handle parsing OpenMP 3.1 atomics.
7321         Adjust c_finish_omp_atomic caller.
7322         (c_parser_omp_taskyield): New function.
7323         (c_parser_pragma): Handle PRAGMA_OMP_TASKYIELD.
7324         (c_parser_omp_clause_name): Handle final and mergeable clauses.
7325         (c_parser_omp_clause_final, c_parser_omp_clause_mergeable): New
7326         functions.
7327         (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_FINAL
7328         and PRAGMA_OMP_CLAUSE_MERGEABLE.
7329         (OMP_TASK_CLAUSE_MASK): Allow final and mergeable clauses.
7330         (c_parser_omp_clause_reduction): Handle min and max.
7331         * c-typeck.c (c_finish_omp_clauses): Don't complain about
7332         const qualified predetermined vars in firstprivate clause.
7333         andle OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
7334         Handle MIN_EXPR and MAX_EXPR.
7335         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_FINAL
7336         and OMP_CLAUSE_MERGEABLE.
7337         (dump_generic_node): Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD
7338         and OMP_ATOMIC_CAPTURE_NEW.
7339         * tree.c (omp_clause_num_ops): Add OMP_CLAUSE_FINAL and
7340         OMP_CLAUSE_MERGEABLE.
7341         (omp_clause_code_name): Likewise.
7342         (walk_tree_1): Handle OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
7343         * tree.h (enum omp_clause_code): Add OMP_CLAUSE_FINAL
7344         and OMP_CLAUSE_MERGEABLE.
7345         (OMP_CLAUSE_FINAL_EXPR): Define.
7346         * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE_FINAL and
7347         OMP_CLAUSE_MERGEABLE.
7348         (expand_task_call): Likewise.
7349         (expand_omp_atomic_load, expand_omp_atomic_store): New functions.
7350         (expand_omp_atomic_fetch_op): Handle cases where old or new
7351         value is needed afterwards.
7352         (expand_omp_atomic): Call expand_omp_atomic_load resp.
7353         expand_omp_atomic_store.
7354         * gimplify.c (gimplify_omp_atomic, gimplify_expr): Handle
7355         OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and OMP_ATOMIC_CAPTURE_NEW.
7356         (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
7357         OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
7358         * tree-nested.c (convert_nonlocal_omp_clauses,
7359         convert_local_omp_clauses): Likewise.
7360         * tree.def (OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD,
7361         OMP_ATOMIC_CAPTURE_NEW): New.
7362         * gimple.h (GF_OMP_ATOMIC_NEED_VALUE): New.
7363         (gimple_omp_atomic_need_value_p, gimple_omp_atomic_set_need_value):
7364         New inlines.
7365         * omp-builtins.def (BUILT_IN_GOMP_TASKYIELD): New builtin.
7366         * doc/generic.texi: Mention OMP_CLAUSE_COLLAPSE,
7367         OMP_CLAUSE_UNTIED, OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
7368
7369 2011-08-02  Kai Tietz  <ktietz@redhat.com>
7370
7371         * gimple.c (canonicalize_cond_expr_cond): Handle cast from
7372         boolean-type.
7373         (ssa_forward_propagate_and_combine): Interprete result of
7374         forward_propagate_comparison.
7375         * gcc/gimple-fold.c (fold_gimple_assign): Add canonicalization for
7376         boolean-typed operands for comparisons.
7377
7378 2011-08-02  Georg-Johann Lay  <avr@gjlay.de>
7379
7380         * config/avr/libgcc.S: Gather related function in the
7381         same input section.
7382         (__mulqihi3, __mulqihi3, __divmodqi4, __divmodhi4, __udivmodsi4,
7383         __divmodsi4): Use XCALL/XJMP instead of rcall/rjmp for external
7384         references.
7385         (__udivmodqi4, __divmodqi4, __udivmodhi4, __divmodhi4,
7386         __udivmodsi4, __divmodsi4, __prologue_saves__,
7387         __epilogue_restores__, _exit, __tablejump2__, __tablejump__,
7388         __do_copy_data, __do_clear_bss, __do_global_ctors,
7389         __do_global_dtors, __tablejump_elpm__): Enclose in DEFUN/ENDF.
7390
7391 2011-08-02  Uros Bizjak  <ubizjak@gmail.com>
7392
7393         PR target/47766
7394         * doc/md.texi (stack_protect_set): The pattern moves ptr_mode value.
7395         (stack_protect_test): The pattern compares ptr_mode value.
7396
7397 2011-08-02  Alan Modra  <amodra@gmail.com>
7398
7399         * config/rs6000/rs6000.c (rs6000_emit_prologue): Add REG_CFA_RESTORE
7400         note for save_LR_around_toc_setup sequence.
7401
7402 2011-08-01  H.J. Lu  <hongjiu.lu@intel.com>
7403
7404         * config/i386/lzcntintrin.h (__lzcnt64): Replace long with long long.
7405
7406 2011-08-01  Sebastian Pop  <sebastian.pop@amd.com>
7407             Joseph Myers  <joseph@codesourcery.com>
7408
7409         * Makefile.in (hwint.o): Depend on DIAGNOSTIC_CORE_H.
7410         * hwint.c: Include diagnostic-core.h.
7411         (abs_hwi): New.
7412         (gcd): Moved here...
7413         (pos_mul_hwi): New.
7414         (mul_hwi): New.
7415         (least_common_multiple): Moved here...
7416         * hwint.h (gcd): ... from here.
7417         (least_common_multiple): ... from here.
7418         (HOST_WIDE_INT_MIN): New.
7419         (HOST_WIDE_INT_MAX): New.
7420         (abs_hwi): Declared.
7421         (gcd): Declared.
7422         (pos_mul_hwi): Declared.
7423         (mul_hwi): Declared.
7424         (least_common_multiple): Declared.
7425         * omega.c (check_pos_mul): Removed.
7426         (check_mul): Removed.
7427         (omega_solve_geq): Use pos_mul_hwi instead of check_pos_mul and
7428         mul_hwi instead of check_mul.
7429
7430 2011-08-01  Richard Henderson  <rth@redhat.com>
7431
7432         PR target/49881
7433         * config/avr/avr.h (PUSH_ROUNDING): New.
7434         * config/avr/avr.md (pushqi1): Rename from *pushqi.
7435         (*pushhi, *pushsi, *pushsf): Remove.
7436         (MPUSH): New mode iterator.
7437         (push<MPUSH>1): New expander.
7438
7439 2011-08-01  Anatoly Sokolov  <aesok@post.ru>
7440
7441         * config/mmix/mmix.h (PREFERRED_RELOAD_CLASS,
7442         PREFERRED_OUTPUT_RELOAD_CLASS): Remove macro.
7443         * config/mmix/mmix-protos.h (mmix_preferred_reload_class,
7444         mmix_preferred_output_reload_class): Remove.
7445         * config/mmix/mmix.c (mmix_preferred_reload_class,
7446         mmix_preferred_output_reload_class): Make static. Change rclass
7447         argument and return type to reg_class_t.
7448         (TARGET_PREFERRED_RELOAD_CLASS,
7449         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
7450
7451 2011-08-01  Joern Rennecke  <joern.rennecke@embecosm.com>
7452
7453         * mode-switching.c (optimize_mode_switching): Fix bug in MODE_AFTER
7454         handling.
7455
7456 2011-08-01  H.J. Lu  <hongjiu.lu@intel.com>
7457
7458         PR target/47766
7459         * config/i386/i386.md (PTR): New.
7460         (stack_protect_set: Check TARGET_LP64 instead of TARGET_64BIT.
7461         (stack_protect_test): Likewise.
7462         (stack_protect_set_<mode>): Replace ":P" with ":PTR".
7463         (stack_tls_protect_set_<mode>): Likewise.
7464         (stack_tls_protect_test_<mode>): Likewise.
7465
7466 2011-08-01  Uros Bizjak  <ubizjak@gmail.com>
7467
7468         PR target/49927
7469         * config/i386/i386.c (ix86_address_subreg_operand): New.
7470         (ix86_decompose_address): Use ix86_address_subreg_operand.
7471         (ix86_legitimate_address_p): Do not assert that subregs satisfy
7472         register_no_elim_operand in DImode.
7473
7474 2011-08-01  Ira Rosen  <ira.rosen@linaro.org>
7475
7476         PR tree-optimization/49926
7477         * tree-vect-loop.c (vect_is_slp_reduction): Check that a statement
7478         in a chain doesn't have uses both inside and outside the loop.
7479
7480 2011-08-01  Georg-Johann Lay  <avr@gjlay.de>
7481
7482         * config/avr/avr.h (mcu_type_s): Add errata_skip field.
7483         * config/avr/avr-devices.c (avr_mcu_types): Use it.
7484         * config/avr/avr-mcus.def (AVR_MCU): Use it.
7485         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use it to builtin
7486         define __AVR_ERRATA_SKIP__ and __AVR_ERRATA_SKIP_JMP_CALL__.
7487         * config/avr/libgcc.S (__mulshisi3, __ffshi2, __fmulsu_exit):
7488         Use __AVR_ERRATA_SKIP_JMP_CALL__ instead of __AVR_HAVE_JMP_CALL__
7489         to detect if XJMP must not be skipped.
7490
7491 2011-08-02  Alan Modra  <amodra@gmail.com>
7492
7493         * config/rs6000/rs6000-protos.h (rs6000_save_toc_in_prologue_p):
7494         Delete.
7495         * config/rs6000/rs6000.c (rs6000_save_toc_in_prologue_p): Make static.
7496         (rs6000_emit_prologue): Don't prematurely return when
7497         TARGET_SINGLE_PIC_BASE.  Don't emit eh_frame info in
7498         save_toc_in_prologue case.
7499         (rs6000_call_indirect_aix): Only disallow save_toc_in_prologue for
7500         calls_alloca.
7501
7502 2011-08-01  Georg-Johann Lay  <avr@gjlay.de>
7503
7504         * config/avr/avr-devices.c: Delete SVN property svn:executable.
7505         * config/avr/predicates.md: Ditto.
7506         * config/avr/driver-avr.c: Ditto.
7507         * config/avr/genopt.sh: Set SVN property svn:executable to *.
7508
7509 2011-08-01  H.J. Lu  <hongjiu.lu@intel.com>
7510
7511         * calls.c (emit_library_call_value_1): Declare size only if
7512         BLOCK_REG_PADDING is defined.
7513
7514 2011-08-01  Kirill Yukhin  <kirill.yukhin@intel.com>
7515
7516         PR target/49547
7517         * config.gcc (i[34567]86-*-*): Replace abmintrin.h with lzcntintrin.h.
7518         (x86_64-*-*): Likewise.
7519         * config/i386/i386.opt (mlzcnt): New.
7520         * config/i386/abmintrin.h: File removed.
7521         (__lzcnt_u16, __lzcnt, __lzcnt_u64): Moved to ...
7522         * config/i386/lzcntintrin.h: ... here.  New file.
7523         (__lzcnt): Rename to ...
7524         (__lzcnt32): ... this.
7525         * config/i386/bmiintrin.h (head): Update copyright year.
7526         (__lzcnt_u16): Removed.
7527         (__lzcnt_u32): Likewise.
7528         (__lzcnt_u64): Likewise.
7529         * config/i386/x86intrin.h: Include lzcntintrin.h when __LZCNT__
7530         is defined, remove abmintrin.h.
7531         * config/i386/cpuid.h (bit_LZCNT): New.
7532         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
7533         LZCNT feature.
7534         * config/i386/i386-c.c (ix86_target_macros_internal): Define
7535         __LZCNT__ if needed.
7536         * config/i386/i386.c (ix86_target_string): New option -mlzcnt.
7537         (ix86_option_override_internal): Handle LZCNT option.
7538         (ix86_valid_target_attribute_inner_p): Likewise.
7539         (struct builtin_description bdesc_args) <IX86_BUILTIN_CLZS>: Update.
7540         * config/i386/i386.h (TARGET_LZCNT): New.
7541         (CLZ_DEFINED_VALUE_AT_ZERO): Update.
7542         * config/i386/i386.md (clz<mode>2): Update insn constraint.
7543         (clz<mode>2_lzcnt): Likewise.
7544         * doc/invoke.texi: Mention -mlzcnt option.
7545         * doc/extend.texi: Likewise.
7546
7547 2011-08-01  Julian Brown  <julian@codesourcery.com>
7548
7549         * configure.ac (fixed-point): Add ARM support.
7550         * configure: Regenerate.
7551         * config/arm/arm.c (arm_fixed_mode_set): New struct.
7552         (arm_set_fixed_optab_libfunc): New.
7553         (arm_set_fixed_conv_libfunc): New.
7554         (arm_init_libfuncs): Initialise fixed-point helper libfuncs with
7555         ARM-specific names.
7556         (aapcs_libcall_value): Return sub-word-size fixed-point libcall
7557         return values in SImode.
7558         (arm_return_in_msb): Return fixed-point types in the msb.
7559         (arm_pad_reg_upwards, arm_pad_arg_upwards): Pad fixed-point types
7560         upwards.
7561         (arm_scalar_mode_supported_p): Support fixed-point modes.
7562         (arm_vector_mode_supported_p): Support vector fixed-point modes.
7563         * config/arm/arm.h (SHORT_FRACT_TYPE_SIZE, FRACT_TYPE_SIZE)
7564         (LONG_FRACT_TYPE_SIZE, LONG_LONG_FRACT_TYPE_SIZE)
7565         (SHORT_ACCUM_TYPE_SIZE, ACCUM_TYPE_SIZE, LONG_ACCUM_TYPE_SIZE)
7566         (LONG_LONG_ACCUM_TYPE_SIZE, MAX_FIXED_MODE_SIZE): Define.
7567         * config/arm/iterators.md (FIXED, ADDSUB, UQADDSUB, QADDSUB, QMUL):
7568         New mode iterators.
7569         (qaddsub_suf): New mode attribute.
7570         * config/arm/arm-modes.def (FRACT, UFRACT, ACCUM, UACCUM): Declare
7571         vector modes.
7572         * config/arm/predicates.md (sat_shift_operator): New predicate.
7573         * config/arm/arm-fixed.md: New.
7574         * config/arm/arm.md: Include arm-fixed.md.
7575         * config/arm/t-arm (MD_INCLUDES): Add arm-fixed.md.
7576
7577 2011-08-01  Julian Brown  <julian@codesourcery.com>
7578
7579         * calls.c (emit_library_call_value_1): Support padding for libcall
7580         arguments and return values.
7581         * config/arm/arm.c (arm_pad_arg_upward): Pad half-float values
7582         downwards in big-endian mode.
7583
7584 2011-08-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7585
7586         PR debug/49887
7587         * config/sol2.c (solaris_code_end): Rename to solaris_file_end.
7588         * config/sol2-protos.h: Likewise.
7589         * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Don't call
7590         solaris_code_end.
7591         * config/i386/sol2.h [!USE_GAS] (TARGET_ASM_FILE_END): Redefine.
7592         * config/sparc/sparc.c (sparc_file_end) [TARGET_SOLARIS]: Call
7593         solaris_file_end.
7594         * config/sparc/sol2.h (TARGET_ASM_CODE_END): Remove.
7595
7596 2011-08-01  Julian Brown  <julian@codesourcery.com>
7597
7598         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Support FIXED_CST.
7599
7600 2011-08-01  Julian Brown  <julian@codesourcery.com>
7601
7602         * final.c (output_addr_const): Print fixed-point constants as
7603         decimal not hex.
7604
7605 2011-08-01  Richard Guenther  <rguenther@suse.de>
7606
7607         * stor-layout.c (initialize_sizetypes): Properly sign-extend
7608         bitsiztype TYPE_MAX_VALUE.
7609
7610 2011-08-01  Julian Brown  <julian@codesourcery.com>
7611
7612         * optabs.c (prepare_cmp_insn): Use correct biasing for fixed-point
7613         comparison helpers.
7614
7615 2011-07-31  Richard Henderson  <rth@redhat.com>
7616
7617         * config/h8300/crti.asm: Add flags to .section directive.
7618         * config/h8300/crtn.asm: Likewise.
7619
7620 2011-07-31  Richard Henderson  <rth@redhat.com>
7621
7622         * stor-layout.c (initialize_sizetypes): Handle unsigned short.
7623         * tree.c (build_common_tree_nodes): Likewise.
7624
7625 2011-07-31  Kaz Kojima  <kkojima@gcc.gnu.org>
7626
7627         PR target/49880
7628         * config/sh/sh.md (udivsi3_i1): Enable for TARGET_DIVIDE_CALL_DIV1.
7629         (divsi3_i1): Likewise.
7630
7631 2011-07-31  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7632
7633         PR tree-optimization/49749
7634         * tree-ssa-reassoc.c (get_rank): New forward declaration.
7635         (PHI_LOOP_BIAS): New macro.
7636         (phi_rank): New function.
7637         (loop_carried_phi): Likewise.
7638         (propagate_rank): Likewise.
7639         (get_rank): Add calls to phi_rank and propagate_rank.
7640
7641 2011-07-31  H.J. Lu  <hongjiu.lu@intel.com>
7642
7643         * config/i386/x86-64.h (SIZE_TYPE): Check TARGET_LP64 instead
7644         of TARGET_64BIT.
7645         (PTRDIFF_TYPE): Likewise.
7646
7647 2011-07-31  Uros Bizjak  <ubizjak@gmail.com>
7648
7649         PR target/49920
7650         * config/i386/i386.md (strset): Do not expand strset_singleop
7651         when %eax or $edi are fixed.
7652         (*strsetdi_rex_1): Disable when %eax or %edi are fixed.
7653         (*strsetsi_1): Ditto.
7654         (*strsethi_1): Ditto.
7655         (*strsetqi_1): Ditto.
7656         (*rep_stosdi_rex64): Disable when %eax, %ecx or %edi are fixed.
7657         (*rep_stossi): Ditto.
7658         (*rep_stosqi): Ditto.
7659         (*strlenqi_1): Ditto.
7660         (cmpstrnsi): Also fail when %ecx is fixed.
7661         (*cmpstrnqi_nz_1): Disable when %ecx, %esi or %edi are fixed.
7662         (*cmpstrnqi_1): Ditto.
7663         (*strmovdi_rex_1): Disable when %esi or %edi are fixed.
7664         (*strmovsi_1): Ditto.
7665         (*strmovhi_1): Ditto.
7666         (*strmovqi_1): Ditto.
7667         (*rep_movdi_rex64): Disable when %ecx, %esi or %edi are fixed.
7668         (*rep_movsi): Ditto.
7669         (*rep_movqi): Ditto.
7670
7671 2011-07-31  Mikael Pettersson  <mikpe@it.uu.se>
7672
7673         PR target/47908
7674         * config/m68k/m68k.c (m68k_override_options_after_change): New function.
7675         Disable instruction scheduling for non-ColdFire targets.
7676         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
7677
7678 2011-07-31  Revital Eres  <revital.eres@linaro.org>
7679
7680         * ddg.c (create_ddg_dep_from_intra_loop_link): Remove the creation
7681         of anti-dep edge from a branch.
7682         (add_cross_iteration_register_deps): Create anti-dep edge from
7683         a branch.
7684
7685 2011-07-31  Revital Eres  <revital.eres@linaro.org>
7686
7687         * modulo-sched.c: Change comment.
7688         (reset_sched_times): Fix print message.
7689         (print_partial_schedule): Add print info.
7690
7691 2011-07-31  Tom de Vries  <tom@codesourcery.com>
7692
7693         PR middle-end/43513
7694         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Use max of
7695         get_object_alignment and TYPE_ALIGN.
7696
7697 2011-07-30  Tom de Vries  <tom@codesourcery.com>
7698
7699         PR middle-end/43513
7700         * tree-ssa-dce.c (ref_may_be_aliased): Add assert.
7701         (propagate_necessity): Handle WITH_SIZE_EXPR call arg.
7702
7703 2011-07-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7704
7705         * config/mips/driver-native.c [__sgi__]: Include <invent.h>,
7706         <sys/sbd.h>.
7707         (cpu_types): New array.
7708         (cputype): New function.
7709         (host_detect_local_cpu): Only define buf, f if !__sgi__.
7710         Use scaninvent instead of /proc/cpuinfo if __sgi__.
7711         * config.host: Also use driver-native.o, mips/x-native on
7712         mips-sgi-irix*.
7713         * config/mips/iris6.h [__mips__] (host_detect_local_cpu): Declare.
7714         (EXTRA_SPEC_FUNCTIONS, MARCH_MTUNE_NATIVE_SPECS): Define.
7715         (DRIVER_SELF_SPECS): Add MARCH_MTUNE_NATIVE_SPECS.
7716
7717 2011-07-29  Jakub Jelinek  <jakub@redhat.com>
7718
7719         PR middle-end/49897
7720         PR middle-end/49898
7721         * omp-low.c (use_pointer_for_field): If disallowing copy-in/out
7722         in nested parallel and outer is a gimple_reg, mark it as addressable
7723         and set its bit in task_shared_vars bitmap too.
7724
7725 2011-07-29  Uros Bizjak  <ubizjak@gmail.com>
7726
7727         * config/i386/predicates.md (tp_or_register_operand): Remove predicate.
7728
7729 2011-07-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7730
7731         * config/alpha/driver-alpha.c (IMPLVER_EV4_FAMILY,
7732         IMPLVER_EV5_FAMILY, IMPLVER_EV6_FAMILY, IMPLVER_EV7_FAMILY): Define.
7733         (AMASK_BWX, AMASK_FIX, AMASK_CIX, AMASK_MVI, AMASK_PRECISE,
7734         AMASK_LOCKPFTCHOK): Define.
7735         (host_detect_local_cpu): Remove buf, f, cpu_names.
7736         Define cpu_types, implver, amask.
7737         Use __builtin_alpha_implver, __builtin_alpha_amask to determine
7738         native CPU.
7739         * config.host: Also use driver-alpha.o, alpha/x-alpha on
7740         alpha*-dec-osf*.
7741         * config/alpha/osf5.h [__alpha__ || __alpha]
7742         (host_detect_local_cpu): Declare.
7743         (EXTRA_SPEC_FUNCTIONS, MCPU_MTUNE_NATIVE_SPECS)
7744         (DRIVER_SELF_SPECS): Define.
7745
7746 2011-07-29  Uros Bizjak  <ubizjak@gmail.com>
7747
7748         PR target/47715
7749         * config/i386/i386.md (*load_tp_x32): New.
7750         (*load_tp_x32_zext): Ditto.
7751         (*add_tp_x32): Ditto.
7752         (*add_tp_x32_zext): Ditto.
7753         (*load_tp_<mode>): Disable for TARGET_X32 targets.
7754         (*add_tp_<mode>): Ditto.
7755         * config/i386/i386.c (get_thread_pointer): Load thread pointer in
7756         ptr_mode and convert to Pmode if needed.
7757
7758 2011-07-29  Georg-Johann Lay  <avr@gjlay.de>
7759
7760         PR target/49687
7761         * config/avr/avr.md (mulsi3, *mulsi3, mulu<mode>si3,
7762         muls<mode>si3, mulohisi3, mulhisi3, umulhisi3, usmulhisi3,
7763         *<any_extend:extend_prefix><any_extend2:extend_prefix>mul<QIHI:mode><QIHI2:mode>si3):
7764         Add X to register footprint: Clobber r26/r27.
7765
7766 2011-07-29  Richard Guenther  <rguenther@suse.de>
7767
7768         * builtins.c (fold_builtin_signbit): Build the comparison
7769         with a proper type.
7770
7771 2011-07-29  Richard Guenther  <rguenther@suse.de>
7772
7773         PR tree-optimization/49893
7774         * tree-predcom.c (suitable_reference_p): Volatile references
7775         are not suitable.
7776
7777 2011-07-29  Georg-Johann Lay  <avr@gjlay.de>
7778
7779         PR target/49313
7780         * config/avr/libgcc.S (__ffshi2): Don't skip 2-word instruction.
7781         (__ctzsi2): Result for 0 may be undefined.
7782         (__ctzhi2): Result for 0 may be undefined.
7783         (__popcounthi2): Don't clobber r30. Use __popcounthi2_tail.
7784         (__popcountsi2): Ditto. And don't clobber r26.
7785         (__popcountdi2): Ditto. And don't clobber r27.
7786         * config/avr/avr.md (UNSPEC_COPYSIGN): New c_enum.
7787         (parityhi2): New expand.
7788         (paritysi2): New expand.
7789         (popcounthi2): New expand.
7790         (popcountsi2): New expand.
7791         (clzhi2): New expand.
7792         (clzsi2): New expand.
7793         (ctzhi2): New expand.
7794         (ctzsi2): New expand.
7795         (ffshi2): New expand.
7796         (ffssi2): New expand.
7797         (copysignsf3): New insn.
7798         (bswapsi2): New expand.
7799         (*parityhi2.libgcc): New insn.
7800         (*parityqihi2.libgcc): New insn.
7801         (*paritysihi2.libgcc): New insn.
7802         (*popcounthi2.libgcc): New insn.
7803         (*popcountsi2.libgcc): New insn.
7804         (*popcountqi2.libgcc): New insn.
7805         (*popcountqihi2.libgcc): New insn-and-split.
7806         (*clzhi2.libgcc): New insn.
7807         (*clzsihi2.libgcc): New insn.
7808         (*ctzhi2.libgcc): New insn.
7809         (*ctzsihi2.libgcc): New insn.
7810         (*ffshi2.libgcc): New insn.
7811         (*ffssihi2.libgcc): New insn.
7812         (*bswapsi2.libgcc): New insn.
7813
7814 2011-07-29  Richard Guenther  <rguenther@suse.de>
7815
7816         * tree-vrp.c (get_value_range): Only set parameter default
7817         definitions to varying, leave others at undefined.
7818         (extract_range_from_binary_expr): Fix undefined handling.
7819         (vrp_visit_phi_node): Handle merged undefined state.
7820
7821 2011-07-29  Wei Guozhi  <carrot@google.com>
7822
7823         PR rtl-optimization/49799
7824         * combine.c (make_compound_operation): Check if the bit field is valid
7825         before change it to bit field extraction.
7826
7827 2011-07-29  Bernd Schmidt  <bernds@codesourcery.com>
7828
7829         PR rtl-optimization/49891
7830         * cfgrtl.c (force_nonfallthru_and_redirect): Set JUMP_LABEL for
7831         newly created returnjumps.
7832
7833 2011-07-28  DJ Delorie  <dj@redhat.com>
7834
7835         * expr.c (expand_expr_addr_expr_1): Detect a user request for a
7836         local frame in a naked function, and produce a suitable error for
7837         that specific case.
7838
7839         * config/m32c/m32c.c (m32c_secondary_reload_class): Allow PSI
7840         registers to be reloaded in HI classes when the target is HI.
7841
7842 2011-07-28  Sebastian Pop  <sebastian.pop@amd.com>
7843
7844         * graphite-clast-to-gimple.c: Replace v1, v2, lb, ub with
7845         bound_one, bound_two.
7846
7847 2011-07-28  Sebastian Pop  <sebastian.pop@amd.com>
7848
7849         PR middle-end/48648
7850         * graphite-clast-to-gimple.c (clast_get_body_of_loop): Handle
7851         CLAST assignments.
7852         (translate_clast): Same.
7853         (translate_clast_assignment): New.
7854
7855 2011-07-28  Sebastian Pop  <sebastian.pop@amd.com>
7856
7857         PR tree-optimization/49876
7858         * sese.c (rename_uses): Do not return false on gloog_error: set
7859         the new_expr to integer_zero_node and continue code generation.
7860         (graphite_copy_stmts_from_block): Remove early exit on gloog_error.
7861
7862 2011-07-28  Jakub Jelinek  <jakub@redhat.com>
7863
7864         PR debug/49846
7865         * var-tracking.c (prepare_call_arguments): For non-MODE_INT stack
7866         arguments also check if they aren't initialized with a MODE_INT
7867         mode of the same size.
7868
7869 2011-07-28  Aldy Hernandez  <aldyh@redhat.com>
7870
7871         * expr.c (get_bit_range): Handle *MEM_REF's.
7872
7873 2011-07-28  Bernd Schmidt  <bernds@codesourcery.com>
7874
7875         * rtlanal.c (tablejump_p): False for returns.
7876         * reorg.c (first_active_target_insn): New static function.
7877         (find_end_label): Set JUMP_LABEL for a new returnjump.
7878         (optimize_skip, get_jump_flags, rare_destination,
7879         mostly_true_jump, get_branch_condition,
7880         steal_delay_list_from_target, own_thread_p,
7881         fill_simple_delay_slots, follow_jumps, fill_slots_from_thread,
7882         fill_eager_delay_slots, relax_delay_slots, make_return_insns,
7883         dbr_schedule): Adjust to handle ret_rtx in JUMP_LABELs.
7884         * jump.c (delete_related_insns): Likewise.
7885         (jump_to_label_p): New function.
7886         (redirect_target): New static function.
7887         (redirect_exp_1): Use it.  Adjust to handle ret_rtx in JUMP_LABELS.
7888         (redirect_jump_1): Assert that the new label is nonnull.
7889         (redirect_jump): Likewise.
7890         (redirect_jump_2): Check for ANY_RETURN_P rather than NULL labels.
7891         * ifcvt.c (find_if_case_1): Take care when redirecting jumps to the
7892         exit block.
7893         (dead_or_predicable): Change NEW_DEST arg to DEST_EDGE.  All callers
7894         changed.  Ensure that the right label is passed to redirect_jump.
7895         * function.c (emit_return_into_block,
7896         thread_prologue_and_epilogue_insns): Ensure new returnjumps have
7897         ret_rtx in their JUMP_LABEL.
7898         * print-rtl.c (print_rtx): Handle ret_rtx in a JUMP_LABEL.
7899         * emit-rtl.c (skip_consecutive_labels): Allow the caller to
7900         pass ret_rtx as label.
7901         * cfglayout.c (fixup_reorder_chain): Use
7902         force_nonfallthru_and_redirect rather than force_nonfallthru.
7903         (duplicate_insn_chain): Copy JUMP_LABELs for returns.
7904         * rtl.h (ANY_RETURN_P): New macro.
7905         (jump_to_label_p): Declare.
7906         * resource.c (find_dead_or_set_registers): Handle ret_rtx in
7907         JUMP_LABELs.
7908         (mark_target_live_regs): Likewise.
7909         * basic-block.h (force_nonfallthru_and_redirect): Declare.
7910         * cfgrtl.c (force_nonfallthru_and_redirect): No longer static.
7911         * config/alpha/alpha.c (alpha_tablejump_addr_vec,
7912         alpha_tablejump_best_label): Remove functions.
7913         * config/alpha/alpha-protos.c (alpha_tablejump_addr_vec,
7914         alpha_tablejump_best_label): Remove declarations.
7915         * config/sh/sh.c (barrier_align, split_branches): Adjust for
7916         ret_rtx in JUMP_LABELs.
7917         * config/arm/arm.c (is_jump_table): Likewise.
7918
7919 2011-07-28  Uros Bizjak  <ubizjak@gmail.com>
7920
7921         * config/i386/predicates.md (pic_32bit_opreand): Do not define as
7922         special predicate.  Remove explicit mode checks.
7923
7924 2011-07-28  Jakub Jelinek  <jakub@redhat.com>
7925
7926         * dwarf2out.c (resolve_addr): For -gdwarf-2 don't optimize
7927         DW_AT_data_member_location containing just DW_OP_plus_uconst.
7928
7929         PR debug/49871
7930         * dwarf2out.c (size_of_die, value_format, output_die): Use
7931         DW_FORM_udata instead of DW_FORM_data[48] for
7932         dw_val_class_unsigned_const DW_AT_data_member_location for DWARF 3.
7933
7934 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
7935
7936         * config/i386/i386.md (*tls_global_dynamic_64): Update
7937         length attribute.
7938
7939 2011-07-28  Uros Bizjak  <ubizjak@gmail.com>
7940
7941         PR target/47715
7942         * config/i386/i386.md (*tls_global_dynamic_64): Remove mode from
7943         tls_symbolic_operand check.  Update code sequence for TARGET_X32.
7944         (tls_global_dynamic_64): Remove mode from tls_symbolic_operand check.
7945         (tls_dynamic_gnu2_64): Ditto.
7946         (*tls_dynamic_gnu2_lea_64): Ditto.
7947         (*tls_dynamic_gnu2_call_64): Ditto.
7948         (*tls_dynamic_gnu2_combine_64): Ditto.
7949
7950 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
7951
7952         * config.gcc: Set need_64bit_hwint to yes for x86 targets.
7953
7954 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
7955
7956         PR target/47364
7957         * config/i386/i386.md (strlen<mode>): Replace SWI48x with P.
7958
7959 2011-07-28  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
7960
7961         * config/arm/vfp.md ("*movdf_vfp"): Handle the VFP constraints
7962         before the core constraints. Adjust attributes.
7963         ("*thumb2_movdf_vfp"): Likewise.
7964
7965 2011-07-28  Kai Tietz  <ktietz@redhat.com>
7966
7967         * tree-vrp.c (simplify_stmt_using_ranges): Remove TRUTH_NOT_EXPR case.
7968         (simplify_truth_ops_using_ranges): Likewise.
7969         (build_assert_expr_for): Likewise.
7970         (build_assert_expr_for_1): Remove TRUTH_NOT_EXPR case
7971         and handle BIT_NOT_EXPR for truth-operation.
7972
7973 2011-07-28  Georg-Johann Lay  <avr@gjlay.de>
7974
7975         PR target/49313
7976         Undo r176835 from trunk
7977         2011-07-27  Georg-Johann Lay
7978
7979 2011-07-28  Georg-Johann Lay  <avr@gjlay.de>
7980
7981         PR target/49687
7982         * config/avr/t-avr (LIB1ASMFUNCS): Remove _xmulhisi3_exit.
7983         Add _muluhisi3, _mulshisi3, _usmulhisi3.
7984         * config/avr/libgcc.S (__mulsi3): Rewrite.
7985         (__mulhisi3): Rewrite.
7986         (__umulhisi3): Rewrite.
7987         (__usmulhisi3): New.
7988         (__muluhisi3): New.
7989         (__mulshisi3): New.
7990         (__mulohisi3): New.
7991         (__mulqi3, __mulqihi3, __umulqihi3, __mulhi3): Use DEFUN/ENDF to
7992         declare.
7993         * config/avr/predicates.md (pseudo_register_operand): Rewrite.
7994         (pseudo_register_or_const_int_operand): New.
7995         (combine_pseudo_register_operand): New.
7996         (u16_operand): New.
7997         (s16_operand): New.
7998         (o16_operand): New.
7999         * config/avr/avr.c (avr_rtx_costs): Handle costs for mult:SI.
8000         * config/avr/avr.md (QIHI, QIHI2): New mode iterators.
8001         (any_extend, any_extend2): New code iterators.
8002         (extend_prefix): New code attribute.
8003         (mulsi3): Rewrite. Turn insn to expander.
8004         (mulhisi3): Ditto.
8005         (umulhisi3): Ditto.
8006         (usmulhisi3): New expander.
8007         (*mulsi3): New insn-and-split.
8008         (mulu<mode>si3): New insn-and-split.
8009         (muls<mode>si3): New insn-and-split.
8010         (mulohisi3): New insn-and-split.
8011         (*uumulqihisi3, *uumulhiqisi3, *uumulhihisi3, *uumulqiqisi3,
8012         *usmulqihisi3, *usmulhiqisi3, *usmulhihisi3, *usmulqiqisi3,
8013         *sumulqihisi3, *sumulhiqisi3, *sumulhihisi3, *sumulqiqisi3,
8014         *ssmulqihisi3, *ssmulhiqisi3, *ssmulhihisi3, *ssmulqiqisi3): New
8015         insn-and-split.
8016         (*mulsi3_call): Rewrite.
8017         (*mulhisi3_call): Rewrite.
8018         (*umulhisi3_call): Rewrite.
8019         (*usmulhisi3_call): New insn.
8020         (*muluhisi3_call): New insn.
8021         (*mulshisi3_call): New insn.
8022         (*mulohisi3_call): New insn.
8023         (extendqihi2): Use combine_pseudo_register_operand as predicate
8024         for operand 1.
8025         (extendqisi2): Ditto.
8026         (zero_extendqihi2): Ditto.
8027         (zero_extendqisi2): Ditto.
8028         (zero_extendhisi2): Ditto.
8029         (extendhisi2): Ditto. Don't early-clobber operand 0.
8030
8031 2011-07-28  Uros Bizjak  <ubizjak@gmail.com>
8032
8033         * config/i386/i386.c (add->lea splitter): Add SWI mode to PLUS RTX.
8034
8035 2011-07-27  Sebastian Pop  <sebastian.pop@amd.com>
8036
8037         PR tree-optimization/49471
8038         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Build an unsigned
8039         iv only when the largest type is unsigned.  Do not call
8040         lang_hooks.types.type_for_size.
8041
8042 2011-07-27  Sebastian Pop  <sebastian.pop@amd.com>
8043
8044         PR middle-end/45450
8045         * graphite-poly.c (apply_poly_transforms): Disable legality check
8046         after an openscop read.
8047
8048 2011-07-27  Sebastian Pop  <sebastian.pop@amd.com>
8049
8050         PR middle-end/47691
8051         * graphite-clast-to-gimple.c (translate_clast_user): Update use of
8052         copy_bb_and_scalar_dependences.
8053         * sese.c (rename_uses): Do not call gcc_assert.  Set gloog_error.
8054         (graphite_copy_stmts_from_block): Update call to rename_uses.
8055         (copy_bb_and_scalar_dependences): Update call to
8056         graphite_copy_stmts_from_block.
8057         * sese.h (copy_bb_and_scalar_dependences): Update declaration.
8058
8059 2011-07-27  Georg-Johann Lay  <avr@gjlay.de>
8060
8061         PR target/49313
8062         * config/avr/libgcc.S (__ffshi2): Don't skip 2-word instruction.
8063         (__ctzsi2): Result for 0 may be undefined.
8064         (__ctzhi2): Result for 0 may be undefined.
8065         (__popcounthi2): Don't clobber r30. Use __popcounthi2_tail.
8066         (__popcountsi2): Ditto. And don't clobber r26.
8067         (__popcountdi2): Ditto. And don't clobber r27.
8068         * config/avr/avr.md (UNSPEC_COPYSIGN): New c_enum.
8069         (parityhi2): New expand.
8070         (paritysi2): New expand.
8071         (popcounthi2): New expand.
8072         (popcountsi2): New expand.
8073         (clzhi2): New expand.
8074         (clzsi2): New expand.
8075         (ctzhi2): New expand.
8076         (ctzsi2): New expand.
8077         (ffshi2): New expand.
8078         (ffssi2): New expand.
8079         (copysignsf3): New insn.
8080         (bswapsi2): New expand.
8081         (*parityhi2.libgcc): New insn.
8082         (*parityqihi2.libgcc): New insn.
8083         (*paritysihi2.libgcc): New insn.
8084         (*popcounthi2.libgcc): New insn.
8085         (*popcountsi2.libgcc): New insn.
8086         (*popcountqi2.libgcc): New insn.
8087         (*popcountqihi2.libgcc): New insn-and-split.
8088         (*clzhi2.libgcc): New insn.
8089         (*clzsihi2.libgcc): New insn.
8090         (*ctzhi2.libgcc): New insn.
8091         (*ctzsihi2.libgcc): New insn.
8092         (*ffshi2.libgcc): New insn.
8093         (*ffssihi2.libgcc): New insn.
8094         (*bswapsi2.libgcc): New insn.
8095
8096 2011-07-27  Uros Bizjak  <ubizjak@gmail.com>
8097
8098         * config/i386/i386.c (ix86_expand_move): Do not explicitly check
8099         the mode of symbolic_opreand RTXes.
8100
8101 2011-07-27  Uros Bizjak  <ubizjak@gmail.com>
8102
8103         * config/i386/predicates.md (x86_64_movabs_operand): Return false
8104         for pic_32bit_operand RTXes.
8105         * config/i386/i386.c (ix86_expand_move): Check x86_64_movabs_operand
8106         in DImode.
8107
8108 2011-07-27  Kai Tietz  <ktietz@redhat.com>
8109
8110         * config/i386/i386.c (ix86_option_override_internal): Allow -mabi
8111         for 32-bit, too.
8112         (ix86_handle_abi_attribute): Allow function attributes
8113         ms_abi/sysv_abi in 32-bit mode, too.
8114         * doc/extend.texi: Adjust attribute documentation.
8115
8116         * gimple-fold.c (or_comparisons_1): Remove TRUTH_AND/OR
8117         expression handling.
8118         (and_var_with_comparison_1): Likewise.
8119
8120 2011-07-27  Aldy Hernandez  <aldyh@redhat.com>
8121
8122         * params.h (ALLOW_STORE_DATA_RACES): New.
8123         * params.def (PARAM_ALLOW_STORE_DATA_RACES): New.
8124         * Makefile.in (expr.o): Depend on PARAMS_H.
8125         * machmode.h (get_best_mode): Add argument.
8126         * fold-const.c (optimize_bit_field_compare): Add argument to
8127         get_best_mode.
8128         (fold_truthop): Same.
8129         * ifcvt.c (noce_emit_move_insn): Add argument to store_bit_field.
8130         * expr.c (emit_group_store): Same.
8131         (copy_blkmode_from_reg): Same.
8132         (write_complex_part): Same.
8133         (optimize_bitfield_assignment_op): Add argument.
8134         Add argument to get_best_mode.
8135         (get_bit_range): New.
8136         (expand_assignment): Calculate maxbits and pass it down accordingly.
8137         (store_field): New argument.
8138         (expand_expr_real_2): New argument to store_field.  Include params.h.
8139         * expr.h (store_bit_field): New argument.
8140         * stor-layout.c (get_best_mode): Restrict mode expansion by taking
8141         into account maxbits.
8142         * calls.c (store_unaligned_arguments_into_pseudos): New argument
8143         to store_bit_field.
8144         * expmed.c (store_bit_field_1): New argument.  Use it.
8145         (store_bit_field): Same.
8146         (store_fixed_bit_field): Same.
8147         (store_split_bit_field): Same.
8148         (extract_bit_field_1): Pass new argument to get_best_mode.
8149         (extract_bit_field): Same.
8150         * stmt.c (store_bit_field): Pass new argument to store_bit_field.
8151         * doc/invoke.texi: Document parameter allow-store-data-races.
8152
8153 2011-07-27  Jakub Jelinek  <jakub@redhat.com>
8154
8155         * dwarf2out.c (gen_producer_string): Ignore also -fverbose-asm option.
8156
8157 2011-07-27  Kai Tietz  <ktietz@redhat.com>
8158
8159         * tree-vrp.c (extract_range_from_binary_expr): Remove
8160         TRUTH-binary cases and add new bitwise-cases.
8161         (extract_range_from_assignment): Likewise.
8162         (register_edge_assert_for_1): Likeiwise.
8163         (register_edge_assert_for): Likewise.
8164         (simplify_truth_ops_using_ranges): Likewise.
8165         (simplify_stmt_using_ranges): Likewise.
8166
8167 2011-07-26  H.J. Lu  <hongjiu.lu@intel.com>
8168
8169         PR target/47372
8170         * config/i386/i386.c (ix86_delegitimize_address): Call
8171         simplify_gen_subreg for PIC with mode of x only if modes of
8172         x and orig_x are different.
8173
8174 2011-07-26  Jakub Jelinek  <jakub@redhat.com>
8175
8176         * dwarf2out.c (output_macinfo_op): Ensure fd->filename points
8177         to GC allocated copy of the string.
8178         (dwarf2out_finish): Emit .debug_macinfo or .debug_macro sections
8179         before .debug_line, not after it.
8180
8181 2011-07-26  Sebastian Pop  <sebastian.pop@amd.com>
8182
8183         PR middle-end/47046
8184         * tree-chrec.h (evolution_function_is_affine_p): Recursively call
8185         evolution_function_is_affine_p on CHREC_RIGHT.
8186
8187 2011-07-26  Sebastian Pop  <sebastian.pop@amd.com>
8188
8189         * tree-data-ref.c (max_stmt_executions_tree): Do not call
8190         lang_hooks.types.type_for_size.
8191
8192 2011-07-26  Sebastian Pop  <sebastian.pop@amd.com>
8193
8194         PR middle-end/47653
8195         * graphite-scop-detection.c (graphite_can_represent_loop): Discard
8196         loops using wrapping semantics.
8197
8198 2011-07-26  Sebastian Pop  <sebastian.pop@amd.com>
8199
8200         PR middle-end/48805
8201         * tree-scalar-evolution.c (instantiate_scev_r): Return
8202         chrec_dont_know for ADDR_EXPR.
8203
8204 2011-07-26  Uros Bizjak  <ubizjak@gmail.com>
8205             H.J. Lu  <hongjiu.lu@intel.com>
8206
8207         PR target/47369
8208         PR target/49853
8209         * config/i386/i386.c (ix86_expand_move): Call convert_to_mode
8210         if legitimize_tls_address returned operand in wrong mode. Allow
8211         SImode and DImode symbolic operand for PIC.  Call convert_to_mode
8212         if legitimize_pic_address returned operand in wrong mode.
8213
8214 2011-07-26  Martin Jambor  <mjambor@suse.cz>
8215
8216         * tree-sra.c (tree_non_mode_aligned_mem_p): Strip conversions and
8217         return false for invariants.
8218
8219 2011-07-26  Uros Bizjak  <ubizjak@gmail.com>
8220
8221         * config/i386/i386.md (add->lea splitter): Implement using SWI
8222         mode iterator.  Change operand 2 predicate to <nonmemory_operand>.
8223         (add->lea zext splitter): Change operand 2 predicate to
8224         x86_64_nonmemory_operand.
8225
8226 2011-07-26  Richard Guenther  <rguenther@suse.de>
8227
8228         * predict.c (maybe_hot_frequency_p): Make sure a zero entry-block
8229         frequency makes everything hot.
8230
8231 2011-07-26  Richard Guenther  <rguenther@suse.de>
8232
8233         PR tree-optimization/49840
8234         * tree-vrp.c (range_fits_type_p): Properly handle full
8235         double-int precision.
8236
8237 2011-07-26  Martin Jambor  <mjambor@suse.cz>
8238
8239         PR bootstrap/49786
8240         * ipa-cp.c (update_profiling_info): Avoid overflow when updating
8241         counts.
8242         (update_specialized_profile): Likewise.
8243
8244 2011-07-26  Uros Bizjak  <ubizjak@gmail.com>
8245             H.J. Lu  <hongjiu.lu@intel.com>
8246
8247         PR target/47381
8248         PR target/49832
8249         PR target/49833
8250         * config/i386/i386.md (i): Change SImode attribute to "e".
8251         (g): Change SImode attribute to "rme".
8252         (di): Change SImode attribute to "nF".
8253         (general_operand): Change SImode attribute to x86_64_general_operand.
8254         (general_szext_operand): Change SImode attribute to
8255         x86_64_szext_general_operand.
8256         (immediate_operand): Change SImode attribute to
8257         x86_64_immediate_operand.
8258         (nonmemory_operand): Change SImode attribute to
8259         x86_64_nonmemory_operand.
8260         (*movdi_internal_rex64): Remove mode from pic_32bit_operand check.
8261         (*movsi_internal): Ditto.  Use "e" constraint in alternative 2.
8262         (*lea_1): Use SWI48 mode iterator.
8263         (*lea_1_zext): New insn pattern.
8264         (testsi_ccno_1): Use x86_64_nonmemory_operand predicate for operand 2.
8265         (*bt<mode>): Ditto.
8266         (*add<mode>1): Use x86_64_general_operand predicate for operand 2.
8267         Update operand constraints.
8268         (addsi_1_zext): Ditto.
8269         (*add<mode>2): Ditto.
8270         (*addsi_3_zext): Ditto.
8271         (*subsi_1_zext): Ditto.
8272         (*subsi_2_zext): Ditto.
8273         (*subsi_3_zext): Ditto.
8274         (*addsi3_carry_zext): Ditto.
8275         (*<plusminus_insn>si3_zext_cc_overflow): Ditto.
8276         (*mulsi3_1_zext): Ditto.
8277         (*andsi_1): Ditto.
8278         (*andsi_1_zext): Ditto.
8279         (*andsi_2_zext): Ditto.
8280         (*<any_or:code>si_1_zext): Ditto.
8281         (*<any_or:code>si_2_zext): Ditto.
8282         (*test<mode>_1): Use <general_operand> predicate for operand 1.
8283         (*and<mode>_2): Ditto.
8284         (mov<mode>cc): Use  <general_operand> predicate for operands 1 and 2.
8285         (add->lea splitter): Check operand modes in insn constraint.  Extend
8286         operands less than SImode wide to SImode.
8287         (add->lea zext splitter): Do not extend input operands to DImode.
8288         (*lea_general_1): Handle only QImode and HImode operands.
8289         (*lea_general_2): Ditto.
8290         (*lea_general_3): Ditto.
8291         (*lea_general_1_zext): Remove.
8292         (*lea_general_2_zext): Ditto.
8293         (*lea_general_3_zext): Ditto.
8294         (*lea_general_4): Check operand modes in insn constraint.  Extend
8295         operands less than SImode wide to SImode.
8296         (ashift->lea splitter): Ditto.
8297         * config/i386/i386.c (ix86_print_operand_address): Print address
8298         registers with 'q' modifier on 64bit targets.
8299         * config/i386/predicates.md (pic_32bit_opreand): Define as special
8300         predicate.  Reject non-SI and non-DI modes.
8301
8302 2011-07-25  Andrew Pinski  <apinski@cavium.com>
8303
8304         PR tree-opt/49671
8305         * tree-inline.c (remap_gimple_op_r): Copy TREE_THIS_VOLATILE and
8306         TREE_THIS_NOTRAP into the inner most MEM_REF.
8307         Always copy TREE_THIS_VOLATILE.
8308         * tree-sra.c (ptr_parm_has_direct_uses): Check that the lhs, rhs and
8309         arguments are not volatile references.
8310
8311 2011-07-25  Richard Henderson  <rth@redhat.com>
8312
8313         * insn-notes.def (NOTE_INSN_CFA_RESTORE_STATE): Remove.
8314         * final.c (final_scan_insn): Don't test for it.
8315         (rest_of_clean_state): Likewise.
8316
8317 2011-07-25  Richard Henderson  <rth@redhat.com>
8318
8319         PR debug/49841
8320         * config/rs6000/rs6000.c (rs6000_frame_related): Return the insn.
8321         (emit_frame_save): Likewise.
8322         (rs6000_emit_prologue): Move the FRAME_RELATED_EXPR from the save
8323         insn onto a dummy blockage insn after the join label.
8324
8325 2011-07-25  Richard Henderson  <rth@redhat.com>
8326
8327         * dwarf2cfi.c (dw_trace_info): Add ID member.
8328         (get_trace_index): Remove.  Change users to use ID member.
8329         (before_next_cfi_note): New.
8330         (connect_traces): Remove unreachable traces before the main loop.
8331         Look across one trace and generate remember/restore_state if needed.
8332
8333 2011-07-25  Richard Henderson  <rth@redhat.com>
8334
8335         * dwarf2cfi.c (dump_cfi_row, debug_cfi_row): New.
8336
8337 2011-07-25  Joern Rennecke  <joern.rennecke@embecosm.com>
8338
8339         * genattr.c (write_upcase, gen_attr <enum definition writing>):
8340         Move to ...
8341         * genattr-common.c ... here.
8342         (main): Call gen_attr.
8343         * optc-gen.awk: Make generated program include insn-attr-common.h .
8344         * Makefile.in (oprions.o): Depend on insn-attr-common.h
8345
8346 2011-07-25  Anatoly Sokolov  <aesok@post.ru>
8347
8348         * config/m32c/m32c.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
8349         PRINT_OPERAND_PUNCT_VALID_P): Remove macro.
8350         * config/m32c/m32c-protos.h (m32c_print_operand_punct_valid_p,
8351         m32c_print_operand, m32c_print_operand_address): Remove.
8352         * config/m32c/m32c.c (m32c_print_operand_punct_valid_p): Make static.
8353         Change return type to bool. Change argument type to bool.
8354         (m32c_print_operand, m32c_print_operand_address): Make static.
8355         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS,
8356         TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
8357
8358 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8359
8360         * doc/sourcebuild.texi (Effective-Target Keywords, Environment
8361         attributes): Document mmap.
8362
8363 2011-07-25  Anatoly Sokolov  <aesok@post.ru>
8364
8365         * config/mmix/mmix.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
8366         PRINT_OPERAND_PUNCT_VALID_P): Remove macro.
8367         * config/mmix/mmix-protos.h (mmix_print_operand_punct_valid_p,
8368         mmix_print_operand, mmix_print_operand_address): Remove.
8369         * config/mmix/mmix.c (mmix_print_operand_punct_valid_p): Make static.
8370         Change return type to bool. Change argument type to bool.
8371         (mmix_print_operand, mmix_print_operand_address): Make static.
8372         (mmix_intval, mmix_output_condition): Change 'x' argument type
8373         to const_rtx.
8374         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS,
8375         TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
8376
8377 2011-07-25  Georg-Johann Lay  <avr@gjlay.de>
8378
8379         PR target/39386
8380         * config/avr/avr.c (out_shift_with_cnt): Use tmp_reg as
8381         shift counter for x << x and x >> x shifts.
8382
8383 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8384
8385         PR target/47124
8386         * config.gcc: Reject *-*-solaris2 configuration.
8387
8388 2011-07-25  Richard Sandiford  <richard.sandiford@linaro.org>
8389
8390         PR tree-optimization/49809
8391         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Use
8392         gimple_get_lhs instead of gimple_assign_lhs.
8393
8394 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8395
8396         * system.h [__cplusplus]: Wrap C function declarations in extern "C".
8397
8398 2011-07-25  Richard Guenther  <rguenther@suse.de>
8399
8400         PR tree-optimization/49822
8401         * tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify
8402         more.  Make sure to preserve stmts with side-effects.  Properly
8403         handle virtual defs, follow a longer def chain.
8404
8405 2011-07-22  Romain Geissler  <romain.geissler@gmail.com>
8406
8407         PR plugins/45348
8408         PR plugins/48425
8409         PR plugins/46577
8410         * Makefile.in: Do not flatten c-family directory when installing
8411         plugin headers.
8412
8413 2011-07-25  Eric Botcazou  <ebotcazou@adacore.com>
8414
8415         * ipa-inline.c (can_inline_edge_p): Look into DECL_STRUCT_FUNCTION of
8416         original nodes if we are dealing with virtual clones.
8417
8418 2011-07-25  Bernd Schmidt  <bernds@codesourcery.com>
8419
8420         * common/config/c6x/c6x-common.c: New file.
8421
8422 2011-07-25  Roman Zhuykov  <zhroma@ispras.ru>
8423
8424         * tree-flow.h (tree_ssa_loop_version): Remove unused declaration.
8425
8426 2011-07-25  Richard Guenther  <rguenther@suse.de>
8427
8428         PR tree-optimization/49715
8429         * tree-vrp.c: Include expr.h and optabs.h.
8430         (range_fits_type_): New function.
8431         (simplify_float_conversion_using_ranges): Likewise.
8432         (simplify_stmt_using_ranges): Call it.
8433         * Makefile.in (tree-vrp.o): Add $(EXPR_H) and $(OPTABS_H) dependencies.
8434         * optabs.c (can_float_p): Export.
8435         * optabs.h (can_float_p): Declare.
8436
8437 2011-07-25  Richard Guenther  <rguenther@suse.de>
8438
8439         * tree-vrp.c (num_vr_values, values_propagated): New global vars.
8440         (get_value_range): For out-of-range SSA names or names created
8441         after propagation return a read-only varying range.
8442         (dump_all_value_ranges): Adjust.
8443         (vrp_initialize): Likewise.
8444         (vrp_finalize): Likewise.
8445
8446 2011-07-24  Richard Henderson  <rth@redhat.com>
8447
8448         PR debug/49831
8449         * dwarf2cfi.c (connect_traces): Allow unvisited traces.  Skip
8450         them entirely.
8451
8452 2011-07-24  Richard Henderson  <rth@redhat.com>
8453
8454         PR debug/49825
8455         * dwarf2cfi.c (dwarf2out_stack_adjust): Move A_O_A test earlier.
8456         (dwarf2out_notice_stack_adjust): Use args_size from call_insn.
8457
8458 2011-07-24  Richard Henderson  <rth@redhat.com>
8459
8460         PR debug/49827
8461         * dwarf2cfi.c (create_trace_edges): Handle sequences properly.
8462
8463 2011-07-24  Richard Henderson  <rth@redhat.com>
8464
8465         * dwarf2cfi.c (maybe_record_trace_start): Add abnormal parameter.
8466         Zero args_size for abnormal edges.  Adjust all callers.
8467
8468 2011-07-24  Richard Henderson  <rth@redhat.com>
8469
8470         PR debug/49825
8471         * dwarf2cfi.c (cfi_row_equal_p): Don't compare args_size.
8472
8473 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
8474
8475         PR bootstrap/49835
8476         * collect2.c (demangle_flag): Removed.
8477
8478 2011-07-24  Sandra Loosemore  <sandra@codesourcery.com>
8479
8480         * configure.ac (demangler_in_ld): Default to yes.
8481         * configure: Regenerated.
8482         * collect2.c (main): When HAVE_LD_DEMANGLE is defined, don't
8483         mess with COLLECT_NO_DEMANGLE, and just pass --demangle and
8484         --no-demangle options straight through to ld.  When
8485         HAVE_LD_DEMANGLE is not defined, set COLLECT_NO_DEMANGLE in a
8486         way that has the intended effect on Windows.
8487
8488 2011-07-23  Richard Henderson  <rth@redhat.com>
8489
8490         * dwarf2cfi.c: Include basic-block.h.
8491         (dw_label_info): Remove.
8492         (trace_work_list, trace_index): New.
8493         (remember_row, emit_cfa_remember): Remove.
8494         (dw_trace_info_hash, dw_trace_info_eq): New.
8495         (get_trace_index, get_trace_info): New.
8496         (save_point_p): New.
8497         (free_cfi_row): Remove.
8498         (add_cfi): Do not emit DW_CFA_remember_state.
8499         (cfa_row_equal_p): New.
8500         (barrier_args_size): Remove.
8501         (compute_barrier_args_size_1, compute_barrier_args_size): Remove.
8502         (dwarf2out_notice_stack_adjust): Don't compute_barrier_args_size.
8503         (maybe_record_trace_start, create_trace_edges, scan_trace): New.
8504         (dwarf2out_cfi_begin_epilogue): Remove.
8505         (dwarf2out_frame_debug_restore_state): Remove.
8506         (connect_traces, create_pseudo_cfg): New.
8507         (create_cfi_notes, execute_dwarf2_frame): Rewrite using traces.
8508         * Makefile.in (dwarf2cfi.o): Update.
8509
8510 2011-07-23  Richard Henderson  <rth@redhat.com>
8511
8512         * dwarf2cfi.c (dw_trace_info): New.
8513         (dw_label_info): New.
8514         (cie_return_save): New.
8515         (cur_trace): New.
8516         (queued_args_size): Rename from args_size.  Update all users.
8517         (cfa_store, cfa_temp, regs_saved_in_regs): Remove.
8518         (def_cfa_1): Use cur_trace instead of cfa_*.
8519         (dwarf2out_stack_adjust, record_reg_saved_in_reg): Likewise.
8520         (clobbers_queued_reg_save, reg_saved_in): Likewise.
8521         (dwarf2out_frame_debug_expr): Likewise.
8522         (create_cie_data): Split out from ...
8523         (execute_dwarf2_frame): ... here.  Initialize cur_trace.
8524
8525 2011-07-23  Richard Henderson  <rth@redhat.com>
8526
8527         * dwarf2cfi.c (regs_saved_in_regs): Allocate from heap, not gc.
8528         Update all users to match.
8529         (execute_dwarf2_frame): Free reg_saved_in_data.
8530
8531 2011-07-23  Richard Henderson  <rth@redhat.com>
8532
8533         * dwarf2cfi.c (queued_reg_save): Reorder for packing.  Don't GTY.
8534         (queued_reg_saves): Don't GTY.  Change to a VEC.
8535         (queue_reg_save): Update to match.
8536         (dwarf2out_flush_queued_reg_saves): Likewise.
8537         (clobbers_queued_reg_save): Likewise.
8538         (reg_saved_in): Likewise.
8539         (execute_dwarf2_frame): Free queued_reg_saves.
8540
8541 2011-07-23  Richard Henderson  <rth@redhat.com>
8542
8543         * dwarf2cfi.c (dw_cfi_row_ref): Remove.  Update all users.
8544
8545 2011-07-23  Richard Henderson  <rth@redhat.com>
8546
8547         * dwarf2cfi.c (add_cfi_args_size): Split out from...
8548         (dwarf2out_args_size): ... here.
8549         (add_cfi_restore): Split out from ...
8550         (dwarf2out_frame_debug_cfa_restore): ... here.
8551         (def_cfa_0): Split out from ...
8552         (def_cfa_1): ... here.
8553         (cfi_oprnd_equal_p, cfi_equal_p): New.
8554         (change_cfi_row): New.
8555         (add_cfis_to_fde): Set fde->dw_fde_switch_cfi_index.
8556         (create_cfi_notes): Use change_cfi_row at SWITCH_TEXT note.
8557         (output_cfis): Remove.
8558         * dwarf2out.c (output_fde): Simplify output_cfi loop.
8559         (dwarf2out_switch_text_section): Don't call output_cfis.
8560         (dw_val_equal_p, loc_descr_equal_p_1, loc_descr_equal_p): New.
8561         * dwarf2out.h: Update decls.
8562         (enum dw_val_class): Add dw_val_class_none.
8563
8564 2011-07-23  Richard Henderson  <rth@redhat.com>
8565
8566         * dwarf2cfi.c (update_row_reg_save): New.
8567         (dwarf2out_frame_debug_cfa_expression): Use it.
8568         (dwarf2out_frame_debug_cfa_restore): Likewise.
8569         (reg_save): Likewise.  Do not emit DW_CFA_same_value.
8570
8571 2011-07-23  Richard Henderson  <rth@redhat.com>
8572
8573         * dwarf2cfi.c (add_cfi_insn): Rename from cfi_insn.  Update all users.
8574
8575 2011-07-23  Richard Henderson  <rth@redhat.com>
8576
8577         * dwarf2cfi.c (dw_cfi_row, dw_cfi_row_ref): New.
8578         (cie_cfi_row): New.
8579         (new_cfi_row, copy_cfi_row, free_cfi_row): New.
8580         (cfa, old_cfa, cfa_remember, old_cfa_remember, old_args_size): Remove.
8581         (cur_row, remember_row): New.
8582         (def_cfa_1): Use cur_row instead of the old_* variables.
8583         (dwarf2out_frame_debug_restore_state): Similarly.
8584         (dwarf2out_args_size, dwarf2out_notice_stack_adjust): Likewise.
8585         (dwarf2out_frame_debug_def_cfa): Use a local variable instead of cfa.
8586         (dwarf2out_frame_debug_adjust_cfa): Likewise.
8587         (dwarf2out_frame_debug_cfa_offset): Likewise.
8588         (dwarf2out_frame_debug_expr): Likewise.
8589         (execute_dwarf2_frame): Set up cur_row.
8590         * dwarf2out.h (struct cfa_loc): Mark for GTY.
8591
8592 2011-07-23  Richard Henderson  <rth@redhat.com>
8593
8594         * basic-block.h (EDGE_PRESERVE): New.
8595         (EDGE_ALL_FLAGS, EDGE_COMPLEX): Include it.
8596         * bb-reorder.c: Include except.h.
8597         (fix_up_crossing_landing_pad): New.
8598         (find_rarely_executed_basic_blocks_and_crossing_edges): Place
8599         landing pads in the right partition.  Duplicate as necessary.
8600         (partition_hot_cold_basic_blocks): Fix up DF info after
8601         duplicating landing pads.
8602         * cfg.c (dump_edge_info): Add crossing and preserve to bitnames.
8603         * cfgrtl.c (rtl_verify_flow_info_1): Validate that EDGE_CROSSING
8604         is set properly.  Validate that EH edges are not CROSSING.
8605         * except.c (expand_dw2_landing_pad_for_region): Split out from ...
8606         (dw2_build_landing_pads): ... here.
8607         (convert_to_eh_region_ranges): Remove code to fixup crossing
8608         landing pads.
8609         * except.h (expand_dw2_landing_pad_for_region): Declare.
8610         * tree-cfg.c (gimple_can_merge_blocks_p): Don't merge PRESERVE edges.
8611
8612 2011-07-23  Richard Earnshaw  <rearnsha@arm.com>
8613
8614         PR target/49816
8615         * arm.c (aapcs_vfp_allocate_return_reg): Return NULL on failure.
8616
8617 2011-07-22  Jason Merrill  <jason@redhat.com>
8618
8619         * doc/invoke.texi (C++ Dialect Options): Document -Wno-narrowing.
8620
8621 2011-07-22  Richard Henderson  <rth@redhat.com>
8622
8623         * bb-reorder.c (gate_handle_partition_blocks): Honor optimize.
8624
8625 2011-07-22  Richard Henderson  <rth@redhat.com>
8626
8627         * jump.c (maybe_propagate_label_ref): Split out of...
8628         (mark_all_labels): ... here.  Do not attempt label_ref
8629         propagation while in cfglayout mode.
8630
8631 2011-07-22  Jakub Jelinek  <jakub@redhat.com>
8632
8633         * dwarf2out.c (struct macinfo_struct): Change code to unsigned char.
8634         (DEBUG_MACRO_SECTION, DEBUG_MACRO_SECTION_LABEL): Define.
8635         (dwarf_attr_name): Handle DW_AT_GNU_macros.
8636         (dwarf2out_define): If the vector is empty and
8637         lineno is 0, emit a dummy entry first.
8638         (dwarf2out_undef): Likewise.  Remove redundant semicolon.
8639         (htab_macinfo_hash, htab_macinfo_eq, output_macinfo_op,
8640         optimize_macinfo_range): New functions.
8641         (output_macinfo): Use them.  If !dwarf_strict and .debug_str is
8642         mergeable, optimize longer strings using
8643         DW_MACRO_GNU_{define,undef}_indirect and if HAVE_COMDAT_GROUP,
8644         optimize longer sequences of define/undef ops from headers
8645         using DW_MACRO_GNU_transparent_include.  For !dwarf_strict
8646         emit a section headers.
8647         (dwarf2out_init): For !dwarf_strict set debug_macinfo_section
8648         and macinfo_section_label to DEBUG_MACRO_SECTION
8649         resp. DEBUG_MACRO_SECTION_LABEL.
8650         (dwarf2out_finish): For !dwarf_strict emit DW_AT_GNU_macros
8651         instead of DW_AT_macro_info.
8652
8653         PR other/32998
8654         * common.opt (grecord-gcc-switches, gno-record-gcc-switches): New
8655         options.
8656         * dwarf2out.c: Include opts.h.
8657         (dchar_p): New typedef.  Define heap VEC for it.
8658         (producer_string): New variable.
8659         (gen_producer_string): New function.
8660         (gen_compile_unit_die): Use it.
8661         (dwarf2out_finish): Fix up comp_unit_die () DW_AT_producer if needed.
8662         * Makefile.in (dwarf2out.o): Depend on $(OPTS_H).
8663         * doc/invoke.texi: Document -grecord-gcc-switches and
8664         -gno-record-gcc-switches, add a -grecord-gcc-switches reference
8665         to -frecord-gcc-switches description.
8666
8667 2011-07-22  Jason Merrill  <jason@redhat.com>
8668
8669         PR c++/30112
8670         * c-decl.c (c_linkage_bindings): Define.
8671
8672 2011-07-22  Eric Botcazou  <ebotcazou@adacore.com>
8673
8674         PR debug/49815
8675         * var-tracking.c (vt_finalize): Always free windowed_parm_regs.
8676
8677 2011-07-22  H.J. Lu  <hongjiu.lu@intel.com>
8678
8679         * config/i386/i386.c (ix86_option_override_internal): Disallow
8680         MS ABI in x32 mode.
8681         (ix86_init_builtins): Call ix86_init_builtins_va_builtins_abi
8682         only for TARGET_LP64.
8683         (ix86_handle_abi_attribute): Check TARGET_LP64 instead of TARGET_64BIT.
8684
8685 2011-07-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
8686
8687         * config/rs6000/rs6000.c (rs6000_xcoff_strip_dollar): Rewrite to
8688         avoid warnings when GCC is built with a C++ compiler.
8689
8690 2011-07-22  Martin Jambor  <mjambor@suse.cz>
8691
8692         PR lto/49796
8693         * cgraphunit.c (verify_edge_corresponds_to_fndecl): Return false
8694         if decl node is in another partition, call cgraph_get_node only once.
8695
8696 2011-07-22  Uros Bizjak  <ubizjak@gmail.com>
8697
8698         * config.gcc (x86_64-*-linux*): Set
8699         default_gnu_indirect_function to yes.
8700
8701 2011-07-22  Richard Guenther  <rguenther@suse.de>
8702
8703         PR tree-optimization/45819
8704         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly
8705         preserve volatile and notrap flags.
8706
8707 2011-07-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8708             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8709
8710         PR bootstrap/49794
8711         * configure.ac: Test AM_ICONV with CXX.
8712         * configure: Regenerate.
8713         * config/sol2-c.c (solaris_format_types): Use EXPORTED_CONST.
8714
8715 2011-07-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8716
8717         PR bootstrap/49797
8718         * graphite-clast-to-gimple.c (CLOOG_LANGUAGE_C): Provide if missing.
8719         (set_cloog_options): Use it.
8720
8721 2011-07-22  Jakub Jelinek  <jakub@redhat.com>
8722
8723         PR c++/49756
8724         * gcc.c (main): Call stack_limit_increase (64MB).
8725         * toplev.c (toplev_main): Likewise.
8726
8727 2011-07-21  H.J. Lu  <hongjiu.lu@intel.com>
8728
8729         * config/i386/i386.c (ix86_expand_call): Call copy_to_mode_reg
8730         instead of force_reg.
8731
8732 2011-07-21  H.J. Lu  <hongjiu.lu@intel.com>
8733
8734         * config/i386/i386.c (ix86_expand_move): Convert to Pmode if
8735         needed and use force_reg after convert.
8736         (ix86_expand_call): Likewise.
8737         (ix86_expand_special_args_builtin): Likewise.
8738         (ix86_expand_builtin): Likewise.
8739
8740 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
8741
8742         PR middle-end/47654
8743         PR middle-end/49649
8744         * graphite-clast-to-gimple.c (type_for_clast_term): Pass v1 and v2
8745         in parameter.  Initialize v1 and v2 based on the values returned
8746         by clast_name_to_lb_ub.
8747         (type_for_clast_red): Pass v1 and v2 in parameter, and set their
8748         values.
8749         (type_for_clast_bin): Same.
8750         (type_for_clast_expr): Same.
8751         (type_for_clast_eq): Update calls to type_for_clast_expr.
8752         (type_for_clast_for): Same.
8753         (build_iv_mapping): Same.
8754         * graphite-ppl.h (value_min): New.
8755
8756 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
8757
8758         * graphite-clast-to-gimple.c (type_for_interval): Generate signed
8759         types whenever possible.
8760
8761 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
8762
8763         * graphite-clast-to-gimple.c (struct clast_name_index): Add lb
8764         and ub fields.
8765         (new_clast_name_index): Add lb and ub parameters.
8766         (free_clast_name_index): New.
8767         (clast_name_to_lb_ub): New.
8768         (save_clast_name_index): Add lb and ub parameters.
8769         (compute_bounds_for_param): New.
8770         (type_for_level): Removed.
8771         (type_for_clast_for): Removed level parameter.  Do not call
8772         type_for_level.
8773         (graphite_create_new_loop): Store the lb and ub for the clast_name
8774         of the iterator of the loop that has been generated.
8775         (graphite_create_new_loop_guard): Remove parameter level.
8776         (create_params_index): Store the lb and ub of each parameter.
8777         (gloog): Use free_clast_name_index.  Pass to create_params_index
8778         the current scop.
8779
8780 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
8781
8782         * graphite-clast-to-gimple.c (max_signed_precision_type): Removed.
8783         (max_precision_type): Inline max_signed_precision_type.
8784         (type_for_clast_red): Use max_precision_type.
8785         (type_for_clast_bin): Same.
8786         (type_for_clast_for): Same.
8787
8788 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
8789
8790         * graphite-clast-to-gimple.c (gcc_type_for_interval): Renamed
8791         type_for_interval.
8792         (gcc_type_for_value): Renamed type_for_value.
8793         (gcc_type_for_clast_term): Renamed type_for_clast_term.
8794         (gcc_type_for_clast_expr): Renamed type_for_clast_expr.
8795         (gcc_type_for_clast_red): Renamed type_for_clast_red.
8796         (gcc_type_for_clast_bin): Renamed type_for_clast_bin.
8797         (gcc_type_for_clast_eq): Renamed type_for_clast_eq.
8798         (graphite_translate_clast_equation): Update calls.
8799         (compute_type_for_level): Renamed type_for_level.
8800         (gcc_type_for_iv_of_clast_loop): Renamed type_for_clast_for.
8801         (build_iv_mapping): Update calls.
8802         (graphite_create_new_loop_guard): Same.
8803
8804 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
8805
8806         * graphite-clast-to-gimple.c (clast_get_body_of_loop): Add fixme
8807         comment.
8808
8809 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
8810
8811         * graphite-clast-to-gimple.c (struct ivs_params): New.
8812         (clast_name_to_gcc): Use ivs_params to pass around parameters.
8813         (clast_to_gcc_expression): Same.
8814         (clast_to_gcc_expression_red): Same.
8815         (gcc_type_for_clast_term): Same.
8816         (gcc_type_for_clast_expr): Same.
8817         (gcc_type_for_clast_red): Same.
8818         (gcc_type_for_clast_bin): Same.
8819         (gcc_type_for_clast_eq): Same.
8820         (graphite_translate_clast_equation): Same.
8821         (graphite_create_guard_cond_expr): Same.
8822         (graphite_create_new_guard): Same.
8823         (graphite_create_new_loop): Same.
8824         (build_iv_mapping): Same.
8825         (translate_clast_user): Same.
8826         (graphite_create_new_loop_guard): Same.
8827         (translate_clast): Same.
8828         (translate_clast_for_loop): Same.
8829         (translate_clast_for): Same.
8830         (translate_clast_guard): Same.
8831         (initialize_cloog_names): Fix typo.
8832         (gloog): Initialize an ivs_params struct, pass it to translate_clast.
8833
8834 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
8835
8836         * graphite-clast-to-gimple.c (struct clast_name_index): Add level.
8837         (new_clast_name_index): Add level parameter.
8838         (clast_name_to_level): New.
8839         (save_clast_name_index): Add level parameter.
8840         (newivs_to_depth_to_newiv): Removed.
8841         (clast_name_to_gcc): Inlined newivs_to_depth_to_newiv.
8842         (graphite_create_new_loop): Add level parameter.  Pass level to
8843         save_clast_name_index.
8844         (translate_clast_for_loop): Pass level to graphite_create_new_loop.
8845         (create_params_index): Pass level to save_clast_name_index.
8846
8847 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
8848
8849         * graphite-clast-to-gimple.c (graphite_create_new_loop): Do not
8850         recompute type, lb, and ub.  Get them from...
8851         (graphite_create_new_loop_guard): ...here.  Pass in parameter
8852         pointers to type, lb, and ub.
8853         (translate_clast_for_loop): Update function calls.
8854         (translate_clast_for): Same.
8855
8856 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
8857
8858         * graphite-clast-to-gimple.c (compute_bounds_for_level): Call
8859         psct_dynamic_dim.
8860         (translate_clast_for_loop): Pass loop level to dependency_in_loop_p.
8861         (gcc_type_for_iv_of_clast_loop): Update use of level.
8862         (gloog): Start counting nesting level from 0.
8863         * graphite-clast-to-gimple.h (get_scattering_level): Removed.
8864         * graphite-dependences.c (graphite_carried_dependence_level_k): Call
8865         psct_dynamic_dim on level.
8866
8867 2011-07-21  H.J. Lu  <hongjiu.lu@intel.com>
8868
8869         * config/i386/i386.c (ix86_legitimize_address): Convert to
8870         Pmode if needed.
8871
8872 2011-07-21  H.J. Lu  <hongjiu.lu@intel.com>
8873
8874         * config/i386/i386.c (function_value_64): Always return pointers
8875         in Pmode.
8876         (ix86_promote_function_mode): New.
8877         (TARGET_PROMOTE_FUNCTION_MODE): Likewise.
8878
8879 2011-07-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8880
8881         PR tree-optimization/49749
8882         * tree-ssa-reassoc.c (get_rank): Fix operand scan conditions and
8883         remove no-longer-used maxrank variable.
8884
8885 2011-07-21  Georg-Johann Lay  <avr@gjlay.de>
8886
8887         * config/avr/avr.c (final_prescan_insn): Fix printing of rtx_costs.
8888
8889 2011-07-21  Jason Merrill  <jason@redhat.com>
8890
8891         * system.h (HAVE_DESIGNATED_UNION_INITIALIZERS): New.
8892         * recog.h (struct insn_data_d): Check it instead of
8893         HAVE_DESIGNATED_INITIALIZERS.
8894         * genoutput.c (output_insn_data): Likewise.
8895
8896 2011-07-21  Richard Guenther  <rguenther@suse.de>
8897
8898         PR tree-optimization/49770
8899         * tree-ssa-sccvn.c (valueize_refs_1): Return whether we
8900         valueized any operand.  Renamed from ...
8901         (valueize_refs): ... this.  New wrapper around valueize_refs_1.
8902         (valueize_shared_reference_ops_from_ref): Return whether we
8903         valueized any operand.
8904         (vn_reference_lookup): Only when we valueized any operand
8905         use the valueized reference for alias analysis.  Do not preserve
8906         the original reference tree in this case.
8907
8908 2011-07-21  Uros Bizjak  <ubizjak@gmail.com>
8909
8910         * config/i386/i386.c (ix86_decompose_address): Reject all but
8911         register operands and subregs of DImode hard registers in index.
8912
8913 2011-07-21  Kai Tietz  <ktietz@redhat.com>
8914
8915         * fold-const.c (fold_unary_loc): Preserve indirect
8916         comparison cast to none-boolean type.
8917         * tree-ssa.c (useless_type_conversion_p): Preserve cast
8918         from/to boolean-type.
8919         * gimplify.c (gimple_boolify): Handle boolification of comparisons.
8920         (gimplify_expr): Boolifiy non aggregate-typed comparisons.
8921         * tree-cfg.c (verify_gimple_comparison): Check result
8922         type of comparison expression.
8923         * tree-ssa-forwprop.c (forward_propagate_comparison): Adjust test
8924         of condition result and disallow type-cast sinking into comparison.
8925
8926 2011-07-21  Richard Guenther  <rguenther@suse.de>
8927
8928         * tree-ssa-forwprop.c (combine_conversions): Return whether
8929         we have to run cfg-cleanup.  Properly remove dead stmts.
8930         (ssa_forward_propagate_and_combine): Adjust.
8931
8932 2011-07-21  Richard Sandiford  <richard.sandiford@linaro.org>
8933
8934         * regcprop.c (maybe_mode_change): Check HARD_REGNO_MODE_OK.
8935
8936 2011-07-21  Kai Tietz  <ktietz@redhat.com>
8937
8938         * tree-ssa-propagate.c (substitute_and_fold): Use
8939         do_dce flag to deside, if BB's statements are scanned
8940         in last to first, or first to last order.
8941
8942 2011-07-21  Georg-Johann Lay  <avr@gjlay.de>
8943
8944         * config/avr/avr.c (avr_rtx_costs): Set cost of CONST, LABEL_REF to 0.
8945
8946 2011-07-20  H.J. Lu  <hongjiu.lu@intel.com>
8947             Uros Bizjak  <ubizjak@gmail.com>
8948             Richard Henderson  <rth@redhat.com>
8949
8950         * config/i386/constraints.md (w): New.
8951
8952         * config/i386/i386.c (ix86_output_addr_vec_elt): Check
8953         TARGET_LP64 instead of TARGET_64BIT for ASM_QUAD.
8954
8955         * config/i386/i386.h (CASE_VECTOR_MODE): Check TARGET_LP64
8956         instead of TARGET_64BIT.
8957
8958         * config/i386/i386.md (indirect_jump): Replace
8959         nonimmediate_operand with indirect_branch_operand.
8960         (*indirect_jump): Likewise.  Replace constraint "m" with "w".
8961         (tablejump): Replace nonimmediate_operand with indirect_branch_operand.
8962         Convert operand 0 to Pmode for x32 if not PIC.
8963         (*tablejump_1): Replace nonimmediate_operand with
8964         indirect_branch_operand.  Replace constraint "m" with "w".
8965         (*call_vzeroupper): Replace constraint "m" with "w".
8966         (*call): Likewise.
8967         (*call_rex64_ms_sysv_vzeroupper): Likewise.
8968         (*call_rex64_ms_sysv): Likewise.
8969         (*call_value_vzeroupper): Likewise.
8970         (*call_value): Likewise.
8971         (*call_value_rex64_ms_sysv_vzeroupper): Likewise.
8972         (*call_value_rex64_ms_sysv): Likewise.
8973         (set_got_offset_rex64): Check TARGET_LP64 instead of TARGET_64BIT.
8974
8975         * config/i386/predicates.md (indirect_branch_operand): New.
8976         (call_insn_operand): Support x32.
8977
8978 2011-07-20  Michael Eager  <eager@eagercon.com>
8979
8980         * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Default to 12.
8981
8982 2011-07-20  Richard Henderson  <rth@redhat.com>
8983
8984         * cfg.c (dump_bb_info): Dump basic_block->flags.
8985         * cfgrtl.c (print_rtl_with_bb): Use dump_bb_info.
8986
8987 2011-07-20  Uros Bizjak  <ubizjak@gmail.com>
8988
8989         * config/i386/i386.c (ix86_decompose_address): Allow only subregs
8990         of DImode hard registers in index.
8991         (ix86_legitimate_address_p): Allow subregs of base and index to span
8992         more than a word.  Assert that subregs of base and index satisfy
8993         register_no_elim_operand predicates.  Reject addresses where
8994         base and index have different modes.
8995
8996 2011-07-20  Robert Millan  <rmh@gnu.org>
8997
8998         * config.gcc (mips*-*-linux*): Remove redundant tm_file entry.
8999
9000 2011-07-20  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9001
9002         * bb-reorder.c (fix_crossing_conditional_branches): Fix crash by
9003         removing now-unnecessary assignment.
9004
9005 2011-07-20  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9006
9007         * emit-rtl.c (set_mem_attributes_minus_bitpos): Restore setting
9008         memory address space to the type's address space.
9009
9010 2011-07-20  Georg-Johann Lay  <avr@gjlay.de>
9011
9012         PR target/36467
9013         PR target/49687
9014         * config/avr/avr.md (mulhi3): Use register_or_s9_operand for operand2
9015         and expand appropriately if there is a CONST_INT in operand2.
9016         (usmulqihi3): New insn.
9017         (*sumulqihi3): New insn.
9018         (*osmulqihi3): New insn.
9019         (*oumulqihi3): New insn.
9020         (*muluqihi3.uconst): New insn_and_split.
9021         (*muluqihi3.sconst): New insn_and_split.
9022         (*mulsqihi3.sconst): New insn_and_split.
9023         (*mulsqihi3.uconst): New insn_and_split.
9024         (*mulsqihi3.oconst): New insn_and_split.
9025         (*ashifthi3.signx.const): New insn_and_split.
9026         (*ashifthi3.signx.const7): New insn_and_split.
9027         (*ashifthi3.zerox.const): New insn_and_split.
9028         (mulsqihi3): New insn.
9029         (muluqihi3): New insn.
9030         (muloqihi3): New insn.
9031         * config/avr/predicates.md (const_2_to_7_operand): New.
9032         (const_2_to_6_operand): New.
9033         (u8_operand): New.
9034         (s8_operand): New.
9035         (o8_operand): New.
9036         (s9_operand): New.
9037         (register_or_s9_operand): New.
9038
9039 2011-07-20  Kai Tietz  <ktietz@redhat.com>
9040
9041         * builtins.c (fold_builtin_expect): See through the cast
9042         from truthvalue_type_node to long.
9043
9044 2011-07-20  Michael Meissner  <meissner@linux.vnet.ibm.com>
9045
9046         * config/rs6000/vsx.md (vsx_fma*): Use 4 argument fma instructions
9047         where we can use them from the standard and altivec instruction
9048         sets, instead of always using the 3 operand VSX forms that require
9049         the destination to overlap one of the inputs.
9050         (vsx_fms*): Ditto.
9051         (vsx_fnma*): Ditto.
9052         (vsx_fnms*): Ditto.
9053
9054         * config/rs6000/rs6000.md (fmadf4_fpr): Set fp_type fp_maddsub_d
9055         for DF types.
9056         (fmsdf4_fpr): Ditto.
9057         (nfmadf4_fpr): Ditto.
9058         (nfmsdf4_fpr): Ditto.
9059
9060 2011-07-20  Sandra Loosemore  <sandra@codesourcery.com>
9061
9062         * genrecog.c (make_insn_sequence): Correct position numbering
9063         when filtering out match_scratch and match_dup.
9064
9065 2011-07-20  Richard Guenther  <rguenther@suse.de>
9066
9067         * tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify
9068         against already removed statements.
9069         (forward_propagate_into_comparison): Remove dead defining stmts.
9070         (forward_propagate_into_gimple_cond): Likewise.
9071         (forward_propagate_into_cond): Simplify.
9072         (ssa_forward_propagate_and_combine): Handle changed cfg from
9073         forward_propagate_into_comparison.
9074         * tree-ssa-phiopt.c (conditional_replacement): Use proper
9075         locations for newly built statements.
9076
9077 2011-07-20  Georg-Johann Lay  <avr@gjlay.de>
9078
9079         * config/avr/avr.c (avr_rtx_costs): Set cost of SYMBOL_REF to 0.
9080
9081 2011-07-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9082
9083         * config/s390/s390.c (s390_class_max_nregs): Fix return type.
9084         * config/s390/s390-protos.h (s390_class_max_nregs): Likewise.
9085
9086 2011-07-20  Richard Guenther  <rguenther@suse.de>
9087
9088         PR middle-end/18908
9089         * tree.c (integer_all_onesp): Use TYPE_PRECISION, not mode precision.
9090         * tree-ssa-forwprop.c (simplify_bitwise_binary): Remove bogus
9091         ADDR_EXPR folding.  Canonicalize X ^ ~0 as ~X.
9092
9093 2011-07-20  Vladimir Makarov  <vmakarov@redhat.com>
9094
9095         * config/frv/frv.c (frv_register_move_cost): Define explicitly
9096         costs for subclasses of GR_REGS.
9097
9098 2011-07-20  Uros Bizjak  <ubizjak@gmail.com>
9099
9100         PR target/49780
9101         * config/i386/predicates.md (no_seg_addres_operand): No more special.
9102         * config/i386/i386.c (ix86_decompose_address): Allow only subregs
9103         of DImode hard registers in base.
9104         (ix86_legitimate_address_p): Allow SImode and DImode base and index
9105         registers.
9106
9107 2011-07-20  Richard Guenther  <rguenther@suse.de>
9108
9109         * tree-ssa-structalias.c (new_var_info): Allocate oldsolution lazily.
9110         (unify_nodes): Deal with that.
9111         (solve_graph): Likewise.
9112
9113 2011-07-20  Chung-Lin Tang  <cltang@codesourcery.com>
9114
9115         * config/arm/arm.c (arm_canonicalize_comparison): Add case to
9116         canonicalize left operand from ZERO_EXTEND to AND.
9117
9118 2011-07-20  Anatoly Sokolov  <aesok@post.ru>
9119
9120         * target.def (class_max_nregs): New hook.
9121         * doc/tm.texi.in (TARGET_CLASS_MAX_NREGS): Document.
9122         * doc/tm.texi: Regenerate.
9123         * targhooks.c (default_class_max_nregs): New function.
9124         * targhooks.h (default_class_max_nregs): Declare.
9125         * ira.h (target_ira): Change type x_ira_reg_class_max_nregs and
9126         x_ira_reg_class_min_nregs arrays to unsigned char.
9127         * ira.c (setup_reg_class_nregs): Use TARGET_CLASS_MAX_NREGS target
9128         hook instead of CLASS_MAX_NREGS macro.
9129         * reginfo.c (restore_register_info): Ditto.
9130         * ira-conflicts.c (process_regs_for_copy): Use
9131         ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
9132         Change type rclass and aclass vars to reg_class_t.
9133         * ira-costs.c (record_reg_classes): Use ira_reg_class_max_nregs
9134         array instead of CLASS_MAX_NREGS macro. Change type rclass var to
9135         reg_class_t.
9136         * reload.c (combine_reloads, find_reloads, find_reloads_address_1):
9137         Use ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
9138
9139         * config/i386/i386.h (CLASS_MAX_NREGS): Remove.
9140         * config/i386/i386.c (ix86_class_max_nregs): New function.
9141         (ix86_register_move_cost): Use TARGET_CLASS_MAX_NREGS target hook
9142         instead of CLASS_MAX_NREGS macro.
9143         (TARGET_CLASS_MAX_NREGS): Define.
9144         * config/avr/avr.h (CLASS_MAX_NREGS): Remove.
9145         * config/avr/avr-protos.h (class_max_nregs): Remove declaration.
9146         * config/avr/avr.c (class_max_nregs): Remove function.
9147         * config/alpha/alpha.h (CLASS_MAX_NREGS): Remove.
9148         * config/spu/spu.h (CLASS_MAX_NREGS): Remove.
9149         * config/mep/mep.h (CLASS_MAX_NREGS): Remove.
9150         * config/m32r/m32r.h (CLASS_MAX_NREGS): Remove.
9151         * config/microblaze/microblaze.h (CLASS_MAX_NREGS): Remove.
9152         * config/xtensa/xtensa.h (CLASS_MAX_NREGS): Remove.
9153         * config/stormy16/stormy16.h (CLASS_MAX_NREGS): Remove.
9154         * config/lm32/lm32.h (CLASS_MAX_NREGS): Remove.
9155         * config/moxie/moxie.h (CLASS_MAX_NREGS): Remove.
9156         * config/iq2000/iq2000.h (CLASS_MAX_NREGS): Remove.
9157         * config/mn10300/mn10300.h (CLASS_MAX_NREGS): Remove.
9158         * config/score/score.h (CLASS_MAX_NREGS): Remove.
9159         * config/vax/vax.h (CLASS_MAX_NREGS): Remove.
9160         * config/h8300/h8300.h (CLASS_MAX_NREGS): Remove.
9161         * config/v850/v850.h (CLASS_MAX_NREGS): Remove.
9162
9163 2011-07-19  Eric Botcazou  <ebotcazou@adacore.com>
9164
9165         * cif-code.def (OVERWRITABLE): Fix typo and move around.
9166         (TARGET_OPTIMIZATION_MISMATCH): Delete.
9167         (EH_PERSONALITY): Fix typo.
9168         (NON_CALL_EXCEPTIONS): Fix message.
9169         (OPTIMIZATION_MISMATCH): Adjust message.
9170         * ipa-inline.c (can_inline_edge_p): Use CIF_OPTIMIZATION_MISMATCH.
9171
9172 2011-07-19  Ian Lance Taylor  <iant@google.com>
9173
9174         * doc/install.texi (Configuration): Document
9175         --enable-build-poststage1-with-cxx.
9176
9177 2011-07-19  Robert Millan  <rmh@gnu.org>
9178
9179         * config/mips/gnu-user.h: Copy from linux.h.  Update comments.
9180         (GLIBC_DYNAMIC_LINKER): Remove.
9181
9182         * config/mips/gnu-user64.h: Copy from linux64.h.  Update comments.
9183         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
9184         (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
9185         (BIONIC_DYNAMIC_LINKERN32, GNU_USER_DYNAMIC_LINKERN32): Remove.
9186         (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32,
9187         GNU_USER_DYNAMIC_LINKER64 and GNU_USER_LINK_EMULATIONN32.
9188
9189         * config/mips/linux.h: Remove everything except for ...
9190         (GLIBC_DYNAMIC_LINKER): ... this macro.
9191
9192         * config/mips/linux64.h: Remove everything except for ...
9193         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
9194         (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
9195         (BIONIC_DYNAMIC_LINKERN32): ... these macros.
9196         (GNU_USER_LINK_EMULATION32, GNU_USER_LINK_EMULATION64)
9197         (GNU_USER_LINK_EMULATIONN32): New macros.
9198
9199         * config.gcc (mips64*-*-linux* | mipsisa64*-*-linux* | mips-*-linux*):
9200         Use the new headers.
9201
9202 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
9203
9204         * rtl.h (mem_attrs): Turn offset and size fields into HOST_WIDE_INTs.
9205         Add offset_known_p and size_known_p fields.
9206         (MEM_OFFSET_KNOWN_P): Update accordingly.
9207         (MEM_OFFSET, MEM_SIZE_KNOWN_P, MEM_SIZE): Likewise.
9208         * emit-rtl.c (mem_attrs_htab_hash): Update after mem_attrs changes.
9209         (mem_attrs_eq_p, set_mem_attributes_minus_bitpos, set_mem_offset)
9210         (clear_mem_offset, set_mem_size, clear_mem_size, change_address)
9211         (adjust_address_1, widen_memory_access, set_mem_attrs_for_spill)
9212         (init_emit_regs): Likewise.
9213
9214 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
9215
9216         * doc/rtl.texi (MEM_OFFSET_KNOWN_P): Document.
9217         (MEM_OFFSET): Change from returning an rtx to returning a
9218         HOST_WIDE_INT.
9219         * rtl.h (MEM_OFFSET_KNOWN_P): New macro.
9220         (MEM_OFFSET): Return a HOST_WIDE_INT rather than an rtx.
9221         * emit-rtl.h (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
9222         (clear_mem_offset): Declare.
9223         * alias.c (ao_ref_from_mem): Adjust uses of MEM_OFFSET, using
9224         MEM_OFFSET_KNOWN_P to test whether the offset is known, and
9225         MEM_OFFSET to get a HOST_WIDE_INT offset.
9226         (nonoverlapping_memrefs_p): Likewise.  Adjust calls to...
9227         (adjust_offset_for_component_ref): Take a bool "known_p"
9228         parameter and a HOST_WIDE_INT "offset" parameter.
9229         * builtins.c (get_memory_rtx): As for ao_ref_from_mem.
9230         Adjust calls to set_mem_offset, passing a HOST_WIDE_INT rather
9231         than an rtx.  Use clear_mem_offset to clear the offset.
9232         * cfgcleanup.c (merge_memattrs): Likewise.
9233         * dwarf2out.c (tls_mem_loc_descriptor): Likewise.
9234         * function.c (assign_parm_find_stack_rtl): Likewise.
9235         (assign_parm_setup_stack): Likewise.
9236         * print-rtl.c (print_rtx): Likewise.
9237         * reload.c (find_reloads_subreg_address): Likewise.
9238         * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
9239         * var-tracking.c (INT_MEM_OFFSET): Likewise.
9240         * emit-rtl.c (set_reg_attrs_from_value): Likewise.
9241         (get_mem_align_offset): Likewise.
9242         (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
9243         (clear_mem_offset): New function.
9244         * config/mips/mips.c (r10k_safe_mem_expr_p): Take a HOST_WIDE_INT
9245         offset rather than an rtx.  Assume both the expressio and offset
9246         are available.
9247         (r10k_needs_protection_p_1): Update accordingly, checking the
9248         expression and offset availability here instead.
9249
9250 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
9251
9252         * doc/rtl.texi (MEM_SIZE_KNOWN_P): Document.
9253         (MEM_SIZE): Change from returning an rtx to returning a HOST_WIDE_INT.
9254         * rtl.h (MEM_SIZE_KNOWN_P): New macro.
9255         (MEM_SIZE): Return a HOST_WIDE_INT rather than an rtx.
9256         * emit-rtl.h (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
9257         (clear_mem_size): Declare.
9258         * emit-rtl.c (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
9259         (clear_mem_size): New function.
9260         * alias.c (ao_ref_from_mem): Adjust uses of MEM_SIZE, using
9261         MEM_SIZE_KNOWN_P to test whether the size is known, and MEM_SIZE
9262         to get a HOST_WIDE_INT size.  Adjust calls to set_mem_size,
9263         passing a HOST_WIDE_INT rather than an rtx.  Use clear_mem_size
9264         to clear the size.
9265         (nonoverlapping_memrefs_p): Likewise.
9266         * builtins.c (get_memory_rtx, expand_builtin_memcmp): Likewise.
9267         (expand_builtin_init_trampoline): Likewise.
9268         * calls.c (compute_argument_addresses): Likewise.
9269         * cfgcleanup.c (merge_memattrs): Likewise.
9270         * dce.c (find_call_stack_args): Likewise.
9271         * dse.c (record_store, scan_insn): Likewise.
9272         * dwarf2out.c (dw_sra_loc_expr): Likewise.
9273         * expr.c (emit_block_move_hints): Likewise.
9274         * function.c (assign_parm_find_stack_rtl): Likewise.
9275         * print-rtl.c (print_rtx): Likewise.
9276         * reload.c (find_reloads_subreg_address): Likewise.
9277         * rtlanal.c (may_trap_p_1): Likewise.
9278         * var-tracking.c (track_expr_p): Likewise.
9279         * varasm.c (assemble_trampoline_template): Likewise.
9280         * config/arm/arm.c (arm_print_operand): Likewise.
9281         * config/h8300/h8300.c (h8sx_emit_movmd): Likewise.
9282         * config/i386/i386.c (expand_movmem_via_rep_mov): Likewise.
9283         (expand_setmem_via_rep_stos, expand_constant_movmem_prologue)
9284         (expand_constant_setmem_prologue): Likewise.
9285         * config/mips/mips.c (mips_get_unaligned_mem): Likewise.
9286         * config/rs6000/rs6000.c (expand_block_move): Likewise.
9287         (adjacent_mem_locations): Likewise.
9288         * config/s390/s390.c (s390_expand_setmem): Likewise.
9289         (s390_expand_insv): Likewise.
9290         * config/s390/s390.md (*extzv<mode>, *extv<mode>): Likewise.
9291         (*extendqi<mode>2_short_displ): Likewise.
9292         * config/sh/sh.c (expand_block_move): Likewise.
9293         * config/sh/sh.md (extv, extzv): Likewise.
9294
9295 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
9296
9297         * emit-rtl.c (mem_attrs_eq_p): New function, split out from...
9298         (mem_attrs_htab_eq): ...here.
9299         (find_mem_attrs): Replace with...
9300         (set_mem_attrs): ...this function.  Take a mem_attrs structure
9301         rather than individual fields.
9302         (set_mem_attributes_minus_bitpos, set_mem_alias_set)
9303         (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
9304         (set_mem_size, change_address, adjust_address_1, offset_address)
9305         (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
9306         Update accordingly.
9307
9308 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
9309
9310         * rtl.h (MEM_ALIAS_SET, MEM_EXPR, MEM_OFFSET, MEM_ADDR_SPACE)
9311         (MEM_SIZE, MEM_ALIGN): Redefine in terms of get_mem_attrs.
9312         Provide a dummy definition of MEM_ADDR_SPACE for generators.
9313         (target_rtl): Add x_mode_mem_attrs.
9314         (mode_mem_attrs): New macro.
9315         (get_mem_attrs): New function.
9316         * emit-rtl.c (get_mem_attrs): Rename to...
9317         (find_mem_attrs): ...this.
9318         (set_mem_attributes_minus_bitpos, set_mem_alias_set)
9319         (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
9320         (set_mem_size, change_address, adjust_address_1, offset_address)
9321         (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
9322         Update accordingly.
9323         (init_emit_regs): Initialize mode_mem_attrs.
9324
9325 2011-07-19  Richard Guenther  <rguenther@suse.de>
9326
9327         * tree-ssa-forwprop.c (lookup_logical_inverted_value): Remove
9328         TRUTH_*_EXPR handling.
9329         * tree-ssa-operands.c (get_expr_operands): Likewise.
9330         * tree-ssa-pre.c (fully_constant_expression): Likewise.
9331         * tree-ssa-uninit.c (use_pred_not_overlap_with_undef_path_pre):
9332         Likewise.
9333         (is_and_or_or): Likewise.
9334         (is_norm_cond_subset_of): Likewise.
9335
9336 2011-07-19  Richard Guenther  <rguenther@suse.de>
9337
9338         * tree.h (fold_build_pointer_plus_loc): New helper function.
9339         (fold_build_pointer_plus_hwi_loc): Likewise.
9340         (fold_build_pointer_plus): Define.
9341         (fold_build_pointer_plus_hwi): Likewise.
9342         * builtins.c (std_gimplify_va_arg_expr): Use fold_build_pointer_plus.
9343         (fold_builtin_memory_op): Likewise.
9344         (fold_builtin_stpcpy): Likewise.
9345         (fold_builtin_memchr): Likewise.
9346         (fold_builtin_strstr): Likewise.
9347         (fold_builtin_strchr): Likewise.
9348         (fold_builtin_strrchr): Likewise.
9349         (fold_builtin_strpbrk): Likewise.
9350         (fold_builtin_strcat): Likewise.
9351         (expand_builtin_memory_chk): Likewise.
9352         (fold_builtin_memory_chk): Likewise.
9353         * c-typeck.c (build_unary_op): Likewise.
9354         * cgraphunit.c (thunk_adjust): Likewise.
9355         * fold-const.c (build_range_check): Likewise.
9356         (fold_binary_loc): Likewise.
9357         * omp-low.c (extract_omp_for_data): Likewise.
9358         (expand_omp_for_generic): Likewise.
9359         (expand_omp_for_static_nochunk): Likewise.
9360         (expand_omp_for_static_chunk): Likewise.
9361         * tree-affine.c (add_elt_to_tree): Likewise.
9362         * tree-data-ref.c (split_constant_offset_1): Likewise.
9363         * tree-loop-distribution.c (generate_memset_zero): Likewise.
9364         * tree-mudflap.c (mf_xform_derefs_1): Likewise.
9365         * tree-predcom.c (ref_at_iteration): Likewise.
9366         * tree-ssa-address.c (tree_mem_ref_addr): Likewise.
9367         (add_to_parts): Likewise.
9368         (create_mem_ref): Likewise.
9369         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
9370         * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Likewise.
9371         (number_of_iterations_le): Likewise.
9372         * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Likewise.
9373         * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
9374         (vect_create_addr_base_for_vector_ref): Likewise.
9375         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Likewise.
9376         (vect_create_cond_for_alias_checks): Likewise.
9377         * tree-vrp.c (extract_range_from_assert): Likewise.
9378         * config/alpha/alpha.c (alpha_va_start): Likewise.
9379         (alpha_gimplify_va_arg_1): Likewise.
9380         * config/i386/i386.c (ix86_va_start): Likewise.
9381         (ix86_gimplify_va_arg): Likewise.
9382         * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
9383         * config/mep/mep.c (mep_expand_va_start): Likewise.
9384         (mep_gimplify_va_arg_expr): Likewise.
9385         * config/mips/mips.c (mips_va_start): Likewise.
9386         (mips_gimplify_va_arg_expr): Likewise.
9387         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
9388         * config/rs6000/rs6000.c (rs6000_va_start): Likewise.
9389         (rs6000_gimplify_va_arg): Likewise.
9390         * config/s390/s390.c (s390_va_start): Likewise.
9391         (s390_gimplify_va_arg): Likewise.
9392         * config/sh/sh.c (sh_va_start): Likewise.
9393         (sh_gimplify_va_arg_expr): Likewise.
9394         * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
9395         * config/spu/spu.c (spu_va_start): Likewise.
9396         (spu_gimplify_va_arg_expr): Likewise.
9397         * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
9398         Likewise.
9399         (xstormy16_gimplify_va_arg_expr): Likewise.
9400         * config/xtensa/xtensa.c (xtensa_va_start): Likewise.
9401         (xtensa_gimplify_va_arg_expr): Likewise.
9402
9403 2011-07-19  Richard Guenther  <rguenther@suse.de>
9404
9405         * expr.c (expand_expr_real_2): Remove TRUTH_*_EXPR handling.
9406         (expand_expr_real_1): Remove TRUTH_*IF_EXPR and STATEMENT_LIST
9407         handling.
9408
9409         PR middle-end/18908
9410         * expr.c (expand_expr_real_2): Do not unnecessarily truncate the
9411         result of BIT_*_EXPR to bitfield precision.
9412
9413 2011-07-19  Richard Sandiford  <richard.sandiford@linaro.org>
9414
9415         PR tree-optimization/49742
9416         * tree-data-ref.c (get_references_in_stmt): Treat the lhs of a call
9417         as a potential write.
9418
9419 2011-07-19  Richard Guenther  <rguenther@suse.de>
9420
9421         * Makefile.in (tree-ssa-forwprop.o): Depend on gimple-pretty-print.h.
9422         * tree-ssa-forwprop.c: Include gimple-pretty-print.h.
9423         (forward_propagate_comparison): Simplify, remove obsolete code.
9424
9425 2011-07-19  Richard Guenther  <rguenther@suse.de>
9426
9427         * gimplify.c (gimplify_expr): Gimplify TRUTH_NOT_EXPR as
9428         BIT_XOR_EXPR, same as the RTL expander does.
9429         * tree-cfg.c (verify_expr): Disallow TRUTH_NOT_EXPR in the gimple IL.
9430         (verify_gimple_assign_unary): Likewise.
9431         * tree-ssa-propagate.c (valid_gimple_rhs_p): Disallow TRUTH_*_EXPR.
9432         * tree-ssa-forwprop.c (forward_propagate_comparison): Handle
9433         BIT_NOT_EXPR and BIT_XOR_EXPR instead of TRUTH_NOT_EXPR.
9434
9435 2011-07-19  Jakub Jelinek  <jakub@redhat.com>
9436
9437         PR tree-optimization/49768
9438         * gimple-fold.c (fold_nonarray_ctor_reference): Return NULL
9439         if offset is smaller than bitoffset, but offset+size is bigger
9440         than bitoffset.
9441
9442 2011-07-19  Ira Rosen  <ira.rosen@linaro.org>
9443
9444         PR tree-optimization/49771
9445         * tree-vect-loop-manip.c (vect_vfa_segment_size): In case of
9446         zero step, set segment length to the size of the data-ref's type.
9447
9448 2011-07-18  Martin Jambor  <mjambor@suse.cz>
9449
9450         * ipa-prop.h: Include alloc-pool.h, all sorts of updates to general
9451         comments.
9452         (ipcp_values_pool): Declare.
9453         (ipcp_sources_pool): Likewise.
9454         (ipcp_lattice): Changed to forward declaration.
9455         (ipa_param_descriptor): Removed fields ipcp_lattice, types and
9456         cannot_devirtualize.
9457         (ipa_node_params): New fields descriptors, lattices, known_vals,
9458         clone_for_all_contexts and node dead, removed fields params and
9459         count_scale.
9460         (ipa_set_param_count): Removed.
9461         (ipa_get_param_count): Made to work with descriptors vector.
9462         (ipa_get_param): Updated.
9463         (ipa_param_cannot_devirtualize_p): Removed.
9464         (ipa_param_types_vec_empty): Likewise.
9465         (ipa_set_param_used): New function.
9466         (ipa_get_param_used): Updated to use descriptors vector.
9467         (ipa_func_list): Removed.
9468         (ipa_init_func_list): Removed declaration.
9469         (ipa_push_func_to_list_1): Likewise.
9470         (ipa_pop_func_from_list): Likewise.
9471         (ipa_push_func_to_list): Removed.
9472         (ipa_lattice_from_jfunc): Remove declaration.
9473         (ipa_get_jf_pass_through_result): Declare.
9474         (ipa_get_jf_ancestor_result): Likewise.
9475         (ipa_value_from_jfunc): Likewise.
9476         (ipa_get_lattice): Update.
9477         (ipa_lat_is_single_const): New function.
9478         * ipa-prop.c (ipa_push_func_to_list_1): Removed.
9479         (ipa_init_func_list): Likewise.
9480         (ipa_pop_func_from_list): Likewise.
9481         (ipa_get_param_decl_index): Fix coding style.
9482         (count_formal_params): Removed.
9483         (count_formal_params_1): Renamed to count_formal_params.
9484         (ipa_populate_param_decls): Update to use descriptors vector.
9485         (ipa_initialize_node_params): Likewise.
9486         (visit_ref_for_mod_analysis): Use ipa_set_param_used.
9487         (ipa_analyze_params_uses): Likewise.
9488         (ipa_free_node_params_substructures): Likewise and free also lattices
9489         and known values.
9490         (duplicate_array): Removed.
9491         (ipa_edge_duplication_hook): Add the new edge to the list of edge
9492         clones.
9493         (ipa_node_duplication_hook): Update to use new lattices.
9494         (ipa_free_all_structures_after_ipa_cp): Free alloc pools.
9495         (ipa_free_all_structures_after_iinln): Likewise.
9496         (ipa_write_node_info): Update to use new lattices.
9497         (ipa_read_node_info): Likewise.
9498         (ipa_get_jf_pass_through_result): New function.
9499         (ipa_get_jf_ancestor_result): Likewise.
9500         (ipa_value_from_jfunc): Likewise.
9501         (ipa_cst_from_jfunc): Reimplemented using ipa_value_from_jfunc.
9502         * ipa-cp.c: Reimplemented.
9503         * params.def (PARAM_DEVIRT_TYPE_LIST_SIZE): Removed.
9504         (PARAM_IPA_CP_VALUE_LIST_SIZE): New parameter.
9505         (PARAM_IPA_CP_EVAL_THRESHOLD): Likewise.
9506         * Makefile.in (IPA_PROP_H): Added alloc-pool.h to dependencies.
9507         * doc/invoke.texi (devirt-type-list-size): Removed description.
9508         (ipa-cp-value-list-size): Added description.
9509
9510 2011-07-18  Richard Henderson  <rth@redhat.com>
9511
9512         * bb-reorder.c (fix_crossing_conditional_branches): Emit all insns
9513         before calling create_basic_block.
9514
9515 2011-07-18  Jakub Jelinek  <jakub@redhat.com>
9516
9517         PR middle-end/49675
9518         * tree.c (build_common_builtin_nodes): Register
9519         __builtin_return_address, __cyg_profile_func_enter
9520         and __cyg_profile_func_exit.
9521
9522 2011-07-18  Richard Henderson  <rth@redhat.com>
9523
9524         * bb-reorder.c (emit_barrier_after_bb): Split out of ...
9525         (add_labels_and_missing_jumps): ... here.
9526         (fix_up_fall_thru_edges, fix_crossing_conditional_branches): Use it.
9527
9528 2011-07-18  Uros Bizjak  <ubizjak@gmail.com>
9529
9530         PR target/47744
9531         * config/i386/i386.c (ix86_decompose_address): Allow only subregs
9532         of DImode hard registers in PLUS address chains.
9533
9534 2011-07-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9535
9536         PR bootstrap/49769
9537         * config.gcc (alpha*-*-linux*): Add crtfastmath.o to extra_parts.
9538         (alpha*-*-freebsd*): Likewise.
9539         (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
9540         i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
9541         i[34567]86-*-kopensolaris*-gnu): Add crtprec32.o, crtprec64.o,
9542         crtprec80.o, crtfastmath.o to extra_parts for all targets.
9543         (ia64*-*-elf*): Remove extra_parts.
9544         (sparc-*-linux*): Add crtfastmath.o to extra_parts.
9545         (sparc64-*-linux*): Likewise.
9546         (sparc64-*-freebsd*): Likewise.
9547
9548         Revert:
9549         * config.gcc (ia64*-*-freebsd*): Remove crtfastmath.o from extra_parts.
9550         (ia64*-*-linux*): Likewise.
9551         (mips64*-*-linux*): Likewise.
9552         (mips*-*-linux*): Likewise.
9553
9554 2011-07-18  David Edelsohn  <dje.gcc@gmail.com>
9555
9556         * doc/install.texi (Specific, *-ibm-aix*): AIX assembler bug.
9557
9558 2011-07-18  Richard Guenther  <rguenther@suse.de>
9559
9560         * gimplify.c (gimplify_expr): Use input_location, not saved_location
9561         when building new trees.
9562
9563 2011-07-18  Richard Guenther  <rguenther@suse.de>
9564
9565         * expr.c (expand_expr_real_2): Properly truncate the BIT_NOT_EXPR
9566         expansion result to bitfield precision if required.
9567
9568 2011-07-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9569
9570         * config.gcc (i[3456x]86-*-netware*): Remove.
9571
9572         * gthr-nks.h: Remove.
9573         * configure.ac (enable_threads): Remove nks.
9574         * configure: Regenerate.
9575
9576         * config/i386/i386.c (ix86_encode_section_info): Remove netware
9577         reference.
9578         * config/i386/i386.h (KEEP_AGGREGATE_RETURN_POINTER): Remove
9579         <netware.h> reference.
9580
9581         * config/i386/netware-libgcc.c,
9582         gcc/config/i386/netware-libgcc.def,
9583         gcc/config/i386/netware-libgcc.exp, gcc/config/i386/netware.c,
9584         gcc/config/i386/netware.h, gcc/config/i386/netware.opt,
9585         gcc/config/i386/nwld.c, gcc/config/i386/nwld.h,
9586         gcc/config/i386/t-netware, gcc/config/i386/t-nwld: Remove
9587
9588         * doc/extend.texi (Function Attributes,
9589         callee_pop_aggregate_return): Remove i?86-netware reference.
9590         * doc/install.texi (Configuration, --enable-threads): Remove nks.
9591
9592 2011-07-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9593
9594         PR target/49746
9595         Revert:
9596         2010-12-30  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9597
9598         * config/pa/pa.md: Add ",*" condition to 64-bit add/subtract boolean
9599         patterns.
9600
9601 2011-07-17  Eric Botcazou  <ebotcazou@adacore.com>
9602
9603         PR middle-end/49732
9604         * tree.c (walk_tree_1) <DECL_EXPR>: Do not walk a pointed-to type.
9605
9606 2011-07-16  Matthias Klose  <doko@ubuntu.com>
9607
9608         * doc/install.texi: Document --enable-static-libjava.
9609
9610 2011-07-15  Richard Henderson  <rth@redhat.com>
9611
9612         * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
9613         Replace all three arguments by returning a VEC of edges.
9614         (add_labels_and_missing_jumps): Accept a VEC of edges, not bare
9615         pointers and counts.
9616         (fix_edges_for_rarely_executed_code): Merge ...
9617         (rest_of_handle_partition_blocks): ... into...
9618         (partition_hot_cold_basic_blocks): ... here.  Return todo items if
9619         any work was performed.
9620         (pass_partition_blocks): Clear todo_flags_finish.
9621
9622 2011-07-15  Paolo Carlini  <paolo.carlini@oracle.com>
9623             Jakub Jelinek  <jakub@redhat.com>
9624             Jonathan Wakely  <jwakely.gcc@gmail.com>
9625
9626         PR libstdc++/49745
9627         * gthr-posix.h: Do not include <unistd.h> unconditionally; use
9628         _GTHREADS_USE_MUTEX_TIMEDLOCK instead of _POSIX_TIMEOUTS.
9629
9630 2011-07-15  Jason Merrill  <jason@redhat.com>
9631
9632         PR testsuite/49741
9633         * Makefile.in ($(lang_checks_parallelized)): Allow --extra_opts
9634         rather than --tool_opts.
9635
9636 2011-07-15  Basile Starynkevitch  <basile@starynkevitch.net>
9637
9638         * doc/plugins.texi (Building GCC plugins): gengtype needs its
9639         corresponding gtype.state.
9640
9641 2011-07-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9642
9643         PR target/49723
9644         * config/pa/pa.md (casesi): Use gen_int_mode instead of GEN_INT.
9645
9646 2011-07-15  Eric Botcazou  <ebotcazou@adacore.com>
9647
9648         PR target/48220
9649         * doc/md.texi (Standard Names): Document window_save.
9650         * cfgexpand.c (expand_debug_parm_decl): New function extracted from
9651         expand_debug_expr and expand_debug_source_expr.  If the target has
9652         a window_save instruction, adjust the ENTRY_VALUE_EXP.
9653         (expand_debug_expr) <SSA_NAME>: Call expand_debug_parm_decl if the
9654         SSA_NAME_VAR is a parameter.
9655         (expand_debug_source_expr) <PARM_DECL>: Call expand_debug_parm_decl.
9656         * var-tracking.c (parm_reg_t): New type and associated vector type.
9657         (windowed_parm_regs): New variable.
9658         (adjust_insn): If the target has a window_save instruction and this
9659         is the instruction, make its effect on parameter registers explicit.
9660         (next_non_note_insn_var_location): New function.
9661         (emit_notes_in_bb): Use it instead of NEXT_INSN throughout.
9662         (vt_add_function_parameter): If the target has a window_save insn,
9663         adjust the incoming RTL and record that in windowed_parm_regs.
9664         (vt_finalize): Free windowed_parm_regs.
9665
9666 2011-07-15  Bernd Schmidt  <bernds@codesourcery.com>
9667
9668         * doc/invoke.texi (C6X Options): New section.
9669         * doc/md.texi (TI C6X family): New section.
9670         * config.gcc: Handle tic6x, in particular tic6x-*-elf and
9671         tic6x-*-uclinux.
9672         * longlong.h (add_ssaaaa, __umulsidi3, umul_ppmm,
9673         count_leading_zeros, count_trailing_zeros, UMUL_TIME, UDIV_TIME):
9674         Provide C6X definitions.
9675         * config/c6x/c6x.md: New file.
9676         * config/c6x/constraints.md: New file.
9677         * config/c6x/predicates.md: New file.
9678         * config/c6x/c6x-sched.md.in: New file.
9679         * config/c6x/c6x-sched.md: New file.
9680         * config/c6x/gensched.sh: New file.
9681         * config/c6x/c6x-mult.md.in: New file.
9682         * config/c6x/genmult.sh: New file.
9683         * config/c6x/c6x-mult.md: New file.
9684         * config/c6x/sync.md: New file.
9685         * config/c6x/c6x-protos.h: New file.
9686         * config/c6x/sfp-machine.h: New file.
9687         * config/c6x/c6x.c: New file.
9688         * config/c6x/c6x.h: New file.
9689         * config/c6x/crti.s: New file.
9690         * config/c6x/crtn.s: New file.
9691         * config/c6x/lib1funcs.asm: New file.
9692         * config/c6x/c6x-modes.def: New file.
9693         * config/c6x/genopt.sh: New file.
9694         * config/c6x/c6x.opt: New file.
9695         * config/c6x/c6x-tables.opt: New file.
9696         * config/c6x/c6x-opts.h: New file.
9697         * config/c6x/c6x-isas.def: New file.
9698         * config/c6x/elf.h: New file.
9699         * config/c6x/elf-common.h: New file.
9700         * config/c6x/uclinux-elf.h: New file.
9701         * config/c6x/t-c6x: New file.
9702         * config/c6x/t-c6x-elf: New file.
9703         * config/c6x/t-c6x-uclinux: New file.
9704         * config/c6x/t-c6x-softfp: New file.
9705         * config/c6x/gtd.c: New file.
9706         * config/c6x/gtf.c: New file.
9707         * config/c6x/ltd.c: New file.
9708         * config/c6x/ltf.c: New file.
9709         * config/c6x/ged.c: New file.
9710         * config/c6x/gef.c: New file.
9711         * config/c6x/led.c: New file.
9712         * config/c6x/lef.c: New file.
9713         * config/c6x/eqd.c: New file.
9714         * config/c6x/eqf.c: New file.
9715         * config/c6x/libgcc-c6xeabi.ver: New file.
9716
9717         Revert
9718         2003-07-10  Eric Botcazou  <ebotcazou@libertysurf.fr>
9719         PR rtl-optimization/11320
9720         * sched-int.h (struct deps) [reg_conditional_sets]: New field.
9721         (struct sched_info) [compute_jump_reg_dependencies]: New prototype.
9722         * sched-deps.c (sched_analyze_insn) [JUMP_INSN]: Update call to
9723         current_sched_info->compute_jump_reg_dependencies. Record which
9724         registers are used and which registers are set by the jump.
9725         Clear deps->reg_conditional_sets after a barrier.
9726         Set deps->reg_conditional_sets if the insn is a COND_EXEC.
9727         Clear deps->reg_conditional_sets if the insn is not a COND_EXEC.
9728         (init_deps): Initialize reg_conditional_sets.
9729         (free_deps): Clear reg_conditional_sets.
9730         * sched-ebb.c (compute_jump_reg_dependencies): New prototype.
9731         Mark registers live on entry of the fallthrough block and conditionally
9732         set as set by the jump. Mark registers live on entry of non-fallthrough
9733         blocks as used by the jump.
9734         * sched-rgn.c (compute_jump_reg_dependencies): New prototype.
9735         Mark new parameters as unused.
9736
9737 2011-07-14  Andrew Pinski  <pinskia@gmail.com>
9738
9739         PR tree-opt/49309
9740         * tree-mudflap.c (mf_xform_derefs_1 <case MEM_REF>):
9741         Use fold_build2_loc instead of build2.
9742         Use the correct type for the new tree.
9743
9744 2011-07-14  Bernd Schmidt  <bernds@codesourcery.com>
9745
9746         PR rtl-optimization/11320
9747         * config/ia64/ia64.md (load_symptr_low): Show a MEM.
9748         * config/ia64/ia64.c (ia64_expand_load_address): Generate it.
9749
9750 2011-07-14  Georg-Johann Lay  <avr@gjlay.de>
9751
9752         PR target/49487
9753         * config/avr/avr.md (rotl<mode>3): Generate SCRATCH instead
9754         of REG.
9755         (*rotw<mode>): Use const_int_operand for operand2.
9756         Use match_scatch for operand3.
9757         (*rotb<mode>): Ditto
9758         * config/avr/avr.c (avr_rotate_bytes): Treat SCRATCH.
9759
9760 2011-07-14  Richard Guenther  <rguenther@suse.de>
9761
9762         PR tree-optimization/49651
9763         * tree-ssa-structalias.c (get_constraint_for_1): Properly
9764         handle dereferences with subvariables.
9765
9766 2011-07-14  Richard Guenther  <rguenther@suse.de>
9767
9768         * gimple-fold.c (fold_gimple_assign): Remove operand swapping.
9769         (fold_stmt_1): Do it here directly on gimple and as a first thing.
9770
9771 2011-07-14  Richard Guenther  <rguenther@suse.de>
9772
9773         * fold-const.c (fold_binary_loc): Convert the !bool_var result,
9774         not bool_var when folding bool_var != 1 or bool_var == 0.
9775
9776 2011-07-14  Bernd Schmidt  <bernds@codesourcery.com>
9777
9778         * haifa-sched.c (schedule_insns): Remove outdated comment.
9779         (schedule_block): When computing a known value for TODO_SPEC,
9780         just set it rather than using logical operations.
9781         (try_ready): Likewise.  Use a local variable rather than a
9782         pointer to TODO_SPEC.  Reorder an if statement to move the
9783         easy case to the then block.
9784         * sched-deps.c (dep_spec_p): New static function.
9785         (update_dep): Use it to decide whether to call
9786         change_spec_dep_to_hard.
9787         (get_back_and_forw_lists): Use it.
9788         (sd_resolve_dep): Likewise.
9789         (init_dep): If !USE_DEPS_LIST, use zero to initialize status.
9790         (haifa_note_mem_dep): Likewise.
9791         (check_dep): Likewise.
9792         (sd_add_dep): Also clear SPECULATIVE bits if not DO_SPECULATION.
9793         (sched_free_deps): Free in two passes.
9794
9795 2011-07-14  Richard Sandiford  <richard.sandiford@linaro.org>
9796
9797         PR middle-end/49736
9798         * expr.c (all_zeros_p): Undo bogus part of last change.
9799
9800 2011-07-14  Matthias Klose <doko@ubuntu.com>
9801
9802         * doc/extend.texi (optimize attribute): Fix typo.
9803
9804 2011-07-14  Richard Guenther  <rguenther@suse.de>
9805
9806         * gimplify.c (gimplify_expr): Only do required conversions.
9807
9808 2011-07-14  Georg-Johann Lay  <avr@gjlay.de>
9809
9810         PR target/43746
9811         * config/avr/elf.h (TARGET_ASM_SELECT_SECTION): Remove,
9812         i.e. use default_elf_select_section.
9813         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Remove.
9814         (READONLY_DATA_SECTION_ASM_OP): Remove.
9815         (TARGET_ASM_NAMED_SECTION): Move from here...
9816         * config/avr/avr.c: ...to here.
9817         (avr_asm_init_sections): Set unnamed callback of readonly_data_section.
9818         (avr_asm_named_section): Make static.
9819
9820 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9821
9822         PR bootstrap/49739
9823         * config.gcc (extra_parts): Add crtprec32.o crtprec64.o crtprec80.o
9824         and crtfastmath.o for Linux/x86.
9825
9826 2011-07-14  Bernd Schmidt  <bernds@codesourcery.com>
9827
9828         * haifa-sched.c: Include "hashtab.h"
9829         (sched_no_dce): New global variable.
9830         (INSN_EXACT_TICK, INSN_TICK_ESTIMATE, FEEDS_BACKTRACK_INSN,
9831         SHADOW_P): New macros.
9832         (last_clock_var, cycle_issued_insns): Move declarations.
9833         (must_backtrack): New static variable.
9834         (struct delay_pair): New structure.
9835         (delay_htab, delay_htab_i2): New static variables.
9836         (delay_hash_i1, delay_hash_i2, delay_i1_eq, delay_i2_eq,
9837         record_delay_slot_pair, pair_delay, add_delay_dependencies): New
9838         functions.
9839         (dep_cost_1): If delay pairs exist, try to look up the insns and
9840         use the correct pair delay if we find them.
9841         (rank-for_schedule): Tweak priority for insns that must be scheduled
9842         soon to avoid backtracking.
9843         (queue_insn): Detect conditions which force backtracking.
9844         (ready_add): Likewise.
9845         (struct sched_block_state): Add member shadows_only_p.
9846         (struct haifa_save_data): New structure.
9847         (backtrack_queue): New static variable.
9848         (mark_backtrack_feeds, copy_insn_list, save_backtrack_point,
9849         unschedule_insns_until, restore_last_backtrack_point,
9850         free_topmost_backtrack_point, free_backtrack_queue,
9851         estimate_insn_tick, estimate_shadow_tick): New functions.
9852         (prune_ready_list): New arg shadows_only_p.  All callers changed.
9853         If true, remove everything that isn't SHADOW_P.  Look up delay
9854         pairs and estimate ticks to avoid scheduling the first insn too early.
9855         (verify_shadows): New function.
9856         (schedule_block): Add machinery to enable backtracking.
9857         (sched_init): Take sched_no_dce into account when setting
9858         DF_LR_RUN_DCE.
9859         (free_delay_pairs): New function.
9860         (init_h_i_d): Initialize INSN_EXACT_TICK.
9861         * Makefile.in (haifa-sched.o): Add $(HASHTAB_H).
9862         * sched-deps.c (sd_unresolve_dep): New function.
9863         * sched-int. (struct haifa_sched_info): New fields save_state
9864         and restore_state.
9865         (struct _haifa_insn_data): New fields exact_tick, tick_estimate,
9866         feeds_backtrack_insn and shadow_p.
9867         (DO_BACKTRACKING): New value in enum SCHED_FLAGS.
9868         (sched_no_dce): Declare variable.
9869         (record_delay_slot_pair, free_delay_pairs, add_delay_dependencies,
9870         sd_unresolve_dep): Declare functions.
9871         * modulo-sched.c (sms_sched_info): Clear the two new fields.
9872         * sched-rgn.c (rgn_const_sched_info): Likewise.
9873         * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
9874         * sched-ebb.c (save_ebb_state, restore_ebb_state): New functions.
9875         (ebb_sched_info): Add them for the two new fields.
9876         (add_deps_for_risky_insns): Call add_delay_dependencies.
9877
9878 2011-07-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
9879
9880         * config/rs6000/rs6000.opt (-mpointers-to-nested-functions):
9881         Rename -mr11.
9882         * config/rs6000/rs6000.c (rs6000_trampoline_init): Ditto.
9883         (rs6000_call_indirect_aix): Ditto.
9884         * config/rs6000/rs6000.md (call_indirect_aix<ptrsize>): Ditto.
9885         (call_indirect_aix<ptrsize>_internal): Ditto.
9886         (call_indirect_aix<ptrsize>_nor11): Ditto.
9887         (call_indirect_aix<ptrsize>_internal2): Ditto.
9888         (call_value_indirect_aix<ptrsize>): Ditto.
9889         (call_value_indirect_aix<ptrsize>_internal): Ditto.
9890         (call_value_indirect_aix<ptrsize>_nor11): Ditto.
9891         (call_value_indirect_aix<ptrsize>_internal2): Ditto.
9892         * doc/invoke.texi (RS/6000 and PowerPC Options): Ditto.
9893
9894 2011-07-13  Jason Merrill  <jason@redhat.com>
9895
9896         * Makefile.in ($(lang_checks_parallelized)): Allow --tool_opts.
9897
9898 2011-07-13  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9899
9900         * config/spu/spu.c (spu_init_libfuncs): Install __clrsbdi2.
9901         * config/spu/spu.md ("clrsb<mode>2"): New expander.
9902
9903 2011-07-13  Thomas Schwinge  <thomas@schwinge.name>
9904
9905         * acinclude.m4 (gcc_GAS_CHECK_FEATURE): Use AS_ECHO instead of echo.
9906         * configure: Regenerate.
9907
9908 2011-07-13  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9909
9910         * config/spu/spu.c (TARGET_ASM_FILE_START): Do not define.
9911         (asm_file_start): Remove.
9912         (spu_machine_dependent_reorg): Call compute_bb_for_insn and
9913         free_bb_for_insn around code that modifies insns before
9914         restarting df analysis.
9915
9916 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9917
9918         PR target/49541
9919         * config/sol2.h (LIB_SPEC): Simplify.  Move LIB_THREAD_LDFLAGS_SPEC ...
9920         (LINK_SPEC): ... here.
9921
9922 2011-07-13  Bernd Schmidt  <bernds@codesourcery.com>
9923
9924         * haifa-sched.c (struct sched_block_state): New.
9925         (schedule_block): Move some local variables into such a structure.
9926
9927 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9928
9929         * config/i386/crtprec.c: Move to ../libgcc/config/i386.
9930         * config/i386/t-crtpc: Remove.
9931         * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
9932         * config.gcc (i[34567]86-*-darwin*): Remove i386/t-crtpc from
9933         tmake_file.
9934         (x86_64-*-darwin*): Likewise.
9935         (i[34567]86-*-linux*): Likewise.
9936         (x86_64-*-linux*): Likewise.
9937
9938         * config/i386/sol2.h (ENDFILE_SPEC): Redefine.
9939         Handle -mpc32, -mpc64, -mpc80.
9940
9941 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9942
9943         * config/alpha/crtfastmath.c: Move to ../libgcc/config/alpha.
9944         * config/alpha/t-crtfm: Remove.
9945         * config/i386/crtfastmath.c: Move to ../libgcc/config/i386.
9946         * config/i386/t-crtfm: Remove.
9947         * config/ia64/crtfastmath.c: Move to ../libgcc/config/ia64.
9948         * config/mips/crtfastmath.c: Move to ../libgcc/config/mips.
9949         * config/sparc/crtfastmath.c: Move to ../libgcc/config/sparc.
9950         * config/sparc/t-crtfm: Remove.
9951
9952         * config.gcc (alpha*-*-linux*): Remove alpha/t-crtfm from tmake_file.
9953         (alpha*-*-freebsd*): Likewise.
9954         (i[34567]86-*-darwin*): Remove i386/t-crtfm from tmake_file.
9955         (x86_64-*-darwin*): Likewise.
9956         (i[34567]86-*-linux*): Likewise.
9957         (x86_64-*-linux*): Likewise.
9958         (x86_64-*-mingw*): Likewise.
9959         (ia64*-*-elf*): Remove crtfastmath.o from extra_parts.
9960         (ia64*-*-freebsd*): Likewise.
9961         (ia64*-*-linux*): Likewise.
9962         (mips64*-*-linux*): Likewise.
9963         (mips*-*-linux*): Likewise.
9964         (sparc-*-linux*): Remove sparc/t-crtfm from tmake_file.
9965         (sparc64-*-linux*): Likewise.
9966         (sparc64-*-freebsd*): Likewise.
9967
9968 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9969
9970         * config/darwin-crt2.c: Move to ../libgcc/config/rs6000.
9971         * config/darwin-crt3.c: Move to ../libgcc/config.
9972         * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
9973         ($(T)crt3$(objext)): Remove.
9974         * config/rs6000/t-darwin (DARWIN_EXTRA_CRT_BUILD_CFLAGS): Remove.
9975         ($(T)crt2$(objext)): Remove.
9976         * config.gcc (powerpc-*-darwin*): Remove extra_parts.
9977         (powerpc64-*-darwin*): Likewise.
9978
9979 2011-07-13  H.J. Lu  <hongjiu.lu@intel.com>
9980
9981         * config/i386/i386.c (x86_output_mi_thunk): Support ptr_mode != Pmode.
9982
9983         * config/i386/i386.md (*addsi_1_zext): Renamed to ...
9984         (addsi_1_zext): This.
9985
9986 2011-07-13  Bernd Schmidt  <bernds@codesourcery.com>
9987
9988         * doc/tm.texi.in (TARGET_ASM_MERGEABLE_RODATA_PREFIX): Add hook.
9989         * doc/tm.texi: Regenerate.
9990         * target.def (mergeable_rodata_prefix): New defhookpod.
9991         * varasm.c (mergeable_string_section, mergeable_constant_section):
9992         Use it. Allocate name with alloca.
9993
9994 2011-07-13  H.J. Lu  <hongjiu.lu@intel.com>
9995
9996         * doc/invoke.texi (x86): Remove -mfused-madd and add -mfma.
9997
9998 2011-07-13  Richard Sandiford  <richard.sandiford@linaro.org>
9999
10000         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Tighten
10001         overlap check.
10002
10003 2011-07-13  Richard Sandiford  <richard.sandiford@linaro.org>
10004
10005         * tree.h (categorize_ctor_elements): Remove comment.  Fix long line.
10006         (count_type_elements): Delete.
10007         (complete_ctor_at_level_p): Declare.
10008         * expr.c (flexible_array_member_p): New function, split out from...
10009         (count_type_elements): ...here.  Make static.  Replace allow_flexarr
10010         parameter with for_ctor_p.  When for_ctor_p is true, return the
10011         number of elements that should appear in the top-level constructor,
10012         otherwise return an estimate of the number of scalars.
10013         (categorize_ctor_elements): Replace p_must_clear with p_complete.
10014         (categorize_ctor_elements_1): Likewise.  Use complete_ctor_at_level_p.
10015         (complete_ctor_at_level_p): New function, borrowing union logic
10016         from old categorize_ctor_elements_1.
10017         (mostly_zeros_p): Return true if the constructor is not complete.
10018         (all_zeros_p): Update call to categorize_ctor_elements.
10019         * gimplify.c (gimplify_init_constructor): Update call to
10020         categorize_ctor_elements.  Don't call count_type_elements.
10021         Unconditionally prevent clearing for variable-sized types,
10022         otherwise rely on categorize_ctor_elements to detect
10023         incomplete initializers.
10024
10025 2011-07-13  Richard Guenther  <rguenther@suse.de>
10026
10027         * tree-vrp.c (simplify_conversion_using_ranges): Make sure
10028         the final type is integral.
10029
10030 2011-07-13  Bernd Schmidt  <bernds@codesourcery.com>
10031
10032         * sched-int.h (struct _dep): Add member cost.
10033         (DEP_COST, UNKNOWN_DEP_COST): New macros.
10034         * sched-deps.c (init_dep_1): Initialize DEP_COST.
10035         * haifa-sched.c (dep_cost_1): Use and set DEP_COST.
10036         (sched_change_pattern): Reset it for dependent insns.
10037
10038 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10039
10040         * Makefile.in (CRT0STUFF_T_CFLAGS): Remove.
10041         ($(T)crt0.o, $(T)mcrt0.o, s-crt0): Remove.
10042         * config/i386/netware-crt0.c: Move to ../libgcc/config/i386.
10043         * config/i386/t-nwld (CRTSTUFF_T_CFLAGS, CRT0STUFF_T_CFLAGS): Remove.
10044         (CRT0_S, MCRT0_S): Remove.
10045         ($(T)libgcc.def, $(T)libc.def, $(T)libcpre.def, $(T)posixpre.def):
10046         Remove.
10047         (s-crt0): Remove.
10048         * config.gcc (i[3456x]86-*-netware*): Remove extra_parts.
10049
10050 2011-07-12  Eric Botcazou  <ebotcazou@adacore.com>
10051
10052         * cse.c (insert_with_costs): Put semi-colon after empty loop body
10053         on the next line.
10054         * emit-rtl.c (push_to_sequence): Likewise.
10055         * haifa-sched.c (max_issue): Likewise.
10056         * matrix-reorg.c (add_allocation_site): Likewise.
10057         * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
10058         * reload.c (alternative_allows_const_pool_ref): Likewise.
10059         * sched-rgn.c (rgn_add_block): Likewise.
10060         (rgn_fix_recovery_cfg): Likewise.
10061         * tree.c (attribute_list_contained): Likewise.
10062
10063 2011-07-12  Uros Bizjak  <ubizjak@gmail.com>
10064
10065         * config/i386/i386.c: Tidy processor feature bitmasks.
10066         (m_P4_NOCONA): New.
10067
10068 2011-07-12  Andrew Pinski  <pinskia@gmail.com>
10069
10070         PR rtl-opt/49474
10071         * cprop.c (find_implicit_sets): Correct the condition.
10072
10073 2011-07-12  Richard Henderson  <rth@redhat.com>
10074
10075         PR target/49713
10076         * dwarf2out.h (dwarf_frame_regnum): Remove.
10077         * dwarf2out.c (based_loc_descr): Revert last change.  Initialize regno
10078         earlier from DWARF_FRAME_REGNUM.  Never use dbx_reg_number.
10079         * dwarf2cfi.c (dw_stack_pointer_regnum, dw_frame_pointer_regnum): New.
10080         (execute_dwarf2_frame): Initialize them.
10081         (DW_STACK_POINTER_REGNUM, DW_FRAME_POINTER_REGNUM): Remove; replace
10082         users of the macros with the variables.
10083         (expand_builtin_dwarf_sp_column): Revert last change.
10084         (expand_builtin_init_dwarf_reg_sizes): Likewise.  Compute the
10085         result of DWARF_FRAME_REGNUM into a local variable.
10086
10087 2011-07-12  Richard Henderson  <rth@redhat.com>
10088
10089         PR target/49714
10090         * config/i386/i386.c (x86_output_mi_thunk): Use
10091         machopic_indirect_call_target instead of machopic_indirection_name
10092         directly.
10093
10094 2011-07-12  Laurent GUERBY  <laurent@guerby.net>
10095             Eric Botcazou  <ebotcazou@adacore.com>
10096
10097         * prefix.h: Wrap up in extern "C" block.
10098
10099 2011-07-12  Harsha Jagasia  <harsha.jagasia@amd.com>
10100
10101         AMD bdver2 Enablement
10102         * config.gcc (i[34567]86-*-linux* | ...): Add bdver2.
10103         (case ${target}): Add bdver2.
10104         * config/i386/driver-i386.c (host_detect_local_cpu): Let
10105         -march=native recognize bdver2 processors.
10106         * config/i386/i386-c.c (ix86_target_macros_internal): Add
10107         bdver2 def_and_undef
10108         * config/i386/i386.c (struct processor_costs bdver2_cost): New
10109         bdver2 cost table.
10110         (m_BDVER2): New definition.
10111         (m_AMD_MULTIPLE): Includes m_BDVER2.
10112         (initial_ix86_tune_features): Add bdver2 tuning.
10113         (processor_target_table): Add bdver2 entry.
10114         (static const char *const cpu_names): Add bdver2 entry.
10115         (ix86_option_override_internal): Add bdver2 instruction sets.
10116         (ix86_issue_rate): Add bdver2.
10117         (ix86_adjust_cost): Add bdver2.
10118         (has_dispatch): Add bdver2.
10119         * config/i386/i386.h (TARGET_BDVER2): New definition.
10120         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_bdver2.
10121         (enum processor_type): Add PROCESSOR_BDVER2.
10122         * config/i386/i386.md (define_attr "cpu"): Add bdver2.
10123         * config/i386/i386.opt ( mdispatch-scheduler): Add bdver2 to
10124         description.
10125
10126 2011-07-12  Richard Henderson  <rth@redhat.com>
10127
10128         PR target/49714
10129         * config/i386/i386.c (x86_output_mi_thunk): Fix mode for
10130         destination address in memory on some paths.
10131
10132 2011-07-12  Bernd Schmidt  <bernds@codesourcery.com>
10133
10134         * doc/tm.texi.in (FUNCTION_ARG_PADDING): Mention
10135         TARGET_FUNCTION_ARG_ROUND_BOUNDARY.
10136         (TARGET_FUNCTION_ARG_ROUND_BOUNDARY): Add hook.
10137         * function.c (locate_and_pad_parm): Take it into account.
10138         * target.def (function_arg_round_boundary): New hook.
10139         * targhooks.c (default_function_arg_round_boundary): New function.
10140         * targhooks.h (default_function_arg_round_boundary): Declare.
10141         * doc/tm.texi: Regenerate.
10142
10143 2011-07-12  Richard Guenther  <rguenther@suse.de>
10144
10145         * tree-ssa-copyrename.c (rename_ssa_copies): Zero statistics.
10146         Do not perform no-op changes.
10147
10148 2011-07-12  Richard Sandiford  <richard.sandiford@linaro.org>
10149
10150         * config/arm/predicates.md (neon_struct_operand): Make a normal
10151         predicate.
10152         (neon_struct_or_register_operand): New predicate.
10153         * config/arm/neon.md (movmisalign<mode>): Replace predicates
10154         with neon_struct_or_register_operand.
10155         (*movmisalign<mode>_neon_store, *movmisalign<mode>_neon_load): Use
10156         neon_struct_operand instead of memory_operand.
10157
10158 2011-07-12  Martin Jambor  <mjambor@suse.cz>
10159
10160         * cgraph.h (cgraph_get_node_or_alias): Removed declaration.
10161         * cgraph.c (cgraph_get_node_or_alias): Removed.
10162         (change_decl_assembler_name): Changed all calls to
10163         cgraph_get_node_or_alias to a call to cgraph_get_node.
10164         (cgraph_make_decl_local): Likewise.
10165         * lto-symtab.c (lto_symtab_resolve_symbols): Likewise.
10166         * varasm.c (default_binds_local_p_1): Likewise.
10167         (decl_binds_to_current_def_p): Likewise.
10168
10169 2011-07-12  Jakub Jelinek  <jakub@redhat.com>
10170
10171         PR tree-optimization/49712
10172         * tree-ssa-loop-im.c (gen_lsm_tmp_name): Handle TARGET_MEM_REF.
10173
10174 2011-07-11  Bernd Schmidt  <bernds@codesourcery.com>
10175
10176         * genautomata.c (add_arc): Return void.  All callers changed.
10177         (make_automaton): Remove dead code.
10178
10179 2011-07-11  Richard Henderson  <rth@redhat.com>
10180
10181         * dwarf2cfi.c (DW_STACK_POINTER_REGNUM): New.
10182         (DW_FRAME_POINTER_REGNUM): New.
10183         (expand_builtin_init_dwarf_reg_sizes): Use unsigned for rnum.
10184         (def_cfa_1): Do not convert reg to DWARF_FRAME_REGNUM here.
10185         (dwf_regno): New.
10186         (dwarf2out_flush_queued_reg_saves, dwarf2out_frame_debug_def_cfa,
10187         dwarf2out_frame_debug_adjust_cfa, dwarf2out_frame_debug_cfa_register,
10188         dwarf2out_frame_debug_cfa_expression, dwarf2out_frame_debug_expr):
10189         Use it.
10190         * dwarf2out.c (based_loc_descr): Use dwarf_frame_regnum.
10191         * dwarf2out.h (dwarf_frame_regnum): New.
10192         (struct cfa_loc): Document the domain of the reg member.
10193
10194 2011-07-11  Uros Bizjak  <ubizjak@gmail.com>
10195
10196         * config/i386/i386.c (ix86_trampoline_init): Switch arms of if expr.
10197         Use offset everywhere.  Always assert that offset <= TRAMPOLINE_SIZE.
10198
10199 2011-07-11  Jakub Jelinek  <jakub@redhat.com>
10200
10201         PR debug/49676
10202         * dwarf2out.c (int_shift_loc_descriptor): New function.
10203         (int_loc_descriptor): If shorter, emit i as
10204         (i >> shift), shift, DW_OP_shl for suitable shift value.
10205         Similarly, try to optimize large negative values using
10206         DW_OP_neg of a positive value if shorter.
10207         (size_of_int_shift_loc_descriptor): New function.
10208         (size_of_int_loc_descriptor): Adjust to match int_loc_descriptor
10209         changes.
10210         (mem_loc_descriptor) <case CONST_INT>: Emit zero-extended constants
10211         that fit into DWARF2_ADDR_SIZE bytes as int_loc_descriptor +
10212         DW_OP_GNU_convert instead of DW_OP_GNU_const_type if the former
10213         is shorter.
10214         (resolve_addr_in_expr): Optimize DW_OP_plus_uconst with a large
10215         addend as added DW_OP_plus if it is shorter.
10216
10217 2011-07-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10218
10219         * config/i386/sol2.h [!USE_GLD] (CTORS_SECTION_ASM_OP): Define.
10220         (DTORS_SECTION_ASM_OP): Define.
10221
10222 2011-07-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10223
10224         * config/dfp-bit.c, config/dfp-bit.h: Move to ../libgcc.
10225         * config/t-dfprules: Move to ../libgcc/config.
10226         * config.gcc (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
10227         i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
10228         i[34567]86-*-kopensolaris*-gnu): Remove t-dfprules from tmake_file.
10229         (x86_64-*-linux*, x86_64-*-kfreebsd*-gnu, x86_64-*-knetbsd*-gnu):
10230         Likewise.
10231         (i[34567]86-*-cygwin*): Likewise.
10232         (i[34567]86-*-mingw*,  x86_64-*-mingw*): Likewise.
10233         (powerpc-*-linux*, powerpc64-*-linux*): Likewise.
10234         * Makefile.in (D32PBIT_FUNCS, D64PBIT_FUNCS, D128PBIT_FUNCS): Remove.
10235         (libgcc.mvars): Remove DFP_ENABLE, DFP_CFLAGS, D32PBIT_FUNCS,
10236         D64PBIT_FUNCS, D128PBIT_FUNCS.
10237
10238 2011-07-11  Richard Guenther  <rguenther@suse.de>
10239
10240         * tree-vrp.c (simplify_conversion_using_ranges): Manually
10241         translate the source value-range through the conversion chain.
10242
10243 2011-07-11  Richard Sandiford  <richard.sandiford@linaro.org>
10244
10245         * expr.c (expand_expr_real_1): Use expand_insn for movmisalign.
10246
10247 2011-07-11  Arthur Loiret  <aloiret@debian.org>
10248
10249         * config.gcc (s390-*-linux*): If 'enabled_targets' is 'all', build
10250         a bi-arch compiler defaulting to 31-bit. In this case:
10251         (tmake_file): Add s390/t-linux64.
10252         * doc/install.texi: Add s390-linux to the list of targets supporting
10253         --enable-targets=all.
10254
10255 2011-07-11  Arthur Loiret  <aloiret@debian.org>
10256             Matthias Klose <doko@debian.org>
10257
10258         * config.gcc (mips*-*-linux*): If 'enabled_targets' is 'all', build
10259         a tri-arch compiler defaulting to 32-bit (ABI o32). In this case:
10260         (tm_file): Add mips/linux64.h.
10261         (tmake_file): Add mips/t-linux64.
10262         (tm_defines): Add MIPS_ABI_DEFAULT=ABI_32.
10263         * config/mips/linux64.h (DRIVER_SELF_SPECS): Use MULTILIB_ABI_DEFAULT
10264         instead of hardcoded mabi=n32.
10265         * config/mips/t-linux64 (MULTILIB_DIRNAMES): Set to 'n32 . 64' if
10266         tm_defines contains MIPS_ABI_DEFAULT ABI_32, to follow the glibc
10267         convention.
10268
10269 2011-07-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10270
10271         * passes.c (init_optimization_passes): Add invariant motion pass
10272         after induction variable optimization.
10273
10274 2011-07-11  Georg-Johann Lay  <avr@gjlay.de>
10275
10276         PR target/39633
10277         * config/avr/avr.c (notice_update_cc): For ashiftrt:QI, only
10278         offsets 1..5 set cc0 in a usable way.
10279
10280 2011-07-11  Romain Geissler  <romain.geissler@gmail.com>
10281
10282         * tree.h (call_expr_arg): Remove.
10283         (call_expr_argp): Likewise.
10284
10285 2011-07-11  Eric Botcazou  <ebotcazou@adacore.com>
10286
10287         * config/sparc/sparc.md (save_register_window_1): Rename to...
10288         (window_save): ...this.
10289         * config/sparc/sparc.c (emit_save_register_window): Rename to...
10290         (emit_window_save): ...this.
10291         (sparc_expand_prologue): Adjust to above renaming.
10292
10293 2011-07-10  H.J. Lu  <hongjiu.lu@intel.com>
10294
10295         * config/i386/i386.c (ix86_trampoline_init): Use movl instead
10296         of movabs for x32.
10297
10298 2011-07-10  Richard Henderson  <rth@redhat.com>
10299
10300         * config/i386/i386.c (x86_output_mi_thunk): Generate rtl and
10301         run final, instead of emitting text directly.
10302
10303 2011-07-10  H.J. Lu  <hongjiu.lu@intel.com>
10304
10305         * config/i386/i386.c (ix86_option_override_internal): Turn on
10306         OPTION_MASK_ISA_64BIT for TARGET_X32.  Only allow small and
10307         small PIC models for TARGET_X32.
10308
10309 2011-07-10  Hans-Peter Nilsson  <hp@axis.com>
10310
10311         PR target/49684
10312         * config/cris/t-elfmulti (CRTSTUFF_T_CFLAGS): Don't include
10313         $(LIBGCC2_CFLAGS).
10314
10315         PR bootstrap/49680
10316         * config/cris/cris.c (cris_asm_output_case_end): Robustify against
10317         stray notes and debug insns by using prev_nonnote_nondebug_insn
10318         instead of PREV_INSN.
10319
10320 2011-07-09  Richard Henderson  <rth@redhat.com>
10321
10322         * defaults.h (DWARF2_ADDR_SIZE, DWARF_OFFSET_SIZE,
10323         DWARF_TYPE_SIGNATURE_SIZE): Move from ...
10324         * dwarf2out.c: ... here.
10325         (output_all_cfis): Remove.
10326         (dwarf2out_switch_text_section): Use output_cfis directly.
10327         (size_of_locs): Export.
10328         (output_loc_sequence, output_loc_sequence_raw): Export.
10329         (div_data_align, need_data_align_sf_opcode, dwarf_cfi_name, output_cfi,
10330         output_cfi_directive, dwarf2out_emit_cfi, output_cfis, output_cfa_loc,
10331         output_cfa_loc_raw): Move to ...
10332         * dwarfcfi.c: ... here.
10333         * dwarf2out.h: Update decls.
10334
10335 2011-07-09  Richard Henderson  <rth@redhat.com>
10336
10337         * defaults.h (DWARF_CIE_DATA_ALIGNMENT, DWARF_FRAME_RETURN_COLUMN,
10338         DWARF_FRAME_REGNUM, DWARF2_FRAME_REG_OUT): Move from ...
10339         * dwarf2cfi.c: ... here.
10340         (PTR_SIZE, DWARF_OFFSET_SIZE, DWARF_INITIAL_LENGTH_SIZE): Remove.
10341         (DWARF_ROUND, DWARF_CIE_ID): Remove.
10342         * dwarf2out.c (INCOMING_RETURN_ADDR_RTX): Remove.
10343         (DWARF2_FRAME_REG_OUT, DWARF_CIE_DATA_ALIGNMENT): Remove.
10344         (DWARF_FRAME_RETURN_COLUMN, DWARF_FRAME_REGNUM): Remove.
10345
10346 2011-07-09  Richard Henderson  <rth@redhat.com>
10347
10348         * dwarf2cfi.c (cie_return_save): New.
10349         (queue_reg_save): Use compare_reg_or_pc.
10350         (dwarf2out_flush_queued_reg_saves): Handle pc_rtx as return column.
10351         (dwarf2out_frame_debug_expr): Likewise.
10352         (dwarf2out_frame_debug_cfa_register): Record saved reg for pc too.
10353         (initial_return_save): Likewise.
10354         (execute_dwarf2_frame): Save and restore initial return save from
10355         the cie to the fde.
10356         * config/mips/mips.c (mips_frame_set): Remove special case for
10357         DWARF_FRAME_RETURN_COLUMN.
10358
10359 2011-07-09  Richard Henderson  <rth@redhat.com>
10360
10361         * dwarf2cfi.c (lookup_cfa): Remove.
10362         (execute_dwarf2_frame): Assert queues are empty on entry.
10363         Setup initial cfa directly, not via lookup_cfa.
10364         Don't clear args_size state here.
10365
10366 2011-07-09  Richard Henderson  <rth@redhat.com>
10367
10368         * dwarf2cfi.c (add_cfi_vec): New.
10369         (add_cfi): Rename from add_fde_cfi.  Add the element to add_cfi_vec.
10370         (def_cfa_1, reg_save): Remove for_cie argument.  Update all callers.
10371         (execute_dwarf2_frame): Set add_cfi_vec.
10372
10373 2011-07-09  Richard Henderson  <rth@redhat.com>
10374
10375         * defaults.h (ASM_COMMENT_START): Move here...
10376         * dwarf2asm.c: ... from here.
10377         * dwarf2out.c, final.c, vmsdbgout.c: Remove duplicates.
10378         * toplev.c: Remove ifndef tests of ASM_COMMENT_START.
10379         * varasm.c: Likewise.
10380
10381 2011-07-09  Richard Henderson  <rth@redhat.com>
10382
10383         PR debug/49686
10384         * dwarf2cfi.c (dwarf2out_frame_debug): Don't set cfi_insn here...
10385         (create_cfi_notes): ... do it here instead.
10386
10387 2011-07-09  Jakub Jelinek  <jakub@redhat.com>
10388
10389         PR debug/49676
10390         * dwarf2out.c (size_of_int_loc_descriptor): New function.
10391         (address_of_int_loc_descriptor): Use it.
10392         (scompare_loc_descriptor): Optimize EQ/NE comparison with constant.
10393
10394 2011-07-09  Richard Henderson  <rth@redhat.com>
10395
10396         * config/pdp11/pdp11.md (define_c_enum "unspecv"): New.
10397         (prologue, epilogue): New.
10398         (return, *rts): New.
10399         (blockage, setd, seti): New.
10400         * config/pdp11/pdp11.c (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
10401         (TARGET_ASM_FUNCTION_EPILOGUE): Remove.
10402         (pdp11_saved_regno): New.
10403         (pdp11_expand_prologue): Rename from pdp11_output_function_prologue;
10404         generate rtl instead of text.
10405         (pdp11_expand_epilogue): Similarly from pdp11_output_function_epilogue.
10406         (pdp11_sp_frame_offset): Export.  Use pdp11_saved_regno.
10407         * config/pdp11/pdp11-protos.h: Update.
10408
10409 2011-07-09  Richard Henderson  <rth@redhat.com>
10410
10411         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Don't
10412         try to insert an rtl prologue here.
10413         (rs6000_output_function_epilogue): Similarly.
10414         * config/rs6000/rs6000.md (prologue): Emit a barrier to
10415         satisfy !TARGET_SCHED_PROLOG.
10416         (epilogue, sibcall_epilogue): Likewise.
10417
10418 2011-07-09  Eric Botcazou  <ebotcazou@adacore.com>
10419
10420         * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Move around.
10421         (FP_REG_P): Delete.
10422         (IN_OR_GLOBAL_P): Likewise.
10423
10424 2011-07-08  Jason Merrill  <jason@redhat.com>
10425
10426         PR c++/45437
10427         * gimplify.c (goa_stabilize_expr): Handle RHS preevaluation in
10428         compound assignment.
10429
10430         * cgraph.c (cgraph_add_to_same_comdat_group): New.
10431         * cgraph.h: Declare it.
10432         * ipa.c (function_and_variable_visibility): Make sure thunks
10433         have the right visibility.
10434
10435 2011-07-08  Richard Henderson  <rth@redhat.com>
10436
10437         PR bootstrap/49680
10438         * dwarf2cfi.c (dwarf2out_frame_debug): Insert cfi notes after
10439         any tablejump vector.
10440
10441         PR bootstrap/49680
10442         * dwarf2cfi.c (create_cfi_notes): Flush queued saves at the
10443         end of the prologue.
10444
10445 2011-07-08  Jakub Jelinek  <jakub@redhat.com>
10446
10447         PR target/49621
10448         * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Use
10449         CONST0_RTX (dest_mode) instead of const0_rtx as second operand of NE.
10450         * config/rs6000/vector.md (vector_select_<mode>,
10451         vector_select_<mode>_uns): Change second operand of NE to
10452         CONST0_RTX (<MODE>mode) instead of const0_rtx.
10453         * config/rs6000/altivec.md (*altivec_vsel<mode>,
10454         *altivec_vsel<mode>_uns): Expect second operand of NE to be
10455         zero_constant of the corresponding vector mode.
10456         * config/rs6000/vsx.md (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns):
10457         Likewise.
10458
10459 2011-07-08  Sebastian Pop  <sebastian.pop@amd.com>
10460
10461         * graphite-dependences.c (build_alias_set_powerset): Remove
10462         continue from loop, add one more assert.
10463
10464 2011-07-08  Georg-Johann Lay  <avr@gjlay.de>
10465
10466         PR target/46779
10467         * config/avr/avr.c (avr_hard_regno_mode_ok): Rewrite.
10468         In particular, allow 8-bit values in r28 and r29.
10469         (avr_hard_regno_scratch_ok): Disallow any register that might be
10470         part of the frame pointer.
10471         (avr_hard_regno_rename_ok): Same.
10472         (avr_legitimate_address_p): Don't allow SUBREGs.
10473
10474 2011-07-08  Julian Brown  <julian@codesourcery.com>
10475
10476         * config/arm/neon.md (vec_shr_<mode>, vec_shl_<mode>): Disable in
10477         big-endian mode.
10478         (reduc_splus_<mode>, reduc_uplus_<mode>, reduc_smin_<mode>)
10479         (reduc_smax_<mode>, reduc_umin_<mode>, reduc_umax_<mode>)
10480         (neon_vec_unpack<US>_lo_<mode>, neon_vec_unpack<US>_hi_<mode>)
10481         (vec_unpack<US>_hi_<mode>, vec_unpack<US>_lo_<mode>)
10482         (neon_vec_<US>mult_lo_<mode>, vec_widen_<US>mult_lo_<mode>)
10483         (neon_vec_<US>mult_hi_<mode>, vec_widen_<US>mult_hi_<mode>)
10484         (vec_pack_trunc_<mode>, neon_vec_pack_trunc_<mode>): Disable for Q
10485         registers in big-endian mode.
10486
10487 2011-07-08  Bernd Schmidt  <bernds@codesourcery.com>
10488
10489         * genattrtab.c (evaluate_eq_attr): Allow an attribute to be defined
10490         in terms of another.
10491         (write_attr_value): Write a cast if necessary.
10492
10493         * defaults.h (REG_WORDS_BIG_ENDIAN): Provide a default.
10494         * doc/tm.texi.in (WORDS_BIG_ENDIAN): Mention REG_WORDS_BIG_ENDIAN.
10495         (REG_WORDS_BIG_ENDIAN): Document.
10496         * doc/tm.texi: Regenerate.
10497         * reload.c (operands_match_p): Take it into account.
10498         (reload_adjust_reg_for_mode): Likewise.
10499         * rtlanal.c (subreg_get_info): Likewise.
10500
10501 2011-07-08  Richard Guenther  <rguenther@suse.de>
10502
10503         * fold-const.c (fold_binary_loc): Remove index +p PTR -> PTR +p index
10504         folding.
10505
10506 2011-07-08  Kai Tietz  <ktietz@redhat.com>
10507
10508         * fold-const.c (fold_truth_andor): Factored out truth_andor
10509         label from fold_binary as function.
10510         (fold_binary_loc): Replace truth_andor lable
10511         by function fold_truth_andor.
10512
10513 2011-07-08  Kirill Yukhin  <kirill.yukhin@intel.com>
10514
10515         PR middle-end/49519
10516         * calls.c (mem_overlaps_already_clobbered_arg_p): Additional
10517         check if address is stored in register. If so - give up.
10518         (check_sibcall_argument_overlap_1): Do not perform check of
10519         overlapping when it is call to address.
10520
10521 2011-07-08  Georg-Johann Lay  <avr@gjlay.de>
10522
10523         * config/avr/avr.c (output_reload_insisf): Use 'REG_Z+1' instead
10524         of magic '31'.
10525
10526 2011-07-08  Bernd Schmidt  <bernds@codesourcery.com>
10527
10528         * optabs.c (expand_binop): Use GET_MODE_PRECISION instead of
10529         GET_MODE_BITSIZE where appropriate.
10530         (widen_leading, expand_parity, expand_ctz, expand_ffs,
10531         expand_unop, expand_abs_nojump, expand_one_cmpl_abs_nojump,
10532         expand_float, expand_fix): Likewise.
10533         * expr.c (convert_move, convert_modes, expand_expr_real_2,
10534         expand_expr_real_1, reduce_to_bit_field_precision): Likewise.
10535         * stor-layout.c (get_mode_bounds): Likewise.
10536         * cfgexpand.c (convert_debug_memory_address, expand_debug_expr):
10537         Likewise.
10538         * convert.c (convert_to_integer): Likewise.
10539         * expmed.c (expand_shift_1): Likewise.
10540
10541         * rtlanal.c (nonzero_bits1): Don't compare GET_MODE_SIZE against
10542         a bitsize.
10543
10544         * optabs.c (expand_binop): Tighten conditions for doubleword
10545         expansions.
10546         (widen_bswap): Assert that mode bitsize and precision are the same.
10547         * stor-layout.c (get_best_mode): Skip modes that have lower
10548         precision than bitsize.
10549         * recog.c (simplify_while_replacing): Assert that bitsize and
10550         precision are the same.
10551
10552 2011-07-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10553
10554         * Makefile.in (LIBGCOV): Remove.
10555         (libgcc.mvars): Remove LIBGCOV.
10556         * libgov.c: Move to ../libgcc.
10557
10558 2011-07-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10559
10560         * config/fixed-bit.c, config/fixed-bit.h: Move to ../libgcc.
10561
10562 2011-07-08  Martin Jambor  <mjambor@suse.cz>
10563
10564         * tree-sra.c (analyze_all_variable_accesses): Dump that a struture
10565         is too big for total scalarization.
10566
10567 2011-07-07  Richard Henderson  <rth@redhat.com>
10568
10569         * config/alpha/elf.h (MIPS_DEBUGGING_INFO): Undef.
10570         (DBX_DEBUGGING_INFO): Undef.
10571
10572 2011-07-07  Richard Henderson  <rth@redhat.com>
10573
10574         * dwarf2out.c (output_cfi_directive): Export.  Add FILE parameter.
10575         Handle some opcodes specially for debugging.
10576         * print-rtl.c: Include dwarf2out.h
10577         (print_rtx): Handle NOTE_INSN_CFI.
10578         * Makefile.in (print-rtl.o): Update.
10579
10580 2011-07-07  Richard Henderson  <rth@redhat.com>
10581
10582         * tree-pass.h (pass_dwarf2_frame): Declare.
10583         * passes.c (init_optimization_passes): Add it.
10584         * dwarf2cfi.c (dwarf2out_frame_debug): Make static.
10585         (create_cfi_notes): Rename from dwarf2out_frame_debug_after_prologue;
10586         make static, do not call add_cfis_to_fde.
10587         (dwarf2out_frame_debug_init, dwarf2cfi_function_init,
10588         dwarf2out_frame_init): Merge into...
10589         (execute_dwarf2_frame): ... here.  New function.
10590         (dwarf2out_do_frame, dwarf2out_do_cfi_asm): Make boolean.  Change
10591         saved_do_cfi_asm to a tri-state variable.
10592         (gate_dwarf2_frame, pass_dwarf2_frame): New.
10593         * dwarf2out.c (dwarf2out_begin_prologue): Only allocate the fde
10594         if it has yet to be done.  Don't call dwarf2cfi_function_init.
10595         * dwarf2out.h, debug.h: Update decls.
10596         * final.c (final_start_function): Don't call
10597         dwarf2out_frame_debug_init or dwarf2out_frame_debug_after_prologue.
10598         * lto-streamer-in.c (lto_init_eh): Don't call dwarf2out_frame_init.
10599         * toplev.c (lang_dependent_init): Likewise.
10600
10601 2011-07-07  Richard Henderson  <rth@redhat.com>
10602
10603         * dwarf2out.c (fde_table, fde_table_allocated, fde_table_in_use,
10604         FDE_TABLE_INCREMENT): Replace with...
10605         (fde_vec): ... this, a new vector.
10606         (current_fde): Remove.  Replace all users with cfun->fde.
10607         (output_call_frame_info): Use FOR_EACH_VEC_ELT over fde_vec.
10608         (size_of_aranges, dwarf2out_finish): Likewise.
10609         (dwarf2out_alloc_current_fde): Break out from ...
10610         (dwarf2out_begin_prologue): ... here.
10611         (dwarf2out_frame_init): Remove.
10612         * dwarf2cfi.c: Update all users of current_fde.
10613         (dwarf2out_frame_init): Rename from dwarf2cfi_frame_init.
10614         * dwarf2out.h: Update decls.
10615         (dw_fde_node): Add fde_index member.
10616         * function.h (struct function): Add fde member.
10617
10618 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
10619             Richard Henderson  <rth@redhat.com>
10620
10621         * dwarf2cfi.c (add_cfi): Remove.
10622         (dwarf2out_cfi_label): Remove force argument.  Only generate the
10623         label name.
10624         (add_fde_cfi): Simplify the different code paths.
10625         (add_cie_cfi): New.
10626         (old_cfa, old_cfa_remember): New.
10627         (def_cfa_1, reg_save): Remove label, add for_cie parameter.
10628         (last_reg_save_label): Remove.
10629         (dwarf2out_args_size, dwarf2out_stack_adjust, queue_reg_save,
10630         dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
10631         dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
10632         dwarf2out_frame_debug_cfa_expression,
10633         dwarf2out_frame_debug_cfa_restore,
10634         dwarf2out_frame_debug_cfa_window_save,
10635         dwarf2out_frame_debug_expr): Remove label parameter.
10636         (cfi_label_required_p, add_cfis_to_fde): New.
10637         (dwarf2out_frame_debug_after_prologue): New.
10638         (dwarf2cfi_frame_init): Initialize old_cfa.
10639         (dwarf2out_frame_debug_restore_state): Likewise.
10640         * dwarf2out.c (dwarf2out_emit_cfi): Only do output for cfi_asm.
10641         (dwarf2out_switch_text_section): Don't clear dw_fde_current_label here.
10642         * final.c (final_start_function): Call
10643         dwarf2out_frame_debug_after_prologue.
10644
10645 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
10646             Richard Henderson  <rth@redhat.com>
10647
10648         * dwarf2cfi.c (cfi_insn): New.
10649         (dwarf2out_cfi_label): Don't emit cfi label here.
10650         (add_fde_cfi): Create a NOTE_INSN_CFI.
10651         (dwarf2out_frame_debug): Setup cfi_insn.
10652         (dwarf2out_frame_debug_init): Loop over insns creating CFI notes.
10653         (dwarf2out_cfi_begin_epilogue): Make static.
10654         (dwarf2out_frame_debug_restore_state): Make static.
10655         * dwarf2out.c (output_cfi_directive): Make static.
10656         (dwarf2out_emit_cfi): New.
10657         * dwarf2out.h: Update.
10658         * final.c (final): Remove CFI notes.
10659         (final_scan_insn): Don't call dwarf2out_cfi_begin_epilogue,
10660         dwarf2out_frame_debug_restore_state, dwarf2out_frame_debug.
10661         Handle NOTE_INSN_CFI and NOTE_INSN_CFI_LABEL.
10662         * insn-notes.def (NOTE_INSN_CFI): New.
10663         (NOTE_INSN_CFI_LABEL): New.
10664         * rtl.h (union rtunion_def): Add rt_cfi member.
10665         (XCFI, XCCFI, NOTE_CFI, NOTE_LABEL_NUMBER): New.
10666
10667 2011-07-07  Richard Henderson  <rth@redhat.com>
10668
10669         * dwarf2cfi.c: New file.
10670         * Makefile.in (OBJS): Add it.
10671         (GTFILES): Add dwarf2cfi.c and dwarf2out.h.
10672         * gengtype.c (open_base_files): Include dwarf2out.h.
10673         * coretypes.h (enum var_init_status): Move from ...
10674         * rtl.h: ... here.
10675         * dwarf2out.c (saved_do_cfi_asm, dwarf2out_do_frame,
10676         dwarf2out_do_cfi_asm, cie_cfi_vec, dwarf2out_cfi_label_num,
10677         expand_builtin_dwarf_sp_column, init_return_column_size,
10678         expand_builtin_init_dwarf_reg_sizes, new_cfi, add_cfi,
10679         dwarf2out_cfi_label, emit_cfa_remember, any_cfis_emitted, add_fde_cfi,
10680         lookup_cfa_1, lookup_cfa, cfa, cfa_store, cfa_remember, args_size,
10681         old_args_size, cfa_equal_p, def_cfa_1, reg_save, initial_return_save,
10682         stack_adjust_offset, barrier_args_size, compute_barrier_args_size_1,
10683         compute_barrier_args_size, dwarf2out_args_size,
10684         dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust,
10685         queued_reg_saves, reg_saved_in_data, regs_saved_in_regs,
10686         compare_reg_or_pc, record_reg_saved_in_reg, last_reg_save_label,
10687         queue_reg_save, dwarf2out_flush_queued_reg_saves,
10688         clobbers_queued_reg_save, reg_saved_in, cfa_temp,
10689         dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
10690         dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
10691         dwarf2out_frame_debug_cfa_expression,
10692         dwarf2out_frame_debug_cfa_restore,
10693         dwarf2out_frame_debug_cfa_window_save, dwarf2out_frame_debug_expr,
10694         dwarf2out_frame_debug, dwarf2out_frame_debug_init,
10695         dwarf2out_cfi_begin_epilogue, dwarf2out_frame_debug_restore_state,
10696         get_cfa_from_loc_descr): Move to dwarf2cfi.c.
10697         (dw_cfi_ref, dw_fde_ref, dw_cfi_oprnd_ref, enum dw_cfi_oprnd_type,
10698         dw_cfi_oprnd, dw_cfi_node, cfi_vec, dw_cfa_location, dw_fde_node,
10699         dw_val_ref, dw_die_ref, const_dw_die_ref, dw_loc_descr_ref,
10700         dw_loc_list_ref, enum dw_val_class, dw_vec_const, dw_val_node,
10701         dw_loc_descr_node): Move to dwarf2out.h.
10702         (current_fde, output_cfi_directive, build_cfa_loc, get_address_mode,
10703         mem_loc_descriptor): Export.
10704         (build_cfa_aligned_loc): Export.  Take CFA as a parameter.
10705         (dwarf2out_frame_init): Extract CIE generation code to
10706         dwarf2cfi_frame_init.
10707
10708 2011-07-07  Eric Botcazou  <ebotcazou@adacore.com>
10709
10710         PR target/49660
10711         * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Add
10712         MASK_V8PLUS, remove commented out flag and reorder.
10713
10714 2011-07-07  Jakub Jelinek  <jakub@redhat.com>
10715
10716         PR c/49644
10717         * c-typeck.c (build_binary_op): For MULT_EXPR and TRUNC_DIV_EXPR with
10718         one non-complex and one complex argument, call c_save_expr on both
10719         operands.
10720
10721 2011-07-07  Martin Jambor  <mjambor@suse.cz>
10722
10723         PR middle-end/49495
10724         * cgraphunit.c (verify_edge_corresponds_to_fndecl): New function.
10725         (verify_cgraph_node): Some functinality moved to
10726         verify_edge_corresponds_to_fndecl, call it.
10727
10728 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
10729
10730         * config.gcc (*local*): Remove.
10731         * doc/install-old.texi: Don't mention local configurations.
10732
10733 2011-07-07  Jakub Jelinek  <jakub@redhat.com>
10734
10735         PR debug/49522
10736         * df-problems.c (dead_debug_reset): Remove dead_debug_uses
10737         referencing debug insns that have been reset.
10738         (dead_debug_insert_before): Don't assert reg is non-NULL,
10739         instead return immediately if it is NULL.
10740
10741 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
10742
10743         * config/i386/t-crtpic, config/i386/t-svr3dbx, config/pa/t-pa: Remove.
10744
10745 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
10746
10747         * hw-doloop.c: New file.
10748         * hw-doloop.h: New file.
10749         * Makefile.in (OBJS): Add hw-doloop.o.
10750         (hw-doloop.o): New rule.
10751         ($(obj_out_file)): Add hw-doloop.h dependency.
10752         * config/bfin/bfin.c: Include "hw-doloop.h".
10753         (loop_info, DEF_VEC_P for loop_info, loop_info_d): Remove.
10754         (bfin_dump_loops, bfin_bb_in_loop, bfin_scan_loop): Remove.
10755         (hwloop_optimize): Renamed from bfin_optimize_loop.  Argument
10756         type changed to hwloop_info.  Return bool, true if the loop was
10757         successfully optimized.  Remove code that was moved to
10758         hw-doloop.c, and adjust other parts.
10759         (hwloop_fail): New static function, containing parts that used
10760         to be in bfin_optimize_loop.
10761         (bfin_discover_loop, bfin_discover_loops, free_loops,
10762         bfin_reorder_loops): Remove.
10763         (hwloop_pattern_reg): New static function.
10764         (bfin_doloop_hooks): New variable.
10765         (bfin_reorg_loops): Remove most code, call reorg_loops.
10766         * config/bfin/bfin.md (doloop_end splitter): Also enable if
10767         loop counter is a memory_operand.
10768
10769 2011-07-07  H.J. Lu  <hongjiu.lu@intel.com>
10770
10771         * config.gcc: Support --with-multilib-list for x86 Linux targets.
10772
10773         * configure.ac: Mention x86-64 for --with-multilib-list.
10774         * configure: Regenerated.
10775
10776         * config/i386/gnu-user64.h (SPEC_64): Support x32.
10777         (SPEC_32): Likewise.
10778         (ASM_SPEC): Likewise.
10779         (LINK_SPEC): Likewise.
10780         (TARGET_THREAD_SSP_OFFSET): Likewise.
10781         (TARGET_THREAD_SPLIT_STACK_OFFSET): Likewise.
10782         (SPEC_X32): New.
10783
10784         * config/i386/i386.h (TARGET_X32): New.
10785         (TARGET_LP64): New.
10786         (LONG_TYPE_SIZE): Likewise.
10787         (POINTER_SIZE): Likewise.
10788         (POINTERS_EXTEND_UNSIGNED): Likewise.
10789         (OPT_ARCH64): Support x32.
10790         (OPT_ARCH32): Likewise.
10791
10792         * config/i386/i386.opt (mx32): New.
10793
10794         * config/i386/kfreebsd-gnu64.h (GNU_USER_LINK_EMULATIONX32): New.
10795         (GLIBC_DYNAMIC_LINKERX32): Likewise.
10796         * config/i386/linux64.h (GNU_USER_LINK_EMULATIONX32): Likewise.
10797         (GLIBC_DYNAMIC_LINKERX32): Likewise.
10798
10799         * config/linux.h (UCLIBC_DYNAMIC_LINKERX32): New.
10800         (BIONIC_DYNAMIC_LINKERX32): Likewise.
10801         (GNU_USER_DYNAMIC_LINKERX32): Likewise.
10802
10803         * config/i386/t-linux64: Support TM_MULTILIB_CONFIG.
10804
10805         * doc/install.texi: Document --with-multilib-list for Linux/x86-64.
10806
10807         * doc/invoke.texi: Document -mx32.
10808
10809 2011-07-07  Richard Sandiford  <richard.sandiford@linaro.org>
10810
10811         * doc/invoke.texi (mwords-little-endian): Deprecate.
10812         * config/arm/arm.opt (mwords-little-endian): Likewise.
10813         * config/arm/arm.c (arm_option_override): Warn about the deprecation
10814         of -mwords-little-endian.
10815
10816 2011-07-07  Richard Sandiford  <richard.sandiford@linaro.org>
10817
10818         * reload1.c (choose_reload_regs): Use mode sizes to check whether
10819         an old reload register completely defines the required value.
10820
10821 2011-07-07  Richard Guenther  <rguenther@suse.de>
10822
10823         * fold-const.c (fold_unary_loc): Do not strip sign-changes
10824         for NEGATE_EXPR.
10825
10826 2011-07-07  Richard Guenther  <rguenther@suse.de>
10827
10828         * tree-vrp.c (simplify_conversion_using_ranges): New function.
10829         (simplify_stmt_using_ranges): Call it.
10830
10831 2011-07-07  Kai Tietz  <ktietz@redhat.com>
10832
10833         * tree-ssa-forwprop.c (truth_valued_ssa_name): New function.
10834         (lookup_logical_inverted_value): Likewise.
10835         (simplify_bitwise_binary_1): Likewise.
10836         (simplify_bitwise_binary): Use simplify_bitwise_binary_1.
10837
10838 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
10839
10840         * gcc.c (%[Spec]): Don't document.
10841         (struct spec_list): Update comment.
10842         (do_spec_1): Don't handle %[Spec].
10843         * doc/invoke.texi (%[@var{name}]): Remove documentation of spec.
10844
10845 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
10846
10847         * common/common-target-def.h (TARGET_HAVE_NAMED_SECTIONS): Don't
10848         default based on TARGET_ASM_NAMED_SECTION.
10849         * common/common-target.def (have_named_sections): Default to true.
10850         * common/config/default-common.c: Don't include tm.h.
10851         * common/config/picochip/picochip-common.c
10852         (TARGET_HAVE_NAMED_SECTIONS): Don't define.
10853         * common/config/m32c/m32c-common.c: Remove.
10854         * config.gcc (m32c*-*-*): Set target_has_targetm_common=no.
10855         * config/alpha/osf5.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
10856         * config/i386/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
10857         * config/m68k/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
10858         * config/pa/som.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
10859         * config/pdp11/pdp11.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
10860         * config/vax/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
10861
10862 2011-07-07  Jakub Jelinek  <jakub@redhat.com>
10863
10864         PR middle-end/49640
10865         * gimplify.c (gimplify_compound_lval): For last 2 ARRAY_*REF operands
10866         and last COMPONENT_REF operand call gimplify_expr on it if non-NULL.
10867
10868 2011-07-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10869
10870         PR libmudflap/49550
10871         * gcc.c (MFWRAP_SPEC): Also wrap mmap64.
10872
10873 2011-07-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10874
10875         PR target/39150
10876         * configure.ac (gcc_cv_as_hidden): Also accept
10877         x86_64-*-solaris2.1[0-9]*.
10878         (gcc_cv_as_cfi_directive): Likewise.
10879         (gcc_cv_as_comdat_group_group): Likewise.
10880         (set_have_as_tls): Likewise.
10881         * configure: Regenerate.
10882         * config.gcc (i[34567]86-*-solaris2*): Also handle
10883         x86_64-*-solaris2.1[0-9]*.
10884         * config.host (i[34567]86-*-solaris2*): Likewise.
10885         * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
10886         * config/sol2-bi.h (ASM_CPU_DEFAULT_SPEC): Redefine.
10887         [USE_GLD] (ARCH_DEFAULT_EMULATION): Define.
10888         (TARGET_LD_EMULATION): Use it.
10889         * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC): Define.
10890         (SUBTARGET_CPU_EXTRA_SPECS): Add asm_cpu_default.
10891         * config/i386/sol2-bi.h (ASM_CPU32_DEFAULT_SPEC): Define.
10892         (ASM_CPU64_DEFAULT_SPEC): Define.
10893         (ASM_CPU_SPEC): Use %(asm_cpu_default).
10894         (ASM_SPEC): Redefine.
10895         (DEFAULT_ARCH32_P): Define using TARGET_64BIT_DEFAULT.
10896         * config/host-solaris.c [__x86_64__] (TRY_EMPTY_VM_SPACE): Reduce.
10897         * doc/install.texi (Specific, amd64-*-solaris2.1[0-9]*): Document.
10898         (Specific, i?86-*-solaris2.10): Mention x86_64-*-solaris2.1[0-9]*
10899         configuration.
10900         (Specific, x86_64-*-solaris2.1[0-9]*): Document.
10901
10902 2011-07-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10903
10904         * config/sol2.h (ASM_SPEC): Split into ...
10905         (ASM_SPEC_BASE, ASM_PIC_SPEC): ... this.
10906         * config/i386/sol2.h (ASM_SPEC): Define using ASM_SPEC_BASE.
10907         * config/i386/sol2-bi.h (ASM_CPU_SPEC): Redefine.
10908         (ASM_SPEC): Use ASM_SPEC_BASE.
10909         * config/sparc/sol2.h (ASM_SPEC): Redefine.
10910
10911 2011-07-07  Georg-Johann Lay  <avr@gjlay.de>
10912
10913         * config/avr/avr.md (*reload_insi): Change predicate #1 to
10914         const_int_operand.  Ditto for peep2 producing this insn.
10915         Add argument to output_reload_insisf call.
10916         (*movsi,*movsf): Add argument to output_movsisf call.
10917         (*reload_insf): New insn and new peep2 to produce it.
10918         * config/avr/avr-protos.h (output_movsisf): Change prototype.
10919         (output_reload_insisf): Change prototype.
10920         * config/avr/avr.c (avr_asm_len): New function.
10921         (output_reload_insisf): Rewrite.
10922         (output_movsisf): Change prototype.  output_reload_insisf for
10923         all CONST_INT and CONST_DOUBLE.  ALlow moving 0.0f to memory.
10924         (adjust_insn_length): Add argument to output_movsisf and
10925         output_reload_insisf call.
10926
10927 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
10928
10929         * emit-rtl.c (paradoxical_subreg_p): New function.
10930         * rtl.h (paradoxical_subreg_p): Declare.
10931         * combine.c (set_nonzero_bits_and_sign_copies, get_last_value,
10932         apply_distributive_law, simplify_comparison, simplify_set): Use it.
10933         * cse.c (record_jump_cond, cse_insn): Likewise.
10934         * expr.c (force_operand): Likewise.
10935         * rtlanal.c (num_sign_bit_copies1): Likewise.
10936         * reload1.c (eliminate_regs_1, strip_paradoxical_subreg): Likewise.
10937         * reload.c (push_secondary_reload, find_reloads_toplev): Likewise.
10938         (push_reload): Use precision to check for paradoxical subregs.
10939         * expmed.c (extract_bit_field_1): Likewise.
10940
10941         * machmode.h (HWI_COMPUTABLE_MODE_P): New macro.
10942         * combine.c (set_nonzero_bits_and_sign_copies): Use it.
10943         (find_split-point, combine_simplify_rtx, simplify_if_then_else,
10944         simplify_set, simplify_logical, expand_compound_operation,
10945         make_extraction, force_to_mode, if_then_else_cond, extended_count,
10946         try_widen_shift_mode, simplify_shift_const_1, simplify_comparison,
10947         record_value_for_reg): Likewise.
10948         * expmed.c (expand_widening_mult, expand_mult_highpart): Likewise.
10949         * simplify-rtx. c (simplify_unary_operation_1,
10950         simplify_binary_operation_1, simplify_const_relational_operation):
10951         Likewise.
10952
10953         * explow.c (trunc_int_for_mode): Use GET_MODE_PRECISION
10954         instead of GET_MODE_BITSIZE where appropriate.
10955         * rtlanal.c (subreg_lsb_1, subreg_get_info, nonzero_bits1,
10956         num_sign_bit_copies1, canonicalize_condition, low_bitmask_len,
10957         init_num_sign_bit_copies_in_rep): Likewise.
10958         * cse.c (fold_rtx, cse_insn): Likewise.
10959         * loop-doloop.c (doloop_modify, doloop_optimize): Likewise.
10960         * simplify-rtx.c (simplify_unary_operation_1,
10961         simplify_const_unary_operation, simplify_binary_operation_1,
10962         simplify_const_binary_operation, simplify_ternary_operation,
10963         simplify_const_relational_operation, simplify_subreg): Likewise.
10964         * combine.c (try_combine, find_split_point, combine_simplify_rtx,
10965         simplify_if_then_else, simplify_set, expand_compound_operation,
10966         expand_field_assignment, make_extraction, if_then_else_cond,
10967         make_compound_operation, force_to_mode, make_field_assignment,
10968         reg_nonzero_bits_for_combine, reg_num_sign_bit_copies_for_combine,
10969         extended_count, try_widen_shift_mode, simplify_shift_const_1,
10970         simplify_comparison, record_promoted_value, simplify_compare_const,
10971         record_dead_and_set_regs_1): Likewise.
10972
10973         Revert:
10974         * simplify-rtx.c (simplify_const_binary_operation): Use the
10975         shift_truncation_mask hook instead of performing modulo by width.
10976         Compare against mode precision, not bitsize.
10977         * combine.c (combine_simplify_rtx, simplify_shift_const_1):
10978         Use shift_truncation_mask instead of constructing the value manually.
10979
10980 2011-07-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
10981
10982         * config/rs6000/rs6000-protos.h (rs6000_call_indirect_aix): New
10983         declaration.
10984         (rs6000_save_toc_in_prologue_p): Ditto.
10985
10986         * config/rs6000/rs6000.opt (-mr11): New switch to disable loading
10987         up the static chain (r11) during indirect function calls.
10988         (-msave-toc-indirect): New undocumented debug switch.
10989
10990         * config/rs6000/rs6000.c (struct machine_function): Add
10991         save_toc_in_prologue field to note whether the prologue needs to
10992         save the TOC value in the reserved stack location.
10993         (rs6000_emit_prologue): Use TOC_REGNUM instead of 2.  If we need
10994         to save the TOC in the prologue, do so.
10995         (rs6000_trampoline_init): Don't allow creating AIX style
10996         trampolines if -mno-r11 is in effect.
10997         (rs6000_call_indirect_aix): New function to create AIX style
10998         indirect calls, adding support for -mno-r11 to suppress loading
10999         the static chain, and saving the TOC in the prologue instead of
11000         the call body.
11001         (rs6000_save_toc_in_prologue_p): Return true if we are saving the
11002         TOC in the prologue.
11003
11004         * config/rs6000/rs6000.md (STACK_POINTER_REGNUM): Add more fixed
11005         register numbers.
11006         (TOC_REGNUM): Ditto.
11007         (STATIC_CHAIN_REGNUM): Ditto.
11008         (ARG_POINTER_REGNUM): Ditto.
11009         (SFP_REGNO): Delete, unused.
11010         (TOC_SAVE_OFFSET_32BIT): Add constants for AIX TOC save and
11011         function descriptor offsets.
11012         (TOC_SAVE_OFFSET_64BIT): Ditto.
11013         (AIX_FUNC_DESC_TOC_32BIT): Ditto.
11014         (AIX_FUNC_DESC_TOC_64BIT): Ditto.
11015         (AIX_FUNC_DESC_SC_32BIT): Ditto.
11016         (AIX_FUNC_DESC_SC_64BIT): Ditto.
11017         (ptrload): New mode attribute for the appropriate load of a pointer.
11018         (call_indirect_aix32): Delete, rewrite AIX indirect function calls.
11019         (call_indirect_aix64): Ditto.
11020         (call_value_indirect_aix32): Ditto.
11021         (call_value_indirect_aix64): Ditto.
11022         (call_indirect_nonlocal_aix32_internal): Ditto.
11023         (call_indirect_nonlocal_aix32): Ditto.
11024         (call_indirect_nonlocal_aix64_internal): Ditto.
11025         (call_indirect_nonlocal_aix64): Ditto.
11026         (call): Rewrite AIX indirect function calls.  Add support for
11027         eliminating the static chain, and for moving the save of the TOC
11028         to the function prologue.
11029         (call_value): Ditto.
11030         (call_indirect_aix<ptrsize>): Ditto.
11031         (call_indirect_aix<ptrsize>_internal): Ditto.
11032         (call_indirect_aix<ptrsize>_internal2): Ditto.
11033         (call_indirect_aix<ptrsize>_nor11): Ditto.
11034         (call_value_indirect_aix<ptrsize>): Ditto.
11035         (call_value_indirect_aix<ptrsize>_internal): Ditto.
11036         (call_value_indirect_aix<ptrsize>_internal2): Ditto.
11037         (call_value_indirect_aix<ptrsize>_nor11): Ditto.
11038         (call_nonlocal_aix32): Relocate in the rs6000.md file.
11039         (call_nonlocal_aix64): Ditto.
11040
11041         * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mr11 and
11042         -mno-r11 documentation.
11043
11044 2011-07-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
11045
11046         PR other/49658
11047         * doc/extend.texi (Compound Literals): Fix typo.
11048
11049 2011-07-06  James Greenhalgh  <james.greenhalgh@arm.com>
11050
11051         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Add __ARM_FEATURE_DSP.
11052
11053 2011-07-06  Basile Starynkevitch  <basile@starynkevitch.net>
11054
11055         * configure.ac (plugin-version.h): Generate
11056         GCCPLUGIN_VERSION_MAJOR, GCCPLUGIN_VERSION_MINOR,
11057         GCCPLUGIN_VERSION_PATCHLEVEL, GCCPLUGIN_VERSION constant integer
11058         macros.
11059
11060         * configure: Regenerate.
11061
11062         * doc/plugins.texi (Building GCC plugins): Mention
11063         GCCPLUGIN_VERSION ... constant macros in plugin-version.h.
11064
11065 2011-07-06  Bernd Schmidt  <bernds@codesourcery.com>
11066
11067         * machmode.h (TRULY_NOOP_TRUNCATION_MODES_P): New macro.
11068         * combine.c (make_extraction, gen_lowpart_or_truncate,
11069         apply_distributive_law, simplify_comparison,
11070         reg_truncated_to_mode, record_truncated_value): Use it.
11071         * cse.c (notreg_cost): Likewise.
11072         * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
11073         * expr.c (convert_move, convert_modes): Likewise.
11074         * optabs.c (expand_binop, expand_unop): Likewise.
11075         * postreload.c (move2add_last_label): Likewise.
11076         * regmove.c (optimize_reg_copy_3): Likewise.
11077         * rtlhooks.c (gen_lowpart_general): Likewise.
11078         * simplify-rtx.c (simplify_unary_operation_1): Likewise.
11079
11080 2011-07-06  Joseph Myers  <joseph@codesourcery.com>
11081
11082         * config/rs6000/vxworks.h (WORDS_BIG_ENDIAN): Define.
11083
11084 2011-07-06  Bernd Schmidt  <bernds@codesourcery.com>
11085
11086         * cse.c (find_comparison_args): Use val_mode_signbit_set_p.
11087         * simplify-rtx.c (mode_signbit_p): Use GET_MODE_PRECISION.
11088         (val_mode_signbit_p, val_mode_signbit_set_p): New functions.
11089         (simplify_const_unary_operation, simplify_binary_operation_1,
11090         simplify_const_binary_operation, simplify_const_relational_operation):
11091         Use them.  Use GET_MODE_MASK for masking and sign-extensions.
11092         * combine.c (set_nonzero_bits_and_sign_copies, simplify_set,
11093         combine_simplify_rtx, force_to_mode, reg_nonzero_bits_for_combine,
11094         simplify_shift_const_1, simplify_comparison): Likewise.
11095         * expr.c (convert_modes): Likewise.
11096         * rtlanal.c (nonzero_bits1, canonicalize_condition): Likewise.
11097         * expmed.c (emit_cstore, emit_store_flag_1, emit_store_flag): Likewise.
11098         * rtl.h (val_mode_signbit_p, val_mode_signbit_set_p): Declare.
11099
11100         * simplify-rtx.c (simplify_ternary_operation): Remove dead code.
11101
11102 2011-07-06  Richard Guenther  <rguenther@suse.de>
11103
11104         PR tree-optimization/49645
11105         * c-decl.c (finish_decl): Also set DECL_HARD_REGISTER for global
11106         register variables.
11107         * tree-ssa-sccvn.c (vn_reference_op_eq): Disregard differences
11108         in type qualification here ...
11109         (copy_reference_ops_from_ref): ... not here.
11110         (vn_reference_lookup_3): ... or here.
11111         (copy_reference_ops_from_ref): Record decl bases as MEM[&decl].
11112         (vn_reference_lookup): Do the lookup with a valueized ao-ref.
11113
11114 2011-07-06  Ian Lance Taylor  <iant@google.com>
11115
11116         * doc/install.texi (Configuration): It's
11117         --enable-gnu-indirect-function, not --enable-indirect-function.
11118
11119 2011-07-06  Bernd Schmidt  <bernds@codesourcery.com>
11120
11121         * simplify-rtx.c (simplify_const_binary_operation): Use the
11122         shift_truncation_mask hook instead of performing modulo by width.
11123         Compare against mode precision, not bitsize.
11124         * combine.c (combine_simplify_rtx, simplify_shift_const_1):
11125         Use shift_truncation_mask instead of constructing the value manually.
11126
11127 2011-07-06  H.J. Lu  <hongjiu.lu@intel.com>
11128
11129         PR middle-end/47383
11130         * tree-ssa-address.c (addr_for_mem_ref): Use pointer_mode for
11131         address computation and convert to address_mode if needed.
11132
11133 2011-07-06  Richard Guenther  <rguenther@suse.de>
11134
11135         * tree.c (build_common_tree_nodes_2): Merge with
11136         build_common_tree_nodes.
11137         * tree.h (build_common_tree_nodes): Adjust prototype.
11138         (build_common_tree_nodes_2): Remove.
11139         * doc/tm.texi.in (lang_hooks.builtin_function): Adjust.
11140         * doc/tm.texi (lang_hooks.builtin_function): Regenerate.
11141
11142 2011-07-05  Jakub Jelinek  <jakub@redhat.com>
11143
11144         PR tree-optimization/49618
11145         * tree-eh.c (tree_could_trap_p) <case CALL_EXPR>: For DECL_WEAK
11146         t recurse on the decl.
11147         <case FUNCTION_DECL, case VAR_DECL>: For DECL_WEAK decls
11148         return true if expr isn't known to be defined in current
11149         TU or some other LTO partition.
11150
11151 2011-07-05  Michael Meissner  <meissner@linux.vnet.ibm.com>
11152
11153         * params.def (PARAM_CASE_VALUES_THRESHOLD): New parameter to
11154         override CASE_VALUES_THRESHOLD.
11155
11156         * stmt.c (toplevel): Include params.h.
11157         (case_values_threshold): Use the --param case-values-threshold
11158         value if non-zero, otherwise use machine dependent value.
11159         (expand_case): Use case_values_threshold.
11160
11161         * Makefile.in (stmt.o): Add $(PARAMS_H) dependency.
11162
11163         * doc/invoke.texi (--param case-values-threshold): Document.
11164
11165 2011-07-05  Richard Henderson  <rth@redhat.com>
11166
11167         * dwarf2out.c (dwarf2out_cfi_label): Make static.
11168         (dwarf2out_flush_queued_reg_saves): Make static.
11169         (dwarf2out_reg_save): Remove.
11170         (dwarf2out_return_save): Remove.
11171         (dwarf2out_return_reg): Remove.
11172         (dwarf2out_reg_save_reg): Remove.
11173         (dwarf2out_def_cfa): Merge into ...
11174         (dwarf2out_frame_init): ... here.
11175         * dwarf2out.h, tree.h: Remove declarations as necessary.
11176
11177 2011-07-05  Richard Henderson  <rth@redhat.com>
11178
11179         * config/ia64/ia64.c (ia64_dwarf_handle_frame_unspec): Remove.
11180         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
11181         (ia64_expand_epilogue): Emit an empty FRAME_RELATED_EXPR for
11182         the alloc insn.
11183
11184         * config/ia64/ia64.c (ia64_emit_deleted_label_after_insn): Remove.
11185         (IA64_CHANGE_CFA_IN_EPILOGUE): Remove.
11186         (process_epilogue): Don't call dwarf2out_def_cfa.
11187
11188         * config/ia64/ia64.c (ia64_expand_prologue): Use pc_rtx to
11189         indicate the return address save.
11190         (process_cfa_register): Likewise.
11191
11192         * config/ia64/ia64.c (ia64_dwarf2out_def_steady_cfa): Remove.
11193         (process_cfa_adjust_cfa, ia64_asm_unwind_emit): Don't call it.
11194
11195         * config/ia64/ia64.c (ia64_expand_prologue): Emit REG_CFA_REGISTER
11196         for ar.pfs save at alloc insn.
11197
11198 2011-07-05  Richard Henderson  <rth@redhat.com>
11199
11200         * config/arm/arm.c (arm_dwarf_handle_frame_unspec): Remove.
11201         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
11202         (arm_expand_prologue): Use REG_CFA_REGISTER to mark the
11203         stack pointer save.
11204         (arm_unwind_emit_set): Don't recognize UNSPEC_STACK_ALIGN.
11205         (arm_unwind_emit): Walk REG_NOTES for unwinding notes.  Emit
11206         proper unwind info for a REG_CFA_REGISTER save of stack pointer.
11207         * config/arm/arm.md (UNSPEC_STACK_ALIGN): Remove.
11208
11209 2011-07-05  Richard Henderson  <rth@redhat.com>
11210
11211         * config/vax/vax.md (define_c_enum unspecv): New.  Define the
11212         VUNSPEC_* constants here instead of via define_constants.
11213         (VUNSPEC_PEM): New constant.
11214         (procedure_entry_mask): New insn.
11215         (prologue): New expander.
11216         * config/vax/vax.c (vax_add_reg_cfa_offset): New.
11217         (vax_expand_prologue): Rename from vax_output_function_prologue;
11218         emit rtl instead of text.
11219         (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
11220         (print_operand): Add 'x' prefix.
11221
11222 2011-07-05  H.J. Lu  <hongjiu.lu@intel.com>
11223
11224         PR middle-end/47715
11225         * calls.c (precompute_register_parameters): Promote the function
11226         argument before checking non-legitimate constant.
11227
11228 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
11229
11230         PR tree-optimization/47654
11231         * graphite-blocking.c (pbb_strip_mine_time_depth): Do not return bool.
11232         (lst_do_strip_mine_loop): Return an int.
11233         (lst_do_strip_mine): Same.
11234         (scop_do_strip_mine): Same.
11235         (scop_do_block): Loop blocking should strip-mine at least two loops.
11236         * graphite-interchange.c (lst_interchange_select_outer): Return an int.
11237         (scop_do_interchange): Same.
11238         * graphite-poly.h (scop_do_interchange): Update declaration.
11239         (scop_do_strip_mine): Same.
11240
11241 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
11242
11243         * graphite-clast-to-gimple.c (precision_for_value): Removed.
11244         (precision_for_interval): Removed.
11245         (gcc_type_for_interval): Use mpz_sizeinbase.
11246
11247 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
11248
11249         * graphite-ppl.h (value_max): Correct computation of max.
11250
11251 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
11252
11253         * graphite-clast-to-gimple.c (clast_name_to_index): Add missing space.
11254
11255 2011-07-05  Richard Guenther  <rguenther@suse.de>
11256
11257         * c-decl.c (c_init_decl_processing): Defer building common
11258         tree nodes to c_common_nodes_and_builtins.
11259
11260 2011-07-05  Razya Ladelsky  <razya@il.ibm.com>
11261
11262         PR tree-optimization/49580
11263         * tree-cfg.c (gimple_duplicate_sese_tail): Remove handling of
11264         the loop's number of iterations.
11265         * tree-parloops.c (transform_to_exit_first_loop): Add the
11266         handling of the loop's number of iterations before the call
11267         to gimple_duplicate_sese_tail.
11268         Insert the stmt caclculating the new rhs of the loop's
11269         condition stmt to the preheader instead of iters_bb.
11270
11271 2011-07-05  H.J. Lu  <hongjiu.lu@intel.com>
11272
11273         PR rtl-optimization/47449
11274         * fwprop.c (forward_propagate_subreg): Don't propagate hard
11275         register nor zero/sign extended hard register.
11276
11277 2011-07-05  Richard Guenther  <rguenther@suse.de>
11278
11279         PR tree-optimization/49518
11280         PR tree-optimization/49628
11281         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Skip
11282         irrelevant and invariant data-references.
11283         (vect_analyze_data_ref_access): For invariant loads clear the
11284         group association.
11285
11286 2011-07-04  Jakub Jelinek  <jakub@redhat.com>
11287
11288         PR rtl-optimization/49619
11289         * combine.c (combine_simplify_rtx): In PLUS -> IOR simplification
11290         pass VOIDmode as op0_mode to recursive call, and return temp even
11291         when different from tor, just if it is not IOR of the original
11292         PLUS arguments.
11293
11294         PR rtl-optimization/49472
11295         * simplify-rtx.c (simplify_unary_operation_1) <case NEG>: When
11296         negating MULT, negate the second operand instead of first.
11297         (simplify_binary_operation_1) <case MULT>: If one operand is
11298         a NEG and the other is MULT, don't attempt to optimize by negation
11299         of the MULT operand if it only moves the NEG operation around.
11300
11301         PR debug/49602
11302         * tree-into-ssa.c (rewrite_debug_stmt_uses): Disregard
11303         get_current_def return value if it can't be trusted to be
11304         the current value of the variable in the current bb.
11305
11306 2011-07-04  Uros Bizjak  <ubizjak@gmail.com>
11307
11308         PR target/49600
11309         * config/i386/i386.md (SSE2 int->float split): Push operand 1 in
11310         general register to memory for !TARGET_INTER_UNIT_MOVES.
11311
11312 2011-07-04  Georg-Johann Lay  <avr@gjlay.de>
11313
11314         PR target/44643
11315         * config/avr/avr.c (avr_insert_attributes): Use TYPE_READONLY
11316         instead of TREE_READONLY.
11317
11318 2011-07-04  Georg-Johann Lay  <avr@gjlay.de>
11319
11320         * doc/extend.texi (AVR Built-in Functions): Update documentation
11321         of __builtin_avr_fmul*.
11322         * config/avr/avr.c (avr_init_builtins): Don't depend on AVR_HAVE_MUL.
11323         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Ditto.
11324         * config/avr/avr.md (fmul): Rename to fmul_insn.
11325         (fmuls): Rename to fmuls_insn.
11326         (fmulsu): Rename to fmulsu_insn.
11327         (fmul,fmuls,fmulsu): New expander.
11328         (*fmul.call,*fmuls.call,*fmulsu.call): New Insn.
11329         * config/avr/t-avr (LIB1ASMFUNCS): Add _fmul, _fmuls, _fmulsu.
11330         * config/avr/libgcc.S (__fmul): New function.
11331         (__fmuls): New function.
11332         (__fmulsu,__fmulsu_exit): New function.
11333
11334 2011-07-04  Richard Guenther  <rguenther@suse.de>
11335
11336         PR tree-optimization/49615
11337         * tree-cfgcleanup.c (split_bbs_on_noreturn_calls): Fix
11338         basic-block index check.
11339
11340 2011-07-04  Georg-Johann Lay  <avr@gjlay.de>
11341
11342         * longlong.h (count_leading_zeros, count_trailing_zeros,
11343         COUNT_LEADING_ZEROS_0): Define for target avr if W_TYPE_SIZE is 16
11344         resp. 64.
11345
11346 2011-07-03  Ira Rosen  <ira.rosen@linaro.org>
11347
11348         PR tree-optimization/49610
11349         * tree-vect-loop.c (vect_is_slp_reduction): Check that DEF_STMT has
11350         a basic block.
11351
11352 2011-07-02  Eric Botcazou  <ebotcazou@adacore.com>
11353             Olivier Hainque  <hainque@adacore.com>
11354             Nicolas Setton  <setton@adacore.com>
11355
11356         * tree.h (TYPE_ARTIFICIAL): New flag.
11357         * dwarf2out.c (modified_type_die): Add a DW_AT_artificial attribute to
11358         the DIE of the type if it is artificial.
11359         (gen_array_type_die): Likewise.
11360         (gen_enumeration_type_die): Likewise.
11361         (gen_struct_or_union_type_die): Likewise.
11362         * lto-streamer-in.c (unpack_ts_base_value_fields): Use TYPE_ARTIFICIAL.
11363         * lto-streamer-out.c (pack_ts_base_value_fields): Likewise.
11364
11365 2011-07-01  Jakub Jelinek  <jakub@redhat.com>
11366
11367         * tree-object-size.c (pass_through_call): Handle
11368         BUILT_IN_ASSUME_ALIGNED.
11369
11370 2011-07-01  Martin Jambor  <mjambor@suse.cz>
11371
11372         * tree-sra.c (tree_non_mode_aligned_mem_p): Also ignore MEM_REFs.
11373
11374 2011-07-01  H.J. Lu  <hongjiu.lu@intel.com>
11375
11376         PR middle-end/48016
11377         * explow.c (update_nonlocal_goto_save_area): Use proper mode
11378         for stack save area.
11379         * function.c (expand_function_start): Likewise.
11380
11381 2011-07-01  Richard Guenther  <rguenther@suse.de>
11382
11383         PR middle-end/49596
11384         * cgraph.h (varpool_all_refs_explicit_p): Not analyzed nodes
11385         may have unknown refs.
11386
11387 2011-07-01  Kai Tietz  <ktietz@redhat.com>
11388
11389         * tree-ssa-forwprop.c (simplify_bitwise_binary): Fix typo.
11390
11391 2011-07-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11392
11393         * config.gcc: Obsolete alpha*-dec-osf5.1, mips-sgi-irix6.5.
11394         * doc/install.texi (Specific, alpha*-dec-osf5.1): Document it.
11395         (Specific, mips-sgi-irix6): Likewise.
11396
11397 2011-07-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11398
11399         PR libmudflap/49549
11400         * doc/sourcebuild.texi (Effective-Target Keywords): Document gld.
11401
11402 2011-07-01  Jakub Jelinek  <jakub@redhat.com>
11403
11404         * tree-pretty-print.c (dump_generic_code) <case CONSTRUCTOR>: Print
11405         [idx]= and [idx1 ... idx2]= before initializers if needed for
11406         array initializers.
11407
11408 2011-07-01  Chen Liqin  <liqin.gcc@gmail.com>
11409
11410         * config.gcc (score-*-elf): Remove score7.o.
11411         * config/score/t-score-elf: Likewise.
11412         * config/score/score.c: Merge score7 to score.c and
11413         remove forwarding functions.
11414         * config/score/score7.c: Deleted.
11415         * config/score/score7.h: Deleted.
11416
11417 2011-07-01  Richard Guenther  <rguenther@suse.de>
11418
11419         PR tree-optimization/49603
11420         * tree-vect-stmts.c (vectorizable_load): Remove unnecessary assert.
11421
11422 2011-06-30  Martin Jambor  <mjambor@suse.cz>
11423
11424         * tree-sra.c (struct access): Rename total_scalarization to
11425         grp_total_scalarization
11426         (completely_scalarize_var): New function.
11427         (sort_and_splice_var_accesses): Set total_scalarization in the
11428         representative access.
11429         (analyze_access_subtree): Propagate total scalarization accross the
11430         tree, no holes in totally scalarized trees, simplify coverage
11431         computation.
11432         (analyze_all_variable_accesses): Call completely_scalarize_var instead
11433         of completely_scalarize_record.
11434
11435 2011-06-30  Richard Henderson  <rth@redhat.com>
11436
11437         * config/i386/i386.h (X86_TUNE_DEEP_BRANCH_PREDICTION): Remove.
11438         (TARGET_DEEP_BRANCH_PREDICTION): Remove.
11439         * config/i386/i386.c: Don't include dwarf2out.h.
11440         (initial_ix86_tune_features): Remove X86_TUNE_DEEP_BRANCH_PREDICTION.
11441         (output_set_got): Don't test TARGET_DEEP_BRANCH_PREDICTION, delete
11442         all code dead thereafter.  Don't do dwarf2out_flush_queued_reg_saves.
11443         (ix86_expand_prologue): Set REG_CFA_FLUSH_QUEUE on set_got insn.
11444         (machopic_output_stub): Don't test TARGET_DEEP_BRANCH_PREDICTION.
11445
11446 2011-06-30  Richard Henderson  <rth@redhat.com>
11447
11448         * reg-notes.def (REG_CFA_FLUSH_QUEUE): New.
11449         * dwarf2out.c (dwarf2out_frame_debug): Handle it.
11450         * final.c (final_scan_insn): Look for it, and invoke
11451         dwarf2out_frame_debug before the insn if found.
11452
11453 2011-06-30  Richard Henderson  <rth@redhat.com>
11454
11455         * dwarf2out.c (dwarf2out_frame_debug_cfa_offset): Allow PC_RTX
11456         as a source, and interpret that as DWARF_FRAME_RETURN_COLUMN.
11457
11458 2011-06-30  Richard Henderson  <rth@redhat.com>
11459
11460         * dwarf2out.c (struct reg_saved_in_data): Provide a typedef.
11461         Define a vector of this type.
11462         (regs_saved_in_regs): Use a VEC.
11463         (num_regs_saved_in_regs): Remove.
11464         (compare_reg_or_pc): New.
11465         (record_reg_saved_in_reg): Split out from...
11466         (dwarf2out_flush_queued_reg_saves): ... here.
11467         (clobbers_queued_reg_save): Update for VEC.
11468         (reg_saved_in): Likewise.
11469         (dwarf2out_frame_debug_init): Likewise.
11470         (dwarf2out_reg_save_reg): Use record_reg_saved_in_reg.
11471         (dwarf2out_frame_debug_cfa_register): Likewise.
11472
11473 2011-06-30  Eric Botcazou  <ebotcazou@adacore.com>
11474
11475         PR tree-optimization/49572
11476         * tree-ssa-dom.c (initialize_hash_element) <GIMPLE_SINGLE_RHS>: Use the
11477         type of the RHS instead of that of the LHS for the expression type.
11478
11479 2011-06-30  Eric Botcazou  <ebotcazou@adacore.com>
11480
11481         * df-scan.c (df_get_entry_block_def_set): Use INCOMING_REGNO macro
11482         unconditionally.
11483
11484 2011-06-30  Richard Guenther  <rguenther@suse.de>
11485
11486         * opts.c (finish_options): Do not disable IPA-PTA during ltrans.
11487         * tree-ssa-structalias.c (create_variable_info_for): Do not
11488         add initial constraints for non-var-decls.  Properly handle
11489         globals in other ltrans partitions.
11490         (intra_create_variable_infos): Manually create constraints for
11491         the fake no-alias parameter.
11492         (ipa_pta_execute): Dump the cgraph, handle ltrans partitions properly
11493         and assert there are no clones.
11494
11495 2011-06-30  Richard Guenther  <rguenther@suse.de>
11496
11497         PR tree-optimization/46787
11498         * tree-data-ref.c (dr_address_invariant_p): Remove.
11499         (find_data_references_in_stmt): Invariant accesses are ok now.
11500         * tree-vect-stmts.c (vectorizable_load): Handle invariant loads.
11501         * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
11502         invariant loads.
11503
11504 2011-06-30  Martin Jambor  <mjambor@suse.cz>
11505
11506         PR tree-optimization/49094
11507         * tree-sra.c (tree_non_mode_aligned_mem_p): New function.
11508         (build_accesses_from_assign): Use it.
11509
11510 2011-06-30  Jakub Jelinek  <jakub@redhat.com>
11511
11512         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
11513         handling of BUILT_IN_ASSUME_ALIGNED.
11514
11515         PR debug/49364
11516         * dwarf2out.c (output_abbrev_section): Don't return early
11517         if abbrev_die_table_in_use is 1.
11518         (dwarf2out_finish): Instead don't call output_abbrev_section
11519         nor emit abbrev_section_label in that case.
11520
11521 2011-06-30  Nick Clifton  <nickc@redhat.com>
11522
11523         * config/v850/v850.h (CPP_SPEC): Define __v850e__ when compiling
11524         for the V850E.
11525
11526 2011-06-30  Jakub Jelinek  <jakub@redhat.com>
11527
11528         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
11529         handling of BUILT_IN_MEMPCPY_CHK and BUILT_IN_STPCPY_CHK.
11530
11531 2011-06-30  Ira Rosen  <ira.rosen@linaro.org>
11532
11533         * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
11534         both pattern and original statements if necessary.
11535         (vect_transform_loop): Likewise.
11536         * tree-vect-patterns.c (vect_pattern_recog): Update documentation.
11537         * tree-vect-stmts.c (vect_mark_relevant): Add new argument.
11538         Mark the pattern statement only if the original statement doesn't
11539         have its own uses.
11540         (process_use): Call vect_mark_relevant with additional parameter.
11541         (vect_mark_stmts_to_be_vectorized): Likewise.
11542         (vect_get_vec_def_for_operand): Use vectorized pattern statement.
11543         (vect_analyze_stmt): Handle both pattern and original statements
11544         if necessary.
11545         (vect_transform_stmt): Don't store vectorized pattern statement
11546         in the original statement.
11547         (vect_is_simple_use_1): Use related pattern statement only if the
11548         original statement is irrelevant.
11549         * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
11550
11551 2011-06-29  Changpeng Fang  <changpeng.fang@amd.com>
11552
11553         * config/i386/i386.opt (mprefer-avx128): Redefine the flag as a Mask
11554         option.
11555         * config/i386/i386.h (ix86_tune_indices): Add X86_TUNE_AVX128_OPTIMAL
11556         entry.
11557         (TARGET_AVX128_OPTIMAL): New definition.
11558         * config/i386/i386.c (initial_ix86_tune_features): Initialize
11559         X86_TUNE_AVX128_OPTIMAL entry.
11560         (ix86_option_override_internal): Enable the generation
11561         of the 128-bit instructions when TARGET_AVX128_OPTIMAL is set.
11562         (ix86_preferred_simd_mode): Use TARGET_PREFER_AVX128.
11563         (ix86_autovectorize_vector_sizes): Use TARGET_PREFER_AVX128.
11564
11565 2011-06-29  Eric Botcazou  <ebotcazou@adacore.com>
11566
11567         PR tree-optimization/49539
11568         * tree-ssa-forwprop.c (can_propagate_from): Check for abnormal SSA
11569         names by means of stmt_references_abnormal_ssa_name.
11570         (associate_plusminus): Call can_propagate_from before propagating
11571         from definition statements.
11572         (ssa_forward_propagate_and_combine): Remove superfluous newline.
11573
11574 2011-06-29  Richard Guenther  <rguenther@suse.de>
11575
11576         * doc/invoke.texi: Document -scev dump modifier.
11577         * tree-pass.h (TDF_SCEV): New dump flag.
11578         * tree-dump.c (dump_option_value_in): Add scev.
11579         * tree-chrec.c: Replace all TDF_DETAILS checks with TDF_SCEV.
11580         * tree-scalar-evolution.c: Likewise.
11581
11582 2011-06-29  Nathan Sidwell  <nathan@codesourcery.com>
11583
11584         * config/arm/unwind-arm.c (enum __cxa_type_match_result): New.
11585         (cxa_type_match): Correct declaration.
11586         (__gnu_unwind_pr_common): Reconstruct additional indirection
11587         when __cxa_type_match returns succeeded_with_ptr_to_base.
11588
11589 2011-06-29  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11590
11591         PR rtl-optimization/49114
11592         * reload.c (struct replacement): Remove SUBREG_LOC member.
11593         (push_reload): Do not set it.
11594         (push_replacement): Likewise.
11595         (subst_reload): Remove dead code.
11596         (copy_replacements): Remove assertion.
11597         (copy_replacements_1): Do not handle SUBREG_LOC.
11598         (move_replacements): Likewise.
11599         (find_replacement): Remove dead code.  Use reload_adjust_reg_for_mode.
11600         Detect subregs via recursive descent instead of via SUBREG_LOC.
11601
11602 2011-06-29  Georg-Johann Lay  <avr@gjlay.de>
11603
11604         * config/avr/avr.c (avr_encode_section_info): Dispatch to
11605         default_encode_section_info.
11606
11607 2011-06-29  Richard Sandiford  <richard.sandiford@linaro.org>
11608
11609         PR tree-optimization/49545
11610         * builtins.c (get_object_alignment_1): Update function comment.
11611         Do not use DECL_ALIGN for functions, but test
11612         TARGET_PTRMEMFUNC_VBIT_LOCATION instead.
11613         * fold-const.c (get_pointer_modulus_and_residue): Don't check
11614         for functions here.
11615         * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
11616
11617 2011-06-29  Jakub Jelinek  <jakub@redhat.com>
11618
11619         PR debug/49567
11620         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTEND>: Give up for
11621         non-MODE_INT modes instead of asserting the mode has MODE_INT class.
11622
11623 2011-06-29  Georg-Johann Lay  <avr@gjlay.de>
11624
11625         PR target/34734
11626         * config/avr/avr.c (avr_handle_progmem_attribute): Move warning
11627         about uninitialized data attributed 'progmem' from here...
11628         (avr_encode_section_info): ...to this new function.
11629         (TARGET_ENCODE_SECTION_INFO): New define.
11630         (avr_section_type_flags): For data in ".progmem.data", remove
11631         section flag SECTION_WRITE.
11632
11633 2011-06-29  Georg-Johann Lay  <avr@gjlay.de>
11634
11635         * config/avr/t-avr (LIB1ASMFUNCS): Add _mulhisi3, _umulhisi3,
11636         _xmulhisi3_exit.
11637         * config/avr/libgcc.S (_xmulhisi3_exit): New Function.
11638         (__mulhisi3): Optimize if have MUL*.  Use XJMP instead of rjmp.
11639         (__umulhisi3): Ditto.
11640         * config/avr/avr.md (mulhisi3): New insn expender.
11641         (umulhisi3): New insn expender.
11642         (*mulhisi3_call): New insn.
11643         (*umulhisi3_call): New insn.
11644
11645 2011-06-28  Joseph Myers  <joseph@codesourcery.com>
11646
11647         * Makefile.in (LIBGCC2_CFLAGS): Remove -D__GCC_FLOAT_NOT_NEEDED.
11648
11649 2011-06-28  Richard Henderson  <rth@redhat.com>
11650
11651         * config/arm/arm.c (thumb_pop): Rename from thumb_pushpop.  Delete
11652         all code and arguments that handled pushes.  Update all callers.
11653
11654 2011-06-28  Richard Henderson  <rth@redhat.com>
11655
11656         * config/arm/arm.c (arm_output_function_prologue): Don't call
11657         thumb1_output_function_prologue.
11658         (arm_expand_prologue): Avoid dead store.
11659         (number_of_first_bit_set): Use ctz_hwi.
11660         (thumb1_emit_multi_reg_push): New.
11661         (thumb1_expand_prologue): Merge thumb1_output_function_prologue
11662         to emit the entire prologue as rtl.
11663         (thumb1_output_interwork): Split out from
11664         thumb1_output_function_prologue.
11665         (thumb1_output_function_prologue): Remove.
11666         (arm_attr_length_push_multi): Handle thumb1.
11667         * config/arm/arm.md (VUNSPEC_THUMB1_INTERWORK): New.
11668         (prologue_thumb1_interwork): New.
11669         (*push_multi): Allow thumb1; use push_mult_memory_operand.
11670         * config/arm/predicates.md (push_mult_memory_operand): New.
11671
11672 2011-06-28  Eric Botcazou  <ebotcazou@adacore.com>
11673
11674         * config/sparc/sync.md (*stbar): Delete.
11675         (*membar_v8): New insn to implement UNSPEC_MEMBAR in SPARC-V8.
11676
11677 2011-06-28  Eric Botcazou  <ebotcazou@adacore.com>
11678
11679         * tree-ssa-dom.c (initialize_hash_element): Fix oversight.
11680
11681 2011-06-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11682
11683         * config/sparc/sol2-64.h (TARGET_DEFAULT): Remove.
11684         (TARGET_64BIT_DEFAULT): Define.
11685         * config.gcc (sparc*-*-solaris2*): Move sparc/sol2-64.h to front
11686         of tm_file.
11687         * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Define.
11688
11689 2011-06-28  Joseph Myers  <joseph@codesourcery.com>
11690
11691         * common.opt (in_lto_p): New Variable entry.
11692         * flags.h (in_lto_p): Move to common.opt.
11693         * gcc.c: Include params.h.
11694         (set_option_handlers): Also use common_handle_option and
11695         target_handle_option.
11696         (main): Call global_init_params, finish_params and init_options_struct.
11697         * opts.c (debug_type_names): Move from toplev.c.
11698         (print_filtered_help): Access quiet_flag through opts pointer.
11699         (common_handle_option): Return early in the driver for some options.
11700         Access in_lto_p, dwarf_version and warn_maybe_uninitialized through
11701         opts pointer.
11702         * toplev.c (in_lto_p): Move to common.opt.
11703         (debug_type_names): Move to opts.c.
11704         * Makefile.in (OBJS): Remove opts.o.
11705         (OBJS-libcommon-target): Add opts.o.
11706         (gcc.o): Update dependencies.
11707
11708 2011-06-28  Kai Tietz  <ktietz@redhat.com>
11709
11710         * tree-ssa-forwprop.c (simplify_bitwise_binary): Improve type sinking.
11711
11712 2011-06-28  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
11713
11714         * config/arm/vfp.md ("*divsf3_vfp"): Replace '+' constraint modifier
11715         with '=' constraint modifier.
11716         (*divdf3_vfp): Likewise.
11717         ("*mulsf3_vfp"): Likewise.
11718         ("*muldf3_vfp"): Likewise.
11719         ("*mulsf3negsf_vfp"): Likewise.
11720         ("*muldf3negdf_vfp"): Likewise.
11721
11722 2011-06-28  Nick Clifton  <nickc@redhat.com>
11723
11724         * config/mn10300/mn10300.h (LINK_SPEC): Do not use linker
11725         relaxation when performing an incremental link.
11726
11727 2011-06-28  Kai Tietz  <ktietz@redhat.com>
11728
11729         * tree-ssa-math-opts.c (execute_optimize_bswap): Search
11730         within BB from last to first.
11731
11732 2011-06-28  Joseph Myers  <joseph@codesourcery.com>
11733
11734         * genattr-common.c: New.  Based on genattr.c.
11735         * Makefile.in (INSN_ATTR_H): Include insn-attr-common.h.
11736         (MOSTLYCLEANFILES): Add insn-attr-common.h.
11737         (opts.o): Update dependencies.
11738         (.PRECIOUS): Add insn-attr-common.h.
11739         (simple_rtl_generated_h): Add insn-attr-common.h.
11740         (build/genattr-common.o): New.
11741         (genprogrtl): Add attr-common.
11742         * genattr.c (main): Include insn-attr-common.h.  Don't generate
11743         definitions of DELAY_SLOTS or INSN_SCHEDULING.
11744         * opts.c: Include insn-attr-common.h instead of rtl.h and insn-attr.h.
11745
11746 2011-06-28  Georg-Johann Lay  <avr@gjlay.de>
11747
11748         * config.gcc (tm_file): Add elfos.h and avr/elf.h for
11749         avr-*-* and avr-*-rtems* targets.
11750
11751         * config/avr/elf.h: New file.
11752         (ASM_OUTPUT_BEFORE_CASE_LABEL): Define.
11753         (TARGET_ASM_SELECT_SECTION): Define.
11754         (INIT_SECTION_ASM_OP): Undefine.
11755         (FINI_SECTION_ASM_OP): Undefine.
11756         (READONLY_DATA_SECTION_ASM_OP): Undefine.
11757         (PCC_BITFIELD_TYPE_MATTERS): Undefine.
11758         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Undefine.
11759         * config/avr/avr.h:
11760         (PREFERRED_DEBUGGING_TYPE): Move to elf.h.
11761         (TARGET_ASM_NAMED_SECTION): Move to elf.h.
11762         (MAX_OFILE_ALIGNMENT): Move to elf.h.
11763         (STRING_LIMIT): Move to elf.h.
11764         (ASM_DECLARE_FUNCTION_NAME): Move to elf.h.
11765         (ASM_DECLARE_OBJECT_NAME): Remove.
11766         (ESCAPES): Remove.
11767         (ASM_OUTPUT_SKIP): Remove.
11768         (DWARF2_DEBUGGING_INFO): Remove.
11769         (OBJECT_FORMAT_ELF): Remove.
11770         (USER_LABEL_PREFIX): Remove.
11771         (ASM_OUTPUT_EXTERNAL): Remove.
11772         (ASM_OUTPUT_ASCII): Remove.
11773         (TYPE_ASM_OP): Remove.
11774         (SIZE_ASM_OP): Remove.
11775         (WEAK_ASM_OP): Remove.
11776         (STRING_ASM_OP): Remove.
11777         (SET_ASM_OP): Remove.
11778         (ASM_WEAKEN_LABEL): Remove.
11779         (TYPE_OPERAND_FMT): Remove.
11780         (ASM_DECLARE_FUNCTION_SIZE): Remove.
11781         (ASM_FINISH_DECLARE_OBJECT): Remove.
11782         (NO_DOLLAR_IN_LABEL): Remove.
11783         (ASM_GENERATE_INTERNAL_LABEL): Remove.
11784         (ASM_OUTPUT_CASE_LABEL): Remove.
11785         * config/avr/avr.c (avr_asm_output_aligned_decl_common): Use
11786         ASM_OUTPUT_ALIGNED_LOCAL, ASM_OUTPUT_ALIGNED_COMMON.
11787         (gas_output_ascii): Remove.
11788         (gas_output_limited_string): Remove.
11789         (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Remove.
11790         * config/avr/avr-protos.h
11791         (gas_output_ascii): Remove prototye.
11792         (gas_output_limited_string): Remove prototype.
11793
11794 2011-06-27  Richard Earnshaw  <rearnsha@arm.com>
11795
11796         PR target/48637
11797         * arm.c (arm_print_operand): Allow sym+offset.  Don't abort on invalid
11798         asm operands.
11799
11800 2011-06-27  Jan Hubicka  <jh@suse.cz>
11801
11802         * ipa.c (cgraph_address_taken_from_non_vtable_p): Walk references of
11803         node instead of references in node.
11804
11805 2011-06-27  Richard Henderson  <rth@redhat.com>
11806
11807         * config/alpha/alpha.c (vms_patch_builtins): Provide dummy definition.
11808         * config/ia64/ia64.c (ia64_init_builtins): Call vms_patch_builtins
11809         inside ifdef.
11810
11811 2011-06-27  Jakub Jelinek  <jakub@redhat.com>
11812
11813         * c-decl.c (union lang_tree_node): Use it in chain_next expression.
11814
11815         * builtin-types.def (BT_FN_PTR_CONST_PTR_SIZE_VAR): New.
11816         * builtins.def (BUILT_IN_ASSUME_ALIGNED): New builtin.
11817         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call,
11818         find_func_clobbers): Handle BUILT_IN_ASSUME_ALIGNED.
11819         * tree-ssa-ccp.c (bit_value_assume_aligned): New function.
11820         (evaluate_stmt, execute_fold_all_builtins): Handle
11821         BUILT_IN_ASSUME_ALIGNED.
11822         * tree-ssa-dce.c (propagate_necessity): Likewise.
11823         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
11824         call_may_clobber_ref_p_1): Likewise.
11825         * builtins.c (is_simple_builtin, expand_builtin): Likewise.
11826         (expand_builtin_assume_aligned): New function.
11827         * doc/extend.texi (__builtin_assume_aligned): Document.
11828
11829         PR debug/49544
11830         * cselib.c (promote_debug_loc): If cselib_preserve_constants
11831         and l has two DEBUG_INSN owned locs instead of just one, adjust
11832         the second location's setting_insn too.
11833
11834 2011-06-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11835
11836         PR libmudflap/38738
11837         * config/sol2.h [!USE_GLD] (MFLIB_SPEC): Define.
11838
11839 2011-06-27  Nick Clifton  <nickc@redhat.com>
11840
11841         * config/mn10300/mn10300.md (clzsi2): Use XOR after BSCH to convert
11842         bit position of highest bit set into a count of the high zero bits.
11843
11844 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
11845
11846         * dwarf2out.c (TYPE_DECL_IS_STUB): Extend mechanism to all types.
11847
11848 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
11849
11850         PR lto/48492
11851         * dwarf2out.c (dwarf2out_finish): Do not attach a DIE on the limbo list
11852         to a NULL parent.
11853
11854 2011-06-27  Richard Guenther  <rguenther@suse.de>
11855
11856         PR tree-optimization/49394
11857         * passes.c (execute_one_pass): Restore current_pass after
11858         applying IPA transforms.
11859
11860 2011-06-27  Kai Tietz  <ktietz@redhat.com>
11861
11862         * tree-ssa-math-opts.c (do_shift_rotate): Zero bits
11863         out of type precision after operation.
11864         (find_bswap): Take for limit value the integer auto-promotion
11865         into account.
11866
11867 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
11868
11869         * reorg.c (fill_simple_delay_slots): Use stop_search_p to stop the
11870         forward scan as well.
11871
11872 2011-06-27  Tristan Gingold  <gingold@adacore.com>
11873
11874         PR target/44241
11875         * config/vms/vms-protos.h: New file.
11876         * config/vms/vms-crtlmap.map: New file.
11877         * config/vms/vms.c: New file.
11878         * config/vms/make-crtlmap.awk: New file.
11879         * config/vms/vms-crtl.h: File removed.
11880         * config/vms/vms-crtl-64.h: File removed.
11881         * config/vms/t-vms (vms-crtlmap.h, vms.o): New targets.
11882         * config/alpha/vms64.h: Do not include vms-crtl-64.h
11883         * config/alpha/alpha.c (alpha_init_builtins): Remove code to
11884         clear some builtins on VMS.  Calls vms_patch_builtins.
11885         (avms_asm_output_external): Remove.
11886         * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Remove.
11887         (struct crtl_name_spec): Remove
11888         (DO_CTRL_NAMES): Remove.
11889         * config/ia64/vms.h (struct crtl_name_spec): Remove
11890         (DO_CTRL_NAMES): Remove.
11891         * config/ia64/ia64.c (alpha_init_builtins): Remove code to
11892         clear some builtins on VMS.  Calls vms_patch_builtins.
11893         (ia64_asm_output_external): Remove DO_CRTL_NAME.
11894         * config/ia64/vms64.h: Do not include vms-crtl-64.h
11895         * config.gcc (*-*-*vms*): Define extra_objs, target_gtfiles, tm_p_file.
11896
11897 2011-06-27  Tristan Gingold  <gingold@adacore.com>
11898
11899         * config/alpha/alpha.c (alpha_end_function): Always generate .end
11900         directive on VMS.
11901
11902 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
11903
11904         * config/sparc/sparc.c (sparc_frame_pointer_required): Return true if
11905         the function receives nonlocal gotos.
11906
11907 2011-06-27  Richard Guenther  <rguenther@suse.de>
11908
11909         PR tree-optimization/49536
11910         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
11911         For non-scalar inner types use a scalar type according to
11912         the scalar inner mode.
11913
11914 2011-06-27  Richard Guenther  <rguenther@suse.de>
11915
11916         PR tree-optimization/49365
11917         * params.def (min-insn-to-prefetch-ratio): Reduce from 10 to 9.
11918
11919 2011-06-27  Richard Guenther  <rguenther@suse.de>
11920
11921         PR tree-optimization/49169
11922         * fold-const.c (get_pointer_modulus_and_residue): Don't rely on
11923         the alignment of function decls.
11924
11925 2011-06-26  Iain Sandoe  <iains@gcc.gnu.org>
11926
11927         PR target/47997
11928         * config/darwin.c (darwin_mergeable_string_section): Place string
11929         constants in '.cstring' rather than '.const' when CF/NSStrings are
11930         active.
11931
11932 2011-06-26  Eric Botcazou  <ebotcazou@adacore.com>
11933
11934         * config/sparc/sparc.c (save_local_or_in_reg_p): Adjust comment.
11935         (emit_save_register_window): Likewise.
11936         (sparc_expand_prologue): Use SIZE_INT_RTX and SIZE_RTX variables.
11937         (sparc_flat_expand_prologue): Add comment.  Always emit blockage.
11938         Swap back %o7/%i7 in register naming.
11939
11940 2011-06-25  Iain Sandoe  <iains@gcc.gnu.org>
11941
11942         PR driver/49371
11943         * config/darwin.c (darwin_override_options): Improve warning when
11944         mdynamic-no-pic is given together with fPIC/fpic, also warn when it
11945         is given with fpie/fPIE.
11946         * config/darwin.h (PIE_SPEC): New, (LINK_SPEC): Use PIE_SPEC.
11947         * config/darwin9.h (PIE_SPEC): New.
11948
11949 2011-06-25  Basile Starynkevitch  <basile@starynkevitch.net>
11950
11951         * timevar.c (timevar_print): Increase width for display of timevar
11952         name.
11953
11954 2011-06-24  Jakub Jelinek  <jakub@redhat.com>
11955
11956         PR c++/46400
11957         * c-decl.c (union lang_tree_node): Use TYPE_NEXT_VARIANT
11958         instead of TYPE_CHAIN for chain_next for types.
11959
11960 2011-06-24  Richard Henderson  <rth@redhat.com>
11961
11962         * config/sparc/sparc.md (create_flat_frame_1<P:mode>): Remove.
11963         (create_flat_frame_2<P:mode>, create_flat_frame_3<P:mode>): Remove.
11964         * config/sparc/sparc.c (gen_create_flat_frame_1): Remove.
11965         (gen_create_flat_frame_2, gen_create_flat_frame_3): Remove.
11966         (sparc_flat_expand_prologue): Emit individual instructions
11967         instead of one of the above.
11968
11969 2011-06-24  Easwaran Raman  <eraman@google.com>
11970
11971         PR rtl-optimization/49429
11972         PR target/49454
11973         * expr.c (emit_block_move_hints):  Mark MEM_EXPR(x) and
11974         MEM_EXPR(y) addressable if emit_block_move_via_libcall is
11975         used to copy y into x.
11976         * calls.c (initialize_argument_information): Mark
11977         an argument addressable if it is passed by invisible reference.
11978         (emit_library_call_value_1): Mark  MEM_EXPR (val) addressable
11979         if it is passed by reference.
11980
11981 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
11982
11983         PR rtl-optimization/49504
11984         * rtlanal.c (nonzero_bits1): Properly handle addition or
11985         subtraction of a pointer in Pmode if pointers extend unsigned.
11986         (num_sign_bit_copies1): Likewise.
11987
11988 2011-06-24  Martin Jambor  <mjambor@suse.cz>
11989
11990         PR tree-optimizations/49516
11991         * tree-sra.c (sra_modify_assign): Choose the safe path for
11992         aggregate copies if we also did scalar replacements.
11993
11994 2011-06-24  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
11995
11996         PR target/49335
11997         * config/arm/predicates.md (add_operator): New.
11998         * config/arm/arm.md ("*arith_shiftsi"): Fix for SP reg usage in Thumb2.
11999
12000 2011-06-24  Andi Kleen  <ak@linux.intel.com>
12001
12002         * tree-sra.c (type_internals_preclude_sra_p): Add msg
12003         parameter. Split up ifs and report reason in *msg.
12004         (reject): Add.
12005         (find_var_candiate): Add msg variable.
12006         Split up ifs and report reason to reject.
12007         (find_param_candidates): Add msg variable.
12008         Pass msg to type_internals_preclude_sra_p.
12009
12010 2011-06-23  Jeff Law  <law@redhat.com>
12011
12012         PR middle-end/48770
12013         * reload.h (reload): Change to return a bool.
12014         * ira.c (ira): If requested by reload, run a fast DCE pass after
12015         reload has completed.  Fix comment typo.
12016         * reload1.c (need_dce): New file scoped static.
12017         (reload): Set reload_completed here.  Return whether or not a DCE
12018         pass after reload is needed.
12019         (delete_dead_insn): Set need_dce as needed.
12020
12021         PR middle-end/49465
12022         * tree-ssa-threadupate.c (fix_duplicate_block_edges): Fix condition
12023         to detect threading through joiner block.  If there was already
12024         an edge to the new target, then do not change the PHI nodes.
12025
12026 2011-06-23  Jakub Jelinek  <jakub@redhat.com>
12027
12028         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Use
12029         get_pointer_alignment to see if base isn't sufficiently aligned.
12030
12031 2011-06-23  Jan Hubicka  <jh@suse.cz>
12032
12033         PR tree-optimize/49373
12034         * tree-pass.h (all_late_ipa_passes): Declare.
12035         * cgraphunit.c (init_lowered_empty_function): Fix properties.
12036         (cgraph_optimize): Execute late passes; remove unreachable funcions
12037         after materialization.
12038         * ipa-inline.c (gate_ipa_inline): Enable only when optimizing or
12039         LTOing.
12040         * passes.c (all_late_ipa_passes): Declare.
12041         (dump_passes, register_pass): Handle late ipa passes.
12042         (init_optimization_passes): Move ipa_pta to late passes; schedule
12043         fixup_cfg at beggining of all_passes.
12044         (apply_ipa_transforms): New function.
12045         (execute_one_pass): When doing simple ipa pass, apply all transforms.
12046
12047 2011-06-23  Joseph Myers  <joseph@codesourcery.com>
12048
12049         * params.c: Include common/common-target.h.  Don't include tm.h.
12050         (lang_independent_params): Move from toplev.c.
12051         (global_init_params): New.
12052         * params.h (global_init_params): Declare.
12053         * target.def (default_params): Move to common-target.def.
12054         * toplev.c (lang_independent_options): Remove.
12055         (lang_independent_params): Move to params.c.
12056         (general_init): Use global_init_params.
12057         * common/common-target.def (option_default_params): Move from
12058         target.def.
12059         * common/config/ia64/ia64-common.c: Include params.h.
12060         (ia64_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
12061         from ia64.c.
12062         * common/config/rs6000/rs6000-common.c: Include params.h.
12063         (rs6000_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
12064         from rs6000.c.
12065         * common/config/sh/sh-common.c: Include params.h.
12066         (sh_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
12067         from sh.c.
12068         * common/config/spu/spu-common.c: Include params.h.
12069         (spu_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
12070         from spu.c.
12071         * config/ia64/ia64.c (ia64_option_default_params,
12072         TARGET_OPTION_DEFAULT_PARAMS): Move to ia64-common.c.
12073         * config/rs6000/rs6000.c (rs6000_option_default_params,
12074         TARGET_OPTION_DEFAULT_PARAMS): Move to rs6000-common.c.
12075         * config/sh/sh.c (sh_option_default_params,
12076         TARGET_OPTION_DEFAULT_PARAMS): Move to sh-common.c.
12077         * config/spu/spu.c (spu_option_default_params,
12078         TARGET_OPTION_DEFAULT_PARAMS): Move to spu-common.c.
12079         * Makefile.in (OBJS): Remove params.o.
12080         (OBJS-libcommon-target): Add params.o.
12081         (params.o, $(common_out_object_file)): Update dependencies.
12082         * doc/tm.texi: Regenerate.
12083
12084 2011-06-23  Alan Modra  <amodra@gmail.com>
12085
12086         PR bootstrap/49383
12087         * config/rs6000/rs6000.c (call_ABI_of_interest): Adjust cgraph
12088         invocation for 2011-06-09 changes.
12089
12090 2011-06-22  Jakub Jelinek  <jakub@redhat.com>
12091
12092         PR libgomp/49490
12093         * omp-low.c (expand_omp_for_static_nochunk): Only
12094         use n ceil/ nthreads size for the first n % nthreads threads in the
12095         team instead of all threads except for the last few ones which
12096         get less work or none at all.
12097
12098         PR debug/49496
12099         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Ignore debug
12100         uses.
12101
12102 2011-06-22  Richard Guenther  <rguenther@suse.de>
12103
12104         PR tree-optimization/49493
12105         * tree-ssa-structalias.c (get_constraint_for_ssa_var):
12106         Refer to the alias target of variables.
12107         (associate_varinfo_to_alias_1): Remove.
12108         (ipa_pta_execute): Do not associate aliases with anything.
12109         * cgraph.h (varpool_alias_aliased_node): Fix cut&paste errors.
12110         (cgraph_function_node): Likewise.
12111         (cgraph_function_or_thunk_node): Likewise.
12112         (varpool_variable_node): Likewise.
12113
12114 2011-06-22  Nathan Sidwell  <nathan@codesourcery.com>
12115
12116         * config/arm/arm.h (OPTION_DEFAULT_SPECS): Fix -mtls-dialect typo.
12117         * config.gcc (arm*-*-linux*): Default to gnu tls.
12118         (arm*-*-*): Add --with-tls option.
12119         (all_defaults): Add 'tls'.
12120
12121 2011-06-22  Richard Henderson  <rth@redhat.com>
12122
12123         * reg-notes.def (REG_CFA_WINDOW_SAVE): New.
12124         * dwarf2out.c (dwarf2out_frame_debug): Handle it.
12125         (dwarf2out_frame_debug_cfa_window_save): Rename from
12126         dwarf2out_window_save; make static.
12127         * tree.h (dwarf2out_window_save): Don't declare.
12128
12129         * config/sparc/sparc.c (sparc_dwarf_handle_frame_unspec): Remove.
12130         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
12131         (emit_save_register_window): Rename from gen_save_register_window;
12132         emit the insn and add REG_CFA_* notes.
12133         (sparc_expand_prologue): Update to match.
12134         * config/sparc/sparc.md (save_register_window_1): Simplify from
12135         save_register_window<P:mode>.
12136
12137 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
12138
12139         PR target/49497
12140         * config/i386/i386.md (*lea_general_2): Always allow SImode.
12141         (*lea_general_2_zext): Likewise.
12142         (imul to lea peepholes): Use const359_operand and check
12143         TARGET_PARTIAL_REG_STALL.
12144
12145         * config/i386/predicates.md (const359_operand): New.
12146
12147 2011-06-22  Michael Matz  <matz@suse.de>
12148
12149         * cgraphunit.c (assemble_thunk): Use correct return type.
12150
12151 2011-06-22  Dmitry Plotnikov  <dplotnikov@ispras.ru>
12152             Dmitry Melnik  <dm@ispras.ru>
12153
12154         * config/arm/arm.c (neon_immediate_valid_for_shift): New function.
12155         (neon_output_shift_immediate): Ditto.
12156         * config/arm/arm-protos.h (neon_immediate_valid_for_shift): New
12157         prototype.
12158         (neon_output_shift_immediate): Ditto.
12159         * config/arm/neon.md (vashl<mode>3): Modified constraint.
12160         (vashr<mode>3_imm): New insn pattern.
12161         (vlshr<mode>3_imm): Ditto.
12162         (vashr<mode>3): Modified constraint.
12163         (vlshr<mode>3): Ditto.
12164         * config/arm/predicates.md (imm_for_neon_lshift_operand): New
12165         predicate.
12166         (imm_for_neon_rshift_operand): Ditto.
12167         (imm_lshift_or_reg_neon): Ditto.
12168         (imm_rshift_or_reg_neon): Ditto.
12169
12170         * optabs.c (init_optabs): Init optab codes for vashl, vashr, vlshr.
12171
12172 2011-06-22  Jakub Jelinek  <jakub@redhat.com>
12173
12174         * tree-ssa-ccp.c (evaluate_stmt): Try bitwise tracking for
12175         builtin calls even if likelyvalue is not CONSTANT.
12176         Handle BUILT_IN_STRDUP and BUILT_IN_STRNDUP like BUILT_IN_MALLOC.
12177         Return get_value_for_expr of first operand
12178         for BUILT_IN_{MEM{CPY,MOVE,SET},STR{,N}CPY}{,_CHK}.
12179         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
12180         BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK like
12181         their non-checking counterparts.
12182         (call_may_clobber_ref_p_1): Likewise.
12183         (stmt_kills_ref_p_1): Handle BUILT_IN_MEM{{,P}CPY,MOVE,SET}_CHK
12184         like their non-checking counterparts.
12185         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
12186         Handle BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK
12187         like their non-checking counterparts.
12188         (find_func_clobbers): Likewise.
12189         * tree-ssa-dce.c (propagate_necessity): Handle BUILT_IN_MEMSET_CHK
12190         like BUILT_IN_MEMSET and BUILT_IN_CALLOC like BUILT_IN_MALLOC.
12191
12192         * dwarf2out.c (size_of_loc_descr, output_loc_operands,
12193         mark_base_types, hash_loc_operands, compare_loc_operands): Allow
12194         DW_OP_GNU_convert and DW_OP_GNU_reinterpret to use constant instead
12195         of base type reference as argument.
12196         (resolve_addr_in_expr): Likewise.  Fix keep computation.
12197         (convert_descriptor_to_signed): Renamed to...
12198         (convert_descriptor_to_mode): ... this.  For wider types convert to
12199         unsigned instead of signed, for <= DWARF2_ADDR_SIZE convert to untyped.
12200         (typed_binop): New function.
12201         (scompare_loc_descriptor, ucompare_loc_descriptor,
12202         minmax_loc_descriptor, mem_loc_descriptor): For wider integer modes
12203         default to unsigned type instead of signed.
12204
12205         PR debug/47858
12206         * gimple.h (enum gimple_debug_subcode): Add GIMPLE_DEBUG_SOURCE_BIND.
12207         (gimple_build_debug_source_bind_stat): New prototype.
12208         (gimple_build_debug_source_bind): Define.
12209         (gimple_debug_source_bind_p, gimple_debug_source_bind_get_var,
12210         gimple_debug_source_bind_get_value,
12211         gimple_debug_source_bind_get_value_ptr,
12212         gimple_debug_source_bind_set_var,
12213         gimple_debug_source_bind_set_value): New inlines.
12214         * gimple.c (gimple_build_debug_source_bind_stat): New function.
12215         * gimple-pretty-print.c (dump_gimple_debug): Handle
12216         GIMPLE_DEBUG_SOURCE_BIND.
12217         * sese.c (rename_uses): Handle gimple_debug_source_bind_p.
12218         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
12219         * tree-parloops.c (eliminate_local_variables,
12220         separate_decls_in_region): Likewise.
12221         (separate_decls_in_region_debug): Renamed from
12222         separate_decls_in_region_debug_bind.  Handle
12223         gimple_debug_source_bind_p.
12224         * tree.h (decl_debug_args_lookup, decl_debug_args_insert): New
12225         prototypes.
12226         (DECL_HAS_DEBUG_ARGS_P): Define.
12227         (struct tree_function_decl): Add has_debug_args_flag field.
12228         * tree.c (debug_args_for_decl): New variable.
12229         (decl_debug_args_lookup, decl_debug_args_insert): New functions.
12230         * tree-into-ssa.c (mark_def_sites): Handle uses in debug stmts.
12231         (rewrite_debug_stmt_uses): New function.
12232         (rewrite_stmt): Use it to rewrite debug stmt uses.
12233         * rtl.def (DEBUG_PARAMETER_REF): New.
12234         * rtl.h (DEBUG_PARAMETER_REF_DECL): Define.
12235         * cselib.c (rtx_equal_for_cselib_1, cselib_hash_rtx): Handle
12236         DEBUG_PARAMETER_REF.
12237         * rtl.c (rtx_equal_p_cb, rtx_equal_p, iterative_hash_rtx): Likewise.
12238         * print-rtl.c (print_rtx): Likewise.
12239         * tree-sra.c (sra_ipa_reset_debug_stmts): Prefer replacing of
12240         SSA_NAMEs with DEBUG_EXPR_DECLs initialized in source bind
12241         debug stmts in the first bb.
12242         * tree-inline.c (remap_ssa_name): If remapping default def
12243         of a PARM_DECL fails, map to a DEBUG_EXPR_DECL set in
12244         a source bind debug stmt.
12245         (remap_gimple_stmt): Handle gimple_debug_source_bind_p.
12246         (maybe_move_debug_stmts_to_successors): Likewise.
12247         (copy_debug_stmt): Likewise.  Avoid shadowing a variable.
12248         (tree_function_versioning): If DECL_HAS_DEBUG_ARGS_P, copy
12249         debug args vector from old_decl to new_decl.
12250         * ipa-prop.c (ipa_modify_call_arguments): For optimized away
12251         or modified parameters, add debug bind stmts before call
12252         setting DEBUG_EXPR_DECL which is remembered in debug args vector.
12253         * cfgexpand.c (expand_call_stmt): Call expand_debug_expr
12254         on DECL_DEBUG_EXPRs from debug args vector.
12255         (expand_debug_source_expr): New function.
12256         (expand_debug_locations): Use it for source bind insns.
12257         (expand_gimple_basic_block): Handle gimple_debug_source_bind_p.
12258         * var-tracking.c (prepare_call_arguments): Add debug args
12259         to call_arguments if any.
12260         * dwarf2out.c (dwarf_stack_op_name, size_of_loc_descr,
12261         output_loc_operands, output_loc_operands_raw, resolve_addr_in_expr,
12262         compare_loc_operands): Handle DW_OP_GNU_parameter_ref.
12263         (get_ref_die_offset, parameter_ref_descriptor): New functions.
12264         (mem_loc_descriptor): Handle DEBUG_PARAMETER_REF.
12265         (gen_subprogram_die): Handle parameters identified by
12266         DEBUG_PARAMETER_REF.
12267
12268 2011-06-22  Nathan Sidwell  <nathan@codesourcery.com>
12269
12270         * doc/invoke.texi (ARM Options): Document -mtls-dialect option.
12271         * doc/install.texi (Configuration): Document --with-tls.
12272         * config/arm/arm.c (enum tls_reloc): Add TLS_DESCSEQ.
12273         (arm_call_tls_get_addr): Clean up. Assert not tls descriptor.
12274         (arm_tls_descseq_addr): New.
12275         (legitimize_tls_address): Add tlsdesc support.
12276         (arm_cannot_copy_insn_p): Check for tlscall.
12277         (arm_emit_tls_decoration): Likewise.
12278         * config/arm/arm.h (TARGET_GNU2_TLS): New.
12279         (OPTION_DEFAULT_SPECS): Add with-tls support.
12280         * config/arm/arm.md (R1_REGNUM): Define.
12281         (tlscall): New.
12282         * config/arm/arm.opt (tls_type): New enumeration type and values.
12283         (mtls-dialect): New switch.
12284         * config/arm/arm-opts.h (enum tls_type): New.
12285
12286 2011-06-21  Nicola Pero  <nicola.pero@meta-innovation.com>
12287
12288         * attribs.c (register_attribute): Added assert to check that all
12289         attribute specs are registered with a name that is not empty and
12290         does not start with '_'.
12291         (decl_attributes): Avoid the lookup of the "naked" attribute spec
12292         if the function has no attributes.
12293         * tree.c (is_attribute_with_length_p): Removed.
12294         (is_attribute_p): Removed.
12295         (private_is_attribute_p): New.
12296         (private_lookup_attribute): New.
12297         (lookup_attribute): Removed.
12298         (lookup_ident_attribute): New.
12299         (remove_attribute): Require the first argument to be in the form
12300         'text', not '__text__'.  Updated asserts.
12301         (merge_attributes): Use lookup_ident_attributes instead of
12302         lookup_attribute.
12303         (merge_dllimport_decl_attributes): Use remove_attribute.
12304         (attribute_list_contained): Likewise.
12305         (attribute_list_equal): Immediately return 1 if the arguments are
12306         identical pointers.
12307         * tree.h (is_attribute_p): Made inline.  Return a 'bool', not an
12308         'int'.  Require the first argument to be in the form 'text', not
12309         '__text__'.  Require the second argument to be an identifier.
12310         (lookup_attribute): Made inline.  Require the first argument to be
12311         in the form 'text', not '__text__'.
12312         (private_is_attribute_p, private_lookup_attribute): New.
12313         Updated comments.
12314
12315 2011-06-21  Andrew MacLeod  <amacleod@redhat.com>
12316
12317         * builtins.c: Add sync_ or SYNC__ to builtin names.
12318         * sync-builtins.def: Add sync_ or SYNC__ to builtin names.
12319         * omp-low.c: Add sync_ or SYNC__ to builtin names.
12320
12321 2011-06-21  Georg-Johann Lay  <avr@gjlay.de>
12322
12323         PR target/33049
12324         * config/avr/avr.md (extzv): New expander.
12325         (*extzv): New insn.
12326         (*extzv.qihi1, *extzv.qihi2): New insn-and-split.
12327         * config/avr/constraints.md (C04): New constraint.
12328         * doc/md.texi (Machine Constraints): Document it.
12329
12330 2011-06-21  Jakub Jelinek  <jakub@redhat.com>
12331
12332         PR middle-end/49489
12333         * builtins.c (expand_builtin_unop): Call expand_unop with 0 as
12334         unsignedp argument instead of 1 for clrsb_optab.
12335         (fold_builtin_bitop): Fix masking for width > HOST_BITS_PER_WIDE_INT
12336         and < 2 * HOST_BITS_PER_WIDE_INT.  Optimize BUILT_IN_CLRSB*.
12337         (fold_builtin_1): Call fold_builtin_binop for BUILT_IN_CLRSB*.
12338         * optabs.c (widen_leading): Call widen_operand and expand_unop
12339         with 0 as unsignedp argument instead of 1 for clrsb_optab.
12340         (expand_unop): Subtract difference of mode sizes also for clrsb_optab.
12341
12342 2011-06-21  Georg-Johann Lay  <avr@gjlay.de>
12343
12344         * config/avr/avr.md (*jcindirect_jump): Fix build warning.
12345
12346 2011-06-21  Bernd Schmidt  <bernds@codesourcery.com>
12347
12348         * gensupport.c (add_define_attr): New static function.
12349         (is_predicable): Allow multi-alternative lists for the "predicable"
12350         attribute.
12351         (modify_attr_enabled_ce, alter_attrs_for_insn): New static functions.
12352         (process_one_cond_exec): Call alter_attrs_for_insn.
12353         * doc/md.texi (Defining Attributes): Mention some standard names.
12354         (Conditional Execution): Update documentation for "predicable".
12355
12356         * doc/extend.texi (__builtin_clrsb, __builtin_clrsbl,
12357         __builtin_clrsbll): Document.
12358         * doc/rtl.texi (clrsb): New entry.
12359         * optabs.c (widen_leading): Renamed from widen_clz.  New argument
12360         UNOPTAB.  All callers changed.  Use UNOPTAB instead of clz_optab.
12361         (expand_unop): Handle clrsb_optab.
12362         (init_optabs): Initialize it.
12363         * optabs.h (enum optab_index): New entry OTI_clrsb.
12364         (clrsb_optab): Define.
12365         * genopinit.c (optabs): Add an entry for it.
12366         * builtins.c (expand_builtin): Handle clrsb builtin functions.
12367         * builtins.def (BUILT_IN_CLRSB, BUILT_IN_CLRSBIMAX, BUILT_IN_CLRSBL,
12368         BUILT_IN_CLRSBLL): New.
12369         * rtl.def (CLRSB): New code.
12370         * dwarf2out.c (mem_loc_descriptor): Handle it.
12371         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
12372         Use op_mode rather than mode when optimizing ffs, clz, ctz, parity
12373         and popcount.
12374         * libgcc2.c (__clrsbSI2, __clrsbDI2): New functions.
12375         * libgcc2.h (__clrsbSI2, __clrsbDI2): Define and declare.
12376         (__ctzDI2): Move declaration.
12377         * config/bfin/bfin.md (clrsbsi2): New expander.
12378         (signbitssi2): Use the CLRSB rtx.
12379         (clrsbhi2): Renamed from signbitshi2.  Use the CLRSB rtx.
12380         * config/bfin/bfin.c (bdesc_1arg): Changed accordingly.
12381
12382 2011-06-21  Richard Guenther  <rguenther@suse.de>
12383
12384         * ipa-inline-transform.c (inline_transform): Fix previous change.
12385
12386 2011-06-21  Ira Rosen  <ira.rosen@linaro.org>
12387
12388         PR tree-optimization/49478
12389         * tree-vect-loop.c (vectorizable_reduction): Handle DOT_PROD_EXPR
12390         with constant operand.
12391
12392 2011-06-21  Richard Guenther  <rguenther@suse.de>
12393
12394         * ipa-inline-transform.c (inline_transform): Fix typo.
12395
12396 2011-06-21  Richard Guenther  <rguenther@suse.de>
12397
12398         PR tree-optimization/49483
12399         * tree-vect-stmts.c (vectorizable_assignment): Also handle
12400         VIEW_CONVERT_EXPR conversions.
12401
12402 2011-06-21  Joseph Myers  <joseph@codesourcery.com>
12403
12404         * config/avr/avr-mcus.def, config/avr/genopt.sh: New files.
12405         * config/avr/avr-tables.opt: New file (generated).
12406         * config.gcc (avr-*-*): Use avr/avr-tables.opt.
12407         * config/avr/avr-devices.c (avr_mcu_types): Move contents to
12408         avr-mcus.def.
12409         * config/avr/avr.c (avr_help, TARGET_HELP): Remove.
12410         (avr_option_override): Don't process -mmcu= argument here.  Set
12411         avr_current_device using avr_mcu_index.
12412         (avr_file_start): Use avr_current_device->name instead of avr_mcu_name.
12413         * config/avr/avr.opt (mmcu=): Use Enum.
12414         * config/avr/t-avr (avr-devices.o): Update dependencies.
12415         ($(srcdir)/config/avr/avr-tables.opt): New.
12416         * target.def (help): Remove.
12417         * doc/tm.texi.in (TARGET_HELP): Remove.
12418         * doc/tm.texi: Regenerate.
12419         * opts.c: Don't include target.h.
12420         (common_handle_option): Don't call targetm.help.
12421         * system.h (TARGET_HELP): Poison.
12422         * Makefile.in (opts.o): Update dependencies.
12423
12424 2011-06-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12425
12426         * config/usegld.h: New file.
12427         * config/sol2.h (PREFERRED_DEBUGGING_TYPE): Remove.
12428         (CPP_SUBTARGET_SPEC): Remove -compat-bsd support.
12429         (LIB_SPEC): Likewise.  Search /lib.
12430         (LINK_ARCH32_SPEC_BASE): Remove -compat-bsd support.
12431         (RDYNAMIC_SPEC): Handle GNU ld.
12432         [HAVE_LD_EH_FRAME_HDR && TARGET_DL_ITERATE_PHDR] (LINK_EH_SPEC):
12433         Define.
12434         (SUPPORTS_INIT_PRIORITY): Only disable for Sun ld.
12435         (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Define.
12436         [!USE_GAS] (NO_DBX_BNSYM_ENSYM): Redefine.
12437         (STACK_CHECK_STATIC_BUILTIN): Define.
12438         * config/sol2.opt (compat-bsd): Remove.
12439         * config/sol2-10.h (TARGET_C99_FUNCTIONS): Remove undef.
12440         * config/sol2-bi.h: New file.
12441         * config/sol2-gld.h: Remove.
12442         * config/i386/sol2.h (TLS_COMMON_ASM_OP): Only define if !USE_GAS.
12443         (NO_DBX_BNSYM_ENSYM): Remove.
12444         (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
12445         (STACK_CHECK_STATIC_BUILTIN): Remove.
12446         Test USE_GLD instead of TARGET_GNU_LD.
12447         * config/i386/sol2-10.h: Rename to ...
12448         * config/i386/sol2-bi.h .. this.
12449         (SUBTARGET_EXTRA_SPECS): Redefine.
12450         (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Remove.
12451         (MULTILIB_DEFAULTS): Remove.
12452         (DEFAULT_ARCH32_P): Define.
12453         (LINK_ARCH64_SPEC_BASE, LINK_ARCH64_SPEC): Remove.
12454         (ARCH64_SUBDIR): Define.
12455         Test USE_GLD instead of TARGET_GNU_LD.
12456         (I386_EMULATION): Rename to ...
12457         (ARCH32_EMULATION): ... this.
12458         (X86_64_EMULATION): Rename to ...
12459         (ARCH64_EMULATION): ... this.
12460         (TARGET_LD_EMULATION): Remove.
12461         (LINK_ARCH_SPEC): Remove.
12462         * config/i386/sol2-gas.h: Remove.
12463         * config/i386/t-sol2-10: Rename to ...
12464         * config/i386/t-sol2-64: ... this.
12465         * config/sparc/sol2.h (SPARC_DEFAULT_CMODEL): Redefine.
12466         (AS_SPARC64_FLAG): Define.
12467         (ASM_CPU32_DEFAULT_SPEC, ASM_CPU64_DEFAULT_SPEC): Redefine.
12468         (CPP_CPU64_DEFAULT_SPEC, ASM_CPU32_DEFAULT_SPEC): Redefine
12469         depending on TARGET_CPU_DEFAULT.
12470         (CPP_CPU_SPEC): Redefine.
12471         (ASM_CPU_SPEC): Handle DEFAULT_ARCH32_P.
12472         (CPP_CPU_DEFAULT_SPEC, ASM_CPU_DEFAULT_SPEC): Redefine.
12473         (CPP_ARCH32_SPEC, CPP_ARCH64_SPEC, CPP_ARCH_SPEC): Redefine.
12474         (ASM_ARCH_SPEC, ASM_ARCH32_SPEC, ASM_ARCH64_SPEC,
12475         ASM_ARCH_DEFAULT_SPEC): Redefine.
12476         (SUBTARGET_EXTRA_SPECS): Add LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
12477         LINK_ARCH_DEFAULT_SPEC.
12478         [USE_GLD] (ARCH32_EMULATION, ARCH64_EMULATION): Define.
12479         [USE_GLD] (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC): Redefine.
12480         (ARCH64_SUBDIR): Define.
12481         (LINK_ARCH64_SPEC): Redefine.
12482         (CC1_SPEC): Redefine.
12483         (OPTION_DEFAULT_SPECS): Redefine.
12484         (MULTILIB_DEFAULTS): Define.
12485         (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Redefine.
12486         [USE_GAS && HAVE_AS_TLS] (TARGET_SUN_TLS, TARGET_GNU_TLS): Redefine.
12487         [USE_GLD] (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undef.
12488         (NO_DBX_BNSYM_ENSYM): Remove.
12489         (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
12490         (ASM_OUTPUT_ALIGN_WITH_NOP): Only define if !USE_GAS.
12491         (TARGET_ASM_NAMED_SECTION): Likewise.
12492         (STACK_CHECK_STATIC_BUILTIN): Remove.
12493         * config/sparc/sol2-bi.h: Remove.
12494         * config/sparc/sol2-gas-bi.h: Remove.
12495         * config/sparc/sol2-gas.h: Remove.
12496         * config/sparc/sol2-gld-bi.h: Remove.
12497         * config.gcc (i[34567]86-*-solaris2*, sparc*-*-solaris2*): Move
12498         common parts ...
12499         (*-*-solaris2*): ... here.
12500
12501 2011-06-21  Christian Bruel  <christian.bruel@st.com>
12502
12503         PR other/43564
12504         * ipa-inline.c (can_inline_edge_p): Check
12505         !DECL_DISREGARD_INLINE_LIMITS.
12506
12507 2011-06-21  Christian Bruel  <christian.bruel@st.com>
12508
12509         PR middle-end/49139
12510         * cgraphunit.c (process_function_and_variable_attributes): warn when
12511         always_inline functions that are not inline.
12512         * ipa-inline-transform.c (inline_transform): Always call
12513         optimize_inline.
12514         * tree-inline.c (tree_inlinable_function_p): Use error instead
12515         of sorry.
12516         (expand_call_inline): Likewise.
12517
12518 2011-06-21  Jakub Jelinek  <jakub@redhat.com>
12519
12520         * Makefile.in (dg_target_exps): Set.
12521         (check_gcc_parallelize): Parallelize gcc testing into 10 jobs
12522         instead of 7, try to divide it more evenly.
12523
12524 2011-06-20  Changpeng Fang  <changpeng.fang@amd.com>
12525
12526         PR target/49089
12527         * config/i386/i386.c (avx256_split_unaligned_load): New definition.
12528         (avx256_split_unaligned_store): New definition.
12529         (ix86_option_override_internal): Enable avx256 unaligned load/store
12530         splitting only when avx256_split_unaligned_load/store is set.
12531
12532 2011-06-20  Bernd Schmidt  <bernds@codesourcery.com>
12533
12534         * regrename.c (scan_rtx_reg): Handle the case where we write to an
12535         open chain in a smaller mode without failing the entire block.
12536
12537 2011-06-21  Alan Modra  <amodra@gmail.com>
12538
12539         * config/rs6000/rs6000.c (rs6000_cannot_force_const_mem): Match
12540         CONST high part large-toc address.
12541         (rs6000_tls_referenced_p): Make static.
12542         * config/rs6000/rs6000-protos.h (rs6000_tls_referenced_p): Delete.
12543
12544 2011-06-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
12545
12546         PR target/49385
12547         * config/arm/thumb2.md (*thumb2_movhi_insn): Make sure atleast
12548         one of the operands is a register.
12549
12550 2011-06-20  Kai Tietz  <ktietz@redhat.com>
12551
12552         * fold-const.c (fold_binary_loc): Add missing folding for truth-not
12553         operations in combination with binary and.
12554
12555 2011-06-20  Bernd Schmidt  <bernds@codesourcery.com>
12556
12557         * regrename.c (do_replace): Don't update notes.
12558
12559 2011-06-20  Alan Modra  <amodra@gmail.com>
12560
12561         * config/rs6000/rs6000.c (create_TOC_reference): Wrap high part
12562         of toc-relative address in CONST.
12563         (rs6000_delegitimize_address): Recognize changed address.
12564         (rs6000_legitimize_reload_address): Likewise.
12565         (rs6000_emit_move): Don't force these constants to memory.
12566         * config/rs6000/rs6000.md (tls_gd, tls_gd_high): Wrap high part of
12567         toc-relative address in CONST.
12568         (tls_ld, tls_ld_high, tls_got_dtprel, tls_got_dtprel_high): Likewise.
12569         (tls_got_tprel, tls_got_tprel_high, largetoc_high): Likewise.
12570
12571 2011-06-18  H.J. Lu  <hongjiu.lu@intel.com>
12572
12573         * longlong.h (count_leading_zeros): Use long long builtin for x86-64.
12574         (count_trailing_zeros): Likewise.
12575
12576 2011-06-18  H.J. Lu  <hongjiu.lu@intel.com>
12577
12578         PR other/49325
12579         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Properly check if
12580         .init_array can be used with .ctors on targets.
12581         * configure: Regenerated.
12582
12583 2011-06-18  Eric Botcazou  <ebotcazou@adacore.com>
12584
12585         * tree-sra.c (type_internals_preclude_sra_p) <ARRAY_TYPE>: Return true
12586         if the element type is volatile.
12587
12588 2011-06-18  Jan Hubicka  <jh@suse.cz>
12589
12590         * lto-symtab.c (lto_varpool_replace_node): Remove code handling
12591         extra name aliases.
12592         (lto_symtab_resolve_can_prevail_p): Likewise.
12593         (lto_symtab_merge_cgraph_nodes): Update alias_of pointers.
12594         * cgraphbuild.c (record_reference): Remove extra body alias code.
12595         (mark_load): Likewise.
12596         (mark_store): Likewise.
12597         * cgraph.h (varpool_node): Remove extra_name filed;
12598         add alias_of and extraname_alias.
12599         (varpool_create_variable_alias, varpool_for_node_and_aliases): Declare.
12600         (varpool_alias_aliased_node): New inline function.
12601         (varpool_variable_node): New function.
12602         * cgraphunit.c (handle_alias_pairs): Handle also variable aliases.
12603         * ipa-ref.c (ipa_record_reference): Allow aliases on variables.
12604         * lto-cgraph.c (lto_output_varpool_node): Update streaming.
12605         (input_varpool_node): Likewise.
12606         * lto-streamer-out.c (produce_symtab): Remove extra name aliases.
12607         (varpool_externally_visible_p): Remove extra body alias code.
12608         (function_and_variable_visibility): Likewise.
12609         * tree-ssa-structalias.c (associate_varinfo_to_alias_1): New function.
12610         (ipa_pta_execute): Use it.
12611         * varpool.c (varpool_remove_node): Remove extra name alias code.
12612         (varpool_mark_needed_node): Likewise.
12613         (varpool_analyze_pending_decls): Analyze aliases.
12614         (assemble_aliases): New functoin.
12615         (varpool_assemble_decl): Use it.
12616         (varpool_create_variable_alias): New function.
12617         (varpool_extra_name_alias): Rewrite.
12618         (varpool_for_node_and_aliases): New function.
12619
12620 2011-06-18  Jakub Jelinek  <jakub@redhat.com>
12621
12622         PR target/49411
12623         * config/i386/i386.c (ix86_expand_multi_arg_builtins): If
12624         last_arg_constant and last argument doesn't match its predicate,
12625         for xop_vpermil2<mode>3 error out and for xop_rotl<mode>3
12626         if it is CONST_INT, mask it, otherwise expand using rotl<mode>3.
12627         (ix86_expand_sse_pcmpestr, ix86_expand_sse_pcmpistr): Fix
12628         spelling of error message.
12629         * config/i386/sse.md (sse4a_extrqi, sse4a_insertqi,
12630         vcvtps2ph, *vcvtps2ph, *vcvtps2ph_store, vcvtps2ph256): Use
12631         const_0_to_255_operand instead of const_int_operand.
12632
12633         Revert:
12634         2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
12635
12636         * config/i386/sse.md (blendbits): Remove mode attribute.
12637         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
12638         instead of const_0_to_<blendbits>_operand for operand 3 predicate.
12639         Check integer value of operand 3 in insn constraint.
12640
12641 2011-06-17  Hans-Peter Nilsson  <hp@axis.com>
12642
12643         PR rtl-optimization/48542
12644         * reload.c (find_equiv_reg): Stop looking when finding a
12645         setjmp-type call.
12646         * reload1.c (reload_as_needed): Invalidate all reload
12647         registers when crossing a setjmp-type call.
12648
12649 2011-06-16  Jeff Law  <law@redhat.com>
12650
12651         * tree-ssa-threadupdate.c (struct redirection_data): New field
12652         intermediate_edge.
12653         (THREAD_TARGET2): Define.
12654         (redirection_data_eq): Also check that the intermediate edge is equal.
12655         (lookup_redirection_data): Drop useless argument.  Extract the
12656         outgoing_edge and intermediate edge from E.  Callers updated.
12657         (copy_phi_args, update_destination_phis): New functions.
12658         (fix_duplicate_block_edges): Likewise.
12659         (create_edge_and_update_destination_phis): Duplicate all the edges
12660         hung off e->aux.  Use copy_phi_args.
12661         (create_duplicates): Use fix_duplicate_block_edges.
12662         (fixup_template_block): Likewise.
12663         (redirect_edges): If necessary, redirect the joiner block's incoming
12664         edge to the duplicate of the joiner block.
12665         (thread_block): Don't muck up loops when threading through a joiner
12666         block.
12667         (thread_through_loop_header): Handle threading through a joiner block.
12668         (mark_threaded_blocks, register_jump_thread): Likewise.
12669         * tree-flow.h (register_jump_thread): Add new argument.  Callers
12670         updated.
12671         * tree-ssa-threadedge.c (phi_args_equal_on_edges): New function.
12672         (thread_across_edge): Handle threading through a joiner block.
12673
12674 2011-06-16  Martin Jambor  <mjambor@suse.cz>
12675
12676         PR tree-optimization/49343
12677         * tree-sra.c (build_ref_for_model): Use component_ref_field_offset to
12678         calculate offset, provide 2nd operand for the new COMPONENT_REF.
12679
12680 2011-06-16  Iain Sandoe  <iains@gcc.gnu.org>
12681
12682         * config/darwin-protos.h (machopic_select_rtx_section): Move to
12683         inside RTX_CODE ifdef.
12684
12685 2011-06-16  Tom de Vries  <tom@codesourcery.com>
12686
12687         PR target/45098
12688         * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith):
12689         Disallow NULL pointer for pointer arithmetic.
12690
12691 2011-06-16  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
12692
12693         PR target/49398
12694         Revert.
12695         2011-06-10  Wei Guozhi  <carrot@google.com>
12696
12697         PR target/45335
12698         * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
12699         stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
12700         (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
12701         related peephole2.
12702         (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
12703         related peephole2.
12704         * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
12705         (arm_legitimate_ldrd_p): New prototype.
12706         (arm_output_ldrd): New prototype.
12707         * config/arm/arm.c (arm_check_ldrd_operands): New function.
12708         (arm_legitimate_ldrd_p): New function.
12709         (arm_output_ldrd): New function.
12710
12711 2011-06-16  Joern Rennecke  <joern.rennecke@embecosm.com>
12712
12713         PR middle-end/46500
12714         * doc/tm.texi.in: Update Copyright date.
12715         * doc/tm.texi: Regenerate.
12716         * targhooks.c (default_setup_incoming_varargs): Replace
12717         CUMULATIVE_ARGS* argument type with cumulative_args_t.
12718         (default_pretend_outgoing_varargs_named): Likewise.
12719         (hook_pass_by_reference_must_pass_in_stack): Likewise.
12720         (hook_callee_copies_named): Likewise.
12721         (default_function_arg_advance): Likewise.
12722         (default_function_arg): Likewise.
12723         (default_function_incoming_arg): Likewise.
12724         (hook_bool_CUMULATIVE_ARGS_false): Likewise.
12725         (hook_bool_CUMULATIVE_ARGS_true): Likewise.
12726         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
12727         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
12728         (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
12729         * targhooks.h (default_setup_incoming_varargs): Likewise.
12730         (default_pretend_outgoing_varargs_named): Likewise.
12731         (hook_pass_by_reference_must_pass_in_stack): Likewise.
12732         (hook_callee_copies_named): Likewise.
12733         (default_function_arg_advance): Likewise.
12734         (default_function_arg): Likewise.
12735         (default_function_incoming_arg): Likewise.
12736         (hook_bool_CUMULATIVE_ARGS_false): Likewise.
12737         (hook_bool_CUMULATIVE_ARGS_true): Likewise.
12738         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
12739         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
12740         (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
12741         * target.def (pass_by_reference): Likewise.
12742         (setup_incoming_varargs, strict_argument_naming): Likewise.
12743         (pretend_outgoing_varargs_named, callee_copies): Likewise.
12744         (arg_partial_bytes, function_arg_advance, function_arg): Likewise.
12745         (function_incoming_arg): Likewise.
12746         * target.h: Don't include "tm.h" .
12747         (cumulative_args_t): New typedef.
12748         [GCC_TM_H] (get_cumulative_args): New static inline function.
12749         [GCC_TM_H] (pack_cumulative_args): Likewise.
12750         * config/alpha/alpha.c (alpha_function_arg): Replace CUMULATIVE_ARGS*
12751         argument type with cumulative_args_t.
12752         (alpha_function_arg_advance, alpha_arg_partial_bytes): Likewise.
12753         (alpha_pass_by_reference, alpha_setup_incoming_varargs): Likewise.
12754         * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
12755         (frv_arg_partial_bytes, frv_function_arg): Likewise.
12756         (frv_function_incoming_arg, frv_function_arg_advance): Likewise.
12757         (frv_function_arg_1): Likewise.
12758         * config/s390/s390.c (s390_pass_by_reference): Likewise.
12759         (s390_function_arg_advance, s390_function_arg): Likewise.
12760         * config/m32c/m32c.c (m32c_function_arg): Likewise.
12761         (m32c_pass_by_reference, m32c_function_arg_advance): Likewise.
12762         (m32c_strict_argument_naming): Likewise.
12763         * config/spu/spu.c (spu_pass_by_reference, spu_function_arg): Likewise.
12764         (spu_function_arg_advance): Likewise.
12765         (spu_setup_incoming_varargs): Likewise.  Make static.
12766         * config/spu/spu-protos.h (spu_setup_incoming_varargs):
12767         Remove prototype.
12768         * config/sparc/sparc.c (sparc_strict_argument_naming): Replace
12769         CUMULATIVE_ARGS* argument type with cumulative_args_t.
12770         (sparc_pass_by_reference, sparc_function_arg_advance): Likewise.
12771         (sparc_function_arg, sparc_function_incoming_arg): Likewise.
12772         (sparc_arg_partial_bytes, sparc_function_arg_1): Likewise.
12773         * config/mep/mep.c (mep_setup_incoming_varargs): Likewise.
12774         (mep_pass_by_reference, mep_function_arg): Likewise.
12775         (mep_function_arg_advance): Likewise.
12776         * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
12777         (m32r_pass_by_reference, m32r_arg_partial_bytes): Likewise.
12778         (m32r_function_arg, m32r_function_arg_advance): Likewise.
12779         * config/rx/rx.c (rx_function_arg, rx_function_arg_advance): Likewise.
12780         * config/i386/i386.c (ix86_function_arg_advance): Likewise.
12781         (ix86_function_arg, ix86_pass_by_reference): Likewise.
12782         (ix86_setup_incoming_varargs): Likewise.
12783         * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
12784         (sh_strict_argument_naming): Likewise.
12785         (sh_pretend_outgoing_varargs_named, sh_pass_by_reference): Likewise.
12786         (sh_callee_copies, sh_arg_partial_bytes): Likewise.
12787         (sh_function_arg_advance, sh_function_arg): Likewise.
12788         * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
12789         (pdp11_function_arg_advance): Likewise.
12790         * config/microblaze/microblaze.c (microblaze_function_arg_advance):
12791         Likewise.
12792         (microblaze_function_arg, function_arg_partial_bytes): Likewise.
12793         * config/avr/avr.c (avr_function_arg): Likewise.
12794         (avr_function_arg_advance): Likewise.
12795         * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
12796         (xtensa_function_arg, xtensa_function_incoming_arg): Likewise.
12797         (xtensa_function_arg_1): Likewise.
12798         * config/stormy16/stormy16.c (xstormy16_function_arg_advance):
12799         Likewise.
12800         (xstormy16_function_arg): Likewise.
12801         * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
12802         (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
12803         (fr30_function_arg_advance): Likewise.
12804         * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
12805         (lm32_function_arg, lm32_function_arg_advance): Likewise.
12806         * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
12807         (moxie_function_arg, moxie_function_arg_advance): Likewise.
12808         (moxie_pass_by_reference, moxie_arg_partial_bytes): Likewise.
12809         * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
12810         (cris_pass_by_reference, cris_arg_partial_bytes): Likewise.
12811         (cris_function_arg, cris_function_incoming_arg): Likewise.
12812         (cris_function_arg_advance, cris_function_arg_1): Likewise.
12813         * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
12814         (iq2000_pass_by_reference, iq2000_arg_partial_bytes): Likewise.
12815         (iq2000_function_arg, iq2000_function_arg_advance): Likewise.
12816         * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
12817         (mn10300_function_arg, mn10300_function_arg_advance): Likewise.
12818         (mn10300_arg_partial_bytes): Likewise.
12819         * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
12820         (ia64_arg_partial_bytes, ia64_function_arg): Likewise.
12821         (ia64_function_incoming_arg, ia64_function_arg_advance): Likewise.
12822         (ia64_function_arg_1): Likewise.
12823         * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
12824         (m68k_function_arg): Likewise.
12825         * config/rs6000/rs6000.c (rs6000_function_arg_advance): Likewise.
12826         (rs6000_function_arg, setup_incoming_varargs): Likewise.
12827         (rs6000_pass_by_reference, rs6000_arg_partial_bytes): Likewise.
12828         * config/picochip/picochip.c (picochip_arg_partial_bytes): Likewise.
12829         (picochip_function_arg, picochip_incoming_function_arg): Likewise.
12830         (picochip_arg_advance): Likewise.
12831         * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
12832         (mcore_arg_partial_bytes, mcore_function_arg): Likewise.
12833         (mcore_function_arg_advance): Likewise.
12834         * config/score/score.c (score_pass_by_reference): Likewise.
12835         (score_function_arg_advance): Likewise.
12836         (score_arg_partial_bytes): Likewise.  Make static.
12837         * config/score/score-protos.h (score_arg_partial_bytes): Don't declare.
12838         * config/arm/arm.c (arm_arg_partial_bytes): Replace
12839         CUMULATIVE_ARGS* argument type with cumulative_args_t.
12840         (arm_function_arg, arm_function_arg_advance): Likewise.
12841         (arm_setup_incoming_varargs, arm_pass_by_reference): Likewise.
12842         * config/pa/pa.c (pa_pass_by_reference): Likewise.
12843         (pa_arg_partial_bytes, pa_function_arg_advance): Likewise.
12844         (pa_function_arg): Likewise.
12845         * config/mips/mips.c (mips_strict_argument_naming): Likewise.
12846         (mips_function_arg, mips_function_arg_advance): Likewise.
12847         (mips_arg_partial_bytes, mips_pass_by_reference): Likewise.
12848         (mips_callee_copies, mips_setup_incoming_varargs): Likewise.
12849         * config/vax/vax.c (vax_function_arg): Likewise.
12850         (vax_function_arg_advance): Likewise.
12851         * config/h8300/h8300.c (h8300_function_arg): Likewise.
12852         (h8300_function_arg_advance): Likewise.
12853         * config/v850/v850.c (v850_pass_by_reference): Likewise.
12854         (v850_strict_argument_naming, v850_function_arg): Likewise.
12855         (v850_arg_partial_bytes, v850_function_arg_advance): Likewise.
12856         (v850_setup_incoming_varargs): Likewise.
12857         * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
12858         (mmix_function_arg_advance, mmix_function_incoming_arg): Likewise.
12859         (mmix_function_arg, mmix_pass_by_reference): Likewise.
12860         (mmix_function_arg_1): Replace const CUMULATIVE_ARGS* argument type
12861         with const void *.
12862         * config/bfin/bfin.c (setup_incoming_varargs): Replace
12863         CUMULATIVE_ARGS* argument type with cumulative_args_t.
12864         (bfin_function_arg_advance, bfin_function_arg): Likewise.
12865         (bfin_arg_partial_bytes, bfin_pass_by_reference): Likewise.
12866         * calls.c (emit_call_1): Change type of args_so_far to
12867         cumulative_args_t.  Changed all callers.
12868         (initialize_argument_information): Likewise.
12869         (expand_call, emit_library_call_value_1): Use pack_cumulative_args.
12870         * dse.c (get_call_args): Likewise.
12871         * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
12872         * function.c (pass_by_reference, reference_callee_copied): Likewise.
12873         (struct assign_parm_data_all): Rename args_so_far to args_so_far_v.
12874         New member args_so_far_v.  Changed all users.
12875         * var-tracking.c (prepare_call_arguments): Use pack_cumulative_args.
12876         * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
12877         * config/mips/mips.c (mips_output_args_xfer): Likewise.
12878         * config/s390/s390.c (s390_call_saved_register_used): Likewise.
12879         * config/sh/sh.c (sh_output_mi_thunk): Likewise.
12880         * config/microblaze/microblaze.c (microblaze_expand_prologue):
12881         Likewise.
12882         * config/m32r/m32r.c (m32r_return_in_memory): Adjust for changed
12883         m32r_pass_by_reference.
12884
12885 2011-06-16  Ira Rosen  <ira.rosen@linaro.org>
12886
12887         * tree-vectorizer.h (vect_recog_func_ptr): Change the first
12888         argument to be a VEC of statements.
12889         * tree-vect-loop.c (vect_determine_vectorization_factor): Remove the
12890         assert that pattern statements have to have their vector type set.
12891         * tree-vect-patterns.c (vect_recog_widen_sum_pattern):
12892         Change the first argument to be a VEC of statements.  Update
12893         documentation.
12894         (vect_recog_dot_prod_pattern, vect_recog_pow_pattern): Likewise.
12895         (vect_handle_widen_mult_by_const): New function.
12896         (vect_recog_widen_mult_pattern):  Change the first argument to be a
12897         VEC of statements.  Update documentation.  Check that the constant is
12898         INTEGER_CST.  Support multiplication by a constant that fits an
12899         intermediate type - call vect_handle_widen_mult_by_const.
12900         (vect_pattern_recog_1): Update vect_recog_func_ptr and its
12901         call.  Handle additional pattern statements if necessary.
12902
12903 2011-06-16  Nick Clifton  <nickc@redhat.com>
12904
12905         PR target/49427
12906         * config.gcc: Set cpu_type to v850 for any V850 architecture.
12907         (v850*-*-*): Delete explicit setting of tm_p_file, tmake_file,
12908         md_file, extra_modes, out_file and extra_options are these are all
12909         deduced from cpu_type.
12910
12911 2011-06-16  Georg-Johann Lay  <avr@gjlay.de>
12912
12913         * config/avr/libgcc.S (__ashldi3, __ashrdi3, __lshrdi3): Set shift
12914         truncation mask to 63.
12915
12916 2011-06-16  Georg-Johann Lay  <avr@gjlay.de>
12917
12918         PR target/49313
12919         PR target/29524
12920         * longlong.h: Add AVR support:
12921         (count_leading_zeros): New macro.
12922         (count_trailing_zeros): New macro.
12923         (COUNT_LEADING_ZEROS_0): New macro.
12924         * config/avr/t-avr (LIB1ASMFUNCS): Add _ffssi2, _ffshi2, _loop_ffsqi2,
12925         _ctzsi2, _ctzhi2, _clzdi2, _clzsi2, _clzhi2, _paritydi2, _paritysi2,
12926         _parityhi2, _popcounthi2,_popcountsi2, _popcountdi2, _popcountqi2,
12927         _bswapsi2, _bswapdi2, _ashldi3, _ashrdi3, _lshrdi3.
12928         (LIB2FUNCS_EXCLUDE): Add _clz.
12929         * config/avr/libgcc.S (XCALL): Move up in file.
12930         (XJMP): New C Macro.
12931         (DEFUN): New asm macro.
12932         (ENDF): New asm macro.
12933         (__ffssi2): New function.
12934         (__ffshi2): New function.
12935         (__loop_ffsqi2): New function.
12936         (__ctzsi2): New function.
12937         (__ctzhi2): New function.
12938         (__clzdi2): New function.
12939         (__clzsi2): New function.
12940         (__clzhi2): New function.
12941         (__paritydi2): New function.
12942         (__paritysi2): New function.
12943         (__parityhi2): New function.
12944         (__parityqi2): New function.
12945         (__popcounthi2): New function.
12946         (__popcountsi2): New function.
12947         (__popcountdi2): New function.
12948         (__popcountqi2): New function.
12949         (__bswapsi2): New function.
12950         (__bswapdi2): New function.
12951         (__ashldi3): New function.
12952         (__ashrdi3): New function.
12953         (__lshrdi3): New function.
12954         Fix suspicous lines.
12955
12956 2011-06-16  Richard Guenther  <rguenther@suse.de>
12957
12958         * gimple.c (canonicalize_cond_expr_cond): (bool)x is not
12959         the same as x != 0.
12960         * fold-const.c (fold_binary_loc): Do not fold X & 1 != 0
12961         to (bool) X & 1.
12962         * ipa-prop.c (ipa_analyze_indirect_call_uses): Also allow
12963         equality compares against zero for the lower bit.
12964
12965 2011-06-16  Jakub Jelinek  <jakub@redhat.com>
12966
12967         PR tree-optimization/49419
12968         * tree-vrp.c (execute_vrp): Call init_range_assertions
12969         before estimate_numbers_of_iterations, call
12970         free_number_of_iterations_estimates before calling
12971         remove_range_assertions.
12972
12973 2011-06-16  Revital Eres  <revital.eres@linaro.org>
12974
12975         * modulo-sched.c (struct ps_insn): Remove row_rest_count field.
12976         (struct partial_schedule): Add rows_length field.
12977         (verify_partial_schedule): Check rows_length.
12978         (ps_insert_empty_row): Handle rows_length.
12979         (create_partial_schedule): Likewise.
12980         (free_partial_schedule): Likewise.
12981         (reset_partial_schedule): Likewise.
12982         (create_ps_insn): Remove rest_count argument.
12983         (remove_node_from_ps): Update rows_length.
12984         (add_node_to_ps): Update rows_length and call create_ps_insn
12985         without passing row_rest_count.
12986         (rotate_partial_schedule): Update rows_length.
12987
12988 2011-06-16  Revital Eres  <revital.eres@linaro.org>
12989
12990         * ddg.c (add_intra_loop_mem_dep): New function.
12991         (build_intra_loop_deps): Call it.
12992
12993 2011-06-13  Jeff Law  <law@redhat.com>
12994
12995         * df-problems.c (df_lr_local_compute): Manually CSE
12996         PIC_OFFSET_TABLE_REGNUM.
12997         * df-scan.c (df_get_regular_block_artificial_uses): Likewise.
12998         (df_get_entry_block_def_set, df_get_exit_block_use_set): Likewise.
12999
13000 2011-06-13  Jan Hubicka  <jh@suse.cz>
13001
13002         * cgraphunit.c (handle_alias_pairs): New function.
13003         (cgraph_finalize_compilation_unit): Use it.
13004         * ipa.c (cgraph_externally_visible_p): Remove hack marking asm names
13005         as externally visible.
13006
13007 2011-06-15  Richard Guenther  <rguenther@suse.de>
13008
13009         * expr.c (expand_expr_real_2): Reduce all integral types to
13010         bitfield precision.
13011         (expand_expr_real_1): Likewise.
13012
13013 2011-06-15  Martin Jambor  <mjambor@suse.cz>
13014
13015         PR tree-optimization/48613
13016         * ipa-prop.c (ipa_prop_write_jump_functions): Return immediately if
13017         ipa_node_params_vector is NULL.
13018
13019 2011-06-15  Jakub Jelinek  <jakub@redhat.com>
13020
13021         PR debug/49382
13022         * dwarf2out.c (dw_loc_list_node): Add force field.
13023         (add_var_loc_to_decl): For PARM_DECL, attempt to keep the incoming
13024         location in the list, even if it is modified before first real insn.
13025         (output_loc_list): Emit empty ranges with force flag set.
13026         (dw_loc_list): If first range of a PARM_DECL is empty, set force flag.
13027
13028 2011-06-15  Alexander Monakov  <amonakov@ispras.ru>
13029
13030         PR target/49349
13031         * sel-sched.c (find_place_for_bookkeeping): Add new parameter
13032         (fence_to_rewind).  Use it to notice when bookkeeping will be placed
13033         above a fence.  Update comments.
13034         (generate_bookkeeping_insn): Rewind fence when bookkeeping code is
13035         placed just above it.  Do not allow NULL place_to_insert.
13036
13037 2011-06-15  Ira Rosen  <ira.rosen@linaro.org>
13038
13039         * tree-vect-loop-manip.c (remove_dead_stmts_from_loop): Remove.
13040         (slpeel_tree_peel_loop_to_edge): Don't call
13041         remove_dead_stmts_from_loop.
13042         * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
13043         remove irrelevant pattern statements.  For irrelevant statements
13044         check if it is the last statement of a detected pattern, use
13045         corresponding pattern statement instead.
13046         (destroy_loop_vec_info): No need to remove pattern statements,
13047         only free stmt_vec_info.
13048         (vect_transform_loop): For irrelevant statements check if it is
13049         the last statement of a detected pattern, use corresponding
13050         pattern statement instead.
13051         * tree-vect-patterns.c (vect_pattern_recog_1): Don't insert
13052         pattern statements.  Set basic block for the new statement.
13053         (vect_pattern_recog): Update documentation.
13054         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Scan
13055         operands of pattern statements.
13056         (vectorizable_call): Fix printing.  In case of a pattern statement
13057         use the lhs of the original statement when creating a dummy
13058         statement to replace the original call.
13059         (vect_analyze_stmt): For irrelevant statements check if it is
13060         the last statement of a detected pattern, use corresponding
13061         pattern statement instead.
13062         * tree-vect-slp.c (vect_schedule_slp_instance): For pattern
13063         statements use gsi of the original statement.
13064
13065 2011-06-14  Joseph Myers  <joseph@codesourcery.com>
13066
13067         * target-def.h (TARGET_HAVE_NAMED_SECTIONS): Move to
13068         common/common-target-def.h.
13069         * target.def (default_target_flags, handle_option,
13070         supports_split_stack, optimization_table, init_struct,
13071         except_unwind_info, unwind_tables_default, have_named_sections):
13072         Move to common/common-target.def.
13073         * target.h (enum opt_levels, struct default_options): Move to
13074         common/common-target.h.
13075         * targhooks.c (default_except_unwind_info,
13076         dwarf2_except_unwind_info, sjlj_except_unwind_info,
13077         default_target_handle_option, empty_optimization_table): Move to
13078         common/common-targhooks.c.
13079         * targhooks.h (default_except_unwind_info,
13080         dwarf2_except_unwind_info, sjlj_except_unwind_info,
13081         default_target_handle_option, empty_optimization_table): Move to
13082         common/common-targhooks.h.
13083         * common/common-target-def.h: Include common/common-targhooks.h.
13084         (TARGET_HAVE_NAMED_SECTIONS): Define if TARGET_ASM_NAMED_SECTION
13085         defined.
13086         * common/common-target.def (handle_option, option_init_struct,
13087         option_optimization_table, default_target_flags,
13088         except_unwind_info, supports_split_stack, unwind_tables_default,
13089         have_named_sections): Move from target.def.
13090         (HOOK_PREFIX): Undefine at end of file.
13091         * common/common-target.h: Include input.h.
13092         (enum opt_levels, struct default_options): Move from target.h.
13093         * common/common-targhooks.c, common/common-targhooks.h: New.
13094         * config.gcc (target_has_targetm_common): Default to yes.
13095         (moxie*): Set target_has_targetm_common=no.
13096         (hppa*-*-*): Don't set target_has_targetm_common=yes.
13097         * doc/tm.texi: Regenerate.
13098         * Makefile.in (COMMON_TARGET_H): Add $(INPUT_H).
13099         (C_TARGET_DEF_H): Add common/common-targhooks.h.
13100         (GCC_OBJS): Remove vec.o.
13101         (OBJS): Remove hooks.o and vec.o.
13102         (OBJS-libcommon-target): Add vec.o, hooks.o and
13103         common/common-targhooks.o.
13104         (c-family/c-common.o, c-family/c-cppbuiltin.o, lto-opts.o, tree.o,
13105         tree-tailcall.o, opts.o, toplev.o, varasm.o, function.o, except.o,
13106         expr.o, explow.o, dbxout.o, dwarf2out.o, cfgrtl.o, haifa-sched.o,
13107         cfglayout.o, $(out_object_file), $(common_out_object_file)):
13108         Update dependencies.
13109         (common/common-targhooks.o): New.
13110         * common/config/default-common.c: Include tm.h.  Add FIXME comment.
13111         * common/config/pa/pa-common.c: Include more headers.  Take
13112         copyright dates from pa.c.
13113         (pa_option_optimization_table, pa_handle_option,
13114         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS,
13115         TARGET_HANDLE_OPTION): Move from pa.c.
13116         * common/config/alpha/alpha-common.c,
13117         common/config/arm/arm-common.c, common/config/avr/avr-common.c,
13118         common/config/bfin/bfin-common.c,
13119         common/config/cris/cris-common.c,
13120         common/config/fr30/fr30-common.c, common/config/frv/frv-common.c,
13121         common/config/h8300/h8300-common.c,
13122         common/config/i386/i386-common.c,
13123         common/config/ia64/ia64-common.c,
13124         common/config/iq2000/iq2000-common.c,
13125         common/config/lm32/lm32-common.c,
13126         common/config/m32c/m32c-common.c,
13127         common/config/m32r/m32r-common.c,
13128         common/config/m68k/m68k-common.c,
13129         common/config/mcore/mcore-common.c,
13130         common/config/mep/mep-common.c,
13131         common/config/microblaze/microblaze-common.c,
13132         common/config/mips/mips-common.c,
13133         common/config/mmix/mmix-common.c,
13134         common/config/mn10300/mn10300-common.c,
13135         common/config/pdp11/pdp11-common.c,
13136         common/config/picochip/picochip-common.c,
13137         common/config/rs6000/rs6000-common.c,
13138         common/config/rx/rx-common.c, common/config/s390/s390-common.c,
13139         common/config/score/score-common.c, common/config/sh/sh-common.c,
13140         common/config/sparc/sparc-common.c,
13141         common/config/spu/spu-common.c, common/config/v850/v850-common.c,
13142         common/config/vax/vax-common.c,
13143         common/config/xstormy16/xstormy16-common.c,
13144         common/config/xtensa/xtensa-common.c: New.
13145         * config/alpha/alpha.c: Include common/common-target.h.
13146         (alpha_option_optimization_table, alpha_handle_option,
13147         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
13148         TARGET_OPTION_OPTIMIZATION_TABLE): Move to alpha-common.c.
13149         * config/arm/arm-protos.h (arm_except_unwind_info): Declare.
13150         * config/arm/arm.c (arm_option_optimization_table,
13151         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
13152         TARGET_EXCEPT_UNWIND_INFO, arm_except_unwind_info): Move to
13153         arm-common.c.
13154         * config/avr/avr.c (avr_option_optimization_table,
13155         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
13156         to avr-common.c.
13157         * config/bfin/bfin.c (struct bfin_cpu): Move to bfin.h.
13158         (bfin_cpus, bfin_handle_option, TARGET_HANDLE_OPTION,
13159         TARGET_DEFAULT_TARGET_FLAGS): Move to bfin-common.c.
13160         * config/bfin/bfin.h struct bfin_cpu): Move from bfin.c.
13161         * config/cris/cris.c (cris_option_optimization_table,
13162         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
13163         TARGET_OPTION_OPTIMIZATION_TABLE, cris_handle_option): Move to
13164         cris-common.c.
13165         * config/fr30/fr30.c (fr30_option_optimization_table,
13166         TARGET_EXCEPT_UNWIND_INFO, TARGET_OPTION_OPTIMIZATION_TABLE): Move
13167         to fr30-common.c.
13168         * config/frv/frv.c (frv_option_optimization_table,
13169         MASK_DEFAULT_ALLOC_CC, TARGET_DEFAULT_TARGET_FLAGS,
13170         TARGET_OPTION_OPTIMIZATION_TABLE): Move to frv-common.c.
13171         * config/h8300/h8300.c (h8300_option_optimization_table,
13172         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
13173         TARGET_EXCEPT_UNWIND_INFO): Move to h8300-common.c.
13174         * config/i386/i386-protos.h (ix86_handle_option): Declare.
13175         * config/i386/i386.c: Include common/common-target.h.
13176         (OPTION_MASK_ISA_MMX_SET, OPTION_MASK_ISA_3DNOW_SET,
13177         OPTION_MASK_ISA_SSE_SET, OPTION_MASK_ISA_SSE2_SET,
13178         OPTION_MASK_ISA_SSE3_SET, OPTION_MASK_ISA_SSSE3_SET,
13179         OPTION_MASK_ISA_SSE4_1_SET, OPTION_MASK_ISA_SSE4_2_SET,
13180         OPTION_MASK_ISA_AVX_SET, OPTION_MASK_ISA_FMA_SET,
13181         OPTION_MASK_ISA_SSE4_SET, OPTION_MASK_ISA_SSE4A_SET,
13182         OPTION_MASK_ISA_FMA4_SET, OPTION_MASK_ISA_XOP_SET,
13183         OPTION_MASK_ISA_LWP_SET, OPTION_MASK_ISA_AES_SET,
13184         OPTION_MASK_ISA_PCLMUL_SET, OPTION_MASK_ISA_ABM_SET,
13185         OPTION_MASK_ISA_BMI_SET, OPTION_MASK_ISA_TBM_SET,
13186         OPTION_MASK_ISA_POPCNT_SET, OPTION_MASK_ISA_CX16_SET,
13187         OPTION_MASK_ISA_SAHF_SET, OPTION_MASK_ISA_MOVBE_SET,
13188         OPTION_MASK_ISA_CRC32_SET, OPTION_MASK_ISA_FSGSBASE_SET,
13189         OPTION_MASK_ISA_RDRND_SET, OPTION_MASK_ISA_F16C_SET,
13190         OPTION_MASK_ISA_MMX_UNSET, OPTION_MASK_ISA_3DNOW_UNSET,
13191         OPTION_MASK_ISA_3DNOW_A_UNSET, OPTION_MASK_ISA_SSE_UNSET,
13192         OPTION_MASK_ISA_SSE2_UNSET, OPTION_MASK_ISA_SSE3_UNSET,
13193         OPTION_MASK_ISA_SSSE3_UNSET, OPTION_MASK_ISA_SSE4_1_UNSET,
13194         OPTION_MASK_ISA_SSE4_2_UNSET, OPTION_MASK_ISA_AVX_UNSET,
13195         OPTION_MASK_ISA_FMA_UNSET, OPTION_MASK_ISA_SSE4_UNSET,
13196         OPTION_MASK_ISA_SSE4A_UNSET, OPTION_MASK_ISA_FMA4_UNSET,
13197         OPTION_MASK_ISA_XOP_UNSET, OPTION_MASK_ISA_LWP_UNSET,
13198         OPTION_MASK_ISA_AES_UNSET, OPTION_MASK_ISA_PCLMUL_UNSET,
13199         OPTION_MASK_ISA_ABM_UNSET, OPTION_MASK_ISA_BMI_UNSET,
13200         OPTION_MASK_ISA_TBM_UNSET, OPTION_MASK_ISA_POPCNT_UNSET,
13201         OPTION_MASK_ISA_CX16_UNSET, OPTION_MASK_ISA_SAHF_UNSET,
13202         OPTION_MASK_ISA_MOVBE_UNSET, OPTION_MASK_ISA_CRC32_UNSET,
13203         OPTION_MASK_ISA_FSGSBASE_UNSET, OPTION_MASK_ISA_RDRND_UNSET,
13204         OPTION_MASK_ISA_F16C_UNSET, ix86_handle_option,
13205         ix86_option_optimization_table, ix86_option_init_struct,
13206         ix86_supports_split_stack, TARGET_DEFAULT_TARGET_FLAGS,
13207         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
13208         TARGET_OPTION_INIT_STRUCT, TARGET_SUPPORTS_SPLIT_STACK): Move to
13209         i386-common.c.
13210         * config/i386/t-i386 (i386.o): Update dependencies.
13211         * config/ia64/ia64-protos.h (ia64_except_unwind_info): Declare.
13212         * config/ia64/ia64.c (ia64_option_optimization_table,
13213         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
13214         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
13215         ia64_handle_option): Move to ia64-common.c.
13216         * config/iq2000/iq2000.c (iq2000_option_optimization_table,
13217         TARGET_OPTION_OPTIMIZATION_TABLE): Move to iq2000-common.c.
13218         * config/lm32/lm32.c (lm32_option_optimization_table,
13219         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
13220         to lm32-common.c.
13221         * config/m32c/m32c.c (TARGET_HAVE_NAMED_SECTIONS): Move to
13222         m32c-common.c.
13223         * config/m32r/m32r.c (m32r_option_optimization_table,
13224         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
13225         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
13226         m32r_handle_option): Move to m32r-common.c.
13227         (m32r_memory_move_cost): Remove comment referring to
13228         TARGET_HANDLE_OPTION.
13229         * config/m68k/m68k.c (TARGET_HANDLE_OPTION, m68k_handle_option):
13230         Move to m68k-common.c.
13231         * config/mcore/mcore.c (mcore_option_optimization_table,
13232         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
13233         TARGET_EXCEPT_UNWIND_INFO): Move to mcore-common.c.
13234         * config/mep/mep.c (mep_option_optimization_table,
13235         mep_handle_option, TARGET_HANDLE_OPTION,
13236         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS):
13237         Move to mep-common.c.
13238         * config/microblaze/microblaze.c
13239         (microblaze_option_optimization_table,
13240         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
13241         TARGET_EXCEPT_UNWIND_INFO): Move to microblaze-common.c.
13242         * config/mips/mips.c (mips_handle_option,
13243         mips_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
13244         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Move to
13245         mips-common.c.
13246         * config/mmix/mmix.c (mmix_option_optimization_table,
13247         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
13248         Move to mmix-common.c.
13249         * config/mn10300/mn10300.c (mn10300_option_optimization_table,
13250         mn10300_handle_option, TARGET_EXCEPT_UNWIND_INFO,
13251         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
13252         TARGET_OPTION_OPTIMIZATION_TABLE): Move to mn10300-common.c.
13253         * config/pa/pa.c: Include common/common-target.h.
13254         (pa_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
13255         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
13256         pa_handle_option): Move to pa-common.c.
13257         (pa_option_override): Use targetm_common.except_unwind_info.
13258         (pa_asm_output_mi_thunk, pa_function_section): Use
13259         targetm_common.have_named_sections.
13260         * config/pdp11/pdp11.c (pdp11_option_optimization_table,
13261         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
13262         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
13263         pdp11_handle_option, pdp11_option_init_struct): Move to
13264         pdp11-common.c.
13265         * config/picochip/picochip.c (picochip_option_optimization_table,
13266         TARGET_HAVE_NAMED_SECTIONS, TARGET_OPTION_OPTIMIZATION_TABLE,
13267         TARGET_EXCEPT_UNWIND_INFO): Move to picochip-common.c.
13268         * config/rs6000/rs6000.c: Include common/common-target.h.
13269         (rs6000_option_optimization_table, TARGET_HANDLE_OPTION,
13270         TARGET_OPTION_INIT_STRUCT, TARGET_OPTION_OPTIMIZATION_TABLE,
13271         TARGET_DEFAULT_TARGET_FLAGS, rs6000_option_init_struct,
13272         rs6000_handle_option): Move to rs6000-common.c.
13273         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
13274         * config/rx/rx.c (rx_handle_option, rx_option_optimization_table,
13275         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
13276         TARGET_EXCEPT_UNWIND_INFO): Move to rx-common.c.
13277         * config/s390/s390.c (processor_flags_table,
13278         s390_option_optimization_table, s390_option_init_struct,
13279         s390_handle_option, TARGET_DEFAULT_TARGET_FLAGS,
13280         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
13281         TARGET_OPTION_INIT_STRUCT): Move to s390-common.c.
13282         * config/s390/s390.h (processor_flags_table): Declare.
13283         * config/score/score.c (score_option_optimization_table,
13284         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
13285         TARGET_OPTION_OPTIMIZATION_TABLE, MASK_ALL_CPU_BITS,
13286         score_handle_option): Move to score-common.c.
13287         * config/sh/sh.c (sh_option_optimization_table,
13288         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
13289         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
13290         sh_handle_option, sh_option_init_struct): Move to sh-common.c.
13291         * config/sparc/sparc.c: Include common/common-target.h.
13292         (sparc_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
13293         TARGET_OPTION_OPTIMIZATION_TABLE): Move to sparc-common.c.
13294         * config/spu/spu.c (TARGET_DEFAULT_TARGET_FLAGS,
13295         TARGET_OPTION_INIT_STRUCT, TARGET_EXCEPT_UNWIND_INFO,
13296         spu_option_init_struct): Move to spu-common.c.
13297         * config/stormy16/stormy16.c (xstorym16_option_optimization_table,
13298         TARGET_OPTION_OPTIMIZATION_TABLE): Move to xstormy16-common.c.
13299         * config/v850/v850.c (small_memory_physical_max,
13300         v850_handle_memory_optionn v850_handle_option,
13301         v850_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
13302         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE): Move to
13303         v850-common.c.
13304         * config/vax/vax.c (TARGET_DEFAULT_TARGET_FLAGS): Move to vax-common.c.
13305         * config/xtensa/xtensa.c (xtensa_option_optimization_table,
13306         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
13307         Move to xtensa-common.c.
13308         * cfglayout.c: Include common/common-target.h.
13309         (fixup_reorder_chain): Use targetm_common.have_named_sections.
13310         * cfgrtl.c: Include common/common-target.h.
13311         (force_nonfallthru_and_redirect, commit_one_edge_insertion): Use
13312         targetm_common.have_named_sections.
13313         * dbxout.c: Include common/common-target.h.
13314         (dbxout_function_end): Use targetm_common.have_named_sections.
13315         * defaults.h (STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT): Use
13316         targetm_common.except_unwind_info.
13317         * dwarf2out.c: Include common/common-target.h.
13318         (dwarf2out_do_frame, dwarf2out_do_cfi_asm,
13319         dwarf2out_begin_prologue, dwarf2out_frame_init,
13320         dwarf2out_frame_finish, dwarf2out_assembly_start): Use
13321         targetm_common.except_unwind_info.
13322         * except.c: Include common/common-target.h.
13323         (init_eh, finish_eh_generation,
13324         output_one_function_exception_table): Use
13325         targetm_common.except_unwind_info.
13326         (switch_to_exception_section): Use targetm_common.have_named_sections.
13327         * explow.c: Include common/common-target.h.
13328         * expr.c: Include common/common-target.h.
13329         (build_personality_function): Use targetm_common.except_unwind_info.
13330         * function.c: Include common/common-target.h.
13331         (expand_function_end): Use targetm_common.except_unwind_info.
13332         * haifa-sched.c: Include common/common-target.h.
13333         (sched_create_recovery_edges): Use targetm_common.have_named_sections.
13334         * lto-opts.c: Include common/common-target.h instead of target.h.
13335         (lto_reissue_options): Use targetm_common.handle_option.
13336         * opts.c: Include common/common-target.h.
13337         (target_handle_option): Use targetm_common.handle_option.
13338         (init_options_struct): Update comment referring to
13339         targetm.target_option.optimization.  Use
13340         targetm_common.default_target_flags,
13341         targetm_common.unwind_tables_default and
13342         targetm_common.option_init_struct.
13343         (default_options_optimization): Use
13344         targetm_common.option_optimization_table.
13345         (finish_options): Use targetm_common.except_unwind_info,
13346         targetm_common.unwind_tables_default,
13347         targetm_common.have_named_sections and
13348         targetm_common.supports_split_stack.
13349         * toplev.c: Include common/common-target.h.
13350         (process_options): Use targetm_common.have_named_sections.
13351         * tree-tailcall.c: Include common/common-target.h.
13352         (suitable_for_tail_call_opt_p): Use targetm_common.except_unwind_info.
13353         * tree.c: Include common/common-target.h.
13354         (build_common_builtin_nodes): Use targetm_common.except_unwind_info.
13355         * varasm.c: Include common/common-target.h.
13356         (resolve_unique_section, hot_function_section,
13357         default_function_section): Use targetm_common.have_named_sections.
13358
13359 2011-06-14  Easwaran Raman  <eraman@google.com>
13360
13361         PR rtl-optimization/44194
13362         * dse.c: Include tree-flow.h
13363         (insn_info): Add new field non_frame_wild_read.
13364         (group_info): Add new fields escaped_n and escaped_p.
13365         (kill_on_calls): New variable.
13366         (get_group_info): Initialize gi->escaped_n and gi->escaped_p.
13367         (dse_step0): Initialize kill_on_calls.
13368         (can_escape): New function.
13369         (set_usage_bits): Add additional parameter; record information
13370         about escaped locations.
13371         (record_store): Pass EXPR corresponding to MEM to set_usage_bits.
13372         (dse_step2_nospill): Set kill_on_calls based on
13373         group->escaped_n and group->escaped_n.
13374         (add_wild_read): Refactor into...
13375         (reset_active_stores): ... New function, and
13376         (free_read_records): ... New function.
13377         (add_non_frame_wild_read): New function.
13378         (scan_insn): Call add_non_frame_wild_read on non-const calls.
13379         (scan_reads_nospill): Handle instructions with non_frame_wild_read.
13380         (dse_step5_nospill): Call scan_reads_nospill for instructions
13381         marked as non_frame_wild_read.
13382         (dse_step7): Free escaped_n, escaped_p and kill_on_calls bitmaps.
13383
13384 2011-06-14  Joseph Myers  <joseph@codesourcery.com>
13385
13386         * common/common-target-def.h, common/common-target.def,
13387         common/common-target.h, common/config/default-common.c,
13388         common/config/pa/pa-common.c: New files.
13389         * Makefile.in (common_out_file, common_out_object_file,
13390         COMMON_TARGET_H, COMMON_TARGET_DEF_H): New.
13391         (OBJS-libcommon-target): Include $(common_out_object_file).
13392         (prefix.o): Update dependencies.
13393         ($(common_out_object_file), common/common-target-hooks-def.h,
13394         s-common-target-hooks-def-h): New.
13395         (s-tm-texi): Also check timestamp on common-target.def.
13396         (build/genhooks.o): Update dependencies.
13397         * config.gcc (common_out_file, target_has_targetm_common): Define.
13398         * config/pa/som.h (ALWAYS_STRIP_DOTDOT): Replace with
13399         TARGET_ALWAYS_STRIP_DOTDOT.
13400         * configure.ac (common_out_object_file): Define.
13401         (common_out_file, common_out_object_file): Substitute.
13402         (common): Create directory.
13403         * configure: Regenerate.
13404         * doc/tm.texi.in (targetm_common): Document.
13405         (TARGET_ALWAYS_STRIP_DOTDOT): Add @hook entry.
13406         * doc/tm.texi: Regenerate.
13407         * genhooks.c (hook_array): Also include common/common-target.def.
13408         * prefix.c (tm.h): Don't include.
13409         (common/common-target.h): Include.
13410         (ALWAYS_STRIP_DOTDOT): Don't define.
13411         (update_path): Use targetm_common.always_strip_dotdot instead of
13412         ALWAYS_STRIP_DOTDOT.
13413         * system.h (ALWAYS_STRIP_DOTDOT): Poison.
13414
13415 2011-06-14  David Li  <davidxl@google.com>
13416
13417         * passes.c (execute_function_todo): Remove TODO_dump_func.
13418         (execute_one_pass): Remove TODO_dump_func.
13419         (execute_function_dump): New function.
13420         * tree-vrp.c: Remove TODO_dump_func.
13421         * regrename.c: Remove TODO_dump_func.
13422         * fwprop.c: Remove TODO_dump_func.
13423         * tree-into-ssa.c: Remove TODO_dump_func.
13424         * tree-complex.c: Remove TODO_dump_func.
13425         * tracer.c: Remove TODO_dump_func.
13426         * tree-loop-distribution.c: Remove TODO_dump_func.
13427         * postreload-gcse.c: Remove TODO_dump_func.
13428         * postreload.c: Remove TODO_dump_func.
13429         * tree-ssa-loop-ch.c: Remove TODO_dump_func.
13430         * tree-tailcall.c: Remove TODO_dump_func.
13431         * ipa-cp.c: Remove TODO_dump_func.
13432         * final.c: Remove TODO_dump_func.
13433         * tree-emutls.c: Remove TODO_dump_func.
13434         * omp-low.c: Remove TODO_dump_func.
13435         * tree-ssa-dse.c: Remove TODO_dump_func.
13436         * tree-ssa-uncprop.c: Remove TODO_dump_func.
13437         * auto-inc-dec.c: Remove TODO_dump_func.
13438         * reorg.c: Remove TODO_dump_func.
13439         * tree-ssa-copyrename.c: Remove TODO_dump_func.
13440         * tree-ssa-ccp.c: Remove TODO_dump_func.
13441         * compare-elim.c: Remove TODO_dump_func.
13442         * mode-switching.c: Remove TODO_dump_func.
13443         * modulo-sched.c: Remove TODO_dump_func.
13444         * tree-call-cdce.c: Remove TODO_dump_func.
13445         * cse.c: Remove TODO_dump_func.
13446         * web.c: Remove TODO_dump_func.
13447         * tree-stdarg.c: Remove TODO_dump_func.
13448         * lto-streamer-out.c: Remove TODO_dump_func.
13449         * tree-ssa-math-opts.c: Remove TODO_dump_func.
13450         * tree-ssa-dom.c: Remove TODO_dump_func.
13451         * tree-nrv.c: Remove TODO_dump_func.
13452         * loop-init.c: Remove TODO_dump_func.
13453         * gimple-low.c: Remove TODO_dump_func.
13454         * ipa-inline.c: Remove TODO_dump_func.
13455         * tree-ssa-sink.c: Remove TODO_dump_func.
13456         * jump.c: Remove TODO_dump_func.
13457         * ifcvt.c: Remove TODO_dump_func.
13458         * tree-ssa-loop.c: Remove TODO_dump_func.
13459         * recog.c: Remove TODO_dump_func.
13460         * dse.c: Remove TODO_dump_func.
13461         * tree-ssa-ifcombine.c: Remove TODO_dump_func.
13462         * matrix-reorg.c: Remove TODO_dump_func.
13463         * tree-eh.c: Remove TODO_dump_func.
13464         * regmove.c: Remove TODO_dump_func.
13465         * function.c: Remove TODO_dump_func.
13466         * tree-vectorizer.c: Remove TODO_dump_func.
13467         * ipa-split.c: Remove TODO_dump_func.
13468         * gcse.c: Remove TODO_dump_func.
13469         * tree-if-conv.c: Remove TODO_dump_func.
13470         * init-regs.c: Remove TODO_dump_func.
13471         * tree-ssa-phiopt.c: Remove TODO_dump_func.
13472         * implicit-zee.c: Remove TODO_dump_func.
13473         * lower-subreg.c: Remove TODO_dump_func.
13474         * bt-load.c: Remove TODO_dump_func.
13475         * tree-dfa.c: Remove TODO_dump_func.
13476         * except.c: Remove TODO_dump_func.
13477         * emit-rtl.c: Remove TODO_dump_func.
13478         * store-motion.c: Remove TODO_dump_func.
13479         * cfgexpand.c: Remove TODO_dump_func.
13480         * tree-cfgcleanup.c: Remove TODO_dump_func.
13481         * cfgcleanup.c: Remove TODO_dump_func.
13482         * tree-ssa-pre.c: Remove TODO_dump_func.
13483         * tree-sra.c: Remove TODO_dump_func.
13484         * tree-mudflap.c: Remove TODO_dump_func.
13485         * tree-ssa-copy.c: Remove TODO_dump_func.
13486         * cfglayout.c: Remove TODO_dump_func.
13487         * tree-ssa-forwprop.c: Remove TODO_dump_func.
13488         * tree-ssa-dce.c: Remove TODO_dump_func.
13489         * ira.c: Remove TODO_dump_func.
13490         * tree-ssa.c: Remove TODO_dump_func.
13491         * integrate.c: Remove TODO_dump_func.
13492         * tree-optimize.c: Remove TODO_dump_func.
13493         * tree-ssa-phiprop.c: Remove TODO_dump_func.
13494         * tree-object-size.c: Remove TODO_dump_func.
13495         * combine.c: Remove TODO_dump_func.
13496         * bb-reorder.c: Remove TODO_dump_func.
13497         * cprop.c: Remove TODO_dump_func.
13498         * var-tracking.c: Remove TODO_dump_func.
13499         * tree-profile.c: Remove TODO_dump_func.
13500         * tree-vect-generic.c: Remove TODO_dump_func.
13501         * reg-stack.c: Remove TODO_dump_func.
13502         * sched-rgn.c: Remove TODO_dump_func.
13503         * tree-ssa-structalias.c: Remove TODO_dump_func.
13504         * tree-switch-conversion.c: Remove TODO_dump_func.
13505         * tree-cfg.c: Remove TODO_dump_func.
13506         * tree-ssa-reassoc.c: Remove TODO_dump_func.
13507         * combine-stack-adj.c: Remove TODO_dump_func.
13508         * dce.c: Remove TODO_dump_func.
13509         * tree-ssanames.c: Remove TODO_dump_func.
13510         * regcprop.c: Remove TODO_dump_func.
13511
13512 2011-06-14  H.J. Lu  <hongjiu.lu@intel.com>
13513
13514         PR middle-end/47364
13515         * builtins.c (expand_builtin_strlen): Expand strlen to Pmode
13516         and properly handle result not in Pmode.
13517
13518 2011-06-14  Robert Millan  <rmh@gnu.org>
13519
13520         * config/i386/kfreebsd-gnu.h: Resync with `config/i386/linux.h'.
13521         * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER): Resync with
13522         `config/linux.h'.
13523
13524         * config/i386/kfreebsd-gnu64.h: New file.
13525         * config.gcc (x86_64-*-kfreebsd*-gnu): Replace `i386/kfreebsd-gnu.h'
13526         with `i386/kfreebsd-gnu64.h'.
13527
13528         * config/i386/linux64.h (GNU_USER_LINK_EMULATION32)
13529         (GNU_USER_LINK_EMULATION64): New macros.
13530         * config/i386/gnu-user64.h (LINK_SPEC): Rely on
13531         `GNU_USER_LINK_EMULATION32' and `GNU_USER_LINK_EMULATION64' instead
13532         of hardcoding `elf_i386' and `elf_x86_64'.
13533
13534 2011-06-14  Nick Clifton  <nickc@redhat.com>
13535
13536         PR target/49403
13537         * config/v850/v850.c (v850_memory_move_cost): Add reg_class_t parameter.
13538
13539         PR target/49402
13540         * config.gcc(v850*-*-*): Avoid duplication of v850.opt.
13541
13542 2011-06-14  Jakub Jelinek  <jakub@redhat.com>
13543
13544         PR fortran/49103
13545         * tree.h (DECL_NONSHAREABLE): Define.
13546         (struct tree_decl_common): Change decl_common_unused to
13547         decl_nonshareable_flag.
13548         * cfgexpand.c (expand_used_vars_for_block, clear_tree_used):
13549         Ignore vars with DECL_NONSHAREABLE bit set.
13550         * tree-cfg.c (gimple_duplicate_bb): Set DECL_NONSHAREABLE
13551         on stores to automatic aggregate vars.
13552
13553         PR rtl-optimization/49390
13554         Revert:
13555         2010-06-29  Bernd Schmidt  <bernds@codesourcery.com>
13556
13557         * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
13558         MEM_ALIAS_SET.
13559
13560 2011-06-14  Zdenek Dvorak  <ook@ucw.cz>
13561             Tom de Vries  <tom@codesourcery.com>
13562
13563         PR target/45098
13564         * cfgloop.h (nb_iterations_upper_bound, nb_iterations_estimate):
13565         Document changed semantics.
13566         (max_stmt_executions, max_stmt_executions_int): Declare.
13567         * tree-data-ref.c (estimated_loop_iterations)
13568         (estimated_loop_iterations_int): Move functions...
13569         * tree-ssa-loop-niter.c (estimated_loop_iterations)
13570         (estimated_loop_iterations_int): here.
13571         (record_estimate): Change nb_iterations_upper_bound and
13572         nb_iterations_estimate semantics.
13573         (max_stmt_executions, max_stmt_executions_int): New function.
13574         * tree-data-ref.c (estimated_loop_iterations_tree): Rename to ...
13575         (max_stmt_executions_tree): this.
13576         (analyze_miv_subscript): Use max_stmt_executions_tree instead of
13577         estimated_loop_iterations_tree.
13578         tree-ssa-loop-ivopts.c (avg_loop_niter): Use
13579         max_stmt_executions_int instead of estimated_loop_iterations_int.
13580         * predict.c (predict_loops): Idem.
13581         * tree-parloops.c (parallelize_loops): Idem.
13582         * tree-data-ref.c (analyze_siv_subscript_cst_affine)
13583         (compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine)
13584         (init_omega_for_ddr_1): Idem.
13585         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse)
13586         (loop_prefetch_arrays): Idem
13587         * graphite-sese-to-poly.c (build_loop_iteration_domains): Use
13588         max_stmt_executions instead of estimated_loop_iterations.
13589         * tree-data-ref.c (estimated_loop_iterations_tree): Idem.
13590         * tree-vrp.c (adjust_range_with_scev): Use estimated_loop_iterations
13591         instead of nb_iterations_upper_bound.
13592
13593 2011-06-13  Jan Hubicka  <jh@suse.cz>
13594
13595         * ipa.c (cgraph_address_taken_from_non_vtable_p): Check the ref type.
13596
13597 2011-06-14  Richard Henderson  <rth@redhat.com>
13598
13599         PR debug/48459
13600         * dwarf2out.c (frame_pointer_fb_offset_valid): New.
13601         (based_loc_descr): Assert it's true.
13602         (compute_frame_pointer_to_fb_displacement): Set it, rather than
13603         aborting immediately.
13604
13605 2011-06-14  Sanjin Liu  <scliu@faraday-tech.com>
13606             Mingfeng Wu  <mingfeng@faraday-tech.com>
13607
13608         * doc/invoke.texi: Re-add missing -mcpu docs for Faraday cores.
13609
13610 2011-06-13  Jan Hubicka  <jh@suse.cz>
13611
13612         * ipa-cp.c (ipcp_iterate_stage): Revert accidental commit.
13613
13614 2011-06-13  Jan Hubicka  <jh@suse.cz>
13615
13616         * cgraph.c (cgraph_make_decl_local): Handle DECL_ONE_ONLY
13617         similarly to DECL_COMDAT.
13618         * cgraphunit.c (cgraph_analyze_function): Likewise.
13619         * ipa.c (function_and_variable_visibility): Likewise.
13620
13621 2011-06-13  Jan Hubicka  <jh@suse.cz>
13622
13623         * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not output
13624         BINFO_VIRTUALS when streaming for ltrans unit.
13625
13626 2011-06-13  David Edelsohn  <dje.gcc@gmail.com>
13627
13628         * config/rs6000/rs6000.md (movdi_mfpgpr): Remove POWER mnemonic.
13629         (movdi_internal64): Same.
13630
13631 2011-06-13  Edmar Wienskoski  <edmar@freescale.com>
13632
13633         PR target/44618
13634         * config/rs6000/rs6000.md (save_gpregs_<mode>): Replaced pattern with
13635         a set of similar patterns, where the MATCH_OPERAND for the function
13636         argument is replaced with individual references to hardware registers.
13637         (save_fpregs_<mode>): Ditto
13638         (restore_gpregs_<mode>): Ditto
13639         (return_and_restore_gpregs_<mode>): Ditto
13640         (return_and_restore_fpregs_<mode>): Ditto
13641         (return_and_restore_fpregs_aix_<mode>): Ditto
13642
13643 2011-06-13  Jan Hubicka  <jh@suse.cz>
13644
13645         * ipa-utils.c (postorder_stack): New structure.
13646         (ipa_reverse_postorder): Handle aliases.
13647
13648 2011-06-13  Jan Hubicka  <jh@suse.cz>
13649
13650         * ipa-inline.c (reset_edge_caches): Walk aliases.
13651         (update_caller_keys): Do not test inlinability of aliases.
13652         * ipa-inline-analysis.c (do_estimate_edge_time): Look through alias.
13653         (do_estimate_growth): Fix typo.
13654
13655 2011-06-13  Jan Hubicka  <jh@suse.cz>
13656
13657         * ipa-inline-transform.c (+can_remove_node_now_p_1): Break out from...
13658         (can_remove_node_now_p): ... here; handle same comdat groups.
13659         (clone_inlined_nodes): Update use of can_remove_node_now_p add TODO.
13660         (inline_call): Update use of can_remove_node_now_p.
13661
13662 2011-06-13  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
13663
13664         * config/h8300/h8300.md (bsetqi_msx, bclrqi_msx, bnotqi_msx): Added
13665         condition to disallow non-identical memory locations.
13666         (*andqi3_2, andqi3_1, iorqi3_1, xorqi3_1): Reorder insn to give
13667         preference to bit manipulation instructions.
13668
13669 2011-06-13  Jan Hubicka  <jh@suse.cz>
13670
13671         * cgraph.c (cgraph_for_node_thunks_and_aliases,
13672         cgraph_for_node_and_aliases): Fix thinko in recursive walking.
13673         (nonremovable_p): New function.
13674         (cgraph_can_remove_if_no_direct_calls_p): New function.
13675         (used_from_object_file_p): New functoin.
13676         (cgraph_will_be_removed_from_program_if_no_direct_calls): Look for
13677         references from aliases.
13678         * cgraph.h (cgraph_can_remove_if_no_direct_calls_p): Bring offline.
13679         * ipa-inline.c (check_caller_edge): New function.
13680         (want_inline_function_called_once_p): Use it; accept aliases called
13681         once, too.
13682         * ipa-inline-analysis.c (do_estimate_growth): Remove FIXME.
13683
13684 2011-06-13  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
13685
13686         PR target/48454
13687         * config/arm/neon.md (vec_pack_trunc): Set the lengths
13688         correctly for the case with Quad vectors.
13689
13690 2011-06-13 Jakub Jelinek  <jakub@redhat.com>
13691            Ira Rosen  <ira.rosen@linaro.org>
13692
13693         PR tree-optimization/49352
13694         * tree-vect-loop.c (vect_is_slp_reduction): Don't count debug uses at
13695         all, make sure loop_use_stmt after the loop is a def stmt of a used
13696         SSA_NAME that is the only one defined inside of the loop.  Don't
13697         check for COND_EXPR and GIMPLE_BINARY_RHS.
13698         (vect_is_simple_reduction_1): Call vect_is_slp_reduction only if
13699         check_reduction is true.
13700
13701 2011-06-11  Jan Hubicka  <jh@suse.cz>
13702
13703         PR middle-end/49373
13704         * ipa.c (cgraph_externally_visible_p): Check resolution info.
13705
13706 2011-06-11  Jan Hubicka  <jh@suse.cz>
13707
13708         PR middle-end/48836
13709         * ipa-inline-transform.c: Include tree-pass.h
13710         (inline_transform): Set TODO_update_ssa_only_virtuals.
13711         * Makefile.in (ipa-inline-transform.o): Add tree-pass.h.
13712
13713 2011-06-11  Jan Hubicka  <jh@suse.cz>
13714
13715         PR middle-end/49378
13716         * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p): Rule out
13717         aliases and thunks.
13718
13719 2011-06-12  Ira Rosen  <ira.rosen@linaro.org>
13720
13721         * tree-vect-data-refs.c (vect_peeling_hash_get_most_frequent):
13722         Take number of iterations to peel into account for equally frequent
13723         misalignment values.
13724
13725 2011-06-11  Jan Hubicka  <jh@suse.cz>
13726
13727         * lto-streamer-out.c (produce_symtab): Stream out the newly
13728         represented aliases.
13729
13730 2011-06-11  Jan Hubicka  <jh@suse.cz>
13731
13732         * ipa-prop.c (ipa_make_edge_direct_to_target): Fix code setting
13733         varying args.
13734         (ipa_update_after_lto_read): Likewise.
13735         (ipa_write_node_info): Do not sream call_with_var_arguments.
13736         (ipa_read_node_info): Likewise.
13737
13738 2011-06-11  Jan Hubicka  <jh@suse.cz>
13739
13740         * ipa.c (cgraph_comdat_can_be_unshared_p): Fix pasto.
13741
13742 2011-06-11  Jan Hubicka  <jh@suse.cz>
13743
13744         * lto-symtab.c (lto_cgraph_replace_node): Kill same body alias code.
13745         (lto_symtab_resolve_can_prevail_p): Likewise.
13746         (lto_symtab_merge_cgraph_nodes): Update merging of aliases.
13747         * cgraph.c (same_body_aliases_done): New global var.
13748         (cgraph_same_body_alias_1): Rename to ...
13749         (cgraph_create_function_alias): ... this one; reorg to new
13750         representation.
13751         (cgraph_same_body_alias): Use cgraph_create_function_alias;
13752         record references when asked to.
13753         (cgraph_add_thunk): Fix formating.
13754         (cgraph_get_node): Kill same body alias code.
13755         (cgraph_node_for_asm): Likewise.
13756         (cgraph_remove_same_body_alias): Remove.
13757         (cgraph_remove_node): Kill same body alias code.
13758         (cgraph_mark_address_taken_node): Mark also the aliased function
13759         as having address taken.
13760         (dump_cgraph_node): Dump same body aliases.
13761         (cgraph_for_node_thunks_and_aliases): Update for new alias
13762         representation.
13763         (cgraph_for_node_and_aliases): Likewise.
13764         * cgraph.h (same_body): Kll pointer.
13765         (same_body_alias): Update comment.
13766         (same_body_aliases_done): Declare.
13767         (cgraph_remove_same_body_alias): Remove declaration.
13768         (cgraph_create_function_alias): Declare.
13769         (cgraph_process_same_body_aliases): Declare.
13770         (cgraph_function_with_gimple_body_p): Check for alias.
13771         (cgraph_can_remove_if_no_direct_calls_p): Look for aliases.
13772         (cgraph_alias_aliased_node): New function.
13773         (cgraph_function_node): Update for new aliases.
13774         (cgraph_function_or_thunk_node): Likewise.
13775         * ipa-inline-transform.c (can_remove_node_now_p): Look for aliases.
13776         (inline_call): Remove dead aliases.
13777         * cgraphunit.c (cgraph_decide_is_function_needed): Disable assembler
13778         name hack for same body aliases.
13779         (clone_of_p): Look through aliases.
13780         (verify_cgraph_node): Verify aliases.
13781         (cgraph_analyze_function): Analyze aliases; fixup C++ bugs.
13782         (cgraph_process_same_body_aliases): New function.
13783         (process_function_and_variable_attributes): Disable weakref warning on
13784         alias.
13785         (cgraph_analyze_functions): Handle aliases.
13786         (cgraph_mark_functions_to_output): Handle aliases same way as thunks.
13787         (assemble_thunks): Rename to ...
13788         (assemble_thunks_and_aliases): ... this one; handle aliases, too.
13789         (cgraph_expand_function): Remove alias output code.
13790         (cgraph_output_in_order): Skip aliases.
13791         (cgraph_preserve_function_body_p): Aliases don't need preserving.
13792         * ipa-ref.c (ipa_ref_use_name): Add alias reference.
13793         (ipa_record_reference): Do not assert on alias references.
13794         (ipa_ref_has_aliases_p): New function.
13795         * ipa-ref.h (enum ipa_ref_use): Add IPA_REF_ALIAS.
13796         (ipa_ref_has_aliases_p): Declare.
13797         * lto-cgraph.c (lto_output_node): Handle aliases.
13798         (input_node): Likewise.
13799         * lto-streamer-out.c (lto_output): Skip aliases.
13800         (produce_symtab): Kill same_body_alias code.
13801         * ipa-utils.c (ipa_reverse_postorder): Add FIXME.
13802         (ipa_reverse_postorder): Use cgraph_only_called_directly_or_aliased_p.
13803         * ipa-inline.c (update_caller_keys): Walk aliases.
13804         (inline_small_functions): Fix thinko in previous patch.
13805         * ipa.c (cgraph_externally_visible_p): Do not walk aliases.
13806         (function_and_variable_visibility): Do not walk same body aliases.
13807         * tree-ssa-structalias.c (associate_varinfo_to_alias): New function.
13808         (ipa_pta_execute): Use it.
13809
13810 2011-06-11  Uros Bizjak  <ubizjak@gmail.com>
13811
13812         * config/i386/sse.md (vec_dupv4sf): Correct mode of forced register.
13813         (*vec_dupv2df): Rename from vec_dupv2df.
13814         (vec_dupv2df): New expander.
13815
13816 2011-06-11  Uros Bizjak  <ubizjak@gmail.com>
13817
13818         * config/i386/sse.md (AVX_VEC_DUP_MODE): Rename from AVX256MODE24P.
13819
13820 2011-06-11  Uros Bizjak  <ubizjak@gmail.com>
13821
13822         * config/i386/i386.md: Use default value in "isa" attribute.
13823         * config/i386/sse.md: Ditto.
13824         * config/i386/mmx.md: Ditto.
13825
13826 2011-06-10  Wei Guozhi  <carrot@google.com>
13827
13828         PR target/45335
13829         * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
13830         stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
13831         (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
13832         related peephole2.
13833         (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
13834         related peephole2.
13835         * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
13836         (arm_legitimate_ldrd_p): New prototype.
13837         (arm_output_ldrd): New prototype.
13838         * config/arm/arm.c (arm_check_ldrd_operands): New function.
13839         (arm_legitimate_ldrd_p): New function.
13840         (arm_output_ldrd): New function.
13841
13842 2011-06-10  David Li  <davidxl@google.com>
13843
13844         * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
13845         * passes.c (passr_eq): New function.
13846         (create_pass_tab): New function.
13847         (pass_traverse): New function.
13848         (dump_one_pass): New function.
13849         (dump_pass_list): New function.
13850         (dump_passes): New function.
13851
13852 2011-06-10  Jan Hubicka  <jh@suse.cz>
13853
13854         * cgraph.c (cgraph_set_nothrow_flag_1): Update cgraph after
13855         setting the nothrow flag.
13856         * ipa-reference.c (propagate): Skip aliases.
13857         * ipa-pure-const.c (propagate_pure_const): Skip aliases.
13858         (propagate_nothrow): Skip aliases; do not update cgraph.
13859         (local_pure_const): Do not update cgraph.
13860         * tree-profile.c (tree_profiling): Do fixup_cfg.
13861
13862 2011-06-10  Jan Hubicka  <jh@suse.cz>
13863
13864         * ipa.c (cgraph_non_local_node_p_1): Break out from ...;
13865         (cgraph_local_node_p): ... here; handle aliases.
13866         (has_addr_references_p): Break out from ...;
13867         (cgraph_remove_unreachable_nodes) ... here.
13868
13869 2011-06-10  Jan Hubicka  <jh@suse.cz>
13870
13871         * opts.c (default_options): Enlist OPT_finline_functions_called_once.
13872         * common.opt (flag_inline_functions_called_once): Do not
13873         initialize to 1.
13874
13875 2011-06-10  Jan Hubicka  <jh@suse.cz>
13876
13877         * ipa-cp.c (ipcp_versionable_function_p): Thunks are not versionable.
13878         (ipcp_initialize_node_lattices): Do not deal with aliases;
13879         Do not try to propagate through thunks.
13880         (ipcp_change_tops_to_bottom): Do not deal with aliases.
13881
13882 2011-06-10  Jan Hubicka  <jh@suse.cz>
13883
13884         * ipa-prop.c (ipa_write_node_info): Stream jump functions
13885         for indirect calls.
13886         (ipa_read_node_info): Likewise.
13887
13888 2011-06-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13889
13890         PR lto/49302
13891         * tree-ssa-math-opts.c (powi_as_mults): Minor cleanup.
13892         (build_and_insert_call): Likewise.
13893         (build_and_insert_ref): New.
13894         (gimple_expand_builtin_pow): Minor cleanup.
13895         (gimple_expand_builtin_cabs): New.
13896         (execute_cse_sincos): Add case for BUILT_IN_CABS.
13897
13898 2011-06-10  Jan Hubicka  <jh@suse.cz>
13899
13900         * ipa-cp.c (ipcp_versionable_function_p): Aliases are not versionable.
13901         (ipcp_cloning_candidate_p): Aliases are not clonning candidates.
13902         (ipcp_initialize_node_lattices): We don't propagate through an aliases.
13903         (ipcp_propagate_stage): Skip aliases when propagating.
13904         (ipcp_need_redirect_p): Skip aliases.
13905         (ipcp_insert_stage): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY and
13906         collect_callers_of_node.
13907         * ipa-prop.c (ipa_init_func_list): Do not analyze datastructures
13908         for aliases.
13909         (ipa_compute_jump_functions): Look through aliases.
13910
13911 2011-06-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13912
13913         * doc/sourcebuild.texi (Effective-Target Keywords, pie): Document it.
13914
13915 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
13916
13917         * ira-costs.c: Remove #ifdefs on dead FORBIDDEN_INC_DEC_CLASSES.
13918         Adjust comments.
13919         * system.h (FORBIDDEN_INC_DEC_CLASSES): Poison.
13920
13921 2011-06-10  Jan Hubicka  <jh@suse.cz>
13922
13923         * ipa-cp.c (ipcp_process_devirtualization_opportunities):
13924         Update call of gimple_get_virt_method_for_binfo.
13925         * gimple-fold.c (gimple_get_virt_method_for_binfo): Remove
13926         refuse_thunks parameter.
13927         (gimple_fold_call): Update.
13928         * ipa-prop.c (try_make_edge_direct_virtual_call): Update.
13929
13930 2011-06-10  Jan Hubicka  <jh@suse.cz>
13931
13932         * tree-sra.c (all_callers_have_enough_arguments_p): Rename to ...
13933         (not_all_callers_have_enough_arguments_p): ... this one; turn into
13934         worker for cgraph_for_node_and_aliases.
13935         (convert_callers_for_node): Break out from ...
13936         (convert_callers): ... here.
13937         (modify_function): Use collect_callers_of_node.
13938         (ipa_early_sra): Use cgraph_for_node_and_aliases.
13939
13940 2011-06-10  Richard Guenther  <rguenther@suse.de>
13941
13942         PR tree-optimization/49361
13943         * fold-const.c (fold_binary_loc): Only fold x * x to pow (x, 2.0)
13944         when not already in gimple form.
13945
13946 2011-06-10  Richard Guenther  <rguenther@suse.de>
13947
13948         PR bootstrap/49344
13949         * tree-ssa-math-opts.c (convert_mult_to_fma): Use
13950         FOR_EACH_PHI_OR_STMT_USE.
13951
13952 2011-06-10  Jan Hubicka  <jh@suse.cz>
13953
13954         * ipa-inline-transform.c (can_remove_node_now_p): Move out of...
13955         (clone_inlined_nodes): ... here.
13956         (inline_call): Use cgraph_function_or_thunk_node; redirect edge
13957         to real destination prior inlining.
13958         * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
13959         can_early_inline_edge_p, want_early_inline_function_p,
13960         want_early_inline_function_p, want_inline_small_function_p,
13961         want_inline_self_recursive_call_p, want_inline_function_called_once_p,
13962         edge_badness, update_all_callee_keys, lookup_recursive_calls,
13963         add_new_edges_to_heap, inline_small_functions, flatten_function,
13964         inline_always_inline_functions, early_inline_small_functions): Use
13965         cgraph_function_or_thunk_node.
13966         * ipa-inline-analysis.c (evaluate_conditions_for_edge,
13967         dump_inline_edge_summary, estimate_function_body_sizes): Likewise.
13968         (do_estimate_edge_growth_1): Break out from ...
13969         (do_estimate_growth) ... here; walk aliases.
13970         (inline_generate_summary): Skip aliases.
13971
13972 2011-06-10  Richard Guenther  <rguenther@suse.de>
13973
13974         * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Scan stmts
13975         forward when combining, visit inserted stmts when a stmt was changed.
13976
13977 2011-06-10  Paolo Carlini  <paolo.carlini@oracle.com>
13978
13979         * tree.h (error_operand_p): Add.
13980         * dbxout.c (dbxout_type_fields): Use the latter.
13981         * c-decl.c (add_stmt): Likewise.
13982         * gimplify.c (omp_add_variable, omp_notice_variable,
13983         gimplify_scan_omp_clauses): Likewise.
13984
13985 2011-06-10  Georg-Johann Lay  <avr@gjlay.de>
13986
13987         * config/avr/avr.c (avr_function_arg_advance): Fix thinko about
13988         when a value is actually passed in regs.
13989
13990 2011-06-10  Eric Botcazou  <ebotcazou@adacore.com>
13991             Laurent Rougé  <laurent.rouge@menta.fr>
13992
13993         * doc/invoke.texi (SPARC options): Add -mflat.
13994         * config/sparc/sparc.opt: Likewise.
13995         * config/sparc/sparc-protos.h (sparc_expand_epilogue): Add parameter.
13996         (sparc_flat_expand_prologue): Declare.
13997         (sparc_flat_expand_epilogue): Likewise.
13998         * config/sparc/sparc.h (CPP_CPU_SPEC): Do not handle -msoft-float.
13999         (CPP_ENDIAN_SPEC): Replace with...
14000         (CPP_OTHER_SPEC): ...this.  Also handle -mflat and -msoft-float.
14001         (CPP_SPEC): Adjust to above change.
14002         (EXTRA_SPECS): Likewise.
14003         (SPARC_INCOMING_INT_ARG_FIRST): Add TARGET_FLAT handling.
14004         (INCOMING_REGNO): Likewise.
14005         (OUTGOING_REGNO): Likewise.
14006         (LOCAL_REGNO): Likewise.
14007         (SETUP_FRAME_ADDRESSES): Likewise.
14008         (FIXED_REGISTERS): Set 0 for %fp.
14009         (CALL_USED_REGISTERS): Likewise.
14010         (INITIAL_ELIMINATION_OFFSET): Pass current_function_is_leaf.
14011         (EXIT_IGNORE_STACK): Define to 1 unconditionally.
14012         (RETURN_ADDR_REGNUM): Define.
14013         (RETURN_ADDR_RTX): Use it.
14014         (INCOMING_RETURN_ADDR_REGNUM): Define.
14015         (INCOMING_RETURN_ADDR_RTX): Use it.
14016         (DWARF_FRAME_RETURN_COLUMN): Likewise.
14017         (EH_RETURN_REGNUM): Define.
14018         (EH_RETURN_STACKADJ_RTX): Use it.
14019         (EH_RETURN_HANDLER_RTX): Delete.
14020         (EPILOGUE_USES): Use them and add TARGET_FLAT handling.
14021         * config/sparc/sparc.c (apparent_fsize, actual_fsize, num_gfregs):
14022         Delete.
14023         (struct machine_function): Add frame_size, apparent_frame_size,
14024         frame_base_reg, frame_base_offset, n_global_fp_regs and
14025         save_local_in_regs_p fields.
14026         (sparc_frame_size, sparc_apparent_frame_size, sparc_frame_base_reg,
14027         sparc_frame_base_offset, sparc_n_global_fp_regs,
14028         sparc_save_local_in_regs_p): New macros.
14029         (sparc_option_override): Error out if -fcall-saved-REG is specified
14030         for Out registers.
14031         (eligible_for_restore_insn): Fix formatting.
14032         (eligible_for_return_delay): Likewise.  Add TARGET_FLAT handling.
14033         (eligible_for_sibcall_delay): Likewise.
14034         (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Add MODE parameter.
14035         (sparc_legitimate_address_p): Adjust to above change.
14036         (save_global_or_fp_reg_p): New predicate.
14037         (return_addr_reg_needed_p): Likewise.
14038         (save_local_or_in_reg_p): Likewise.
14039         (sparc_compute_frame_size): Use them.  Add TARGET_FLAT handling.
14040         (SORR_SAVE, SORR_RESTORE): Delete.
14041         (sorr_pred_t): New typedef.
14042         (sorr_act_t): New enum.
14043         (save_or_restore_regs): Rename to...
14044         (emit_save_or_restore_regs): ...this.  Change type of LOW and HIGH
14045         parameters, remove ACTION parameter, add LEAF_FUNCTION_P, SAVE_P,
14046         ACTION_TRUE and ACTION_FALSE parameters.  Implement more general
14047         mechanism.  Add CFI information for double-word saves in 32-bit mode.
14048         (emit_adjust_base_to_offset): New function extracted from...
14049         (emit_save_or_restore_regs): ...this.  Rename the rest to...
14050         (emit_save_or_restore_regs_global_fp_regs): ...this.
14051         (emit_save_or_restore_regs_local_in_regs): New function.
14052         (gen_create_flat_frame_[123]): New functions.
14053         (sparc_expand_prologue): Use SIZE local variable.  Adjust.
14054         (sparc_flat_expand_prologue): New function.
14055         (sparc_asm_function_prologue): Add TARGET_FLAT handling.
14056         (sparc_expand_epilogue): Use SIZE local variable.  Adjust.
14057         (sparc_flat_expand_epilogue): New function.
14058         (sparc_can_use_return_insn_p): Add TARGET_FLAT handling.
14059         (output_return): Likewise.
14060         (output_sibcall): Likewise.
14061         (sparc_output_mi_thunk): Likewise.
14062         (sparc_frame_pointer_required): Likewise.
14063         (sparc_conditional_register_usage): If TARGET_FLAT, disable the leaf
14064         function optimization.
14065         * config/sparc/sparc.md (flat): New attribute.
14066         (prologue): Add TARGET_FLAT handling.
14067         (save_register_window): Disable if TARGET_FLAT.
14068         (create_flat_frame_[123]): New patterns.
14069         (epilogue): Add TARGET_FLAT handling.
14070         (sibcall_epilogue): Likewise.
14071         (eh_return): New expander.
14072         (eh_return_internal): New insn and splitter.
14073         (return_internal): Add TARGET_FLAT handling.
14074         (untyped_return): Remove bogus test and use RETURN_ADDR_REGNUM.
14075         (save_stack_nonlocal): Use RETURN_ADDR_REGNUM.
14076         (nonlocal_goto): Add TARGET_FLAT handling.
14077         * config/sparc/t-elf: Add -mflat multilib.
14078         * config/sparc/t-leon: Likewise.
14079
14080 2011-06-10  Jan Hubicka  <jh@suse.cz>
14081
14082         * ipa-utils.c (searchc): Use cgraph_function_or_thunk_node.
14083         * ipa-pure-const.c (analyze_function): Aliases don't need analysis.
14084         (self_recursive_p): Use cgraph_function_node.
14085         (propagate_pure_const): Likewise.
14086         (propagate_nothrow): Likewise.
14087         * ipa-reference.c (ipa_reference_get_not_read_global): Use
14088         cgraph_function_node.
14089         (propagate_bits): Likewise.
14090         (propagate): Likewise.
14091
14092 2011-06-10  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
14093             Richard Earnshaw  <rearnsha@arm.com>
14094
14095         * config/arm/arm.c (const_ok_for_op): Check to see if mvn can be used.
14096         * config/arm/vfp.md (*arm_movdi_vfp): Delete.
14097         (*thumb2_movdi_vfp): Delete.
14098         (*arm_movdi_vfp_cortexa8): Delete.
14099         (*movdi_vfp): Consolidate from *arm_movdi_vfp and *thumb2_movdi_vfp.
14100         (*movdi_vfp_cortexa8): Likewise.
14101
14102 2011-06-10  Richard Guenther  <rguenther@suse.de>
14103
14104         * stor-layout.c (initialize_sizetypes): Give names to all
14105         sizetype kinds.
14106
14107 2011-06-10  Ira Rosen  <ira.rosen@linaro.org>
14108
14109         PR tree-optimization/49318
14110         * tree-vect-loop.c (vect_determine_vectorization_factor): Remove
14111         irrelevant pattern statements.
14112
14113 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
14114
14115         * system.h (SETJMP_VIA_SAVE_AREA): Poison.
14116
14117         PR bootstrap/49354
14118         * ira-costs.c (setup_regno_cost_classes_by_mode): Add missing cast
14119         to last assignment.
14120
14121 2011-06-09  Jan Hubicka  <jh@suse.cz>
14122
14123         * cgraphunit.c (cgraph_reset_node): Do not set redefined_extern_inline;
14124         do not recompute reachable flag.
14125         (cgraph_finalize_function, cgraph_analyze_functions): Set
14126         redefined_extern_inline here.
14127
14128 2011-06-09  Jan Hubicka  <jh@suse.cz>
14129
14130         * cgraph.h (cgraph_only_called_directly_or_aliased_p): Rename from ...
14131         (cgraph_only_called_directly_p): ... this one; bring offline.
14132         (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
14133         varpool_used_from_object_file_p): Drop names from the declaratoin.
14134         (cgraph_for_node_thunks_and_aliases, cgraph_for_node_and_aliases,
14135         collect_callers_of_node): New.
14136         (cgraph_function_node, cgraph_function_or_thunk_node): New functions.
14137         (cgraph_edge_recursive_p): Use cgraph_function_node.
14138         * cgraph.c (cgraph_add_thunk): Check that thunk is not already alias.
14139         (cgraph_node_cannot_be_local_p_1): Break out from ...
14140         (cgraph_node_can_be_local_p): ... here; walk aliases.
14141         (cgraph_for_node_thunks_and_aliases): New function.
14142         (cgraph_for_node_and_aliases): New function.
14143         (cgraph_make_node_local_1): Break out from ...
14144         (cgraph_make_node_local) ... here; use
14145         cgraph_for_node_thunks_and_aliases.
14146         (cgraph_set_nothrow_flag_1): Break out from ...
14147         (cgraph_set_nothrow_flag) ... here;
14148         use cgraph_for_node_thunks_and_aliases.
14149         (cgraph_set_const_flag_1): Break out from ...
14150         (cgraph_set_const_flag) ... here;
14151         use cgraph_for_node_thunks_and_aliases.
14152         (cgraph_set_pure_flag_1): Break out from ...
14153         (cgraph_set_pure_flag) ... here;
14154         use cgraph_for_node_thunks_and_aliases.
14155         (cgraph_propagate_frequency_1): Break out from ...
14156         (cgraph_propagate_frequency) ... here; use
14157         cgraph_for_node_thunks_and_aliases.
14158         (cgraph_used_from_object_file_p): Do not care about aliases.
14159         (cgraph_not_only_called_directly_p_1, cgraph_only_called_directly_p):
14160         New functions.
14161         (collect_callers_of_node_1, collect_callers_of_node): New functions.
14162
14163 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
14164
14165         PR rtl-optimization/49154
14166         * config/cris/cris.h (FIXED_REGISTERS): Include CRIS_CC0_REGNUM.
14167         (enum reg_class): Add SRP_REGS and MOF_SRP_REGS.
14168         (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
14169         (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Adjust to fit.
14170         * config/cris/cris.h (cris_register_move_cost): Remove
14171         !TARGET_V32 code.  Tweak comments.
14172
14173 2011-06-09  Jan Hubicka  <jh@suse.cz>
14174
14175         * cgraphbuild.c (record_eh_tables): Mark personality function as having
14176         address taken.
14177
14178 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
14179
14180         PR rtl-optimization/49154
14181         * ira-costs.c (setup_regno_cost_classes_by_mode): If there already
14182         is a matching slot in the hashtable, assign it to classes_ptr.
14183
14184         PR rtl-optimization/49154
14185         * doc/tm.texi.in (Register Classes): Document rule for the narrowest
14186         register classes.
14187         * doc/tm.texi: Regenerate.
14188
14189 2011-06-09  Kaz Kojima  <kkojima@gcc.gnu.org>
14190
14191         PR target/49307
14192         * config/sh/sh.md (UNSPEC_CHKADD): New.
14193         (chk_guard_add): New define_insn_and_split.
14194         (symGOT_load): Use chk_guard_add instead of blockage.
14195
14196 2011-06-09  Kai Tietz  <ktietz@redhat.com>
14197
14198         * libgcc2.c (L_trampoline): Include windows.h for mingw targets.
14199
14200 2011-06-09  Eric Botcazou  <ebotcazou@adacore.com>
14201
14202         * config/sparc/sparc.md (return_internal): Adjust 'length' attribute.
14203
14204 2011-06-09  Wei Guozhi  <carrot@google.com>
14205
14206         PR target/46975
14207         * config/arm/arm.md (*addsi3_carryin_compare0_<optab>): New pattern.
14208         (peephole2 for conditional move): Generate 16 bit instructions.
14209
14210 2011-06-09  Uros Bizjak  <ubizjak@gmail.com>
14211
14212         * config/i386/i386.md (*movdi_internal_rex64): Merge
14213         alternatives 6 and 8.
14214
14215 2011-06-09  David Li  <davidxl@google.com>
14216
14217         * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
14218         * passes.c (passr_eq): New function.
14219         (create_pass_tab): New function.
14220         (pass_traverse): New function.
14221         (dump_one_pass): New function.
14222         (dump_pass_list): New function.
14223         (dump_passes): New function.
14224
14225 2011-06-09  David Li  <davidxl@google.com>
14226
14227         * tree-complex.c (tree_lower_complex): Gate cleanup.
14228         * tree-stdarg.c (check_all_va_list_escapes): Ditto.
14229         (execute_optimize_stdarg): Ditto.
14230         * tree-eh.c (execute_lower_eh_dispatch): Ditto.
14231         (execute_cleanup_eh_1): Ditto.
14232         (execute_cleanup_eh): Ditto.
14233         * gcse.c (gate_rtl_pre): Ditto.
14234         (execute_rtl_pre): Ditto.
14235         * except.c (finish_eh_generation): Ditto.
14236         (convert_to_eh_region_ranges): Ditto.
14237         * cprop.c (one_cprop_pass): Ditto.
14238
14239 2011-06-09  Bernd Schmidt  <bernds@codesourcery.com>
14240
14241         PR target/48673
14242         * config/ia64/ia64.c (ia64_reorg): Clear BB_DISABLE_SCHEDULE flag
14243         in all basic blocks.
14244
14245 2011-06-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14246
14247         * config/alpha/netbsd.h (ENABLE_EXECUTE_STACK): Remove.
14248         (HAVE_ENABLE_EXECUTE_STACK): Define.
14249         * config/alpha/osf5.h (ENABLE_EXECUTE_STACK): Remove.
14250         (HAVE_ENABLE_EXECUTE_STACK): Define.
14251         * config/darwin.h (ENABLE_EXECUTE_STACK): Remove.
14252         (HAVE_ENABLE_EXECUTE_STACK): Define.
14253         * config/i386/mingw32.h (MINGW_ENABLE_EXECUTE_STACK): Remove.
14254         (ENABLE_EXECUTE_STACK): Remove.
14255         (HAVE_ENABLE_EXECUTE_STACK): Define.
14256         [IN_LIBGCC2]: Don't include <windows.h>.
14257         * config/i386/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
14258         (HAVE_ENABLE_EXECUTE_STACK): Define.
14259         * config/i386/netbsd64.h (ENABLE_EXECUTE_STACK): Remove.
14260         (HAVE_ENABLE_EXECUTE_STACK): Define.
14261         * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): Remove.
14262         * config/openbsd.h (ENABLE_EXECUTE_STACK): Remove.
14263         (HAVE_ENABLE_EXECUTE_STACK): Define.
14264         * config/sol2.h (ENABLE_EXECUTE_STACK): Remove.
14265         (HAVE_ENABLE_EXECUTE_STACK): Define.
14266         * config/sparc/freebsd.h (ENABLE_EXECUTE_STACK): Remove.
14267         (HAVE_ENABLE_EXECUTE_STACK): Define.
14268         * config/sparc/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
14269         (HAVE_ENABLE_EXECUTE_STACK): Define.
14270         * config/alpha/alpha.c (alpha_trampoline_init): Test
14271         HAVE_ENABLE_EXECUTE_STACK.
14272         * config/i386/i386.c (ix86_trampoline_init): Likewise.
14273         * config/sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
14274         (sparc64_initialize_trampoline): Likewise.
14275         * libgcc2.c [L_enable_execute_stack]: Remove.
14276         * system.h (ENABLE_EXECUTE_STACK): Poison.
14277         * doc/tm.texi.in (Trampolines, ENABLE_EXECUTE_STACK): Remove.
14278         * doc/tm.texi: Regenerate.
14279         * Makefile.in (LIBGCC2_CFLAGS): Add -fbuilding-libgcc.
14280
14281 2011-06-09  Jakub Jelinek  <jakub@redhat.com>
14282
14283         PR middle-end/49308
14284         * dce.c (reset_unmarked_insns_debug_uses): Avoid shadowing insn
14285         variable.  After resetting and rescanning insn continue with previous
14286         statement.
14287
14288 2011-06-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14289
14290         * configure.ac (gcc_cv_as_hidden): Enable on *-*-darwin*.
14291         (gcc_cv_ld_hidden): Likewise.
14292         * configure: Regenerate.
14293         * config/i386/i386.c (USE_HIDDEN_LINKONCE): Remove TARGET_MACHO.
14294         (ix86_stack_protect_fail): Mark unused.
14295         (TARGET_STACK_PROTECT_FAIL) [TARGET_MACHO]: Don't redefine.
14296         * config/rs6000/rs6000.c (rs6000_assemble_visibility)
14297         [TARGET_MACHO]: Don't define.
14298         (TARGET_ASM_ASSEMBLE_VISIBILITY): Likewise.
14299         (TARGET_STACK_PROTECT_FAIL): Likewise.
14300         (rs6000_stack_protect_fail): Mark unused.
14301         * dwarf2asm.c (dw2_output_indirect_constant_1): Mark decl hidden if
14302         USE_LINKONCE_INDIRECT.  Don't emit .hidden expicitly.
14303
14304 2011-06-08  Andi Kleen  <ak@linux.intel.com>
14305
14306         * varasm.c (get_section): Print location of other conflict
14307         for section conflicts.
14308
14309 2011-06-08  Andi Kleen  <ak@linux.intel.com>
14310
14311         * config/i386/driver-i386.c (host_detect_local_cpu):
14312         Add model 0x2d Intel CPU.
14313
14314 2011-06-08  Andi Kleen  <ak@linux.intel.com>
14315
14316         * reginfo.c (global_regs_decl): Add.
14317         (globalize_reg): Add decl parameter. Compute location.  Pass location
14318         to warnings and add inform. Store decl in global_regs_decl.
14319         * rtl.h (globalize_reg): Update prototype.
14320         * varasm.c (make_decl_rtl): Pass decl to globalize_reg().
14321
14322 2011-06-09  Mingjie Xing  <mingjie.xing@gmail.com>
14323
14324         * treestruct.def (TS_TYPE_DECL): Fix the printable name typo.
14325
14326 2011-06-08  Kaz Kojima  <kkojima@gcc.gnu.org>
14327
14328         PR target/49305
14329         * config/sh/predicates.md (general_movsrc_operand): Check
14330         mode for memory with indexed address for QI and HImode.
14331         (general_movdst_operand): Likewise.
14332
14333 2011-06-09  Nicola Pero  <nicola.pero@meta-innovation.com>
14334
14335         * doc/objc.texi (Traditional GNU Objective-C runtime API): Updated.
14336
14337 2011-06-08  Alexandre Oliva  <aoliva@redhat.com>
14338
14339         * tree-flow-inline.h (op_iter_init): Reject GIMPLE_PHI stmts.
14340         (num_ssa_operands): Likewise.
14341         (op_iter_init_phiuse): Forward-declare.
14342         (delink_stmt_imm_use): Iterate with FOR_EACH_PHI_OR_STMT_USE.
14343
14344 2011-06-08  Nick Clifton  <nickc@redhat.com>
14345
14346         * doc/invoke.texi (ARM Options): Update description of
14347         -mthumb-interwork.
14348
14349 2011-06-08  H.J. Lu  <hongjiu.lu@intel.com>
14350
14351         * config/i386/driver-i386.c (host_detect_local_cpu): Support
14352         unknown Intel family 0x6 CPUs.
14353
14354 2011-06-08  Martin Jambor  <mjambor@suse.cz>
14355
14356         * tree-sra.c (mark_rw_status): Removed.
14357         (analyze_access_subtree): New parameter parent instead of
14358         mark_read and mark_write, propagate from that.
14359
14360 2011-06-08  Julian Brown  <julian@codesourcery.com>
14361
14362         * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
14363         for double-precision helper functions in hard-float mode if only
14364         single-precision arithmetic is supported in hardware.
14365
14366 2011-06-08  Alexander Monakov  <amonakov@ispras.ru>
14367
14368         PR rtl-optimization/49303
14369         * sel-sched.c (move_op): Use correct type for 'res'.  Verify that
14370         code_motion_path_driver returned 0 or 1.
14371         (sel_region_finish): Clear h_d_i_d.
14372
14373 2011-06-08  Kaz Kojima  <kkojima@gcc.gnu.org>
14374
14375         * config/sh/sh.c (prepare_move_operands): Set pic register
14376         appropriately for global and local dynamic tls models even
14377         if flag_pic is unset.
14378
14379 2011-06-07  Jason Merrill  <jason@redhat.com>
14380
14381         * pretty-print.h (ATTRIBUTE_GCC_PPDIAG): Use GCC_DIAG_STYLE if set.
14382
14383 2011-06-07  Xinliang David Li  <davidxl@google.com>
14384         * passes.c (enable_disable_pass): Handle assembler name.
14385         (is_pass_explicitly_enabled_or_disabled): Ditto.
14386
14387 2011-06-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14388
14389         PR tree-optimization/48497
14390         * doc/sourcebuild.texi (Directives, dg-additional-options): Document.
14391
14392 2011-06-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
14393
14394         PR tree-optimization/46728
14395         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Change FIXME
14396         to use gimple_val_nonnegative_real_p.
14397         * gimple-fold.c (gimple_val_nonnegative_real_p): New function.
14398         * gimple.h (gimple_val_nonnegative_real_p): New declaration.
14399
14400 2011-06-07  H.J. Lu  <hongjiu.lu@intel.com>
14401
14402         * config/i386/i386.md (*movsf_internal): Optimize AVX check.
14403
14404 2011-06-07  Sergey Grechanik  <mouseentity@ispras.ru>
14405
14406         * config/arm/arm.c (coproc_secondary_reload_class): Return NO_REGS for
14407         constant vectors.
14408
14409 2011-06-07  Richard Guenther  <rguenther@suse.de>
14410
14411         * stor-layout.c (initialize_sizetypes): Initialize all
14412         sizetypes based on target definitions.
14413         (set_sizetype): Remove.
14414         * tree.c (build_common_tree_nodes): Do not call set_sizetype.
14415         * tree.h (set_sizetype): Remove.
14416
14417 2011-06-07  Nick Clifton  <nickc@redhat.com>
14418
14419         * config.gcc: Unify V850 architecture options and add support for
14420         newer V850 architectures.
14421         * config/v850/t-v850e: Delete.
14422
14423 2011-06-07  Richard Guenther  <rguenther@suse.de>
14424
14425         * tree.c (build_common_tree_nodes): Also initialize size_type_node.
14426         Call set_sizetype from here.
14427
14428 2011-06-07  Andrew Stubbs  <ams@codesourcery.com>
14429
14430         * config/arm/arm.md (*maddhidi4tb, *maddhidi4tt): New define_insns.
14431         (*maddhisi4tb, *maddhisi4tt): New define_insns.
14432
14433 2011-06-07  Bernd Schmidt  <bernds@codesourcery.com>
14434             Andrew Stubbs  <ams@codesourcery.com>
14435
14436         * simplify-rtx.c (simplify_unary_operation_1): Canonicalize widening
14437         multiplies.
14438         * doc/md.texi (Canonicalization of Instructions): Document widening
14439         multiply canonicalization.
14440
14441 2011-06-07  Jakub Jelinek  <jakub@redhat.com>
14442
14443         PR gcov-profile/49299
14444         * value-prof.c (gimple_ic): Don't assume icall has a fallthru edge.
14445
14446 2011-06-07  Ira Rosen  <ira.rosen@linaro.org>
14447
14448         * tree-vectorizer.h (vect_recog_func_ptr): Make last argument to be
14449         a pointer.
14450         * tree-vect-patterns.c (vect_recog_widen_sum_pattern,
14451         vect_recog_widen_mult_pattern, vect_recog_dot_prod_pattern,
14452         vect_recog_pow_pattern): Likewise.
14453         (vect_pattern_recog_1): Remove declaration.
14454         (widened_name_p): Remove declaration.  Add new argument to specify
14455         whether to check that both types are either signed or unsigned.
14456         (vect_recog_widen_mult_pattern): Update documentation.  Handle
14457         unsigned patterns and multiplication by constants.
14458         (vect_pattern_recog_1): Update vect_recog_func references.  Use
14459         statement information from the statement returned from pattern
14460         detection functions.
14461         (vect_pattern_recog): Update vect_recog_func reference.
14462         * tree-vect-stmts.c (vectorizable_type_promotion): For widening
14463         multiplication by a constant use the type of the other operand.
14464
14465 2011-06-06  Richard Sandiford  <rdsandiford@googlemail.com>
14466
14467         PR rtl-optimization/49145
14468         * combine.c (make_compound_operation): Handle ZERO_EXTEND specially.
14469
14470 2011-06-06  Jakub Jelinek  <jakub@redhat.com>
14471
14472         PR debug/49262
14473         * dwarf2out.c (native_encode_initializer): Decrement count in each
14474         iteration.
14475
14476         PR debug/49294
14477         * dwarf2out.c (mem_loc_descriptor) <do_shift>: Give up for
14478         non-MODE_INT modes.
14479
14480         PR c++/49264
14481         * gimple-fold.c (fold_stmt_1): Don't try to fold *& on the lhs
14482         if stmt folded into nothing.
14483         * tree-inline.c (fold_marked_statements): If a builtin at the end of
14484         a bb folded into nothing, just update cgraph edges and move to next bb.
14485         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Allow new_stmt
14486         to be NULL.  Don't compute count and frequency if new_call is NULL.
14487
14488 2011-06-04  Diego Novillo  <dnovillo@google.com>
14489
14490         * Makefile.in (lto-compress.o): Add dependency on LTO_STREAMER_H.
14491         (cgraph.o): Likewise.
14492         (cgraphunit.o): Likewise.
14493         * cgraphunit.c: Include lto-streamer.h
14494         (cgraph_finalize_compilation_unit): Call lto_streamer_hooks_init
14495         if LTO is enabled.
14496         * lto-streamer-in.c (unpack_value_fields): Call
14497         streamer_hooks.unpack_value_fields if set.
14498         (lto_materialize_tree): For unhandled nodes, first try to
14499         call lto_streamer_hooks.alloc_tree, if it exists.
14500         (lto_input_ts_decl_common_tree_pointers): Move reading of
14501         DECL_INITIAL to lto_streamer_read_tree.
14502         (lto_read_tree): Call lto_streamer_hooks.read_tree if set.
14503         (lto_streamer_read_tree): New.
14504         (lto_reader_init): Rename from lto_init_reader.
14505         Move initialization code to lto/lto.c.
14506         * lto-streamer-out.c (pack_value_fields): Call
14507         streamer_hooks.pack_value_fields if set.
14508         (lto_output_tree_ref): For tree nodes that are not normally indexable,
14509         call streamer_hooks.indexable_with_decls_p before giving up.
14510         (lto_output_ts_decl_common_tree_pointers): Move handling
14511         for FUNCTION_DECL and TRANSLATION_UNIT_DECL to lto_streamer_write_tree.
14512         (lto_output_tree_header): Call streamer_hooks.is_streamable instead of
14513         lto_is_streamable.  Call lto_streamer_hooks.output_tree_header if set.
14514         (lto_write_tree): Call lto_streamer_hooks.write_tree if set.
14515         (lto_streamer_write_tree): New.
14516         (lto_output): Call lto_streamer_init directly.
14517         (lto_writer_init): Remove.
14518         * lto-streamer.c (streamer_hooks): New.
14519         (lto_streamer_cache_create): Call streamer_hooks.preload_common_nodes
14520         instead of lto_preload_common_nodes.
14521         (lto_is_streamable): Move from lto-streamer.h
14522         (lto_streamer_hooks_init): New.
14523         (streamer_hooks): New.
14524         (streamer_hooks_init): New.
14525         * lto-streamer.h (struct output_block): Forward declare.
14526         (struct lto_input_block): Likewise.
14527         (struct data_in): Likewise.
14528         (struct bitpack_d): Likewise.
14529         (struct streamer_hooks): Declare.
14530         (streamer_hooks): Declare.
14531         (lto_streamer_hooks_init): Declare.
14532         (lto_streamer_write_tree): Declare.
14533         (lto_streamer_read_tree): Declare.
14534         (streamer_hooks_init): Declare.
14535         (lto_is_streamable): Move to lto-streamer.c
14536
14537 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14538
14539         * longlong.h (smul_ppmm): The resulting register pair contains the
14540         higher order word first.
14541
14542 2011-06-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
14543
14544         PR tree-optimization/46728
14545         * builtins.c (powi_table): Remove.
14546         (powi_lookup_cost): Remove.
14547         (powi_cost): Remove.
14548         (expand_powi_1): Remove.
14549         (expand_powi): Remove.
14550         (expand_builtin_pow_root): Remove.
14551         (expand_builtin_pow): Remove.
14552         (expand_builtin_powi): Eliminate handling of constant exponent.
14553         (expand_builtin): Use expand_builtin_mathfn_2 for BUILT_IN_POW.
14554
14555 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
14556
14557         * cprop.c (local_cprop_pass): Don't set changed for debug insns.
14558
14559 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
14560
14561         * dce.c (reset_unmarked_insns_debug_uses): New.
14562         (delete_unmarked_insns): Skip debug insns.
14563         (prescan_insns_for_dce): Likewise.
14564         (rest_of_handle_ud_dce): Reset debug uses of removed sets.
14565         * reg-stack.c (subst_stack_regs_in_debug_insn): Signal when no
14566         active reg can be found.
14567         (subst_all_stack_regs_in_debug_insn): New.  Reset debug insn then.
14568         (convert_regs_1): Use it.
14569
14570 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
14571
14572         * tree-pretty-print.c (dump_function_header): Add flags.
14573         Don't dump decl_uid with nouid.
14574         * tree-pretty-print.h (dump_function_header): Adjust.
14575         * final.c (rest_of_clean_state): Pass dump_flags on, with nouid.
14576         * passes.c (pass_init_dump_file): Pass dump_flags on.
14577         * tree-cfg.c (gimple_dump_cfg): Pass flags on.
14578
14579 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
14580
14581         PR bootstrap/49270
14582         * ipa-inline-analysis.c (read_predicate): Initialize all clauses.
14583
14584 2011-06-06  Mikael Pettersson  <mikpe@it.uu.se>
14585
14586         PR tree-optimization/49243
14587         * calls.c (setjmp_call_p): Also check if fndecl has the
14588         returns_twice attribute.
14589
14590 2011-06-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14591
14592         * config/mips/iris6.h (ENDFILE_SPEC): Use crtfastmath.o if
14593         -ffast-math etc.
14594
14595 2011-06-06  Richard Henderson  <rth@redhat.com>
14596             Georg-Johann Lay  <avr@gjlay.de>
14597
14598         PR target/42210
14599         * config/avr/predicates.md (const1_operand, const_0_to_7_operand):
14600         New predicates.
14601         * config/avr/avr.md ("insv"): New insn expander.
14602         ("*movbitqi.1-6.a", "*movbitqi.1-6.b", "*movbitqi.0", "*insv.io",
14603         "*insv.not.io", "*insv.reg"): New insns.
14604
14605 2011-06-06  Hans-Peter Nilsson  <hp@bitrange.com>
14606
14607         PR target/49285
14608         * config/mmix/mmix.md ("truncdfsf2", "extendsfdf2"): Correct predicate
14609         to nonimmediate_operand from memory_operand for the operand that is to
14610         be forced to memory by the expander.  Lose the constraints.
14611
14612 2011-06-05  Eric Botcazou  <ebotcazou@adacore.com>
14613
14614         * config/sparc/sparc.c (output_return): Fix thinko in the output of an
14615         EH return when delayed branches are disabled.
14616
14617 2011-06-05  Uros Bizjak  <ubizjak@gmail.com>
14618
14619         * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>:
14620         Remove MODE_TI handling.  Remove SSE1 handling in attribute "mode"
14621         calculation.
14622         (*movdf_internal_rex64) <case 6,7,8>: Remove MODE_TI handling.
14623         Simplify MODE_V1DF and MODE_V2SF handling.
14624         (*movsf_internal): Remove x constraint from alternative 7 of operand 1.
14625         Simplify MODE_SF handling.
14626
14627 2011-06-04  Jan Hubicka  <jh@suse.cz>
14628
14629         PR tree-optimization/48893
14630         PR tree-optimization/49091
14631         PR tree-optimization/49179
14632         * ipa-inline-analysis.c (evaluate_conditions_for_known_args):
14633         Bounds check.
14634
14635 2011-06-04  Jan Hubicka  <jh@suse.cz>
14636
14637         PR lto/48954
14638         * lto-cgraph.c (output_node_opt_summary): Handle NULL skip args
14639         bitmaps.
14640
14641 2011-06-04  Jonathan Wakely  <jwakely.gcc@gmail.com>
14642
14643         * doc/invoke.texi: Document -Wdelete-non-virtual-dtor.
14644
14645 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
14646
14647         PR target/49281
14648         * config/i386/i386.md (*lea_general_4): Require INTVAL (operands[3])
14649         to be strictly smaller than 1 << shiftcount.
14650
14651 2011-06-04  Jan Hubicka  <jh@suse.cz>
14652
14653         PR tree-optimize/48929
14654         * ipa-inline-analysis.c (remap_edge_predicates): Fix handling
14655         of empty predicate.
14656
14657 2011-06-04  Alexandre Oliva  <aoliva@redhat.com>
14658
14659         PR debug/48333
14660         * calls.c (emit_call_1): Prefer the __builtin declaration of
14661         builtin functions.
14662
14663 2011-06-03   Diego Novillo  <dnovillo@google.com>
14664
14665         * lto-streamer-in.c (unpack_value_fields): Remove unneeded asserts.
14666         (lto_input_tree_pointers): Likewise.
14667         * lto-streamer-out.c (pack_value_fields): Likewise.
14668         (lto_output_tree_pointers): Likewise.
14669         * lto-streamer.h (lto_is_streamable): Add check for OMP_CLAUSE
14670         and OPTIMIZATION_NODE.
14671
14672 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14673
14674         * config/alpha/linux.h (MD_UNWIND_SUPPORT): Remove.
14675         * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Remove.
14676         * config/alpha/vms.h (MD_UNWIND_SUPPORT): Remove.
14677         * config/bfin/linux.h (MD_UNWIND_SUPPORT): Remove.
14678         * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Remove.
14679         * config/i386/linux.h (MD_UNWIND_SUPPORT): Remove.
14680         * config/i386/linux64.h (MD_UNWIND_SUPPORT): Remove.
14681         * config/i386/sol2.h (MD_UNWIND_SUPPORT): Remove.
14682         * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Remove.
14683         * config/ia64/linux.h (MD_UNWIND_SUPPORT): Remove.
14684         * config/ia64/vms.h (MD_UNWIND_SUPPORT): Remove.
14685         * config/m68k/linux.h (MD_UNWIND_SUPPORT): Remove.
14686         * config/mips/linux.h (MD_UNWIND_SUPPORT): Remove.
14687         * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): Remove.
14688         * config/pa/pa32-linux.h (MD_UNWIND_SUPPORT): Remove.
14689         * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Remove.
14690         * config/rs6000/linux.h (MD_UNWIND_SUPPORT): Remove.
14691         * config/rs6000/linux64.h (MD_UNWIND_SUPPORT): Remove.
14692         * config/s390/linux.h (MD_UNWIND_SUPPORT): Remove.
14693         * config/s390/tpf.h (MD_UNWIND_SUPPORT): Remove.
14694         * config/sh/linux.h (MD_UNWIND_SUPPORT): Remove.
14695         * config/sparc/linux.h (MD_UNWIND_SUPPORT): Remove.
14696         * config/sparc/linux64.h (MD_UNWIND_SUPPORT): Remove.
14697         * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Remove.
14698         * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Remove.
14699         * config/alpha/linux-unwind.h: Move to ../libgcc/config/alpha.
14700         * config/alpha/osf5-unwind.h: Move to ../libgcc/config/alpha.
14701         * config/alpha/vms-unwind.h: Move to ../libgcc/config/alpha.
14702         * config/bfin/linux-unwind.h: Move to ../libgcc/config/bfin.
14703         * config/i386/linux-unwind.h: Move to ../libgcc/config/i386.
14704         * config/i386/sol2-unwind.h: Move to ../libgcc/config/i386.
14705         * config/i386/w32-unwind.h: Move to ../libgcc/config/i386.
14706         * config/ia64/linux-unwind.h: Move to ../libgcc/config/ia64.
14707         * config/ia64/vms-unwind.h: Move to ../libgcc/config/ia64.
14708         * config/m68k/linux-unwind.h: Move to ../libgcc/config/m68k.
14709         * config/mips/linux-unwind.h: Move to ../libgcc/config/mips.
14710         * config/pa/hpux-unwind.h: Move to ../libgcc/config/pa.
14711         * config/pa/linux-unwind.h: Move to ../libgcc/config/pa.
14712         * config/rs6000/darwin-unwind.h: Move to ../libgcc/config/rs6000.
14713         * config/rs6000/linux-unwind.h: Move to ../libgcc/config/rs6000.
14714         * config/s390/linux-unwind.h: Move to ../libgcc/config/s390.
14715         * config/s390/tpf-unwind.h: Move to ../libgcc/config/s390.
14716         * config/sh/linux-unwind.h: Move to ../libgcc/config/sh.
14717         * config/sparc/linux-unwind.h: Move to ../libgcc/config/sparc.
14718         * config/sparc/sol2-unwind.h: Move to ../libgcc/config/sparc.
14719         * config/xtensa/linux-unwind.h: Move to ../libgcc/config/xtensa.
14720         * config/darwin9.h (DARWIN_LIBSYSTEM_HAS_UNWIND): Remove.
14721         * system.h (MD_UNWIND_SUPPORT): Poison.
14722         * doc/tm.texi.in (Exception Handling, MD_UNWIND_SUPPORT): Remove.
14723         * doc/tm.texi: Regenerate.
14724         * unwind-dw2.c: Include md-unwind-support.h instead of
14725         MD_UNWIND_SUPPORT.
14726         * config/ia64/unwind-ia64.c: Likewise.
14727         * config/xtensa/unwind-dw2-xtensa.c: Likewise.
14728
14729 2011-06-03  Jack Howarth  <howarth@bromo.med.uc.edu>
14730
14731         * varpool.c (varpool_extra_name_alias): Return NULL, not false.
14732
14733 2011-06-03  Richard Henderson  <rth@redhat.com>
14734             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14735
14736         * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
14737         (sigill_hdlr): Correct insn, insn size.
14738         (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
14739
14740 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14741
14742         * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
14743         t-slibgcc-dummy.
14744         * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
14745         * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
14746         * config/mips/t-iris: Remove.
14747         * config/mips/t-irix6: New file.
14748         * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
14749
14750 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14751
14752         * Makefile.in (LIB2ADDEHDEP): Remove.
14753         * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
14754         * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
14755         * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
14756         * config/t-darwin (LIB2ADDEHDEP): Remove.
14757         * config/t-freebsd (LIB2ADDEHDEP): Remove.
14758         * config/t-linux (LIB2ADDEHDEP): Remove.
14759
14760 2011-06-03  Diego Novillo  <dnovillo@google.com>
14761
14762         * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
14763         (lto_register_var_decl_in_symtab): Likewise.
14764         (lto_register_function_decl_in_symtab): Likewise.
14765         (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
14766         logic to uniquify_nodes.
14767
14768 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14769
14770         * config/alpha/t-osf5: Remove.
14771         * config/alpha/t-osf-pthread: Remove.
14772         * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
14773         * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
14774
14775 2011-06-03  Julian Brown  <julian@codesourcery.com>
14776
14777         * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
14778         (strongarm1110): Use strongarm tuning.
14779         * config/arm/arm-protos.h (tune_params): Add max_insns_skipped field.
14780         * config/arm/arm.c (arm_strongarm_tune): New.
14781         (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
14782         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
14783         (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
14784         setting, using previous defaults or 1 for Cortex-A5.
14785         (arm_option_override): Set max_insns_skipped from current tuning.
14786
14787 2011-06-03  Nathan Sidwell  <nathan@codesourcery.com>
14788
14789         * doc/install.texi (Options specification): Document --with-specs.
14790
14791 2011-06-02  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
14792
14793         * config/arm/neon.md (orndi3_neon): Actually split it.
14794
14795 2011-06-02  Alexandre Oliva  <aoliva@redhat.com>
14796
14797         * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
14798         * var-tracking.c (reverse_op): Limite recurse depth to 5.
14799
14800 2011-06-02  Alexandre Oliva  <aoliva@redhat.com>
14801
14802         PR debug/47590
14803         * target.def (delay_sched2, delay_vartrack): New.
14804         * doc/tm.texi.in: Update.
14805         * doc/tm.texi: Rebuild.
14806         * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
14807         * var-tracking.c (gate_handle_var_tracking): Likewise.
14808         * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
14809         (bfin_flag_var_tracking): Drop.
14810         (output_file_start): Don't save and override flag_var_tracking.
14811         (bfin_option_override): Ditto flag_schedule_insns_after_reload.
14812         (bfin_reorg): Test original variables.
14813         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
14814         * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
14815         (ia64_flag_var_tracking): Drop.
14816         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
14817         (ia64_file_start): Don't save and override flag_var_tracking.
14818         (ia64_override_options_after_change): Ditto
14819         flag_schedule_insns_after_reload.
14820         (ia64_reorg): Test original variables.
14821         * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
14822         (picochip_flag_var_tracking): Drop.
14823         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
14824         (picochip_option_override): Don't save and override
14825         flag_schedule_insns_after_reload.
14826         (picochip_asm_file_start): Ditto flag_var_tracking.
14827         (picochip_reorg): Test original variables.
14828         * config/spu/spu.c (spu_flag_var_tracking): Drop.
14829         (TARGET_DELAY_VARTRACK): Define.
14830         (spu_var_tracking): New.
14831         (spu_machine_dependent_reorg): Call it.
14832         (asm_file_start): Don't save and override flag_var_tracking.
14833
14834 2011-06-02  Kaz Kojima  <kkojima@gcc.gnu.org>
14835
14836         PR target/49163
14837         * config/sh/predicates.md (general_movsrc_operand): Return 0
14838         for memory and memory subreg of which address is an invalid
14839         indexed address for QI and HImode.
14840         (general_movdst_operand): Likewise.
14841
14842 2011-06-02  Eric Botcazou  <ebotcazou@adacore.com>
14843
14844         * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
14845         edges only, when there is a non-local label in the function.
14846         * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
14847
14848 2011-06-02  Uros Bizjak  <ubizjak@gmail.com>
14849
14850         * config/i386/constraints.md (Y3): New register constraint.
14851         * config/i386/sse.md (*vec_interleave_highv2df): Merge with
14852         *sse3_interleave_highv2df and *sse2_interleave_highv2df.
14853         (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
14854         *sse2_interleave_lowv2df.
14855
14856 2011-06-02  Julian Brown  <julian@codesourcery.com>
14857
14858         * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
14859         * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
14860         (arm_cortex_a5_tune): New.
14861
14862 2011-06-02  Julian Brown  <julian@codesourcery.com>
14863
14864         * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
14865         * config/arm/arm.c (arm_default_branch_cost): New.
14866         (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
14867         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
14868         (arm_fa726_tune): Set branch_cost field using
14869         arm_default_branch_cost.
14870         * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
14871         current_tune structure.
14872         * dojump.c (tm_p.h): Include file.
14873
14874 2011-06-02  Julian Brown  <julian@codesourcery.com>
14875
14876         * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
14877         tuning.
14878         (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
14879         (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
14880         * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
14881         field.
14882         * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
14883         (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
14884         (arm_fa726te_tune): Add prefer_constant_pool setting.
14885         (arm_v6t2_tune, arm_cortex_tune): New.
14886         * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
14887         prefer_constant_pool setting.
14888
14889 2011-06-02  Uros Bizjak  <ubizjak@gmail.com>
14890
14891         * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
14892         switch statement.
14893         * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
14894         (*movdf_internal) <case 6,7,8>: Ditto.
14895
14896         * config/i386/constraints.md (Y4): New register constraint.
14897         * config/i386/sse.md (vec_set<mode>_0): Merge with
14898         *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
14899         (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
14900         *vec_extractv2di_1_sse.
14901         (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
14902         and *vec_concatv2di_rex64_sse.
14903
14904 2011-06-02  Stuart Henderson  <shenders@gcc.gnu.org>
14905
14906         PR target/48807
14907         * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
14908         of cgraph_local_info for null before attempting to use it.
14909
14910 2011-06-02  Eric Botcazou  <ebotcazou@adacore.com>
14911
14912         * function.h (struct stack_usage): Remove dynamic_alloc_count field.
14913         (current_function_dynamic_alloc_count): Delete.
14914         * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
14915         (expand_builtin_nonlocal_goto): Remove obsolete comment.
14916         (expand_builtin_update_setjmp_buf): Remove dead code.
14917         * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
14918         * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
14919         support.
14920         * function.c (instantiate_virtual_regs): Likewise.
14921         * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
14922         for a block with a single abnormal incoming edge.
14923         * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
14924         (SETJMP_VIA_SAVE_AREA): Delete.
14925         * config/sparc/sparc-protos.h (load_got_register): Declare.
14926         * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
14927         (load_got_register): Make global.
14928         (sparc_frame_pointer_required): Add 'static'.
14929         (sparc_can_eliminate): Likewise.  Call sparc_frame_pointer_required.
14930         (sparc_builtin_setjmp_frame_value): New function.
14931         * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
14932         (save_stack_nonlocal): New expander.
14933         (restore_stack_nonlocal): Likewise.
14934         (nonlocal_goto): Remove modes, adjust predicates and reimplement.
14935         (nonlocal_goto_internal): New insn.
14936         (goto_handler_and_restore): Delete.
14937         (builtin_setjmp_setup): Likewise.
14938         (do_builtin_setjmp_setup): Likewise.
14939         (setjmp): Likewise.
14940         (builtin_setjmp_receiver): New expander.
14941
14942 2011-06-01  David Li  <davidxl@google.com>
14943
14944         PR middle-end/49261
14945         * tree-pretty-print.c (dump_function_header): Format cleanup.
14946
14947 2011-06-01  Kaz Kojima  <kkojima@gcc.gnu.org>
14948
14949         PR target/49238
14950         * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
14951         needed when original operands are used for msw_skip comparison.
14952
14953 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
14954
14955         PR debug/49250
14956         * var-tracking.c (add_uses, add_stores): Don't call
14957         cselib_subst_to_values on ENTRY_VALUE.
14958
14959 2011-06-01  Diego Novillo  <dnovillo@google.com>
14960
14961         * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
14962         output_record_start with LTO_null instead of output_zero.
14963         (lto_output_ts_binfo_tree_pointers): Likewise.
14964         (lto_output_tree): Likewise.
14965         (output_eh_try_list): Likewise.
14966         (output_eh_region): Likewise.
14967         (output_eh_lp): Likewise.
14968         (output_eh_regions): Likewise.
14969         (output_bb): Likewise.
14970         (output_function): Likewise.
14971         (output_unreferenced_globals): Likewise.
14972         * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
14973         instead of NUM_TREE_CODES.
14974         (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
14975         (lto_output_int_in_range): Change << to >> when shifting VAL.
14976
14977 2011-06-01  Diego Novillo  <dnovillo@google.com>
14978
14979         * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
14980         Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
14981
14982 2011-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
14983
14984         PR target/45074
14985         * optabs.h (valid_multiword_target_p): Declare.
14986         * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
14987         doing multi-word operations.
14988         * optabs.c (expand_binop): Likewise.
14989         (expand_doubleword_bswap): Likewise.
14990         (expand_absneg_bit): Likewise.
14991         (expand_unop): Likewise.
14992         (expand_copysign_bit): Likewise.
14993         (multiword_target_p): New function.
14994
14995 2011-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
14996
14997         PR rtl-optimization/48830
14998         PR rtl-optimization/48808
14999         PR rtl-optimization/48792
15000         * reload.c (push_reload): Check contains_reg_of_mode.
15001         * reload1.c (strip_paradoxical_subreg): New function.
15002         (gen_reload_chain_without_interm_reg_p): Use it to handle
15003         paradoxical subregs.
15004         (emit_output_reload_insns, gen_reload): Likewise.
15005
15006 2011-06-01  David Li  <davidxl@google.com>
15007
15008         * predict.c : Change pass name
15009         * ipa.c: Ditto.
15010         * dce.c: Ditto.
15011         * tree-profile.c: Ditto.
15012         * except.c: Ditto.
15013
15014 2011-06-01  David Li  <davidxl@google.com>
15015
15016         * tree-pretty-print.c (dump_function_header): New function.
15017         * final.c (rest_of_clean_state): Use header dumper.
15018         * tree-cfg.c (gimple_dump_cfg): Use header dumper.
15019         * passes.c (pass_init_dump_file): Use header dumper.
15020
15021 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
15022
15023         * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
15024         ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
15025         popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
15026         New functions.
15027         (mem_loc_descriptor): Use them.
15028
15029         * var-tracking.c (create_entry_value): New function.
15030         (vt_add_function_parameter): Use it.
15031
15032 2011-06-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15033
15034         * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
15035         Include <signal.h>, <ucontext.h>.
15036         (sigill_caught): Define.
15037         (sigill_hdlr): New function.
15038         (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
15039         insns can be executed.
15040         * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
15041         * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
15042
15043 2011-06-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15044
15045         * config/t-slibgcc-darwin: Move to ...
15046         * config/t-slibgcc-dummy: ... this.  Clarify comments.
15047         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
15048         powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
15049         (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
15050         (i[34567]86-*-rtems*): Remove extra_parts.  Use i386/t-rtems.
15051         Remove i386/t-crtstuff from tmake_file.
15052         (i[34567]86-*-solaris2*): Remove t-svr4,
15053         t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
15054         t-slibgcc-dummy.
15055         (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
15056         (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
15057         sparc/t-crtfm from tmake_file.
15058         (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
15059         t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
15060         Remove extra_parts.
15061         * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
15062         * config/i386/t-nwld (SHLIB_LINK): Remove.
15063         * config/i386/t-rtems-i386: Rename to ...
15064         * config/i386/t-rtems: ... this.
15065         ($(T)crti.o, $(T)crtn.o): Remove.
15066         (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
15067         (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
15068         (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
15069         * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
15070         EXTRA_MULTILIB_PARTS): Remove.
15071         * config/sparc/t-sol2-64: Likewise.
15072         * config/sparc/t-sol2: Remove.
15073         * config/sparc/t-crtin: Remove.
15074         * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
15075         * config/i386/gmon-sol2.c: Remove.
15076         * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
15077         * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
15078         * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
15079         * config/i386/sol2-gc1.asm: Remove.
15080         * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
15081         * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
15082         * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
15083         * config/t-slibgcc-sld: Remove.
15084
15085 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
15086
15087         * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
15088         base_type_for_mode with op_mode instead of mode.
15089
15090 2011-06-01  Paul Brook  <paul@cpodesourcery.com>
15091
15092         * config/arm/arm-cores.def: Add cortex-r5.  Add DIV flags to
15093         Cortex-A15.
15094         * config/arm/arm-tune.md: Regenerate.
15095         * config/arm/arm-tables.opt: Regenerate.
15096         * config/arm/arm.c (FL_DIV): Rename...
15097         (FL_THUMB_DIV): ... to this.
15098         (FL_ARM_DIV): Define.
15099         (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
15100         (arm_arch_hwdiv): Remove.
15101         (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
15102         (arm_issue_rate): Add cortexr5.
15103         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
15104         __ARM_ARCH_EXT_IDIV__.
15105         (TARGET_IDIV): Define.
15106         (arm_arch_hwdiv): Remove.
15107         (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
15108         * config/arm/arm.md (tune_cortexr4): Add cortexr5.
15109         (divsi3, udivsi3): New patterns.
15110         * config/arm/thumb2.md (divsi3, udivsi3): Remove.
15111         * doc/invoke.texi: Document ARM -mcpu=cortex-r5
15112
15113 2011-06-01  Martin Jambor  <mjambor@suse.cz>
15114
15115         * ipa-utils.c (ipa_dfs_info): New field scc_no.
15116         * ipa-utils.c (searchc): Set scc_no.
15117
15118 2011-06-01  Martin Jambor  <mjambor@suse.cz>
15119
15120         * ipa-utils.c (searchc_env): New field allow_overwritable.
15121         (searchc): do not ignore edges to overwritable nodes if indicated
15122         by env->allow_overwritable.
15123         (ipa_reduced_postorder): Set env.allow_overwritable.
15124
15125 2011-06-01  Richard Guenther  <rguenther@suse.de>
15126
15127         * tree.c (free_lang_data): Do not reset boolean_type_node nor
15128         char_type_node.
15129         * lto-streamer.c (lto_record_common_node): Take node pointer,
15130         do not register types.
15131         (lto_preload_common_nodes): Explicitly skip preloading nodes
15132         that differ between frontends.
15133
15134 2011-05-31  Pat Haugen  <pthaugen@us.ibm.com>
15135
15136         * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
15137         NON_FLOAT_REGS.
15138
15139 2011-05-31  Pat Haugen  <pthaugen@us.ibm.com>
15140
15141         * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
15142         parameter value for dump. Dump cost on outermost call only.
15143         (rs6000_memory_move_cost): Dump cost on outermost call only.
15144
15145 2011-05-31  Jakub Jelinek  <jakub@redhat.com>
15146
15147         * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
15148         DW_OP_GNU_convert ops.
15149
15150         * cselib.c (promote_debug_loc): Allow l->next non-NULL for
15151         cselib_preserve_constants.
15152         (cselib_lookup_1): If cselib_preserve_constants,
15153         a new VALUE is being created for REG and there is a VALUE for the
15154         same register in wider mode, add another loc with lowpart SUBREG of
15155         the wider VALUE.
15156         (cselib_subst_to_values): Handle ENTRY_VALUE.
15157         * var-tracking.c  (replace_expr_with_values): Return NULL for
15158         ENTRY_VALUE too.
15159         * dwarf2out.c (convert_descriptor_to_signed): New function.
15160         (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
15161         instead of two shifts.
15162         (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
15163         the right mode if needed.
15164         (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
15165         (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
15166         convert_descriptor_to_signed.
15167         (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
15168         BSWAP, ROTATE, ROTATERT>: Handle these rtls.
15169
15170         PR target/48688
15171         * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
15172
15173 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
15174
15175         * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
15176         of X87MODEI12 and SWI48x instead of SSEMODEI24.
15177         (SWI248x): New mode iterator, rename from X87MODEI.
15178         (X87MODEI): Remove mode iterator.
15179         (X87MODEI12): Ditto.
15180         (SSEMODEI24): Ditto.
15181
15182 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
15183
15184         * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
15185         * doc/invoke.texi: Document max-vartrack-expr-depth.
15186         * var-tracking.c (EXPR_DEPTH): New.
15187         (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
15188
15189 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
15190
15191         * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
15192         * config/i386/sse.md: Add n to negated FMA pattern names.
15193
15194 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
15195
15196         * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
15197
15198 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
15199
15200         * gengtype-state.c (read_state_params_structs): Initialize previous.
15201
15202 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
15203
15204         * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
15205         (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
15206
15207 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
15208
15209         * config/i386/i386.md (*movtf_internal): Avoid allocating general
15210         registers.  Penalize F*r->o alternative to prevent partial memory
15211         stalls.  Slightly penalize *roF->*r alternative.  Generate SSE
15212         CONST_DOUBLE immediates when optimizing function for size.  Do not move
15213         CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
15214         (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
15215         (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
15216         (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
15217         alternatives.
15218         (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
15219
15220         (fp_register_operand splitters): Use fp_register_operand
15221         constraint.  Do not use FP_REG_P in insn condition.
15222         (any_fp_register_operand splitters): Use any_fp_register_operand
15223         constraint.  Do not use ANY_FP_REG_P in insn condition.
15224
15225 2011-05-31  Jan Hubicka  <jh@suse.cz>
15226
15227         * cgraph.h (cgraph_inline_failed_t): Give enum a name
15228         * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
15229         (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
15230         (lto_output_edge): Use output_enum and var_len_unsigned.
15231         (lto_output_varpool_node): Likewise.
15232         (input_overwrite_node): Do not take resolution parameter;
15233         extract it from a bitpack.
15234         (input_node): Do not read resolution; use input_enum and
15235         var_len_unsigned.
15236         (input_varpool_node): Likewise.
15237         (input_edge): Likewise.
15238         (input_cgraph_1): Likewise.
15239
15240 2011-05-31  Richard Guenther  <rguenther@suse.de>
15241
15242         * gimple.c (gimple_register_canonical_type): Do not register
15243         any types via gimple_register_type.
15244
15245 2011-05-31  Jan Hubicka  <jh@suse.cz>
15246
15247         * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
15248         of thunks.
15249
15250 2011-05-31  Jakub Jelinek  <jakub@redhat.com>
15251
15252         PR rtl-optimization/49235
15253         * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
15254         (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
15255
15256 2011-05-31  Ira Rosen  <ira.rosen@linaro.org>
15257
15258         PR tree-optimization/49093
15259         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
15260         data references.
15261
15262 2011-05-31  Dodji Seketeli  <dodji@redhat.com>
15263
15264         PR debug/49047
15265         * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
15266         for concrete functions containing the code of cloned functions.
15267
15268 2011-05-31  Richard Guenther  <rguenther@suse.de>
15269
15270         * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
15271         to ...
15272         (forward_propagate_into_comparison_1): ... this.
15273         (forward_propagate_comparison): Rename to ...
15274         (forward_propagate_into_comparison): ... this.  Split out
15275         real forward propagation code to ...
15276         (forward_propagate_comparison): ... this.
15277         (forward_propagate_into_gimple_cond): Remove looping.
15278         (forward_propagate_into_cond): Likewise.
15279         (simplify_not_neg_expr): Return whether we have done something.
15280         (simplify_gimple_switch): Likewise.
15281         (tree_ssa_forward_propagate_single_use_vars): Rename to ...
15282         (ssa_forward_propagate_and_combine): ... this.  Re-structure
15283         to do a forward forward-propagation walk on BBs and a backward
15284         stmt combining walk on BBs.  Consistently re-scan changed statements.
15285         (pass_forwprop): Adjust.
15286
15287 2011-05-30  Ian Lance Taylor  <iant@google.com>
15288
15289         * godump.c (go_format_type): Correct length of name added to
15290         obstack for anonymous field.
15291
15292 2011-05-30  Kaz Kojima  <kkojima@gcc.gnu.org>
15293
15294         PR target/49186
15295         * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
15296         part of the second operand is 0.
15297
15298 2011-05-30  Uros Bizjak  <ubizjak@gmail.com>
15299
15300         * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
15301         to prevent partial memory stalls.  Do not move CONST_DOUBLEs directly
15302         to memory for !TARGET_MEMORY_MISMATCH_STALL.
15303         (*movdf_internal_rex64): Do not penalize F->r alternative.
15304         (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
15305         memory stalls.  Generate SSE and x87 CONST_DOUBLE immediates only
15306         when optimizing function for size.  Do not move CONST_DOUBLEs
15307         directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
15308         (FP move splitters): Merge {TF,XF,DF}mode splitters.  Do not handle
15309         SUBREGs.  Do not check for MEM_P operands in the insn condition,
15310         check for ANY_FP_REGNO_P instead.
15311         * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
15312         TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
15313         function for speed.
15314         * config/i386/i386.c (ix86_option_override_internal): Do not
15315         set TARGET_INTEGER_DFMODE_MOVES here.
15316
15317 2011-05-30  H.J. Lu  <hongjiu.lu@intel.com>
15318
15319         PR target/49168
15320         * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
15321
15322 2011-05-30  Jakub Jelinek  <jakub@redhat.com>
15323
15324         * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
15325         DW_TAG_rvalue_reference_type even for
15326         -gdwarf-4 -fno-debug-types-section.
15327
15328 2011-05-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
15329
15330         PR tree-optimization/46728
15331         * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
15332         (build_and_insert_binop): New.
15333         (gimple_expand_builtin_pow): Reorder args for
15334         build_and_insert_call; use build_and_insert_binop; add more
15335         optimizations for fractional exponents.
15336
15337 2011-05-30  Nathan Froyd  <froydnj@gcc.gnu.org>
15338
15339         PR bootstrap/49190
15340
15341         Revert:
15342         2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
15343
15344         * tree.h (struct tree_identifier): Inherit from tree_typed, not
15345         tree_common.
15346         (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
15347         * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
15348         TS_BASE instead of TS_COMMON.
15349         * varasm.c (assemble_name): Remove assert.
15350
15351 2011-05-30  Richard Sandiford  <rdsandiford@googlemail.com>
15352
15353         * config.gcc: Keep obselete list sorted.
15354
15355 2011-05-30  Jakub Jelinek  <jakub@redhat.com>
15356             Eric Botcazou  <ebotcazou@adacore.com>
15357
15358         * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
15359         crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
15360         there is a DRAP register and arg_pointer_rtx is the CFA pointer.
15361         (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
15362         (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
15363
15364 2011-05-30  Richard Guenther  <rguenther@suse.de>
15365
15366         * gimple.c (gimple_types_compatible_p_1): Compare record
15367         and union type members properly.
15368
15369 2011-05-30  Richard Guenther  <rguenther@suse.de>
15370
15371         PR tree-optimization/49210
15372         * ipa-split.c (split_function): Care for the case where the call
15373         result is not trivially convertible to the result holding variable.
15374
15375 2011-05-30  Richard Guenther  <rguenther@suse.de>
15376
15377         PR tree-optimization/49218
15378         * tree-vrp.c (adjust_range_with_scev): Properly check whether
15379         overflow occured.
15380
15381 2011-05-30  Richard Guenther  <rguenther@suse.de>
15382
15383         * tree-ssa-forwprop.c (forward_propagate_into_comparison):
15384         New function split out from ...
15385         (forward_propagate_into_gimple_cond): ... here.  Adjust.
15386         (forward_propagate_into_cond): Likewise.
15387         (forward_propagate_comparison): Also propagate into
15388         comparisons on assignment RHS.  Change return value to
15389         behave similar to forward_propagate_into_cond.
15390         (tree_ssa_forward_propagate_single_use_vars): Handle
15391         strict-overflow warnings properly for forward_propagate_comparison.
15392
15393 2011-05-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15394
15395         * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
15396         from plugin linker.
15397         * configure: Regenerate.
15398
15399 2011-05-30  Ira Rosen  <ira.rosen@linaro.org>
15400
15401         PR tree-optimization/49199
15402         * tree-vect-loop.c (vect_is_slp_reduction): Check that the
15403         non-reduction operands are either defined in the loop or by induction.
15404
15405 2011-05-29  Xinliang David Li  <davidxl@google.com>
15406
15407         * opts-global.c (handle_common_deferred_options): Handle new options.
15408         * passes.c (register_one_dump_file): Call register_pass_name.
15409         (execute_one_pass): Check explicit enable/disable flag.
15410         (passr_hash): New function.
15411         (passr_eq): Ditto.
15412         (register_pass_name): Ditto.
15413         (get_pass_by_name): Ditto.
15414         (pass_hash): Ditto.
15415         (pass_eq): Ditto.
15416         (enable_pass): Ditto.
15417         (disable_pass): Ditto.
15418         (is_pass_explicitly_enabled_or_disabled): Ditto.
15419
15420 2011-05-29  Uros Bizjak  <ubizjak@gmail.com>
15421
15422         * config/i386/i386.md (*movoi_internal_avx): Use
15423         standard_sse_constant_opcode for alternative 0.
15424         (*movti_internal_sse): Ditto.
15425         (*movti_internal_rex64): Use standard_sse_constant_opcode for
15426         alternative 2.
15427         (*movdi_internal_rex64): Use standard_sse_constant_opcode for
15428         sselog1 type moves.
15429         (*movsi_internal): Ditto.
15430         (*movdi_internal): Ditto.  Add ssecvt type moves.
15431
15432 2011-05-29  Eric Botcazou  <ebotcazou@adacore.com>
15433
15434         PR target/48830
15435         * rtlanal.c (simplify_subreg_regno): Adjust comment.
15436
15437 2011-05-29  Jakub Jelinek  <jakub@redhat.com>
15438
15439         PR rtl-optimization/49095
15440         * config/i386/predicates.md (plusminuslogic_operator): New predicate.
15441         * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
15442
15443 2011-05-29  Richard Sandiford  <rdsandiford@googlemail.com>
15444
15445         PR target/43995
15446         * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
15447         recurse_p argument.  Only follow register copies if it is set,
15448         and prevent mips_find_pic_call_symbol from recursing.
15449         (mips_find_pic_call_symbol): Add a recurse_p argument.
15450         Pass it to mips_pic_call_symbol_from_set.
15451         (mips_annotate_pic_calls): Update accordingly.
15452
15453 2011-05-29  Richard Sandiford  <rdsandiford@googlemail.com>
15454
15455         * emit-rtl.c (try_split): Use a loop to search for
15456         NOTE_INSN_CALL_ARG_LOCATIONs.
15457
15458 2011-05-29  Richard Guenther  <rguenther@suse.de>
15459
15460         PR tree-optimization/49217
15461         * ipa-pure-const.c (propagate_pure_const): Fix typos.
15462
15463 2011-05-28  Jan Hubicka  <jh@suse.cz>
15464
15465         * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
15466         length.
15467         (string_slot_free): Remove
15468         (create_output_block): Initialize obstack.
15469         (destroy_output_block): Free obstack.
15470         (lto_string_index): Add PERSISTENT parameter; do not duplicate
15471         the string unless it needs to be added into the hash.
15472         (lto_output_string_with_length): Add persistent attribute;
15473         handle NULL strings.
15474         (lto_output_string): Add PERSISTENT parameter.
15475         (output_string_cst, output_identifier): Simplify.
15476         (lto_output_location_bitpack): Update.
15477         (lto_output_builtin_tree): Update.
15478         * lto-streamer.h (struct output_block): Add obstack.
15479         (lto_output_string, lto_output_string_with_length): Remove
15480         declarations; functions are static now.
15481
15482 2011-05-28  Jan Hubicka  <jh@suse.cz>
15483
15484         * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
15485         pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
15486         pack_ts_function_decl_value_fields, lto_output_builtin_tree,
15487         output_cfg, output_gimple_stmt): Use enum and variable length i/o.
15488         * lto-streamer-in.c (input_cfg, input_gimple_stmt,
15489         unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
15490         unpack_ts_decl_with_vis_value_fields,
15491         unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
15492         lto_get_builtin_tree): Use enum and variable length i/o.
15493         * basic-block.h (profile_status_d): Add PROFILE_LAST.
15494         * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
15495         New functions.
15496         (bp_pack_enum, bp_unpack_enum): New macros.
15497
15498 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
15499
15500         * genrecog.c: Remove redundant forward declarations.
15501
15502 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
15503
15504         * config.gcc: Deprecate mips*-*-openbsd*.
15505
15506 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
15507
15508         PR bootstrap/49195
15509         * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
15510         for match_op_dup.
15511
15512 2011-05-27  Andrew Pinski  <pinskia@gmail.com>
15513
15514         PR middle-end/48981
15515         * gengtype.c (vec_prefix_type): New function.
15516         (note_def_vec): Use vec_prefix_type and change the length
15517         attribute to be based on the prefix.
15518         * vec.c: Include coretypes.h before vec.h.
15519         (struct vec_prefix): Remove.
15520         (vec_gc_p_reserve): Change the offsetof to sizeof.
15521         (vec_gc_p_reserve_exact): Likewise.
15522         (vec_heap_p_reserve): Likewise.
15523         (vec_heap_p_reserve_exact): Likewise.
15524         (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
15525         (vec_stack_p_reserve): Change the offsetof to sizeof.
15526         (vec_stack_p_reserve_exact): Likewise.
15527         * vec.h (struct vec_prefix): New struct definition.
15528         (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
15529         (VEC_T_GTY(T,B)): Likewise.
15530         (DEF_VEC_FUNC_P(T)): Use prefix field.
15531         (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
15532         (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
15533
15534 2011-05-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
15535
15536         PR tree-optimization/46728
15537         * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
15538         (powi_as_mults): Add gimple_set_location.
15539         (build_and_insert_call): New.
15540         (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
15541         0.5, 0.25, 0.75, 1./3., or 1./6.
15542
15543 2011-05-27  Alexander Monakov  <amonakov@ispras.ru>
15544
15545         * doc/contrib.texi: Update copyright years.
15546         (Contributors): Add Zdenek Sojka.
15547
15548 2011-05-27  Nathan Froyd  <froydnj@codesourcery.com>
15549
15550         * c-decl.c (c_push_function_context): Copy the current statement
15551         list stack.
15552         (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
15553         (finish_struct): Call building_stmt_list_p instead of checking
15554         cur_stmt_list.
15555         * c-parser.c (c_parser_postfix_expression): Likewise.
15556         * c-typeck.c (c_end_compound_stmt): Likewise.
15557         * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
15558         * tree-iterator.c (stmt_list_cache): Change to a VEC.
15559         (alloc_stmt_list): Adjust for stmt_list_cache's new type.
15560         (free_stmt_list): Likewise.
15561         * tree.h (struct tree_statement_list): Include typed_tree instead
15562         of tree_common.
15563         * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
15564         as TS_TYPED instead of TS_COMMON.
15565
15566 2011-05-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15567             Uros Bizjak  <ubizjak@gmail.com>
15568
15569         * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
15570         (HAVE_AS_IX86_TLSGDPTL): Define.
15571         (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
15572         (HAVE_AS_IX86_TLSLDMPLT): Define.
15573         * configure: Regenerate.
15574         * config.in: Regenerate.
15575         * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
15576         * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
15577         TARGET_SUN_TLS, use @tlsgdplt or @plt.
15578         (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
15579         (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
15580         @tlsldmplt or @plt.
15581         (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
15582
15583 2011-05-27  Bernd Schmidt  <bernds@codesourcery.com>
15584
15585         * sched-int.h (struct _haifa_deps_insn_data): New members cond
15586         and reverse_cond.
15587         (INSN_COND, INSN_REVERSE_COND): New macros.
15588         * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
15589         once.
15590         (sched_get_condition_with_rev): Cache the results, and look them up
15591         if possible.
15592         (sched_analyze_insn): Destroy INSN_COND of previous insns if they
15593         are clobbered by the current insn.
15594         * target.def (exposed_pipline): New sched data hook.
15595         * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
15596         * doc/tm.texi: Regenerate.
15597
15598 2011-05-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
15599
15600         PR tree-optimization/49170
15601         * tree-ssa-math-opts.c (execute_cse_sincos):  Add checks for
15602         sincos or cexp.
15603
15604 2011-05-27  Richard Guenther  <rguenther@suse.de>
15605
15606         PR middle-end/49189
15607         * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
15608         of comparisons.
15609
15610 2011-05-27  Bernd Schmidt  <bernds@codesourcery.com>
15611
15612         * haifa-sched.c (sched_scan_info): Remove.
15613         (schedule_block): Call sched_extend_luids rather than sched_init_luids
15614         with NULL args.
15615         (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
15616         Remove functions.
15617         (sched_scan): Remove.
15618         (sched_extend_luids): Renamed from luids_extend_insn and no longer
15619         static.  All callers changed.
15620         (sched_init_insn_luid): Renamed from luids_init_insn and no longer
15621         static.  All callers changed.
15622         (sched_init_luids): Remove all arguments except the first.  All
15623         callers changed.  Don't use sched_scan.
15624         (haifa_init_h_i_d): Likewise.
15625         (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
15626         manually rather than using sched_init_luids.  Likewise with
15627         extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
15628         * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
15629         rather than sched_init_luids with NULL args.
15630         * sel-sched-ir.c (new_insns): Remove variable.
15631         (sched_scan): New static function, previously in haifa-sched.c.  Remove
15632         all arguments but the first two; all callers changed.
15633         (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
15634         rather than sched_init_luids.
15635         (sel_init_bbs): Remove second argument.  All callers changed.
15636         (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
15637         with NULL arguments.
15638         (create_insn_rtx_from_pattern): Likewise.
15639         * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
15640         * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
15641         (sched_init_insn_luid, sched_extend_luids): Declare.
15642         (sched_scan_info_def, sched_scan_info, sched_scan): Remove
15643         declarations.
15644
15645 2011-05-27  Richard Guenther  <rguenther@suse.de>
15646
15647         PR middle-end/49177
15648         * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
15649         A CMP B ? (T) true : (T) false for non-integral types T again.
15650
15651 2011-05-27  Jan Hubicka  <jh@suse.cz>
15652
15653         * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
15654         so 0 means NULL string.
15655         (lto_output_string_with_length): ... here.
15656         (lto_output_string, output_string_cst, output_identifier): Update
15657         handling of NULL strings.
15658         (lto_output_location_bitpack): New function.
15659         (lto_output_location): Use it.
15660         (lto_output_tree_ref): Use output_record_start.
15661         (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
15662         len values.
15663         * lto-streamer-in.c (string_for_index): Break out from ...; offset
15664         values by 1.
15665         (input_string_internal): ... here;
15666         (input_string_cst, input_identifier, lto_input_string): Update handling
15667         of NULL strings.
15668         (lto_input_location_bitpack): New function
15669         (lto_input_location): Use it.
15670         (unpack_ts_type_common_value_fields): Pack align & alias in var len
15671         values.
15672         * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
15673         bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
15674         (bp_pack_value): Sanity check the value range.
15675         * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
15676         New functions.
15677         * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
15678         New functions.
15679
15680 2011-05-27  Hariharan Sandanagobalane  <hariharan@picochip.com>
15681
15682         * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
15683         call_arg_location instructions down the floor.
15684
15685 2011-05-26  Vladimir Makarov  <vmakarov@redhat.com>
15686
15687         PR rtl-optimization/49154
15688         * ira.c (setup_pressure_classes): Process class without sublcasses
15689         as a candidate for pressure classes.
15690
15691 2011-05-26  Richard Sandiford  <rdsandiford@googlemail.com>
15692
15693         PR rtl-optimization/48575
15694         * genrecog.c (position_type): New enum.
15695         (position): New structure.
15696         (decision): Use position structure instead of a string.
15697         (root_pos, peep2_insn_pos_list): New variables.
15698         (next_position, compare_positions): New functions.
15699         (new_decision): Use position structures instead of strings.
15700         (maybe_both_true): Likewise.
15701         (change_state): Likewise.
15702         (write_tree): Likewise.
15703         (make_insn_sequence): Likewise.
15704
15705 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
15706
15707         * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
15708         TS_BASE instead of TS_COMMON.
15709         (find_decls_types_r): Check for TS_TYPED structure before looking at
15710         TREE_TYPE.
15711         * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
15712         Add chain field.
15713         (BLOCK_CHAIN): Use new chain field.
15714
15715 2011-05-26  Pat Haugen  <pthaugen@us.ibm.com>
15716
15717         * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
15718         moves expensive on Power7 also.
15719
15720 2011-05-26  Richard Guenther  <rguenther@suse.de>
15721
15722         * fold-const.c (fold_unary_loc): Remove bogus code.
15723
15724 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
15725
15726         * tree.h (struct tree_identifier): Inherit from tree_typed, not
15727         tree_common.
15728         (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
15729         * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
15730         TS_BASE instead of TS_COMMON.
15731         * varasm.c (assemble_name): Remove assert.
15732
15733 2011-05-26  Bernd Schmidt  <bernds@codesourcery.com>
15734
15735         * Makefile.in (srcdirify): Change order so that libgcc_objdir is
15736         substituted first.
15737         * libgcc-std.ver: Delete file.
15738
15739 2011-05-26  Richard Guenther  <rguenther@suse.de>
15740
15741         PR tree-optimization/48702
15742         * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
15743         only when we know the base address is within bounds.
15744         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
15745         assume the base address of TARGET_MEM_REFs is in bounds.
15746
15747 2011-05-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15748
15749         PR target/49099
15750         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
15751         declaration in TARGET_SOLARIS.
15752
15753 2011-05-26  Hariharan Sandanagobalane  <hariharan@picochip.com>
15754
15755         * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
15756         The instruction is then expanded explicitly.
15757         (supported_compare): Callable instruction.
15758         (compare): Likewise.
15759
15760 2011-05-26  Jakub Jelinek  <jakub@redhat.com>
15761
15762         PR c++/49165
15763         * gimplify.c (shortcut_cond_r): Don't special case
15764         COND_EXPRs if they have void type on one of their arms.
15765
15766 2011-05-26  Bernd Schmidt  <bernds@codesourcery.com>
15767
15768         * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
15769         to reduce duplication, and to achieve a slightly more logical order
15770         of operations.
15771
15772 2011-05-26  Jakub Jelinek  <jakub@redhat.com>
15773
15774         PR tree-optimization/49161
15775         * tree-vrp.c (struct case_info): New type.
15776         (compare_case_labels): Sort case_info structs instead of
15777         trees, and not primarily by CASE_LABEL uids but by
15778         label_for_block indexes.
15779         (find_switch_asserts): Put case labels into struct case_info
15780         array instead of TREE_VEC, adjust sorting, compare label_for_block
15781         values instead of CASE_LABELs.
15782
15783 2011-05-26  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
15784
15785         * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
15786         ("orndi3_neon"): Likewise.
15787         ("bic<mode>3_neon"): Likewise.
15788
15789 2011-05-26  Ira Rosen  <ira.rosen@linaro.org>
15790
15791         PR tree-optimization/49038
15792         * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
15793         Ensure at least one epilogue iteration if required by data
15794         accesses with gaps.
15795         * tree-vectorizer.h (struct _loop_vec_info): Add new field
15796         to mark loops that require peeling for gaps.
15797         * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
15798         (vect_get_known_peeling_cost): Take peeling for gaps into
15799         account.
15800         (vect_transform_loop): Generate epilogue if required by data
15801         access with gaps.
15802         * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
15803         loop as requiring an epilogue if there are gaps in the end of
15804         the strided group.
15805
15806 2011-05-25  Ian Lance Taylor  <iant@google.com>
15807
15808         * godump.c (go_format_type): Output the first field with a usable
15809         Go type, if any.
15810
15811 2011-05-25  Ian Lance Taylor  <iant@google.com>
15812
15813         * godump.c (go_format_type): Check for invalid type names, pointer
15814         target types, and struct field types.
15815
15816 2011-05-25  Jason Merrill  <jason@redhat.com>
15817
15818         * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
15819
15820 2011-05-25  Uros Bizjak  <ubizjak@gmail.com>
15821
15822         * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
15823
15824 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
15825
15826         * config/i386/i386.md (*movqi_extv_1)): Put back
15827         "register_operand" check in "type" calculation.
15828         (*movqi_extzv_2): Likewise.
15829
15830 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
15831
15832         * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
15833
15834 2011-05-25  Bernd Schmidt  <bernds@codesourcery.com>
15835
15836         PR bootstrap/49160
15837         * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
15838         __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
15839         __divxc3, __divtc3): Wrap definitions in #ifndef.
15840
15841 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
15842
15843         PR target/49142
15844         * config/i386/i386.md (*movqi_extv_1_rex64): Remove
15845         "register_operand" check and replace q_regs_operand with
15846         QIreg_operand in "type" calculation.
15847         (*movqi_extv_1): Likewise.
15848         (*movqi_extzv_2_rex64): Likewise.
15849         (*movqi_extzv_2): Likewise.
15850
15851         * config/i386/predicates.md (QIreg_operand): New.
15852
15853 2011-05-25  Richard Guenther  <rguenther@suse.de>
15854
15855         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
15856         type-based offset disambiguation, streamline MEM_REF and
15857         TARGET_MEM_REF handling.
15858
15859 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
15860
15861         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
15862         (bdesc_special_args): Add pause intrinsic.
15863
15864         * config/i386/i386.md (UNSPEC_PAUSE): New.
15865         (pause): Likewise.
15866         (*pause): Likewise.
15867         * config/i386/ia32intrin.h (__pause): Likewise.
15868
15869         * doc/extend.texi (X86 Built-in Functions): Add documentation for
15870         pause intrinsic.
15871
15872 2011-05-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
15873
15874         PR tree-optimization/46728
15875         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
15876         (execute_cse_sincos): Add switch case for BUILT_IN_POW.
15877
15878 2011-05-25  Nathan Froyd  <froydnj@codesourcery.com>
15879
15880         * tree.h (struct tree_exp): Inherit from struct tree_typed.
15881         * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
15882         instead of TS_COMMON.
15883
15884 2011-05-25  Bernd Schmidt  <bernds@codesourcery.com>
15885
15886         * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
15887         LIBGCC2_GNU_PREFIX is defined.
15888         (__N): New macro.
15889         (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
15890         __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
15891         __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
15892         __clz_tab): Define using __N.
15893         (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
15894         COMPAT_SIMODE_TRAPPING_ARITHMETIC.
15895         * target.def (libfunc_gnu_prefix): New hook.
15896         * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
15897         (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
15898         * doc/tm.texi: Regenerate.
15899         * system.h (LIBGCC2_GNU_PREFIX): Poison.
15900         * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
15901         account.
15902         (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
15903         (init_optabs): Likewise for the bswap libfuncs.
15904         * tree.c (build_common_builtin_nodes): Likewise for complex multiply
15905         and divide.
15906         * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
15907         * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
15908         * libgcc-std.ver: Remove.
15909         * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
15910         * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
15911         libgcc-std.ver.
15912         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
15913         * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
15914         * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
15915         * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
15916         * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
15917         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
15918         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
15919         * config/fixed-bit.h (FIXED_OP): Define differently depending on
15920         LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
15921         (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
15922
15923 2011-05-25  Jan Hubicka  <jh@suse.cz>
15924
15925         * lto-streamer-out.c (output_record_start): Use lto_output_enum
15926         (lto_output_tree): Use output_record_start.
15927         * lto-streamer-in.c (input_record_start): Use lto_input_enum
15928         (lto_get_pickled_tree): Use input_record_start.
15929         * lto-section-in.c (lto_section_overrun): Turn into fatal error.
15930         (lto_value_range_error): New function.
15931         * lto-streamer.h (lto_value_range_error): Declare.
15932         (lto_output_int_in_range, lto_input_int_in_range): New functions.
15933         (lto_output_enum, lto_input_enum): New macros.
15934
15935 2011-05-25  Eric Botcazou  <ebotcazou@adacore.com>
15936
15937         * common.opt (flag_stack_usage_info): New variable.
15938         (-Wstack-usage): New option.
15939         * doc/invoke.texi (Warning options): Document -Wstack-usage.
15940         * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
15941         <OPT_fstack_usage>: Likewise.
15942         * toplev.c (output_stack_usage): Handle -Wstack-usage.
15943         * calls.c (expand_call): Test flag_stack_usage_info variable instead
15944         of flag_stack_usage.
15945         (emit_library_call_value_1): Likewise.
15946         * explow.c (allocate_dynamic_stack_space): Likewise.
15947         * function.c (instantiate_virtual_regs ): Likewise.
15948         (prepare_function_start): Likewise.
15949         (rest_of_handle_thread_prologue_and_epilogue): Likewise.
15950         * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
15951         * config/arm/arm.c (arm_expand_prologue): Likewise.
15952         (thumb1_expand_prologue): Likewise.
15953         * config/avr/avr.c (expand_prologue): Likewise.
15954         * config/i386/i386.c (ix86_expand_prologue): Likewise.
15955         * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
15956         * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
15957         * config/mips/mips.c (mips_expand_prologue): Likewise.
15958         * config/pa/pa.c (hppa_expand_prologue): Likewise.
15959         * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
15960         * config/s390/s390.c (s390_emit_prologue): Likewise.
15961         * config/sh/sh.c (sh_expand_prologue): Likewise.
15962         * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
15963         * config/spu/spu.c (spu_expand_prologue): Likewise.
15964
15965 2011-05-25  Richard Guenther  <rguenther@suse.de>
15966
15967         * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
15968         (gimple_canonical_types_compatible_p): Likewise.
15969
15970 2011-05-25  Jan Hubicka  <jh@suse.cz>
15971
15972         PR middle-end/49062
15973         * ipa.c (function_and_variable_visibility): Only add to same
15974         comdat group list if DECL_ONE_ONLY.
15975
15976 2011-05-25  Andrey Belevantsev  <abel@ispras.ru>
15977
15978         PR rtl-optimization/49014
15979         * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
15980
15981 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
15982
15983         PR target/49128
15984         * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
15985
15986 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
15987
15988         PR rtl-optimization/48757
15989         * ira-build.c (loop_with_eh_edge_p): Rename to
15990         loop_with_complex_edge_p, check edges on complexity, make function
15991         conditional.
15992         (mark_loops_for_removal): Make call of loop_with_complex_edge_p
15993         conditional.
15994
15995 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
15996
15997         * config/sparc/sparc.c (sparc_option_override): If not set by the user,
15998         force flag_ira_share_save_slots to 0.
15999
16000 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
16001
16002         * var-tracking.c (compute_cfa_pointer): Adjust head comment.
16003         (vt_initialize): Set PROLOGUE_BB unconditionally.
16004         Add block comment about CFA_BASE_RTX machinery.
16005         Reset FP_CFA_OFFSET to -1 on all invalid paths.
16006         Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
16007
16008 2011-05-24  Nicola Pero  <nicola.pero@meta-innovation.com>
16009
16010         PR objc/48187
16011         * c-parser.c (c_parser_objc_class_instance_variables): More robust
16012         parsing of syntax error in ObjC instance variable lists.  In
16013         particular, avoid an infinite loop if there is a stray ']'.
16014         Updated error message.
16015
16016 2011-05-24  Ian Lance Taylor  <iant@google.com>
16017
16018         * godump.c (go_define): Don't accept a string immediately after
16019         another operand.
16020
16021 2011-05-24  Ian Lance Taylor  <iant@google.com>
16022
16023         * godump.c (struct godump_container): Add invalid_hash field.
16024         (go_format_type): Return false if type is found in invalid_hash.
16025         (go_output_typedef): Add invalid type to invalid_hash.
16026         (go_finish): Create and delete invalid_hash.
16027
16028 2011-05-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
16029
16030         PR tree-optimization/46728
16031         * tree-ssa-math-opts.c (powi_table): New.
16032         (powi_lookup_cost): New.
16033         (powi_cost): New.
16034         (powi_as_mults_1): New.
16035         (powi_as_mults): New.
16036         (gimple_expand_builtin_powi): New.
16037         (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
16038         (gate_cse_sincos): Remove sincos/cexp restriction.
16039
16040 2011-05-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16041
16042         PR target/3746
16043         * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
16044         mips-tdump native.
16045         * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
16046         * mips-tdump.c: Likewise.
16047
16048 2011-05-24  H.J. Lu  <hongjiu.lu@intel.com>
16049
16050         PR target/49128
16051         * config/i386/driver-i386.c (host_detect_local_cpu): Always
16052         add -mno-XXX.  Handle FMA.
16053
16054 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
16055
16056         PR rtl-optimization/48633
16057         * ira-build.c (loop_with_eh_edge_p): New function.
16058         (mark_loops_for_removal): Use it.
16059
16060 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
16061
16062         PR rtl-optimization/48971
16063         * ira.c (setup_pressure_classes): Don't check register move cost
16064         for classes with one registers.  Don't add pressure class if there
16065         is a pressure class with the same available hard registers.
16066         Check contains_reg_of_mode.  Fix a typo in collecting
16067         temp_hard_regset.  Ignore hard registers not belonging to a class.
16068
16069 2011-05-24  Uros Bizjak  <ubizjak@gmail.com>
16070
16071         PR target/49133
16072         * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
16073
16074 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
16075             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16076
16077         PR gcov-profile/48845
16078         * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
16079
16080 2011-05-24  Richard Guenther  <rguenther@suse.de>
16081
16082         * gimple.c (compare_type_names_p): Remove for_completion_p arg.
16083         (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
16084         (gimple_types_compatible_p_1): Adjust.
16085         (iterative_hash_canonical_type): Do not bother about complete vs.
16086         incomplete types.
16087         (gimple_canonical_types_compatible_p): Likewise.
16088
16089 2011-05-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16090
16091         * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
16092
16093 2011-05-24  Richard Guenther  <rguenther@suse.de>
16094
16095         PR bootstrap/49078
16096         * gimple.c (gimple_register_canonical_type): Revert
16097         previous change.
16098         * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
16099         does not for a tree for the case where it matters.  Cache
16100         pointer-type alias-sets.
16101
16102 2011-05-24  Joseph Myers  <joseph@codesourcery.com>
16103
16104         * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
16105         (OBJS): Remove options.o, opts-common.o and prefix.o.
16106         (OBJS-libcommon-target): New.
16107         (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
16108         (BACKEND): Include libcommon-target.a.
16109         (MOSTLYCLEANFILES): Include libcommon-target.a.
16110         (libcommon-target.a): New.
16111         (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
16112         prefix.o.
16113
16114 2011-05-23  Joseph Myers  <joseph@codesourcery.com>
16115
16116         * optc-save-gen.awk: New.  Based on optc-gen.awk.  Don't generate
16117         parts of output shared with the driver.
16118         * optc-gen.awk: Don't generate parts of output not shared with the
16119         driver.
16120         * opth-gen.awk: Remove GCC_DRIVER conditionals.
16121         * doc/options.texi (SourcerInclude): Mention options-save.c.
16122         * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
16123         (OBJS): Add options-save.o.
16124         (options-save.c, options-save.o): New.
16125         (options.o): Update dependencies.
16126         (gcc-options.o): Remove.
16127         (mostlyclean): Remove options-save.c.
16128
16129 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
16130
16131         PR debug/49032
16132         * dbxout.c: Include cgraph.h.
16133         (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
16134         and without value expr, return NULL if no varpool node exists for
16135         it or if it is not needed.
16136         * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
16137
16138         PR c/49120
16139         * c-decl.c (start_decl): Convert expr to void_type_node.
16140
16141 2011-05-23  Richard Sandiford  <rdsandiford@googlemail.com>
16142
16143         PR rtl-optimization/48826
16144         * emit-rtl.c (try_split): When splitting a call that is followed
16145         by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
16146
16147 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
16148
16149         * cfgexpand.c (expand_debug_expr): For unused non-addressable
16150         parameters passed in memory prefer using DECL_INCOMING_RTL over
16151         the pseudos it will be copied into.
16152
16153 2011-05-23  H.J. Lu  <hongjiu.lu@intel.com>
16154
16155         PR target/47315
16156         * config/i386/i386.c (ix86_option_override_internal): Save the
16157         initial options after checking vzeroupper.
16158
16159 2011-05-23  David Li  <davidxl@google.com>
16160
16161         PR tree-optimization/48988
16162         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
16163         Initialize has_valid_pred for each pred chain.
16164
16165 2011-05-23  Richard Guenther  <rguenther@suse.de>
16166
16167         * gimple.c (gimple_types_compatible_p_1): Always compare type names.
16168         (iterative_hash_gimple_type): Always hash type names.
16169
16170 2011-05-23  Nathan Froyd  <froydnj@codesourcery.com>
16171
16172         * c-typeck.c (build_function_call_vec): Tweak call to
16173         check_function_arguments.
16174
16175 2011-05-23  Richard Guenther  <rguenther@suse.de>
16176
16177         PR tree-optimization/49115
16178         * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
16179         is not necessarily carried out, do not claim it kills the ref.
16180         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
16181
16182 2011-05-23  Richard Guenther  <rguenther@suse.de>
16183
16184         PR middle-end/15419
16185         * builtins.c (fold_builtin_memory_op): Be less restrictive about
16186         what pointer types we accept for folding.
16187
16188 2011-05-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16189
16190         * gthr-gnat.c: Remove.
16191         * gthr-gnat.h: Remove.
16192         * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
16193         * config/t-freebsd (LIB2ADDEH): Likewise.
16194         * config/t-linux (LIB2ADDEH): Likewise.
16195         * config/t-sol2 (LIB2ADDEH): Likewise.
16196         * config/ia64/t-vms (LIB2ADDEH): Likewise.
16197         * configure.ac (target_thread_file): Remove gnat handling.
16198         * configure: Regenerate.
16199         * doc/install.texi (Configuration, --enable-threads): Remove gnat.
16200
16201 2011-05-23  Tristan Gingold  <gingold@adacore.com>
16202             Eric Botcazou  <ebotcazou@adacore.com>
16203
16204         * gcov.c (create_file_names): If no object directory is specified,
16205         keep the directory of the file.
16206
16207 2011-05-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16208
16209         * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
16210         * configure: Regenerate.
16211
16212 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
16213
16214         PR middle-end/48973
16215         * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
16216         failed and the comparison has a single bit signed type, use
16217         constm1_rtx instead of const1_rtx for true value.
16218         (do_store_flag): If ops->type is single bit signed type, disable
16219         signel bit test optimization and pass -1 instead of 1 as last
16220         parameter to emit_store_flag_force.
16221
16222 2011-05-23  Tom de Vries  <tom@codesourcery.com>
16223
16224         PR target/45098
16225         * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
16226         function.
16227         (infer_loop_bounds_from_undefined): Use new function.
16228
16229 2011-05-22  Richard Sandiford  <rdsandiford@googlemail.com>
16230
16231         * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
16232         (ASM_SPEC): Add a -O* option here.  Pass -O0 for -noasmopt,
16233         -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
16234         and -O0 otherwise.
16235         (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
16236
16237 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
16238
16239         * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
16240         (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
16241         returns true.
16242
16243 2011-05-22  Richard Sandiford  <rdsandiford@googlemail.com>
16244
16245         * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
16246
16247 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
16248
16249         * config/sparc/sparc.c (sparc_delegitimize_address): Handle
16250         UNSPEC_MOVE_PIC pattern.
16251
16252 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
16253
16254         * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
16255         (sparc-*-rtems*): Likewise.
16256         (sparc64-*-elf*): Likewise.
16257         (sparc64-*-rtems*): Likewise.
16258         (sparc*-*-solaris2*): Likewise.  Remove crti.o crtn.o extra parts.
16259         * config/sparc/t-crtin: New file.
16260         * config/sparc/t-sol2 (crti.o): Delete rule.
16261         (crtn.o): Likewise.
16262         * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
16263         * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
16264         * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
16265         (ENDFILE_SPEC): Add crtn.o.
16266
16267 2011-05-22  Tom de Vries  <tom@codesourcery.com>
16268
16269         PR middle-end/48689
16270         * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
16271         CODE_CONTAINS_STRUCT (TS_COMMON).
16272
16273 2011-05-22  Jakub Jelinek  <jakub@redhat.com>
16274
16275         PR middle-end/49029
16276         * expmed.c (extract_fixed_bit_field): Test whether target can be used
16277         only after deciding which mode to use.
16278
16279 2011-05-22  Tom de Vries  <tom@codesourcery.com>
16280
16281         PR target/45098
16282         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
16283         for call to get_shiftadd_cost.
16284
16285 2011-05-22  Uros Bizjak  <ubizjak@gmail.com>
16286
16287         PR target/49104
16288         * config/i386/cpuid.h (bit_MMXEXT): New define.
16289
16290 2011-05-22  Nick Clifton  <nickc@redhat.com>
16291
16292         * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
16293         initialisation of non-existant args[2] element.  Use args[] array
16294         not arg[] array to pass arguments to build_function_type_list.
16295
16296 2011-05-22  Ira Rosen  <ira.rosen@linaro.org>
16297
16298         PR tree-optimization/49087
16299         * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
16300
16301 2011-05-21  Jason Merrill  <jason@redhat.com>
16302
16303         PR c++/49092
16304         * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
16305         static storage duration.
16306
16307 2011-05-21  Eric Botcazou  <ebotcazou@adacore.com>
16308
16309         * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
16310         frame pointer.
16311
16312 2011-05-21  Eric Botcazou  <ebotcazou@adacore.com>
16313
16314         * config/sparc/sparc.c (eligible_for_return_delay): Do not return
16315         false if there are call-saved registers here...
16316         (sparc_can_use_return_insn_p): ...but here instead.
16317         (save_or_restore_regs): Fix thinko.
16318         (sparc_expand_prologue): Use current_function_is_leaf.
16319         (sparc_frame_pointer_required): Likewise.
16320
16321 2011-05-21  Nick Clifton  <nickc@redhat.com>
16322
16323         PR target/49098
16324         * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
16325
16326 2011-05-21  Nicola Pero  <nicola.pero@meta-innovation.com>
16327
16328         * gengtype.c (walk_type): Implemented "atomic" GTY option.
16329         * doc/gty.texi (GTY Options): Document "atomic" GTY option.
16330
16331 2011-05-21  Joseph Myers  <joseph@codesourcery.com>
16332
16333         * opt-read.awk: New.  Split out of optc-gen.awk and opth-gen.awk.
16334         * optc-gen.awk: Move common code to opt-read.awk.
16335         * opth-gen.awk: Likewise.
16336         * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
16337
16338 2011-05-20  Nathan Froyd  <froydnj@codesourcery.com>
16339
16340         * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
16341
16342 2011-05-20  Tom de Vries  <tom@codesourcery.com>
16343
16344         PR target/45098
16345         * tree-ssa-loop-ivopts.c: Include expmed.h.
16346         (get_shiftadd_cost): New function.
16347         (force_expr_to_var_cost): Declare forward.  Use get_shiftadd_cost.
16348
16349 2011-05-20  Jakub Jelinek  <jakub@redhat.com>
16350
16351         PR bootstrap/49086
16352         * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
16353         for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
16354
16355 2011-05-20  Joseph Myers  <joseph@codesourcery.com>
16356
16357         * Makefile.in: Update comment referring to $(OBJS-common).
16358
16359 2011-05-20  Ian Lance Taylor  <iant@google.com>
16360
16361         * godump.c (go_output_typedef): Put enum constants in the macro
16362         hash table to avoid duplicate Go const definitions.
16363
16364 2011-05-20  Joseph Myers  <joseph@codesourcery.com>
16365
16366         * Makefile.in (LIBDEPS): Add libcommon.a.
16367         (LIBS): Likewise.
16368         (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
16369         (OBJS-common): Remove diagnostic.o, input.o, intl.o,
16370         pretty-print.o and version.o.
16371         (OBJS-libcommon): New.
16372         (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
16373         (BACKEND): Add libcommon.a.
16374         (MOSTLYCLEANFILES): Likewise.
16375         (libcommon.a): New.
16376         (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
16377         (cpp$(exeext)): Likewise.
16378         (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
16379         pretty-print.o and input.o.
16380         (lto-wrapper$(exeext)): Don't explicitly use intl.o.
16381         (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
16382         (errors.o): Remove.
16383         (mips-tfile): Don't explicitly use version.o.
16384         (mips-tdump): Likewise.
16385         (gcov.o): Depend on $(DIAGNOSTIC_H).
16386         (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
16387         (GCOV_OBJS): Remove intl.o, version.o and errors.o.
16388         (GCOV_DUMP_OBJS): Remove version.o and errors.o.
16389         * gcov-dump.c: Include intl.h and diagnostic.h.
16390         (main): Initialize diagnostics.
16391         * gcov.c: Include diagnostic.h.
16392         (fnotice): Remove.
16393         (main): Initialize diagnostics.
16394         * lto-wrapper.c: Include diagnostic.h.
16395         (main): Initialize diagnostics.
16396
16397 2011-05-20  Michael Matz  <matz@suse.de>
16398
16399         * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
16400
16401 2011-05-20  Michael Matz  <matz@suse.de>
16402             Richard Guenther  <rguenther@suse.de>
16403
16404         * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
16405         use lto_streamer_cache_append directly instead of returning a VEC.
16406         (preload_common_node): Remove.
16407         (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
16408         track seen nodes.
16409         (lto_streamer_cache_create): Call lto_preload_common_nodes.
16410
16411 2011-05-20  Richard Guenther  <rguenther@suse.de>
16412
16413         PR tree-optimization/49079
16414         * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
16415         MEM_REFs correctly for the trailing array access detection.
16416         Special case constants the same way as decls for overall size
16417         constraining.
16418
16419 2011-05-20  Uros Bizjak  <ubizjak@gmail.com>
16420
16421         * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
16422         argument expansion.
16423
16424 2011-05-20  Jakub Jelinek  <jakub@redhat.com>
16425
16426         PR tree-optimization/49073
16427         * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
16428         PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
16429         * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
16430
16431 2011-05-20  Richard Guenther  <rguenther@suse.de>
16432
16433         PR middle-end/48849
16434         * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
16435         of pointer types the same way the middle-end does.
16436
16437 2011-05-20  Richard Guenther  <rguenther@suse.de>
16438
16439         * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
16440         or pointer-to chains.  Delay all fixup to uniquify_nodes.
16441
16442 2011-05-19  Quentin Neill  <quentin.neill@amd.com>
16443
16444         * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
16445         (fma4_fmaddsub): Likewise
16446
16447 2011-05-19  Jan Hubicka  <jh@suse.cz>
16448
16449         * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
16450         (GIMPLE_TYPE_PAIR_SIZE): New macro.
16451         (type_pair_cache): New static var.
16452         (lookup_type_pair): Use fixed sized custom hash; make inline.
16453         (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
16454         calls of lookup_type_pair.
16455         (print_gimple_types_stats): Remove cache stats.
16456         (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
16457         and gtc_ob.
16458
16459 2011-05-19  Uros Bizjak  <ubizjak@gmail.com>
16460
16461         * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
16462         when TARGET_RDRND is active.
16463         (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
16464         Generate dummy SImode target register when target is NULL.
16465
16466 2011-05-19  Joseph Myers  <joseph@codesourcery.com>
16467
16468         * config/arm/arm-fpus.def: New.
16469         * config/arm/genopt.sh: Generate Enum and EnumValue entries from
16470         arm-fpus.def.
16471         * config/arm/arm-tables.opt: Regenerate.
16472         * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
16473         (arm_option_override): Don't decode FPU name to string here.
16474         * config/arm/arm.opt (mfpu=): Use Enum.
16475         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
16476         Update dependencies.
16477
16478 2011-05-19  Joseph Myers  <joseph@codesourcery.com>
16479
16480         * collect2.c: Include diagnostic.h.
16481         (fatal_perror, fatal, error, fancy_abort): Remove.
16482         (main): Set progname.  Call xmalloc_set_program_name and
16483         diagnostic_initialize.
16484         (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
16485         scan_libraries, resolve_lib_name): Call fatal_error instead of
16486         fatal and fatal_perror.
16487         * collect2.h (error, fatal, fatal_perror): Don't declare.
16488         * tlink.c: Include diagnostic-core.h.
16489         (recompile_files): Call fatal_error instead of fatal_perror.
16490         * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
16491         pretty-print.o and input.o.
16492         (collect2.o, tlink.o): Update dependencies.
16493
16494 2011-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16495
16496         * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
16497
16498 2011-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16499
16500         PR target/40483
16501         * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
16502         COMDAT group syntax, both SPARC and x86 variants.
16503         (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
16504         * configure: Regenerate.
16505         * config/sol2.h (TARGET_SOLARIS): Define.
16506         (PUSHSECTION_FORMAT): Remove.
16507         (SECTION_NAME_FORMAT): Define.
16508         * config/sol2.c: Include hashtab.h.
16509         (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
16510         expansion, using SECTION_NAME_FORMAT.
16511         (solaris_comdat_htab): New variable.
16512         (struct comdat_entry): Define.
16513         (comdat_hash): New function.
16514         (comdat_eq): New function.
16515         (solaris_elf_asm_comdat_section): New function.
16516         (solaris_define_comdat_signature): New function.
16517         (solaris_code_end): New function.
16518         * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
16519         (solaris_code_end): Declare.
16520         * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
16521         * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
16522         solaris_code_end.
16523         (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
16524         Remove ATTRIBUTE_UNUSED.
16525         [!USE_GAS]: Call solaris_elf_asm_comdat_section for
16526         SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
16527         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
16528         * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
16529         * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
16530         * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
16531         (PUSHSECTION_FORMAT): Remove.
16532         (SECTION_NAME_FORMAT): Redefine.
16533
16534 2011-05-19  Kai Tietz  <ktietz@redhat.com>
16535
16536         * tree-cfg.c (verify_gimple_assign_binary): Barf on
16537         TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
16538         (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
16539
16540 2011-05-19  Anatoly Sokolov  <aesok@post.ru>
16541             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16542
16543         * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
16544
16545 2011-05-19  Richard Guenther  <rguenther@suse.de>
16546
16547         PR middle-end/48985
16548         * tree-object-size.c (addr_object_size): If the pointed-to
16549         variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
16550
16551 2011-05-19  Richard Guenther  <rguenther@suse.de>
16552
16553         * gimple.c (gimple_types_compatible_p_1): Compare names of
16554         the types themselves.
16555         (iterative_hash_gimple_type): And hash them that way.
16556         (gimple_register_type_1): If we register a main variant properly
16557         initialize the leader to ourselves.
16558
16559 2011-05-19  Tom de Vries  <tom@codesourcery.com>
16560
16561         PR target/45098
16562         * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
16563         get_loop_invariant_expr_id.
16564         (get_loop_invariant_expr_id): Use get_expr_id.
16565         (parm_decl_cost): New function.
16566         (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
16567         Improve bound cost estimation.  Use different inv_expr_id for elim and
16568         express cases.
16569
16570 2011-05-19  Tom de Vries  <tom@codesourcery.com>
16571
16572         PR target/45098
16573         * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
16574         cost_base.cost == 0.
16575
16576 2011-05-18  H.J. Lu  <hongjiu.lu@intel.com>
16577
16578         PR target/49002
16579         * config/i386/sse.md
16580         (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
16581         load cast.
16582
16583 2011-05-18  Jakub Jelinek  <jakub@redhat.com>
16584
16585         PR tree-optimization/49039
16586         * tree-vrp.c (extract_range_from_binary_expr): For
16587         MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
16588         return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
16589
16590 2011-05-18  Tom de Vries  <tom@codesourcery.com>
16591
16592         PR target/45098
16593         * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
16594
16595 2011-05-18  Uros Bizjak  <ubizjak@gmail.com>
16596
16597         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
16598         (*tls_global_dynamic_64): Ditto.
16599         (*tls_local_dynamic_base_32_gnu): Ditto.
16600         (*tls_local_dynamic_base_64): Ditto.
16601         (tls_initial_exec_64_sun): Ditto.
16602
16603 2011-05-18  Stuart Henderson  <shenders@gcc.gnu.org>
16604
16605         * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
16606         * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
16607         bf592-none.
16608         * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
16609         * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
16610         * config/bfin/bfin.c (bfin_cpus): Add bf592.
16611         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
16612         __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
16613         * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
16614         * config/bfin/elf.h (LIB_SPEC): Add bf592.
16615
16616 2011-05-18  Joseph Myers  <joseph@codesourcery.com>
16617
16618         * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
16619         arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
16620         * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
16621         target_thread_pointer, arm_structure_size_boundary, struct
16622         float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
16623         struct abi_name, arm_all_abis): Remove.
16624         (arm_option_override) Don't process most enumerated option values here.
16625         Don't process target_fpe_name here.  Work with integer not string for
16626         structure size boundary; use separate diagnostics for each case.
16627         * config/arm/arm.h (enum float_abi_type, enum
16628         arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
16629         to arm-opts.h.
16630         (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
16631         arm_structure_size_boundary): Remove.
16632         * config/arm/arm.opt (mabi=): Use Enum and Init.
16633         (arm_abi_type): New Enum and EnumValue entries.
16634         (mfloat-abi=): Use Enum and Init.
16635         (float_abi_type): New Enum and EnumValue entries.
16636         (mfp=, mfpe=): Replace by separate Alias entries for each argument.
16637         (mfp16-format=): Use Enum and Init.
16638         (arm_fp16_format_type): New Enum and EnumValue entries.
16639         (mstructure-size-boundary=): Use UInteger and Init.
16640         (mtp=): Use Enum and Init.
16641         (arm_tp_type): New Enum and EnumValue entries.
16642
16643 2011-05-18  Richard Guenther  <rguenther@suse.de>
16644
16645         PR tree-optimization/49018
16646         * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
16647         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
16648         gimple_has_side_effects.
16649
16650 2011-05-18  Richard Guenther  <rguenther@suse.de>
16651
16652         * gimple.c (gimple_register_type_1): New function, split out from ...
16653         (gimple_register_type): ... here.  Avoid infinite recursion.
16654
16655 2011-05-18  Ira Rosen  <ira.rosen@linaro.org>
16656
16657         PR tree-optimization/41881
16658         * tree-vectorizer.h (struct _loop_vec_info): Add new field
16659         reduction_chains along with a macro for its access.
16660         * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
16661         (destroy_loop_vec_info): Free reduction chains.
16662         (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
16663         (vect_is_slp_reduction): New function.
16664         (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
16665         (vect_create_epilog_for_reduction): Support SLP reduction chains.
16666         * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
16667         definition types for reduction chains.
16668         (vect_supported_load_permutation_p): Don't allow permutations for
16669         reduction chains.
16670         (vect_analyze_slp_instance): Support reduction chains.
16671         (vect_analyze_slp): Try to build SLP instance from reduction chains.
16672         (vect_get_constant_vectors):  Handle reduction chains.
16673         (vect_schedule_slp_instance): Mark the first statement of the
16674         reduction chain as reduction.
16675
16676 2011-05-18  Ira Rosen  <ira.rosen@linaro.org>
16677
16678         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
16679         names for group elements access.
16680         * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
16681         reduction chains as well.  Remove data reference and interleaving
16682         related words from the fields names.
16683         * tree-vect-loop.c (vect_transform_loop): Use new names for group
16684         elements access.
16685         * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
16686         vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
16687         vect_update_interleaving_chain, vect_same_range_drs,
16688         vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
16689         vect_verify_datarefs_alignment, vector_alignment_reachable_p,
16690         vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
16691         vect_analyze_group_access, vect_analyze_data_ref_access,
16692         vect_create_data_ref_ptr, vect_transform_strided_load,
16693         vect_record_strided_load_vectors): Likewise.
16694         * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
16695         vect_model_load_cost, vectorizable_store, vectorizable_load,
16696         vect_remove_stores, new_stmt_vec_info): Likewise.
16697         * tree-vect-slp.c (vect_build_slp_tree,
16698         vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
16699
16700 2011-05-18  Richard Guenther  <rguenther@suse.de>
16701
16702         PR middle-end/48989
16703         * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
16704         operand verification.
16705         (verify_gimple_assign_binary): Likewise.
16706         * tree-ssa.c (useless_type_conversion_p): Preserve conversions
16707         to non-1-precision BOOLEAN_TYPEs.
16708
16709 2011-05-18  Tom de Vries  <tom@codesourcery.com>
16710
16711         PR target/45098
16712         * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
16713
16714 2011-05-18  Jakub Jelinek  <jakub@redhat.com>
16715
16716         PR tree-optimization/49000
16717         * tree-ssa.c (execute_update_addresses_taken): Call
16718         maybe_rewrite_mem_ref_base on debug stmt value.  If it couldn't
16719         be rewritten and decl has been marked for renaming, reset
16720         the debug stmt.
16721
16722 2011-05-17  Joseph Myers  <joseph@codesourcery.com>
16723
16724         * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
16725         enum_opts_set when testing if attributes have set -mfpmath=.
16726
16727 2011-05-17  Richard Sandiford  <rdsandiford@googlemail.com>
16728
16729         * config/mips/mips.c (mips_handle_option): Remove unused variable.
16730
16731 2011-05-17  Uros Bizjak  <ubizjak@gmail.com>
16732
16733         * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
16734         info->entry with 0
16735         * tree-inline.c (maybe_inline_call_in_expr):  Initialize
16736         id.transform_lang_insert_block with NULL.
16737
16738 2011-05-17  Uros Bizjak  <ubizjak@gmail.com>
16739
16740         * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
16741         (output_fp_compare): Change args 3 and 4 to bool.
16742         (ix86_expand_call): Change arg 6 to bool.
16743         (ix86_attr_length_immediate_default): Change arg 2 to bool.
16744         (ix86_attr_length_vex_default): Change arg 3 to bool.
16745         * config/i386/i386.md: Update all uses.
16746         * config/i386/i386.c: Ditto.
16747         (ix86_flags_dependent): Change return type to bool.
16748
16749 2011-05-17  Richard Guenther  <rguenther@suse.de>
16750
16751         * gimple.c (type_hash_pair_compare): Fix comparison.
16752
16753 2011-05-17  Richard Guenther  <rguenther@suse.de>
16754
16755         * gimple.c (iterative_hash_gimple_type): Simplify singleton
16756         case some more, fix final hash value of the non-singleton case.
16757
16758 2011-05-17  Richard Guenther  <rguenther@suse.de>
16759
16760         PR bootstrap/49013
16761         Revert
16762         2011-05-16  Richard Guenther  <rguenther@suse.de>
16763
16764         * gimple.c (gimple_types_compatible_p_1): Use names of the
16765         type itself, not its main variant.
16766         (iterative_hash_gimple_type): Likewise.
16767
16768 2011-05-17  Richard Guenther  <rguenther@suse.de>
16769
16770         * gimple.c (gimple_register_canonical_type): Use the main-variant
16771         leader for computing the canonical type.
16772
16773 2011-05-17  Nick Clifton  <nickc@redhat.com>
16774
16775         * config/rx/rx.c (rx_memory_move_cost): Include cost of register
16776         moves.
16777
16778         * config/rx/rx.md: Add peephole to remove redundant extensions
16779         after loads.
16780         (bitset_in_memory): Use rx_restricted_mem_operand.
16781         (bitinvert_in_memory): Likewise.
16782         (bitclr_in_memory): Likewise.
16783
16784 2011-05-17  Kazuhio Inaoka  <kazuhiro.inaoka.ud@renesas.com>
16785             Nick Clifton  <nickc@redhat.com>
16786
16787         * config/rx/rx.md: Add peepholes to match a register move followed
16788         by a comparison of the moved register.  Replace these with an
16789         addition of zero that does both actions in one instruction.
16790
16791 2011-05-17  Jakub Jelinek  <jakub@redhat.com>
16792
16793         PR target/48986
16794         * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
16795         predicate to allow CONST_INT.
16796         (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
16797
16798 2011-05-16  Joseph Myers  <joseph@codesourcery.com>
16799
16800         * opts-common.c (opt_enum_arg_to_value): New.
16801         * opts.h (opt_enum_arg_to_value): Declare.
16802         * config/i386/i386.opt (fpmath): Remove.
16803         (mfpmath=): Use Enum, Init and Save.
16804         (fpmath_unit): New Enum and EnumValue entries.
16805         * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
16806         name for function fpmath state.
16807         * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
16808         * config/i386/i386.c: Include diagnostic.h.
16809         (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
16810         (ix86_target_string): Take enum fpmath_unit value instead of string.
16811         (ix86_debug_options): Update call to ix86_target_string.
16812         (ix86_option_override_internal): Don't process fpmath strings here.
16813         (x86_function_specific_save, ix86_function_specific_restore):
16814         Don't handle fpmath state specially.
16815         (ix86_function_specific_print): Pass fpmath state to
16816         ix86_target_string instead of printing in this function.
16817         (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
16818         Handle enum attributes.
16819         (IX86_ATTR_ENUM, ix86_opt_enum): New.
16820         (ix86_valid_target_attribute_tree): Update option_strings
16821         handling.  Handle fpmath as enum option.
16822         (ix86_can_inline_p): Update field names for function fpmath state.
16823         (ix86_expand_builtin): Update call to ix86_target_string.
16824         * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
16825         (ix86_fpmath): Remove.
16826         * config/i386/t-i386 (i386.o): Update dependencies.
16827
16828 2011-05-16  Joseph Myers  <joseph@codesourcery.com>
16829
16830         PR preprocessor/48677
16831         * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
16832         from decoded_options[0], not from itself.
16833
16834 2011-05-16  Uros Bizjak  <ubizjak@gmail.com>
16835
16836         * config/i386/constraints.md (z): New constraint.
16837         * config/i386/i386.c (c): New mode attribute.
16838         (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
16839         *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
16840         constraint for operand 0.
16841         (*call_vzeroupper): Ditto.
16842         (*call_rex64_ms_sysv): Ditto.  Use "rzm" constraint for operand 0.
16843         (*call_rex64_ms_sysv_vzeroupper): Ditto.
16844         (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
16845         Use "lzm" constraint for operand 0.
16846         (*call_pop_vzeroupper): Ditto.
16847         (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
16848         *sibcall_1_rex64 patterns using "P" mode iterator.  Use "Uz"
16849         constraint for operand 0.
16850         (*sibcall_vzeroupper): Ditto.
16851         (*sibcall_rex64_ms_sysv): Ditto.
16852         (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
16853         (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
16854         *sibcall_pop_1.  Use "Uz" constraint for operand 0.
16855         (*sibcall_pop_vzeroupper): Ditto.
16856         (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
16857         *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
16858         mode iterator.  Use "<c>zm" constraint for operand 1.
16859         (*call_value_vzeroupper): Ditto.
16860         (*call_value_rex64_ms_sysv): Ditto.  Use "rzm" constraint
16861         for operand 1.
16862         (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
16863         (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
16864         *call_value_pop_1.  Use "lzm" constraint for operand 1.
16865         (*call_value_pop_vzeroupper): Ditto.
16866         (*sibcall_value): Merge insn pattern from *sibcall_value_0,
16867         *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
16868         mode iterator.  Use "Uz" constraint for operand 1.
16869         (*sibcall_value_vzeroupper): Ditto.
16870         (*sibcall_value_rex64_ms_sysv): Ditto.
16871         (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
16872         (*sibcall_value_pop): Rename from *sibcall_pop_1.  Use "Uz"
16873         constraint for operand 1.
16874         (*sibcall_value_pop_vzeroupper): Ditto.
16875         (*tls_global_dynamic_64): Use constant_call_address_operand predicate
16876         and "z" constraint for operand 2.
16877         (*tls_global_dynamic_32_gnu): Ditto.
16878         (*tls_local_dynamic_base_32_gnu): Ditto.
16879         (*tls_local_dynamic_base_64): Ditto.
16880         (*tls_local_dynamic_32_once): Ditto.
16881         * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
16882         Update all callers.
16883         * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
16884
16885 2011-05-16  Richard Guenther  <rguenther@suse.de>
16886
16887         * gimple.c (gimple_types_compatible_p_1): Use names of the
16888         type itself, not its main variant.
16889         (iterative_hash_gimple_type): Likewise.
16890
16891 2011-05-16  Richard Guenther  <rguenther@suse.de>
16892
16893         * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
16894         always visit pointer target and function result and argument types.
16895
16896 2011-05-16  Jason Merrill  <jason@redhat.com>
16897
16898         PR c++/48999
16899         * tree-inline.c (copy_statement_list): Put back recursion.
16900
16901 2011-05-16  Georg-Johann Lay  <avr@gjlay.de>
16902
16903         PR target/27663
16904         PR target/41076
16905         * config/avr/predicates.md (const_8_16_24_operand): New predicate.
16906         * config/avr/avr.md ("*ior<mode>qi.byte0",
16907         "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
16908
16909 2011-05-16  Georg-Johann Lay  <avr@gjlay.de>
16910
16911         PR target/45099
16912         * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
16913         register is needed for a function argument.
16914
16915 2011-05-16  Richard Guenther  <rguenther@suse.de>
16916
16917         * gimple.c (struct type_hash_pair): New type.
16918         (type_hash_pair_compare): New function.
16919         (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
16920
16921 2011-05-16  Revital Eres  <revital.eres@linaro.org>
16922
16923         * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
16924
16925 2011-05-15  Uros Bizjak  <ubizjak@gmail.com>
16926
16927         * config/i386/i386.md (floating point move splitters): Fix
16928         usage of standard_80387_constant_p.
16929         * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
16930
16931 2011-05-15  Uros Bizjak  <ubizjak@gmail.com>
16932
16933         * config/i386/i386.md (*movdf_internal): Simplify insn condition.
16934
16935 2011-05-14  Eric Botcazou  <ebotcazou@adacore.com>
16936
16937         * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
16938         (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
16939         (tree_ssa_lim_finalize): Likewise.
16940
16941 2011-05-14  Uros Bizjak  <ubizjak@gmail.com>
16942
16943         * config/i386/constraint.md (Yd, Yx): New register constraints.
16944         * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger.  Use
16945         Yd conditional register constraint.
16946         (*movtf_internal): Use standard_sse_constant_opcode.
16947         (*movxf_internal): Merge with *movxf_internal_nointeger.  Use
16948         Yx conditional register constraint.
16949         (*movdf_internal): Merge with *movdf_internal_nointeger.  Use
16950         Yd conditional register constraint.  Use standard_sse_constant_p to
16951         check for valid SSE constants and call standard_sse_constant_opcode to
16952         output SSE insn.
16953         (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
16954         constants and call standard_sse_constant_opcode to output SSE insn.
16955         * config/i386/i386.c (ix86_option_ovverride_internal): Set
16956         TARGET_INTEGER_DFMODE_MOVES for 64bit targets.  Clear it when
16957         optimize_size is set.
16958         (standard_sse_constant_opcode): Output conditional AVX insn templates.
16959
16960 2011-05-14  Tobias Burnus  <burnus@net-b.de>
16961
16962         * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
16963
16964 2011-05-13  Martin Jambor  <mjambor@suse.cz>
16965
16966         * ipa-prop.c (ipa_cst_from_jfunc): New function.
16967         * ipa-prop.h (ipa_cst_from_jfunc): Declare.
16968         * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
16969         (evaluate_conditions_for_ipcp_clone): Removed.
16970         (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
16971         * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
16972         * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
16973
16974 2011-05-13  Eric Botcazou  <ebotcazou@adacore.com>
16975
16976         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
16977         * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
16978         lieu of MAY_HAVE_DEBUG_STMTS.
16979         * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
16980         debug statements if !MAY_HAVE_DEBUG_STMTS.
16981
16982 2011-05-13  Martin Thuresson  <martint@google.com>
16983
16984         PR gcov-profile/47793
16985         * libgcov.c (gcov_exit): Support relative profile paths.
16986         * doc/invoke.texi (-fprofile-dir): Update for above change.
16987
16988 2011-05-13  Richard Guenther  <rguenther@suse.de>
16989
16990         * gimple.c (gimple_canonical_types_compatible_p): Do not use
16991         type-pair caching, do not compare hashes.
16992
16993 2011-05-13  Nathan Froyd  <froydnj@codesourcery.com>
16994
16995         PR middle-end/48965
16996         * tree-cfg.c (edge_to_cases_cleanup): Return true.
16997         (verify_expr) [CASE_LABEL_EXPR]: Add checking.
16998
16999 2011-05-13  Kai Tietz  <ktietz@redhat.com>
17000
17001         * gimplify.c (gimplify_expr): Make sure operand is boolified.
17002         * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
17003         compatible type for TRUTH_NOT_EXPR.
17004
17005 2011-05-13  H.J. Lu  <hongjiu.lu@intel.com>
17006
17007         * config/i386/i386.c (ix86_save_reg): Change return type to bool.
17008         (ix86_hard_regno_mode_ok): Change return value to bool.  Use
17009         can_create_pseudo_p ().
17010
17011 2011-05-13  Richard Guenther  <rguenther@suse.de>
17012
17013         PR lto/48978
17014         * gimple.c (iterative_hash_gimple_type): Revert change in
17015         pointer target and function result and argument hashing.
17016
17017 2011-05-13  Uros Bizjak  <ubizjak@gmail.com>
17018
17019         * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
17020         (*movxf_internal_nointeger): Ditto.
17021         (*movdf_internal_rex64): Ditto.
17022         (*movdf_internal): Ditto.
17023         (*movdf_internal_nointeger): Ditto.
17024         (*movsf_internal): Ditto.
17025         (sincos splitters): Use can_create_pseudo ().
17026
17027 2011-05-13  Joseph Myers  <joseph@codesourcery.com>
17028
17029         * config/i386/i386-opts.h: New.
17030         * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
17031         ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
17032         ix86_section_threshold): Remove.
17033         (ix86_handle_option): Move MAX_CODE_ALIGN define here.  Handle
17034         OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
17035         OPT_mbranch_cost_.
17036         (ix86_option_override_internal): Don't decode strings for options
17037         other than -march=, -mtune= and -mfpmath=.  Don't allow for
17038         __attribute__ uses in remaining diagnostics for options with
17039         string arguments.  Don't check for integer arguments being negative.
17040         * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
17041         enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
17042         (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
17043         ix86_branch_cost, ix86_section_threshold): Remove.
17044         * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
17045         HeaderInclude.
17046         (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
17047         but not Var.
17048         (masm=): Use Enum and Init.
17049         (asm_dialect): New Enum and EnumValue entries.
17050         (mbranch-cost=): Use UInteger.
17051         (mlarge-data-threshold=): Use UInteger and Init.
17052         (mcmodel=): Use Enum and Init.
17053         (cmodel): New Enum and EnumValue entries.
17054         (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
17055         (mpreferred-stack-boundary=, mincoming-stack-boundary=,
17056         mregparm=): Use UInteger.
17057         (mstringop-strategy=): Use Enum and Init.
17058         (stringop_alg): New Enum and EnumValue entries.
17059         (mtls-dialect=): Use Enum and Init.
17060         (tls_dialect): New Enum and EnumValue entries.
17061         (mabi=): Use Enum and Init.
17062         (calling_abi): New Enum and EnumValue entries.
17063         (mveclibabi=): Use Enum and Init.
17064         (ix86_veclibabi): New Enum and EnumValue entries.
17065
17066 2011-05-13  Nick Clifton  <nickc@redhat.com>
17067
17068         * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
17069         * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
17070
17071 2011-05-13  Kai Tietz  <ktietz@redhat.com>
17072
17073         PR middle-end/48984
17074         * gimplify.c (gimplify_expr): Check for boolean_type_node instead
17075         for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
17076         (gimple_boolify): Check for cast for boolean_type_node instead for
17077         BOOLEAN_TYPE.
17078
17079 2011-05-13  Richard Guenther  <rguenther@suse.de>
17080
17081         PR tree-optimization/48172
17082         * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
17083         multiplying by number of iterations for equal step.
17084         (vect_create_cond_for_alias_checks): Likewise.
17085
17086 2011-05-13  Andreas Schwab  <schwab@redhat.com>
17087
17088         * configure.ac: Use AS_HELP_STRING throughout.
17089         * configure: Regenerate.
17090
17091 2011-05-12  H.J. Lu  <hongjiu.lu@intel.com>
17092
17093         * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
17094         (ix86_emit_restore_regs_using_mov): Likewise.
17095         (ix86_emit_restore_sse_regs_using_mov): Likewise.
17096
17097 2011-05-12  Anatoly Sokolov  <aesok@post.ru>
17098
17099         * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
17100         SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
17101         (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
17102         * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
17103         RTX_OK_FOR_OLO10_P): ...here.
17104         (sparc_mode_dependent_address_p): Use symbolic_operand instead of
17105         SYMBOLIC_CONST.
17106
17107 2011-05-12  Kai Tietz  <ktietz@redhat.com>
17108
17109         * gimplify.c (gimple_boolify): Re-boolify expression
17110         arguments even if expression type is of kind BOOLEAN_TYPE.
17111         (gimplify_boolean_expr): Removed.
17112         (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
17113         and XOR. Additional take care that we keep expression's type.
17114         * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
17115         of TRUTH_AND|OR|XOR_EXPR.
17116
17117 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
17118
17119         PR tree-optimization/48975
17120         * tree-if-conv.c (combine_blocks): Call free_bb_predicate
17121         on all bbs here and free and clear ifc_bbs at the end.
17122
17123 2011-05-12  Richard Guenther  <rguenther@suse.de>
17124
17125         * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
17126         NULLPTR_TYPE similar to VOID_TYPE.  Defer type-leader lookup
17127         until after simple checks.
17128         (gimple_types_compatible_p): Likewise.
17129         (iterative_hash_gimple_type): Always hash pointer targets
17130         and function return and argument types.
17131         (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
17132         hash TYPE_ALIGN.  Do not hash TYPE_MIN/MAX_VALUE.
17133         (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
17134         handle NULLPTR_TYPE similar to VOID_TYPE.  Handle non-aggregates
17135         completely in the simple compare section.
17136         (gimple_register_canonical_type): Query the cache again after
17137         registering.
17138
17139 2011-05-12  Richard Guenther  <rguenther@suse.de>
17140
17141         PR tree-optimization/48172
17142         * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
17143         the number of iterations from the segment size calculation.
17144         (vect_create_cond_for_alias_checks): Adjust.
17145
17146 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
17147
17148         PR debug/48967
17149         * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
17150         if validate_subreg fails.
17151
17152 2011-05-12  Hariharan Sandanagobalane  <hariharan@picochip.com>
17153
17154         * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
17155         accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
17156         early.
17157
17158 2011-05-12  DJ Delorie  <dj@redhat.com>
17159
17160         * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
17161         (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
17162         created builtin into rx_builtins array.
17163         (rx_builtin_decl): New function.
17164         (TARGET_BUITLIN_DECL): Define.  Include gt-rx.h.
17165
17166 2011-05-12  DJ Delorie  <dj@redhat.com>
17167             Nick Clifton  <nickc@redhat.com>
17168
17169         * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
17170         * config/rx/rx.c (CC_FLAG_FP): Fix comment.
17171         (rx_is_legitimate_address): Add pre-decrement and post-increment
17172         addressing in HImode and QImode.  Fix test for out of range
17173         REG+INT addressing.
17174         (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
17175         (rx_align_for_label): Test label before extracting its usage count.
17176         (rx_adjust_insn_lengths): Fix selection of insn codes.
17177         (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
17178
17179 2011-05-11  Jason Merrill  <jason@redhat.com>
17180
17181         * tree.c (type_hash_canon): Use struct tree_type_non_common.
17182
17183 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
17184
17185         * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
17186         reindent the subsequent block.
17187
17188 2011-05-11  Satoru Takabayashi  <satorux@google.com>
17189             Paul Pluzhnikov  <ppluzhnikov@google.com>
17190
17191         * doc/install.texi (Configuration): Document --with-linker-hash-style.
17192         * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
17193         * config.in: Add LINKER_HASH_STYLE.
17194         * configure.ac: Add --with-linker-hash-style.
17195         * configure: Regenerate.
17196
17197 2011-05-11  Richard Guenther  <rguenther@suse.de>
17198
17199         PR middle-end/48964
17200         * gimple.c (iterative_hash_canonical_type): Fix typo.
17201
17202 2011-05-11  Uros Bizjak  <ubizjak@gmail.com>
17203
17204         * config/i386/i386.c (legitimize_tls_address)
17205         <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
17206         expanders directly for TARGET_GNU2_TLS.  Determine pic and
17207         __tls_get_addr symbol reference here.  Update call to
17208         gen_tls_global_dynamic_{32,64} for added arguments.
17209         <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
17210         expanders directly for TARGET_GNU2_TLS.  Determine
17211         __tls_get_addr symbol reference here.  Update call to
17212         gen_tls_local_dynamic_base_{32,64} for added arguments.  Attach
17213         unique UNSPEC REG_EQUIV to libcall block.
17214         (ix86_tls_get_addr): Declare static.
17215         * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
17216         * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
17217         Do not determine pic and __tls_get_addr symbol reference here. Do not
17218         call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
17219         (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
17220         (tls_global_dynamic_64): Add operand 2.  Do not determine
17221         __tls_get_addr symbol reference here.  Do not call
17222         gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
17223         (tls_local_dynamic_base64): Ditto for operand 1.
17224
17225 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
17226
17227         * function.c (expand_function_start): Initialize stack_check_probe_note
17228         only if the generic stack checking mechanism is used.
17229
17230 2011-05-11  Richard Guenther  <rguenther@suse.de>
17231
17232         PR tree-optimization/15256
17233         * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
17234         (A & B) | C, combine (A op CST1) op CST2.
17235         (tree_ssa_forward_propagate_single_use_vars): Only bother to
17236         visit assigns that have uses.
17237
17238 2011-05-11  Nathan Froyd  <froydnj@codesourcery.com>
17239
17240         * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
17241         * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
17242         (unpack_ts_type_common_value_fields): ...this.  Update comment.
17243         (unpack_value_fields): Adjust for renaming.
17244         (lto_input_ts_type_tree_pointers): Split into...
17245         (lto_input_ts_type_common_tree_pointer): ...this and...
17246         (lto_input_ts_type_non_common_tree_pointers): ...this.
17247         (lto_input_tree_pointers): Adjust for above split.
17248         * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
17249         (pack_ts_type_common_value_fields): ...this.  Update comment.
17250         (lto_output_ts_type_tree_pointers): Split into...
17251         (lto_output_ts_type_common_tree_pointers): ...this and...
17252         (lto_output_ts_type_non_common_tree_pointers): ...this.
17253         (lto_output_tree_pointers): Adjust for above split.
17254         * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
17255         TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
17256         * stor-layout.c (vector_type_mode): Adjust location of mode field.
17257         * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
17258         Define.
17259         (struct tree_type): Split into...
17260         (struct tree_type_common: ...this and...
17261         (struct tree_type_with_lang_specific): ...this and...
17262         (struct tree_type_non_common): ...this.  Adjust accessor macros
17263         accordingly.
17264         (TYPE_VALUES_RAW): Define.
17265         (union tree_node): Update for above changes.
17266         * tree.c (tree_node_structure_for_code) [tcc_type]: Return
17267         TS_TYPE_NON_COMMON.
17268         (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
17269         Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
17270         (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
17271         * treestructu.def (TS_TYPE): Remove.
17272         (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
17273         Define.
17274
17275 2011-05-11  Jakub Jelinek  <jakub@redhat.com>
17276
17277         PR debug/48159
17278         * tree-ssa.c (reset_debug_uses): New function.
17279         * tree-flow.h (reset_debug_uses): New prototype.
17280         * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
17281         * tree-loop-distribution.c (generate_loops_for_partition): Call
17282         reset_debug_uses on the stmts that will be removed.  Keep around
17283         all debug stmts, don't count them as bits in partition bitmap.
17284         (generate_builtin): Don't count debug stmts or labels as bits in
17285         partition bitmap.
17286
17287 2011-05-11  Richard Guenther  <rguenther@suse.de>
17288
17289         * gimple.c (gimple_type_hash_1): Merge with ...
17290         (gimple_type_hash): ... this.
17291         (gtc_visit): Remove mode parameter and simplify accordingly.
17292         (gimple_types_compatible_p_1): Likewise.
17293         (gimple_types_compatible_p): Likewise.
17294         (iterative_hash_gimple_type): Likewise.
17295         (visit): Likewise.
17296         (gimple_type_eq): Adjust.
17297
17298 2011-05-11  Revital Eres  <revital.eres@linaro.org>
17299
17300         * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
17301         enters the branch create an anti edge in the opposite direction
17302         to prevent the creation of reg-moves.
17303         * modulo-sched.c: Adjust comment to reflect the fact we are
17304         scheduling closing branch.
17305         (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
17306         (stage_count): New field in struct partial_schedule.
17307         (calculate_stage_count): New function.
17308         (normalize_sched_times): Rename to reset_sched_times and handle
17309         incrementing the sched time of the nodes by a constant value
17310         passed as parameter.
17311         (duplicate_insns_of_cycles): Skip closing branch.
17312         (sms_schedule_by_order): Schedule closing branch.
17313         (ps_insn_find_column): Handle closing branch.
17314         (sms_schedule): Call reset_sched_times and adjust the code to
17315         support scheduling of the closing branch.
17316         (ps_insert_empty_row): Update calls to normalize_sched_times
17317         and rotate_partial_schedule functions.
17318
17319 2011-05-11  Richard Guenther  <rguenther@suse.de>
17320
17321         PR middle-end/48953
17322         * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
17323
17324 2011-05-11  Joseph Myers  <joseph@codesourcery.com>
17325
17326         * opts.c (finish_options): Move warning settings from process_options.
17327         * toplev.c (process_options): Move warning settings to finish_options.
17328
17329 2011-05-11  Richard Guenther  <rguenther@suse.de>
17330
17331         PR tree-optimization/18041
17332         * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
17333         (simplify_bitwise_binary): ... this.  Handle operand conversions
17334         by applying them to the result instead.
17335         (tree_ssa_forward_propagate_single_use_vars): Adjust.  CSE tree code.
17336
17337 2011-05-11  Richard Guenther  <rguenther@suse.de>
17338
17339         * gimple.c (gimple_canonical_types_compatible_p): Split out
17340         from gimple_types_compatible_p and friends.  Do not recurse
17341         to pointed-to types.
17342         (gimple_canonical_type_eq): Use it.
17343         (iterative_hash_canonical_type): Split out from
17344         iterative_hash_gimple_type and friends.  Do not recurse
17345         to pointed-to types.
17346         (gimple_canonical_type_hash): Use it, allocate the hash here.
17347
17348 2011-05-11  Revital Eres  <revital.eres@linaro.org>
17349
17350         * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
17351         recognizing doloop.
17352
17353 2011-05-11  Revital Eres  <revital.eres@linaro.org>
17354
17355         * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
17356         instead of PREV_INSN.
17357
17358 2011-05-11  Revital Eres  <revital.eres@linaro.org>
17359
17360         * modulo-sched.c (sms_schedule): Support new form of doloop pattern
17361         * loop-doloop.c (doloop_condition_get): Likewise.
17362         * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
17363         (doloop_end): New.
17364         * config/arm/arm.md (*addsi3_compare0): Remove "*".
17365
17366 2011-05-10  Nathan Froyd  <froydnj@codesourcery.com>
17367
17368         * tree.def (CASE_LABEL_EXPR): Add an operand.
17369         * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
17370
17371 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
17372
17373         * c-decl.c (c_override_global_bindings_to_false): Remove.
17374         (global_bindings_p): Don't check
17375         c_override_global_bindings_to_false.
17376         * c-tree.h (c_override_global_bindings_to_false): Remove.
17377         * c-typeck.c (composite_type): Don't set
17378         c_override_global_bindings_to_false.
17379
17380 2011-05-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
17381
17382         PR target/48857, 48495
17383         * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
17384         (VSX_MODE): Ditto.
17385         (VSX_MOVE_MODE): Ditto.
17386         (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
17387         VSX vector types.  Add V2DImode.
17388         (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
17389         ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
17390         (MODES_TIEABLE_P): Ditto.
17391
17392         * config/rs6000/rs6000.c (rs6000_emit_move): Use
17393         ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
17394         VSX_VECTOR_MODE.
17395         (init_cumulative_args): Ditto.
17396         (rs6000_function_arg_boundary): Ditto.
17397         (rs6000_function_arg_advance_1): Ditto.
17398         (rs6000_function_arg): Ditto.
17399         (rs6000_function_ok_for_sibcall): Ditto.
17400         (emit_frame_save): Ditto.
17401         (rs6000_function_value): Ditto.
17402         (rs6000_libcall_value): Ditto.
17403
17404 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
17405
17406         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
17407         i386/darwin-lib.h to $libgcc_tm_file.
17408         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
17409
17410 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
17411
17412         * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
17413
17414 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
17415
17416         * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
17417         * config/rs6000/rs6000-tables.opt: New file (generated).
17418         * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
17419         rs6000/rs6000-tables.opt to extra_options.
17420         * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
17421         * config/rs6000/rs6000.c (rs6000_select): Remove.
17422         (processor_target_table): Move contents to rs6000-cpus.def.
17423         (darwin_rs6000_override_options): Check
17424         global_options_set.x_rs6000_cpu_index instead of
17425         rs6000_select[1].string.
17426         (rs6000_option_override_internal): Likewise.
17427         (rs6000_handle_option): Don't assert that global structures are in
17428         use.  Don't handle OPT_mcpu_ and OPT_mtune_ here.
17429         (rs6000_default_cpu): New variable.
17430         (rs6000_file_start): Set it instead of local default_cpu.  Check
17431         rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
17432         global_options_set.x_rs6000_tune_index instead of rs6000_select.
17433         (rs6000_darwin_file_start): Check rs6000_default_cpu and
17434         global_options_set.x_rs6000_cpu_index instead of rs6000_select.
17435         * config/rs6000/rs6000.h (struct rs6000_cpu_select,
17436         rs6000_select): Remove.
17437         * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
17438         Remove.
17439         (mcpu=, mtune=): Use Var, Init, Enum and Save.
17440         * config/rs6000/t-rs6000
17441         ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
17442         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
17443         global_options_set.x_rs6000_cpu_index instead of
17444         rs6000_select[1].string.
17445         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
17446         global_options_set.x_rs6000_cpu_index instead of
17447         rs6000_select[1].string.
17448
17449 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
17450
17451         * config.gcc (libgcc_tm_file): Define instead of including files
17452         from ../../libgcc/config/ in tm_file.
17453         * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
17454         * configure: Regenerate.
17455         * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
17456         libgcc_tm.h, cs-libgcc_tm.h): New.
17457         (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
17458         (clean): Remove libgcc_tm.h.
17459         * config/arm/symbian.h (RENAME_LIBRARY): Remove.
17460         * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
17461         * system.h (DECLARE_LIBRARY_RENAMES): Poison.
17462
17463 2011-05-10  Georg-Johann Lay  <avr@gjlay.de>
17464
17465         PR target/48896
17466         * config/avr/avr.c (avr_ret_register): Return unsigned int
17467         instead of int.
17468         (avr_function_value): Mark fn_decl_or_type as unused, don't pass
17469         it to avr_libcall_value.
17470         avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
17471         expand_expr.
17472         (avr_expand_binop_builtin): Ditto.
17473         (avr_expand_unop_builtin): Ditto.
17474
17475 2011-05-10  DJ Delorie  <dj@redhat.com>
17476
17477         * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
17478         (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
17479         * config/rx/rx.c (rx_align_for_label): Add label and
17480         uses_threshold parameters.  Do not align when the label is not
17481         used enough.
17482         * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
17483
17484 2011-05-10  Richard Guenther  <rguenther@suse.de>
17485
17486         * tree-ssa-forwprop.c (combine_conversions): Pattern-match
17487         a series of conversions and apply foldings similar to what
17488         fold-const does.
17489         (tree_ssa_forward_propagate_single_use_vars): Call it.
17490
17491 2011-05-10  Jakub Jelinek  <jakub@redhat.com>
17492
17493         PR tree-optimization/48611
17494         PR tree-optimization/48794
17495         * tree-eh.c (remove_unreachable_handlers): Don't remove regions
17496         referenced from RESX or EH_DISPATCH arguments.
17497
17498         PR debug/48928
17499         * dfp.c (decimal_to_decnumber): Handle conversion from
17500         dconst{1,2,m1,half}.
17501
17502 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
17503
17504         * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
17505         for !flag_prefer_avx128.
17506         (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
17507
17508 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
17509
17510         * fold-const.c (fold_range_test): Pass LOC to build_range_check.
17511         (fold_ternary_loc): Use expr_location_or.
17512
17513 2011-05-09  H.J. Lu  <hongjiu.lu@intel.com>
17514
17515         PR debug/48853
17516         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
17517         POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
17518         Pmode and mem_mode is not VOIDmode.
17519
17520 2011-05-09  Ville Voutilainen  <ville.voutilainen@gmail.com>
17521
17522         * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
17523         TYPE_QUAL_RESTRICT): Convert to enum.
17524
17525 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
17526
17527         * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
17528         (const_pow2_1_to_8_operand): Ditto.
17529         (const_pow2_1_to_128_operand): Ditto.
17530         (const_pow2_1_to_32768_operand): Ditto.
17531         * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
17532         const_pow2_1_to_8_operand for operand 3 predicate.  Use exact_log2
17533         in insn constraint to check integer value of operand 3.
17534         * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
17535
17536         (PINSR_MODE): New mode iterator.
17537         (sse2p4_1): New mode attribute.
17538         (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
17539         sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
17540         iterator.  Use const_int_operand instead of
17541         const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate.  Use
17542         exact_log2 in insn constraint to check integer value of operand 3.
17543
17544 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
17545
17546         * config/i386/sse.md (blendbits): Remove mode attribute.
17547         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
17548         instead of const_0_to_<blendbits>_operand for operand 3 predicate.
17549         Check integer value of operand 3 in insn constraint.
17550
17551 2011-05-09  Richard Guenther  <rguenther@suse.de>
17552
17553         * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
17554         for diagnostics.
17555         (lto_symtab_merge): Likewise.  Do not register types here.
17556         (lto_symtab_merge_decls_2): Likewise.
17557         (lto_symtab_merge_decls_1): Likewise.
17558         * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
17559         * gimple.c (enum gtc_mode): Declare.
17560         (gimple_types_compatible_p): Make static.
17561
17562 2011-05-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17563
17564         * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
17565         temporary register to match Pmode.
17566
17567 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
17568
17569         * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
17570         and *vec_concatv4si_1_avx.
17571
17572 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
17573
17574         PR rtl-optimization/48927
17575         * ira-conflicts.c (commutative_constraint_p): Use
17576         recog_data.alternative_enabled_p to disable alternatives where
17577         "enabled" attribute is false.
17578         (get_dup_num): Ditto.
17579         * ira-lives.c (single_reg_class): Ditto.
17580         (ira_implicitly_set_insn_hard_regs): Ditto.
17581
17582 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
17583
17584         * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
17585         (dataflow_set_preserve_mem_locs): Likewise.
17586
17587 2011-05-09  Philipp Thomas  <pth@suse.de>
17588
17589         * config/mep/mep.c (mep_validate_vliw): Syntax description
17590         should not be translated.
17591
17592 2011-05-09  Joseph Myers  <joseph@codesourcery.com>
17593
17594         * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
17595         * config/mips/mips-tables.opt: New file (generated).
17596         * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
17597         * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
17598         MIPS_ARCH_OPTION_NATIVE): Define.
17599         * config/mips/mips.c (mips_cpu_info_table): Move contents to
17600         mips-cpus.def.
17601         (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
17602         mips_parse_cpu): Remove.
17603         (mips_cpu_info_from_opt, mips_default_arch): New.
17604         (mips_handle_option): Don't assert that global structures are in
17605         use.  Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
17606         (mips_option_override): Use new variables and functions to set
17607         state of these options.  Use strcmp to check for individual CPU names.
17608         * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
17609         definition.
17610         * config/mips/mips.opt (march=): Use ToLower and Enum.
17611         (mips): Use ToLower, Enum and Var.
17612         (mtune=): Use ToLower and Enum.
17613         * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
17614
17615 2011-05-08  Jan Hubicka  <jh@suse.cz>
17616
17617         * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
17618         Arrange type pairs to be UID ordered.
17619         (gimple_lookup_type_leader): Make inline.
17620
17621 2011-05-09  Nick Clifton  <nickc@redhat.com>
17622
17623         PR target/48899
17624         * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
17625         PROCESSOR_DEFAULT.
17626
17627         PR target/48897
17628         * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
17629         variable 's'.
17630
17631 2011-05-08  Chung-Lin Tang  <cltang@codesourcery.com>
17632
17633         * combine.c (simplify_comparison): Abstract out parts into...
17634         (simplify_compare_const): ... new function.
17635         (try_combine): Generalize parallel arithmetic/compare combining
17636         to call simplify_compare_const() and CANONICALIZE_COMPARE().
17637
17638 2011-05-08  Jan Hubicka  <jh@suse.cz>
17639
17640         * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
17641         (cgraph_create_virtual_clone): Call hooks once virtual clone
17642         is finished.
17643         * cgraph.h (cgraph_clone_node): Update prototype.
17644         * ipa-cp.c (ipcp_estimate_growth): Use
17645         estimate_ipcp_clone_size_and_time.
17646         * ipa-inline-transform.c (clone_inlined_nodes): Update.
17647         * lto-cgraph.c (input_node): Update.
17648         * ipa-inline.c (recursive_inlining): Update.
17649         * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
17650         (evaluate_conditions_for_known_args): Break out from ...
17651         (evaluate_conditions_for_edge): ... here.
17652         (evaluate_conditions_for_ipcp_clone): New function.
17653         (inline_node_duplication_hook): Update clone summary based
17654         on parameter map.
17655         (estimate_callee_size_and_time): Rename to ...
17656         (estimate_node_size_and_time): take NODE instead of EDGE;
17657         take POSSIBLE_TRUTHS as argument.
17658         (estimate_callee_size_and_time): Update.
17659         (estimate_ipcp_clone_size_and_time): New function.
17660         (do_estimate_edge_time): Update.
17661
17662 2011-05-08  Richard Guenther  <rguenther@suse.de>
17663
17664         PR middle-end/48908
17665         PR middle-end/48905
17666         * expmed.c (expand_shift_1): Compute adjusted constant shift
17667         amount manually.
17668
17669 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
17670
17671         * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
17672
17673 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
17674
17675         * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
17676
17677 2011-05-08  Jonathan Wakely  <jwakely.gcc@gmail.com>
17678
17679         * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
17680
17681 2011-05-07  Jan Hubicka  <jh@suse.cz>
17682
17683         * ipa-inline-transform.c (inline_call): Account when program size
17684         decreases.
17685         * ipa-inline.c (relative_time_benefit): New function.
17686         (edge_badness): Reorganize to be power 2 based; fix thinko when
17687         computing badness for negative growth; update comments to match
17688         reality; better dumps.
17689
17690 2011-05-07  Eric Botcazou  <ebotcazou@adacore.com>
17691
17692         * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
17693         type to bool and adjust comment.
17694         * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
17695         (fold_mathfn_compare): Remove calls to global_bindings_p.
17696         (fold_inf_compare): Likewise.
17697         * stor-layout.c (variable_size): Adjust call to global_bindings_p.
17698         * c-tree.h (global_bindings_p): Adjust prototype.
17699         * c-decl.c (global_bindings_p): Return bool and simplify.
17700
17701 2011-05-07  Zdenek Dvorak  <ook@ucw.cz>
17702
17703         PR tree-optimization/48837
17704         * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
17705         when accumulator transformation is performed.
17706
17707 2011-05-06  Jan Hubicka  <jh@suse.cz>
17708
17709         * i386.h (ix86_tune_indices): Add
17710         X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
17711         (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
17712         * i386.c (initial_ix86_tune_features): Add
17713         X86_SOFTARE_PREFETCHING_BENEFICIAL.
17714         (software_prefetching_beneficial_p): Remove predicate.
17715         (ix86_option_override_internal): Use new macro.
17716
17717 2011-05-06  Jan Hubicka  <jh@suse.cz>
17718
17719         * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
17720
17721 2011-05-06  Jan Hubicka  <jh@suse.cz>
17722
17723         * cgraph.c (cgraph_add_thunk): Create real function node instead
17724         of alias node; finalize it and mark needed/reachale; arrange visibility
17725         to be right and add it into the corresponding same comdat group list.
17726         (dump_cgraph_node): Dump thunks.
17727         * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
17728         cgraph_function_with_gimple_body_p,
17729         cgraph_first_function_with_gimple_body,
17730         cgraph_next_function_with_gimple_body): New functions.
17731         (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
17732         New macros.
17733         * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
17734         (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
17735         * cgraphunit.c (cgraph_finalize_function): Only look into possible
17736         devirtualization when optimizing.
17737         (verify_cgraph_node): Verify thunks.
17738         (cgraph_analyze_function): Analyze thunks.
17739         (cgraph_mark_functions_to_output): Output thunks only in combination
17740         with function they are assigned to.
17741         (assemble_thunk): Turn thunk into non-thunk; don't try to turn
17742         alias into normal node.
17743         (assemble_thunks): New functoin.
17744         (cgraph_expand_function): Use it.
17745         * lto-cgraph.c (lto_output_node): Stream thunks.
17746         (input_overwrite_node): Stream in thunks.
17747         * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
17748         * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
17749         * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
17750         * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
17751         (inline_analyze_function): Do not care about thunk jump functions.
17752         (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
17753         * ipa-prop.c (ipa_prop_write_jump_functions): Use
17754         cgraph_function_with_gimple_body_p.
17755         * passes.c (do_per_function_toporder): Use
17756         cgraph_function_with_gimple_body_p.
17757         (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
17758         (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
17759         (function_called_by_processed_nodes_p): Likewise.
17760
17761 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
17762
17763         * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
17764         rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
17765         entries.
17766         (mabi=): Replace with separate entries for mabi=altivec,
17767         mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
17768         mabi=ieeelongdouble and mabi=ibmlongdouble.
17769         * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
17770         check for -mabi=spe without SPE ABI support here.
17771         (rs6000_handle_option): Replace OPT_mabi_ handling with
17772         OPT_mabi_altivec and OPT_mabi_spe handling.
17773
17774 2011-05-06  Cary Coutant  <ccoutant@google.com>
17775
17776         * dwarf2out.c (contains_subprogram_definition): New function.
17777         (should_move_die_to_comdat): Call it.
17778
17779 2011-05-06  Jeff Law  <law@redhat.com>
17780
17781         * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
17782         remove_ctrl_stmt_and_useless_edges.
17783         (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
17784         (fixup_template_block, thread_single_edge): Likewise.
17785         (mark_threaded_blocks): Use THREAD_TARGET.
17786
17787 2011-05-06  Alan Modra  <amodra@gmail.com>
17788
17789         PR target/48900
17790         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
17791         const0_rtx as the arg to the dummy __tls_get_addr libcall.
17792
17793 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
17794
17795         * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
17796         constraint modifier to "r".
17797
17798 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
17799
17800         * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
17801         fall through for OPT_mcmodel_.
17802
17803 2011-05-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17804
17805         * config/s390/s390.c (s390_asm_trampoline_template): Comment
17806         instruction sizes.
17807         (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
17808
17809 2011-05-06  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
17810
17811         PR target/47930
17812         * config/arm/arm.opt (marm): Document it.
17813         (mthumb): Reject negative variant.
17814
17815 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
17816
17817         PR target/48898
17818         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
17819         Fix typo in "ccvt" variable name.
17820
17821 2011-05-06  Tristan Gingold  <gingold@adacore.com>
17822
17823         PR target/48895
17824         * config/vms/vms-ar.c (main): Remove cwd variable.
17825
17826 2011-05-06  Jakub Jelinek  <jakub@redhat.com>
17827
17828         PR debug/48902
17829         * var-tracking.c (prepare_call_arguments): Move else before #endif.
17830
17831 2011-05-05  Nathan Froyd  <froydnj@codesourcery.com>
17832
17833         * except.c (sjlj_emit_dispatch_table): Call build_case_label.
17834         * gimplify.c (gimplify_switch_expr): Likewise.
17835         * omp-low.c (expand_omp_sections): Likewise.
17836         * tree-eh.c (lower_try_finally_switch): Likewise.
17837         (lower_eh_dispatch): Likewise.
17838         * tree.h (build_case_label): Declare.
17839         * tree.c (build_case_label): Define.
17840
17841 2011-05-05  Jason Merrill  <jason@redhat.com>
17842
17843         PR c++/40975
17844         * tree-inline.c (copy_tree_r): Use copy_statement_list.
17845         (copy_statement_list): Don't recurse.
17846         * stor-layout.c (copy_self_referential_tree_r): Don't allow
17847         STATEMENT_LIST.
17848
17849 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
17850
17851         * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
17852         through from -mfpu= handling.
17853         * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
17854
17855 2011-05-05  Bernd Schmidt  <bernds@codesourcery.com>
17856
17857         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
17858         POST_MODIFY.
17859
17860 2011-05-05  Steve Ellcey  <sje@cup.hp.com>
17861
17862         * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
17863         for 11.31.
17864         (hppa[12]*-*-hpux11*): Ditto.
17865         (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
17866         * config/ia64/hpux-unix2003.h: New.
17867         * config/pa/pa-hpux1131.opt: New.
17868         * config/pa/pa-hpux1131.h: New.
17869         * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
17870         * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
17871         * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
17872
17873 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
17874
17875         PR debug/48853
17876         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
17877         instead of mode as 3rd argument to recursive call.
17878         (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
17879         emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
17880         VOIDmode.
17881         (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
17882         don't give up if mode is Pmode and mem_mode is not VOIDmode.
17883         (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
17884         use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
17885
17886 2011-05-05  Julian Brown  <julian@codesourcery.com>
17887
17888         * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
17889         parenthesis in D-register case.
17890
17891 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
17892
17893         * opt-functions.awk (var_type_struct): Handle Enum options.
17894         * optc-gen.awk: Don't check range of variables of character type.
17895         * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
17896         rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
17897         rs6000_sdata_name, rs6000_explicit_options): Remove.
17898         (rs6000_option_override_internal): Check for -malign-power here.
17899         Use global_options_set instead of rs6000_explicit_options.
17900         (rs6000_parse_fpu_option): Remove.
17901         (rs6000_handle_option): Access variables via opts and opts_set
17902         pointers.  Use error_at and warning_at.  Add fall-through
17903         comments.  Don't handle OPT_mcmodel_, OPT_maix_struct_return,
17904         OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
17905         OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
17906         OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
17907         here.  Don't use rs6000_parse_fpu_option.
17908         * config/rs6000/rs6000.h (fpu_type): Remove declaration.
17909         * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
17910         rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
17911         (mrecip=): Use Var.
17912         (mspe): Use Var and Save.
17913         (mtraceback=): Use Enum and Var.
17914         (rs6000_traceback_type): New Enum and EnumValue entries.
17915         (mfloat-gprs=): Use Enum, Var and Save.
17916         (rs6000_float_gprs): New Enum and EnumValue entries.
17917         (mlong-double-): use Var and Save.
17918         (msched-costly-dep=, minsert-sched-nops=): Use Var.
17919         (malign-): Use Enum and Var.
17920         (rs6000_alignment_flags): New Enum and EnumValue entries.
17921         (mfpu=): Use Enum.
17922         (fpu_type_t): New Enum and EnumValue entries.
17923         * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
17924         global_options_set instead of rs6000_explicit_options.
17925         * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
17926         global_options_set instead of rs6000_explicit_options.
17927         * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
17928         global_options_set instead of rs6000_explicit_options.
17929         * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
17930         global_options_set instead of rs6000_explicit_options.
17931         * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
17932         global_options_set instead of rs6000_explicit_options.
17933         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
17934         global_options_set instead of rs6000_explicit_options.
17935         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
17936         definition.
17937         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
17938         global_options_set instead of rs6000_explicit_options.
17939         * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
17940         (rs6000_cmodel): New Enum and EnumValue entries.
17941         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
17942         global_options_set instead of rs6000_explicit_options.
17943         * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
17944         (mtls-size=): Use Enum and Var.
17945         (rs6000_tls_size): New Enum and EnumValue entries.
17946
17947 2011-05-05  Michael Matz  <matz@suse.de>
17948
17949         * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
17950         * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
17951         * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
17952         * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
17953         * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
17954         * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
17955         * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
17956         * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
17957         * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
17958         * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
17959         * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
17960         * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
17961         * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
17962         * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
17963         * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
17964         * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
17965
17966 2011-05-05  Richard Guenther  <rguenther@suse.de>
17967
17968         * expmed.c (expand_variable_shift): Rename to ...
17969         (expand_shift_1): ... this.  Take an expanded shift amount.
17970         For rotates recurse directly not building trees for the shift amount.
17971         (expand_variable_shift): Wrap around expand_shift_1.
17972         (expand_shift): Adjust.
17973
17974 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
17975
17976         * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
17977
17978 2011-05-05  Eric Botcazou  <ebotcazou@adacore.com>
17979
17980         * tree.h (get_pending_sizes): Remove prototype.
17981         (put_pending_size): Likewise.
17982         (put_pending_sizes): Likewise.
17983         * stor-layout.c (pending_sizes): Delete.
17984         (get_pending_sizes): Likewise.
17985         (put_pending_size): Likewise.
17986         (put_pending_sizes): Likewise.
17987         (variable_size): Do not call put_pending_size and tidy up.
17988         * function.h (struct function): Remove dont_save_pending_sizes_p.
17989         * lto-streamer-in.c (input_function): Do not stream it.
17990         * lto-streamer-out.c (output_function): Likewise.
17991         * tree-inline.c (initialize_cfun): Do not copy it.
17992         * c-decl.c (store_parm_decls): Do not set it.
17993         * omp-low.c (create_task_copyfn): Likewise.
17994         * tree-optimize.c (tree_rest_of_compilation): Likewise.
17995
17996 2011-05-05  Uros Bizjak  <ubizjak@gmail.com>
17997
17998         * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
17999         conditions.
18000         (*movdf_internal): Ditto.
18001         (*movdf_internal_nointeger): Ditto.
18002         (*movsf_internal): Ditto.
18003
18004 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
18005
18006         * c-decl.c (finish_decl): Don't call get_pending_sizes.
18007         (grokparm): Add parameter expr.  Pass it to grokdeclarator.
18008         (push_parm_decl): Add parameter expr.  Pass it to grokdeclarator.
18009         (c_variable_size): Remove.
18010         (grokdeclarator): Use save_expr instead of c_variable_size.  Don't
18011         call put_pending_sizes.
18012         (get_parm_info): Add parameter expr.  Use it to set
18013         arg_info->pending_sizes.
18014         (store_parm_decls): Use arg_info->pending_sizes instead or calling
18015         get_pending_sizes.
18016         * c-parser.c (c_parser_parms_declarator): Update call to
18017         c_parser_parms_list_declarator.
18018         (c_parser_parms_list_declarator): Take parameter expr.  Update
18019         call to push_parm_decl.  Update recursive call.  Don't call
18020         get_pending_sizes.  Update calls to get_parm_info.
18021         (c_parser_objc_method_definition): Update calls to
18022         c_parser_objc_method_decl and objc_start_method_definition.
18023         (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
18024         (c_parser_objc_method_decl): Add parameter expr.  Update call to
18025         grokparm.
18026         (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
18027         * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
18028         (get_parm_info, grokparm, push_parm_decl): Update prototypes.
18029
18030 2011-05-05  Michael Hope  <michael.hope@linaro.org>
18031
18032         PR pch/45979
18033         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
18034         __ARM_EABI__ hosts.
18035
18036 2011-05-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
18037
18038         * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
18039         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
18040         (spu_output_mi_thunk): New function.
18041
18042 2011-05-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18043
18044         * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
18045         targetm.asm_out.print_operand.
18046         * config/sol2.c: Include target.h.
18047
18048 2011-05-04  Jan Hubicka  <jh@suse.cz>
18049
18050         * ipa-inline.c (reset_edge_caches): New function.
18051         (update_caller_keys): Add check_inlinablity_for; do not
18052         reset edge caches; remove now unnecesary loop.
18053         (update_callee_keys): Add comments; reset node_growth_cache of callee.
18054         (update_all_callee_keys): Likewise.
18055         (inline_small_functions): Sanity check cache; update code
18056         recomputing it.
18057
18058 2011-05-04  Bernd Schmidt  <bernds@codesourcery.com>
18059
18060         PR rtl-optimization/47612
18061         * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
18062         as the last insn of the sequence to be moved.
18063
18064 2011-05-04  Tobias Burnus  <burnus@net-b.de>
18065
18066         PR fortran/48864
18067         * doc/invoke.texi (Ofast): Document that it
18068         enables Fortran's -fno-protect-parens.
18069
18070 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
18071
18072         * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
18073
18074 2011-05-04  Eric Botcazou  <ebotcazou@adacore.com>
18075
18076         * stor-layout.c (variable_size): Do not issue errors.
18077
18078 2011-05-04  Richard Guenther  <rguenther@suse.de>
18079
18080         * coverage.c (tree_coverage_counter_ref): Use integer_type_node
18081         for array-ref indices.
18082         (tree_coverage_counter_addr): Likewise.
18083         (build_fn_info_type): Use size_int for index types.
18084         (build_gcov_info): Likewise.
18085
18086 2011-05-04  Richard Guenther  <rguenther@suse.de>
18087
18088         * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
18089         to build_int_cst.
18090         * c-typeck.c (really_start_incremental_init): Use bitsize_int
18091         for constructor indices.
18092         (push_init_level): Likewise.
18093
18094 2011-05-04  Richard Guenther  <rguenther@suse.de>
18095
18096         * explow.c (promote_mode): Move variable declarations before code.
18097
18098 2011-05-04  Nathan Froyd  <froydnj@codesourcery.com>
18099
18100         * tree.h (build_function_type_array): Declare.
18101         (build_varargs_function_type_array): Declare.
18102         (build_function_type_vec, build_varargs_function_type_vec): Define.
18103         * tree.c (build_function_type_array_1): New function.
18104         (build_function_type_array): New function.
18105         (build_varargs_function_type_array): New function.
18106
18107 2011-05-04  Richard Sandiford  <richard.sandiford@linaro.org>
18108
18109         * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
18110         before setting STMT_VINFO_TYPE.
18111
18112 2011-05-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
18113
18114         * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
18115         instead of spu_pass_by_reference.
18116
18117 2011-05-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18118
18119         * calls.c (emit_library_call_value_1): Invoke
18120         promote_function_mode hook on libcall arguments.
18121         * explow.c (promote_function_mode, promote_mode): Handle TYPE
18122         argument being NULL.
18123         * targhooks.c (default_promote_function_mode): Lisewise.
18124         * config/s390/s390.c (s390_promote_function_mode): Likewise.
18125         * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
18126
18127         * doc/tm.texi: Document that TYPE argument might be NULL.
18128
18129 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
18130
18131         * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
18132
18133 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
18134
18135         From Bernd Schmidt
18136         * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
18137
18138 2011-05-04  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18139
18140         * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
18141         (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
18142         Move ...
18143         * mips-tfile.c: ... here.
18144         Don't include coretypes.h, tm.h, filenames.h.
18145         (saber_stop): Remove definition and all calls.
18146         [__SABER__]: Remove.
18147         (__LINE__): Remove default.
18148         (Size_t, Ptrdiff_t): Remove definitions.
18149         Replace by size_t, ptrdiff_t.
18150         [!MIPS_DEBUGGING_INFO]: Remove.
18151         (SHASH_SIZE, THASH_SIZE): Remove defaults.
18152         (progname): Add const.
18153         (STATIC): Remove.
18154         Replace all uses by static.
18155         (ALIGN_SYMTABLE_OFFSET): Remove default.
18156         * mips-tdump.c: Don't include coretypes.h, tm.h.
18157         Remove !MIPS_IS_STAB guard.
18158         * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
18159         $(TM_H), filenames.h dependencies.
18160         (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
18161
18162 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
18163
18164         From Jie Zhang
18165         *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
18166         (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
18167
18168 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
18169
18170         From Bernd Schmidt
18171         * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
18172         account and save/restore RETS.
18173         (PROFILE_BEFORE_PROLOGUE): Define.
18174         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character.  Correct
18175         the push insn to use predecrement.
18176
18177 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
18178
18179         From Jie Zhang
18180         * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
18181
18182 2011-05-04  Nick Clifton  <nickc@redhat.com>
18183
18184         * config/mn10300/mn10300.c: Include cfgloop.h.
18185         (DUMP): New macro.
18186         (mn10300_insert_setlb_lcc): New function.  Inserts a SETLB and a
18187         Lcc or a FLcc insn into the instruction stream.
18188         (mn10300_block_contains_call): New function.  Returns true if the
18189         given basic block contains a CALL insn.
18190         (mn10300_loop_contains_call_insn): New function.  Returns true if
18191         the given loop contains a CALL insn.
18192         (mn10300_scan_for_setlb_lcc): New function.  Finds opportunities
18193         to use the SETLB and Lcc or FLcc insns.
18194         (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
18195         (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
18196         * config/mn10300/mn10300.opt (msetlb): New option.  Used to
18197         disable the SETLB optimization.
18198         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
18199         __SETLB__ or __NO_SETLB__.
18200         * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
18201         (movsf_internal): Handle MDR register.
18202         (cmpsi): Make visible.
18203         (setlb): New pattern.
18204         (Lcc): New pattern.
18205         (FLcc): New pattern.
18206
18207 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
18208
18209         PR target/48860
18210         * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
18211         for reg<->xmm moves.
18212         * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
18213         (vec_concatv2di_rex64_sse): Ditto.
18214         (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
18215         (*vec_extractv2di_1_rex64): Ditto.
18216
18217         Revert:
18218         2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
18219
18220         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
18221         reg<->xmm moves.
18222         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
18223
18224 2011-05-04  Richard Guenther  <rguenther@suse.de>
18225
18226         * tree.h (int_const_binop): Remove notrunc argument.
18227         * fold-const.c (int_const_binop): Remove notrunc argument.  Always
18228         create integer constants that are properly truncated.
18229         (extract_muldiv_1): Expand one notrunc int_const_binop caller.
18230         (const_binop): Remove zero notrunc argument to int_const_binop.
18231         (size_binop_loc): Likewise.
18232         (fold_div_compare): Likewise.
18233         (maybe_canonicalize_comparison_1): Likewise.
18234         (fold_comparison): Likewise.
18235         (fold_binary_loc): Likewise.
18236         (multiple_of_p): Likewise.
18237         * expr.c (store_constructor): Likewise.
18238         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
18239         (maybe_fold_stmt_addition): Likewise.
18240         * ipa-prop.c (ipa_modify_call_arguments): Likewise.
18241         * stor-layout.c (layout_type): Likewise.
18242         * tree-data-ref.c (tree_fold_divides_p): Likewise.
18243         * tree-sra.c (build_ref_for_offset): Likewise.
18244         (build_user_friendly_ref_for_offset): Likewise.
18245         * tree-ssa-address.c (maybe_fold_tmr): Likewise.
18246         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
18247         * tree-ssa-loop-niter.c (inverse): Likewise.
18248         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
18249         * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
18250         * tree-switch-conversion.c (check_range): Likewise.
18251         (build_constructors): Likewise.
18252         * tree-vect-generic.c (expand_vector_piecewise): Likewise.
18253         * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
18254         (extract_range_from_assert): Likewise.
18255         (vrp_int_const_binop): Likewise.
18256         (extract_range_from_binary_expr): Likewise.
18257         (extract_range_from_unary_expr): Likewise.
18258         (check_array_ref): Likewise.
18259         (find_case_label_range): Likewise.
18260         (simplify_div_or_mod_using_ranges): Likewise.
18261         * tree-cfg.c (group_case_labels_stmt): Use double-ints for
18262         comparing case labels for merging.
18263
18264 2011-05-03  Mark Wielaard  <mjw@redhat.com>
18265
18266         * dwarf2out.c (debug_str_hash_forced): Removed.
18267         (gen_label_for_indirect_string): Removed.
18268         (get_debug_string_label): Removed.
18269         (AT_string_form): Generate label directly.
18270         (output_indirect_string): Test indirect_string_node for
18271         DW_FORM_strp instead of checking label and refcount.
18272         (prune_indirect_string): Removed.
18273         (prune_unused_types): Don't check debug_str_hash_forced or
18274         call prune_indirect_string.
18275
18276 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
18277
18278         PR other/48093
18279         * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
18280
18281 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
18282
18283         PR debug/47994
18284         PR debug/47919
18285         * combine.c (try_combine): Skip debug insns at m_split tests.
18286
18287 2011-04-26  Mark Wielaard  <mjw@redhat.com>
18288
18289         PR42288
18290         * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
18291         when info_section_emitted.
18292
18293 2011-05-03  Joseph Myers  <joseph@codesourcery.com>
18294
18295         * config/mips/mips-opts.h: New.
18296         * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
18297         to mips-opts.h.
18298         (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
18299         (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
18300         or OPT_mr10k_cache_barrier_ here.  Access mips_cache_flush_func
18301         via opts pointer.
18302         * config/mips/mips.h (enum mips_code_readable_setting): Move to
18303         mips-opts.h.
18304         (mips_abi, mips_code_readable): Don't declare.
18305         * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
18306         (mabi=): Use Enum and Var.
18307         (mips_abi): New Enum and EnumValue entries.
18308         (mcode-readable=): Use Enum and Var.
18309         (mips_code_readable_setting): New Enum and EnumValue entries.
18310         (mr10k-cache-barrier=): Use Enum and Var.
18311         (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
18312
18313 2011-05-03  Jan Hubicka  <jh@suse.cz>
18314
18315         * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
18316         replace hash by pointer map.
18317         (cgraph_node_set_element_def, cgraph_node_set_element,
18318         const_cgraph_node_set_element, varpool_node_set_element_def,
18319         varpool_node_set_element, const_varpool_node_set_element): Remove.
18320         (free_cgraph_node_set, free_varpool_node_set): New function.
18321         (cgraph_node_set_size, varpool_node_set_size): Use vector size.
18322         * tree-emutls.c: Free varpool node set.
18323         * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
18324         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
18325         debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
18326         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
18327         dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
18328         Move here from ipa.c; implement using pointer_map
18329         * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
18330         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
18331         debug_cgraph_node_set, varpool_node_set_new,
18332         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
18333         dump_varpool_node_set, debug_varpool_node_set):
18334         Move to ipa-uitls.c.
18335         * passes.c (ipa_write_summaries): Update.
18336
18337 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
18338
18339         From Mike Frysinger:
18340         * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
18341         bf542/bf544/bf547/bf548/bf549.
18342
18343 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
18344
18345         * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
18346
18347 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
18348
18349         From Bernd Schmidt:
18350         * config/bfin/bfin.md (MOVCC): New mode_macro.
18351         (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
18352         movsicc_insn1, movsicc_insn2 and movsicc and macroized.  Remove
18353         comments from generated assembly.
18354
18355 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
18356
18357         From Bernd Schmidt
18358         * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
18359         * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
18360         * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
18361         * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
18362         * config/bfin/lib1funcs.asm (___muldi3): New function.
18363
18364 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
18365
18366         * config/stormy16/stormy16 (xstormy16_init_builtins): Call
18367         build_function_type_list instead of build_function_type.
18368         Rearrange initialization of `args' to do so.
18369
18370 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
18371
18372         * config/i386/i386.c (ix86_code_end): Call build_function_type_list
18373         instead of build_function_type.
18374
18375 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
18376
18377         * config/rs6000/rs6000.c (spe_init_builtins): Call
18378         build_function_type_list instead of build_function_type.
18379         (paired_init_builtins, altivec_init_builtins): Likewise.
18380         (builtin_function_type): Likewise.
18381
18382 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
18383
18384         * config/sh/sh.c (sh_media_init_builtins): Call
18385         build_function_type_list instead of build_function_type.
18386
18387 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
18388
18389         * config/sparc/sparc.c (sparc_file_end): Call
18390         build_function_type_list instead of build_function_type.
18391
18392 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
18393
18394         * config/alpha/alpha.c (alpha_init_builtins): Call
18395         build_function_type_list instead of build_function_type.
18396
18397 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
18398
18399         * config/xtensa/xtensa.c (xtensa_init_builtins): Call
18400         build_function_type_list instead of build_function_type.
18401
18402 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
18403
18404         * config/iq2000/i2000.c (iq2000_init_builtins): Call
18405         build_function_type_list instead of build_function_type.
18406         Delete `endlink' variable.
18407
18408 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
18409
18410         * config/avr/avr.c (avr_init_builtins): Call
18411         build_function_type_list instead of build_function_type.
18412
18413 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
18414
18415         * config/picochip/picochip.c (picochip_init_builtins): Call
18416         build_function_type_list instead of build_function_type.
18417         Delete `endlink' variable.
18418
18419 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
18420
18421         * config/bfin/bfin.c (bfin_init_builtins): Call
18422         build_function_type_list instead of build_function_type.
18423
18424 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
18425
18426         From Bernd Schmidt
18427         * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
18428         that's not CONST_INT.  Seemingly redundant check is due to PR39768.
18429
18430 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
18431
18432         From Jie Zhang:
18433         * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
18434         libbffastfp overrides libgcc when -mfast-fp.
18435
18436 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
18437
18438         Originally from Bernd Schmidt
18439         * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
18440         * config/bfin/bfin.c (override_options): Test it and error if
18441         TARGET_FDPIC.
18442
18443 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
18444
18445         Originally From Bernd Schmidt
18446         * config/bfin/bfin.c (override_options): Disable -fstack-limit for
18447         FD-PIC.
18448
18449 2011-05-03  Jeff Law  <law@redhat.com>
18450
18451         * tree-ssa-threadupdate.c (THREAD_TARGET): define.
18452         (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
18453         (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
18454         than accessing AUX field directly.  Free the AUX field before
18455         clearing it.
18456         (thread_block, thread_through_loop_header): Likewise.
18457         (thread_single_edge, mark_threaded_blocks): Likewise.
18458         (redirect_edges): Delay clearing the AUX field.  Free the AUX field.
18459         (register_jump_thread): Do not attempt to thread to a NULL edge.
18460
18461 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
18462
18463         * function.c (init_function_start): Call decide_function_section.
18464         * varasm.c (decide_function_section): New function.
18465         (assemble_start_function): When not using
18466         flag_reorder_blocks_and_partition, don't compute in_cold_section_p
18467         or first_function_block_is_cold.
18468         * rtl.h (decide_function_section): Declare.
18469
18470 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
18471             Jakub Jelinek  <jakub@redhat.com>
18472
18473         PR target/48774
18474         * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
18475         only succeed if req_mode is the same as set_mode.
18476
18477 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
18478
18479         * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
18480         * genemit.c (gen_exp): Handle RETURN.
18481         * emit-rtl.c (verify_rtx_sharing): Likewise.
18482         (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
18483         * rtl.c (copy_rtx): RETURN is shared.
18484         * rtl.h (enum global_rtl_index): Add GR_RETURN.
18485         (ret_rtx): New.
18486         * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
18487         * config/s390/s390.c (s390_emit_epilogue): Likewise.
18488         * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
18489         * config/cris/cris.c (cris_expand_return): Likewise.
18490         * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
18491         * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
18492         rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
18493         * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
18494         * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
18495         Likewise.
18496         * config/v850/v850.c (expand_epilogue): Likewise.
18497         * config/bfin/bfin.c (bfin_expand_call): Likewise.
18498         * config/arm/arm.md (epilogue): Likewise.
18499         * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
18500         * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
18501         variable to ret_reg.
18502
18503 2011-05-03  Richard Guenther  <rguenther@suse.de>
18504
18505         PR lto/48846
18506         * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
18507         Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
18508         * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
18509
18510 2011-05-03  Richard Guenther  <rguenther@suse.de>
18511
18512         * c-decl.c (grokdeclarator): Instead of looking at
18513         TREE_OVERFLOW check if the constant fits in the index type.
18514
18515 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
18516
18517         * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
18518         (vec_store_lanes<mode><mode>): Likewise.
18519
18520 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
18521
18522         * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
18523         * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
18524         convert_optab_index values.
18525         (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
18526         * genopinit.c (optabs): Initialize the new optabs.
18527         * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
18528         * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
18529         (expand_STORE_LANES): New functions.
18530         * tree.h (build_array_type_nelts): Declare.
18531         * tree.c (build_array_type_nelts): New function.
18532         * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
18533         (vect_model_load_cost): Likewise.
18534         (vect_store_lanes_supported, vect_load_lanes_supported)
18535         (vect_record_strided_load_vectors): Declare.
18536         * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
18537         (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
18538         (vect_transform_strided_load): Split out statement recording into...
18539         (vect_record_strided_load_vectors): ...this new function.
18540         * tree-vect-stmts.c (create_vector_array, read_vector_array)
18541         (write_vector_array, create_array_ref): New functions.
18542         (vect_model_store_cost): Add store_lanes_p argument.
18543         (vect_model_load_cost): Add load_lanes_p argument.
18544         (vectorizable_store): Try to use store-lanes functions for
18545         interleaved stores.
18546         (vectorizable_load): Likewise load-lanes and loads.
18547         * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
18548         to vect_model_store_cost.
18549         (vect_build_slp_tree): Likewise vect_model_load_cost.
18550
18551 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
18552
18553         * hooks.h (hook_bool_mode_uhwi_false): Declare.
18554         * hooks.c (hook_bool_mode_uhwi_false): New function.
18555         * target.def (array_mode_supported_p): New hook.
18556         * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
18557         * doc/tm.texi: Regenerate.
18558         * stor-layout.c (mode_for_array): New function.
18559         (layout_type): Use it.
18560         * config/arm/arm.c (arm_array_mode_supported_p): New function.
18561         (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
18562
18563 2011-05-03  Eric Botcazou  <ebotcazou@adacore.com>
18564
18565         PR target/48723
18566         * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
18567         for -fstack-check if the size to allocate is negative.
18568
18569 2011-05-02  Lawrence Crowl  <crowl@google.com>
18570
18571         * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
18572         (timevar_cond_start): New for starting a timer only when it is not
18573         already running.
18574         (timevar_cond_stop): New for stopping a timer when it was not already
18575         running.
18576
18577         * timevar.c (timevar_stop): Enable start/stop timers to start again.
18578         (timevar_cond_start): New as above.
18579         (timevar_cond_stop): New as above.
18580
18581         * timevar.def: Add start/stop timers for compiler phases,
18582         TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
18583         TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
18584         and TV_PHASE_FINALIZE.
18585         Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
18586         Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
18587         TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
18588         Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
18589         Make unused TV_OVERLOAD into a start/stop timer.
18590
18591         Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
18592         Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
18593         to indicate that they are start/stop timers.
18594
18595         * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
18596         Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
18597         Move initialization to do_compile.
18598         (do_compile): Add initialization from above.
18599         Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
18600
18601         * c-decl.c (c_write_global_declarations): Add start/stop of
18602         TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
18603
18604         * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
18605         or TV_PARSE_INLINE, as appropriate.
18606         (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
18607         (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
18608
18609 2011-05-02  Jason Merrill  <jason@redhat.com>
18610
18611         PR c++/40975
18612         * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
18613
18614 2011-05-02  Simon Martin  <simartin@users.sourceforge.net>
18615
18616         PR c/35445
18617         * c-decl.c (finish_decl): Only create a composite if the types are
18618         compatible.
18619
18620 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
18621
18622         * config/fr30/fr30-protos.h (Mmode): Don't define.
18623         * config/m32r/m32r-protos.h (Mmode): Don't define.  Expand
18624         definition where used.
18625         * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
18626         define.  Expand definitions where used.
18627         * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
18628         Expand definitions where used.
18629         * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
18630         rx_function_arg, rx_function_arg_advance,
18631         rx_function_arg_boundary): Expand definitions of those macros.
18632         * config/v850/v850-protos.h (Mmode): Don't define.  Expand
18633         definition where used.
18634
18635 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
18636
18637         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
18638         reg<->xmm moves.
18639         (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
18640         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.  Merge
18641         with *movv2sf_internal_rex64_avx.
18642         (*movv2sf_internal): Merge with *movv2sf_internal_avx.
18643         * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
18644         Use %v prefix in insn mnemonic to handle TARGET_AVX.
18645         (*movdi_internal): Add "isa" attribute.  Use "maybe_vex" instead of
18646         "vex" in "prefix" attribute calculation.
18647         (*movdf_internal): Output AVX mnemonics.  Add "prefix" attribute.
18648
18649 2011-05-02  Stuart Henderson  <shenders@gcc.gnu.org>
18650
18651         PR target/47951
18652         * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
18653         inputs match the output.
18654
18655 2011-05-02  Andreas Schwab  <schwab@linux-m68k.org>
18656
18657         PR target/47955
18658         * config/m68k/m68k.c (m68k_expand_prologue): Set
18659         current_function_static_stack_size.
18660
18661 2011-05-02   Jan Hubicka  <jh@suse.cz>
18662
18663         * lto-streamer.c (lto_streamer_cache_insert_1,
18664         lto_streamer_cache_lookup, lto_streamer_cache_create,
18665         lto_streamer_cache_delete): Use pointer map instead of hashtable.
18666         * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
18667
18668 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
18669
18670         * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
18671         config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
18672         config/m68k/t-opts: New files.
18673         * config/m68k/m68k-tables.opt: New file (generated).
18674         * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
18675         extra_options and m68k/t-opts to tmake_file.
18676         * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
18677         (all_isas): Initialize using m68k-isas.def.
18678         (all_microarchs): Initialize using m68k-microarchs.def.
18679         (m68k_find_selection): Remove.
18680         (m68k_handle_option): Don't assert that global structures are in
18681         use.  Use error_at.  Access variables via opts pointer.  Don't
18682         handle -march=, -mcpu= and -mtune= here.  Set gcc_options fields
18683         directly for -m68020-40 and -m68020-60.
18684         (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
18685         m68k_tune_entry here.
18686         * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
18687         to m68k-opts.h.
18688         (m68k_library_id_string): Remove declaration.
18689         * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
18690         (m68k_library_id_string): New Variable.
18691         (march=, mcpu=, mtune=): Use Enum and Var.
18692
18693 2011-05-02  Richard Guenther  <rguenther@suse.de>
18694
18695         * varasm.c (output_constructor_regular_field): Compute zero-based
18696         index with double-ints.  Make sure to ICE instead of producing
18697         wrong code.
18698         * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
18699         in asserts.  Properly use a signed type.
18700
18701 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
18702
18703         * config/i386/sse.md (V): New mode iterator.
18704         (V_128): Rename from SSEMODE.  Make V2DF mode conditional on
18705         TARGET_SSE2.
18706         (V_256): Rename from AVX256MODE.
18707         (VF): Make V4SF mode unconditional.  Add TARGET_SSE instruction
18708         condition to all users.
18709         (VF1): Ditto.
18710         (VF2): Make V2DF mode unconditional.  Add TARGET_SSE2 instruction
18711         condition to all users.
18712         (VF_128): Make V4SF mode unconditional.
18713         (VF_256): Rename from AVX256MODEF2P.
18714         (VI4F_128): Rename from SSEMODE4S.
18715         (VI8F_128): Rename from SSEMODE2D.
18716         (VI4F_256): Rename from AVX256MODE8P.
18717         (VI8F_256): Rename from AVX256MODE4P.
18718         (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
18719         (ssescalarmodesuffix): Remove SF and DF modes.
18720         (SSEMODE124): Remove.
18721         (SSEMODE1248): Ditto.
18722         (SSEMODEF2P): Ditto.
18723         (AVXMODEF2P): Ditto.
18724         (AVXMODEFDP): Ditto.
18725         (AVXMODEFSP): Ditto.
18726         (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
18727         unconditional.
18728         (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO.  Make V4SF mode
18729         unconditional.
18730         (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
18731         xop_pcmov_<mode>256.  Use V mode iterator.
18732
18733         Adjust RTX patterns globally for renamed mode attributes.
18734
18735 2011-05-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
18736
18737         * haifa-sched.c (sched_emit_insn): Emit insn before first
18738         non-scheduled insn.  Inform back-end about new insn.  Add
18739         new insn to scheduled_insns list.
18740
18741 2011-05-02  Richard Guenther  <rguenther@suse.de>
18742
18743         PR tree-optimization/48822
18744         * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
18745         (process_scc): Indicate which iteration we start.
18746
18747 2011-05-02  Jan Hubicka  <jh@suse.cz>
18748
18749         * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
18750         (lto_section_overrun): New.
18751         * lto-section-out.c (append_block): Rename to ...
18752         (lto_append_block): ... this one; export.
18753         (lto_output_1_stream): Move lto lto-streamer.h
18754         (lto_output_data_stream): Update.
18755         * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
18756         (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
18757         functions.
18758
18759 2011-05-02  Richard Guenther  <rguenther@suse.de>
18760
18761         * tree.c (tree_code_counts): New global array.
18762         (record_node_allocation_statistics): Count individual tree codes.
18763         (dump_tree_statistics): Dump individual code stats.
18764
18765 2011-05-01  Jan Hubicka  <jh@suse.cz>
18766
18767         * ipa-inline.c (caller_growth_limits): Fix thinko when
18768         looking for largest stack frame.
18769         * ipa-inline.h (dump_inline_summary): Declare.
18770         * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
18771         on stack usage.
18772         (dump_inline_summary): Export.
18773         (debug_inline_summary): Declare as DEBUG_FUNCTION.
18774
18775 2011-05-01  Anatoly Sokolov  <aesok@post.ru>
18776
18777         * reginfo.c (memory_move_cost): Change rclass argument type form
18778         'enum reg_class' to reg_class_t.
18779         * reload.h (memory_move_cost): Update prototype.
18780         * postreload.c reload_cse_simplify_set): Change type dclass var to
18781         reg_class_t.
18782         * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
18783         Update prototype.
18784         (ira_allocate_and_set_costs): Change aclass argument type form
18785         'enum reg_class' to reg_class_t.
18786         * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
18787         Change aclass argument type to reg_class_t.
18788         (update_conflict_hard_reg_costs): Change type aclass and pref vars
18789         to reg_class_t.
18790         * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
18791         memory_move_cost call.
18792
18793         * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
18794         'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
18795         Change type tmp var to reg_class_t.
18796
18797 2011-04-30  Jan Hubicka  <jh@suse.cz>
18798
18799         * ipa-inline.c (can_inline_edge_p): Disregard limits when
18800         inlining into function with flatten attribute.
18801         (want_inline_small_function_p): Be more realistic about inlining
18802         cold calls where callee size grows.
18803
18804 2011-04-30  Jan Hubicka  <jh@suse.cz>
18805
18806         * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
18807         flags.
18808
18809 2011-04-30  Anatoly Sokolov  <aesok@post.ru>
18810
18811         * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
18812         PRINT_OPERAND_PUNCT_VALID_P): Remove.
18813         * config/sparc/sparc-protos.h (print_operand): Remove declaration.
18814         * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
18815         TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
18816         (print_operand): Rename to...
18817         (sparc_print_operand): ...this. Make static. Adjust
18818         sparc_print_operand function call.
18819         (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
18820         functions.
18821
18822 2011-04-30  Jan Hubicka  <jh@suse.cz>
18823
18824         PR middle-end/48752
18825         * ipa-inline.c (early_inliner): Disable when doing late
18826         addition of function.
18827
18828 2011-04-30  Jakub Jelinek  <jakub@redhat.com>
18829
18830         * dwarf2out.c (get_address_mode): New inline.
18831         (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
18832         if not dwarf_strict emit
18833         DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
18834         desirable.  Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
18835         UNSIGNED_FLOAT, FIX and UNSIGNED_FIX.  Just return NULL for
18836         FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
18837         (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
18838         dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
18839         mem_loc_descriptor callers.
18840         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
18841         output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
18842         Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
18843         DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
18844         (base_types): New variable.
18845         (get_base_type_offset, calc_base_type_die_sizes,
18846         base_type_for_mode, mark_base_types, base_type_cmp,
18847         move_marked_base_types): New functions.
18848         (calc_die_sizes): Assert that die_offset is 0 or equal to
18849         next_die_offset.
18850         (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
18851         others defer to mem_loc_descriptor.  Adjust mem_loc_descriptor
18852         callers.  If not dwarf_strict, call mem_loc_descriptor even for
18853         non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
18854         (gen_subprogram_die): Don't give up on call site parameters
18855         with non-integral or large integral modes.  Adjust
18856         mem_loc_descriptor callers.
18857         (prune_unused_types): Call prune_unused_types_mark on base_types
18858         vector entries.
18859         (resolve_addr): Call mark_base_types.
18860         (dwarf2out_finish): Call move_marked_base_types.
18861
18862         PR tree-optimization/48809
18863         * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
18864         type.
18865         (gen_inbound_check): Don't compute index_expr - range_min in utype
18866         again, instead reuse SSA_NAME initialized in build_arrays.
18867         Remove two useless gsi_for_stmt calls.
18868
18869 2011-04-29  Jeff Law  <law@redhat.com>
18870
18871         * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
18872
18873 2011-04-29  Martin Jambor  <mjambor@suse.cz>
18874
18875         * cgraph.h (cgraph_postorder): Remove declaration.
18876         * ipa-utils.h (ipa_free_postorder_info): Declare.
18877         (ipa_reverse_postorder): Likewise.
18878         * cgraphunit.c: Include ipa-utils.h.
18879         (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
18880         * ipa-inline.c: Include ipa-utils.h.
18881         (ipa_inline): Update call to ipa_reverse_postorder.
18882         * ipa-pure-const.c (propagate_pure_const): Update call to
18883         ipa_reduced_postorder and ipa_print_order.  Call
18884         ipa_free_postorder_info to clean up.
18885         (propagate_nothrow): Likewise.
18886         * ipa-reference.c (propagate): Removed a useless call to
18887         ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
18888         and ipa_print_order.  Call ipa_free_postorder_info to clean up.
18889         * ipa.c: Include ipa-utils.h.
18890         (ipa_profile): Update call to ipa_reverse_postorder.
18891         (cgraph_postorder): Moved to...
18892         * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
18893         (ipa_utils_print_order): Renamed to ipa_print_order.
18894         (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
18895         comments.
18896         (ipa_free_postorder_info): New function.
18897         * passes.c: Include ipa-utils.h.
18898         (do_per_function_toporder): Update call to ipa_reverse_postorder.
18899         (ipa_write_summaries): Likewise.
18900         * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
18901         (cgraphunit.o): Likewise.
18902         (ipa.o): Likewise.
18903         (ipa-inline.o): Likewise.
18904
18905 2011-04-29  Jan Hubicka  <jh@suse.cz>
18906
18907         * gcc.dg/tree-ssa/inline-10.c: New testcase.
18908         * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
18909         * ipa-inline.h (clause_t): Turn into unsigned int.
18910         * ipa-inline-analysis.c (add_clause): Do more simplification.
18911         (and_predicates): Shortcut more cases.
18912         (predicates_equal_p): Move forward; check that clauses are properly
18913         ordered.
18914         (or_predicates): Shortcut more cases.
18915         (edge_execution_predicate): Rewrite as...
18916         (set_cond_stmt_execution_predicate): ... this function; handle
18917         __builtin_constant_p.
18918         (set_switch_stmt_execution_predicate): New .
18919         (compute_bb_predicates): New.
18920         (will_be_nonconstant_predicate): Update TODO.
18921         (estimate_function_body_sizes): Use compute_bb_predicates
18922         and free them later, always try to estimate if stmt is constant.
18923         (estimate_time_after_inlining, estimate_size_after_inlining):
18924         Gracefully handle optimized out edges.
18925         (read_predicate): Fix off by one error.
18926
18927 2011-04-29  Nicola Pero  <nicola.pero@meta-innovation.com>
18928
18929         * Makefile.in (ENABLE_MAINTAINER_RULES): New.
18930
18931 2011-04-27  Xinliang David Li  <davidxl@google.com>
18932
18933         * tree-profile.c (init_ic_make_global_vars): Set
18934         tls attribute on ic vars.
18935         * coverage.c (coverage_end_function): Initialize
18936         function_list with zero.
18937
18938 2011-04-29  Richard Guenther  <rguenther@suse.de>
18939
18940         * builtins.c (fold_builtin_classify_type): Use integer_type_node
18941         for the type of the result.
18942         (fold_builtin_isascii): Likewise.
18943         (fold_builtin_toascii): Use integer_type_node where appropriate.
18944         (fold_builtin_logb): Likewise.
18945         (fold_builtin_frexp): Likewise.
18946         (fold_builtin_strstr): Likewise.
18947         (fold_builtin_strpbrk): Likewise.
18948         (fold_builtin_fputs): Likewise.
18949         (fold_builtin_sprintf): Likewise.
18950         (fold_builtin_snprintf): Likewise.
18951         (fold_builtin_printf): Likewise.
18952         (do_mpfr_remquo): Use a proper type for the assigned constant.
18953         (do_mpfr_lgamma_r): Likewise.
18954         * dwarf2out.c (resolve_one_addr): Use size_int.
18955         * except.c (init_eh): Likewise.
18956         (assign_filter_values): Use integer_type_node for filter values.
18957         (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
18958         indices.
18959         * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
18960         for EH region numbers.
18961         * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
18962         for the shift amount.
18963
18964 2011-04-29  Richard Guenther  <rguenther@suse.de>
18965
18966         * expr.h (expand_shift): Rename to ...
18967         (expand_variable_shift): ... this.
18968         (expand_shift): Take a constant shift amount.
18969         * expmed.c (expand_shift): Rename to ...
18970         (expand_variable_shift): ... this.
18971         (expand_shift): New wrapper around expand_variable_shift.
18972         * expr.c (convert_move, emit_group_load_1, emit_group_store,
18973         optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
18974         expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
18975         * expmed.c (store_fixed_bit_field, extract_bit_field_1,
18976         extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
18977         expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
18978         extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
18979         emit_store_flag_1, emit_store_flag): Likewise.
18980         * builtins.c (expand_builtin_signbit): Likewise.
18981         * calls.c (load_register_parameters): Likewise.
18982         * function.c (assign_parm_setup_block): Likewise.
18983         * lower-subreg.c (resolve_shift_zext): Likewise.
18984         * optabs.c (widen_bswap, expand_abs_nojump,
18985         expand_one_cmpl_abs_nojump, expand_float): Likewise.
18986         * spu/spu.c (spu_expand_extv): Likewise.
18987         * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
18988
18989 2011-04-29  Richard Guenther  <rguenther@suse.de>
18990
18991         * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
18992         for the remapped region number.
18993         * predict.c (build_predict_expr): Use integer_type_node for the
18994         predict kind.
18995         * fold-const.c (fold_binary_loc): Use integer_type_node for
18996         the shift amount.  Use a proper type for the PLUS_EXPR operand.
18997
18998 2011-04-29  Michael Matz  <matz@suse.de>
18999
19000         * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
19001         other trees that just builtins.
19002         (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
19003
19004 2011-04-29  Richard Guenther  <rguenther@suse.de>
19005
19006         * tree-nested.c (get_trampoline_type): Use size_int.
19007         (get_nl_goto_field): Likewise.
19008         * tree-eh.c (lower_try_finally_switch): Use integer_type_node
19009         for all indexes.
19010         (lower_eh_constructs_2): Likewise.
19011         (lower_resx): Likewise.
19012         (lower_eh_dispatch): Likewise.
19013         * tree-mudflap.c (mf_build_string): Use size_int.
19014         (mudflap_register_call): Use integer_type_node for the flag.
19015         (mudflap_enqueue_constant): Use size_int.
19016         * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
19017         instead of rebuilding it.
19018
19019 2011-04-29  Richard Guenther  <rguenther@suse.de>
19020
19021         * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
19022         Handle OBJ_TYPE_REF.
19023         (find_func_aliases_for_call): Use it more consistently.
19024
19025 2011-04-29  Alexandre Oliva  <aoliva@redhat.com>
19026
19027         * haifa-sched.c (last_nondebug_scheduled_insn): New.
19028         (rank_for_schedule): Use it.
19029         (schedule_block): Set it.
19030
19031 2011-04-28  David Li  <davidxl@google.com>
19032
19033         * tree.c (crc32_string): Use crc32_byte.
19034         (crc32_byte): New function.
19035         * tree.h (crc32_byte): New function.
19036         * gcov.c (read_graph_file): Handle new cfg_cksum.
19037         (read_count_file): Ditto.
19038         * profile.c (instrument_values): Ditto.
19039         (get_exec_counts): Ditto.
19040         (read_profile_edge_counts): Ditto.
19041         (compute_branch_probabilities): Ditto.
19042         (compute_value_histograms): Ditto.
19043         (branch_prob): Ditto.
19044         (end_branch_prob): Ditto.
19045         * coverage.c (read_counts_file): Ditto.
19046         (get_coverage_counts): Ditto.
19047         (tree_coverage_counter_addr): Ditto.
19048         (coverage_checksum_string): Ditto.
19049         (coverage_begin_output): Ditto.
19050         (coverage_end_function): Ditto.
19051         (build_fn_info_type): Ditto.
19052         (build_fn_info_value): Ditto.
19053         * libgcov.c (gcov_exit): Ditto.
19054         * gcov-dump.c (tag_function): Ditto.
19055         (compute_checksum): Remove.
19056
19057 2011-04-29  Alan Modra  <amodra@gmail.com>
19058
19059         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
19060         unspec plus offset.  Tidy macho code.
19061
19062 2011-04-29  Martin Jambor  <mjambor@suse.cz>
19063
19064         * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
19065         node instead of a decl.  Update all callers.
19066         * cgraph.h: Update declaration.
19067
19068 2011-04-28  Ira Rosen  <ira.rosen@linaro.org>
19069
19070         PR tree-optimization/48765
19071         * tree-vectorizer.h (vect_make_slp_decision): Return bool.
19072         * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
19073         to indicate if loop aware SLP is being used.  Scan the statements
19074         and update the vectorization factor according to the type of
19075         vectorization before statement analysis.
19076         (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
19077         pass it to vect_analyze_loop_operations.
19078         (vectorizable_reduction): Set number of copies to 1 in case of pure
19079         SLP statement.
19080         * tree-vect-stmts.c (vectorizable_conversion,
19081         vectorizable_assignment, vectorizable_shift,
19082         vectorizable_operation, vectorizable_type_demotion,
19083         vectorizable_type_promotion, vectorizable_store, vectorizable_load):
19084         Likewise.
19085         (vectorizable_condition): Move the check that it is not SLP
19086         vectorization before the number of copies check.
19087         * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
19088         to vectorize the loop using SLP.
19089
19090 2011-04-28  Jakub Jelinek  <jakub@redhat.com>
19091
19092         PR middle-end/48597
19093         * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
19094         inline asm.
19095
19096 2011-04-28  Joseph Myers  <joseph@codesourcery.com>
19097
19098         * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
19099         *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
19100         (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
19101         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
19102         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
19103         linux*.h headers.
19104         * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
19105         * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
19106         * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
19107         * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
19108         * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
19109         * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
19110         REG_NAME.
19111         * config/i386/linux.h (REG_NAME): Don't define.
19112         * config/i386/linux64.h (REG_NAME): Don't define.
19113         * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
19114         Undefine before defining.
19115
19116 2011-04-28  Jan Hubicka  <jh@suse.cz>
19117
19118         * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
19119         nonconstant_names array.
19120         (estimate_function_body_sizes): Build nonconstant_names array; handle
19121         BUILT_IN_CONSTANT_P.
19122
19123 2011-04-28  Richard Guenther  <rguenther@suse.de>
19124
19125         PR bootstrap/48804
19126         Revert
19127         2011-04-28  Richard Guenther  <rguenther@suse.de>
19128
19129         * tree-ssa-structalias.c (solve_constraints): Build succ graph
19130         as late as possible.
19131
19132 2011-04-28  Richard Guenther  <rguenther@suse.de>
19133
19134         * tree-ssa-structalias.c (dump_constraint): Don't end the line.
19135         (debug_constraint): Do it here.
19136         (dump_constraints): And here.
19137         (rewrite_constraints): And here.
19138         (dump_constraint_edge): Remove.
19139         (dump_constraint_graph): Rewrite to produce DOT output.
19140         (solve_constraints): Build succ graph as late as possible.
19141         Dump constraint graphs before and after solving.
19142
19143 2011-04-28  Richard Guenther  <rguenther@suse.de>
19144
19145         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
19146         New function split out from ...
19147         (find_func_aliases): ... here.  Call it.
19148         (find_func_aliases_for_call): Likewise.
19149
19150 2011-04-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
19151
19152         * internal-fn.h (internal_fn_name_array): Declare.
19153         (internal_fn_flags_array): Likewise.
19154
19155 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
19156
19157         * config/i386/i386.md (ssemodesuffix):  Merge with ssevecsize,
19158         ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
19159         Move from sse.md.
19160         (ssemodefsuffix): Remove.
19161         (ssevecmodesuffix): New mode attribute.
19162         (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
19163         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
19164         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
19165         *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
19166         *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
19167         *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
19168         *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
19169         ssemodesuffix mode attribute.
19170         (float splitters): Use ssevecmodesuffix mode attribute.
19171         * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
19172         (sseinsmode): Rename from avxvecmode.
19173         (avxsizesuffix): Rename from avxmodesuffix.
19174         (sseintvecmode): Rename from avxpermvecmode.
19175         (ssedoublevecmode): Rename from ssedoublesizemode.
19176         (ssehalfvecmode): Rename from avxhalfvecmode.
19177         (ssescalarmode): Rename from avxscalarmode.
19178         (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
19179         templates for ssemodesuffix mode attribute.
19180         (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
19181         mode attribute.
19182
19183         Adjust RTX patterns globally for renamed mode attributes.
19184
19185 2011-04-27  Jan Hubcika  <jh@suse.cz>
19186
19187         * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
19188         * ipa-inline-analysis.c: Include alloc-pool.h.
19189         (edge_predicate_pool): New.
19190         (trye_predicate_p): New function
19191         (false_predicate_p): New function.
19192         (add_clause): Sanity check that false clauses are "optimized";
19193         never add clauses to predicate that is already known to be false.
19194         (and_predicate): Use flase_predicate_p.
19195         (evaulate_predicate): Rename to ...
19196         (evaluate_predicate): ... this one; update all callers; assert
19197         that false is not listed among possible truths.
19198         (dump_predicate): Use true_predicate_p.
19199         (account_size_time): Use false_predicate_p.
19200         (evaulate_conditions_for_edge): Rename to ...
19201         (evaluate_conditions_for_edge) ... this one.
19202         (edge_set_predicate): New function.
19203         (inline_edge_duplication_hook): Duplicate edge predicates.
19204         (inline_edge_removal_hook): Free edge predicates.
19205         (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
19206         (dump_inline_summary): Update.
19207         (estimate_function_body_sizes): Set edge predicates.
19208         (estimate_calls_size_and_time): Handle predicates.
19209         (estimate_callee_size_and_time): Update.
19210         (remap_predicate): Add toplev_predicate; update comment.
19211         (remap_edge_predicates): New function.
19212         (inline_merge_summary): Compute toplev predicate; update.
19213         (read_predicate): New function.
19214         (read_inline_edge_summary): Use it.
19215         (inline_read_section): Likewise.
19216         (write_predicate): New function.
19217         (write_inline_edge_summary): Use it.
19218         (inline_write_summary): Likewise.
19219         (inline_free_summary): Free alloc pool and edge summary vec.
19220
19221 2011-04-27  Richard Guenther  <rguenther@suse.de>
19222
19223         * tree-ssa-structalias.c (changed_count): Remove.
19224         (changed): Use a bitmap.
19225         (unify_nodes): Adjust.
19226         (do_sd_constraint): Likewise.
19227         (do_ds_constraint): Likewise.
19228         (do_complex_constraint): Likewise.
19229         (solve_graph): Likewise.
19230
19231 2011-04-27  Jan Hubicka  <jh@suse.cz>
19232
19233         * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
19234
19235 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
19236
19237         * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
19238         (avx_vperm2f128_*_operand): Ditto.
19239         * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
19240         Use avx_vpermilp_parallel in insn condition.
19241         (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
19242         Use avx_vperm2f128_parallel in insn condition.
19243
19244 2011-04-27  Richard Guenther  <rguenther@suse.de>
19245
19246         * Makefile.in (tree-ssa-structalias.o): Remove
19247         gt-tree-ssa-structalias.h dependency.
19248         (GTFILES): Remove tree-ssa-structalias.c.
19249         * tree.c (allocate_decl_uid): New function.
19250         (make_node_stat): Use it.
19251         (copy_node_stat): Likewise.
19252         * tree.h (allocate_decl_uid): Declare.
19253         * tree-ssa-alias.h (delete_alias_heapvars): Remove.
19254         * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
19255         * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
19256         * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
19257         * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
19258         (struct heapvar_map): Likewise.
19259         (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
19260         heapvar_insert): Likewise.
19261         (make_heapvar_for): Rename to ...
19262         (make_heapvar): ... this.  Simplify.
19263         (fake_var_decl_obstack): New global var.
19264         (build_fake_var_decl): New function.
19265         (make_constraint_from_heapvar): Adjust.
19266         (handle_lhs_call): Likewise.
19267         (create_function_info_for): Likewise.
19268         (intra_create_variable_infos): Likewise.
19269         (init_alias_vars): Allocate fake_var_decl_obstack.
19270         (init_alias_heapvars, delete_alias_heapvars): Remove.
19271         (compute_points_to_sets): Do not call init_alias_heapvars.
19272         (ipa_pta_execute): Likewise.
19273         (delete_points_to_sets): Free fake_var_decl_obstack.
19274
19275 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
19276
19277         * config/spu/divmovti4.c (union qword_UTItype): New data type.
19278         (si_from_UTItype, si_to_UTItype): New functions.
19279         (__udivmodti4): Use them to implement type-punning.
19280         * config/spu/multi3.c (union qword_TItype): New data type.
19281         (si_from_TItype, si_to_TItype): New functions.
19282         (__multi3): Use them to implement type-punning.
19283
19284 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
19285
19286         * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
19287
19288 2011-04-27  Jan Hubicka  <jh@suse.cz>
19289
19290         * ipa-prop.c (function_insertion_hook_holder): New holder.
19291         (ipa_add_new_function): New function.
19292         (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
19293         Register/deregister holder.
19294
19295 2011-04-27  Richard Guenther  <rguenther@suse.de>
19296
19297         PR tree-optimization/48772
19298         * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
19299
19300 2011-04-27  Richard Guenther  <rguenther@suse.de>
19301
19302         * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
19303         TARGET_MEM_REF handling.
19304
19305 2011-04-27  Nick Clifton  <nickc@redhat.com>
19306
19307         * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
19308         ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
19309         (REG_CLASS_NAMES): Likewise.
19310         (REG_CLASS_CONTENTS): Likewise.
19311         (EVEN_ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
19312         (ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
19313         (FEVEN_REGS): New macro.  Alias for QUAD_ACC_REGS.
19314         (FPR_REGS): New macro.  Alias for QUAD_ACC_REGS.
19315         (EVEN_REGS): New macro.  Alias for QUAD_REGS.
19316         * config/frv/frv.c (frv_secondary_reload_class): Remove use of
19317         duplicate register classes.
19318         (frv_class_likely_spilled_p): Likewise.
19319         (frv_register_move_cost): Likewise.
19320
19321         * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
19322         end of the regno_reg_class array.
19323
19324 2011-04-27  Jakub Jelinek  <jakub@redhat.com>
19325
19326         PR c/48742
19327         * c-typeck.c (build_binary_op): Don't wrap arguments if
19328         int_operands is true.
19329
19330 2011-04-26  Kaz Kojima  <kkojima@gcc.gnu.org>
19331
19332         PR target/48767
19333         * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
19334         targetm.calls.must_pass_in_stack for void type.
19335
19336 2011-04-26  Jan Hubicka  <jh@suse.cz>
19337
19338         * cgraphbuild.c (build_cgraph_edges): Update call
19339         of cgraph_create_edge and cgraph_create_indirect_edge.
19340         * cgraph.c (cgraph_create_edge_including_clones,
19341         cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
19342         cgraph_update_edges_for_call_stmt_node): Do not take nest
19343         argument; do not initialize call_stmt_size/time.
19344         (dump_cgraph_node): Do not dump nest.
19345         (cgraph_clone_edge): Do not take loop_nest argument;
19346         do not propagate it; do not clone call_stmt_size/time.
19347         (cgraph_clone_node): Likewise.
19348         (cgraph_create_virtual_clone): Update.
19349         * cgraph.h (struct cgraph_edge): Remove
19350         call_stmt_size/call_stmt_time/loop_nest.
19351         (cgraph_create_edge, cgraph_create_indirect_edge,
19352         cgraph_create_edge_including_clones, cgraph_clone_node): Update
19353         prototype.
19354         * tree-emutls.c (gen_emutls_addr): Update.
19355         * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
19356         loop_nest; handle indirect calls, too.
19357         (clone_inlined_nodes): Do not care about updating inline summaries.
19358         * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
19359         * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
19360         stream call_stmt_size/call_stmt_time/loop_nest.
19361         * ipa-inline.c (edge_badness): Update.
19362         (ipa_inline): dump summaries after inlining.
19363         * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
19364         New.
19365         (inline_edge_summary): New function.
19366         * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
19367         (inline_edge_removal_hook): Handle edge summaries.
19368         (inline_edge_duplication_hook): New hook.
19369         (inline_summary_alloc): Alloc hooks.
19370         (initialize_growth_caches): Do not register removal hooks.
19371         (free_growth_caches); Do not free removal hook.
19372         (dump_inline_edge_summary): New function.
19373         (dump_inline_summary): Use it.
19374         (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
19375         (inline_update_callee_summaries): New function.
19376         (inline_merge_summary): Use it.
19377         (do_estimate_edge_time, do_estimate_edge_growth): Update.
19378         (read_inline_edge_summary): New function.
19379         (inline_read_section): Use it.
19380         (write_inline_edge_summary): New function.
19381         (inline_write_summary): Use it.
19382         (inline_free_summary): Free edge new holders.
19383         * tree-inline.c (copy_bb): Update.
19384
19385 2011-04-26  Jason Merrill  <jason@redhat.com>
19386
19387         * tree-eh.c (lower_try_finally_switch): Create the label along with
19388         the CASE_LABEL_EXPR.
19389
19390 2011-04-26  David S. Miller  <davem@davemloft.net>
19391             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19392
19393         * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
19394         * configure: Regenerate.
19395
19396 2011-04-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
19397
19398         PR target/48258
19399         * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
19400         reduction.
19401         (VEC_reduc): New code iterator and splitters for vector reduction.
19402         (VEC_reduc_name): Ditto.
19403         (VEC_reduc_rtx): Ditto.
19404         (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
19405         (reduc_<VEC_reduc_name>_v4sf): Ditto.
19406
19407         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
19408         support for extracting SF on VSX.
19409
19410         * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
19411         generating xscvspdp.
19412         (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
19413         (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
19414         double add, minimum, maximum vector reduction.
19415         (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
19416         (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
19417         optimize double vector reduction.
19418         (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
19419
19420 2011-04-26  Joseph Myers  <joseph@codesourcery.com>
19421
19422         * config/fr30/fr30.h (inhibit_libc): Don't define.
19423         * config/m32r/m32r-protos.h: Correct comment.
19424         * config/v850/v850.h (GHS_default_section_names,
19425         GHS_current_section_names): Use tree, not union tree_node *.
19426
19427 2011-04-26  Xinliang David Li  <davidxl@google.com>
19428
19429         * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
19430         * c-family/c-opts.c (c_common_handle_option): Set
19431         warn_maybe_uninitialized.
19432         * opts.c (common_handle_option): Ditto.
19433         * common.opt:  New option.
19434         * tree-ssa.c (warn_uninit): Add one more parameter.
19435         (warn_uninitialized_var): Pass warning code.
19436         * tree-flow.h: Interface change.
19437
19438 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19439
19440         * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
19441         (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
19442         (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
19443
19444 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19445
19446         * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
19447         * config/mips/mips.opt (mmips-tfile): Remove.
19448
19449         * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
19450         mips-tdump reference to ...
19451         (Specific, alpha*-dec-osf5.1): ... here.  Adapt for Tru64 UNIX.
19452         * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
19453         reference by Tru64 UNIX.
19454
19455 2011-04-26  Jakub Jelinek  <jakub@redhat.com>
19456
19457         PR debug/48768
19458         * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
19459         is error_mark_node, set value to NULL.
19460
19461         PR tree-optimization/48734
19462         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
19463         if return value from maybe_fold_*_comparsions isn't something
19464         the code is prepared to handle.
19465
19466 2011-04-26  Uros Bizjak  <ubizjak@gmail.com>
19467
19468         * config/i386/predicates.md (ext_QIreg_operand): Remove extra
19469         mode check.
19470         (ext_QIreg_nomode_operands): Remove.
19471         * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
19472         (*andsi_1): Ditto.
19473         (*andhi_1): Ditto.
19474
19475 2011-04-26  Andrew Stubbs  <ams@codesourcery.com>
19476
19477         * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
19478
19479 2011-04-26  Richard Guenther  <rguenther@suse.de>
19480
19481         * c-typeck.c (build_unary_op): Do not expand array-refs via
19482         pointer arithmetic.  Only adjust qualifiers for function types.
19483
19484 2011-04-26  Richard Guenther  <rguenther@suse.de>
19485
19486         PR middle-end/48694
19487         * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
19488         * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
19489         compare the operands with OEP_CONSTANT_ADDRESS_OF.  Treat trees
19490         with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
19491
19492 2011-04-25  Paolo Carlini  <paolo.carlini@oracle.com>
19493
19494         * doc/extend.texi: Document __underlying_type.
19495
19496 2011-04-25  Segher Boessenkool  <segher@kernel.crashing.org>
19497
19498         * config/rs6000/titan.md (automata_option "progress"): Remove.
19499
19500 2011-04-25  Jeff Law  <law@redhat.com>
19501
19502         * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
19503
19504 2011-04-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
19505
19506         * system.h (ENUM_BITFIELD): Remove.
19507
19508 2011-04-25  Maxim Kuvyrkov  <maxim@codesourcery.com>
19509             Eric Botcazou  <ebotcazou@adacore.com>
19510
19511         * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
19512         for STORE_FLAG_VALUE==-1 case.
19513
19514 2011-04-24  Richard Sandiford  <richard.sandiford@linaro.org>
19515
19516         PR target/43804
19517         * config/m68k/constraints.md (T): Allow PIC operands that satisfy
19518         LEGITIMATE_PIC_OPERAND_P.
19519
19520 2011-04-24  Jan Hubicka  <jh@suse.cz>
19521
19522         * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
19523         WPA hack.
19524         * ipa-prop.h (ipa_get_param, ipa_is_param_used,
19525         ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
19526         ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
19527         * ipa-inline-analysis.c (add_clause): Fix clause ordering.
19528         (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
19529         Sanity check predicate length.
19530         (remap_predicate): Likewise; sanity check jump functions.
19531         (inline_read_section, inline_write_summary): Sanity check
19532         predicate length.
19533
19534 2011-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
19535
19536         PR other/48748
19537         * doc/extend.texi (Type Traits): Document __is_standard_layout,
19538         __is_literal_type, and __is_trivial; update throughout about
19539         possibly cv-qualified void types.
19540
19541 2011-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
19542
19543         * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
19544         testsuite and make it version agnostic.
19545
19546 2011-04-22  Jan Hubicka  <jh@suse.cz>
19547
19548         * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
19549
19550 2011-04-23  Jakub Jelinek  <jakub@redhat.com>
19551
19552         PR c/48685
19553         * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
19554         to VOID_TYPE even around MODIFY_EXPR.
19555
19556 2011-04-22  Mike Stump  <mikestump@comcast.net>
19557
19558         * gensupport.c (read_md_rtx): Fix typo in comment.
19559         * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
19560         comment.
19561
19562 2011-04-22  Jan Hubicka  <jh@suse.cz>
19563
19564         * gengtype.c (open_base_files): Add ipa-inline.h include.
19565         * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
19566         ipa-prop.c; update all uses.
19567         * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
19568         * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
19569         merge summary of inlined function into former caller.
19570         * ipa-inline.c (max_benefit): Remove.
19571         (edge_badness): Compensate for removal of benefits.
19572         (update_caller_keys): Use
19573         reset_node_growth_cache/reset_edge_growth_cache.
19574         (update_callee_keys): Likewise.
19575         (update_all_callee_keys): Likewise.
19576         (inline_small_functions): Do not collect max_benefit; do not reset
19577         estimated_growth; call free_growth_caches and initialize_growth_caches.
19578         * ipa-inline.h (struct condition, type clause_t, struct predicate,
19579         struct size_time_entry): New structures.
19580         (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
19581         (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
19582         and estimated_growth.
19583         (edge_growth_cache_entry): New structure.
19584         (node_growth_cache, edge_growth_cache): New global vars.
19585         (estimate_growth): Turn into inline.
19586         (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
19587         initialize_growth_caches, free_growth_caches): Declare.
19588         (estimate_edge_growth): Rewrite.
19589         (estimate_edge_time): Implement as inline cache lookup.
19590         (reset_node_growth_cache, reset_edge_growth_cache): New inline
19591         functions.
19592         (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
19593         (NUM_CONDITIONS): New constant.
19594         (predicate_conditions): New enum.
19595         (IS_NOT_CONSTANT): New constant.
19596         (edge_removal_hook_holder): New var.
19597         (node_growth_cache, edge_growth_cache): New global vars.
19598         (true_predicate, single_cond_predicate, false_predicate,
19599         not_inlined_predicate, add_condition, add_clause, and_predicates,
19600         or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
19601         dump_clause, dump_predicate, account_size_time,
19602         evaulate_conditions_for_edge): New functions.
19603         (inline_summary_alloc): Move to heap.
19604         (inline_node_removal_hook): Clear condition and entry vectors.
19605         (inline_edge_removal_hook): New function.
19606         (initialize_growth_caches, free_growth_caches): New function.
19607         (dump_inline_summary): Update.
19608         (edge_execution_predicate): New function.
19609         (will_be_nonconstant_predicate): New function.
19610         (estimate_function_body_sizes): Compute BB and constantness predicates.
19611         (compute_inline_parameters): Do not clear estimated_growth.
19612         (estimate_edge_size_and_time): New function.
19613         (estimate_calls_size_and_time): New function.
19614         (estimate_callee_size_and_time): New function.
19615         (remap_predicate): New function.
19616         (inline_merge_summary): New function.
19617         (do_estimate_edge_time): New function based on...
19618         (estimate_edge_time): ... this one.
19619         (do_estimate_edge_growth): New function.
19620         (do_estimate_growth): New function based on....
19621         (estimate_growth): ... this one.
19622         (inline_analyze_function): Analyze after deciding on jump functions.
19623         (inline_read_section): New function.
19624         (inline_read_summary): Use it.
19625         (inline_write_summary): Write all the new data.
19626         * ipa-prop.c (ipa_get_param_decl_index): Export.
19627         (ipa_lattice_from_jfunc): Move here from ipa-cp.c
19628         * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
19629         Declare.
19630         (ipa_get_lattice): Move here from ipa-cp.c
19631         * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
19632         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
19633         * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
19634         cgraph_edge_inlinable_p): Remove.
19635         * cgraphunit.c: Include ipainline.h
19636         (cgraph_process_new_functions): Update call of
19637         compute_inline_parameters.
19638
19639 2011-04-22  Richard Guenther  <rguenther@suse.de>
19640
19641         * tree.c (build_int_cst): Properly create canonicalized integer
19642         constants.
19643         (build_int_cst_type): Remove scary comments.
19644
19645 2011-04-22  Xinliang David Li  <davidxl@google.com>
19646
19647         * toplev.c (process_options): Enable -Werror=coverage-mismatch
19648         by default when -Wno-error is not specified.
19649         * opts-global.c (decode_options): Remove call to
19650         control_warning_options.
19651
19652 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
19653
19654         PR tree-optimization/48717
19655         * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
19656         ~A + A optimizations use build_int_cst_type instead of build_int_cst.
19657
19658 2011-04-22  Joseph Myers  <joseph@codesourcery.com>
19659
19660         * config/bfin/bfin-protos.h (Mmode): Don't define.  Expand
19661         definition where used.
19662
19663 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
19664
19665         PR c/48716
19666         * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
19667         TREE_STATIC variables declared inside of some OpenMP construct.
19668
19669 2011-04-22  Martin Jambor  <mjambor@suse.cz>
19670
19671         PR middle-end/48585
19672         * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
19673
19674 2011-04-22  Alexander Monakov  <amonakov@ispras.ru>
19675
19676         PR c/36750
19677         * c-typeck.c (pop_init_level): Do not warn about initializing
19678         with ` = {0}'.
19679
19680 2011-04-22  Alan Modra  <amodra@gmail.com>
19681
19682         * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
19683         when returning call_cookie.
19684         (rs6000_function_ok_for_sibcall): Allow sibcalls via function
19685         pointers, to functions with no more vector args than the current
19686         function, and some non-local calls for ABI_V4.
19687         * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
19688         sibcall_nonlocal_aix64): Combine to ..
19689         (sibcall_nonlocal_aix<mode>): ..this.  Handle function pointer calls.
19690         (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
19691         (sibcall_value_nonlocal_aix<mode>): ..likewise.
19692         (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
19693         (sibcall_value_nonlocal_sysv<mode>): Likewise.  Correct call cookie
19694         operand.
19695         * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
19696         sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
19697         sibcall_value_symbolic_64): Delete.
19698
19699 2011-04-21  Xinliang David Li  <davidxl@google.com>
19700
19701         * cgraph.h: Remove pid.
19702         * cgraph.c: Remove pid.
19703         * value-prof.c (init_node_map): New function.
19704         (del_node_map): New function.
19705         (find_func_by_funcdef_no): New function.
19706         (gimple_ic_transform): Call new function.
19707         * cgraphunit.c (cgraph_finalize_function): Remove pid.
19708         * function.c (get_last_funcdef_no): New function.
19709         * function.h (get_last_funcdef_no): New function.
19710         * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
19711         to libgcov function.
19712         (tree-profiling): Call node map init and delete function.
19713
19714 2011-04-21  Ian Lance Taylor  <iant@google.com>
19715
19716         * godump.c (go_format_type): Use exported Go name for anonymous
19717         field name.
19718
19719 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
19720
19721         * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
19722         Call builtin_function_type_list instead of builtin_function_type.
19723         (UNARY, BINARY, TRINARY, QUAD): Likewise.
19724
19725 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
19726
19727         * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
19728         build_function_type_list instead of build_function_type.
19729         Delete variable `endlink'.
19730
19731 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
19732
19733         * config/s390/s390.c (s390_init_builtins): Call
19734         build_function_type_list instead of build_function_type.
19735
19736 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
19737
19738         * config/ia64/ia64.c (ia64_init_builtins): Call
19739         build_function_type_list instead of builtin_function_type.
19740
19741 2011-04-21  Easwaran Raman  <eraman@google.com>
19742
19743         * cfgexpand.c (stack_var): Remove OFFSET...
19744         (add_stack_var): ...and its reference here...
19745         (expand_stack_vars): ...and here.
19746         (stack_var_cmp): Sort by descending order of size.
19747         (partition_stack_vars): Change heuristic.
19748         (union_stack_vars): Fix to reflect changes in partition_stack_vars.
19749         (dump_stack_var_partition): Add newline after each partition.
19750
19751 2011-04-21  Dimitrios Apostolou  <jimis@gmx.net>
19752             Jeff Law  <law@redhat.com>
19753
19754         * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
19755         * gengtype.c (matching_file_name_substitute): Likewise.
19756
19757 2011-04-21  Richard Guenther  <rguenther@suse.de>
19758
19759         PR lto/48703
19760         * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
19761
19762 2011-04-21  Eric Botcazou  <ebotcazou@adacore.com>
19763
19764         * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
19765
19766 2011-04-21  Richard Guenther  <rguenther@suse.de>
19767
19768         * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
19769         file name.
19770
19771 2011-04-21  Richard Guenther  <rguenther@suse.de>
19772
19773         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
19774         MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
19775         Use DECL_P, not SSA_VAR_P.
19776         (ptr_derefs_may_alias_p): Likewise.
19777         (ptr_deref_may_alias_ref_p_1): Likewise.
19778         (decl_refs_may_alias_p): Likewise.
19779         (refs_may_alias_p_1): Likewise.
19780         (ref_maybe_used_by_call_p_1): Likewise.
19781         (call_may_clobber_ref_p_1): Likewise.
19782         (indirect_ref_may_alias_decl_p): Assume indirect refrences
19783         are either MEM_REF or TARGET_MEM_REF.
19784         (indirect_refs_may_alias_p): Likewise.
19785         * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
19786         for MEM_EXPR of indirect calls.
19787
19788 2011-04-21  Tristan Gingold  <gingold@adacore.com>
19789
19790         * vmsdbgout.c (write_srccorr): Compute file length from the string.
19791         (dst_file_info_struct): Remove flen field.
19792         (lookup_filename): Remove code that set flen field.
19793
19794 2011-04-21  Tristan Gingold  <gingold@adacore.com>
19795
19796         * config/ia64/ia64.c (ia64_start_function): Add a guard.
19797
19798 2011-04-21  Uros Bizjak  <ubizjak@gmail.com>
19799
19800         PR target/48708
19801         * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
19802         vec_extract and vec_concat for non-SSE4_1 targets.
19803
19804 2011-04-21  Richard Guenther  <rguenther@suse.de>
19805
19806         * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
19807         return statements.
19808
19809 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
19810
19811         * config/i386/cygming.h (union tree_node, TREE): Don't define or
19812         undefine.
19813         (FILE): Don't undefine.
19814
19815 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
19816
19817         * config/alpha/alpha.c (struct machine_function): Use rtx, not
19818         struct rtx_def *.
19819         * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
19820         struct rtx_def *.
19821         * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
19822         * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
19823         * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
19824         rtx_def *.
19825         * config/m32c/m32c-protos.h (MM, UINT): Don't define.  Expand
19826         definitions where used.
19827         * config/microblaze/microblaze.h (struct microblaze_args): Use
19828         rtx, not struct rtx_def *.
19829         * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
19830         rtx_def *.
19831         * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
19832         * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
19833         * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
19834         not struct rtx_def *.
19835         * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
19836         struct rtx_def *.
19837         * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
19838         rtx_def *.
19839         * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
19840
19841 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
19842
19843         * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
19844         operand_equal_p to compare DR_BASE_ADDRESSes.
19845         (vect_check_interleaving): Likewise.
19846
19847 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
19848
19849         PR target/46329
19850         * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
19851         for all Neon struct constants.
19852
19853 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
19854
19855         * target.def (legitimate_constant_p): New hook.
19856         * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
19857         (TARGET_LEGITIMATE_CONSTANT_P): ...this.
19858         * doc/tm.texi: Regenerate.
19859         * hooks.h (hook_bool_mode_rtx_true): Declare.
19860         * hooks.c (hook_bool_mode_rtx_true): Define.
19861         * system.h (LEGITIMATE_CONSTANT_P): Poison.
19862         * calls.c (precompute_register_parameters): Replace uses of
19863         LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
19864         (emit_library_call_value_1): Likewise.
19865         * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
19866         (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
19867         * ira-costs.c (scan_one_insn): Likewise.
19868         * recog.c (general_operand, immediate_operand): Likewise.
19869         * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
19870         * reload1.c (init_eliminable_invariants): Likewise.
19871
19872         * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
19873         mode argument.
19874         * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
19875         * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
19876         argument.
19877         (TARGET_LEGITIMATE_CONSTANT_P): Define.
19878         * config/alpha/predicates.md (input_operand): Update call to
19879         alpha_legitimate_constant_p.
19880
19881         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
19882         * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
19883         (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
19884         * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
19885         (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
19886         (arm_legitimate_constant_p): New functions.
19887         (arm_cannot_force_const_mem): Make static.
19888
19889         * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
19890
19891         * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
19892         * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
19893         * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
19894         instead of bfin_legitimate_constant_p.
19895         (bfin_legitimate_constant_p): Make static.  Add a mode argument.
19896         (TARGET_LEGITIMATE_CONSTANT_P): Define.
19897
19898         * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
19899
19900         * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
19901
19902         * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
19903         * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
19904         * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
19905         (frv_legitimate_constant_p): Make static.  Add a mode argument.
19906
19907         * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
19908         * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
19909         * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
19910
19911         * config/i386/i386-protos.h (legitimate_constant_p): Delete.
19912         * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
19913         * config/i386/i386.c (legitimate_constant_p): Rename to...
19914         (ix86_legitimate_constant_p): ...this.  Make static.  Add a mode
19915         argument.
19916         (ix86_cannot_force_const_mem): Update accordingly.
19917         (ix86_legitimate_address_p): Likewise.
19918         (TARGET_LEGITIMATE_CONSTANT_P): Define.
19919         * config/i386/i386.md: Update commentary.
19920
19921         * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
19922         * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
19923         * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
19924         (ia64_legitimate_constant_p): Make static.  Add a mode argument.
19925
19926         * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
19927
19928         * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
19929         * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
19930         * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
19931         (lm32_legitimate_constant_p): Make static.  Add a mode argument.
19932
19933         * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
19934         * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
19935         * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
19936
19937         * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
19938         * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
19939         (m32r_legitimate_constant_p): New function.
19940
19941         * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
19942         * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
19943         LEGITIMATE_CONSTANT_P.
19944         (LEGITIMATE_CONSTANT_P): Delete.
19945         * config/m68k/m68k.c (m68k_expand_prologue): Call
19946         m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
19947         (m68k_legitimate_constant_p): New function.
19948         * config/m68k/m68k.md: Update comments.
19949
19950         * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
19951         * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
19952         (mcore_legitimate_constant_p): New function.
19953
19954         * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
19955         * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
19956         * config/mep/mep.c (mep_legitimate_constant_p): Make static.
19957         Add a mode argument.
19958         (mep_legitimate_address): Update accordingly.
19959         (TARGET_LEGITIMATE_CONSTANT_P): Define.
19960
19961         * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
19962         Delete.
19963         * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
19964         * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
19965         static.  Check OP's mode for VOIDmode.
19966         (microblaze_legitimate_constant_p): New function.
19967         (TARGET_LEGITIMATE_CONSTANT_P): Define.
19968
19969         * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
19970         * config/mips/mips.c (mips_legitimate_constant_p): New function.
19971         (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
19972         (TARGET_LEGITIMATE_CONSTANT_P): Define.
19973         * config/mips/predicates.md: Update comments.
19974
19975         * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
19976         * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
19977         * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
19978         (mmix_legitimate_constant_p): Make static, return a bool, and take
19979         a mode argument.
19980         (mmix_print_operand_address): Update accordingly.
19981
19982         * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
19983         Delete.
19984         * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
19985         * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
19986         static.  Add a mode argument.
19987         (TARGET_LEGITIMATE_CONSTANT_P): Define.
19988
19989         * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
19990
19991         * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
19992         * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
19993         (pa_legitimate_constant_p): New function.
19994
19995         * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
19996
19997         * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
19998         * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
19999         (pdp11_legitimate_constant_p): New function.
20000
20001         * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
20002         * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
20003         (rs6000_legitimate_constant_p): New function.
20004
20005         * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
20006         (rx_legitimate_constant_p): ...this.
20007         * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
20008         * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
20009         (rx_legitimate_constant_p): ...this.
20010         (TARGET_LEGITIMATE_CONSTANT_P): Define.
20011         * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
20012
20013         * config/s390/s390-protos.h (legitimate_constant_p): Delete.
20014         * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
20015         * config/s390/s390.c (legitimate_constant_p): Rename to...
20016         (s390_legitimate_constant_p): ...this.  Make static, return a bool,
20017         and add a mode argument.
20018         (TARGET_LEGITIMATE_CONSTANT_P): Define.
20019
20020         * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
20021
20022         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
20023         * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
20024         (sh_legitimate_constant_p): New function.
20025
20026         * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
20027         * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
20028         * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
20029         (legitimate_constant_p): Rename to...
20030         (sparc_legitimate_constant_p): ...this.  Make static.  Add a mode
20031         argument.
20032         (constant_address_p): Update accordingly.
20033
20034         * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
20035         argument and return a bool.
20036         * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
20037         * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
20038         (spu_legitimate_constant_p): Add a mode argument and return a bool.
20039         (spu_rtx_costs): Update accordingly.
20040         * config/spu/predicates.md (vec_imm_operand): Likewise.
20041
20042         * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
20043
20044         * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
20045         * config/v850/v850.c (v850_legitimate_constant_p): New function.
20046         (TARGET_LEGITIMATE_CONSTANT_P): Define.
20047
20048         * config/vax/vax-protos.h (legitimate_constant_p): Delete.
20049         * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
20050         * config/vax/vax.c (legitimate_constant_p): Likewise.
20051
20052         * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
20053         * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
20054         (xtensa_legitimate_constant_p): New function.
20055
20056 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
20057
20058         * target.def (cannot_force_const_mem): Add a mode argument.
20059         * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
20060         * doc/tm.texi: Regenerate.
20061         * hooks.h (hook_bool_mode_rtx_false): Declare.
20062         * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
20063         (hook_bool_mode_const_rtx_true): Likewise.
20064         (hook_bool_mode_rtx_false): New function.
20065         * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
20066         to be non-VOID.  Update call to cannot_force_const_mem.
20067         (find_reloads): Update accordingly.
20068         * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
20069         * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
20070         argument.
20071         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
20072         * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
20073         * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
20074         * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
20075         * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
20076         * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
20077         * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
20078         * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
20079         (m68k_cannot_force_const_mem): ...this new function.
20080         * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
20081         argument.
20082         (mips_const_insns, mips_legitimize_const_move): Update calls.
20083         (mips_secondary_reload_class): Likewise.
20084         * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
20085         (pa_cannot_force_const_mem): ...this new function.
20086         * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
20087         (rs6000_cannot_force_const_mem): ...this new function.
20088         * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
20089         argument.
20090         * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
20091         * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
20092         to...
20093         (xtensa_cannot_force_const_mem): ...this new function.
20094
20095 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
20096
20097         * config/mips/mips.c (mips16_build_function_stub): Call
20098         build_function_type_list instead of build_function_type.
20099         (mips16_build_call_stub): Likewise.
20100
20101 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
20102
20103         * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
20104         instead of build_function_type.
20105
20106 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
20107
20108         * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
20109         instead of build_function_type.
20110
20111 2011-04-20  Uros Bizjak  <ubizjak@gmail.com>
20112
20113         PR target/48678
20114         * config/i386/i386.md (insv): Change operand 0 constraint to
20115         "register_operand".  Change operand 1 and 2 constraint to
20116         "const_int_operand".  Expand to pinsr{b,w,d,q} * when appropriate.
20117         * config/i386/sse.md (sse4_1_pinsrb): Export.
20118         (sse2_pinsrw): Ditto.
20119         (sse4_1_pinsrd): Ditto.
20120         (sse4_1_pinsrq): Ditto.
20121         * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
20122         * config/i386/i386.c (ix86_expand_pinsr): New.
20123
20124 2011-04-20  Easwaran Raman  <eraman@google.com>
20125
20126         * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
20127         containing union type only with -fstrict-aliasing.
20128
20129 2011-04-20  Jim Meyering  <meyering@redhat.com>
20130
20131         Remove useless if-before-free tests.
20132         * calls.c (expand_call, save_area): Likewise.
20133         * cfgcleanup.c (try_forward_edges): Likewise.
20134         * collect2.c (collect_execute): Likewise.
20135         * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
20136         * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
20137         * coverage.c (coverage_checksum_string): Likewise.
20138         * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
20139         * cselib.c (cselib_init): Likewise.
20140         * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
20141         (df_set_clean_cfg): Likewise.
20142         * function.c (free_after_compilation): Likewise.
20143         * gcc.c (do_spec_1, main): Likewise.
20144         * gcov.c (create_file_names): Likewise.
20145         * gensupport.c (identify_predicable_attribute): Likewise.
20146         * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
20147         * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
20148         * haifa-sched.c (haifa_finish_h_i_d): Likewise.
20149         * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
20150         * ipa-pure-const.c (local_pure_const): Likewise.
20151         * ipa-reference.c (propagate): Likewise.
20152         * ira-costs.c (free_ira_costs): Likewise.
20153         * ira.c (free_register_move_costs, build_insn_chain): Likewise.
20154         * matrix-reorg.c (mat_free): Likewise.
20155         * prefix.c (get_key_value): Likewise.
20156         * profile.c (compute_value_histograms): Likewise.
20157         * reload1.c (free_reg_equiv): Likewise.
20158         * sched-deps.c (free_deps): Likewise.
20159         * sel-sched-ir.c (fence_clear): Likewise.
20160         * sese.c (set_rename, if_region_set_false_region): Likewise.
20161         * tree-data-ref.c (free_rdg): Likewise.
20162         * tree-eh.c (lower_try_finally): Likewise.
20163         * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
20164         * tree-ssa-live.c (delete_var_map): Likewise.
20165         * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
20166         * tree-ssa-pre.c (phi_trans_add): Likewise.
20167
20168 2011-04-20  Jakub Jelinek  <jakub@redhat.com>
20169
20170         PR tree-optimization/48611
20171         * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
20172         beyond ERT_MUST_NOT_THROW region.
20173
20174 2011-04-20  Catherine Moore  <clm@codesourcery.com>
20175
20176         * config/mips/mips.opt (mfix-24k): New.
20177         * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
20178         * config/mips/mips.md (length): Increase by 4 for stores if
20179         fixing 24K errata.
20180         * config/mips/mips.c (mips_reorg_process_insns): Do not allow
20181         all noreorder if fixing 24K errata.
20182         * doc/invoke.texi: Document mfix-24k.
20183
20184 2011-04-20  Chung-Lin Tang  <cltang@codesourcery.com>
20185
20186         * config/arm/arm.c (arm_legitimize_reload_address): For NEON
20187         quad-word modes, reduce to 9-bit index range when above 1016 limit.
20188
20189 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
20190
20191         * config/arm/arm.c (arm_gen_constant): Move movw support ....
20192         (const_ok_for_op): ... to here.
20193
20194 2011-04-20  Kai Tietz  <ktietz@redhat.com>
20195
20196         * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
20197         and (X && !Y) | (!X && Y) optimization to (X ^ Y).
20198
20199 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
20200
20201         * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
20202
20203 2011-04-20  Richard Guenther  <rguenther@suse.de>
20204
20205         PR tree-optimization/47892
20206         * tree-if-conv.c (if_convertible_stmt_p): Const builtins
20207         are if-convertible.
20208
20209 2011-04-20  Eric Botcazou  <ebotcazou@adacore.com>
20210
20211         * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
20212
20213 2011-04-20  Tristan Gingold  <gingold@adacore.com>
20214
20215         * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
20216
20217 2011-04-20  Georg-Johann Lay  <avr@gjlay.de>
20218
20219         PR target/18145
20220
20221         * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
20222         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
20223         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
20224         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
20225         (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
20226
20227         * config/avr/avr-protos.h (avr_asm_output_aligned_common):
20228         New prototype.
20229
20230         * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
20231         (avr_asm_named_section, avr_asm_output_aligned_common,
20232         avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
20233         New functions to update...
20234         (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
20235         (avr_asm_init_sections): Overwrite section callbacks for
20236         data_section, bss_section.
20237         (avr_file_start): Move output of __do_copy_data, __do_clear_bss
20238         from here to...
20239         (avr_file_end): ...here.
20240
20241 2011-04-20  Richard Guenther  <rguenther@suse.de>
20242
20243         PR middle-end/48695
20244         * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
20245         objects and types here.  Adjust for their offset before comparing.
20246
20247 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
20248
20249         * tree-vect-stmts.c (vectorizable_store): Only chain one related
20250         statement per copy.
20251
20252 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
20253
20254         * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
20255         (GIMPLE_H): Include $(INTERNAL_FN_H).
20256         (OBJS-common): Add internal-fn.o.
20257         (internal-fn.o): New rule.
20258         * internal-fn.def: New file.
20259         * internal-fn.h: Likewise.
20260         * internal-fn.c: Likewise.
20261         * gimple.h: Include internal-fn.h.
20262         (GF_CALL_INTERNAL): New gf_mask.
20263         (gimple_statement_call): Put fntype into a union with a new
20264         internal_fn field.
20265         (gimple_build_call_internal): Declare.
20266         (gimple_build_call_internal_vec): Likewise.
20267         (gimple_call_same_target_p): Likewise.
20268         (gimple_call_internal_p): New function.
20269         (gimple_call_internal_fn): Likewise.
20270         (gimple_call_fntype): Return null for internal calls.
20271         (gimple_call_set_fntype): Assert that the function is not internal.
20272         (gimple_call_set_fn): Likewise.
20273         (gimple_call_set_fndecl): Likewise.
20274         (gimple_call_set_internal_fn): New function.
20275         (gimple_call_addr_fndecl): Handle null functions.
20276         (gimple_call_return_type): Likewise null types.
20277         * gimple.c (gimple_build_call_internal_1): New function.
20278         (gimple_build_call_internal): Likewise.
20279         (gimple_build_call_internal_vec): Likewise.
20280         (gimple_call_same_target_p): Likewise.
20281         (gimple_call_flags): Handle calls to internal functions.
20282         (gimple_call_fnspec): New function.
20283         (gimple_call_arg_flags, gimple_call_return_flags): Use it.
20284         (gimple_has_side_effects): Handle null functions.
20285         (gimple_rhs_has_side_effects): Likewise.
20286         (gimple_call_copy_skip_args): Handle calls to internal functions.
20287         * cfgexpand.c (expand_call_stmt): Likewise.
20288         * expr.c (expand_expr_real_1): Assert that the call isn't internal.
20289         * gimple-fold.c (gimple_fold_call): Handle null functions.
20290         (gimple_fold_stmt_to_constant_1): Don't fold
20291         calls to internal functions.
20292         * gimple-low.c (gimple_check_call_args): Handle calls to internal
20293         functions.
20294         * gimple-pretty-print.c (dump_gimple_call): Likewise.
20295         * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
20296         * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
20297         (do_warn_unused_result): Likewise.
20298         * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
20299         * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
20300         * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
20301         the target of a call.
20302         (initialize_hash_element): Update accordingly.
20303         (hashable_expr_equal_p): Use gimple_call_same_target_p.
20304         (iterative_hash_hashable_expr): Handle calls to internal functions.
20305         (print_expr_hash_elt): Likewise.
20306         * tree-ssa-pre.c (can_value_number_call): Likewise.
20307         (eliminate): Handle null functions.
20308         * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
20309         * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
20310         (find_func_aliases): Likewise.
20311         * value-prof.c (gimple_ic_transform): Likewise.
20312         (gimple_indirect_call_to_profile): Likewise.
20313         * lto-streamer-in.c (input_gimple_stmt): Likewise.
20314         * lto-streamer-out.c (output_gimple_stmt): Likewise.
20315
20316 2011-04-19  Jan Hubicka  <jh@suse.cz>
20317
20318         * ipa-inline-transform.c (save_inline_function_body): Add comments.
20319         * ipa-inline.c (inline_small_functions): Compute summaries first,
20320         populate heap later.
20321
20322 2011-04-19  Jan Hubicka  <jh@suse.cz>
20323
20324         * cgraph.h (save_inline_function_body): Remove.
20325         * ipa-inline-transform.c: New file, broke out of...
20326         * ipa-inline.c: ... this one; Update toplevel comment.
20327         (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
20328         make global.
20329         (update_noncloned_frequencies): Move to ipa-inline-transform.c
20330         (cgraph_mark_inline_edge): Rename to inline_call; move to
20331         ipa-inline-transform.c.
20332         (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
20333         move to ipa-inline-transform.c
20334         (recursive_inlining, inline_small_functions, flatten_function,
20335         ipa_inline, inline_always_inline_functions,
20336         early_inline_small_functions): Update.
20337         (inline_transform): Move to ipa-inline-transform.c.
20338         * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
20339         Declare.
20340         * Makefile.in (ipa-inline-transform.o): New file.
20341         * cgraphunit.c (save_inline_function_body): Move to
20342         ipa-inline-transform.c
20343
20344 2011-04-19  DJ Delorie  <dj@redhat.com>
20345
20346         * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
20347         registers if we already know there aren't any.
20348         (m32c_emit_epilogue): Don't emit a barrier here.
20349         (m32c_emit_eh_epilogue): Likewise.
20350         * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
20351         operands at expand time.
20352         * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
20353         int" wchar type.
20354         (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
20355         duplicates.  Provide aliases instead.
20356         * config/m32c/prologue.md (eh_return): Emit a barrier here.
20357         (eh_epilogue): Add a "(return)" here as a hint to other parts of
20358         the compiler.
20359
20360 2011-04-19  Anatoly Sokolov  <aesok@post.ru>
20361
20362         * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
20363         * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
20364         (general_or_i64_p, sparc_register_move_cost): New function.
20365
20366 2011-04-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20367
20368         * doc/install.texi (Configuration, --enable-threads): Remove mach.
20369         Add lynx, mipssde.  Sort table.
20370
20371 2011-04-19  Xinliang David Li  <davidxl@google.com>
20372
20373         * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
20374         not negative.
20375
20376 2011-04-19  Jakub Jelinek  <jakub@redhat.com>
20377
20378         PR target/48678
20379         * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
20380         is a SUBREG with non-MODE_INT mode inside of it.
20381
20382 2011-04-19  Martin Jambor  <mjambor@suse.cz>
20383
20384         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
20385         also according to actual contants.
20386         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
20387         (gimple_fold_call): Use it.
20388         * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
20389
20390 2011-04-19  Martin Jambor  <mjambor@suse.cz>
20391
20392         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
20393         non-pointer assignments.
20394
20395 2011-04-19  Martin Jambor  <mjambor@suse.cz>
20396
20397         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
20398         account anc_offset and otr_type from the indirect edge info.
20399         * ipa-prop.c (get_ancestor_addr_info): New function.
20400         (compute_complex_ancestor_jump_func): Assignment analysis moved to
20401         get_ancestor_addr_info, call it.
20402         (ipa_note_param_call): Do not initialize information about polymorphic
20403         calls, return the indirect call graph edge.  Remove the last
20404         parameter, adjust all callers.
20405         (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
20406         parameters.  Initialize polymorphic information in the indirect edge.
20407
20408 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
20409
20410         PR lto/48148
20411         * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
20412         the types if they have different enumeration identifiers.
20413
20414 2011-04-19  Jan Hubicka  <jh@suse.cz>
20415
20416         * cgraph.h (cgraph_optimize_for_size_p): Declare.
20417         * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
20418         * predict.c (cgraph_optimize_for_size_p): Break out from ...
20419         (optimize_function_for_size_p) ... here.
20420
20421 2011-04-19  Richard Guenther  <rguenther@suse.de>
20422
20423         PR lto/48207
20424         * tree.c (free_lang_data): Do not reset the decl-assembler-name
20425         langhook.
20426
20427 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
20428
20429         * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
20430         if DECL_NO_INLINE_WARNING_P is set on the function.
20431
20432 2011-04-19  Bernd Schmidt  <bernds@codesourcery.com>
20433
20434         PR fortran/47976
20435         * reload1.c (inc_for_reload): Return void. All callers changed.
20436         (emit_input_reload_insns): Don't try to delete previous output
20437         reloads to a register, or record spill_reg_store for autoincs.
20438
20439 2011-04-19  Basile Starynkevitch  <basile@starynkevitch.net>
20440
20441         * gengtype.h: Updated copyright year.
20442         (struct input_file_st): Add inpisplugin field.
20443         (type_fileloc): New function.
20444         * gengtype.c
20445         (write_typed_struct_alloc_def): Add gcc_assert.
20446         (write_typed_alloc_defns): Ditto. Don't output for plugin files.
20447         (write_typed_alloc_defns): Don't output for plugin files.
20448         (input_file_by_name): Clear inpisplugin field.
20449         (main): Set inpisplugin field for plugin files.
20450
20451 2011-04-19  Nicola Pero  <nicola.pero@meta-innovation.com>
20452
20453         * gengtype-state.c (string_eq): New.
20454         (read_state): Use string_eq instead of strcmp when creating the
20455         state_ident_tab.
20456
20457 2011-04-19  Wei Guozhi  <carrot@google.com>
20458
20459         PR target/47855
20460         * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
20461         * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
20462         linkage.
20463         * config/arm/constraints.md (Uu): New constraint.
20464         * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
20465
20466 2011-04-19  Tristan Gingold  <gingold@adacore.com>
20467
20468         * config.gcc (-*-*-*vms): Added.
20469         (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
20470         definitions moved.
20471         * config/vms/vms-ld.c: New file.
20472         * config/vms/vms-ar.c: New file.
20473         * config/vms/t-vmsnative: New file.
20474
20475 2011-04-18  Xinliang David Li  <davidxl@google.com>
20476
20477         * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
20478
20479 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
20480
20481         PR middle-end/48661
20482         * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
20483         if TREE_TYPE (v) is non-NULL.
20484
20485         * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
20486         gimple_get_virt_mehtod_for_binfo.
20487         * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
20488         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
20489         callers.
20490         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
20491
20492 2011-04-18  Michael Matz  <matz@suse.de>
20493             Steve Ellcey  <sje@cup.hp.com>
20494
20495         * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
20496         use its mode as source mode if it isn't VOIDmode.
20497
20498 2011-04-18  Dennis, CHENG Renquan  <crquan@fedoraproject.org>
20499
20500         * doc/passes.texi: Fill crossref nodes.
20501
20502 2011-04-18  Jim Meyering  <meyering@redhat.com>
20503
20504         Fix doubled-word typos in comments and strings
20505         * config/alpha/vms-unwind.h: s/for for/for/
20506         * config/arm/unwind-arm.h: Likewise.
20507         * config/microblaze/microblaze.c: Likewise.
20508         * config/sh/constraints.md: s/in in/in/
20509         * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
20510
20511 2011-04-18  Uros Bizjak  <ubizjak@gmail.com>
20512
20513         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
20514         (AVX_FLOAT_MODE_P): Ditto.
20515         (AVX128_VEC_FLOAT_MODE_P): Ditto.
20516         (AVX256_VEC_FLOAT_MODE_P): Ditto.
20517         (AVX_VEC_FLOAT_MODE_P): Ditto.
20518         * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
20519         (UNSPEC_MASKSTORE): Ditto.
20520         * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
20521         Merge from <sse>_movmsk<ssemodesuffix> and
20522         avx_movmsk<ssemodesuffix>256.  Use VF mode iterator.
20523         (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64.  Use P mode
20524         iterator.
20525         (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
20526         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
20527         (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
20528
20529 2011-04-18  Jan Hubicka  <jh@suse.cz>
20530
20531         * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
20532
20533         * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
20534         (want_inline_function_called_once_p): Break out the logic from
20535         ipa_inline.
20536         (edge_badness): Ensure that profile is not misupdated.
20537         (lookup_recursive_calls): Prioritize by call frequencies.
20538         (inline_small_functions): Move program size estimates here;
20539         actually process whole queue even when unit growth has been
20540         met. (to properly compute inline_failed reasons and for the
20541         case unit size decrease.) Revisit comments on recursive inlining.
20542         (ipa_inline): Remove unit summary code; first inline hot calls
20543         of functions called once, cold calls next.
20544         (order, nnodes): Remove unused variables.
20545         * Makefile.in (ipa-inline.o): No longer depent on ggc files.
20546         (GTFILES): Remove ipa-inline.c
20547         * sel-sched.c (fill_insns): Silence uninitialized var warning.
20548
20549 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
20550
20551         * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
20552
20553 2011-04-18  Jie Zhang  <jie@codesourcery.com>
20554             Richard Earnshaw  <rearnsha@arm.com>
20555
20556         * arm.c (neon_builtin_type_bits): Remove.
20557         (typedef enum neon_builtin_mode): New.
20558         (T_MAX): Don't define.
20559         (typedef enum neon_builtin_datum): Remove bits, codes[],
20560         num_vars and base_fcode.  Add mode, code and fcode.
20561         (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
20562         VAR10): Change accordingly.
20563         (neon_builtin_data[]): Change accordingly
20564         (arm_init_neon_builtins): Change accordingly.
20565         (neon_builtin_compare): Remove.
20566         (locate_neon_builtin_icode): Remove.
20567         (arm_expand_neon_builtin): Change accordingly.
20568
20569         * arm.h (enum arm_builtins): Move to ...
20570         * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
20571
20572         * arm.c (arm_builtin_decl): Declare.
20573         (TARGET_BUILTIN_DECL): Define.
20574         (enum arm_builtins): Correct ARM_BUILTIN_MAX.
20575         (arm_builtin_decls[]): New.
20576         (arm_init_neon_builtins): Store builtin declarations in
20577         arm_builtin_decls[].
20578         (arm_init_tls_builtins): Likewise.
20579         (arm_init_iwmmxt_builtins): Likewise.  Refactor initialization code.
20580         (arm_builtin_decl): New.
20581
20582 2011-04-18  Richard Guenther  <rguenther@suse.de>
20583
20584         * tree.c (upper_bound_in_type): Build properly canonicalized
20585         INTEGER_CSTs.
20586         (lower_bound_in_type): Likewise.
20587
20588 2011-04-18  Richard Guenther  <rguenther@suse.de>
20589
20590         * gimple.h (gimple_call_addr_fndecl): New function.
20591         (gimple_call_fndecl): Use it.
20592         * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
20593         for direct calls.
20594         * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
20595         * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
20596
20597 2011-04-18  Richard Guenther  <rguenther@suse.de>
20598
20599         PR middle-end/48650
20600         * tree.c (build_string): STRING_CST is now derived from tree_typed.
20601
20602 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
20603
20604         PR lto/48492
20605         * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
20606         DECL_IN_CONSTANT_POOL without RTL.
20607
20608 2011-04-18  Ulrich Weigand  <ulrich.weigand@linaro.org>
20609             Ira Rosen  <ira.rosen@linaro.org>
20610
20611         PR target/48252
20612         * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
20613         to match neon_vzip/vuzp/vtrn_internal.
20614         * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
20615         outputs explicitly dependent on both inputs.
20616         (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
20617
20618 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
20619
20620         PR tree-optimization/48616
20621         * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
20622         whether the shift is by scalar or vector based on whether all SLP
20623         scalar stmts have the same rhs.
20624
20625 2011-04-17  Chung-Lin Tang  <cltang@codesourcery.com>
20626
20627         * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
20628         memory operands.
20629
20630 2011-04-17  Richard Sandiford  <rdsandiford@googlemail.com>
20631
20632         PR target/43700
20633         * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
20634         registers.
20635
20636 2011-04-17  Jan Hubicka  <jh@suse.cz>
20637
20638         * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
20639         * cgrpahunit.c (cgraph_finalize_function): Do not set
20640         finalized_by_frontend.
20641         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
20642         finalized_by_frontend.
20643
20644 2011-04-17  Jan Hubicka  <jh@suse.cz>
20645
20646         * cgraph.c (cgraph_clone_node): Do not handle vtable_method
20647         * cgraph.h (struct cgraph_local_info): Drop vtable_method.
20648         * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
20649         * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
20650         method.
20651         * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
20652         gimple-fold.c
20653         * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
20654
20655 2011-04-17  Eric Botcazou  <ebotcazou@adacore.com>
20656
20657         PR lto/48538
20658         * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
20659         is non-null before accessing it.
20660         (input_cgraph): Remove trailing spaces.
20661
20662 2011-04-17  Revital Eres  <revital.eres@linaro.org>
20663
20664         * params.def (sms-min-sc): New param flag.
20665         * modulo-sched.c (sms_schedule): Use it.
20666         * doc/invoke.texi (sms-min-sc): Document it.
20667
20668 2011-04-17  Jan Hubicka  <jh@suse.cz>
20669
20670         * lto-symtab.c (lto_cgraph_replace_node): When call statement is
20671         present, also set gimple_call_set_cannot_inline.
20672         * ipa-inline.c: Update toplevel comment.
20673         (MAX_TIME): Remove.
20674         (cgraph_clone_inlined_nodes): Fix linebreaks.
20675         (cgraph_check_inline_limits): Restructure to ...
20676         (caller_growth_limits): ... this one; be more tolerant
20677         on growth in nested inline chains; add explanatory comment;
20678         fix stack accounting thinko introduced by previous patch.
20679         (cgraph_default_inline_p): Remove.
20680         (report_inline_failed_reason): New function.
20681         (can_inline_edge_p): New function.
20682         (can_early_inline_edge_p): New function.
20683         (leaf_node_p): Move upwards in file.
20684         (want_early_inline_function_p): New function.
20685         (want_inline_small_function_p): New function.
20686         (want_inline_self_recursive_call_p): New function.
20687         (cgraph_edge_badness): Rename to ...
20688         (edge_badness) ... this one; fix linebreaks.
20689         (update_edge_key): Update call of edge_baddness; add
20690         detailed dump about queue updates.
20691         (update_caller_keys): Use can_inline_edge_p and
20692         want_inline_small_function_p.
20693         (cgraph_decide_recursive_inlining): Rename to...
20694         (recursive_inlining): Use can_inline_edge_p and
20695         want_inline_self_recursive_call_p; simplify and remove no longer
20696         valid FIXME.
20697         (cgraph_set_inline_failed): Remove.
20698         (add_new_edges_to_heap): Use can_inline_edge_p and
20699         want_inline_small_function_p.
20700         (cgraph_decide_inlining_of_small_functions): Rename to ...
20701         (inline_small_functions): ... this one; cleanup; use
20702         can/want predicates; cleanup debug ouput; work edges till fibheap
20703         is exhausted and do not stop once unit growth is reached; remove
20704         later loop processing remaining edges.
20705         (cgraph_flatten): Rename to ...
20706         (flatten_function): ... this one; use can_inline_edge_p
20707         and can_early_inline_edge_p predicates.
20708         (cgraph_decide_inlining): Rename to ...
20709         (ipa_inline): ... this one; remove unreachable nodes before
20710         inlining functions called once; simplify the pass.
20711         (cgraph_perform_always_inlining): Rename to ...
20712         (inline_always_inline_functions): ... this one; use
20713         DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
20714         (cgraph_decide_inlining_incrementally): Rename to ...
20715         (early_inline_small_functions): ... this one; simplify
20716         using new predicates; cleanup; make dumps prettier.
20717         (cgraph_early_inlining): Rename to ...
20718         (early_inliner): newer inline regular functions into always-inlines;
20719         fix updating of call stmt summaries.
20720         (pass_early_inline): Update for new names.
20721         (inline_transform): Fix formating.
20722         (gate_cgraph_decide_inlining): Rename to ...
20723         (pass_ipa_inline): ... this one.
20724         * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
20725         * ipa-inline-analysis.c (dump_inline_summary): Update.
20726         (compute_inline_parameters): Do not compute disregard_inline_limits;
20727         look for mismatching arguments.
20728         (estimate_growth): Fix handlig of non-trivial self recursion.
20729         (inline_read_summary): Do not read info->disregard_inline_limits.
20730         (inline_write_summary): Do not write info->disregard_inline_limits.
20731         * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
20732         and move all checks into can_inline_edge_p predicate; re-enable code
20733         comparing optimization levels.
20734         (expand_call_inline): Do not test inline_forbidden_into_p.
20735         * Makefile.in (ipa-inline.o): Update arguments.
20736
20737 2011-04-17  Revital Eres  <revital.eres@linaro.org>
20738
20739         * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
20740
20741 2011-04-17  Revital Eres  <revital.eres@linaro.org>
20742
20743         * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
20744
20745 2011-04-17  Michael Matz  <matz@suse.de>
20746
20747         PR tree-optimization/48622
20748         PR lto/48645
20749         * ipa-inline-analysis.c (inline_read_summary): Read size/time
20750         in same order as they're written.
20751
20752 2011-04-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
20753
20754         * config/pa/predicates.md: Reorganize and simplify predicates.
20755         Eliminate duplicate code checks.
20756         (arith_operand): Rename to arith14_operand
20757         (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
20758         * config/pa/pa.md: Use renamed operands.
20759         * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
20760         (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
20761         arith11_operand, adddi3_operand, indexed_memory_operand,
20762         symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
20763         arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
20764         borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
20765         move_dest_operand, move_src_operand, prefetch_cc_operand,
20766         prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
20767         uint32_operand, reg_before_reload_operand, reg_or_0_operand,
20768         reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
20769         div_operand, int5_operand, movb_comparison_operator,
20770         ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
20771         arith_double_operand, ireg_operand, lhs_lshift_operand,
20772         pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
20773         integer_store_memory_operand): Likewise.
20774         * config/pa/pa.c (adddi3_operand): Move to predicates.md.
20775         (integer_store_memory_operand, read_only_operand,
20776         function_label_operand, borx_reg_operand,
20777         non_hard_reg_operand): Likewise.
20778         (eq_neq_comparison_operator): Delete unused operator.
20779         (legitimize_pic_address): Use VOIDmode for mode argument in calls to
20780         function_label_operand.
20781         (emit_move_sequence): Likewise.
20782
20783 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
20784
20785         * config/i386/sse.md (sseunpackmode): New mode attribute.
20786         (ssepackmode): Ditto.
20787         (vec_pack_trunc_<mode>): Macroize expander from
20788         vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
20789         (vec_unpacks_lo_<mode>): Macroize expander from
20790         vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
20791         (vec_unpacks_hi_<mode>): Macroize expander from
20792         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
20793         (vec_unpacku_lo_<mode>): Macroize expander from
20794         vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
20795         (vec_unpacku_hi_<mode>): Macroize expander from
20796         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
20797         * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
20798         ix86_expand_sse4_unpack.
20799         * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
20800
20801 2011-04-16  Jan Hubicka  <jh@suse.cz>
20802
20803         * cgraphbuild.c: Include ipa-inline.h.
20804         (reset_inline_failed): Use initialize_inline_failed.
20805         * cgraph.c: Include ipa-inline.h.
20806         (cgraph_create_node_1): Do not initialize estimated_growth.
20807         (initialize_inline_failed): More to ipa-inline-analysis.c
20808         (dump_cgraph_node): Do not dump inline flags.
20809         * cgraph.h (cgraph_local_info): Remove inlineable, versionable
20810         and disregard_inline_limits flags.
20811         (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
20812         time, size, estimated_growth.
20813         * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
20814         Update.
20815         * cgraphunit.c (cgraph_decide_is_function_needed): Use
20816         DECL_DISREGARD_INLINE_LIMITS.
20817         (cgraph_analyze_function): Do not initialize
20818         node->local.disregard_inline_limits.
20819         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
20820         inlinable, versionable and disregard_inline_limits.
20821         * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
20822         cgraph_check_inline_limits, cgraph_default_inline_p,
20823         cgraph_edge_badness, update_caller_keys, update_callee_keys,
20824         add_new_edges_to_heap): Update.
20825         (cgraph_decide_inlining_of_small_function): Update; set
20826         CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
20827         (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
20828         cgraph_decide_inlining_incrementally): Update.
20829         * ipa-inline.h (inline_summary): Add inlinable, versionable,
20830         disregard_inline_limits, estimated_stack_size, stack_frame_offset,
20831         time, size and estimated_growth parameters.
20832         (estimate_edge_growth): Update.
20833         (initialize_inline_failed): Declare.
20834         * ipa-split.c: Include ipa-inline.h
20835         (execute_split_functions): Update.
20836         * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
20837         (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
20838         (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
20839         * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
20840         estimated_growth to INT_MIN.
20841         (inline_node_duplication_hook): Likewise.
20842         (dump_inline_summary): Dump new fields.
20843         (compute_inline_parameters): Update.
20844         (estimate_edge_time, estimate_time_after_inlining,
20845         estimate_size_after_inlining, estimate_growth, inline_read_summary,
20846         inline_write_summary):
20847         (initialize_inline_failed): Move here from cgraph.c.
20848         * tree-sra.c: Include ipa-inline.h.
20849         (ipa_sra_preliminary_function_checks): Update.
20850         * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
20851         ipa-inline.h.
20852
20853 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
20854
20855         * config/i386/sse.md (V16): New mode iterator.
20856         (VI1, VI8): Ditto.
20857         (AVXMODEQI, AVXMODEDI): Remove.
20858         (sse2, sse3): New mode attribute.
20859         (mov<mode>): Use V16 mode iterator.
20860         (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
20861         (push<mode>1): Use V16 mode iterator.
20862         (movmisalign<mode>): Ditto.
20863         (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
20864         <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
20865         (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
20866         *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
20867         (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
20868         avx_movdqu<avxmodesuffix>.
20869         (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
20870         *avx_movdqu<avxmodesuffix>.
20871         (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
20872         avx_lddqu<avxmodesuffix>.
20873         (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
20874         (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
20875         avx_movnt<AVXMODEDI:mode>.
20876         * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
20877         renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
20878
20879 2011-04-16  Bernd Schmidt  <bernds@codesourcery.com>
20880
20881         PR target/48629
20882         * haifa-sched.c (prune_ready_list, schedule_block): Use
20883         sched_pressure_p rather than flag_sched_pressure.
20884
20885 2011-04-15  Pat Haugen  <pthaugen@us.ibm.com>
20886
20887         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
20888         cgraph_get_node instead of cgraph_get_create_node.
20889
20890 2011-04-15  Jakub Jelinek  <jakub@redhat.com>
20891
20892         * cfgexpand.c (expand_debug_expr): Use
20893         simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
20894
20895 2011-04-15  Michael Matz  <matz@suse.de>
20896
20897         * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
20898         * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
20899         * function.c (gimplify_parameters): Ditto.
20900         * gimplify.c (gimplify_vla_decl): Ditto.
20901
20902         * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
20903         (gimple_call_set_alloca_for_var): New inline function.
20904         (gimple_call_alloca_for_var_p): Ditto.
20905         * gimple.c (gimple_build_call_from_tree): Remember
20906         CALL_ALLOCA_FOR_VAR_P state.
20907         * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
20908
20909         * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
20910         calls if they were for VLA objects.
20911
20912 2011-04-15  Martin Jambor  <mjambor@suse.cz>
20913
20914         * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
20915         of ADR_EXPRs.
20916
20917 2011-04-15  Martin Jambor  <mjambor@suse.cz>
20918
20919         PR middle-end/48601
20920         * tree-emutls.c (lower_emutls_function_body): Call
20921         cgraph_get_create_node instead of cgraph_get_node.  Do not assert the
20922         result is non-NULL.
20923
20924 2011-04-15  Nicola Pero  <nicola.pero@meta-innovation.com>
20925
20926         * c-decl.c (detect_field_duplicates): Call
20927         objc_detect_field_duplicates instead of objc_get_interface_ivars.
20928
20929 2011-04-15  Nathan Froyd  <froydnj@codesourcery.com>
20930
20931         * gimple.h (gimple_asm_clobbers_memory_p): Declare.
20932         * gimple.c (gimple_asm_clobbers_memory_p): Define.
20933         * ipa-pure-const.c (check_stmt): Call it.
20934         * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
20935
20936 2011-04-15  Richard Guenther  <rguenther@suse.de>
20937
20938         PR tree-optimization/48290
20939         * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
20940         Properly decide inhibiting propagation based on the valueized
20941         operand.  Do loop-closed SSA form preserving here ...
20942         (init_copy_prop): ... not here.
20943
20944 2011-04-15  H.J. Lu  <hongjiu.lu@intel.com>
20945
20946         PR target/48612
20947         * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
20948         (*ieee_smax<mode>3): Likewise.
20949
20950 2011-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20951
20952         * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
20953         Replace match_operand with match_dup for the third operand in
20954         these expanders.
20955
20956 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
20957
20958         * combine.c (subst, combine_simlify_rtx): Add new argument, use it
20959         to track processing of conditionals.  Update all callers.
20960         (try_combine, simplify_if_then_else): Update.
20961
20962 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
20963
20964         * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
20965         -fsched-pressure.
20966
20967 2011-04-15  Georg-Johann Lay  <avr@gjlay.de>
20968
20969         * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
20970         instead of match_operand for operand 3.
20971
20972 2011-04-15  Richard Sandiford  <richard.sandiford@linaro.org>
20973
20974         * recog.h (insn_operand_data): Add an "allows_mem" field.
20975         * genoutput.c (output_operand_data): Initialize it.
20976         * optabs.c (maybe_legitimize_operand_same_code): New function.
20977         (maybe_legitimize_operand): Use it when matching the original
20978         op->value.
20979
20980 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
20981
20982         * gimplify.c: Fix issues in comments throughout.
20983         (voidify_wrapper_expr): Fix long line.
20984         (build_stack_save_restore): Likewise.
20985         (gimplify_loop_expr): Likewise.
20986         (gimplify_compound_lval): Likewise.
20987         (gimplify_init_ctor_eval): Likewise.
20988         (gimplify_modify_expr_rhs): Likewise.
20989         (omp_notice_threadprivate_variable): Likewise.
20990
20991 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
20992
20993         * cfgexpand.c (expand_call_stmt): Convert the function type to the
20994         original one if this is not a builtin function.
20995
20996 2011-04-14  Jakub Jelinek  <jakub@redhat.com>
20997
20998         PR target/48605
20999         * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
21000         offset it as needed based on top 2 bits in operands[3], change
21001         MEM mode to SFmode and mask those 2 bits away from operands[3].
21002
21003 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
21004
21005         * c-parser.c (c_parser_objc_protocol_definition): Updated for
21006         change from objc_declare_protocols() to objc_declare_protocol().
21007
21008 2011-04-14  Uros Bizjak  <ubizjak@gmail.com>
21009
21010         * config/i386/sse.md (sse4_1): New mode attribute.
21011         (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
21012         avx_blend<ssemodesuffix><avxmodesuffix> and
21013         sse4_1_blend<ssemodesuffix> using VF mode iterator.
21014         (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
21015         avx_blendv<ssemodesuffix><avxmodesuffix> and
21016         sse4_1_blendv<ssemodesuffix> using VF mode iterator.
21017         (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
21018         avx_dp<ssemodesuffix><avxmodesuffix> and
21019         sse4_1_dp<ssemodesuffix> using VF mode iterator.
21020         (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
21021         (sse4_1_packusdw): Merge with *avx_packusdw.
21022         (sse4_1_pblendvb): Merge with *avx_pblendvb.
21023         (sse4_1_pblendw): Merge with *avx_pblendw.
21024         (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
21025         (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
21026         avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
21027         VF mode iterator.
21028         (sse4_1_round<ssescalarmodesuffix>): Merge with
21029         *avx_round<ssescalarmodesuffix>.
21030         (aesenc): Merge with *avx_aesenc.
21031         (aesenclast): Merge with *avx_aesenclast.
21032         (aesdec): Merge with *avx_aesdec.
21033         (aesdeclast): Merge with *avx_aesdeclast.
21034         (pclmulqdq): Merge with *pclmulqdq.
21035         * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
21036         New predicate.
21037         (nonimm_not_xmm0_operand_maybe_avx): Ditto.
21038
21039 2011-04-14  H.J. Lu  <hongjiu.lu@intel.com>
21040
21041         PR middle-end/48608
21042         * cfgexpand.c (get_decl_align_unit): Renamed to ...
21043         (align_local_variable): This.  Update DECL_ALIGN.
21044         (add_stack_var): Updated.
21045         (expand_one_stack_var): Likewise.
21046
21047 2011-04-14  Richard Guenther  <rguenther@suse.de>
21048
21049         * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
21050         Remove.
21051         (dse_initialize_block_local_data, dse_leave_block,
21052         record_voperand_set, get_stmt_uid): Likewise.
21053         (dse_possible_dead_store_p): Allow any kind of killing stmt.
21054         (dse_optimize_stmt): Remove voperand set handling code.
21055         Simplify and improve to handle any kind of killing stmt.
21056         (dse_record_phi): Remove.
21057         (dse_enter_block): Simplify.
21058         (tree_ssa_dse): Likewise.
21059         * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
21060
21061 2011-04-14  Jan Hubicka  <jh@suse.cz>
21062
21063         * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
21064         * cgraph.h (struct inline_summary): Move to ipa-inline.h
21065         (cgraph_local_info): Remove inline_summary.
21066         * ipa-cp.c: Include ipa-inline.h.
21067         (ipcp_cloning_candidate_p, ipcp_estimate_growth,
21068         ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
21069         accesor.
21070         * lto-cgraph.c (lto_output_node): Do not stream inline summary.
21071         (input_overwrite_node): Do not set inline summary.
21072         (input_node): Do not stream inline summary.
21073         * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
21074         (cgraph_decide_inlining_incrementally): Do not try to estimate overall
21075         growth; we do not have inline parameters computed for that anyway.
21076         (cgraph_early_inlining): After inlining compute call_stmt_sizes.
21077         * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
21078         (inline_summary_t): New type and VECtor.
21079         (debug_inline_summary, dump_inline_summaries): Declare.
21080         (inline_summary): Use VOCtor.
21081         (estimate_edge_growth): Kill hack computing call stmt size directly.
21082         * lto-section-in.c (lto_section_name): Add inline section.
21083         * ipa-inline-analysis.c: Include lto-streamer.h
21084         (node_removal_hook_holder, node_duplication_hook_holder): New holders
21085         (inline_node_removal_hook, inline_node_duplication_hook): New functions.
21086         (inline_summary_vec): Define.
21087         (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
21088         dump_inline_summaries): New functions.
21089         (estimate_function_body_sizes): Properly compute size/time of outgoing
21090         calls.
21091         (compute_inline_parameters): Alloc inline_summary; do not compute
21092         size/time of incomming calls.
21093         (estimate_edge_time): Avoid missing time summary hack.
21094         (inline_read_summary): Read inline summary info.
21095         (inline_write_summary): Write inline summary info.
21096         (inline_free_summary): Free all hooks and inline summary vector.
21097         * lto-streamer.h: Add LTO_section_inline_summary section.
21098         * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
21099         * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
21100
21101 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
21102
21103         * tree-vectorizer.h (vect_strided_store_supported): Add a
21104         HOST_WIDE_INT argument.
21105         (vect_strided_load_supported): Likewise.
21106         (vect_permute_store_chain): Return void.
21107         (vect_transform_strided_load): Likewise.
21108         (vect_permute_load_chain): Delete.
21109         * tree-vect-data-refs.c (vect_strided_store_supported): Take a
21110         count argument.  Check that the count is a power of two.
21111         (vect_strided_load_supported): Likewise.
21112         (vect_permute_store_chain): Return void.  Update after above changes.
21113         Assert that the access is supported.
21114         (vect_permute_load_chain): Likewise.
21115         (vect_transform_strided_load): Return void.
21116         * tree-vect-stmts.c (vectorizable_store): Update calls after
21117         above interface changes.
21118         (vectorizable_load): Likewise.
21119         (vect_analyze_stmt): Don't check for strided powers of two here.
21120
21121 2011-04-14  Richard Guenther  <rguenther@suse.de>
21122
21123         PR tree-optimization/48590
21124         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
21125         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
21126         (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
21127         BUILT_IN_STACK_SAVE.
21128         * tree-ssa-dce.c (propagate_necessity): Handle
21129         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
21130
21131 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
21132
21133         * c-parser.c (c_parser_objc_class_declaration): Updated call to
21134         objc_declare_class.
21135
21136 2011-04-14  Richard Guenther  <rguenther@suse.de>
21137
21138         * tree.h (get_object_alignment_1): Declare.
21139         * builtins.c (get_object_alignment_1): Split out worker from ...
21140         (get_object_alignment): ... here.
21141         * fold-const.c (get_pointer_modulus_and_residue): Use
21142         get_object_alignment_1.
21143
21144 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
21145
21146         * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
21147         type parameter.
21148         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
21149         parameter.  Generalise code to handle arrays as well as vectors.
21150         (vect_setup_realignment): Update accordingly.
21151         * tree-vect-stmts.c (vectorizable_store): Likewise.
21152         (vectorizable_load): Likewise.
21153
21154 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
21155
21156         * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
21157         within the per-copy loop.
21158
21159 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
21160
21161         * tree-vect-stmts.c (vectorizable_load): Print the number of copies
21162         in the dump file.
21163
21164 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
21165
21166         * doc/options.texi (Negative): Explicitly mention that the
21167         Negative chain must be circular.
21168
21169 2011-04-14  Nathan Froyd  <froydnj@codesourcery.com>
21170
21171         * function.h (block_chainon): Declare.
21172         * function.c (block_chainon): Define.
21173
21174 2011-04-14  Anatoly Sokolov  <aesok@post.ru>
21175             Eric Weddington  <eric.weddington@atmel.com>
21176             Georg-Johann Lay  <avr@gjlay.de>
21177
21178         * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
21179         New Includes
21180         (avr_init_builtins, avr_expand_builtin,
21181         avr_expand_delay_cycles, avr_expand_unop_builtin,
21182         avr_expand_binop_builtin ): New functions.
21183         (avr_builtin_id): New enum
21184         (struct avr_builtin_description): New struct
21185         (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
21186         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
21187
21188         * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
21189         UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
21190         UNSPECV_DELAY_CYCLES): new enumeration values
21191         (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
21192         ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
21193         ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
21194         ("*rotlqi3_4"): rename insn to "rotlqi3_4"
21195         ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
21196         "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
21197         "fmulsu"): New insns
21198
21199         * config/avr/avr-c.c: fix line endings
21200         (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
21201         __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
21202         __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
21203         __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
21204         __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
21205
21206         * doc/extend.texi (AVR Built-in Functions): New node
21207         (Target Builtins): Add documentation of AVR
21208         built-in functions.
21209
21210 2011-04-14  Georg-Johann Lay  <avr@gjlay.de>
21211
21212         PR target/44643
21213         * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
21214         alone. Error if non-const data has attribute progmem.
21215
21216 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
21217
21218         * tree.h (struct tree_constructor): Include tree_typed instead of
21219         tree_common.
21220         * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
21221         TS_TYPED instead of TS_COMMON.
21222
21223 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
21224
21225         * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
21226         (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
21227         (sse2_psadbw): Merge with *avx_psadbw.
21228         (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
21229         (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
21230         (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
21231         (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
21232         (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
21233         (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
21234         (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
21235         (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
21236         (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
21237         (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
21238         (ssse3_palignrti): Merge with *avx_palignrti.
21239
21240 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
21241
21242         * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
21243         * tree-ssanames.c (fini_ssanames): VEC_free it.
21244         (make_ssa_name_fn): Update for VECness of free_ssanames.
21245         (release_ssa_name, release_dead_ssa_names): Likewise.
21246         * tree.h (struct tree_ssa_name): Include tree_typed instead of
21247         tree_common.
21248         * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
21249         TS_TYPED instead of TS_COMMON.
21250
21251 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
21252
21253         * postreload-gcse.c (gcse_after_reload_main): Add calls to
21254         statistics_counter_event.
21255         * tree-ssa-copyrename.c (stats): Define.
21256         (rename_ssa_copies): Count coalesced SSA_NAMEs.  Add call to
21257         statistics_counter_event.
21258         * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
21259         (bswap_stats, widen_mul_stats): Define.
21260         (insert_reciprocals): Increment rdivs_inserted.
21261         (execute_cse_reciprocals): Zeroize reciprocal_stats.  Increment
21262         rfuncs_inserted.  Add calls to statistics_counter_event.
21263         (execute_cse_sincos_1): Increment inserted.
21264         (execute_cse_sincos): Zeroize sincos_stats.  Add call to
21265         statistics_counter_event.
21266         (execute_optimize_bswap): Zeroize bswap_stats.  Increment fields
21267         of bswap_stats.  Add calls to statistics_counter_event.
21268         (convert_mult_to_widen): Increment widen_mults_inserted.
21269         (convert_plusminus_to_widen): Increment maccs_inserted.
21270         (convert_mult_to_fma): Increment fmas_inserted.
21271         (execute_optimize_widening_mul): Zeroize widen_mul_stats.  Add
21272         calls to statistics_counter_event.
21273
21274 2011-04-13  Vladimir Makarov  <vmakarov@redhat.com>
21275
21276         PR rtl-optimization/48455
21277         * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
21278         `temp_costs->mem_cost'.
21279
21280 2011-04-13  Jan Hubicka  <jh@suse.cz>
21281
21282         * ipa-inline.h: New file.
21283         * ipa-inline-analysis.c: New file. Broken out of ...
21284         * ipa-inline.c: ... this file; update toplevel comment;
21285         include ipa-inline.h
21286         (inline_summary): Move to ipa-inline.h
21287         (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
21288         ipa-inline-analysis.c.
21289         (cgraph_estimate_time_after_inlining): Rename to
21290         estiamte_time_after_inlining; move to ipa-inline-analysis.c
21291         (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
21292         to estimate_edge_growth.
21293         (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
21294         rename to estimate_size_after_inlining.
21295         (cgraph_mark_inline_edge): Update for new naming convention.
21296         (cgraph_check_inline_limits): Likewise.
21297         (cgraph_edge_badness): Likewise.
21298         (cgraph_decide_recursive_inlining): Likewise.
21299         (cgraph_decide_inlining_of_small_functions): Likewise.
21300         (cgraph_decide_inlining_incrementally): Likewise.
21301         (cgraph_estimate_growth): Rename to estimate_growth; move to
21302         ipa-inline-analysis.c.
21303         (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
21304         (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
21305         (compute_inline_parameters): Likewise.
21306         (compute_inline_parameters_for_current): Likewise.
21307         (pass_inline_parameters): Likewise.
21308         (inline_indirect_intraprocedural_analysis): Likewise.
21309         (analyze_function): Rename to inline_analyze_function; likewise.
21310         (add_new_function): Move to ipa-inline-analysis.c.
21311         (inline_generate_summary): Likewise.
21312         (inline_read_summary): Likewise.
21313         (inline_write_summary): Likewise.
21314         * Makefile.in (ipa-inline-analysis.c): New file.
21315
21316 2011-04-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21317
21318         * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
21319         * configure: Regenerate.
21320
21321 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
21322
21323         * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
21324         instead of tree_common.
21325         (struct tree_fixed_cst, struct tree_string, struct tree_complex):
21326         Likewise.
21327         * tree.c (initialize_tree_contains_struct): Mark such nodes as being
21328         TS_TYPED rather than TS_COMMON.
21329         * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
21330
21331 2011-04-01  Georg-Johann Lay  <avr@gjlay.de>
21332
21333         PR target/45263
21334         * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
21335         r20 around calls of __tablejump_elpm__
21336
21337 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
21338
21339         PR middle-end/48591
21340         * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
21341         NULL.
21342         (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
21343
21344 2011-04-13  Bernd Schmidt  <bernds@codesourcery.com>
21345
21346         * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
21347         (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
21348         (cfi_vec): New typedef.
21349         (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
21350         dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
21351         (cie_cfi_vec): New static variable.
21352         (cie_cfi_head): Delete.
21353         (add_cfi): Accept a cfi_vec * as first argument. All callers and
21354         declaration changed. Use vector rather than list operations.
21355         (new_cfi): Don't initialize the dw_cfi_next field.
21356         (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
21357         rather than list operations.
21358         (lookup_cfa): Use vector rather than list operations.
21359         (output_cfis): New argument upto. Accept a cfi_vec rather than
21360         a dw_cfi_ref list head as argument. All callers changed.
21361         Iterate over the vector using upto as a maximum index.
21362         (output_all_cfis): New static function.
21363         (output_fde): Use vector rather than list operations. Use the
21364         new upto argument for output_cfis rather than manipulating a
21365         list.
21366         (dwarf2out_begin_prologue): Change initializations to match
21367         new struct members.
21368         (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
21369         from the vector length rather than searching for the end of a list.
21370         Use output_all_cfis.
21371         (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
21372
21373 2011-04-13  Nick Clifton  <nickc@redhat.com>
21374
21375         * config/rx/rx.md (movmemsi): Do not use this pattern when
21376         volatile pointers are involved.
21377
21378 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
21379
21380         * config/i386/sse.md (pinsrbits): Remove.
21381         (sse2_packsswb): Merge with *avx_packsswb.
21382         (sse2_packssdw): Merge with *avx_packssdw.
21383         (sse2_packuswb): Merge with *avx_packuswb.
21384         (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
21385         (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
21386         (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
21387         (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
21388         (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
21389         (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
21390         (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
21391         (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
21392         (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
21393         (*sse4_1_pinsrq): Merge with *avx_pinsrq.
21394         (sse2_loadld): Merge with *avx_loadld.
21395         (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
21396         (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
21397         (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
21398         (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
21399         (vec_concatv2di): Merge with *vec_concatv2di_avx.
21400
21401 2011-04-12  Nathan Froyd  <froydnj@codesourcery.com>
21402
21403         * c-decl.c (union lang_tree_node): Check for TS_COMMON before
21404         calling TREE_CHAIN.
21405         * print-tree.c (print_node): Likewise.
21406         * tree-inline.c (copy_tree_r): Likewise.
21407         * c-lang.c (LANG_HOOKS_INIT_TS): Define.
21408         * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
21409         instead of TS_COMMON.
21410         * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
21411         * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
21412         (copy_node_stat): Zero TREE_CHAIN only if necessary.
21413         (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
21414         (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
21415         ...and these...
21416         (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
21417         * tree.h: ...here.
21418         (TREE_CHAIN): Check for a TS_COMMON structure.
21419         (TREE_TYPE): Check for a TS_TYPED structure.
21420
21421 2011-04-12  Pat Haugen  <pthaugen@us.ibm.com>
21422
21423         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
21424         cgraph_get_create_node instead of cgraph_node.
21425
21426 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
21427
21428         * c-parser.c (c_parser_initelt): Updated call to
21429         objc_build_message_expr.
21430         (c_parser_postfix_expression): Likewise.
21431
21432 2011-04-12  Kai Tietz  <ktietz@redhat.com>
21433
21434         * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
21435         MASK_MS_BITFIELD_LAYOUT bit.
21436
21437 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
21438
21439         * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
21440         assert it is always true.
21441         (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
21442         moves.
21443
21444 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
21445
21446         * c-parser.c (c_lex_one_token): Rewritten conditional used when
21447         compiling Objective-C to be more efficient.
21448
21449 2011-04-12  Axel Freyn  <axel-freyn@gmx.de>
21450
21451         * opts-common.c (decode_cmdline_options_to_array): Remove variable
21452         argv_copied.
21453
21454 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
21455
21456         * recog.h, genoutput.c, optabs.c: Revert last patch.
21457
21458 2011-04-12  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
21459
21460         PR target/48090
21461         * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
21462
21463 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
21464
21465         * recog.h (insn_operand_data): Add an "allows_mem" field.
21466         * genoutput.c (output_operand_data): Initialize it.
21467         * optabs.c (maybe_legitimize_operand_same_code): New function.
21468         (maybe_legitimize_operand): Use it when matching the original
21469         op->value.
21470
21471 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
21472
21473         * genpreds.c (process_define_predicate): Move most processing
21474         to gensupport.c.  Continue to validate the expression.
21475         * genrecog.c (did_you_mean_codes, compute_predicate_codes)
21476         (process_define_predicate): Move processing to gensupport.c.
21477         (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
21478         * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
21479         (compute_predicate_codes): Moved from genrecog.c.  Add lineno
21480         argument.
21481         (valid_predicate_name_p): New function, split out from old
21482         genpreds.c:process_define_predicate.
21483         (process_define_predicate): New function, combining code from
21484         old genpreds.c and genrecog.c functions.
21485         (process_rtx): Call it for DEFINE_PREDICATE and
21486         DEFINE_SPECIAL_PREDICATE.
21487
21488 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
21489
21490         * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
21491         size of a '%A' memory reference.
21492         (T_DREG, T_QREG): New neon_builtin_type_bits.
21493         (arm_init_neon_builtins): Assert that the load and store operands
21494         are neon_struct_operands.
21495         (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
21496         (NEON_ARG_MEMORY): New builtin_arg.
21497         (neon_dereference_pointer): New function.
21498         (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
21499         Handle NEON_ARG_MEMORY.
21500         (arm_expand_neon_builtin): Update after above interface changes.
21501         Use NEON_ARG_MEMORY for loads and stores.
21502         * config/arm/predicates.md (neon_struct_operand): New predicate.
21503         * config/arm/iterators.md (V_two_elem): Tweak formatting.
21504         (V_three_elem): Use BLKmode for accesses that have no associated mode.
21505         (V_four_elem): Tweak formatting.
21506         * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
21507         (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
21508         (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
21509         (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
21510         (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
21511         (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
21512         (neon_vst4<mode>): Replace pointer operand with a memory operand.
21513         Use %A in the output template.
21514         (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
21515         (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
21516         (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
21517         the width of the memory access.  Remove post-increment.
21518         * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
21519
21520 2011-04-12  Nick Clifton  <nickc@redhat.com>
21521
21522         * config/v850/v850.c (expand_prologue): Do not use the CALLT
21523         instruction for interrupt handlers if the target is the basic V850
21524         architecture.
21525         (expand_epilogue): Likewise.
21526
21527 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
21528
21529         PR rtl-optimization/48549
21530         * combine.c (propagate_for_debug): Also stop after BB_END of
21531         this_basic_block.  Process LAST and just stop processing after it.
21532         (combine_instructions): If last_combined_insn has been deleted,
21533         set last_combined_insn to its PREV_INSN.
21534
21535 2011-04-12  Richard Guenther  <rguenther@suse.de>
21536
21537         PR tree-optimization/46076
21538         * gimple.h (struct gimple_statement_call): Add fntype field.
21539         (gimple_call_fntype): Adjust.
21540         (gimple_call_set_fntype): New function.
21541         * gimple.c (gimple_build_call_1): Set the call function type.
21542         * gimplify.c (gimplify_call_expr): Preserve the function
21543         type the frontend used for the call.
21544         (gimplify_modify_expr): Likewise.
21545         * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
21546         function type.
21547         * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
21548         function type.
21549         * tree-ssa.c (useless_type_conversion_p): Function pointer
21550         conversions are useless.
21551
21552 2011-04-12  Martin Jambor  <mjambor@suse.cz>
21553
21554         * cgraph.h (cgraph_node): Remove function declaration.
21555         (cgraph_create_node): Declare.
21556         (cgraph_get_create_node): Likewise.
21557         * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
21558         Updated all callers.
21559         (cgraph_node): Renamed to cgraph_create_node, assert that a node for
21560         the decl does not already exist.  Call cgraph_get_create_node instead
21561         of cgraph_node.
21562         (cgraph_get_create_node): New function.
21563         (cgraph_same_body_alias): Update comment.
21564         (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
21565         assert it does not return NULL.
21566         (cgraph_update_edges_for_call_stmt): Likewise.
21567         (cgraph_clone_edge): Likewise.
21568         (cgraph_create_virtual_clone): Likewise.
21569         (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
21570         instead of cgraph_node.
21571         (cgraph_add_new_function): Call cgraph_create_node or
21572         cgraph_get_create_node instead of cgraph_node.
21573         * cgraphbuild.c (record_reference): Call cgraph_get_create_node
21574         instead of cgraph_node.
21575         (record_eh_tables): Likewise.
21576         (mark_address): Likewise.
21577         (mark_load): Likewise.
21578         (build_cgraph_edges): Call cgraph_get_create_node instead
21579         of cgraph_node.
21580         (rebuild_cgraph_edges): Likewise.
21581         * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
21582         instead of cgraph_node.
21583         (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
21584         cgraph_node.
21585         * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
21586         cgraph_create_node instead of cgraph_node.
21587         * c-decl.c (finish_function): Call cgraph_get_create_node instead
21588         of cgraph_node.
21589         * lto-cgraph.c (input_node): Likewise.
21590         * lto-streamer-in.c (input_function): Likewise.
21591         * varasm.c (mark_decl_referenced): Likewise.
21592         (assemble_alias): Likewise.
21593
21594 2011-04-12  Martin Jambor  <mjambor@suse.cz>
21595
21596         * tree-inline.c (tree_function_versioning): Call cgraph_get_node
21597         instead of cgraph_node and assert it does not return NULL.
21598         * lto-streamer-in.c (lto_read_body): Likewise.
21599         * omp-low.c (new_omp_context): Likewise.
21600         (create_task_copyfn): Likewise.
21601         * tree-emutls.c (lower_emutls_function_body): Likewise.
21602         * matrix-reorg.c (transform_allocation_sites): Likewise.
21603
21604 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
21605
21606         PR c/48552
21607         * c-typeck.c (build_asm_expr): Error out on attempts to use
21608         void type outputs or inputs for constraints that allow reg or
21609         don't allow memory.
21610
21611 2011-04-11  Chung-Lin Tang  <cltang@codesourcery.com>
21612             Richard Earnshaw  <rearnsha@arm.com>
21613
21614         PR target/48250
21615         * config/arm/arm.c (arm_legitimize_reload_address): Update cases
21616         to use sign-magnitude offsets. Reject unsupported unaligned
21617         cases. Add detailed description in comments.
21618         * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
21619         condition from TARGET_32BIT to TARGET_ARM.
21620
21621 2011-04-11  Nathan Froyd  <froydnj@codesourcery.com>
21622
21623         * tree.h (struct typed_tree): New.
21624         (struct tree_common): Include it instead of tree_base.
21625         (TREE_TYPE): Update for new location of type field.
21626         (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
21627         (DECL_USER_ALIGN, DECL_PACKED): Likewise.
21628         (union tree_node): Add typed field.
21629         * treestruct.def (TS_TYPED): New.
21630         * lto-streamer.c (check_handled_ts_structures): Handle it.
21631         * tree.c (MARK_TS_TYPED): New macro.
21632         (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
21633
21634 2011-04-11  Eric Botcazou  <ebotcazou@adacore.com>
21635
21636         * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
21637         (force_nonfallthru): Do not alter the loop nest if no basic block
21638         was created.
21639
21640 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
21641
21642         * config/i386/sse.md (VI): New mode iterator.
21643         (SSEMODEI): Remove.
21644         (AVX256MODEI): Ditto.
21645         (AVXMODEF4P): Ditto.
21646         (avxvecpsmode): Ditto.
21647         (one_cmpl<mode>2): Enable for TARGET_SSE.  Use VI mode iterator.
21648         (sse2_andnot<mode>3): New expander.
21649         (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
21650         *avx_andnot<mode>3.  Enable for TARGET_SSE.  Use VI mode iterator.
21651         (<any_logic:code><mode>3): Use VI mode iterator.
21652         (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
21653         and *avx_<any_logic:code><mode>3.  Use VI mode iterator.
21654         (*andnottf3): Handle AVX three-operand constraints.
21655         (*<any_logic:code>tf3): Handle AVX three-operand constraints.
21656
21657 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
21658             Robert Millan  <rmh@gnu.org>
21659
21660         * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
21661         * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
21662         GNU_USER_DYNAMIC_LINKER64): Define.
21663         (REG_NAME): Don't undefine.
21664         (MD_UNWIND_SUPPORT): Undefine.
21665         * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
21666         (REG_NAME): Don't undefine.
21667         (MD_UNWIND_SUPPORT): Undefine.
21668         * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
21669
21670 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
21671
21672         * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
21673         (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
21674
21675 2011-04-11  Xinliang David Li  <davidxl@google.com>
21676
21677         * value-profile.c (check_ic_target): New function.
21678         (gimple_ic_transform): Sanity check indirect call target.
21679         * gimple-low.c (gimple_check_call_args): Interface change.
21680         (gimple_check_call_matching_types): New function.
21681         * tree-inline.c (tree_can_inline_p): Call new function.
21682
21683 2011-04-11  Basile Starynkevitch  <basile@starynkevitch.net>
21684
21685         * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
21686         tree-pretty-print.h & realmpfr.h.
21687
21688 2011-04-11  Vladimir Makarov  <vmakarov@redhat.com>
21689
21690         PR middle-end/48464
21691         * ira.c (setup_pressure_classes): Fix typo in loop condition.
21692         (setup_allocno_and_important_classes): Ditto.
21693
21694 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
21695
21696         * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
21697         GNU_USER_DYNAMIC_LINKER.
21698         * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
21699         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
21700         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
21701         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
21702         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
21703         GNU_USER_TARGET_OS_CPP_BUILTINS.
21704         * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
21705         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
21706         * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
21707         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
21708         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
21709         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
21710         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
21711         GNU_USER_TARGET_OS_CPP_BUILTINS.
21712         * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
21713         GNU_USER_DYNAMIC_LINKER.
21714         * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
21715         GNU_USER_TARGET_OS_CPP_BUILTINS.
21716         * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
21717         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
21718         * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
21719         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
21720         * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
21721         * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
21722         GNU_USER_DYNAMIC_LINKER64): Remove.
21723         * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
21724         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
21725         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
21726         GNU_USER_DYNAMIC_LINKER.
21727         * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
21728         GNU_USER_TARGET_OS_CPP_BUILTINS.
21729         * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
21730         GNU_USER_TARGET_OS_CPP_BUILTINS.
21731         * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
21732         to GNU_USER_TARGET_OS_CPP_BUILTINS.
21733         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
21734         GNU_USER_TARGET_OS_CPP_BUILTINS.
21735         (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
21736         (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
21737         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
21738         * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
21739         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
21740         * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
21741         GNU_USER_DYNAMIC_LINKER.
21742         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
21743         GNU_USER_TARGET_OS_CPP_BUILTINS.
21744         * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
21745         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
21746         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
21747         GNU_USER_DYNAMIC_LINKER.
21748         * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
21749         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
21750         * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
21751         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
21752         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
21753         GNU_USER_DYNAMIC_LINKER.
21754         * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
21755         GNU_USER_DYNAMIC_LINKERN32.
21756         (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
21757         GNU_USER_DYNAMIC_LINKERN32.  Change LINUX_DYNAMIC_LINKER64 to
21758         GNU_USER_DYNAMIC_LINKER64.  Change LINUX_DYNAMIC_LINKER32 to
21759         GNU_USER_DYNAMIC_LINKER32.
21760         * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
21761         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
21762         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
21763         GNU_USER_DYNAMIC_LINKER.
21764         * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
21765         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
21766         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
21767         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
21768         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
21769         * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
21770         GNU_USER_DYNAMIC_LINKER32.
21771         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
21772         * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
21773         GNU_USER_DYNAMIC_LINKER.
21774         * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
21775         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
21776         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
21777         GNU_USER_DYNAMIC_LINKER32.  Change LINUX_DYNAMIC_LINKER64 to
21778         GNU_USER_DYNAMIC_LINKER64.
21779         * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
21780         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
21781         (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
21782         GNU_USER_DYNAMIC_LINKER.
21783         * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
21784         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
21785         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
21786         GNU_USER_DYNAMIC_LINKER.
21787         * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
21788         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
21789         (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
21790         GNU_USER_DYNAMIC_LINKER32.
21791         (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
21792         GNU_USER_DYNAMIC_LINKER64.
21793         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
21794         GNU_USER_DYNAMIC_LINKER64.
21795         * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
21796         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
21797         * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
21798         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
21799         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
21800
21801 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
21802
21803         * config/i386/gnu-user.h: Copy from linux.h.  Update comments.
21804         (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
21805         (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
21806         GNU_USER_DYNAMIC_LINKER.
21807         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
21808         * config/i386/gnu-user64.h: Copy from linux64.h.  Update comments.
21809         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
21810         (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
21811         GNU_USER_DYNAMIC_LINKER64.
21812         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
21813         * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
21814         GNU_USER_LINK_EMULATION.
21815         * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
21816         DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
21817         ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
21818         MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
21819         PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
21820         CPP_SPEC, CC1_SPEC): Remove.
21821         (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
21822         (GNU_USER_DYNAMIC_LINKER): Define.
21823         (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
21824         ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
21825         ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
21826         LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
21827         TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
21828         STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
21829         TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
21830         * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
21831         CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
21832         TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
21833         LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
21834         LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
21835         (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
21836         (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
21837         TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
21838         TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
21839         * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
21840         GNU_USER_DYNAMIC_LINKER.
21841         * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
21842         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
21843         * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
21844         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
21845         * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
21846         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
21847         * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
21848         i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
21849         i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
21850         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
21851
21852 2011-04-11  Kai Tietz  <ktietz@redhat.com>
21853
21854         PR target/9601
21855         PR target/11772
21856         * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
21857         * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
21858         comment.
21859         (ix86_is_msabi_thiscall): Removed.
21860         (ix86_is_type_thiscall): Likewise.
21861         (ix86_get_callcvt): New function.
21862         (ix86_comp_type_attributes): Simplify check.
21863         (ix86_function_regparm): Use ix86_get_callcvt for calling
21864         convention attribute checks.
21865         (ix86_return_pops_args): Likewise.
21866         (ix86_static_chain): Likewise.
21867         (x86_this_parameter): Likewise.
21868         (x86_output_mi_thunk): Likewise.
21869         (ix86_function_type_abi): Optimize check for types without attributes.
21870         * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
21871         IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
21872         IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
21873         by flag-values.
21874         (IX86_BASE_CALLCVT): Helper macro.
21875         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
21876         Use ix86_get_callcvt for calling convention attribute checks and avoid
21877         symbol-decoration for stdcall in TARGET_RTD case.
21878         * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
21879         Likewise.
21880         (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
21881         for declaration.
21882
21883 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
21884
21885         * config/i386/sse.md (VI_128): New mode iterator.
21886         (VI12_128): Rename from SSEMODE12.
21887         (VI14_128): Rename from SSEMODE14.
21888         (VI124_128): New mode iterator.
21889         (VI24_128): Rename from SSEMODE248.
21890         (VI248_128): Rename from SSEMODE248.
21891         (SSEMODE124C8): Remove.
21892         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
21893         (*sse2_<plusminus_insn><mode>3): Merge with
21894         *avx_<plusminus_insn><mode>3.
21895         (*mulv8hi3): Merge with *avx_mulv8hi3.
21896         (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
21897         (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
21898         (*sse2_pmaddwd): Merge with *avx_pmaddwd.
21899         (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
21900         (ashr<mode>3): Merge with *avx_ashr<mode>3.
21901         (lshr<mode>3): Merge with *avx_lshr<mode>3.
21902         (ashl<mode>3): Merge with *avx_ashl<mode>3.
21903         (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
21904         (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
21905         (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
21906         (*<smaxmin:code>v8hi3): Ditto.
21907         (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
21908         (*<smaxmin:code>v16qi3): Ditto.
21909         (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
21910         (*sse2_eq<mode>3): Ditto.
21911         (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
21912         (*sse2_gt<mode>3): Ditto.
21913         (vcondv2di): Split out of vcond<mode>.
21914         (vconduv2di): Split out of vcondu<mode>.
21915
21916 2011-04-11  Richard Guenther  <rguenther@suse.de>
21917
21918         * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
21919         before calling tree_low_cst.
21920
21921 2011-04-11  Richard Guenther  <rguenther@suse.de>
21922
21923         * stor-layout.c (layout_type): Compute all array index size operations
21924         in the original type.
21925         (initialize_sizetypes): Add comment.
21926         (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
21927
21928 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
21929
21930         * common.opt (Tbss=, Tdata=, Ttext=): New options.
21931
21932 2011-04-11  Martin Jambor  <mjambor@suse.cz>
21933
21934         * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
21935         of cgraph_node, handle NULL return value.
21936         (cgraph_global_info): Likewise.
21937         (cgraph_rtl_info): Likewise.
21938         * tree-inline.c (estimate_num_insns): Likewise.
21939         * gimplify.c (unshare_body): Likewise.
21940         (unvisit_body): Likewise.
21941         (gimplify_body): Likewise.
21942         * predict.c (optimize_function_for_size_p): Likewise.
21943         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
21944         (call_may_clobber_ref_p_1): Likewise.
21945         * varasm.c (function_section_1): Likewise.
21946         (assemble_start_function): Likewise.
21947
21948 2011-04-11  Martin Jambor  <mjambor@suse.cz>
21949
21950         * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
21951         of cgraph_node.
21952         * final.c (rest_of_clean_state): Likewise.
21953         * gimple-iterator.c (update_call_edge_frequencies): Likewise.
21954         * passes.c (pass_init_dump_file): Likewise.
21955         (execute_all_ipa_transforms): Likewise.
21956         (function_called_by_processed_nodes_p): Likewise.
21957         * predict.c (maybe_hot_frequency_p): Likewise.
21958         (probably_never_executed_bb_p): Likewise.
21959         (compute_function_frequency): Likewise.
21960         * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
21961         (unnest_nesting_tree_1): Likewise.
21962         (lower_nested_functions): Likewise.
21963         * tree-optimize.c (execute_fixup_cfg): Likewise.
21964         (tree_rest_of_compilation): Likewise.
21965         * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
21966         * tree-sra.c (ipa_early_sra): Likewise.
21967         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
21968         * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
21969         * ipa.c (record_cdtor_fn): Likewise.
21970         * ipa-inline.c (cgraph_early_inlining): Likewise.
21971         (compute_inline_parameters_for_current): Likewise.
21972         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
21973         * ipa-pure-const.c (local_pure_const): Likewise.
21974         * ipa-split.c (split_function): Likewise.
21975         (execute_split_functions): Likewise.
21976         * cgraphbuild.c (build_cgraph_edges): Likewise.
21977         (rebuild_cgraph_edges): Likewise.
21978         (cgraph_rebuild_references): Likewise.
21979         (remove_cgraph_callee_edges): Likewise.
21980         * cgraphunit.c (cgraph_mark_if_needed): Likewise.
21981         (verify_cgraph_node): Likewise.
21982         (cgraph_analyze_functions): Likewise.
21983         (cgraph_preserve_function_body_p): Likewise.
21984         (save_inline_function_body): Likewise.
21985         (save_inline_function_body): Likewise.
21986         * tree-inline.c (copy_bb): Likewise.
21987         (optimize_inline_calls): Likewise.
21988
21989 2011-04-11  Martin Jambor  <mjambor@suse.cz>
21990
21991         PR tree-optimization/48195
21992         * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
21993         ipa_check_create_edge_args.
21994         (ipcp_generate_summary): Do not call ipa_check_create_node_params and
21995         ipa_check_create_edge_args.
21996         * ipa-inline.c (inline_generate_summary): Do not call
21997         ipa_check_create_node_params and ipa_check_create_edge_args.
21998         * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
21999         ipa_check_create_edge_args.
22000
22001 2011-04-09  Anatoly Sokolov  <aesok@post.ru>
22002
22003         * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
22004         instead of loop.
22005         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
22006         * function.c (record_hard_reg_sets): Likewise.
22007         * ira.c (compute_regs_asm_clobbered): Likewise.
22008         * sched-deps.c (sched_analyze_1): Likewise.
22009         * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
22010
22011 2011-04-09  Xinliang David Li  <davidxl@google.com>
22012
22013         PR tree-optimization/PR48484
22014         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
22015         has_valid_pred lazily
22016
22017 2011-04-09  Duncan Sands  <baldrick@free.fr>
22018
22019         * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
22020
22021 2011-04-08  Eric Botcazou  <ebotcazou@adacore.com>
22022
22023         * combine.c (combine_validate_cost): Adjust comments.  Set registered
22024         cost of I0 to zero at the end, if any.
22025
22026 2011-04-08  Xinliang David Li  <davidxl@google.com>
22027
22028         * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
22029         to insane profile data.
22030
22031 2011-04-08  Xinliang David Li  <davidxl@google.com>
22032
22033         * ipa-cp.c (ipcp_update_profiling): Correct
22034          negative scale factor due to insane profile data.
22035
22036 2011-04-08  Xinliang David Li  <davidxl@google.com>
22037
22038         * final.c (dump_basic_block_info): New function.
22039         (final): Dump basic block.
22040         (final_scan_insn): Remove old dump.
22041
22042 2011-04-08  Steven G. Kargl  <kargl@gcc.gnu.org>
22043
22044         PR target/47829
22045         * config.gcc (i386-*-freebsd): Disable unwind table generation for
22046         crtbegin/crtend.
22047
22048 2011-04-08  Michael Matz  <matz@suse.de>
22049
22050         PR middle-end/48389
22051         * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
22052         functions.
22053         (rebuild_jump_labels): Call rebuild_jump_labels_1.
22054         * rtl.h (rebuild_jump_labels_chain): Declare.
22055         * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
22056         insns inserted on edges.
22057
22058 2011-04-08  Joseph Myers  <joseph@codesourcery.com>
22059
22060         * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
22061         * config/arm/arm-arches.def: New.
22062         * config/arm/arm-opts.h: New.
22063         * config/arm/genopt.sh: New.
22064         * config/arm/arm-tables.opt: New (generated).
22065         * config/arm/arm.c (arm_handle_option, arm_target_help,
22066         TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
22067         (all_architectures): Get most table contents from arm-arches.def.
22068         (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
22069         arm_selected_tune here.
22070         * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
22071         * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
22072         (march=, mcpu=, mtune=): Use Enum and Var.
22073         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
22074         (arm.o): Update dependencies.
22075
22076 2011-04-08  Basile Starynkevitch  <basile@starynkevitch.net>
22077
22078         * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
22079         of header_file.
22080         (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
22081         (write_typed_alloc_defns): Likewise.
22082         (main): Calls write_typed_alloc_defns with output_header.
22083
22084 2011-04-08  Vladimir Makarov  <vmakarov@redhat.com>
22085
22086         PR inline-asm/48435
22087         * ira-color.c (setup_profitable_hard_regs): Add comments.
22088         Don't take prohibited hard regs into account.
22089         (setup_conflict_profitable_regs): Rename to
22090         get_conflict_profitable_regs.
22091         (check_hard_reg_p): Check prohibited hard regs.
22092
22093 2011-04-08  Nathan Froyd  <froydnj@codesourcery.com>
22094
22095         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
22096         * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
22097         * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
22098
22099 2011-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
22100
22101         PR target/48366
22102         * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
22103         move from floating point to shift amount register.
22104         (emit_move_sequence): Remove secondary reload support for floating
22105         point to shift amount amount register copies.
22106         (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
22107         amount register copies.
22108         * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
22109         register, return false if mode isn't a scalar integer mode.
22110         * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
22111
22112 2011-04-08  Richard Guenther  <rguenther@suse.de>
22113
22114         * gimple.c (gimple_call_flags): Remove kludge.
22115
22116 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
22117
22118         * sel-sched.c (sel_region_init): Move call to
22119         sel_setup_region_sched_flags after setup_current_loop_nest.
22120
22121 2011-04-08  Andrey Belevantsev  <abel@ispras.ru>
22122
22123         PR rtl-optimization/48272
22124         * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
22125         init_insn_reg_pressure_info.  Adjust a caller.
22126         * sched-int.h (init_insn_reg_pressure_info): Declare.
22127         * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
22128         when sched-pressure is enabled.
22129
22130 2011-04-08  Richard Guenther  <rguenther@suse.de>
22131
22132         * gimple.c (gimple_set_modified): Do not queue calls to
22133         MODIFIED_NORETURN_CALLS here ...
22134         * tree-ssa-operands.c (update_stmt_operands): ... but here.
22135
22136 2011-04-08  Richard Guenther  <rguenther@suse.de>
22137
22138         PR lto/48467
22139         * toplev.c (lang_dependent_init): Do not open asm_out_file
22140         in WPA mode, nor perform debug machinery initialization.
22141         (finalize): Do not unlink asm_out_file in WPA mode.
22142
22143 2011-04-08  Richard Guenther  <rguenther@suse.de>
22144
22145         * gimple.h (gimple_call_fntype): New function.
22146         (gimple_call_return_type): Use it.
22147         * expr.c (expand_expr_real_1): Use gimple_call_fntype.
22148         * gimple-low.c (gimple_check_call_args): Likewise.
22149         * gimple.c (gimple_call_flags): Likewise.
22150         (gimple_call_arg_flags): Likewise.
22151         (gimple_call_return_flags): Likewise.
22152         * tree-cfg.c (verify_gimple_call): Likewise.
22153         (do_warn_unused_result): Likewise.
22154         * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
22155         * value-prof.c (gimple_ic_transform): Fix fndecl check.
22156
22157 2011-04-08  Dmitry Melnik  <dm@ispras.ru>
22158
22159         PR rtl-optimization/48235
22160         * sel-sched.c (code_motion_process_successors): Recompute the last
22161         insn in basic block if control flow changed.
22162         (code_motion_path_driver): Ditto.  Recompute the first insn as well.
22163         Update condition for ilist_remove.
22164
22165 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
22166
22167         PR rtl-optimization/48302
22168         * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
22169         * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument.  Use
22170         it to record added preheader blocks.
22171         * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument.  Pass it
22172         on to sel_add_loop_preheaders.
22173         (sel_region_init): Move call to setup_current_loop_nest after
22174         sel_init_bbs.
22175
22176 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
22177
22178         PR target/48273
22179         * cfgloop.h (loop_has_exit_edges): New helper.
22180         * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
22181         non-clonable.
22182         * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
22183         that have no exit edges.
22184
22185 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
22186
22187         PR rtl-optimization/48442
22188         * sel-sched.c (init_seqno): Remove number_of_insns argument.  Update
22189         all callers.  Adjust assert.
22190
22191 2011-04-08  Jakub Jelinek  <jakub@redhat.com>
22192
22193         PR tree-optimization/48377
22194         * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
22195         is_packed to true even for types with smaller TYPE_ALIGN than
22196         TYPE_SIZE.
22197
22198 2011-04-08  Richard Guenther  <rguenther@suse.de>
22199
22200         PR bootstrap/48513
22201         * doc/tm.texi: Re-generate.
22202
22203 2011-04-08  Wei Guozhi  <carrot@google.com>
22204
22205         PR target/47855
22206         * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
22207         * config/arm/arm.c (arm_attr_length_push_multi): New function.
22208         * config/arm/arm.md (*push_multi): Change the length computation to
22209         call a C function.
22210
22211 2011-04-08  Anatoly Sokolov  <aesok@post.ru>
22212
22213         * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
22214         (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
22215         * doc/tm.texi: Regenerate.
22216         * system.h (ASM_OUTPUT_BSS): Poison.
22217         * varasm.c (asm_output_bss): Remove function.
22218         (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
22219
22220         * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
22221         * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
22222         * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
22223         * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
22224         Likewise.
22225         * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
22226         Likewise.
22227         * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
22228         Likewise.
22229         * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
22230
22231 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
22232
22233         * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
22234         EnumValue lines.
22235
22236 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
22237
22238         * config/m68k/m68k.c (m68k_handle_option): Don't handle
22239         OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
22240         OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
22241         OPT_mcpu32.
22242         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
22243         handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
22244         -m68030, -m68040, -m68060, -mcpu32 and -m68332.
22245         * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
22246         m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
22247         * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
22248         (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
22249         (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
22250         options.  Don't map other m68k options manually.  Don't handle
22251         old-style options as canonical.
22252         (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
22253         * doc/install.texi (m68k-*-*): Document binutils version requirement.
22254
22255 2011-04-07  Eric Botcazou  <ebotcazou@adacore.com>
22256
22257         * basic-block.h (force_nonfallthru): Move to...
22258         * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
22259         (force_nonfallthru): ...here.
22260         * cfghooks.c (force_nonfallthru): New function.
22261         * cfgrtl.c (force_nonfallthru): Rename into...
22262         (rtl_force_nonfallthru): ...this.
22263         (commit_one_edge_insertion): Do not set AUX field.
22264         (commit_edge_insertions): Do not discover new basic blocks.
22265         (rtl_cfg_hooks): Add rtl_force_nonfallthru.
22266         (cfg_layout_rtl_cfg_hooks): Likewise.
22267         * function.c (thread_prologue_and_epilogue_insns): Remove bogus
22268         ATTRIBUTE_UNUSED.  Discover new basic blocks in the prologue insns.
22269         * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
22270
22271 2011-04-07  Anatoly Sokolov  <aesok@post.ru>
22272
22273         * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
22274         Remove macros.
22275
22276 2011-04-07  Uros Bizjak  <ubizjak@gmail.com>
22277
22278         * config/i386/sse.md: Update copyright year.
22279         (avxcvtvecmode): Remove.
22280         (sse_movhlps): Merge with *avx_movhlps.
22281         (sse_movlhps): Merge with *avx_movlhps.
22282         (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
22283         (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
22284         (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
22285         (sse_loadhps): Merge with *avx_loadhps.
22286         (sse_storelps): Merge with *avx_storelps.
22287         (sse_loadlps): Merge with *avx_loadlps.
22288         (sse_movss): Merge with *avx_movss.
22289         (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
22290         (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
22291         (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
22292         (*vec_set<mode>_0_sse2): Split multi-unit alternative.
22293         (vec_set<mode>_0): Ditto.
22294         (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
22295         (sse4_1_insertps): Merge with *avx_insertps.
22296         (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
22297         (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
22298         (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
22299         (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
22300         (sse2_storehpd): Merge with *avx_storehpd.
22301         (sse2_loadhpd): Merge with *avx_loadhpd.
22302         (sse2_loadlpd): Merge with *avx_loadlpd.
22303         (sse2_movsd): Merge with *avx_movsd.
22304         (*vec_concatv2df): Merge with *vec_concatv2df.
22305
22306 2011-04-07  Jakub Jelinek  <jakub@redhat.com>
22307
22308         PR debug/48343
22309         * combine.c (combine_instructions): Add last_combined_insn,
22310         update it if insn is after it, pass it to all try_combine calls.
22311         (try_combine): Add last_combined_insn parameter, pass it instead of
22312         i3 to propagate_for_debug.
22313
22314 2011-04-07  Nick Clifton  <nickc@redhat.com>
22315
22316         * config/mn10300/mn10300.md (movqi_internal): Add alternatives
22317         to handle MDR <-> data register transfers.
22318         (movhi_internal): Likewise.
22319
22320 2011-04-07  Alan Modra  <amodra@gmail.com>
22321
22322         * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
22323         previous stack info.
22324
22325 2011-04-07  Tom de Vries  <tom@codesourcery.com>
22326
22327         PR target/43920
22328         * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter.  Pass dir to
22329         flow_find_cross_jump.  Swap variables to implement backward replacement.
22330         (try_crossjump_bb): Add argument to try_crossjump_to_edge.
22331
22332 2011-04-07  Tom de Vries  <tom@codesourcery.com>
22333
22334         PR target/43920
22335         * cfgcleanup.c (walk_to_nondebug_insn): New function.
22336         (flow_find_cross_jump): Use walk_to_nondebug_insn.  Recalculate bb1
22337         and bb2.
22338         (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
22339         src1 or src2.  Redirect edges to the last basic block.  Update
22340         frequency and count on multiple basic blocks in case of fallthru.
22341
22342 2011-04-07  Tom de Vries  <tom@codesourcery.com>
22343
22344         PR target/43920
22345         * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
22346         function.
22347         (old_insns_match_p): Change return type.  Replace return false/true
22348         with return dir_none/dir_both.  Use can_replace_by.
22349         (flow_find_cross_jump): Add dir_p parameter.  Init replacement
22350         direction from dir_p.  Register replacement direction in dir, last_dir
22351         and afterlast_dir.  Handle new return type of old_insns_match_p using
22352         merge_dir.  Return replacement direction in dir_p.
22353         (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
22354         return type of old_insns_match_p.
22355         (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
22356         * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
22357         flow_find_cross_jump.
22358         * basic-block.h (enum replace_direction): New type.
22359         (flow_find_cross_jump): Add parameter to declaration.
22360
22361 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
22362
22363         * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
22364         (AVXMODEDCVTPS2DQ): Ditto.
22365         (VEC_FLOAT_MODE): Ditto.
22366         (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3.  Use VF mode
22367         iterator.  Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
22368         (<any_logic:code><mode>3): Use VF mode iterator.
22369         (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
22370         Use VF mode iterator.
22371         (copysign<mode>3): Use VF mode iterator.
22372         (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3.  Handle
22373         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
22374         (*<any_logic:code><MODEF:mode>3): Merge with
22375         *avx_<any_logic:code><MODEF:mode>3.
22376         (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
22377         (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
22378         (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
22379         (avx_cvtdq2ps<avxmodesuffix>): Remove.
22380         (sse2_cvtdq2ps): Use %v modifier.
22381         (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
22382         (avx_cvtps2dq<avxmodesuffix>): Remove.
22383         (sse2_cvtps2dq): Use %v modifier.
22384         (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
22385         (avx_cvttps2dq<avxmodesuffix>): Remove.
22386         (sse2_cvttps2dq): Use %v modifier.
22387         (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
22388         (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
22389         (sse2_cvtsd2siq): Fix insn template.
22390         (sse2_cvtsd2siq_2): Ditto.
22391         (sse2_cvttsd2siq): Ditto.
22392         (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
22393         (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
22394
22395 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
22396
22397         * gcov-io.c: Use GCC Runtime Library Exception.
22398
22399 2011-04-06  Jakub Jelinek  <jakub@redhat.com>
22400
22401         PR debug/48466
22402         * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
22403         as base_reg whatever register reg has been eliminated to, instead
22404         of hardcoding STACK_POINTER_REGNUM.
22405
22406 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
22407
22408         * doc/tm.texi.in: Document C target hooks as separate from general
22409         target hooks.
22410         * doc/tm.texi: Regenerate.
22411         * genhooks.c (struct hook_desc): Add docname field.
22412         (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC).  Initialize
22413         docname field.
22414         (hook_array): Include c-target.def.
22415         (emit_documentation): Use docname field in output.
22416         (emit_init_macros): Take docname argument.  Only emit definitions
22417         for hooks matching docname.
22418         (main): Expect additional arguments in all cases.  Pass argument
22419         to emit_init_macros.
22420         * target.def: Move initial macro definitions and comments to
22421         target-hooks-macros.h.
22422         (gcc_targetcm): Move to c-family/c-target.def.
22423         * target.h (targetcm): Move declaration to c-family/c-target.h.
22424         * targhooks.c (default_handle_c_option): Move to
22425         c-family/c-opts.c.
22426         * targhooks.h (default_handle_c_option): Move declaration to
22427         c-family/c-common.h.
22428         * target-hooks-macros.h: New file.
22429         * config.gcc (target_has_targetcm): Define and use to add to
22430         c_target_objs and cxx_target_objs.
22431         * config/default-c.c: New file.
22432         * config/darwin-c.c: Include c-target.h and c-target-def.h instead
22433         of target.h and target-def.h.
22434         (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
22435         (darwin_objc_construct_string, darwin_cfstring_ref_p,
22436         darwin_check_cfstring_format_arg): Make static.
22437         (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
22438         TARGET_STRING_OBJECT_REF_TYPE_P,
22439         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
22440         * config/darwin-protos.h (darwin_objc_construct_string,
22441         darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
22442         declare.
22443         * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
22444         TARGET_STRING_OBJECT_REF_TYPE_P,
22445         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
22446         * config/t-darwin (darwin-c.o): Update dependencies.
22447         * system.h (TARGET_HAS_TARGETCM): Poison.
22448         * Makefile.in (TARGET_H): Update.
22449         (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
22450         (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
22451         (default-c.o): New target.
22452         (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
22453         (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
22454         (s-tm-texi): Pass -d option to genhooks.  Also test timestamp on
22455         c-target.def.
22456         (build/genhooks.o): Update dependencies.
22457
22458 2011-04-06  Richard Guenther  <rguenther@suse.de>
22459
22460         * ipa-inline.c (enum inlining_mode): Remove.
22461         (cgraph_flatten): Use some other token.
22462         (cgraph_edge_early_inlinable_p): New function, split out from ...
22463         (cgraph_perform_always_inlining): New function, split out from ...
22464         (cgraph_decide_inlining_incrementally): ... here.
22465         (cgraph_mark_inline_edge): Adjust.
22466         (cgraph_early_inlining): Re-structure.
22467         (pass_early_inline): Require SSA form.
22468
22469 2011-04-06  Andrew Stubbs  <ams@codesourcery.com>
22470             Julian Brown  <julian@codesourcery.com>
22471             Mark Shinwell  <shinwell@codesourcery.com>
22472
22473         * config/arm/arm.h (arm_class_likely_spilled_p): Check against
22474         LO_REGS only for Thumb-1.
22475         (MODE_BASE_REG_CLASS): Restrict base registers to those which can
22476         be used in short instructions when optimising for size on Thumb-2.
22477
22478 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
22479
22480         * gimple-low.c (lower_gimple_return): When not optimizing, force labels
22481         associated with user returns to be preserved.
22482
22483 2011-04-06  Tristan Gingold  <gingold@adacore.com>
22484
22485         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
22486         symbol_queue_size, DBXOUT_DECR_NESTING,
22487         (DBXOUT_DECR_NESTING_AND_RETURN): Also define
22488         if XCOFF_DEBUGGING_INFO.
22489
22490 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
22491
22492         * config/i386/i386.md (attribute isa): New.
22493         (attribute enabled): New.
22494         (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
22495         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
22496         (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
22497         (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
22498         (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
22499         (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
22500         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
22501         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
22502
22503         * config/i386/sse.md (VF): New mode iterator.
22504         (VF1): Ditto.
22505         (VF2): Ditto.
22506         (VF_128): Ditto.
22507         (SSEMODEF4): Remove.
22508         (attribute sse): Handle V8SF and V4DF modes.
22509         (<absneg:code><mode>2): Use VF mode iterator.
22510         (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2.  Use VF
22511         mode iterator.
22512         (<plusminus_insn><mode>3): Use VF mode iterator.
22513         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
22514         Use VF mode iterator.
22515         (<sse>_vm<plusminus_insn><mode>3): Merge with
22516         *avx_vm<plusminus_insn><mode>3.  Use VF_128 mode iterator.
22517         (mul<mode>3): Use VF mode iterator.
22518         (*mul<mode>3): Merge with *avx_mul<mode>3.  Use VF mode iterator.
22519         (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3.  Use VF_128
22520         mode iterator.
22521         (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
22522         (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
22523         (<sse>_div<mode>3): Merge with *avx_div<mode>3.  Use VF mode iterator.
22524         (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3.  Use VF_128
22525         mode iterator.
22526         (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
22527         Use VF1 mode iterator.
22528         (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
22529         (sqrt<VF2:mode>2): New expander.
22530         (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
22531         (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
22532         and sqrtv2df2.  Use VF mode iterator.
22533         (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2.  Use VF_128
22534         mode iterator.
22535         (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
22536         (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
22537         Use VF1 mode iterator.
22538         (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
22539         (<smaxmin:code><mode>3): Use VF mode iterator.
22540         (*<smaxmin:code><mode>3_finite): Merge with
22541         *avx_<smaxmin:code><mode>3_finite.  Use VF mode iterator.
22542         (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
22543         (<sse>_vm<smaxmin:code><mode>2): Merge with
22544         *avx_vm<smaxmin:code><mode>2.  Use VF_128 mode iterator.
22545         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.  Use VF
22546         mode iterator.
22547         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.  Use VF
22548         mode iterator.
22549         (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
22550         (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
22551         (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
22552         (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
22553         (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3.  Use
22554         VF mode iterator.
22555         (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
22556         Use VF_128 mode iterator.
22557         (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3.  Use VF
22558         mode iterator.
22559         (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3.  Use
22560         VF_128 mode iterator.
22561         (vcond<mode>): Use VF mode iterator.
22562         * config/i386/predicates.md (sse_comparison_operator): Merge with
22563         avx_comparison_float_operator.  Do not declare as special_predicate.
22564         * config/i386/i386.c (struct builtin_description): Update for renamed
22565         compare patterns.
22566         (ix86_expand_args_builtin): Ditto.
22567         (ix86_expand_sse_compare_mask): Ditto.
22568
22569 2011-04-06  Richard Guenther  <rguenther@suse.de>
22570
22571         * tree-inline.c (estimate_num_insns): For calls simply account
22572         for all passed arguments and a used return value.
22573
22574 2011-04-06  Richard Guenther  <rguenther@suse.de>
22575
22576         PR tree-optimization/47663
22577         * cgraph.h (struct cgraph_edge): Add call_stmt_size and
22578         call_stmt_time fields.
22579         (cgraph_edge_inlinable_p): Declare.
22580         (cgraph_edge_recursive_p): New inline function.
22581         * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
22582         (cgraph_clone_edge): Copy it.
22583         * ipa-inline.c (cgraph_estimate_edge_time): New function.
22584         Account for call stmt time.
22585         (cgraph_estimate_time_after_inlining): Take edge argument.
22586         (cgraph_estimate_edge_growth): Account call stmt size.
22587         (cgraph_estimate_size_after_inlining): Take edge argument.
22588         (cgraph_mark_inline_edge): Adjust.
22589         (cgraph_check_inline_limits): Likewise.
22590         (cgraph_recursive_inlining_p): Remove.
22591         (cgraph_edge_badness): Use cgraph_edge_recursive_p.
22592         (cgraph_decide_recursive_inlining): Take edge argument and
22593         adjust.
22594         (cgraph_decide_inlining_of_small_functions): Do not avoid
22595         diags for recursive inlining here.
22596         (cgraph_flatten): Adjust.
22597         (cgraph_decide_inlining_incrementally): Likewise.
22598         (estimate_function_body_sizes): Remove call cost handling.
22599         (compute_inline_parameters): Initialize caller edge call costs.
22600         (cgraph_estimate_edge_growth): New function.
22601         (cgraph_estimate_growth): Use it.
22602         (cgraph_edge_badness): Likewise.
22603         (cgraph_check_inline_limits): Take an edge argument.
22604         (cgraph_decide_inlining_of_small_functions): Adjust.
22605         (cgraph_decide_inlining): Likewise.
22606         * tree-inline.c (estimate_num_insns): Only account for call
22607         return value if it is used.
22608         (expand_call_inline): Avoid diagnostics on recursive inline
22609         functions here.
22610         * lto-cgraph.c (lto_output_edge): Output edge call costs.
22611         (input_edge): Input edge call costs.
22612
22613 2011-04-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22614
22615         * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
22616
22617 2011-04-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
22618
22619         * doc/invoke.texi (Spec Files): Fix typo.
22620
22621 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
22622
22623         * profile.c (branch_prob): Move declaration of local variable.  Remove
22624         obsolete ??? comment.  Expand the location explicitly instead of using
22625         the LOCATION_FILE and LOCATION_LINE macros.
22626
22627 2011-04-06  Wei Guozhi  <carrot@google.com>
22628
22629         PR target/47855
22630         * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
22631         (arm_cond_branch): Likewise.
22632         (arm_cond_branch_reversed): Likewise.
22633         (arm_jump): Likewise.
22634         (push_multi): Likewise.
22635         * config/arm/constraints.md (Py): New constraint.
22636
22637 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
22638
22639         PR bootstrap/48471
22640         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
22641         Move these...
22642         (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
22643         (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
22644         #ifdef DBX_DEBUGGING_INFO.
22645
22646 2011-04-05  Bernd Schmidt  <bernds@codesourcery.com>
22647
22648         PR bootstrap/48403
22649         * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
22650         if old and new states differ.
22651
22652 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
22653
22654         * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
22655         OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
22656         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
22657         handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
22658         * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
22659         mcfv4e): Use Alias.
22660         * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
22661         ColdFire options to -mcpu= options.
22662
22663 2011-04-05  Jeff Law  <law@redhat.com>
22664
22665         * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
22666         check if BB is a successor of LOOP->header and return
22667         NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
22668
22669 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
22670
22671         * cprop.c (struct reg_use): Remove.
22672         (reg_use_table): Make an array of RTX.
22673         (find_used_regs, constprop_register, local_cprop_pass,
22674         bypass_block): Simplify users of reg_use_table.
22675         (cprop_insn): Likewise.  Iterate if copy propagation succeeded
22676         on one of the uses found by find_used_regs.
22677
22678 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
22679
22680         PR bootstrap/48469
22681         * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
22682         declaration.
22683
22684 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
22685
22686         * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
22687         as an rtx.
22688         (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
22689
22690 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
22691
22692         PR middle-end/48441
22693         * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
22694
22695 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
22696
22697         * combine.c: Include obstack.h.
22698         (struct insn_link): Define.
22699         (uid_log_links): Adjust type.
22700         (FOR_EACH_LOG_LINK): New macro.
22701         (insn_link_obstack): Declare.
22702         (alloc_insn_link): Define.
22703         (create_log_links): Call it.  Use FOR_EACH_LOG_LINK and adjust
22704         type of link variables.
22705         (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
22706         (try_combine, record_promoted_values, distribute_notes): Likewise.
22707         (distribute_links): Likewise.  Tweak prototype.
22708         (clear_log_links): Delete.
22709         (adjust_for_new_dest): Call alloc_insn_link.
22710         * Makefile.in (combine.o): Depend on $(OBSTACK_H).
22711
22712 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
22713
22714         * gcse.c (modify_mem_list): Convert to an array of VECs.
22715         (canon_modify_mem_list, compute_transp): Tweak formatting.
22716         (alloc_gcse_mem): Likewise.  Adjust for modify_mem_list change.
22717         (load_killed_in_block_p): Likewise.
22718         (record_last_mem_set_info): Likewise.
22719         (clear_modify_mem_tables): Likewise.
22720
22721 2011-04-05  Tom de Vries  <tom@codesourcery.com>
22722
22723         PR middle-end/48461
22724         * function.c (emit_use_return_register_into_block): Only define if
22725         HAVE_return.
22726
22727 2011-04-05  Eric Botcazou  <ebotcazou@adacore.com>
22728
22729         * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
22730
22731 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
22732
22733         * config/rx/rx-opts.h: New.
22734         * config/rx/rx.c (rx_cpu_type): Remove.
22735         (rx_handle_option): Don't assert that global structures are in
22736         use.  Access variables via opts pointer.  Defer most handling of
22737         OPT_mint_register_.  Use error_at.
22738         (rx_option_override): Handle deferred OPT_mint_register_ here.
22739         * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
22740         * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
22741         (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
22742         (rx_cpu_types): New Enum and EnumValue entries.
22743         (mint-register=): Use Defer and use Var accordingly.
22744
22745 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
22746
22747         * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
22748         (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
22749         * final.c (debug_flush_symbol_queue, debug_queue_symbol):
22750         Move these...
22751         (debug_free_queue, debug_nesting, symbol_queue_index):
22752         ...and these...
22753         * dbxout.c: ...to here.  Make static.
22754
22755 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
22756
22757         * gcse.c (modify_pair): Define.  Define a VEC of it.
22758         (canon_modify_mem_list): Convert to an array of VECs.
22759         (free_insn_expr_list_list): Delete.
22760         (clear_modify_mem_tables): Call VEC_free instead.
22761         (record_last_mem_set_info): Don't modify canon_modify_mem_list.
22762         (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
22763         (canon_list_insert, compute_transp): Likewise.
22764
22765 2011-04-05  Tom de Vries  <tom@codesourcery.com>
22766
22767         PR target/43920
22768         * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
22769         for size.
22770
22771 2011-04-05  Tom de Vries  <tom@codesourcery.com>
22772
22773         PR target/43920
22774         * function.c (emit_use_return_register_into_block): New function.
22775         (thread_prologue_and_epilogue_insns): Use
22776         emit_use_return_register_into_block.
22777
22778 2011-04-05  Tom de Vries  <tom@codesourcery.com>
22779
22780         PR target/43920
22781         * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
22782         insn.
22783
22784 2011-04-05  Tom de Vries  <tom@codesourcery.com>
22785
22786         * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
22787
22788 2011-04-05  Yufeng Zhang  <yufeng.zhang@arm.com>
22789
22790         * config/arm/arm.md (define_constants for unspec): Replace with
22791         define_c_enum.
22792         (define_constants for unspecv): Replace with define_c_enum.
22793         * config/arm/neon.md (define_constants for unspec): Replace with
22794         define_c_enum.
22795
22796 2011-04-04  Richard Henderson  <rth@redhat.com>
22797
22798         PR bootstrap/48400
22799         * dwarf2out.c (output_line_info): Always emit line info from
22800         at least one section.
22801         (dwarf2out_init): Create text_section_line_info here ...
22802         (set_cur_line_info_table): ... not here.
22803
22804 2011-04-04  Vladimir Makarov  <vmakarov@redhat.com>
22805
22806         PR target/48380
22807         * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
22808         not called.
22809
22810         * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
22811
22812 2011-04-04  Steven Bosscher  <steven@gcc.gnu.org>
22813
22814         * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
22815         (expr_equiv_p): Remove.
22816         (insert_set_in_table): Look at <dest, src> pair instead of expr.
22817         (hash_scan_set): Update call to insert_set_in_table.
22818         (dump_hash_table): Dump <dest, src> pair.
22819         (lookup_set): Simplify.  Lookup <dest, src> pair.
22820         (compute_transp): Remove, fold heavily simplified code into...
22821         (compute_local_properties): ...here.  Expect COMP and TRANSP
22822         unconditionally.
22823         (find_avail_set): Take set directly from struct expr.
22824         (find_bypass-set): Likewise.
22825         (bypass_block): Likewise.
22826         (cprop_insn): Likewise.  Remove redundant INSN_P test.
22827
22828         * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
22829         checks on form of COND from find_implicit_sets to here.
22830         (find_implicit_sets): Cleanup control flow. Split critical edges
22831         if it exposes implicit sets.  Allocate/resize implicit_sets as
22832         necessary.
22833         (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
22834         changed something.  Run df_analyze after find_implicit_sets if any
22835         edges were split.  Do not allocate implicit_sets here.
22836
22837         * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
22838         (gcse_obstack): Renamed to cprop_obstack.
22839         (GNEW, GNEWVEC, GNEWVAR): Remove.
22840         (gmalloc): Remove.
22841         (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
22842         (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
22843         (gcse_alloc): Likewise, and rename to cprop_alloc.
22844         (alloc_gcse_men, free_gcse_mem): Remove.
22845         (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
22846         (compute_hash_table_work): Allocate and free reg_set_bitmap here.
22847         (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
22848
22849         * cprop.c (oprs_not_set_p): Remove.
22850         (mark_set, mark_clobber): Remove.
22851         (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
22852         (reg_not_set_p): New function.
22853         (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
22854         (cprop_insn): Likewise.
22855         (cprop_jump): Use FOR_EACH_EDGE.
22856
22857 2011-04-04  Bernd Schmidt  <bernds@codesourcery.com>
22858
22859         PR bootstrap/48403
22860         * haifa-sched.c (nonscheduled_insns_begin): New static variable.
22861         (rank_for_schedule): Use scheduled_insns vector instead of
22862         last_scheduled_insn.
22863         (ok_for_early_queue_removal): Likewise.
22864         (queue_to_ready): Search forward in nonscheduled_insns_begin if
22865         we have a dbg_cnt.
22866         (choose_ready): Likewise.
22867         (commit_schedule): Use VEC_iterate.
22868         (schedule_block): Initialize nonscheduled_insns_begin.  If we have
22869         a dbg_cnt, use it and ensure the first insn is in the ready list.
22870         (haifa_sched_init): Allocate scheduled_insns.
22871         (sched_extend_ready_list): Don't allocate it; reserve space.
22872         (haifa_sched_finish): Free it.
22873
22874 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
22875
22876         * optc-gen.awk: Always remove type from Variable entry before
22877         recording in var_seen.
22878
22879 2011-04-04  Eric Botcazou  <ebotcazou@adacore.com>
22880
22881         * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
22882         * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
22883         call to tidy_fallthru_edges.
22884
22885 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
22886
22887         * doc/options.texi (ToLower): Document.
22888         * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
22889         * opts-common.c (decode_cmdline_option): Handle cl_tolower.
22890         * opts.h (cl_option): Add cl_tolower field.
22891         * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
22892         arguments with lowercase strings.
22893         * config/rx/rx.opt (mcpu=): Add ToLower.
22894         * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
22895         argument.
22896
22897 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
22898
22899         * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
22900
22901 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
22902
22903         * config/vax/vax.c: Include reload.h.
22904
22905 2011-04-04  Anatoly Sokolov  <aesok@post.ru>
22906
22907         * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
22908         * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
22909         (sparc_preferred_reload_class): New function.
22910
22911 2011-04-04  Jakub Jelinek  <jakub@redhat.com>
22912
22913         PR debug/48401
22914         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
22915         Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
22916
22917 2011-04-03  Nathan Froyd  <froydnj@codesourcery.com>
22918
22919         * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
22920         * tree.c (initialize_tree_contains_struct): Adjust accordingly.
22921
22922 2011-04-03  Anatoly Sokolov  <aesok@post.ru>
22923
22924         * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
22925         (ASM_OUTPUT_ALIGNED_BSS): Define.
22926
22927 2011-04-03  Michael Matz  <matz@suse.de>
22928
22929         * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
22930         and next_slot members.
22931         (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
22932         lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
22933         (lto_streamer_cache_append): Declare.
22934         * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
22935         unsigned index, remove offset parameter, ensure that we append
22936         or update existing entries.
22937         (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
22938         parameter, update next_slot for append.
22939         (lto_streamer_cache_insert): Use unsigned index, remove offset_p
22940         parameter.
22941         (lto_streamer_cache_insert_at): Likewise.
22942         (lto_streamer_cache_append): New function.
22943         (lto_streamer_cache_lookup): Use unsigned index.
22944         (lto_streamer_cache_get): Likewise.
22945         (lto_record_common_node): Don't test tree_node_can_be_shared.
22946         (preload_common_node): Adjust call to lto_streamer_cache_insert.
22947         (lto_streamer_cache_delete): Don't free offsets member.
22948         * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
22949         (lto_output_string_with_length): Use lto_output_data_stream.
22950         (lto_output_tree_header): Remove ix parameter, don't write it.
22951         (lto_output_builtin_tree): Likewise.
22952         (lto_write_tree): Adjust callers to above, don't track and write
22953         offset, write unsigned index.
22954         (output_unreferenced_globals): Don't emit all global vars.
22955         (write_global_references): Use unsigned indices.
22956         (lto_output_decl_state_refs): Likewise.
22957         (write_symbol): Likewise.
22958         * lto-streamer-in.c (lto_input_chain): Move earlier.
22959         (input_function): Use unsigned index.
22960         (input_alias_pairs): Don't read and then ignore all global vars.
22961         (lto_materialize_tree): Remove ix_p parameter, don't read index,
22962         don't pass it back, use lto_streamer_cache_append.
22963         (lto_register_var_decl_in_symtab): Use unsigned index.
22964         (lto_register_function_decl_in_symtab): Likewise.
22965         (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
22966         index.
22967         (lto_get_builtin_tree): Don't read index, use
22968         lto_streamer_cache_append.
22969         (lto_read_tree): Adjust call to lto_materialize_tree.
22970
22971         * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
22972         don't use function calls in arguments to MIN.
22973
22974         * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
22975         twice.
22976
22977         * gimple.c (gimple_type_leader_entry): Mark deletable.
22978
22979 2011-04-03  Alan Modra  <amodra@gmail.com>
22980
22981         * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
22982
22983 2011-04-03  Michael Matz  <matz@suse.de>
22984
22985         * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
22986         an integer.
22987         * tree.h (tree_decl_non_common.vindex): Adjust comment.
22988
22989 2011-04-03  Michael Matz  <matz@suse.de>
22990
22991         * cgraphbuild.c (record_reference): Canonicalize constructor values.
22992         * gimple-fold.c (canonicalize_constructor_val): Accept being called
22993         without function context.
22994         * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
22995         current_function_decl and cfun.
22996
22997 2011-04-03  Michael Matz  <matz@suse.de>
22998
22999         * tree.c (decl_init_priority_insert): Don't create entry for
23000         default priority.
23001         (decl_fini_priority_insert): Ditto.
23002         (fields_compatible_p, find_compatible_field): Remove.
23003         * tree.h (fields_compatible_p, find_compatible_field): Remove.
23004         * gimple.c (gimple_compare_field_offset): Adjust block comment.
23005
23006 2011-04-03  Eric Botcazou  <ebotcazou@adacore.com>
23007
23008         * combine.c (try_combine): Remove useless local variable.
23009
23010 2011-04-03  Richard Guenther  <rguenther@suse.de>
23011             Ira Rosen  <ira.rosen@linaro.org>
23012
23013         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
23014         non-variable offsets and compare the remaining bases of the two
23015         accesses instead of looking for exact same data-ref.
23016
23017 2011-04-02  Kai Tietz  <ktietz@redhat.com>
23018
23019         PR target/48416
23020         * i386.c (ix86_function_arg_boundary): Fix printf formatter.
23021
23022         * i386.c (ix86_is_msabi_thiscall): New helper function.
23023         (ix86_is_type_thiscall): New helper function.
23024         (ix86_comp_type_attributes): Handle thiscall for method-functions
23025         special.
23026         (init_cumulative_args): Likewise.
23027         (find_drap_reg): Likewise.
23028         (ix86_static_chain): Likewise.
23029         (x86_this_parameter): Likewise.
23030         (x86_output_mi_thunk): Likewise.
23031
23032 2011-04-01  Olivier Hainque  <hainque@adacore.com>
23033             Nicolas Setton  <setton@adacore.com>
23034             Eric Botcazou  <ebotcazou@adacore.com>
23035
23036         * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
23037         (add_gnat_descriptive_type_attribute): New function.
23038         (gen_array_type_die): Call it.
23039         (gen_enumeration_type_die): Likewise.
23040         (gen_struct_or_union_type_die): Likewise.
23041         (modified_type_die): Likewise.
23042         * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
23043         * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
23044         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
23045
23046 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
23047
23048         PR bootstrap/48148
23049         * dwarf2out.c (resolve_addr): Don't call force_decl_die
23050         if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
23051
23052         Revert:
23053         2011-03-17  Richard Guenther  <rguenther@suse.de>
23054
23055         PR bootstrap/48148
23056         * lto-cgraph.c (input_overwrite_node): Clear the abstract
23057         origin for decls in other ltrans units.
23058         (input_varpool_node): Likewise.
23059
23060 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
23061
23062         PR middle-end/48335
23063         * expr.c (expand_assignment): Handle all possibilities
23064         if TO_RTX is CONCAT.
23065         * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
23066         (store_split_bit_field): If SUBREG_REG (op0) or
23067         op0 itself has smaller mode than word, return it
23068         for offset 0 and const0_rtx for out-of-bounds stores.
23069         If word is const0_rtx, skip it.
23070
23071 2011-04-01  Naveen H.S  <naveen.S@kpitcummins.com>
23072
23073         * config/h8300/h8300.c (print_operand_address): Rename to...
23074         (h8300_print_operand_address): ...this. Make static. Adjust comments.
23075         Call h8300_print_operand and h8300_print_operand_address instead of
23076         print_operand and print_operand_address. Declare.
23077         (print_operand): Renake to...
23078         (h8300_print_operand): ...this. Make static. Adjust comments.
23079         Call h8300_print_operand instead of print_operand. Declare.
23080         (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
23081         (h8300_register_move_cost): Likewise.
23082         (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
23083         TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
23084         * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
23085         PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
23086         * config/h8300/h8300-protos.h (print_operand): Delete.
23087         (print_operand_address): Delete.
23088
23089 2011-04-01  Richard Henderson  <rth@redhat.com>
23090
23091         PR 48400
23092         * dwarf2out.c (dwarf2out_source_line): Disable discriminators
23093         in strict mode before dwarf4.  Re-order tests to early out
23094         before switching sections.
23095
23096 2011-04-01  Nathan Froyd  <froydnj@codesourcery.com>
23097
23098         * config/h8300/constraints.md: New file.
23099         * config/h8300/h8300.md: Include it.  Use satisfies_constraint_J,
23100         satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
23101         (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
23102         * config/h8300/predicates.md (bit_operand): Likewise.
23103         (incdec_operand): Use satisfies_constraint_M and
23104         satisfies_constraint_O.  Don't use C code block.
23105         * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
23106         * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
23107         (compute_mov_length): Use satisfies_constraint_G.
23108         (fix_bit_operand): Use satisfies_constraint_U.
23109         * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
23110         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
23111         (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
23112         (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
23113         (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
23114         (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
23115         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
23116         (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
23117         (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
23118         (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
23119         (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
23120         (EXTRA_MEMORY_CONSTRAINT): Delete.
23121
23122 2011-04-01  Andrew Pinski  <pinskia@gmail.com>
23123             Michael Meissner  <meissner@linux.vnet.ibm.com>
23124
23125         PR target/48262
23126         * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
23127         operands, as per the specifications.
23128
23129         * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
23130         (vec_extract_evenv4sf): Ditto.
23131         (vec_extract_evenv8hi): Ditto.
23132         (vec_extract_evenv16qi): Ditto.
23133         (vec_extract_oddv4si): Ditto.
23134
23135 2011-03-31  Mark Wielaard  <mjw@redhat.com>
23136
23137         * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
23138         high_pc attribute if the CU has no associated code. Only output
23139         DW_AT_entry_pc for CU if not generating strict dwarf and
23140         dwarf_version < 4.
23141
23142 2011-04-01  Bernd Schmidt  <bernds@codesourcery.com>
23143
23144         * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
23145         * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
23146         out of ...
23147         (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
23148         * final.c (final_start_function): Call the new function rather
23149         than using a NULL argument for dwarf2out_frame_debug.
23150
23151         * ifcvt.c (cond_exec_process_insns): Disallow converting a block
23152         that contains the prologue.
23153
23154         * haifa-sched.c (queue_insn): New arg REASON.  All callers
23155         changed.  Print it in debugging output.
23156
23157         * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
23158
23159         * sched-ebb.c (begin_schedule_ready): Remove second argument.
23160         Split most of the code into...
23161         (begin_move_insn): ... here.  New function.
23162         (ebb_sched_info): Add a pointer to it.
23163         * haifa-sched.c (scheduled_insns): New static variable.
23164         (sched_extend_ready_list): Allocate it.
23165         (schedule_block): Use it to record the order of scheduled insns.
23166         Perform RTL changes to move insns only after all scheduling
23167         decisions have been made.
23168         * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
23169         begin_move_insn field.
23170         * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
23171         * sched-int.h (struct haifa_sched_info): Remove second argument
23172         from begin_schedule_ready hook.  Add new member begin_move_insn.
23173         * sched-rgn.c (begin_schedule_ready): Remove second argument.
23174         (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
23175
23176         * haifa-sched.c (prune_ready_list): New function, broken out of
23177         schedule_block.
23178         (schedule_block): Use it.
23179
23180 2011-04-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
23181
23182         * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
23183
23184 2011-04-01  Kai Tietz  <ktietz@redhat.com>
23185
23186         * config.gcc (*-*-mingw*): Allow as option the
23187         posix threading model.
23188         * config/i386/mingw32.h (SPEC_PTHREAD1,  SPEC_PTHREAD2):
23189         New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
23190         definition.
23191         (CPP_SPEC): Add pthread/no-pthread handling.
23192         (LIB_SPEC): Likewise.
23193         * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
23194         (LIB_SPEC): Likewise.
23195         * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
23196         flag to pass -pthread option for shared libgcc build.
23197         (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
23198         for shared libgcc build.
23199         * config/i386/t-mingw-pthread: New file.
23200         * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
23201         New define to enable use of library pthread by default.
23202         * config/i386/mingw.opt (pthread): New driver option.
23203         (no-pthread): New driver option.
23204         * config/i386/cygming.opt: Make sure trailing empty line is retained.
23205         * config/i386/mingw-w64.opt: Likewise.
23206
23207 2011-04-01  Gary Funck  <gary@intrepid.com>
23208
23209         * c-decl.c (grokdeclarator): Fix formatting.
23210
23211 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
23212
23213         * expr.c (emit_block_move_via_movmem): Use n_generator_args
23214         instead of n_operands.
23215         (set_storage_via_setmem): Likewise.
23216         * optabs.c (maybe_gen_insn): Likewise.
23217         * config/arm/arm.c (arm_init_neon_builtins): Likewise.
23218         * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
23219         (mips_expand_builtin_direct): Likewise.
23220         * config/spu/spu.c (expand_builtin_args): Likewise.
23221
23222 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
23223
23224         * recog.h (insn_data_d): Add n_generator_args.
23225         * genoutput.c (data): Likewise.
23226         (output_insn_data): Print it.
23227         (max_opno, num_dups): Delete.
23228         (scan_operands): Just fill in "d->operand[...]".
23229         (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
23230
23231 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
23232
23233         * gensupport.h (pattern_stats): New structure.
23234         * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
23235         * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
23236         (max_operand_1, max_operand_vec): Delete.
23237         (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
23238
23239 2011-03-31  Nathan Froyd  <froydnj@codesourcery.com>
23240
23241         * emit-rtl.c (emit_pattern_after_setloc): New function.
23242         (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
23243         (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
23244         (emit_pattern_after): New function.
23245         (emit_insn_after, emit_jump_insn_after): Call it.
23246         (emit_call_insn_after, emit_debug_insn_after): Likewise.
23247         (emit_pattern_before_setloc): New function.
23248         (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
23249         (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
23250         Likewise.
23251         (emit_pattern_before): New function.
23252         (emit_insn_before, emit_jump_insn_before): Call it.
23253         (emit_call_insn_before, emit_debug_insn_before): Likewise.
23254
23255 2011-03-31  Richard Henderson  <rth@redhat.com>
23256
23257         * dwarf2out.c (dw_separate_line_info_ref): Remove.
23258         (dw_separate_line_info_entry): Remove.
23259         (enum dw_line_info_opcode): New.
23260         (dw_line_info_entry): Use it.
23261         (dw_line_info_table, dw_line_info_table_p): New.
23262         (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
23263         (line_info_table, line_info_label_num): Remove.
23264         (line_info_table_in_use): Remove.
23265         (separate_line_info_table): Remove.
23266         (separate_line_info_table_allocated): Remove.
23267         (separate_line_info_table_in_use): Remove.
23268         (LINE_INFO_TABLE_INCREMENT): Remove.
23269         (line_info_label_num): New.
23270         (cur_line_info_table): New.
23271         (text_section_line_info, cold_text_section_line_info): New.
23272         (separate_line_info): New.
23273         (SEPARATE_LINE_CODE_LABEL): Remove.
23274         (print_dwarf_line_table): Remove.
23275         (debug_dwarf): Don't dump it.
23276         (output_one_line_info_table): New.
23277         (output_line_info): Use it.
23278         (new_line_info_table): New.
23279         (set_cur_line_info_table): New.
23280         (dwarf2out_switch_text_section): Use it.
23281         (dwarf2out_begin_function): Likewise.
23282         (push_dw_line_info_entry): New.
23283         (dwarf2out_source_line): Rewrite for new line info tables.
23284         (dwarf2out_init): Remove dead initailizations.
23285
23286 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
23287
23288         * opts.h (cl_option): Add comments to fields.  Add bit-fields for
23289         various flags.
23290         (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
23291         CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
23292         CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
23293         CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
23294         (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
23295         * opt-functions.awk (flag_init, switch_bit_fields): New.
23296         (switch_flags): Don't handle flags moved to bit-fields.  Don't
23297         generate CL_MISSING_OK or CL_SAVE.
23298         * optc-gen.awk: Update to generate bit-field output as well as
23299         flags field.
23300         * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
23301         bit-field instead of CL_REJECT_DRIVER flag.
23302         * opts-common.c (generate_canonical_option,
23303         decode_cmdline_option): Use bit-fields instead of CL_* flags.
23304         * opts.c (maybe_default_option): Use cl_reject_negative bit-field
23305         instead of CL_REJECT_NEGATIVE flag.
23306         * toplev.c (print_switch_values): Use cl_report bit-field instead
23307         of CL_REPORT flag.
23308
23309 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
23310
23311         * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
23312         a zero minimum index only if it is redundant.
23313
23314 2011-03-31  Vladimir Makarov  <vmakarov@redhat.com>
23315
23316         PR rtl-optimization/48381
23317         * ira-color.c (assign_hard_reg): Use hard reg set intersection
23318         instead of ira_class_hard_reg_index for calculating conflicting
23319         hard registers.
23320
23321 2011-03-31  Steven Bosscher  <steven@gcc.gnu.org>
23322
23323         * cprop.c: Clean up hash table building.
23324         (reg_avail_info): Remove.
23325         (oprs_available_p): Remove.
23326         (record_last_reg_set_info): Remove.
23327         (record_last_set_info): Remove.
23328         (reg_available_p): New function.
23329         (gcse_constant_p): Do not treat unfolded conditions as constants.
23330         (make_set_regs_unavailable): New function.
23331         (hash_scan_set): Simplify with new reg_available_p.
23332         (compute_hash_table_work): Traverse insns stream only once.
23333         Do not compute reg_avail_info. Traverse insns in reverse order.
23334         Record implicit sets after recording explicit sets from the block.
23335
23336 2011-03-31  Michael Matz  <matz@suse.de>
23337
23338         * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
23339
23340 2011-03-31  Anatoly Sokolov  <aesok@post.ru>
23341
23342         * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
23343         * config/h8300/h8300-protos.h (h8300_get_index): Remove.
23344         * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
23345         (h8300_mode_dependent_address_p): New function.
23346         (h8300_get_index): Make static.
23347
23348 2011-03-31  Jeff Law  <law@redhat.com>
23349
23350         * reload1.c (elimination_effects): Fix typo in recent change.
23351
23352         * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
23353         typo potentially leading to null pointer dereference.
23354
23355         * caller-save.c (new_saved_hard_reg): Eliminate return value.
23356         (setup_save_areas): Corresponding changes to avoid useless
23357         assignments.
23358
23359         * jump.c (reversed_comparison_code_parts): Avoid successive return
23360         statements when REVERSE_CONDITION is defined.
23361
23362         * expr.c (expand_assignment): Avoid useless assignments.
23363         (expand_expr_real_1): Likewise.
23364         (expand_expr_real_2): Avoid useless statements.
23365
23366         * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
23367
23368         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
23369
23370         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
23371         statements.
23372
23373         * stmt.c (expand_expr_stmt): Avoid useless assignment.
23374
23375 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
23376
23377         PR target/47109
23378         * doc/tm.texi.in (TARGET_VERSION): Remove.
23379         * doc/tm.texi: Regenerate.
23380         * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
23381         * collect2.c (main): Don't use TARGET_VERSION.
23382         * mips-tdump.c (main): Don't use TARGET_VERSION.
23383         * mips-tfile.c (main): Don't use TARGET_VERSION.
23384         * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
23385         * config/rs6000/vxworksae.h: Remove.
23386         * config/alpha/alpha.h (TARGET_VERSION): Remove.
23387         * config/alpha/freebsd.h (TARGET_VERSION): Remove.
23388         * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
23389         * config/alpha/netbsd.h (TARGET_VERSION): Remove.
23390         * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
23391         * config/arm/arm.h (TARGET_VERSION): Remove.
23392         * config/arm/coff.h (TARGET_VERSION): Remove.
23393         * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
23394         * config/arm/elf.h (TARGET_VERSION): Remove.
23395         * config/arm/freebsd.h (TARGET_VERSION): Remove.
23396         * config/arm/linux-elf.h (TARGET_VERSION): Remove.
23397         * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
23398         * config/arm/pe.h (TARGET_VERSION): Remove.
23399         * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
23400         * config/arm/semi.h (TARGET_VERSION): Remove.
23401         * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
23402         * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
23403         * config/arm/vxworks.h (TARGET_VERSION): Remove.
23404         * config/avr/avr.h (TARGET_VERSION): Remove.
23405         * config/bfin/bfin.h (TARGET_VERSION): Remove.
23406         * config/fr30/fr30.h (TARGET_VERSION): Remove.
23407         * config/frv/frv.h (TARGET_VERSION): Remove.
23408         * config/h8300/h8300.h (TARGET_VERSION): Remove.
23409         * config/i386/cygwin.h (TARGET_VERSION): Remove.
23410         * config/i386/darwin.h (TARGET_VERSION): Remove.
23411         * config/i386/darwin64.h (TARGET_VERSION): Remove.
23412         * config/i386/djgpp.h (TARGET_VERSION): Remove.
23413         * config/i386/freebsd.h (TARGET_VERSION): Remove.
23414         * config/i386/freebsd64.h (TARGET_VERSION): Remove.
23415         * config/i386/gnu.h (TARGET_VERSION): Remove.
23416         * config/i386/i386-interix.h (TARGET_VERSION): Remove.
23417         * config/i386/i386elf.h (TARGET_VERSION): Remove.
23418         * config/i386/linux.h (TARGET_VERSION): Remove.
23419         * config/i386/linux64.h (TARGET_VERSION): Remove.
23420         * config/i386/lynx.h (TARGET_VERSION): Remove.
23421         * config/i386/mingw32.h (TARGET_VERSION): Remove.
23422         * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
23423         * config/i386/netbsd64.h (TARGET_VERSION): Remove.
23424         * config/i386/netware.h (TARGET_VERSION): Remove.
23425         * config/i386/nto.h (TARGET_VERSION): Remove.
23426         * config/i386/openbsd.h (TARGET_VERSION): Remove.
23427         * config/i386/vxworks.h (TARGET_VERSION): Remove.
23428         * config/ia64/elf.h (TARGET_VERSION): Remove.
23429         * config/ia64/freebsd.h (TARGET_VERSION): Remove.
23430         * config/ia64/hpux.h (TARGET_VERSION): Remove.
23431         * config/ia64/linux.h (TARGET_VERSION): Remove.
23432         * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
23433         * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
23434         TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
23435         * config/lm32/lm32.h (TARGET_VERSION): Remove.
23436         * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
23437         * config/m32c/m32c.h (TARGET_VERSION): Remove.
23438         * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
23439         * config/m32r/m32r.h (TARGET_VERSION): Remove.
23440         * config/m68k/linux.h (TARGET_VERSION): Remove.
23441         * config/m68k/m68k.h (TARGET_VERSION): Remove.
23442         * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
23443         * config/m68k/uclinux.h (TARGET_VERSION): Remove.
23444         * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
23445         * config/mep/mep.h (TARGET_VERSION): Remove.
23446         * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
23447         MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
23448         * config/mips/iris6.h (MACHINE_TYPE): Remove.
23449         * config/mips/linux.h (TARGET_VERSION): Remove.
23450         * config/mips/netbsd.h (MACHINE_TYPE): Remove.
23451         * config/mips/vxworks.h (TARGET_VERSION): Remove.
23452         * config/mmix/mmix.h (TARGET_VERSION): Remove.
23453         * config/mn10300/linux.h (TARGET_VERSION): Remove.
23454         * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
23455         * config/pa/pa.h (TARGET_VERSION): Remove.
23456         * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
23457         * config/picochip/picochip.h (TARGET_VERSION): Remove.
23458         * config/rs6000/aix.h (TARGET_VERSION): Remove.
23459         * config/rs6000/darwin.h (TARGET_VERSION): Remove.
23460         * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
23461         * config/rs6000/eabi.h (TARGET_VERSION): Remove.
23462         * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
23463         * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
23464         * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
23465         * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
23466         * config/rs6000/linux.h (TARGET_VERSION): Remove.
23467         * config/rs6000/linux64.h (TARGET_VERSION): Remove.
23468         * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
23469         * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
23470         * config/rs6000/lynx.h (TARGET_VERSION): Remove.
23471         * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
23472         * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
23473         * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
23474         * config/s390/linux.h (TARGET_VERSION): Remove.
23475         * config/s390/s390.h (TARGET_VERSION): Remove.
23476         * config/s390/tpf.h (TARGET_VERSION): Remove.
23477         * config/score/score.h (TARGET_VERSION): Remove.
23478         * config/sh/linux.h (TARGET_VERSION): Remove.
23479         * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
23480         TARGET_VERSION_CPU, TARGET_VERSION): Remove.
23481         * config/sh/sh.h (TARGET_VERSION): Remove.
23482         * config/sh/sh64.h (TARGET_VERSION): Remove.
23483         * config/sh/superh.h (TARGET_VERSION): Remove.
23484         * config/sh/vxworks.h (TARGET_VERSION): Remove.
23485         * config/sparc/freebsd.h (TARGET_VERSION): Remove.
23486         * config/sparc/linux.h (TARGET_VERSION): Remove.
23487         * config/sparc/linux64.h (TARGET_VERSION): Remove.
23488         * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
23489         TARGET_NAME32, TARGET_NAME): Remove.
23490         * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
23491         * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
23492         * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
23493         * config/sparc/sysv4.h (TARGET_VERSION): Remove.
23494         * config/sparc/vxworks.h (TARGET_VERSION): Remove.
23495         * config/spu/spu.h (TARGET_VERSION): Remove.
23496         * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
23497         * config/v850/v850.h (TARGET_VERSION): Remove.
23498         * config/vax/linux.h (TARGET_VERSION): Remove.
23499         * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
23500         * config/xtensa/elf.h (TARGET_VERSION): Remove.
23501         * config/xtensa/linux.h (TARGET_VERSION): Remove.
23502
23503 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
23504
23505         PR target/48142
23506         * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
23507         frame-related from frame-unrelated adjustments to the stack pointer.
23508
23509 2011-03-31  Jakub Jelinek  <jakub@redhat.com>
23510
23511         * common.opt (fdebug-types-section): Move earlier.
23512         * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
23513
23514 2011-03-31  Andreas Tobler  <andreast@fgznet.ch>
23515
23516         * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
23517         var.
23518
23519 2011-03-30  Nathan Froyd  <froydnj@codesourcery.com>
23520
23521         * tree.h (CASE_CHAIN): Define.
23522         * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
23523         (gimple_redirect_edge_and_branch): Likewise.
23524
23525 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
23526
23527         PR middle-end/48367
23528         * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
23529         calculation.
23530
23531 2011-03-30  Jeff Law  <law@redhat.com>
23532
23533         * PR bootstrap/48371
23534         * reload1.c (reload): Fix botch in last change.
23535
23536         * reload.h (struct reload): Fix typo introduced in last change.
23537
23538 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
23539
23540         * config/arm/arm.opt (mhard-float, msoft-float): Mark
23541         Undocumented.  Remove help text.
23542         * doc/invoke.texi (ARM Options): Don't document -msoft-float and
23543         -mhard-float.
23544
23545 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
23546
23547         * doc/options.texi (NegativeAlias): Document.
23548         (Alias): Mention NegativeAlias.
23549         * opt-functions.awk: Handle NegativeAlias.
23550         * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
23551         * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
23552         * opts.h (CL_NEGATIVE_ALIAS): Define.
23553         * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
23554         (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
23555         OPT_mspe_.
23556         * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
23557         Alias entries.
23558         * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
23559         mno-spe and mno-isel instead of mspe=no and -misel=no.
23560
23561 2011-03-29  Mark Wielaard  <mjw@redhat.com>
23562
23563         * common.opt (fdebug-types-section): New flag.
23564         * doc/invoke.texi: Document new -fno-debug-types-section flag.
23565         * dwarf2out.c (use_debug_types): New define.
23566         (struct die_struct): Mark die_id with GTY desc use_debug_types.
23567         (print_die): Guard output of type unit signatures using
23568         use_debug_types.
23569         (build_abbrev_table): Replace assert of dwarf_version >= 4
23570         with assert on use_debug_types.
23571         (size_of_die): Likewise.
23572         (unmark_dies): Likewise.
23573         (value_format): Decide AT_ref_external form on use_debug_types.
23574         (output_die): Replace dwarf_version version check guard with
23575         use_debug_types where appropriate.
23576         (modified_type_die): Likewise.
23577         (gen_reference_type_die): Likewise.
23578         (dwarf2out_start_source_file): Likewise.
23579         (dwarf2out_end_source_file): Likewise.
23580         (prune_unused_types_walk_attribs): Likewise.
23581         (dwarf2out_finish): Likewise.
23582
23583 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
23584
23585         * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
23586
23587 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
23588
23589         PR rtl-optimization/48332
23590         * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
23591         mode of input operand N and modeN to its actual mode.
23592
23593 2011-03-30  Jeff Law  <law@redhat.com>
23594
23595         * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
23596         define accessor macro.
23597         (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
23598         (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
23599         (reg_equiv_init): Likewise.
23600         (reg_equivs_size): New variable.
23601         (reg_equiv_init_size): Remove.
23602         (allocate_initial_values): Move prototype to here from....
23603         * integrate.h (allocate_initial_values): Remove prototype.
23604         * integrate.c: Include reload.h.
23605         (allocate_initial_values): Corresponding changes.
23606         * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
23607         (fix_reg_equiv_init, no_equiv): Corresponding changes.
23608         (update_equiv_regs): Corresponding changes.
23609         (ira): Corresponding changes.
23610         * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
23611         (push_secondary_reload): Corresponding changes.
23612         (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
23613         (make_memloc, find_reloads_address): Corresponding changes.
23614         (subst_reg_equivs, subst_indexed_address): Corresponding changes.
23615         (find_reloads_address_1): Corresponding changes.
23616         (find_reloads_subreg_address, subst_reloads): Corresponding changes.
23617         (refers_to_regno_for_reload_p): Corresponding changes.
23618         (reg_overlap_mentioned_for_reload_p): Corresponding changes.
23619         (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
23620         * reload1.c: Include ggc.h.
23621         (grow_reg_equivs): New function.
23622         (replace_pseudos_in, reload): Corresponding changes.
23623         (calculate_needs_all_insns, alter_regs): Corresponding changes.
23624         (eliminate_regs_1, elimination_effects): Corresponding changes.
23625         (emit_input_reload_insns, emit_output_reload_insns): Likewise.
23626         (delete_output_reload): Likewise.
23627         * caller-save.c (mark_referenced_regs): Corresponding changes.
23628         * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
23629         * frv/predicates.md (frv_load_operand): Corresponding changes.
23630         * microblaze/microblaze.c (double_memory_operand): Corresponding
23631         changes.
23632         * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
23633         * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
23634         * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
23635         * m68k/m68k.c (emit_move_sequence): Corresponding changes.
23636         * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
23637         changes.
23638         * pa/pa.c (emit_move_sequence): Corresponding changes.
23639         * vax/vax.c (nonindexed_address_p): Corresponding changes.
23640
23641 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
23642
23643         PR target/47551
23644         * config/arm/arm.c (coproc_secondary_reload_class): Handle
23645         structure modes.  Don't check neon_vector_mem_operand for
23646         vector or structure modes.
23647
23648 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
23649             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
23650
23651         PR target/43590
23652         * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
23653         operand 1 and reshuffle the operands to match.
23654         (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
23655
23656 2011-03-30  Christian Schüler  <cschueler@gmx.de>
23657
23658         PR driver/48208
23659         * config/c.opt (F): Added 'Driver' to -F option.
23660
23661         PR driver/48260
23662         * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
23663           handler function.
23664         * config/darwin.opt: Added '-arch' option.
23665
23666 2011-03-30  Nick Clifton  <nickc@redhat.com>
23667
23668         * config/rx/rx.md: Add peepholes and patterns to combine
23669         extending loads and simple arithmetic instructions.
23670         * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
23671         * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
23672         * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
23673         modes to use pre-decrement and post-increment addressing.
23674         (rx_is_restricted_memory_address): Add range checking of REG+INT
23675         addresses.
23676         (rx_print_operand): Add support for %Q.  Fix handling of %Q.
23677         (rx_memory_move_cost): Adjust cost of stores.
23678         (rx_adjust_insn_length): New function.
23679
23680 2011-03-30  Jakub Jelinek  <jakub@redhat.com>
23681
23682         PR c/48305
23683         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
23684         arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
23685         matching arg00/arg01 types.
23686
23687 2011-03-30  Eric Botcazou  <ebotcazou@adacore.com>
23688
23689         * cfglayout.c (insn_locators_alloc): Initialize curr_location and
23690         last_location to UNKNOWN_LOCATION.
23691
23692 2011-03-30  H.J. Lu  <hongjiu.lu@intel.com>
23693
23694         PR target/48349
23695         * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
23696         FLOAT_SSE_REGS.
23697
23698 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
23699             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23700
23701         PR bootstrap/48337
23702         * config/sparc/sparc.opt (sparc_cpu_and_features): Add
23703         Init(PROCESSOR_V7).
23704         (sparc_cpu): Likewise.
23705         * config/sparc/sparc.c (sparc_option_override): Replace 0 by
23706         PROCESSOR_V7.
23707
23708 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
23709
23710         PR target/48336
23711         PR middle-end/48342
23712         PR rtl-optimization/48345
23713         * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
23714         hard regs for given mode from profitable regs when doing secondary
23715         allocation.
23716
23717 2011-03-29  Jeff Law  <law@redhat.com>
23718
23719         PR bootstrap/48327
23720         * tree-ssa-threadupdate.c (struct redirection_data): Remove
23721         do_not_duplicate field.
23722         (lookup_redirection_data): Corresponding changes.
23723         (create_duplicates): Always create a template block.
23724         (redirect_edges): Remove code which reused the original block
23725         when it was going to become unreachable code.
23726         (thread_block): Don't set do_not_duplicate field.
23727
23728 2011-03-29  Joseph Myers  <joseph@codesourcery.com>
23729
23730         * lto-opts.c (register_user_option_p, lto_register_user_option):
23731         Make type argument unsigned.
23732         * lto-streamer.h (lto_register_user_option): Make type argument
23733         unsigned.
23734         * opth-gen.awk: Make CL_* macros unsigned.
23735         * opts-common.c (find_opt): Make lang_mask argument unsigned.
23736         * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
23737         CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
23738         CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
23739         CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
23740         CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
23741         (find_opt): Make lang_mask argument unsigned.
23742
23743 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
23744
23745         PR rtl-optimization/48331
23746         PR rtl-optimization/48334
23747         * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
23748         for any used algorithm.
23749
23750 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
23751
23752         * ira-conflicts.c (build_object_conflicts): Add unused attribute
23753         to parent_max.
23754
23755 2011-03-29  Uros Bizjak  <ubizjak@gmail.com>
23756
23757         * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
23758         (alpha_option_override): Don't set alpha_sr_alias_set.
23759         (emit_frame_store_1): Use gen_frame_mem rather than calling
23760         set_mem_alias_set.
23761         (alpha_expand_epilogue): Ditto.
23762
23763 2011-03-29  Ira Rosen  <ira.rosen@linaro.org>
23764
23765         PR tree-optimization/48290
23766         * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
23767         vectorization, check that relevant phis in the basic block after
23768         the inner loop are really inner loop's exit phis.
23769
23770 2011-03-29  Richard Sandiford  <richard.sandiford@linaro.org>
23771
23772         PR debug/48190
23773         * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
23774         (cached_dw_loc_list_def): New structure.
23775         (cached_dw_loc_list): New typedef.
23776         (cached_dw_loc_list_table): New variable.
23777         (cached_dw_loc_list_table_hash): New function.
23778         (cached_dw_loc_list_table_eq): Likewise.
23779         (add_location_or_const_value_attribute): Take a bool cache_p.
23780         Cache the list when the parameter is true.
23781         (gen_formal_parameter_die): Update caller.
23782         (gen_variable_die): Likewise.
23783         (dwarf2out_finish): Likewise.
23784         (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
23785         while generating debug info for the decl.
23786         (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
23787         (dwarf2out_init): Initialize cached_dw_loc_list_table.
23788         (resolve_addr): Cache the result of resolving a chain of
23789         location lists.
23790
23791 2011-03-28  Vladimir Makarov  <vmakarov@redhat.com>
23792
23793         * ira-color.c (update_left_conflict_sizes_p): Don't assume that
23794         conflict object hard regset nodes have intersecting hard reg sets.
23795
23796         * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
23797         after regstat_init_n_sets_and_refs.
23798
23799         * ira.c: Add more comments at the top.
23800         (setup_stack_reg_pressure_class, setup_pressure_classes):
23801         Add comments how we compute the register pressure classes.
23802         (setup_allocno_and_important_classes): Add more comments.
23803         (setup_class_translate_array, reorder_important_classes)
23804         (setup_reg_class_relations): Add comments.
23805
23806         * ira-emit.c: Add 2011 to the Copyright line.  Add comments at the
23807         start of the file.
23808
23809         * ira-color.c: Add 2011 to the Copyright line.
23810         (assign_hard_reg):  Add more comments.
23811         (improve_allocation): Ditto.
23812
23813         * ira-costs.c: Add 2011 to the Copyright line.
23814         (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
23815         comments.
23816         (setup_regno_cost_classes_by_mode): Ditto.
23817
23818         Initial patches from ira-improv branch:
23819
23820         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
23821
23822         * ira-build.c (ira_create_object): Remove initialization of
23823         OBJECT_PROFITABLE_HARD_REGS.  Initialize OBJECT_ADD_DATA.
23824         (ira_create_allocno): Remove initialization of
23825         ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
23826         ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
23827         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
23828         ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
23829         ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
23830         Initialize ALLOCNO_ADD_DATA.
23831         (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
23832         and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
23833         ALLOCNO_REG.
23834         (ira_flattening): Ditto.  Use ALLOCNO_EMIT_DATA instead of
23835         ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
23836
23837         * ira.c (ira_reallocate): Remove.
23838         (setup_pressure_classes): Call
23839         ira_init_register_move_cost_if_necessary.  Use
23840         ira_register_move_cost instead of ira_get_register_move_cost.
23841         (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
23842         (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
23843
23844         * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
23845         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
23846         ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
23847         ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
23848         instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
23849         OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
23850         Fix formatting.
23851         (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
23852         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
23853         (struct allocno_color_data): New.
23854         (allocno_color_data_t): New typedef.
23855         (allocno_color_data): New definition.
23856         (ALLOCNO_COLOR_DATA): New macro.
23857         (struct object_color_data): New.
23858         (object_color_data_t): New typedef.
23859         (object_color_data): New definition.
23860         (OBJECT_COLOR_DATA): New macro.
23861         (update_copy_costs, calculate_allocno_spill_cost): Call
23862         ira_init_register_move_cost_if_necessary.  Use
23863         ira_register_move_cost instead of ira_get_register_move_cost.
23864         (move_spill_restore, update_curr_costs): Ditto.
23865         (allocno_spill_priority): Make it inline.
23866         (color_pass): Allocate and free allocno_color_dat and object_color_data.
23867         (struct coalesce_data, coalesce_data_t): New.
23868         (allocno_coalesce_data): New definition.
23869         (ALLOCNO_COALESCE_DATA): New macro.
23870         (merge_allocnos, coalesced_allocno_conflict_p): Use
23871         ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
23872         ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
23873         (coalesce_allocnos): Ditto.
23874         (setup_coalesced_allocno_costs_and_nums): Ditto.
23875         (collect_spilled_coalesced_allocnos): Ditto.
23876         (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
23877         (setup_slot_coalesced_allocno_live_ranges): Ditto.
23878         (coalesce_spill_slots): Ditto.
23879         (ira_sort_regnos_for_alter_reg): Ditto.  Allocate, initialize and
23880         free allocno_coalesce_data.
23881
23882         * ira-conflicts.c: Fix formatting.
23883         (process_regs_for_copy): Call
23884         ira_init_register_move_cost_if_necessary.  Use
23885         ira_register_move_cost instead of ira_get_register_move_cost.
23886         (build_object_conflicts): Optimize.
23887
23888         * ira-costs.c (record_reg_classes): Optimize.  Call
23889         ira_init_register_move_cost_if_necessary.  Use
23890         ira_register_move_cost, ira_may_move_in_cost, and
23891         ira_may_move_out_cost instead of ira_get_register_move_cost and
23892         ira_get_may_move_cost.
23893         (record_address_regs): Ditto.
23894         (scan_one_insn): Optimize.
23895         (find_costs_and_classes): Optimize.
23896         (process_bb_node_for_hard_reg_moves): Call
23897         ira_init_register_move_cost_if_necessary.  Use
23898         ira_register_move_cost instead of ira_get_register_move_cost.
23899
23900         * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
23901         ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
23902         ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
23903         (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
23904         definitions.
23905         (ira_initiate_emit_data, ira_finish_emit_data)
23906         (create_new_allocno): New functions.
23907         (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
23908         (emit_move_list): Call ira_init_register_move_cost_if_necessary.
23909         Use ira_register_move_cost instead of ira_get_register_move_cost.
23910
23911         * ira-int.h: Fix some comments.
23912         (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
23913         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
23914         (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
23915         hard_regs_subnodes_start, hard_regs_subnodes_num.  Add new member
23916         add_data.
23917         (struct ira_allocno): Make mode and aclass a bitfield.  Move other
23918         bitfield after mode.  Make hard_regno a short int.  Make
23919         hard_regno short.  Remove first_coalesced_allocno and
23920         next_coalesced_allocno.  Move mem_optimized_dest_p,
23921         somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
23922         into struct ira_emit_data.  Remove in_graph_p, may_be_spilled_p,
23923         available_regs_num, next_bucket_allocno, prev_bucket_allocno,
23924         temp, colorable_p.  Add new member add_data.
23925         (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
23926         (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
23927         (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
23928         (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
23929         (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
23930         (ALLOCNO_ADD_DATA): New macro.
23931         (ira_emit_data_t): New typedef.
23932         (struct ira_emit_data): New.  Move mem_optimized_dest_p,
23933         somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
23934         from struct ira_allocno.
23935         (ALLOCNO_EMIT_DATA): New macro.
23936         (ira_allocno_emit_data, allocno_emit_reg): New.
23937         (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
23938         (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
23939         (OBJECT_ADD_DATA): New macro.
23940         (ira_reallocate): Remove.
23941         (ira_initiate_emit_data, ira_finish_emit_data): New.
23942         (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
23943         (ira_init_register_move_cost_if_necessary): New.
23944         (ira_object_conflict_iter_next): Merge into
23945         ira_object_conflict_iter_cond.
23946         (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
23947
23948         * ira-live.c (process_single_reg_class_operands): Call
23949         ira_init_register_move_cost_if_necessary.  Use
23950         ira_register_move_cost instead of ira_get_register_move_cost.
23951
23952         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
23953
23954         * ira-int.h (struct target_ira_int): Remove x_cost_classes.
23955
23956         * ira-costs.c: Fix formatting.
23957         (cost_classes, cost_classes_num): Remove.
23958         (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
23959         (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
23960         (cost_classes_del, cost_classes_htab): New.
23961         (cost_classes_aclass_cache, cost_classes_mode_cache): New.
23962         (initiate_regno_cost_classes, setup_cost_classes): New.
23963         (setup_regno_cost_classes_by_aclass): New.
23964         (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
23965         (record_reg_classes): Use regno_cost_classes instead of
23966         cost_classes.  Move checking opposite operand up.
23967         (record_address_regs): Use regno_cost_classes
23968         instead of cost_classes.
23969         (scan_one_insn): Ditto.  Use always general register.
23970         (print_allocno_costs): Use regno_cost_classes instead of
23971         cost_classes.
23972         (print_pseudo_costs): Ditto.  Use Reg_N_REFS.
23973         (find_costs_and_classes): Set up cost classes for each registers.
23974         Use also their mode for this.  Use regno_cost_classes instead of
23975         cost_classes.
23976         (setup_allocno_class_and_costs): Use regno_cost_classes instead of
23977         cost_classes.
23978         (free_ira_costs, ira_init_costs): Don't use cost_classes.
23979         (ira_costs, ira_set_pseudo_classes): Call
23980         initiate_regno_cost_classes and finish_regno_cost_classes.
23981
23982         2010-10-04  Vladimir Makarov  <vmakarov@redhat.com>
23983
23984         * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
23985
23986         * target.def (ira_cover_classes): Remove.
23987
23988         * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
23989
23990         * doc/tm.texi.in: Ditto.
23991
23992         * ira-conflicts.c: Remove mentioning cover classes from the file.
23993         Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Use
23994         ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST.  Fix formatting.
23995
23996         * targhooks.c (default_ira_cover_classes): Remove.
23997
23998         * targhooks.h (default_ira_cover_classes): Ditto.
23999
24000         * haifa-sched.c: Remove mentioning cover classes from the file.
24001         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
24002         ira_pressure_classes and ira_pressure_classes_num instead of
24003         ira_reg_class_cover_size and ira_reg_class_cover.  Use
24004         sched_regno_pressure_class instead of sched_regno_cover_class.
24005         (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
24006         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
24007
24008         * ira-int.h: Add 2010 to Copyright.  Remove mentioning cover
24009         classes from the file.
24010         (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
24011         (struct object_hard_regs, struct object_hard_regs_node): New.
24012         (struct ira_object): New members profitable_hard_regs,
24013         hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
24014         (struct ira_allocno): Rename cover_class to aclass.  Rename
24015         cover_class_cost and updated_cover_class_cost to class_cost and
24016         updated_class_cost.  Remove splay_removed_p and
24017         left_conflict_size.  Add new members colorable_p.
24018         (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
24019         (ALLOCNO_COLORABLE_P): New macro.
24020         (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
24021         (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
24022         Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
24023         (OBJECT_...): Rename parameter C to O.
24024         (OBJECT_PROFITABLE_HARD_REGS): New macro.
24025         (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
24026         (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
24027         (struct target_ira_int): New members x_ira_max_memory_move_cost,
24028         x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
24029         x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
24030         x_ira_reg_pressure_class_p, x_ira_important_class_nums,
24031         x_ira_reg_class_superunion.  Rename x_prohibited_class_mode_reg to
24032         x_ira_prohibited_class_mode_reg.  Rename x_ira_reg_class_union to
24033         x_ira_reg_class_subunion.
24034         (ira_max_memory_move_cost, ira_max_register_move_cost)
24035         (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
24036         (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
24037         (ira_important_class_nums, ira_reg_class_superunion): New macros.
24038         (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
24039         (ira_reg_class_union): Rename to ira_reg_class_subunion.
24040         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
24041         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
24042         (ira_tune_allocno_costs_and_cover_classes): Rename to
24043         ira_tune_allocno_costs.
24044         (ira_debug_hard_regs_forest): New.
24045         (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
24046         (ira_object_conflict_iter_next): Fix comments.
24047         (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
24048         (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
24049         cover_class to aclass.
24050         (ira_allocate_and_accumulate_costs): Ditto.
24051         (ira_allocate_and_set_or_copy_costs): Ditto.
24052
24053         * opts.c (decode_options): Remove ira_cover_class check.
24054
24055         * ira-color.c: Remove mentioning cover classes from the file.  Use
24056         ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
24057         instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
24058         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
24059         (splay-tree.h): Remove include.
24060         (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
24061         before copy_freq_compare_func.
24062         (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
24063         (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
24064         New definitions.
24065         (hard_regs_roots, hard_regs_node_vec): Ditto.
24066         (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
24067         (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
24068         (finish_object_hard_regs, object_hard_regs_compare): Ditto.
24069         (create_new_object_hard_regs_node): Ditto.
24070         (add_new_object_hard_regs_node_to_forest): Ditto.
24071         (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
24072         (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
24073         Ditto.
24074         (print_hard_reg_set, print_hard_regs_subforest): Ditto.
24075         (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
24076         (remove_unused_object_hard_regs_nodes): Ditto.
24077         (enumerate_object_hard_regs_nodes): Ditto.
24078         (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
24079         (object_hard_regs_subnode_t): Ditto.
24080         (struct object_hard_regs_subnode): Ditto.
24081         (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
24082         (setup_object_hard_regs_subnode_index): Ditto.
24083         (get_object_hard_regs_subnodes_num): Ditto.
24084         (form_object_hard_regs_nodes_forest): Ditto.
24085         (finish_object_hard_regs_nodes_tree): Ditto.
24086         (finish_object_hard_regs_nodes_forest): Ditto.
24087         (allocnos_have_intersected_live_ranges_p): Rename to
24088         allocnos_conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
24089         (pseudos_have_intersected_live_ranges_p): Rename to
24090         conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
24091         (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
24092         (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
24093         (update_copy_costs): Remove assert.  Skip cost update if the hard
24094         reg does not belong the class.
24095         (assign_hard_reg): Process only profitable hard regs.
24096         (uncolorable_allocnos_num): Make it scalar.
24097         (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
24098         and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
24099         and ira_reg_class_max_nregs.
24100         (bucket_allocno_compare_func): Check frequency first.
24101         (sort_bucket): Add compare function as a parameter.
24102         (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
24103         (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
24104         (push_allocno_to_stack): Rewrite for checking new allocno
24105         colorability.
24106         (remove_allocno_from_bucket_and_push): Print cost too.  Remove assert.
24107         (push_only_colorable): Pass new parameter to sort_bucket.
24108         (push_allocno_to_spill): Remove.
24109         (allocno_spill_priority_compare): Make it inline and rewrite.
24110         (splay_tree_allocate, splay_tree_free): Remove.
24111         (allocno_spill_sort_compare): New function.
24112         (push_allocnos_to_stack): Sort allocnos for spilling once.  Don't
24113         build and use splay tree.  Choose first allocno in uncolorable
24114         allocno bucket to spill.  Remove setting spill cost.
24115         (all_conflicting_hard_regs): Remove.
24116         (setup_allocno_available_regs_num): Check only profitable hard
24117         regs.  Print info about hard regs nodes.
24118         (setup_allocno_left_conflicts_size): Remove.
24119         (put_allocno_into_bucket): Don't call
24120         setup_allocno_left_conflicts_size.  Use setup_left_conflict_sizes_p.
24121         (improve_allocation): New.
24122         (color_allocnos): Call setup_profitable_hard_regs,
24123         form_object_hard_regs_nodes_forest, improve_allocation,
24124         finish_object_hard_regs_nodes_forest.  Setup spill cost.
24125         (print_loop_title): Use pressure classes.
24126         (color_allocnso): Ditto.
24127         (do_coloring): Remove allocation and freeing splay_tree_node_pool
24128         and allocnos_for_spilling.
24129         (ira_sort_regnos_for_alter_reg): Don't setup members
24130         {first,next}_coalesced_allocno.
24131         (color): Remove allocating and freeing removed_splay_allocno_vec.
24132         (fast_allocation): Use ira_prohibited_class_mode_regs instead of
24133         prohibited_class_mode_regs.
24134
24135         * ira-lives.c: Remove mentioning cover classes from the file.  Fix
24136         formatting.
24137         (update_allocno_pressure_excess_length): Use pressure classes.
24138         (inc_register_pressure, dec_register_pressure): Check for pressure
24139         class.
24140         (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
24141         pressure class.  Use ira_reg_class_nregs instead of
24142         ira_reg_class_max_nregs.
24143         (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
24144         (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
24145         (single_reg_class): Use ira_reg_class_nregs instead of
24146         ira_reg_class_max_nregs.
24147         (process_bb_node_lives): Use pressure classes.
24148
24149         * ira-emit.c: Remove mentioning cover classes from the file.  Use
24150         ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Fix formatting.
24151         (change_loop): Use pressure classes.
24152         (modify_move_list): Call ira_set_allocno_class instead of
24153         ira_set_allocno_cover_class.
24154
24155         * ira-build.c: Remove mentioning cover classes from the file.  Use
24156         ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
24157         ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST.  Use
24158         ALLOCNO_UPDATED_CLASS_COST instead of
24159         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
24160         (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
24161         (ira_create_allocno): Remove initialization of
24162         ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE.  Initialize
24163         ALLOCNO_COLORABLE_P.
24164         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
24165         Update conflict regs for the objects.
24166         (create_cap_allocno): Remove assert.  Don't propagate
24167         ALLOCNO_AVAILABLE_REGS_NUM.
24168         (ira_free_allocno_costs): New function.
24169         (finish_allocno): Change a part of code into call of
24170         ira_free_allocno_costs.
24171         (low_pressure_loop_node_p): Use pressure classes.
24172         (object_range_compare_func): Don't compare classes.
24173         (setup_min_max_conflict_allocno_ids): Ditto.
24174
24175         * loop-invariant.c: Remove mentioning cover classes from the file.
24176         Use ira_pressure_classes and ira_pressure_classes_num instead of
24177         ira_reg_class_cover_size and ira_reg_class_cover.  Fix formatting.
24178         (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
24179         Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
24180         Use reg_allocno_class instead of reg_cover_class.
24181         (get_inv_cost): Use instead ira_stack_reg_pressure_class of
24182         STACK_REG_COVER_CLASS.
24183         (get_regno_cover_class): Rename to get_regno_pressure_class.
24184         (move_loop_invariants): Initialize and finalize regstat.
24185
24186         * ira.c: Remove mentioning cover classes from the file.  Add
24187         comments about coloring without cover classes.  Use ALLOCNO_CLASS
24188         instead of ALLOCNO_COVER_CLASS.  Fix formatting.
24189         (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
24190         setup_class_subset_and_memory_move_costs.
24191         (setup_stack_reg_pressure_class, setup_pressure_classes): New.
24192         (setup_cover_and_important_classes): Rename to
24193         setup_allocno_and_important_classes.
24194         (setup_class_translate_array): New.
24195         (setup_class_translate): Call it for allocno and pressure classes.
24196         (cover_class_order): Rename to allocno_class_order.
24197         (comp_reg_classes_func): Use ira_allocno_class_translate instead
24198         of ira_class_translate.
24199         (reorder_important_classes): Set up ira_important_class_nums.
24200         (setup_reg_class_relations): Set up ira_reg_class_superunion.
24201         (print_class_cover): Rename to print_classes.  Add parameter.
24202         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
24203         Print pressure classes too.
24204         (find_reg_class_closure): Rename to find_reg_classes.  Don't call
24205         setup_reg_subclasses.
24206         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
24207         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
24208         (setup_prohibited_class_mode_regs): Use
24209         ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
24210         (clarify_prohibited_class_mode_regs): New function.
24211         (ira_init_register_move_cost): Set up ira_max_register_move_cost,
24212         ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
24213         (ira_init_once): Initialize them.
24214         (free_register_move_costs): Process them.
24215         (ira_init): Move calls of find_reg_classes and
24216         setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
24217         Call clarify_prohibited_class_mode_regs.
24218         (ira_no_alloc_reg): Remove.
24219         (too_high_register_pressure_p): Use pressure classes.
24220
24221         * sched-deps.c: Remove mentioning cover classes from the file.
24222         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
24223         ira_pressure_classes and ira_pressure_classes_num instead of
24224         ira_reg_class_cover_size and ira_reg_class_cover.
24225         (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
24226         sched_regno_pressure_class instead of sched_regno_cover_class.
24227         (mark_insn_pseudo_birth, mark_pseudo_death): Ditto.  Use
24228         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
24229
24230         * ira.h: Add 2010 to Copyright.
24231         (ira_no_alloc_reg): Remove external.
24232         (struct target_ira): Rename x_ira_hard_regno_cover_class,
24233         x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
24234         x_ira_class_translate to x_ira_hard_regno_allocno_class,
24235         x_ira_allocno_classes_num, x_ira_allocno_classes, and
24236         x_ira_allocno_class_translate.  Add x_ira_pressure_classes_num,
24237         x_ira_pressure_classes, x_ira_pressure_class_translate, and
24238         x_ira_stack_reg_pressure_class.  Rename x_ira_reg_class_nregs to
24239         x_ira_reg_class_max_nregs.  Add x_ira_reg_class_min_nregs and
24240         x_ira_no_alloc_regs.
24241         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
24242         (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
24243         ira_allocno_classes_num and ira_allocno_classes.
24244         (ira_class_translate): Rename to ira_allocno_class_translate.
24245         (ira_pressure_classes_num, ira_pressure_classes): New definitions.
24246         (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
24247         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
24248         (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
24249         (ira_no_alloc_regs): New.
24250
24251         * ira-costs.c: Add 2010 to Copyright.  Remove mentioning cover
24252         classes from the file.  Use ALLOCNO_CLASS instead of
24253         ALLOCNO_COVER_CLASS.  Use ALLOCNO_CLASS_COST instead of
24254         ALLOCNO_COVER_CLASS_COST.
24255         (regno_cover_class): Rename to regno_aclass.
24256         (record_reg_classes): Use ira_reg_class_subunion instead of
24257         ira_reg_class_union.
24258         (record_address_regs): Check overflow.
24259         (scan_one_insn): Ditto.
24260         (print_allocno_costs): Print total mem cost fore regional allocation.
24261         (print_pseudo_costs): Use REG_N_REFS.
24262         (find_costs_and_classes): Use classes intersected with them on the
24263         1st pass. Check overflow.  Use ira_reg_class_subunion instead of
24264         ira_reg_class_union.  Use ira_allocno_class_translate and
24265         regno_aclass instead of ira_class_translate and regno_cover_class.
24266         Modify code for finding regno_aclass.  Setup preferred classes for
24267         the next pass.
24268         (setup_allocno_cover_class_and_costs): Rename to
24269         setup_allocno_class_and_costs.  Use regno_aclass instead of
24270         regno_cover_class.  Use ira_set_allocno_class instead of
24271         ira_set_allocno_cover_class.
24272         (init_costs, finish_costs): Use regno_aclass instead of
24273         regno_cover_class.
24274         (ira_costs): Use setup_allocno_class_and_costs instead of
24275         setup_allocno_cover_class_and_costs.
24276         (ira_tune_allocno_costs_and_cover_classes): Rename to
24277         ira_tune_allocno_costs.  Check overflow.  Skip conflict hard regs
24278         by processing objects.  Use ira_reg_class_max_nregs instead of
24279         ira_reg_class_nregs.
24280
24281         * rtl.h (reg_cover_class): Rename to reg_allocno_class.
24282
24283         * sched-int.h: Remove mentioning cover classes from the file.
24284         (sched_regno_cover_class): Rename to sched_regno_pressure_class.
24285
24286         * reginfo.c: Add 2010 to Copyright.  Remove mentioning cover
24287         classes from the file.
24288         (struct reg_pref): Rename coverclass into allocnoclass.
24289         (reg_cover_class): Rename to reg_allocno_class.
24290
24291         * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
24292
24293         * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
24294
24295         * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
24296
24297         * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
24298
24299         * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
24300
24301         * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
24302
24303         * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
24304
24305         * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
24306
24307         * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
24308
24309         * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
24310
24311         * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
24312         (i386_ira_cover_classes): Ditto.
24313
24314         * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
24315
24316         * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
24317
24318         * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
24319
24320         * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
24321
24322         * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
24323
24324         * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
24325
24326         * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
24327         (mips_ira_cover_classes): Ditto.
24328
24329         * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
24330
24331         * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
24332
24333         * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
24334
24335         * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
24336
24337         * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
24338
24339         * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
24340         (IRA_COVER_CLASSES_VSX): Ditto.
24341
24342         * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
24343         (rs6000_ira_cover_classes): Ditto.
24344
24345         * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
24346
24347         * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
24348
24349         * config/score/score.h (IRA_COVER_CLASSES): Ditto.
24350
24351         * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
24352
24353         * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
24354
24355         * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
24356
24357         * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
24358
24359         * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
24360
24361         * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
24362
24363         * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
24364
24365 2011-03-29  Jakub Jelinek  <jakub@redhat.com>
24366
24367         PR debug/48253
24368         * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
24369         dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
24370         dw_fde_unlikely_section_end_label, cold_in_std_section,
24371         dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
24372         Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
24373         fields.
24374         (output_fde): Use dw_fde_second_{begin,end} if second is
24375         true, otherwise dw_fde_{begin,end}.
24376         (output_call_frame_info): Test dw_fde_second_begin != NULL
24377         instead of dw_fde_switched_sections.
24378         (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
24379         fields, initialize new fields.  Initialize in_std_section
24380         unconditionally from the first partition.
24381         (dwarf2out_end_epilogue): Don't override dw_fde_end when
24382         dw_fde_second_begin is non-NULL.
24383         (dwarf2out_switch_text_section): Stop initializing removed
24384         dw_fde_struct fields, initialize new fields, initialize
24385         also dw_fde_end here.  Set dw_fde_switch_cfi even when
24386         dwarf2out_do_cfi_asm ().  Call var_location_switch_text_section.
24387         (struct var_loc_list_def): Add last_before_switch field.
24388         (arange_table, arange_table_allocated, arange_table_in_use,
24389         ARANGE_TABLE_INCREMENT, add_arange): Removed.
24390         (size_of_aranges): Count !in_std_section and !second_in_std_section
24391         hunks in fdes, instead of looking at arange_table_in_use.
24392         (output_aranges): Add aranges_length argument, don't call
24393         size_of_aranges here.  Instead of using aranges_table*
24394         emit ranges for fdes when !in_std_section resp.
24395         !second_in_std_section.
24396         (dw_loc_list): Break ranges crossing section switch.
24397         (convert_cfa_to_fb_loc_list): Likewise.  If switched sections,
24398         use dw_fde_second_end instead of dw_fde_end as end of last range.
24399         (gen_subprogram_die): Don't call add_arange.  Use
24400         dw_fde_{begin,end} for first partition and if switched
24401         section dw_fde_second_{begin,end} for the second.
24402         (var_location_switch_text_section_1,
24403         var_location_switch_text_section): New functions.
24404         (dwarf2out_begin_function): Initialize cold_text_section even
24405         when function_section () isn't text_section.
24406         (prune_unused_types): Don't walk arange_table.
24407         (dwarf2out_finish): Don't needlessly test
24408         flag_reorder_blocks_and_partition when testing cold_text_section_used.
24409         If info_section_emitted, call size_of_aranges and if it indicates
24410         non-empty .debug_aranges, call output_aranges with the computed
24411         size.  Stop using removed dw_fde_struct fields, use
24412         dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
24413         for second.
24414
24415         PR debug/48203
24416         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
24417         create ENTRY_VALUE if incoming or address of incoming's MEM
24418         is a hard REG.
24419         * dwarf2out.c (mem_loc_descriptor): Don't emit
24420         DW_OP_GNU_entry_value of DW_OP_fbreg.
24421         * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
24422         on ENTRY_VALUE is able to find the canonical parameter VALUE.
24423         * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
24424         rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
24425         ENTRY_VALUE_EXPs.
24426         (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
24427         is a REG_P or MEM_P with REG_P address, compute hash directly
24428         instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
24429         (preserve_only_constants): Don't clear VALUES forwaring
24430         ENTRY_VALUE to some other VALUE.
24431
24432 2011-03-28  Richard Sandiford  <richard.sandiford@linaro.org>
24433
24434         * builtins.c (expand_builtin_memset_args): Use gen_int_mode
24435         instead of GEN_INT.
24436
24437 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
24438
24439         * cfgexpand.c (expand_gimple_cond): Always set the source location and
24440         block before expanding the statement.
24441         (expand_gimple_stmt_1): Likewise.  Set them here...
24442         (expand_gimple_stmt): ...and not here.  Tidy.
24443         * cfglayout.c (curr_insn_locator): Return 0 if the current location is
24444         unknown.
24445
24446 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
24447
24448         * Makefile.in: New rule for cprop.o.
24449         * gcse.c: Move constant/copy propagation to cprop.c.
24450         (compute_local_properties): Only handle expression tables.
24451         (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
24452         (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
24453         (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
24454         next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
24455         mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
24456         compute_cprop_data, find_used_regs, try_replace_reg,
24457         find_avail_set, cprop_jump, constprop_register, cprop_insn,
24458         local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
24459         fis_get_condition, implicit_set_cond_p, find_implicit_sets,
24460         find_bypass_set, reg_killed_on_edge, bypass_block,
24461         bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
24462         execute_rtl_cprop, pass_rtl_cprop): Move to...
24463         * cprop.c: ...here.  New file, constant/copy propagation for RTL
24464         moved from gcse.c to here with minor cleanups in duplicated code.
24465
24466 2011-03-28  H.J. Lu  <hongjiu.lu@intel.com>
24467
24468         * config/i386/i386.c (flag_opts): Fix a typo in
24469         -mavx256-split-unaligned-store.
24470
24471 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
24472
24473         * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
24474         LIBCALL_VALUE): Remove macros.
24475         * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
24476         TARGET_FUNCTION_VALUE_REGNO_P): Define.
24477         (h8300_function_value, h8300_libcall_value,
24478         h8300_function_value_regno_p): New functions.
24479
24480 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
24481
24482         * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
24483
24484 2011-03-28  Jeff Law  <law@redhat.com>
24485
24486         * tree-ssa-threadupdate.c (redirect_edges): Call
24487         create_edge_and_update_destination_phis as needed.
24488         (create_edge_and_update_destination_phis): Accept new BB argument.
24489         All callers updated.
24490         (thread_block): Do not update the profile when threading around
24491         intermediate blocks.
24492         (thread_single_edge): Likewise.
24493         (determine_bb_domination_status): If BB is not a successor of the
24494         loop header, return NONDOMINATING.
24495         (register_jump_thread): Note when we register a jump thread around
24496         an intermediate block.
24497         * tree-ssa-threadedge.c (thread_around_empty_block): New function.
24498         (thread_across_edge): Use it.
24499
24500 2011-03-28  Tristan Gingold  <gingold@adacore.com>
24501
24502         * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
24503         when for_return is 2.
24504
24505 2011-03-28  Jeff Law  <law@redhat.com>
24506
24507         * var-tracking.c (canonicalize_values_mark): Delete unused
24508         lhs assignment.
24509         (canonicalize_values_star, set_variable_part): Likewise.
24510         (clobber_variable_part, delete_variable_part): Likewise.
24511
24512 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
24513
24514         * gcse.c (free_gcse_mem): Free reg_set_bitmap.
24515
24516 2011-03-28  Martin Jambor  <mjambor@suse.cz>
24517
24518         * tree-inline.c (expand_call_inline): Do not check that destination
24519         node is analyzed.
24520         (optimize_inline_calls): Assert that destination node is analyzed.
24521         * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
24522         not call tree_lowering_passes.
24523         * cgraph.h (cgraph_analyze_function): Declare.
24524         * cgraphunit.c (cgraph_analyze_function): Make public.
24525
24526 2011-03-28  Joseph Myers  <joseph@codesourcery.com>
24527
24528         * config/sparc/sparc-opts.h: New.
24529         * config/sparc/sparc.c (sparc_handle_option, sparc_select,
24530         sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
24531         (sparc_option_override): Store processor_type enumeration rather
24532         than string in cpu_default.  Remove name and enumeration from
24533         cpu_table.  Directly default -mcpu then default -mtune from -mcpu
24534         without using sparc_select.  Use target_flags_explicit instead of
24535         fpu_option_set.
24536         * config/sparc/sparc.h (enum processor_type): Move to
24537         sparc-opts.h.
24538         (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
24539         * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
24540         HeaderInclude entry.
24541         (mcpu=, mtune=): Use Var and Enum.
24542         (sparc_processor_type): New Enum and EnumValue entries.
24543
24544 2011-03-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24545             Iain Sandoe  <iains@gcc.gnu.org>
24546
24547         PR target/48245
24548         * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
24549
24550 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
24551
24552         * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
24553         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
24554         Insert new statements at it in lieu of STMT.
24555         (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
24556         * tree-vect-stmts.c (vectorizable_store): Likewise.
24557         (vectorizable_load): Likewise.
24558
24559 2011-03-28  Uros Bizjak  <ubizjak@gmail.com>
24560
24561         * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
24562         (divtf3): Ditto.
24563         (multf3): Ditto.
24564         (subtf3): Ditto.
24565
24566 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
24567
24568         * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
24569         unaligned 256bit load/store.
24570         (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
24571         (*avx_movdqu<avxmodesuffix>): Likewise.
24572
24573 2011-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
24574
24575         PR target/48288
24576         * config/pa/predicates.md (reg_or_ior_operand): New predicate.
24577         * config/pa/pa.md (iordi3): Use new predicate in expander.
24578         (iorsi3): Likewise.
24579
24580 2011-03-27  Anatoly Sokolov  <aesok@post.ru>
24581
24582         * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
24583         FUNCTION_VALUE_REGNO_P): Remove macros.
24584         * config/mips/mips-protos.h (mips_function_value): Remove.
24585         * config/mips/mips.c (mips_function_value): Rename to...
24586         (mips_function_value_1): ... this. Make static.  Handle receiving
24587         the function type in 'fn_decl_or_type' argument.
24588         (mips_function_value, mips_libcall_value,
24589         mips_function_value_regno_p): New function.
24590         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
24591         TARGET_FUNCTION_VALUE_REGNO_P): Define.
24592
24593 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
24594
24595         * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
24596         and -mavx256-split-unaligned-store.
24597         (ix86_option_override_internal): Split 32-byte AVX unaligned
24598         load/store by default.
24599         (ix86_avx256_split_vector_move_misalign): New.
24600         (ix86_expand_vector_move_misalign): Use it.
24601
24602         * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
24603         -mavx256-split-unaligned-store.
24604
24605         * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
24606         256bit load/store.  Generate unaligned store on misaligned memory
24607         operand.
24608         (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
24609         256bit load/store.
24610         (*avx_movdqu<avxmodesuffix>): Likewise.
24611
24612         * doc/invoke.texi: Document -mavx256-split-unaligned-load and
24613         -mavx256-split-unaligned-store.
24614
24615 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
24616
24617         PR target/38598
24618         * config/mips/mips.md (extendsidi2): Add an "l" alternative.
24619         Update commentary.
24620
24621 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
24622
24623         * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
24624         opno arguments with an expand_operand.  Use create_input_operand.
24625         (mips_prepare_builtin_target): Delete.
24626         (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
24627         functions.
24628         (mips_expand_builtin_direct): Use create_output_operand and
24629         mips_expand_builtin_insn.  Update call to mips_prepare_builtin_arg.
24630         (mips_expand_builtin_movtf): Likewise.  Use mips_expand_fp_comparison.
24631         (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
24632
24633 2011-03-27  Ira Rosen  <ira.rosen@linaro.org>
24634
24635         * config/arm/arm.c (arm_autovectorize_vector_sizes): New
24636         function.
24637         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
24638
24639 2011-03-26  Eric Botcazou  <ebotcazou@adacore.com>
24640
24641         * basic-block.h (fixup_abnormal_edges): Adjust prototype.
24642         * reload1.c (reload): Adjust call to fixup_abnormal_edges.  Rediscover
24643         basic blocks and call commit_edge_insertions directly.
24644         (fixup_abnormal_edges): Move from here to...
24645         * cfgrtl.c (fixup_abnormal_edges): ...here.  Only insert instructions
24646         on the edges and return whether some have actually been inserted.
24647         * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
24648         compensation code.
24649
24650 2011-03-26  Andrey Belevantsev  <abel@ispras.ru>
24651
24652         PR rtl-optimization/48144
24653         * sel-sched-ir.c (merge_history_vect): Factor out from ...
24654         (merge_expr_data): ... here.
24655         (av_set_intersect): Rename to av_set_code_motion_filter.
24656         Update all callers.  Call merge_history_vect when an expression
24657         is found in both sets.
24658         * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
24659
24660 2011-03-26  Alan Modra  <amodra@gmail.com>
24661
24662         * config/rs6000/predicates.md (word_offset_memref_op): Handle
24663         cmodel medium addresses.
24664         * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
24665         64-bit gpr loads and stores.
24666         (rs6000_secondary_reload_ppc64): New function.
24667         * config/rs6000/rs6000-protos.h: Declare it.
24668         * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
24669
24670 2011-03-26  Alan Modra  <amodra@gmail.com>
24671
24672         PR target/47487
24673         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
24674         GNU Go in traceback table.
24675
24676 2011-03-25  Richard Henderson  <rth@redhat.com>
24677
24678         * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
24679         if there are exactly 6 operands.
24680         (set_storage_via_setmem): Similarly.
24681
24682 2011-03-25  Kai Tietz  <ktietz@redhat.com>
24683
24684         * collect2.c (write_c_file_stat): Handle backslash
24685         as right-hand directory separator.
24686         (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
24687         checking just for slash.
24688         * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
24689         instead of checking for trailing slash.
24690         * gcc.c (record_temp_file): Use filename_cmp instead
24691         of strcmp.
24692         (do_spec_1): Likewise.
24693         (replace_outfile_spec_function): Likewise.
24694         (is_directory): Use filename_ncmp instead of strncmp.
24695         (print_multilib_info): Likewise.
24696         * gcov.c (find_source): Use filename_cmp instead
24697         instead of strcmp.
24698         (make_gcov_file_name): Fix order of slash/backslash
24699         checks.
24700         * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
24701         (add_standard_paths): Likewise.
24702         * mips-tfile.c (saber_stop): Handle backslash.
24703         * prefix.c (update_path): Use filename_ncmp instead of
24704         strncmp.
24705         * profile.c (output_location): Use filename_cmp instead
24706         of strcmp.
24707         * read-md.c (handle_toplevel_file): Handle backslash.
24708         * tlink.c (frob_extension):  Likewise.
24709         * tree-cfg.c (same_line_p): Use filename_cmp instead of
24710         strcmp.
24711         * tree-dump.c (dequeue_and_dump): Handle backslash.
24712         * tree.c (get_file_function_name): Likewise.
24713         * gengtype.c (read_input_list): Likewise.
24714         (get_file_realbasename): Likewise.
24715         (get_output_file_with_visibility): Use filename_cmp
24716         instead of strcmp.
24717
24718 2011-03-25  Richard Sandiford  <richard.sandiford@linaro.org>
24719
24720         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
24721         case to VFPv1.
24722
24723 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
24724
24725         * fold-const.c (expr_location_or): New function.
24726         (fold_truth_not_expr): Call it.
24727
24728 2011-03-25  Jeff Law  <law@redhat.com>
24729
24730         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
24731         va_end.
24732         * c-family/c-common.c (def_fn_type): Likewise.
24733         * ada/gcc-interface/utils.c (def_fn_type): Likewise.
24734         * emit-rtl.c (gen_rtvec): Likewise.
24735         * lto/lto-lang.c (def_fn_type): Likewise.
24736
24737 2011-03-25  Richard Guenther  <rguenther@suse.de>
24738
24739         * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
24740         also generate copies.
24741         (fini_copy_prop): Handle constant values properly.
24742
24743 2011-03-25  Jakub Jelinek  <jakub@redhat.com>
24744
24745         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
24746         mode size instead of bitsize with DWARF2_ADDR_SIZE.
24747         (hash_loc_operands, compare_loc_operands): Handle
24748         DW_OP_GNU_entry_value.
24749
24750 2011-03-25  Kai Tietz  <ktietz@redhat.com>
24751
24752         * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
24753         (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
24754         * config/i386/i386.c (ix86_conditional_register_usage): Adjust
24755         comment and use macro TARGET_64BIT_MS_ABI instead.
24756         (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
24757         and change default behavior for 32-bit MS_ABI.
24758         (ix86_reg_parm_stack_space): Check additionally for bit-ness.
24759         (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
24760         32-bit, too.
24761         (ix86_cfun_abi): Likewise.
24762         (ix86_maybe_switch_abi): Adjust comment.
24763         (init_cumulative_args): Check for bit-ness in MS_ABI case.
24764         (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
24765         instead of checking for SYSV_ABI.
24766         (ix86_nsaved_sseregs): Likewise.
24767         (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
24768         to 16 bytes.
24769         (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
24770         * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
24771         (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
24772         (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
24773         * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
24774
24775 2011-03-25  Richard Guenther  <rguenther@suse.de>
24776
24777         * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
24778         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
24779         (verify_gimple): Remove.
24780         * tree-cfg.c (verify_gimple_call): Merge verification
24781         from verify_stmts.
24782         (verify_gimple_phi): Merge verification from verify_stmts.
24783         (verify_gimple_label): New function.
24784         (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
24785         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
24786         (verify_stmt): Merge into verify_gimple_in_cfg and callees.
24787         (verify_stmts): Rename to verify_gimple_in_cfg.
24788         (verify_gimple_in_cfg): New function.
24789         * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
24790         * tree-ssa.c (verify_ssa): Likewise.
24791         * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
24792
24793 2011-03-25  Richard Guenther  <rguenther@suse.de>
24794
24795         * passes.c (init_optimization_passes): Add FRE pass after
24796         early SRA.
24797
24798 2011-03-25  Bernd Schmidt  <bernds@codesourcery.com>
24799             Andrew Stubbs  <ams@codesourcery.com>
24800
24801         * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
24802         for Cortex-A8.
24803         (arm_movdi_vfp_cortexa8): New pattern.
24804         * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
24805         iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
24806         instructions when tuning for Cortex-A8.  Set attribute "arch".
24807         * config/arm/arm.md: Move include arm-tune.md up a bit.
24808         (define_attr "arch"): Add "onlya8" and "nota8" values.
24809         (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
24810
24811 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
24812
24813         PR bootstrap/48282
24814         Revert:
24815         2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
24816
24817         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
24818         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
24819         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
24820         * passes.c (init_optimization_passes): Move
24821         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
24822
24823 2011-03-25  Kai Tietz  <ktietz@redhat.com>
24824
24825         * c-typeck.c (comptypes_internal): Replace target
24826         hook call of comp_type_attributes by version in tree.c file.
24827         * gimple.c (gimple_types_compatible_p_1): Likewise.
24828         * tree-ssa.c (useless_type_conversion_p): Likewise.
24829         * tree.c (build_type_attribute_qual_variant): Likewise.
24830         (attribute_value_equal): New static helper function.
24831         (comp_type_attributes): New function.
24832         (merge_attributes): Use attribute_value_equal for comparison.
24833         (attribute_list_contained): Likewise.
24834         * tree.h (comp_type_attributes): New prototype.
24835
24836 2011-03-25  Richard Guenther  <rguenther@suse.de>
24837
24838         * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
24839         of complex types at -O0.
24840         (verify_gimple_assign_binary): Likewise.
24841         (verify_gimple_assign_ternary): Likewise.
24842
24843 2011-03-24  Mark Wielaard  <mjw@redhat.com>
24844
24845         * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
24846         (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
24847
24848 2011-03-24  Mark Wielaard  <mjw@redhat.com>
24849
24850         PR debug/48041
24851         * dwarf2out.c (output_abbrev_section): Only write table when
24852         abbrev_die_table_in_use > 1.
24853
24854 2011-02-24  Richard Henderson  <rth@redhat.com>
24855
24856         * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
24857         (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
24858         (alpha_expand_unaligned_load_words): Use extql.
24859         (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
24860         (emit_insxl): Handle all modes for consistency.
24861
24862 2011-02-24  Richard Henderson  <rth@redhat.com>
24863
24864         * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
24865         (alpha_expand_unaligned_load): Likewise.
24866         (alpha_expand_unaligned_store): Likewise.
24867         (alpha_expand_unaligned_load_words): Likewise.
24868         (alpha_expand_unaligned_store_words): Likewise.
24869         (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
24870         (alpha_split_lock_test_and_set_12): Likewise.
24871         (print_operand, alpha_fold_builtin_extxx): Likewise.
24872         (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
24873         * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
24874         (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
24875         (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
24876         (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
24877         (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
24878         (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
24879         (unaligned_storeqi_be, unaligned_storehi_be): Remove.
24880         (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
24881         (extwl, extll, extql): Similarly.
24882         (inswh, inslh, insqh): Similarly.
24883         (mskbl, mskwl, mskll, mskql): Similarly.
24884         (mskwh, msklh, mskqh): Similarly.
24885
24886 2011-02-24  Richard Henderson  <rth@redhat.com>
24887
24888         * config/alpha/alpha.md (attribute isa): Add er, ner.
24889         (attribute enabled): Handle them.
24890         (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
24891
24892 2011-02-24  Richard Henderson  <rth@redhat.com>
24893
24894         * config/alpha/alpha.md (attribute isa): Add vms.
24895         (attribute enabled): Handle it.
24896         (*movsf): Merge *movsf_{nofix,fix,nofp}.
24897         (*movdf): Merge *movdf_{nofix,fix,nofp}.
24898         (*movtf): Rename from *movtf_internal for consistency.
24899         (*movsi): Merge with *movsi_nt_vms.
24900         (*movhi): Merge *movhi_nobwx, *movhi_bwx.
24901         (*movqi): Merge *movqi_nobwx, *movqi_bwx.
24902         (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
24903         * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
24904
24905 2011-02-24  Richard Henderson  <rth@redhat.com>
24906
24907         * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
24908         (extendqisi2, extendhisi2): Likewise.
24909         (extendqidi2): Simplify BWX/non-BWX expansions.
24910         (extendhidi2): Similarly.
24911
24912 2011-02-24  Richard Henderson  <rth@redhat.com>
24913
24914         * config/alpha/alpha.md (attribute isa): New.
24915         (attribute enabled): New.
24916         (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
24917         (zero_extendqisi2, zero_extendqidi2): Similarly.
24918         (zero_extendhisi2, zero_extendhidi2): Similarly.
24919         * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
24920
24921 2011-02-24  Richard Henderson  <rth@redhat.com>
24922
24923         * config/alpha/predicates.md (input_operand): Revert last change;
24924         update comment to mention 32-bit VMS rather than Windows.
24925
24926 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
24927
24928         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
24929         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
24930         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
24931         * passes.c (init_optimization_passes): Move
24932         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
24933
24934 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
24935
24936         * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
24937
24938 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
24939
24940         * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
24941         correctly.
24942
24943 2011-03-24  Jakub Jelinek  <jakub@redhat.com>
24944
24945         PR debug/48204
24946         * simplify-rtx.c (simplify_const_unary_operation): Call
24947         real_convert when changing mode class with FLOAT_EXTEND.
24948
24949 2011-03-24  Nick Clifton  <nickc@redhat.com>
24950
24951         * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
24952         (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
24953         * config/rx/rx.c (rx_option_override): Set align_jumps,
24954         align_loops and align_labels if not set by the user.
24955         (rx_align_for_label): New function.
24956         (rx_max_skip_for_label): New function.
24957         (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
24958         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
24959         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
24960         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
24961         * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
24962
24963 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
24964
24965         PR rtl-optimization/48263
24966         * optabs.c (expand_binop_directly): Reinstate convert_modes code
24967         and original commutative_p handling.  Use maybe_gen_insn.
24968
24969 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24970
24971         * reload.c (find_reloads_subreg_address): Add address_reloaded
24972         parameter and return true there if the full address has been
24973         reloaded.
24974         (find_reloads_toplev): Pass address_reloaded flag.
24975         (find_reloads_address_1): Don't use address_reloaded parameter.
24976
24977 2011-03-24  Jeff Law  <law@redhat.com>
24978
24979         * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
24980         unused variable "ann".
24981         (remove_unused_locals): Likewise.
24982
24983         * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
24984         statement.
24985
24986         * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
24987         after it is freed.
24988
24989 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24990
24991         * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
24992         for invalid symbolic addresses.
24993         (s390_secondary_reload): Don't use s390_check_symref_alignment for
24994         larl operands.
24995
24996 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
24997
24998         * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
24999         the argument in calls to fold_truth_not_expr.
25000
25001 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
25002
25003         * tree.c (record_node_allocation_statistics): New function.
25004         (make_node_stat, copy_node_stat, build_string): Call it.
25005         (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
25006         (build1_stat, build_omp_clause): Likewise.
25007
25008 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
25009
25010         * builtins.c (expand_movstr): Fix endp == 1 adjustment after
25011         last commit.
25012
25013 2011-03-24  Richard Guenther  <rguenther@suse.de>
25014
25015         PR tree-optimization/48271
25016         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
25017         blocks that still exist.
25018
25019 2011-03-24  Richard Guenther  <rguenther@suse.de>
25020
25021         PR tree-optimization/48270
25022         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
25023         not free datarefs before ddrs.
25024
25025 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
25026
25027         * tree-sra.c (build_ref_for_offset): Strip useless type conversions
25028         from the address built for a reference with variable offset.
25029
25030 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
25031
25032         PR target/48237
25033         * config/i386/i386.md (*movdf_internal_rex64): Do not split
25034         alternatives that can be handled with movq or movabsq insn.
25035         (*movdf_internal): Disable for !TARGET_64BIT.
25036         (*movdf_internal_nointeger): Ditto.
25037         * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
25038
25039 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
25040
25041         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
25042         (FUNCTION_ARG_ADVANCE): Likewise.
25043         * tm.texi.in: Change references to them to hook references.
25044         * tm.texi: Regenerate.
25045         * targhooks.c (default_function_arg): Eliminate check for target macro.
25046         (default_function_incoming_arg): Likewise.
25047         (default_function_arg_advance): Likewise.
25048         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
25049         (function_arg_advance): Likewise.
25050         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
25051
25052 2011-03-24  Richard Guenther  <rguenther@suse.de>
25053
25054         PR middle-end/48269
25055         * tree-object-size.c (addr_object_size): Do not double-account
25056         for MEM_REF offsets.
25057
25058 2011-03-24  Diego Novillo  <dnovillo@google.com>
25059
25060         * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
25061         * lto-streamer-in.c (input_string_internal): Add clarifying comments.
25062         (lto_input_data_block): Move from lto-opts.c.  Make extern.
25063         Update all users.
25064         (lto_input_string): Rename from input_string.  Make extern.
25065         Update all users.
25066         * lto-streamer-out.c (lto_output_string_with_length): Rename from
25067         output_string_with_length.
25068         Output 0 to indicate a non-NULL string.  Update all callers to
25069         not emit 0.
25070         (lto_output_string): Rename from output_string.  Make extern.
25071         Update all users.
25072         (lto_output_decl_state_streams): Make extern.
25073         (lto_output_decl_state_refs): Make extern.
25074         * lto-streamer.h (lto_input_string): Declare.
25075         (lto_input_data_block): Declare.
25076         (lto_output_string): Declare.
25077         (lto_output_string_with_length): Declare.
25078         (lto_output_decl_state_streams): Declare.
25079         (lto_output_decl_state_refs): Declare.
25080
25081 2011-03-24  Richard Guenther  <rguenther@suse.de>
25082
25083         PR tree-optimization/46562
25084         * tree.c (build_invariant_address): New function.
25085         * tree.h (build_invariant_address): Declare.
25086         * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
25087         a renamed function moved ...
25088         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
25089         Take valueization callback parameter.
25090         * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
25091         * gimple-fold.h: New file.
25092         * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
25093         (ccp_fold, fold_const_aggregate_ref,
25094         fold_ctor_reference, fold_nonarray_ctor_reference,
25095         fold_array_ctor_reference, fold_string_cst_ctor_reference,
25096         get_base_constructor): Move ...
25097         * gimple-fold.c: ... here.
25098         (gimple_fold_stmt_to_constant_1): New function
25099         split out from ccp_fold.  Take a valueization callback parameter.
25100         Valueize all operands.
25101         (gimple_fold_stmt_to_constant): New wrapper function.
25102         (fold_const_aggregate_ref_1): New function split out from
25103         fold_const_aggregate_ref.  Take a valueization callback parameter.
25104         (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
25105         * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
25106         invariant POINTER_PLUS_EXPRs to invariant form.
25107         (vn_valueize): New function.
25108         (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
25109         * tree-vrp.c (vrp_valueize): New function.
25110         (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
25111         to fold statements to constants.
25112         * tree-ssa-pre.c (eliminate): Properly guard propagation of
25113         function declarations.
25114         * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
25115         tree-ssa-ccp.o): Add gimple-fold.h dependencies.
25116
25117 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
25118
25119         * config/h8300/predicates.md (jump_address_operand): Fix register
25120         mode check.
25121
25122 2011-03-24  Ira Rosen  <ira.rosen@linaro.org>
25123
25124         * doc/invoke.texi (max-stores-to-sink): Document.
25125         * params.h (MAX_STORES_TO_SINK): Define.
25126         * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
25127         if either vectorization or if-conversion is disabled.
25128         * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
25129         tree-vect-data-refs.c vect_equal_offsets.
25130         (dr_equal_offsets_p): New function.
25131         (find_data_references_in_bb): Remove static.
25132         * tree-data-ref.h (find_data_references_in_bb): Declare.
25133         (dr_equal_offsets_p): Likewise.
25134         * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
25135         (vect_drs_dependent_in_basic_block): Update calls to
25136         vect_equal_offsets.
25137         (vect_check_interleaving): Likewise.
25138         * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
25139         (cond_if_else_store_replacement): Rename to...
25140         (cond_if_else_store_replacement_1): ... this.  Change arguments and
25141         documentation.
25142         (cond_if_else_store_replacement): New function.
25143         * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
25144         * params.def (PARAM_MAX_STORES_TO_SINK): Define.
25145
25146 2011-03-23  Chung-Lin Tang  <cltang@codesourcery.com>
25147
25148         PR target/46934
25149         * config/arm/arm.md (casesi): Use the gen_int_mode() function
25150         to subtract lower bound instead of GEN_INT().
25151
25152 2011-03-23  Jonathan Wakely  <jwakely.gcc@gmail.com>
25153
25154         PR other/48179
25155         PR other/48221
25156         PR other/48234
25157         * doc/extend.texi (Alignment): Move section to match order in TOC.
25158         * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
25159         (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
25160
25161 2011-03-23  Jeff Law  <law@redhat.com>
25162
25163         * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
25164         before removing the edge.
25165
25166         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
25167         it may have been freed by redirect_branch_edge or
25168         redirect_edge_succ_nodup.
25169
25170 2011-03-23  Richard Guenther  <rguenther@suse.de>
25171
25172         * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
25173         (check_va_list_escapes): Likewise.
25174         (check_all_va_list_escapes): Likewise.
25175
25176 2011-03-23  Richard Guenther  <rguenther@suse.de>
25177
25178         * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
25179         (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
25180         (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
25181         (alias.o): Likewise.
25182         (ipa-type-escape.o): Remove.
25183         (ipa-struct-reorg.o): Likewise.
25184         (GTFILES): Remove ipa-struct-reorg.c.
25185         * alias.c: Do not include ipa-type-escape.h.
25186         * tree-ssa-alias.c: Likewise.
25187         * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
25188         * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
25189         * passes.c (init_optimization_passes): Remove ipa-struct-reorg
25190         and ipa-type-escape passes.
25191         * tree-pass.h (pass_ipa_type_escape): Remove.
25192         (pass_ipa_struct_reorg): Likewise.
25193         * ipa-struct-reorg.h: Remove.
25194         * ipa-struct-reorg.c: Likewise.
25195         * ipa-type-escape.h: Likewise.
25196         * ipa-type-escape.c: Likewise.
25197         * doc/invoke.texi (-fipa-struct-reorg): Remove.
25198         (--param struct-reorg-cold-struct-ratio): Likewise.
25199         * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
25200         * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
25201         * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
25202
25203 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25204
25205         * config/s390/2084.md: Enable all insn reservations also for z9_ec
25206         cpu attribute value.
25207         * config/s390/s390-opts.h (enum s390_arch_option): Remove.
25208         (enum processor_type): Add PROCESSOR_2094_Z9_EC.
25209         * config/s390/s390.c (processor_flags_table): New constant array.
25210         (s390_handle_arch_option): Remove.
25211         (s390_handle_option): Remove s390_handle_arch_option invocations
25212         and OPT_mwarn_framesize_ handling.
25213         (s390_option_override): Remove s390_handle_arch_option invocation.
25214         (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
25215         warnings.
25216         * config/s390/s390.md (cpu attribute): Add z9_ec value.
25217         * config/s390/s390.opt (s390_tune, s390_arch)
25218         (march=): Replace s390_arch_option enum and values with
25219         processor_type.  Set variable name to s390_arch.  Set
25220         initialization value.
25221         (mtune=): Replace s390_arch_option with processor_type.  Set
25222         variable name to s390_tune.  Set initialization value.
25223
25224 2011-03-23  Julian Brown  <julian@codesourcery.com>
25225
25226         * expr.c (expand_expr_real_1): Only use BLKmode for volatile
25227         accesses which are not naturally aligned.
25228
25229 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
25230
25231         PR target/47553
25232         * config/arm/predicates.md (neon_lane_number): Accept 0..15.
25233
25234 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
25235
25236         * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
25237         parameter from "int" to "enum insn_code".
25238         (expand_operand_type): New enum.
25239         (expand_operand): New structure.
25240         (create_expand_operand): New function.
25241         (create_fixed_operand, create_output_operand): Likewise
25242         (create_input_operand, create_convert_operand_to): Likewise.
25243         (create_convert_operand_from, create_address_operand): Likewise.
25244         (create_integer_operand): Likewise.
25245         (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
25246         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
25247         (expand_insn, expand_jump_insn): Likewise.
25248         * builtins.c (expand_builtin_prefetch): Use the new interfaces.
25249         (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
25250         (expand_movstr, expand_builtin___clear_cache): Likewise.
25251         (expand_builtin_lock_release): Likewise.
25252         * explow.c (allocate_dynamic_stack_space): Likewise.
25253         (probe_stack_range): Likewise.  Allow check_stack to FAIL,
25254         and use the default handling in that case.
25255         * expmed.c (check_predicate_volatile_ok): Delete.
25256         (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
25257         (emit_cstore): Likewise.
25258         * expr.c (emit_block_move_via_movmem): Likewise.
25259         (set_storage_via_setmem, expand_assignment): Likewise.
25260         (emit_storent_insn, try_casesi): Likewise.
25261         (emit_single_push_insn): Likewise.  Allow the expansion to fail.
25262         * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
25263         (expand_vec_shift_expr, expand_binop_directly): Likewise.
25264         (expand_twoval_unop, expand_twoval_binop): Likewise.
25265         (expand_unop_direct, emit_indirect_jump): Likewise.
25266         (emit_conditional_move, vector_compare_rtx): Likewise.
25267         (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
25268         (expand_sync_operation, expand_sync_fetch_operation): Likewise.
25269         (expand_sync_lock_test_and_set): Likewise.
25270         (maybe_emit_unop_insn): Likewise.  Change icode to an insn_code.
25271         (emit_unop_insn): Likewise.
25272         (expand_copysign_absneg): Change icode to an insn_code.
25273         (create_convert_operand_from_type): New function.
25274         (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
25275         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
25276         (expand_insn, expand_jump_insn): Likewise.
25277         * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
25278         than const_int_operand for operand 2.
25279
25280 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25281
25282         * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
25283         if possible.
25284
25285 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
25286
25287         * emit-rtl.c (emit_pattern_before_noloc): New function.
25288         (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
25289         (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
25290         (emit_pattern_after_noloc): New function.
25291         (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
25292         (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
25293
25294 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
25295
25296         * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
25297         (__ffsDI2): Likewise.
25298
25299 2011-03-22  Richard Henderson  <rth@redhat.com>
25300
25301         * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
25302         of !TARGET_ABI_OPEN_VMS.
25303         (alpha_trampoline_init, alpha_start_function): Likewise.
25304         (alpha_expand_epilogue, alpha_file_start): Likewise.
25305         * config/alpha/alpha.md (divsi3, modsi3): Likewise.
25306         (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
25307         (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
25308         (*divmodsi_internal, *divmoddi_internal_er): Likewise.
25309         (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
25310
25311 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
25312
25313         * config/s390/s390-opts.h: New.
25314         * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
25315         s390_arch_flags, s390_warn_framesize, s390_stack_size,
25316         s390_stack_guard): Remove.
25317         (s390_handle_arch_option): Return void.  Take enum
25318         s390_arch_option value instead of string and searching array.
25319         (s390_handle_option): Don't assert that global structures are in
25320         use.  Access variables via opts pointer.  Use error_at.  Don't use
25321         sscanf for -mstack-guard= or -mstack-size=.  Update call to
25322         s390_handle_arch_option.
25323         (s390_option_override): Update call to s390_handle_arch_option.
25324         (s390_emit_prologue): Use %d format for s390_stack_size in
25325         diagnostic.  Use %wd for HOST_WIDE_INT.
25326         * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
25327         (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
25328         * config/s390/s390.opt (config/s390/s390-opts.h): New
25329         HeaderInclude entry.
25330         (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
25331         s390_arch_flags, s390_warn_framesize): New Variable entries.
25332         (s390_arch_option): New Enum and EnumValue entries.
25333         (march=): Use Enum instead of Var.
25334         (mstack-guard=, mstack-size=): Use UInteger and Var.
25335         (mtune=): Use Enum.
25336
25337 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
25338
25339         * config/score/score.c (score_handle_option): Don't assert that
25340         global structures are in use.  Access target_flags via opts
25341         pointer.  Use value of -march= option to determine target_flags
25342         settings.
25343         * config/score/score.opt (march=): Use Enum.
25344         (score_arch): New Enum and EnumValue entries.
25345
25346 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
25347
25348         * config/mep/mep.c (option_mtiny_specified): Remove.
25349         (mep_option_override): Move register handling for -mivc2 from
25350         mep_handle_option.  Use global_options_set.x_mep_tiny_cutoff
25351         instead of option_mtiny_specified.
25352         (mep_handle_option): Access target_flags via opts pointer.  Don't
25353         assert that global structures are in use.  Defer part of -mivc2
25354         handling and move it to mep_option_override.
25355         * config/mep/mep.opt (IVC2): New Mask entry.
25356         (mivc2): Use Var and Defer instead of Mask.
25357
25358 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
25359
25360         * config/v850/v850-opts.h: New.
25361         * config/v850/v850.c (small_memory): Replace with
25362         small_memory_physical_max array.  Make that array static const.
25363         (v850_handle_memory_option): Take integer value of argument.  Take
25364         gcc_options pointer, option text and location.  Return void.
25365         Update for changes to small memory structures.
25366         (v850_handle_option): Access target_flags via opts pointer.  Don't
25367         assert that global structures are in use.  Update calls to
25368         v850_handle_memory_option.
25369         (v850_encode_data_area): Update references to small memory settings.
25370         * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
25371         (enum small_memory_type): Move to v850-opts.h.
25372         * config/v850/v850.opt (config/v850/v850-opts.h): New
25373         HeaderInclude entry.
25374         (small_memory_max): New Variable entry.
25375         (msda): Replace by pair of options msda= and msda-.  Use UInteger.
25376         (mtda, mzda): Likewise.
25377
25378 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
25379
25380         * config/sh/sh.c (sh_handle_option): Access target_flags via opts
25381         pointer.  Don't assert that global structures are in use.
25382
25383 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
25384
25385         * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
25386         via opts pointer.  Don't assert that global structures are in use.
25387
25388 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
25389
25390         * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
25391         (munix=93): Use Var.
25392         * config/pa/pa-hpux1010.opt (munix=95): Use Var.
25393         * config/pa/pa-hpux1111.opt (munix=98): Use Var.
25394         * config/pa/pa-opts.h: New.
25395         * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
25396         (pa_handle_option): Don't assert that global structures are in
25397         use.  Access target_flags via opts pointer.  Don't handle
25398         OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
25399         OPT_munix_98 here.
25400         (pa_option_override): Handle deferred OPT_mfixed_range_.
25401
25402 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
25403
25404         * config/mn10300/mn10300-opts.h: New.
25405         * config/mn10300/mn10300.c (mn10300_processor,
25406         mn10300_tune_string): Remove.
25407         (mn10300_handle_option): Don't assert that global structures are
25408         in use.  Access mn10300_processor via opts pointer.  Don't handle
25409         OPT_mtune_ here.
25410         * config/mn10300/mn10300.h (enum processor_type): Move to
25411         mn10300-opts.h.
25412         (mn10300_processor): Remove.
25413         * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
25414         HeaderInclude entry.
25415         (mn10300_processor): New Variable entry.
25416         (mtune=): Use Var.
25417
25418 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
25419
25420         * config/microblaze/microblaze.c: Don't include opts.h.
25421         (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
25422         * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
25423         (mno-clearbss): Use Var and Warn.
25424
25425 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
25426
25427         * config/m32r/m32r-opts.h: New.
25428         * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
25429         (m32r_handle_option): Don't assert that global structures are in
25430         use.  Access target_flags and m32r_cache_flush_func via opts
25431         pointer.  Don't handle OPT_mmodel_, OPT_msdata_ or
25432         OPT_mno_flush_trap here.
25433         * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
25434         include of m32r-opts.h.
25435         * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
25436         HeaderInclude entry.
25437         (m32r_model_selected, m32r_sdata_selected): New Variable entries.
25438         (mmodel=): Use Enum and Var.
25439         (m32r_model): New Enum and EnumValue entries.
25440         (mno-flush-trap): Use Var.
25441         (msdata=): Use Enum and Var.
25442         (m32r_sdata): New Enum and EnumValue entries.
25443
25444 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
25445
25446         * config/m32c/m32c.c: Don't include opts.h.
25447         (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
25448         m32c_handle_option): Remove.
25449         (m32c_option_override): Check global_options_set.x_target_memregs
25450         instead of target_memregs_set.
25451         * config/m32c/m32c.h (target_memregs): Remove.
25452         * config/m32c/m32c.opt (memregs=): Use UInteger with integer
25453         variable.
25454
25455 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
25456
25457         * config/iq2000/iq2000-opts.h: New.
25458         * config/iq2000/iq2000.c: Don't include opts.h.
25459         (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
25460         * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
25461         * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
25462         HeaderInclude entry.
25463         (iq2000_tune): New Variable entry.
25464         (march=): Add comment.  Use Enum.
25465         (iq2000_arch): New Enum and EnumValue entries.
25466         (mcpu=): Use Enum and Var.
25467         (iq2000_tune): New Enum and EnumValue entries.
25468
25469 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
25470
25471         * config/ia64/ia64-opts.h: New.
25472         * config/ia64/ia64.c (ia64_tune): Remove.
25473         (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
25474         here.  Use error_at.
25475         (ia64_option_override): Handle deferred OPT_mfixed_range_.
25476         * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
25477         * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
25478         HeaderInclude entry.
25479         (ia64_tune): New Variable entry.
25480         (mfixed-range=): Use Defer and Var.
25481         (mtune=): Use Enum and Var.
25482         (ia64_tune): New Enum and EnumValue entries.
25483
25484 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
25485
25486         * config/frv/frv-opts.h: New.
25487         * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
25488         frv-opts.h.
25489         (frv_cpu_type): Remove.
25490         * config/frv/frv.c: Don't include opts.h.
25491         (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
25492         * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
25493         (frv_cpu_type): New Variable entry.
25494         (frv_cpu): New Enum and EnumValue entries.
25495
25496 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
25497
25498         * config/cris/cris.c (cris_handle_option): Access target_flags via
25499         opts pointer.  Don't assert that global structures are in use.
25500         Don't call CRIS_SUBTARGET_HANDLE_OPTION.
25501         * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
25502
25503 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
25504
25505         * config/bfin/bfin-opts.h: New.
25506         * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
25507         bfin_si_revision, bfin_workarounds): Remove.
25508         (bfin_cpus): Make static const.
25509         (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
25510         not bfin_lib_id_given.
25511         (bfin_handle_option): Don't set bfin_lib_id_given.  Access
25512         bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
25513         pointer. Use error_at.  Don't assert that global structures are in use.
25514         * config/bfin/bfin.h: Include bfin-opts.h.
25515         (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
25516         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
25517         * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
25518         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
25519         entries.
25520
25521 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
25522
25523         * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
25524         * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
25525         or -msoft-float here.
25526         * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
25527         -msoft-float and -mhard-float.
25528         (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
25529         * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
25530         msoft-float.
25531         * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
25532         -msoft-float.
25533         (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
25534         * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
25535         not mhard-float.
25536         (LIBGCC_SPEC): Don't handle -msoft-float.
25537         * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
25538         -mhard-float.
25539         * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
25540         msoft-float.
25541         * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
25542         -mfloat-abi=*, not -msoft-float and -mhard-float.
25543         * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
25544         -msoft-float.
25545         * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
25546         Use mfloat-abi=hard and mfloat-abi=soft in comments, not
25547         mhard-float and msoft-float.
25548         * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
25549         mfloat-abi=soft in comments, not mhard-float and msoft-float.
25550         * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
25551         mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
25552         mhard-float.
25553         * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
25554         mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
25555         msoft-float.
25556         * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
25557         not mhard-float.
25558         * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
25559         not msoft-float.
25560
25561 2011-03-22  Richard Henderson  <rth@redhat.com>
25562
25563         * config/alpha/alpha.c (alpha_expand_prologue): Don't test
25564         TARGET_ABI_WINDOWS_NT.
25565         (alpha_output_function_end_prologue): Likewise.
25566         * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
25567         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
25568         * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
25569         (trap, *movsi_nt_vms): Likewise.
25570         (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
25571         (*tablejump_osf_nt_internal): Remove.
25572         * config/alpha/predicates.md (input_operand): Only test Pmode.
25573
25574 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
25575
25576         * config/alpha/alpha.c (alpha_handle_option): Access target_flags
25577         via opts pointer.  Use error_at.  Don't assert that global
25578         structures are in use.
25579
25580 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
25581
25582         * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
25583         (ix86_handle_option): Access ix86_isa_flags and
25584         ix86_isa_flags_explicit via opts pointer.  Don't assert that
25585         global structures are in use.
25586         (ix86_function_specific_save, ix86_function_specific_restore):
25587         Update ix86_isa_flags_explicit field name.
25588         * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
25589         (ix86_isa_flags_explicit): Rename TargetSave entry to
25590         x_ix86_isa_flags_explicit.
25591
25592 2011-03-22  Richard Henderson  <rth@redhat.com>
25593
25594         * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
25595         (alpha_option_override, direct_return): Likewise.
25596         (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
25597         (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
25598         (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
25599         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
25600         (alpha_expand_epilogue, alpha_end_function): Likewise.
25601         (alpha_init_libfuncs): Likewise.
25602         (struct machine_function): Remove unicosmk members.
25603         (print_operand) ['t']: Remove.
25604         (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
25605         unicosmk_output_module_name, unicosmk_output_common,
25606         current_section_align, unicosmk_output_text_section_asm_op,
25607         unicosmk_output_data_section_asm_op, unicosmk_init_sections,
25608         unicosmk_section_type_flags, unicosmk_unique_section,
25609         unicosmk_asm_named_section, unicosmk_insert_attributes,
25610         unicosmk_output_align, unicosmk_defer_case_vector,
25611         unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
25612         SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
25613         unicosmk_output_ssib, unicosmk_add_call_info_word,
25614         unicosmk_extern_head, unicosmk_output_default_externs,
25615         unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
25616         unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
25617         unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
25618         * config/alpha/alpha-protos.h: Update.
25619         * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
25620         * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
25621         (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
25622         (mulsi3): Don't test TARGET_ABI_UNICOSMK.
25623         (*mulsi_se, mulvsi3): Likewise.
25624         (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
25625         (*divmodsi_internal, call, call_value, realign): Likewise.
25626         (moddi3, umoddi3): Likewise; remove duplicate expander.
25627         (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
25628         (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
25629         (*movdi_nofix): Remove r/U alternative.
25630         (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
25631         * config/alpha/constraints.md ("U"): Remove.
25632         * config/alpha/predicates.md (call_operand"): Don't test
25633         TARGET_ABI_UNICOSMK.
25634
25635 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
25636
25637         * target.def (handle_option): Take gcc_options and
25638         cl_decoded_option pointers and location_t.
25639         * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
25640         * doc/tm.texi: Regenerate.
25641         * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
25642         * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
25643         * lto-opts.c (lto_reissue_options): Generate option structure for
25644         targetm.handle_option call.
25645         * opts.c (target_handle_option): Update call to
25646         targetm.handle_option.  Remove assertions about values now passed
25647         down to hook.
25648         * targhooks.c (default_target_handle_option): New.
25649         * targhooks.h (default_target_handle_option): Declare.
25650         * config/alpha/alpha.c: Include opts.h.
25651         (alpha_handle_option): Update to new hook interface.
25652         * config/arm/arm.c: Include opts.h.
25653         (arm_handle_option): Update to new hook interface.
25654         * config/arm/t-arm (arm.o): Update dependencies.
25655         * config/bfin/bfin.c: Include opts.h.
25656         (bfin_handle_option): Update to new hook interface.
25657         * config/cris/cris.c: Include opts.h.
25658         (cris_handle_option): Update to new hook interface.
25659         * config/frv/frv.c: Include opts.h.
25660         (frv_handle_option): Update to new hook interface.
25661         * config/i386/i386.c: Include opts.h.
25662         (ix86_handle_option): Update to new hook interface.
25663         (ix86_valid_target_attribute_inner_p): Generate option structure
25664         for call to ix86_handle_option.
25665         * config/i386/t-i386 (i386.o): Update dependencies.
25666         * config/ia64/ia64.c: Include opts.h.
25667         (ia64_handle_option): Update to new hook interface.
25668         * config/ia64/t-ia64 (ia64.o): Update dependencies.
25669         * config/iq2000/iq2000.c: Include opts.h.
25670         (iq2000_handle_option): Update to new hook interface.
25671         * config/m32c/m32c.c: Include opts.h.
25672         (m32c_handle_option): Update to new hook interface.
25673         * config/m32r/m32r.c: Include opts.h.
25674         (m32r_handle_option): Update to new hook interface.
25675         * config/m68k/m68k.c: Include opts.h.
25676         (m68k_handle_option): Update to new hook interface.
25677         * config/mep/mep.c: Include opts.h.
25678         (mep_handle_option): Update to new hook interface.
25679         * config/microblaze/microblaze.c: Include opts.h.
25680         (microblaze_handle_option): Update to new hook interface.
25681         * config/mips/mips.c: Include opts.h.
25682         (mips_handle_option): Update to new hook interface.
25683         * config/mn10300/mn10300.c: Include opts.h.
25684         (mn10300_handle_option): Update to new hook interface.
25685         * config/pa/pa.c: Include opts.h.
25686         (pa_handle_option): Update to new hook interface.
25687         * config/pdp11/pdp11.c: Include opts.h.
25688         (pdp11_handle_option): Update to new hook interface.
25689         * config/rs6000/rs6000.c: Include opts.h.
25690         (rs6000_handle_option): Update to new hook interface.
25691         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
25692         * config/rx/rx.c: Include opts.h.
25693         (rx_handle_option): Update to new hook interface.
25694         * config/s390/s390.c: Include opts.h.
25695         (s390_handle_option): Update to new hook interface.
25696         * config/score/score.c: Include opts.h.
25697         (score_handle_option): Update to new hook interface.
25698         * config/sh/sh.c: Include opts.h.
25699         (sh_handle_option): Update to new hook interface.
25700         * config/sparc/sparc.c: Include opts.h.
25701         (sparc_handle_option): Update to new hook interface.
25702         * config/v850/v850.c: Include opts.h.
25703         (v850_handle_option): Update to new hook interface.
25704
25705 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
25706
25707         * gcc.c (driver_unknown_option_callback): Only permit and save
25708         unknown -Wno- options.
25709         (driver_wrong_lang_callback): Save options directly instead of via
25710         driver_unknown_option_callback.
25711
25712 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
25713
25714         * combine.c (simplify_set): Try harder to find the best CC mode when
25715         simplifying a nested COMPARE on the RHS.
25716
25717 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
25718
25719         * config/alpha/gnu.h: Remove.
25720         * config/arc: Remove directory.
25721         * config/arm/netbsd.h: Remove.
25722         * config/arm/t-pe: Remove.
25723         * config/crx: Remove directory.
25724         * config/i386/netbsd.h: Remove.
25725         * config/m68hc11: Remove directory.
25726         * config/m68k/uclinux-oldabi.h: Remove.
25727         * config/mcore/mcore-pe.h: Remove.
25728         * config/mcore/t-mcore-pe: Remove.
25729         * config/netbsd-aout.h: Remove.
25730         * config/rs6000/gnu.h: Remove.
25731         * config/sh/sh-symbian.h: Remove.
25732         * config/sh/symbian-base.c: Remove.
25733         * config/sh/symbian-c.c: Remove.
25734         * config/sh/symbian-cxx.c: Remove.
25735         * config/sh/symbian-post.h: Remove.
25736         * config/sh/symbian-pre.h: Remove.
25737         * config/sh/t-symbian: Remove.
25738         * config/svr3.h: Remove.
25739         * config/vax/netbsd.h: Remove.
25740         * config.build: Don't handle i[34567]86-*-pe.
25741         * config.gcc: Remove handling of deprecations for most deprecated
25742         targets.
25743         (m68k-*-uclinuxoldabi*): Add to second deprecated list.
25744         (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
25745         i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
25746         m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
25747         powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
25748         sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
25749         Remove cases.
25750         * config.host: Don't handle i[34567]86-*-pe.
25751         * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
25752         (ASM_SPEC32): Don't handle -mcall-gnu.
25753         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
25754         -mcall-gnu.
25755         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
25756         STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
25757         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
25758         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
25759         (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
25760         * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
25761         conditional on SYMBIAN.
25762         * configure.ac: Don't handle powerpc*-*-gnu*.
25763         * configure: Regenerate.
25764         * doc/extend.texi (interrupt attribute): Don't mention CRX.
25765         * doc/install-old.texi (m6811, m6812): Don't mention.
25766         * doc/install.texi (arc-*-elf*): Don't document multilib option.
25767         (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
25768         (m68k-uclinuxoldabi): Don't mention.
25769         * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
25770         Remove.
25771         (-mcall-gnu): Remove.
25772         * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
25773         families): Remove constraint documentation.
25774
25775 2011-03-22  Marius Strobl  <marius@FreeBSD.org>
25776
25777         * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
25778         (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
25779         (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
25780
25781 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
25782
25783         PR target/48226
25784         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
25785         vector when peeking at the next token for vector, don't expand the
25786         keywords.
25787
25788 2011-03-21  Georg-Johann Lay  <avr@gjlay.de>
25789
25790         * config/avr/avr-protos.h (expand_epilogue): Change prototype
25791         * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
25792         * config/avr/avr.c (init_cumulative_args)
25793         (avr_function_arg_advance): Use it.
25794         * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
25795         sibcall epilogues.
25796         (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
25797         (avr_function_ok_for_sibcall): ...this new function.
25798         (avr_lookup_function_attribute1): New static Function.
25799         (avr_naked_function_p, interrupt_function_p)
25800         (signal_function_p, avr_OS_task_function_p)
25801         (avr_OS_main_function_p): Use it.
25802         * config/avr/avr.md ("sibcall", "sibcall_value")
25803         ("sibcall_epilogue"): New expander.
25804         ("*call_insn", "*call_value_insn"): New insn.
25805         ("call_insn", "call_value_insn"): Remove
25806         ("call", "call_value", "epilogue"): Change expander to handle
25807         sibling calls.
25808
25809 2011-03-21  Nick Clifton  <nickc@redhat.com>
25810
25811         * doc/invoke.texi (Overall Options): Move closing brace to end of
25812         options list.
25813         (Optimization Options): Add missing @gol.
25814         (Directory Options): Likewise.
25815         (i386 and x86-64 Options): Likewise.
25816         (RS6000 and PowerPC Options): Likewise.
25817         (i386 and x86-64 Windows Options): Likewise.
25818         (V850 Options): Add text missing from descriptions.
25819
25820 2011-03-22  Richard Henderson  <rth@redhat.com>
25821
25822         * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
25823         (avr_incoming_return_addr_rtx): New.
25824         (emit_push_byte): New.
25825         (expand_prologue): Use it.  Remove incorrect dwarf annotation for
25826         SREG, RAMPZ, zero register.  Push frame pointer by bytes.  Add dwarf
25827         annotation for __prologue_saves__.  Fixup dwarf annotation for CFA.
25828         (emit_pop_byte): New.
25829         (expand_epilogue): Use it.  Pop frame pointer by bytes.
25830         * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
25831         (INCOMING_RETURN_ADDR_RTX): New.
25832         (INCOMING_FRAME_SP_OFFSET): New.
25833         (ARG_POINTER_CFA_OFFSET): New.
25834         * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
25835         (*pushhi, *pushsi, *pushsf, popqi): Likewise.
25836         (pophi): Remove.
25837
25838         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
25839
25840 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
25841
25842         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
25843         (FUNCTION_ARG_ADVANCE): Likewise.
25844         * tm.texi.in: Change references to them to hook references.
25845         * tm.texi: Regenerate.
25846         * targhooks.c (default_function_arg): Eliminate check for target
25847         macro.
25848         (default_function_incoming_arg): Likewise.
25849         (default_function_arg_advance): Likewise.
25850         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
25851         (function_arg_advance): Likewise.
25852         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
25853
25854 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
25855
25856         * tree.c (build_call_1): New function.
25857         (build_call_valist, build_call_array_loc, build_call_vec): Call it.
25858
25859 2011-03-22  Richard Guenther  <rguenther@suse.de>
25860
25861         PR tree-optimization/48228
25862         * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
25863         for single-arg PHIs.
25864
25865 2011-03-22  Andrey Belevantsev  <abel@ispras.ru>
25866
25867         PR rtl-optimization/48143
25868         * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
25869         (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
25870         sse2_cvtps2pd): Likewise.
25871
25872 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25873
25874         * recog.c (canonicalize_change_group): Use validate_unshare_change.
25875
25876 2011-03-22  Richard Guenther  <rguenther@suse.de>
25877
25878         * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
25879         a valid RHS.  Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
25880         * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
25881         and REALIGN_LOAD_EXPR.
25882         (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
25883         DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
25884         * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
25885         DOT_PROD_EXPR case ...
25886         (expand_expr_real_2): ... here.
25887         * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
25888         and REALIGN_LOAD_EXPR.
25889         * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
25890         * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
25891         (vect_create_epilog_for_reduction): Likewise.
25892         (vectorizable_reduction): Likewise.
25893         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
25894         * tree-vect-stmts.c (vectorizable_load): Likewise.
25895
25896 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
25897
25898         * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
25899
25900 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25901
25902         * config/s390/s390.c (s390_delegitimize_address): Fix offset
25903         handling for PLTOFF/GOTOFF.
25904
25905 2011-03-22  Nick Clifton  <nickc@redhat.com>
25906
25907         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
25908         trailing backslash from the end of the macro definition.
25909
25910 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25911
25912         * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
25913         and PLT unspecs.
25914
25915 2011-03-21  Richard Sandiford  <richard.sandiford@linaro.org>
25916
25917         * expr.h (prepare_operand): Move to...
25918         * optabs.h (prepare_operand): ...here and change the insn code
25919         parameter from "int" to "enum insn_code".
25920         (insn_operand_matches): Declare.
25921         * expr.c (init_expr_target): Use insn_operand_matches.
25922         (compress_float_constant): Likewise.
25923         * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
25924         * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
25925         (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
25926         (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
25927         Likewise.
25928         (gen_cond_trap): Likewise.
25929         (prepare_operand): Likewise.  Change icode to an insn_code.
25930         (insn_operand_matches): New function.
25931         * reload.c (find_reloads_address_1): Use insn_operand_matches.
25932         * reload1.c (gen_reload): Likewise.
25933         * targhooks.c (default_secondary_reload): Likewise.
25934
25935 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
25936
25937         * config/alpha/alpha.md (unspec): New define_c_enum.
25938         (unspecv): Ditto.
25939
25940 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
25941
25942         PR debug/48214
25943         * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
25944         between a call and its CALL_ARG_LOCATION note.
25945
25946 2011-03-21  Eric Botcazou  <ebotcazou@adacore.com>
25947
25948         * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
25949
25950 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
25951
25952         PR c/42544
25953         PR c/48197
25954         * c-common.c (shorten_compare): If primopN is first sign-extended
25955         to opN and then zero-extended to result type, set primopN to opN.
25956
25957 2011-03-21  Daniel Jacobowitz  <dan@codesourcery.com>
25958
25959         * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
25960         for barrier handlers.
25961
25962 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
25963
25964         * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
25965         UNSPEC constants to be in the unspec enumeration, and redefine
25966         all UNSPECV constants to be in the unspecv enumeration, so that
25967         dumps print which unspec/unspec_volatile this is.
25968         * config/rs6000/vector.md (UNSPEC_*): Ditto.
25969         * config/rs6000/paired.md (UNSPEC_*): Ditto.
25970         * config/rs6000/vsx.md (UNSPEC_*): Ditto.
25971         * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
25972         * config/rs6000/dfp.md (UNSPEC_*): Ditto.
25973
25974         * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
25975         UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
25976         UNSPECV_LWSYNC, since these are used as unspec_volatile.
25977         * config/rs6000/sync.md (isync, lwsync): Ditto.
25978
25979 2011-03-21  Richard Guenther  <rguenther@suse.de>
25980
25981         * params.def (lto-min-partition): Fix typo.
25982
25983 2011-03-21  Richard Guenther  <rguenther@suse.de>
25984
25985         PR c/47939
25986         * c-decl.c (grokdeclarator): Drop to the main variant only
25987         for array types.  Drop flag_gen_aux_info check.
25988
25989 2011-03-21  Richard Guenther  <rguenther@suse.de>
25990
25991         PR translation/47911
25992         * params.def (lto-partitions): Fix typo.
25993         (lto-min-partition): Fix wording.
25994
25995 2011-03-21  Andreas Tobler  <andreast@fgznet.ch>
25996
25997         * config/rs6000/t-freebsd: Remove duplication from file.
25998
25999 2011-03-21  Richard Guenther  <rguenther@suse.de>
26000
26001         PR middle-end/47661
26002         * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
26003
26004 2011-03-21  Richard Guenther  <rguenther@suse.de>
26005
26006         PR lto/48210
26007         * params.def (lto-partitions): Require at least 1 partition.
26008
26009 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26010
26011         * gthr-solaris.h: Remove.
26012         * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
26013         * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
26014         (LIB_SPEC): Likewise.
26015         * config/sol2.opt (threads): Remove.
26016         * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
26017         (sparc*-*-solaris2*): Likewise.
26018         * configure.ac (enable_threads): Enable solaris support.
26019         * configure: Regenerate.
26020         * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
26021         * doc/install.texi (Configuration, --enable-threads=lib): Remove
26022         solaris.
26023
26024 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26025
26026         * config.gcc: Obsolete *-*-solaris2.8*.
26027         * doc/install.texi (Specific, *-*-solaris2*): Document it.
26028
26029 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26030
26031         PR bootstrap/48135
26032         * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
26033         reference.  Solaris 8 perl works.
26034
26035 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26036
26037         PR bootstrap/48135
26038         * doc/install.texi (Prerequisites): Move jar etc. up.
26039         Explain support library version requirements.
26040
26041 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26042
26043         PR bootstrap/48135
26044         * doc/install.texi (Prerequisites): Move Perl to build
26045         requirements.  Always necessary on Solaris 2 with Sun ld.
26046
26047 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26048
26049         * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
26050         binutils 2.21.
26051         (Specific, i?86-*-solaris2.[89]): Likewise.
26052         (Specific, i?86-*-solaris2.10): Likewise.
26053         (Specific, mips-sgi-irix6): Likewise.
26054         (Specific, *-*-solaris2*): Remove Sun Studio download URL.
26055         Update for binutils 2.21.
26056
26057 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26058
26059         * configure.ac (gcc_cv_lto_plugin): Fix typo.
26060         Allow -fuse-linker-plugin for non-default plugin linker.
26061         * configure: Regenerate.
26062
26063 2011-03-21  Nicola Pero  <nicola.pero@meta-innovation.com>
26064
26065         PR bootstrap/48167
26066         * gengtype.c (files_rules): Added rule for cp/parser.h.
26067
26068 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
26069
26070         PR target/48213
26071         * config/s390/s390.c (s390_delegitimize_address): Don't call
26072         lowpart_subreg if orig_x has BLKmode.
26073
26074 2011-03-21  Kai Tietz  <ktietz@redhat.com>
26075
26076         PR target/12171
26077         * doc/plugins.texi: Adjust documentation for plugin register_callback.
26078         * tree.h (attribute_spec): Add new member affects_type_identity.
26079         * attribs.c (empty_attribute_table): Adjust attribute_spec
26080         initializers.
26081         * config/alpha/alpha.c: Likewise.
26082         * config/arc/arc.c: Likewise.
26083         * config/arm/arm.c: Likewise.
26084         * config/avr/avr.c: Likewise.
26085         * config/bfin/bfin.c: Likewise.
26086         * config/crx/crx.c: Likewise.
26087         * config/darwin.h: Likewise.
26088         * config/h8300/h8300.c: Likewise.
26089         * config/i386/cygming.h: Likewise.
26090         * config/i386/i386.c: Likewise.
26091         * config/ia64/ia64.c: Likewise.
26092         * config/m32c/m32c.c: Likewise.
26093         * config/m32r/m32r.c: Likewise.
26094         * config/m68hc11/m68hc11.c: Likewise.
26095         * config/m68k/m68k.c: Likewise.
26096         * config/mcore/mcore.c: Likewise.
26097         * config/mep/mep.c: Likewise.
26098         * config/microblaze/microblaze.c: Likewise.
26099         * config/mips/mips.c: Likewise.
26100         * config/rs6000/rs6000.c: Likewise.
26101         * config/rx/rx.c: Likewise.
26102         * config/sh/sh.c: Likewise.
26103         * config/sol2.h: Likewise.
26104         * config/sparc/sparc.c: Likewise.
26105         * config/spu/spu.c: Likewise.
26106         * config/stormy16/stormy16.c: Likewise.
26107         * config/v850/v850.c: Likewise.
26108
26109 2011-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
26110
26111         * simplify-rtx.c (simplify_binary_operation_1): Handle
26112         (xor (and A B) C) case when B and C are both constants.
26113
26114 2011-03-21  Mingjie Xing  <mingjie.xing@gmail.com>
26115
26116         * tree-dfa.c (add_referenced_var): Fix typo in comment.
26117
26118 2011-03-20  Eric Botcazou  <ebotcazou@adacore.com>
26119
26120         PR bootstrap/48168
26121         * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
26122
26123 2011-03-20  Jakub Jelinek  <jakub@redhat.com>
26124
26125         PR rtl-optimization/48156
26126         * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
26127         assume df and df_lr are not NULL.
26128
26129 2011-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
26130
26131         PR debug/48023
26132         * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
26133         between a call and its CALL_ARG_LOCATION note.
26134
26135 2011-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
26136
26137         PR debug/48178
26138         * config/sh/sh.c (find_barrier): Don't emit a constant pool
26139         between a call and its corresponding CALL_ARG_LOCATION note.
26140
26141 2011-03-19  Anatoly Sokolov  <aesok@post.ru>
26142
26143         * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
26144         instead of loop. Use HARD_REGISTER_NUM_P predicate.
26145         * haifa-sched.c (setup_ref_regs): Ditto.
26146         * caller-save.c (add_used_regs_1): Ditto.
26147         * dse.c (look_for_hardregs): Ditto.
26148         * df-problems.c (df_simulate_one_insn_forwards): Ditto.
26149         * sched-rgn.c (check_live_1): Ditto.
26150
26151 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
26152
26153         * c-decl.c (diagnose_mismatched_decls): Give an error for
26154         redefining a typedef with variably modified type.
26155
26156 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
26157
26158         * c-decl.c (grokfield): Don't allow typedefs for structures or
26159         unions with no tag by default.
26160         * doc/extend.texi (Unnamed Fields): Update.
26161
26162 2011-03-18  Uros Bizjak  <ubizjak@gmail.com>
26163
26164         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
26165         Rewrite using indirect functions.
26166         (lwp_slwpcb): Ditto.
26167         * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
26168         (avx_vinsertf128<mode>): Ditto.
26169
26170 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26171
26172         * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
26173         unspecs.
26174
26175 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26176
26177         * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
26178         splitting between a call and its corresponding CALL_ARG_LOCATION note.
26179
26180 2011-03-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
26181
26182         PR rtl-optimization/48170
26183         * gcse.c (hoist_code): Remove bogus asserts.
26184
26185 2011-03-18  Georg-Johann Lay  <avr@gjlay.de>
26186
26187         * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
26188         computation for prologue/epilogue.
26189
26190 2011-03-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26191
26192         * Makefile.in (check-consistency): Remove.
26193
26194 2011-03-18  Jakub Jelinek  <jakub@redhat.com>
26195
26196         PR debug/48176
26197         * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
26198         arange_table_in_use is 0, but either text_section_used or
26199         cold_text_section_used is true.  Don't call it if
26200         !info_section_emitted.
26201
26202 2011-03-18  Anatoly Sokolov  <aesok@post.ru>
26203
26204         * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
26205         FUNCTION_VALUE_REGNO_P): Remove.
26206         * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
26207         Remove.
26208         * config/avr/avr.c (avr_ret_register): Make static inline.
26209         (avr_function_value_regno_p): New function.
26210         (avr_libcall_value): Make static. Add 'func' argument.
26211         (avr_function_value): Make static. Rename 'func' argument to
26212         'fn_decl_or_type', forward it to avr_libcall_value. Call
26213         avr_ret_register function instead of RET_REGISTER macro.
26214         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
26215
26216 2011-03-18  Jason Merrill  <jason@redhat.com>
26217
26218         PR c++/23372
26219         * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
26220
26221 2011-03-18  Richard Guenther  <rguenther@suse.de>
26222
26223         * doc/install.texi (--enable-gold): Remove.
26224         (--with-plugin-ld): Document.
26225         * doc/invoke.texi (-fuse-linker-plugin): Clarify.
26226
26227 2011-03-18  Andrew Pinski  <pinskia@gmail.com>
26228
26229         PR middle-end/47790
26230         * expr.c (optimize_bitfield_assignment_op): Revamp to work
26231         again after expansion changes.
26232
26233 2011-03-18  Chung-Lin Tang  <cltang@codesourcery.com>
26234
26235         * combine.c (try_combine): Do simplification only call of
26236         subst() on i2 even when i1 is present. Update comments.
26237
26238 2011-03-18  Kaz Kojima  <kkojima@gcc.gnu.org>
26239
26240         * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
26241         and UNSPEC_PCREL_SYMOFF.
26242
26243 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26244
26245         * config/s390/s390.md: Use define_c_enum for the unspec constant
26246         definitions.
26247
26248 2011-03-18  Richard Henderson  <rth@redhat.com>
26249             Jakub Jelinek  <jakub@redhat.com>
26250
26251         PR bootstrap/48161
26252         * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
26253         instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
26254
26255 2011-03-17  Anatoly Sokolov  <aesok@post.ru>
26256
26257         * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
26258         * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
26259         * config/v850/v850.c (v850_output_addr_const_extra): Make static.
26260         Change return type to bool.
26261         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
26262
26263 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
26264
26265         PR debug/48163
26266         * var-tracking.c (prepare_call_arguments): If CALL target
26267         is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
26268         pc instead of looking it up using cselib_lookup and use
26269         Pmode for it if x has VOIDmode.
26270         * dwarf2out.c (gen_subprogram_die): If also both first and
26271         second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
26272
26273         PR debug/48163
26274         * function.c (assign_parms): For data.passed_pointer parms
26275         use MEM of data.entry_parm instead of data.entry_parm itself
26276         as DECL_INCOMING_RTL.
26277         * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
26278         also when passed and declared mode is the same, DECL_RTL
26279         is a MEM with pseudo as address and DECL_INCOMING_RTL is
26280         a MEM too.
26281
26282 2011-03-16  Jeff Law  <law@redhat.com>
26283
26284         PR rtl-optimization/37273
26285         * ira-costs.c (scan_one_insn): Detect constants living in memory and
26286         handle them like argument loads from stack slots.  Do not double
26287         count memory for memory constants and argument loads from stack slots.
26288
26289 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
26290
26291         PR debug/48160
26292         * var-tracking.c (prepare_call_arguments): Check SUBREG.
26293
26294 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
26295
26296         PR target/48171
26297         * config/i386/i386.opt: Add Save to -mavx and -mfma.
26298
26299 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
26300
26301         PR bootstrap/48153
26302         * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
26303         if dwarf_strict.
26304         (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
26305         Clear call_arg_locations and call_arg_loc_last always.
26306
26307         PR middle-end/48152
26308         * var-tracking.c (prepare_call_arguments): If argument needs to be
26309         passed by reference, adjust argtype and mode.
26310
26311 2011-03-17  Richard Guenther  <rguenther@suse.de>
26312
26313         PR middle-end/48134
26314         * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
26315         a value make sure to fold the statement.
26316
26317 2011-03-17  Chung-Lin Tang  <cltang@codesourcery.com>
26318
26319         PR target/43872
26320         * config/arm/arm.c (arm_get_frame_offsets): Adjust early
26321         return condition with !cfun->calls_alloca.
26322
26323 2011-03-17  Richard Guenther  <rguenther@suse.de>
26324
26325         PR bootstrap/48148
26326         * lto-cgraph.c (input_overwrite_node): Clear the abstract
26327         origin for decls in other ltrans units.
26328         (input_varpool_node): Likewise.
26329
26330 2011-03-17  Richard Guenther  <rguenther@suse.de>
26331
26332         PR middle-end/48165
26333         * tree-object-size.c (compute_object_offset): Properly return
26334         the offset operand of MEM_REFs as sizetype.
26335
26336 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
26337
26338         PR rtl-optimization/48141
26339         * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
26340         * dse.c: Include params.h.
26341         (active_local_stores_len): New variable.
26342         (add_wild_read, dse_step1): Clear it when setting active_local_stores
26343         to NULL.
26344         (record_store, check_mem_read_rtx): Decrease it when removing
26345         from the chain.
26346         (scan_insn): Likewise.  Increase it when adding to chain, if it
26347         reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
26348         set active_local_stores to NULL before the addition.
26349         * Makefile.in (dse.o): Depend on $(PARAMS_H).
26350
26351         PR rtl-optimization/48141
26352         * dse.c (record_store): If no positions are needed in an insn
26353         that cannot be deleted, at least unchain it from active_local_stores.
26354
26355 2011-03-16  Dodji Seketeli  <dodji@redhat.com>
26356
26357         PR debug/47510
26358         * dwarf2out.c (strip_naming_typedef): Factorize out of ...
26359         (lookup_type_die_strip_naming_typedef): ... here.
26360         (get_context_die): Use it.
26361         (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
26362         the anonymous struct named by the naming typedef.
26363
26364 2011-03-16  H.J. Lu  <hongjiu.lu@intel.com>
26365
26366         PR target/48154
26367         * config/i386/i386.c (ix86_builtin_vectorized_function): Check
26368         TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
26369
26370 2011-03-16  Jeff Law  <law@redhat.com>
26371
26372         * tree-vrp.c (identify_jump_threads): Slightly simplify type
26373         check for operands of conditional.  Allow type to be a pointer.
26374
26375 2011-03-16  Richard Guenther  <rguenther@suse.de>
26376
26377         PR tree-optimization/48149
26378         * fold-const.c (fold_binary_loc): Fold
26379         COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
26380
26381 2011-03-16  Richard Guenther  <rguenther@suse.de>
26382
26383         PR tree-optimization/26134
26384         * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
26385         complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
26386         (non_rewritable_mem_ref_base): Handle complex type component
26387         accesses, constrain offsets for vector and complex extracts
26388         more properly.
26389
26390 2011-03-16  Richard Guenther  <rguenther@suse.de>
26391
26392         PR tree-optimization/48146
26393         * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
26394         operands avoiding the need for renaming.
26395
26396 2011-03-16  Richard Guenther  <rguenther@suse.de>
26397
26398         * gimple-fold.c (maybe_fold_reference): Open-code relevant
26399         constant folding.  Move MEM_REF canonicalization first.
26400         Rely on fold_const_aggregate_ref for initializer folding.
26401         * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
26402
26403 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
26404
26405         PR middle-end/48136
26406         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
26407         arg0/arg1 or their arguments are always fold converted to matching
26408         types.
26409
26410         * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
26411         to nargs.
26412
26413 2011-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26414
26415         PR lto/46944
26416         * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
26417         Handle in-tree gold.
26418         (ld_vers): Extract binutils version for gold.
26419         (gcc_cv_ld_hidden): Handle gold here.
26420         (gcc_cv_lto_plugin): Determine level of linker plugin support.
26421         * configure: Regenerate.
26422         * config.in: Regenerate.
26423         * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
26424         -fuse-linker-plugin otherwise.
26425         (LINK_PLUGIN_SPEC): Define.  Extract from LINK_COMMAND_SPEC.
26426         (LINK_COMMAND_SPEC): Use it.
26427         (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
26428
26429 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
26430
26431         * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
26432         * calls.c: Remove debug.h include.
26433         (emit_call_1): Don't call virtual_call_token debug hook.
26434         * dwarf2out.c (debug_dcall_section, debug_vcall_section,
26435         dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
26436         vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
26437         size_of_dcall_table, output_dcall_table, size_of_vcall_table,
26438         output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
26439         vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
26440         dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
26441         dwarf2out_virtual_call): Remove.
26442         (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
26443         copy_call_info and virtual_call hooks.
26444         (dwarf2out_init): Don't initialize vcall_insn_table,
26445         debug_dcall_section and debug_vcall_section.
26446         (prune_unused_types): Don't mark nodes from dcall_table.
26447         (dwarf2out_finish): Don't output dcall or vcall tables.
26448         * final.c (final_scan_insn): Don't call direct_call or
26449         virtual_call debug hooks.
26450         * debug.h (struct gcc_debug_hooks): Remove direct_call,
26451         virtual_call_token, copy_call_info and virtual_call hooks.
26452         (debug_nothing_uid): Remove prototype.
26453         * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
26454         copy_call_info and virtual_call hooks.
26455         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
26456         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
26457         * debug.c (do_nothing_debug_hooks): Likewise.
26458         (debug_nothing_uid): Remove.
26459         * doc/invoke.texi (-fenable-icf-debug): Remove.
26460         * common.opt (-fenable-icf-debug): Likewise.
26461
26462         * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
26463         * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
26464         call's MEM.  Handle functions returning aggregate through a hidden
26465         first pointer.  For virtual calls add clobbered pc to call arguments
26466         chain.
26467         * dwarf2out.c (gen_subprogram_die): Emit
26468         DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
26469         can't be emitted.
26470
26471         PR debug/45882
26472         * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
26473         * rtl.h (ENTRY_VALUE_EXP): Define.
26474         * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
26475         * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
26476         * print-rtl.c (print_rtx): Likewise.
26477         * gengtype.c (adjust_field_rtx_def): Likewise.
26478         * var-tracking.c (vt_add_function_parameter): Adjust
26479         gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
26480         * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
26481         * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
26482         partition is a default definition of a PARM_DECL, use ENTRY_VALUE
26483         of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
26484
26485         * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
26486         Call var_location debug hook even on CALL_INSNs.
26487         (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
26488         * rtl.def (ENTRY_VALUE): New.
26489         * dwarf2out.c: Include cfglayout.h.
26490         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
26491         output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
26492         (struct call_arg_loc_node): New type.
26493         (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
26494         tail_call_site_count): New variables.
26495         (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
26496         DW_TAG_GNU_call_site_parameter.
26497         (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
26498         DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
26499         DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
26500         DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
26501         and DW_AT_GNU_all_source_call_sites.
26502         (mem_loc_descriptor): Handle ENTRY_VALUE.
26503         (add_src_coords_attributes): Don't add enything if
26504         DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
26505         (dwarf2out_abstract_function): Save and clear call_arg_location,
26506         call_site_count and tail_call_site_count around dwarf2out_decl call.
26507         (gen_call_site_die): New function.
26508         (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
26509         (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
26510         (dwarf2out_function_decl): Clear call_arg_locations,
26511         call_arg_loc_last, set call_site_count and tail_call_site_count
26512         to -1 and free block_map.
26513         (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
26514         CALL_INSNs.  Add NOTE_DURING_CALL_P var location notes even when not
26515         followed by any real instructions.
26516         (dwarf2out_begin_function): Set call_site_count and
26517         tail_call_site_count to 0.
26518         (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
26519         is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
26520         attempt to force a DIE for it and worst case remove the attribute.
26521         (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
26522         check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
26523         the decl itself.
26524         * var-tracking.c: Include tm_p.h.
26525         (vt_stack_adjustments): For calls call note_register_arguments.
26526         (argument_reg_set): New variable.
26527         (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
26528         ensure the VALUE is resolved.
26529         (call_arguments): New variable.
26530         (prepare_call_arguments): New function.
26531         (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
26532         (struct expand_loc_callback_data): Add ignore_cur_loc field.
26533         (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
26534         always use the best expression.
26535         (vt_expand_loc): Add ignore_cur_loc argument.
26536         (vt_expand_loc_dummy): Clear ignore_cur_loc field.
26537         (emit_note_insn_var_location): Adjust vt_expand_loc callers.
26538         (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
26539         note for all calls.
26540         (vt_add_function_parameter): Use cselib_lookup_from_insn.
26541         If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
26542         argument.  Don't call cselib_preserve_only_values and
26543         cselib_reset_table.
26544         (note_register_arguments): New function.
26545         (vt_initialize): Compute argument_reg_set.  Call
26546         vt_add_function_parameters before processing basic blocks instead of
26547         afterwards.  For calls call prepare_call_arguments before calling
26548         cselib_process_insn.
26549         * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
26550         * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
26551         (var-tracking.o): Depend on $(TM_P_H).
26552         * cfglayout.h (insn_scope): New prototype.
26553         * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
26554         * cfglayout.c (insn_scope): No longer static.
26555         * insn-notes.def (CALL_ARG_LOCATION): New.
26556         * calls.c (expand_call, emit_library_call_value_1): Put USEs for
26557         MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
26558         * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
26559         nothing for DECL_EXTERNAL BLOCK_VARS.
26560
26561 2011-03-16  Alan Modra  <amodra@gmail.com>
26562
26563         PR target/45844
26564         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
26565         create invalid offset address for vsx splat insn.
26566         * config/rs6000/predicates.md (splat_input_operand): New.
26567         * config/rs6000/vsx.md (vsx_splat_*): Use it.
26568
26569 2011-03-15  Xinliang David Li  <davidxl@google.com>
26570
26571         PR c/47837
26572         * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
26573         (normalize_preds): New function.
26574         (is_use_properly_guarded): Normalize def predicates.
26575
26576 2011-03-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
26577
26578         PR target/46788
26579         * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
26580         in the output template.
26581
26582 2011-03-15  Richard Guenther  <rguenther@suse.de>
26583
26584         PR middle-end/47650
26585         * tree-pretty-print.c (dump_function_declaration): Properly
26586         dump unprototyped and varargs function types.
26587
26588 2011-03-15  Richard Guenther  <rguenther@suse.de>
26589
26590         PR tree-optimization/13954
26591         * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
26592         and friends.
26593
26594 2011-03-15  Richard Guenther  <rguenther@suse.de>
26595
26596         PR tree-optimization/48037
26597         * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
26598         selects into BIT_FIELD_REFs.
26599         (non_rewritable_mem_ref_base): Check if a MEM_REF is a
26600         vector select.
26601
26602 2011-03-15  Jakub Jelinek  <jakub@redhat.com>
26603
26604         PR tree-optimization/48129
26605         * builtins.c (fold_builtin_snprintf): Convert to type of
26606         built_in_decls[BUILT_IN_SNPRINTF] retval instead of
26607         implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
26608
26609 2011-03-15  Richard Guenther  <rguenther@suse.de>
26610
26611         PR tree-optimization/41490
26612         * tree-ssa-dce.c (propagate_necessity): Handle returns without
26613         value but with VUSE.
26614         * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
26615         return statements.
26616         * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
26617         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
26618         * tree-tailcall.c (find_tail_calls): Ignore returns.
26619
26620 2011-03-15  Richard Guenther  <rguenther@suse.de>
26621
26622         PR middle-end/48031
26623         * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
26624         or variable-indexed array accesses when in gimple form.
26625
26626 2011-03-15  Richard Guenther  <rguenther@suse.de>
26627
26628         * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
26629
26630 2011-03-15  Alan Modra  <amodra@gmail.com>
26631
26632         PR target/48032
26633         * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
26634         presume symbol_refs without a symbol_ref_decl are suitably
26635         aligned, nor other trees we may see here.  Handle anchor symbols.
26636         (legitimate_constant_pool_address_p): Comment.  Add mode param.
26637         Check cmodel=medium addresses.  Adjust all calls.
26638         (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
26639         creating cmodel=medium optimized access to locals.
26640         * config/rs6000/constraints.md (R): Pass QImode to
26641         legitimate_constant_pool_address_p.
26642         * config/rs6000/predicates.md (input_operand): Pass mode to
26643         legitimate_constant_pool_address_p.
26644         * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
26645         Update prototype.
26646
26647 2011-03-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
26648
26649         PR target/48053
26650         * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
26651         64-bit constants being loaded into registers other than GPRs such
26652         as loading 0 into a VSX register.
26653
26654 2011-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26655
26656         * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
26657
26658 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
26659
26660         PR middle-end/47917
26661         * builtins.c (fold_builtin_snprintf): New function.
26662         (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
26663         (fold_builtin_4): Likewise.
26664
26665         PR middle-end/38878
26666         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
26667         STRIP_NOPS on arg0 and arg1.  When optimizing X +- C == X
26668         and C - X == X also strip nops from +/-/p+ operand.
26669         When optimizing -X == C, fold C to arg0's type.
26670
26671         PR debug/47946
26672         * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
26673         emit it as add_AT_int instead of add_AT_unsigned.
26674
26675 2011-03-14  Tom Tromey  <tromey@redhat.com>
26676
26677         * unwind-dw2.c: Include sys/sdt.h if it exists.
26678         (_Unwind_DebugHook): Use STAP_PROBE2.
26679         * config.in, configure: Rebuild.
26680         * configure.ac: Check for sys/sdt.h.
26681
26682 2011-03-14  Uros Bizjak  <ubizjak@gmail.com>
26683
26684         * config/i386/i386.md (ROUND_FLOOR): New constant.
26685         (ROUND_CEIL): Ditto.
26686         (ROUND_TRUNC): Ditto.
26687         (ROUND_MXCSR): Ditto.
26688         (ROUND_NO_EXC): Ditto.
26689         (rint<mode>2): Use new defines instead of numerical constants.
26690         (floor<mode>2): Ditto.
26691         (ceil<mode>2): Ditto.
26692         (btrunc<mode>2): Ditto.
26693         * config/i386/i386-builtin-types.def: Define ROUND function type
26694         aliases.
26695         * config/i386/i386.c (enum ix86_builtins): Add
26696         IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
26697         (struct builtin_description): Add
26698         __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
26699         (ix86_expand_sse_round): New static function.
26700         (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
26701         function types.
26702         (ix86_builtin_vectorized_function): Handle
26703         BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
26704
26705 2011-03-14  Tom Tromey  <tromey@redhat.com>
26706
26707         * c-parser.c (c_parser_asm_string_literal): Clear
26708         warn_overlength_strings.
26709
26710 2011-03-14  Tom Tromey  <tromey@redhat.com>
26711
26712         * c-parser.c (disable_extension_diagnostics): Save
26713         warn_overlength_strings.
26714         (restore_extension_diagnostics): Restore warn_overlength_strings.
26715
26716 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
26717
26718         * BASE-VER: Change to 4.7.0.
26719
26720 2011-03-14  Richard Guenther  <rguenther@suse.de>
26721
26722         PR middle-end/48098
26723         * tree.c (build_vector_from_val): Adjust assert to requirements
26724         and reality.
26725
26726 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
26727
26728         PR bootstrap/48102
26729         * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
26730
26731 2011-03-14  Andreas Tobler  <andreast@fgznet.ch>
26732
26733         * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
26734         terms of target_flags_explicit. Adjust copyright year.
26735
26736         * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
26737         * config/rs6000/t-freebsd: New file. Add override for
26738         LIB2FUNCS_EXTRA.
26739
26740 2011-03-13  Chris Demetriou  <cgd@google.com>
26741
26742         * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
26743         (-fno-diagnostics-show-option): this, to reflect current default.
26744         (-Werror=): Update text about -fno-diagnostics-show-option.
26745
26746 2011-03-12  Peter Bergner  <bergner@vnet.ibm.com>
26747
26748         PR target/48053
26749         * config/rs6000/predicates.md (easy_vector_constant_add_self,
26750         easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
26751         * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
26752         mode is not V2DImode or V2DFmode.
26753         (vspltis_constant): Do not handle V2DImode and V2DFmode.
26754         (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
26755         * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
26756         registers to 0.
26757         (movdi_internal64): Likewise.
26758
26759 2011-03-12  Sebastian Pop  <sebastian.pop@amd.com>
26760
26761         PR tree-optimization/47127
26762         * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
26763         parameter.
26764         (set_cloog_options): Same.
26765         (scop_to_clast): Same.
26766         (print_clast_stmt): Do not call cloog_state_malloc and
26767         cloog_state_free.
26768         (print_generated_program): Same.
26769         (gloog): Same.
26770         * graphite-clast-to-gimple.h (cloog_state): Declared.
26771         (scop_to_clast): Adjust declaration.
26772         * graphite.c (cloog_state): Defined here.
26773         (graphite_initialize): Call cloog_state_malloc.
26774         (graphite_finalize): Call cloog_state_free.
26775
26776 2011-03-11  Jason Merrill  <jason@redhat.com>
26777
26778         * attribs.c (lookup_attribute_spec): Take const_tree.
26779         * tree.h: Adjust.
26780
26781 2011-03-11  Joseph Myers  <joseph@codesourcery.com>
26782
26783         * config/sparc/sparc.c (sparc_option_override): Use
26784         PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
26785
26786 2011-03-11  Richard Guenther  <rguenther@suse.de>
26787
26788         PR tree-optimization/48067
26789         * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
26790         multiplication result will be only used once on the target
26791         stmt.
26792
26793 2011-03-11  Richard Guenther  <rguenther@suse.de>
26794
26795         * doc/invoke.texi (max-inline-insns-single): Adjust default value.
26796
26797 2011-03-11  Richard Guenther  <rguenther@suse.de>
26798
26799         PR lto/48073
26800         * tree.c (find_decls_types_r): Do not walk types only reachable
26801         from IDENTIFIER_NODEs.
26802
26803 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
26804
26805         PR middle-end/48044
26806         * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
26807         all vnode->force_output nodes as needed.
26808
26809 2011-03-11  Jason Merrill  <jason@redhat.com>
26810
26811         PR c++/48069
26812         * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
26813         COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
26814
26815 2011-03-11  Martin Jambor  <mjambor@suse.cz>
26816
26817         * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
26818         cgraph_node.
26819
26820 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
26821
26822         PR tree-optimization/48063
26823         * ipa-inline.c (cgraph_decide_inlining): Don't try to
26824         inline functions called once if !tree_can_inline_p (node->callers).
26825
26826 2011-03-11  Chen Liqin  <liqin.gcc@gmail.com>
26827
26828         * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
26829         extra_objs.
26830         * config/score/score3.c: Delete.
26831         * config/score/score3.h: Delete.
26832         * config/score/mul-div.S: Delete.
26833         * config/score/sfp-machine.h: Add new file.
26834         * config/score/constraints.md: Add new file.
26835         * config/score/t-score-softfp: Add new file.
26836         * config/score/t-score-elf: Remove score3.o, do not generate multilib.
26837         * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
26838         (score7_extra_constraint): Delete.
26839         (score7_option_override): Remove unused code.
26840         * config/score/score.c: Remove score3 and score5 define and code.
26841         * config/score/score.h: Remove score3 and score5 define and code.
26842         * config/score/score.md: Remove score3 template and unusual insn.
26843         * config/score/score.opt: Remove score3 and score5 options.
26844
26845 2011-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
26846
26847         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
26848         when _HPUX_SOURCE is defined.
26849         (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
26850
26851 2011-03-10  Jason Merrill  <jason@redhat.com>
26852
26853         PR c++/48029
26854         * stor-layout.c (layout_type): Don't set structural equality
26855         on arrays of incomplete type.
26856         * tree.c (type_hash_eq): Handle comparing them properly.
26857
26858 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
26859
26860         PR debug/48043
26861         * config/s390/s390.c (s390_delegitimize_address): Make sure the
26862         result mode matches original rtl mode.
26863
26864 2011-03-10  Nick Clifton  <nickc@redhat.com>
26865
26866         * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
26867         (andsi3, andsi3_flags): Fix timings for three operand alternative.
26868
26869 2011-03-09  Jakub Jelinek  <jakub@redhat.com>
26870
26871         PR rtl-optimization/47866
26872         * expr.c (store_field): If MEM_SCALAR_P (target), don't use
26873         MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
26874         if target wasn't scalar.
26875         * function.c (assign_stack_temp_for_type): Assert that neither
26876         MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
26877         MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
26878         macro.
26879         * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
26880
26881 2011-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26882
26883         * config/s390/s390-protos.h (s390_label_align): New prototype.
26884         * config/s390/s390.c (s390_label_align): New function.
26885         * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
26886
26887 2011-03-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
26888
26889         PR target/47755
26890         * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
26891         V2DI/V2DF constants.  Only all 0's or all 1's are easy.
26892         (output_vec_const_move): Ditto.
26893
26894 2011-03-08  Anatoly Sokolov  <aesok@post.ru>
26895
26896         * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
26897         * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
26898         * config/mips/mips.c (mips_preferred_reload_class): Make static.
26899         Change 'rclass' argument and result type to reg_class_t.
26900         (TARGET_PREFERRED_RELOAD_CLASS): Define.
26901
26902 2011-03-08  Georg-Johann Lay  <avr@gjlay.de>
26903
26904         * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
26905         * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
26906         (TARGET_MEMORY_MOVE_COST): Define.
26907         (avr_register_move_cost, avr_memory_move_cost): New Functions.
26908
26909 2011-03-08  Jakub Jelinek  <jakub@redhat.com>
26910
26911         PR debug/47881
26912         * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
26913         removed anything.
26914
26915         PR tree-optimization/48022
26916         * fold-const.c (fold_comparison): Don't call fold_overflow_warning
26917         for EQ/NE_EXPR.
26918
26919 2011-03-07  Jakub Jelinek  <jakub@redhat.com>
26920
26921         PR debug/47991
26922         * var-tracking.c (find_use_val): Return NULL for
26923         cui->sets && cui->store_p BLKmode MEMs.
26924
26925 2011-03-07  Anatoly Sokolov  <aesok@post.ru>
26926
26927         * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
26928         Remove.
26929         * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
26930         xstormy16_print_operand_address): Remove.
26931         * config/stormy16/stormy16.c (xstormy16_print_operand,
26932         xstormy16_print_operand_address): Make static.
26933         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
26934
26935 2011-03-07  Pat Haugen  <pthaugen@us.ibm.com>
26936
26937         PR target/47862
26938         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
26939         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
26940         before definition.
26941
26942 2011-03-07  Zdenek Dvorak  <ook@ucw.cz>
26943
26944         PR bootstrap/48000
26945         * cfgloopmanip.c (fix_bb_placements): Return immediately
26946         if FROM is BASE_LOOP's header.
26947
26948 2011-03-07  Paul Wögerer  <paul_woegerer@mentor.com>
26949
26950         * gimplify.c (gimplify_function_tree): Fix building calls
26951         to __builtin_return_address.
26952
26953 2011-03-07  Alan Modra  <amodra@gmail.com>
26954
26955         * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
26956         * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
26957         * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
26958         * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
26959         return_mode args.
26960         * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
26961         (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
26962         (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
26963         (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
26964         * config/rs6000/rs6000.c
26965         (rs6000_elf_end_indicate_exec_stack): Rename to..
26966         (rs6000_elf_file_end): ..this.  Only call file_end_indicate_exec_stack
26967         for POWERPC_LINUX.  Move code emitting .gnu_attribute to here, from..
26968         (rs6000_file_start): ..here.
26969         (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
26970         file scope variables.
26971         (call_ABI_of_interest): New function.
26972         (init_cumulative_args): Set above vars when function return value
26973         is a float, vector, or small struct.
26974         (rs6000_function_arg_advance_1): Likewise for function args.
26975         (rs6000_va_start): Set rs6000_passes_float if variable arg function
26976         references float args.
26977
26978 2011-03-07  Mingjie Xing  <mingjie.xing@gmail.com>
26979
26980         * doc/cfg.texi: Remove "See" before @ref.
26981         * doc/invoke.texi: Likewise.
26982
26983 2011-03-05  Jason Merrill  <jason@redhat.com>
26984
26985         * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
26986
26987 2011-03-05  Anthony Green  <green@moxielogic.com>
26988
26989         * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
26990
26991 2011-03-05  Zdenek Dvorak  <ook@ucw.cz>
26992
26993         PR rtl-optimization/47899
26994         * cfgloopmanip.c (fix_bb_placements): Fix first argument
26995         to flow_loop_nested_p when moving the loop upward.
26996
26997 2011-03-05  Richard Earnshaw  <rearnsha@arm.com>
26998
26999         PR target/47719
27000         * arm.md (movhi_insn_arch4):  Accept any immediate constant.
27001
27002 2011-03-05  Jakub Jelinek  <jakub@redhat.com>
27003
27004         PR tree-optimization/47967
27005         * ipa-cp.c (build_const_val): Return NULL instead of creating
27006         VIEW_CONVERT_EXPR for mismatching sizes.
27007         (ipcp_create_replace_map): Return NULL if build_const_val failed.
27008         (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
27009         give up on versioning.
27010
27011 2011-03-05  Alan Modra  <amodra@gmail.com>
27012
27013         PR target/47986
27014         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
27015         full cmodel medium/large lo_sum + high addresses.
27016
27017 2011-03-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27018
27019         * config/s390/s390.c (s390_decompose_address): Reject non-literal
27020         pool references in UNSPEC_LTREL_OFFSET.
27021
27022 2011-03-04  Jan Hubicka  <jh@suse.cz>
27023
27024         PR lto/47497
27025         * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
27026         (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
27027         * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
27028         Add node pointers.
27029         * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
27030         cgraph_add_thunk): Add node pointers.
27031         * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
27032         associated to right node.
27033         (input_node): Update use of cgraph_same_body_alias
27034         and cgraph_add_thunk.
27035
27036 2011-03-04  Changpeng Fang  <changpeng.fang@amd.com>
27037
27038         * config/i386/i386.opt (mprefer-avx128): New flag.
27039         * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
27040         modes when the flag -mprefer-avx128 is on.
27041
27042 2011-03-04  Richard Sandiford  <richard.sandiford@linaro.org>
27043
27044         * dwarf2out.c (compare_loc_operands): Fix address handling.
27045
27046 2011-03-04  Alan Modra  <amodra@gmail.com>
27047
27048         * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
27049
27050 2011-03-04  Richard Guenther  <rguenther@suse.de>
27051
27052         PR middle-end/47968
27053         * expmed.c (extract_bit_field_1): Prefer vector modes that
27054         vec_extract patterns can handle.
27055
27056 2011-03-04  Richard Guenther  <rguenther@suse.de>
27057
27058         PR middle-end/47975
27059         * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
27060
27061 2011-03-04  Richard Henderson  <rth@redhat.com>
27062
27063         * explow.c (emit_stack_save): Remove 'after' parameter.
27064         (emit_stack_restore): Likewise.
27065         * expr.h: Update to match.
27066         * builtins.c, calls.c, stmt.c: Likewise.
27067         * config/alpha/alpha.md, config/avr/avr.md: Likewise.
27068         * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
27069         * function.c (expand_function_end): Insert the emit_stack_save
27070         sequence before parm_birth_insn instead of after.
27071
27072 2011-03-03  Uros Bizjak  <ubizjak@gmail.com>
27073
27074         * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
27075         (ssse3_pmaddubsw128): Ditto.
27076         (ssse3_pmaddubsw): Ditto.
27077
27078 2011-03-03  Steve Ellcey  <sje@cup.hp.com>
27079
27080         * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
27081
27082 2011-03-03  Jakub Jelinek  <jakub@redhat.com>
27083
27084         PR c/47963
27085         * gimplify.c (omp_add_variable): Only call omp_notice_variable
27086         on TYPE_SIZE_UNIT if it is a DECL.
27087
27088         PR debug/47283
27089         * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
27090         first operand is not is_gimple_mem_ref_addr, try to fold it.
27091         If the operand still isn't is_gimple_mem_ref_addr, clear
27092         MEM_EXPR on op0.
27093
27094 2011-03-03  Richard Guenther  <rguenther@suse.de>
27095
27096         PR middle-end/47283
27097         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
27098         match comment.
27099         (refs_may_alias_p_1): For release branches return true if
27100         we are confused by our input.
27101
27102 2011-03-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27103
27104         * config/s390/s390.c (s390_function_value): Rename to ...
27105         (s390_function_and_libcall_value): ... this.
27106         (s390_function_value): New function.
27107         (s390_libcall_value): New function.
27108         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
27109         * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
27110         target macro definitions.
27111         * config/s390/s390-protos.h (s390_function_value): Remove prototype.
27112
27113 2011-03-02  Joseph Myers  <joseph@codesourcery.com>
27114
27115         * config/i386/freebsd64.h (CC1_SPEC): Define.
27116         * config/i386/linux64.h (CC1_SPEC): Define.
27117         * config/i386/x86-64.h (CC1_SPEC): Don't define.
27118
27119 2011-03-02  Anatoly Sokolov  <aesok@post.ru>
27120
27121         * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
27122         Remove.
27123         * config/stormy16/stormy16.c: Include reload.h.
27124         (xstormy16_memory_move_cost): New function.
27125         (TARGET_MEMORY_MOVE_COST): Define.
27126
27127 2011-03-02  Richard Sandiford  <richard.sandiford@linaro.org>
27128
27129         PR rtl-optimization/47925
27130         * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
27131         with side effects.  Remove the more-specific check for volatile asms.
27132
27133 2011-03-02  Alan Modra  <amodra@gmail.com>
27134
27135         PR target/47935
27136         * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
27137         toc relative addresses for valid offsets.
27138
27139 2011-03-01  Richard Guenther  <rguenther@suse.de>
27140
27141         PR tree-optimization/47890
27142         * tree-vect-loop.c (get_initial_def_for_induction): Set
27143         related stmt properly.
27144
27145 2011-03-01  Richard Guenther  <rguenther@suse.de>
27146
27147         PR lto/47924
27148         * lto-streamer.c (lto_record_common_node): Also register
27149         the canonical type.
27150
27151 2011-03-01  Richard Guenther  <rguenther@suse.de>
27152
27153         PR lto/46911
27154         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
27155         Do not stream DECL_ABSTRACT_ORIGIN.
27156         (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
27157         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
27158         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
27159         Do not stream DECL_ABSTRACT_ORIGIN.
27160         (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
27161         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
27162
27163 2011-02-28  Anatoly Sokolov  <aesok@post.ru>
27164
27165         * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
27166         FUNCTION_VALUE_REGNO_P): Remove.
27167         * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
27168         * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
27169         Add 'outgoing' argument.
27170         (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
27171         function.
27172         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
27173         TARGET_FUNCTION_VALUE_REGNO_P): Define.
27174
27175 2011-02-28  Kai Tietz  <kai.tietz@onevision.com>
27176
27177         PR debug/28047
27178         * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
27179         (lookup_filename): Likewise.
27180         * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
27181
27182 2011-02-28  Bernd Schmidt  <bernds@codesourcery.com>
27183             Jakub Jelinek  <jakub@redhat.com>
27184
27185         PR middle-end/47893
27186         * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
27187         (assign_stack_local_1): Change last argument type to int.
27188         * function.c (assign_stack_local_1): Replace reduce_alignment_ok
27189         argument with kind.  If bit ASLK_RECORD_PAD is not set in it,
27190         don't record padding space into frame_space_list nor use those areas.
27191         (assign_stack_local): Adjust caller.
27192         (assign_stack_temp_for_type): Call assign_stack_local_1 instead
27193         of assign_stack_local, pass 0 as last argument.
27194         * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
27195         callers.
27196
27197 2011-02-28  Jakub Jelinek  <jakub@redhat.com>
27198
27199         PR debug/47283
27200         * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
27201         Use target address_mode and pointer_mode hooks instead of hardcoded
27202         Pmode and ptr_mode.  Handle some simple cases of extending if
27203         POINTERS_EXTEND_UNSIGNED < 0.
27204         (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
27205         Call convert_debug_memory_address.
27206         (expand_debug_expr) <case ADDR_EXPR>: Pass as to
27207         convert_debug_memory_address.
27208
27209         PR middle-end/46790
27210         * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
27211         * configure: Regenerated.
27212         * config.in: Regenerated.
27213         * varasm.c (default_function_section): Return NULL
27214         if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
27215
27216 2011-02-28  Martin Jambor  <mjambor@suse.cz>
27217
27218         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
27219         the description to match the printed values.
27220
27221 2011-02-28  Richard Guenther  <rguenther@suse.de>
27222
27223         * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
27224         of the copied scope tree.
27225
27226 2011-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27227
27228         * doc/extend.texi (Function Attributes): Avoid deeply (and
27229         wrongly) nested tables.
27230
27231 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
27232
27233         PR middle-end/47903
27234         * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
27235         MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
27236         r isn't op0 nor op1.
27237
27238 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
27239
27240         * config/avr/avr.md: Remove magic comment for emacs.
27241
27242 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
27243
27244         PR target/45261
27245         * config/avr/avr.c (avr_option_override): Use error on bad options.
27246         (avr_help): New function.
27247         (TARGET_HELP): Define.
27248
27249 2011-02-22  Georg-Johann Lay  <avr@gjlay.de>
27250
27251         PR target/42240
27252         * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
27253         (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
27254
27255 2011-02-26  Gerald Pfeifer  <gerald@pfeifer.com>
27256
27257         * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
27258         (ARM Options): Ditto.
27259         (i386 and x86-64 Options): Ditto.
27260         (RX Options): Ditto.
27261         (SPARC Options): Ditto.
27262
27263 2011-02-26  Tijl Coosemans  <tijl@coosemans.org>
27264
27265         * config.gcc (i386-*-freebsd*): Make i486 the default arch on
27266         FreeBSD 6 and later.  Generally use cpu generic.
27267
27268 2011-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
27269
27270         * doc/cpp.texi: Update copyright years.
27271
27272 2011-02-25  Sebastien Bourdeauducq  <sebastien@milkymist.org>
27273
27274         PR target/46898
27275         * config/lm32/lm32.md (ashrsi3): Added needed variable.
27276
27277 2011-02-25  Jon Beniston  <jon@beniston.com>
27278
27279         PR target/46898
27280         * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
27281         * config/lm32/lm32.md (ashlsi3): Remove unused variable.
27282         * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
27283         (lm32_block_move_inline): Add type cast to remove warning.
27284         (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
27285         (gen_int_relational): Move declarations to start of function.
27286
27287 2011-02-25  Eric Botcazou  <ebotcazou@adacore.com>
27288
27289         PR tree-optimization/45470
27290         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
27291         can throw internally only.
27292         * tree-vect-stmts.c (vectorizable_call): Likewise.
27293
27294 2011-02-24  Anatoly Sokolov  <aesok@post.ru>
27295
27296         * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
27297         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
27298         * config/stormy16/stormy16-protos.h
27299         (xstormy16_preferred_reload_class): Remove.
27300         * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
27301         static. Change 'rclass' argument and return type to reg_class_t.
27302         (TARGET_PREFERRED_RELOAD_CLASS,
27303         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
27304
27305 2011-02-24  Richard Guenther  <rguenther@suse.de>
27306
27307         * lto-streamer-in.c (input_bb): Do not find referenced vars
27308         in debug statements.
27309
27310 2011-02-23  Jason Merrill  <jason@redhat.com>
27311
27312         * common.opt (fabi-version): Document v5 and v6.
27313
27314 2011-02-23  Richard Guenther  <rguenther@suse.de>
27315
27316         PR tree-optimization/47849
27317         * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
27318
27319 2011-02-23  Jie Zhang  <jie@codesourcery.com>
27320
27321         * opts-common.c (decode_cmdline_option): Print empty string
27322         argument as "" in decoded->orig_option_with_args_text.
27323         * gcc.c (execute): Print empty string argument as ""
27324         in the verbose output.
27325         (do_spec_1): Keep empty string argument.
27326
27327 2011-02-23  Nathan Froyd  <froydnj@codesourcery.com>
27328
27329         * config.gcc: Declare score-* and crx-* obsolete.
27330
27331 2011-02-23  Jie Zhang  <jie@codesourcery.com>
27332
27333         PR rtl-optimization/47763
27334         * web.c (web_main): Ignore naked clobber when replacing register.
27335
27336 2011-02-22  Anatoly Sokolov  <aesok@post.ru>
27337
27338         * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
27339         Remove.
27340
27341 2011-02-22  Sebastian Pop  <sebastian.pop@amd.com>
27342
27343         PR doc/47848
27344         * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
27345
27346 2011-02-22  Mike Stump  <mikestump@comcast.net>
27347
27348         * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
27349         assembler.
27350         * configure: Regenerate.
27351
27352 2011-02-21  Chung-Lin Tang  <cltang@codesourcery.com>
27353
27354         PR rtl-optimization/46002
27355         * ira-color.c (update_copy_costs): Change class intersection
27356         test to reg_class_contents[] test of 'hard_regno'.
27357
27358 2011-02-21  Joseph Myers  <joseph@codesourcery.com>
27359
27360         * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
27361         than Driver option.
27362         * config/hpux11.opt (mt): Likewise.
27363         * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
27364         * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
27365         * config/vax/elf.opt (mno-asm-pic): Likewise.
27366         * config/vms/vms.opt (map, mvms-return-codes): Likewise.
27367
27368 2011-02-21  Mike Stump  <mikestump@comcast.net>
27369
27370         PR target/47822
27371         * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
27372         tree so we can get save the type.
27373         * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
27374         for CFString instead of trying to use past the end of the builtins.
27375         * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
27376         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
27377         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
27378         * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
27379         Rename to darwin_builtin_cfstring.
27380         (darwin_init_cfstring_builtins): Return the built type.
27381
27382 2011-02-21  Uros Bizjak  <ubizjak@gmail.com>
27383
27384         PR target/47840
27385         * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
27386         (_mm256_insert_epi64): Use _mm_insert_epi64.
27387
27388 2011-02-21  Anatoly Sokolov  <aesok@post.ru>
27389
27390         * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
27391         * config/stormy16/stormy16-protos.h
27392         (xstormy16_mode_dependent_address_p): Remove.
27393         * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
27394         Make static. Change return type to bool. Change argument type to
27395         const_rtx. Remove dead code.
27396         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
27397
27398 2011-02-21  Richard Guenther  <rguenther@suse.de>
27399
27400         PR lto/47820
27401         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
27402         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
27403         (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
27404         TUs context.
27405         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
27406         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
27407
27408 2011-02-20  Richard Guenther  <rguenther@suse.de>
27409
27410         PR lto/47822
27411         * tree.c (free_lang_data_in_decl): Clean builtins from
27412         the TU decl BLOCK_VARS.
27413
27414 2011-02-19  Alexandre Oliva  <aoliva@redhat.com>
27415
27416         PR debug/47620
27417         PR debug/47630
27418         * haifa-sched.c (fix_tick_ready): Skip tick computation
27419         for debug insns.
27420
27421 2011-02-19  Richard Guenther  <rguenther@suse.de>
27422
27423         PR lto/47647
27424         * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
27425         Remove lazy BLOCK_VARS streaming.
27426         (lto_input_ts_block_tree_pointers): Likewise.
27427         * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
27428
27429 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
27430
27431         * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
27432
27433 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
27434
27435         * config/i386/biarch32.h, config/i386/mach.h,
27436         config/rs6000/aix.opt, config/sh/superh64.h: Remove.
27437
27438 2011-02-19  Jakub Jelinek  <jakub@redhat.com>
27439
27440         PR target/47800
27441         * config/i386/i386.md (peephole2 for shift and plus): Use
27442         operands[1] original mode in the first insn.
27443
27444 2011-02-18  Mike Stump  <mikestump@comcast.net>
27445
27446         * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
27447
27448 2011-02-18  Jan Hubicka  <jh@suse.cz>
27449
27450         PR middle-end/47788
27451         * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
27452         to zero when the function is not inlinable at all.
27453
27454 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
27455
27456         * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
27457         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
27458         pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
27459         * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
27460         * config/pa/t-pa64: Likewise.
27461         * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
27462
27463 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
27464
27465         PR driver/47787
27466         * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
27467
27468 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
27469
27470         PR target/47792
27471         * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
27472
27473 2011-02-18  Anatoly Sokolov  <aesok@post.ru>
27474
27475         * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
27476         RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
27477         LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
27478         GO_IF_LEGITIMATE_ADDRESS): Remove macros.
27479         * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
27480         (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
27481         m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
27482         m32r_load_postinc_p, m32r_store_preinc_predec_p,
27483         m32r_legitimate_address_p): New functions.
27484         * config/m32r/constraints.md (constraint "S"): Don't use
27485         STORE_PREINC_PREDEC_P.
27486         (constraint "U"): Don't use LOAD_POSTINC_P.
27487
27488 2011-02-18  Chung-Lin Tang  <cltang@codesourcery.com>
27489
27490         PR rtl-optimization/46178
27491         * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
27492         compute ira_hard_regno_cover_class[].
27493
27494 2011-02-18  Richard Guenther  <rguenther@suse.de>
27495
27496         PR lto/47798
27497         * lto-streamer.h (lto_global_var_decls): Declare.
27498         * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
27499         statics for global var processing.
27500
27501 2011-02-18  Richard Guenther  <rguenther@suse.de>
27502
27503         PR tree-optimization/47737
27504         * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
27505         edge dominance check.
27506
27507 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
27508
27509         PR debug/47780
27510         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
27511         avoid invalid rtx sharing.
27512
27513 2011-02-18  Gerald Pfeifer  <gerald@pfeifer.com>
27514
27515         * doc/cpp.texi (Obsolete Features): Add background on the
27516         origin of assertions.
27517
27518 2011-02-17  Iain Sandoe  <iains@gcc.gnu.org>
27519
27520         * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
27521         objc_abi == 2.
27522         * config/darwin.c (output_objc_section_asm_op): Added support for
27523         ABI v1 and v2.
27524         (is_objc_metadata): New.
27525         (darwin_objc2_section): New.
27526         (darwin_objc1_section): New.
27527         (machopic_select_section): Added support for ABI v1 and v2.
27528         (darwin_emit_objc_zeroed): New.
27529         (darwin_output_aligned_bss): Detect objc metadata and treat it
27530         appropriately.
27531         (darwin_asm_output_aligned_decl_common): Same.
27532         (darwin_asm_output_aligned_decl_local): Same.
27533         * config/darwin-sections.def: Updated for ABI v1 and v2.
27534         * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
27535         compiling Objective-C code for the NeXT runtime, default to using
27536         ABI version 0 for 32-bit, and version 2 for 64-bit.
27537
27538 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
27539
27540         * common.opt (optimize_fast): New Variable.
27541         * opts.c (default_options_optimization): Use opts->x_optimize_fast
27542         instead of local variable ofast.
27543
27544 2011-02-17  Nicola Pero  <nicola.pero@meta-innovation.com>
27545
27546         * doc/invoke.texi (fobjc-abi-version): Documented.
27547         (fobjc-nilcheck): Documented.
27548         (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
27549         version.
27550
27551 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
27552
27553         PR driver/47390
27554         * common.opt (export-dynamic): New Driver option.
27555         * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
27556
27557 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
27558
27559         * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
27560
27561 2011-02-17  Alexandre Oliva  <aoliva@redhat.com>
27562             Jan Hubicka  <jh@suse.cz>
27563
27564         PR debug/47106
27565         PR debug/47402
27566         * cfgexpand.c (account_used_vars_for_block): Remove.
27567         (estimated_stack_frame_size): Use referenced vars.
27568         * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
27569         that were referenced in the original function.  Test src_fn
27570         rather than cfun.  Drop redundant get_var_ann.
27571         (setup_one_parameter): Drop redundant get_var_ann.
27572         (declare_return_variable): Likewise.
27573         (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
27574         (copy_arguments_for_versioning): Drop redundant get_var_ann.
27575         * ipa-inline.c (compute_inline_parameters): Do not compute
27576         disregard_inline_limits here.
27577         (compute_inlinable_for_current, pass_inlinable): New.
27578         (pass_inline_parameters): Require PROP_referenced_vars.
27579         * cgraphunit.c (cgraph_process_new_functions): Don't run
27580         compute_inline_parameters explicitly unless function is in SSA form.
27581         (cgraph_analyze_function): Set .disregard_inline_limits.
27582         * tree-sra.c (convert_callers): Compute inliner parameters
27583         only for functions already in SSA form.
27584
27585 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
27586
27587         * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
27588         -mlittle-endian-data.
27589
27590 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
27591
27592         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
27593         -mno-fpu, not -fpu and -no-fpu.
27594         * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
27595         * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
27596
27597 2011-02-17  Uros Bizjak  <ubizjak@gmail.com>
27598
27599         PR target/43653
27600         * config/i386/i386.c (ix86_secondary_reload): Handle SSE
27601         input reload with PLUS RTX.
27602
27603 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
27604
27605         * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
27606         of InverseVar(MDMX).
27607
27608 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
27609
27610         * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
27611         --m4-340.
27612
27613 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
27614
27615         * config/mn10300/mn10300.opt (mno-crt0): New.
27616
27617 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
27618
27619         * config/m68k/uclinux.opt (static-libc): New Driver option.
27620
27621 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
27622
27623         * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
27624
27625 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
27626
27627         * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
27628         %{muser-extend-enabled}.
27629
27630 2011-02-16  Richard Guenther  <rguenther@suse.de>
27631
27632         PR tree-optimization/47738
27633         * tree-ssa-loop.c (run_tree_predictive_commoning): Return
27634         the TODO from tree_predictive_commoning.
27635
27636 2011-02-15  Jeff Law  <law@redhat.com>
27637
27638         Revert
27639         2011-01-25  Jeff Law  <law@redhat.com>
27640
27641         PR rtl-optimization/37273
27642         * ira-costs.c (scan_one_insn): Detect constants living in memory and
27643         handle them like argument loads from stack slots.  Do not double
27644         count memory for memory constants and argument loads from stack slots.
27645
27646 2011-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
27647
27648         PR target/47755
27649         * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
27650         mode for vector constants.  Remove code that checks for TImode.
27651
27652 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
27653
27654         PR debug/47106
27655         PR debug/47402
27656         * cgraph.h (compute_inline_parameters): Return void.
27657         * ipa-inline.c (compute_inline_parameters): Adjust.
27658
27659 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
27660
27661         PR debug/47106
27662         PR debug/47402
27663         * tree-inline.h (estimated_stack_frame_size): Take cgraph node
27664         rather than decl.
27665         * cfgexpand.c (estimated_stack_frame_size): Likewise.
27666         * ipa-inline.c (compute_inline_parameters): Adjust.
27667
27668 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
27669
27670         PR debug/47106
27671         PR debug/47402
27672         * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
27673         Adjust all users.  Pass FN to...
27674         * tree-flow-inline.h (first_referenced_var): ... this.  Add
27675         fn argument.
27676         * ipa-struct-reorg.c: Adjust.
27677         * tree-dfa.c: Adjust.
27678         * tree-into-ssa.c: Adjust.
27679         * tree-sra.c: Adjust.
27680         * tree-ssa-alias.c: Adjust.
27681         * tree-ssa-live.c: Adjust.
27682         * tree-ssa.c: Adjust.
27683         * tree-ssanames.c: Adjust.
27684         * tree-tailcall.c: Adjust.
27685
27686 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
27687
27688         PR debug/47106
27689         PR debug/47402
27690         * tree-flow.h (referenced_var_lookup): Add fn parameter.
27691         Adjust all callers.
27692         * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
27693         * tree-flow-inline.h: Adjust.
27694         * gimple-pretty-print.c: Adjust.
27695         * tree-into-ssa.c: Adjust.
27696         * tree-ssa.c: Adjust.
27697         * cfgexpand.c: Adjust.
27698
27699 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
27700
27701         * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
27702         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
27703         (EXTRA_CONSTRAINT): Delete.
27704         * config/iq2000/constraints.md: New file.
27705         * config/iq2000/iq2000.md: Include it.
27706         (define_insn ""): Delete.
27707         (movsi_internal2, movhi_internal2, movqi_internal2): Delete
27708         unsupported constraint letters from patterns.
27709         (call_value, call_value_internal1): Likewise.
27710         (call_value_multiple_internal1): Likewise.
27711
27712 2011-02-15  Nick Clifton  <nickc@redhat.com>
27713
27714         * config/mn10300/mn10300.c: Include tm-constrs.h.
27715         (struct liw_data): New data structure describing an LIW candidate
27716         instruction.
27717         (extract_bundle): Use struct liw_data.  Allow small integer
27718         operands for some instructions.
27719         (check_liw_constraints): Use struct liw_data.  Remove swapped
27720         parameter.  Add comments describing the checks.  Fix bug when
27721         assigning the source of liw1 to the source of liw2.
27722         (liw_candidate): Delete.  Code moved into extract_bundle.
27723         (mn10300_bundle_liw): Use struct liw_data.  Check constraints
27724         before swapping.
27725         * config/mn10300/predicates.md (liw_operand): New predicate.
27726         Allows registers and small integer constants.
27727         * config/mn10300/constraints.md (O): New constraint.  Accetps
27728         integers in the range -8 to +7 inclusive.
27729         * config/mn10300/mn10300.md (movesi_internal): Add an alternative
27730         for moving a small integer into a register.  Give this alternative
27731         LIW attributes.
27732         (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
27733         (ashlsi3): Likewise, plus give LIW attributes to the alternatives
27734         using the J,K,L and M constraints,
27735         (liw): Remove SI mode on second operands to allow for HI and QI
27736         mode values.
27737         (cmp_liw, liw_cmp): Likewise.  Plus fix order of operands in the
27738         instruction.
27739
27740 2011-02-15  Richard Guenther  <rguenther@suse.de>
27741
27742         PR tree-optimization/47743
27743         * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
27744         for a non-type-compatible VN lookup bail out.
27745
27746 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
27747
27748         * config/fr30/constraints.md: New file.
27749         * config/fr30/fr30.md: Include it.
27750         * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
27751         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
27752         (EXTRA_CONSTRAINT): Delete.
27753
27754 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
27755
27756         * config/frv/constraints.md: New file.
27757         * config/frv/predicates.md: Include it.
27758         * config/frv/frv.c (reg_class_from_letter): Delete.
27759         (frv_option_override): Don't initialize it.
27760         * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
27761         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
27762         (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
27763         (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
27764         (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
27765         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
27766         (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
27767         (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
27768         (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
27769         (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
27770         (REG_CLASS_FROM_CONSTRAINT): Delete.
27771
27772 2011-02-15  Jakub Jelinek  <jakub@redhat.com>
27773
27774         PR middle-end/47581
27775         * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
27776         if frame size is 0 in a leaf function.
27777
27778 2011-02-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27779
27780         PR pch/14940
27781         * config/alpha/host-osf.c: New file.
27782         * config/alpha/x-osf: New file.
27783         * config.host (alpha*-dec-osf*): Use it.
27784
27785 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
27786
27787         * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
27788         * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
27789         * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
27790         (rx_mode_dependent_address_p): ...this. Make static. Change argument
27791         type to const_rtx.
27792         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
27793
27794 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
27795
27796         * config/stormy16/constraints.md: New file.
27797         * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
27798         Use satisfies_constraint_Q and satisfies_constraint_R.
27799         * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
27800         Delete.
27801         (xstormy16_legitiamte_address_p): Declare.
27802         * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
27803         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
27804         (EXTRA_CONSTRAINT): Delete.
27805         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
27806         Un-staticize.
27807         (xstormy16_extra_constraint_p): Delete.
27808
27809 2011-02-14  Eric Botcazou  <ebotcazou@adacore.com>
27810
27811         PR tree-optimization/46494
27812         * loop-unroll.c (split_edge_and_insert): Adjust comment.
27813         * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
27814         (pass_rtl_loop_done): Add TODO_verify_flow.
27815         * fwprop.c (pass_rtl_fwprop): Likewise.
27816         * modulo-sched.c (pass_sms): Likewise.
27817         * tree-ssa-dom.c (pass_dominator): Likewise.
27818         * tree-ssa-loop-ch.c (pass_ch): Likewise.
27819         * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
27820         (pass_tree_loop_done): Likewise.
27821         * tree-ssa-pre.c (execute_pre): Likewise.
27822         * tree-ssa-reassoc.c (pass_reassoc): Likewise.
27823         * tree-ssa-sink.c (pass_sink_code): Likewise.
27824         * tree-vrp.c (pass_vrp): Likewise.
27825
27826 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
27827
27828         * config/v850/constraints.md: New file.
27829         * config/v850/v850.md: Include it.
27830         * config/v850/predicates.md (reg_or_0_operand): Use
27831         satisfies_constraint_G.
27832         (special_symbolref_operand): Use satisfies_constraint_K.
27833         * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
27834         (GO_IF_LEGITIMATE_ADDRESS): Likewise.
27835         (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
27836         (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
27837         (EXTRA_CONSTRAINT): Delete.
27838         (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
27839         (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
27840         (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
27841
27842 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
27843
27844         PR target/47696
27845         * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
27846         description.
27847
27848 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
27849
27850         * config/mcore/constraints.md: New file.
27851         * config/mcore/mcore.md: Include it.
27852         * config/mcore/mcore.c (reg_class_from_letter): Delete.
27853         * config/mcore/mcore.h (reg_class_from_letter): Delete.
27854         (REG_CLASS_FROM_LETTER): Delete.
27855         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
27856         insn_const_int_ok_for_constraint.
27857         (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
27858         (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
27859         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
27860         (EXTRA_CONSTRAINT): Delete.
27861
27862 2011-02-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27863
27864         PR ada/41929
27865         * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
27866         (IS_SIGHANDLER): Define.
27867         (sparc64_is_sighandler): New function, split off from
27868         sparc64_fallback_frame_state.
27869         (sparc_is_sighandler): New function, split off from
27870         sparc_fallback_frame_state.
27871         (sparc64_fallback_frame_state): Merge with ...
27872         (sparc_fallback_frame_state): ... this into ...
27873         (MD_FALLBACK_FRAME_STATE_FOR): ... this.
27874         Change new_cfa to long.  Remove regs_off, fpu_save_off, fpu_save.
27875         Define nframes, mctx.  Use IS_SIGHANDLER, handler_args, mctx, walk
27876         stack instead of hardcoded offsets.
27877
27878 2011-02-14  Andriy Gapon  <avg@freebsd.org>
27879
27880         PR target/45808
27881         * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
27882
27883 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27884
27885         * configure: Regenerate.
27886
27887 2011-02-12  Joseph Myers  <joseph@codesourcery.com>
27888
27889         PR driver/45731
27890         * gcc.c (asm_options): Correct spec matching --target-help.
27891
27892 2011-02-12  Martin Jambor  <mjambor@suse.cz>
27893
27894         * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
27895         to gimple call error.
27896
27897 2011-02-12  Mike Stump  <mikestump@comcast.net>
27898
27899         * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
27900         comments in backslash regions.
27901
27902 2011-02-12  Mike Stump  <mikestump@comcast.net>
27903             Jakub Jelinek  <jakub@redhat.com>
27904             Iain Sandoe  <iains@gcc.gnu.org>
27905
27906         PR target/47324
27907         * dwarf2out.c (output_cfa_loc): When required, apply the
27908         DWARF2_FRAME_REG_OUT macro to adjust register numbers.
27909         (output_loc_sequence): Likewise.
27910         (output_loc_operands_raw): Likewise.
27911         (output_loc_sequence_raw): Likewise.
27912         (output_cfa_loc): Likewise.
27913         (output_loc_list): Suppress register number adjustment when
27914         calling output_loc_sequence()
27915         (output_die): Likewise.
27916
27917 2011-02-12  Anatoly Sokolov  <aesok@post.ru>
27918
27919         * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
27920         Remove macros.
27921         * config/xtensa/xtensa.c (xtensa_register_move_cost,
27922         xtensa_memory_move_cost): New functions.
27923         (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
27924
27925 2011-02-12  Alexandre Oliva  <aoliva@redhat.com>
27926
27927         PR lto/47225
27928         * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
27929         in the current directory.
27930         * configure: Rebuilt.
27931
27932 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
27933
27934         * config/darwin.c (darwin_override_options): Add a hunk missed
27935         from the commit of r168571.  Trim comment line lengths and
27936         correct indents of the preceding block.
27937
27938 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
27939
27940         * gcc.c (driver_handle_option): Concatenate the argument to -F with
27941         the switch.
27942
27943 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
27944
27945         * common.opt (nostartfiles): New Driver option.
27946
27947 2011-02-11  Xinliang David Li  <davidxl@google.com>
27948
27949         PR tree-optimization/47707
27950         * tree-chrec.c (convert_affine_scev): Keep type precision.
27951
27952 2011-02-11  Eric Botcazou  <ebotcazou@adacore.com>
27953
27954         PR tree-optimization/47420
27955         * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
27956
27957 2011-02-11  Pat Haugen  <pthaugen@us.ibm.com>
27958
27959         PR rtl-optimization/47614
27960         * rtl.h (check_for_inc_dec): Declare.
27961         * dse.c (check_for_inc_dec): Externalize...
27962         * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
27963         (reload_cse_simplify_operands): Don't simplify opnds with side effects.
27964
27965 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
27966
27967         PR driver/47678
27968         * gcc.c (main): Do not compile inputs if there were errors in
27969         option handling.
27970         * opts-common.c (read_cmdline_option): Check for wrong language
27971         after other error checks.
27972
27973 2011-02-11  Nathan Froyd  <froydnj@codesourcery.com>
27974
27975         * cgraph.c: Fix comment typos.
27976         * cgraph.h: Likewise.
27977         * cgraphunit.c: Likewise.
27978         * ipa-cp.c: Likewise.
27979         * ipa-inline.c: Likewise.
27980         * ipa-prop.c: Likewise.
27981         * ipa-pure-const.c: Likewise.
27982         * ipa-ref.c: Likewise.
27983         * ipa-reference.c: Likewise.
27984
27985 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
27986
27987         PR debug/47684
27988         * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
27989
27990 2011-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27991
27992         PR testsuite/47400
27993         * doc/sourcebuild.texi (Require Support): Document
27994         dg-require-ascii-locale.
27995
27996 2011-02-11  Mingjie Xing  <mingjie.xing@gmail.com>
27997
27998         * doc/lto.texi (Write summary): Fix missing parentheses.
27999
28000 2011-02-10  DJ Delorie  <dj@redhat.com>
28001
28002         * config/m32c/m32c.c (m32c_option_override): Disable
28003         -fcombine-stack-adjustments until flag value tracking and compare
28004         optimization can be rewritten.
28005
28006 2011-02-10  Peter Bergner  <bergner@vnet.ibm.com>
28007
28008         * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
28009         PROCESSOR_POWER7.
28010         (PROCESSOR_DEFAULT64): Likewise.
28011
28012 2011-02-10  Richard Henderson  <rth@redhat.com>
28013
28014         * config/rx/predicates.md (rx_zs_comparison_operator): Revert
28015         change from 2011-02-03.
28016         * config/rx/rx.c (flags_from_code): Likewise.
28017         (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
28018         is valid, n/pz otherwise.
28019         (rx_select_cc_mode): Return CCmode if Y is not zero.
28020
28021 2011-02-10  Richard Guenther  <rguenther@suse.de>
28022
28023         * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
28024
28025 2011-02-10  Richard Guenther  <rguenther@suse.de>
28026
28027         PR tree-optimization/47677
28028         * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
28029
28030 2011-02-10  Jakub Jelinek  <jakub@redhat.com>
28031
28032         PR target/47665
28033         * combine.c (make_compound_operation): Only change shifts into
28034         multiplication for SCALAR_INT_MODE_P.
28035
28036 2011-02-10  Jie Zhang  <jie@codesourcery.com>
28037
28038         PR testsuite/47622
28039         Revert
28040         2011-02-05  Jie Zhang  <jie@codesourcery.com>
28041         PR debug/42631
28042         * web.c (entry_register): Don't clobber the number of the
28043         first uninitialized reference in used[].
28044
28045 2011-02-09  Richard Guenther  <rguenther@suse.de>
28046
28047         PR tree-optimization/47664
28048         * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
28049         all edges again.
28050
28051 2011-02-09  David Edelsohn  <dje.gcc@gmail.com>
28052
28053         PR target/46481
28054         PR target/47032
28055         * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
28056         PROCESSOR_POWER7.
28057         (PROCESSOR_DEFAULT64): Same.
28058         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
28059
28060 2011-02-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28061
28062         * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
28063
28064 2011-02-09  Martin Jambor  <mjambor@suse.cz>
28065
28066         PR middle-end/45505
28067         * tree-sra.c (struct access): New flags grp_scalar_read and
28068         grp_scalar_write.  Changed description of assignment read and write
28069         flags.
28070         (dump_access): Dump new flags, reorder all of them.
28071         (sort_and_splice_var_accesses): Set the new flag accordingly, use them
28072         to detect multiple scalar reads.
28073         (analyze_access_subtree): Use the new scalar read write flags instead
28074         of the old flags.  Adjusted comments.
28075
28076 2011-02-08  DJ Delorie  <dj@redhat.com>
28077
28078         PR target/47548
28079         * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
28080         patterns.
28081
28082 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
28083
28084         * config/m68k/uclinux.opt: New.
28085         * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
28086
28087 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
28088
28089         * config/cris/elf.opt (sim): New Driver option.
28090
28091 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
28092
28093         * config/xtensa/elf.opt: New.
28094         * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
28095
28096 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
28097
28098         * config/vax/elf.opt: New.
28099         * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
28100
28101 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
28102
28103         * config/rs6000/aix64.opt (posix, pthread): New Driver options.
28104
28105 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
28106
28107         * config/gnu-user.opt: New.
28108         * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
28109         *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
28110         *-*-uclinux*): Use gnu-user.opt.
28111
28112 2011-02-08  Thomas Schwinge  <thomas@schwinge.name>
28113
28114         * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
28115         * config/i386/gnu.h (CPP_SPEC): Likewise.
28116
28117 2011-02-08  Ian Lance Taylor  <iant@google.com>
28118
28119         * common.opt (fcx-limited-range): Add SetByCombined flag.
28120         (ffinite-math-only, fmath-errno, frounding-math): Likewise.
28121         (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
28122         (fassociative-math, freciprocal-math): Likewise.
28123         (funsafe-math-optimizations): Likewise.
28124         * opth-gen.awk: Handle SetByCombined.
28125         * optc-gen.awk: Likewise.
28126         * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
28127         (set_unsafe_math_optimizations_flags): Likewise.
28128         * doc/options.texi (Option properties): Document SetByCombined.
28129
28130 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
28131
28132         * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
28133         i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
28134         m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
28135         m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
28136         sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
28137
28138 2011-02-08  Sebastian Pop  <sebastian.pop@amd.com>
28139
28140         PR tree-optimization/46834
28141         PR tree-optimization/46994
28142         PR tree-optimization/46995
28143         * graphite-sese-to-poly.c (used_outside_reduction): New.
28144         (detect_commutative_reduction): Call used_outside_reduction.
28145         (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
28146         translate_scalar_reduction_to_array only when at least one
28147         loop-phi/close-phi tuple has been detected.
28148
28149 2011-02-08  Richard Guenther  <rguenther@suse.de>
28150
28151         PR middle-end/47639
28152         * tree-vect-generic.c (expand_vector_operations_1): Update
28153         stmts here ...
28154         (expand_vector_operations): ... not here.  Cleanup EH info
28155         and the CFG if required.
28156
28157 2011-02-08  Richard Guenther  <rguenther@suse.de>
28158
28159         PR tree-optimization/47641
28160         * tree-ssa.c (execute_update_addresses_taken): For asm outputs
28161         require type compatibility.
28162
28163 2011-02-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
28164
28165         * gimple-low.c (lower_function_body): Don't remove the location of
28166         the return statement here.
28167         (lower_gimple_return): Do it here instead but only if the return
28168         statement is actually used twice.
28169
28170 2011-02-08  Richard Guenther  <rguenther@suse.de>
28171
28172         PR tree-optimization/47632
28173         * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
28174         unused up_to_stmt parameter, return whether cfg-cleanup is
28175         necessary, remove EH info properly.
28176         (forward_propagate_into_gimple_cond): Adjust caller.
28177         (forward_propagate_into_cond): Likewise.
28178         (forward_propagate_comparison): Likewise.
28179         (tree_ssa_forward_propagate_single_use_vars): Make
28180         forward_propagate_comparison case similar to the two others.
28181
28182 2011-02-08  Nick Clifton  <nickc@redhat.com>
28183
28184         * config/mn10300/mn10300.opt (mliw): New command line option.
28185         * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
28186         (liw_bundling): New automaton.
28187         (liw): New attribute.
28188         (liw_op): New attribute.
28189         (liw_op1, liw_op2, liw_both, liw_either): New reservations.
28190         (movsi_internal): Add LIW attributes.
28191         (andsi3): Likewise.
28192         (iorsi3): Likewise.
28193         (xorsi3): Likewise.
28194         (addsi3): Separate register and immediate alternatives.
28195         Add LIW attributes.
28196         (subsi3): Likewise.
28197         (cmpsi): Likewise.
28198         (aslsi3): Likewise.
28199         (lshrsi3): Likewise.
28200         (ashrsi3): Likewise.
28201         (liw): New pattern.
28202         * config/mn10300/mn10300.c (liw_op_names): New
28203         (mn10300_print_operand): Handle 'W' operand descriptor.
28204         (extract_bundle): New function.
28205         (check_liw_constraints): New function.
28206         (liw_candidate): New function.
28207         (mn10300_bundle_liw): New function.
28208         (mn10300_reorg): New function.
28209         (TARGET_MACHINE_DEPENDENT_REORG): Define.
28210         (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
28211         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
28212         __LIW__ or __NO_LIW__.
28213         * doc/invoke.texi: Describe the -mliw command line option.
28214
28215 2011-02-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
28216
28217         * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
28218         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
28219         pthread_mutex_unlock): Remove.
28220         * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
28221         * config/pa/t-pa64: Likewise.
28222         * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
28223         shared libc if not linking against libpthread.
28224         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
28225
28226 2011-02-07  Iain Sandoe  <iains@gcc.gnu.org>
28227
28228         PR target/47558
28229         * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
28230         on 10.6 and later to ensure that we always use the unwinder from
28231         the system.  Only add -no_compact_unwind when tarteting darwin
28232         10.6 or later.
28233
28234 2011-02-07  Steve Ellcey  <sje@cup.hp.com>
28235
28236         PR target/46997
28237         * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
28238         (vec_interleave_lowv2sf): Ditto.
28239         (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
28240         (vec_extract_oddv2sf): Ditto.
28241
28242 2011-02-07  Mike Stump  <mikestump@comcast.net>
28243
28244         PR target/42333
28245         Add __ieee_divdc3 entry point.
28246         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
28247         entry point.
28248         (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
28249         * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
28250         * config/darwin.c (darwin_rename_builtins): Add.
28251         * config/darwin-protos.h (darwin_rename_builtins): Add.
28252
28253 2011-02-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
28254
28255         PR target/47636
28256         * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
28257         for the condition.
28258
28259 2011-02-07  Mike Stump  <mikestump@comcast.net>
28260
28261         * config/darwin.opt (mmacosx-version-min): Update default OS version.
28262
28263 2011-02-07  Denis Chertykov  <chertykov@gmail.com>
28264
28265         PR target/47534
28266         * config/avr/libgcc.S (exit): Move .endfunc
28267
28268 2011-02-07  Richard Guenther  <rguenther@suse.de>
28269
28270         PR tree-optimization/47615
28271         * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
28272         * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
28273         (run_scc_vn): Initialize it.
28274         (visit_reference_op_load): Use it.
28275         * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
28276
28277 2011-02-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
28278
28279         * config/spu/spu.c (spu_init_libfuncs): Install SImode and
28280         DImode trapping arithmetic libfuncs.
28281
28282 2011-02-07  Richard Guenther  <rguenther@suse.de>
28283
28284         PR tree-optimization/47621
28285         * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
28286         two duplicates ...
28287         (execute_update_addresses_taken): ... here.  Make it more
28288         conservative in what we accept.
28289
28290 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
28291
28292         * config/sparc/freebsd.h (ASM_SPEC): Define.
28293         * config/sparc/vxworks.h (ASM_SPEC): Define.
28294
28295 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
28296
28297         * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
28298
28299 2011-02-06  Steven Bosscher  <steven@gcc.gnu.org>
28300
28301         * doc/invoke.texi: Remove reference to compiler internals from
28302         user documentation.
28303
28304         * reg-notes.def: Remove REG_VALUE_PROFILE.
28305         * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
28306
28307 2011-02-05  Jakub Jelinek  <jakub@redhat.com>
28308
28309         PR middle-end/47610
28310         * varasm.c (default_section_type_flags): If decl is NULL,
28311         and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
28312
28313 2011-02-05  Jie Zhang  <jie@codesourcery.com>
28314
28315         PR debug/42631
28316         * web.c (entry_register): Don't clobber the number of the
28317         first uninitialized reference in used[].
28318
28319 2011-02-04  Sebastian Pop  <sebastian.pop@amd.com>
28320
28321         PR tree-optimization/46194
28322         * tree-data-ref.c (analyze_miv_subscript): Remove comment.
28323         (build_classic_dist_vector_1): Do not represent classic distance
28324         vectors when the access functions are variating in different loops.
28325
28326 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
28327
28328         * config/mips/iris6.opt: New.
28329         * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
28330
28331 2011-02-04  Richard Henderson  <rth@redhat.com>
28332             Steve Ellcey  <sje@cup.hp.com>
28333
28334         PR target/46997
28335         * config/ia64/predicates.md (mux1_brcst_element): New.
28336         * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
28337         * config/ia64/ia64.c (ia64_unpack_assemble): New.
28338         (ia64_unpack_sign): New.
28339         (ia64_expand_unpack): Rewrite using new routines.
28340         (ia64_expand_widen_sum): Ditto.
28341         (ia64_expand_dot_prod_v8qi): Ditto.
28342         * config/ia64/vect.md (mulv8qi3): Rewrite to use new
28343         routines, add endian check.
28344         (pmpy2_even): Rename from pmpy2_r, add endian check.
28345         (pmpy2_odd): Rename from pmpy2_l, add endian check.
28346         (vec_widen_smult_lo_v4hi): Rewrite using new routines.
28347         (vec_widen_smult_hi_v4hi): Ditto.
28348         (vec_widen_umult_lo_v4hi): Ditto.
28349         (vec_widen_umult_hi_v4hi): Ditto.
28350         (mulv2si3): Change endian checks.
28351         (sdot_prodv4hi): Rewrite with new calls.
28352         (udot_prodv4hi): New.
28353         (vec_pack_ssat_v4hi): Add endian check.
28354         (vec_pack_usat_v4hi): Ditto.
28355         (vec_pack_ssat_v2si): Ditto.
28356         (max1_even): Rename from max1_r, add endian check.
28357         (max1_odd): Rename from max1_l, add endian check.
28358         (*mux1_rev): Format change.
28359         (*mux1_mix): Ditto.
28360         (*mux1_shuf): Ditto.
28361         (*mux1_alt): Ditto.
28362         (*mux1_brcst_v8qi): Use new predicate.
28363         (vec_extract_evenv8qi): Remove endian check.
28364         (vec_extract_oddv8qi): Ditto.
28365         (vec_interleave_lowv4hi): Format change.
28366         (vec_interleave_highv4hi): Ditto.
28367         (mix2_even): Rename from mix2_r, add endian check.
28368         (mix2_odd): Rename from mux2_l, add endian check.
28369         (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
28370         (vec_extract_evenodd_helper): Format change.
28371         (vec_extract_evenv4hi): Remove endian check.
28372         (vec_extract_oddv4hi): Remove endian check.
28373         (vec_interleave_lowv2si): Format change.
28374         (vec_interleave_highv2si): Format change.
28375         (vec_initv2si): Remove endian check.
28376         (vecinit_v2si): Add endian check.
28377         (reduc_splus_v2sf): Add endian check.
28378         (reduc_smax_v2sf): Ditto.
28379         (reduc_smin_v2sf): Ditto.
28380         (vec_initv2sf): Remove endian check.
28381         (fpack): Add endian check.
28382         (fswap): Add endian check.
28383         (vec_interleave_highv2sf): Add endian check.
28384         (vec_interleave_lowv2sf): Add endian check.
28385         (fmix_lr): Add endian check.
28386         (vec_setv2sf): Format change.
28387         (*vec_extractv2sf_0_be): Use shift to extract operand.
28388         (*vec_extractv2sf_1_be): New.
28389         (vec_pack_trunc_v4hi): Add endian check.
28390         (vec_pack_trunc_v2si): Format change.
28391
28392 2011-02-04  Jakub Jelinek  <jakub@redhat.com>
28393
28394         PR inline-asm/23200
28395         * tree-ssa-ter.c (is_replaceable_p): Add TER argument.  Don't
28396         do bb, locus and block comparison and disallow loads if it is not set.
28397         (stmt_is_replaceable_p): New function.
28398         (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
28399         callers.
28400         * expr.c (expand_expr_real_1) <case SSA_NAME>: If
28401         get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
28402         SSA_NAME_DEF_STMT.
28403         * tree-flow.h (stmt_is_replaceable_p): New prototype.
28404
28405 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
28406
28407         * config/rs6000/xilinx.opt: New.
28408         * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
28409
28410 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
28411
28412         * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
28413
28414 2011-02-03  Anatoly Sokolov  <aesok@post.ru>
28415
28416         * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
28417         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
28418         * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
28419         secondary_reload_info, xtensa_secondary_reload): Remove.
28420         * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
28421         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
28422         (xtensa_preferred_reload_class): Make static. Change return and
28423         'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
28424         Use CONST_DOUBLE_P predicate.
28425         (xtensa_preferred_output_reload_class): New function.
28426         (xtensa_secondary_reload): Make static.
28427
28428 2011-02-03  Joseph Myers  <joseph@codesourcery.com>
28429
28430         * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
28431         Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
28432         Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
28433
28434 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
28435
28436         PR middle-end/31490
28437         * output.h (SECTION_RELRO): Define.
28438         (SECTION_MACH_DEP): Adjust.
28439         (get_variable_section): New prototype.
28440         * varpool.c (varpool_finalize_named_section_flags): New function.
28441         (varpool_assemble_pending_decls): Call it.
28442         * cgraph.h (varpool_finalize_named_section_flags): New prototype.
28443         * cgraphunit.c (cgraph_output_in_order): Call
28444         varpool_finalize_named_section_flags.
28445         * varasm.c (get_section): Allow section flags conflicts between
28446         relro and read-only sections if the section hasn't been declared yet.
28447         Set SECTION_OVERRIDE after diagnosing section type conflict.
28448         (get_variable_section): No longer static.
28449         (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
28450         readonly sections that need relocations.
28451         (decl_readonly_section_1): New function.
28452         (decl_readonly_section): Use it.
28453
28454         Revert:
28455         2010-11-17  Dinar Temirbulatov  <dtemirbulatov@gmail.com>
28456                     Steve Ellcey  <sje@cup.hp.com>
28457
28458         PR middle-end/31490
28459         * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
28460         if section attribute used.
28461
28462 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
28463
28464         * config/darwin.h (SECTION_NO_ANCHOR): Remove.
28465         * config/darwin.c (SECTION_NO_ANCHOR): Define.
28466         (darwin_init_sections): Remove assertion.
28467
28468 2011-02-03  Nick Clifton  <nickc@redhat.com>
28469
28470         * config/rx/predicates.md (rx_zs_comparison_operator): Remove
28471         lt and ge.
28472         * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
28473         * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
28474         instead of "n" and "pz".
28475         (flags_from_code): LT and GE tests need CC_FLAG_O as well as
28476         CC_FLAG_S.
28477
28478 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
28479
28480         PR target/47312
28481         * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
28482         fma, expand FMA_EXPR as fma{,f,l} call.
28483
28484         PR lto/47274
28485         * lto-streamer-out.c (write_symbol): When writing kind and visibility,
28486         copy them into a unsigned char variable and pass address of it to
28487         lto_output_data_stream.
28488
28489         PR target/47564
28490         * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
28491         around backend_init_target and lang_dependent_init_target calls.
28492         * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
28493         (verify_cgraph_node): Don't call set_cfun here.  Use
28494         cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
28495         Set error_found for incorrectly represented calls to thunks.
28496
28497 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
28498
28499         PR debug/43092
28500         PR rtl-optimization/43494
28501         * rtl.h (for_each_inc_dec_fn): New type.
28502         (for_each_inc_dec): Declare.
28503         * rtlanal.c (struct for_each_inc_dec_ops): New type.
28504         (for_each_inc_dec_find_inc_dec): New fn.
28505         (for_each_inc_dec_find_mem): New fn.
28506         (for_each_inc_dec): New fn.
28507         * dse.c (struct insn_size): Remove.
28508         (replace_inc_dec, replace_inc_dec_mem): Remove.
28509         (emit_inc_dec_insn_before): New fn.
28510         (check_for_inc_dec): Use it, along with for_each_inc_dec.
28511         (canon_address): Pass mem modes to cselib_lookup.
28512         * cselib.h (cselib_lookup): Add memmode argument.  Adjust callers.
28513         (cselib_lookup_from_insn): Likewise.
28514         (cselib_subst_to_values): Likewise.
28515         * cselib.c (find_slot_memmode): New var.
28516         (cselib_find_slot): New fn.  Use it instead of
28517         htab_find_slot_with_hash everywhere.
28518         (entry_and_rtx_equal_p): Use find_slot_memmode.
28519         (autoinc_split): New fn.
28520         (rtx_equal_for_cselib_p): Rename and implement in terms of...
28521         (rtx_equal_for_cselib_1): ... this.  Take memmode, pass it on.
28522         Deal with autoinc.  Special-case recursion into MEMs.
28523         (cselib_hash_rtx): Likewise.
28524         (cselib_lookup_mem): Infer pmode from address mode.  Distinguish
28525         address and MEM modes.
28526         (cselib_subst_to_values): Add memmode, pass it on.
28527         Deal with autoinc.
28528         (cselib_lookup): Add memmode argument, pass it on.
28529         (cselib_lookup_from_insn): Add memmode.
28530         (cselib_invalidate_rtx): Discard obsolete push_operand handling.
28531         (struct cselib_record_autoinc_data): New.
28532         (cselib_record_autoinc_cb): New fn.
28533         (cselib_record_sets): Use it, along with for_each_inc_dec.  Pass MEM
28534         mode to cselib_lookup.  Reset autoinced REGs here instead of...
28535         (cselib_process_insn): ... here.
28536         * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
28537         to cselib_lookup.
28538         (add_uses): Likewise, also to cselib_subst_to_values.
28539         (add_stores): Likewise.
28540         * sched-deps.c (add_insn_mem_dependence): Pass mode to
28541         cselib_subst_to_values.
28542         (sched_analyze_1, sched_analyze_2): Likewise.  Adjusted.
28543         * gcse.c (do_local_cprop): Adjusted.
28544         * postreload.c (reload_cse_simplify_set): Adjusted.
28545         (reload_cse_simplify_operands): Adjusted.
28546         * sel-sched-dump (debug_mem_addr_value): Pass mode.
28547
28548 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
28549
28550         PR tree-optimization/45122
28551         * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
28552         unsafe assumptions when there's more than one loop exit.
28553
28554 2011-02-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
28555
28556         PR target/47272
28557         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
28558         Document using vector double with the load/store builtins, and
28559         that the load/store builtins always use Altivec instructions.
28560
28561         * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
28562         to use altivec memory instructions, even on VSX.
28563         (vector_altivec_store_<mode>): Ditto.
28564
28565         * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
28566         function.
28567
28568         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
28569         V2DF, V2DI support to load/store overloaded builtins.
28570
28571         * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
28572         altivec load/store builtins for V2DF/V2DI types.
28573
28574         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
28575         set avoid indexed addresses on power6 if -maltivec.
28576         (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
28577         vector_altivec_load/vector_altivec_store builtins.
28578         (altivec_expand_st_builtin): Ditto.
28579         (altivec_expand_builtin): Add VSX memory builtins.
28580         (rs6000_init_builtins): Add V2DI types to internal types.
28581         (altivec_init_builtins): Add support for V2DF/V2DI altivec
28582         load/store builtins.
28583         (rs6000_address_for_altivec): Insure memory address is appropriate
28584         for Altivec.
28585
28586         * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
28587         vec_vsx_ld and vec_vsx_st.
28588         (vsx_store_<mode>): Ditto.
28589
28590         * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
28591         variables to hold long long types for VSX vector memory builtins.
28592         (RS6000_BTI_unsigned_long_long): Ditto.
28593         (long_long_integer_type_internal_node): Ditti.
28594         (long_long_unsigned_type_internal_node): Ditti.
28595
28596         * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
28597         (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
28598         (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
28599
28600         * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
28601         short cuts.
28602         (vec_vsx_st): Ditto.
28603
28604 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
28605
28606         * config/pa/pa-hpux10.opt: New.
28607         * config/hpux11.opt (pthread): New Driver option.
28608         * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
28609         * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
28610
28611 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
28612
28613         * config/ia64/vms.opt: New.
28614         * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
28615
28616 2011-02-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
28617
28618         PR target/47580
28619         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
28620         gpc_reg_operand instead of vsx_register_operand to match rs6000.md
28621         generator functions.
28622         (vsx_floatuns<VSi><mode>2): Ditto.
28623         (vsx_fix_trunc<mode><VSi>2): Ditto.
28624         (vsx_fixuns_trunc<mode><VSi>2): Ditto.
28625
28626 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
28627
28628         * config/i386/djgpp.opt (posix): New Driver option.
28629
28630 2011-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
28631
28632         * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
28633         Move to the unsupported targets list.
28634
28635 2011-02-02  Peter Bergner  <bergner@vnet.ibm.com>
28636
28637         PR rtl-optimization/47525
28638         * df-scan.c: Update copyright years.
28639         (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
28640         and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
28641
28642 2011-02-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28643
28644         * config/i386/sysv4.h (TARGET_VERSION): Remove.
28645         (SUBTARGET_RETURN_IN_MEMORY): Remove.
28646         (ASM_OUTPUT_ASCII): Remove.
28647         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
28648
28649 2011-02-02  Jeff Law  <law@redhat.com>
28650
28651         PR middle-end/47543
28652         * reload.c (find_reloads_address): Handle reg+d address where both
28653         components are invalid by reloading the entire address.
28654
28655 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
28656             Richard Guenther  <rguenther@suse.de>
28657
28658         PR tree-optimization/40979
28659         PR bootstrap/47044
28660         * passes.c (init_optimization_passes): After LIM call copy_prop
28661         and DCE to clean up.
28662         * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
28663
28664 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
28665
28666         PR tree-optimization/47576
28667         PR tree-optimization/47555
28668         * doc/invoke.texi (scev-max-expr-complexity): Documented.
28669         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
28670         (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
28671         * tree-scalar-evolution.c (follow_ssa_edge): Use
28672         PARAM_SCEV_MAX_EXPR_COMPLEXITY.
28673
28674 2011-02-02  Richard Guenther  <rguenther@suse.de>
28675
28676         PR tree-optimization/47566
28677         * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
28678
28679 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
28680
28681         PR debug/47106
28682         PR debug/47402
28683         * tree-inline.c (declare_return_variable): Remove unused caller
28684         variable.
28685
28686         PR debug/47106
28687         PR debug/47402
28688         * tree-flow-inline.h (clear_is_used, is_used_p): New.
28689         * cfgexpand.c (account_used_vars_for_block): Use them.
28690         * tree-nrv.c (tree_nrv): Likewise.
28691         * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
28692         (dump_scope_block): Likewise.
28693         (remove_unused_locals): Likewise.
28694
28695         PR debug/47106
28696         PR debug/47402
28697         * tree-inline.c (declare_return_variable): Add result decl to
28698         local decls only once.
28699         * gimple-low.c (record_vars_into): Mark newly-created variables
28700         as referenced.
28701
28702 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
28703
28704         PR debug/47498
28705         PR debug/47501
28706         PR debug/45136
28707         PR debug/45130
28708         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
28709         debug insns.
28710         (no_real_insns_p, schedule_block, set_priorities): Drop special
28711         treatment of boundary debug insns.
28712         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
28713         * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
28714         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
28715         (BOUNDARY_DEBUG_INSN_P): Likewise.
28716         (SCHEDULE_DEBUG_INSN_P): Likewise.
28717         * sched-rgn.c (init_ready_list): Drop special treatment of
28718         boundary debug insns.
28719         * final.c (rest_of_clean_state): Clear notes' BB.
28720
28721 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
28722
28723         * config/openbsd.opt (assert=): New Driver option.
28724
28725 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
28726
28727         * config/i386/nto.opt: New.
28728         * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
28729
28730 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
28731
28732         * config/i386/netware.opt: New.
28733         * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
28734
28735 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
28736
28737         * config/interix.opt (posix): New Driver option.
28738
28739 2011-02-01  DJ Delorie  <dj@redhat.com>
28740
28741         * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
28742
28743         * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
28744         class for A0/A1.
28745
28746 2011-02-01  Sebastian Pop  <sebastian.pop@amd.com>
28747
28748         PR tree-optimization/47561
28749         * toplev.c (process_options): Print the Graphite flags.  Add
28750         flag_loop_flatten to the list of options requiring Graphite.
28751
28752 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
28753
28754         * config/i386/cygming.opt (posix): New Driver option.
28755
28756 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
28757
28758         * config/arm/vxworks.opt: New.
28759         * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
28760
28761 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
28762
28763         * config/alpha/elf.opt: New.
28764         * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
28765         alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
28766
28767 2011-02-01  Richard Guenther  <rguenther@suse.de>
28768
28769         PR tree-optimization/47559
28770         * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
28771         store-motion on references that can throw.
28772
28773 2011-02-01  Bernd Schmidt  <bernds@codesourcery.com>
28774
28775         * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
28776         * tree-pass.h (TDF_CSELIB): New macro.
28777         * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
28778         cselib_lookup): Check for it rather than for TDF_DETAILS.
28779
28780 2011-02-01  H.J. Lu  <hongjiu.lu@intel.com>
28781
28782         PR driver/47547
28783         * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
28784         is HOST_BIT_BUCKET.
28785
28786         * opts.c (finish_options): Don't add x_aux_base_name if it is
28787         HOST_BIT_BUCKET.
28788
28789 2011-02-01  Richard Guenther  <rguenther@suse.de>
28790
28791         PR tree-optimization/47555
28792         Revert
28793         2010-07-15  Sebastian Pop  <sebastian.pop@amd.com>
28794
28795         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
28796
28797 2011-02-01  Sebastien Bourdeauducq  <sebastien@milkymist.org>
28798
28799         PR gcc/46692
28800         * config/lm32/t-lm32: Add multilib for all CPU options.
28801
28802 2011-02-01  Richard Guenther  <rguenther@suse.de>
28803
28804         PR tree-optimization/47541
28805         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
28806         sure to have a field at offset zero.
28807
28808 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
28809
28810         * config/arc/arc.opt (EB, EL): New Driver options.
28811
28812 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
28813
28814         * config/alpha/osf5.opt: New.
28815         * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
28816
28817 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
28818
28819         * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
28820
28821 2011-01-31  Sebastian Pop  <sebastian.pop@amd.com>
28822
28823         * common.opt (ftree-loop-linear): Use Alias to make it an alias of
28824         -floop-interchange.
28825         * invoke.texi (-ftree-loop-linear): Make it clear that this flag
28826         is an alias of -floop-interchange and that it requires the
28827         Graphite infrastructure.
28828         * tree-ssa-loop.c (gate_graphite_transforms): Do not set
28829         flag_loop_interchange based on the value of flag_tree_loop_linear.
28830
28831 2011-01-31  Jakub Jelinek  <jakub@redhat.com>
28832             Richard Guenther  <rguenther@suse.de>
28833
28834         PR tree-optimization/47538
28835         * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
28836         type instead of r1type, except for comparisons.  For right
28837         shifts and comparisons punt if there are mismatches in
28838         sizetype vs. non-sizetype types.
28839
28840 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28841
28842         * doc/sourcebuild.texi (Effective-Target Keywords): Document
28843         avx_runtime.
28844
28845 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28846
28847         * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
28848         version number.
28849         * configure: Regenerate.
28850
28851 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28852
28853         * configure.ac (gcc_cv_ld_static_option): Define.
28854         (gcc_cv_ld_dynamic_option): Define.
28855         (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
28856         instead.
28857         (HAVE_LD_STATIC_DYNAMIC): Update message.
28858         (LD_STATIC_OPTION): Define.
28859         (LD_DYNAMIC_OPTION): Define.
28860         * configure: Regenerate.
28861         * config.in: Regenerate.
28862         * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
28863         HAVE_LD_STATIC_DYNAMIC]: Use them.
28864
28865 2011-01-31  Nick Clifton  <nickc@redhat.com>
28866
28867         * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
28868         registers inside interrupt handlers if the handler is not a leaf
28869         function.
28870
28871 2011-01-31  Nick Clifton  <nickc@redhat.com>
28872
28873         * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
28874         reg_renumber returning an INVALID_REGNUM.
28875
28876 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
28877
28878         PR libgcj/44341
28879         * doc/install.texi: Document host options discarded when cross
28880         configuring target libraries.
28881
28882 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
28883
28884         Reverted:
28885         2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
28886         PR debug/45136
28887         PR debug/45130
28888         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
28889         debug insns.
28890         (no_real_insns_p, schedule_block, set_priorities): Drop special
28891         treatment of boundary debug insns.
28892         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
28893         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
28894         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
28895         (BOUNDARY_DEBUG_INSN_P): Likewise.
28896         (SCHEDULE_DEBUG_INSN_P): Likewise.
28897         * sched-rgn.c (init_ready_list): Drop special treatment of
28898         boundary debug insns.
28899         * final.c (rest_of_clean-state): Clear notes' BB.
28900
28901 2011-01-31  Alan Modra  <amodra@gmail.com>
28902
28903         * config/rs6000/rs6000.c (print_operand): Rearrange addends in
28904         toc relative expressions as we do in print_operand_address.
28905
28906 2011-01-30  Kazu Hirata  <kazu@codesourcery.com>
28907
28908         * doc/extend.texi: Follow spelling conventions.
28909         * doc/invoke.texi: Fix a typo.
28910
28911 2011-01-30  Joseph Myers  <joseph@codesourcery.com>
28912
28913         * config/hpux11.opt: New.
28914         * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
28915         ia64*-*-hpux*): Use hpux11.opt.
28916
28917 2011-01-30  Jonathan Yong  <jon_y@users.sourceforge.net>
28918
28919         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
28920         to tmake_file.
28921
28922 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
28923
28924         * doc/install.texi (hppa-hp-hpux10): Remove references to HP
28925         support sites.
28926
28927 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
28928
28929         * doc/install.texi (Binaries): Remove outdated reference for
28930         Motorola 68HC11/68HC12 downloads.
28931
28932 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
28933
28934         * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
28935         Drepper's paper.
28936
28937 2011-01-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
28938
28939         PR bootstrap/47147
28940         * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
28941         used by NetBSD.
28942
28943 2011-01-28  Ahmad Sharif  <asharif@google.com>
28944
28945         * value-prof.c (check_counter): Corrected error message.
28946
28947 2011-01-29  Jie Zhang  <jie@codesourcery.com>
28948
28949         * config/arm/arm.c (arm_legitimize_reload_address): New.
28950         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
28951         arm_legitimize_reload_address.
28952         * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
28953
28954 2011-01-28  Ian Lance Taylor  <iant@google.com>
28955
28956         * godump.c (go_define): Ignore macros whose definitions include
28957         two adjacent operands.
28958
28959 2011-01-28  Jakub Jelinek  <jakub@redhat.com>
28960
28961         PR target/42894
28962         * varasm.c (force_const_mem): Store copy of x in desc->constant
28963         instead of x itself.
28964         * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
28965         itself into REG_EQUAL note.
28966
28967 2011-01-28  Joseph Myers  <joseph@codesourcery.com>
28968
28969         * config/freebsd.opt (posix, rdynamic): New Driver options.
28970
28971 2011-01-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28972
28973         * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
28974         -Bstatic/-Bdynamic.
28975         * configure: Regenerate.
28976
28977 2011-01-27  Joseph Myers  <joseph@codesourcery.com>
28978
28979         * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
28980         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
28981
28982 2011-01-27  Anatoly Sokolov  <aesok@post.ru>
28983
28984         * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
28985         * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
28986         * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
28987         (s390_preferred_reload_class): Make static. Change return and
28988         'rclass' argument type to reg_class_t.
28989
28990 2011-01-27  Jan Hubicka  <jh@suse.cz>
28991
28992         PR middle-end/46949
28993         * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
28994         (process_function_and_variable_attributes): Check defined weakrefs.
28995
28996 2011-01-27  Martin Jambor  <mjambor@suse.cz>
28997
28998         PR tree-optimization/47228
28999         * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
29000         build_ref_for_offset.
29001
29002 2011-01-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
29003
29004         * config/spu/spu-elf.h (ASM_SPEC): Remove.
29005
29006 2011-01-26  Mikael Pettersson  <mikpe@it.uu.se>
29007
29008         PR rtl-optimization/46856
29009         * postreload.c (reload_combine_recognize_const_pattern): Do not
29010         separate cc0 setter and user on cc0 targets.
29011
29012 2011-01-26  Nicola Pero  <nicola.pero@meta-innovation.com>
29013
29014         PR c/43082
29015         * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
29016         passed a VOID_TYPE expression, immediately emit an error and
29017         return error_mark_node.
29018
29019 2011-01-26  Jeff Law  <law@redhat.com>
29020
29021         PR rtl-optimization/47464
29022         * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
29023         rather than may_trap_p as needed.
29024
29025 2011-01-26  DJ Delorie  <dj@redhat.com>
29026
29027         PR rtl-optimization/46878
29028         * combine.c (insn_a_feeds_b): Check for the implicit cc0
29029         setter/user dependency as well.
29030
29031 2011-01-26  Eric Botcazou  <ebotcazou@adacore.com>
29032
29033         PR rtl-optimization/44469
29034         * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
29035         after removing trivially dead basic blocks.
29036
29037 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
29038
29039         * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
29040         * config/frv/frv.h (LINK_SPEC): Likewise.
29041         * config/i386/netware.h (LINK_SPEC): Likewise.
29042         * config/m68k/linux.h (ASM_SPEC): Likewise.
29043         * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
29044         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
29045         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
29046         * config/sparc/linux.h (ASM_SPEC): Likewise.
29047         * config/sparc/linux64.h (ASM_SPEC): Likewise.
29048         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
29049
29050 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
29051
29052         * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
29053         * config/frv/frv.h (ASM_SPEC): Likewise.
29054         * config/m68k/linux.h (ASM_SPEC): Likewise.
29055         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
29056         * config/rs6000/linux64.h (ASM_SPEC): Likewise.
29057         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
29058         * config/sparc/linux.h (ASM_SPEC): Likewise.
29059         * config/sparc/linux64.h (ASM_SPEC): Likewise.
29060         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
29061
29062 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
29063
29064         * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
29065         * config/frv/frv.h (LINK_SPEC): Likewise.
29066         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
29067
29068 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
29069
29070         * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
29071         * config/frv/frv.h (ASM_SPEC): Likewise.
29072         * config/i386/sol2-10.h (ASM_SPEC): Likewise.
29073         * config/m68k/linux.h (ASM_SPEC): Likewise.
29074         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
29075         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
29076         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
29077         * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
29078         * config/sparc/linux.h (ASM_SPEC): Likewise.
29079         * config/sparc/linux64.h (ASM_SPEC): Likewise.
29080         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
29081         * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
29082
29083 2011-01-26  Steve Ellcey  <sje@cup.hp.com>
29084
29085         PR target/46997
29086         * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
29087         (*mux2): Ditto.
29088         (vec_extract_evenodd_help): Ditto.
29089         (vec_extract_evenv4hi): Ditto.
29090         (vec_extract_oddv4hi): Ditto.
29091         (vec_interleave_lowv2si): Ditto.
29092         (vec_interleave_highv2si): Ditto.
29093         (vec_extract_evenv2si): Ditto.
29094         (vec_extract_oddv2si: Ditto.
29095         (vec_pack_trunc_v2si): Ditto.
29096
29097 2011-01-22  Jan Hubicka  <jh@suse.cz>
29098
29099         PR target/47237
29100         * cgraph.h (cgraph_local_info): New field can_change_signature.
29101         * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
29102         signature can change.
29103         (ipcp_estimate_growth): Call sequence simplify only if calle signature
29104         can change.
29105         (ipcp_insert_stage): Only compute args_to_skip if signature can change.
29106         (cgraph_function_versioning): We can not change signature of functions
29107         that don't allow that.
29108         * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
29109         (lto_input_node): Likewise.
29110         * ipa-inline.c (compute_inline_parameters): Compute
29111         local.can_change_signature.
29112         * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
29113         * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
29114         functions that can not change signature.
29115         * i386.c (ix86_function_regparm, ix86_function_sseregparm,
29116         init_cumulative_args): Do not use local calling conventions
29117         for functions that can not change signature.
29118
29119 2011-01-22  Jan Hubicka  <jh@suse.cz>
29120
29121         * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
29122
29123 2011-01-26  Richard Guenther  <rguenther@suse.de>
29124
29125         PR tree-optimization/47190
29126         * cgraphunit.c (process_common_attributes): New function.
29127         (process_function_and_variable_attributes): Use it.
29128
29129 2011-01-26  Richard Guenther  <rguenther@suse.de>
29130
29131         PR lto/47423
29132         * cgraphbuild.c (record_eh_tables): Record reference to personality
29133         function.
29134
29135 2011-01-26  Alexandre Oliva  <aoliva@redhat.com>
29136
29137         PR debug/45454
29138         * sel-sched.c (moveup_expr): Don't let debug insns prevent
29139         non-debug insns from moving up.
29140
29141 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
29142
29143         PR target/40125
29144         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
29145         t-dlldir{,-x} fragment for build and add it to tmake_file.
29146         (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
29147         * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
29148         * config/i386/t-dlldir: New file.
29149         (SHLIB_DLLDIR): Define.
29150         * config/i386/t-dlldir-x: New file.
29151         (SHLIB_DLLDIR): Define.
29152         * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
29153         (SHLIB_INSTALL): Use it.
29154
29155 2011-01-26  Chung-Lin Tang  <cltang@codesourcery.com>
29156
29157         PR target/47246
29158         * config/arm/arm.c (thumb2_legitimate_index_p): Change the
29159         lower bound of the allowed Thumb-2 coprocessor load/store
29160         index range to -256. Add explaining comment.
29161
29162 2011-01-25  Ian Lance Taylor  <iant@google.com>
29163
29164         * godump.c (go_define): Improve lexing of macro expansion to only
29165         accept expressions which match Go spec.
29166
29167 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
29168
29169         PR c++/43601
29170         * tree.c (handle_dll_attribute): Handle it.
29171         * doc/extend.texi (@item dllexport): Mention it.
29172         * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
29173
29174 2011-01-25  Ian Lance Taylor  <iant@google.com>
29175
29176         PR tree-optimization/26854
29177         * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
29178         (decl_jump_unsafe): Move higher in file, with no other change.
29179         (bind): Set has_jump_unsafe_decl if appropriate.
29180         (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
29181         (check_earlier_gotos): Likewise.
29182         (c_check_switch_jump_warnings): Likewise.
29183
29184 2011-01-25  Jonathan Wakely  <jwakely.gcc@gmail.com>
29185
29186         * doc/invoke.texi (Warning Options): Add missing hyphen.
29187         (-fprofile-dir): Minor grammatical fixes.
29188         (-fbranch-probabilities): Likewise.
29189
29190 2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
29191
29192         PR debug/45136
29193         PR debug/45130
29194         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
29195         debug insns.
29196         (no_real_insns_p, schedule_block, set_priorities): Drop special
29197         treatment of boundary debug insns.
29198         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
29199         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
29200         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
29201         (BOUNDARY_DEBUG_INSN_P): Likewise.
29202         (SCHEDULE_DEBUG_INSN_P): Likewise.
29203         * sched-rgn.c (init_ready_list): Drop special treatment of
29204         boundary debug insns.
29205         * final.c (rest_of_clean-state): Clear notes' BB.
29206
29207 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
29208
29209         * Makefile.in (LAMBDA_H): Removed.
29210         (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
29211         (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
29212         lambda-trans.o, and tree-loop-linear.o.
29213         (lto-symtab.o): Remove dependence on LAMBDA_H.
29214         (tree-loop-linear.o): Remove rule.
29215         (lambda-mat.o): Same.
29216         (lambda-trans.o): Same.
29217         (lambda-code.o): Same.
29218         (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
29219         (tree-vect-slp.o): Same.
29220         * hwint.h (gcd): Moved here.
29221         (least_common_multiple): Same.
29222         * lambda-code.c: Removed.
29223         * lambda-mat.c: Removed.
29224         * lambda-trans.c: Removed.
29225         * lambda.h: Removed.
29226         * tree-loop-linear.c: Removed.
29227         * lto-symtab.c: Do not include lambda.h.
29228         * omega.c (gcd): Removed.
29229         * passes.c (init_optimization_passes): Remove pass_linear_transform.
29230         * tree-data-ref.c (print_lambda_vector): Moved here.
29231         (lambda_vector_copy): Same.
29232         (lambda_matrix_copy): Same.
29233         (lambda_matrix_id): Same.
29234         (lambda_vector_first_nz): Same.
29235         (lambda_matrix_row_add): Same.
29236         (lambda_matrix_row_exchange): Same.
29237         (lambda_vector_mult_const): Same.
29238         (lambda_vector_negate): Same.
29239         (lambda_matrix_row_negate): Same.
29240         (lambda_vector_equal): Same.
29241         (lambda_matrix_right_hermite): Same.
29242         * tree-data-ref.h: Do not include lambda.h.
29243         (lambda_vector): Moved here.
29244         (lambda_matrix): Same.
29245         (dependence_level): Same.
29246         (lambda_transform_legal_p): Removed declaration.
29247         (lambda_collect_parameters): Same.
29248         (lambda_compute_access_matrices): Same.
29249         (lambda_vector_gcd): Same.
29250         (lambda_vector_new): Same.
29251         (lambda_vector_clear): Same.
29252         (lambda_vector_lexico_pos): Same.
29253         (lambda_vector_zerop): Same.
29254         (lambda_matrix_new): Same.
29255         * tree-flow.h (least_common_multiple): Removed declaration.
29256         * tree-parloops.c (lambda_trans_matrix): Moved here.
29257         (LTM_MATRIX): Same.
29258         (LTM_ROWSIZE): Same.
29259         (LTM_COLSIZE): Same.
29260         (LTM_DENOMINATOR): Same.
29261         (lambda_trans_matrix_new): Same.
29262         (lambda_matrix_vector_mult): Same.
29263         (lambda_transform_legal_p): Same.
29264         * tree-pass.h (pass_linear_transform): Removed declaration.
29265         * tree-ssa-loop.c (tree_linear_transform): Removed.
29266         (gate_tree_linear_transform): Removed.
29267         (pass_linear_transform): Removed.
29268         (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
29269         flag_loop_interchange.
29270
29271 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
29272
29273         PR tree-optimization/47265
29274         PR tree-optimization/47443
29275         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
29276         if name still has some uses.
29277
29278 2011-01-25  Martin Jambor  <mjambor@suse.cz>
29279
29280         PR tree-optimization/47382
29281         * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
29282         (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
29283
29284 2011-01-25  Joel Sherrill  <joel.sherrill@oarcorp.com>
29285
29286         * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
29287         sjlj_except_unwind_info.
29288
29289 2011-01-25  Richard Guenther  <rguenther@suse.de>
29290
29291         PR tree-optimization/47426
29292         * tree-ssa-structalias.c (ipa_pta_execute): Make externally
29293         visible functions results escape.
29294
29295 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
29296
29297         PR target/45701
29298         * config/arm/arm.c (any_sibcall_uses_r3): New function.
29299         (arm_get_frame_offsets): Use it.
29300
29301 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
29302             Jakub Jelinek  <jakub@redhat.com>
29303
29304         PR tree-optimization/47271
29305         * tree-if-conv.c (bb_postdominates_preds): New.
29306         (if_convertible_bb_p): Call bb_postdominates_preds.
29307         (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
29308         (predicate_scalar_phi): Call bb_postdominates_preds.
29309
29310 2011-01-25  Nick Clifton  <nickc@redhat.com>
29311
29312         * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
29313         * config/rx/rx.c (rx_function_value): Likewise.
29314         (rx_promote_function_mode): Likewise.
29315         (gen_safe_add): Place an outsized immediate value inside an UNSPEC
29316         in order to make it legitimate.
29317         * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
29318         make sure that the first operand is the same as the result register.
29319         (addsi3_unspec): Delete.
29320         (subdi3): Do not accept immediate operands.
29321         (subdi3_internal): Likewise.
29322
29323 2011-01-25  Jeff Law  <law@redhat.com>
29324
29325         PR rtl-optimization/37273
29326         * ira-costs.c (scan_one_insn): Detect constants living in memory and
29327         handle them like argument loads from stack slots.  Do not double
29328         count memory for memory constants and argument loads from stack slots.
29329
29330 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
29331
29332         PR tree-optimization/47427
29333         PR tree-optimization/47428
29334         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
29335         coalesce if the new root var would be TREE_READONLY.
29336
29337 2011-01-25  Richard Guenther  <rguenther@suse.de>
29338
29339         PR middle-end/47414
29340         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
29341         correct type for TBAA.
29342
29343 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
29344
29345         * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
29346         (close_phi_written_to_memory): Call for_each_index with
29347         dr_indices_valid_in_loop.
29348
29349 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
29350
29351         * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
29352         when it is initialized.
29353
29354 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
29355
29356         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
29357         call to graphite_find_data_references_in_stmt.
29358         * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
29359         (try_generate_gimple_bb): Call outermost_loop_in_sese_1.  Update
29360         call to graphite_find_data_references_in_stmt.
29361         (analyze_drs_in_stmts): Same.
29362         * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
29363         in which the scalar analysis of indices is performed.
29364         (create_data_ref): Same.  Update call to dr_analyze_indices.
29365         (find_data_references_in_stmt): Update call to create_data_ref.
29366         (graphite_find_data_references_in_stmt): Same.
29367         * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
29368         declaration.
29369         (create_data_ref): Same.
29370         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
29371         call to create_data_ref.
29372
29373 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
29374
29375         * graphite-sese-to-poly.c (build_poly_scop): Move
29376         rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
29377
29378 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
29379
29380         * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
29381         VAR_DECL, PARM_DECL, and RESULT_DECL.
29382
29383 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
29384
29385         * graphite-dependences.c (reduction_dr_1): Allow several reductions
29386         in a reduction PBB.
29387         * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
29388         that have already been marked as PBB_IS_REDUCTION.
29389
29390 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
29391
29392         * graphite-scop-detection.c (same_close_phi_node): New.
29393         (remove_duplicate_close_phi): New.
29394         (make_close_phi_nodes_unique): New.
29395         (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
29396
29397 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
29398
29399         * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
29400         * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
29401         of both data references to be the same.
29402
29403 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
29404
29405         * graphite-dependences.c (build_lexicographical_constraint): Remove
29406         the gdim parameter.
29407         (build_lexicographical_constraint): Adjust call to
29408         ppl_powerset_is_empty.
29409         (dependence_polyhedron): Same.
29410         (graphite_legal_transform_dr): Same.
29411         (graphite_carried_dependence_level_k): Same.
29412         * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
29413         parameter.
29414         * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
29415
29416 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
29417
29418         * graphite-sese-to-poly.c
29419         (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
29420         (close_phi_written_to_memory): New.
29421         (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
29422         and unshare_expr.
29423
29424 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
29425
29426         * doc/install.texi: Update the expected version number of PPL to 0.11.
29427         * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
29428         #if PPL_VERSION_MINOR < 11.
29429
29430 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
29431
29432         * graphite-dependences.c: Include graphite-cloog-util.h.
29433         (new_poly_ddr): Inlined into dependence_polyhedron.
29434         (free_poly_ddr): Moved close by new_poly_ddr.
29435         (dependence_polyhedron_1): Renamed dependence_polyhedron.
29436         Early return NULL when ppl_powerset_is_empty returns true.
29437         (dependence_polyhedron): Renamed new_poly_ddr.  Call only once
29438         poly_drs_may_alias_p.  Avoid one call to ppl_powerset_is_empty.
29439         (graphite_legal_transform_dr): Call new_poly_ddr.
29440         (graphite_carried_dependence_level_k): Same.
29441         (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2.  Use new_poly_ddr.
29442         (dot_transformed_deps_stmt_1): Removed.
29443         (dot_deps_stmt_1): Call dot_deps_stmt_2.
29444         (dot_original_deps): Renamed dot_deps_2.  Call new_poly_ddr.
29445         (dot_deps_1): Call dot_deps_2.
29446         * Makefile.in (graphite-dependences.o): Add missing dependence on
29447         graphite-cloog-util.h.
29448
29449 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
29450
29451         * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
29452         (build_lexicographical_constraint): Same.
29453         (dependence_polyhedron_1): Same.
29454         (graphite_legal_transform_dr): Same.
29455         (graphite_carried_dependence_level_k): Same.
29456         * graphite-ppl.c (ppl_powerset_is_empty): New.
29457         * graphite-ppl.h (ppl_powerset_is_empty): Declared.
29458         * tree-data-ref.c (dump_data_reference): Print the basic block index.
29459
29460 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
29461
29462         * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
29463         the "a followed by b" relation and document it.
29464
29465 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
29466
29467         * graphite-dependences.c (build_lexicographical_constraint): Stop the
29468         iteration when the bag of constraints is empty.
29469
29470 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
29471
29472         * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
29473
29474 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
29475
29476         * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
29477         nest and two loop depths as parameters.
29478         (lst_try_interchange_loops): Call lst_interchange_profitable_p after
29479         lst_perfect_nestify.
29480
29481 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
29482
29483         * graphite-dependences.c (print_pddr): Call
29484         ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
29485
29486 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
29487
29488         * graphite-ppl.c (debug_gmp_value): New.
29489         * graphite-ppl.h (debug_gmp_value): Declared.
29490
29491 2011-01-25  Tobias Grosser  <grosser@fim.uni-passau.de>
29492
29493         * doc/install.texi: Document availability of cloog-0.16.
29494
29495 2011-01-25  Vladimir Kargov  <kargov@gmail.com>
29496
29497         * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
29498         invalid postdominance info.
29499
29500 2011-01-24  Jan Hubicka  <jh@suse.cz>
29501
29502         PR c/21659
29503         * doc/extend.texi (weak pragma): Drop claim that it must
29504         appear before definition.
29505         * varasm.c (merge_weak, declare_weak): Only sanity check
29506         that DECL is not output at a time it is declared weak.
29507
29508 2011-01-24  Kenneth Zadeck  <zadeck@naturalbridge.com>
29509
29510         * machmode.def: Fixed comments.
29511
29512 2011-01-24  Kai Tietz  <kai.tietz@onevision.com>
29513
29514         * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
29515
29516 2011-01-24  Paul Koning  <ni1d@arrl.net>
29517
29518         * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
29519         WORDS_BIG_ENDIAN.
29520
29521 2011-01-24  H.J. Lu  <hongjiu.lu@intel.com>
29522
29523         PR target/46519
29524         * config/i386/i386.c: Include sbitmap.h and fibheap.h.
29525         (block_info): Add scanned and prev.
29526         (move_or_delete_vzeroupper_2): Return if the basic block
29527         has been scanned and the upper 128bit state is unchanged
29528         from the last scan.
29529         (move_or_delete_vzeroupper_1): Return true if the exit
29530         state is changed.
29531         (move_or_delete_vzeroupper): Visit basic blocks using the
29532         work-list based algorithm based on vt_find_locations in
29533         var-tracking.c.
29534
29535         * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
29536
29537 2011-01-24  Nick Clifton  <nickc@redhat.com>
29538
29539         * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
29540         * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
29541         -mv850e1 to the assembler.  If -mv850e1 or -mv850es is specified
29542         then define __v850e1__.
29543         * doc/invoke.texi: Document -mv850es.
29544
29545 2011-01-24  Richard Henderson  <rth@redhat.com>
29546
29547         * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
29548         compound unordered comparisons.
29549         * config/rx/rx.c (rx_split_fp_compare): Remove.
29550         * config/rx/rx-protos.h: Update.
29551         * config/rx/rx.md (gcc_conds, rx_conds): Remove.
29552         (cbranchsf4): Don't call rx_split_fp_compare.
29553         (*cbranchsf4): Use rx_split_cbranch.
29554         (*cmpsf): Don't accept "i" constraint.
29555         (*conditional_branch): Only valid after reload.
29556         (cstoresf4): Merge expander with insn.  Don't call rx_split_fp_compare.
29557
29558 2011-01-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
29559
29560         PR target/47385
29561         * config/rs6000/altivec.md (vector constant splitters): Add
29562         support for creating vector single precision constants if -mvsx is
29563         used and we would create the constant using Altivec primitives.
29564
29565 2011-01-23  Bernd Schmidt  <bernds@codesourcery.com>
29566             Richard Sandiford  <rdsandiford@googlemail.com>
29567
29568         PR rtl-optimization/47166
29569         * reload1.c (emit_reload_insns): Disable the spill_reg_store
29570         mechanism for PRE_MODIFY and POST_MODIFY.
29571         (inc_for_reload): For PRE_MODIFY, return the insn that sets the
29572         reloadreg.
29573
29574 2011-01-23  Andreas Schwab  <schwab@linux-m68k.org>
29575
29576         * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
29577
29578 2011-01-22  Jan Hubicka  <jh@suse.cz>
29579
29580         PR lto/47333
29581         * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
29582
29583 2011-01-22  Jan Hubicka  <jh@suse.cz>
29584
29585         PR tree-optimization/43884
29586         PR lto/44334
29587         * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
29588         * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
29589
29590 2011-01-22  Anatoly Sokolov  <aesok@post.ru>
29591
29592         * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
29593         * config/s390/s390.c (s390_register_move_cost,
29594         s390_memory_move_cost): New.
29595         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
29596
29597 2011-01-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
29598
29599         PR middle-end/47401
29600         * except.c (sjlj_assign_call_site_values): Move setting the
29601         crtl->uses_eh_lsda flag to ...
29602         (sjlj_mark_call_sites): ... here.
29603         (sjlj_emit_function_enter): Support NULL dispatch label.
29604         (sjlj_build_landing_pads): In a function with no landing pads
29605         that still has must-not-throw regions, generate code to register
29606         a personality function with empty LSDA.
29607
29608 2011-01-21  Richard Henderson  <rth@redhat.com>
29609
29610         * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
29611
29612         * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
29613
29614         * compare-elim.c: New file.
29615         * Makefile.in (OBJS-common): Add it.
29616         (compare-elim.o): New.
29617         * common.opt (fcompare-elim): New.
29618         * opts.c (default_options_table): Add OPT_fcompare_elim.
29619         * tree-pass.h (pass_compare_elim_after_reload): New.
29620         * passes.c (init_optimization_passes): Add it.
29621         * recog.h: Protect against re-inclusion.
29622         * target.def (TARGET_FLAGS_REGNUM): New POD hook.
29623         * doc/invoke.texi (-fcompare-elim): Document it.
29624         * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
29625         * doc/tm.texi: Rebuild.
29626
29627 2011-01-22  Nick Clifton  <nickc@redhat.com>
29628
29629         * config/rx/rx.md (cstoresf4): Pass comparison operator to
29630         rx_split_fp_compare.
29631
29632 2011-01-22  Nick Clifton  <nickc@redhat.com>
29633
29634         * config/rx/rx.md (UNSPEC_CONST): New.
29635         (deallocate_and_return): Wrap the amount popped off the stack in
29636         an UNSPEC_CONST in order to stop it being rejected by
29637         -mmax-constant-size.
29638         (pop_and_return): Add a "(return)" rtx.
29639         (call): Drop the immediate operand.
29640         (call_internal): Likewise.
29641         (call_value): Likewise.
29642         (call_value_internal): Likewise.
29643         (sibcall_internal): Likewise.
29644         (sibcall_value_internal): Likewise.
29645         (sibcall): Likewise.  Generate an explicit call using
29646         sibcall_internal.
29647         (sibcall_value): Likewise.
29648         (mov<>): FAIL if a constant operand is not legitimate.
29649         (addsi3_unpsec): New pattern.
29650
29651         * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
29652         (ok_for_max_constant): New function.
29653         (gen_safe_add): New function.
29654         (rx_expand_prologue): Use gen_safe_add.
29655         (rx_expand_epilogue): Likewise.
29656         (rx_is_legitimate_constant): Use ok_for_max_constant.  Handle
29657         UNSPEC CONSTs.
29658
29659 2011-01-21  Jeff Law  <law@redhat.com>
29660
29661         PR tree-optimization/47053
29662         * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
29663         (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
29664         statements are deleted.
29665         (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP.  If NEED_EH_CLEANUP
29666         is nonempty, then purge dead edges and cleanup the CFG.
29667
29668 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
29669
29670         PR debug/47402
29671         Temporarily revert:
29672         2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
29673         PR debug/47106
29674         * tree-dfa.c (create_var_ann): Mark variable as used.
29675
29676 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
29677
29678         PR middle-end/45566
29679         * except.c (convert_to_eh_region_ranges): Emit queued no-region
29680         notes from other section in hot/cold partitioning even if
29681         last_action is -3.  Increment call_site_base.
29682
29683         PR rtl-optimization/47366
29684         * fwprop.c (forward_propagate_into): Return bool.  If
29685         any changes are made, -fnon-call-exceptions is used and
29686         REG_EH_REGION note is present, call purge_dead_edges
29687         and return true if it purged anything.
29688         (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
29689         any EH edges were purged.
29690
29691 2011-01-21  Jeff Law  <law@redhat.com>
29692
29693         PR rtl-optimization/41619
29694         * caller-save.c (setup_save_areas): Break out code to determine
29695         which hard regs are live across calls by examining the reload chains
29696         so that it is always used.
29697         Eliminate code which checked REG_N_CALLS_CROSSED.
29698
29699 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
29700
29701         PR tree-optimization/47355
29702         * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
29703         NOP has non-debug uses beyond PHIs in new_bb.
29704
29705 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
29706
29707         PR debug/47106
29708         * cfgexpand.c (account_used_vars_for_block): Only account vars
29709         that are annotated as used.
29710         (estimated_stack_frame_size): Don't set TREE_USED.
29711         * tree-dfa.c (create_var_ann): Mark variable as used.
29712
29713 2011-01-21  Richard Guenther  <rguenther@suse.de>
29714
29715         PR middle-end/47395
29716         * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
29717
29718 2011-01-21  Richard Guenther  <rguenther@suse.de>
29719
29720         PR tree-optimization/47365
29721         * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
29722         (vn_reference_lookup_pieces): Adjust.
29723         (vn_reference_lookup): Likewise.
29724         * tree-ssa-sccvn.c (vn_walk_kind): New static global.
29725         (vn_reference_lookup_3): Only look through kills if in
29726         VN_WALKREWRITE mode.
29727         (vn_reference_lookup_pieces): Adjust.
29728         (vn_reference_lookup): Likewise.
29729         (visit_reference_op_load): Likewise.
29730         (visit_reference_op_store): Likewise.
29731         * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
29732         (compute_avail): Likewise.
29733         (eliminate): Likewise.
29734
29735 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
29736
29737         * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
29738         DECL_IGNORED_P non-reg vars if they are used.
29739
29740         PR tree-optimization/47391
29741         * varpool.c (const_value_known_p): Return false if
29742         decl is volatile.
29743
29744 2011-01-21  Kai Tietz  <kai.tietz@onevision.com>
29745
29746         PR bootstrap/47215
29747         * config/i386/i386.c (ix86_local_alignment): Handle
29748         case for va_list_type_node is nil.
29749         (ix86_canonical_va_list_type): Likewise.
29750
29751 2011-01-21  Alan Modra  <amodra@gmail.com>
29752
29753         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
29754         builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
29755
29756 2011-01-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
29757
29758         * config/arm/arm.md (define_attr type): Rename f_load
29759         and f_store to f_fpa_load and f_fpa_store. Update.
29760         (write_conflict): Deal with rename fallout.
29761         (*push_fp_multi): Likewise.
29762         * config/arm/fpa.md (f_load): Use f_fpa_load.
29763         (f_store): Use f_fpa_store.
29764         (*movsf_fpa): Likewise.
29765         (*movdf_fpa): Likewise.
29766         (*movxf_fpa): Likewise.
29767         (*thumb2_movsf_fpa): Likewise.
29768         (*thumb2_movdf_fpa): Likewise.
29769         (*thumb2_movxf_fpa): Likewise.
29770         * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
29771         f_loadd and f_stored.
29772         (*thumb2_movdi_vfp): Likewise.
29773         (*thumb2_movsf_vfp): Fix attribute to f_loads.
29774         (*thumb2_movsi_vfp): Likewise.
29775         * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
29776         Use f_loads instead of f_load.
29777         * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
29778
29779 2011-01-20  Anatoly Sokolov  <aesok@post.ru>
29780
29781         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
29782         * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
29783         * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
29784         (xtensa_mode_dependent_address_p): New function.
29785         (constantpool_address_p): Make static. Change return type to bool.
29786         Change argument type to const_rtx. Use CONST_INT_P predicate.
29787
29788 2011-01-20  Alexandre Oliva  <aoliva@redhat.com>
29789
29790         PR debug/46583
29791         * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
29792
29793 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
29794
29795         PR debug/47283
29796         * cfgexpand.c (expand_debug_expr): Instead of generating
29797         (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
29798         etc. handling.
29799
29800 2011-01-20  Richard Guenther  <rguenther@suse.de>
29801
29802         PR middle-end/47370
29803         * tree-inline.c (remap_gimple_op_r): Recurse manually for
29804         the pointer operand of MEM_REFs.
29805
29806 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
29807
29808         PR tree-optimization/46130
29809         * ipa-split.c (consider_split): If return_bb contains non-virtual
29810         PHIs other than for retval or if split_function would not adjust it,
29811         refuse to split.
29812
29813 2011-01-20  Richard Guenther  <rguenther@suse.de>
29814
29815         PR tree-optimization/47167
29816         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
29817         Revert previous change, only avoid enumeral type changes.
29818
29819 2011-01-19  Mike Stump  <mikestump@comcast.net>
29820
29821         * doc/tm.texi.in (BRANCH_COST): Englishify.
29822         * doc/tm.texi (BRANCH_COST): Likewise.
29823
29824 2011-01-19  Dodji Seketeli  <dodji@redhat.com>
29825
29826         PR c++/47291
29827         * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
29828         (gen_scheduled_generic_parms_dies): New functions.
29829         (gen_struct_or_union_type_die): Schedule template parameters DIEs
29830         generation for the end of CU compilation.
29831         (dwarf2out_finish): Generate template parameters DIEs here.
29832
29833 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
29834
29835         PR debug/46240
29836         * tree-into-ssa.c (maybe_register_def): Do not attempt to add
29837         debug bind stmt on merge edges.
29838
29839 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
29840
29841         PR debug/47079
29842         PR debug/46724
29843         * function.c (instantiate_expr): Instantiate incoming rtl of
29844         implicit arguments, and recurse on VALUE_EXPRs.
29845         (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
29846         * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
29847
29848 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
29849
29850         * c-parser.c (c_parser_for_statement): Initialize
29851         collection_expression.
29852
29853 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
29854
29855         * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
29856
29857 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
29858
29859         * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
29860         (LINK_SHLIB_SPEC): Don't use %(link_path).
29861         (SUBTARGET_EXTRA_SPECS): Remove link_path.
29862
29863 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
29864
29865         * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
29866         (NO_SHARED_LIB_SUPPORT): Remove.
29867         (LINK_SHLIB_SPEC): Remove one conditional definition.
29868
29869 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
29870
29871         * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
29872         %{call_shared}.
29873         * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
29874         * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
29875         * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
29876         %{call_shared} and conditionals on these options not being passed.
29877         * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
29878         %{call_shared}.
29879
29880 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
29881
29882         * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
29883         simplify.
29884
29885         * ipa-split.c: Spelling fixes.
29886
29887 2011-01-19  Richard Henderson  <rth@redhat.com>
29888
29889         * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
29890         (*mulsi3): Likewise.
29891
29892         * longlong.h [__mn10300__] (count_leading_zeros): New.
29893         [__mn10300__] (umul_ppmm, smul_ppmm): New.
29894         [__mn10300__] (add_ssaaaa, subddmmss): New.
29895         [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
29896         [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
29897
29898 2011-01-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
29899
29900         * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
29901
29902 2011-01-19  Richard Henderson  <rth@redhat.com>
29903
29904         * config/mn10300/mn10300.md (addsi3_flags): New.
29905         (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
29906         (subsi3_flags, subc_internal, subdi3): New.
29907         (subdi3_internal, *subdi3_degenerate): New.
29908         * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
29909
29910         * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
29911         (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
29912         (mn10300_expand_epilogue): Use it.  Compute REG_SAVE_BYTES once.
29913         * config/mn10300/mn10300-protos.h: Update.
29914         * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
29915         (return_ret): Likewise.  Rename from return_internal_regs.
29916         (return_internal): Remove.
29917
29918         * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
29919         (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
29920         (mn10300_legitimate_constant_p): Likewise.
29921         (mn10300_can_use_return_insn): Use mn10300_initial_offset.
29922         (mn10300_frame_size): New.
29923         (mn10300_expand_prologue): Use it.
29924         (mn10300_expand_epilogue): Likewise.
29925         (mn10300_initial_offset): Likewise.
29926         * config/mn10300/mn10300-protos.h: Update.
29927         * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
29928         * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
29929         (prologue, epilogue, return_internal): Tidy output code.
29930         (mn10300_store_multiple_operation, return): Likewise.
29931         (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
29932         (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
29933         (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
29934         (load_pic, am33_load_pic): New.
29935         (mn10300_load_pic0, mn10300_load_pic1): New.
29936
29937         * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
29938         * config/mn10300/mn10300.c (CC_FLAG_Z): New.
29939         (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
29940         (cc_flags_for_mode, cc_flags_for_code): New.
29941         (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
29942         overflow flag is not valid.  Validate that the flags we need
29943         for the comparison are valid.
29944         (mn10300_output_cmp): Remove.
29945         (mn10300_output_add): New.
29946         (mn10300_select_cc_mode): Use cc_flags_for_code.
29947         (mn10300_split_cbranch): New.
29948         (mn10300_match_ccmode): New.
29949         (mn10300_split_and_operand_count): New.
29950         * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
29951         to the function.
29952         * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
29953         (addsi3): ... here.  Use mn10300_output_add.
29954         (*addsi3_flags): New.
29955         (*am33_subsi3, *mn10300_subsi3): Merge...
29956         (subsi3): ... here.  Use attribute isa.
29957         (*subsi3_flags): New.
29958         (negsi2): Rewrite from expander to insn_and_split.  Use NOT+INC
29959         when possible.
29960         (*am33_andsi3, *mn10300_andsi3): Merge...
29961         (andsi3): ... here.
29962         (*andsi3_flags): New.
29963         (andsi3 splitters): New.
29964         (*am33_iorsi3, *mn10300_iorsi3): Merge...
29965         (iorsi3): ... here.
29966         (*iorsi3_flags): New.
29967         (*am33_xorsi3, *mn10300_xorsi3): Merge...
29968         (xorsi3): ... here.
29969         (*xorsi3_flags): New.
29970         (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
29971         (one_cmplsi2): ... here.
29972         (*one_cmplsi2_flags): New.
29973         (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload.  Use "r"
29974         instead of "dax" in constraints.  Use mn10300_split_cbranch.
29975         (*cmpsi): Rename from cmpsi.  Do not use mn10300_output_cmp.  Do not
29976         use matching constraints to eliminate a self-comparison.
29977         (*integer_conditional_branch): Rename from integer_conditional_branch.
29978         Use int_mode_flags to match CC_REG.
29979         (*cbranchsi4_btst, *btstsi): New.
29980         (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload.  Use
29981         mn10300_split_cbranch.
29982         (*am33_cmpsf): Rename from am33_cmpsf.
29983         (*float_conditional_branch): Rename from float_conditional_branch.
29984         (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
29985         (zero_extendqisi2): ... here.
29986         (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
29987         (zero_extendhisi2): ... here.
29988         (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
29989         (extendqisi2): ... here.
29990         (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
29991         (extendhisi2): ... here.
29992         (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
29993         (ashlsi3): ... here.
29994         (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
29995         (lshrsi3): ... here.
29996         (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
29997         (ashrsi3): ... here.
29998         (consecutive add peephole): Remove.
29999         * config/mn10300/predicates.md (label_ref_operand): New.
30000         (int_mode_flags): New.
30001         (CCZN_comparison_operator): New.
30002
30003         * config/mn10300/mn10300.md (UNSPEC_EXT): New.
30004         (throughput_42_latency_43): New reservation.
30005         (mulsidi3, umulsidi3): New expanders.
30006         (mulsidi3_internal): Rewrite from old mulsidi3 pattern.  Expose
30007         the MDR register to allocation; separately allocate the low and
30008         high parts of the DImode result.
30009         (umulsidi3_internal): Similarly.
30010         (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
30011         (*mulsi3): ... here.  Clobber MDR as a scratch as necessary.
30012         (udivsi3, umodsi3): Remove.
30013         (udivmodsi4, divmodsi4): New expanders.
30014         (*udivmodsi4): Rename from udivmodsi4.  Expose MDR properly.
30015         (*divmodsi4): Simiarly.
30016         (ext_internal): New.
30017
30018         * config/mn10300/constraints.md ("z"): New constraint.
30019         * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
30020         (FIXED_REGISTERS): Don't fix MDR.
30021         (CALL_USED_REGSITERS): Reformat nicely.
30022         (REG_ALLOC_ORDER): Add MDR.
30023         (enum regclass): Add MDR_REGS.
30024         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
30025         (IRA_COVER_CLASSES): Add MDR_REGS.
30026         (REGNO_REG_CLASS): Handle MDR_REG.
30027         * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
30028         (mn10300_register_move_cost): Likewise.
30029         * config/mn10300/mn10300.md (MDR_REG): New.
30030         (*movsi_internal): Handle moves to/from MDR_REGS.
30031
30032         * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
30033         POST_MODIFY.
30034         (mn10300_secondary_reload): Tidy combination reload classes.
30035         (mn10300_legitimate_address_p): Allow post-modify and reg+reg
30036         addresses for AM33.  Allow symbolic offsets for reg+imm.
30037         (mn10300_regno_in_class_p): New.
30038         (mn10300_legitimize_reload_address): New.
30039         * config/mn10300/mn10300.h (enum reg_class): Remove
30040         DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
30041         SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS.  Add
30042         SP_OR_GENERAL_REGS.
30043         (REG_CLASS_NAMES): Update to match.
30044         (REG_CLASS_CONTENTS): Likewise.
30045         (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
30046         (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
30047         (REGNO_IN_RANGE_P): Remove.
30048         (REGNO_DATA_P): Use mn10300_regno_in_class_p.
30049         (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
30050         (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
30051         (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
30052         (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
30053         (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
30054         (REGNO_GENERAL_P): New.
30055         (HAVE_POST_MODIFY_DISP): New.
30056         (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
30057         (LEGITIMIZE_RELOAD_ADDRESS): New.
30058         * config/mn10300/mn10300-protos.h: Update.
30059
30060         * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
30061         DATA_REGS for AM33 stack-pointer destination.
30062         (mn10300_preferred_output_reload_class): Likewise.
30063         (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
30064         into a form appropriate for ...
30065         (TARGET_SECONDARY_RELOAD): New.
30066         * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
30067         * config/mn10300/mn10300-protos.h: Update.
30068         * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
30069         reload_insi; use the "A" constraint for the scratch; handle AM33
30070         moves of sp to non-address registers.
30071
30072         * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
30073         (*movqi_internal): ... here.
30074         (*am33_movhi, *mn10300_movhi): Merge into...
30075         (*movhi_internal): ... here.
30076         (*movsi_internal): Use "r" instead of "dax" in constraints.  Use "A"
30077         as the source/destination of moves from/to SP.
30078         (movsf): Only allow for AM33-2.
30079         (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
30080         any integer constant constraint.  Only allow for AM33-2.  Tidy
30081         all of the alternative outputs.
30082         (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
30083         (udivmodsi4): Delete expander and promote *udivmodsi4.  Disallow
30084         for MN103.
30085         (udivsi3, umodsi3): New patterns for MN103 only.
30086
30087 2011-01-19  Joern Rennecke  <amylaar@spamcop.net>
30088
30089         * doc/tm.texi.in: Spell out that a lack of register class unions
30090         can lead to ICEs.
30091         * doc/tm.texi: Regenerate.
30092
30093 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
30094
30095         PR rtl-optimization/47337
30096         * dce.c (check_argument_store): New function.
30097         (find_call_stack_args): Ignore debug insns.  Use check_argument_store.
30098
30099         PR tree-optimization/47290
30100         * tree-eh.c (infinite_empty_loop_p): New function.
30101         (cleanup_empty_eh): Use it.
30102
30103 2011-01-18  Steve Ellcey  <sje@cup.hp.com>
30104
30105         PR target/46997
30106         * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
30107         (a64_expand_widen_sum): Ditto.
30108         * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
30109         (vec_extract_evenodd_help): Ditto.
30110         (vec_extract_evenv4hi): Ditto.
30111         (vec_extract_oddv4hi): Ditto.
30112         (vec_extract_evenv2si): Ditto.
30113         (vec_extract_oddv2si): Ditto.
30114         (vec_extract_evenv2sf): Ditto.
30115         (vec_extract_oddv2sf): Ditto.
30116         (vec_pack_trunc_v4hi: Ditto.
30117         (vec_pack_trunc_v2si): Ditto.
30118         (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
30119         (vec_interleave_highv8qi): Ditto.
30120         (mix1_r): Ditto.
30121         (vec_extract_oddv8qi): Ditto.
30122         (vec_interleave_lowv4hi): Ditto.
30123         (vec_interleave_highv4hi): Ditto.
30124         (vec_interleave_lowv2si): Ditto.
30125         (vec_interleave_highv2si): Ditto.
30126
30127 2011-01-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
30128
30129         * doc/extend.texi: Mention __float128 support on hppa HP-UX.
30130         * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
30131         * config/pa/pa.c (pa_expand_builtin): New.  Include "langhooks.h".
30132         (pa_c_mode_for_suffix): New.
30133         (TARGET_EXPAND_BUILTIN): Define.
30134         (TARGET_C_MODE_FOR_SUFFIX): Define.
30135         (pa_builtins): Define.
30136         (pa_init_builtins): Register __float128 type and init new support
30137         builtins.
30138         * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
30139         * config/pa/quadlib.c (_U_Qfcopysign): New.
30140
30141 2011-01-18  Eric Botcazou  <ebotcazou@adacore.com>
30142
30143         PR middle-end/46894
30144         * explow.c (allocate_dynamic_stack_space): Do not assume more than
30145         BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
30146         are defined.
30147
30148 2011-01-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
30149
30150         PR tree-optimization/47179
30151         * config/spu/spu.c (spu_ref_may_alias_errno): New function.
30152         (TARGET_REF_MAY_ALIAS_ERRNO): Define.
30153
30154 2011-01-18  Richard Guenther  <rguenther@suse.de>
30155
30156         PR rtl-optimization/47216
30157         * emit-rtl.c: Include tree-flow.h.
30158         (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
30159         of replicating it with different semantics.
30160         * Makefile.in (emit-rtl.o): Adjust.
30161
30162 2011-01-18  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
30163
30164         * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
30165         (cortex_a9_dp): Handle neon types correctly.
30166
30167 2011-01-18  Jakub Jelinek  <jakub@redhat.com>
30168
30169         PR rtl-optimization/47299
30170         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
30171         subtarget.  Use normal multiplication if both operands are constants.
30172         * expmed.c (expand_widening_mult): Don't try to optimize constant
30173         multiplication if op0 has VOIDmode.  Convert op1 constant to mode
30174         before using it.
30175
30176 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30177
30178         * doc/lto.texi (LTO): Ensure two spaces after period.  Fix
30179         spacing after 'e.g.', typos, comma, hyphenation.
30180
30181 2011-01-17  Richard Henderson  <rth@redhat.com>
30182
30183         * config/rx/predicates.md (rx_constshift_operand): Use match_test.
30184         (rx_restricted_mem_operand): New.
30185         (rx_shift_operand): Use register_operand.
30186         (rx_source_operand, rx_compare_operand): Likewise.
30187         * config/rx/rx.md (addsi3_flags): New expander.
30188         (adddi3): Rewrite as expander.
30189         (adc_internal, *adc_flags, adddi3_internal): New patterns.
30190         (subsi3_flags): New expander.
30191         (subdi3): Rewrite as expander.
30192         (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
30193
30194         * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
30195         (rx_init_builtins): Remove sat builtin.
30196         (rx_expand_builtin): Likewise.
30197         * config/rx/rx.md (ssaddsi3): New.
30198         (*sat): Rename from sat.  Represent the CC_REG input.
30199
30200         * config/rx/predicates.md (rshift_operator): New.
30201         * config/rx/rx.c (rx_expand_insv): Remove.
30202         * config/rx/rx-protos.h: Update.
30203         * config/rx/rx.md (*bitset): Rename from bitset.  Swap the ashift
30204         operand to the canonical position.
30205         (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
30206         (*bitclr, *bitclr_in_memory): Similarly.
30207         (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
30208         (insv): Retain the zero_extract in the expansion.
30209
30210         * config/rx/rx.md (bswapsi2): Use = not + for output reload.
30211         (bswaphi2, bitinvert, revw): Likewise.
30212
30213         * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
30214         (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
30215         * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
30216         (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
30217         (bitset, bitset_in_memory): Likewise.
30218         (bitinvert, bitinvert_in_memory): Likewise.
30219         (bitclr, bitclr_in_memory): Likewise.
30220         (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
30221         (rx_strend, rx_cmpstrn): Likewise.
30222         (rx_setmem): Likewise.  Make the source BLKmode to match the dest.
30223         (bitop peep2 patterns): Remove.
30224
30225         * config/rx/rx.c (rx_match_ccmode): New.
30226         * config/rx/rx-protos.h: Update.
30227         * config/rx/rx.md (abssi2): Clobber, don't set flags.
30228         (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
30229         (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
30230         (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
30231         (fix_truncsfsi2, floatsisf2): Likewise.
30232         (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
30233         (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
30234         (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
30235         (*subsi3_flags, *xorsi3_flags): New.
30236
30237         * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
30238
30239         * config/rx/rx.c (rx_print_operand): Remove workaround for
30240         unsplit comparison operations.
30241
30242         * config/rx/rx.md (movsicc): Split after reload.
30243         (*movsicc): Merge *movsieq and *movsine via match_operator.
30244         (*stcc): New pattern.
30245
30246         * config/rx/rx.c (rx_float_compare_mode): Remove.
30247         * config/rx/rx.h (rx_float_compare_mode): Remove.
30248         * config/rx/rx.md (cstoresi4): Split after reload.
30249         (*sccc): New pattern.
30250
30251         * config/rx/predicates.md (label_ref_operand): New.
30252         (rx_z_comparison_operator): New.
30253         (rx_zs_comparison_operator): New.
30254         (rx_fp_comparison_operator): New.
30255         * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
30256         Validate that the flags are set properly for the comparison.
30257         (rx_gen_cond_branch_template): Remove.
30258         (rx_cc_modes_compatible): Remove.
30259         (mode_from_flags): New.
30260         (flags_from_code): Rename from flags_needed_for_conditional.
30261         (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
30262         (rx_select_cc_mode): Likewise.
30263         (rx_split_fp_compare): New.
30264         (rx_split_cbranch): New.
30265         * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
30266         (*cbranchsi4): Use match_operator and rx_split_cbranch.
30267         (*cbranchsf4): Similarly.
30268         (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>.  Use
30269         match_operator and rx_split_cbranch.
30270         (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
30271         tstbranchsi4m_ne.  Use match_operator and rx_split_cbranch.
30272         (*cmpsi): Rename from cmpsi.
30273         (*tstsi): Rename from tstsi.
30274         (*cmpsf): Rename from cmpsf; use CC_Fmode.
30275         (*conditional_branch): Rename from conditional_branch.
30276         (*reveresed_conditional_branch): Remove.
30277         (b<code>): Remove expander.
30278         * config/rx/rx-protos.h: Update.
30279
30280         * config/rx/rx.c (rx_compare_redundant): Remove.
30281         * config/rx/rx.md (cmpsi): Don't use it.
30282         * config/rx/rx-protos.h: Update.
30283
30284         * config/rx/rx-modes.def (CC_F): New mode.
30285         * config/rx/rx.c (rx_select_cc_mode): New.
30286         * config/rx/rx.h (SELECT_CC_MODE): Use it.
30287         * config/rx/rx-protos.h: Update.
30288
30289 2011-01-17  Richard Henderson  <rth@redhat.com>
30290
30291         * except.c (dump_eh_tree): Fix stray ; after for statement.
30292
30293 2011-01-17  Richard Guenther  <rguenther@suse.de>
30294
30295         PR tree-optimization/47313
30296         * tree-inline.c (tree_function_versioning): Move DECL_RESULT
30297         handling before copying the body.  Properly deal with
30298         by-reference result in SSA form.
30299
30300 2011-01-17  Ian Lance Taylor  <iant@google.com>
30301
30302         PR target/47219
30303         * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
30304         (struct_value_alias_set): Don't define.
30305         (sparc_option_override): Don't set sparc_sr_alias_set and
30306         struct_value_alias_set.
30307         (save_or_restore_regs): Use gen_frame_mem rather than calling
30308         set_mem_alias_set.
30309         (sparc_struct_value_rtx): Likewise.
30310
30311 2011-01-17  H.J. Lu  <hongjiu.lu@intel.com>
30312
30313         PR target/47318
30314         * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
30315         (_mm_maskstore_pd): Likewise.
30316         (_mm_maskload_ps): Likewise.
30317         (_mm_maskstore_ps): Likewise.
30318         (_mm256_maskload_pd): Change mask to __m256i.
30319         (_mm256_maskstore_pd): Likewise.
30320         (_mm256_maskload_ps): Likewise.
30321         (_mm256_maskstore_ps): Likewise.
30322
30323         * config/i386/i386-builtin-types.def: Updated.
30324         (ix86_expand_special_args_builtin): Likewise.
30325
30326         * config/i386/i386.c (bdesc_special_args): Update
30327         __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
30328         __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
30329         __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
30330         __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
30331
30332         * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
30333         Use <avxpermvecmode> on mask register.
30334         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
30335
30336 2011-01-17  Olivier Hainque  <hainque@adacore.com>
30337             Michael Haubenwallner  <michael.haubenwallner@salomon.at>
30338             Eric Botcazou  <ebotcazou@adacore.com>
30339
30340         PR target/46655
30341         * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
30342         if <= USHRT_MAX in 32-bit mode.
30343
30344 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30345
30346         * doc/install.texi (Configuration, Specific): Wrap long
30347         lines in examples.  Allow line wrapping in long options
30348         and URLs where beneficial for PDF output.
30349
30350 2011-01-16  Richard Sandiford  <rdsandiford@googlemail.com>
30351
30352         * config/mips/mips.c (mips_classify_symbol): Don't return
30353         SYMBOL_PC_RELATIVE for nonlocal labels.
30354
30355 2011-01-15  Eric Botcazou  <ebotcazou@adacore.com>
30356
30357         * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
30358
30359 2011-01-15  Jan Hubicka  <jh@suse.cz>
30360
30361         PR tree-optimization/47276
30362         * ipa.c (function_and_variable_visibility): Do not try to mark alias
30363         declarations as needed.
30364
30365 2011-01-15  Martin Jambor  <mjambor@suse.cz>
30366
30367         * common.opt (fdevirtualize): New flag.
30368         * doc/invoke.texi (Option Summary): Document it.
30369         * opts.c (default_options_table): Add devirtualize flag.
30370         * ipa-prop.c (detect_type_change): Return immediately if
30371         devirtualize flag is not set.
30372         (detect_type_change_ssa): Likewise.
30373         (compute_known_type_jump_func): Likewise.
30374         (ipa_analyze_virtual_call_uses): Likewise.
30375
30376 2011-01-14  Martin Jambor  <mjambor@suse.cz>
30377
30378         PR tree-optimization/45934
30379         PR tree-optimization/46302
30380         * ipa-prop.c (type_change_info): New type.
30381         (stmt_may_be_vtbl_ptr_store): New function.
30382         (check_stmt_for_type_change): Likewise.
30383         (detect_type_change): Likewise.
30384         (detect_type_change_ssa): Likewise.
30385         (compute_complex_assign_jump_func): Check for dynamic type change.
30386         (compute_complex_ancestor_jump_func): Likewise.
30387         (compute_known_type_jump_func): Likewise.
30388         (compute_scalar_jump_functions): Likewise.
30389         (ipa_analyze_virtual_call_uses): Likewise.
30390         (ipa_analyze_node): Push and pop cfun, set current_function_decl.
30391
30392 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
30393
30394         * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
30395         * config/i386/i386.opt (msse5): New Alias.
30396
30397 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
30398
30399         * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
30400         * config/sparc/linux64.h (CC1_SPEC): Likewise.
30401         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
30402         * config/sparc/sparc.h (CC1_SPEC): Likewise.
30403
30404 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
30405
30406         * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
30407         -mcpu options.
30408         * config/sparc/linux64.h (CC1_SPEC): Likewise.
30409         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
30410         * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
30411         * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
30412         Likewise.
30413         * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
30414
30415 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
30416
30417         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
30418
30419 2011-01-14  Mike Stump  <mikestump@comcast.net>
30420
30421         * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
30422         * config/fr30/fr30.md: Likweise
30423         (movsi_push): Likewise.
30424         (movsi_pop): Likewise.
30425         (enter_func): Likewise.
30426         * config/moxie/moxie.md (movsi_push): Likewise.
30427         (movsi_pop): Likewise.
30428
30429 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
30430
30431         * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
30432         %{no_archive} %{exact_version}.
30433         * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
30434         * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
30435         %{no_archive} %{exact_version}.
30436         * config/mips/openbsd.h (LINK_SPEC): Likewise.
30437         * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
30438         * config/mips/vxworks.h: Likewise.
30439
30440 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
30441
30442         * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
30443
30444 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
30445
30446         * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
30447         ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
30448
30449 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
30450
30451         * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
30452         -nodefaultlib.
30453
30454 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
30455
30456         * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
30457         for mcpu not cpu.
30458         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
30459         CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
30460         not cpu.
30461         (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
30462         Don't handle -shlib.
30463
30464 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
30465
30466         * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
30467         (CC1_SPEC): Don't handle -profile.
30468
30469 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
30470
30471         * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
30472         * config/mips/mips.h (CC1_SPEC): Likewise.
30473
30474 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
30475
30476         * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
30477         * config/mips/mips.h (CC1_SPEC): Likewise.
30478
30479 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
30480
30481         * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
30482         * config/m32r/linux.h (LINK_SPEC): Likewise.
30483         * config/mips/linux.h (LINK_SPEC): Likewise.
30484         * config/mips/linux64.h (LINK_SPEC): Likewise.
30485         * config/sparc/linux.h (LINK_SPEC): Likewise.
30486         * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
30487         LINK_SPEC): Likewise.
30488         * config/xtensa/linux.h (LINK_SPEC): Likewise.
30489
30490 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
30491
30492         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
30493         %{version:-v}.
30494         * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
30495
30496 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
30497
30498         * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
30499         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
30500
30501 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
30502
30503         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
30504
30505 2011-01-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30506
30507         * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
30508         supports -Bstatic/-Bdynamic.
30509         * configure: Regenerate.
30510
30511 2011-01-14  Jan Hubicka  <jh@suse.cz>
30512             Jack Howarth  <howarth@bromo.med.uc.edu>
30513
30514         PR target/46037
30515         * config/darwin.c (darwin_override_options): Honor flag_gtoggle
30516         when checking debug_info_level. Test write_symbols instead of
30517         debug_hooks->var_location when setting flag_var_tracking_uninit.
30518
30519 2011-01-14  Richard Guenther  <rguenther@suse.de>
30520
30521         PR tree-optimization/47179
30522         * target.def (ref_may_alias_errno): New target hook.
30523         * targhooks.h (default_ref_may_alias_errno): Declare.
30524         * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
30525         (default_ref_may_alias_errno): New function.
30526         * target.h (struct ao_ref_s): Declare.
30527         * tree-ssa-alias.c: Include target.h.
30528         (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
30529         * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
30530         (targhooks.o): Likewise.
30531         * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
30532         * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
30533
30534 2011-01-14  Richard Guenther  <rguenther@suse.de>
30535
30536         * tree-ssa-structalias.c  (new_var_info): Use DECL_HARD_REGISTER.
30537
30538 2011-01-14  Richard Guenther  <rguenther@suse.de>
30539
30540         PR tree-optimization/47280
30541         * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
30542         return CFG changes.
30543         (tree_ssa_forward_propagate_single_use_vars): Deal with
30544         CFG changes from associate_plusminus.
30545
30546 2011-01-14  Richard Guenther  <rguenther@suse.de>
30547
30548         PR middle-end/47281
30549         Revert
30550         2011-01-11  Richard Guenther  <rguenther@suse.de>
30551
30552         PR tree-optimization/46076
30553         * tree-ssa.c (useless_type_conversion_p): Conversions from
30554         unprototyped to empty argument list function types are useless.
30555
30556 2011-01-14  Richard Guenther  <rguenther@suse.de>
30557
30558         PR tree-optimization/47286
30559         * tree-ssa-structalias.c (new_var_info): Register variables are global.
30560
30561 2011-01-14  Martin Jambor  <mjambor@suse.cz>
30562
30563         PR middle-end/46823
30564         * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
30565
30566 2011-01-13  Anatoly Sokolov  <aesok@post.ru>
30567
30568         * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
30569         LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
30570         * config/xtensa/xtensa.c (xtensa_libcall_value,
30571         xtensa_function_value_regno_p): New functions.
30572         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
30573
30574 2011-01-13  Kai Tietz  <kai.tietz@onevision.com>
30575
30576         PR c++/47213
30577         * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
30578         PE specific hook.
30579         * config/i386/i386-protos.h (i386_pe_assemble_visibility):
30580         New function prototype.
30581         * config/i386/winnt.c (i386_pe_assemble_visibility):
30582         Warn only if attribute was specified by user.
30583
30584 2011-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
30585
30586         PR target/47251
30587         * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
30588         floating point.
30589         (floatunsdidf2_fcfidu): Ditto.
30590
30591 2011-01-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
30592
30593         * config/s390/s390.c (print_operand_address): Replace 'error' with
30594         'output_operand_lossage'.
30595         (print_operand): Likewise.
30596
30597 2011-01-13  Jeff Law  <law@redhat.com>
30598
30599         PR rtl-optimization/39077
30600         * doc/invoke.texi (max-gcse-insertion-ratio): Document.
30601         * params.h (MAX_GCSE_INSERTION_RATIO): Define.
30602         * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
30603         * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
30604         * gcse.c (prune_insertions_deletions): New function.
30605         (compute_pre_data): Use it.
30606
30607 2011-01-13  Dodji Seketeli  <dodji@redhat.com>
30608
30609         PR debug/PR46973
30610         * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
30611         static function.
30612         (prune_unused_types_mark): Use it.
30613
30614 2011-01-13  Andrey Belevantsev  <abel@ispras.ru>
30615
30616         PR rtl-optimization/45352
30617         * sel-sched.c: Update copyright years.
30618         (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
30619         in the advancing loop when we have issued issue_rate insns.
30620
30621 2011-01-12  Richard Henderson  <rth@redhat.com>
30622
30623         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
30624         (TARGET_MD_ASM_CLOBBERS): New.
30625
30626         * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
30627         (TARGET_DELEGITIMIZE_ADDRESS): New.
30628
30629         * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
30630         (clzsi2, *bsch): New patterns.
30631
30632         * config/mn10300/mn10300.md (INT): New mode iterator.
30633         (*mov<INT>_clr): New pattern, and peep2 to generate it.
30634
30635         * config/mn10300/mn10300.c (mn10300_option_override): Force enable
30636         flag_split_wide_types.
30637
30638         * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
30639         (mn10300_trampoline_init): Rewrite without a template, an immediate
30640         load and a direct branch.
30641         * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
30642
30643 2011-01-12  Anatoly Sokolov  <aesok@post.ru>
30644
30645         * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
30646         * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
30647         * config/s390/s390.c (s390_output_addr_const_extra): Make static.
30648         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
30649
30650 2011-01-12  Kai Tietz  <kai.tietz@onevision.com>
30651
30652         PR debug/47209
30653         * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
30654         of type.
30655
30656 2011-01-12  Jan Hubicka  <jh@suse.cz>
30657
30658         PR driver/47244
30659         * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
30660         (PLUGIN_COND_CLOSE): New macro.
30661         (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
30662
30663 2011-01-12  Richard Guenther  <rguenther@suse.de>
30664
30665         PR lto/47259
30666         * lto-streamer-out.c (output_gimple_stmt): Do not wrap
30667         register variables in a MEM_REF.
30668
30669 2011-01-12  Joseph Myers  <joseph@codesourcery.com>
30670
30671         * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
30672         crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
30673         hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
30674         i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
30675         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
30676         x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
30677         ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
30678         m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
30679         mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
30680         s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
30681         sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
30682         am33_2.0-*-linux*): Use gnu-user.h before linux.h.
30683         * config/gnu-user.h: New.  Copied from linux.h.
30684         (LINUX_TARGET_STARTFILE_SPEC): Rename to
30685         GNU_USER_TARGET_STARTFILE_SPEC.
30686         (LINUX_TARGET_ENDFILE_SPEC): Rename to
30687         GNU_USER_TARGET_ENDFILE_SPEC.
30688         (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
30689         (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
30690         (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
30691         LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
30692         CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
30693         UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
30694         BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
30695         BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
30696         LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
30697         TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
30698         * config/arm/linux-eabi.h (CC1_SPEC): Use
30699         GNU_USER_TARGET_CC1_SPEC.
30700         (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
30701         (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
30702         (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
30703         * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
30704         LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
30705         LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
30706         CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
30707         LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
30708
30709 2011-01-12  Richard Guenther  <rguenther@suse.de>
30710
30711         PR other/46946
30712         * doc/invoke.texi (ffast-math): Document it is turned on
30713         with -Ofast.
30714
30715 2011-01-12  Jan Hubicka  <jh@suse.cz>
30716
30717         PR tree-optimization/47233
30718         * opts.c (common_handle_option): Disable ipa-reference with profile
30719         feedback.
30720
30721 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
30722
30723         * c-parser.c (c_parser_objc_at_property_declaration): Improved
30724         error message.
30725
30726 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
30727
30728         * c-parser.c (c_lex_one_token): Updated and reindented some
30729         comments.  No changes in code.
30730
30731 2011-01-11  Ian Lance Taylor  <iant@google.com>
30732
30733         * godump.c (go_output_var): Don't output the variable if there is
30734         already a type with the same name.
30735
30736 2011-01-11  Ian Lance Taylor  <iant@google.com>
30737
30738         * godump.c (go_format_type): Don't generate float80.
30739
30740 2011-01-11  Richard Henderson  <rth@redhat.com>
30741
30742         * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
30743         declaration.  Rewrite for both speed and size.
30744         (mn10300_address_cost_1): Remove.
30745         (mn10300_register_move_cost): New.
30746         (mn10300_memory_move_cost): New.
30747         (mn10300_rtx_costs): Rewrite for both speed and size.  Don't handle
30748         ZERO_EXTRACT.  Do handle UNSPEC, arithmetic, logicals, compare,
30749         extensions, shifts, BSWAP, CLZ.
30750         (mn10300_wide_const_load_uses_clr): Remove.
30751         (TARGET_REGISTER_MOVE_COST): New.
30752         (TARGET_MEMORY_MOVE_COST): New.
30753         * config/mn10300/mn10300-protos.h: Update.
30754         * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
30755
30756         * config/mn10300/constraints.md ("R", "T"): Remove constraints.
30757         * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
30758         * config/mn10300/mn10300-protos.h: Update.
30759         * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
30760         (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
30761         (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
30762         (*test_int_bitfield, *test_byte_bitfield): Remove.
30763         (*bit_test, *subreg_bit_test): Remove.
30764         * config/mn10300/predicates.md (const_8bit_operand): Remove.
30765
30766         * config/mn10300/constraints.md ("c"): Rename from "A".
30767         ("A", "D"): New constraint letters.
30768         * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
30769         (fmssf4, fnmasf4, fnmssf4): Likewise.
30770
30771         * config/mn10300/mn10300.md (isa): New attribute.
30772         (enabled): New attribute.
30773
30774         * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
30775         (abssf2, negsf2): Define only for hardware fp.
30776         (sqrtsf2): Reformat.
30777         (addsf3, subsf3, mulsf3): Merge expander and insn.
30778
30779         * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
30780         (DEBUGGER_AUTO_OFFSET): Remove.
30781         (DEBUGGER_ARG_OFFSET): Remove.
30782
30783         * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
30784         Emit register stores with the same offsets as the hardware.
30785         (mn10300_store_multiple_operation): Don't check that the register
30786         save offsets are monotonic.
30787         * config/mn10300/mn10300-protos.h: Update.
30788
30789         * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
30790
30791         * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
30792         in terms of the value on the stack, not the MDR register.
30793
30794 2011-01-11  Jan Hubicka  <jh@suse.cz>
30795
30796         PR lto/45721
30797         PR lto/45375
30798         * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
30799         (symbol_alias_set_destroy, symbol_alias_set_contains,
30800         propagate_aliases_backward): Declare.
30801         * lto-streamer-out.c (struct sets): New sturcture.
30802         (trivally_defined_alias): New function.
30803         (output_alias_pair_p): Rewrite.
30804         (output_unreferenced_globals): Fix output of alias pairs.
30805         (produce_symtab): Likewise.
30806         * ipa.c (function_and_variable_visibility): Set weak alias destination
30807         as needed in lto.
30808         * varasm.c (symbol_alias_set_t): Remove.
30809         (symbol_alias_set_destroy): Export.
30810         (propagate_aliases_forward, propagate_aliases_backward): New functions
30811         based on ...
30812         (compute_visible_aliases): ... this one; remove.
30813         (trivially_visible_alias): New
30814         (trivially_defined_alias): New.
30815         (remove_unreachable_alias_pairs): Rewrite.
30816         (finish_aliases_1): Reorganize code checking if alias is defined.
30817         * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
30818         in LTO mode.
30819
30820 2011-01-11  Richard Guenther  <rguenther@suse.de>
30821
30822         PR tree-optimization/46076
30823         * tree-ssa.c (useless_type_conversion_p): Conversions from
30824         unprototyped to empty argument list function types are useless.
30825
30826 2011-01-11  Richard Guenther  <rguenther@suse.de>
30827
30828         PR middle-end/45235
30829         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
30830         volatile MEMs as MEM_READONLY_P.
30831
30832 2011-01-11  Richard Guenther  <rguenther@suse.de>
30833
30834         PR tree-optimization/47239
30835         * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
30836
30837 2011-01-11  Jeff Law  <law@redhat.com>
30838
30839         PR tree-optimization/47086
30840         * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
30841         IVs from statements that might throw.
30842
30843 2011-01-10  Jan Hubicka  <jh@suse.cz>
30844
30845         PR lto/45375
30846         * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
30847
30848 2011-01-10  Jan Hubicka  <jh@suse.cz>
30849
30850         PR lto/45375
30851         * profile.c (read_profile_edge_counts): Ignore profile inconistency
30852         when correcting profile.
30853
30854 2011-01-10  Jan Hubicka  <jh@suse.cz>
30855
30856         PR lto/46083
30857         * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
30858         DECL_FINI_PRIORITY.
30859         * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
30860         Restore DECL_FINI_PRIORITY.
30861
30862 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30863
30864         * doc/gimple.texi: Fix quoting of multi-word return values in
30865         @deftypefn statements.  Ensure presence of return value.  Wrap
30866         overlong @deftypefn lines.
30867         (is_gimple_operand, is_gimple_min_invariant_address): Remove
30868         descriptions of removed functions.
30869         * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
30870         of multi-word return value in @deftypefn statement.
30871
30872 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30873
30874         * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
30875         (Conditional Expressions, Logical Operators)
30876         (Statement and operand traversals): Do not indent smallexample
30877         code.  Fix duplicate function argument in example.
30878
30879 2011-01-10  Jeff Law  <law@redhat.com>
30880
30881         PR tree-optimization/47141
30882         * ipa-split.c (split_function): Handle case where we are
30883         returning a value and the return block has a virtual operand phi.
30884
30885 2011-01-10  Jan Hubicka  <jh@suse.cz>
30886
30887         PR tree-optimization/47234
30888         * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
30889         (pass_feedback_split_functions): Declare.
30890         * passes.c (init_optimization_passes): Add ipa-split as subpass of
30891         tree-profile.
30892         * ipa-split.c (gate_split_functions): Update comments; disable
30893         split-functions for profile_arc_flag and branch_probabilities.
30894         (gate_feedback_split_functions): New function.
30895         (execute_feedback_split_functions): New function.
30896         (pass_feedback_split_functions): New global var.
30897
30898 2011-01-10  H.J. Lu  <hongjiu.lu@intel.com>
30899
30900         PR lto/46760
30901         * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
30902         calling gimple_call_set_cannot_inline.
30903
30904 2011-01-10  Iain Sandoe  <iains@gcc.gnu.org>
30905
30906         * config/darwin-sections.def: Remove unused section.
30907
30908 2011-01-10  Dave Korn  <dave.korn.cygwin@gmail.com>
30909
30910         PR c++/47218
30911         * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
30912
30913 2011-01-09  Nicola Pero  <nicola.pero@meta-innovation.com>
30914
30915         PR objc/47232
30916         * c-parser.c (c_parser_declaration_or_fndef): Improved
30917         error message.
30918
30919 2011-01-09  Kai Tietz  <kai.tietz@onevision.com>
30920
30921         * config/i386/winnt.c (i386_pe_start_function): Make sure
30922         to switch back to function's section.
30923
30924 2011-01-09  Iain Sandoe  <iains@gcc.gnu.org>
30925
30926         PR gcc/46902
30927         PR testsuite/46912
30928         * plugin.c: Move include of dlfcn.h from here...
30929         * system.h: ... to here.
30930
30931 2011-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30932
30933         * doc/cpp.texi (C++ Named Operators): Fix markup for header
30934         file name.
30935         * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
30936         two extra empty pages in PDF output.
30937
30938 2011-01-08  Nicola Pero  <nicola.pero@meta-innovation.com>
30939
30940         PR objc/47078
30941         * c-parser.c (c_parser_objc_type_name): If the type is unknown,
30942         for error recovery purposes behave as if it was not specified so
30943         that the default type is usd.
30944
30945 2011-01-07  Jan Hubicka  <jh@suse.cz>
30946
30947         PR tree-optmization/46469
30948         * ipa.c (function_and_variable_visibility): Clear needed flags on
30949         nodes with external decls; handle weakrefs merging correctly.
30950
30951 2011-01-07  Joseph Myers  <joseph@codesourcery.com>
30952
30953         * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
30954         not false.
30955
30956 2011-01-07  Jan Hubicka  <jh@suse.cz>
30957
30958         * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
30959         and no longer claim that gold is required for linker plugin.
30960         * configure: Regenerate.
30961         * gcc.c (PLUGIN_COND): New macro.
30962         (LINK_COMMAND_SPEC): Use it.
30963         (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
30964         * config.in (HAVE_LTO_PLUGIN): New.
30965         * configure.ac (--with-lto-plugin): New parameter; autodetect
30966         HAVE_LTO_PLUGIN.
30967
30968 2011-01-07  Jan Hubicka  <jh@suse.cz>
30969
30970         PR tree-optimization/46367
30971         * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
30972         when we can update original.
30973         (cgraph_mark_inline_edge): Sanity check.
30974         * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
30975
30976 2011-01-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
30977
30978         * config/spu/spu.h (ASM_COMMENT_START): Define.
30979
30980 2011-01-07  H.J. Lu  <hongjiu.lu@intel.com>
30981
30982         PR driver/42445
30983         * gcc.c (%>S): New.
30984         (SWITCH_KEEP_FOR_GCC): Likewise.
30985         (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
30986         (do_spec_1): Handle "%>".
30987
30988         * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
30989
30990 2011-01-07  Jakub Jelinek  <jakub@redhat.com>
30991
30992         PR target/47201
30993         * config/i386/i386.c (ix86_delegitimize_address): If
30994         simplify_gen_subreg fails, return orig_x.
30995
30996         PR bootstrap/47187
30997         * value-prof.c (gimple_stringop_fixed_value): Handle
30998         lhs of the call properly.
30999
31000 2011-01-07  Jan Hubicka  <jh@suse.cz>
31001
31002         PR lto/45375
31003         * lto-opt.c (lto_reissue_options): Set flag_shlib.
31004
31005 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
31006
31007         * target.def (function_switched_text_sections): New hook.
31008         * doc/tm.texi: Regenerated.
31009         * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
31010         * final.c (default_function_switched_text_sections): New.
31011         (final_scan_insn): Call function_switched_text_sections when a
31012         mid-function section change occurs.
31013         * output.h (default_function_switched_text_sections): Declare.
31014         * config/darwin-protos.h (darwin_function_switched_text_sections):
31015         Likewise.
31016         * config/darwin.c (darwin_function_switched_text_sections): New.
31017         * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
31018
31019 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
31020
31021         * dwarf2out.c (gen_subprogram_die):  Add pubnames with code ranges for
31022         DWARF >= 3.  Add pubnames for the primary section and a reduced DIE for
31023         the secondary code fragment when outputting for DWARF == 2.
31024
31025 2011-01-07  Anatoly Sokolov  <aesok@post.ru>
31026
31027         * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
31028         * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
31029         Remove.
31030         * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
31031         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
31032
31033 2011-01-06  Eric Botcazou  <ebotcazou@adacore.com>
31034
31035         PR debug/46704
31036         * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
31037         when it is not empty.
31038
31039 2011-01-06  Changpeng Fang  <changpeng.fang@amd.com>
31040
31041         Bobcat Enablement
31042         * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
31043         (case ${target}): Add btver1.
31044         * config/i386/driver-i386.c (host_detect_local_cpu): Let
31045         -march=native recognize btver1 processors.
31046         * config/i386/i386-c.c (ix86_target_macros_internal): Add
31047         btver1 def_and_undef
31048         * config/i386/i386.c (struct processor_costs btver1_cost): New
31049         btver1 cost table.
31050         (m_BTVER1): New definition.
31051         (m_AMD_MULTIPLE): Includes m_BTVER1.
31052         (initial_ix86_tune_features): Add btver1 tune.
31053         (processor_target_table): Add btver1 entry.
31054         (static const char *const cpu_names): Add btver1 entry.
31055         (software_prefetching_beneficial_p): Add btver1.
31056         (ix86_option_override_internal): Add btver1 instruction sets.
31057         (ix86_issue_rate): Add btver1.
31058         (ix86_adjust_cost): Add btver1.
31059         * config/i386/i386.h (TARGET_BTVER1): New definition.
31060         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
31061         (enum processor_type): Add PROCESSOR_BTVER1.
31062         * config/i386/i386.md (define_attr "cpu"): Add btver1.
31063
31064 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31065
31066         PR target/43309
31067         * config/i386/i386.c (legitimize_tls_address)
31068         <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
31069         * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
31070         (tls_initial_exec_64_sun): New pattern.
31071
31072 2011-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
31073
31074         * doc/invoke.texi (Overall Options): Improve wording and markup
31075         of the description of -wrapper.
31076
31077 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
31078
31079         * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
31080         rdynamic, threads): New Driver options.
31081
31082 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31083
31084         PR target/38118
31085         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
31086         if coming from .tdata.
31087         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
31088
31089 2011-01-06  Jan Hubicka  <jh@suse.cz>
31090
31091         PR lto/47188
31092         * collect2.c (main): Do not enable LTOmode when plugin is active.
31093
31094 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31095
31096         PR other/45915
31097         * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
31098         --version output if supported.
31099         * configure: Regenerate.
31100
31101 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
31102
31103         * config/linux-android.opt (tno-android-cc, tno-android-ld): New
31104         Driver options.
31105
31106 2011-01-06  Jakub Jelinek  <jakub@redhat.com>
31107
31108         PR c/47150
31109         * c-convert.c (convert): When converting a complex expression
31110         other than COMPLEX_EXPR to a different complex type, ensure
31111         c_save_expr is called instead of save_expr, unless in_late_binary_op.
31112         * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
31113         when converting COMPLEX_TYPE.
31114
31115 2011-01-06  Ira Rosen  <irar@il.ibm.com>
31116
31117         PR tree-optimization/47139
31118         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
31119         only the last reduction value is used outside the loop.  Update
31120         documentation.
31121
31122 2011-01-05  Joseph Myers  <joseph@codesourcery.com>
31123
31124         * config/rtems.opt: New.
31125         * config.gcc (*-*-rtems*): Use rtems.opt.
31126
31127 2011-01-05  Changpeng Fang  <changpeng.fang@amd.com>
31128
31129         * config/i386/i386.c (ix86_option_override_internal): Bulldozer
31130         processors do not support 3DNow instructions.
31131
31132 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
31133
31134         * config/spu/spu.c (spu_option_override): Set parameter
31135         PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
31136
31137 2011-01-05  Jan Hubicka  <jh@suse.cz>
31138
31139         * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
31140         at the command line.
31141
31142 2011-01-05  Martin Jambor  <mjambor@suse.cz>
31143
31144         PR lto/47162
31145         * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
31146         deltas on streamed outgoing edges.
31147         (output_node_opt_summary): Output info for outgoing edges only when
31148         the node is in new parameter set.
31149         (output_cgraph_opt_summary): New parameter set, passed to the two
31150         aforementioned functions.  Update its forward declaration and its
31151         callee too.
31152
31153 2011-01-05  Tom Tromey  <tromey@redhat.com>
31154
31155         * c-parser.c (c_parser_omp_atomic): Pass location of assignment
31156         operator to c_finish_omp_atomic.
31157         * c-typeck.c (lvalue_or_else): Add 'loc' argument.
31158         (build_unary_op): Update.
31159         (build_modify_expr): Update.
31160         (build_asm_expr): Update.
31161
31162 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
31163
31164         * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
31165         newly inserted insns.
31166         (pad_bb): Likewise.
31167         (spu_emit_branch_hint): Likewise.
31168         (insert_hbrp_for_ilb_runout): Likewise.
31169         (spu_machine_dependent_reorg): Call df_finish_pass after
31170         schedule_insns returns.
31171
31172 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
31173
31174         * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
31175
31176 2011-01-05  Eric Botcazou  <ebotcazou@adacore.com>
31177
31178         PR tree-optimization/47005
31179         * tree-sra.c (struct access): Add 'non_addressable' bit.
31180         (create_access): Set it for a DECL_NONADDRESSABLE_P field.
31181         (decide_one_param_reduction): Return 0 if the parameter is passed by
31182         reference and one of the accesses in the group is non_addressable.
31183
31184 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
31185
31186         PR tree-optimization/47056
31187         * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
31188         (mark_load): Likewise.  Handle FUNCTION_DECL specially.
31189         (mark_store): Likewise.  Pass STMT to ipa_record_reference.
31190
31191 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
31192
31193         * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
31194         initializer.  Skip view conversions from aggregate types.
31195
31196 2011-01-04  Kai Tietz  <kai.tietz@onevision.com>
31197
31198         PR bootstrap/47055
31199         * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
31200
31201 2011-01-04  Philipp Thomas  <pth@suse.de>
31202
31203         * config/microblaze/microbalse.opt (mxl-float-convert): Fix
31204         obvious typo.
31205
31206 2011-01-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
31207
31208         * function.c (thread_prologue_and_epilogue_insns): Do not crash
31209         on empty epilogue sequences.
31210
31211 2011-01-04  Joseph Myers  <joseph@codesourcery.com>
31212
31213         * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
31214         non-static): New Driver options.
31215
31216 2011-01-04  Jie Zhang  <jie@codesourcery.com>
31217
31218         PR driver/47137
31219         * gcc.c (default_compilers[]): Set combinable field to 0
31220         for all assembly languages.
31221
31222 2011-01-04  Mingjie Xing  <mingjie.xing@gmail.com>
31223
31224         * config/mips/loongson3a.md: New file.
31225         * config/mips/mips.md: Include loongson3a.md.
31226         * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
31227         TUNE_LOONGSON_3A.
31228
31229 2011-01-03  Eric Botcazou  <ebotcazou@adacore.com>
31230
31231         PR middle-end/47017
31232         * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
31233         instead of convert_memory_address_addr_space on the base expression.
31234
31235 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
31236
31237         * config/spu/spu.c (spu_option_override): Update error text
31238         for bad -march= / -mtune= values.
31239
31240 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
31241
31242         * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
31243         if branch-hint optimization will be performed.
31244
31245 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
31246
31247         PR tree-optimization/47148
31248         * ipa-split.c (split_function): Convert arguments to
31249         DECL_ARG_TYPE if possible.
31250
31251         PR tree-optimization/47155
31252         * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
31253         when computing uns.
31254
31255         PR rtl-optimization/47157
31256         * combine.c (try_combine): If undobuf.other_insn becomes
31257         (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
31258         and set *new_direct_jump_p too.
31259
31260 2011-01-03  Sebastian Pop  <sebastian.pop@amd.com>
31261
31262         PR tree-optimization/47021
31263         * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
31264
31265 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
31266
31267         * gcc.c (process_command): Update copyright notice dates.
31268         * gcov.c (print_version): Likewise.
31269         * gcov-dump.c (print_version): Likewise.
31270         * mips-tfile.c (main): Likewise.
31271         * mips-tdump.c (main): Likewise.
31272
31273 2011-01-03  Martin Jambor  <mjambor@suse.cz>
31274
31275         PR tree-optimization/46801
31276         * tree-sra.c (type_internals_preclude_sra_p): Check whether
31277         aggregate fields start at byte boundary instead of the bit-field flag.
31278
31279 2011-01-03  H.J. Lu  <hongjiu.lu@intel.com>
31280
31281         PR driver/47137
31282         * gcc.c (main): Revert revision 168407.
31283
31284 2011-01-03  Martin Jambor  <mjambor@suse.cz>
31285
31286         * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
31287
31288 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
31289
31290         * tree-vect-generic.c (expand_vector_operations_1): When using vector/
31291         vector optab to expand vector/scalar shift, update gimple to vector.
31292
31293 2011-01-03  Martin Jambor  <mjambor@suse.cz>
31294
31295         * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
31296         a thunk.
31297
31298 2011-01-03  Martin Jambor  <mjambor@suse.cz>
31299
31300         PR tree-optimization/46984
31301         * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
31302         HOST_WIDE_INT.
31303         (cgraph_create_indirect_edge): Fixed line length.
31304         (cgraph_indirect_call_info): Declare.
31305         (cgraph_make_edge_direct) Update declaration.
31306         * cgraph.c (cgraph_allocate_init_indirect_info): New function.
31307         (cgraph_create_indirect_edge): Use it.
31308         (cgraph_make_edge_direct): Made delta HOST_WIDE_INT.  Updated all
31309         callees.
31310         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
31311         the new thunk_delta representation.
31312         * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
31313         HOST_WIDE_INT.
31314         (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
31315         (ipa_read_indirect_edge_info): Likewise.
31316         * lto-cgraph.c (output_edge_opt_summary): New function.
31317         (output_node_opt_summary): Call it on all outgoing edges.
31318         (input_edge_opt_summary): New function.
31319         (input_node_opt_summary): Call it on all outgoing edges.
31320
31321 2011-01-02  H.J. Lu  <hongjiu.lu@intel.com>
31322
31323         PR driver/47137
31324         * gcc.c (main): Don't check have_o when settting combine_inputs.
31325
31326 2011-01-02  Eric Botcazou  <ebotcazou@adacore.com>
31327
31328         * regrename.c: Add general comment describing the pass.
31329         (struct du_head): Remove 'length' field.
31330         (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
31331         (regrename_optimize): Do not sort chains.  Rework comments, add others.
31332         Force renaming to the preferred class (if any) in the first pass and do
31333         not consider registers that belong to it in the second pass.
31334         (create_new_chain): Do not set 'length' field.
31335         (scan_rtx_reg): Likewise.
31336
31337 2011-01-02  Jakub Jelinek  <jakub@redhat.com>
31338
31339         PR tree-optimization/47140
31340         * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
31341         TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
31342         to bit_value_binop.
31343
31344         PR rtl-optimization/47028
31345         * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
31346         parm_birth_insn instead of at the beginning of first bb.
31347
31348 2011-01-02  Mingjie Xing  <mingjie.xing@gmail.com>
31349
31350         * doc/generic.texi: Remove duplicated "@subsubsection Statements".
31351         Remove the word "see" before "@pxref".
31352         * doc/rtl.texi: Remove the word "see" before "@pxref".
31353
31354 2011-01-01  Jan Hubicka  <jh@suse.cz>
31355
31356         * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
31357         memory.
31358
31359 2011-01-01  Kai Tietz  <kai.tietz@onevision.com>
31360
31361         PR target/38662
31362         * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
31363
31364 \f
31365 Copyright (C) 2011 Free Software Foundation, Inc.
31366
31367 Copying and distribution of this file, with or without modification,
31368 are permitted in any medium without royalty provided the copyright
31369 notice and this notice are preserved.