OSDN Git Service

* ipa-inline.c (reset_edge_caches): New function.
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2011-05-04  Jan Hubicka  <jh@suse.cz>
2
3         * ipa-inline.c (reset_edge_caches): New function.
4         (update_caller_keys): Add check_inlinablity_for; do not
5         reset edge caches; remove now unnecesary loop.
6         (update_callee_keys): Add comments; reset
7         node_growth_cache of callee.
8         (update_all_callee_keys): Likewise.
9         (inline_small_functions): Sanity check cache; update code
10         recomputing it.
11
12 2011-05-04  Bernd Schmidt  <bernds@codesourcery.com>
13
14         PR rtl-optimization/47612
15         * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
16         as the last insn of the sequence to be moved.
17
18 2011-05-04  Tobias Burnus  <burnus@net-b.de>
19
20         PR fortran/48864
21         * doc/invoke.texi (Ofast): Document that it
22         enables Fortran's -fno-protect-parens.
23
24 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
25
26         * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
27
28 2011-05-04  Eric Botcazou  <ebotcazou@adacore.com>
29
30         * stor-layout.c (variable_size): Do not issue errors.
31
32 2011-05-04  Richard Guenther  <rguenther@suse.de>
33
34         * coverage.c (tree_coverage_counter_ref): Use integer_type_node
35         for array-ref indices.
36         (tree_coverage_counter_addr): Likewise.
37         (build_fn_info_type): Use size_int for index types.
38         (build_gcov_info): Likewise.
39
40 2011-05-04  Richard Guenther  <rguenther@suse.de>
41
42         * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
43         to build_int_cst.
44         * c-typeck.c (really_start_incremental_init): Use bitsize_int
45         for constructor indices.
46         (push_init_level): Likewise.
47
48 2011-05-04  Richard Guenther  <rguenther@suse.de>
49
50         * explow.c (promote_mode): Move variable declarations before code.
51
52 2011-05-04  Nathan Froyd  <froydnj@codesourcery.com>
53
54         * tree.h (build_function_type_array): Declare.
55         (build_varargs_function_type_array): Declare.
56         (build_function_type_vec, build_varargs_function_type_vec): Define.
57         * tree.c (build_function_type_array_1): New function.
58         (build_function_type_array): New function.
59         (build_varargs_function_type_array): New function.
60
61 2011-05-04  Richard Sandiford  <richard.sandiford@linaro.org>
62
63         * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
64         before setting STMT_VINFO_TYPE.
65
66 2011-05-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
67
68         * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
69         instead of spu_pass_by_reference.
70
71 2011-05-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
72
73         * calls.c (emit_library_call_value_1): Invoke
74         promote_function_mode hook on libcall arguments.
75         * explow.c (promote_function_mode, promote_mode): Handle TYPE
76         argument being NULL.
77         * targhooks.c (default_promote_function_mode): Lisewise.
78         * config/s390/s390.c (s390_promote_function_mode): Likewise.
79         * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
80
81         * doc/tm.texi: Document that TYPE argument might be NULL.
82
83 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
84
85         * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
86
87 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
88
89         From Bernd Schmidt
90         * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
91
92 2011-05-04  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
93
94         * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
95         (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
96         Move ...
97         * mips-tfile.c: ... here.
98         Don't include coretypes.h, tm.h, filenames.h.
99         (saber_stop): Remove definition and all calls.
100         [__SABER__]: Remove.
101         (__LINE__): Remove default.
102         (Size_t, Ptrdiff_t): Remove definitions.
103         Replace by size_t, ptrdiff_t.
104         [!MIPS_DEBUGGING_INFO]: Remove.
105         (SHASH_SIZE, THASH_SIZE): Remove defaults.
106         (progname): Add const.
107         (STATIC): Remove.
108         Replace all uses by static.
109         (ALIGN_SYMTABLE_OFFSET): Remove default.
110         * mips-tdump.c: Don't include coretypes.h, tm.h.
111         Remove !MIPS_IS_STAB guard.
112         * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
113         $(TM_H), filenames.h dependencies.
114         (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
115
116 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
117
118         From Jie Zhang
119         *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
120         (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
121
122 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
123
124         From Bernd Schmidt
125         * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
126         account and save/restore RETS.
127         (PROFILE_BEFORE_PROLOGUE): Define.
128         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character.  Correct
129         the push insn to use predecrement.
130
131 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
132
133         From Jie Zhang
134         * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
135
136 2011-05-04  Nick Clifton  <nickc@redhat.com>
137
138         * config/mn10300/mn10300.c: Include cfgloop.h.
139         (DUMP): New macro.
140         (mn10300_insert_setlb_lcc): New function.  Inserts a SETLB and a
141         Lcc or a FLcc insn into the instruction stream.
142         (mn10300_block_contains_call): New function.  Returns true if the
143         given basic block contains a CALL insn.
144         (mn10300_loop_contains_call_insn): New function.  Returns true if
145         the given loop contains a CALL insn.
146         (mn10300_scan_for_setlb_lcc): New function.  Finds opportunities
147         to use the SETLB and Lcc or FLcc insns.
148         (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
149         (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
150         * config/mn10300/mn10300.opt (msetlb): New option.  Used to
151         disable the SETLB optimization.
152         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
153         __SETLB__ or __NO_SETLB__.
154         * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
155         (movsf_internal): Handle MDR register.
156         (cmpsi): Make visible.
157         (setlb): New pattern.
158         (Lcc): New pattern.
159         (FLcc): New pattern.
160
161 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
162
163         PR target/48860
164         * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
165         for reg<->xmm moves.
166         * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
167         (vec_concatv2di_rex64_sse): Ditto.
168         (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
169         (*vec_extractv2di_1_rex64): Ditto.
170
171         Revert:
172         2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
173
174         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
175         reg<->xmm moves.
176         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
177
178 2011-05-04  Richard Guenther  <rguenther@suse.de>
179
180         * tree.h (int_const_binop): Remove notrunc argument.
181         * fold-const.c (int_const_binop): Remove notrunc argument.  Always
182         create integer constants that are properly truncated.
183         (extract_muldiv_1): Expand one notrunc int_const_binop caller.
184         (const_binop): Remove zero notrunc argument to int_const_binop.
185         (size_binop_loc): Likewise.
186         (fold_div_compare): Likewise.
187         (maybe_canonicalize_comparison_1): Likewise.
188         (fold_comparison): Likewise.
189         (fold_binary_loc): Likewise.
190         (multiple_of_p): Likewise.
191         * expr.c (store_constructor): Likewise.
192         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
193         (maybe_fold_stmt_addition): Likewise.
194         * ipa-prop.c (ipa_modify_call_arguments): Likewise.
195         * stor-layout.c (layout_type): Likewise.
196         * tree-data-ref.c (tree_fold_divides_p): Likewise.
197         * tree-sra.c (build_ref_for_offset): Likewise.
198         (build_user_friendly_ref_for_offset): Likewise.
199         * tree-ssa-address.c (maybe_fold_tmr): Likewise.
200         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
201         * tree-ssa-loop-niter.c (inverse): Likewise.
202         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
203         * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
204         * tree-switch-conversion.c (check_range): Likewise.
205         (build_constructors): Likewise.
206         * tree-vect-generic.c (expand_vector_piecewise): Likewise.
207         * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
208         (extract_range_from_assert): Likewise.
209         (vrp_int_const_binop): Likewise.
210         (extract_range_from_binary_expr): Likewise.
211         (extract_range_from_unary_expr): Likewise.
212         (check_array_ref): Likewise.
213         (find_case_label_range): Likewise.
214         (simplify_div_or_mod_using_ranges): Likewise.
215         * tree-cfg.c (group_case_labels_stmt): Use double-ints for
216         comparing case labels for merging.
217
218 2011-05-03  Mark Wielaard  <mjw@redhat.com>
219
220         * dwarf2out.c (debug_str_hash_forced): Removed.
221         (gen_label_for_indirect_string): Removed.
222         (get_debug_string_label): Removed.
223         (AT_string_form): Generate label directly.
224         (output_indirect_string): Test indirect_string_node for
225         DW_FORM_strp instead of checking label and refcount.
226         (prune_indirect_string): Removed.
227         (prune_unused_types): Don't check debug_str_hash_forced or
228         call prune_indirect_string.
229
230 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
231
232         PR other/48093
233         * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
234
235 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
236
237         PR debug/47994
238         PR debug/47919
239         * combine.c (try_combine): Skip debug insns at m_split tests.
240
241 2011-04-26  Mark Wielaard  <mjw@redhat.com>
242
243         PR42288
244         * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
245         when info_section_emitted.
246
247 2011-05-03  Joseph Myers  <joseph@codesourcery.com>
248
249         * config/mips/mips-opts.h: New.
250         * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
251         to mips-opts.h.
252         (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
253         (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
254         or OPT_mr10k_cache_barrier_ here.  Access mips_cache_flush_func
255         via opts pointer.
256         * config/mips/mips.h (enum mips_code_readable_setting): Move to
257         mips-opts.h.
258         (mips_abi, mips_code_readable): Don't declare.
259         * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
260         (mabi=): Use Enum and Var.
261         (mips_abi): New Enum and EnumValue entries.
262         (mcode-readable=): Use Enum and Var.
263         (mips_code_readable_setting): New Enum and EnumValue entries.
264         (mr10k-cache-barrier=): Use Enum and Var.
265         (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
266
267 2011-05-03  Jan Hubicka  <jh@suse.cz>
268
269         * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
270         replace hash by pointer map.
271         (cgraph_node_set_element_def, cgraph_node_set_element,
272         const_cgraph_node_set_element, varpool_node_set_element_def,
273         varpool_node_set_element, const_varpool_node_set_element): Remove.
274         (free_cgraph_node_set, free_varpool_node_set): New function.
275         (cgraph_node_set_size, varpool_node_set_size): Use vector size.
276         * tree-emutls.c: Free varpool node set.
277         * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
278         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
279         debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
280         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
281         dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
282         Move here from ipa.c; implement using pointer_map
283         * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
284         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
285         debug_cgraph_node_set, varpool_node_set_new,
286         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
287         dump_varpool_node_set, debug_varpool_node_set):
288         Move to ipa-uitls.c.
289         * passes.c (ipa_write_summaries): Update.
290
291 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
292
293         From Mike Frysinger:
294         * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
295         bf542/bf544/bf547/bf548/bf549.
296
297 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
298
299         * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
300
301 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
302
303         From Bernd Schmidt:
304         * config/bfin/bfin.md (MOVCC): New mode_macro.
305         (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
306         movsicc_insn1, movsicc_insn2 and movsicc and macroized.  Remove
307         comments from generated assembly.
308
309 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
310
311         From Bernd Schmidt
312         * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
313         * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
314         * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
315         * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
316         * config/bfin/lib1funcs.asm (___muldi3): New function.
317
318 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
319
320         * config/stormy16/stormy16 (xstormy16_init_builtins): Call
321         build_function_type_list instead of build_function_type.
322         Rearrange initialization of `args' to do so.
323
324 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
325
326         * config/i386/i386.c (ix86_code_end): Call build_function_type_list
327         instead of build_function_type.
328
329 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
330
331         * config/rs6000/rs6000.c (spe_init_builtins): Call
332         build_function_type_list instead of build_function_type.
333         (paired_init_builtins, altivec_init_builtins): Likewise.
334         (builtin_function_type): Likewise.
335
336 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
337
338         * config/sh/sh.c (sh_media_init_builtins): Call
339         build_function_type_list instead of build_function_type.
340
341 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
342
343         * config/sparc/sparc.c (sparc_file_end): Call
344         build_function_type_list instead of build_function_type.
345
346 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
347
348         * config/alpha/alpha.c (alpha_init_builtins): Call
349         build_function_type_list instead of build_function_type.
350
351 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
352
353         * config/xtensa/xtensa.c (xtensa_init_builtins): Call
354         build_function_type_list instead of build_function_type.
355
356 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
357
358         * config/iq2000/i2000.c (iq2000_init_builtins): Call
359         build_function_type_list instead of build_function_type.
360         Delete `endlink' variable.
361
362 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
363
364         * config/avr/avr.c (avr_init_builtins): Call
365         build_function_type_list instead of build_function_type.
366
367 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
368
369         * config/picochip/picochip.c (picochip_init_builtins): Call
370         build_function_type_list instead of build_function_type.
371         Delete `endlink' variable.
372
373 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
374
375         * config/bfin/bfin.c (bfin_init_builtins): Call
376         build_function_type_list instead of build_function_type.
377
378 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
379
380         From Bernd Schmidt
381         * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
382         that's not CONST_INT.  Seemingly redundant check is due to PR39768.
383
384 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
385
386         From Jie Zhang:
387         * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
388         libbffastfp overrides libgcc when -mfast-fp.
389
390 2011-05-03  Stuart Henderson <shenders@gcc.gnu.org>
391
392         Originally from Bernd Schmidt
393         * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
394         * config/bfin/bfin.c (override_options): Test it and error if
395         TARGET_FDPIC.
396
397 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
398
399         Originally From Bernd Schmidt
400         * config/bfin/bfin.c (override_options): Disable -fstack-limit for
401         FD-PIC.
402
403 2011-05-03  Jeff Law  <law@redhat.com>
404
405         * tree-ssa-threadupdate.c (THREAD_TARGET): define.
406         (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
407         (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
408         than accessing AUX field directly.  Free the AUX field before
409         clearing it.
410         (thread_block, thread_through_loop_header): Likewise.
411         (thread_single_edge, mark_threaded_blocks): Likewise.
412         (redirect_edges): Delay clearing the AUX field.  Free the AUX field.
413         (register_jump_thread): Do not attempt to thread to a NULL edge.
414
415 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
416
417         * function.c (init_function_start): Call decide_function_section.
418         * varasm.c (decide_function_section): New function.
419         (assemble_start_function): When not using
420         flag_reorder_blocks_and_partition, don't compute in_cold_section_p
421         or first_function_block_is_cold.
422         * rtl.h (decide_function_section): Declare.
423
424 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
425             Jakub Jelinek  <jakub@redhat.com>
426
427         PR target/48774
428         * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
429         only succeed if req_mode is the same as set_mode.
430
431 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
432
433         * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
434         * genemit.c (gen_exp): Handle RETURN.
435         * emit-rtl.c (verify_rtx_sharing): Likewise.
436         (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
437         * rtl.c (copy_rtx): RETURN is shared.
438         * rtl.h (enum global_rtl_index): Add GR_RETURN.
439         (ret_rtx): New.
440         * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
441         * config/s390/s390.c (s390_emit_epilogue): Likewise.
442         * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
443         * config/cris/cris.c (cris_expand_return): Likewise.
444         * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
445         * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
446         rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
447         * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
448         * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
449         Likewise.
450         * config/v850/v850.c (expand_epilogue): Likewise.
451         * config/bfin/bfin.c (bfin_expand_call): Likewise.
452         * config/arm/arm.md (epilogue): Likewise.
453         * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
454         * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
455         variable to ret_reg.
456
457 2011-05-03  Richard Guenther  <rguenther@suse.de>
458
459         PR lto/48846
460         * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
461         Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
462         * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
463
464 2011-05-03  Richard Guenther  <rguenther@suse.de>
465
466         * c-decl.c (grokdeclarator): Instead of looking at
467         TREE_OVERFLOW check if the constant fits in the index type.
468
469 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
470
471         * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
472         (vec_store_lanes<mode><mode>): Likewise.
473
474 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
475
476         * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
477         * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
478         convert_optab_index values.
479         (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
480         * genopinit.c (optabs): Initialize the new optabs.
481         * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
482         * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
483         (expand_STORE_LANES): New functions.
484         * tree.h (build_array_type_nelts): Declare.
485         * tree.c (build_array_type_nelts): New function.
486         * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
487         (vect_model_load_cost): Likewise.
488         (vect_store_lanes_supported, vect_load_lanes_supported)
489         (vect_record_strided_load_vectors): Declare.
490         * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
491         (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
492         (vect_transform_strided_load): Split out statement recording into...
493         (vect_record_strided_load_vectors): ...this new function.
494         * tree-vect-stmts.c (create_vector_array, read_vector_array)
495         (write_vector_array, create_array_ref): New functions.
496         (vect_model_store_cost): Add store_lanes_p argument.
497         (vect_model_load_cost): Add load_lanes_p argument.
498         (vectorizable_store): Try to use store-lanes functions for
499         interleaved stores.
500         (vectorizable_load): Likewise load-lanes and loads.
501         * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
502         to vect_model_store_cost.
503         (vect_build_slp_tree): Likewise vect_model_load_cost.
504
505 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
506
507         * hooks.h (hook_bool_mode_uhwi_false): Declare.
508         * hooks.c (hook_bool_mode_uhwi_false): New function.
509         * target.def (array_mode_supported_p): New hook.
510         * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
511         * doc/tm.texi: Regenerate.
512         * stor-layout.c (mode_for_array): New function.
513         (layout_type): Use it.
514         * config/arm/arm.c (arm_array_mode_supported_p): New function.
515         (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
516
517 2011-05-03  Eric Botcazou  <ebotcazou@adacore.com>
518
519         PR target/48723
520         * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
521         for -fstack-check if the size to allocate is negative.
522
523 2011-05-02  Lawrence Crowl  <crowl@google.com>
524
525         * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
526         (timevar_cond_start): New for starting a timer only when it is not
527         already running.
528         (timevar_cond_stop): New for stopping a timer when it was not already
529         running.
530
531         * timevar.c (timevar_stop): Enable start/stop timers to start again.
532         (timevar_cond_start): New as above.
533         (timevar_cond_stop): New as above.
534
535         * timevar.def: Add start/stop timers for compiler phases,
536         TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
537         TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
538         and TV_PHASE_FINALIZE.
539         Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
540         Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
541         TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
542         Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
543         Make unused TV_OVERLOAD into a start/stop timer.
544
545         Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
546         Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
547         to indicate that they are start/stop timers.
548
549         * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
550         Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
551         Move initialization to do_compile.
552         (do_compile): Add initialization from above.
553         Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
554
555         * c-decl.c (c_write_global_declarations): Add start/stop of
556         TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
557
558         * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
559         or TV_PARSE_INLINE, as appropriate.
560         (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
561         (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
562
563 2011-05-02  Jason Merrill  <jason@redhat.com>
564
565         PR c++/40975
566         * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
567
568 2011-05-02  Simon Martin  <simartin@users.sourceforge.net>
569
570         PR c/35445
571         * c-decl.c (finish_decl): Only create a composite if the types are
572         compatible.
573
574 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
575
576         * config/fr30/fr30-protos.h (Mmode): Don't define.
577         * config/m32r/m32r-protos.h (Mmode): Don't define.  Expand
578         definition where used.
579         * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
580         define.  Expand definitions where used.
581         * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
582         Expand definitions where used.
583         * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
584         rx_function_arg, rx_function_arg_advance,
585         rx_function_arg_boundary): Expand definitions of those macros.
586         * config/v850/v850-protos.h (Mmode): Don't define.  Expand
587         definition where used.
588
589 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
590
591         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
592         reg<->xmm moves.
593         (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
594         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.  Merge
595         with *movv2sf_internal_rex64_avx.
596         (*movv2sf_internal): Merge with *movv2sf_internal_avx.
597         * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
598         Use %v prefix in insn mnemonic to handle TARGET_AVX.
599         (*movdi_internal): Add "isa" attribute.  Use "maybe_vex" instead of
600         "vex" in "prefix" attribute calculation.
601         (*movdf_internal): Output AVX mnemonics.  Add "prefix" attribute.
602
603 2011-05-02  Stuart Henderson  <shenders@gcc.gnu.org>
604
605         PR target/47951
606         * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
607         inputs match the output.
608
609 2011-05-02  Andreas Schwab  <schwab@linux-m68k.org>
610
611         PR target/47955
612         * config/m68k/m68k.c (m68k_expand_prologue): Set
613         current_function_static_stack_size.
614
615 2011-05-02   Jan Hubicka  <jh@suse.cz>
616
617         * lto-streamer.c (lto_streamer_cache_insert_1,
618         lto_streamer_cache_lookup, lto_streamer_cache_create,
619         lto_streamer_cache_delete): Use pointer map instead of hashtable.
620         * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
621
622 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
623
624         * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
625         config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
626         config/m68k/t-opts: New files.
627         * config/m68k/m68k-tables.opt: New file (generated).
628         * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
629         extra_options and m68k/t-opts to tmake_file.
630         * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
631         (all_isas): Initialize using m68k-isas.def.
632         (all_microarchs): Initialize using m68k-microarchs.def.
633         (m68k_find_selection): Remove.
634         (m68k_handle_option): Don't assert that global structures are in
635         use.  Use error_at.  Access variables via opts pointer.  Don't
636         handle -march=, -mcpu= and -mtune= here.  Set gcc_options fields
637         directly for -m68020-40 and -m68020-60.
638         (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
639         m68k_tune_entry here.
640         * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
641         to m68k-opts.h.
642         (m68k_library_id_string): Remove declaration.
643         * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
644         (m68k_library_id_string): New Variable.
645         (march=, mcpu=, mtune=): Use Enum and Var.
646
647 2011-05-02  Richard Guenther  <rguenther@suse.de>
648
649         * varasm.c (output_constructor_regular_field): Compute zero-based
650         index with double-ints.  Make sure to ICE instead of producing
651         wrong code.
652         * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
653         in asserts.  Properly use a signed type.
654
655 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
656
657         * config/i386/sse.md (V): New mode iterator.
658         (V_128): Rename from SSEMODE.  Make V2DF mode conditional on
659         TARGET_SSE2.
660         (V_256): Rename from AVX256MODE.
661         (VF): Make V4SF mode unconditional.  Add TARGET_SSE instruction
662         condition to all users.
663         (VF1): Ditto.
664         (VF2): Make V2DF mode unconditional.  Add TARGET_SSE2 instruction
665         condition to all users.
666         (VF_128): Make V4SF mode unconditional.
667         (VF_256): Rename from AVX256MODEF2P.
668         (VI4F_128): Rename from SSEMODE4S.
669         (VI8F_128): Rename from SSEMODE2D.
670         (VI4F_256): Rename from AVX256MODE8P.
671         (VI8F_256): Rename from AVX256MODE4P.
672         (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
673         (ssescalarmodesuffix): Remove SF and DF modes.
674         (SSEMODE124): Remove.
675         (SSEMODE1248): Ditto.
676         (SSEMODEF2P): Ditto.
677         (AVXMODEF2P): Ditto.
678         (AVXMODEFDP): Ditto.
679         (AVXMODEFSP): Ditto.
680         (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
681         unconditional.
682         (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO.  Make V4SF mode
683         unconditional.
684         (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
685         xop_pcmov_<mode>256.  Use V mode iterator.
686
687         Adjust RTX patterns globally for renamed mode attributes.
688
689 2011-05-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
690
691         * haifa-sched.c (sched_emit_insn): Emit insn before first
692         non-scheduled insn.  Inform back-end about new insn.  Add
693         new insn to scheduled_insns list.
694
695 2011-05-02  Richard Guenther  <rguenther@suse.de>
696
697         PR tree-optimization/48822
698         * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
699         (process_scc): Indicate which iteration we start.
700
701 2011-05-02  Jan Hubicka  <jh@suse.cz>
702
703         * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
704         (lto_section_overrun): New.
705         * lto-section-out.c (append_block): Rename to ...
706         (lto_append_block): ... this one; export.
707         (lto_output_1_stream): Move lto lto-streamer.h
708         (lto_output_data_stream): Update.
709         * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
710         (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
711         functions.
712
713 2011-05-02  Richard Guenther  <rguenther@suse.de>
714
715         * tree.c (tree_code_counts): New global array.
716         (record_node_allocation_statistics): Count individual tree codes.
717         (dump_tree_statistics): Dump individual code stats.
718
719 2011-05-01  Jan Hubicka  <jh@suse.cz>
720
721         * ipa-inline.c (caller_growth_limits): Fix thinko when
722         looking for largest stack frame.
723         * ipa-inline.h (dump_inline_summary): Declare.
724         * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
725         on stack usage.
726         (dump_inline_summary): Export.
727         (debug_inline_summary): Declare as DEBUG_FUNCTION.
728
729 2011-05-01  Anatoly Sokolov  <aesok@post.ru>
730
731         * reginfo.c (memory_move_cost): Change rclass argument type form
732         'enum reg_class' to reg_class_t.
733         * reload.h (memory_move_cost): Update prototype.
734         * postreload.c reload_cse_simplify_set): Change type dclass var to
735         reg_class_t.
736         * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
737         Update prototype.
738         (ira_allocate_and_set_costs): Change aclass argument type form
739         'enum reg_class' to reg_class_t.
740         * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
741         Change aclass argument type to reg_class_t.
742         (update_conflict_hard_reg_costs): Change type aclass and pref vars
743         to reg_class_t.
744         * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
745         memory_move_cost call.
746
747         * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
748         'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
749         Change type tmp var to reg_class_t.
750
751 2011-04-30  Jan Hubicka  <jh@suse.cz>
752
753         * ipa-inline.c (can_inline_edge_p): Disregard limits when
754         inlining into function with flatten attribute.
755         (want_inline_small_function_p): Be more realistic about inlining
756         cold calls where callee size grows.
757
758 2011-04-30  Jan Hubicka  <jh@suse.cz>
759
760         * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
761         flags.
762
763 2011-04-30  Anatoly Sokolov  <aesok@post.ru>
764
765         * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
766         PRINT_OPERAND_PUNCT_VALID_P): Remove.
767         * config/sparc/sparc-protos.h (print_operand): Remove declaration.
768         * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
769         TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
770         (print_operand): Rename to...
771         (sparc_print_operand): ...this. Make static. Adjust
772         sparc_print_operand function call.
773         (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
774         functions.
775
776 2011-04-30  Jan Hubicka  <jh@suse.cz>
777
778         PR middle-end/48752
779         * ipa-inline.c (early_inliner): Disable when doing late
780         addition of function.
781
782 2011-04-30  Jakub Jelinek  <jakub@redhat.com>
783
784         * dwarf2out.c (get_address_mode): New inline.
785         (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
786         if not dwarf_strict emit
787         DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
788         desirable.  Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
789         UNSIGNED_FLOAT, FIX and UNSIGNED_FIX.  Just return NULL for
790         FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
791         (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
792         dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
793         mem_loc_descriptor callers.
794         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
795         output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
796         Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
797         DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
798         (base_types): New variable.
799         (get_base_type_offset, calc_base_type_die_sizes,
800         base_type_for_mode, mark_base_types, base_type_cmp,
801         move_marked_base_types): New functions.
802         (calc_die_sizes): Assert that die_offset is 0 or equal to
803         next_die_offset.
804         (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
805         others defer to mem_loc_descriptor.  Adjust mem_loc_descriptor
806         callers.  If not dwarf_strict, call mem_loc_descriptor even for
807         non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
808         (gen_subprogram_die): Don't give up on call site parameters
809         with non-integral or large integral modes.  Adjust
810         mem_loc_descriptor callers.
811         (prune_unused_types): Call prune_unused_types_mark on base_types
812         vector entries.
813         (resolve_addr): Call mark_base_types.
814         (dwarf2out_finish): Call move_marked_base_types.
815
816         PR tree-optimization/48809
817         * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
818         type.
819         (gen_inbound_check): Don't compute index_expr - range_min in utype
820         again, instead reuse SSA_NAME initialized in build_arrays.
821         Remove two useless gsi_for_stmt calls.
822
823 2011-04-29  Jeff Law  <law@redhat.com>
824
825         * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
826
827 2011-04-29  Martin Jambor  <mjambor@suse.cz>
828
829         * cgraph.h (cgraph_postorder): Remove declaration.
830         * ipa-utils.h (ipa_free_postorder_info): Declare.
831         (ipa_reverse_postorder): Likewise.
832         * cgraphunit.c: Include ipa-utils.h.
833         (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
834         * ipa-inline.c: Include ipa-utils.h.
835         (ipa_inline): Update call to ipa_reverse_postorder.
836         * ipa-pure-const.c (propagate_pure_const): Update call to
837         ipa_reduced_postorder and ipa_print_order.  Call
838         ipa_free_postorder_info to clean up.
839         (propagate_nothrow): Likewise.
840         * ipa-reference.c (propagate): Removed a useless call to
841         ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
842         and ipa_print_order.  Call ipa_free_postorder_info to clean up.
843         * ipa.c: Include ipa-utils.h.
844         (ipa_profile): Update call to ipa_reverse_postorder.
845         (cgraph_postorder): Moved to...
846         * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
847         (ipa_utils_print_order): Renamed to ipa_print_order.
848         (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
849         comments.
850         (ipa_free_postorder_info): New function.
851         * passes.c: Include ipa-utils.h.
852         (do_per_function_toporder): Update call to ipa_reverse_postorder.
853         (ipa_write_summaries): Likewise.
854         * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
855         (cgraphunit.o): Likewise.
856         (ipa.o): Likewise.
857         (ipa-inline.o): Likewise.
858
859 2011-04-29  Jan Hubicka  <jh@suse.cz>
860
861         * gcc.dg/tree-ssa/inline-10.c: New testcase.
862         * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
863         * ipa-inline.h (clause_t): Turn into unsigned int.
864         * ipa-inline-analysis.c (add_clause): Do more simplification.
865         (and_predicates): Shortcut more cases.
866         (predicates_equal_p): Move forward; check that clauses are properly
867         ordered.
868         (or_predicates): Shortcut more cases.
869         (edge_execution_predicate): Rewrite as...
870         (set_cond_stmt_execution_predicate): ... this function; handle
871         __builtin_constant_p.
872         (set_switch_stmt_execution_predicate): New .
873         (compute_bb_predicates): New.
874         (will_be_nonconstant_predicate): Update TODO.
875         (estimate_function_body_sizes): Use compute_bb_predicates
876         and free them later, always try to estimate if stmt is constant.
877         (estimate_time_after_inlining, estimate_size_after_inlining):
878         Gracefully handle optimized out edges.
879         (read_predicate): Fix off by one error.
880
881 2011-04-29  Nicola Pero  <nicola.pero@meta-innovation.com>
882
883         * Makefile.in (ENABLE_MAINTAINER_RULES): New.
884
885 2011-04-27  Xinliang David Li  <davidxl@google.com>
886
887         * tree-profile.c (init_ic_make_global_vars): Set
888         tls attribute on ic vars.
889         * coverage.c (coverage_end_function): Initialize
890         function_list with zero.
891
892 2011-04-29  Richard Guenther  <rguenther@suse.de>
893
894         * builtins.c (fold_builtin_classify_type): Use integer_type_node
895         for the type of the result.
896         (fold_builtin_isascii): Likewise.
897         (fold_builtin_toascii): Use integer_type_node where appropriate.
898         (fold_builtin_logb): Likewise.
899         (fold_builtin_frexp): Likewise.
900         (fold_builtin_strstr): Likewise.
901         (fold_builtin_strpbrk): Likewise.
902         (fold_builtin_fputs): Likewise.
903         (fold_builtin_sprintf): Likewise.
904         (fold_builtin_snprintf): Likewise.
905         (fold_builtin_printf): Likewise.
906         (do_mpfr_remquo): Use a proper type for the assigned constant.
907         (do_mpfr_lgamma_r): Likewise.
908         * dwarf2out.c (resolve_one_addr): Use size_int.
909         * except.c (init_eh): Likewise.
910         (assign_filter_values): Use integer_type_node for filter values.
911         (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
912         indices.
913         * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
914         for EH region numbers.
915         * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
916         for the shift amount.
917
918 2011-04-29  Richard Guenther  <rguenther@suse.de>
919
920         * expr.h (expand_shift): Rename to ...
921         (expand_variable_shift): ... this.
922         (expand_shift): Take a constant shift amount.
923         * expmed.c (expand_shift): Rename to ...
924         (expand_variable_shift): ... this.
925         (expand_shift): New wrapper around expand_variable_shift.
926         * expr.c (convert_move, emit_group_load_1, emit_group_store,
927         optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
928         expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
929         * expmed.c (store_fixed_bit_field, extract_bit_field_1,
930         extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
931         expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
932         extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
933         emit_store_flag_1, emit_store_flag): Likewise.
934         * builtins.c (expand_builtin_signbit): Likewise.
935         * calls.c (load_register_parameters): Likewise.
936         * function.c (assign_parm_setup_block): Likewise.
937         * lower-subreg.c (resolve_shift_zext): Likewise.
938         * optabs.c (widen_bswap, expand_abs_nojump,
939         expand_one_cmpl_abs_nojump, expand_float): Likewise.
940         * spu/spu.c (spu_expand_extv): Likewise.
941         * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
942
943 2011-04-29  Richard Guenther  <rguenther@suse.de>
944
945         * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
946         for the remapped region number.
947         * predict.c (build_predict_expr): Use integer_type_node for the
948         predict kind.
949         * fold-const.c (fold_binary_loc): Use integer_type_node for
950         the shift amount.  Use a proper type for the PLUS_EXPR operand.
951
952 2011-04-29  Michael Matz  <matz@suse.de>
953
954         * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
955         other trees that just builtins.
956         (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
957
958 2011-04-29  Richard Guenther  <rguenther@suse.de>
959
960         * tree-nested.c (get_trampoline_type): Use size_int.
961         (get_nl_goto_field): Likewise.
962         * tree-eh.c (lower_try_finally_switch): Use integer_type_node
963         for all indexes.
964         (lower_eh_constructs_2): Likewise.
965         (lower_resx): Likewise.
966         (lower_eh_dispatch): Likewise.
967         * tree-mudflap.c (mf_build_string): Use size_int.
968         (mudflap_register_call): Use integer_type_node for the flag.
969         (mudflap_enqueue_constant): Use size_int.
970         * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
971         instead of rebuilding it.
972
973 2011-04-29  Richard Guenther  <rguenther@suse.de>
974
975         * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
976         Handle OBJ_TYPE_REF.
977         (find_func_aliases_for_call): Use it more consistently.
978
979 2011-04-29  Alexandre Oliva  <aoliva@redhat.com>
980
981         * haifa-sched.c (last_nondebug_scheduled_insn): New.
982         (rank_for_schedule): Use it.
983         (schedule_block): Set it.
984
985 2011-04-28  David Li  <davidxl@google.com>
986
987         * tree.c (crc32_string): Use crc32_byte.
988         (crc32_byte): New function.
989         * tree.h (crc32_byte): New function.
990         * gcov.c (read_graph_file): Handle new cfg_cksum.
991         (read_count_file): Ditto.
992         * profile.c (instrument_values): Ditto.
993         (get_exec_counts): Ditto.
994         (read_profile_edge_counts): Ditto.
995         (compute_branch_probabilities): Ditto.
996         (compute_value_histograms): Ditto.
997         (branch_prob): Ditto.
998         (end_branch_prob): Ditto.
999         * coverage.c (read_counts_file): Ditto.
1000         (get_coverage_counts): Ditto.
1001         (tree_coverage_counter_addr): Ditto.
1002         (coverage_checksum_string): Ditto.
1003         (coverage_begin_output): Ditto.
1004         (coverage_end_function): Ditto.
1005         (build_fn_info_type): Ditto.
1006         (build_fn_info_value): Ditto.
1007         * libgcov.c (gcov_exit): Ditto.
1008         * gcov-dump.c (tag_function): Ditto.
1009         (compute_checksum): Remove.
1010
1011 2011-04-29  Alan Modra  <amodra@gmail.com>
1012
1013         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
1014         unspec plus offset.  Tidy macho code.
1015
1016 2011-04-29  Martin Jambor  <mjambor@suse.cz>
1017
1018         * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
1019         node instead of a decl.  Update all callers.
1020         * cgraph.h: Update declaration.
1021
1022 2011-04-28  Ira Rosen  <ira.rosen@linaro.org>
1023
1024         PR tree-optimization/48765
1025         * tree-vectorizer.h (vect_make_slp_decision): Return bool.
1026         * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
1027         to indicate if loop aware SLP is being used.  Scan the statements
1028         and update the vectorization factor according to the type of
1029         vectorization before statement analysis.
1030         (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
1031         pass it to vect_analyze_loop_operations.
1032         (vectorizable_reduction): Set number of copies to 1 in case of pure
1033         SLP statement.
1034         * tree-vect-stmts.c (vectorizable_conversion,
1035         vectorizable_assignment, vectorizable_shift,
1036         vectorizable_operation, vectorizable_type_demotion,
1037         vectorizable_type_promotion, vectorizable_store, vectorizable_load):
1038         Likewise.
1039         (vectorizable_condition): Move the check that it is not SLP
1040         vectorization before the number of copies check.
1041         * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
1042         to vectorize the loop using SLP.
1043
1044 2011-04-28  Jakub Jelinek  <jakub@redhat.com>
1045
1046         PR middle-end/48597
1047         * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
1048         inline asm.
1049
1050 2011-04-28  Joseph Myers  <joseph@codesourcery.com>
1051
1052         * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
1053         *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
1054         (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
1055         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
1056         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
1057         linux*.h headers.
1058         * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
1059         * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
1060         * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
1061         * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
1062         * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
1063         * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
1064         REG_NAME.
1065         * config/i386/linux.h (REG_NAME): Don't define.
1066         * config/i386/linux64.h (REG_NAME): Don't define.
1067         * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
1068         Undefine before defining.
1069
1070 2011-04-28  Jan Hubicka  <jh@suse.cz>
1071
1072         * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
1073         nonconstant_names array.
1074         (estimate_function_body_sizes): Build nonconstant_names array; handle
1075         BUILT_IN_CONSTANT_P.
1076
1077 2011-04-28  Richard Guenther  <rguenther@suse.de>
1078
1079         PR bootstrap/48804
1080         Revert
1081         2011-04-28  Richard Guenther  <rguenther@suse.de>
1082
1083         * tree-ssa-structalias.c (solve_constraints): Build succ graph
1084         as late as possible.
1085
1086 2011-04-28  Richard Guenther  <rguenther@suse.de>
1087
1088         * tree-ssa-structalias.c (dump_constraint): Don't end the line.
1089         (debug_constraint): Do it here.
1090         (dump_constraints): And here.
1091         (rewrite_constraints): And here.
1092         (dump_constraint_edge): Remove.
1093         (dump_constraint_graph): Rewrite to produce DOT output.
1094         (solve_constraints): Build succ graph as late as possible.
1095         Dump constraint graphs before and after solving.
1096
1097 2011-04-28  Richard Guenther  <rguenther@suse.de>
1098
1099         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
1100         New function split out from ...
1101         (find_func_aliases): ... here.  Call it.
1102         (find_func_aliases_for_call): Likewise.
1103
1104 2011-04-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1105
1106         * internal-fn.h (internal_fn_name_array): Declare.
1107         (internal_fn_flags_array): Likewise.
1108
1109 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
1110
1111         * config/i386/i386.md (ssemodesuffix):  Merge with ssevecsize,
1112         ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
1113         Move from sse.md.
1114         (ssemodefsuffix): Remove.
1115         (ssevecmodesuffix): New mode attribute.
1116         (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
1117         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
1118         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
1119         *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
1120         *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
1121         *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
1122         *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
1123         ssemodesuffix mode attribute.
1124         (float splitters): Use ssevecmodesuffix mode attribute.
1125         * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
1126         (sseinsmode): Rename from avxvecmode.
1127         (avxsizesuffix): Rename from avxmodesuffix.
1128         (sseintvecmode): Rename from avxpermvecmode.
1129         (ssedoublevecmode): Rename from ssedoublesizemode.
1130         (ssehalfvecmode): Rename from avxhalfvecmode.
1131         (ssescalarmode): Rename from avxscalarmode.
1132         (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
1133         templates for ssemodesuffix mode attribute.
1134         (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
1135         mode attribute.
1136
1137         Adjust RTX patterns globally for renamed mode attributes.
1138
1139 2011-04-27  Jan Hubcika  <jh@suse.cz>
1140
1141         * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
1142         * ipa-inline-analysis.c: Include alloc-pool.h.
1143         (edge_predicate_pool): New.
1144         (trye_predicate_p): New function
1145         (false_predicate_p): New function.
1146         (add_clause): Sanity check that false clauses are "optimized";
1147         never add clauses to predicate that is already known to be false.
1148         (and_predicate): Use flase_predicate_p.
1149         (evaulate_predicate): Rename to ...
1150         (evaluate_predicate): ... this one; update all callers; assert
1151         that false is not listed among possible truths.
1152         (dump_predicate): Use true_predicate_p.
1153         (account_size_time): Use false_predicate_p.
1154         (evaulate_conditions_for_edge): Rename to ...
1155         (evaluate_conditions_for_edge) ... this one.
1156         (edge_set_predicate): New function.
1157         (inline_edge_duplication_hook): Duplicate edge predicates.
1158         (inline_edge_removal_hook): Free edge predicates.
1159         (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
1160         (dump_inline_summary): Update.
1161         (estimate_function_body_sizes): Set edge predicates.
1162         (estimate_calls_size_and_time): Handle predicates.
1163         (estimate_callee_size_and_time): Update.
1164         (remap_predicate): Add toplev_predicate; update comment.
1165         (remap_edge_predicates): New function.
1166         (inline_merge_summary): Compute toplev predicate; update.
1167         (read_predicate): New function.
1168         (read_inline_edge_summary): Use it.
1169         (inline_read_section): Likewise.
1170         (write_predicate): New function.
1171         (write_inline_edge_summary): Use it.
1172         (inline_write_summary): Likewise.
1173         (inline_free_summary): Free alloc pool and edge summary vec.
1174
1175 2011-04-27  Richard Guenther  <rguenther@suse.de>
1176
1177         * tree-ssa-structalias.c (changed_count): Remove.
1178         (changed): Use a bitmap.
1179         (unify_nodes): Adjust.
1180         (do_sd_constraint): Likewise.
1181         (do_ds_constraint): Likewise.
1182         (do_complex_constraint): Likewise.
1183         (solve_graph): Likewise.
1184
1185 2011-04-27  Jan Hubicka  <jh@suse.cz>
1186
1187         * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
1188
1189 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
1190
1191         * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
1192         (avx_vperm2f128_*_operand): Ditto.
1193         * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
1194         Use avx_vpermilp_parallel in insn condition.
1195         (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
1196         Use avx_vperm2f128_parallel in insn condition.
1197
1198 2011-04-27  Richard Guenther  <rguenther@suse.de>
1199
1200         * Makefile.in (tree-ssa-structalias.o): Remove
1201         gt-tree-ssa-structalias.h dependency.
1202         (GTFILES): Remove tree-ssa-structalias.c.
1203         * tree.c (allocate_decl_uid): New function.
1204         (make_node_stat): Use it.
1205         (copy_node_stat): Likewise.
1206         * tree.h (allocate_decl_uid): Declare.
1207         * tree-ssa-alias.h (delete_alias_heapvars): Remove.
1208         * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
1209         * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
1210         * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
1211         * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
1212         (struct heapvar_map): Likewise.
1213         (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
1214         heapvar_insert): Likewise.
1215         (make_heapvar_for): Rename to ...
1216         (make_heapvar): ... this.  Simplify.
1217         (fake_var_decl_obstack): New global var.
1218         (build_fake_var_decl): New function.
1219         (make_constraint_from_heapvar): Adjust.
1220         (handle_lhs_call): Likewise.
1221         (create_function_info_for): Likewise.
1222         (intra_create_variable_infos): Likewise.
1223         (init_alias_vars): Allocate fake_var_decl_obstack.
1224         (init_alias_heapvars, delete_alias_heapvars): Remove.
1225         (compute_points_to_sets): Do not call init_alias_heapvars.
1226         (ipa_pta_execute): Likewise.
1227         (delete_points_to_sets): Free fake_var_decl_obstack.
1228
1229 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1230
1231         * config/spu/divmovti4.c (union qword_UTItype): New data type.
1232         (si_from_UTItype, si_to_UTItype): New functions.
1233         (__udivmodti4): Use them to implement type-punning.
1234         * config/spu/multi3.c (union qword_TItype): New data type.
1235         (si_from_TItype, si_to_TItype): New functions.
1236         (__multi3): Use them to implement type-punning.
1237
1238 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1239
1240         * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
1241
1242 2011-04-27  Jan Hubicka  <jh@suse.cz>
1243
1244         * ipa-prop.c (function_insertion_hook_holder): New holder.
1245         (ipa_add_new_function): New function.
1246         (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
1247         Register/deregister holder.
1248
1249 2011-04-27  Richard Guenther  <rguenther@suse.de>
1250
1251         PR tree-optimization/48772
1252         * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
1253
1254 2011-04-27  Richard Guenther  <rguenther@suse.de>
1255
1256         * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
1257         TARGET_MEM_REF handling.
1258
1259 2011-04-27  Nick Clifton  <nickc@redhat.com>
1260
1261         * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
1262         ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
1263         (REG_CLASS_NAMES): Likewise.
1264         (REG_CLASS_CONTENTS): Likewise.
1265         (EVEN_ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
1266         (ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
1267         (FEVEN_REGS): New macro.  Alias for QUAD_ACC_REGS.
1268         (FPR_REGS): New macro.  Alias for QUAD_ACC_REGS.
1269         (EVEN_REGS): New macro.  Alias for QUAD_REGS.
1270         * config/frv/frv.c (frv_secondary_reload_class): Remove use of
1271         duplicate register classes.
1272         (frv_class_likely_spilled_p): Likewise.
1273         (frv_register_move_cost): Likewise.
1274
1275         * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
1276         end of the regno_reg_class array.
1277
1278 2011-04-27  Jakub Jelinek  <jakub@redhat.com>
1279
1280         PR c/48742
1281         * c-typeck.c (build_binary_op): Don't wrap arguments if
1282         int_operands is true.
1283
1284 2011-04-26  Kaz Kojima  <kkojima@gcc.gnu.org>
1285
1286         PR target/48767
1287         * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
1288         targetm.calls.must_pass_in_stack for void type.
1289
1290 2011-04-26  Jan Hubicka  <jh@suse.cz>
1291
1292         * cgraphbuild.c (build_cgraph_edges): Update call
1293         of cgraph_create_edge and cgraph_create_indirect_edge.
1294         * cgraph.c (cgraph_create_edge_including_clones,
1295         cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
1296         cgraph_update_edges_for_call_stmt_node): Do not take nest
1297         argument; do not initialize call_stmt_size/time.
1298         (dump_cgraph_node): Do not dump nest.
1299         (cgraph_clone_edge): Do not take loop_nest argument;
1300         do not propagate it; do not clone call_stmt_size/time.
1301         (cgraph_clone_node): Likewise.
1302         (cgraph_create_virtual_clone): Update.
1303         * cgraph.h (struct cgraph_edge): Remove
1304         call_stmt_size/call_stmt_time/loop_nest.
1305         (cgraph_create_edge, cgraph_create_indirect_edge,
1306         cgraph_create_edge_including_clones, cgraph_clone_node): Update
1307         prototype.
1308         * tree-emutls.c (gen_emutls_addr): Update.
1309         * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
1310         loop_nest; handle indirect calls, too.
1311         (clone_inlined_nodes): Do not care about updating inline summaries.
1312         * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
1313         * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
1314         stream call_stmt_size/call_stmt_time/loop_nest.
1315         * ipa-inline.c (edge_badness): Update.
1316         (ipa_inline): dump summaries after inlining.
1317         * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
1318         New.
1319         (inline_edge_summary): New function.
1320         * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
1321         (inline_edge_removal_hook): Handle edge summaries.
1322         (inline_edge_duplication_hook): New hook.
1323         (inline_summary_alloc): Alloc hooks.
1324         (initialize_growth_caches): Do not register removal hooks.
1325         (free_growth_caches); Do not free removal hook.
1326         (dump_inline_edge_summary): New function.
1327         (dump_inline_summary): Use it.
1328         (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
1329         (inline_update_callee_summaries): New function.
1330         (inline_merge_summary): Use it.
1331         (do_estimate_edge_time, do_estimate_edge_growth): Update.
1332         (read_inline_edge_summary): New function.
1333         (inline_read_section): Use it.
1334         (write_inline_edge_summary): New function.
1335         (inline_write_summary): Use it.
1336         (inline_free_summary): Free edge new holders.
1337         * tree-inline.c (copy_bb): Update.
1338
1339 2011-04-26  Jason Merrill  <jason@redhat.com>
1340
1341         * tree-eh.c (lower_try_finally_switch): Create the label along with
1342         the CASE_LABEL_EXPR.
1343
1344 2011-04-26  David S. Miller  <davem@davemloft.net>
1345             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1346
1347         * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
1348         * configure: Regenerate.
1349
1350 2011-04-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
1351
1352         PR target/48258
1353         * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
1354         reduction.
1355         (VEC_reduc): New code iterator and splitters for vector reduction.
1356         (VEC_reduc_name): Ditto.
1357         (VEC_reduc_rtx): Ditto.
1358         (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
1359         (reduc_<VEC_reduc_name>_v4sf): Ditto.
1360
1361         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
1362         support for extracting SF on VSX.
1363
1364         * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
1365         generating xscvspdp.
1366         (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
1367         (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
1368         double add, minimum, maximum vector reduction.
1369         (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
1370         (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
1371         optimize double vector reduction.
1372         (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
1373
1374 2011-04-26  Joseph Myers  <joseph@codesourcery.com>
1375
1376         * config/fr30/fr30.h (inhibit_libc): Don't define.
1377         * config/m32r/m32r-protos.h: Correct comment.
1378         * config/v850/v850.h (GHS_default_section_names,
1379         GHS_current_section_names): Use tree, not union tree_node *.
1380
1381 2011-04-26  Xinliang David Li  <davidxl@google.com>
1382
1383         * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
1384         * c-family/c-opts.c (c_common_handle_option): Set
1385         warn_maybe_uninitialized.
1386         * opts.c (common_handle_option): Ditto.
1387         * common.opt:  New option.
1388         * tree-ssa.c (warn_uninit): Add one more parameter.
1389         (warn_uninitialized_var): Pass warning code.
1390         * tree-flow.h: Interface change.
1391
1392
1393 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1394
1395         * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
1396         (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
1397         (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
1398
1399 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1400
1401         * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
1402         * config/mips/mips.opt (mmips-tfile): Remove.
1403
1404         * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
1405         mips-tdump reference to ...
1406         (Specific, alpha*-dec-osf5.1): ... here.  Adapt for Tru64 UNIX.
1407         * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
1408         reference by Tru64 UNIX.
1409
1410 2011-04-26  Jakub Jelinek  <jakub@redhat.com>
1411
1412         PR debug/48768
1413         * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
1414         is error_mark_node, set value to NULL.
1415
1416         PR tree-optimization/48734
1417         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
1418         if return value from maybe_fold_*_comparsions isn't something
1419         the code is prepared to handle.
1420
1421 2011-04-26  Uros Bizjak  <ubizjak@gmail.com>
1422
1423         * config/i386/predicates.md (ext_QIreg_operand): Remove extra
1424         mode check.
1425         (ext_QIreg_nomode_operands): Remove.
1426         * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
1427         (*andsi_1): Ditto.
1428         (*andhi_1): Ditto.
1429
1430 2011-04-26  Andrew Stubbs  <ams@codesourcery.com>
1431
1432         * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
1433
1434 2011-04-26  Richard Guenther  <rguenther@suse.de>
1435
1436         * c-typeck.c (build_unary_op): Do not expand array-refs via
1437         pointer arithmetic.  Only adjust qualifiers for function types.
1438
1439 2011-04-26  Richard Guenther  <rguenther@suse.de>
1440
1441         PR middle-end/48694
1442         * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
1443         * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
1444         compare the operands with OEP_CONSTANT_ADDRESS_OF.  Treat trees
1445         with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
1446
1447 2011-04-25  Paolo Carlini  <paolo.carlini@oracle.com>
1448
1449         * c-family/c-common.c (struct c_common_resword): Add __underlying_type.
1450         * c-family/c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
1451         * doc/extend.texi: Document __underlying_type.
1452
1453 2011-04-25  Segher Boessenkool  <segher@kernel.crashing.org>
1454
1455         * config/rs6000/titan.md (automata_option "progress"): Remove.
1456
1457 2011-04-25  Jeff Law  <law@redhat.com>
1458
1459         * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
1460
1461 2011-04-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
1462
1463         * system.h (ENUM_BITFIELD): Remove.
1464
1465 2011-04-25  Maxim Kuvyrkov  <maxim@codesourcery.com>
1466             Eric Botcazou  <ebotcazou@adacore.com>
1467
1468         * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
1469         for STORE_FLAG_VALUE==-1 case.
1470
1471 2011-04-24  Richard Sandiford  <richard.sandiford@linaro.org>
1472
1473         PR target/43804
1474         * config/m68k/constraints.md (T): Allow PIC operands that satisfy
1475         LEGITIMATE_PIC_OPERAND_P.
1476
1477 2011-04-24  Jan Hubicka  <jh@suse.cz>
1478
1479         * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
1480         WPA hack.
1481         * ipa-prop.h (ipa_get_param, ipa_is_param_used,
1482         ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
1483         ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
1484         * ipa-inline-analysis.c (add_clause): Fix clause ordering.
1485         (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
1486         Sanity check predicate length.
1487         (remap_predicate): Likewise; sanity check jump functions.
1488         (inline_read_section, inline_write_summary): Sanity check
1489         predicate length.
1490
1491 2011-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
1492
1493         PR other/48748
1494         * doc/extend.texi (Type Traits): Document __is_standard_layout,
1495         __is_literal_type, and __is_trivial; update throughout about
1496         possibly cv-qualified void types.
1497
1498 2011-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
1499
1500         * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
1501         testsuite and make it version agnostic.
1502
1503 2011-04-22  Jan Hubicka  <jh@suse.cz>
1504
1505         * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
1506
1507 2011-04-23  Jakub Jelinek  <jakub@redhat.com>
1508
1509         PR c/48685
1510         * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
1511         to VOID_TYPE even around MODIFY_EXPR.
1512
1513 2011-04-22  Mike Stump  <mikestump@comcast.net>
1514
1515         * gensupport.c (read_md_rtx): Fix typo in comment.
1516         * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
1517         comment.
1518
1519 2011-04-22  Jan Hubicka  <jh@suse.cz>
1520
1521         * gengtype.c (open_base_files): Add ipa-inline.h include.
1522         * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
1523         ipa-prop.c; update all uses.
1524         * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
1525         * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
1526         merge summary of inlined function into former caller.
1527         * ipa-inline.c (max_benefit): Remove.
1528         (edge_badness): Compensate for removal of benefits.
1529         (update_caller_keys): Use
1530         reset_node_growth_cache/reset_edge_growth_cache.
1531         (update_callee_keys): Likewise.
1532         (update_all_callee_keys): Likewise.
1533         (inline_small_functions): Do not collect max_benefit; do not reset
1534         estimated_growth; call free_growth_caches and initialize_growth_caches.
1535         * ipa-inline.h (struct condition, type clause_t, struct predicate,
1536         struct size_time_entry): New structures.
1537         (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
1538         (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
1539         and estimated_growth.
1540         (edge_growth_cache_entry): New structure.
1541         (node_growth_cache, edge_growth_cache): New global vars.
1542         (estimate_growth): Turn into inline.
1543         (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
1544         initialize_growth_caches, free_growth_caches): Declare.
1545         (estimate_edge_growth): Rewrite.
1546         (estimate_edge_time): Implement as inline cache lookup.
1547         (reset_node_growth_cache, reset_edge_growth_cache): New inline
1548         functions.
1549         (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
1550         (NUM_CONDITIONS): New constant.
1551         (predicate_conditions): New enum.
1552         (IS_NOT_CONSTANT): New constant.
1553         (edge_removal_hook_holder): New var.
1554         (node_growth_cache, edge_growth_cache): New global vars.
1555         (true_predicate, single_cond_predicate, false_predicate,
1556         not_inlined_predicate, add_condition, add_clause, and_predicates,
1557         or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
1558         dump_clause, dump_predicate, account_size_time,
1559         evaulate_conditions_for_edge): New functions.
1560         (inline_summary_alloc): Move to heap.
1561         (inline_node_removal_hook): Clear condition and entry vectors.
1562         (inline_edge_removal_hook): New function.
1563         (initialize_growth_caches, free_growth_caches): New function.
1564         (dump_inline_summary): Update.
1565         (edge_execution_predicate): New function.
1566         (will_be_nonconstant_predicate): New function.
1567         (estimate_function_body_sizes): Compute BB and constantness predicates.
1568         (compute_inline_parameters): Do not clear estimated_growth.
1569         (estimate_edge_size_and_time): New function.
1570         (estimate_calls_size_and_time): New function.
1571         (estimate_callee_size_and_time): New function.
1572         (remap_predicate): New function.
1573         (inline_merge_summary): New function.
1574         (do_estimate_edge_time): New function based on...
1575         (estimate_edge_time): ... this one.
1576         (do_estimate_edge_growth): New function.
1577         (do_estimate_growth): New function based on....
1578         (estimate_growth): ... this one.
1579         (inline_analyze_function): Analyze after deciding on jump functions.
1580         (inline_read_section): New function.
1581         (inline_read_summary): Use it.
1582         (inline_write_summary): Write all the new data.
1583         * ipa-prop.c (ipa_get_param_decl_index): Export.
1584         (ipa_lattice_from_jfunc): Move here from ipa-cp.c
1585         * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
1586         Declare.
1587         (ipa_get_lattice): Move here from ipa-cp.c
1588         * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
1589         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
1590         * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
1591         cgraph_edge_inlinable_p): Remove.
1592         * cgraphunit.c: Include ipainline.h
1593         (cgraph_process_new_functions): Update call of
1594         compute_inline_parameters.
1595
1596 2011-04-22  Richard Guenther  <rguenther@suse.de>
1597
1598         * tree.c (build_int_cst): Properly create canonicalized integer
1599         constants.
1600         (build_int_cst_type): Remove scary comments.
1601
1602 2011-04-22  Xinliang David Li  <davidxl@google.com>
1603
1604         * toplev.c (process_options): Enable -Werror=coverage-mismatch
1605         by default when -Wno-error is not specified.
1606         * opts-global.c (decode_options): Remove call to
1607         control_warning_options.
1608
1609 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
1610
1611         PR tree-optimization/48717
1612         * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
1613         ~A + A optimizations use build_int_cst_type instead of build_int_cst.
1614
1615 2011-04-22  Joseph Myers  <joseph@codesourcery.com>
1616
1617         * config/bfin/bfin-protos.h (Mmode): Don't define.  Expand
1618         definition where used.
1619
1620 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
1621
1622         PR c/48716
1623         * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
1624         TREE_STATIC variables declared inside of some OpenMP construct.
1625
1626 2011-04-22  Martin Jambor  <mjambor@suse.cz>
1627
1628         PR middle-end/48585
1629         * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
1630
1631 2011-04-22  Alexander Monakov  <amonakov@ispras.ru>
1632
1633         PR c/36750
1634         * c-typeck.c (pop_init_level): Do not warn about initializing
1635         with ` = {0}'.
1636
1637 2011-04-22  Alan Modra  <amodra@gmail.com>
1638
1639         * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
1640         when returning call_cookie.
1641         (rs6000_function_ok_for_sibcall): Allow sibcalls via function
1642         pointers, to functions with no more vector args than the current
1643         function, and some non-local calls for ABI_V4.
1644         * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
1645         sibcall_nonlocal_aix64): Combine to ..
1646         (sibcall_nonlocal_aix<mode>): ..this.  Handle function pointer calls.
1647         (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
1648         (sibcall_value_nonlocal_aix<mode>): ..likewise.
1649         (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
1650         (sibcall_value_nonlocal_sysv<mode>): Likewise.  Correct call cookie
1651         operand.
1652         * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
1653         sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
1654         sibcall_value_symbolic_64): Delete.
1655
1656 2011-04-21  Xinliang David Li  <davidxl@google.com>
1657
1658         * cgraph.h: Remove pid.
1659         * cgraph.c: Remove pid.
1660         * value-prof.c (init_node_map): New function.
1661         (del_node_map): New function.
1662         (find_func_by_funcdef_no): New function.
1663         (gimple_ic_transform): Call new function.
1664         * cgraphunit.c (cgraph_finalize_function): Remove pid.
1665         * function.c (get_last_funcdef_no): New function.
1666         * function.h (get_last_funcdef_no): New function.
1667         * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
1668         to libgcov function.
1669         (tree-profiling): Call node map init and delete function.
1670
1671 2011-04-21  Ian Lance Taylor  <iant@google.com>
1672
1673         * godump.c (go_format_type): Use exported Go name for anonymous
1674         field name.
1675
1676 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
1677
1678         * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
1679         Call builtin_function_type_list instead of builtin_function_type.
1680         (UNARY, BINARY, TRINARY, QUAD): Likewise.
1681
1682 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
1683
1684         * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
1685         build_function_type_list instead of build_function_type.
1686         Delete variable `endlink'.
1687
1688 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
1689
1690         * config/s390/s390.c (s390_init_builtins): Call
1691         build_function_type_list instead of build_function_type.
1692
1693 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
1694
1695         * config/ia64/ia64.c (ia64_init_builtins): Call
1696         build_function_type_list instead of builtin_function_type.
1697
1698 2011-04-21  Easwaran Raman  <eraman@google.com>
1699
1700         * cfgexpand.c (stack_var): Remove OFFSET...
1701         (add_stack_var): ...and its reference here...
1702         (expand_stack_vars): ...and here.
1703         (stack_var_cmp): Sort by descending order of size.
1704         (partition_stack_vars): Change heuristic.
1705         (union_stack_vars): Fix to reflect changes in partition_stack_vars.
1706         (dump_stack_var_partition): Add newline after each partition.
1707
1708 2011-04-21  Dimitrios Apostolou  <jimis@gmx.net>
1709             Jeff Law  <law@redhat.com>
1710
1711         * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
1712         * gengtype.c (matching_file_name_substitute): Likewise.
1713
1714 2011-04-21  Richard Guenther  <rguenther@suse.de>
1715
1716         PR lto/48703
1717         * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
1718
1719 2011-04-21  Eric Botcazou  <ebotcazou@adacore.com>
1720
1721         * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
1722
1723 2011-04-21  Richard Guenther  <rguenther@suse.de>
1724
1725         * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
1726         file name.
1727
1728 2011-04-21  Richard Guenther  <rguenther@suse.de>
1729
1730         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
1731         MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
1732         Use DECL_P, not SSA_VAR_P.
1733         (ptr_derefs_may_alias_p): Likewise.
1734         (ptr_deref_may_alias_ref_p_1): Likewise.
1735         (decl_refs_may_alias_p): Likewise.
1736         (refs_may_alias_p_1): Likewise.
1737         (ref_maybe_used_by_call_p_1): Likewise.
1738         (call_may_clobber_ref_p_1): Likewise.
1739         (indirect_ref_may_alias_decl_p): Assume indirect refrences
1740         are either MEM_REF or TARGET_MEM_REF.
1741         (indirect_refs_may_alias_p): Likewise.
1742         * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
1743         for MEM_EXPR of indirect calls.
1744
1745 2011-04-21  Tristan Gingold  <gingold@adacore.com>
1746
1747         * vmsdbgout.c (write_srccorr): Compute file length from the string.
1748         (dst_file_info_struct): Remove flen field.
1749         (lookup_filename): Remove code that set flen field.
1750
1751 2011-04-21  Tristan Gingold  <gingold@adacore.com>
1752
1753         * config/ia64/ia64.c (ia64_start_function): Add a guard.
1754
1755 2011-04-21  Uros Bizjak  <ubizjak@gmail.com>
1756
1757         PR target/48708
1758         * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
1759         vec_extract and vec_concat for non-SSE4_1 targets.
1760
1761 2011-04-21  Richard Guenther  <rguenther@suse.de>
1762
1763         * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
1764         return statements.
1765
1766 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
1767
1768         * config/i386/cygming.h (union tree_node, TREE): Don't define or
1769         undefine.
1770         (FILE): Don't undefine.
1771
1772 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
1773
1774         * config/alpha/alpha.c (struct machine_function): Use rtx, not
1775         struct rtx_def *.
1776         * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
1777         struct rtx_def *.
1778         * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
1779         * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
1780         * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
1781         rtx_def *.
1782         * config/m32c/m32c-protos.h (MM, UINT): Don't define.  Expand
1783         definitions where used.
1784         * config/microblaze/microblaze.h (struct microblaze_args): Use
1785         rtx, not struct rtx_def *.
1786         * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
1787         rtx_def *.
1788         * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
1789         * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
1790         * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
1791         not struct rtx_def *.
1792         * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
1793         struct rtx_def *.
1794         * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
1795         rtx_def *.
1796         * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
1797
1798 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
1799
1800         * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
1801         operand_equal_p to compare DR_BASE_ADDRESSes.
1802         (vect_check_interleaving): Likewise.
1803
1804 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
1805
1806         PR target/46329
1807         * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
1808         for all Neon struct constants.
1809
1810 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
1811
1812         * target.def (legitimate_constant_p): New hook.
1813         * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
1814         (TARGET_LEGITIMATE_CONSTANT_P): ...this.
1815         * doc/tm.texi: Regenerate.
1816         * hooks.h (hook_bool_mode_rtx_true): Declare.
1817         * hooks.c (hook_bool_mode_rtx_true): Define.
1818         * system.h (LEGITIMATE_CONSTANT_P): Poison.
1819         * calls.c (precompute_register_parameters): Replace uses of
1820         LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
1821         (emit_library_call_value_1): Likewise.
1822         * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
1823         (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
1824         * ira-costs.c (scan_one_insn): Likewise.
1825         * recog.c (general_operand, immediate_operand): Likewise.
1826         * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
1827         * reload1.c (init_eliminable_invariants): Likewise.
1828
1829         * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
1830         mode argument.
1831         * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
1832         * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
1833         argument.
1834         (TARGET_LEGITIMATE_CONSTANT_P): Define.
1835         * config/alpha/predicates.md (input_operand): Update call to
1836         alpha_legitimate_constant_p.
1837
1838         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
1839         * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
1840         (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
1841         * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
1842         (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
1843         (arm_legitimate_constant_p): New functions.
1844         (arm_cannot_force_const_mem): Make static.
1845
1846         * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
1847
1848         * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
1849         * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
1850         * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
1851         instead of bfin_legitimate_constant_p.
1852         (bfin_legitimate_constant_p): Make static.  Add a mode argument.
1853         (TARGET_LEGITIMATE_CONSTANT_P): Define.
1854
1855         * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
1856
1857         * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
1858
1859         * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
1860         * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
1861         * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
1862         (frv_legitimate_constant_p): Make static.  Add a mode argument.
1863
1864         * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
1865         * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
1866         * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
1867
1868         * config/i386/i386-protos.h (legitimate_constant_p): Delete.
1869         * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
1870         * config/i386/i386.c (legitimate_constant_p): Rename to...
1871         (ix86_legitimate_constant_p): ...this.  Make static.  Add a mode
1872         argument.
1873         (ix86_cannot_force_const_mem): Update accordingly.
1874         (ix86_legitimate_address_p): Likewise.
1875         (TARGET_LEGITIMATE_CONSTANT_P): Define.
1876         * config/i386/i386.md: Update commentary.
1877
1878         * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
1879         * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
1880         * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
1881         (ia64_legitimate_constant_p): Make static.  Add a mode argument.
1882
1883         * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
1884
1885         * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
1886         * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
1887         * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
1888         (lm32_legitimate_constant_p): Make static.  Add a mode argument.
1889
1890         * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
1891         * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
1892         * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
1893
1894         * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
1895         * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
1896         (m32r_legitimate_constant_p): New function.
1897
1898         * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
1899         * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
1900         LEGITIMATE_CONSTANT_P.
1901         (LEGITIMATE_CONSTANT_P): Delete.
1902         * config/m68k/m68k.c (m68k_expand_prologue): Call
1903         m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
1904         (m68k_legitimate_constant_p): New function.
1905         * config/m68k/m68k.md: Update comments.
1906
1907         * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
1908         * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
1909         (mcore_legitimate_constant_p): New function.
1910
1911         * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
1912         * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
1913         * config/mep/mep.c (mep_legitimate_constant_p): Make static.
1914         Add a mode argument.
1915         (mep_legitimate_address): Update accordingly.
1916         (TARGET_LEGITIMATE_CONSTANT_P): Define.
1917
1918         * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
1919         Delete.
1920         * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
1921         * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
1922         static.  Check OP's mode for VOIDmode.
1923         (microblaze_legitimate_constant_p): New function.
1924         (TARGET_LEGITIMATE_CONSTANT_P): Define.
1925
1926         * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
1927         * config/mips/mips.c (mips_legitimate_constant_p): New function.
1928         (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
1929         (TARGET_LEGITIMATE_CONSTANT_P): Define.
1930         * config/mips/predicates.md: Update comments.
1931
1932         * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
1933         * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
1934         * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
1935         (mmix_legitimate_constant_p): Make static, return a bool, and take
1936         a mode argument.
1937         (mmix_print_operand_address): Update accordingly.
1938
1939         * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
1940         Delete.
1941         * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
1942         * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
1943         static.  Add a mode argument.
1944         (TARGET_LEGITIMATE_CONSTANT_P): Define.
1945
1946         * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
1947
1948         * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
1949         * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
1950         (pa_legitimate_constant_p): New function.
1951
1952         * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
1953
1954         * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
1955         * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
1956         (pdp11_legitimate_constant_p): New function.
1957
1958         * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
1959         * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
1960         (rs6000_legitimate_constant_p): New function.
1961
1962         * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
1963         (rx_legitimate_constant_p): ...this.
1964         * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
1965         * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
1966         (rx_legitimate_constant_p): ...this.
1967         (TARGET_LEGITIMATE_CONSTANT_P): Define.
1968         * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
1969
1970         * config/s390/s390-protos.h (legitimate_constant_p): Delete.
1971         * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
1972         * config/s390/s390.c (legitimate_constant_p): Rename to...
1973         (s390_legitimate_constant_p): ...this.  Make static, return a bool,
1974         and add a mode argument.
1975         (TARGET_LEGITIMATE_CONSTANT_P): Define.
1976
1977         * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
1978
1979         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
1980         * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
1981         (sh_legitimate_constant_p): New function.
1982
1983         * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
1984         * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
1985         * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
1986         (legitimate_constant_p): Rename to...
1987         (sparc_legitimate_constant_p): ...this.  Make static.  Add a mode
1988         argument.
1989         (constant_address_p): Update accordingly.
1990
1991         * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
1992         argument and return a bool.
1993         * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
1994         * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
1995         (spu_legitimate_constant_p): Add a mode argument and return a bool.
1996         (spu_rtx_costs): Update accordingly.
1997         * config/spu/predicates.md (vec_imm_operand): Likewise.
1998
1999         * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
2000
2001         * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
2002         * config/v850/v850.c (v850_legitimate_constant_p): New function.
2003         (TARGET_LEGITIMATE_CONSTANT_P): Define.
2004
2005         * config/vax/vax-protos.h (legitimate_constant_p): Delete.
2006         * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
2007         * config/vax/vax.c (legitimate_constant_p): Likewise.
2008
2009         * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
2010         * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2011         (xtensa_legitimate_constant_p): New function.
2012
2013 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
2014
2015         * target.def (cannot_force_const_mem): Add a mode argument.
2016         * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
2017         * doc/tm.texi: Regenerate.
2018         * hooks.h (hook_bool_mode_rtx_false): Declare.
2019         * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
2020         (hook_bool_mode_const_rtx_true): Likewise.
2021         (hook_bool_mode_rtx_false): New function.
2022         * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
2023         to be non-VOID.  Update call to cannot_force_const_mem.
2024         (find_reloads): Update accordingly.
2025         * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
2026         * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
2027         argument.
2028         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
2029         * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
2030         * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
2031         * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
2032         * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
2033         * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
2034         * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
2035         * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
2036         (m68k_cannot_force_const_mem): ...this new function.
2037         * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
2038         argument.
2039         (mips_const_insns, mips_legitimize_const_move): Update calls.
2040         (mips_secondary_reload_class): Likewise.
2041         * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
2042         (pa_cannot_force_const_mem): ...this new function.
2043         * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
2044         (rs6000_cannot_force_const_mem): ...this new function.
2045         * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
2046         argument.
2047         * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
2048         * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
2049         to...
2050         (xtensa_cannot_force_const_mem): ...this new function.
2051
2052 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
2053
2054         * config/mips/mips.c (mips16_build_function_stub): Call
2055         build_function_type_list instead of build_function_type.
2056         (mips16_build_call_stub): Likewise.
2057
2058 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
2059
2060         * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
2061         instead of build_function_type.
2062
2063 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
2064
2065         * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
2066         instead of build_function_type.
2067
2068 2011-04-20  Uros Bizjak  <ubizjak@gmail.com>
2069
2070         PR target/48678
2071         * config/i386/i386.md (insv): Change operand 0 constraint to
2072         "register_operand".  Change operand 1 and 2 constraint to
2073         "const_int_operand".  Expand to pinsr{b,w,d,q} * when appropriate.
2074         * config/i386/sse.md (sse4_1_pinsrb): Export.
2075         (sse2_pinsrw): Ditto.
2076         (sse4_1_pinsrd): Ditto.
2077         (sse4_1_pinsrq): Ditto.
2078         * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
2079         * config/i386/i386.c (ix86_expand_pinsr): New.
2080
2081 2011-04-20  Easwaran Raman  <eraman@google.com>
2082
2083         * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
2084         containing union type only with -fstrict-aliasing.
2085
2086 2011-04-20  Jim Meyering  <meyering@redhat.com>
2087
2088         Remove useless if-before-free tests.
2089         * calls.c (expand_call, save_area): Likewise.
2090         * cfgcleanup.c (try_forward_edges): Likewise.
2091         * collect2.c (collect_execute): Likewise.
2092         * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
2093         * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
2094         * coverage.c (coverage_checksum_string): Likewise.
2095         * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
2096         * cselib.c (cselib_init): Likewise.
2097         * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
2098         (df_set_clean_cfg): Likewise.
2099         * function.c (free_after_compilation): Likewise.
2100         * gcc.c (do_spec_1, main): Likewise.
2101         * gcov.c (create_file_names): Likewise.
2102         * gensupport.c (identify_predicable_attribute): Likewise.
2103         * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
2104         * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
2105         * haifa-sched.c (haifa_finish_h_i_d): Likewise.
2106         * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
2107         * ipa-pure-const.c (local_pure_const): Likewise.
2108         * ipa-reference.c (propagate): Likewise.
2109         * ira-costs.c (free_ira_costs): Likewise.
2110         * ira.c (free_register_move_costs, build_insn_chain): Likewise.
2111         * matrix-reorg.c (mat_free): Likewise.
2112         * prefix.c (get_key_value): Likewise.
2113         * profile.c (compute_value_histograms): Likewise.
2114         * reload1.c (free_reg_equiv): Likewise.
2115         * sched-deps.c (free_deps): Likewise.
2116         * sel-sched-ir.c (fence_clear): Likewise.
2117         * sese.c (set_rename, if_region_set_false_region): Likewise.
2118         * tree-data-ref.c (free_rdg): Likewise.
2119         * tree-eh.c (lower_try_finally): Likewise.
2120         * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
2121         * tree-ssa-live.c (delete_var_map): Likewise.
2122         * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
2123         * tree-ssa-pre.c (phi_trans_add): Likewise.
2124
2125 2011-04-20  Jakub Jelinek  <jakub@redhat.com>
2126
2127         PR tree-optimization/48611
2128         * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
2129         beyond ERT_MUST_NOT_THROW region.
2130
2131 2011-04-20  Catherine Moore  <clm@codesourcery.com>
2132
2133         * config/mips/mips.opt (mfix-24k): New.
2134         * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
2135         * config/mips/mips.md (length): Increase by 4 for stores if
2136         fixing 24K errata.
2137         * config/mips/mips.c (mips_reorg_process_insns): Do not allow
2138         all noreorder if fixing 24K errata.
2139         * doc/invoke.texi: Document mfix-24k.
2140
2141 2011-04-20  Chung-Lin Tang  <cltang@codesourcery.com>
2142
2143         * config/arm/arm.c (arm_legitimize_reload_address): For NEON
2144         quad-word modes, reduce to 9-bit index range when above 1016 limit.
2145
2146 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
2147
2148         * config/arm/arm.c (arm_gen_constant): Move movw support ....
2149         (const_ok_for_op): ... to here.
2150
2151 2011-04-20  Kai Tietz  <ktietz@redhat.com>
2152
2153         * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
2154         and (X && !Y) | (!X && Y) optimization to (X ^ Y).
2155
2156 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
2157
2158         * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
2159
2160 2011-04-20  Richard Guenther  <rguenther@suse.de>
2161
2162         PR tree-optimization/47892
2163         * tree-if-conv.c (if_convertible_stmt_p): Const builtins
2164         are if-convertible.
2165
2166 2011-04-20  Eric Botcazou  <ebotcazou@adacore.com>
2167
2168         * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
2169
2170 2011-04-20  Tristan Gingold  <gingold@adacore.com>
2171
2172         * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
2173
2174 2011-04-20  Georg-Johann Lay  <avr@gjlay.de>
2175
2176         PR target/18145
2177
2178         * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
2179         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
2180         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
2181         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
2182         (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
2183
2184         * config/avr/avr-protos.h (avr_asm_output_aligned_common):
2185         New prototype.
2186
2187         * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
2188         (avr_asm_named_section, avr_asm_output_aligned_common,
2189         avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
2190         New functions to update...
2191         (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
2192         (avr_asm_init_sections): Overwrite section callbacks for
2193         data_section, bss_section.
2194         (avr_file_start): Move output of __do_copy_data, __do_clear_bss
2195         from here to...
2196         (avr_file_end): ...here.
2197
2198 2011-04-20  Richard Guenther  <rguenther@suse.de>
2199
2200         PR middle-end/48695
2201         * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
2202         objects and types here.  Adjust for their offset before comparing.
2203
2204 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
2205
2206         * tree-vect-stmts.c (vectorizable_store): Only chain one related
2207         statement per copy.
2208
2209 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
2210
2211         * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
2212         (GIMPLE_H): Include $(INTERNAL_FN_H).
2213         (OBJS-common): Add internal-fn.o.
2214         (internal-fn.o): New rule.
2215         * internal-fn.def: New file.
2216         * internal-fn.h: Likewise.
2217         * internal-fn.c: Likewise.
2218         * gimple.h: Include internal-fn.h.
2219         (GF_CALL_INTERNAL): New gf_mask.
2220         (gimple_statement_call): Put fntype into a union with a new
2221         internal_fn field.
2222         (gimple_build_call_internal): Declare.
2223         (gimple_build_call_internal_vec): Likewise.
2224         (gimple_call_same_target_p): Likewise.
2225         (gimple_call_internal_p): New function.
2226         (gimple_call_internal_fn): Likewise.
2227         (gimple_call_fntype): Return null for internal calls.
2228         (gimple_call_set_fntype): Assert that the function is not internal.
2229         (gimple_call_set_fn): Likewise.
2230         (gimple_call_set_fndecl): Likewise.
2231         (gimple_call_set_internal_fn): New function.
2232         (gimple_call_addr_fndecl): Handle null functions.
2233         (gimple_call_return_type): Likewise null types.
2234         * gimple.c (gimple_build_call_internal_1): New function.
2235         (gimple_build_call_internal): Likewise.
2236         (gimple_build_call_internal_vec): Likewise.
2237         (gimple_call_same_target_p): Likewise.
2238         (gimple_call_flags): Handle calls to internal functions.
2239         (gimple_call_fnspec): New function.
2240         (gimple_call_arg_flags, gimple_call_return_flags): Use it.
2241         (gimple_has_side_effects): Handle null functions.
2242         (gimple_rhs_has_side_effects): Likewise.
2243         (gimple_call_copy_skip_args): Handle calls to internal functions.
2244         * cfgexpand.c (expand_call_stmt): Likewise.
2245         * expr.c (expand_expr_real_1): Assert that the call isn't internal.
2246         * gimple-fold.c (gimple_fold_call): Handle null functions.
2247         (gimple_fold_stmt_to_constant_1): Don't fold
2248         calls to internal functions.
2249         * gimple-low.c (gimple_check_call_args): Handle calls to internal
2250         functions.
2251         * gimple-pretty-print.c (dump_gimple_call): Likewise.
2252         * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
2253         * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
2254         (do_warn_unused_result): Likewise.
2255         * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
2256         * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
2257         * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
2258         the target of a call.
2259         (initialize_hash_element): Update accordingly.
2260         (hashable_expr_equal_p): Use gimple_call_same_target_p.
2261         (iterative_hash_hashable_expr): Handle calls to internal functions.
2262         (print_expr_hash_elt): Likewise.
2263         * tree-ssa-pre.c (can_value_number_call): Likewise.
2264         (eliminate): Handle null functions.
2265         * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
2266         * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
2267         (find_func_aliases): Likewise.
2268         * value-prof.c (gimple_ic_transform): Likewise.
2269         (gimple_indirect_call_to_profile): Likewise.
2270         * lto-streamer-in.c (input_gimple_stmt): Likewise.
2271         * lto-streamer-out.c (output_gimple_stmt): Likewise.
2272
2273 2011-04-19  Jan Hubicka  <jh@suse.cz>
2274
2275         * ipa-inline-transform.c (save_inline_function_body): Add comments.
2276         * ipa-inline.c (inline_small_functions): Compute summaries first,
2277         populate heap later.
2278
2279 2011-04-19  Jan Hubicka  <jh@suse.cz>
2280
2281         * cgraph.h (save_inline_function_body): Remove.
2282         * ipa-inline-transform.c: New file, broke out of...
2283         * ipa-inline.c: ... this one; Update toplevel comment.
2284         (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
2285         make global.
2286         (update_noncloned_frequencies): Move to ipa-inline-transform.c
2287         (cgraph_mark_inline_edge): Rename to inline_call; move to
2288         ipa-inline-transform.c.
2289         (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
2290         move to ipa-inline-transform.c
2291         (recursive_inlining, inline_small_functions, flatten_function,
2292         ipa_inline, inline_always_inline_functions,
2293         early_inline_small_functions): Update.
2294         (inline_transform): Move to ipa-inline-transform.c.
2295         * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
2296         Declare.
2297         * Makefile.in (ipa-inline-transform.o): New file.
2298         * cgraphunit.c (save_inline_function_body): Move to
2299         ipa-inline-transform.c
2300
2301 2011-04-19  DJ Delorie  <dj@redhat.com>
2302
2303         * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
2304         registers if we already know there aren't any.
2305         (m32c_emit_epilogue): Don't emit a barrier here.
2306         (m32c_emit_eh_epilogue): Likewise.
2307         * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
2308         operands at expand time.
2309         * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
2310         int" wchar type.
2311         (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
2312         duplicates.  Provide aliases instead.
2313         * config/m32c/prologue.md (eh_return): Emit a barrier here.
2314         (eh_epilogue): Add a "(return)" here as a hint to other parts of
2315         the compiler.
2316
2317 2011-04-19  Anatoly Sokolov  <aesok@post.ru>
2318
2319         * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
2320         * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
2321         (general_or_i64_p, sparc_register_move_cost): New function.
2322
2323 2011-04-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2324
2325         * doc/install.texi (Configuration, --enable-threads): Remove mach.
2326         Add lynx, mipssde.  Sort table.
2327
2328 2011-04-19  Xinliang David Li  <davidxl@google.com>
2329
2330         * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
2331         not negative.
2332
2333 2011-04-19  Jakub Jelinek  <jakub@redhat.com>
2334
2335         PR target/48678
2336         * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
2337         is a SUBREG with non-MODE_INT mode inside of it.
2338
2339 2011-04-19  Martin Jambor  <mjambor@suse.cz>
2340
2341         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
2342         also according to actual contants.
2343         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
2344         (gimple_fold_call): Use it.
2345         * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
2346
2347 2011-04-19  Martin Jambor  <mjambor@suse.cz>
2348
2349         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
2350         non-pointer assignments.
2351
2352 2011-04-19  Martin Jambor  <mjambor@suse.cz>
2353
2354         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
2355         account anc_offset and otr_type from the indirect edge info.
2356         * ipa-prop.c (get_ancestor_addr_info): New function.
2357         (compute_complex_ancestor_jump_func): Assignment analysis moved to
2358         get_ancestor_addr_info, call it.
2359         (ipa_note_param_call): Do not initialize information about polymorphic
2360         calls, return the indirect call graph edge.  Remove the last
2361         parameter, adjust all callers.
2362         (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
2363         parameters.  Initialize polymorphic information in the indirect edge.
2364
2365 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
2366
2367         PR lto/48148
2368         * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
2369         the types if they have different enumeration identifiers.
2370
2371 2011-04-19  Jan Hubicka  <jh@suse.cz>
2372
2373         * cgraph.h (cgraph_optimize_for_size_p): Declare.
2374         * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
2375         * predict.c (cgraph_optimize_for_size_p): Break out from ...
2376         (optimize_function_for_size_p) ... here.
2377
2378 2011-04-19  Richard Guenther  <rguenther@suse.de>
2379
2380         PR lto/48207
2381         * tree.c (free_lang_data): Do not reset the decl-assembler-name
2382         langhook.
2383
2384 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
2385
2386         * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
2387         if DECL_NO_INLINE_WARNING_P is set on the function.
2388
2389 2011-04-19  Bernd Schmidt  <bernds@codesourcery.com>
2390
2391         PR fortran/47976
2392         * reload1.c (inc_for_reload): Return void. All callers changed.
2393         (emit_input_reload_insns): Don't try to delete previous output
2394         reloads to a register, or record spill_reg_store for autoincs.
2395
2396 2011-04-19  Basile Starynkevitch  <basile@starynkevitch.net>
2397
2398         * gengtype.h: Updated copyright year.
2399         (struct input_file_st): Add inpisplugin field.
2400         (type_fileloc): New function.
2401         * gengtype.c
2402         (write_typed_struct_alloc_def): Add gcc_assert.
2403         (write_typed_alloc_defns): Ditto. Don't output for plugin files.
2404         (write_typed_alloc_defns): Don't output for plugin files.
2405         (input_file_by_name): Clear inpisplugin field.
2406         (main): Set inpisplugin field for plugin files.
2407
2408 2011-04-19  Nicola Pero  <nicola.pero@meta-innovation.com>
2409
2410         * gengtype-state.c (string_eq): New.
2411         (read_state): Use string_eq instead of strcmp when creating the
2412         state_ident_tab.
2413
2414 2011-04-19  Wei Guozhi  <carrot@google.com>
2415
2416         PR target/47855
2417         * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
2418         * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
2419         linkage.
2420         * config/arm/constraints.md (Uu): New constraint.
2421         * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
2422
2423 2011-04-19  Tristan Gingold  <gingold@adacore.com>
2424
2425         * config.gcc (-*-*-*vms): Added.
2426         (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
2427         definitions moved.
2428         * config/vms/vms-ld.c: New file.
2429         * config/vms/vms-ar.c: New file.
2430         * config/vms/t-vmsnative: New file.
2431
2432 2011-04-18  Xinliang David Li  <davidxl@google.com>
2433
2434         * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
2435
2436 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
2437
2438         PR middle-end/48661
2439         * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
2440         if TREE_TYPE (v) is non-NULL.
2441
2442         * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
2443         gimple_get_virt_mehtod_for_binfo.
2444         * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
2445         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
2446         callers.
2447         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
2448
2449 2011-04-18  Michael Matz  <matz@suse.de>
2450             Steve Ellcey  <sje@cup.hp.com>
2451
2452         * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
2453         use its mode as source mode if it isn't VOIDmode.
2454
2455 2011-04-18  Dennis, CHENG Renquan  <crquan@fedoraproject.org>
2456
2457         * doc/passes.texi: Fill crossref nodes.
2458
2459 2011-04-18  Jim Meyering  <meyering@redhat.com>
2460
2461         Fix doubled-word typos in comments and strings
2462         * config/alpha/vms-unwind.h: s/for for/for/
2463         * config/arm/unwind-arm.h: Likewise.
2464         * config/microblaze/microblaze.c: Likewise.
2465         * config/sh/constraints.md: s/in in/in/
2466         * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
2467
2468 2011-04-18  Uros Bizjak  <ubizjak@gmail.com>
2469
2470         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
2471         (AVX_FLOAT_MODE_P): Ditto.
2472         (AVX128_VEC_FLOAT_MODE_P): Ditto.
2473         (AVX256_VEC_FLOAT_MODE_P): Ditto.
2474         (AVX_VEC_FLOAT_MODE_P): Ditto.
2475         * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
2476         (UNSPEC_MASKSTORE): Ditto.
2477         * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
2478         Merge from <sse>_movmsk<ssemodesuffix> and
2479         avx_movmsk<ssemodesuffix>256.  Use VF mode iterator.
2480         (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64.  Use P mode
2481         iterator.
2482         (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
2483         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
2484         (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
2485
2486 2011-04-18  Jan Hubicka  <jh@suse.cz>
2487
2488         * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
2489
2490         * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
2491         (want_inline_function_called_once_p): Break out the logic from
2492         ipa_inline.
2493         (edge_badness): Ensure that profile is not misupdated.
2494         (lookup_recursive_calls): Prioritize by call frequencies.
2495         (inline_small_functions): Move program size estimates here;
2496         actually process whole queue even when unit growth has been
2497         met. (to properly compute inline_failed reasons and for the
2498         case unit size decrease.) Revisit comments on recursive inlining.
2499         (ipa_inline): Remove unit summary code; first inline hot calls
2500         of functions called once, cold calls next.
2501         (order, nnodes): Remove unused variables.
2502         * Makefile.in (ipa-inline.o): No longer depent on ggc files.
2503         (GTFILES): Remove ipa-inline.c
2504         * sel-sched.c (fill_insns): Silence uninitialized var warning.
2505
2506 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
2507
2508         * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
2509
2510 2011-04-18  Jie Zhang  <jie@codesourcery.com>
2511             Richard Earnshaw  <rearnsha@arm.com>
2512
2513         * arm.c (neon_builtin_type_bits): Remove.
2514         (typedef enum neon_builtin_mode): New.
2515         (T_MAX): Don't define.
2516         (typedef enum neon_builtin_datum): Remove bits, codes[],
2517         num_vars and base_fcode.  Add mode, code and fcode.
2518         (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
2519         VAR10): Change accordingly.
2520         (neon_builtin_data[]): Change accordingly
2521         (arm_init_neon_builtins): Change accordingly.
2522         (neon_builtin_compare): Remove.
2523         (locate_neon_builtin_icode): Remove.
2524         (arm_expand_neon_builtin): Change accordingly.
2525
2526         * arm.h (enum arm_builtins): Move to ...
2527         * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
2528
2529         * arm.c (arm_builtin_decl): Declare.
2530         (TARGET_BUILTIN_DECL): Define.
2531         (enum arm_builtins): Correct ARM_BUILTIN_MAX.
2532         (arm_builtin_decls[]): New.
2533         (arm_init_neon_builtins): Store builtin declarations in
2534         arm_builtin_decls[].
2535         (arm_init_tls_builtins): Likewise.
2536         (arm_init_iwmmxt_builtins): Likewise.  Refactor initialization code.
2537         (arm_builtin_decl): New.
2538
2539 2011-04-18  Richard Guenther  <rguenther@suse.de>
2540
2541         * tree.c (upper_bound_in_type): Build properly canonicalized
2542         INTEGER_CSTs.
2543         (lower_bound_in_type): Likewise.
2544
2545 2011-04-18  Richard Guenther  <rguenther@suse.de>
2546
2547         * gimple.h (gimple_call_addr_fndecl): New function.
2548         (gimple_call_fndecl): Use it.
2549         * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
2550         for direct calls.
2551         * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
2552         * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
2553
2554 2011-04-18  Richard Guenther  <rguenther@suse.de>
2555
2556         PR middle-end/48650
2557         * tree.c (build_string): STRING_CST is now derived from tree_typed.
2558
2559 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
2560
2561         PR lto/48492
2562         * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
2563         DECL_IN_CONSTANT_POOL without RTL.
2564
2565 2011-04-18  Ulrich Weigand  <ulrich.weigand@linaro.org>
2566             Ira Rosen  <ira.rosen@linaro.org>
2567
2568         PR target/48252
2569         * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
2570         to match neon_vzip/vuzp/vtrn_internal.
2571         * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
2572         outputs explicitly dependent on both inputs.
2573         (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
2574
2575 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
2576
2577         PR tree-optimization/48616
2578         * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
2579         whether the shift is by scalar or vector based on whether all SLP
2580         scalar stmts have the same rhs.
2581
2582 2011-04-17  Chung-Lin Tang  <cltang@codesourcery.com>
2583
2584         * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
2585         memory operands.
2586
2587 2011-04-17  Richard Sandiford  <rdsandiford@googlemail.com>
2588
2589         * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
2590         registers.
2591
2592 2011-04-17  Jan Hubicka  <jh@suse.cz>
2593
2594         * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
2595         * cgrpahunit.c (cgraph_finalize_function): Do not set
2596         finalized_by_frontend.
2597         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
2598         finalized_by_frontend.
2599
2600 2011-04-17  Jan Hubicka  <jh@suse.cz>
2601
2602         * cgraph.c (cgraph_clone_node): Do not handle vtable_method
2603         * cgraph.h (struct cgraph_local_info): Drop vtable_method.
2604         * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
2605         * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
2606         method.
2607         * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
2608         gimple-fold.c
2609         * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
2610
2611 2011-04-17  Eric Botcazou  <ebotcazou@adacore.com>
2612
2613         PR lto/48538
2614         * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
2615         is non-null before accessing it.
2616         (input_cgraph): Remove trailing spaces.
2617
2618 2011-04-17  Revital Eres  <revital.eres@linaro.org>
2619
2620         * params.def (sms-min-sc): New param flag.
2621         * modulo-sched.c (sms_schedule): Use it.
2622         * doc/invoke.texi (sms-min-sc): Document it.
2623
2624 2011-04-17  Jan Hubicka  <jh@suse.cz>
2625
2626         * lto-symtab.c (lto_cgraph_replace_node): When call statement is
2627         present, also set gimple_call_set_cannot_inline.
2628         * ipa-inline.c: Update toplevel comment.
2629         (MAX_TIME): Remove.
2630         (cgraph_clone_inlined_nodes): Fix linebreaks.
2631         (cgraph_check_inline_limits): Restructure to ...
2632         (caller_growth_limits): ... this one; be more tolerant
2633         on growth in nested inline chains; add explanatory comment;
2634         fix stack accounting thinko introduced by previous patch.
2635         (cgraph_default_inline_p): Remove.
2636         (report_inline_failed_reason): New function.
2637         (can_inline_edge_p): New function.
2638         (can_early_inline_edge_p): New function.
2639         (leaf_node_p): Move upwards in file.
2640         (want_early_inline_function_p): New function.
2641         (want_inline_small_function_p): New function.
2642         (want_inline_self_recursive_call_p): New function.
2643         (cgraph_edge_badness): Rename to ...
2644         (edge_badness) ... this one; fix linebreaks.
2645         (update_edge_key): Update call of edge_baddness; add
2646         detailed dump about queue updates.
2647         (update_caller_keys): Use can_inline_edge_p and
2648         want_inline_small_function_p.
2649         (cgraph_decide_recursive_inlining): Rename to...
2650         (recursive_inlining): Use can_inline_edge_p and
2651         want_inline_self_recursive_call_p; simplify and remove no longer
2652         valid FIXME.
2653         (cgraph_set_inline_failed): Remove.
2654         (add_new_edges_to_heap): Use can_inline_edge_p and
2655         want_inline_small_function_p.
2656         (cgraph_decide_inlining_of_small_functions): Rename to ...
2657         (inline_small_functions): ... this one; cleanup; use
2658         can/want predicates; cleanup debug ouput; work edges till fibheap
2659         is exhausted and do not stop once unit growth is reached; remove
2660         later loop processing remaining edges.
2661         (cgraph_flatten): Rename to ...
2662         (flatten_function): ... this one; use can_inline_edge_p
2663         and can_early_inline_edge_p predicates.
2664         (cgraph_decide_inlining): Rename to ...
2665         (ipa_inline): ... this one; remove unreachable nodes before
2666         inlining functions called once; simplify the pass.
2667         (cgraph_perform_always_inlining): Rename to ...
2668         (inline_always_inline_functions): ... this one; use
2669         DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
2670         (cgraph_decide_inlining_incrementally): Rename to ...
2671         (early_inline_small_functions): ... this one; simplify
2672         using new predicates; cleanup; make dumps prettier.
2673         (cgraph_early_inlining): Rename to ...
2674         (early_inliner): newer inline regular functions into always-inlines;
2675         fix updating of call stmt summaries.
2676         (pass_early_inline): Update for new names.
2677         (inline_transform): Fix formating.
2678         (gate_cgraph_decide_inlining): Rename to ...
2679         (pass_ipa_inline): ... this one.
2680         * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
2681         * ipa-inline-analysis.c (dump_inline_summary): Update.
2682         (compute_inline_parameters): Do not compute disregard_inline_limits;
2683         look for mismatching arguments.
2684         (estimate_growth): Fix handlig of non-trivial self recursion.
2685         (inline_read_summary): Do not read info->disregard_inline_limits.
2686         (inline_write_summary): Do not write info->disregard_inline_limits.
2687         * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
2688         and move all checks into can_inline_edge_p predicate; re-enable code
2689         comparing optimization levels.
2690         (expand_call_inline): Do not test inline_forbidden_into_p.
2691         * Makefile.in (ipa-inline.o): Update arguments.
2692
2693 2011-04-17  Revital Eres  <revital.eres@linaro.org>
2694
2695         * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
2696
2697 2011-04-17  Revital Eres  <revital.eres@linaro.org>
2698
2699         * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
2700
2701 2011-04-17  Michael Matz  <matz@suse.de>
2702
2703         PR tree-optimization/48622
2704         PR lto/48645
2705         * ipa-inline-analysis.c (inline_read_summary): Read size/time
2706         in same order as they're written.
2707
2708 2011-04-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2709
2710         * config/pa/predicates.md: Reorganize and simplify predicates.
2711         Eliminate duplicate code checks.
2712         (arith_operand): Rename to arith14_operand
2713         (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
2714         * config/pa/pa.md: Use renamed operands.
2715         * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
2716         (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
2717         arith11_operand, adddi3_operand, indexed_memory_operand,
2718         symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
2719         arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
2720         borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
2721         move_dest_operand, move_src_operand, prefetch_cc_operand,
2722         prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
2723         uint32_operand, reg_before_reload_operand, reg_or_0_operand,
2724         reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
2725         div_operand, int5_operand, movb_comparison_operator,
2726         ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
2727         arith_double_operand, ireg_operand, lhs_lshift_operand,
2728         pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
2729         integer_store_memory_operand): Likewise.
2730         * config/pa/pa.c (adddi3_operand): Move to predicates.md.
2731         (integer_store_memory_operand, read_only_operand,
2732         function_label_operand, borx_reg_operand,
2733         non_hard_reg_operand): Likewise.
2734         (eq_neq_comparison_operator): Delete unused operator.
2735         (legitimize_pic_address): Use VOIDmode for mode argument in calls to
2736         function_label_operand.
2737         (emit_move_sequence): Likewise.
2738
2739 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
2740
2741         * config/i386/sse.md (sseunpackmode): New mode attribute.
2742         (ssepackmode): Ditto.
2743         (vec_pack_trunc_<mode>): Macroize expander from
2744         vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
2745         (vec_unpacks_lo_<mode>): Macroize expander from
2746         vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
2747         (vec_unpacks_hi_<mode>): Macroize expander from
2748         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
2749         (vec_unpacku_lo_<mode>): Macroize expander from
2750         vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
2751         (vec_unpacku_hi_<mode>): Macroize expander from
2752         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
2753         * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
2754         ix86_expand_sse4_unpack.
2755         * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
2756
2757 2011-04-16  Jan Hubicka  <jh@suse.cz>
2758
2759         * cgraphbuild.c: Include ipa-inline.h.
2760         (reset_inline_failed): Use initialize_inline_failed.
2761         * cgraph.c: Include ipa-inline.h.
2762         (cgraph_create_node_1): Do not initialize estimated_growth.
2763         (initialize_inline_failed): More to ipa-inline-analysis.c
2764         (dump_cgraph_node): Do not dump inline flags.
2765         * cgraph.h (cgraph_local_info): Remove inlineable, versionable
2766         and disregard_inline_limits flags.
2767         (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
2768         time, size, estimated_growth.
2769         * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
2770         Update.
2771         * cgraphunit.c (cgraph_decide_is_function_needed): Use
2772         DECL_DISREGARD_INLINE_LIMITS.
2773         (cgraph_analyze_function): Do not initialize
2774         node->local.disregard_inline_limits.
2775         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
2776         inlinable, versionable and disregard_inline_limits.
2777         * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
2778         cgraph_check_inline_limits, cgraph_default_inline_p,
2779         cgraph_edge_badness, update_caller_keys, update_callee_keys,
2780         add_new_edges_to_heap): Update.
2781         (cgraph_decide_inlining_of_small_function): Update; set
2782         CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
2783         (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
2784         cgraph_decide_inlining_incrementally): Update.
2785         * ipa-inline.h (inline_summary): Add inlinable, versionable,
2786         disregard_inline_limits, estimated_stack_size, stack_frame_offset,
2787         time, size and estimated_growth parameters.
2788         (estimate_edge_growth): Update.
2789         (initialize_inline_failed): Declare.
2790         * ipa-split.c: Include ipa-inline.h
2791         (execute_split_functions): Update.
2792         * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
2793         (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
2794         (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
2795         * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
2796         estimated_growth to INT_MIN.
2797         (inline_node_duplication_hook): Likewise.
2798         (dump_inline_summary): Dump new fields.
2799         (compute_inline_parameters): Update.
2800         (estimate_edge_time, estimate_time_after_inlining,
2801         estimate_size_after_inlining, estimate_growth, inline_read_summary,
2802         inline_write_summary):
2803         (initialize_inline_failed): Move here from cgraph.c.
2804         * tree-sra.c: Include ipa-inline.h.
2805         (ipa_sra_preliminary_function_checks): Update.
2806         * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
2807         ipa-inline.h.
2808
2809 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
2810
2811         * config/i386/sse.md (V16): New mode iterator.
2812         (VI1, VI8): Ditto.
2813         (AVXMODEQI, AVXMODEDI): Remove.
2814         (sse2, sse3): New mode attribute.
2815         (mov<mode>): Use V16 mode iterator.
2816         (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
2817         (push<mode>1): Use V16 mode iterator.
2818         (movmisalign<mode>): Ditto.
2819         (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
2820         <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
2821         (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
2822         *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
2823         (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
2824         avx_movdqu<avxmodesuffix>.
2825         (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
2826         *avx_movdqu<avxmodesuffix>.
2827         (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
2828         avx_lddqu<avxmodesuffix>.
2829         (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
2830         (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
2831         avx_movnt<AVXMODEDI:mode>.
2832         * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
2833         renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
2834
2835 2011-04-16  Bernd Schmidt  <bernds@codesourcery.com>
2836
2837         PR target/48629
2838         * haifa-sched.c (prune_ready_list, schedule_block): Use
2839         sched_pressure_p rather than flag_sched_pressure.
2840
2841 2011-04-15  Pat Haugen <pthaugen@us.ibm.com>
2842
2843         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
2844         cgraph_get_node instead of cgraph_get_create_node.
2845
2846 2011-04-15  Jakub Jelinek  <jakub@redhat.com>
2847
2848         * cfgexpand.c (expand_debug_expr): Use
2849         simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
2850
2851 2011-04-15  Michael Matz  <matz@suse.de>
2852
2853         * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
2854         * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
2855         * function.c (gimplify_parameters): Ditto.
2856         * gimplify.c (gimplify_vla_decl): Ditto.
2857
2858         * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
2859         (gimple_call_set_alloca_for_var): New inline function.
2860         (gimple_call_alloca_for_var_p): Ditto.
2861         * gimple.c (gimple_build_call_from_tree): Remember
2862         CALL_ALLOCA_FOR_VAR_P state.
2863         * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
2864
2865         * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
2866         calls if they were for VLA objects.
2867
2868 2011-04-15  Martin Jambor  <mjambor@suse.cz>
2869
2870         * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
2871         of ADR_EXPRs.
2872
2873 2011-04-15  Martin Jambor  <mjambor@suse.cz>
2874
2875         PR middle-end/48601
2876         * tree-emutls.c (lower_emutls_function_body): Call
2877         cgraph_get_create_node instead of cgraph_get_node.  Do not assert the
2878         result is non-NULL.
2879
2880 2011-04-15  Nicola Pero  <nicola.pero@meta-innovation.com>
2881
2882         * c-decl.c (detect_field_duplicates): Call
2883         objc_detect_field_duplicates instead of objc_get_interface_ivars.
2884
2885 2011-04-15  Nathan Froyd  <froydnj@codesourcery.com>
2886
2887         * gimple.h (gimple_asm_clobbers_memory_p): Declare.
2888         * gimple.c (gimple_asm_clobbers_memory_p): Define.
2889         * ipa-pure-const.c (check_stmt): Call it.
2890         * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
2891
2892 2011-04-15  Richard Guenther  <rguenther@suse.de>
2893
2894         PR tree-optimization/48290
2895         * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
2896         Properly decide inhibiting propagation based on the valueized
2897         operand.  Do loop-closed SSA form preserving here ...
2898         (init_copy_prop): ... not here.
2899
2900 2011-04-15  H.J. Lu  <hongjiu.lu@intel.com>
2901
2902         PR target/48612
2903         * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
2904         (*ieee_smax<mode>3): Likewise.
2905
2906 2011-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2907
2908         * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
2909         Replace match_operand with match_dup for the third operand in
2910         these expanders.
2911
2912 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
2913
2914         * combine.c (subst, combine_simlify_rtx): Add new argument, use it
2915         to track processing of conditionals.  Update all callers.
2916         (try_combine, simplify_if_then_else): Update.
2917
2918 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
2919
2920         * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
2921         -fsched-pressure.
2922
2923 2011-04-15  Georg-Johann Lay  <avr@gjlay.de>
2924
2925         * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
2926         instead of match_operand for operand 3.
2927
2928 2011-04-15  Richard Sandiford  <richard.sandiford@linaro.org>
2929
2930         * recog.h (insn_operand_data): Add an "allows_mem" field.
2931         * genoutput.c (output_operand_data): Initialize it.
2932         * optabs.c (maybe_legitimize_operand_same_code): New function.
2933         (maybe_legitimize_operand): Use it when matching the original
2934         op->value.
2935
2936 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
2937
2938         * gimplify.c: Fix issues in comments throughout.
2939         (voidify_wrapper_expr): Fix long line.
2940         (build_stack_save_restore): Likewise.
2941         (gimplify_loop_expr): Likewise.
2942         (gimplify_compound_lval): Likewise.
2943         (gimplify_init_ctor_eval): Likewise.
2944         (gimplify_modify_expr_rhs): Likewise.
2945         (omp_notice_threadprivate_variable): Likewise.
2946
2947 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
2948
2949         * cfgexpand.c (expand_call_stmt): Convert the function type to the
2950         original one if this is not a builtin function.
2951
2952 2011-04-14  Jakub Jelinek  <jakub@redhat.com>
2953
2954         PR target/48605
2955         * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
2956         offset it as needed based on top 2 bits in operands[3], change
2957         MEM mode to SFmode and mask those 2 bits away from operands[3].
2958
2959 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
2960
2961         * c-parser.c (c_parser_objc_protocol_definition): Updated for
2962         change from objc_declare_protocols() to objc_declare_protocol().
2963
2964 2011-04-14  Uros Bizjak  <ubizjak@gmail.com>
2965
2966         * config/i386/sse.md (sse4_1): New mode attribute.
2967         (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
2968         avx_blend<ssemodesuffix><avxmodesuffix> and
2969         sse4_1_blend<ssemodesuffix> using VF mode iterator.
2970         (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
2971         avx_blendv<ssemodesuffix><avxmodesuffix> and
2972         sse4_1_blendv<ssemodesuffix> using VF mode iterator.
2973         (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
2974         avx_dp<ssemodesuffix><avxmodesuffix> and
2975         sse4_1_dp<ssemodesuffix> using VF mode iterator.
2976         (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
2977         (sse4_1_packusdw): Merge with *avx_packusdw.
2978         (sse4_1_pblendvb): Merge with *avx_pblendvb.
2979         (sse4_1_pblendw): Merge with *avx_pblendw.
2980         (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
2981         (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
2982         avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
2983         VF mode iterator.
2984         (sse4_1_round<ssescalarmodesuffix>): Merge with
2985         *avx_round<ssescalarmodesuffix>.
2986         (aesenc): Merge with *avx_aesenc.
2987         (aesenclast): Merge with *avx_aesenclast.
2988         (aesdec): Merge with *avx_aesdec.
2989         (aesdeclast): Merge with *avx_aesdeclast.
2990         (pclmulqdq): Merge with *pclmulqdq.
2991         * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
2992         New predicate.
2993         (nonimm_not_xmm0_operand_maybe_avx): Ditto.
2994
2995 2011-04-14  H.J. Lu  <hongjiu.lu@intel.com>
2996
2997         PR middle-end/48608
2998         * cfgexpand.c (get_decl_align_unit): Renamed to ...
2999         (align_local_variable): This.  Update DECL_ALIGN.
3000         (add_stack_var): Updated.
3001         (expand_one_stack_var): Likewise.
3002
3003 2011-04-14  Richard Guenther  <rguenther@suse.de>
3004
3005         * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
3006         Remove.
3007         (dse_initialize_block_local_data, dse_leave_block,
3008         record_voperand_set, get_stmt_uid): Likewise.
3009         (dse_possible_dead_store_p): Allow any kind of killing stmt.
3010         (dse_optimize_stmt): Remove voperand set handling code.
3011         Simplify and improve to handle any kind of killing stmt.
3012         (dse_record_phi): Remove.
3013         (dse_enter_block): Simplify.
3014         (tree_ssa_dse): Likewise.
3015         * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
3016
3017 2011-04-14  Jan Hubicka  <jh@suse.cz>
3018
3019         * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
3020         * cgraph.h (struct inline_summary): Move to ipa-inline.h
3021         (cgraph_local_info): Remove inline_summary.
3022         * ipa-cp.c: Include ipa-inline.h.
3023         (ipcp_cloning_candidate_p, ipcp_estimate_growth,
3024         ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
3025         accesor.
3026         * lto-cgraph.c (lto_output_node): Do not stream inline summary.
3027         (input_overwrite_node): Do not set inline summary.
3028         (input_node): Do not stream inline summary.
3029         * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
3030         (cgraph_decide_inlining_incrementally): Do not try to estimate overall
3031         growth; we do not have inline parameters computed for that anyway.
3032         (cgraph_early_inlining): After inlining compute call_stmt_sizes.
3033         * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
3034         (inline_summary_t): New type and VECtor.
3035         (debug_inline_summary, dump_inline_summaries): Declare.
3036         (inline_summary): Use VOCtor.
3037         (estimate_edge_growth): Kill hack computing call stmt size directly.
3038         * lto-section-in.c (lto_section_name): Add inline section.
3039         * ipa-inline-analysis.c: Include lto-streamer.h
3040         (node_removal_hook_holder, node_duplication_hook_holder): New holders
3041         (inline_node_removal_hook, inline_node_duplication_hook): New functions.
3042         (inline_summary_vec): Define.
3043         (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
3044         dump_inline_summaries): New functions.
3045         (estimate_function_body_sizes): Properly compute size/time of outgoing
3046         calls.
3047         (compute_inline_parameters): Alloc inline_summary; do not compute
3048         size/time of incomming calls.
3049         (estimate_edge_time): Avoid missing time summary hack.
3050         (inline_read_summary): Read inline summary info.
3051         (inline_write_summary): Write inline summary info.
3052         (inline_free_summary): Free all hooks and inline summary vector.
3053         * lto-streamer.h: Add LTO_section_inline_summary section.
3054         * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
3055         * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
3056
3057 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
3058
3059         * tree-vectorizer.h (vect_strided_store_supported): Add a
3060         HOST_WIDE_INT argument.
3061         (vect_strided_load_supported): Likewise.
3062         (vect_permute_store_chain): Return void.
3063         (vect_transform_strided_load): Likewise.
3064         (vect_permute_load_chain): Delete.
3065         * tree-vect-data-refs.c (vect_strided_store_supported): Take a
3066         count argument.  Check that the count is a power of two.
3067         (vect_strided_load_supported): Likewise.
3068         (vect_permute_store_chain): Return void.  Update after above changes.
3069         Assert that the access is supported.
3070         (vect_permute_load_chain): Likewise.
3071         (vect_transform_strided_load): Return void.
3072         * tree-vect-stmts.c (vectorizable_store): Update calls after
3073         above interface changes.
3074         (vectorizable_load): Likewise.
3075         (vect_analyze_stmt): Don't check for strided powers of two here.
3076
3077 2011-04-14  Richard Guenther  <rguenther@suse.de>
3078
3079         PR tree-optimization/48590
3080         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
3081         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
3082         (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
3083         BUILT_IN_STACK_SAVE.
3084         * tree-ssa-dce.c (propagate_necessity): Handle
3085         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
3086
3087 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
3088
3089         * c-parser.c (c_parser_objc_class_declaration): Updated call to
3090         objc_declare_class.
3091
3092 2011-04-14  Richard Guenther  <rguenther@suse.de>
3093
3094         * tree.h (get_object_alignment_1): Declare.
3095         * builtins.c (get_object_alignment_1): Split out worker from ...
3096         (get_object_alignment): ... here.
3097         * fold-const.c (get_pointer_modulus_and_residue): Use
3098         get_object_alignment_1.
3099
3100 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
3101
3102         * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
3103         type parameter.
3104         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
3105         parameter.  Generalise code to handle arrays as well as vectors.
3106         (vect_setup_realignment): Update accordingly.
3107         * tree-vect-stmts.c (vectorizable_store): Likewise.
3108         (vectorizable_load): Likewise.
3109
3110 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
3111
3112         * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
3113         within the per-copy loop.
3114
3115 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
3116
3117         * tree-vect-stmts.c (vectorizable_load): Print the number of copies
3118         in the dump file.
3119
3120 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
3121
3122         * doc/options.texi (Negative): Explicitly mention that the
3123         Negative chain must be circular.
3124
3125 2011-04-14  Nathan Froyd  <froydnj@codesourcery.com>
3126
3127         * function.h (block_chainon): Declare.
3128         * function.c (block_chainon): Define.
3129
3130 2011-04-14  Anatoly Sokolov  <aesok@post.ru>
3131             Eric Weddington  <eric.weddington@atmel.com>
3132             Georg-Johann Lay <avr@gjlay.de>
3133
3134         * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
3135         New Includes
3136         (avr_init_builtins, avr_expand_builtin,
3137         avr_expand_delay_cycles, avr_expand_unop_builtin,
3138         avr_expand_binop_builtin ): New functions.
3139         (avr_builtin_id): New enum
3140         (struct avr_builtin_description): New struct
3141         (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
3142         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
3143
3144         * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
3145         UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
3146         UNSPECV_DELAY_CYCLES): new enumeration values
3147         (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
3148         ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
3149         ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
3150         ("*rotlqi3_4"): rename insn to "rotlqi3_4"
3151         ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
3152         "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
3153         "fmulsu"): New insns
3154
3155         * config/avr/avr-c.c: fix line endings
3156         (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
3157         __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
3158         __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
3159         __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
3160         __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
3161
3162         * doc/extend.texi (AVR Built-in Functions): New node
3163         (Target Builtins): Add documentation of AVR
3164         built-in functions.
3165
3166 2011-04-14  Georg-Johann Lay  <avr@gjlay.de>
3167
3168         PR target/44643
3169         * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
3170         alone. Error if non-const data has attribute progmem.
3171
3172 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
3173
3174         * tree.h (struct tree_constructor): Include tree_typed instead of
3175         tree_common.
3176         * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
3177         TS_TYPED instead of TS_COMMON.
3178
3179 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
3180
3181         * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
3182         (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
3183         (sse2_psadbw): Merge with *avx_psadbw.
3184         (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
3185         (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
3186         (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
3187         (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
3188         (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
3189         (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
3190         (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
3191         (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
3192         (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
3193         (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
3194         (ssse3_palignrti): Merge with *avx_palignrti.
3195
3196 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
3197
3198         * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
3199         * tree-ssanames.c (fini_ssanames): VEC_free it.
3200         (make_ssa_name_fn): Update for VECness of free_ssanames.
3201         (release_ssa_name, release_dead_ssa_names): Likewise.
3202         * tree.h (struct tree_ssa_name): Include tree_typed instead of
3203         tree_common.
3204         * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
3205         TS_TYPED instead of TS_COMMON.
3206
3207 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
3208
3209         * postreload-gcse.c (gcse_after_reload_main): Add calls to
3210         statistics_counter_event.
3211         * tree-ssa-copyrename.c (stats): Define.
3212         (rename_ssa_copies): Count coalesced SSA_NAMEs.  Add call to
3213         statistics_counter_event.
3214         * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
3215         (bswap_stats, widen_mul_stats): Define.
3216         (insert_reciprocals): Increment rdivs_inserted.
3217         (execute_cse_reciprocals): Zeroize reciprocal_stats.  Increment
3218         rfuncs_inserted.  Add calls to statistics_counter_event.
3219         (execute_cse_sincos_1): Increment inserted.
3220         (execute_cse_sincos): Zeroize sincos_stats.  Add call to
3221         statistics_counter_event.
3222         (execute_optimize_bswap): Zeroize bswap_stats.  Increment fields
3223         of bswap_stats.  Add calls to statistics_counter_event.
3224         (convert_mult_to_widen): Increment widen_mults_inserted.
3225         (convert_plusminus_to_widen): Increment maccs_inserted.
3226         (convert_mult_to_fma): Increment fmas_inserted.
3227         (execute_optimize_widening_mul): Zeroize widen_mul_stats.  Add
3228         calls to statistics_counter_event.
3229
3230 2011-04-13  Vladimir Makarov  <vmakarov@redhat.com>
3231
3232         PR rtl-optimization/48455
3233         * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
3234         `temp_costs->mem_cost'.
3235
3236 2011-04-13  Jan Hubicka  <jh@suse.cz>
3237
3238         * ipa-inline.h: New file.
3239         * ipa-inline-analysis.c: New file. Broken out of ...
3240         * ipa-inline.c: ... this file; update toplevel comment;
3241         include ipa-inline.h
3242         (inline_summary): Move to ipa-inline.h
3243         (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
3244         ipa-inline-analysis.c.
3245         (cgraph_estimate_time_after_inlining): Rename to
3246         estiamte_time_after_inlining; move to ipa-inline-analysis.c
3247         (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
3248         to estimate_edge_growth.
3249         (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
3250         rename to estimate_size_after_inlining.
3251         (cgraph_mark_inline_edge): Update for new naming convention.
3252         (cgraph_check_inline_limits): Likewise.
3253         (cgraph_edge_badness): Likewise.
3254         (cgraph_decide_recursive_inlining): Likewise.
3255         (cgraph_decide_inlining_of_small_functions): Likewise.
3256         (cgraph_decide_inlining_incrementally): Likewise.
3257         (cgraph_estimate_growth): Rename to estimate_growth; move to
3258         ipa-inline-analysis.c.
3259         (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
3260         (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
3261         (compute_inline_parameters): Likewise.
3262         (compute_inline_parameters_for_current): Likewise.
3263         (pass_inline_parameters): Likewise.
3264         (inline_indirect_intraprocedural_analysis): Likewise.
3265         (analyze_function): Rename to inline_analyze_function; likewise.
3266         (add_new_function): Move to ipa-inline-analysis.c.
3267         (inline_generate_summary): Likewise.
3268         (inline_read_summary): Likewise.
3269         (inline_write_summary): Likewise.
3270         * Makefile.in (ipa-inline-analysis.c): New file.
3271
3272 2011-04-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3273
3274         * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
3275         * configure: Regenerate.
3276
3277 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
3278
3279         * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
3280         instead of tree_common.
3281         (struct tree_fixed_cst, struct tree_string, struct tree_complex):
3282         Likewise.
3283         * tree.c (initialize_tree_contains_struct): Mark such nodes as being
3284         TS_TYPED rather than TS_COMMON.
3285         * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
3286
3287 2011-04-01  Georg-Johann Lay  <avr@gjlay.de>
3288
3289         PR target/45263
3290         * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
3291         r20 around calls of __tablejump_elpm__
3292
3293 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
3294
3295         PR middle-end/48591
3296         * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
3297         NULL.
3298         (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
3299
3300 2011-04-13  Bernd Schmidt  <bernds@codesourcery.com>
3301
3302         * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
3303         (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
3304         (cfi_vec): New typedef.
3305         (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
3306         dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
3307         (cie_cfi_vec): New static variable.
3308         (cie_cfi_head): Delete.
3309         (add_cfi): Accept a cfi_vec * as first argument. All callers and
3310         declaration changed. Use vector rather than list operations.
3311         (new_cfi): Don't initialize the dw_cfi_next field.
3312         (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
3313         rather than list operations.
3314         (lookup_cfa): Use vector rather than list operations.
3315         (output_cfis): New argument upto. Accept a cfi_vec rather than
3316         a dw_cfi_ref list head as argument. All callers changed.
3317         Iterate over the vector using upto as a maximum index.
3318         (output_all_cfis): New static function.
3319         (output_fde): Use vector rather than list operations. Use the
3320         new upto argument for output_cfis rather than manipulating a
3321         list.
3322         (dwarf2out_begin_prologue): Change initializations to match
3323         new struct members.
3324         (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
3325         from the vector length rather than searching for the end of a list.
3326         Use output_all_cfis.
3327         (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
3328
3329 2011-04-13  Nick Clifton  <nickc@redhat.com>
3330
3331         * config/rx/rx.md (movmemsi): Do not use this pattern when
3332         volatile pointers are involved.
3333
3334 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
3335
3336         * config/i386/sse.md (pinsrbits): Remove.
3337         (sse2_packsswb): Merge with *avx_packsswb.
3338         (sse2_packssdw): Merge with *avx_packssdw.
3339         (sse2_packuswb): Merge with *avx_packuswb.
3340         (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
3341         (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
3342         (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
3343         (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
3344         (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
3345         (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
3346         (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
3347         (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
3348         (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
3349         (*sse4_1_pinsrq): Merge with *avx_pinsrq.
3350         (sse2_loadld): Merge with *avx_loadld.
3351         (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
3352         (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
3353         (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
3354         (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
3355         (vec_concatv2di): Merge with *vec_concatv2di_avx.
3356
3357 2011-04-12  Nathan Froyd  <froydnj@codesourcery.com>
3358
3359         * c-decl.c (union lang_tree_node): Check for TS_COMMON before
3360         calling TREE_CHAIN.
3361         * print-tree.c (print_node): Likewise.
3362         * tree-inline.c (copy_tree_r): Likewise.
3363         * c-lang.c (LANG_HOOKS_INIT_TS): Define.
3364         * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
3365         instead of TS_COMMON.
3366         * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
3367         * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
3368         (copy_node_stat): Zero TREE_CHAIN only if necessary.
3369         (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
3370         (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
3371         ...and these...
3372         (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
3373         * tree.h: ...here.
3374         (TREE_CHAIN): Check for a TS_COMMON structure.
3375         (TREE_TYPE): Check for a TS_TYPED structure.
3376
3377 2011-04-12  Pat Haugen <pthaugen@us.ibm.com>
3378
3379         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
3380         cgraph_get_create_node instead of cgraph_node.
3381
3382 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
3383
3384         * c-parser.c (c_parser_initelt): Updated call to
3385         objc_build_message_expr.
3386         (c_parser_postfix_expression): Likewise.
3387
3388 2011-04-12  Kai Tietz  <ktietz@redhat.com>
3389
3390         * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
3391         MASK_MS_BITFIELD_LAYOUT bit.
3392
3393 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
3394
3395         * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
3396         assert it is always true.
3397         (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
3398         moves.
3399
3400 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
3401
3402         * c-parser.c (c_lex_one_token): Rewritten conditional used when
3403         compiling Objective-C to be more efficient.
3404
3405 2011-04-12  Axel Freyn  <axel-freyn@gmx.de>
3406
3407         * opts-common.c (decode_cmdline_options_to_array): Remove variable
3408         argv_copied.
3409
3410 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
3411
3412         * recog.h, genoutput.c, optabs.c: Revert last patch.
3413
3414 2011-04-12  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
3415
3416         PR target/48090
3417         * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
3418
3419 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
3420
3421         * recog.h (insn_operand_data): Add an "allows_mem" field.
3422         * genoutput.c (output_operand_data): Initialize it.
3423         * optabs.c (maybe_legitimize_operand_same_code): New function.
3424         (maybe_legitimize_operand): Use it when matching the original
3425         op->value.
3426
3427 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
3428
3429         * genpreds.c (process_define_predicate): Move most processing
3430         to gensupport.c.  Continue to validate the expression.
3431         * genrecog.c (did_you_mean_codes, compute_predicate_codes)
3432         (process_define_predicate): Move processing to gensupport.c.
3433         (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
3434         * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
3435         (compute_predicate_codes): Moved from genrecog.c.  Add lineno
3436         argument.
3437         (valid_predicate_name_p): New function, split out from old
3438         genpreds.c:process_define_predicate.
3439         (process_define_predicate): New function, combining code from
3440         old genpreds.c and genrecog.c functions.
3441         (process_rtx): Call it for DEFINE_PREDICATE and
3442         DEFINE_SPECIAL_PREDICATE.
3443
3444 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
3445
3446         * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
3447         size of a '%A' memory reference.
3448         (T_DREG, T_QREG): New neon_builtin_type_bits.
3449         (arm_init_neon_builtins): Assert that the load and store operands
3450         are neon_struct_operands.
3451         (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
3452         (NEON_ARG_MEMORY): New builtin_arg.
3453         (neon_dereference_pointer): New function.
3454         (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
3455         Handle NEON_ARG_MEMORY.
3456         (arm_expand_neon_builtin): Update after above interface changes.
3457         Use NEON_ARG_MEMORY for loads and stores.
3458         * config/arm/predicates.md (neon_struct_operand): New predicate.
3459         * config/arm/iterators.md (V_two_elem): Tweak formatting.
3460         (V_three_elem): Use BLKmode for accesses that have no associated mode.
3461         (V_four_elem): Tweak formatting.
3462         * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
3463         (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
3464         (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
3465         (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
3466         (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
3467         (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
3468         (neon_vst4<mode>): Replace pointer operand with a memory operand.
3469         Use %A in the output template.
3470         (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
3471         (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
3472         (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
3473         the width of the memory access.  Remove post-increment.
3474         * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
3475
3476 2011-04-12  Nick Clifton  <nickc@redhat.com>
3477
3478         * config/v850/v850.c (expand_prologue): Do not use the CALLT
3479         instruction for interrupt handlers if the target is the basic V850
3480         architecture.
3481         (expand_epilogue): Likewise.
3482
3483 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
3484
3485         PR rtl-optimization/48549
3486         * combine.c (propagate_for_debug): Also stop after BB_END of
3487         this_basic_block.  Process LAST and just stop processing after it.
3488         (combine_instructions): If last_combined_insn has been deleted,
3489         set last_combined_insn to its PREV_INSN.
3490
3491 2011-04-12  Richard Guenther  <rguenther@suse.de>
3492
3493         PR tree-optimization/46076
3494         * gimple.h (struct gimple_statement_call): Add fntype field.
3495         (gimple_call_fntype): Adjust.
3496         (gimple_call_set_fntype): New function.
3497         * gimple.c (gimple_build_call_1): Set the call function type.
3498         * gimplify.c (gimplify_call_expr): Preserve the function
3499         type the frontend used for the call.
3500         (gimplify_modify_expr): Likewise.
3501         * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
3502         function type.
3503         * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
3504         function type.
3505         * tree-ssa.c (useless_type_conversion_p): Function pointer
3506         conversions are useless.
3507
3508 2011-04-12  Martin Jambor  <mjambor@suse.cz>
3509
3510         * cgraph.h (cgraph_node): Remove function declaration.
3511         (cgraph_create_node): Declare.
3512         (cgraph_get_create_node): Likewise.
3513         * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
3514         Updated all callers.
3515         (cgraph_node): Renamed to cgraph_create_node, assert that a node for
3516         the decl does not already exist.  Call cgraph_get_create_node instead
3517         of cgraph_node.
3518         (cgraph_get_create_node): New function.
3519         (cgraph_same_body_alias): Update comment.
3520         (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
3521         assert it does not return NULL.
3522         (cgraph_update_edges_for_call_stmt): Likewise.
3523         (cgraph_clone_edge): Likewise.
3524         (cgraph_create_virtual_clone): Likewise.
3525         (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
3526         instead of cgraph_node.
3527         (cgraph_add_new_function): Call cgraph_create_node or
3528         cgraph_get_create_node instead of cgraph_node.
3529         * cgraphbuild.c (record_reference): Call cgraph_get_create_node
3530         instead of cgraph_node.
3531         (record_eh_tables): Likewise.
3532         (mark_address): Likewise.
3533         (mark_load): Likewise.
3534         (build_cgraph_edges): Call cgraph_get_create_node instead
3535         of cgraph_node.
3536         (rebuild_cgraph_edges): Likewise.
3537         * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
3538         instead of cgraph_node.
3539         (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
3540         cgraph_node.
3541         * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
3542         cgraph_create_node instead of cgraph_node.
3543         * c-decl.c (finish_function): Call cgraph_get_create_node instead
3544         of cgraph_node.
3545         * lto-cgraph.c (input_node): Likewise.
3546         * lto-streamer-in.c (input_function): Likewise.
3547         * varasm.c (mark_decl_referenced): Likewise.
3548         (assemble_alias): Likewise.
3549
3550 2011-04-12  Martin Jambor  <mjambor@suse.cz>
3551
3552         * tree-inline.c (tree_function_versioning): Call cgraph_get_node
3553         instead of cgraph_node and assert it does not return NULL.
3554         * lto-streamer-in.c (lto_read_body): Likewise.
3555         * omp-low.c (new_omp_context): Likewise.
3556         (create_task_copyfn): Likewise.
3557         * tree-emutls.c (lower_emutls_function_body): Likewise.
3558         * matrix-reorg.c (transform_allocation_sites): Likewise.
3559
3560 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
3561
3562         PR c/48552
3563         * c-typeck.c (build_asm_expr): Error out on attempts to use
3564         void type outputs or inputs for constraints that allow reg or
3565         don't allow memory.
3566
3567 2011-04-11  Chung-Lin Tang  <cltang@codesourcery.com>
3568             Richard Earnshaw  <rearnsha@arm.com>
3569
3570         PR target/48250
3571         * config/arm/arm.c (arm_legitimize_reload_address): Update cases
3572         to use sign-magnitude offsets. Reject unsupported unaligned
3573         cases. Add detailed description in comments.
3574         * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
3575         condition from TARGET_32BIT to TARGET_ARM.
3576
3577 2011-04-11  Nathan Froyd  <froydnj@codesourcery.com>
3578
3579         * tree.h (struct typed_tree): New.
3580         (struct tree_common): Include it instead of tree_base.
3581         (TREE_TYPE): Update for new location of type field.
3582         (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
3583         (DECL_USER_ALIGN, DECL_PACKED): Likewise.
3584         (union tree_node): Add typed field.
3585         * treestruct.def (TS_TYPED): New.
3586         * lto-streamer.c (check_handled_ts_structures): Handle it.
3587         * tree.c (MARK_TS_TYPED): New macro.
3588         (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
3589
3590 2011-04-11  Eric Botcazou  <ebotcazou@adacore.com>
3591
3592         * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
3593         (force_nonfallthru): Do not alter the loop nest if no basic block
3594         was created.
3595
3596 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
3597
3598         * config/i386/sse.md (VI): New mode iterator.
3599         (SSEMODEI): Remove.
3600         (AVX256MODEI): Ditto.
3601         (AVXMODEF4P): Ditto.
3602         (avxvecpsmode): Ditto.
3603         (one_cmpl<mode>2): Enable for TARGET_SSE.  Use VI mode iterator.
3604         (sse2_andnot<mode>3): New expander.
3605         (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
3606         *avx_andnot<mode>3.  Enable for TARGET_SSE.  Use VI mode iterator.
3607         (<any_logic:code><mode>3): Use VI mode iterator.
3608         (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
3609         and *avx_<any_logic:code><mode>3.  Use VI mode iterator.
3610         (*andnottf3): Handle AVX three-operand constraints.
3611         (*<any_logic:code>tf3): Handle AVX three-operand constraints.
3612
3613 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
3614             Robert Millan  <rmh@gnu.org>
3615
3616         * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
3617         * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
3618         GNU_USER_DYNAMIC_LINKER64): Define.
3619         (REG_NAME): Don't undefine.
3620         (MD_UNWIND_SUPPORT): Undefine.
3621         * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
3622         (REG_NAME): Don't undefine.
3623         (MD_UNWIND_SUPPORT): Undefine.
3624         * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
3625
3626 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
3627
3628         * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
3629         (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
3630
3631 2011-04-11  Xinliang David Li  <davidxl@google.com>
3632
3633         * value-profile.c (check_ic_target): New function.
3634         (gimple_ic_transform): Sanity check indirect call target.
3635         * gimple-low.c (gimple_check_call_args): Interface change.
3636         (gimple_check_call_matching_types): New function.
3637         * tree-inline.c (tree_can_inline_p): Call new function.
3638
3639 2011-04-11  Basile Starynkevitch  <basile@starynkevitch.net>
3640
3641         * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
3642         tree-pretty-print.h & realmpfr.h.
3643
3644 2011-04-11  Vladimir Makarov  <vmakarov@redhat.com>
3645
3646         PR middle-end/48464
3647         * ira.c (setup_pressure_classes): Fix typo in loop condition.
3648         (setup_allocno_and_important_classes): Ditto.
3649
3650 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
3651
3652         * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
3653         GNU_USER_DYNAMIC_LINKER.
3654         * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
3655         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3656         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
3657         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
3658         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
3659         GNU_USER_TARGET_OS_CPP_BUILTINS.
3660         * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
3661         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3662         * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
3663         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3664         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
3665         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
3666         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
3667         GNU_USER_TARGET_OS_CPP_BUILTINS.
3668         * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
3669         GNU_USER_DYNAMIC_LINKER.
3670         * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
3671         GNU_USER_TARGET_OS_CPP_BUILTINS.
3672         * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
3673         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3674         * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
3675         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3676         * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
3677         * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
3678         GNU_USER_DYNAMIC_LINKER64): Remove.
3679         * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
3680         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3681         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
3682         GNU_USER_DYNAMIC_LINKER.
3683         * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
3684         GNU_USER_TARGET_OS_CPP_BUILTINS.
3685         * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
3686         GNU_USER_TARGET_OS_CPP_BUILTINS.
3687         * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
3688         to GNU_USER_TARGET_OS_CPP_BUILTINS.
3689         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
3690         GNU_USER_TARGET_OS_CPP_BUILTINS.
3691         (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
3692         (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
3693         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
3694         * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
3695         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3696         * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
3697         GNU_USER_DYNAMIC_LINKER.
3698         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
3699         GNU_USER_TARGET_OS_CPP_BUILTINS.
3700         * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
3701         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3702         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
3703         GNU_USER_DYNAMIC_LINKER.
3704         * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
3705         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3706         * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
3707         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3708         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
3709         GNU_USER_DYNAMIC_LINKER.
3710         * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
3711         GNU_USER_DYNAMIC_LINKERN32.
3712         (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
3713         GNU_USER_DYNAMIC_LINKERN32.  Change LINUX_DYNAMIC_LINKER64 to
3714         GNU_USER_DYNAMIC_LINKER64.  Change LINUX_DYNAMIC_LINKER32 to
3715         GNU_USER_DYNAMIC_LINKER32.
3716         * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
3717         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3718         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
3719         GNU_USER_DYNAMIC_LINKER.
3720         * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
3721         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3722         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
3723         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3724         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
3725         * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
3726         GNU_USER_DYNAMIC_LINKER32.
3727         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
3728         * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
3729         GNU_USER_DYNAMIC_LINKER.
3730         * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
3731         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3732         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
3733         GNU_USER_DYNAMIC_LINKER32.  Change LINUX_DYNAMIC_LINKER64 to
3734         GNU_USER_DYNAMIC_LINKER64.
3735         * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
3736         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3737         (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
3738         GNU_USER_DYNAMIC_LINKER.
3739         * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
3740         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3741         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
3742         GNU_USER_DYNAMIC_LINKER.
3743         * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
3744         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3745         (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
3746         GNU_USER_DYNAMIC_LINKER32.
3747         (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
3748         GNU_USER_DYNAMIC_LINKER64.
3749         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
3750         GNU_USER_DYNAMIC_LINKER64.
3751         * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
3752         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3753         * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
3754         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3755         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
3756
3757 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
3758
3759         * config/i386/gnu-user.h: Copy from linux.h.  Update comments.
3760         (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
3761         (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
3762         GNU_USER_DYNAMIC_LINKER.
3763         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
3764         * config/i386/gnu-user64.h: Copy from linux64.h.  Update comments.
3765         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
3766         (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
3767         GNU_USER_DYNAMIC_LINKER64.
3768         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
3769         * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
3770         GNU_USER_LINK_EMULATION.
3771         * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
3772         DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
3773         ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
3774         MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
3775         PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
3776         CPP_SPEC, CC1_SPEC): Remove.
3777         (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
3778         (GNU_USER_DYNAMIC_LINKER): Define.
3779         (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
3780         ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
3781         ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
3782         LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
3783         TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
3784         STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
3785         TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
3786         * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
3787         CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
3788         TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
3789         LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
3790         LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
3791         (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
3792         (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
3793         TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
3794         TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
3795         * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
3796         GNU_USER_DYNAMIC_LINKER.
3797         * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
3798         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
3799         * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
3800         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
3801         * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
3802         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
3803         * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
3804         i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
3805         i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
3806         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
3807
3808 2011-04-11  Kai Tietz  <ktietz@redhat.com>
3809
3810         PR target/9601
3811         PR target/11772
3812         * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
3813         * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
3814         comment.
3815         (ix86_is_msabi_thiscall): Removed.
3816         (ix86_is_type_thiscall): Likewise.
3817         (ix86_get_callcvt): New function.
3818         (ix86_comp_type_attributes): Simplify check.
3819         (ix86_function_regparm): Use ix86_get_callcvt for calling
3820         convention attribute checks.
3821         (ix86_return_pops_args): Likewise.
3822         (ix86_static_chain): Likewise.
3823         (x86_this_parameter): Likewise.
3824         (x86_output_mi_thunk): Likewise.
3825         (ix86_function_type_abi): Optimize check for types without attributes.
3826         * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
3827         IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
3828         IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
3829         by flag-values.
3830         (IX86_BASE_CALLCVT): Helper macro.
3831         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
3832         Use ix86_get_callcvt for calling convention attribute checks and avoid
3833         symbol-decoration for stdcall in TARGET_RTD case.
3834         * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
3835         Likewise.
3836         (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
3837         for declaration.
3838
3839 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
3840
3841         * config/i386/sse.md (VI_128): New mode iterator.
3842         (VI12_128): Rename from SSEMODE12.
3843         (VI14_128): Rename from SSEMODE14.
3844         (VI124_128): New mode iterator.
3845         (VI24_128): Rename from SSEMODE248.
3846         (VI248_128): Rename from SSEMODE248.
3847         (SSEMODE124C8): Remove.
3848         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
3849         (*sse2_<plusminus_insn><mode>3): Merge with
3850         *avx_<plusminus_insn><mode>3.
3851         (*mulv8hi3): Merge with *avx_mulv8hi3.
3852         (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
3853         (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
3854         (*sse2_pmaddwd): Merge with *avx_pmaddwd.
3855         (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
3856         (ashr<mode>3): Merge with *avx_ashr<mode>3.
3857         (lshr<mode>3): Merge with *avx_lshr<mode>3.
3858         (ashl<mode>3): Merge with *avx_ashl<mode>3.
3859         (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
3860         (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
3861         (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
3862         (*<smaxmin:code>v8hi3): Ditto.
3863         (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
3864         (*<smaxmin:code>v16qi3): Ditto.
3865         (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
3866         (*sse2_eq<mode>3): Ditto.
3867         (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
3868         (*sse2_gt<mode>3): Ditto.
3869         (vcondv2di): Split out of vcond<mode>.
3870         (vconduv2di): Split out of vcondu<mode>.
3871
3872 2011-04-11  Richard Guenther  <rguenther@suse.de>
3873
3874         * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
3875         before calling tree_low_cst.
3876
3877 2011-04-11  Richard Guenther  <rguenther@suse.de>
3878
3879         * stor-layout.c (layout_type): Compute all array index size operations
3880         in the original type.
3881         (initialize_sizetypes): Add comment.
3882         (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
3883
3884 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
3885
3886         * common.opt (Tbss=, Tdata=, Ttext=): New options.
3887
3888 2011-04-11  Martin Jambor  <mjambor@suse.cz>
3889
3890         * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
3891         of cgraph_node, handle NULL return value.
3892         (cgraph_global_info): Likewise.
3893         (cgraph_rtl_info): Likewise.
3894         * tree-inline.c (estimate_num_insns): Likewise.
3895         * gimplify.c (unshare_body): Likewise.
3896         (unvisit_body): Likewise.
3897         (gimplify_body): Likewise.
3898         * predict.c (optimize_function_for_size_p): Likewise.
3899         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
3900         (call_may_clobber_ref_p_1): Likewise.
3901         * varasm.c (function_section_1): Likewise.
3902         (assemble_start_function): Likewise.
3903
3904 2011-04-11  Martin Jambor  <mjambor@suse.cz>
3905
3906         * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
3907         of cgraph_node.
3908         * final.c (rest_of_clean_state): Likewise.
3909         * gimple-iterator.c (update_call_edge_frequencies): Likewise.
3910         * passes.c (pass_init_dump_file): Likewise.
3911         (execute_all_ipa_transforms): Likewise.
3912         (function_called_by_processed_nodes_p): Likewise.
3913         * predict.c (maybe_hot_frequency_p): Likewise.
3914         (probably_never_executed_bb_p): Likewise.
3915         (compute_function_frequency): Likewise.
3916         * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
3917         (unnest_nesting_tree_1): Likewise.
3918         (lower_nested_functions): Likewise.
3919         * tree-optimize.c (execute_fixup_cfg): Likewise.
3920         (tree_rest_of_compilation): Likewise.
3921         * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
3922         * tree-sra.c (ipa_early_sra): Likewise.
3923         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
3924         * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
3925         * ipa.c (record_cdtor_fn): Likewise.
3926         * ipa-inline.c (cgraph_early_inlining): Likewise.
3927         (compute_inline_parameters_for_current): Likewise.
3928         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
3929         * ipa-pure-const.c (local_pure_const): Likewise.
3930         * ipa-split.c (split_function): Likewise.
3931         (execute_split_functions): Likewise.
3932         * cgraphbuild.c (build_cgraph_edges): Likewise.
3933         (rebuild_cgraph_edges): Likewise.
3934         (cgraph_rebuild_references): Likewise.
3935         (remove_cgraph_callee_edges): Likewise.
3936         * cgraphunit.c (cgraph_mark_if_needed): Likewise.
3937         (verify_cgraph_node): Likewise.
3938         (cgraph_analyze_functions): Likewise.
3939         (cgraph_preserve_function_body_p): Likewise.
3940         (save_inline_function_body): Likewise.
3941         (save_inline_function_body): Likewise.
3942         * tree-inline.c (copy_bb): Likewise.
3943         (optimize_inline_calls): Likewise.
3944
3945 2011-04-11  Martin Jambor  <mjambor@suse.cz>
3946
3947         PR tree-optimization/48195
3948         * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
3949         ipa_check_create_edge_args.
3950         (ipcp_generate_summary): Do not call ipa_check_create_node_params and
3951         ipa_check_create_edge_args.
3952         * ipa-inline.c (inline_generate_summary): Do not call
3953         ipa_check_create_node_params and ipa_check_create_edge_args.
3954         * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
3955         ipa_check_create_edge_args.
3956
3957 2011-04-09  Anatoly Sokolov  <aesok@post.ru>
3958
3959         * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
3960         instead of loop.
3961         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
3962         * function.c (record_hard_reg_sets): Likewise.
3963         * ira.c (compute_regs_asm_clobbered): Likewise.
3964         * sched-deps.c (sched_analyze_1): Likewise.
3965         * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
3966
3967 2011-04-09  Xinliang David Li  <davidxl@google.com>
3968
3969         PR tree-optimization/PR48484
3970         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
3971         has_valid_pred lazily
3972
3973 2011-04-09  Duncan Sands  <baldrick@free.fr>
3974
3975         * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
3976
3977 2011-04-08  Eric Botcazou  <ebotcazou@adacore.com>
3978
3979         * combine.c (combine_validate_cost): Adjust comments.  Set registered
3980         cost of I0 to zero at the end, if any.
3981
3982 2011-04-08  Xinliang David Li  <davidxl@google.com>
3983
3984         * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
3985         to insane profile data.
3986
3987 2011-04-08  Xinliang David Li  <davidxl@google.com>
3988
3989         * ipa-cp.c (ipcp_update_profiling): Correct
3990          negative scale factor due to insane profile data.
3991
3992 2011-04-08  Xinliang David Li  <davidxl@google.com>
3993
3994         * final.c (dump_basic_block_info): New function.
3995         (final): Dump basic block.
3996         (final_scan_insn): Remove old dump.
3997
3998 2011-04-08  Steven G. Kargl  <kargl@gcc.gnu.org>
3999
4000         PR target/47829
4001         * config.gcc (i386-*-freebsd): Disable unwind table generation for
4002         crtbegin/crtend.
4003
4004 2011-04-08  Michael Matz  <matz@suse.de>
4005
4006         PR middle-end/48389
4007         * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
4008         functions.
4009         (rebuild_jump_labels): Call rebuild_jump_labels_1.
4010         * rtl.h (rebuild_jump_labels_chain): Declare.
4011         * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
4012         insns inserted on edges.
4013
4014 2011-04-08  Joseph Myers  <joseph@codesourcery.com>
4015
4016         * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
4017         * config/arm/arm-arches.def: New.
4018         * config/arm/arm-opts.h: New.
4019         * config/arm/genopt.sh: New.
4020         * config/arm/arm-tables.opt: New (generated).
4021         * config/arm/arm.c (arm_handle_option, arm_target_help,
4022         TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
4023         (all_architectures): Get most table contents from arm-arches.def.
4024         (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
4025         arm_selected_tune here.
4026         * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
4027         * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
4028         (march=, mcpu=, mtune=): Use Enum and Var.
4029         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
4030         (arm.o): Update dependencies.
4031
4032 2011-04-08  Basile Starynkevitch  <basile@starynkevitch.net>
4033
4034         * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
4035         of header_file.
4036         (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
4037         (write_typed_alloc_defns): Likewise.
4038         (main): Calls write_typed_alloc_defns with output_header.
4039
4040 2011-04-08  Vladimir Makarov  <vmakarov@redhat.com>
4041
4042         PR inline-asm/48435
4043         * ira-color.c (setup_profitable_hard_regs): Add comments.
4044         Don't take prohibited hard regs into account.
4045         (setup_conflict_profitable_regs): Rename to
4046         get_conflict_profitable_regs.
4047         (check_hard_reg_p): Check prohibited hard regs.
4048
4049 2011-04-08  Nathan Froyd  <froydnj@codesourcery.com>
4050
4051         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
4052         * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
4053         * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
4054
4055 2011-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4056
4057         PR target/48366
4058         * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
4059         move from floating point to shift amount register.
4060         (emit_move_sequence): Remove secondary reload support for floating
4061         point to shift amount amount register copies.
4062         (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
4063         amount register copies.
4064         * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
4065         register, return false if mode isn't a scalar integer mode.
4066         * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
4067
4068 2011-04-08  Richard Guenther  <rguenther@suse.de>
4069
4070         * gimple.c (gimple_call_flags): Remove kludge.
4071
4072 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
4073
4074         * sel-sched.c (sel_region_init): Move call to
4075         sel_setup_region_sched_flags after setup_current_loop_nest.
4076
4077 2011-04-08  Andrey Belevantsev  <abel@ispras.ru>
4078
4079         PR rtl-optimization/48272
4080         * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
4081         init_insn_reg_pressure_info.  Adjust a caller.
4082         * sched-int.h (init_insn_reg_pressure_info): Declare.
4083         * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
4084         when sched-pressure is enabled.
4085
4086 2011-04-08  Richard Guenther  <rguenther@suse.de>
4087
4088         * gimple.c (gimple_set_modified): Do not queue calls to
4089         MODIFIED_NORETURN_CALLS here ...
4090         * tree-ssa-operands.c (update_stmt_operands): ... but here.
4091
4092 2011-04-08  Richard Guenther  <rguenther@suse.de>
4093
4094         PR lto/48467
4095         * toplev.c (lang_dependent_init): Do not open asm_out_file
4096         in WPA mode, nor perform debug machinery initialization.
4097         (finalize): Do not unlink asm_out_file in WPA mode.
4098
4099 2011-04-08  Richard Guenther  <rguenther@suse.de>
4100
4101         * gimple.h (gimple_call_fntype): New function.
4102         (gimple_call_return_type): Use it.
4103         * expr.c (expand_expr_real_1): Use gimple_call_fntype.
4104         * gimple-low.c (gimple_check_call_args): Likewise.
4105         * gimple.c (gimple_call_flags): Likewise.
4106         (gimple_call_arg_flags): Likewise.
4107         (gimple_call_return_flags): Likewise.
4108         * tree-cfg.c (verify_gimple_call): Likewise.
4109         (do_warn_unused_result): Likewise.
4110         * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
4111         * value-prof.c (gimple_ic_transform): Fix fndecl check.
4112
4113 2011-04-08  Dmitry Melnik  <dm@ispras.ru>
4114
4115         PR rtl-optimization/48235
4116         * sel-sched.c (code_motion_process_successors): Recompute the last
4117         insn in basic block if control flow changed.
4118         (code_motion_path_driver): Ditto.  Recompute the first insn as well.
4119         Update condition for ilist_remove.
4120
4121 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
4122
4123         PR rtl-optimization/48302
4124         * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
4125         * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument.  Use
4126         it to record added preheader blocks.
4127         * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument.  Pass it
4128         on to sel_add_loop_preheaders.
4129         (sel_region_init): Move call to setup_current_loop_nest after
4130         sel_init_bbs.
4131
4132 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
4133
4134         PR target/48273
4135         * cfgloop.h (loop_has_exit_edges): New helper.
4136         * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
4137         non-clonable.
4138         * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
4139         that have no exit edges.
4140
4141 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
4142
4143         PR rtl-optimization/48442
4144         * sel-sched.c (init_seqno): Remove number_of_insns argument.  Update
4145         all callers.  Adjust assert.
4146
4147 2011-04-08  Jakub Jelinek  <jakub@redhat.com>
4148
4149         PR tree-optimization/48377
4150         * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
4151         is_packed to true even for types with smaller TYPE_ALIGN than
4152         TYPE_SIZE.
4153
4154 2011-04-08  Richard Guenther  <rguenther@suse.de>
4155
4156         PR bootstrap/48513
4157         * doc/tm.texi: Re-generate.
4158
4159 2011-04-08  Wei Guozhi  <carrot@google.com>
4160
4161         PR target/47855
4162         * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
4163         * config/arm/arm.c (arm_attr_length_push_multi): New function.
4164         * config/arm/arm.md (*push_multi): Change the length computation to
4165         call a C function.
4166
4167 2011-04-08  Anatoly Sokolov  <aesok@post.ru>
4168
4169         * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
4170         (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
4171         * doc/tm.texi: Regenerate.
4172         * system.h (ASM_OUTPUT_BSS): Poison.
4173         * varasm.c (asm_output_bss): Remove function.
4174         (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
4175
4176         * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
4177         * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
4178         * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
4179         * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
4180         Likewise.
4181         * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
4182         Likewise.
4183         * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
4184         Likewise.
4185         * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
4186
4187 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
4188
4189         * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
4190         EnumValue lines.
4191
4192 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
4193
4194         * config/m68k/m68k.c (m68k_handle_option): Don't handle
4195         OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
4196         OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
4197         OPT_mcpu32.
4198         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
4199         handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
4200         -m68030, -m68040, -m68060, -mcpu32 and -m68332.
4201         * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
4202         m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
4203         * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
4204         (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
4205         (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
4206         options.  Don't map other m68k options manually.  Don't handle
4207         old-style options as canonical.
4208         (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
4209         * doc/install.texi (m68k-*-*): Document binutils version requirement.
4210
4211 2011-04-07  Eric Botcazou  <ebotcazou@adacore.com>
4212
4213         * basic-block.h (force_nonfallthru): Move to...
4214         * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
4215         (force_nonfallthru): ...here.
4216         * cfghooks.c (force_nonfallthru): New function.
4217         * cfgrtl.c (force_nonfallthru): Rename into...
4218         (rtl_force_nonfallthru): ...this.
4219         (commit_one_edge_insertion): Do not set AUX field.
4220         (commit_edge_insertions): Do not discover new basic blocks.
4221         (rtl_cfg_hooks): Add rtl_force_nonfallthru.
4222         (cfg_layout_rtl_cfg_hooks): Likewise.
4223         * function.c (thread_prologue_and_epilogue_insns): Remove bogus
4224         ATTRIBUTE_UNUSED.  Discover new basic blocks in the prologue insns.
4225         * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
4226
4227 2011-04-07  Anatoly Sokolov  <aesok@post.ru>
4228
4229         * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
4230         Remove macros.
4231
4232 2011-04-07  Uros Bizjak  <ubizjak@gmail.com>
4233
4234         * config/i386/sse.md: Update copyright year.
4235         (avxcvtvecmode): Remove.
4236         (sse_movhlps): Merge with *avx_movhlps.
4237         (sse_movlhps): Merge with *avx_movlhps.
4238         (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
4239         (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
4240         (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
4241         (sse_loadhps): Merge with *avx_loadhps.
4242         (sse_storelps): Merge with *avx_storelps.
4243         (sse_loadlps): Merge with *avx_loadlps.
4244         (sse_movss): Merge with *avx_movss.
4245         (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
4246         (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
4247         (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
4248         (*vec_set<mode>_0_sse2): Split multi-unit alternative.
4249         (vec_set<mode>_0): Ditto.
4250         (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
4251         (sse4_1_insertps): Merge with *avx_insertps.
4252         (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
4253         (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
4254         (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
4255         (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
4256         (sse2_storehpd): Merge with *avx_storehpd.
4257         (sse2_loadhpd): Merge with *avx_loadhpd.
4258         (sse2_loadlpd): Merge with *avx_loadlpd.
4259         (sse2_movsd): Merge with *avx_movsd.
4260         (*vec_concatv2df): Merge with *vec_concatv2df.
4261
4262 2011-04-07  Jakub Jelinek  <jakub@redhat.com>
4263
4264         PR debug/48343
4265         * combine.c (combine_instructions): Add last_combined_insn,
4266         update it if insn is after it, pass it to all try_combine calls.
4267         (try_combine): Add last_combined_insn parameter, pass it instead of
4268         i3 to propagate_for_debug.
4269
4270 2011-04-07  Nick Clifton  <nickc@redhat.com>
4271
4272         * config/mn10300/mn10300.md (movqi_internal): Add alternatives
4273         to handle MDR <-> data register transfers.
4274         (movhi_internal): Likewise.
4275
4276 2011-04-07  Alan Modra  <amodra@gmail.com>
4277
4278         * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
4279         previous stack info.
4280
4281 2011-04-07  Tom de Vries  <tom@codesourcery.com>
4282
4283         PR target/43920
4284         * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter.  Pass dir to
4285         flow_find_cross_jump.  Swap variables to implement backward replacement.
4286         (try_crossjump_bb): Add argument to try_crossjump_to_edge.
4287
4288 2011-04-07  Tom de Vries  <tom@codesourcery.com>
4289
4290         PR target/43920
4291         * cfgcleanup.c (walk_to_nondebug_insn): New function.
4292         (flow_find_cross_jump): Use walk_to_nondebug_insn.  Recalculate bb1
4293         and bb2.
4294         (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
4295         src1 or src2.  Redirect edges to the last basic block.  Update
4296         frequency and count on multiple basic blocks in case of fallthru.
4297
4298 2011-04-07  Tom de Vries  <tom@codesourcery.com>
4299
4300         PR target/43920
4301         * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
4302         function.
4303         (old_insns_match_p): Change return type.  Replace return false/true
4304         with return dir_none/dir_both.  Use can_replace_by.
4305         (flow_find_cross_jump): Add dir_p parameter.  Init replacement
4306         direction from dir_p.  Register replacement direction in dir, last_dir
4307         and afterlast_dir.  Handle new return type of old_insns_match_p using
4308         merge_dir.  Return replacement direction in dir_p.
4309         (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
4310         return type of old_insns_match_p.
4311         (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
4312         * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
4313         flow_find_cross_jump.
4314         * basic-block.h (enum replace_direction): New type.
4315         (flow_find_cross_jump): Add parameter to declaration.
4316
4317 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
4318
4319         * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
4320         (AVXMODEDCVTPS2DQ): Ditto.
4321         (VEC_FLOAT_MODE): Ditto.
4322         (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3.  Use VF mode
4323         iterator.  Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
4324         (<any_logic:code><mode>3): Use VF mode iterator.
4325         (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
4326         Use VF mode iterator.
4327         (copysign<mode>3): Use VF mode iterator.
4328         (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3.  Handle
4329         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
4330         (*<any_logic:code><MODEF:mode>3): Merge with
4331         *avx_<any_logic:code><MODEF:mode>3.
4332         (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
4333         (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
4334         (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
4335         (avx_cvtdq2ps<avxmodesuffix>): Remove.
4336         (sse2_cvtdq2ps): Use %v modifier.
4337         (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
4338         (avx_cvtps2dq<avxmodesuffix>): Remove.
4339         (sse2_cvtps2dq): Use %v modifier.
4340         (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
4341         (avx_cvttps2dq<avxmodesuffix>): Remove.
4342         (sse2_cvttps2dq): Use %v modifier.
4343         (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
4344         (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
4345         (sse2_cvtsd2siq): Fix insn template.
4346         (sse2_cvtsd2siq_2): Ditto.
4347         (sse2_cvttsd2siq): Ditto.
4348         (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
4349         (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
4350
4351 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
4352
4353         * gcov-io.c: Use GCC Runtime Library Exception.
4354
4355 2011-04-06  Jakub Jelinek  <jakub@redhat.com>
4356
4357         PR debug/48466
4358         * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
4359         as base_reg whatever register reg has been eliminated to, instead
4360         of hardcoding STACK_POINTER_REGNUM.
4361
4362 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
4363
4364         * doc/tm.texi.in: Document C target hooks as separate from general
4365         target hooks.
4366         * doc/tm.texi: Regenerate.
4367         * genhooks.c (struct hook_desc): Add docname field.
4368         (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC).  Initialize
4369         docname field.
4370         (hook_array): Include c-target.def.
4371         (emit_documentation): Use docname field in output.
4372         (emit_init_macros): Take docname argument.  Only emit definitions
4373         for hooks matching docname.
4374         (main): Expect additional arguments in all cases.  Pass argument
4375         to emit_init_macros.
4376         * target.def: Move initial macro definitions and comments to
4377         target-hooks-macros.h.
4378         (gcc_targetcm): Move to c-family/c-target.def.
4379         * target.h (targetcm): Move declaration to c-family/c-target.h.
4380         * targhooks.c (default_handle_c_option): Move to
4381         c-family/c-opts.c.
4382         * targhooks.h (default_handle_c_option): Move declaration to
4383         c-family/c-common.h.
4384         * target-hooks-macros.h: New file.
4385         * config.gcc (target_has_targetcm): Define and use to add to
4386         c_target_objs and cxx_target_objs.
4387         * config/default-c.c: New file.
4388         * config/darwin-c.c: Include c-target.h and c-target-def.h instead
4389         of target.h and target-def.h.
4390         (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
4391         (darwin_objc_construct_string, darwin_cfstring_ref_p,
4392         darwin_check_cfstring_format_arg): Make static.
4393         (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
4394         TARGET_STRING_OBJECT_REF_TYPE_P,
4395         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
4396         * config/darwin-protos.h (darwin_objc_construct_string,
4397         darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
4398         declare.
4399         * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
4400         TARGET_STRING_OBJECT_REF_TYPE_P,
4401         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
4402         * config/t-darwin (darwin-c.o): Update dependencies.
4403         * system.h (TARGET_HAS_TARGETCM): Poison.
4404         * Makefile.in (TARGET_H): Update.
4405         (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
4406         (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
4407         (default-c.o): New target.
4408         (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
4409         (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
4410         (s-tm-texi): Pass -d option to genhooks.  Also test timestamp on
4411         c-target.def.
4412         (build/genhooks.o): Update dependencies.
4413
4414 2011-04-06  Richard Guenther  <rguenther@suse.de>
4415
4416         * ipa-inline.c (enum inlining_mode): Remove.
4417         (cgraph_flatten): Use some other token.
4418         (cgraph_edge_early_inlinable_p): New function, split out from ...
4419         (cgraph_perform_always_inlining): New function, split out from ...
4420         (cgraph_decide_inlining_incrementally): ... here.
4421         (cgraph_mark_inline_edge): Adjust.
4422         (cgraph_early_inlining): Re-structure.
4423         (pass_early_inline): Require SSA form.
4424
4425 2011-04-06  Andrew Stubbs  <ams@codesourcery.com>
4426             Julian Brown  <julian@codesourcery.com>
4427             Mark Shinwell  <shinwell@codesourcery.com>
4428
4429         * config/arm/arm.h (arm_class_likely_spilled_p): Check against
4430         LO_REGS only for Thumb-1.
4431         (MODE_BASE_REG_CLASS): Restrict base registers to those which can
4432         be used in short instructions when optimising for size on Thumb-2.
4433
4434 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
4435
4436         * gimple-low.c (lower_gimple_return): When not optimizing, force labels
4437         associated with user returns to be preserved.
4438
4439 2011-04-06  Tristan Gingold  <gingold@adacore.com>
4440
4441         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
4442         symbol_queue_size, DBXOUT_DECR_NESTING,
4443         (DBXOUT_DECR_NESTING_AND_RETURN): Also define
4444         if XCOFF_DEBUGGING_INFO.
4445
4446 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
4447
4448         * config/i386/i386.md (attribute isa): New.
4449         (attribute enabled): New.
4450         (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
4451         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
4452         (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
4453         (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
4454         (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
4455         (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
4456         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
4457         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
4458
4459         * config/i386/sse.md (VF): New mode iterator.
4460         (VF1): Ditto.
4461         (VF2): Ditto.
4462         (VF_128): Ditto.
4463         (SSEMODEF4): Remove.
4464         (attribute sse): Handle V8SF and V4DF modes.
4465         (<absneg:code><mode>2): Use VF mode iterator.
4466         (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2.  Use VF
4467         mode iterator.
4468         (<plusminus_insn><mode>3): Use VF mode iterator.
4469         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
4470         Use VF mode iterator.
4471         (<sse>_vm<plusminus_insn><mode>3): Merge with
4472         *avx_vm<plusminus_insn><mode>3.  Use VF_128 mode iterator.
4473         (mul<mode>3): Use VF mode iterator.
4474         (*mul<mode>3): Merge with *avx_mul<mode>3.  Use VF mode iterator.
4475         (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3.  Use VF_128
4476         mode iterator.
4477         (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
4478         (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
4479         (<sse>_div<mode>3): Merge with *avx_div<mode>3.  Use VF mode iterator.
4480         (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3.  Use VF_128
4481         mode iterator.
4482         (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
4483         Use VF1 mode iterator.
4484         (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
4485         (sqrt<VF2:mode>2): New expander.
4486         (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
4487         (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
4488         and sqrtv2df2.  Use VF mode iterator.
4489         (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2.  Use VF_128
4490         mode iterator.
4491         (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
4492         (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
4493         Use VF1 mode iterator.
4494         (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
4495         (<smaxmin:code><mode>3): Use VF mode iterator.
4496         (*<smaxmin:code><mode>3_finite): Merge with
4497         *avx_<smaxmin:code><mode>3_finite.  Use VF mode iterator.
4498         (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
4499         (<sse>_vm<smaxmin:code><mode>2): Merge with
4500         *avx_vm<smaxmin:code><mode>2.  Use VF_128 mode iterator.
4501         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.  Use VF
4502         mode iterator.
4503         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.  Use VF
4504         mode iterator.
4505         (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
4506         (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
4507         (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
4508         (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
4509         (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3.  Use
4510         VF mode iterator.
4511         (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
4512         Use VF_128 mode iterator.
4513         (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3.  Use VF
4514         mode iterator.
4515         (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3.  Use
4516         VF_128 mode iterator.
4517         (vcond<mode>): Use VF mode iterator.
4518         * config/i386/predicates.md (sse_comparison_operator): Merge with
4519         avx_comparison_float_operator.  Do not declare as special_predicate.
4520         * config/i386/i386.c (struct builtin_description): Update for renamed
4521         compare patterns.
4522         (ix86_expand_args_builtin): Ditto.
4523         (ix86_expand_sse_compare_mask): Ditto.
4524
4525 2011-04-06  Richard Guenther  <rguenther@suse.de>
4526
4527         * tree-inline.c (estimate_num_insns): For calls simply account
4528         for all passed arguments and a used return value.
4529
4530 2011-04-06  Richard Guenther  <rguenther@suse.de>
4531
4532         PR tree-optimization/47663
4533         * cgraph.h (struct cgraph_edge): Add call_stmt_size and
4534         call_stmt_time fields.
4535         (cgraph_edge_inlinable_p): Declare.
4536         (cgraph_edge_recursive_p): New inline function.
4537         * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
4538         (cgraph_clone_edge): Copy it.
4539         * ipa-inline.c (cgraph_estimate_edge_time): New function.
4540         Account for call stmt time.
4541         (cgraph_estimate_time_after_inlining): Take edge argument.
4542         (cgraph_estimate_edge_growth): Account call stmt size.
4543         (cgraph_estimate_size_after_inlining): Take edge argument.
4544         (cgraph_mark_inline_edge): Adjust.
4545         (cgraph_check_inline_limits): Likewise.
4546         (cgraph_recursive_inlining_p): Remove.
4547         (cgraph_edge_badness): Use cgraph_edge_recursive_p.
4548         (cgraph_decide_recursive_inlining): Take edge argument and
4549         adjust.
4550         (cgraph_decide_inlining_of_small_functions): Do not avoid
4551         diags for recursive inlining here.
4552         (cgraph_flatten): Adjust.
4553         (cgraph_decide_inlining_incrementally): Likewise.
4554         (estimate_function_body_sizes): Remove call cost handling.
4555         (compute_inline_parameters): Initialize caller edge call costs.
4556         (cgraph_estimate_edge_growth): New function.
4557         (cgraph_estimate_growth): Use it.
4558         (cgraph_edge_badness): Likewise.
4559         (cgraph_check_inline_limits): Take an edge argument.
4560         (cgraph_decide_inlining_of_small_functions): Adjust.
4561         (cgraph_decide_inlining): Likewise.
4562         * tree-inline.c (estimate_num_insns): Only account for call
4563         return value if it is used.
4564         (expand_call_inline): Avoid diagnostics on recursive inline
4565         functions here.
4566         * lto-cgraph.c (lto_output_edge): Output edge call costs.
4567         (input_edge): Input edge call costs.
4568
4569 2011-04-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4570
4571         * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
4572
4573 2011-04-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
4574
4575         * doc/invoke.texi (Spec Files): Fix typo.
4576
4577 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
4578
4579         * profile.c (branch_prob): Move declaration of local variable.  Remove
4580         obsolete ??? comment.  Expand the location explicitly instead of using
4581         the LOCATION_FILE and LOCATION_LINE macros.
4582
4583 2011-04-06  Wei Guozhi  <carrot@google.com>
4584
4585         PR target/47855
4586         * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
4587         (arm_cond_branch): Likewise.
4588         (arm_cond_branch_reversed): Likewise.
4589         (arm_jump): Likewise.
4590         (push_multi): Likewise.
4591         * config/arm/constraints.md (Py): New constraint.
4592
4593 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
4594
4595         PR bootstrap/48471
4596         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
4597         Move these...
4598         (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
4599         (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
4600         #ifdef DBX_DEBUGGING_INFO.
4601
4602 2011-04-05  Bernd Schmidt  <bernds@codesourcery.com>
4603
4604         PR bootstrap/48403
4605         * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
4606         if old and new states differ.
4607
4608 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
4609
4610         * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
4611         OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
4612         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
4613         handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
4614         * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
4615         mcfv4e): Use Alias.
4616         * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
4617         ColdFire options to -mcpu= options.
4618
4619 2011-04-05  Jeff Law  <law@redhat.com>
4620
4621         * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
4622         check if BB is a successor of LOOP->header and return
4623         NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
4624
4625 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
4626
4627         * cprop.c (struct reg_use): Remove.
4628         (reg_use_table): Make an array of RTX.
4629         (find_used_regs, constprop_register, local_cprop_pass,
4630         bypass_block): Simplify users of reg_use_table.
4631         (cprop_insn): Likewise.  Iterate if copy propagation succeeded
4632         on one of the uses found by find_used_regs.
4633
4634 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
4635
4636         PR bootstrap/48469
4637         * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
4638         declaration.
4639
4640 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
4641
4642         * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
4643         as an rtx.
4644         (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
4645
4646 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
4647
4648         PR middle-end/48441
4649         * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
4650
4651 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
4652
4653         * combine.c: Include obstack.h.
4654         (struct insn_link): Define.
4655         (uid_log_links): Adjust type.
4656         (FOR_EACH_LOG_LINK): New macro.
4657         (insn_link_obstack): Declare.
4658         (alloc_insn_link): Define.
4659         (create_log_links): Call it.  Use FOR_EACH_LOG_LINK and adjust
4660         type of link variables.
4661         (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
4662         (try_combine, record_promoted_values, distribute_notes): Likewise.
4663         (distribute_links): Likewise.  Tweak prototype.
4664         (clear_log_links): Delete.
4665         (adjust_for_new_dest): Call alloc_insn_link.
4666         * Makefile.in (combine.o): Depend on $(OBSTACK_H).
4667
4668 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
4669
4670         * gcse.c (modify_mem_list): Convert to an array of VECs.
4671         (canon_modify_mem_list, compute_transp): Tweak formatting.
4672         (alloc_gcse_mem): Likewise.  Adjust for modify_mem_list change.
4673         (load_killed_in_block_p): Likewise.
4674         (record_last_mem_set_info): Likewise.
4675         (clear_modify_mem_tables): Likewise.
4676
4677 2011-04-05  Tom de Vries  <tom@codesourcery.com>
4678
4679         PR middle-end/48461
4680         * function.c (emit_use_return_register_into_block): Only define if
4681         HAVE_return.
4682
4683 2011-04-05  Eric Botcazou  <ebotcazou@adacore.com>
4684
4685         * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
4686
4687 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
4688
4689         * config/rx/rx-opts.h: New.
4690         * config/rx/rx.c (rx_cpu_type): Remove.
4691         (rx_handle_option): Don't assert that global structures are in
4692         use.  Access variables via opts pointer.  Defer most handling of
4693         OPT_mint_register_.  Use error_at.
4694         (rx_option_override): Handle deferred OPT_mint_register_ here.
4695         * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
4696         * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
4697         (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
4698         (rx_cpu_types): New Enum and EnumValue entries.
4699         (mint-register=): Use Defer and use Var accordingly.
4700
4701 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
4702
4703         * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
4704         (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
4705         * final.c (debug_flush_symbol_queue, debug_queue_symbol):
4706         Move these...
4707         (debug_free_queue, debug_nesting, symbol_queue_index):
4708         ...and these...
4709         * dbxout.c: ...to here.  Make static.
4710
4711 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
4712
4713         * gcse.c (modify_pair): Define.  Define a VEC of it.
4714         (canon_modify_mem_list): Convert to an array of VECs.
4715         (free_insn_expr_list_list): Delete.
4716         (clear_modify_mem_tables): Call VEC_free instead.
4717         (record_last_mem_set_info): Don't modify canon_modify_mem_list.
4718         (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
4719         (canon_list_insert, compute_transp): Likewise.
4720
4721 2011-04-05  Tom de Vries  <tom@codesourcery.com>
4722
4723         PR target/43920
4724         * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
4725         for size.
4726
4727 2011-04-05  Tom de Vries  <tom@codesourcery.com>
4728
4729         PR target/43920
4730         * function.c (emit_use_return_register_into_block): New function.
4731         (thread_prologue_and_epilogue_insns): Use
4732         emit_use_return_register_into_block.
4733
4734 2011-04-05  Tom de Vries  <tom@codesourcery.com>
4735
4736         PR target/43920
4737         * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
4738         insn.
4739
4740 2011-04-05  Tom de Vries  <tom@codesourcery.com>
4741
4742         * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
4743
4744 2011-04-05  Yufeng Zhang  <yufeng.zhang@arm.com>
4745
4746         * config/arm/arm.md (define_constants for unspec): Replace with
4747         define_c_enum.
4748         (define_constants for unspecv): Replace with define_c_enum.
4749         * config/arm/neon.md (define_constants for unspec): Replace with
4750         define_c_enum.
4751
4752 2011-04-04  Richard Henderson  <rth@redhat.com>
4753
4754         PR bootstrap/48400
4755         * dwarf2out.c (output_line_info): Always emit line info from
4756         at least one section.
4757         (dwarf2out_init): Create text_section_line_info here ...
4758         (set_cur_line_info_table): ... not here.
4759
4760 2011-04-04  Vladimir Makarov  <vmakarov@redhat.com>
4761
4762         PR target/48380
4763         * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
4764         not called.
4765
4766         * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
4767
4768 2011-04-04  Steven Bosscher  <steven@gcc.gnu.org>
4769
4770         * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
4771         (expr_equiv_p): Remove.
4772         (insert_set_in_table): Look at <dest, src> pair instead of expr.
4773         (hash_scan_set): Update call to insert_set_in_table.
4774         (dump_hash_table): Dump <dest, src> pair.
4775         (lookup_set): Simplify.  Lookup <dest, src> pair.
4776         (compute_transp): Remove, fold heavily simplified code into...
4777         (compute_local_properties): ...here.  Expect COMP and TRANSP
4778         unconditionally.
4779         (find_avail_set): Take set directly from struct expr.
4780         (find_bypass-set): Likewise.
4781         (bypass_block): Likewise.
4782         (cprop_insn): Likewise.  Remove redundant INSN_P test.
4783
4784         * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
4785         checks on form of COND from find_implicit_sets to here.
4786         (find_implicit_sets): Cleanup control flow. Split critical edges
4787         if it exposes implicit sets.  Allocate/resize implicit_sets as
4788         necessary.
4789         (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
4790         changed something.  Run df_analyze after find_implicit_sets if any
4791         edges were split.  Do not allocate implicit_sets here.
4792
4793         * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
4794         (gcse_obstack): Renamed to cprop_obstack.
4795         (GNEW, GNEWVEC, GNEWVAR): Remove.
4796         (gmalloc): Remove.
4797         (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
4798         (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
4799         (gcse_alloc): Likewise, and rename to cprop_alloc.
4800         (alloc_gcse_men, free_gcse_mem): Remove.
4801         (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
4802         (compute_hash_table_work): Allocate and free reg_set_bitmap here.
4803         (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
4804
4805         * cprop.c (oprs_not_set_p): Remove.
4806         (mark_set, mark_clobber): Remove.
4807         (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
4808         (reg_not_set_p): New function.
4809         (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
4810         (cprop_insn): Likewise.
4811         (cprop_jump): Use FOR_EACH_EDGE.
4812
4813 2011-04-04  Bernd Schmidt  <bernds@codesourcery.com>
4814
4815         PR bootstrap/48403
4816         * haifa-sched.c (nonscheduled_insns_begin): New static variable.
4817         (rank_for_schedule): Use scheduled_insns vector instead of
4818         last_scheduled_insn.
4819         (ok_for_early_queue_removal): Likewise.
4820         (queue_to_ready): Search forward in nonscheduled_insns_begin if
4821         we have a dbg_cnt.
4822         (choose_ready): Likewise.
4823         (commit_schedule): Use VEC_iterate.
4824         (schedule_block): Initialize nonscheduled_insns_begin.  If we have
4825         a dbg_cnt, use it and ensure the first insn is in the ready list.
4826         (haifa_sched_init): Allocate scheduled_insns.
4827         (sched_extend_ready_list): Don't allocate it; reserve space.
4828         (haifa_sched_finish): Free it.
4829
4830 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
4831
4832         * optc-gen.awk: Always remove type from Variable entry before
4833         recording in var_seen.
4834
4835 2011-04-04  Eric Botcazou  <ebotcazou@adacore.com>
4836
4837         * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
4838         * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
4839         call to tidy_fallthru_edges.
4840
4841 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
4842
4843         * doc/options.texi (ToLower): Document.
4844         * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
4845         * opts-common.c (decode_cmdline_option): Handle cl_tolower.
4846         * opts.h (cl_option): Add cl_tolower field.
4847         * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
4848         arguments with lowercase strings.
4849         * config/rx/rx.opt (mcpu=): Add ToLower.
4850         * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
4851         argument.
4852
4853 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
4854
4855         * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
4856
4857 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
4858
4859         * config/vax/vax.c: Include reload.h.
4860
4861 2011-04-04  Anatoly Sokolov  <aesok@post.ru>
4862
4863         * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
4864         * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
4865         (sparc_preferred_reload_class): New function.
4866
4867 2011-04-04  Jakub Jelinek  <jakub@redhat.com>
4868
4869         PR debug/48401
4870         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
4871         Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
4872
4873 2011-04-03  Nathan Froyd  <froydnj@codesourcery.com>
4874
4875         * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
4876         * tree.c (initialize_tree_contains_struct): Adjust accordingly.
4877
4878 2011-04-03  Anatoly Sokolov  <aesok@post.ru>
4879
4880         * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
4881         (ASM_OUTPUT_ALIGNED_BSS): Define.
4882
4883 2011-04-03  Michael Matz  <matz@suse.de>
4884
4885         * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
4886         and next_slot members.
4887         (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
4888         lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
4889         (lto_streamer_cache_append): Declare.
4890         * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
4891         unsigned index, remove offset parameter, ensure that we append
4892         or update existing entries.
4893         (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
4894         parameter, update next_slot for append.
4895         (lto_streamer_cache_insert): Use unsigned index, remove offset_p
4896         parameter.
4897         (lto_streamer_cache_insert_at): Likewise.
4898         (lto_streamer_cache_append): New function.
4899         (lto_streamer_cache_lookup): Use unsigned index.
4900         (lto_streamer_cache_get): Likewise.
4901         (lto_record_common_node): Don't test tree_node_can_be_shared.
4902         (preload_common_node): Adjust call to lto_streamer_cache_insert.
4903         (lto_streamer_cache_delete): Don't free offsets member.
4904         * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
4905         (lto_output_string_with_length): Use lto_output_data_stream.
4906         (lto_output_tree_header): Remove ix parameter, don't write it.
4907         (lto_output_builtin_tree): Likewise.
4908         (lto_write_tree): Adjust callers to above, don't track and write
4909         offset, write unsigned index.
4910         (output_unreferenced_globals): Don't emit all global vars.
4911         (write_global_references): Use unsigned indices.
4912         (lto_output_decl_state_refs): Likewise.
4913         (write_symbol): Likewise.
4914         * lto-streamer-in.c (lto_input_chain): Move earlier.
4915         (input_function): Use unsigned index.
4916         (input_alias_pairs): Don't read and then ignore all global vars.
4917         (lto_materialize_tree): Remove ix_p parameter, don't read index,
4918         don't pass it back, use lto_streamer_cache_append.
4919         (lto_register_var_decl_in_symtab): Use unsigned index.
4920         (lto_register_function_decl_in_symtab): Likewise.
4921         (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
4922         index.
4923         (lto_get_builtin_tree): Don't read index, use
4924         lto_streamer_cache_append.
4925         (lto_read_tree): Adjust call to lto_materialize_tree.
4926
4927         * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
4928         don't use function calls in arguments to MIN.
4929
4930         * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
4931         twice.
4932
4933         * gimple.c (gimple_type_leader_entry): Mark deletable.
4934
4935 2011-04-03  Alan Modra  <amodra@gmail.com>
4936
4937         * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
4938
4939 2011-04-03  Michael Matz  <matz@suse.de>
4940
4941         * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
4942         an integer.
4943         * tree.h (tree_decl_non_common.vindex): Adjust comment.
4944
4945 2011-04-03  Michael Matz  <matz@suse.de>
4946
4947         * cgraphbuild.c (record_reference): Canonicalize constructor values.
4948         * gimple-fold.c (canonicalize_constructor_val): Accept being called
4949         without function context.
4950         * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
4951         current_function_decl and cfun.
4952
4953 2011-04-03  Michael Matz  <matz@suse.de>
4954
4955         * tree.c (decl_init_priority_insert): Don't create entry for
4956         default priority.
4957         (decl_fini_priority_insert): Ditto.
4958         (fields_compatible_p, find_compatible_field): Remove.
4959         * tree.h (fields_compatible_p, find_compatible_field): Remove.
4960         * gimple.c (gimple_compare_field_offset): Adjust block comment.
4961
4962 2011-04-03  Eric Botcazou  <ebotcazou@adacore.com>
4963
4964         * combine.c (try_combine): Remove useless local variable.
4965
4966 2011-04-03  Richard Guenther  <rguenther@suse.de>
4967             Ira Rosen  <ira.rosen@linaro.org>
4968
4969         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
4970         non-variable offsets and compare the remaining bases of the two
4971         accesses instead of looking for exact same data-ref.
4972
4973 2011-04-02  Kai Tietz  <ktietz@redhat.com>
4974
4975         PR target/48416
4976         * i386.c (ix86_function_arg_boundary): Fix printf formatter.
4977
4978         * i386.c (ix86_is_msabi_thiscall): New helper function.
4979         (ix86_is_type_thiscall): New helper function.
4980         (ix86_comp_type_attributes): Handle thiscall for method-functions
4981         special.
4982         (init_cumulative_args): Likewise.
4983         (find_drap_reg): Likewise.
4984         (ix86_static_chain): Likewise.
4985         (x86_this_parameter): Likewise.
4986         (x86_output_mi_thunk): Likewise.
4987
4988 2011-04-01  Olivier Hainque  <hainque@adacore.com>
4989             Nicolas Setton  <setton@adacore.com>
4990             Eric Botcazou  <ebotcazou@adacore.com>
4991
4992         * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
4993         (add_gnat_descriptive_type_attribute): New function.
4994         (gen_array_type_die): Call it.
4995         (gen_enumeration_type_die): Likewise.
4996         (gen_struct_or_union_type_die): Likewise.
4997         (modified_type_die): Likewise.
4998         * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
4999         * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
5000         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
5001
5002 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
5003
5004         PR bootstrap/48148
5005         * dwarf2out.c (resolve_addr): Don't call force_decl_die
5006         if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
5007
5008         Revert:
5009         2011-03-17  Richard Guenther  <rguenther@suse.de>
5010
5011         PR bootstrap/48148
5012         * lto-cgraph.c (input_overwrite_node): Clear the abstract
5013         origin for decls in other ltrans units.
5014         (input_varpool_node): Likewise.
5015
5016 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
5017
5018         PR middle-end/48335
5019         * expr.c (expand_assignment): Handle all possibilities
5020         if TO_RTX is CONCAT.
5021         * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
5022         (store_split_bit_field): If SUBREG_REG (op0) or
5023         op0 itself has smaller mode than word, return it
5024         for offset 0 and const0_rtx for out-of-bounds stores.
5025         If word is const0_rtx, skip it.
5026
5027 2011-04-01  Naveen H.S  <naveen.S@kpitcummins.com>
5028
5029         * config/h8300/h8300.c (print_operand_address): Rename to...
5030         (h8300_print_operand_address): ...this. Make static. Adjust comments.
5031         Call h8300_print_operand and h8300_print_operand_address instead of
5032         print_operand and print_operand_address. Declare.
5033         (print_operand): Renake to...
5034         (h8300_print_operand): ...this. Make static. Adjust comments.
5035         Call h8300_print_operand instead of print_operand. Declare.
5036         (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
5037         (h8300_register_move_cost): Likewise.
5038         (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
5039         TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
5040         * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
5041         PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
5042         * config/h8300/h8300-protos.h (print_operand): Delete.
5043         (print_operand_address): Delete.
5044
5045 2011-04-01  Richard Henderson  <rth@redhat.com>
5046
5047         PR 48400
5048         * dwarf2out.c (dwarf2out_source_line): Disable discriminators
5049         in strict mode before dwarf4.  Re-order tests to early out
5050         before switching sections.
5051
5052 2011-04-01  Nathan Froyd  <froydnj@codesourcery.com>
5053
5054         * config/h8300/constraints.md: New file.
5055         * config/h8300/h8300.md: Include it.  Use satisfies_constraint_J,
5056         satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
5057         (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
5058         * config/h8300/predicates.md (bit_operand): Likewise.
5059         (incdec_operand): Use satisfies_constraint_M and
5060         satisfies_constraint_O.  Don't use C code block.
5061         * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
5062         * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
5063         (compute_mov_length): Use satisfies_constraint_G.
5064         (fix_bit_operand): Use satisfies_constraint_U.
5065         * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
5066         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
5067         (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
5068         (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
5069         (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
5070         (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
5071         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
5072         (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
5073         (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
5074         (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
5075         (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
5076         (EXTRA_MEMORY_CONSTRAINT): Delete.
5077
5078 2011-04-01  Andrew Pinski  <pinskia@gmail.com>
5079             Michael Meissner  <meissner@linux.vnet.ibm.com>
5080
5081         PR target/48262
5082         * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
5083         operands, as per the specifications.
5084
5085         * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
5086         (vec_extract_evenv4sf): Ditto.
5087         (vec_extract_evenv8hi): Ditto.
5088         (vec_extract_evenv16qi): Ditto.
5089         (vec_extract_oddv4si): Ditto.
5090
5091 2011-03-31  Mark Wielaard  <mjw@redhat.com>
5092
5093         * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
5094         high_pc attribute if the CU has no associated code. Only output
5095         DW_AT_entry_pc for CU if not generating strict dwarf and
5096         dwarf_version < 4.
5097
5098 2011-04-01  Bernd Schmidt  <bernds@codesourcery.com>
5099
5100         * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
5101         * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
5102         out of ...
5103         (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
5104         * final.c (final_start_function): Call the new function rather
5105         than using a NULL argument for dwarf2out_frame_debug.
5106
5107         * ifcvt.c (cond_exec_process_insns): Disallow converting a block
5108         that contains the prologue.
5109
5110         * haifa-sched.c (queue_insn): New arg REASON.  All callers
5111         changed.  Print it in debugging output.
5112
5113         * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
5114
5115         * sched-ebb.c (begin_schedule_ready): Remove second argument.
5116         Split most of the code into...
5117         (begin_move_insn): ... here.  New function.
5118         (ebb_sched_info): Add a pointer to it.
5119         * haifa-sched.c (scheduled_insns): New static variable.
5120         (sched_extend_ready_list): Allocate it.
5121         (schedule_block): Use it to record the order of scheduled insns.
5122         Perform RTL changes to move insns only after all scheduling
5123         decisions have been made.
5124         * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
5125         begin_move_insn field.
5126         * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
5127         * sched-int.h (struct haifa_sched_info): Remove second argument
5128         from begin_schedule_ready hook.  Add new member begin_move_insn.
5129         * sched-rgn.c (begin_schedule_ready): Remove second argument.
5130         (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
5131
5132         * haifa-sched.c (prune_ready_list): New function, broken out of
5133         schedule_block.
5134         (schedule_block): Use it.
5135
5136 2011-04-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5137
5138         * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
5139
5140 2011-04-01  Kai Tietz  <ktietz@redhat.com>
5141
5142         * config.gcc (*-*-mingw*): Allow as option the
5143         posix threading model.
5144         * config/i386/mingw32.h (SPEC_PTHREAD1,  SPEC_PTHREAD2):
5145         New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
5146         definition.
5147         (CPP_SPEC): Add pthread/no-pthread handling.
5148         (LIB_SPEC): Likewise.
5149         * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
5150         (LIB_SPEC): Likewise.
5151         * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
5152         flag to pass -pthread option for shared libgcc build.
5153         (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
5154         for shared libgcc build.
5155         * config/i386/t-mingw-pthread: New file.
5156         * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
5157         New define to enable use of library pthread by default.
5158         * config/i386/mingw.opt (pthread): New driver option.
5159         (no-pthread): New driver option.
5160         * config/i386/cygming.opt: Make sure trailing empty line is retained.
5161         * config/i386/mingw-w64.opt: Likewise.
5162
5163 2011-04-01  Gary Funck <gary@intrepid.com>
5164
5165         * c-decl.c (grokdeclarator): Fix formatting.
5166
5167 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
5168
5169         * expr.c (emit_block_move_via_movmem): Use n_generator_args
5170         instead of n_operands.
5171         (set_storage_via_setmem): Likewise.
5172         * optabs.c (maybe_gen_insn): Likewise.
5173         * config/arm/arm.c (arm_init_neon_builtins): Likewise.
5174         * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
5175         (mips_expand_builtin_direct): Likewise.
5176         * config/spu/spu.c (expand_builtin_args): Likewise.
5177
5178 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
5179
5180         * recog.h (insn_data_d): Add n_generator_args.
5181         * genoutput.c (data): Likewise.
5182         (output_insn_data): Print it.
5183         (max_opno, num_dups): Delete.
5184         (scan_operands): Just fill in "d->operand[...]".
5185         (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
5186
5187 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
5188
5189         * gensupport.h (pattern_stats): New structure.
5190         * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
5191         * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
5192         (max_operand_1, max_operand_vec): Delete.
5193         (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
5194
5195 2011-03-31  Nathan Froyd  <froydnj@codesourcery.com>
5196
5197         * emit-rtl.c (emit_pattern_after_setloc): New function.
5198         (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
5199         (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
5200         (emit_pattern_after): New function.
5201         (emit_insn_after, emit_jump_insn_after): Call it.
5202         (emit_call_insn_after, emit_debug_insn_after): Likewise.
5203         (emit_pattern_before_setloc): New function.
5204         (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
5205         (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
5206         Likewise.
5207         (emit_pattern_before): New function.
5208         (emit_insn_before, emit_jump_insn_before): Call it.
5209         (emit_call_insn_before, emit_debug_insn_before): Likewise.
5210
5211 2011-03-31  Richard Henderson  <rth@redhat.com>
5212
5213         * dwarf2out.c (dw_separate_line_info_ref): Remove.
5214         (dw_separate_line_info_entry): Remove.
5215         (enum dw_line_info_opcode): New.
5216         (dw_line_info_entry): Use it.
5217         (dw_line_info_table, dw_line_info_table_p): New.
5218         (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
5219         (line_info_table, line_info_label_num): Remove.
5220         (line_info_table_in_use): Remove.
5221         (separate_line_info_table): Remove.
5222         (separate_line_info_table_allocated): Remove.
5223         (separate_line_info_table_in_use): Remove.
5224         (LINE_INFO_TABLE_INCREMENT): Remove.
5225         (line_info_label_num): New.
5226         (cur_line_info_table): New.
5227         (text_section_line_info, cold_text_section_line_info): New.
5228         (separate_line_info): New.
5229         (SEPARATE_LINE_CODE_LABEL): Remove.
5230         (print_dwarf_line_table): Remove.
5231         (debug_dwarf): Don't dump it.
5232         (output_one_line_info_table): New.
5233         (output_line_info): Use it.
5234         (new_line_info_table): New.
5235         (set_cur_line_info_table): New.
5236         (dwarf2out_switch_text_section): Use it.
5237         (dwarf2out_begin_function): Likewise.
5238         (push_dw_line_info_entry): New.
5239         (dwarf2out_source_line): Rewrite for new line info tables.
5240         (dwarf2out_init): Remove dead initailizations.
5241
5242 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
5243
5244         * opts.h (cl_option): Add comments to fields.  Add bit-fields for
5245         various flags.
5246         (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
5247         CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
5248         CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
5249         CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
5250         (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
5251         * opt-functions.awk (flag_init, switch_bit_fields): New.
5252         (switch_flags): Don't handle flags moved to bit-fields.  Don't
5253         generate CL_MISSING_OK or CL_SAVE.
5254         * optc-gen.awk: Update to generate bit-field output as well as
5255         flags field.
5256         * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
5257         bit-field instead of CL_REJECT_DRIVER flag.
5258         * opts-common.c (generate_canonical_option,
5259         decode_cmdline_option): Use bit-fields instead of CL_* flags.
5260         * opts.c (maybe_default_option): Use cl_reject_negative bit-field
5261         instead of CL_REJECT_NEGATIVE flag.
5262         * toplev.c (print_switch_values): Use cl_report bit-field instead
5263         of CL_REPORT flag.
5264
5265 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
5266
5267         * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
5268         a zero minimum index only if it is redundant.
5269
5270 2011-03-31  Vladimir Makarov  <vmakarov@redhat.com>
5271
5272         PR rtl-optimization/48381
5273         * ira-color.c (assign_hard_reg): Use hard reg set intersection
5274         instead of ira_class_hard_reg_index for calculating conflicting
5275         hard registers.
5276
5277 2011-03-31  Steven Bosscher  <steven@gcc.gnu.org>
5278
5279         * cprop.c: Clean up hash table building.
5280         (reg_avail_info): Remove.
5281         (oprs_available_p): Remove.
5282         (record_last_reg_set_info): Remove.
5283         (record_last_set_info): Remove.
5284         (reg_available_p): New function.
5285         (gcse_constant_p): Do not treat unfolded conditions as constants.
5286         (make_set_regs_unavailable): New function.
5287         (hash_scan_set): Simplify with new reg_available_p.
5288         (compute_hash_table_work): Traverse insns stream only once.
5289         Do not compute reg_avail_info. Traverse insns in reverse order.
5290         Record implicit sets after recording explicit sets from the block.
5291
5292 2011-03-31  Michael Matz  <matz@suse.de>
5293
5294         * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
5295
5296 2011-03-31  Anatoly Sokolov  <aesok@post.ru>
5297
5298         * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
5299         * config/h8300/h8300-protos.h (h8300_get_index): Remove.
5300         * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
5301         (h8300_mode_dependent_address_p): New function.
5302         (h8300_get_index): Make static.
5303
5304 2011-03-31  Jeff Law  <law@redhat.com>
5305
5306         * reload1.c (elimination_effects): Fix typo in recent change.
5307
5308         * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
5309         typo potentially leading to null pointer dereference.
5310
5311         * caller-save.c (new_saved_hard_reg): Eliminate return value.
5312         (setup_save_areas): Corresponding changes to avoid useless
5313         assignments.
5314
5315         * jump.c (reversed_comparison_code_parts): Avoid successive return
5316         statements when REVERSE_CONDITION is defined.
5317
5318         * expr.c (expand_assignment): Avoid useless assignments.
5319         (expand_expr_real_1): Likewise.
5320         (expand_expr_real_2): Avoid useless statements.
5321
5322         * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
5323
5324         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
5325
5326         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
5327         statements.
5328
5329         * stmt.c (expand_expr_stmt): Avoid useless assignment.
5330
5331 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
5332
5333         PR target/47109
5334         * doc/tm.texi.in (TARGET_VERSION): Remove.
5335         * doc/tm.texi: Regenerate.
5336         * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
5337         * collect2.c (main): Don't use TARGET_VERSION.
5338         * mips-tdump.c (main): Don't use TARGET_VERSION.
5339         * mips-tfile.c (main): Don't use TARGET_VERSION.
5340         * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
5341         * config/rs6000/vxworksae.h: Remove.
5342         * config/alpha/alpha.h (TARGET_VERSION): Remove.
5343         * config/alpha/freebsd.h (TARGET_VERSION): Remove.
5344         * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
5345         * config/alpha/netbsd.h (TARGET_VERSION): Remove.
5346         * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
5347         * config/arm/arm.h (TARGET_VERSION): Remove.
5348         * config/arm/coff.h (TARGET_VERSION): Remove.
5349         * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
5350         * config/arm/elf.h (TARGET_VERSION): Remove.
5351         * config/arm/freebsd.h (TARGET_VERSION): Remove.
5352         * config/arm/linux-elf.h (TARGET_VERSION): Remove.
5353         * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
5354         * config/arm/pe.h (TARGET_VERSION): Remove.
5355         * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
5356         * config/arm/semi.h (TARGET_VERSION): Remove.
5357         * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
5358         * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
5359         * config/arm/vxworks.h (TARGET_VERSION): Remove.
5360         * config/avr/avr.h (TARGET_VERSION): Remove.
5361         * config/bfin/bfin.h (TARGET_VERSION): Remove.
5362         * config/fr30/fr30.h (TARGET_VERSION): Remove.
5363         * config/frv/frv.h (TARGET_VERSION): Remove.
5364         * config/h8300/h8300.h (TARGET_VERSION): Remove.
5365         * config/i386/cygwin.h (TARGET_VERSION): Remove.
5366         * config/i386/darwin.h (TARGET_VERSION): Remove.
5367         * config/i386/darwin64.h (TARGET_VERSION): Remove.
5368         * config/i386/djgpp.h (TARGET_VERSION): Remove.
5369         * config/i386/freebsd.h (TARGET_VERSION): Remove.
5370         * config/i386/freebsd64.h (TARGET_VERSION): Remove.
5371         * config/i386/gnu.h (TARGET_VERSION): Remove.
5372         * config/i386/i386-interix.h (TARGET_VERSION): Remove.
5373         * config/i386/i386elf.h (TARGET_VERSION): Remove.
5374         * config/i386/linux.h (TARGET_VERSION): Remove.
5375         * config/i386/linux64.h (TARGET_VERSION): Remove.
5376         * config/i386/lynx.h (TARGET_VERSION): Remove.
5377         * config/i386/mingw32.h (TARGET_VERSION): Remove.
5378         * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
5379         * config/i386/netbsd64.h (TARGET_VERSION): Remove.
5380         * config/i386/netware.h (TARGET_VERSION): Remove.
5381         * config/i386/nto.h (TARGET_VERSION): Remove.
5382         * config/i386/openbsd.h (TARGET_VERSION): Remove.
5383         * config/i386/vxworks.h (TARGET_VERSION): Remove.
5384         * config/ia64/elf.h (TARGET_VERSION): Remove.
5385         * config/ia64/freebsd.h (TARGET_VERSION): Remove.
5386         * config/ia64/hpux.h (TARGET_VERSION): Remove.
5387         * config/ia64/linux.h (TARGET_VERSION): Remove.
5388         * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
5389         * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
5390         TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
5391         * config/lm32/lm32.h (TARGET_VERSION): Remove.
5392         * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
5393         * config/m32c/m32c.h (TARGET_VERSION): Remove.
5394         * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
5395         * config/m32r/m32r.h (TARGET_VERSION): Remove.
5396         * config/m68k/linux.h (TARGET_VERSION): Remove.
5397         * config/m68k/m68k.h (TARGET_VERSION): Remove.
5398         * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
5399         * config/m68k/uclinux.h (TARGET_VERSION): Remove.
5400         * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
5401         * config/mep/mep.h (TARGET_VERSION): Remove.
5402         * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
5403         MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
5404         * config/mips/iris6.h (MACHINE_TYPE): Remove.
5405         * config/mips/linux.h (TARGET_VERSION): Remove.
5406         * config/mips/netbsd.h (MACHINE_TYPE): Remove.
5407         * config/mips/vxworks.h (TARGET_VERSION): Remove.
5408         * config/mmix/mmix.h (TARGET_VERSION): Remove.
5409         * config/mn10300/linux.h (TARGET_VERSION): Remove.
5410         * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
5411         * config/pa/pa.h (TARGET_VERSION): Remove.
5412         * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
5413         * config/picochip/picochip.h (TARGET_VERSION): Remove.
5414         * config/rs6000/aix.h (TARGET_VERSION): Remove.
5415         * config/rs6000/darwin.h (TARGET_VERSION): Remove.
5416         * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
5417         * config/rs6000/eabi.h (TARGET_VERSION): Remove.
5418         * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
5419         * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
5420         * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
5421         * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
5422         * config/rs6000/linux.h (TARGET_VERSION): Remove.
5423         * config/rs6000/linux64.h (TARGET_VERSION): Remove.
5424         * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
5425         * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
5426         * config/rs6000/lynx.h (TARGET_VERSION): Remove.
5427         * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
5428         * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
5429         * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
5430         * config/s390/linux.h (TARGET_VERSION): Remove.
5431         * config/s390/s390.h (TARGET_VERSION): Remove.
5432         * config/s390/tpf.h (TARGET_VERSION): Remove.
5433         * config/score/score.h (TARGET_VERSION): Remove.
5434         * config/sh/linux.h (TARGET_VERSION): Remove.
5435         * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
5436         TARGET_VERSION_CPU, TARGET_VERSION): Remove.
5437         * config/sh/sh.h (TARGET_VERSION): Remove.
5438         * config/sh/sh64.h (TARGET_VERSION): Remove.
5439         * config/sh/superh.h (TARGET_VERSION): Remove.
5440         * config/sh/vxworks.h (TARGET_VERSION): Remove.
5441         * config/sparc/freebsd.h (TARGET_VERSION): Remove.
5442         * config/sparc/linux.h (TARGET_VERSION): Remove.
5443         * config/sparc/linux64.h (TARGET_VERSION): Remove.
5444         * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
5445         TARGET_NAME32, TARGET_NAME): Remove.
5446         * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
5447         * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
5448         * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
5449         * config/sparc/sysv4.h (TARGET_VERSION): Remove.
5450         * config/sparc/vxworks.h (TARGET_VERSION): Remove.
5451         * config/spu/spu.h (TARGET_VERSION): Remove.
5452         * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
5453         * config/v850/v850.h (TARGET_VERSION): Remove.
5454         * config/vax/linux.h (TARGET_VERSION): Remove.
5455         * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
5456         * config/xtensa/elf.h (TARGET_VERSION): Remove.
5457         * config/xtensa/linux.h (TARGET_VERSION): Remove.
5458
5459 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
5460
5461         PR target/48142
5462         * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
5463         frame-related from frame-unrelated adjustments to the stack pointer.
5464
5465 2011-03-31  Jakub Jelinek  <jakub@redhat.com>
5466
5467         * common.opt (fdebug-types-section): Move earlier.
5468         * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
5469
5470 2011-03-31  Andreas Tobler  <andreast@fgznet.ch>
5471
5472         * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
5473         var.
5474
5475 2011-03-30  Nathan Froyd  <froydnj@codesourcery.com>
5476
5477         * tree.h (CASE_CHAIN): Define.
5478         * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
5479         (gimple_redirect_edge_and_branch): Likewise.
5480
5481 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
5482
5483         PR middle-end/48367
5484         * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
5485         calculation.
5486
5487 2011-03-30  Jeff Law  <law@redhat.com>
5488
5489         * PR bootstrap/48371
5490         * reload1.c (reload): Fix botch in last change.
5491
5492         * reload.h (struct reload): Fix typo introduced in last change.
5493
5494 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
5495
5496         * config/arm/arm.opt (mhard-float, msoft-float): Mark
5497         Undocumented.  Remove help text.
5498         * doc/invoke.texi (ARM Options): Don't document -msoft-float and
5499         -mhard-float.
5500
5501 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
5502
5503         * doc/options.texi (NegativeAlias): Document.
5504         (Alias): Mention NegativeAlias.
5505         * opt-functions.awk: Handle NegativeAlias.
5506         * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
5507         * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
5508         * opts.h (CL_NEGATIVE_ALIAS): Define.
5509         * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
5510         (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
5511         OPT_mspe_.
5512         * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
5513         Alias entries.
5514         * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
5515         mno-spe and mno-isel instead of mspe=no and -misel=no.
5516
5517 2011-03-29  Mark Wielaard  <mjw@redhat.com>
5518
5519         * common.opt (fdebug-types-section): New flag.
5520         * doc/invoke.texi: Document new -fno-debug-types-section flag.
5521         * dwarf2out.c (use_debug_types): New define.
5522         (struct die_struct): Mark die_id with GTY desc use_debug_types.
5523         (print_die): Guard output of type unit signatures using
5524         use_debug_types.
5525         (build_abbrev_table): Replace assert of dwarf_version >= 4
5526         with assert on use_debug_types.
5527         (size_of_die): Likewise.
5528         (unmark_dies): Likewise.
5529         (value_format): Decide AT_ref_external form on use_debug_types.
5530         (output_die): Replace dwarf_version version check guard with
5531         use_debug_types where appropriate.
5532         (modified_type_die): Likewise.
5533         (gen_reference_type_die): Likewise.
5534         (dwarf2out_start_source_file): Likewise.
5535         (dwarf2out_end_source_file): Likewise.
5536         (prune_unused_types_walk_attribs): Likewise.
5537         (dwarf2out_finish): Likewise.
5538
5539 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
5540
5541         * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
5542
5543 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
5544
5545         PR rtl-optimization/48332
5546         * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
5547         mode of input operand N and modeN to its actual mode.
5548
5549 2011-03-30  Jeff Law  <law@redhat.com>
5550
5551         * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
5552         define accessor macro.
5553         (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
5554         (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
5555         (reg_equiv_init): Likewise.
5556         (reg_equivs_size): New variable.
5557         (reg_equiv_init_size): Remove.
5558         (allocate_initial_values): Move prototype to here from....
5559         * integrate.h (allocate_initial_values): Remove prototype.
5560         * integrate.c: Include reload.h.
5561         (allocate_initial_values): Corresponding changes.
5562         * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
5563         (fix_reg_equiv_init, no_equiv): Corresponding changes.
5564         (update_equiv_regs): Corresponding changes.
5565         (ira): Corresponding changes.
5566         * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
5567         (push_secondary_reload): Corresponding changes.
5568         (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
5569         (make_memloc, find_reloads_address): Corresponding changes.
5570         (subst_reg_equivs, subst_indexed_address): Corresponding changes.
5571         (find_reloads_address_1): Corresponding changes.
5572         (find_reloads_subreg_address, subst_reloads): Corresponding changes.
5573         (refers_to_regno_for_reload_p): Corresponding changes.
5574         (reg_overlap_mentioned_for_reload_p): Corresponding changes.
5575         (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
5576         * reload1.c: Include ggc.h.
5577         (grow_reg_equivs): New function.
5578         (replace_pseudos_in, reload): Corresponding changes.
5579         (calculate_needs_all_insns, alter_regs): Corresponding changes.
5580         (eliminate_regs_1, elimination_effects): Corresponding changes.
5581         (emit_input_reload_insns, emit_output_reload_insns): Likewise.
5582         (delete_output_reload): Likewise.
5583         * caller-save.c (mark_referenced_regs): Corresponding changes.
5584         * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
5585         * frv/predicates.md (frv_load_operand): Corresponding changes.
5586         * microblaze/microblaze.c (double_memory_operand): Corresponding
5587         changes.
5588         * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
5589         * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
5590         * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
5591         * m68k/m68k.c (emit_move_sequence): Corresponding changes.
5592         * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
5593         changes.
5594         * pa/pa.c (emit_move_sequence): Corresponding changes.
5595         * vax/vax.c (nonindexed_address_p): Corresponding changes.
5596
5597 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
5598
5599         PR target/47551
5600         * config/arm/arm.c (coproc_secondary_reload_class): Handle
5601         structure modes.  Don't check neon_vector_mem_operand for
5602         vector or structure modes.
5603
5604 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
5605             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
5606
5607         PR target/43590
5608         * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
5609         operand 1 and reshuffle the operands to match.
5610         (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
5611
5612 2011-03-30  Christian Schüler  <cschueler@gmx.de>
5613
5614         PR driver/48208
5615         * config/c.opt (F): Added 'Driver' to -F option.
5616
5617         PR driver/48260
5618         * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
5619           handler function.
5620         * config/darwin.opt: Added '-arch' option.
5621
5622 2011-03-30  Nick Clifton  <nickc@redhat.com>
5623
5624         * config/rx/rx.md: Add peepholes and patterns to combine
5625         extending loads and simple arithmetic instructions.
5626         * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
5627         * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
5628         * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
5629         modes to use pre-decrement and post-increment addressing.
5630         (rx_is_restricted_memory_address): Add range checking of REG+INT
5631         addresses.
5632         (rx_print_operand): Add support for %Q.  Fix handling of %Q.
5633         (rx_memory_move_cost): Adjust cost of stores.
5634         (rx_adjust_insn_length): New function.
5635
5636 2011-03-30  Jakub Jelinek  <jakub@redhat.com>
5637
5638         PR c/48305
5639         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
5640         arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
5641         matching arg00/arg01 types.
5642
5643 2011-03-30  Eric Botcazou  <ebotcazou@adacore.com>
5644
5645         * cfglayout.c (insn_locators_alloc): Initialize curr_location and
5646         last_location to UNKNOWN_LOCATION.
5647
5648 2011-03-30  H.J. Lu  <hongjiu.lu@intel.com>
5649
5650         PR target/48349
5651         * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
5652         FLOAT_SSE_REGS.
5653
5654 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
5655             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5656
5657         PR bootstrap/48337
5658         * config/sparc/sparc.opt (sparc_cpu_and_features): Add
5659         Init(PROCESSOR_V7).
5660         (sparc_cpu): Likewise.
5661         * config/sparc/sparc.c (sparc_option_override): Replace 0 by
5662         PROCESSOR_V7.
5663
5664 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
5665
5666         PR target/48336
5667         PR middle-end/48342
5668         PR rtl-optimization/48345
5669         * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
5670         hard regs for given mode from profitable regs when doing secondary
5671         allocation.
5672
5673 2011-03-29  Jeff Law  <law@redhat.com>
5674
5675         PR bootstrap/48327
5676         * tree-ssa-threadupdate.c (struct redirection_data): Remove
5677         do_not_duplicate field.
5678         (lookup_redirection_data): Corresponding changes.
5679         (create_duplicates): Always create a template block.
5680         (redirect_edges): Remove code which reused the original block
5681         when it was going to become unreachable code.
5682         (thread_block): Don't set do_not_duplicate field.
5683
5684 2011-03-29  Joseph Myers  <joseph@codesourcery.com>
5685
5686         * lto-opts.c (register_user_option_p, lto_register_user_option):
5687         Make type argument unsigned.
5688         * lto-streamer.h (lto_register_user_option): Make type argument
5689         unsigned.
5690         * opth-gen.awk: Make CL_* macros unsigned.
5691         * opts-common.c (find_opt): Make lang_mask argument unsigned.
5692         * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
5693         CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
5694         CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
5695         CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
5696         CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
5697         (find_opt): Make lang_mask argument unsigned.
5698
5699 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
5700
5701         PR rtl-optimization/48331
5702         PR rtl-optimization/48334
5703         * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
5704         for any used algorithm.
5705
5706 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
5707
5708         * ira-conflicts.c (build_object_conflicts): Add unused attribute
5709         to parent_max.
5710
5711 2011-03-29  Uros Bizjak  <ubizjak@gmail.com>
5712
5713         * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
5714         (alpha_option_override): Don't set alpha_sr_alias_set.
5715         (emit_frame_store_1): Use gen_frame_mem rather than calling
5716         set_mem_alias_set.
5717         (alpha_expand_epilogue): Ditto.
5718
5719 2011-03-29  Ira Rosen  <ira.rosen@linaro.org>
5720
5721         PR tree-optimization/48290
5722         * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
5723         vectorization, check that relevant phis in the basic block after
5724         the inner loop are really inner loop's exit phis.
5725
5726 2011-03-29  Richard Sandiford  <richard.sandiford@linaro.org>
5727
5728         PR debug/48190
5729         * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
5730         (cached_dw_loc_list_def): New structure.
5731         (cached_dw_loc_list): New typedef.
5732         (cached_dw_loc_list_table): New variable.
5733         (cached_dw_loc_list_table_hash): New function.
5734         (cached_dw_loc_list_table_eq): Likewise.
5735         (add_location_or_const_value_attribute): Take a bool cache_p.
5736         Cache the list when the parameter is true.
5737         (gen_formal_parameter_die): Update caller.
5738         (gen_variable_die): Likewise.
5739         (dwarf2out_finish): Likewise.
5740         (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
5741         while generating debug info for the decl.
5742         (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
5743         (dwarf2out_init): Initialize cached_dw_loc_list_table.
5744         (resolve_addr): Cache the result of resolving a chain of
5745         location lists.
5746
5747 2011-03-28  Vladimir Makarov  <vmakarov@redhat.com>
5748
5749         * ira-color.c (update_left_conflict_sizes_p): Don't assume that
5750         conflict object hard regset nodes have intersecting hard reg sets.
5751
5752         * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
5753         after regstat_init_n_sets_and_refs.
5754
5755         * ira.c: Add more comments at the top.
5756         (setup_stack_reg_pressure_class, setup_pressure_classes):
5757         Add comments how we compute the register pressure classes.
5758         (setup_allocno_and_important_classes): Add more comments.
5759         (setup_class_translate_array, reorder_important_classes)
5760         (setup_reg_class_relations): Add comments.
5761
5762         * ira-emit.c: Add 2011 to the Copyright line.  Add comments at the
5763         start of the file.
5764
5765         * ira-color.c: Add 2011 to the Copyright line.
5766         (assign_hard_reg):  Add more comments.
5767         (improve_allocation): Ditto.
5768
5769         * ira-costs.c: Add 2011 to the Copyright line.
5770         (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
5771         comments.
5772         (setup_regno_cost_classes_by_mode): Ditto.
5773
5774         Initial patches from ira-improv branch:
5775
5776         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
5777
5778         * ira-build.c (ira_create_object): Remove initialization of
5779         OBJECT_PROFITABLE_HARD_REGS.  Initialize OBJECT_ADD_DATA.
5780         (ira_create_allocno): Remove initialization of
5781         ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
5782         ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
5783         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
5784         ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
5785         ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
5786         Initialize ALLOCNO_ADD_DATA.
5787         (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
5788         and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
5789         ALLOCNO_REG.
5790         (ira_flattening): Ditto.  Use ALLOCNO_EMIT_DATA instead of
5791         ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
5792
5793         * ira.c (ira_reallocate): Remove.
5794         (setup_pressure_classes): Call
5795         ira_init_register_move_cost_if_necessary.  Use
5796         ira_register_move_cost instead of ira_get_register_move_cost.
5797         (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
5798         (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
5799
5800         * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
5801         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
5802         ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
5803         ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
5804         instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
5805         OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
5806         Fix formatting.
5807         (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
5808         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
5809         (struct allocno_color_data): New.
5810         (allocno_color_data_t): New typedef.
5811         (allocno_color_data): New definition.
5812         (ALLOCNO_COLOR_DATA): New macro.
5813         (struct object_color_data): New.
5814         (object_color_data_t): New typedef.
5815         (object_color_data): New definition.
5816         (OBJECT_COLOR_DATA): New macro.
5817         (update_copy_costs, calculate_allocno_spill_cost): Call
5818         ira_init_register_move_cost_if_necessary.  Use
5819         ira_register_move_cost instead of ira_get_register_move_cost.
5820         (move_spill_restore, update_curr_costs): Ditto.
5821         (allocno_spill_priority): Make it inline.
5822         (color_pass): Allocate and free allocno_color_dat and object_color_data.
5823         (struct coalesce_data, coalesce_data_t): New.
5824         (allocno_coalesce_data): New definition.
5825         (ALLOCNO_COALESCE_DATA): New macro.
5826         (merge_allocnos, coalesced_allocno_conflict_p): Use
5827         ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
5828         ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
5829         (coalesce_allocnos): Ditto.
5830         (setup_coalesced_allocno_costs_and_nums): Ditto.
5831         (collect_spilled_coalesced_allocnos): Ditto.
5832         (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
5833         (setup_slot_coalesced_allocno_live_ranges): Ditto.
5834         (coalesce_spill_slots): Ditto.
5835         (ira_sort_regnos_for_alter_reg): Ditto.  Allocate, initialize and
5836         free allocno_coalesce_data.
5837
5838         * ira-conflicts.c: Fix formatting.
5839         (process_regs_for_copy): Call
5840         ira_init_register_move_cost_if_necessary.  Use
5841         ira_register_move_cost instead of ira_get_register_move_cost.
5842         (build_object_conflicts): Optimize.
5843
5844         * ira-costs.c (record_reg_classes): Optimize.  Call
5845         ira_init_register_move_cost_if_necessary.  Use
5846         ira_register_move_cost, ira_may_move_in_cost, and
5847         ira_may_move_out_cost instead of ira_get_register_move_cost and
5848         ira_get_may_move_cost.
5849         (record_address_regs): Ditto.
5850         (scan_one_insn): Optimize.
5851         (find_costs_and_classes): Optimize.
5852         (process_bb_node_for_hard_reg_moves): Call
5853         ira_init_register_move_cost_if_necessary.  Use
5854         ira_register_move_cost instead of ira_get_register_move_cost.
5855
5856         * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
5857         ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
5858         ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
5859         (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
5860         definitions.
5861         (ira_initiate_emit_data, ira_finish_emit_data)
5862         (create_new_allocno): New functions.
5863         (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
5864         (emit_move_list): Call ira_init_register_move_cost_if_necessary.
5865         Use ira_register_move_cost instead of ira_get_register_move_cost.
5866
5867         * ira-int.h: Fix some comments.
5868         (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
5869         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
5870         (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
5871         hard_regs_subnodes_start, hard_regs_subnodes_num.  Add new member
5872         add_data.
5873         (struct ira_allocno): Make mode and aclass a bitfield.  Move other
5874         bitfield after mode.  Make hard_regno a short int.  Make
5875         hard_regno short.  Remove first_coalesced_allocno and
5876         next_coalesced_allocno.  Move mem_optimized_dest_p,
5877         somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
5878         into struct ira_emit_data.  Remove in_graph_p, may_be_spilled_p,
5879         available_regs_num, next_bucket_allocno, prev_bucket_allocno,
5880         temp, colorable_p.  Add new member add_data.
5881         (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
5882         (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
5883         (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
5884         (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
5885         (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
5886         (ALLOCNO_ADD_DATA): New macro.
5887         (ira_emit_data_t): New typedef.
5888         (struct ira_emit_data): New.  Move mem_optimized_dest_p,
5889         somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
5890         from struct ira_allocno.
5891         (ALLOCNO_EMIT_DATA): New macro.
5892         (ira_allocno_emit_data, allocno_emit_reg): New.
5893         (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
5894         (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
5895         (OBJECT_ADD_DATA): New macro.
5896         (ira_reallocate): Remove.
5897         (ira_initiate_emit_data, ira_finish_emit_data): New.
5898         (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
5899         (ira_init_register_move_cost_if_necessary): New.
5900         (ira_object_conflict_iter_next): Merge into
5901         ira_object_conflict_iter_cond.
5902         (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
5903
5904         * ira-live.c (process_single_reg_class_operands): Call
5905         ira_init_register_move_cost_if_necessary.  Use
5906         ira_register_move_cost instead of ira_get_register_move_cost.
5907
5908         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
5909
5910         * ira-int.h (struct target_ira_int): Remove x_cost_classes.
5911
5912         * ira-costs.c: Fix formatting.
5913         (cost_classes, cost_classes_num): Remove.
5914         (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
5915         (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
5916         (cost_classes_del, cost_classes_htab): New.
5917         (cost_classes_aclass_cache, cost_classes_mode_cache): New.
5918         (initiate_regno_cost_classes, setup_cost_classes): New.
5919         (setup_regno_cost_classes_by_aclass): New.
5920         (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
5921         (record_reg_classes): Use regno_cost_classes instead of
5922         cost_classes.  Move checking opposite operand up.
5923         (record_address_regs): Use regno_cost_classes
5924         instead of cost_classes.
5925         (scan_one_insn): Ditto.  Use always general register.
5926         (print_allocno_costs): Use regno_cost_classes instead of
5927         cost_classes.
5928         (print_pseudo_costs): Ditto.  Use Reg_N_REFS.
5929         (find_costs_and_classes): Set up cost classes for each registers.
5930         Use also their mode for this.  Use regno_cost_classes instead of
5931         cost_classes.
5932         (setup_allocno_class_and_costs): Use regno_cost_classes instead of
5933         cost_classes.
5934         (free_ira_costs, ira_init_costs): Don't use cost_classes.
5935         (ira_costs, ira_set_pseudo_classes): Call
5936         initiate_regno_cost_classes and finish_regno_cost_classes.
5937
5938         2010-10-04  Vladimir Makarov  <vmakarov@redhat.com>
5939
5940         * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
5941
5942         * target.def (ira_cover_classes): Remove.
5943
5944         * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
5945
5946         * doc/tm.texi.in: Ditto.
5947
5948         * ira-conflicts.c: Remove mentioning cover classes from the file.
5949         Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Use
5950         ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST.  Fix formatting.
5951
5952         * targhooks.c (default_ira_cover_classes): Remove.
5953
5954         * targhooks.h (default_ira_cover_classes): Ditto.
5955
5956         * haifa-sched.c: Remove mentioning cover classes from the file.
5957         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
5958         ira_pressure_classes and ira_pressure_classes_num instead of
5959         ira_reg_class_cover_size and ira_reg_class_cover.  Use
5960         sched_regno_pressure_class instead of sched_regno_cover_class.
5961         (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
5962         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
5963
5964         * ira-int.h: Add 2010 to Copyright.  Remove mentioning cover
5965         classes from the file.
5966         (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
5967         (struct object_hard_regs, struct object_hard_regs_node): New.
5968         (struct ira_object): New members profitable_hard_regs,
5969         hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
5970         (struct ira_allocno): Rename cover_class to aclass.  Rename
5971         cover_class_cost and updated_cover_class_cost to class_cost and
5972         updated_class_cost.  Remove splay_removed_p and
5973         left_conflict_size.  Add new members colorable_p.
5974         (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
5975         (ALLOCNO_COLORABLE_P): New macro.
5976         (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
5977         (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
5978         Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
5979         (OBJECT_...): Rename parameter C to O.
5980         (OBJECT_PROFITABLE_HARD_REGS): New macro.
5981         (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
5982         (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
5983         (struct target_ira_int): New members x_ira_max_memory_move_cost,
5984         x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
5985         x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
5986         x_ira_reg_pressure_class_p, x_ira_important_class_nums,
5987         x_ira_reg_class_superunion.  Rename x_prohibited_class_mode_reg to
5988         x_ira_prohibited_class_mode_reg.  Rename x_ira_reg_class_union to
5989         x_ira_reg_class_subunion.
5990         (ira_max_memory_move_cost, ira_max_register_move_cost)
5991         (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
5992         (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
5993         (ira_important_class_nums, ira_reg_class_superunion): New macros.
5994         (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
5995         (ira_reg_class_union): Rename to ira_reg_class_subunion.
5996         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
5997         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
5998         (ira_tune_allocno_costs_and_cover_classes): Rename to
5999         ira_tune_allocno_costs.
6000         (ira_debug_hard_regs_forest): New.
6001         (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
6002         (ira_object_conflict_iter_next): Fix comments.
6003         (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
6004         (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
6005         cover_class to aclass.
6006         (ira_allocate_and_accumulate_costs): Ditto.
6007         (ira_allocate_and_set_or_copy_costs): Ditto.
6008
6009         * opts.c (decode_options): Remove ira_cover_class check.
6010
6011         * ira-color.c: Remove mentioning cover classes from the file.  Use
6012         ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
6013         instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
6014         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
6015         (splay-tree.h): Remove include.
6016         (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
6017         before copy_freq_compare_func.
6018         (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
6019         (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
6020         New definitions.
6021         (hard_regs_roots, hard_regs_node_vec): Ditto.
6022         (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
6023         (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
6024         (finish_object_hard_regs, object_hard_regs_compare): Ditto.
6025         (create_new_object_hard_regs_node): Ditto.
6026         (add_new_object_hard_regs_node_to_forest): Ditto.
6027         (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
6028         (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
6029         Ditto.
6030         (print_hard_reg_set, print_hard_regs_subforest): Ditto.
6031         (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
6032         (remove_unused_object_hard_regs_nodes): Ditto.
6033         (enumerate_object_hard_regs_nodes): Ditto.
6034         (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
6035         (object_hard_regs_subnode_t): Ditto.
6036         (struct object_hard_regs_subnode): Ditto.
6037         (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
6038         (setup_object_hard_regs_subnode_index): Ditto.
6039         (get_object_hard_regs_subnodes_num): Ditto.
6040         (form_object_hard_regs_nodes_forest): Ditto.
6041         (finish_object_hard_regs_nodes_tree): Ditto.
6042         (finish_object_hard_regs_nodes_forest): Ditto.
6043         (allocnos_have_intersected_live_ranges_p): Rename to
6044         allocnos_conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
6045         (pseudos_have_intersected_live_ranges_p): Rename to
6046         conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
6047         (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
6048         (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
6049         (update_copy_costs): Remove assert.  Skip cost update if the hard
6050         reg does not belong the class.
6051         (assign_hard_reg): Process only profitable hard regs.
6052         (uncolorable_allocnos_num): Make it scalar.
6053         (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
6054         and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
6055         and ira_reg_class_max_nregs.
6056         (bucket_allocno_compare_func): Check frequency first.
6057         (sort_bucket): Add compare function as a parameter.
6058         (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
6059         (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
6060         (push_allocno_to_stack): Rewrite for checking new allocno
6061         colorability.
6062         (remove_allocno_from_bucket_and_push): Print cost too.  Remove assert.
6063         (push_only_colorable): Pass new parameter to sort_bucket.
6064         (push_allocno_to_spill): Remove.
6065         (allocno_spill_priority_compare): Make it inline and rewrite.
6066         (splay_tree_allocate, splay_tree_free): Remove.
6067         (allocno_spill_sort_compare): New function.
6068         (push_allocnos_to_stack): Sort allocnos for spilling once.  Don't
6069         build and use splay tree.  Choose first allocno in uncolorable
6070         allocno bucket to spill.  Remove setting spill cost.
6071         (all_conflicting_hard_regs): Remove.
6072         (setup_allocno_available_regs_num): Check only profitable hard
6073         regs.  Print info about hard regs nodes.
6074         (setup_allocno_left_conflicts_size): Remove.
6075         (put_allocno_into_bucket): Don't call
6076         setup_allocno_left_conflicts_size.  Use setup_left_conflict_sizes_p.
6077         (improve_allocation): New.
6078         (color_allocnos): Call setup_profitable_hard_regs,
6079         form_object_hard_regs_nodes_forest, improve_allocation,
6080         finish_object_hard_regs_nodes_forest.  Setup spill cost.
6081         (print_loop_title): Use pressure classes.
6082         (color_allocnso): Ditto.
6083         (do_coloring): Remove allocation and freeing splay_tree_node_pool
6084         and allocnos_for_spilling.
6085         (ira_sort_regnos_for_alter_reg): Don't setup members
6086         {first,next}_coalesced_allocno.
6087         (color): Remove allocating and freeing removed_splay_allocno_vec.
6088         (fast_allocation): Use ira_prohibited_class_mode_regs instead of
6089         prohibited_class_mode_regs.
6090
6091         * ira-lives.c: Remove mentioning cover classes from the file.  Fix
6092         formatting.
6093         (update_allocno_pressure_excess_length): Use pressure classes.
6094         (inc_register_pressure, dec_register_pressure): Check for pressure
6095         class.
6096         (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
6097         pressure class.  Use ira_reg_class_nregs instead of
6098         ira_reg_class_max_nregs.
6099         (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
6100         (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
6101         (single_reg_class): Use ira_reg_class_nregs instead of
6102         ira_reg_class_max_nregs.
6103         (process_bb_node_lives): Use pressure classes.
6104
6105         * ira-emit.c: Remove mentioning cover classes from the file.  Use
6106         ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Fix formatting.
6107         (change_loop): Use pressure classes.
6108         (modify_move_list): Call ira_set_allocno_class instead of
6109         ira_set_allocno_cover_class.
6110
6111         * ira-build.c: Remove mentioning cover classes from the file.  Use
6112         ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
6113         ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST.  Use
6114         ALLOCNO_UPDATED_CLASS_COST instead of
6115         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
6116         (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
6117         (ira_create_allocno): Remove initialization of
6118         ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE.  Initialize
6119         ALLOCNO_COLORABLE_P.
6120         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
6121         Update conflict regs for the objects.
6122         (create_cap_allocno): Remove assert.  Don't propagate
6123         ALLOCNO_AVAILABLE_REGS_NUM.
6124         (ira_free_allocno_costs): New function.
6125         (finish_allocno): Change a part of code into call of
6126         ira_free_allocno_costs.
6127         (low_pressure_loop_node_p): Use pressure classes.
6128         (object_range_compare_func): Don't compare classes.
6129         (setup_min_max_conflict_allocno_ids): Ditto.
6130
6131         * loop-invariant.c: Remove mentioning cover classes from the file.
6132         Use ira_pressure_classes and ira_pressure_classes_num instead of
6133         ira_reg_class_cover_size and ira_reg_class_cover.  Fix formatting.
6134         (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
6135         Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
6136         Use reg_allocno_class instead of reg_cover_class.
6137         (get_inv_cost): Use instead ira_stack_reg_pressure_class of
6138         STACK_REG_COVER_CLASS.
6139         (get_regno_cover_class): Rename to get_regno_pressure_class.
6140         (move_loop_invariants): Initialize and finalize regstat.
6141
6142         * ira.c: Remove mentioning cover classes from the file.  Add
6143         comments about coloring without cover classes.  Use ALLOCNO_CLASS
6144         instead of ALLOCNO_COVER_CLASS.  Fix formatting.
6145         (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
6146         setup_class_subset_and_memory_move_costs.
6147         (setup_stack_reg_pressure_class, setup_pressure_classes): New.
6148         (setup_cover_and_important_classes): Rename to
6149         setup_allocno_and_important_classes.
6150         (setup_class_translate_array): New.
6151         (setup_class_translate): Call it for allocno and pressure classes.
6152         (cover_class_order): Rename to allocno_class_order.
6153         (comp_reg_classes_func): Use ira_allocno_class_translate instead
6154         of ira_class_translate.
6155         (reorder_important_classes): Set up ira_important_class_nums.
6156         (setup_reg_class_relations): Set up ira_reg_class_superunion.
6157         (print_class_cover): Rename to print_classes.  Add parameter.
6158         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
6159         Print pressure classes too.
6160         (find_reg_class_closure): Rename to find_reg_classes.  Don't call
6161         setup_reg_subclasses.
6162         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
6163         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
6164         (setup_prohibited_class_mode_regs): Use
6165         ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
6166         (clarify_prohibited_class_mode_regs): New function.
6167         (ira_init_register_move_cost): Set up ira_max_register_move_cost,
6168         ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
6169         (ira_init_once): Initialize them.
6170         (free_register_move_costs): Process them.
6171         (ira_init): Move calls of find_reg_classes and
6172         setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
6173         Call clarify_prohibited_class_mode_regs.
6174         (ira_no_alloc_reg): Remove.
6175         (too_high_register_pressure_p): Use pressure classes.
6176
6177         * sched-deps.c: Remove mentioning cover classes from the file.
6178         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
6179         ira_pressure_classes and ira_pressure_classes_num instead of
6180         ira_reg_class_cover_size and ira_reg_class_cover.
6181         (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
6182         sched_regno_pressure_class instead of sched_regno_cover_class.
6183         (mark_insn_pseudo_birth, mark_pseudo_death): Ditto.  Use
6184         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
6185
6186         * ira.h: Add 2010 to Copyright.
6187         (ira_no_alloc_reg): Remove external.
6188         (struct target_ira): Rename x_ira_hard_regno_cover_class,
6189         x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
6190         x_ira_class_translate to x_ira_hard_regno_allocno_class,
6191         x_ira_allocno_classes_num, x_ira_allocno_classes, and
6192         x_ira_allocno_class_translate.  Add x_ira_pressure_classes_num,
6193         x_ira_pressure_classes, x_ira_pressure_class_translate, and
6194         x_ira_stack_reg_pressure_class.  Rename x_ira_reg_class_nregs to
6195         x_ira_reg_class_max_nregs.  Add x_ira_reg_class_min_nregs and
6196         x_ira_no_alloc_regs.
6197         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
6198         (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
6199         ira_allocno_classes_num and ira_allocno_classes.
6200         (ira_class_translate): Rename to ira_allocno_class_translate.
6201         (ira_pressure_classes_num, ira_pressure_classes): New definitions.
6202         (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
6203         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
6204         (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
6205         (ira_no_alloc_regs): New.
6206
6207         * ira-costs.c: Add 2010 to Copyright.  Remove mentioning cover
6208         classes from the file.  Use ALLOCNO_CLASS instead of
6209         ALLOCNO_COVER_CLASS.  Use ALLOCNO_CLASS_COST instead of
6210         ALLOCNO_COVER_CLASS_COST.
6211         (regno_cover_class): Rename to regno_aclass.
6212         (record_reg_classes): Use ira_reg_class_subunion instead of
6213         ira_reg_class_union.
6214         (record_address_regs): Check overflow.
6215         (scan_one_insn): Ditto.
6216         (print_allocno_costs): Print total mem cost fore regional allocation.
6217         (print_pseudo_costs): Use REG_N_REFS.
6218         (find_costs_and_classes): Use classes intersected with them on the
6219         1st pass. Check overflow.  Use ira_reg_class_subunion instead of
6220         ira_reg_class_union.  Use ira_allocno_class_translate and
6221         regno_aclass instead of ira_class_translate and regno_cover_class.
6222         Modify code for finding regno_aclass.  Setup preferred classes for
6223         the next pass.
6224         (setup_allocno_cover_class_and_costs): Rename to
6225         setup_allocno_class_and_costs.  Use regno_aclass instead of
6226         regno_cover_class.  Use ira_set_allocno_class instead of
6227         ira_set_allocno_cover_class.
6228         (init_costs, finish_costs): Use regno_aclass instead of
6229         regno_cover_class.
6230         (ira_costs): Use setup_allocno_class_and_costs instead of
6231         setup_allocno_cover_class_and_costs.
6232         (ira_tune_allocno_costs_and_cover_classes): Rename to
6233         ira_tune_allocno_costs.  Check overflow.  Skip conflict hard regs
6234         by processing objects.  Use ira_reg_class_max_nregs instead of
6235         ira_reg_class_nregs.
6236
6237         * rtl.h (reg_cover_class): Rename to reg_allocno_class.
6238
6239         * sched-int.h: Remove mentioning cover classes from the file.
6240         (sched_regno_cover_class): Rename to sched_regno_pressure_class.
6241
6242         * reginfo.c: Add 2010 to Copyright.  Remove mentioning cover
6243         classes from the file.
6244         (struct reg_pref): Rename coverclass into allocnoclass.
6245         (reg_cover_class): Rename to reg_allocno_class.
6246
6247         * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
6248
6249         * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
6250
6251         * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
6252
6253         * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
6254
6255         * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
6256
6257         * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
6258
6259         * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
6260
6261         * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
6262
6263         * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
6264
6265         * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
6266
6267         * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
6268         (i386_ira_cover_classes): Ditto.
6269
6270         * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
6271
6272         * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
6273
6274         * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
6275
6276         * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
6277
6278         * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
6279
6280         * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
6281
6282         * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
6283         (mips_ira_cover_classes): Ditto.
6284
6285         * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
6286
6287         * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
6288
6289         * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
6290
6291         * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
6292
6293         * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
6294
6295         * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
6296         (IRA_COVER_CLASSES_VSX): Ditto.
6297
6298         * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
6299         (rs6000_ira_cover_classes): Ditto.
6300
6301         * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
6302
6303         * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
6304
6305         * config/score/score.h (IRA_COVER_CLASSES): Ditto.
6306
6307         * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
6308
6309         * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
6310
6311         * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
6312
6313         * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
6314
6315         * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
6316
6317         * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
6318
6319         * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
6320
6321 2011-03-29  Jakub Jelinek  <jakub@redhat.com>
6322
6323         PR debug/48253
6324         * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
6325         dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
6326         dw_fde_unlikely_section_end_label, cold_in_std_section,
6327         dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
6328         Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
6329         fields.
6330         (output_fde): Use dw_fde_second_{begin,end} if second is
6331         true, otherwise dw_fde_{begin,end}.
6332         (output_call_frame_info): Test dw_fde_second_begin != NULL
6333         instead of dw_fde_switched_sections.
6334         (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
6335         fields, initialize new fields.  Initialize in_std_section
6336         unconditionally from the first partition.
6337         (dwarf2out_end_epilogue): Don't override dw_fde_end when
6338         dw_fde_second_begin is non-NULL.
6339         (dwarf2out_switch_text_section): Stop initializing removed
6340         dw_fde_struct fields, initialize new fields, initialize
6341         also dw_fde_end here.  Set dw_fde_switch_cfi even when
6342         dwarf2out_do_cfi_asm ().  Call var_location_switch_text_section.
6343         (struct var_loc_list_def): Add last_before_switch field.
6344         (arange_table, arange_table_allocated, arange_table_in_use,
6345         ARANGE_TABLE_INCREMENT, add_arange): Removed.
6346         (size_of_aranges): Count !in_std_section and !second_in_std_section
6347         hunks in fdes, instead of looking at arange_table_in_use.
6348         (output_aranges): Add aranges_length argument, don't call
6349         size_of_aranges here.  Instead of using aranges_table*
6350         emit ranges for fdes when !in_std_section resp.
6351         !second_in_std_section.
6352         (dw_loc_list): Break ranges crossing section switch.
6353         (convert_cfa_to_fb_loc_list): Likewise.  If switched sections,
6354         use dw_fde_second_end instead of dw_fde_end as end of last range.
6355         (gen_subprogram_die): Don't call add_arange.  Use
6356         dw_fde_{begin,end} for first partition and if switched
6357         section dw_fde_second_{begin,end} for the second.
6358         (var_location_switch_text_section_1,
6359         var_location_switch_text_section): New functions.
6360         (dwarf2out_begin_function): Initialize cold_text_section even
6361         when function_section () isn't text_section.
6362         (prune_unused_types): Don't walk arange_table.
6363         (dwarf2out_finish): Don't needlessly test
6364         flag_reorder_blocks_and_partition when testing cold_text_section_used.
6365         If info_section_emitted, call size_of_aranges and if it indicates
6366         non-empty .debug_aranges, call output_aranges with the computed
6367         size.  Stop using removed dw_fde_struct fields, use
6368         dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
6369         for second.
6370
6371         PR debug/48203
6372         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
6373         create ENTRY_VALUE if incoming or address of incoming's MEM
6374         is a hard REG.
6375         * dwarf2out.c (mem_loc_descriptor): Don't emit
6376         DW_OP_GNU_entry_value of DW_OP_fbreg.
6377         * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
6378         on ENTRY_VALUE is able to find the canonical parameter VALUE.
6379         * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
6380         rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
6381         ENTRY_VALUE_EXPs.
6382         (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
6383         is a REG_P or MEM_P with REG_P address, compute hash directly
6384         instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
6385         (preserve_only_constants): Don't clear VALUES forwaring
6386         ENTRY_VALUE to some other VALUE.
6387
6388 2011-03-28  Richard Sandiford  <richard.sandiford@linaro.org>
6389
6390         * builtins.c (expand_builtin_memset_args): Use gen_int_mode
6391         instead of GEN_INT.
6392
6393 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
6394
6395         * cfgexpand.c (expand_gimple_cond): Always set the source location and
6396         block before expanding the statement.
6397         (expand_gimple_stmt_1): Likewise.  Set them here...
6398         (expand_gimple_stmt): ...and not here.  Tidy.
6399         * cfglayout.c (curr_insn_locator): Return 0 if the current location is
6400         unknown.
6401
6402 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
6403
6404         * Makefile.in: New rule for cprop.o.
6405         * gcse.c: Move constant/copy propagation to cprop.c.
6406         (compute_local_properties): Only handle expression tables.
6407         (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
6408         (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
6409         (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
6410         next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
6411         mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
6412         compute_cprop_data, find_used_regs, try_replace_reg,
6413         find_avail_set, cprop_jump, constprop_register, cprop_insn,
6414         local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
6415         fis_get_condition, implicit_set_cond_p, find_implicit_sets,
6416         find_bypass_set, reg_killed_on_edge, bypass_block,
6417         bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
6418         execute_rtl_cprop, pass_rtl_cprop): Move to...
6419         * cprop.c: ...here.  New file, constant/copy propagation for RTL
6420         moved from gcse.c to here with minor cleanups in duplicated code.
6421
6422 2011-03-28  H.J. Lu  <hongjiu.lu@intel.com>
6423
6424         * config/i386/i386.c (flag_opts): Fix a typo in
6425         -mavx256-split-unaligned-store.
6426
6427 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
6428
6429         * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
6430         LIBCALL_VALUE): Remove macros.
6431         * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
6432         TARGET_FUNCTION_VALUE_REGNO_P): Define.
6433         (h8300_function_value, h8300_libcall_value,
6434         h8300_function_value_regno_p): New functions.
6435
6436 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
6437
6438         * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
6439
6440 2011-03-28  Jeff Law  <law@redhat.com>
6441
6442         * tree-ssa-threadupdate.c (redirect_edges): Call
6443         create_edge_and_update_destination_phis as needed.
6444         (create_edge_and_update_destination_phis): Accept new BB argument.
6445         All callers updated.
6446         (thread_block): Do not update the profile when threading around
6447         intermediate blocks.
6448         (thread_single_edge): Likewise.
6449         (determine_bb_domination_status): If BB is not a successor of the
6450         loop header, return NONDOMINATING.
6451         (register_jump_thread): Note when we register a jump thread around
6452         an intermediate block.
6453         * tree-ssa-threadedge.c (thread_around_empty_block): New function.
6454         (thread_across_edge): Use it.
6455
6456 2011-03-28  Tristan Gingold  <gingold@adacore.com>
6457
6458         * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
6459         when for_return is 2.
6460
6461 2011-03-28  Jeff Law  <law@redhat.com>
6462
6463         * var-tracking.c (canonicalize_values_mark): Delete unused
6464         lhs assignment.
6465         (canonicalize_values_star, set_variable_part): Likewise.
6466         (clobber_variable_part, delete_variable_part): Likewise.
6467
6468 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
6469
6470         * gcse.c (free_gcse_mem): Free reg_set_bitmap.
6471
6472 2011-03-28  Martin Jambor  <mjambor@suse.cz>
6473
6474         * tree-inline.c (expand_call_inline): Do not check that destination
6475         node is analyzed.
6476         (optimize_inline_calls): Assert that destination node is analyzed.
6477         * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
6478         not call tree_lowering_passes.
6479         * cgraph.h (cgraph_analyze_function): Declare.
6480         * cgraphunit.c (cgraph_analyze_function): Make public.
6481
6482 2011-03-28  Joseph Myers  <joseph@codesourcery.com>
6483
6484         * config/sparc/sparc-opts.h: New.
6485         * config/sparc/sparc.c (sparc_handle_option, sparc_select,
6486         sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
6487         (sparc_option_override): Store processor_type enumeration rather
6488         than string in cpu_default.  Remove name and enumeration from
6489         cpu_table.  Directly default -mcpu then default -mtune from -mcpu
6490         without using sparc_select.  Use target_flags_explicit instead of
6491         fpu_option_set.
6492         * config/sparc/sparc.h (enum processor_type): Move to
6493         sparc-opts.h.
6494         (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
6495         * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
6496         HeaderInclude entry.
6497         (mcpu=, mtune=): Use Var and Enum.
6498         (sparc_processor_type): New Enum and EnumValue entries.
6499
6500 2011-03-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6501             Iain Sandoe  <iains@gcc.gnu.org>
6502
6503         PR target/48245
6504         * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
6505
6506 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
6507
6508         * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
6509         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
6510         Insert new statements at it in lieu of STMT.
6511         (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
6512         * tree-vect-stmts.c (vectorizable_store): Likewise.
6513         (vectorizable_load): Likewise.
6514
6515 2011-03-28  Uros Bizjak  <ubizjak@gmail.com>
6516
6517         * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
6518         (divtf3): Ditto.
6519         (multf3): Ditto.
6520         (subtf3): Ditto.
6521
6522 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
6523
6524         * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
6525         unaligned 256bit load/store.
6526         (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
6527         (*avx_movdqu<avxmodesuffix>): Likewise.
6528
6529 2011-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6530
6531         PR target/48288
6532         * config/pa/predicates.md (reg_or_ior_operand): New predicate.
6533         * config/pa/pa.md (iordi3): Use new predicate in expander.
6534         (iorsi3): Likewise.
6535
6536 2011-03-27  Anatoly Sokolov  <aesok@post.ru>
6537
6538         * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
6539         FUNCTION_VALUE_REGNO_P): Remove macros.
6540         * config/mips/mips-protos.h (mips_function_value): Remove.
6541         * config/mips/mips.c (mips_function_value): Rename to...
6542         (mips_function_value_1): ... this. Make static.  Handle receiving
6543         the function type in 'fn_decl_or_type' argument.
6544         (mips_function_value, mips_libcall_value,
6545         mips_function_value_regno_p): New function.
6546         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
6547         TARGET_FUNCTION_VALUE_REGNO_P): Define.
6548
6549 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
6550
6551         * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
6552         and -mavx256-split-unaligned-store.
6553         (ix86_option_override_internal): Split 32-byte AVX unaligned
6554         load/store by default.
6555         (ix86_avx256_split_vector_move_misalign): New.
6556         (ix86_expand_vector_move_misalign): Use it.
6557
6558         * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
6559         -mavx256-split-unaligned-store.
6560
6561         * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
6562         256bit load/store.  Generate unaligned store on misaligned memory
6563         operand.
6564         (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
6565         256bit load/store.
6566         (*avx_movdqu<avxmodesuffix>): Likewise.
6567
6568         * doc/invoke.texi: Document -mavx256-split-unaligned-load and
6569         -mavx256-split-unaligned-store.
6570
6571 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
6572
6573         PR target/38598
6574         * config/mips/mips.md (extendsidi2): Add an "l" alternative.
6575         Update commentary.
6576
6577 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
6578
6579         * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
6580         opno arguments with an expand_operand.  Use create_input_operand.
6581         (mips_prepare_builtin_target): Delete.
6582         (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
6583         functions.
6584         (mips_expand_builtin_direct): Use create_output_operand and
6585         mips_expand_builtin_insn.  Update call to mips_prepare_builtin_arg.
6586         (mips_expand_builtin_movtf): Likewise.  Use mips_expand_fp_comparison.
6587         (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
6588
6589 2011-03-27  Ira Rosen  <ira.rosen@linaro.org>
6590
6591         * config/arm/arm.c (arm_autovectorize_vector_sizes): New
6592         function.
6593         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
6594
6595 2011-03-26  Eric Botcazou  <ebotcazou@adacore.com>
6596
6597         * basic-block.h (fixup_abnormal_edges): Adjust prototype.
6598         * reload1.c (reload): Adjust call to fixup_abnormal_edges.  Rediscover
6599         basic blocks and call commit_edge_insertions directly.
6600         (fixup_abnormal_edges): Move from here to...
6601         * cfgrtl.c (fixup_abnormal_edges): ...here.  Only insert instructions
6602         on the edges and return whether some have actually been inserted.
6603         * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
6604         compensation code.
6605
6606 2011-03-26  Andrey Belevantsev  <abel@ispras.ru>
6607
6608         PR rtl-optimization/48144
6609         * sel-sched-ir.c (merge_history_vect): Factor out from ...
6610         (merge_expr_data): ... here.
6611         (av_set_intersect): Rename to av_set_code_motion_filter.
6612         Update all callers.  Call merge_history_vect when an expression
6613         is found in both sets.
6614         * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
6615
6616 2011-03-26  Alan Modra  <amodra@gmail.com>
6617
6618         * config/rs6000/predicates.md (word_offset_memref_op): Handle
6619         cmodel medium addresses.
6620         * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
6621         64-bit gpr loads and stores.
6622         (rs6000_secondary_reload_ppc64): New function.
6623         * config/rs6000/rs6000-protos.h: Declare it.
6624         * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
6625
6626 2011-03-26  Alan Modra  <amodra@gmail.com>
6627
6628         PR target/47487
6629         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
6630         GNU Go in traceback table.
6631
6632 2011-03-25  Richard Henderson  <rth@redhat.com>
6633
6634         * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
6635         if there are exactly 6 operands.
6636         (set_storage_via_setmem): Similarly.
6637
6638 2011-03-25  Kai Tietz  <ktietz@redhat.com>
6639
6640         * collect2.c (write_c_file_stat): Handle backslash
6641         as right-hand directory separator.
6642         (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
6643         checking just for slash.
6644         * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
6645         instead of checking for trailing slash.
6646         * gcc.c (record_temp_file): Use filename_cmp instead
6647         of strcmp.
6648         (do_spec_1): Likewise.
6649         (replace_outfile_spec_function): Likewise.
6650         (is_directory): Use filename_ncmp instead of strncmp.
6651         (print_multilib_info): Likewise.
6652         * gcov.c (find_source): Use filename_cmp instead
6653         instead of strcmp.
6654         (make_gcov_file_name): Fix order of slash/backslash
6655         checks.
6656         * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
6657         (add_standard_paths): Likewise.
6658         * mips-tfile.c (saber_stop): Handle backslash.
6659         * prefix.c (update_path): Use filename_ncmp instead of
6660         strncmp.
6661         * profile.c (output_location): Use filename_cmp instead
6662         of strcmp.
6663         * read-md.c (handle_toplevel_file): Handle backslash.
6664         * tlink.c (frob_extension):  Likewise.
6665         * tree-cfg.c (same_line_p): Use filename_cmp instead of
6666         strcmp.
6667         * tree-dump.c (dequeue_and_dump): Handle backslash.
6668         * tree.c (get_file_function_name): Likewise.
6669         * gengtype.c (read_input_list): Likewise.
6670         (get_file_realbasename): Likewise.
6671         (get_output_file_with_visibility): Use filename_cmp
6672         instead of strcmp.
6673
6674 2011-03-25  Richard Sandiford  <richard.sandiford@linaro.org>
6675
6676         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
6677         case to VFPv1.
6678
6679 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
6680
6681         * fold-const.c (expr_location_or): New function.
6682         (fold_truth_not_expr): Call it.
6683
6684 2011-03-25  Jeff Law  <law@redhat.com>
6685
6686         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
6687         va_end.
6688         * c-family/c-common.c (def_fn_type): Likewise.
6689         * ada/gcc-interface/utils.c (def_fn_type): Likewise.
6690         * emit-rtl.c (gen_rtvec): Likewise.
6691         * lto/lto-lang.c (def_fn_type): Likewise.
6692
6693 2011-03-25  Richard Guenther  <rguenther@suse.de>
6694
6695         * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
6696         also generate copies.
6697         (fini_copy_prop): Handle constant values properly.
6698
6699 2011-03-25  Jakub Jelinek  <jakub@redhat.com>
6700
6701         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
6702         mode size instead of bitsize with DWARF2_ADDR_SIZE.
6703         (hash_loc_operands, compare_loc_operands): Handle
6704         DW_OP_GNU_entry_value.
6705
6706 2011-03-25  Kai Tietz  <ktietz@redhat.com>
6707
6708         * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
6709         (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
6710         * config/i386/i386.c (ix86_conditional_register_usage): Adjust
6711         comment and use macro TARGET_64BIT_MS_ABI instead.
6712         (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
6713         and change default behavior for 32-bit MS_ABI.
6714         (ix86_reg_parm_stack_space): Check additionally for bit-ness.
6715         (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
6716         32-bit, too.
6717         (ix86_cfun_abi): Likewise.
6718         (ix86_maybe_switch_abi): Adjust comment.
6719         (init_cumulative_args): Check for bit-ness in MS_ABI case.
6720         (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
6721         instead of checking for SYSV_ABI.
6722         (ix86_nsaved_sseregs): Likewise.
6723         (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
6724         to 16 bytes.
6725         (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
6726         * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
6727         (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
6728         (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
6729         * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
6730
6731 2011-03-25  Richard Guenther  <rguenther@suse.de>
6732
6733         * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
6734         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
6735         (verify_gimple): Remove.
6736         * tree-cfg.c (verify_gimple_call): Merge verification
6737         from verify_stmts.
6738         (verify_gimple_phi): Merge verification from verify_stmts.
6739         (verify_gimple_label): New function.
6740         (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
6741         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
6742         (verify_stmt): Merge into verify_gimple_in_cfg and callees.
6743         (verify_stmts): Rename to verify_gimple_in_cfg.
6744         (verify_gimple_in_cfg): New function.
6745         * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
6746         * tree-ssa.c (verify_ssa): Likewise.
6747         * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
6748
6749 2011-03-25  Richard Guenther  <rguenther@suse.de>
6750
6751         * passes.c (init_optimization_passes): Add FRE pass after
6752         early SRA.
6753
6754 2011-03-25  Bernd Schmidt  <bernds@codesourcery.com>
6755             Andrew Stubbs  <ams@codesourcery.com>
6756
6757         * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
6758         for Cortex-A8.
6759         (arm_movdi_vfp_cortexa8): New pattern.
6760         * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
6761         iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
6762         instructions when tuning for Cortex-A8.  Set attribute "arch".
6763         * config/arm/arm.md: Move include arm-tune.md up a bit.
6764         (define_attr "arch"): Add "onlya8" and "nota8" values.
6765         (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
6766
6767 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
6768
6769         PR bootstrap/48282
6770         Revert:
6771         2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
6772
6773         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
6774         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
6775         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
6776         * passes.c (init_optimization_passes): Move
6777         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
6778
6779 2011-03-25  Kai Tietz  <ktietz@redhat.com>
6780
6781         * c-typeck.c (comptypes_internal): Replace target
6782         hook call of comp_type_attributes by version in tree.c file.
6783         * gimple.c (gimple_types_compatible_p_1): Likewise.
6784         * tree-ssa.c (useless_type_conversion_p): Likewise.
6785         * tree.c (build_type_attribute_qual_variant): Likewise.
6786         (attribute_value_equal): New static helper function.
6787         (comp_type_attributes): New function.
6788         (merge_attributes): Use attribute_value_equal for comparison.
6789         (attribute_list_contained): Likewise.
6790         * tree.h (comp_type_attributes): New prototype.
6791
6792 2011-03-25  Richard Guenther  <rguenther@suse.de>
6793
6794         * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
6795         of complex types at -O0.
6796         (verify_gimple_assign_binary): Likewise.
6797         (verify_gimple_assign_ternary): Likewise.
6798
6799 2011-03-24  Mark Wielaard  <mjw@redhat.com>
6800
6801         * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
6802         (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
6803
6804 2011-03-24  Mark Wielaard  <mjw@redhat.com>
6805
6806         PR debug/48041
6807         * dwarf2out.c (output_abbrev_section): Only write table when
6808         abbrev_die_table_in_use > 1.
6809
6810 2011-02-24  Richard Henderson  <rth@redhat.com>
6811
6812         * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
6813         (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
6814         (alpha_expand_unaligned_load_words): Use extql.
6815         (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
6816         (emit_insxl): Handle all modes for consistency.
6817
6818 2011-02-24  Richard Henderson  <rth@redhat.com>
6819
6820         * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
6821         (alpha_expand_unaligned_load): Likewise.
6822         (alpha_expand_unaligned_store): Likewise.
6823         (alpha_expand_unaligned_load_words): Likewise.
6824         (alpha_expand_unaligned_store_words): Likewise.
6825         (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
6826         (alpha_split_lock_test_and_set_12): Likewise.
6827         (print_operand, alpha_fold_builtin_extxx): Likewise.
6828         (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
6829         * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
6830         (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
6831         (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
6832         (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
6833         (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
6834         (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
6835         (unaligned_storeqi_be, unaligned_storehi_be): Remove.
6836         (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
6837         (extwl, extll, extql): Similarly.
6838         (inswh, inslh, insqh): Similarly.
6839         (mskbl, mskwl, mskll, mskql): Similarly.
6840         (mskwh, msklh, mskqh): Similarly.
6841
6842 2011-02-24  Richard Henderson  <rth@redhat.com>
6843
6844         * config/alpha/alpha.md (attribute isa): Add er, ner.
6845         (attribute enabled): Handle them.
6846         (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
6847
6848 2011-02-24  Richard Henderson  <rth@redhat.com>
6849
6850         * config/alpha/alpha.md (attribute isa): Add vms.
6851         (attribute enabled): Handle it.
6852         (*movsf): Merge *movsf_{nofix,fix,nofp}.
6853         (*movdf): Merge *movdf_{nofix,fix,nofp}.
6854         (*movtf): Rename from *movtf_internal for consistency.
6855         (*movsi): Merge with *movsi_nt_vms.
6856         (*movhi): Merge *movhi_nobwx, *movhi_bwx.
6857         (*movqi): Merge *movqi_nobwx, *movqi_bwx.
6858         (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
6859         * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
6860
6861 2011-02-24  Richard Henderson  <rth@redhat.com>
6862
6863         * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
6864         (extendqisi2, extendhisi2): Likewise.
6865         (extendqidi2): Simplify BWX/non-BWX expansions.
6866         (extendhidi2): Similarly.
6867
6868 2011-02-24  Richard Henderson  <rth@redhat.com>
6869
6870         * config/alpha/alpha.md (attribute isa): New.
6871         (attribute enabled): New.
6872         (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
6873         (zero_extendqisi2, zero_extendqidi2): Similarly.
6874         (zero_extendhisi2, zero_extendhidi2): Similarly.
6875         * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
6876
6877 2011-02-24  Richard Henderson  <rth@redhat.com>
6878
6879         * config/alpha/predicates.md (input_operand): Revert last change;
6880         update comment to mention 32-bit VMS rather than Windows.
6881
6882 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
6883
6884         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
6885         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
6886         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
6887         * passes.c (init_optimization_passes): Move
6888         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
6889
6890 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
6891
6892         * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
6893
6894 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
6895
6896         * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
6897         correctly.
6898
6899 2011-03-24  Jakub Jelinek  <jakub@redhat.com>
6900
6901         PR debug/48204
6902         * simplify-rtx.c (simplify_const_unary_operation): Call
6903         real_convert when changing mode class with FLOAT_EXTEND.
6904
6905 2011-03-24  Nick Clifton  <nickc@redhat.com>
6906
6907         * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
6908         (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
6909         * config/rx/rx.c (rx_option_override): Set align_jumps,
6910         align_loops and align_labels if not set by the user.
6911         (rx_align_for_label): New function.
6912         (rx_max_skip_for_label): New function.
6913         (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
6914         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
6915         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
6916         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
6917         * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
6918
6919 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
6920
6921         PR rtl-optimization/48263
6922         * optabs.c (expand_binop_directly): Reinstate convert_modes code
6923         and original commutative_p handling.  Use maybe_gen_insn.
6924
6925 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6926
6927         * reload.c (find_reloads_subreg_address): Add address_reloaded
6928         parameter and return true there if the full address has been
6929         reloaded.
6930         (find_reloads_toplev): Pass address_reloaded flag.
6931         (find_reloads_address_1): Don't use address_reloaded parameter.
6932
6933 2011-03-24  Jeff Law  <law@redhat.com>
6934
6935         * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
6936         unused variable "ann".
6937         (remove_unused_locals): Likewise.
6938
6939         * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
6940         statement.
6941
6942         * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
6943         after it is freed.
6944
6945 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6946
6947         * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
6948         for invalid symbolic addresses.
6949         (s390_secondary_reload): Don't use s390_check_symref_alignment for
6950         larl operands.
6951
6952 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
6953
6954         * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
6955         the argument in calls to fold_truth_not_expr.
6956
6957 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
6958
6959         * tree.c (record_node_allocation_statistics): New function.
6960         (make_node_stat, copy_node_stat, build_string): Call it.
6961         (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
6962         (build1_stat, build_omp_clause): Likewise.
6963
6964 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
6965
6966         * builtins.c (expand_movstr): Fix endp == 1 adjustment after
6967         last commit.
6968
6969 2011-03-24  Richard Guenther  <rguenther@suse.de>
6970
6971         PR tree-optimization/48271
6972         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
6973         blocks that still exist.
6974
6975 2011-03-24  Richard Guenther  <rguenther@suse.de>
6976
6977         PR tree-optimization/48270
6978         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
6979         not free datarefs before ddrs.
6980
6981 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
6982
6983         * tree-sra.c (build_ref_for_offset): Strip useless type conversions
6984         from the address built for a reference with variable offset.
6985
6986 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
6987
6988         PR target/48237
6989         * config/i386/i386.md (*movdf_internal_rex64): Do not split
6990         alternatives that can be handled with movq or movabsq insn.
6991         (*movdf_internal): Disable for !TARGET_64BIT.
6992         (*movdf_internal_nointeger): Ditto.
6993         * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
6994
6995 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
6996
6997         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
6998         (FUNCTION_ARG_ADVANCE): Likewise.
6999         * tm.texi.in: Change references to them to hook references.
7000         * tm.texi: Regenerate.
7001         * targhooks.c (default_function_arg): Eliminate check for target macro.
7002         (default_function_incoming_arg): Likewise.
7003         (default_function_arg_advance): Likewise.
7004         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
7005         (function_arg_advance): Likewise.
7006         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
7007
7008 2011-03-24  Richard Guenther  <rguenther@suse.de>
7009
7010         PR middle-end/48269
7011         * tree-object-size.c (addr_object_size): Do not double-account
7012         for MEM_REF offsets.
7013
7014 2011-03-24  Diego Novillo  <dnovillo@google.com>
7015
7016         * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
7017         * lto-streamer-in.c (input_string_internal): Add clarifying comments.
7018         (lto_input_data_block): Move from lto-opts.c.  Make extern.
7019         Update all users.
7020         (lto_input_string): Rename from input_string.  Make extern.
7021         Update all users.
7022         * lto-streamer-out.c (lto_output_string_with_length): Rename from
7023         output_string_with_length.
7024         Output 0 to indicate a non-NULL string.  Update all callers to
7025         not emit 0.
7026         (lto_output_string): Rename from output_string.  Make extern.
7027         Update all users.
7028         (lto_output_decl_state_streams): Make extern.
7029         (lto_output_decl_state_refs): Make extern.
7030         * lto-streamer.h (lto_input_string): Declare.
7031         (lto_input_data_block): Declare.
7032         (lto_output_string): Declare.
7033         (lto_output_string_with_length): Declare.
7034         (lto_output_decl_state_streams): Declare.
7035         (lto_output_decl_state_refs): Declare.
7036
7037 2011-03-24  Richard Guenther  <rguenther@suse.de>
7038
7039         PR tree-optimization/46562
7040         * tree.c (build_invariant_address): New function.
7041         * tree.h (build_invariant_address): Declare.
7042         * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
7043         a renamed function moved ...
7044         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
7045         Take valueization callback parameter.
7046         * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
7047         * gimple-fold.h: New file.
7048         * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
7049         (ccp_fold, fold_const_aggregate_ref,
7050         fold_ctor_reference, fold_nonarray_ctor_reference,
7051         fold_array_ctor_reference, fold_string_cst_ctor_reference,
7052         get_base_constructor): Move ...
7053         * gimple-fold.c: ... here.
7054         (gimple_fold_stmt_to_constant_1): New function
7055         split out from ccp_fold.  Take a valueization callback parameter.
7056         Valueize all operands.
7057         (gimple_fold_stmt_to_constant): New wrapper function.
7058         (fold_const_aggregate_ref_1): New function split out from
7059         fold_const_aggregate_ref.  Take a valueization callback parameter.
7060         (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
7061         * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
7062         invariant POINTER_PLUS_EXPRs to invariant form.
7063         (vn_valueize): New function.
7064         (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
7065         * tree-vrp.c (vrp_valueize): New function.
7066         (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
7067         to fold statements to constants.
7068         * tree-ssa-pre.c (eliminate): Properly guard propagation of
7069         function declarations.
7070         * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
7071         tree-ssa-ccp.o): Add gimple-fold.h dependencies.
7072
7073 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
7074
7075         * config/h8300/predicates.md (jump_address_operand): Fix register
7076         mode check.
7077
7078 2011-03-24  Ira Rosen  <ira.rosen@linaro.org>
7079
7080         * doc/invoke.texi (max-stores-to-sink): Document.
7081         * params.h (MAX_STORES_TO_SINK): Define.
7082         * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
7083         if either vectorization or if-conversion is disabled.
7084         * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
7085         tree-vect-data-refs.c vect_equal_offsets.
7086         (dr_equal_offsets_p): New function.
7087         (find_data_references_in_bb): Remove static.
7088         * tree-data-ref.h (find_data_references_in_bb): Declare.
7089         (dr_equal_offsets_p): Likewise.
7090         * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
7091         (vect_drs_dependent_in_basic_block): Update calls to
7092         vect_equal_offsets.
7093         (vect_check_interleaving): Likewise.
7094         * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
7095         (cond_if_else_store_replacement): Rename to...
7096         (cond_if_else_store_replacement_1): ... this.  Change arguments and
7097         documentation.
7098         (cond_if_else_store_replacement): New function.
7099         * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
7100         * params.def (PARAM_MAX_STORES_TO_SINK): Define.
7101
7102 2011-03-23  Chung-Lin Tang  <cltang@codesourcery.com>
7103
7104         PR target/46934
7105         * config/arm/arm.md (casesi): Use the gen_int_mode() function
7106         to subtract lower bound instead of GEN_INT().
7107
7108 2011-03-23  Jonathan Wakely  <jwakely.gcc@gmail.com>
7109
7110         PR other/48179
7111         PR other/48221
7112         PR other/48234
7113         * doc/extend.texi (Alignment): Move section to match order in TOC.
7114         * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
7115         (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
7116
7117 2011-03-23  Jeff Law  <law@redhat.com>
7118
7119         * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
7120         before removing the edge.
7121
7122         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
7123         it may have been freed by redirect_branch_edge or
7124         redirect_edge_succ_nodup.
7125
7126 2011-03-23  Richard Guenther  <rguenther@suse.de>
7127
7128         * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
7129         (check_va_list_escapes): Likewise.
7130         (check_all_va_list_escapes): Likewise.
7131
7132 2011-03-23  Richard Guenther  <rguenther@suse.de>
7133
7134         * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
7135         (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
7136         (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
7137         (alias.o): Likewise.
7138         (ipa-type-escape.o): Remove.
7139         (ipa-struct-reorg.o): Likewise.
7140         (GTFILES): Remove ipa-struct-reorg.c.
7141         * alias.c: Do not include ipa-type-escape.h.
7142         * tree-ssa-alias.c: Likewise.
7143         * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
7144         * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
7145         * passes.c (init_optimization_passes): Remove ipa-struct-reorg
7146         and ipa-type-escape passes.
7147         * tree-pass.h (pass_ipa_type_escape): Remove.
7148         (pass_ipa_struct_reorg): Likewise.
7149         * ipa-struct-reorg.h: Remove.
7150         * ipa-struct-reorg.c: Likewise.
7151         * ipa-type-escape.h: Likewise.
7152         * ipa-type-escape.c: Likewise.
7153         * doc/invoke.texi (-fipa-struct-reorg): Remove.
7154         (--param struct-reorg-cold-struct-ratio): Likewise.
7155         * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
7156         * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
7157         * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
7158
7159 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7160
7161         * config/s390/2084.md: Enable all insn reservations also for z9_ec
7162         cpu attribute value.
7163         * config/s390/s390-opts.h (enum s390_arch_option): Remove.
7164         (enum processor_type): Add PROCESSOR_2094_Z9_EC.
7165         * config/s390/s390.c (processor_flags_table): New constant array.
7166         (s390_handle_arch_option): Remove.
7167         (s390_handle_option): Remove s390_handle_arch_option invocations
7168         and OPT_mwarn_framesize_ handling.
7169         (s390_option_override): Remove s390_handle_arch_option invocation.
7170         (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
7171         warnings.
7172         * config/s390/s390.md (cpu attribute): Add z9_ec value.
7173         * config/s390/s390.opt (s390_tune, s390_arch)
7174         (march=): Replace s390_arch_option enum and values with
7175         processor_type.  Set variable name to s390_arch.  Set
7176         initialization value.
7177         (mtune=): Replace s390_arch_option with processor_type.  Set
7178         variable name to s390_tune.  Set initialization value.
7179
7180 2011-03-23  Julian Brown  <julian@codesourcery.com>
7181
7182         * expr.c (expand_expr_real_1): Only use BLKmode for volatile
7183         accesses which are not naturally aligned.
7184
7185 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
7186
7187         PR target/47553
7188         * config/arm/predicates.md (neon_lane_number): Accept 0..15.
7189
7190 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
7191
7192         * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
7193         parameter from "int" to "enum insn_code".
7194         (expand_operand_type): New enum.
7195         (expand_operand): New structure.
7196         (create_expand_operand): New function.
7197         (create_fixed_operand, create_output_operand): Likewise
7198         (create_input_operand, create_convert_operand_to): Likewise.
7199         (create_convert_operand_from, create_address_operand): Likewise.
7200         (create_integer_operand): Likewise.
7201         (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
7202         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
7203         (expand_insn, expand_jump_insn): Likewise.
7204         * builtins.c (expand_builtin_prefetch): Use the new interfaces.
7205         (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
7206         (expand_movstr, expand_builtin___clear_cache): Likewise.
7207         (expand_builtin_lock_release): Likewise.
7208         * explow.c (allocate_dynamic_stack_space): Likewise.
7209         (probe_stack_range): Likewise.  Allow check_stack to FAIL,
7210         and use the default handling in that case.
7211         * expmed.c (check_predicate_volatile_ok): Delete.
7212         (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
7213         (emit_cstore): Likewise.
7214         * expr.c (emit_block_move_via_movmem): Likewise.
7215         (set_storage_via_setmem, expand_assignment): Likewise.
7216         (emit_storent_insn, try_casesi): Likewise.
7217         (emit_single_push_insn): Likewise.  Allow the expansion to fail.
7218         * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
7219         (expand_vec_shift_expr, expand_binop_directly): Likewise.
7220         (expand_twoval_unop, expand_twoval_binop): Likewise.
7221         (expand_unop_direct, emit_indirect_jump): Likewise.
7222         (emit_conditional_move, vector_compare_rtx): Likewise.
7223         (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
7224         (expand_sync_operation, expand_sync_fetch_operation): Likewise.
7225         (expand_sync_lock_test_and_set): Likewise.
7226         (maybe_emit_unop_insn): Likewise.  Change icode to an insn_code.
7227         (emit_unop_insn): Likewise.
7228         (expand_copysign_absneg): Change icode to an insn_code.
7229         (create_convert_operand_from_type): New function.
7230         (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
7231         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
7232         (expand_insn, expand_jump_insn): Likewise.
7233         * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
7234         than const_int_operand for operand 2.
7235
7236 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7237
7238         * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
7239         if possible.
7240
7241 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
7242
7243         * emit-rtl.c (emit_pattern_before_noloc): New function.
7244         (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
7245         (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
7246         (emit_pattern_after_noloc): New function.
7247         (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
7248         (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
7249
7250 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
7251
7252         * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
7253         (__ffsDI2): Likewise.
7254
7255 2011-03-22  Richard Henderson  <rth@redhat.com>
7256
7257         * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
7258         of !TARGET_ABI_OPEN_VMS.
7259         (alpha_trampoline_init, alpha_start_function): Likewise.
7260         (alpha_expand_epilogue, alpha_file_start): Likewise.
7261         * config/alpha/alpha.md (divsi3, modsi3): Likewise.
7262         (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
7263         (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
7264         (*divmodsi_internal, *divmoddi_internal_er): Likewise.
7265         (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
7266
7267 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
7268
7269         * config/s390/s390-opts.h: New.
7270         * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
7271         s390_arch_flags, s390_warn_framesize, s390_stack_size,
7272         s390_stack_guard): Remove.
7273         (s390_handle_arch_option): Return void.  Take enum
7274         s390_arch_option value instead of string and searching array.
7275         (s390_handle_option): Don't assert that global structures are in
7276         use.  Access variables via opts pointer.  Use error_at.  Don't use
7277         sscanf for -mstack-guard= or -mstack-size=.  Update call to
7278         s390_handle_arch_option.
7279         (s390_option_override): Update call to s390_handle_arch_option.
7280         (s390_emit_prologue): Use %d format for s390_stack_size in
7281         diagnostic.  Use %wd for HOST_WIDE_INT.
7282         * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
7283         (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
7284         * config/s390/s390.opt (config/s390/s390-opts.h): New
7285         HeaderInclude entry.
7286         (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
7287         s390_arch_flags, s390_warn_framesize): New Variable entries.
7288         (s390_arch_option): New Enum and EnumValue entries.
7289         (march=): Use Enum instead of Var.
7290         (mstack-guard=, mstack-size=): Use UInteger and Var.
7291         (mtune=): Use Enum.
7292
7293 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
7294
7295         * config/score/score.c (score_handle_option): Don't assert that
7296         global structures are in use.  Access target_flags via opts
7297         pointer.  Use value of -march= option to determine target_flags
7298         settings.
7299         * config/score/score.opt (march=): Use Enum.
7300         (score_arch): New Enum and EnumValue entries.
7301
7302 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
7303
7304         * config/mep/mep.c (option_mtiny_specified): Remove.
7305         (mep_option_override): Move register handling for -mivc2 from
7306         mep_handle_option.  Use global_options_set.x_mep_tiny_cutoff
7307         instead of option_mtiny_specified.
7308         (mep_handle_option): Access target_flags via opts pointer.  Don't
7309         assert that global structures are in use.  Defer part of -mivc2
7310         handling and move it to mep_option_override.
7311         * config/mep/mep.opt (IVC2): New Mask entry.
7312         (mivc2): Use Var and Defer instead of Mask.
7313
7314 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
7315
7316         * config/v850/v850-opts.h: New.
7317         * config/v850/v850.c (small_memory): Replace with
7318         small_memory_physical_max array.  Make that array static const.
7319         (v850_handle_memory_option): Take integer value of argument.  Take
7320         gcc_options pointer, option text and location.  Return void.
7321         Update for changes to small memory structures.
7322         (v850_handle_option): Access target_flags via opts pointer.  Don't
7323         assert that global structures are in use.  Update calls to
7324         v850_handle_memory_option.
7325         (v850_encode_data_area): Update references to small memory settings.
7326         * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
7327         (enum small_memory_type): Move to v850-opts.h.
7328         * config/v850/v850.opt (config/v850/v850-opts.h): New
7329         HeaderInclude entry.
7330         (small_memory_max): New Variable entry.
7331         (msda): Replace by pair of options msda= and msda-.  Use UInteger.
7332         (mtda, mzda): Likewise.
7333
7334 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
7335
7336         * config/sh/sh.c (sh_handle_option): Access target_flags via opts
7337         pointer.  Don't assert that global structures are in use.
7338
7339 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
7340
7341         * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
7342         via opts pointer.  Don't assert that global structures are in use.
7343
7344 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
7345
7346         * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
7347         (munix=93): Use Var.
7348         * config/pa/pa-hpux1010.opt (munix=95): Use Var.
7349         * config/pa/pa-hpux1111.opt (munix=98): Use Var.
7350         * config/pa/pa-opts.h: New.
7351         * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
7352         (pa_handle_option): Don't assert that global structures are in
7353         use.  Access target_flags via opts pointer.  Don't handle
7354         OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
7355         OPT_munix_98 here.
7356         (pa_option_override): Handle deferred OPT_mfixed_range_.
7357
7358 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
7359
7360         * config/mn10300/mn10300-opts.h: New.
7361         * config/mn10300/mn10300.c (mn10300_processor,
7362         mn10300_tune_string): Remove.
7363         (mn10300_handle_option): Don't assert that global structures are
7364         in use.  Access mn10300_processor via opts pointer.  Don't handle
7365         OPT_mtune_ here.
7366         * config/mn10300/mn10300.h (enum processor_type): Move to
7367         mn10300-opts.h.
7368         (mn10300_processor): Remove.
7369         * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
7370         HeaderInclude entry.
7371         (mn10300_processor): New Variable entry.
7372         (mtune=): Use Var.
7373
7374 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
7375
7376         * config/microblaze/microblaze.c: Don't include opts.h.
7377         (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
7378         * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
7379         (mno-clearbss): Use Var and Warn.
7380
7381 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
7382
7383         * config/m32r/m32r-opts.h: New.
7384         * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
7385         (m32r_handle_option): Don't assert that global structures are in
7386         use.  Access target_flags and m32r_cache_flush_func via opts
7387         pointer.  Don't handle OPT_mmodel_, OPT_msdata_ or
7388         OPT_mno_flush_trap here.
7389         * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
7390         include of m32r-opts.h.
7391         * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
7392         HeaderInclude entry.
7393         (m32r_model_selected, m32r_sdata_selected): New Variable entries.
7394         (mmodel=): Use Enum and Var.
7395         (m32r_model): New Enum and EnumValue entries.
7396         (mno-flush-trap): Use Var.
7397         (msdata=): Use Enum and Var.
7398         (m32r_sdata): New Enum and EnumValue entries.
7399
7400 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
7401
7402         * config/m32c/m32c.c: Don't include opts.h.
7403         (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
7404         m32c_handle_option): Remove.
7405         (m32c_option_override): Check global_options_set.x_target_memregs
7406         instead of target_memregs_set.
7407         * config/m32c/m32c.h (target_memregs): Remove.
7408         * config/m32c/m32c.opt (memregs=): Use UInteger with integer
7409         variable.
7410
7411 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
7412
7413         * config/iq2000/iq2000-opts.h: New.
7414         * config/iq2000/iq2000.c: Don't include opts.h.
7415         (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
7416         * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
7417         * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
7418         HeaderInclude entry.
7419         (iq2000_tune): New Variable entry.
7420         (march=): Add comment.  Use Enum.
7421         (iq2000_arch): New Enum and EnumValue entries.
7422         (mcpu=): Use Enum and Var.
7423         (iq2000_tune): New Enum and EnumValue entries.
7424
7425 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
7426
7427         * config/ia64/ia64-opts.h: New.
7428         * config/ia64/ia64.c (ia64_tune): Remove.
7429         (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
7430         here.  Use error_at.
7431         (ia64_option_override): Handle deferred OPT_mfixed_range_.
7432         * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
7433         * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
7434         HeaderInclude entry.
7435         (ia64_tune): New Variable entry.
7436         (mfixed-range=): Use Defer and Var.
7437         (mtune=): Use Enum and Var.
7438         (ia64_tune): New Enum and EnumValue entries.
7439
7440 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
7441
7442         * config/frv/frv-opts.h: New.
7443         * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
7444         frv-opts.h.
7445         (frv_cpu_type): Remove.
7446         * config/frv/frv.c: Don't include opts.h.
7447         (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
7448         * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
7449         (frv_cpu_type): New Variable entry.
7450         (frv_cpu): New Enum and EnumValue entries.
7451
7452 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
7453
7454         * config/cris/cris.c (cris_handle_option): Access target_flags via
7455         opts pointer.  Don't assert that global structures are in use.
7456         Don't call CRIS_SUBTARGET_HANDLE_OPTION.
7457         * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
7458
7459 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
7460
7461         * config/bfin/bfin-opts.h: New.
7462         * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
7463         bfin_si_revision, bfin_workarounds): Remove.
7464         (bfin_cpus): Make static const.
7465         (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
7466         not bfin_lib_id_given.
7467         (bfin_handle_option): Don't set bfin_lib_id_given.  Access
7468         bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
7469         pointer. Use error_at.  Don't assert that global structures are in use.
7470         * config/bfin/bfin.h: Include bfin-opts.h.
7471         (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
7472         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
7473         * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
7474         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
7475         entries.
7476
7477 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
7478
7479         * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
7480         * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
7481         or -msoft-float here.
7482         * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
7483         -msoft-float and -mhard-float.
7484         (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
7485         * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
7486         msoft-float.
7487         * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
7488         -msoft-float.
7489         (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
7490         * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
7491         not mhard-float.
7492         (LIBGCC_SPEC): Don't handle -msoft-float.
7493         * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
7494         -mhard-float.
7495         * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
7496         msoft-float.
7497         * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
7498         -mfloat-abi=*, not -msoft-float and -mhard-float.
7499         * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
7500         -msoft-float.
7501         * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
7502         Use mfloat-abi=hard and mfloat-abi=soft in comments, not
7503         mhard-float and msoft-float.
7504         * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
7505         mfloat-abi=soft in comments, not mhard-float and msoft-float.
7506         * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
7507         mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
7508         mhard-float.
7509         * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
7510         mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
7511         msoft-float.
7512         * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
7513         not mhard-float.
7514         * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
7515         not msoft-float.
7516
7517 2011-03-22  Richard Henderson  <rth@redhat.com>
7518
7519         * config/alpha/alpha.c (alpha_expand_prologue): Don't test
7520         TARGET_ABI_WINDOWS_NT.
7521         (alpha_output_function_end_prologue): Likewise.
7522         * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
7523         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
7524         * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
7525         (trap, *movsi_nt_vms): Likewise.
7526         (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
7527         (*tablejump_osf_nt_internal): Remove.
7528         * config/alpha/predicates.md (input_operand): Only test Pmode.
7529
7530 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
7531
7532         * config/alpha/alpha.c (alpha_handle_option): Access target_flags
7533         via opts pointer.  Use error_at.  Don't assert that global
7534         structures are in use.
7535
7536 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
7537
7538         * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
7539         (ix86_handle_option): Access ix86_isa_flags and
7540         ix86_isa_flags_explicit via opts pointer.  Don't assert that
7541         global structures are in use.
7542         (ix86_function_specific_save, ix86_function_specific_restore):
7543         Update ix86_isa_flags_explicit field name.
7544         * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
7545         (ix86_isa_flags_explicit): Rename TargetSave entry to
7546         x_ix86_isa_flags_explicit.
7547
7548 2011-03-22  Richard Henderson  <rth@redhat.com>
7549
7550         * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
7551         (alpha_option_override, direct_return): Likewise.
7552         (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
7553         (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
7554         (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
7555         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
7556         (alpha_expand_epilogue, alpha_end_function): Likewise.
7557         (alpha_init_libfuncs): Likewise.
7558         (struct machine_function): Remove unicosmk members.
7559         (print_operand) ['t']: Remove.
7560         (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
7561         unicosmk_output_module_name, unicosmk_output_common,
7562         current_section_align, unicosmk_output_text_section_asm_op,
7563         unicosmk_output_data_section_asm_op, unicosmk_init_sections,
7564         unicosmk_section_type_flags, unicosmk_unique_section,
7565         unicosmk_asm_named_section, unicosmk_insert_attributes,
7566         unicosmk_output_align, unicosmk_defer_case_vector,
7567         unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
7568         SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
7569         unicosmk_output_ssib, unicosmk_add_call_info_word,
7570         unicosmk_extern_head, unicosmk_output_default_externs,
7571         unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
7572         unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
7573         unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
7574         * config/alpha/alpha-protos.h: Update.
7575         * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
7576         * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
7577         (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
7578         (mulsi3): Don't test TARGET_ABI_UNICOSMK.
7579         (*mulsi_se, mulvsi3): Likewise.
7580         (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
7581         (*divmodsi_internal, call, call_value, realign): Likewise.
7582         (moddi3, umoddi3): Likewise; remove duplicate expander.
7583         (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
7584         (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
7585         (*movdi_nofix): Remove r/U alternative.
7586         (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
7587         * config/alpha/constraints.md ("U"): Remove.
7588         * config/alpha/predicates.md (call_operand"): Don't test
7589         TARGET_ABI_UNICOSMK.
7590
7591 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
7592
7593         * target.def (handle_option): Take gcc_options and
7594         cl_decoded_option pointers and location_t.
7595         * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
7596         * doc/tm.texi: Regenerate.
7597         * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
7598         * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
7599         * lto-opts.c (lto_reissue_options): Generate option structure for
7600         targetm.handle_option call.
7601         * opts.c (target_handle_option): Update call to
7602         targetm.handle_option.  Remove assertions about values now passed
7603         down to hook.
7604         * targhooks.c (default_target_handle_option): New.
7605         * targhooks.h (default_target_handle_option): Declare.
7606         * config/alpha/alpha.c: Include opts.h.
7607         (alpha_handle_option): Update to new hook interface.
7608         * config/arm/arm.c: Include opts.h.
7609         (arm_handle_option): Update to new hook interface.
7610         * config/arm/t-arm (arm.o): Update dependencies.
7611         * config/bfin/bfin.c: Include opts.h.
7612         (bfin_handle_option): Update to new hook interface.
7613         * config/cris/cris.c: Include opts.h.
7614         (cris_handle_option): Update to new hook interface.
7615         * config/frv/frv.c: Include opts.h.
7616         (frv_handle_option): Update to new hook interface.
7617         * config/i386/i386.c: Include opts.h.
7618         (ix86_handle_option): Update to new hook interface.
7619         (ix86_valid_target_attribute_inner_p): Generate option structure
7620         for call to ix86_handle_option.
7621         * config/i386/t-i386 (i386.o): Update dependencies.
7622         * config/ia64/ia64.c: Include opts.h.
7623         (ia64_handle_option): Update to new hook interface.
7624         * config/ia64/t-ia64 (ia64.o): Update dependencies.
7625         * config/iq2000/iq2000.c: Include opts.h.
7626         (iq2000_handle_option): Update to new hook interface.
7627         * config/m32c/m32c.c: Include opts.h.
7628         (m32c_handle_option): Update to new hook interface.
7629         * config/m32r/m32r.c: Include opts.h.
7630         (m32r_handle_option): Update to new hook interface.
7631         * config/m68k/m68k.c: Include opts.h.
7632         (m68k_handle_option): Update to new hook interface.
7633         * config/mep/mep.c: Include opts.h.
7634         (mep_handle_option): Update to new hook interface.
7635         * config/microblaze/microblaze.c: Include opts.h.
7636         (microblaze_handle_option): Update to new hook interface.
7637         * config/mips/mips.c: Include opts.h.
7638         (mips_handle_option): Update to new hook interface.
7639         * config/mn10300/mn10300.c: Include opts.h.
7640         (mn10300_handle_option): Update to new hook interface.
7641         * config/pa/pa.c: Include opts.h.
7642         (pa_handle_option): Update to new hook interface.
7643         * config/pdp11/pdp11.c: Include opts.h.
7644         (pdp11_handle_option): Update to new hook interface.
7645         * config/rs6000/rs6000.c: Include opts.h.
7646         (rs6000_handle_option): Update to new hook interface.
7647         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
7648         * config/rx/rx.c: Include opts.h.
7649         (rx_handle_option): Update to new hook interface.
7650         * config/s390/s390.c: Include opts.h.
7651         (s390_handle_option): Update to new hook interface.
7652         * config/score/score.c: Include opts.h.
7653         (score_handle_option): Update to new hook interface.
7654         * config/sh/sh.c: Include opts.h.
7655         (sh_handle_option): Update to new hook interface.
7656         * config/sparc/sparc.c: Include opts.h.
7657         (sparc_handle_option): Update to new hook interface.
7658         * config/v850/v850.c: Include opts.h.
7659         (v850_handle_option): Update to new hook interface.
7660
7661 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
7662
7663         * gcc.c (driver_unknown_option_callback): Only permit and save
7664         unknown -Wno- options.
7665         (driver_wrong_lang_callback): Save options directly instead of via
7666         driver_unknown_option_callback.
7667
7668 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
7669
7670         * combine.c (simplify_set): Try harder to find the best CC mode when
7671         simplifying a nested COMPARE on the RHS.
7672
7673 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
7674
7675         * config/alpha/gnu.h: Remove.
7676         * config/arc: Remove directory.
7677         * config/arm/netbsd.h: Remove.
7678         * config/arm/t-pe: Remove.
7679         * config/crx: Remove directory.
7680         * config/i386/netbsd.h: Remove.
7681         * config/m68hc11: Remove directory.
7682         * config/m68k/uclinux-oldabi.h: Remove.
7683         * config/mcore/mcore-pe.h: Remove.
7684         * config/mcore/t-mcore-pe: Remove.
7685         * config/netbsd-aout.h: Remove.
7686         * config/rs6000/gnu.h: Remove.
7687         * config/sh/sh-symbian.h: Remove.
7688         * config/sh/symbian-base.c: Remove.
7689         * config/sh/symbian-c.c: Remove.
7690         * config/sh/symbian-cxx.c: Remove.
7691         * config/sh/symbian-post.h: Remove.
7692         * config/sh/symbian-pre.h: Remove.
7693         * config/sh/t-symbian: Remove.
7694         * config/svr3.h: Remove.
7695         * config/vax/netbsd.h: Remove.
7696         * config.build: Don't handle i[34567]86-*-pe.
7697         * config.gcc: Remove handling of deprecations for most deprecated
7698         targets.
7699         (m68k-*-uclinuxoldabi*): Add to second deprecated list.
7700         (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
7701         i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
7702         m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
7703         powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
7704         sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
7705         Remove cases.
7706         * config.host: Don't handle i[34567]86-*-pe.
7707         * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
7708         (ASM_SPEC32): Don't handle -mcall-gnu.
7709         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
7710         -mcall-gnu.
7711         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
7712         STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
7713         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
7714         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
7715         (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
7716         * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
7717         conditional on SYMBIAN.
7718         * configure.ac: Don't handle powerpc*-*-gnu*.
7719         * configure: Regenerate.
7720         * doc/extend.texi (interrupt attribute): Don't mention CRX.
7721         * doc/install-old.texi (m6811, m6812): Don't mention.
7722         * doc/install.texi (arc-*-elf*): Don't document multilib option.
7723         (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
7724         (m68k-uclinuxoldabi): Don't mention.
7725         * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
7726         Remove.
7727         (-mcall-gnu): Remove.
7728         * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
7729         families): Remove constraint documentation.
7730
7731 2011-03-22  Marius Strobl  <marius@FreeBSD.org>
7732
7733         * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
7734         (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
7735         (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
7736
7737 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
7738
7739         PR target/48226
7740         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
7741         vector when peeking at the next token for vector, don't expand the
7742         keywords.
7743
7744 2011-03-21  Georg-Johann Lay  <avr@gjlay.de>
7745
7746         * config/avr/avr-protos.h (expand_epilogue): Change prototype
7747         * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
7748         * config/avr/avr.c (init_cumulative_args)
7749         (avr_function_arg_advance): Use it.
7750         * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
7751         sibcall epilogues.
7752         (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
7753         (avr_function_ok_for_sibcall): ...this new function.
7754         (avr_lookup_function_attribute1): New static Function.
7755         (avr_naked_function_p, interrupt_function_p)
7756         (signal_function_p, avr_OS_task_function_p)
7757         (avr_OS_main_function_p): Use it.
7758         * config/avr/avr.md ("sibcall", "sibcall_value")
7759         ("sibcall_epilogue"): New expander.
7760         ("*call_insn", "*call_value_insn"): New insn.
7761         ("call_insn", "call_value_insn"): Remove
7762         ("call", "call_value", "epilogue"): Change expander to handle
7763         sibling calls.
7764
7765 2011-03-21  Nick Clifton  <nickc@redhat.com>
7766
7767         * doc/invoke.texi (Overall Options): Move closing brace to end of
7768         options list.
7769         (Optimization Options): Add missing @gol.
7770         (Directory Options): Likewise.
7771         (i386 and x86-64 Options): Likewise.
7772         (RS6000 and PowerPC Options): Likewise.
7773         (i386 and x86-64 Windows Options): Likewise.
7774         (V850 Options): Add text missing from descriptions.
7775
7776 2011-03-22  Richard Henderson  <rth@redhat.com>
7777
7778         * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
7779         (avr_incoming_return_addr_rtx): New.
7780         (emit_push_byte): New.
7781         (expand_prologue): Use it.  Remove incorrect dwarf annotation for
7782         SREG, RAMPZ, zero register.  Push frame pointer by bytes.  Add dwarf
7783         annotation for __prologue_saves__.  Fixup dwarf annotation for CFA.
7784         (emit_pop_byte): New.
7785         (expand_epilogue): Use it.  Pop frame pointer by bytes.
7786         * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
7787         (INCOMING_RETURN_ADDR_RTX): New.
7788         (INCOMING_FRAME_SP_OFFSET): New.
7789         (ARG_POINTER_CFA_OFFSET): New.
7790         * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
7791         (*pushhi, *pushsi, *pushsf, popqi): Likewise.
7792         (pophi): Remove.
7793
7794         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
7795
7796 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
7797
7798         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
7799         (FUNCTION_ARG_ADVANCE): Likewise.
7800         * tm.texi.in: Change references to them to hook references.
7801         * tm.texi: Regenerate.
7802         * targhooks.c (default_function_arg): Eliminate check for target
7803         macro.
7804         (default_function_incoming_arg): Likewise.
7805         (default_function_arg_advance): Likewise.
7806         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
7807         (function_arg_advance): Likewise.
7808         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
7809
7810 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
7811
7812         * tree.c (build_call_1): New function.
7813         (build_call_valist, build_call_array_loc, build_call_vec): Call it.
7814
7815 2011-03-22  Richard Guenther  <rguenther@suse.de>
7816
7817         PR tree-optimization/48228
7818         * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
7819         for single-arg PHIs.
7820
7821 2011-03-22  Andrey Belevantsev  <abel@ispras.ru>
7822
7823         PR rtl-optimization/48143
7824         * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
7825         (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
7826         sse2_cvtps2pd): Likewise.
7827
7828 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7829
7830         * recog.c (canonicalize_change_group): Use validate_unshare_change.
7831
7832 2011-03-22  Richard Guenther  <rguenther@suse.de>
7833
7834         * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
7835         a valid RHS.  Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
7836         * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
7837         and REALIGN_LOAD_EXPR.
7838         (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
7839         DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
7840         * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
7841         DOT_PROD_EXPR case ...
7842         (expand_expr_real_2): ... here.
7843         * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
7844         and REALIGN_LOAD_EXPR.
7845         * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
7846         * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
7847         (vect_create_epilog_for_reduction): Likewise.
7848         (vectorizable_reduction): Likewise.
7849         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
7850         * tree-vect-stmts.c (vectorizable_load): Likewise.
7851
7852 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
7853
7854         * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
7855
7856 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7857
7858         * config/s390/s390.c (s390_delegitimize_address): Fix offset
7859         handling for PLTOFF/GOTOFF.
7860
7861 2011-03-22  Nick Clifton  <nickc@redhat.com>
7862
7863         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
7864         trailing backslash from the end of the macro definition.
7865
7866 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7867
7868         * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
7869         and PLT unspecs.
7870
7871 2011-03-21  Richard Sandiford  <richard.sandiford@linaro.org>
7872
7873         * expr.h (prepare_operand): Move to...
7874         * optabs.h (prepare_operand): ...here and change the insn code
7875         parameter from "int" to "enum insn_code".
7876         (insn_operand_matches): Declare.
7877         * expr.c (init_expr_target): Use insn_operand_matches.
7878         (compress_float_constant): Likewise.
7879         * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
7880         * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
7881         (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
7882         (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
7883         Likewise.
7884         (gen_cond_trap): Likewise.
7885         (prepare_operand): Likewise.  Change icode to an insn_code.
7886         (insn_operand_matches): New function.
7887         * reload.c (find_reloads_address_1): Use insn_operand_matches.
7888         * reload1.c (gen_reload): Likewise.
7889         * targhooks.c (default_secondary_reload): Likewise.
7890
7891 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
7892
7893         * config/alpha/alpha.md (unspec): New define_c_enum.
7894         (unspecv): Ditto.
7895
7896 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
7897
7898         PR debug/48214
7899         * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
7900         between a call and its CALL_ARG_LOCATION note.
7901
7902 2011-03-21  Eric Botcazou  <ebotcazou@adacore.com>
7903
7904         * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
7905
7906 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
7907
7908         PR c/42544
7909         PR c/48197
7910         * c-common.c (shorten_compare): If primopN is first sign-extended
7911         to opN and then zero-extended to result type, set primopN to opN.
7912
7913 2011-03-21  Daniel Jacobowitz  <dan@codesourcery.com>
7914
7915         * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
7916         for barrier handlers.
7917
7918 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
7919
7920         * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
7921         UNSPEC constants to be in the unspec enumeration, and redefine
7922         all UNSPECV constants to be in the unspecv enumeration, so that
7923         dumps print which unspec/unspec_volatile this is.
7924         * config/rs6000/vector.md (UNSPEC_*): Ditto.
7925         * config/rs6000/paired.md (UNSPEC_*): Ditto.
7926         * config/rs6000/vsx.md (UNSPEC_*): Ditto.
7927         * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
7928         * config/rs6000/dfp.md (UNSPEC_*): Ditto.
7929
7930         * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
7931         UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
7932         UNSPECV_LWSYNC, since these are used as unspec_volatile.
7933         * config/rs6000/sync.md (isync, lwsync): Ditto.
7934
7935 2011-03-21  Richard Guenther  <rguenther@suse.de>
7936
7937         * params.def (lto-min-partition): Fix typo.
7938
7939 2011-03-21  Richard Guenther  <rguenther@suse.de>
7940
7941         PR c/47939
7942         * c-decl.c (grokdeclarator): Drop to the main variant only
7943         for array types.  Drop flag_gen_aux_info check.
7944
7945 2011-03-21  Richard Guenther  <rguenther@suse.de>
7946
7947         PR translation/47911
7948         * params.def (lto-partitions): Fix typo.
7949         (lto-min-partition): Fix wording.
7950
7951 2011-03-21  Andreas Tobler  <andreast@fgznet.ch>
7952
7953         * config/rs6000/t-freebsd: Remove duplication from file.
7954
7955 2011-03-21  Richard Guenther  <rguenther@suse.de>
7956
7957         PR middle-end/47661
7958         * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
7959
7960 2011-03-21  Richard Guenther  <rguenther@suse.de>
7961
7962         PR lto/48210
7963         * params.def (lto-partitions): Require at least 1 partition.
7964
7965 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7966
7967         * gthr-solaris.h: Remove.
7968         * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
7969         * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
7970         (LIB_SPEC): Likewise.
7971         * config/sol2.opt (threads): Remove.
7972         * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
7973         (sparc*-*-solaris2*): Likewise.
7974         * configure.ac (enable_threads): Enable solaris support.
7975         * configure: Regenerate.
7976         * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
7977         * doc/install.texi (Configuration, --enable-threads=lib): Remove
7978         solaris.
7979
7980 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7981
7982         * config.gcc: Obsolete *-*-solaris2.8*.
7983         * doc/install.texi (Specific, *-*-solaris2*): Document it.
7984
7985 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7986
7987         PR bootstrap/48135
7988         * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
7989         reference.  Solaris 8 perl works.
7990
7991 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7992
7993         PR bootstrap/48135
7994         * doc/install.texi (Prerequisites): Move jar etc. up.
7995         Explain support library version requirements.
7996
7997 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7998
7999         PR bootstrap/48135
8000         * doc/install.texi (Prerequisites): Move Perl to build
8001         requirements.  Always necessary on Solaris 2 with Sun ld.
8002
8003 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8004
8005         * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
8006         binutils 2.21.
8007         (Specific, i?86-*-solaris2.[89]): Likewise.
8008         (Specific, i?86-*-solaris2.10): Likewise.
8009         (Specific, mips-sgi-irix6): Likewise.
8010         (Specific, *-*-solaris2*): Remove Sun Studio download URL.
8011         Update for binutils 2.21.
8012
8013 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8014
8015         * configure.ac (gcc_cv_lto_plugin): Fix typo.
8016         Allow -fuse-linker-plugin for non-default plugin linker.
8017         * configure: Regenerate.
8018
8019 2011-03-21  Nicola Pero  <nicola.pero@meta-innovation.com>
8020
8021         PR bootstrap/48167
8022         * gengtype.c (files_rules): Added rule for cp/parser.h.
8023
8024 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
8025
8026         PR target/48213
8027         * config/s390/s390.c (s390_delegitimize_address): Don't call
8028         lowpart_subreg if orig_x has BLKmode.
8029
8030 2011-03-21  Kai Tietz  <ktietz@redhat.com>
8031
8032         PR target/12171
8033         * doc/plugins.texi: Adjust documentation for plugin register_callback.
8034         * tree.h (attribute_spec): Add new member affects_type_identity.
8035         * attribs.c (empty_attribute_table): Adjust attribute_spec
8036         initializers.
8037         * config/alpha/alpha.c: Likewise.
8038         * config/arc/arc.c: Likewise.
8039         * config/arm/arm.c: Likewise.
8040         * config/avr/avr.c: Likewise.
8041         * config/bfin/bfin.c: Likewise.
8042         * config/crx/crx.c: Likewise.
8043         * config/darwin.h: Likewise.
8044         * config/h8300/h8300.c: Likewise.
8045         * config/i386/cygming.h: Likewise.
8046         * config/i386/i386.c: Likewise.
8047         * config/ia64/ia64.c: Likewise.
8048         * config/m32c/m32c.c: Likewise.
8049         * config/m32r/m32r.c: Likewise.
8050         * config/m68hc11/m68hc11.c: Likewise.
8051         * config/m68k/m68k.c: Likewise.
8052         * config/mcore/mcore.c: Likewise.
8053         * config/mep/mep.c: Likewise.
8054         * config/microblaze/microblaze.c: Likewise.
8055         * config/mips/mips.c: Likewise.
8056         * config/rs6000/rs6000.c: Likewise.
8057         * config/rx/rx.c: Likewise.
8058         * config/sh/sh.c: Likewise.
8059         * config/sol2.h: Likewise.
8060         * config/sparc/sparc.c: Likewise.
8061         * config/spu/spu.c: Likewise.
8062         * config/stormy16/stormy16.c: Likewise.
8063         * config/v850/v850.c: Likewise.
8064
8065 2011-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
8066
8067         * simplify-rtx.c (simplify_binary_operation_1): Handle
8068         (xor (and A B) C) case when B and C are both constants.
8069
8070 2011-03-21  Mingjie Xing  <mingjie.xing@gmail.com>
8071
8072         * tree-dfa.c (add_referenced_var): Fix typo in comment.
8073
8074 2011-03-20  Eric Botcazou  <ebotcazou@adacore.com>
8075
8076         PR bootstrap/48168
8077         * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
8078
8079 2011-03-20  Jakub Jelinek  <jakub@redhat.com>
8080
8081         PR rtl-optimization/48156
8082         * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
8083         assume df and df_lr are not NULL.
8084
8085 2011-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
8086
8087         PR debug/48023
8088         * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
8089         between a call and its CALL_ARG_LOCATION note.
8090
8091 2011-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
8092
8093         PR debug/48178
8094         * config/sh/sh.c (find_barrier): Don't emit a constant pool
8095         between a call and its corresponding CALL_ARG_LOCATION note.
8096
8097 2011-03-19  Anatoly Sokolov  <aesok@post.ru>
8098
8099         * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
8100         instead of loop. Use HARD_REGISTER_NUM_P predicate.
8101         * haifa-sched.c (setup_ref_regs): Ditto.
8102         * caller-save.c (add_used_regs_1): Ditto.
8103         * dse.c (look_for_hardregs): Ditto.
8104         * df-problems.c (df_simulate_one_insn_forwards): Ditto.
8105         * sched-rgn.c (check_live_1): Ditto.
8106
8107 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
8108
8109         * c-decl.c (diagnose_mismatched_decls): Give an error for
8110         redefining a typedef with variably modified type.
8111
8112 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
8113
8114         * c-decl.c (grokfield): Don't allow typedefs for structures or
8115         unions with no tag by default.
8116         * doc/extend.texi (Unnamed Fields): Update.
8117
8118 2011-03-18  Uros Bizjak  <ubizjak@gmail.com>
8119
8120         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
8121         Rewrite using indirect functions.
8122         (lwp_slwpcb): Ditto.
8123         * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
8124         (avx_vinsertf128<mode>): Ditto.
8125
8126 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8127
8128         * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
8129         unspecs.
8130
8131 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8132
8133         * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
8134         splitting between a call and its corresponding CALL_ARG_LOCATION note.
8135
8136 2011-03-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
8137
8138         PR rtl-optimization/48170
8139         * gcse.c (hoist_code): Remove bogus asserts.
8140
8141 2011-03-18  Georg-Johann Lay  <avr@gjlay.de>
8142
8143         * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
8144         computation for prologue/epilogue.
8145
8146 2011-03-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8147
8148         * Makefile.in (check-consistency): Remove.
8149
8150 2011-03-18  Jakub Jelinek  <jakub@redhat.com>
8151
8152         PR debug/48176
8153         * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
8154         arange_table_in_use is 0, but either text_section_used or
8155         cold_text_section_used is true.  Don't call it if
8156         !info_section_emitted.
8157
8158 2011-03-18  Anatoly Sokolov  <aesok@post.ru>
8159
8160         * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
8161         FUNCTION_VALUE_REGNO_P): Remove.
8162         * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
8163         Remove.
8164         * config/avr/avr.c (avr_ret_register): Make static inline.
8165         (avr_function_value_regno_p): New function.
8166         (avr_libcall_value): Make static. Add 'func' argument.
8167         (avr_function_value): Make static. Rename 'func' argument to
8168         'fn_decl_or_type', forward it to avr_libcall_value. Call
8169         avr_ret_register function instead of RET_REGISTER macro.
8170         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
8171
8172 2011-03-18  Jason Merrill  <jason@redhat.com>
8173
8174         PR c++/23372
8175         * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
8176
8177 2011-03-18  Richard Guenther  <rguenther@suse.de>
8178
8179         * doc/install.texi (--enable-gold): Remove.
8180         (--with-plugin-ld): Document.
8181         * doc/invoke.texi (-fuse-linker-plugin): Clarify.
8182
8183 2011-03-18  Andrew Pinski  <pinskia@gmail.com>
8184
8185         PR middle-end/47790
8186         * expr.c (optimize_bitfield_assignment_op): Revamp to work
8187         again after expansion changes.
8188
8189 2011-03-18  Chung-Lin Tang  <cltang@codesourcery.com>
8190
8191         * combine.c (try_combine): Do simplification only call of
8192         subst() on i2 even when i1 is present. Update comments.
8193
8194 2011-03-18  Kaz Kojima  <kkojima@gcc.gnu.org>
8195
8196         * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
8197         and UNSPEC_PCREL_SYMOFF.
8198
8199 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8200
8201         * config/s390/s390.md: Use define_c_enum for the unspec constant
8202         definitions.
8203
8204 2011-03-18  Richard Henderson  <rth@redhat.com>
8205             Jakub Jelinek  <jakub@redhat.com>
8206
8207         PR bootstrap/48161
8208         * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
8209         instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
8210
8211 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
8212
8213         PR middle-end/47725
8214         * combine.c (cant_combine_insn_p): Don't check zero/sign
8215         extended hard registers.
8216
8217 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
8218
8219         PR middle-end/47725
8220         * combine.c (cant_combine_insn_p): Check zero/sign extended
8221         hard registers.
8222
8223 2011-03-17  Anatoly Sokolov  <aesok@post.ru>
8224
8225         * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
8226         * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
8227         * config/v850/v850.c (v850_output_addr_const_extra): Make static.
8228         Change return type to bool.
8229         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
8230
8231 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
8232
8233         PR debug/48163
8234         * var-tracking.c (prepare_call_arguments): If CALL target
8235         is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
8236         pc instead of looking it up using cselib_lookup and use
8237         Pmode for it if x has VOIDmode.
8238         * dwarf2out.c (gen_subprogram_die): If also both first and
8239         second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
8240
8241         PR debug/48163
8242         * function.c (assign_parms): For data.passed_pointer parms
8243         use MEM of data.entry_parm instead of data.entry_parm itself
8244         as DECL_INCOMING_RTL.
8245         * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
8246         also when passed and declared mode is the same, DECL_RTL
8247         is a MEM with pseudo as address and DECL_INCOMING_RTL is
8248         a MEM too.
8249
8250 2011-03-16  Jeff Law  <law@redhat.com>
8251
8252         PR rtl-optimization/37273
8253         * ira-costs.c (scan_one_insn): Detect constants living in memory and
8254         handle them like argument loads from stack slots.  Do not double
8255         count memory for memory constants and argument loads from stack slots.
8256
8257 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
8258
8259         PR debug/48160
8260         * var-tracking.c (prepare_call_arguments): Check SUBREG.
8261
8262 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
8263
8264         PR target/48171
8265         * config/i386/i386.opt: Add Save to -mavx and -mfma.
8266
8267 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
8268
8269         PR bootstrap/48153
8270         * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
8271         if dwarf_strict.
8272         (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
8273         Clear call_arg_locations and call_arg_loc_last always.
8274
8275         PR middle-end/48152
8276         * var-tracking.c (prepare_call_arguments): If argument needs to be
8277         passed by reference, adjust argtype and mode.
8278
8279 2011-03-17  Richard Guenther  <rguenther@suse.de>
8280
8281         PR middle-end/48134
8282         * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
8283         a value make sure to fold the statement.
8284
8285 2011-03-17  Chung-Lin Tang  <cltang@codesourcery.com>
8286
8287         PR target/43872
8288         * config/arm/arm.c (arm_get_frame_offsets): Adjust early
8289         return condition with !cfun->calls_alloca.
8290
8291 2011-03-17  Richard Guenther  <rguenther@suse.de>
8292
8293         PR bootstrap/48148
8294         * lto-cgraph.c (input_overwrite_node): Clear the abstract
8295         origin for decls in other ltrans units.
8296         (input_varpool_node): Likewise.
8297
8298 2011-03-17  Richard Guenther  <rguenther@suse.de>
8299
8300         PR middle-end/48165
8301         * tree-object-size.c (compute_object_offset): Properly return
8302         the offset operand of MEM_REFs as sizetype.
8303
8304 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
8305
8306         PR rtl-optimization/48141
8307         * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
8308         * dse.c: Include params.h.
8309         (active_local_stores_len): New variable.
8310         (add_wild_read, dse_step1): Clear it when setting active_local_stores
8311         to NULL.
8312         (record_store, check_mem_read_rtx): Decrease it when removing
8313         from the chain.
8314         (scan_insn): Likewise.  Increase it when adding to chain, if it
8315         reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
8316         set active_local_stores to NULL before the addition.
8317         * Makefile.in (dse.o): Depend on $(PARAMS_H).
8318
8319         PR rtl-optimization/48141
8320         * dse.c (record_store): If no positions are needed in an insn
8321         that cannot be deleted, at least unchain it from active_local_stores.
8322
8323 2011-03-16  Dodji Seketeli  <dodji@redhat.com>
8324
8325         PR debug/47510
8326         * dwarf2out.c (strip_naming_typedef): Factorize out of ...
8327         (lookup_type_die_strip_naming_typedef): ... here.
8328         (get_context_die): Use it.
8329         (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
8330         the anonymous struct named by the naming typedef.
8331
8332 2011-03-16  H.J. Lu  <hongjiu.lu@intel.com>
8333
8334         PR target/48154
8335         * config/i386/i386.c (ix86_builtin_vectorized_function): Check
8336         TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
8337
8338 2011-03-16  Jeff Law  <law@redhat.com>
8339
8340         * tree-vrp.c (identify_jump_threads): Slightly simplify type
8341         check for operands of conditional.  Allow type to be a pointer.
8342
8343 2011-03-16  Richard Guenther  <rguenther@suse.de>
8344
8345         PR tree-optimization/48149
8346         * fold-const.c (fold_binary_loc): Fold
8347         COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
8348
8349 2011-03-16  Richard Guenther  <rguenther@suse.de>
8350
8351         PR tree-optimization/26134
8352         * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
8353         complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
8354         (non_rewritable_mem_ref_base): Handle complex type component
8355         accesses, constrain offsets for vector and complex extracts
8356         more properly.
8357
8358 2011-03-16  Richard Guenther  <rguenther@suse.de>
8359
8360         PR tree-optimization/48146
8361         * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
8362         operands avoiding the need for renaming.
8363
8364 2011-03-16  Richard Guenther  <rguenther@suse.de>
8365
8366         * gimple-fold.c (maybe_fold_reference): Open-code relevant
8367         constant folding.  Move MEM_REF canonicalization first.
8368         Rely on fold_const_aggregate_ref for initializer folding.
8369         * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
8370
8371 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
8372
8373         PR middle-end/48136
8374         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
8375         arg0/arg1 or their arguments are always fold converted to matching
8376         types.
8377
8378         * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
8379         to nargs.
8380
8381 2011-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8382
8383         PR lto/46944
8384         * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
8385         Handle in-tree gold.
8386         (ld_vers): Extract binutils version for gold.
8387         (gcc_cv_ld_hidden): Handle gold here.
8388         (gcc_cv_lto_plugin): Determine level of linker plugin support.
8389         * configure: Regenerate.
8390         * config.in: Regenerate.
8391         * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
8392         -fuse-linker-plugin otherwise.
8393         (LINK_PLUGIN_SPEC): Define.  Extract from LINK_COMMAND_SPEC.
8394         (LINK_COMMAND_SPEC): Use it.
8395         (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
8396
8397 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
8398
8399         * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
8400         * calls.c: Remove debug.h include.
8401         (emit_call_1): Don't call virtual_call_token debug hook.
8402         * dwarf2out.c (debug_dcall_section, debug_vcall_section,
8403         dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
8404         vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
8405         size_of_dcall_table, output_dcall_table, size_of_vcall_table,
8406         output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
8407         vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
8408         dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
8409         dwarf2out_virtual_call): Remove.
8410         (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
8411         copy_call_info and virtual_call hooks.
8412         (dwarf2out_init): Don't initialize vcall_insn_table,
8413         debug_dcall_section and debug_vcall_section.
8414         (prune_unused_types): Don't mark nodes from dcall_table.
8415         (dwarf2out_finish): Don't output dcall or vcall tables.
8416         * final.c (final_scan_insn): Don't call direct_call or
8417         virtual_call debug hooks.
8418         * debug.h (struct gcc_debug_hooks): Remove direct_call,
8419         virtual_call_token, copy_call_info and virtual_call hooks.
8420         (debug_nothing_uid): Remove prototype.
8421         * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
8422         copy_call_info and virtual_call hooks.
8423         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
8424         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
8425         * debug.c (do_nothing_debug_hooks): Likewise.
8426         (debug_nothing_uid): Remove.
8427         * doc/invoke.texi (-fenable-icf-debug): Remove.
8428         * common.opt (-fenable-icf-debug): Likewise.
8429
8430         * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
8431         * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
8432         call's MEM.  Handle functions returning aggregate through a hidden
8433         first pointer.  For virtual calls add clobbered pc to call arguments
8434         chain.
8435         * dwarf2out.c (gen_subprogram_die): Emit
8436         DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
8437         can't be emitted.
8438
8439         PR debug/45882
8440         * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
8441         * rtl.h (ENTRY_VALUE_EXP): Define.
8442         * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
8443         * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
8444         * print-rtl.c (print_rtx): Likewise.
8445         * gengtype.c (adjust_field_rtx_def): Likewise.
8446         * var-tracking.c (vt_add_function_parameter): Adjust
8447         gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
8448         * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
8449         * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
8450         partition is a default definition of a PARM_DECL, use ENTRY_VALUE
8451         of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
8452
8453         * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
8454         Call var_location debug hook even on CALL_INSNs.
8455         (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
8456         * rtl.def (ENTRY_VALUE): New.
8457         * dwarf2out.c: Include cfglayout.h.
8458         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
8459         output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
8460         (struct call_arg_loc_node): New type.
8461         (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
8462         tail_call_site_count): New variables.
8463         (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
8464         DW_TAG_GNU_call_site_parameter.
8465         (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
8466         DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
8467         DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
8468         DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
8469         and DW_AT_GNU_all_source_call_sites.
8470         (mem_loc_descriptor): Handle ENTRY_VALUE.
8471         (add_src_coords_attributes): Don't add enything if
8472         DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
8473         (dwarf2out_abstract_function): Save and clear call_arg_location,
8474         call_site_count and tail_call_site_count around dwarf2out_decl call.
8475         (gen_call_site_die): New function.
8476         (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
8477         (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
8478         (dwarf2out_function_decl): Clear call_arg_locations,
8479         call_arg_loc_last, set call_site_count and tail_call_site_count
8480         to -1 and free block_map.
8481         (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
8482         CALL_INSNs.  Add NOTE_DURING_CALL_P var location notes even when not
8483         followed by any real instructions.
8484         (dwarf2out_begin_function): Set call_site_count and
8485         tail_call_site_count to 0.
8486         (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
8487         is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
8488         attempt to force a DIE for it and worst case remove the attribute.
8489         (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
8490         check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
8491         the decl itself.
8492         * var-tracking.c: Include tm_p.h.
8493         (vt_stack_adjustments): For calls call note_register_arguments.
8494         (argument_reg_set): New variable.
8495         (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
8496         ensure the VALUE is resolved.
8497         (call_arguments): New variable.
8498         (prepare_call_arguments): New function.
8499         (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
8500         (struct expand_loc_callback_data): Add ignore_cur_loc field.
8501         (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
8502         always use the best expression.
8503         (vt_expand_loc): Add ignore_cur_loc argument.
8504         (vt_expand_loc_dummy): Clear ignore_cur_loc field.
8505         (emit_note_insn_var_location): Adjust vt_expand_loc callers.
8506         (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
8507         note for all calls.
8508         (vt_add_function_parameter): Use cselib_lookup_from_insn.
8509         If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
8510         argument.  Don't call cselib_preserve_only_values and
8511         cselib_reset_table.
8512         (note_register_arguments): New function.
8513         (vt_initialize): Compute argument_reg_set.  Call
8514         vt_add_function_parameters before processing basic blocks instead of
8515         afterwards.  For calls call prepare_call_arguments before calling
8516         cselib_process_insn.
8517         * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
8518         * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
8519         (var-tracking.o): Depend on $(TM_P_H).
8520         * cfglayout.h (insn_scope): New prototype.
8521         * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
8522         * cfglayout.c (insn_scope): No longer static.
8523         * insn-notes.def (CALL_ARG_LOCATION): New.
8524         * calls.c (expand_call, emit_library_call_value_1): Put USEs for
8525         MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
8526         * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
8527         nothing for DECL_EXTERNAL BLOCK_VARS.
8528
8529 2011-03-16  Alan Modra  <amodra@gmail.com>
8530
8531         PR target/45844
8532         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
8533         create invalid offset address for vsx splat insn.
8534         * config/rs6000/predicates.md (splat_input_operand): New.
8535         * config/rs6000/vsx.md (vsx_splat_*): Use it.
8536
8537 2011-03-15  Xinliang David Li  <davidxl@google.com>
8538
8539         PR c/47837
8540         * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
8541         (normalize_preds): New function.
8542         (is_use_properly_guarded): Normalize def predicates.
8543
8544 2011-03-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
8545
8546         PR target/46788
8547         * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
8548         in the output template.
8549
8550 2011-03-15  Richard Guenther  <rguenther@suse.de>
8551
8552         PR middle-end/47650
8553         * tree-pretty-print.c (dump_function_declaration): Properly
8554         dump unprototyped and varargs function types.
8555
8556 2011-03-15  Richard Guenther  <rguenther@suse.de>
8557
8558         PR tree-optimization/13954
8559         * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
8560         and friends.
8561
8562 2011-03-15  Richard Guenther  <rguenther@suse.de>
8563
8564         PR tree-optimization/48037
8565         * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
8566         selects into BIT_FIELD_REFs.
8567         (non_rewritable_mem_ref_base): Check if a MEM_REF is a
8568         vector select.
8569
8570 2011-03-15  Jakub Jelinek  <jakub@redhat.com>
8571
8572         PR tree-optimization/48129
8573         * builtins.c (fold_builtin_snprintf): Convert to type of
8574         built_in_decls[BUILT_IN_SNPRINTF] retval instead of
8575         implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
8576
8577 2011-03-15  Richard Guenther  <rguenther@suse.de>
8578
8579         PR tree-optimization/41490
8580         * tree-ssa-dce.c (propagate_necessity): Handle returns without
8581         value but with VUSE.
8582         * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
8583         return statements.
8584         * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
8585         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
8586         * tree-tailcall.c (find_tail_calls): Ignore returns.
8587
8588 2011-03-15  Richard Guenther  <rguenther@suse.de>
8589
8590         PR middle-end/48031
8591         * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
8592         or variable-indexed array accesses when in gimple form.
8593
8594 2011-03-15  Richard Guenther  <rguenther@suse.de>
8595
8596         * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
8597
8598 2011-03-15  Alan Modra  <amodra@gmail.com>
8599
8600         PR target/48032
8601         * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
8602         presume symbol_refs without a symbol_ref_decl are suitably
8603         aligned, nor other trees we may see here.  Handle anchor symbols.
8604         (legitimate_constant_pool_address_p): Comment.  Add mode param.
8605         Check cmodel=medium addresses.  Adjust all calls.
8606         (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
8607         creating cmodel=medium optimized access to locals.
8608         * config/rs6000/constraints.md (R): Pass QImode to
8609         legitimate_constant_pool_address_p.
8610         * config/rs6000/predicates.md (input_operand): Pass mode to
8611         legitimate_constant_pool_address_p.
8612         * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
8613         Update prototype.
8614
8615 2011-03-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
8616
8617         PR target/48053
8618         * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
8619         64-bit constants being loaded into registers other than GPRs such
8620         as loading 0 into a VSX register.
8621
8622 2011-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8623
8624         * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
8625
8626 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
8627
8628         PR middle-end/47917
8629         * builtins.c (fold_builtin_snprintf): New function.
8630         (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
8631         (fold_builtin_4): Likewise.
8632
8633         PR middle-end/38878
8634         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
8635         STRIP_NOPS on arg0 and arg1.  When optimizing X +- C == X
8636         and C - X == X also strip nops from +/-/p+ operand.
8637         When optimizing -X == C, fold C to arg0's type.
8638
8639         PR debug/47946
8640         * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
8641         emit it as add_AT_int instead of add_AT_unsigned.
8642
8643 2011-03-14  Tom Tromey  <tromey@redhat.com>
8644
8645         * unwind-dw2.c: Include sys/sdt.h if it exists.
8646         (_Unwind_DebugHook): Use STAP_PROBE2.
8647         * config.in, configure: Rebuild.
8648         * configure.ac: Check for sys/sdt.h.
8649
8650 2011-03-14  Uros Bizjak  <ubizjak@gmail.com>
8651
8652         * config/i386/i386.md (ROUND_FLOOR): New constant.
8653         (ROUND_CEIL): Ditto.
8654         (ROUND_TRUNC): Ditto.
8655         (ROUND_MXCSR): Ditto.
8656         (ROUND_NO_EXC): Ditto.
8657         (rint<mode>2): Use new defines instead of numerical constants.
8658         (floor<mode>2): Ditto.
8659         (ceil<mode>2): Ditto.
8660         (btrunc<mode>2): Ditto.
8661         * config/i386/i386-builtin-types.def: Define ROUND function type
8662         aliases.
8663         * config/i386/i386.c (enum ix86_builtins): Add
8664         IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
8665         (struct builtin_description): Add
8666         __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
8667         (ix86_expand_sse_round): New static function.
8668         (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
8669         function types.
8670         (ix86_builtin_vectorized_function): Handle
8671         BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
8672
8673 2011-03-14  Tom Tromey  <tromey@redhat.com>
8674
8675         * c-parser.c (c_parser_asm_string_literal): Clear
8676         warn_overlength_strings.
8677
8678 2011-03-14  Tom Tromey  <tromey@redhat.com>
8679
8680         * c-parser.c (disable_extension_diagnostics): Save
8681         warn_overlength_strings.
8682         (restore_extension_diagnostics): Restore warn_overlength_strings.
8683
8684 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
8685
8686         * BASE-VER: Change to 4.7.0.
8687
8688 2011-03-14  Richard Guenther  <rguenther@suse.de>
8689
8690         PR middle-end/48098
8691         * tree.c (build_vector_from_val): Adjust assert to requirements
8692         and reality.
8693
8694 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
8695
8696         PR bootstrap/48102
8697         * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
8698
8699 2011-03-14  Andreas Tobler  <andreast@fgznet.ch>
8700
8701         * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
8702         terms of target_flags_explicit. Adjust copyright year.
8703
8704         * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
8705         * config/rs6000/t-freebsd: New file. Add override for
8706         LIB2FUNCS_EXTRA.
8707
8708 2011-03-13  Chris Demetriou  <cgd@google.com>
8709
8710         * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
8711         (-fno-diagnostics-show-option): this, to reflect current default.
8712         (-Werror=): Update text about -fno-diagnostics-show-option.
8713
8714 2011-03-12  Peter Bergner  <bergner@vnet.ibm.com>
8715
8716         PR target/48053
8717         * config/rs6000/predicates.md (easy_vector_constant_add_self,
8718         easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
8719         * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
8720         mode is not V2DImode or V2DFmode.
8721         (vspltis_constant): Do not handle V2DImode and V2DFmode.
8722         (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
8723         * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
8724         registers to 0.
8725         (movdi_internal64): Likewise.
8726
8727 2011-03-12  Sebastian Pop  <sebastian.pop@amd.com>
8728
8729         PR tree-optimization/47127
8730         * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
8731         parameter.
8732         (set_cloog_options): Same.
8733         (scop_to_clast): Same.
8734         (print_clast_stmt): Do not call cloog_state_malloc and
8735         cloog_state_free.
8736         (print_generated_program): Same.
8737         (gloog): Same.
8738         * graphite-clast-to-gimple.h (cloog_state): Declared.
8739         (scop_to_clast): Adjust declaration.
8740         * graphite.c (cloog_state): Defined here.
8741         (graphite_initialize): Call cloog_state_malloc.
8742         (graphite_finalize): Call cloog_state_free.
8743
8744 2011-03-11  Jason Merrill  <jason@redhat.com>
8745
8746         * attribs.c (lookup_attribute_spec): Take const_tree.
8747         * tree.h: Adjust.
8748
8749 2011-03-11  Joseph Myers  <joseph@codesourcery.com>
8750
8751         * config/sparc/sparc.c (sparc_option_override): Use
8752         PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
8753
8754 2011-03-11  Richard Guenther  <rguenther@suse.de>
8755
8756         PR tree-optimization/48067
8757         * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
8758         multiplication result will be only used once on the target
8759         stmt.
8760
8761 2011-03-11  Richard Guenther  <rguenther@suse.de>
8762
8763         * doc/invoke.texi (max-inline-insns-single): Adjust default value.
8764
8765 2011-03-11  Richard Guenther  <rguenther@suse.de>
8766
8767         PR lto/48073
8768         * tree.c (find_decls_types_r): Do not walk types only reachable
8769         from IDENTIFIER_NODEs.
8770
8771 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
8772
8773         PR middle-end/48044
8774         * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
8775         all vnode->force_output nodes as needed.
8776
8777 2011-03-11  Jason Merrill  <jason@redhat.com>
8778
8779         PR c++/48069
8780         * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
8781         COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
8782
8783 2011-03-11  Martin Jambor  <mjambor@suse.cz>
8784
8785         * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
8786         cgraph_node.
8787
8788 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
8789
8790         PR tree-optimization/48063
8791         * ipa-inline.c (cgraph_decide_inlining): Don't try to
8792         inline functions called once if !tree_can_inline_p (node->callers).
8793
8794 2011-03-11  Chen Liqin  <liqin.gcc@gmail.com>
8795
8796         * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
8797         extra_objs.
8798         * config/score/score3.c: Delete.
8799         * config/score/score3.h: Delete.
8800         * config/score/mul-div.S: Delete.
8801         * config/score/sfp-machine.h: Add new file.
8802         * config/score/constraints.md: Add new file.
8803         * config/score/t-score-softfp: Add new file.
8804         * config/score/t-score-elf: Remove score3.o, do not generate multilib.
8805         * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
8806         (score7_extra_constraint): Delete.
8807         (score7_option_override): Remove unused code.
8808         * config/score/score.c: Remove score3 and score5 define and code.
8809         * config/score/score.h: Remove score3 and score5 define and code.
8810         * config/score/score.md: Remove score3 template and unusual insn.
8811         * config/score/score.opt: Remove score3 and score5 options.
8812
8813 2011-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8814
8815         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
8816         when _HPUX_SOURCE is defined.
8817         (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
8818
8819 2011-03-10  Jason Merrill  <jason@redhat.com>
8820
8821         PR c++/48029
8822         * stor-layout.c (layout_type): Don't set structural equality
8823         on arrays of incomplete type.
8824         * tree.c (type_hash_eq): Handle comparing them properly.
8825
8826 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
8827
8828         PR debug/48043
8829         * config/s390/s390.c (s390_delegitimize_address): Make sure the
8830         result mode matches original rtl mode.
8831
8832 2011-03-10  Nick Clifton  <nickc@redhat.com>
8833
8834         * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
8835         (andsi3, andsi3_flags): Fix timings for three operand alternative.
8836
8837 2011-03-09  Jakub Jelinek  <jakub@redhat.com>
8838
8839         PR rtl-optimization/47866
8840         * expr.c (store_field): If MEM_SCALAR_P (target), don't use
8841         MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
8842         if target wasn't scalar.
8843         * function.c (assign_stack_temp_for_type): Assert that neither
8844         MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
8845         MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
8846         macro.
8847         * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
8848
8849 2011-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8850
8851         * config/s390/s390-protos.h (s390_label_align): New prototype.
8852         * config/s390/s390.c (s390_label_align): New function.
8853         * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
8854
8855 2011-03-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
8856
8857         PR target/47755
8858         * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
8859         V2DI/V2DF constants.  Only all 0's or all 1's are easy.
8860         (output_vec_const_move): Ditto.
8861
8862 2011-03-08  Anatoly Sokolov  <aesok@post.ru>
8863
8864         * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
8865         * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
8866         * config/mips/mips.c (mips_preferred_reload_class): Make static.
8867         Change 'rclass' argument and result type to reg_class_t.
8868         (TARGET_PREFERRED_RELOAD_CLASS): Define.
8869
8870 2011-03-08  Georg-Johann Lay  <avr@gjlay.de>
8871
8872         * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
8873         * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
8874         (TARGET_MEMORY_MOVE_COST): Define.
8875         (avr_register_move_cost, avr_memory_move_cost): New Functions.
8876
8877 2011-03-08  Jakub Jelinek  <jakub@redhat.com>
8878
8879         PR debug/47881
8880         * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
8881         removed anything.
8882
8883         PR tree-optimization/48022
8884         * fold-const.c (fold_comparison): Don't call fold_overflow_warning
8885         for EQ/NE_EXPR.
8886
8887 2011-03-07  Jakub Jelinek  <jakub@redhat.com>
8888
8889         PR debug/47991
8890         * var-tracking.c (find_use_val): Return NULL for
8891         cui->sets && cui->store_p BLKmode MEMs.
8892
8893 2011-03-07  Anatoly Sokolov  <aesok@post.ru>
8894
8895         * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
8896         Remove.
8897         * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
8898         xstormy16_print_operand_address): Remove.
8899         * config/stormy16/stormy16.c (xstormy16_print_operand,
8900         xstormy16_print_operand_address): Make static.
8901         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
8902
8903 2011-03-07  Pat Haugen  <pthaugen@us.ibm.com>
8904
8905         PR target/47862
8906         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
8907         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
8908         before definition.
8909
8910 2011-03-07  Zdenek Dvorak  <ook@ucw.cz>
8911
8912         PR bootstrap/48000
8913         * cfgloopmanip.c (fix_bb_placements): Return immediately
8914         if FROM is BASE_LOOP's header.
8915
8916 2011-03-07  Paul Wögerer  <paul_woegerer@mentor.com>
8917
8918         * gimplify.c (gimplify_function_tree): Fix building calls
8919         to __builtin_return_address.
8920
8921 2011-03-07  Alan Modra  <amodra@gmail.com>
8922
8923         * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
8924         * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
8925         * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
8926         * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
8927         return_mode args.
8928         * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
8929         (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
8930         (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
8931         (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
8932         * config/rs6000/rs6000.c
8933         (rs6000_elf_end_indicate_exec_stack): Rename to..
8934         (rs6000_elf_file_end): ..this.  Only call file_end_indicate_exec_stack
8935         for POWERPC_LINUX.  Move code emitting .gnu_attribute to here, from..
8936         (rs6000_file_start): ..here.
8937         (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
8938         file scope variables.
8939         (call_ABI_of_interest): New function.
8940         (init_cumulative_args): Set above vars when function return value
8941         is a float, vector, or small struct.
8942         (rs6000_function_arg_advance_1): Likewise for function args.
8943         (rs6000_va_start): Set rs6000_passes_float if variable arg function
8944         references float args.
8945
8946 2011-03-07  Mingjie Xing  <mingjie.xing@gmail.com>
8947
8948         * doc/cfg.texi: Remove "See" before @ref.
8949         * doc/invoke.texi: Likewise.
8950
8951 2011-03-05  Jason Merrill  <jason@redhat.com>
8952
8953         * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
8954
8955 2011-03-05  Anthony Green  <green@moxielogic.com>
8956
8957         * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
8958
8959 2011-03-05  Zdenek Dvorak  <ook@ucw.cz>
8960
8961         PR rtl-optimization/47899
8962         * cfgloopmanip.c (fix_bb_placements): Fix first argument
8963         to flow_loop_nested_p when moving the loop upward.
8964
8965 2011-03-05  Richard Earnshaw  <rearnsha@arm.com>
8966
8967         PR target/47719
8968         * arm.md (movhi_insn_arch4):  Accept any immediate constant.
8969
8970 2011-03-05  Jakub Jelinek  <jakub@redhat.com>
8971
8972         PR tree-optimization/47967
8973         * ipa-cp.c (build_const_val): Return NULL instead of creating
8974         VIEW_CONVERT_EXPR for mismatching sizes.
8975         (ipcp_create_replace_map): Return NULL if build_const_val failed.
8976         (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
8977         give up on versioning.
8978
8979 2011-03-05  Alan Modra  <amodra@gmail.com>
8980
8981         PR target/47986
8982         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
8983         full cmodel medium/large lo_sum + high addresses.
8984
8985 2011-03-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8986
8987         * config/s390/s390.c (s390_decompose_address): Reject non-literal
8988         pool references in UNSPEC_LTREL_OFFSET.
8989
8990 2011-03-04  Jan Hubicka  <jh@suse.cz>
8991
8992         PR lto/47497
8993         * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
8994         (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
8995         * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
8996         Add node pointers.
8997         * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
8998         cgraph_add_thunk): Add node pointers.
8999         * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
9000         associated to right node.
9001         (input_node): Update use of cgraph_same_body_alias
9002         and cgraph_add_thunk.
9003
9004 2011-03-04  Changpeng Fang  <changpeng.fang@amd.com>
9005
9006         * config/i386/i386.opt (mprefer-avx128): New flag.
9007         * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
9008         modes when the flag -mprefer-avx128 is on.
9009
9010 2011-03-04  Richard Sandiford  <richard.sandiford@linaro.org>
9011
9012         * dwarf2out.c (compare_loc_operands): Fix address handling.
9013
9014 2011-03-04  Alan Modra  <amodra@gmail.com>
9015
9016         * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
9017
9018 2011-03-04  Richard Guenther  <rguenther@suse.de>
9019
9020         PR middle-end/47968
9021         * expmed.c (extract_bit_field_1): Prefer vector modes that
9022         vec_extract patterns can handle.
9023
9024 2011-03-04  Richard Guenther  <rguenther@suse.de>
9025
9026         PR middle-end/47975
9027         * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
9028
9029 2011-03-04  Richard Henderson  <rth@redhat.com>
9030
9031         * explow.c (emit_stack_save): Remove 'after' parameter.
9032         (emit_stack_restore): Likewise.
9033         * expr.h: Update to match.
9034         * builtins.c, calls.c, stmt.c: Likewise.
9035         * config/alpha/alpha.md, config/avr/avr.md: Likewise.
9036         * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
9037         * function.c (expand_function_end): Insert the emit_stack_save
9038         sequence before parm_birth_insn instead of after.
9039
9040 2011-03-03  Uros Bizjak  <ubizjak@gmail.com>
9041
9042         * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
9043         (ssse3_pmaddubsw128): Ditto.
9044         (ssse3_pmaddubsw): Ditto.
9045
9046 2011-03-03  Steve Ellcey  <sje@cup.hp.com>
9047
9048         * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
9049
9050 2011-03-03  Jakub Jelinek  <jakub@redhat.com>
9051
9052         PR c/47963
9053         * gimplify.c (omp_add_variable): Only call omp_notice_variable
9054         on TYPE_SIZE_UNIT if it is a DECL.
9055
9056         PR debug/47283
9057         * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
9058         first operand is not is_gimple_mem_ref_addr, try to fold it.
9059         If the operand still isn't is_gimple_mem_ref_addr, clear
9060         MEM_EXPR on op0.
9061
9062 2011-03-03  Richard Guenther  <rguenther@suse.de>
9063
9064         PR middle-end/47283
9065         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
9066         match comment.
9067         (refs_may_alias_p_1): For release branches return true if
9068         we are confused by our input.
9069
9070 2011-03-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9071
9072         * config/s390/s390.c (s390_function_value): Rename to ...
9073         (s390_function_and_libcall_value): ... this.
9074         (s390_function_value): New function.
9075         (s390_libcall_value): New function.
9076         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
9077         * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
9078         target macro definitions.
9079         * config/s390/s390-protos.h (s390_function_value): Remove prototype.
9080
9081 2011-03-02  Joseph Myers  <joseph@codesourcery.com>
9082
9083         * config/i386/freebsd64.h (CC1_SPEC): Define.
9084         * config/i386/linux64.h (CC1_SPEC): Define.
9085         * config/i386/x86-64.h (CC1_SPEC): Don't define.
9086
9087 2011-03-02  Anatoly Sokolov  <aesok@post.ru>
9088
9089         * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
9090         Remove.
9091         * config/stormy16/stormy16.c: Include reload.h.
9092         (xstormy16_memory_move_cost): New function.
9093         (TARGET_MEMORY_MOVE_COST): Define.
9094
9095 2011-03-02  Richard Sandiford  <richard.sandiford@linaro.org>
9096
9097         PR rtl-optimization/47925
9098         * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
9099         with side effects.  Remove the more-specific check for volatile asms.
9100
9101 2011-03-02  Alan Modra  <amodra@gmail.com>
9102
9103         PR target/47935
9104         * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
9105         toc relative addresses for valid offsets.
9106
9107 2011-03-01  Richard Guenther  <rguenther@suse.de>
9108
9109         PR tree-optimization/47890
9110         * tree-vect-loop.c (get_initial_def_for_induction): Set
9111         related stmt properly.
9112
9113 2011-03-01  Richard Guenther  <rguenther@suse.de>
9114
9115         PR lto/47924
9116         * lto-streamer.c (lto_record_common_node): Also register
9117         the canonical type.
9118
9119 2011-03-01  Richard Guenther  <rguenther@suse.de>
9120
9121         PR lto/46911
9122         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
9123         Do not stream DECL_ABSTRACT_ORIGIN.
9124         (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
9125         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
9126         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
9127         Do not stream DECL_ABSTRACT_ORIGIN.
9128         (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
9129         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
9130
9131 2011-02-28  Anatoly Sokolov  <aesok@post.ru>
9132
9133         * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
9134         FUNCTION_VALUE_REGNO_P): Remove.
9135         * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
9136         * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
9137         Add 'outgoing' argument.
9138         (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
9139         function.
9140         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
9141         TARGET_FUNCTION_VALUE_REGNO_P): Define.
9142
9143 2011-02-28  Kai Tietz  <kai.tietz@onevision.com>
9144
9145         PR debug/28047
9146         * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
9147         (lookup_filename): Likewise.
9148         * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
9149
9150 2011-02-28  Bernd Schmidt  <bernds@codesourcery.com>
9151             Jakub Jelinek  <jakub@redhat.com>
9152
9153         PR middle-end/47893
9154         * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
9155         (assign_stack_local_1): Change last argument type to int.
9156         * function.c (assign_stack_local_1): Replace reduce_alignment_ok
9157         argument with kind.  If bit ASLK_RECORD_PAD is not set in it,
9158         don't record padding space into frame_space_list nor use those areas.
9159         (assign_stack_local): Adjust caller.
9160         (assign_stack_temp_for_type): Call assign_stack_local_1 instead
9161         of assign_stack_local, pass 0 as last argument.
9162         * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
9163         callers.
9164
9165 2011-02-28  Jakub Jelinek  <jakub@redhat.com>
9166
9167         PR debug/47283
9168         * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
9169         Use target address_mode and pointer_mode hooks instead of hardcoded
9170         Pmode and ptr_mode.  Handle some simple cases of extending if
9171         POINTERS_EXTEND_UNSIGNED < 0.
9172         (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
9173         Call convert_debug_memory_address.
9174         (expand_debug_expr) <case ADDR_EXPR>: Pass as to
9175         convert_debug_memory_address.
9176
9177         PR middle-end/46790
9178         * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
9179         * configure: Regenerated.
9180         * config.in: Regenerated.
9181         * varasm.c (default_function_section): Return NULL
9182         if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
9183
9184 2011-02-28  Martin Jambor  <mjambor@suse.cz>
9185
9186         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
9187         the description to match the printed values.
9188
9189 2011-02-28  Richard Guenther  <rguenther@suse.de>
9190
9191         * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
9192         of the copied scope tree.
9193
9194 2011-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9195
9196         * doc/extend.texi (Function Attributes): Avoid deeply (and
9197         wrongly) nested tables.
9198
9199 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
9200
9201         PR middle-end/47903
9202         * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
9203         MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
9204         r isn't op0 nor op1.
9205
9206 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
9207
9208         * config/avr/avr.md: Remove magic comment for emacs.
9209
9210 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
9211
9212         PR target/45261
9213         * config/avr/avr.c (avr_option_override): Use error on bad options.
9214         (avr_help): New function.
9215         (TARGET_HELP): Define.
9216
9217 2011-02-22  Georg-Johann Lay  <avr@gjlay.de>
9218
9219         PR target/42240
9220         * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
9221         (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
9222
9223 2011-02-26  Gerald Pfeifer  <gerald@pfeifer.com>
9224
9225         * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
9226         (ARM Options): Ditto.
9227         (i386 and x86-64 Options): Ditto.
9228         (RX Options): Ditto.
9229         (SPARC Options): Ditto.
9230
9231 2011-02-26  Tijl Coosemans  <tijl@coosemans.org>
9232
9233         * config.gcc (i386-*-freebsd*): Make i486 the default arch on
9234         FreeBSD 6 and later.  Generally use cpu generic.
9235
9236 2011-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
9237
9238         * doc/cpp.texi: Update copyright years.
9239
9240 2011-02-25  Sebastien Bourdeauducq  <sebastien@milkymist.org>
9241
9242         PR target/46898
9243         * config/lm32/lm32.md (ashrsi3): Added needed variable.
9244
9245 2011-02-25  Jon Beniston  <jon@beniston.com>
9246
9247         PR target/46898
9248         * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
9249         * config/lm32/lm32.md (ashlsi3): Remove unused variable.
9250         * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
9251         (lm32_block_move_inline): Add type cast to remove warning.
9252         (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
9253         (gen_int_relational): Move declarations to start of function.
9254
9255 2011-02-25  Eric Botcazou  <ebotcazou@adacore.com>
9256
9257         PR tree-optimization/45470
9258         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
9259         can throw internally only.
9260         * tree-vect-stmts.c (vectorizable_call): Likewise.
9261
9262 2011-02-24  Anatoly Sokolov  <aesok@post.ru>
9263
9264         * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
9265         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
9266         * config/stormy16/stormy16-protos.h
9267         (xstormy16_preferred_reload_class): Remove.
9268         * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
9269         static. Change 'rclass' argument and return type to reg_class_t.
9270         (TARGET_PREFERRED_RELOAD_CLASS,
9271         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
9272
9273 2011-02-24  Richard Guenther  <rguenther@suse.de>
9274
9275         * lto-streamer-in.c (input_bb): Do not find referenced vars
9276         in debug statements.
9277
9278 2011-02-23  Jason Merrill  <jason@redhat.com>
9279
9280         * common.opt (fabi-version): Document v5 and v6.
9281
9282 2011-02-23  Richard Guenther  <rguenther@suse.de>
9283
9284         PR tree-optimization/47849
9285         * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
9286
9287 2011-02-23  Jie Zhang  <jie@codesourcery.com>
9288
9289         * opts-common.c (decode_cmdline_option): Print empty string
9290         argument as "" in decoded->orig_option_with_args_text.
9291         * gcc.c (execute): Print empty string argument as ""
9292         in the verbose output.
9293         (do_spec_1): Keep empty string argument.
9294
9295 2011-02-23  Nathan Froyd  <froydnj@codesourcery.com>
9296
9297         * config.gcc: Declare score-* and crx-* obsolete.
9298
9299 2011-02-23  Jie Zhang  <jie@codesourcery.com>
9300
9301         PR rtl-optimization/47763
9302         * web.c (web_main): Ignore naked clobber when replacing register.
9303
9304 2011-02-22  Anatoly Sokolov  <aesok@post.ru>
9305
9306         * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
9307         Remove.
9308
9309 2011-02-22  Sebastian Pop  <sebastian.pop@amd.com>
9310
9311         PR doc/47848
9312         * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
9313
9314 2011-02-22  Mike Stump  <mikestump@comcast.net>
9315
9316         * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
9317         assembler.
9318         * configure: Regenerate.
9319
9320 2011-02-21  Chung-Lin Tang  <cltang@codesourcery.com>
9321
9322         PR rtl-optimization/46002
9323         * ira-color.c (update_copy_costs): Change class intersection
9324         test to reg_class_contents[] test of 'hard_regno'.
9325
9326 2011-02-21  Joseph Myers  <joseph@codesourcery.com>
9327
9328         * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
9329         than Driver option.
9330         * config/hpux11.opt (mt): Likewise.
9331         * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
9332         * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
9333         * config/vax/elf.opt (mno-asm-pic): Likewise.
9334         * config/vms/vms.opt (map, mvms-return-codes): Likewise.
9335
9336 2011-02-21  Mike Stump  <mikestump@comcast.net>
9337
9338         PR target/47822
9339         * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
9340         tree so we can get save the type.
9341         * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
9342         for CFString instead of trying to use past the end of the builtins.
9343         * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
9344         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
9345         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
9346         * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
9347         Rename to darwin_builtin_cfstring.
9348         (darwin_init_cfstring_builtins): Return the built type.
9349
9350 2011-02-21  Uros Bizjak  <ubizjak@gmail.com>
9351
9352         PR target/47840
9353         * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
9354         (_mm256_insert_epi64): Use _mm_insert_epi64.
9355
9356 2011-02-21  Anatoly Sokolov  <aesok@post.ru>
9357
9358         * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
9359         * config/stormy16/stormy16-protos.h
9360         (xstormy16_mode_dependent_address_p): Remove.
9361         * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
9362         Make static. Change return type to bool. Change argument type to
9363         const_rtx. Remove dead code.
9364         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
9365
9366 2011-02-21  Richard Guenther  <rguenther@suse.de>
9367
9368         PR lto/47820
9369         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
9370         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
9371         (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
9372         TUs context.
9373         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
9374         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
9375
9376 2011-02-20  Richard Guenther  <rguenther@suse.de>
9377
9378         PR lto/47822
9379         * tree.c (free_lang_data_in_decl): Clean builtins from
9380         the TU decl BLOCK_VARS.
9381
9382 2011-02-19  Alexandre Oliva  <aoliva@redhat.com>
9383
9384         PR debug/47620
9385         PR debug/47630
9386         * haifa-sched.c (fix_tick_ready): Skip tick computation
9387         for debug insns.
9388
9389 2011-02-19  Richard Guenther  <rguenther@suse.de>
9390
9391         PR lto/47647
9392         * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
9393         Remove lazy BLOCK_VARS streaming.
9394         (lto_input_ts_block_tree_pointers): Likewise.
9395         * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
9396
9397 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
9398
9399         * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
9400
9401 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
9402
9403         * config/i386/biarch32.h, config/i386/mach.h,
9404         config/rs6000/aix.opt, config/sh/superh64.h: Remove.
9405
9406 2011-02-19  Jakub Jelinek  <jakub@redhat.com>
9407
9408         PR target/47800
9409         * config/i386/i386.md (peephole2 for shift and plus): Use
9410         operands[1] original mode in the first insn.
9411
9412 2011-02-18  Mike Stump  <mikestump@comcast.net>
9413
9414         * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
9415
9416 2011-02-18  Jan Hubicka  <jh@suse.cz>
9417
9418         PR middle-end/47788
9419         * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
9420         to zero when the function is not inlinable at all.
9421
9422 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9423
9424         * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
9425         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
9426         pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
9427         * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
9428         * config/pa/t-pa64: Likewise.
9429         * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
9430
9431 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
9432
9433         PR driver/47787
9434         * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
9435
9436 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9437
9438         PR target/47792
9439         * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
9440
9441 2011-02-18  Anatoly Sokolov  <aesok@post.ru>
9442
9443         * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
9444         RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
9445         LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
9446         GO_IF_LEGITIMATE_ADDRESS): Remove macros.
9447         * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
9448         (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
9449         m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
9450         m32r_load_postinc_p, m32r_store_preinc_predec_p,
9451         m32r_legitimate_address_p): New functions.
9452         * config/m32r/constraints.md (constraint "S"): Don't use
9453         STORE_PREINC_PREDEC_P.
9454         (constraint "U"): Don't use LOAD_POSTINC_P.
9455
9456 2011-02-18  Chung-Lin Tang  <cltang@codesourcery.com>
9457
9458         PR rtl-optimization/46178
9459         * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
9460         compute ira_hard_regno_cover_class[].
9461
9462 2011-02-18  Richard Guenther  <rguenther@suse.de>
9463
9464         PR lto/47798
9465         * lto-streamer.h (lto_global_var_decls): Declare.
9466         * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
9467         statics for global var processing.
9468
9469 2011-02-18  Richard Guenther  <rguenther@suse.de>
9470
9471         PR tree-optimization/47737
9472         * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
9473         edge dominance check.
9474
9475 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
9476
9477         PR debug/47780
9478         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
9479         avoid invalid rtx sharing.
9480
9481 2011-02-18  Gerald Pfeifer  <gerald@pfeifer.com>
9482
9483         * doc/cpp.texi (Obsolete Features): Add background on the
9484         origin of assertions.
9485
9486 2011-02-17  Iain Sandoe  <iains@gcc.gnu.org>
9487
9488         * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
9489         objc_abi == 2.
9490         * config/darwin.c (output_objc_section_asm_op): Added support for
9491         ABI v1 and v2.
9492         (is_objc_metadata): New.
9493         (darwin_objc2_section): New.
9494         (darwin_objc1_section): New.
9495         (machopic_select_section): Added support for ABI v1 and v2.
9496         (darwin_emit_objc_zeroed): New.
9497         (darwin_output_aligned_bss): Detect objc metadata and treat it
9498         appropriately.
9499         (darwin_asm_output_aligned_decl_common): Same.
9500         (darwin_asm_output_aligned_decl_local): Same.
9501         * config/darwin-sections.def: Updated for ABI v1 and v2.
9502         * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
9503         compiling Objective-C code for the NeXT runtime, default to using
9504         ABI version 0 for 32-bit, and version 2 for 64-bit.
9505
9506 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
9507
9508         * common.opt (optimize_fast): New Variable.
9509         * opts.c (default_options_optimization): Use opts->x_optimize_fast
9510         instead of local variable ofast.
9511
9512 2011-02-17  Nicola Pero  <nicola.pero@meta-innovation.com>
9513
9514         * doc/invoke.texi (fobjc-abi-version): Documented.
9515         (fobjc-nilcheck): Documented.
9516         (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
9517         version.
9518
9519 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
9520
9521         PR driver/47390
9522         * common.opt (export-dynamic): New Driver option.
9523         * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
9524
9525 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
9526
9527         * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
9528
9529 2011-02-17  Alexandre Oliva  <aoliva@redhat.com>
9530             Jan Hubicka  <jh@suse.cz>
9531
9532         PR debug/47106
9533         PR debug/47402
9534         * cfgexpand.c (account_used_vars_for_block): Remove.
9535         (estimated_stack_frame_size): Use referenced vars.
9536         * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
9537         that were referenced in the original function.  Test src_fn
9538         rather than cfun.  Drop redundant get_var_ann.
9539         (setup_one_parameter): Drop redundant get_var_ann.
9540         (declare_return_variable): Likewise.
9541         (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
9542         (copy_arguments_for_versioning): Drop redundant get_var_ann.
9543         * ipa-inline.c (compute_inline_parameters): Do not compute
9544         disregard_inline_limits here.
9545         (compute_inlinable_for_current, pass_inlinable): New.
9546         (pass_inline_parameters): Require PROP_referenced_vars.
9547         * cgraphunit.c (cgraph_process_new_functions): Don't run
9548         compute_inline_parameters explicitly unless function is in SSA form.
9549         (cgraph_analyze_function): Set .disregard_inline_limits.
9550         * tree-sra.c (convert_callers): Compute inliner parameters
9551         only for functions already in SSA form.
9552
9553 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
9554
9555         * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
9556         -mlittle-endian-data.
9557
9558 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
9559
9560         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
9561         -mno-fpu, not -fpu and -no-fpu.
9562         * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
9563         * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
9564
9565 2011-02-17  Uros Bizjak  <ubizjak@gmail.com>
9566
9567         PR target/43653
9568         * config/i386/i386.c (ix86_secondary_reload): Handle SSE
9569         input reload with PLUS RTX.
9570
9571 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
9572
9573         * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
9574         of InverseVar(MDMX).
9575
9576 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
9577
9578         * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
9579         --m4-340.
9580
9581 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
9582
9583         * config/mn10300/mn10300.opt (mno-crt0): New.
9584
9585 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
9586
9587         * config/m68k/uclinux.opt (static-libc): New Driver option.
9588
9589 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
9590
9591         * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
9592
9593 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
9594
9595         * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
9596         %{muser-extend-enabled}.
9597
9598 2011-02-16  Richard Guenther  <rguenther@suse.de>
9599
9600         PR tree-optimization/47738
9601         * tree-ssa-loop.c (run_tree_predictive_commoning): Return
9602         the TODO from tree_predictive_commoning.
9603
9604 2011-02-15  Jeff Law  <law@redhat.com>
9605
9606         Revert
9607         2011-01-25  Jeff Law  <law@redhat.com>
9608
9609         PR rtl-optimization/37273
9610         * ira-costs.c (scan_one_insn): Detect constants living in memory and
9611         handle them like argument loads from stack slots.  Do not double
9612         count memory for memory constants and argument loads from stack slots.
9613
9614 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
9615
9616         PR middle-end/47725
9617         * combine.c (cant_combine_insn_p): Revert the last change.
9618
9619 2011-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
9620
9621         PR target/47755
9622         * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
9623         mode for vector constants.  Remove code that checks for TImode.
9624
9625 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
9626
9627         PR debug/47106
9628         PR debug/47402
9629         * cgraph.h (compute_inline_parameters): Return void.
9630         * ipa-inline.c (compute_inline_parameters): Adjust.
9631
9632 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
9633
9634         PR debug/47106
9635         PR debug/47402
9636         * tree-inline.h (estimated_stack_frame_size): Take cgraph node
9637         rather than decl.
9638         * cfgexpand.c (estimated_stack_frame_size): Likewise.
9639         * ipa-inline.c (compute_inline_parameters): Adjust.
9640
9641 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
9642
9643         PR debug/47106
9644         PR debug/47402
9645         * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
9646         Adjust all users.  Pass FN to...
9647         * tree-flow-inline.h (first_referenced_var): ... this.  Add
9648         fn argument.
9649         * ipa-struct-reorg.c: Adjust.
9650         * tree-dfa.c: Adjust.
9651         * tree-into-ssa.c: Adjust.
9652         * tree-sra.c: Adjust.
9653         * tree-ssa-alias.c: Adjust.
9654         * tree-ssa-live.c: Adjust.
9655         * tree-ssa.c: Adjust.
9656         * tree-ssanames.c: Adjust.
9657         * tree-tailcall.c: Adjust.
9658
9659 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
9660
9661         PR debug/47106
9662         PR debug/47402
9663         * tree-flow.h (referenced_var_lookup): Add fn parameter.
9664         Adjust all callers.
9665         * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
9666         * tree-flow-inline.h: Adjust.
9667         * gimple-pretty-print.c: Adjust.
9668         * tree-into-ssa.c: Adjust.
9669         * tree-ssa.c: Adjust.
9670         * cfgexpand.c: Adjust.
9671
9672 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
9673
9674         * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
9675         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
9676         (EXTRA_CONSTRAINT): Delete.
9677         * config/iq2000/constraints.md: New file.
9678         * config/iq2000/iq2000.md: Include it.
9679         (define_insn ""): Delete.
9680         (movsi_internal2, movhi_internal2, movqi_internal2): Delete
9681         unsupported constraint letters from patterns.
9682         (call_value, call_value_internal1): Likewise.
9683         (call_value_multiple_internal1): Likewise.
9684
9685 2011-02-15  Nick Clifton  <nickc@redhat.com>
9686
9687         * config/mn10300/mn10300.c: Include tm-constrs.h.
9688         (struct liw_data): New data structure describing an LIW candidate
9689         instruction.
9690         (extract_bundle): Use struct liw_data.  Allow small integer
9691         operands for some instructions.
9692         (check_liw_constraints): Use struct liw_data.  Remove swapped
9693         parameter.  Add comments describing the checks.  Fix bug when
9694         assigning the source of liw1 to the source of liw2.
9695         (liw_candidate): Delete.  Code moved into extract_bundle.
9696         (mn10300_bundle_liw): Use struct liw_data.  Check constraints
9697         before swapping.
9698         * config/mn10300/predicates.md (liw_operand): New predicate.
9699         Allows registers and small integer constants.
9700         * config/mn10300/constraints.md (O): New constraint.  Accetps
9701         integers in the range -8 to +7 inclusive.
9702         * config/mn10300/mn10300.md (movesi_internal): Add an alternative
9703         for moving a small integer into a register.  Give this alternative
9704         LIW attributes.
9705         (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
9706         (ashlsi3): Likewise, plus give LIW attributes to the alternatives
9707         using the J,K,L and M constraints,
9708         (liw): Remove SI mode on second operands to allow for HI and QI
9709         mode values.
9710         (cmp_liw, liw_cmp): Likewise.  Plus fix order of operands in the
9711         instruction.
9712
9713 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
9714
9715         PR middle-end/47725
9716         * combine.c (cant_combine_insn_p): Check zero/sign extended
9717         hard registers.
9718
9719 2011-02-15  Richard Guenther  <rguenther@suse.de>
9720
9721         PR tree-optimization/47743
9722         * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
9723         for a non-type-compatible VN lookup bail out.
9724
9725 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
9726
9727         * config/fr30/constraints.md: New file.
9728         * config/fr30/fr30.md: Include it.
9729         * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
9730         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
9731         (EXTRA_CONSTRAINT): Delete.
9732
9733 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
9734
9735         * config/frv/constraints.md: New file.
9736         * config/frv/predicates.md: Include it.
9737         * config/frv/frv.c (reg_class_from_letter): Delete.
9738         (frv_option_override): Don't initialize it.
9739         * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
9740         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
9741         (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
9742         (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
9743         (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
9744         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
9745         (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
9746         (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
9747         (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
9748         (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
9749         (REG_CLASS_FROM_CONSTRAINT): Delete.
9750
9751 2011-02-15  Jakub Jelinek  <jakub@redhat.com>
9752
9753         PR middle-end/47581
9754         * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
9755         if frame size is 0 in a leaf function.
9756
9757 2011-02-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9758
9759         PR pch/14940
9760         * config/alpha/host-osf.c: New file.
9761         * config/alpha/x-osf: New file.
9762         * config.host (alpha*-dec-osf*): Use it.
9763
9764 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
9765
9766         * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
9767         * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
9768         * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
9769         (rx_mode_dependent_address_p): ...this. Make static. Change argument
9770         type to const_rtx.
9771         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
9772
9773 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
9774
9775         * config/stormy16/constraints.md: New file.
9776         * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
9777         Use satisfies_constraint_Q and satisfies_constraint_R.
9778         * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
9779         Delete.
9780         (xstormy16_legitiamte_address_p): Declare.
9781         * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
9782         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
9783         (EXTRA_CONSTRAINT): Delete.
9784         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
9785         Un-staticize.
9786         (xstormy16_extra_constraint_p): Delete.
9787
9788 2011-02-14  Eric Botcazou  <ebotcazou@adacore.com>
9789
9790         PR tree-optimization/46494
9791         * loop-unroll.c (split_edge_and_insert): Adjust comment.
9792         * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
9793         (pass_rtl_loop_done): Add TODO_verify_flow.
9794         * fwprop.c (pass_rtl_fwprop): Likewise.
9795         * modulo-sched.c (pass_sms): Likewise.
9796         * tree-ssa-dom.c (pass_dominator): Likewise.
9797         * tree-ssa-loop-ch.c (pass_ch): Likewise.
9798         * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
9799         (pass_tree_loop_done): Likewise.
9800         * tree-ssa-pre.c (execute_pre): Likewise.
9801         * tree-ssa-reassoc.c (pass_reassoc): Likewise.
9802         * tree-ssa-sink.c (pass_sink_code): Likewise.
9803         * tree-vrp.c (pass_vrp): Likewise.
9804
9805 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
9806
9807         * config/v850/constraints.md: New file.
9808         * config/v850/v850.md: Include it.
9809         * config/v850/predicates.md (reg_or_0_operand): Use
9810         satisfies_constraint_G.
9811         (special_symbolref_operand): Use satisfies_constraint_K.
9812         * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
9813         (GO_IF_LEGITIMATE_ADDRESS): Likewise.
9814         (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
9815         (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
9816         (EXTRA_CONSTRAINT): Delete.
9817         (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
9818         (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
9819         (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
9820
9821 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
9822
9823         PR target/47696
9824         * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
9825         description.
9826
9827 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
9828
9829         * config/mcore/constraints.md: New file.
9830         * config/mcore/mcore.md: Include it.
9831         * config/mcore/mcore.c (reg_class_from_letter): Delete.
9832         * config/mcore/mcore.h (reg_class_from_letter): Delete.
9833         (REG_CLASS_FROM_LETTER): Delete.
9834         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
9835         insn_const_int_ok_for_constraint.
9836         (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
9837         (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
9838         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
9839         (EXTRA_CONSTRAINT): Delete.
9840
9841 2011-02-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9842
9843         PR ada/41929
9844         * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
9845         (IS_SIGHANDLER): Define.
9846         (sparc64_is_sighandler): New function, split off from
9847         sparc64_fallback_frame_state.
9848         (sparc_is_sighandler): New function, split off from
9849         sparc_fallback_frame_state.
9850         (sparc64_fallback_frame_state): Merge with ...
9851         (sparc_fallback_frame_state): ... this into ...
9852         (MD_FALLBACK_FRAME_STATE_FOR): ... this.
9853         Change new_cfa to long.  Remove regs_off, fpu_save_off, fpu_save.
9854         Define nframes, mctx.  Use IS_SIGHANDLER, handler_args, mctx, walk
9855         stack instead of hardcoded offsets.
9856
9857 2011-02-14  Andriy Gapon  <avg@freebsd.org>
9858
9859         PR target/45808
9860         * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
9861
9862 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9863
9864         * configure: Regenerate.
9865
9866 2011-02-12  Joseph Myers  <joseph@codesourcery.com>
9867
9868         PR driver/45731
9869         * gcc.c (asm_options): Correct spec matching --target-help.
9870
9871 2011-02-12  Martin Jambor  <mjambor@suse.cz>
9872
9873         * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
9874         to gimple call error.
9875
9876 2011-02-12  Mike Stump  <mikestump@comcast.net>
9877
9878         * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
9879         comments in backslash regions.
9880
9881 2011-02-12  Mike Stump  <mikestump@comcast.net>
9882             Jakub Jelinek  <jakub@redhat.com>
9883             Iain Sandoe  <iains@gcc.gnu.org>
9884
9885         PR target/47324
9886         * dwarf2out.c (output_cfa_loc): When required, apply the
9887         DWARF2_FRAME_REG_OUT macro to adjust register numbers.
9888         (output_loc_sequence): Likewise.
9889         (output_loc_operands_raw): Likewise.
9890         (output_loc_sequence_raw): Likewise.
9891         (output_cfa_loc): Likewise.
9892         (output_loc_list): Suppress register number adjustment when
9893         calling output_loc_sequence()
9894         (output_die): Likewise.
9895
9896 2011-02-12  Anatoly Sokolov  <aesok@post.ru>
9897
9898         * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
9899         Remove macros.
9900         * config/xtensa/xtensa.c (xtensa_register_move_cost,
9901         xtensa_memory_move_cost): New functions.
9902         (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
9903
9904 2011-02-12  Alexandre Oliva  <aoliva@redhat.com>
9905
9906         PR lto/47225
9907         * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
9908         in the current directory.
9909         * configure: Rebuilt.
9910
9911 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
9912
9913         * config/darwin.c (darwin_override_options): Add a hunk missed
9914         from the commit of r168571.  Trim comment line lengths and
9915         correct indents of the preceding block.
9916
9917 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
9918
9919         * gcc.c (driver_handle_option): Concatenate the argument to -F with
9920         the switch.
9921
9922 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
9923
9924         * common.opt (nostartfiles): New Driver option.
9925
9926 2011-02-11  Xinliang David Li  <davidxl@google.com>
9927
9928         PR tree-optimization/47707
9929         * tree-chrec.c (convert_affine_scev): Keep type precision.
9930
9931 2011-02-11  Eric Botcazou  <ebotcazou@adacore.com>
9932
9933         PR tree-optimization/47420
9934         * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
9935
9936 2011-02-11  Pat Haugen  <pthaugen@us.ibm.com>
9937
9938         PR rtl-optimization/47614
9939         * rtl.h (check_for_inc_dec): Declare.
9940         * dse.c (check_for_inc_dec): Externalize...
9941         * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
9942         (reload_cse_simplify_operands): Don't simplify opnds with side effects.
9943
9944 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
9945
9946         PR driver/47678
9947         * gcc.c (main): Do not compile inputs if there were errors in
9948         option handling.
9949         * opts-common.c (read_cmdline_option): Check for wrong language
9950         after other error checks.
9951
9952 2011-02-11  Nathan Froyd  <froydnj@codesourcery.com>
9953
9954         * cgraph.c: Fix comment typos.
9955         * cgraph.h: Likewise.
9956         * cgraphunit.c: Likewise.
9957         * ipa-cp.c: Likewise.
9958         * ipa-inline.c: Likewise.
9959         * ipa-prop.c: Likewise.
9960         * ipa-pure-const.c: Likewise.
9961         * ipa-ref.c: Likewise.
9962         * ipa-reference.c: Likewise.
9963
9964 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
9965
9966         PR debug/47684
9967         * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
9968
9969 2011-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9970
9971         PR testsuite/47400
9972         * doc/sourcebuild.texi (Require Support): Document
9973         dg-require-ascii-locale.
9974
9975 2011-02-11  Mingjie Xing  <mingjie.xing@gmail.com>
9976
9977         * doc/lto.texi (Write summary): Fix missing parentheses.
9978
9979 2011-02-10  DJ Delorie  <dj@redhat.com>
9980
9981         * config/m32c/m32c.c (m32c_option_override): Disable
9982         -fcombine-stack-adjustments until flag value tracking and compare
9983         optimization can be rewritten.
9984
9985 2011-02-10  Peter Bergner  <bergner@vnet.ibm.com>
9986
9987         * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
9988         PROCESSOR_POWER7.
9989         (PROCESSOR_DEFAULT64): Likewise.
9990
9991 2011-02-10  Richard Henderson  <rth@redhat.com>
9992
9993         * config/rx/predicates.md (rx_zs_comparison_operator): Revert
9994         change from 2011-02-03.
9995         * config/rx/rx.c (flags_from_code): Likewise.
9996         (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
9997         is valid, n/pz otherwise.
9998         (rx_select_cc_mode): Return CCmode if Y is not zero.
9999
10000 2011-02-10  Richard Guenther  <rguenther@suse.de>
10001
10002         * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
10003
10004 2011-02-10  Richard Guenther  <rguenther@suse.de>
10005
10006         PR tree-optimization/47677
10007         * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
10008
10009 2011-02-10  Jakub Jelinek  <jakub@redhat.com>
10010
10011         PR target/47665
10012         * combine.c (make_compound_operation): Only change shifts into
10013         multiplication for SCALAR_INT_MODE_P.
10014
10015 2011-02-10  Jie Zhang  <jie@codesourcery.com>
10016
10017         PR testsuite/47622
10018         Revert
10019         2011-02-05  Jie Zhang  <jie@codesourcery.com>
10020         PR debug/42631
10021         * web.c (entry_register): Don't clobber the number of the
10022         first uninitialized reference in used[].
10023
10024 2011-02-09  Richard Guenther  <rguenther@suse.de>
10025
10026         PR tree-optimization/47664
10027         * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
10028         all edges again.
10029
10030 2011-02-09  David Edelsohn  <dje.gcc@gmail.com>
10031
10032         PR target/46481
10033         PR target/47032
10034         * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
10035         PROCESSOR_POWER7.
10036         (PROCESSOR_DEFAULT64): Same.
10037         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
10038
10039 2011-02-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10040
10041         * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
10042
10043 2011-02-09  Martin Jambor  <mjambor@suse.cz>
10044
10045         PR middle-end/45505
10046         * tree-sra.c (struct access): New flags grp_scalar_read and
10047         grp_scalar_write.  Changed description of assignment read and write
10048         flags.
10049         (dump_access): Dump new flags, reorder all of them.
10050         (sort_and_splice_var_accesses): Set the new flag accordingly, use them
10051         to detect multiple scalar reads.
10052         (analyze_access_subtree): Use the new scalar read write flags instead
10053         of the old flags.  Adjusted comments.
10054
10055 2011-02-08  DJ Delorie  <dj@redhat.com>
10056
10057         PR target/47548
10058         * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
10059         patterns.
10060
10061 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
10062
10063         * config/m68k/uclinux.opt: New.
10064         * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
10065
10066 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
10067
10068         * config/cris/elf.opt (sim): New Driver option.
10069
10070 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
10071
10072         * config/xtensa/elf.opt: New.
10073         * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
10074
10075 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
10076
10077         * config/vax/elf.opt: New.
10078         * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
10079
10080 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
10081
10082         * config/rs6000/aix64.opt (posix, pthread): New Driver options.
10083
10084 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
10085
10086         * config/gnu-user.opt: New.
10087         * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
10088         *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
10089         *-*-uclinux*): Use gnu-user.opt.
10090
10091 2011-02-08  Thomas Schwinge  <thomas@schwinge.name>
10092
10093         * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
10094         * config/i386/gnu.h (CPP_SPEC): Likewise.
10095
10096 2011-02-08  Ian Lance Taylor  <iant@google.com>
10097
10098         * common.opt (fcx-limited-range): Add SetByCombined flag.
10099         (ffinite-math-only, fmath-errno, frounding-math): Likewise.
10100         (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
10101         (fassociative-math, freciprocal-math): Likewise.
10102         (funsafe-math-optimizations): Likewise.
10103         * opth-gen.awk: Handle SetByCombined.
10104         * optc-gen.awk: Likewise.
10105         * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
10106         (set_unsafe_math_optimizations_flags): Likewise.
10107         * doc/options.texi (Option properties): Document SetByCombined.
10108
10109 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
10110
10111         * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
10112         i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
10113         m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
10114         m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
10115         sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
10116
10117 2011-02-08  Sebastian Pop  <sebastian.pop@amd.com>
10118
10119         PR tree-optimization/46834
10120         PR tree-optimization/46994
10121         PR tree-optimization/46995
10122         * graphite-sese-to-poly.c (used_outside_reduction): New.
10123         (detect_commutative_reduction): Call used_outside_reduction.
10124         (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
10125         translate_scalar_reduction_to_array only when at least one
10126         loop-phi/close-phi tuple has been detected.
10127
10128 2011-02-08  Richard Guenther  <rguenther@suse.de>
10129
10130         PR middle-end/47639
10131         * tree-vect-generic.c (expand_vector_operations_1): Update
10132         stmts here ...
10133         (expand_vector_operations): ... not here.  Cleanup EH info
10134         and the CFG if required.
10135
10136 2011-02-08  Richard Guenther  <rguenther@suse.de>
10137
10138         PR tree-optimization/47641
10139         * tree-ssa.c (execute_update_addresses_taken): For asm outputs
10140         require type compatibility.
10141
10142 2011-02-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10143
10144         * gimple-low.c (lower_function_body): Don't remove the location of
10145         the return statement here.
10146         (lower_gimple_return): Do it here instead but only if the return
10147         statement is actually used twice.
10148
10149 2011-02-08  Richard Guenther  <rguenther@suse.de>
10150
10151         PR tree-optimization/47632
10152         * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
10153         unused up_to_stmt parameter, return whether cfg-cleanup is
10154         necessary, remove EH info properly.
10155         (forward_propagate_into_gimple_cond): Adjust caller.
10156         (forward_propagate_into_cond): Likewise.
10157         (forward_propagate_comparison): Likewise.
10158         (tree_ssa_forward_propagate_single_use_vars): Make
10159         forward_propagate_comparison case similar to the two others.
10160
10161 2011-02-08  Nick Clifton  <nickc@redhat.com>
10162
10163         * config/mn10300/mn10300.opt (mliw): New command line option.
10164         * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
10165         (liw_bundling): New automaton.
10166         (liw): New attribute.
10167         (liw_op): New attribute.
10168         (liw_op1, liw_op2, liw_both, liw_either): New reservations.
10169         (movsi_internal): Add LIW attributes.
10170         (andsi3): Likewise.
10171         (iorsi3): Likewise.
10172         (xorsi3): Likewise.
10173         (addsi3): Separate register and immediate alternatives.
10174         Add LIW attributes.
10175         (subsi3): Likewise.
10176         (cmpsi): Likewise.
10177         (aslsi3): Likewise.
10178         (lshrsi3): Likewise.
10179         (ashrsi3): Likewise.
10180         (liw): New pattern.
10181         * config/mn10300/mn10300.c (liw_op_names): New
10182         (mn10300_print_operand): Handle 'W' operand descriptor.
10183         (extract_bundle): New function.
10184         (check_liw_constraints): New function.
10185         (liw_candidate): New function.
10186         (mn10300_bundle_liw): New function.
10187         (mn10300_reorg): New function.
10188         (TARGET_MACHINE_DEPENDENT_REORG): Define.
10189         (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
10190         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
10191         __LIW__ or __NO_LIW__.
10192         * doc/invoke.texi: Describe the -mliw command line option.
10193
10194 2011-02-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10195
10196         * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
10197         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
10198         pthread_mutex_unlock): Remove.
10199         * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
10200         * config/pa/t-pa64: Likewise.
10201         * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
10202         shared libc if not linking against libpthread.
10203         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
10204
10205 2011-02-07  Iain Sandoe  <iains@gcc.gnu.org>
10206
10207         PR target/47558
10208         * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
10209         on 10.6 and later to ensure that we always use the unwinder from
10210         the system.  Only add -no_compact_unwind when tarteting darwin
10211         10.6 or later.
10212
10213 2011-02-07  Steve Ellcey  <sje@cup.hp.com>
10214
10215         PR target/46997
10216         * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
10217         (vec_interleave_lowv2sf): Ditto.
10218         (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
10219         (vec_extract_oddv2sf): Ditto.
10220
10221 2011-02-07  Mike Stump  <mikestump@comcast.net>
10222
10223         PR target/42333
10224         Add __ieee_divdc3 entry point.
10225         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
10226         entry point.
10227         (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
10228         * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
10229         * config/darwin.c (darwin_rename_builtins): Add.
10230         * config/darwin-protos.h (darwin_rename_builtins): Add.
10231
10232 2011-02-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
10233
10234         PR target/47636
10235         * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
10236         for the condition.
10237
10238 2011-02-07  Mike Stump  <mikestump@comcast.net>
10239
10240         * config/darwin.opt (mmacosx-version-min): Update default OS version.
10241
10242 2011-02-07  Denis Chertykov  <chertykov@gmail.com>
10243
10244         PR target/47534
10245         * config/avr/libgcc.S (exit): Move .endfunc
10246
10247 2011-02-07  Richard Guenther  <rguenther@suse.de>
10248
10249         PR tree-optimization/47615
10250         * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
10251         * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
10252         (run_scc_vn): Initialize it.
10253         (visit_reference_op_load): Use it.
10254         * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
10255
10256 2011-02-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10257
10258         * config/spu/spu.c (spu_init_libfuncs): Install SImode and
10259         DImode trapping arithmetic libfuncs.
10260
10261 2011-02-07  Richard Guenther  <rguenther@suse.de>
10262
10263         PR tree-optimization/47621
10264         * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
10265         two duplicates ...
10266         (execute_update_addresses_taken): ... here.  Make it more
10267         conservative in what we accept.
10268
10269 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
10270
10271         * config/sparc/freebsd.h (ASM_SPEC): Define.
10272         * config/sparc/vxworks.h (ASM_SPEC): Define.
10273
10274 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
10275
10276         * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
10277
10278 2011-02-06  Steven Bosscher  <steven@gcc.gnu.org>
10279
10280         * doc/invoke.texi: Remove reference to compiler internals from
10281         user documentation.
10282
10283         * reg-notes.def: Remove REG_VALUE_PROFILE.
10284         * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
10285
10286 2011-02-05  Jakub Jelinek  <jakub@redhat.com>
10287
10288         PR middle-end/47610
10289         * varasm.c (default_section_type_flags): If decl is NULL,
10290         and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
10291
10292 2011-02-05  Jie Zhang  <jie@codesourcery.com>
10293
10294         PR debug/42631
10295         * web.c (entry_register): Don't clobber the number of the
10296         first uninitialized reference in used[].
10297
10298 2011-02-04  Sebastian Pop  <sebastian.pop@amd.com>
10299
10300         PR tree-optimization/46194
10301         * tree-data-ref.c (analyze_miv_subscript): Remove comment.
10302         (build_classic_dist_vector_1): Do not represent classic distance
10303         vectors when the access functions are variating in different loops.
10304
10305 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
10306
10307         * config/mips/iris6.opt: New.
10308         * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
10309
10310 2011-02-04  Richard Henderson  <rth@redhat.com>
10311             Steve Ellcey  <sje@cup.hp.com>
10312
10313         PR target/46997
10314         * config/ia64/predicates.md (mux1_brcst_element): New.
10315         * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
10316         * config/ia64/ia64.c (ia64_unpack_assemble): New.
10317         (ia64_unpack_sign): New.
10318         (ia64_expand_unpack): Rewrite using new routines.
10319         (ia64_expand_widen_sum): Ditto.
10320         (ia64_expand_dot_prod_v8qi): Ditto.
10321         * config/ia64/vect.md (mulv8qi3): Rewrite to use new
10322         routines, add endian check.
10323         (pmpy2_even): Rename from pmpy2_r, add endian check.
10324         (pmpy2_odd): Rename from pmpy2_l, add endian check.
10325         (vec_widen_smult_lo_v4hi): Rewrite using new routines.
10326         (vec_widen_smult_hi_v4hi): Ditto.
10327         (vec_widen_umult_lo_v4hi): Ditto.
10328         (vec_widen_umult_hi_v4hi): Ditto.
10329         (mulv2si3): Change endian checks.
10330         (sdot_prodv4hi): Rewrite with new calls.
10331         (udot_prodv4hi): New.
10332         (vec_pack_ssat_v4hi): Add endian check.
10333         (vec_pack_usat_v4hi): Ditto.
10334         (vec_pack_ssat_v2si): Ditto.
10335         (max1_even): Rename from max1_r, add endian check.
10336         (max1_odd): Rename from max1_l, add endian check.
10337         (*mux1_rev): Format change.
10338         (*mux1_mix): Ditto.
10339         (*mux1_shuf): Ditto.
10340         (*mux1_alt): Ditto.
10341         (*mux1_brcst_v8qi): Use new predicate.
10342         (vec_extract_evenv8qi): Remove endian check.
10343         (vec_extract_oddv8qi): Ditto.
10344         (vec_interleave_lowv4hi): Format change.
10345         (vec_interleave_highv4hi): Ditto.
10346         (mix2_even): Rename from mix2_r, add endian check.
10347         (mix2_odd): Rename from mux2_l, add endian check.
10348         (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
10349         (vec_extract_evenodd_helper): Format change.
10350         (vec_extract_evenv4hi): Remove endian check.
10351         (vec_extract_oddv4hi): Remove endian check.
10352         (vec_interleave_lowv2si): Format change.
10353         (vec_interleave_highv2si): Format change.
10354         (vec_initv2si): Remove endian check.
10355         (vecinit_v2si): Add endian check.
10356         (reduc_splus_v2sf): Add endian check.
10357         (reduc_smax_v2sf): Ditto.
10358         (reduc_smin_v2sf): Ditto.
10359         (vec_initv2sf): Remove endian check.
10360         (fpack): Add endian check.
10361         (fswap): Add endian check.
10362         (vec_interleave_highv2sf): Add endian check.
10363         (vec_interleave_lowv2sf): Add endian check.
10364         (fmix_lr): Add endian check.
10365         (vec_setv2sf): Format change.
10366         (*vec_extractv2sf_0_be): Use shift to extract operand.
10367         (*vec_extractv2sf_1_be): New.
10368         (vec_pack_trunc_v4hi): Add endian check.
10369         (vec_pack_trunc_v2si): Format change.
10370
10371 2011-02-04  Jakub Jelinek  <jakub@redhat.com>
10372
10373         PR inline-asm/23200
10374         * tree-ssa-ter.c (is_replaceable_p): Add TER argument.  Don't
10375         do bb, locus and block comparison and disallow loads if it is not set.
10376         (stmt_is_replaceable_p): New function.
10377         (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
10378         callers.
10379         * expr.c (expand_expr_real_1) <case SSA_NAME>: If
10380         get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
10381         SSA_NAME_DEF_STMT.
10382         * tree-flow.h (stmt_is_replaceable_p): New prototype.
10383
10384 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
10385
10386         * config/rs6000/xilinx.opt: New.
10387         * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
10388
10389 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
10390
10391         * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
10392
10393 2011-02-03  Anatoly Sokolov  <aesok@post.ru>
10394
10395         * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
10396         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
10397         * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
10398         secondary_reload_info, xtensa_secondary_reload): Remove.
10399         * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
10400         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
10401         (xtensa_preferred_reload_class): Make static. Change return and
10402         'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
10403         Use CONST_DOUBLE_P predicate.
10404         (xtensa_preferred_output_reload_class): New function.
10405         (xtensa_secondary_reload): Make static.
10406
10407 2011-02-03  Joseph Myers  <joseph@codesourcery.com>
10408
10409         * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
10410         Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
10411         Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
10412
10413 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
10414
10415         PR middle-end/31490
10416         * output.h (SECTION_RELRO): Define.
10417         (SECTION_MACH_DEP): Adjust.
10418         (get_variable_section): New prototype.
10419         * varpool.c (varpool_finalize_named_section_flags): New function.
10420         (varpool_assemble_pending_decls): Call it.
10421         * cgraph.h (varpool_finalize_named_section_flags): New prototype.
10422         * cgraphunit.c (cgraph_output_in_order): Call
10423         varpool_finalize_named_section_flags.
10424         * varasm.c (get_section): Allow section flags conflicts between
10425         relro and read-only sections if the section hasn't been declared yet.
10426         Set SECTION_OVERRIDE after diagnosing section type conflict.
10427         (get_variable_section): No longer static.
10428         (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
10429         readonly sections that need relocations.
10430         (decl_readonly_section_1): New function.
10431         (decl_readonly_section): Use it.
10432
10433         Revert:
10434         2010-11-17  Dinar Temirbulatov  <dtemirbulatov@gmail.com>
10435                     Steve Ellcey  <sje@cup.hp.com>
10436
10437         PR middle-end/31490
10438         * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
10439         if section attribute used.
10440
10441 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
10442
10443         * config/darwin.h (SECTION_NO_ANCHOR): Remove.
10444         * config/darwin.c (SECTION_NO_ANCHOR): Define.
10445         (darwin_init_sections): Remove assertion.
10446
10447 2011-02-03  Nick Clifton  <nickc@redhat.com>
10448
10449         * config/rx/predicates.md (rx_zs_comparison_operator): Remove
10450         lt and ge.
10451         * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
10452         * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
10453         instead of "n" and "pz".
10454         (flags_from_code): LT and GE tests need CC_FLAG_O as well as
10455         CC_FLAG_S.
10456
10457 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
10458
10459         PR target/47312
10460         * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
10461         fma, expand FMA_EXPR as fma{,f,l} call.
10462
10463         PR lto/47274
10464         * lto-streamer-out.c (write_symbol): When writing kind and visibility,
10465         copy them into a unsigned char variable and pass address of it to
10466         lto_output_data_stream.
10467
10468         PR target/47564
10469         * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
10470         around backend_init_target and lang_dependent_init_target calls.
10471         * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
10472         (verify_cgraph_node): Don't call set_cfun here.  Use
10473         cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
10474         Set error_found for incorrectly represented calls to thunks.
10475
10476 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
10477
10478         PR debug/43092
10479         PR rtl-optimization/43494
10480         * rtl.h (for_each_inc_dec_fn): New type.
10481         (for_each_inc_dec): Declare.
10482         * rtlanal.c (struct for_each_inc_dec_ops): New type.
10483         (for_each_inc_dec_find_inc_dec): New fn.
10484         (for_each_inc_dec_find_mem): New fn.
10485         (for_each_inc_dec): New fn.
10486         * dse.c (struct insn_size): Remove.
10487         (replace_inc_dec, replace_inc_dec_mem): Remove.
10488         (emit_inc_dec_insn_before): New fn.
10489         (check_for_inc_dec): Use it, along with for_each_inc_dec.
10490         (canon_address): Pass mem modes to cselib_lookup.
10491         * cselib.h (cselib_lookup): Add memmode argument.  Adjust callers.
10492         (cselib_lookup_from_insn): Likewise.
10493         (cselib_subst_to_values): Likewise.
10494         * cselib.c (find_slot_memmode): New var.
10495         (cselib_find_slot): New fn.  Use it instead of
10496         htab_find_slot_with_hash everywhere.
10497         (entry_and_rtx_equal_p): Use find_slot_memmode.
10498         (autoinc_split): New fn.
10499         (rtx_equal_for_cselib_p): Rename and implement in terms of...
10500         (rtx_equal_for_cselib_1): ... this.  Take memmode, pass it on.
10501         Deal with autoinc.  Special-case recursion into MEMs.
10502         (cselib_hash_rtx): Likewise.
10503         (cselib_lookup_mem): Infer pmode from address mode.  Distinguish
10504         address and MEM modes.
10505         (cselib_subst_to_values): Add memmode, pass it on.
10506         Deal with autoinc.
10507         (cselib_lookup): Add memmode argument, pass it on.
10508         (cselib_lookup_from_insn): Add memmode.
10509         (cselib_invalidate_rtx): Discard obsolete push_operand handling.
10510         (struct cselib_record_autoinc_data): New.
10511         (cselib_record_autoinc_cb): New fn.
10512         (cselib_record_sets): Use it, along with for_each_inc_dec.  Pass MEM
10513         mode to cselib_lookup.  Reset autoinced REGs here instead of...
10514         (cselib_process_insn): ... here.
10515         * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
10516         to cselib_lookup.
10517         (add_uses): Likewise, also to cselib_subst_to_values.
10518         (add_stores): Likewise.
10519         * sched-deps.c  (add_insn_mem_dependence): Pass mode to
10520         cselib_subst_to_values.
10521         (sched_analyze_1, sched_analyze_2): Likewise.  Adjusted.
10522         * gcse.c (do_local_cprop): Adjusted.
10523         * postreload.c (reload_cse_simplify_set): Adjusted.
10524         (reload_cse_simplify_operands): Adjusted.
10525         * sel-sched-dump (debug_mem_addr_value): Pass mode.
10526
10527 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
10528
10529         PR tree-optimization/45122
10530         * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
10531         unsafe assumptions when there's more than one loop exit.
10532
10533 2011-02-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
10534
10535         PR target/47272
10536         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
10537         Document using vector double with the load/store builtins, and
10538         that the load/store builtins always use Altivec instructions.
10539
10540         * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
10541         to use altivec memory instructions, even on VSX.
10542         (vector_altivec_store_<mode>): Ditto.
10543
10544         * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
10545         function.
10546
10547         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
10548         V2DF, V2DI support to load/store overloaded builtins.
10549
10550         * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
10551         altivec load/store builtins for V2DF/V2DI types.
10552
10553         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
10554         set avoid indexed addresses on power6 if -maltivec.
10555         (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
10556         vector_altivec_load/vector_altivec_store builtins.
10557         (altivec_expand_st_builtin): Ditto.
10558         (altivec_expand_builtin): Add VSX memory builtins.
10559         (rs6000_init_builtins): Add V2DI types to internal types.
10560         (altivec_init_builtins): Add support for V2DF/V2DI altivec
10561         load/store builtins.
10562         (rs6000_address_for_altivec): Insure memory address is appropriate
10563         for Altivec.
10564
10565         * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
10566         vec_vsx_ld and vec_vsx_st.
10567         (vsx_store_<mode>): Ditto.
10568
10569         * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
10570         variables to hold long long types for VSX vector memory builtins.
10571         (RS6000_BTI_unsigned_long_long): Ditto.
10572         (long_long_integer_type_internal_node): Ditti.
10573         (long_long_unsigned_type_internal_node): Ditti.
10574
10575         * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
10576         (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
10577         (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
10578
10579         * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
10580         short cuts.
10581         (vec_vsx_st): Ditto.
10582
10583 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
10584
10585         * config/pa/pa-hpux10.opt: New.
10586         * config/hpux11.opt (pthread): New Driver option.
10587         * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
10588         * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
10589
10590 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
10591
10592         * config/ia64/vms.opt: New.
10593         * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
10594
10595 2011-02-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
10596
10597         PR target/47580
10598         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
10599         gpc_reg_operand instead of vsx_register_operand to match rs6000.md
10600         generator functions.
10601         (vsx_floatuns<VSi><mode>2): Ditto.
10602         (vsx_fix_trunc<mode><VSi>2): Ditto.
10603         (vsx_fixuns_trunc<mode><VSi>2): Ditto.
10604
10605 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
10606
10607         * config/i386/djgpp.opt (posix): New Driver option.
10608
10609 2011-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
10610
10611         * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
10612         Move to the unsupported targets list.
10613
10614 2011-02-02  Peter Bergner  <bergner@vnet.ibm.com>
10615
10616         PR rtl-optimization/47525
10617         * df-scan.c: Update copyright years.
10618         (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
10619         and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
10620
10621 2011-02-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10622
10623         * config/i386/sysv4.h (TARGET_VERSION): Remove.
10624         (SUBTARGET_RETURN_IN_MEMORY): Remove.
10625         (ASM_OUTPUT_ASCII): Remove.
10626         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
10627
10628 2011-02-02  Jeff Law  <law@redhat.com>
10629
10630         PR middle-end/47543
10631         * reload.c (find_reloads_address): Handle reg+d address where both
10632         components are invalid by reloading the entire address.
10633
10634 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
10635             Richard Guenther  <rguenther@suse.de>
10636
10637         PR tree-optimization/40979
10638         PR bootstrap/47044
10639         * passes.c (init_optimization_passes): After LIM call copy_prop
10640         and DCE to clean up.
10641         * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
10642
10643 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
10644
10645         PR tree-optimization/47576
10646         PR tree-optimization/47555
10647         * doc/invoke.texi (scev-max-expr-complexity): Documented.
10648         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
10649         (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
10650         * tree-scalar-evolution.c (follow_ssa_edge): Use
10651         PARAM_SCEV_MAX_EXPR_COMPLEXITY.
10652
10653 2011-02-02  Richard Guenther  <rguenther@suse.de>
10654
10655         PR tree-optimization/47566
10656         * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
10657
10658 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
10659
10660         PR debug/47106
10661         PR debug/47402
10662         * tree-inline.c (declare_return_variable): Remove unused caller
10663         variable.
10664
10665         PR debug/47106
10666         PR debug/47402
10667         * tree-flow-inline.h (clear_is_used, is_used_p): New.
10668         * cfgexpand.c (account_used_vars_for_block): Use them.
10669         * tree-nrv.c (tree_nrv): Likewise.
10670         * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
10671         (dump_scope_block): Likewise.
10672         (remove_unused_locals): Likewise.
10673
10674         PR debug/47106
10675         PR debug/47402
10676         * tree-inline.c (declare_return_variable): Add result decl to
10677         local decls only once.
10678         * gimple-low.c (record_vars_into): Mark newly-created variables
10679         as referenced.
10680
10681 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
10682
10683         PR debug/47498
10684         PR debug/47501
10685         PR debug/45136
10686         PR debug/45130
10687         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
10688         debug insns.
10689         (no_real_insns_p, schedule_block, set_priorities): Drop special
10690         treatment of boundary debug insns.
10691         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
10692         * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
10693         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
10694         (BOUNDARY_DEBUG_INSN_P): Likewise.
10695         (SCHEDULE_DEBUG_INSN_P): Likewise.
10696         * sched-rgn.c (init_ready_list): Drop special treatment of
10697         boundary debug insns.
10698         * final.c (rest_of_clean_state): Clear notes' BB.
10699
10700 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
10701
10702         * config/openbsd.opt (assert=): New Driver option.
10703
10704 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
10705
10706         * config/i386/nto.opt: New.
10707         * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
10708
10709 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
10710
10711         * config/i386/netware.opt: New.
10712         * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
10713
10714 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
10715
10716         * config/interix.opt (posix): New Driver option.
10717
10718 2011-02-01  DJ Delorie  <dj@redhat.com>
10719
10720         * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
10721
10722         * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
10723         class for A0/A1.
10724
10725 2011-02-01  Sebastian Pop  <sebastian.pop@amd.com>
10726
10727         PR tree-optimization/47561
10728         * toplev.c (process_options): Print the Graphite flags.  Add
10729         flag_loop_flatten to the list of options requiring Graphite.
10730
10731 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
10732
10733         * config/i386/cygming.opt (posix): New Driver option.
10734
10735 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
10736
10737         * config/arm/vxworks.opt: New.
10738         * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
10739
10740 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
10741
10742         * config/alpha/elf.opt: New.
10743         * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
10744         alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
10745
10746 2011-02-01  Richard Guenther  <rguenther@suse.de>
10747
10748         PR tree-optimization/47559
10749         * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
10750         store-motion on references that can throw.
10751
10752 2011-02-01  Bernd Schmidt  <bernds@codesourcery.com>
10753
10754         * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
10755         * tree-pass.h (TDF_CSELIB): New macro.
10756         * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
10757         cselib_lookup): Check for it rather than for TDF_DETAILS.
10758
10759 2011-02-01  H.J. Lu  <hongjiu.lu@intel.com>
10760
10761         PR driver/47547
10762         * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
10763         is HOST_BIT_BUCKET.
10764
10765         * opts.c (finish_options): Don't add x_aux_base_name if it is
10766         HOST_BIT_BUCKET.
10767
10768 2011-02-01  Richard Guenther  <rguenther@suse.de>
10769
10770         PR tree-optimization/47555
10771         Revert
10772         2010-07-15  Sebastian Pop  <sebastian.pop@amd.com>
10773
10774         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
10775
10776 2011-02-01  Sebastien Bourdeauducq  <sebastien@milkymist.org>
10777
10778         PR gcc/46692
10779         * config/lm32/t-lm32: Add multilib for all CPU options.
10780
10781 2011-02-01  Richard Guenther  <rguenther@suse.de>
10782
10783         PR tree-optimization/47541
10784         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
10785         sure to have a field at offset zero.
10786
10787 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
10788
10789         * config/arc/arc.opt (EB, EL): New Driver options.
10790
10791 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
10792
10793         * config/alpha/osf5.opt: New.
10794         * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
10795
10796 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
10797
10798         * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
10799
10800 2011-01-31  Sebastian Pop  <sebastian.pop@amd.com>
10801
10802         * common.opt (ftree-loop-linear): Use Alias to make it an alias of
10803         -floop-interchange.
10804         * invoke.texi (-ftree-loop-linear): Make it clear that this flag
10805         is an alias of -floop-interchange and that it requires the
10806         Graphite infrastructure.
10807         * tree-ssa-loop.c (gate_graphite_transforms): Do not set
10808         flag_loop_interchange based on the value of flag_tree_loop_linear.
10809
10810 2011-01-31  Jakub Jelinek  <jakub@redhat.com>
10811             Richard Guenther  <rguenther@suse.de>
10812
10813         PR tree-optimization/47538
10814         * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
10815         type instead of r1type, except for comparisons.  For right
10816         shifts and comparisons punt if there are mismatches in
10817         sizetype vs. non-sizetype types.
10818
10819 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10820
10821         * doc/sourcebuild.texi (Effective-Target Keywords): Document
10822         avx_runtime.
10823
10824 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10825
10826         * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
10827         version number.
10828         * configure: Regenerate.
10829
10830 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10831
10832         * configure.ac (gcc_cv_ld_static_option): Define.
10833         (gcc_cv_ld_dynamic_option): Define.
10834         (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
10835         instead.
10836         (HAVE_LD_STATIC_DYNAMIC): Update message.
10837         (LD_STATIC_OPTION): Define.
10838         (LD_DYNAMIC_OPTION): Define.
10839         * configure: Regenerate.
10840         * config.in: Regenerate.
10841         * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
10842         HAVE_LD_STATIC_DYNAMIC]: Use them.
10843
10844 2011-01-31  Nick Clifton  <nickc@redhat.com>
10845
10846         * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
10847         registers inside interrupt handlers if the handler is not a leaf
10848         function.
10849
10850 2011-01-31  Nick Clifton  <nickc@redhat.com>
10851
10852         * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
10853         reg_renumber returning an INVALID_REGNUM.
10854
10855 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
10856
10857         PR libgcj/44341
10858         * doc/install.texi: Document host options discarded when cross
10859         configuring target libraries.
10860
10861 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
10862
10863         Reverted:
10864         2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
10865         PR debug/45136
10866         PR debug/45130
10867         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
10868         debug insns.
10869         (no_real_insns_p, schedule_block, set_priorities): Drop special
10870         treatment of boundary debug insns.
10871         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
10872         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
10873         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
10874         (BOUNDARY_DEBUG_INSN_P): Likewise.
10875         (SCHEDULE_DEBUG_INSN_P): Likewise.
10876         * sched-rgn.c (init_ready_list): Drop special treatment of
10877         boundary debug insns.
10878         * final.c (rest_of_clean-state): Clear notes' BB.
10879
10880 2011-01-31  Alan Modra  <amodra@gmail.com>
10881
10882         * config/rs6000/rs6000.c (print_operand): Rearrange addends in
10883         toc relative expressions as we do in print_operand_address.
10884
10885 2011-01-30  Kazu Hirata  <kazu@codesourcery.com>
10886
10887         * doc/extend.texi: Follow spelling conventions.
10888         * doc/invoke.texi: Fix a typo.
10889
10890 2011-01-30  Joseph Myers  <joseph@codesourcery.com>
10891
10892         * config/hpux11.opt: New.
10893         * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
10894         ia64*-*-hpux*): Use hpux11.opt.
10895
10896 2011-01-30  Jonathan Yong  <jon_y@users.sourceforge.net>
10897
10898         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
10899         to tmake_file.
10900
10901 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
10902
10903         * doc/install.texi (hppa-hp-hpux10): Remove references to HP
10904         support sites.
10905
10906 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
10907
10908         * doc/install.texi (Binaries): Remove outdated reference for
10909         Motorola 68HC11/68HC12 downloads.
10910
10911 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
10912
10913         * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
10914         Drepper's paper.
10915
10916 2011-01-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
10917
10918         PR bootstrap/47147
10919         * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
10920         used by NetBSD.
10921
10922 2011-01-28  Ahmad Sharif  <asharif@google.com>
10923
10924         * value-prof.c (check_counter): Corrected error message.
10925
10926 2011-01-29  Jie Zhang  <jie@codesourcery.com>
10927
10928         * config/arm/arm.c (arm_legitimize_reload_address): New.
10929         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
10930         arm_legitimize_reload_address.
10931         * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
10932
10933 2011-01-28  Ian Lance Taylor  <iant@google.com>
10934
10935         * godump.c (go_define): Ignore macros whose definitions include
10936         two adjacent operands.
10937
10938 2011-01-28  Jakub Jelinek  <jakub@redhat.com>
10939
10940         PR target/42894
10941         * varasm.c (force_const_mem): Store copy of x in desc->constant
10942         instead of x itself.
10943         * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
10944         itself into REG_EQUAL note.
10945
10946 2011-01-28  Joseph Myers  <joseph@codesourcery.com>
10947
10948         * config/freebsd.opt (posix, rdynamic): New Driver options.
10949
10950 2011-01-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10951
10952         * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
10953         -Bstatic/-Bdynamic.
10954         * configure: Regenerate.
10955
10956 2011-01-27  Joseph Myers  <joseph@codesourcery.com>
10957
10958         * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
10959         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
10960
10961 2011-01-27  Anatoly Sokolov  <aesok@post.ru>
10962
10963         * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
10964         * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
10965         * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
10966         (s390_preferred_reload_class): Make static. Change return and
10967         'rclass' argument type to reg_class_t.
10968
10969 2011-01-27  Jan Hubicka  <jh@suse.cz>
10970
10971         PR middle-end/46949
10972         * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
10973         (process_function_and_variable_attributes): Check defined weakrefs.
10974
10975 2011-01-27  Martin Jambor  <mjambor@suse.cz>
10976
10977         PR tree-optimization/47228
10978         * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
10979         build_ref_for_offset.
10980
10981 2011-01-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10982
10983         * config/spu/spu-elf.h (ASM_SPEC): Remove.
10984
10985 2011-01-26  Mikael Pettersson  <mikpe@it.uu.se>
10986
10987         PR rtl-optimization/46856
10988         * postreload.c (reload_combine_recognize_const_pattern): Do not
10989         separate cc0 setter and user on cc0 targets.
10990
10991 2011-01-26  Nicola Pero  <nicola.pero@meta-innovation.com>
10992
10993         PR c/43082
10994         * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
10995         passed a VOID_TYPE expression, immediately emit an error and
10996         return error_mark_node.
10997
10998 2011-01-26  Jeff Law  <law@redhat.com>
10999
11000         PR rtl-optimization/47464
11001         * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
11002         rather than may_trap_p as needed.
11003
11004 2011-01-26  DJ Delorie  <dj@redhat.com>
11005
11006         PR rtl-optimization/46878
11007         * combine.c (insn_a_feeds_b): Check for the implicit cc0
11008         setter/user dependency as well.
11009
11010 2011-01-26  Eric Botcazou  <ebotcazou@adacore.com>
11011
11012         PR rtl-optimization/44469
11013         * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
11014         after removing trivially dead basic blocks.
11015
11016 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
11017
11018         * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
11019         * config/frv/frv.h (LINK_SPEC): Likewise.
11020         * config/i386/netware.h (LINK_SPEC): Likewise.
11021         * config/m68k/linux.h (ASM_SPEC): Likewise.
11022         * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
11023         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
11024         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
11025         * config/sparc/linux.h (ASM_SPEC): Likewise.
11026         * config/sparc/linux64.h (ASM_SPEC): Likewise.
11027         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
11028
11029 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
11030
11031         * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
11032         * config/frv/frv.h (ASM_SPEC): Likewise.
11033         * config/m68k/linux.h (ASM_SPEC): Likewise.
11034         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
11035         * config/rs6000/linux64.h (ASM_SPEC): Likewise.
11036         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
11037         * config/sparc/linux.h (ASM_SPEC): Likewise.
11038         * config/sparc/linux64.h (ASM_SPEC): Likewise.
11039         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
11040
11041 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
11042
11043         * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
11044         * config/frv/frv.h (LINK_SPEC): Likewise.
11045         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
11046
11047 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
11048
11049         * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
11050         * config/frv/frv.h (ASM_SPEC): Likewise.
11051         * config/i386/sol2-10.h (ASM_SPEC): Likewise.
11052         * config/m68k/linux.h (ASM_SPEC): Likewise.
11053         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
11054         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
11055         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
11056         * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
11057         * config/sparc/linux.h (ASM_SPEC): Likewise.
11058         * config/sparc/linux64.h (ASM_SPEC): Likewise.
11059         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
11060         * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
11061
11062 2011-01-26  Steve Ellcey  <sje@cup.hp.com>
11063
11064         PR target/46997
11065         * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
11066         (*mux2): Ditto.
11067         (vec_extract_evenodd_help): Ditto.
11068         (vec_extract_evenv4hi): Ditto.
11069         (vec_extract_oddv4hi): Ditto.
11070         (vec_interleave_lowv2si): Ditto.
11071         (vec_interleave_highv2si): Ditto.
11072         (vec_extract_evenv2si): Ditto.
11073         (vec_extract_oddv2si: Ditto.
11074         (vec_pack_trunc_v2si): Ditto.
11075
11076 2011-01-22  Jan Hubicka  <jh@suse.cz>
11077
11078         PR target/47237
11079         * cgraph.h (cgraph_local_info): New field can_change_signature.
11080         * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
11081         signature can change.
11082         (ipcp_estimate_growth): Call sequence simplify only if calle signature
11083         can change.
11084         (ipcp_insert_stage): Only compute args_to_skip if signature can change.
11085         (cgraph_function_versioning): We can not change signature of functions
11086         that don't allow that.
11087         * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
11088         (lto_input_node): Likewise.
11089         * ipa-inline.c (compute_inline_parameters): Compute
11090         local.can_change_signature.
11091         * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
11092         * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
11093         functions that can not change signature.
11094         * i386.c (ix86_function_regparm, ix86_function_sseregparm,
11095         init_cumulative_args): Do not use local calling conventions
11096         for functions that can not change signature.
11097
11098 2011-01-22  Jan Hubicka  <jh@suse.cz>
11099
11100         * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
11101
11102 2011-01-26  Richard Guenther  <rguenther@suse.de>
11103
11104         PR tree-optimization/47190
11105         * cgraphunit.c (process_common_attributes): New function.
11106         (process_function_and_variable_attributes): Use it.
11107
11108 2011-01-26  Richard Guenther  <rguenther@suse.de>
11109
11110         PR lto/47423
11111         * cgraphbuild.c (record_eh_tables): Record reference to personality
11112         function.
11113
11114 2011-01-26  Alexandre Oliva  <aoliva@redhat.com>
11115
11116         PR debug/45454
11117         * sel-sched.c (moveup_expr): Don't let debug insns prevent
11118         non-debug insns from moving up.
11119
11120 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
11121
11122         PR target/40125
11123         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
11124         t-dlldir{,-x} fragment for build and add it to tmake_file.
11125         (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
11126         * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
11127         * config/i386/t-dlldir: New file.
11128         (SHLIB_DLLDIR): Define.
11129         * config/i386/t-dlldir-x: New file.
11130         (SHLIB_DLLDIR): Define.
11131         * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
11132         (SHLIB_INSTALL): Use it.
11133
11134 2011-01-26  Chung-Lin Tang  <cltang@codesourcery.com>
11135
11136         PR target/47246
11137         * config/arm/arm.c (thumb2_legitimate_index_p): Change the
11138         lower bound of the allowed Thumb-2 coprocessor load/store
11139         index range to -256. Add explaining comment.
11140
11141 2011-01-25  Ian Lance Taylor  <iant@google.com>
11142
11143         * godump.c (go_define): Improve lexing of macro expansion to only
11144         accept expressions which match Go spec.
11145
11146 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
11147
11148         PR c++/43601
11149         * tree.c (handle_dll_attribute): Handle it.
11150         * doc/extend.texi (@item dllexport): Mention it.
11151         * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
11152
11153 2011-01-25  Ian Lance Taylor  <iant@google.com>
11154
11155         PR tree-optimization/26854
11156         * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
11157         (decl_jump_unsafe): Move higher in file, with no other change.
11158         (bind): Set has_jump_unsafe_decl if appropriate.
11159         (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
11160         (check_earlier_gotos): Likewise.
11161         (c_check_switch_jump_warnings): Likewise.
11162
11163 2011-01-25  Jonathan Wakely  <jwakely.gcc@gmail.com>
11164
11165         * doc/invoke.texi (Warning Options): Add missing hyphen.
11166         (-fprofile-dir): Minor grammatical fixes.
11167         (-fbranch-probabilities): Likewise.
11168
11169 2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
11170
11171         PR debug/45136
11172         PR debug/45130
11173         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
11174         debug insns.
11175         (no_real_insns_p, schedule_block, set_priorities): Drop special
11176         treatment of boundary debug insns.
11177         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
11178         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
11179         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
11180         (BOUNDARY_DEBUG_INSN_P): Likewise.
11181         (SCHEDULE_DEBUG_INSN_P): Likewise.
11182         * sched-rgn.c (init_ready_list): Drop special treatment of
11183         boundary debug insns.
11184         * final.c (rest_of_clean-state): Clear notes' BB.
11185
11186 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
11187
11188         * Makefile.in (LAMBDA_H): Removed.
11189         (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
11190         (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
11191         lambda-trans.o, and tree-loop-linear.o.
11192         (lto-symtab.o): Remove dependence on LAMBDA_H.
11193         (tree-loop-linear.o): Remove rule.
11194         (lambda-mat.o): Same.
11195         (lambda-trans.o): Same.
11196         (lambda-code.o): Same.
11197         (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
11198         (tree-vect-slp.o): Same.
11199         * hwint.h (gcd): Moved here.
11200         (least_common_multiple): Same.
11201         * lambda-code.c: Removed.
11202         * lambda-mat.c: Removed.
11203         * lambda-trans.c: Removed.
11204         * lambda.h: Removed.
11205         * tree-loop-linear.c: Removed.
11206         * lto-symtab.c: Do not include lambda.h.
11207         * omega.c (gcd): Removed.
11208         * passes.c (init_optimization_passes): Remove pass_linear_transform.
11209         * tree-data-ref.c (print_lambda_vector): Moved here.
11210         (lambda_vector_copy): Same.
11211         (lambda_matrix_copy): Same.
11212         (lambda_matrix_id): Same.
11213         (lambda_vector_first_nz): Same.
11214         (lambda_matrix_row_add): Same.
11215         (lambda_matrix_row_exchange): Same.
11216         (lambda_vector_mult_const): Same.
11217         (lambda_vector_negate): Same.
11218         (lambda_matrix_row_negate): Same.
11219         (lambda_vector_equal): Same.
11220         (lambda_matrix_right_hermite): Same.
11221         * tree-data-ref.h: Do not include lambda.h.
11222         (lambda_vector): Moved here.
11223         (lambda_matrix): Same.
11224         (dependence_level): Same.
11225         (lambda_transform_legal_p): Removed declaration.
11226         (lambda_collect_parameters): Same.
11227         (lambda_compute_access_matrices): Same.
11228         (lambda_vector_gcd): Same.
11229         (lambda_vector_new): Same.
11230         (lambda_vector_clear): Same.
11231         (lambda_vector_lexico_pos): Same.
11232         (lambda_vector_zerop): Same.
11233         (lambda_matrix_new): Same.
11234         * tree-flow.h (least_common_multiple): Removed declaration.
11235         * tree-parloops.c (lambda_trans_matrix): Moved here.
11236         (LTM_MATRIX): Same.
11237         (LTM_ROWSIZE): Same.
11238         (LTM_COLSIZE): Same.
11239         (LTM_DENOMINATOR): Same.
11240         (lambda_trans_matrix_new): Same.
11241         (lambda_matrix_vector_mult): Same.
11242         (lambda_transform_legal_p): Same.
11243         * tree-pass.h (pass_linear_transform): Removed declaration.
11244         * tree-ssa-loop.c (tree_linear_transform): Removed.
11245         (gate_tree_linear_transform): Removed.
11246         (pass_linear_transform): Removed.
11247         (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
11248         flag_loop_interchange.
11249
11250 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
11251
11252         PR tree-optimization/47265
11253         PR tree-optimization/47443
11254         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
11255         if name still has some uses.
11256
11257 2011-01-25  Martin Jambor  <mjambor@suse.cz>
11258
11259         PR tree-optimization/47382
11260         * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
11261         (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
11262
11263 2011-01-25  Joel Sherrill  <joel.sherrill@oarcorp.com>
11264
11265         * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
11266         sjlj_except_unwind_info.
11267
11268 2011-01-25  Richard Guenther  <rguenther@suse.de>
11269
11270         PR tree-optimization/47426
11271         * tree-ssa-structalias.c (ipa_pta_execute): Make externally
11272         visible functions results escape.
11273
11274 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
11275
11276         PR target/45701
11277         * config/arm/arm.c (any_sibcall_uses_r3): New function.
11278         (arm_get_frame_offsets): Use it.
11279
11280 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
11281             Jakub Jelinek  <jakub@redhat.com>
11282
11283         PR tree-optimization/47271
11284         * tree-if-conv.c (bb_postdominates_preds): New.
11285         (if_convertible_bb_p): Call bb_postdominates_preds.
11286         (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
11287         (predicate_scalar_phi): Call bb_postdominates_preds.
11288
11289 2011-01-25  Nick Clifton  <nickc@redhat.com>
11290
11291         * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
11292         * config/rx/rx.c (rx_function_value): Likewise.
11293         (rx_promote_function_mode): Likewise.
11294         (gen_safe_add): Place an outsized immediate value inside an UNSPEC
11295         in order to make it legitimate.
11296         * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
11297         make sure that the first operand is the same as the result register.
11298         (addsi3_unspec): Delete.
11299         (subdi3): Do not accept immediate operands.
11300         (subdi3_internal): Likewise.
11301
11302 2011-01-25  Jeff Law  <law@redhat.com>
11303
11304         PR rtl-optimization/37273
11305         * ira-costs.c (scan_one_insn): Detect constants living in memory and
11306         handle them like argument loads from stack slots.  Do not double
11307         count memory for memory constants and argument loads from stack slots.
11308
11309 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
11310
11311         PR tree-optimization/47427
11312         PR tree-optimization/47428
11313         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
11314         coalesce if the new root var would be TREE_READONLY.
11315
11316 2011-01-25  Richard Guenther  <rguenther@suse.de>
11317
11318         PR middle-end/47414
11319         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
11320         correct type for TBAA.
11321
11322 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
11323
11324         * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
11325         (close_phi_written_to_memory): Call for_each_index with
11326         dr_indices_valid_in_loop.
11327
11328 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
11329
11330         * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
11331         when it is initialized.
11332
11333 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
11334
11335         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
11336         call to graphite_find_data_references_in_stmt.
11337         * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
11338         (try_generate_gimple_bb): Call outermost_loop_in_sese_1.  Update
11339         call to graphite_find_data_references_in_stmt.
11340         (analyze_drs_in_stmts): Same.
11341         * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
11342         in which the scalar analysis of indices is performed.
11343         (create_data_ref): Same.  Update call to dr_analyze_indices.
11344         (find_data_references_in_stmt): Update call to create_data_ref.
11345         (graphite_find_data_references_in_stmt): Same.
11346         * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
11347         declaration.
11348         (create_data_ref): Same.
11349         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
11350         call to create_data_ref.
11351
11352 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
11353
11354         * graphite-sese-to-poly.c (build_poly_scop): Move
11355         rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
11356
11357 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
11358
11359         * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
11360         VAR_DECL, PARM_DECL, and RESULT_DECL.
11361
11362 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
11363
11364         * graphite-dependences.c (reduction_dr_1): Allow several reductions
11365         in a reduction PBB.
11366         * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
11367         that have already been marked as PBB_IS_REDUCTION.
11368
11369 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
11370
11371         * graphite-scop-detection.c (same_close_phi_node): New.
11372         (remove_duplicate_close_phi): New.
11373         (make_close_phi_nodes_unique): New.
11374         (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
11375
11376 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
11377
11378         * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
11379         * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
11380         of both data references to be the same.
11381
11382 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
11383
11384         * graphite-dependences.c (build_lexicographical_constraint): Remove
11385         the gdim parameter.
11386         (build_lexicographical_constraint): Adjust call to
11387         ppl_powerset_is_empty.
11388         (dependence_polyhedron): Same.
11389         (graphite_legal_transform_dr): Same.
11390         (graphite_carried_dependence_level_k): Same.
11391         * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
11392         parameter.
11393         * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
11394
11395 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
11396
11397         * graphite-sese-to-poly.c
11398         (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
11399         (close_phi_written_to_memory): New.
11400         (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
11401         and unshare_expr.
11402
11403 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
11404
11405         * doc/install.texi: Update the expected version number of PPL to 0.11.
11406         * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
11407         #if PPL_VERSION_MINOR < 11.
11408
11409 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
11410
11411         * graphite-dependences.c: Include graphite-cloog-util.h.
11412         (new_poly_ddr): Inlined into dependence_polyhedron.
11413         (free_poly_ddr): Moved close by new_poly_ddr.
11414         (dependence_polyhedron_1): Renamed dependence_polyhedron.
11415         Early return NULL when ppl_powerset_is_empty returns true.
11416         (dependence_polyhedron): Renamed new_poly_ddr.  Call only once
11417         poly_drs_may_alias_p.  Avoid one call to ppl_powerset_is_empty.
11418         (graphite_legal_transform_dr): Call new_poly_ddr.
11419         (graphite_carried_dependence_level_k): Same.
11420         (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2.  Use new_poly_ddr.
11421         (dot_transformed_deps_stmt_1): Removed.
11422         (dot_deps_stmt_1): Call dot_deps_stmt_2.
11423         (dot_original_deps): Renamed dot_deps_2.  Call new_poly_ddr.
11424         (dot_deps_1): Call dot_deps_2.
11425         * Makefile.in (graphite-dependences.o): Add missing dependence on
11426         graphite-cloog-util.h.
11427
11428 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
11429
11430         * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
11431         (build_lexicographical_constraint): Same.
11432         (dependence_polyhedron_1): Same.
11433         (graphite_legal_transform_dr): Same.
11434         (graphite_carried_dependence_level_k): Same.
11435         * graphite-ppl.c (ppl_powerset_is_empty): New.
11436         * graphite-ppl.h (ppl_powerset_is_empty): Declared.
11437         * tree-data-ref.c (dump_data_reference): Print the basic block index.
11438
11439 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
11440
11441         * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
11442         the "a followed by b" relation and document it.
11443
11444 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
11445
11446         * graphite-dependences.c (build_lexicographical_constraint): Stop the
11447         iteration when the bag of constraints is empty.
11448
11449 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
11450
11451         * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
11452
11453 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
11454
11455         * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
11456         nest and two loop depths as parameters.
11457         (lst_try_interchange_loops): Call lst_interchange_profitable_p after
11458         lst_perfect_nestify.
11459
11460 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
11461
11462         * graphite-dependences.c (print_pddr): Call
11463         ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
11464
11465 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
11466
11467         * graphite-ppl.c (debug_gmp_value): New.
11468         * graphite-ppl.h (debug_gmp_value): Declared.
11469
11470 2011-01-25  Tobias Grosser  <grosser@fim.uni-passau.de>
11471
11472         * doc/install.texi: Document availability of cloog-0.16.
11473
11474 2011-01-25  Vladimir Kargov  <kargov@gmail.com>
11475
11476         * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
11477         invalid postdominance info.
11478
11479 2011-01-24  Jan Hubicka  <jh@suse.cz>
11480
11481         PR c/21659
11482         * doc/extend.texi (weak pragma): Drop claim that it must
11483         appear before definition.
11484         * varasm.c (merge_weak, declare_weak): Only sanity check
11485         that DECL is not output at a time it is declared weak.
11486
11487 2011-01-24  Kenneth Zadeck  <zadeck@naturalbridge.com>
11488
11489         * machmode.def: Fixed comments.
11490
11491 2011-01-24  Kai Tietz  <kai.tietz@onevision.com>
11492
11493         * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
11494
11495 2011-01-24  Paul Koning  <ni1d@arrl.net>
11496
11497         * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
11498         WORDS_BIG_ENDIAN.
11499
11500 2011-01-24  H.J. Lu  <hongjiu.lu@intel.com>
11501
11502         PR target/46519
11503         * config/i386/i386.c: Include sbitmap.h and fibheap.h.
11504         (block_info): Add scanned and prev.
11505         (move_or_delete_vzeroupper_2): Return if the basic block
11506         has been scanned and the upper 128bit state is unchanged
11507         from the last scan.
11508         (move_or_delete_vzeroupper_1): Return true if the exit
11509         state is changed.
11510         (move_or_delete_vzeroupper): Visit basic blocks using the
11511         work-list based algorithm based on vt_find_locations in
11512         var-tracking.c.
11513
11514         * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
11515
11516 2011-01-24  Nick Clifton  <nickc@redhat.com>
11517
11518         * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
11519         * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
11520         -mv850e1 to the assembler.  If -mv850e1 or -mv850es is specified
11521         then define __v850e1__.
11522         * doc/invoke.texi: Document -mv850es.
11523
11524 2011-01-24  Richard Henderson  <rth@redhat.com>
11525
11526         * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
11527         compound unordered comparisons.
11528         * config/rx/rx.c (rx_split_fp_compare): Remove.
11529         * config/rx/rx-protos.h: Update.
11530         * config/rx/rx.md (gcc_conds, rx_conds): Remove.
11531         (cbranchsf4): Don't call rx_split_fp_compare.
11532         (*cbranchsf4): Use rx_split_cbranch.
11533         (*cmpsf): Don't accept "i" constraint.
11534         (*conditional_branch): Only valid after reload.
11535         (cstoresf4): Merge expander with insn.  Don't call rx_split_fp_compare.
11536
11537 2011-01-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
11538
11539         PR target/47385
11540         * config/rs6000/altivec.md (vector constant splitters): Add
11541         support for creating vector single precision constants if -mvsx is
11542         used and we would create the constant using Altivec primitives.
11543
11544 2011-01-23  Bernd Schmidt  <bernds@codesourcery.com>
11545             Richard Sandiford  <rdsandiford@googlemail.com>
11546
11547         PR rtl-optimization/47166
11548         * reload1.c (emit_reload_insns): Disable the spill_reg_store
11549         mechanism for PRE_MODIFY and POST_MODIFY.
11550         (inc_for_reload): For PRE_MODIFY, return the insn that sets the
11551         reloadreg.
11552
11553 2011-01-23  Andreas Schwab  <schwab@linux-m68k.org>
11554
11555         * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
11556
11557 2011-01-22  Jan Hubicka  <jh@suse.cz>
11558
11559         PR lto/47333
11560         * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
11561
11562 2011-01-22  Jan Hubicka  <jh@suse.cz>
11563
11564         PR tree-optimization/43884
11565         PR lto/44334
11566         * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
11567         * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
11568
11569 2011-01-22  Anatoly Sokolov  <aesok@post.ru>
11570
11571         * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
11572         * config/s390/s390.c (s390_register_move_cost,
11573         s390_memory_move_cost): New.
11574         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
11575
11576 2011-01-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11577
11578         PR middle-end/47401
11579         * except.c (sjlj_assign_call_site_values): Move setting the
11580         crtl->uses_eh_lsda flag to ...
11581         (sjlj_mark_call_sites): ... here.
11582         (sjlj_emit_function_enter): Support NULL dispatch label.
11583         (sjlj_build_landing_pads): In a function with no landing pads
11584         that still has must-not-throw regions, generate code to register
11585         a personality function with empty LSDA.
11586
11587 2011-01-21  Richard Henderson  <rth@redhat.com>
11588
11589         * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
11590
11591         * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
11592
11593         * compare-elim.c: New file.
11594         * Makefile.in (OBJS-common): Add it.
11595         (compare-elim.o): New.
11596         * common.opt (fcompare-elim): New.
11597         * opts.c (default_options_table): Add OPT_fcompare_elim.
11598         * tree-pass.h (pass_compare_elim_after_reload): New.
11599         * passes.c (init_optimization_passes): Add it.
11600         * recog.h: Protect against re-inclusion.
11601         * target.def (TARGET_FLAGS_REGNUM): New POD hook.
11602         * doc/invoke.texi (-fcompare-elim): Document it.
11603         * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
11604         * doc/tm.texi: Rebuild.
11605
11606 2011-01-22  Nick Clifton  <nickc@redhat.com>
11607
11608         * config/rx/rx.md (cstoresf4): Pass comparison operator to
11609         rx_split_fp_compare.
11610
11611 2011-01-22  Nick Clifton  <nickc@redhat.com>
11612
11613         * config/rx/rx.md (UNSPEC_CONST): New.
11614         (deallocate_and_return): Wrap the amount popped off the stack in
11615         an UNSPEC_CONST in order to stop it being rejected by
11616         -mmax-constant-size.
11617         (pop_and_return): Add a "(return)" rtx.
11618         (call): Drop the immediate operand.
11619         (call_internal): Likewise.
11620         (call_value): Likewise.
11621         (call_value_internal): Likewise.
11622         (sibcall_internal): Likewise.
11623         (sibcall_value_internal): Likewise.
11624         (sibcall): Likewise.  Generate an explicit call using
11625         sibcall_internal.
11626         (sibcall_value): Likewise.
11627         (mov<>): FAIL if a constant operand is not legitimate.
11628         (addsi3_unpsec): New pattern.
11629
11630         * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
11631         (ok_for_max_constant): New function.
11632         (gen_safe_add): New function.
11633         (rx_expand_prologue): Use gen_safe_add.
11634         (rx_expand_epilogue): Likewise.
11635         (rx_is_legitimate_constant): Use ok_for_max_constant.  Handle
11636         UNSPEC CONSTs.
11637
11638 2011-01-21  Jeff Law  <law@redhat.com>
11639
11640         PR tree-optimization/47053
11641         * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
11642         (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
11643         statements are deleted.
11644         (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP.  If NEED_EH_CLEANUP
11645         is nonempty, then purge dead edges and cleanup the CFG.
11646
11647 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
11648
11649         PR debug/47402
11650         Temporarily revert:
11651         2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
11652         PR debug/47106
11653         * tree-dfa.c (create_var_ann): Mark variable as used.
11654
11655 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
11656
11657         PR middle-end/45566
11658         * except.c (convert_to_eh_region_ranges): Emit queued no-region
11659         notes from other section in hot/cold partitioning even if
11660         last_action is -3.  Increment call_site_base.
11661
11662         PR rtl-optimization/47366
11663         * fwprop.c (forward_propagate_into): Return bool.  If
11664         any changes are made, -fnon-call-exceptions is used and
11665         REG_EH_REGION note is present, call purge_dead_edges
11666         and return true if it purged anything.
11667         (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
11668         any EH edges were purged.
11669
11670 2011-01-21  Jeff Law  <law@redhat.com>
11671
11672         PR rtl-optimization/41619
11673         * caller-save.c (setup_save_areas): Break out code to determine
11674         which hard regs are live across calls by examining the reload chains
11675         so that it is always used.
11676         Eliminate code which checked REG_N_CALLS_CROSSED.
11677
11678 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
11679
11680         PR tree-optimization/47355
11681         * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
11682         NOP has non-debug uses beyond PHIs in new_bb.
11683
11684 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
11685
11686         PR debug/47106
11687         * cfgexpand.c (account_used_vars_for_block): Only account vars
11688         that are annotated as used.
11689         (estimated_stack_frame_size): Don't set TREE_USED.
11690         * tree-dfa.c (create_var_ann): Mark variable as used.
11691
11692 2011-01-21  Richard Guenther  <rguenther@suse.de>
11693
11694         PR middle-end/47395
11695         * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
11696
11697 2011-01-21  Richard Guenther  <rguenther@suse.de>
11698
11699         PR tree-optimization/47365
11700         * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
11701         (vn_reference_lookup_pieces): Adjust.
11702         (vn_reference_lookup): Likewise.
11703         * tree-ssa-sccvn.c (vn_walk_kind): New static global.
11704         (vn_reference_lookup_3): Only look through kills if in
11705         VN_WALKREWRITE mode.
11706         (vn_reference_lookup_pieces): Adjust.
11707         (vn_reference_lookup): Likewise.
11708         (visit_reference_op_load): Likewise.
11709         (visit_reference_op_store): Likewise.
11710         * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
11711         (compute_avail): Likewise.
11712         (eliminate): Likewise.
11713
11714 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
11715
11716         * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
11717         DECL_IGNORED_P non-reg vars if they are used.
11718
11719         PR tree-optimization/47391
11720         * varpool.c (const_value_known_p): Return false if
11721         decl is volatile.
11722
11723 2011-01-21  Kai Tietz  <kai.tietz@onevision.com>
11724
11725         PR bootstrap/47215
11726         * config/i386/i386.c (ix86_local_alignment): Handle
11727         case for va_list_type_node is nil.
11728         (ix86_canonical_va_list_type): Likewise.
11729
11730 2011-01-21  Alan Modra  <amodra@gmail.com>
11731
11732         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
11733         builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
11734
11735 2011-01-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
11736
11737         * config/arm/arm.md (define_attr type): Rename f_load
11738         and f_store to f_fpa_load and f_fpa_store. Update.
11739         (write_conflict): Deal with rename fallout.
11740         (*push_fp_multi): Likewise.
11741         * config/arm/fpa.md (f_load): Use f_fpa_load.
11742         (f_store): Use f_fpa_store.
11743         (*movsf_fpa): Likewise.
11744         (*movdf_fpa): Likewise.
11745         (*movxf_fpa): Likewise.
11746         (*thumb2_movsf_fpa): Likewise.
11747         (*thumb2_movdf_fpa): Likewise.
11748         (*thumb2_movxf_fpa): Likewise.
11749         * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
11750         f_loadd and f_stored.
11751         (*thumb2_movdi_vfp): Likewise.
11752         (*thumb2_movsf_vfp): Fix attribute to f_loads.
11753         (*thumb2_movsi_vfp): Likewise.
11754         * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
11755         Use f_loads instead of f_load.
11756         * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
11757
11758 2011-01-20  Anatoly Sokolov  <aesok@post.ru>
11759
11760         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
11761         * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
11762         * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
11763         (xtensa_mode_dependent_address_p): New function.
11764         (constantpool_address_p): Make static. Change return type to bool.
11765         Change argument type to const_rtx. Use CONST_INT_P predicate.
11766
11767 2011-01-20  Alexandre Oliva  <aoliva@redhat.com>
11768
11769         PR debug/46583
11770         * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
11771
11772 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
11773
11774         PR debug/47283
11775         * cfgexpand.c (expand_debug_expr): Instead of generating
11776         (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
11777         etc. handling.
11778
11779 2011-01-20  Richard Guenther  <rguenther@suse.de>
11780
11781         PR middle-end/47370
11782         * tree-inline.c (remap_gimple_op_r): Recurse manually for
11783         the pointer operand of MEM_REFs.
11784
11785 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
11786
11787         PR tree-optimization/46130
11788         * ipa-split.c (consider_split): If return_bb contains non-virtual
11789         PHIs other than for retval or if split_function would not adjust it,
11790         refuse to split.
11791
11792 2011-01-20  Richard Guenther  <rguenther@suse.de>
11793
11794         PR tree-optimization/47167
11795         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
11796         Revert previous change, only avoid enumeral type changes.
11797
11798 2011-01-19  Mike Stump  <mikestump@comcast.net>
11799
11800         * doc/tm.texi.in (BRANCH_COST): Englishify.
11801         * doc/tm.texi (BRANCH_COST): Likewise.
11802
11803 2011-01-19  Dodji Seketeli  <dodji@redhat.com>
11804
11805         PR c++/47291
11806         * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
11807         (gen_scheduled_generic_parms_dies): New functions.
11808         (gen_struct_or_union_type_die): Schedule template parameters DIEs
11809         generation for the end of CU compilation.
11810         (dwarf2out_finish): Generate template parameters DIEs here.
11811
11812 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
11813
11814         PR debug/46240
11815         * tree-into-ssa.c (maybe_register_def): Do not attempt to add
11816         debug bind stmt on merge edges.
11817
11818 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
11819
11820         PR debug/47079
11821         PR debug/46724
11822         * function.c (instantiate_expr): Instantiate incoming rtl of
11823         implicit arguments, and recurse on VALUE_EXPRs.
11824         (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
11825         * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
11826
11827 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
11828
11829         * c-parser.c (c_parser_for_statement): Initialize
11830         collection_expression.
11831
11832 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
11833
11834         * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
11835
11836 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
11837
11838         * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
11839         (LINK_SHLIB_SPEC): Don't use %(link_path).
11840         (SUBTARGET_EXTRA_SPECS): Remove link_path.
11841
11842 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
11843
11844         * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
11845         (NO_SHARED_LIB_SUPPORT): Remove.
11846         (LINK_SHLIB_SPEC): Remove one conditional definition.
11847
11848 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
11849
11850         * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
11851         %{call_shared}.
11852         * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
11853         * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
11854         * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
11855         %{call_shared} and conditionals on these options not being passed.
11856         * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
11857         %{call_shared}.
11858
11859 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
11860
11861         * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
11862         simplify.
11863
11864         * ipa-split.c: Spelling fixes.
11865
11866 2011-01-19  Richard Henderson  <rth@redhat.com>
11867
11868         * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
11869         (*mulsi3): Likewise.
11870
11871         * longlong.h [__mn10300__] (count_leading_zeros): New.
11872         [__mn10300__] (umul_ppmm, smul_ppmm): New.
11873         [__mn10300__] (add_ssaaaa, subddmmss): New.
11874         [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
11875         [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
11876
11877 2011-01-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11878
11879         * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
11880
11881 2011-01-19  Richard Henderson  <rth@redhat.com>
11882
11883         * config/mn10300/mn10300.md (addsi3_flags): New.
11884         (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
11885         (subsi3_flags, subc_internal, subdi3): New.
11886         (subdi3_internal, *subdi3_degenerate): New.
11887         * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
11888
11889         * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
11890         (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
11891         (mn10300_expand_epilogue): Use it.  Compute REG_SAVE_BYTES once.
11892         * config/mn10300/mn10300-protos.h: Update.
11893         * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
11894         (return_ret): Likewise.  Rename from return_internal_regs.
11895         (return_internal): Remove.
11896
11897         * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
11898         (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
11899         (mn10300_legitimate_constant_p): Likewise.
11900         (mn10300_can_use_return_insn): Use mn10300_initial_offset.
11901         (mn10300_frame_size): New.
11902         (mn10300_expand_prologue): Use it.
11903         (mn10300_expand_epilogue): Likewise.
11904         (mn10300_initial_offset): Likewise.
11905         * config/mn10300/mn10300-protos.h: Update.
11906         * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
11907         * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
11908         (prologue, epilogue, return_internal): Tidy output code.
11909         (mn10300_store_multiple_operation, return): Likewise.
11910         (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
11911         (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
11912         (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
11913         (load_pic, am33_load_pic): New.
11914         (mn10300_load_pic0, mn10300_load_pic1): New.
11915
11916         * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
11917         * config/mn10300/mn10300.c (CC_FLAG_Z): New.
11918         (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
11919         (cc_flags_for_mode, cc_flags_for_code): New.
11920         (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
11921         overflow flag is not valid.  Validate that the flags we need
11922         for the comparison are valid.
11923         (mn10300_output_cmp): Remove.
11924         (mn10300_output_add): New.
11925         (mn10300_select_cc_mode): Use cc_flags_for_code.
11926         (mn10300_split_cbranch): New.
11927         (mn10300_match_ccmode): New.
11928         (mn10300_split_and_operand_count): New.
11929         * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
11930         to the function.
11931         * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
11932         (addsi3): ... here.  Use mn10300_output_add.
11933         (*addsi3_flags): New.
11934         (*am33_subsi3, *mn10300_subsi3): Merge...
11935         (subsi3): ... here.  Use attribute isa.
11936         (*subsi3_flags): New.
11937         (negsi2): Rewrite from expander to insn_and_split.  Use NOT+INC
11938         when possible.
11939         (*am33_andsi3, *mn10300_andsi3): Merge...
11940         (andsi3): ... here.
11941         (*andsi3_flags): New.
11942         (andsi3 splitters): New.
11943         (*am33_iorsi3, *mn10300_iorsi3): Merge...
11944         (iorsi3): ... here.
11945         (*iorsi3_flags): New.
11946         (*am33_xorsi3, *mn10300_xorsi3): Merge...
11947         (xorsi3): ... here.
11948         (*xorsi3_flags): New.
11949         (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
11950         (one_cmplsi2): ... here.
11951         (*one_cmplsi2_flags): New.
11952         (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload.  Use "r"
11953         instead of "dax" in constraints.  Use mn10300_split_cbranch.
11954         (*cmpsi): Rename from cmpsi.  Do not use mn10300_output_cmp.  Do not
11955         use matching constraints to eliminate a self-comparison.
11956         (*integer_conditional_branch): Rename from integer_conditional_branch.
11957         Use int_mode_flags to match CC_REG.
11958         (*cbranchsi4_btst, *btstsi): New.
11959         (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload.  Use
11960         mn10300_split_cbranch.
11961         (*am33_cmpsf): Rename from am33_cmpsf.
11962         (*float_conditional_branch): Rename from float_conditional_branch.
11963         (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
11964         (zero_extendqisi2): ... here.
11965         (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
11966         (zero_extendhisi2): ... here.
11967         (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
11968         (extendqisi2): ... here.
11969         (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
11970         (extendhisi2): ... here.
11971         (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
11972         (ashlsi3): ... here.
11973         (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
11974         (lshrsi3): ... here.
11975         (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
11976         (ashrsi3): ... here.
11977         (consecutive add peephole): Remove.
11978         * config/mn10300/predicates.md (label_ref_operand): New.
11979         (int_mode_flags): New.
11980         (CCZN_comparison_operator): New.
11981
11982         * config/mn10300/mn10300.md (UNSPEC_EXT): New.
11983         (throughput_42_latency_43): New reservation.
11984         (mulsidi3, umulsidi3): New expanders.
11985         (mulsidi3_internal): Rewrite from old mulsidi3 pattern.  Expose
11986         the MDR register to allocation; separately allocate the low and
11987         high parts of the DImode result.
11988         (umulsidi3_internal): Similarly.
11989         (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
11990         (*mulsi3): ... here.  Clobber MDR as a scratch as necessary.
11991         (udivsi3, umodsi3): Remove.
11992         (udivmodsi4, divmodsi4): New expanders.
11993         (*udivmodsi4): Rename from udivmodsi4.  Expose MDR properly.
11994         (*divmodsi4): Simiarly.
11995         (ext_internal): New.
11996
11997         * config/mn10300/constraints.md ("z"): New constraint.
11998         * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
11999         (FIXED_REGISTERS): Don't fix MDR.
12000         (CALL_USED_REGSITERS): Reformat nicely.
12001         (REG_ALLOC_ORDER): Add MDR.
12002         (enum regclass): Add MDR_REGS.
12003         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
12004         (IRA_COVER_CLASSES): Add MDR_REGS.
12005         (REGNO_REG_CLASS): Handle MDR_REG.
12006         * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
12007         (mn10300_register_move_cost): Likewise.
12008         * config/mn10300/mn10300.md (MDR_REG): New.
12009         (*movsi_internal): Handle moves to/from MDR_REGS.
12010
12011         * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
12012         POST_MODIFY.
12013         (mn10300_secondary_reload): Tidy combination reload classes.
12014         (mn10300_legitimate_address_p): Allow post-modify and reg+reg
12015         addresses for AM33.  Allow symbolic offsets for reg+imm.
12016         (mn10300_regno_in_class_p): New.
12017         (mn10300_legitimize_reload_address): New.
12018         * config/mn10300/mn10300.h (enum reg_class): Remove
12019         DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
12020         SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS.  Add
12021         SP_OR_GENERAL_REGS.
12022         (REG_CLASS_NAMES): Update to match.
12023         (REG_CLASS_CONTENTS): Likewise.
12024         (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
12025         (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
12026         (REGNO_IN_RANGE_P): Remove.
12027         (REGNO_DATA_P): Use mn10300_regno_in_class_p.
12028         (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
12029         (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
12030         (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
12031         (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
12032         (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
12033         (REGNO_GENERAL_P): New.
12034         (HAVE_POST_MODIFY_DISP): New.
12035         (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
12036         (LEGITIMIZE_RELOAD_ADDRESS): New.
12037         * config/mn10300/mn10300-protos.h: Update.
12038
12039         * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
12040         DATA_REGS for AM33 stack-pointer destination.
12041         (mn10300_preferred_output_reload_class): Likewise.
12042         (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
12043         into a form appropriate for ...
12044         (TARGET_SECONDARY_RELOAD): New.
12045         * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
12046         * config/mn10300/mn10300-protos.h: Update.
12047         * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
12048         reload_insi; use the "A" constraint for the scratch; handle AM33
12049         moves of sp to non-address registers.
12050
12051         * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
12052         (*movqi_internal): ... here.
12053         (*am33_movhi, *mn10300_movhi): Merge into...
12054         (*movhi_internal): ... here.
12055         (*movsi_internal): Use "r" instead of "dax" in constraints.  Use "A"
12056         as the source/destination of moves from/to SP.
12057         (movsf): Only allow for AM33-2.
12058         (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
12059         any integer constant constraint.  Only allow for AM33-2.  Tidy
12060         all of the alternative outputs.
12061         (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
12062         (udivmodsi4): Delete expander and promote *udivmodsi4.  Disallow
12063         for MN103.
12064         (udivsi3, umodsi3): New patterns for MN103 only.
12065
12066 2011-01-19  Joern Rennecke  <amylaar@spamcop.net>
12067
12068         * doc/tm.texi.in: Spell out that a lack of register class unions
12069         can lead to ICEs.
12070         * doc/tm.texi: Regenerate.
12071
12072 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
12073
12074         PR rtl-optimization/47337
12075         * dce.c (check_argument_store): New function.
12076         (find_call_stack_args): Ignore debug insns.  Use check_argument_store.
12077
12078         PR tree-optimization/47290
12079         * tree-eh.c (infinite_empty_loop_p): New function.
12080         (cleanup_empty_eh): Use it.
12081
12082 2011-01-18  Steve Ellcey  <sje@cup.hp.com>
12083
12084         PR target/46997
12085         * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
12086         (a64_expand_widen_sum): Ditto.
12087         * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
12088         (vec_extract_evenodd_help): Ditto.
12089         (vec_extract_evenv4hi): Ditto.
12090         (vec_extract_oddv4hi): Ditto.
12091         (vec_extract_evenv2si): Ditto.
12092         (vec_extract_oddv2si): Ditto.
12093         (vec_extract_evenv2sf): Ditto.
12094         (vec_extract_oddv2sf): Ditto.
12095         (vec_pack_trunc_v4hi: Ditto.
12096         (vec_pack_trunc_v2si): Ditto.
12097         (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
12098         (vec_interleave_highv8qi): Ditto.
12099         (mix1_r): Ditto.
12100         (vec_extract_oddv8qi): Ditto.
12101         (vec_interleave_lowv4hi): Ditto.
12102         (vec_interleave_highv4hi): Ditto.
12103         (vec_interleave_lowv2si): Ditto.
12104         (vec_interleave_highv2si): Ditto.
12105
12106 2011-01-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12107
12108         * doc/extend.texi: Mention __float128 support on hppa HP-UX.
12109         * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
12110         * config/pa/pa.c (pa_expand_builtin): New.  Include "langhooks.h".
12111         (pa_c_mode_for_suffix): New.
12112         (TARGET_EXPAND_BUILTIN): Define.
12113         (TARGET_C_MODE_FOR_SUFFIX): Define.
12114         (pa_builtins): Define.
12115         (pa_init_builtins): Register __float128 type and init new support
12116         builtins.
12117         * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
12118         * config/pa/quadlib.c (_U_Qfcopysign): New.
12119
12120 2011-01-18  Eric Botcazou  <ebotcazou@adacore.com>
12121
12122         PR middle-end/46894
12123         * explow.c (allocate_dynamic_stack_space): Do not assume more than
12124         BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
12125         are defined.
12126
12127 2011-01-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12128
12129         PR tree-optimization/47179
12130         * config/spu/spu.c (spu_ref_may_alias_errno): New function.
12131         (TARGET_REF_MAY_ALIAS_ERRNO): Define.
12132
12133 2011-01-18  Richard Guenther  <rguenther@suse.de>
12134
12135         PR rtl-optimization/47216
12136         * emit-rtl.c: Include tree-flow.h.
12137         (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
12138         of replicating it with different semantics.
12139         * Makefile.in (emit-rtl.o): Adjust.
12140
12141 2011-01-18  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12142
12143         * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
12144         (cortex_a9_dp): Handle neon types correctly.
12145
12146 2011-01-18  Jakub Jelinek  <jakub@redhat.com>
12147
12148         PR rtl-optimization/47299
12149         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
12150         subtarget.  Use normal multiplication if both operands are constants.
12151         * expmed.c (expand_widening_mult): Don't try to optimize constant
12152         multiplication if op0 has VOIDmode.  Convert op1 constant to mode
12153         before using it.
12154
12155 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12156
12157         * doc/lto.texi (LTO): Ensure two spaces after period.  Fix
12158         spacing after 'e.g.', typos, comma, hyphenation.
12159
12160 2011-01-17  Richard Henderson  <rth@redhat.com>
12161
12162         * config/rx/predicates.md (rx_constshift_operand): Use match_test.
12163         (rx_restricted_mem_operand): New.
12164         (rx_shift_operand): Use register_operand.
12165         (rx_source_operand, rx_compare_operand): Likewise.
12166         * config/rx/rx.md (addsi3_flags): New expander.
12167         (adddi3): Rewrite as expander.
12168         (adc_internal, *adc_flags, adddi3_internal): New patterns.
12169         (subsi3_flags): New expander.
12170         (subdi3): Rewrite as expander.
12171         (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
12172
12173         * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
12174         (rx_init_builtins): Remove sat builtin.
12175         (rx_expand_builtin): Likewise.
12176         * config/rx/rx.md (ssaddsi3): New.
12177         (*sat): Rename from sat.  Represent the CC_REG input.
12178
12179         * config/rx/predicates.md (rshift_operator): New.
12180         * config/rx/rx.c (rx_expand_insv): Remove.
12181         * config/rx/rx-protos.h: Update.
12182         * config/rx/rx.md (*bitset): Rename from bitset.  Swap the ashift
12183         operand to the canonical position.
12184         (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
12185         (*bitclr, *bitclr_in_memory): Similarly.
12186         (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
12187         (insv): Retain the zero_extract in the expansion.
12188
12189         * config/rx/rx.md (bswapsi2): Use = not + for output reload.
12190         (bswaphi2, bitinvert, revw): Likewise.
12191
12192         * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
12193         (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
12194         * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
12195         (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
12196         (bitset, bitset_in_memory): Likewise.
12197         (bitinvert, bitinvert_in_memory): Likewise.
12198         (bitclr, bitclr_in_memory): Likewise.
12199         (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
12200         (rx_strend, rx_cmpstrn): Likewise.
12201         (rx_setmem): Likewise.  Make the source BLKmode to match the dest.
12202         (bitop peep2 patterns): Remove.
12203
12204         * config/rx/rx.c (rx_match_ccmode): New.
12205         * config/rx/rx-protos.h: Update.
12206         * config/rx/rx.md (abssi2): Clobber, don't set flags.
12207         (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
12208         (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
12209         (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
12210         (fix_truncsfsi2, floatsisf2): Likewise.
12211         (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
12212         (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
12213         (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
12214         (*subsi3_flags, *xorsi3_flags): New.
12215
12216         * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
12217
12218         * config/rx/rx.c (rx_print_operand): Remove workaround for
12219         unsplit comparison operations.
12220
12221         * config/rx/rx.md (movsicc): Split after reload.
12222         (*movsicc): Merge *movsieq and *movsine via match_operator.
12223         (*stcc): New pattern.
12224
12225         * config/rx/rx.c (rx_float_compare_mode): Remove.
12226         * config/rx/rx.h (rx_float_compare_mode): Remove.
12227         * config/rx/rx.md (cstoresi4): Split after reload.
12228         (*sccc): New pattern.
12229
12230         * config/rx/predicates.md (label_ref_operand): New.
12231         (rx_z_comparison_operator): New.
12232         (rx_zs_comparison_operator): New.
12233         (rx_fp_comparison_operator): New.
12234         * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
12235         Validate that the flags are set properly for the comparison.
12236         (rx_gen_cond_branch_template): Remove.
12237         (rx_cc_modes_compatible): Remove.
12238         (mode_from_flags): New.
12239         (flags_from_code): Rename from flags_needed_for_conditional.
12240         (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
12241         (rx_select_cc_mode): Likewise.
12242         (rx_split_fp_compare): New.
12243         (rx_split_cbranch): New.
12244         * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
12245         (*cbranchsi4): Use match_operator and rx_split_cbranch.
12246         (*cbranchsf4): Similarly.
12247         (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>.  Use
12248         match_operator and rx_split_cbranch.
12249         (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
12250         tstbranchsi4m_ne.  Use match_operator and rx_split_cbranch.
12251         (*cmpsi): Rename from cmpsi.
12252         (*tstsi): Rename from tstsi.
12253         (*cmpsf): Rename from cmpsf; use CC_Fmode.
12254         (*conditional_branch): Rename from conditional_branch.
12255         (*reveresed_conditional_branch): Remove.
12256         (b<code>): Remove expander.
12257         * config/rx/rx-protos.h: Update.
12258
12259         * config/rx/rx.c (rx_compare_redundant): Remove.
12260         * config/rx/rx.md (cmpsi): Don't use it.
12261         * config/rx/rx-protos.h: Update.
12262
12263         * config/rx/rx-modes.def (CC_F): New mode.
12264         * config/rx/rx.c (rx_select_cc_mode): New.
12265         * config/rx/rx.h (SELECT_CC_MODE): Use it.
12266         * config/rx/rx-protos.h: Update.
12267
12268 2011-01-17  Richard Henderson  <rth@redhat.com>
12269
12270         * except.c (dump_eh_tree): Fix stray ; after for statement.
12271
12272 2011-01-17  Richard Guenther  <rguenther@suse.de>
12273
12274         PR tree-optimization/47313
12275         * tree-inline.c (tree_function_versioning): Move DECL_RESULT
12276         handling before copying the body.  Properly deal with
12277         by-reference result in SSA form.
12278
12279 2011-01-17  Ian Lance Taylor  <iant@google.com>
12280
12281         PR target/47219
12282         * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
12283         (struct_value_alias_set): Don't define.
12284         (sparc_option_override): Don't set sparc_sr_alias_set and
12285         struct_value_alias_set.
12286         (save_or_restore_regs): Use gen_frame_mem rather than calling
12287         set_mem_alias_set.
12288         (sparc_struct_value_rtx): Likewise.
12289
12290 2011-01-17  H.J. Lu  <hongjiu.lu@intel.com>
12291
12292         PR target/47318
12293         * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
12294         (_mm_maskstore_pd): Likewise.
12295         (_mm_maskload_ps): Likewise.
12296         (_mm_maskstore_ps): Likewise.
12297         (_mm256_maskload_pd): Change mask to __m256i.
12298         (_mm256_maskstore_pd): Likewise.
12299         (_mm256_maskload_ps): Likewise.
12300         (_mm256_maskstore_ps): Likewise.
12301
12302         * config/i386/i386-builtin-types.def: Updated.
12303         (ix86_expand_special_args_builtin): Likewise.
12304
12305         * config/i386/i386.c (bdesc_special_args): Update
12306         __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
12307         __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
12308         __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
12309         __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
12310
12311         * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
12312         Use <avxpermvecmode> on mask register.
12313         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
12314
12315 2011-01-17  Olivier Hainque  <hainque@adacore.com>
12316             Michael Haubenwallner  <michael.haubenwallner@salomon.at>
12317             Eric Botcazou  <ebotcazou@adacore.com>
12318
12319         PR target/46655
12320         * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
12321         if <= USHRT_MAX in 32-bit mode.
12322
12323 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12324
12325         * doc/install.texi (Configuration, Specific): Wrap long
12326         lines in examples.  Allow line wrapping in long options
12327         and URLs where beneficial for PDF output.
12328
12329 2011-01-16  Richard Sandiford  <rdsandiford@googlemail.com>
12330
12331         * config/mips/mips.c (mips_classify_symbol): Don't return
12332         SYMBOL_PC_RELATIVE for nonlocal labels.
12333
12334 2011-01-15  Eric Botcazou  <ebotcazou@adacore.com>
12335
12336         * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
12337
12338 2011-01-15  Jan Hubicka  <jh@suse.cz>
12339
12340         PR tree-optimization/47276
12341         * ipa.c (function_and_variable_visibility): Do not try to mark alias
12342         declarations as needed.
12343
12344 2011-01-15  Martin Jambor  <mjambor@suse.cz>
12345
12346         * common.opt (fdevirtualize): New flag.
12347         * doc/invoke.texi (Option Summary): Document it.
12348         * opts.c (default_options_table): Add devirtualize flag.
12349         * ipa-prop.c (detect_type_change): Return immediately if
12350         devirtualize flag is not set.
12351         (detect_type_change_ssa): Likewise.
12352         (compute_known_type_jump_func): Likewise.
12353         (ipa_analyze_virtual_call_uses): Likewise.
12354
12355 2011-01-14  Martin Jambor  <mjambor@suse.cz>
12356
12357         PR tree-optimization/45934
12358         PR tree-optimization/46302
12359         * ipa-prop.c (type_change_info): New type.
12360         (stmt_may_be_vtbl_ptr_store): New function.
12361         (check_stmt_for_type_change): Likewise.
12362         (detect_type_change): Likewise.
12363         (detect_type_change_ssa): Likewise.
12364         (compute_complex_assign_jump_func): Check for dynamic type change.
12365         (compute_complex_ancestor_jump_func): Likewise.
12366         (compute_known_type_jump_func): Likewise.
12367         (compute_scalar_jump_functions): Likewise.
12368         (ipa_analyze_virtual_call_uses): Likewise.
12369         (ipa_analyze_node): Push and pop cfun, set current_function_decl.
12370
12371 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
12372
12373         * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
12374         * config/i386/i386.opt (msse5): New Alias.
12375
12376 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
12377
12378         * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
12379         * config/sparc/linux64.h (CC1_SPEC): Likewise.
12380         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
12381         * config/sparc/sparc.h (CC1_SPEC): Likewise.
12382
12383 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
12384
12385         * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
12386         -mcpu options.
12387         * config/sparc/linux64.h (CC1_SPEC): Likewise.
12388         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
12389         * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
12390         * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
12391         Likewise.
12392         * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
12393
12394 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
12395
12396         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
12397
12398 2011-01-14  Mike Stump  <mikestump@comcast.net>
12399
12400         * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
12401         * config/fr30/fr30.md: Likweise
12402         (movsi_push): Likewise.
12403         (movsi_pop): Likewise.
12404         (enter_func): Likewise.
12405         * config/moxie/moxie.md (movsi_push): Likewise.
12406         (movsi_pop): Likewise.
12407
12408 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
12409
12410         * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
12411         %{no_archive} %{exact_version}.
12412         * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
12413         * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
12414         %{no_archive} %{exact_version}.
12415         * config/mips/openbsd.h (LINK_SPEC): Likewise.
12416         * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
12417         * config/mips/vxworks.h: Likewise.
12418
12419 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
12420
12421         * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
12422
12423 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
12424
12425         * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
12426         ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
12427
12428 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
12429
12430         * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
12431         -nodefaultlib.
12432
12433 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
12434
12435         * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
12436         for mcpu not cpu.
12437         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
12438         CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
12439         not cpu.
12440         (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
12441         Don't handle -shlib.
12442
12443 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
12444
12445         * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
12446         (CC1_SPEC): Don't handle -profile.
12447
12448 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
12449
12450         * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
12451         * config/mips/mips.h (CC1_SPEC): Likewise.
12452
12453 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
12454
12455         * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
12456         * config/mips/mips.h (CC1_SPEC): Likewise.
12457
12458 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
12459
12460         * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
12461         * config/m32r/linux.h (LINK_SPEC): Likewise.
12462         * config/mips/linux.h (LINK_SPEC): Likewise.
12463         * config/mips/linux64.h (LINK_SPEC): Likewise.
12464         * config/sparc/linux.h (LINK_SPEC): Likewise.
12465         * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
12466         LINK_SPEC): Likewise.
12467         * config/xtensa/linux.h (LINK_SPEC): Likewise.
12468
12469 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
12470
12471         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
12472         %{version:-v}.
12473         * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
12474
12475 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
12476
12477         * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
12478         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
12479
12480 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
12481
12482         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
12483
12484 2011-01-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12485
12486         * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
12487         supports -Bstatic/-Bdynamic.
12488         * configure: Regenerate.
12489
12490 2011-01-14  Jan Hubicka  <jh@suse.cz>
12491             Jack Howarth  <howarth@bromo.med.uc.edu>
12492
12493         PR target/46037
12494         * config/darwin.c (darwin_override_options): Honor flag_gtoggle
12495         when checking debug_info_level. Test write_symbols instead of
12496         debug_hooks->var_location when setting flag_var_tracking_uninit.
12497
12498 2011-01-14  Richard Guenther  <rguenther@suse.de>
12499
12500         PR tree-optimization/47179
12501         * target.def (ref_may_alias_errno): New target hook.
12502         * targhooks.h (default_ref_may_alias_errno): Declare.
12503         * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
12504         (default_ref_may_alias_errno): New function.
12505         * target.h (struct ao_ref_s): Declare.
12506         * tree-ssa-alias.c: Include target.h.
12507         (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
12508         * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
12509         (targhooks.o): Likewise.
12510         * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
12511         * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
12512
12513 2011-01-14  Richard Guenther  <rguenther@suse.de>
12514
12515         * tree-ssa-structalias.c  (new_var_info): Use DECL_HARD_REGISTER.
12516
12517 2011-01-14  Richard Guenther  <rguenther@suse.de>
12518
12519         PR tree-optimization/47280
12520         * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
12521         return CFG changes.
12522         (tree_ssa_forward_propagate_single_use_vars): Deal with
12523         CFG changes from associate_plusminus.
12524
12525 2011-01-14  Richard Guenther  <rguenther@suse.de>
12526
12527         PR middle-end/47281
12528         Revert
12529         2011-01-11  Richard Guenther  <rguenther@suse.de>
12530
12531         PR tree-optimization/46076
12532         * tree-ssa.c (useless_type_conversion_p): Conversions from
12533         unprototyped to empty argument list function types are useless.
12534
12535 2011-01-14  Richard Guenther  <rguenther@suse.de>
12536
12537         PR tree-optimization/47286
12538         * tree-ssa-structalias.c (new_var_info): Register variables are global.
12539
12540 2011-01-14  Martin Jambor  <mjambor@suse.cz>
12541
12542         PR middle-end/46823
12543         * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
12544
12545 2011-01-13  Anatoly Sokolov  <aesok@post.ru>
12546
12547         * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
12548         LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
12549         * config/xtensa/xtensa.c (xtensa_libcall_value,
12550         xtensa_function_value_regno_p): New functions.
12551         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
12552
12553 2011-01-13  Kai Tietz  <kai.tietz@onevision.com>
12554
12555         PR c++/47213
12556         * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
12557         PE specific hook.
12558         * config/i386/i386-protos.h (i386_pe_assemble_visibility):
12559         New function prototype.
12560         * config/i386/winnt.c (i386_pe_assemble_visibility):
12561         Warn only if attribute was specified by user.
12562
12563 2011-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
12564
12565         PR target/47251
12566         * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
12567         floating point.
12568         (floatunsdidf2_fcfidu): Ditto.
12569
12570 2011-01-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12571
12572         * config/s390/s390.c (print_operand_address): Replace 'error' with
12573         'output_operand_lossage'.
12574         (print_operand): Likewise.
12575
12576 2011-01-13  Jeff Law  <law@redhat.com>
12577
12578         PR rtl-optimization/39077
12579         * doc/invoke.texi (max-gcse-insertion-ratio): Document.
12580         * params.h (MAX_GCSE_INSERTION_RATIO): Define.
12581         * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
12582         * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
12583         * gcse.c (prune_insertions_deletions): New function.
12584         (compute_pre_data): Use it.
12585
12586 2011-01-13  Dodji Seketeli  <dodji@redhat.com>
12587
12588         PR debug/PR46973
12589         * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
12590         static function.
12591         (prune_unused_types_mark): Use it.
12592
12593 2011-01-13  Andrey Belevantsev  <abel@ispras.ru>
12594
12595         PR rtl-optimization/45352
12596         * sel-sched.c: Update copyright years.
12597         (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
12598         in the advancing loop when we have issued issue_rate insns.
12599
12600 2011-01-12  Richard Henderson  <rth@redhat.com>
12601
12602         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
12603         (TARGET_MD_ASM_CLOBBERS): New.
12604
12605         * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
12606         (TARGET_DELEGITIMIZE_ADDRESS): New.
12607
12608         * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
12609         (clzsi2, *bsch): New patterns.
12610
12611         * config/mn10300/mn10300.md (INT): New mode iterator.
12612         (*mov<INT>_clr): New pattern, and peep2 to generate it.
12613
12614         * config/mn10300/mn10300.c (mn10300_option_override): Force enable
12615         flag_split_wide_types.
12616
12617         * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
12618         (mn10300_trampoline_init): Rewrite without a template, an immediate
12619         load and a direct branch.
12620         * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
12621
12622 2011-01-12  Anatoly Sokolov  <aesok@post.ru>
12623
12624         * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
12625         * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
12626         * config/s390/s390.c (s390_output_addr_const_extra): Make static.
12627         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
12628
12629 2011-01-12  Kai Tietz  <kai.tietz@onevision.com>
12630
12631         PR debug/47209
12632         * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
12633         of type.
12634
12635 2011-01-12  Jan Hubicka  <jh@suse.cz>
12636
12637         PR driver/47244
12638         * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
12639         (PLUGIN_COND_CLOSE): New macro.
12640         (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
12641
12642 2011-01-12  Richard Guenther  <rguenther@suse.de>
12643
12644         PR lto/47259
12645         * lto-streamer-out.c (output_gimple_stmt): Do not wrap
12646         register variables in a MEM_REF.
12647
12648 2011-01-12  Joseph Myers  <joseph@codesourcery.com>
12649
12650         * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
12651         crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
12652         hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
12653         i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
12654         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
12655         x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
12656         ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
12657         m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
12658         mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
12659         s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
12660         sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
12661         am33_2.0-*-linux*): Use gnu-user.h before linux.h.
12662         * config/gnu-user.h: New.  Copied from linux.h.
12663         (LINUX_TARGET_STARTFILE_SPEC): Rename to
12664         GNU_USER_TARGET_STARTFILE_SPEC.
12665         (LINUX_TARGET_ENDFILE_SPEC): Rename to
12666         GNU_USER_TARGET_ENDFILE_SPEC.
12667         (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
12668         (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
12669         (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
12670         LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
12671         CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
12672         UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
12673         BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
12674         BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
12675         LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
12676         TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
12677         * config/arm/linux-eabi.h (CC1_SPEC): Use
12678         GNU_USER_TARGET_CC1_SPEC.
12679         (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
12680         (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
12681         (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
12682         * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
12683         LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
12684         LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
12685         CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
12686         LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
12687
12688 2011-01-12  Richard Guenther  <rguenther@suse.de>
12689
12690         PR other/46946
12691         * doc/invoke.texi (ffast-math): Document it is turned on
12692         with -Ofast.
12693
12694 2011-01-12  Jan Hubicka  <jh@suse.cz>
12695
12696         PR tree-optimization/47233
12697         * opts.c (common_handle_option): Disable ipa-reference with profile
12698         feedback.
12699
12700 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
12701
12702         * c-parser.c (c_parser_objc_at_property_declaration): Improved
12703         error message.
12704
12705 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
12706
12707         * c-parser.c (c_lex_one_token): Updated and reindented some
12708         comments.  No changes in code.
12709
12710 2011-01-11  Ian Lance Taylor  <iant@google.com>
12711
12712         * godump.c (go_output_var): Don't output the variable if there is
12713         already a type with the same name.
12714
12715 2011-01-11  Ian Lance Taylor  <iant@google.com>
12716
12717         * godump.c (go_format_type): Don't generate float80.
12718
12719 2011-01-11  Richard Henderson  <rth@redhat.com>
12720
12721         * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
12722         declaration.  Rewrite for both speed and size.
12723         (mn10300_address_cost_1): Remove.
12724         (mn10300_register_move_cost): New.
12725         (mn10300_memory_move_cost): New.
12726         (mn10300_rtx_costs): Rewrite for both speed and size.  Don't handle
12727         ZERO_EXTRACT.  Do handle UNSPEC, arithmetic, logicals, compare,
12728         extensions, shifts, BSWAP, CLZ.
12729         (mn10300_wide_const_load_uses_clr): Remove.
12730         (TARGET_REGISTER_MOVE_COST): New.
12731         (TARGET_MEMORY_MOVE_COST): New.
12732         * config/mn10300/mn10300-protos.h: Update.
12733         * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
12734
12735         * config/mn10300/constraints.md ("R", "T"): Remove constraints.
12736         * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
12737         * config/mn10300/mn10300-protos.h: Update.
12738         * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
12739         (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
12740         (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
12741         (*test_int_bitfield, *test_byte_bitfield): Remove.
12742         (*bit_test, *subreg_bit_test): Remove.
12743         * config/mn10300/predicates.md (const_8bit_operand): Remove.
12744
12745         * config/mn10300/constraints.md ("c"): Rename from "A".
12746         ("A", "D"): New constraint letters.
12747         * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
12748         (fmssf4, fnmasf4, fnmssf4): Likewise.
12749
12750         * config/mn10300/mn10300.md (isa): New attribute.
12751         (enabled): New attribute.
12752
12753         * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
12754         (abssf2, negsf2): Define only for hardware fp.
12755         (sqrtsf2): Reformat.
12756         (addsf3, subsf3, mulsf3): Merge expander and insn.
12757
12758         * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
12759         (DEBUGGER_AUTO_OFFSET): Remove.
12760         (DEBUGGER_ARG_OFFSET): Remove.
12761
12762         * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
12763         Emit register stores with the same offsets as the hardware.
12764         (mn10300_store_multiple_operation): Don't check that the register
12765         save offsets are monotonic.
12766         * config/mn10300/mn10300-protos.h: Update.
12767
12768         * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
12769
12770         * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
12771         in terms of the value on the stack, not the MDR register.
12772
12773 2011-01-11  Jan Hubicka  <jh@suse.cz>
12774
12775         PR lto/45721
12776         PR lto/45375
12777         * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
12778         (symbol_alias_set_destroy, symbol_alias_set_contains,
12779         propagate_aliases_backward): Declare.
12780         * lto-streamer-out.c (struct sets): New sturcture.
12781         (trivally_defined_alias): New function.
12782         (output_alias_pair_p): Rewrite.
12783         (output_unreferenced_globals): Fix output of alias pairs.
12784         (produce_symtab): Likewise.
12785         * ipa.c (function_and_variable_visibility): Set weak alias destination
12786         as needed in lto.
12787         * varasm.c (symbol_alias_set_t): Remove.
12788         (symbol_alias_set_destroy): Export.
12789         (propagate_aliases_forward, propagate_aliases_backward): New functions
12790         based on ...
12791         (compute_visible_aliases): ... this one; remove.
12792         (trivially_visible_alias): New
12793         (trivially_defined_alias): New.
12794         (remove_unreachable_alias_pairs): Rewrite.
12795         (finish_aliases_1): Reorganize code checking if alias is defined.
12796         * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
12797         in LTO mode.
12798
12799 2011-01-11  Richard Guenther  <rguenther@suse.de>
12800
12801         PR tree-optimization/46076
12802         * tree-ssa.c (useless_type_conversion_p): Conversions from
12803         unprototyped to empty argument list function types are useless.
12804
12805 2011-01-11  Richard Guenther  <rguenther@suse.de>
12806
12807         PR middle-end/45235
12808         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
12809         volatile MEMs as MEM_READONLY_P.
12810
12811 2011-01-11  Richard Guenther  <rguenther@suse.de>
12812
12813         PR tree-optimization/47239
12814         * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
12815
12816 2011-01-11  Jeff Law  <law@redhat.com>
12817
12818         PR tree-optimization/47086
12819         * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
12820         IVs from statements that might throw.
12821
12822 2011-01-10  Jan Hubicka  <jh@suse.cz>
12823
12824         PR lto/45375
12825         * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
12826
12827 2011-01-10  Jan Hubicka  <jh@suse.cz>
12828
12829         PR lto/45375
12830         * profile.c (read_profile_edge_counts): Ignore profile inconistency
12831         when correcting profile.
12832
12833 2011-01-10  Jan Hubicka  <jh@suse.cz>
12834
12835         PR lto/46083
12836         * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
12837         DECL_FINI_PRIORITY.
12838         * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
12839         Restore DECL_FINI_PRIORITY.
12840
12841 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12842
12843         * doc/gimple.texi: Fix quoting of multi-word return values in
12844         @deftypefn statements.  Ensure presence of return value.  Wrap
12845         overlong @deftypefn lines.
12846         (is_gimple_operand, is_gimple_min_invariant_address): Remove
12847         descriptions of removed functions.
12848         * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
12849         of multi-word return value in @deftypefn statement.
12850
12851 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12852
12853         * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
12854         (Conditional Expressions, Logical Operators)
12855         (Statement and operand traversals): Do not indent smallexample
12856         code.  Fix duplicate function argument in example.
12857
12858 2011-01-10  Jeff Law  <law@redhat.com>
12859
12860         PR tree-optimization/47141
12861         * ipa-split.c (split_function): Handle case where we are
12862         returning a value and the return block has a virtual operand phi.
12863
12864 2011-01-10  Jan Hubicka  <jh@suse.cz>
12865
12866         PR tree-optimization/47234
12867         * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
12868         (pass_feedback_split_functions): Declare.
12869         * passes.c (init_optimization_passes): Add ipa-split as subpass of
12870         tree-profile.
12871         * ipa-split.c (gate_split_functions): Update comments; disable
12872         split-functions for profile_arc_flag and branch_probabilities.
12873         (gate_feedback_split_functions): New function.
12874         (execute_feedback_split_functions): New function.
12875         (pass_feedback_split_functions): New global var.
12876
12877 2011-01-10  H.J. Lu  <hongjiu.lu@intel.com>
12878
12879         PR lto/46760
12880         * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
12881         calling gimple_call_set_cannot_inline.
12882
12883 2011-01-10  Iain Sandoe  <iains@gcc.gnu.org>
12884
12885         * config/darwin-sections.def: Remove unused section.
12886
12887 2011-01-10  Dave Korn  <dave.korn.cygwin@gmail.com>
12888
12889         PR c++/47218
12890         * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
12891
12892 2011-01-09  Nicola Pero  <nicola.pero@meta-innovation.com>
12893
12894         PR objc/47232
12895         * c-parser.c (c_parser_declaration_or_fndef): Improved
12896         error message.
12897
12898 2011-01-09  Kai Tietz  <kai.tietz@onevision.com>
12899
12900         * config/i386/winnt.c (i386_pe_start_function): Make sure
12901         to switch back to function's section.
12902
12903 2011-01-09  Iain Sandoe  <iains@gcc.gnu.org>
12904
12905         PR gcc/46902
12906         PR testsuite/46912
12907         * plugin.c: Move include of dlfcn.h from here...
12908         * system.h: ... to here.
12909
12910 2011-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12911
12912         * doc/cpp.texi (C++ Named Operators): Fix markup for header
12913         file name.
12914         * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
12915         two extra empty pages in PDF output.
12916
12917 2011-01-08  Nicola Pero  <nicola.pero@meta-innovation.com>
12918
12919         PR objc/47078
12920         * c-parser.c (c_parser_objc_type_name): If the type is unknown,
12921         for error recovery purposes behave as if it was not specified so
12922         that the default type is usd.
12923
12924 2011-01-07  Jan Hubicka  <jh@suse.cz>
12925
12926         PR tree-optmization/46469
12927         * ipa.c (function_and_variable_visibility): Clear needed flags on
12928         nodes with external decls; handle weakrefs merging correctly.
12929
12930 2011-01-07  Joseph Myers  <joseph@codesourcery.com>
12931
12932         * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
12933         not false.
12934
12935 2011-01-07  Jan Hubicka  <jh@suse.cz>
12936
12937         * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
12938         and no longer claim that gold is required for linker plugin.
12939         * configure: Regenerate.
12940         * gcc.c (PLUGIN_COND): New macro.
12941         (LINK_COMMAND_SPEC): Use it.
12942         (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
12943         * config.in (HAVE_LTO_PLUGIN): New.
12944         * configure.ac (--with-lto-plugin): New parameter; autodetect
12945         HAVE_LTO_PLUGIN.
12946
12947 2011-01-07  Jan Hubicka  <jh@suse.cz>
12948
12949         PR tree-optimization/46367
12950         * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
12951         when we can update original.
12952         (cgraph_mark_inline_edge): Sanity check.
12953         * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
12954
12955 2011-01-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12956
12957         * config/spu/spu.h (ASM_COMMENT_START): Define.
12958
12959 2011-01-07  H.J. Lu  <hongjiu.lu@intel.com>
12960
12961         PR driver/42445
12962         * gcc.c (%>S): New.
12963         (SWITCH_KEEP_FOR_GCC): Likewise.
12964         (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
12965         (do_spec_1): Handle "%>".
12966
12967         * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
12968
12969 2011-01-07  Jakub Jelinek  <jakub@redhat.com>
12970
12971         PR target/47201
12972         * config/i386/i386.c (ix86_delegitimize_address): If
12973         simplify_gen_subreg fails, return orig_x.
12974
12975         PR bootstrap/47187
12976         * value-prof.c (gimple_stringop_fixed_value): Handle
12977         lhs of the call properly.
12978
12979 2011-01-07  Jan Hubicka  <jh@suse.cz>
12980
12981         PR lto/45375
12982         * lto-opt.c (lto_reissue_options): Set flag_shlib.
12983
12984 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
12985
12986         * target.def (function_switched_text_sections): New hook.
12987         * doc/tm.texi: Regenerated.
12988         * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
12989         * final.c (default_function_switched_text_sections): New.
12990         (final_scan_insn): Call function_switched_text_sections when a
12991         mid-function section change occurs.
12992         * output.h (default_function_switched_text_sections): Declare.
12993         * config/darwin-protos.h (darwin_function_switched_text_sections):
12994         Likewise.
12995         * config/darwin.c (darwin_function_switched_text_sections): New.
12996         * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
12997
12998 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
12999
13000         * dwarf2out.c (gen_subprogram_die):  Add pubnames with code ranges for
13001         DWARF >= 3.  Add pubnames for the primary section and a reduced DIE for
13002         the secondary code fragment when outputting for DWARF == 2.
13003
13004 2011-01-07  Anatoly Sokolov  <aesok@post.ru>
13005
13006         * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
13007         * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
13008         Remove.
13009         * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
13010         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
13011
13012 2011-01-06  Eric Botcazou  <ebotcazou@adacore.com>
13013
13014         PR debug/46704
13015         * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
13016         when it is not empty.
13017
13018 2011-01-06  Changpeng Fang  <changpeng.fang@amd.com>
13019
13020         Bobcat Enablement
13021         * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
13022         (case ${target}): Add btver1.
13023         * config/i386/driver-i386.c (host_detect_local_cpu): Let
13024         -march=native recognize btver1 processors.
13025         * config/i386/i386-c.c (ix86_target_macros_internal): Add
13026         btver1 def_and_undef
13027         * config/i386/i386.c (struct processor_costs btver1_cost): New
13028         btver1 cost table.
13029         (m_BTVER1): New definition.
13030         (m_AMD_MULTIPLE): Includes m_BTVER1.
13031         (initial_ix86_tune_features): Add btver1 tune.
13032         (processor_target_table): Add btver1 entry.
13033         (static const char *const cpu_names): Add btver1 entry.
13034         (software_prefetching_beneficial_p): Add btver1.
13035         (ix86_option_override_internal): Add btver1 instruction sets.
13036         (ix86_issue_rate): Add btver1.
13037         (ix86_adjust_cost): Add btver1.
13038         * config/i386/i386.h (TARGET_BTVER1): New definition.
13039         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
13040         (enum processor_type): Add PROCESSOR_BTVER1.
13041         * config/i386/i386.md (define_attr "cpu"): Add btver1.
13042
13043 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13044
13045         PR target/43309
13046         * config/i386/i386.c (legitimize_tls_address)
13047         <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
13048         * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
13049         (tls_initial_exec_64_sun): New pattern.
13050
13051 2011-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
13052
13053         * doc/invoke.texi (Overall Options): Improve wording and markup
13054         of the description of -wrapper.
13055
13056 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
13057
13058         * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
13059         rdynamic, threads): New Driver options.
13060
13061 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13062
13063         PR target/38118
13064         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
13065         if coming from .tdata.
13066         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
13067
13068 2011-01-06  Jan Hubicka  <jh@suse.cz>
13069
13070         PR lto/47188
13071         * collect2.c (main): Do not enable LTOmode when plugin is active.
13072
13073 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13074
13075         PR other/45915
13076         * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
13077         --version output if supported.
13078         * configure: Regenerate.
13079
13080 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
13081
13082         * config/linux-android.opt (tno-android-cc, tno-android-ld): New
13083         Driver options.
13084
13085 2011-01-06  Jakub Jelinek  <jakub@redhat.com>
13086
13087         PR c/47150
13088         * c-convert.c (convert): When converting a complex expression
13089         other than COMPLEX_EXPR to a different complex type, ensure
13090         c_save_expr is called instead of save_expr, unless in_late_binary_op.
13091         * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
13092         when converting COMPLEX_TYPE.
13093
13094 2011-01-06  Ira Rosen  <irar@il.ibm.com>
13095
13096         PR tree-optimization/47139
13097         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
13098         only the last reduction value is used outside the loop.  Update
13099         documentation.
13100
13101 2011-01-05  Joseph Myers  <joseph@codesourcery.com>
13102
13103         * config/rtems.opt: New.
13104         * config.gcc (*-*-rtems*): Use rtems.opt.
13105
13106 2011-01-05  Changpeng Fang  <changpeng.fang@amd.com>
13107
13108         * config/i386/i386.c (ix86_option_override_internal): Bulldozer
13109         processors do not support 3DNow instructions.
13110
13111 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13112
13113         * config/spu/spu.c (spu_option_override): Set parameter
13114         PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
13115
13116 2011-01-05  Jan Hubicka  <jh@suse.cz>
13117
13118         * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
13119         at the command line.
13120
13121 2011-01-05  Martin Jambor  <mjambor@suse.cz>
13122
13123         PR lto/47162
13124         * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
13125         deltas on streamed outgoing edges.
13126         (output_node_opt_summary): Output info for outgoing edges only when
13127         the node is in new parameter set.
13128         (output_cgraph_opt_summary): New parameter set, passed to the two
13129         aforementioned functions.  Update its forward declaration and its
13130         callee too.
13131
13132 2011-01-05  Tom Tromey  <tromey@redhat.com>
13133
13134         * c-parser.c (c_parser_omp_atomic): Pass location of assignment
13135         operator to c_finish_omp_atomic.
13136         * c-typeck.c (lvalue_or_else): Add 'loc' argument.
13137         (build_unary_op): Update.
13138         (build_modify_expr): Update.
13139         (build_asm_expr): Update.
13140
13141 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13142
13143         * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
13144         newly inserted insns.
13145         (pad_bb): Likewise.
13146         (spu_emit_branch_hint): Likewise.
13147         (insert_hbrp_for_ilb_runout): Likewise.
13148         (spu_machine_dependent_reorg): Call df_finish_pass after
13149         schedule_insns returns.
13150
13151 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13152
13153         * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
13154
13155 2011-01-05  Eric Botcazou  <ebotcazou@adacore.com>
13156
13157         PR tree-optimization/47005
13158         * tree-sra.c (struct access): Add 'non_addressable' bit.
13159         (create_access): Set it for a DECL_NONADDRESSABLE_P field.
13160         (decide_one_param_reduction): Return 0 if the parameter is passed by
13161         reference and one of the accesses in the group is non_addressable.
13162
13163 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
13164
13165         PR tree-optimization/47056
13166         * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
13167         (mark_load): Likewise.  Handle FUNCTION_DECL specially.
13168         (mark_store): Likewise.  Pass STMT to ipa_record_reference.
13169
13170 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
13171
13172         * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
13173         initializer.  Skip view conversions from aggregate types.
13174
13175 2011-01-04  Kai Tietz  <kai.tietz@onevision.com>
13176
13177         PR bootstrap/47055
13178         * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
13179
13180 2011-01-04  Philipp Thomas  <pth@suse.de>
13181
13182         * config/microblaze/microbalse.opt (mxl-float-convert): Fix
13183         obvious typo.
13184
13185 2011-01-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13186
13187         * function.c (thread_prologue_and_epilogue_insns): Do not crash
13188         on empty epilogue sequences.
13189
13190 2011-01-04  Joseph Myers  <joseph@codesourcery.com>
13191
13192         * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
13193         non-static): New Driver options.
13194
13195 2011-01-04  Jie Zhang  <jie@codesourcery.com>
13196
13197         PR driver/47137
13198         * gcc.c (default_compilers[]): Set combinable field to 0
13199         for all assembly languages.
13200
13201 2011-01-04  Mingjie Xing  <mingjie.xing@gmail.com>
13202
13203         * config/mips/loongson3a.md: New file.
13204         * config/mips/mips.md: Include loongson3a.md.
13205         * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
13206         TUNE_LOONGSON_3A.
13207
13208 2011-01-03  Eric Botcazou  <ebotcazou@adacore.com>
13209
13210         PR middle-end/47017
13211         * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
13212         instead of convert_memory_address_addr_space on the base expression.
13213
13214 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13215
13216         * config/spu/spu.c (spu_option_override): Update error text
13217         for bad -march= / -mtune= values.
13218
13219 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13220
13221         * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
13222         if branch-hint optimization will be performed.
13223
13224 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
13225
13226         PR tree-optimization/47148
13227         * ipa-split.c (split_function): Convert arguments to
13228         DECL_ARG_TYPE if possible.
13229
13230         PR tree-optimization/47155
13231         * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
13232         when computing uns.
13233
13234         PR rtl-optimization/47157
13235         * combine.c (try_combine): If undobuf.other_insn becomes
13236         (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
13237         and set *new_direct_jump_p too.
13238
13239 2011-01-03  Sebastian Pop  <sebastian.pop@amd.com>
13240
13241         PR tree-optimization/47021
13242         * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
13243
13244 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
13245
13246         * gcc.c (process_command): Update copyright notice dates.
13247         * gcov.c (print_version): Likewise.
13248         * gcov-dump.c (print_version): Likewise.
13249         * mips-tfile.c (main): Likewise.
13250         * mips-tdump.c (main): Likewise.
13251
13252 2011-01-03  Martin Jambor  <mjambor@suse.cz>
13253
13254         PR tree-optimization/46801
13255         * tree-sra.c (type_internals_preclude_sra_p): Check whether
13256         aggregate fields start at byte boundary instead of the bit-field flag.
13257
13258 2011-01-03  H.J. Lu  <hongjiu.lu@intel.com>
13259
13260         PR driver/47137
13261         * gcc.c (main): Revert revision 168407.
13262
13263 2011-01-03  Martin Jambor  <mjambor@suse.cz>
13264
13265         * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
13266
13267 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13268
13269         * tree-vect-generic.c (expand_vector_operations_1): When using vector/
13270         vector optab to expand vector/scalar shift, update gimple to vector.
13271
13272 2011-01-03  Martin Jambor  <mjambor@suse.cz>
13273
13274         * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
13275         a thunk.
13276
13277 2011-01-03  Martin Jambor  <mjambor@suse.cz>
13278
13279         PR tree-optimization/46984
13280         * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
13281         HOST_WIDE_INT.
13282         (cgraph_create_indirect_edge): Fixed line length.
13283         (cgraph_indirect_call_info): Declare.
13284         (cgraph_make_edge_direct) Update declaration.
13285         * cgraph.c (cgraph_allocate_init_indirect_info): New function.
13286         (cgraph_create_indirect_edge): Use it.
13287         (cgraph_make_edge_direct): Made delta HOST_WIDE_INT.  Updated all
13288         callees.
13289         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
13290         the new thunk_delta representation.
13291         * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
13292         HOST_WIDE_INT.
13293         (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
13294         (ipa_read_indirect_edge_info): Likewise.
13295         * lto-cgraph.c (output_edge_opt_summary): New function.
13296         (output_node_opt_summary): Call it on all outgoing edges.
13297         (input_edge_opt_summary): New function.
13298         (input_node_opt_summary): Call it on all outgoing edges.
13299
13300 2011-01-02  H.J. Lu  <hongjiu.lu@intel.com>
13301
13302         PR driver/47137
13303         * gcc.c (main): Don't check have_o when settting combine_inputs.
13304
13305 2011-01-02  Eric Botcazou  <ebotcazou@adacore.com>
13306
13307         * regrename.c: Add general comment describing the pass.
13308         (struct du_head): Remove 'length' field.
13309         (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
13310         (regrename_optimize): Do not sort chains.  Rework comments, add others.
13311         Force renaming to the preferred class (if any) in the first pass and do
13312         not consider registers that belong to it in the second pass.
13313         (create_new_chain): Do not set 'length' field.
13314         (scan_rtx_reg): Likewise.
13315
13316 2011-01-02  Jakub Jelinek  <jakub@redhat.com>
13317
13318         PR tree-optimization/47140
13319         * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
13320         TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
13321         to bit_value_binop.
13322
13323         PR rtl-optimization/47028
13324         * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
13325         parm_birth_insn instead of at the beginning of first bb.
13326
13327 2011-01-02  Mingjie Xing  <mingjie.xing@gmail.com>
13328
13329         * doc/generic.texi: Remove duplicated "@subsubsection Statements".
13330         Remove the word "see" before "@pxref".
13331         * doc/rtl.texi: Remove the word "see" before "@pxref".
13332
13333 2011-01-01  Jan Hubicka  <jh@suse.cz>
13334
13335         * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
13336         memory.
13337
13338 2011-01-01  Kai Tietz  <kai.tietz@onevision.com>
13339
13340         PR target/38662
13341         * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
13342
13343 \f
13344 Copyright (C) 2011 Free Software Foundation, Inc.
13345
13346 Copying and distribution of this file, with or without modification,
13347 are permitted in any medium without royalty provided the copyright
13348 notice and this notice are preserved.