OSDN Git Service

* cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2011-05-08  Jan Hubicka  <jh@suse.cz>
2
3         * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
4         (cgraph_create_virtual_clone): Call hooks once virtual clone is finished.
5         * cgraph.h (cgraph_clone_node): Update prototype.
6         * ipa-cp.c (ipcp_estimate_growth): Use estimate_ipcp_clone_size_and_time.
7         * ipa-inline-transform.c (clone_inlined_nodes): Update.
8         * lto-cgraph.c (input_node): Update.
9         * ipa-inline.c (recursive_inlining): Update.
10         * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
11         (evaluate_conditions_for_known_args): Break out from ...
12         (evaluate_conditions_for_edge): ... here.
13         (evaluate_conditions_for_ipcp_clone): New function.
14         (inline_node_duplication_hook): Update clone summary based
15         on parameter map.
16         (estimate_callee_size_and_time): Rename to ...
17         (estimate_node_size_and_time): take NODE instead of EDGE;
18         take POSSIBLE_TRUTHS as argument.
19         (estimate_callee_size_and_time): Update.
20         (estimate_ipcp_clone_size_and_time): New function.
21         (do_estimate_edge_time): Update.
22
23 2011-05-08  Richard Guenther  <rguenther@suse.de>
24
25         PR middle-end/48908
26         PR middle-end/48905
27         * expmed.c (expand_shift_1): Compute adjusted constant shift
28         amount manually.
29
30 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
31
32         * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
33
34 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
35
36         * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
37
38 2011-05-08  Jonathan Wakely  <jwakely.gcc@gmail.com>
39
40         * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
41
42 2011-05-07  Jan Hubicka  <jh@suse.cz>
43
44         * ipa-inline-transform.c (inline_call): Account when program size
45         decreases.
46         * ipa-inline.c (relative_time_benefit): New function.
47         (edge_badness): Reorganize to be power 2 based; fix thinko when
48         computing badness for negative growth; update comments to match
49         reality; better dumps.
50
51 2011-05-07  Eric Botcazou  <ebotcazou@adacore.com>
52
53         * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
54         type to bool and adjust comment.
55         * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
56         (fold_mathfn_compare): Remove calls to global_bindings_p.
57         (fold_inf_compare): Likewise.
58         * stor-layout.c (variable_size): Adjust call to global_bindings_p.
59         * c-tree.h (global_bindings_p): Adjust prototype.
60         * c-decl.c (global_bindings_p): Return bool and simplify.
61
62 2011-05-07  Zdenek Dvorak  <ook@ucw.cz>
63
64         PR tree-optimization/48837
65         * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
66         when accumulator transformation is performed.
67
68 2011-05-06  Jan Hubicka  <jh@suse.cz>
69
70         * i386.h (ix86_tune_indices): Add
71         X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
72         (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macor.
73         * i386.c (initial_ix86_tune_features): Add
74         X86_SOFTARE_PREFETCHING_BENEFICIAL.
75         (software_prefetching_beneficial_p): Remove predicate.
76         (ix86_option_override_internal): Use new macro.
77
78 2011-05-06  Jan Hubicka  <jh@suse.cz>
79
80         * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
81
82 2011-05-06  Jan Hubicka  <jh@suse.cz>
83
84         * cgraph.c (cgraph_add_thunk): Create real function node instead
85         of alias node; finalize it and mark needed/reachale; arrange visibility
86         to be right and add it into the corresponding same comdat group list.
87         (dump_cgraph_node): Dump thunks.
88         * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
89         cgraph_function_with_gimple_body_p,
90         cgraph_first_function_with_gimple_body,
91         cgraph_next_function_with_gimple_body): New functions.
92         (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
93         New macros.
94         * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
95         (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
96         * cgraphunit.c (cgraph_finalize_function): Only look into possible
97         devirtualization when optimizing.
98         (verify_cgraph_node): Verify thunks.
99         (cgraph_analyze_function): Analyze thunks.
100         (cgraph_mark_functions_to_output): Output thunks only in combination
101         with function they are assigned to.
102         (assemble_thunk): Turn thunk into non-thunk; don't try to turn
103         alias into normal node.
104         (assemble_thunks): New functoin.
105         (cgraph_expand_function): Use it.
106         * lto-cgraph.c (lto_output_node): Stream thunks.
107         (input_overwrite_node): Stream in thunks.
108         * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
109         * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
110         * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
111         * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
112         (inline_analyze_function): Do not care about thunk jump functions.
113         (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
114         * ipa-prop.c (ipa_prop_write_jump_functions): Use
115         cgraph_function_with_gimple_body_p.
116         * passes.c (do_per_function_toporder): Use
117         cgraph_function_with_gimple_body_p.
118         (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
119         (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
120         (function_called_by_processed_nodes_p): Likewise.
121
122 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
123
124         * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
125         rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
126         entries.
127         (mabi=): Replace with separate entries for mabi=altivec,
128         mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
129         mabi=ieeelongdouble and mabi=ibmlongdouble.
130         * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
131         check for -mabi=spe without SPE ABI support here.
132         (rs6000_handle_option): Replace OPT_mabi_ handling with
133         OPT_mabi_altivec and OPT_mabi_spe handling.
134
135 2011-05-06  Cary Coutant  <ccoutant@google.com>
136
137         * dwarf2out.c (contains_subprogram_definition): New function.
138         (should_move_die_to_comdat): Call it.
139
140 2011-05-06  Jeff Law  <law@redhat.com>
141
142         * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
143         remove_ctrl_stmt_and_useless_edges.
144         (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
145         (fixup_template_block, thread_single_edge): Likewise.
146         (mark_threaded_blocks): Use THREAD_TARGET.
147
148 2011-05-06  Alan Modra  <amodra@gmail.com>
149
150         PR target/48900
151         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
152         const0_rtx as the arg to the dummy __tls_get_addr libcall.
153
154 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
155
156         * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
157         constraint modifier to "r".
158
159 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
160
161         * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
162         fall through for OPT_mcmodel_.
163
164 2011-05-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
165
166         * config/s390/s390.c (s390_asm_trampoline_template): Comment
167         instruction sizes.
168         (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
169
170 2011-05-06  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
171
172       PR target/47930
173       * config/arm/arm.opt (marm): Document it.
174       (mthumb): Reject negative variant.
175
176 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
177
178         PR target/48898
179         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
180         Fix typo in "ccvt" variable name.
181
182 2011-05-06  Tristan Gingold  <gingold@adacore.com>
183
184         PR target/48895
185         * config/vms/vms-ar.c (main): Remove cwd variable.
186
187 2011-05-06  Jakub Jelinek  <jakub@redhat.com>
188
189         PR debug/48902
190         * var-tracking.c (prepare_call_arguments): Move else before #endif.
191
192 2011-05-05  Nathan Froyd  <froydnj@codesourcery.com>
193
194         * except.c (sjlj_emit_dispatch_table): Call build_case_label.
195         * gimplify.c (gimplify_switch_expr): Likewise.
196         * omp-low.c (expand_omp_sections): Likewise.
197         * tree-eh.c (lower_try_finally_switch): Likewise.
198         (lower_eh_dispatch): Likewise.
199         * tree.h (build_case_label): Declare.
200         * tree.c (build_case_label): Define.
201
202 2011-05-05  Jason Merrill  <jason@redhat.com>
203
204         PR c++/40975
205         * tree-inline.c (copy_tree_r): Use copy_statement_list.
206         (copy_statement_list): Don't recurse.
207         * stor-layout.c (copy_self_referential_tree_r): Don't allow
208         STATEMENT_LIST.
209
210 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
211
212         * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
213         through from -mfpu= handling.
214         * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
215
216 2011-05-05  Bernd Schmidt  <bernds@codesourcery.com>
217
218         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
219         POST_MODIFY.
220
221 2011-05-05  Steve Ellcey  <sje@cup.hp.com>
222
223         * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
224         for 11.31.
225         (hppa[12]*-*-hpux11*): Ditto.
226         (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
227         * config/ia64/hpux-unix2003.h: New.
228         * config/pa/pa-hpux1131.opt: New.
229         * config/pa/pa-hpux1131.h: New.
230         * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
231         * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
232         * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
233
234 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
235
236         PR debug/48853
237         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
238         instead of mode as 3rd argument to recursive call.
239         (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
240         emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
241         VOIDmode.
242         (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
243         don't give up if mode is Pmode and mem_mode is not VOIDmode.
244         (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
245         use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
246
247 2011-05-05  Julian Brown  <julian@codesourcery.com>
248
249         * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
250         parenthesis in D-register case.
251
252 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
253
254         * opt-functions.awk (var_type_struct): Handle Enum options.
255         * optc-gen.awk: Don't check range of variables of character type.
256         * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
257         rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
258         rs6000_sdata_name, rs6000_explicit_options): Remove.
259         (rs6000_option_override_internal): Check for -malign-power here.
260         Use global_options_set instead of rs6000_explicit_options.
261         (rs6000_parse_fpu_option): Remove.
262         (rs6000_handle_option): Access variables via opts and opts_set
263         pointers.  Use error_at and warning_at.  Add fall-through
264         comments.  Don't handle OPT_mcmodel_, OPT_maix_struct_return,
265         OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
266         OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
267         OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
268         here.  Don't use rs6000_parse_fpu_option.
269         * config/rs6000/rs6000.h (fpu_type): Remove declaration.
270         * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
271         rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
272         (mrecip=): Use Var.
273         (mspe): Use Var and Save.
274         (mtraceback=): Use Enum and Var.
275         (rs6000_traceback_type): New Enum and EnumValue entries.
276         (mfloat-gprs=): Use Enum, Var and Save.
277         (rs6000_float_gprs): New Enum and EnumValue entries.
278         (mlong-double-): use Var and Save.
279         (msched-costly-dep=, minsert-sched-nops=): Use Var.
280         (malign-): Use Enum and Var.
281         (rs6000_alignment_flags): New Enum and EnumValue entries.
282         (mfpu=): Use Enum.
283         (fpu_type_t): New Enum and EnumValue entries.
284         * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
285         global_options_set instead of rs6000_explicit_options.
286         * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
287         global_options_set instead of rs6000_explicit_options.
288         * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
289         global_options_set instead of rs6000_explicit_options.
290         * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
291         global_options_set instead of rs6000_explicit_options.
292         * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
293         global_options_set instead of rs6000_explicit_options.
294         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
295         global_options_set instead of rs6000_explicit_options.
296         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
297         definition.
298         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
299         global_options_set instead of rs6000_explicit_options.
300         * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
301         (rs6000_cmodel): New Enum and EnumValue entries.
302         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
303         global_options_set instead of rs6000_explicit_options.
304         * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
305         (mtls-size=): Use Enum and Var.
306         (rs6000_tls_size): New Enum and EnumValue entries.
307
308 2011-05-05  Michael Matz  <matz@suse.de>
309
310         * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
311         * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
312         * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
313         * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
314         * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
315         * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
316         * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
317         * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
318         * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
319         * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
320         * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
321         * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
322         * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
323         * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
324         * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
325         * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
326
327 2011-05-05  Richard Guenther  <rguenther@suse.de>
328
329         * expmed.c (expand_variable_shift): Rename to ...
330         (expand_shift_1): ... this.  Take an expanded shift amount.
331         For rotates recurse directly not building trees for the shift amount.
332         (expand_variable_shift): Wrap around expand_shift_1.
333         (expand_shift): Adjust.
334
335 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
336
337         * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
338
339 2011-05-05  Eric Botcazou  <ebotcazou@adacore.com>
340
341         * tree.h (get_pending_sizes): Remove prototype.
342         (put_pending_size): Likewise.
343         (put_pending_sizes): Likewise.
344         * stor-layout.c (pending_sizes): Delete.
345         (get_pending_sizes): Likewise.
346         (put_pending_size): Likewise.
347         (put_pending_sizes): Likewise.
348         (variable_size): Do not call put_pending_size and tidy up.
349         * function.h (struct function): Remove dont_save_pending_sizes_p.
350         * lto-streamer-in.c (input_function): Do not stream it.
351         * lto-streamer-out.c (output_function): Likewise.
352         * tree-inline.c (initialize_cfun): Do not copy it.
353         * c-decl.c (store_parm_decls): Do not set it.
354         * omp-low.c (create_task_copyfn): Likewise.
355         * tree-optimize.c (tree_rest_of_compilation): Likewise.
356
357 2011-05-05  Uros Bizjak  <ubizjak@gmail.com>
358
359         * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
360         conditions.
361         (*movdf_internal): Ditto.
362         (*movdf_internal_nointeger): Ditto.
363         (*movsf_internal): Ditto.
364
365 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
366
367         * c-decl.c (finish_decl): Don't call get_pending_sizes.
368         (grokparm): Add parameter expr.  Pass it to grokdeclarator.
369         (push_parm_decl): Add parameter expr.  Pass it to grokdeclarator.
370         (c_variable_size): Remove.
371         (grokdeclarator): Use save_expr instead of c_variable_size.  Don't
372         call put_pending_sizes.
373         (get_parm_info): Add parameter expr.  Use it to set
374         arg_info->pending_sizes.
375         (store_parm_decls): Use arg_info->pending_sizes instead or calling
376         get_pending_sizes.
377         * c-parser.c (c_parser_parms_declarator): Update call to
378         c_parser_parms_list_declarator.
379         (c_parser_parms_list_declarator): Take parameter expr.  Update
380         call to push_parm_decl.  Update recursive call.  Don't call
381         get_pending_sizes.  Update calls to get_parm_info.
382         (c_parser_objc_method_definition): Update calls to
383         c_parser_objc_method_decl and objc_start_method_definition.
384         (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
385         (c_parser_objc_method_decl): Add parameter expr.  Update call to
386         grokparm.
387         (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
388         * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
389         (get_parm_info, grokparm, push_parm_decl): Update prototypes.
390
391 2011-05-05  Michael Hope  <michael.hope@linaro.org>
392
393         PR pch/45979
394         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
395         __ARM_EABI__ hosts.
396
397 2011-05-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
398
399         * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
400         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
401         (spu_output_mi_thunk): New function.
402
403 2011-05-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
404
405         * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
406         targetm.asm_out.print_operand.
407         * config/sol2.c: Include target.h.
408
409 2011-05-04  Jan Hubicka  <jh@suse.cz>
410
411         * ipa-inline.c (reset_edge_caches): New function.
412         (update_caller_keys): Add check_inlinablity_for; do not
413         reset edge caches; remove now unnecesary loop.
414         (update_callee_keys): Add comments; reset node_growth_cache of callee.
415         (update_all_callee_keys): Likewise.
416         (inline_small_functions): Sanity check cache; update code
417         recomputing it.
418
419 2011-05-04  Bernd Schmidt  <bernds@codesourcery.com>
420
421         PR rtl-optimization/47612
422         * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
423         as the last insn of the sequence to be moved.
424
425 2011-05-04  Tobias Burnus  <burnus@net-b.de>
426
427         PR fortran/48864
428         * doc/invoke.texi (Ofast): Document that it
429         enables Fortran's -fno-protect-parens.
430
431 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
432
433         * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
434
435 2011-05-04  Eric Botcazou  <ebotcazou@adacore.com>
436
437         * stor-layout.c (variable_size): Do not issue errors.
438
439 2011-05-04  Richard Guenther  <rguenther@suse.de>
440
441         * coverage.c (tree_coverage_counter_ref): Use integer_type_node
442         for array-ref indices.
443         (tree_coverage_counter_addr): Likewise.
444         (build_fn_info_type): Use size_int for index types.
445         (build_gcov_info): Likewise.
446
447 2011-05-04  Richard Guenther  <rguenther@suse.de>
448
449         * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
450         to build_int_cst.
451         * c-typeck.c (really_start_incremental_init): Use bitsize_int
452         for constructor indices.
453         (push_init_level): Likewise.
454
455 2011-05-04  Richard Guenther  <rguenther@suse.de>
456
457         * explow.c (promote_mode): Move variable declarations before code.
458
459 2011-05-04  Nathan Froyd  <froydnj@codesourcery.com>
460
461         * tree.h (build_function_type_array): Declare.
462         (build_varargs_function_type_array): Declare.
463         (build_function_type_vec, build_varargs_function_type_vec): Define.
464         * tree.c (build_function_type_array_1): New function.
465         (build_function_type_array): New function.
466         (build_varargs_function_type_array): New function.
467
468 2011-05-04  Richard Sandiford  <richard.sandiford@linaro.org>
469
470         * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
471         before setting STMT_VINFO_TYPE.
472
473 2011-05-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
474
475         * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
476         instead of spu_pass_by_reference.
477
478 2011-05-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
479
480         * calls.c (emit_library_call_value_1): Invoke
481         promote_function_mode hook on libcall arguments.
482         * explow.c (promote_function_mode, promote_mode): Handle TYPE
483         argument being NULL.
484         * targhooks.c (default_promote_function_mode): Lisewise.
485         * config/s390/s390.c (s390_promote_function_mode): Likewise.
486         * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
487
488         * doc/tm.texi: Document that TYPE argument might be NULL.
489
490 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
491
492         * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
493
494 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
495
496         From Bernd Schmidt
497         * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
498
499 2011-05-04  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
500
501         * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
502         (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
503         Move ...
504         * mips-tfile.c: ... here.
505         Don't include coretypes.h, tm.h, filenames.h.
506         (saber_stop): Remove definition and all calls.
507         [__SABER__]: Remove.
508         (__LINE__): Remove default.
509         (Size_t, Ptrdiff_t): Remove definitions.
510         Replace by size_t, ptrdiff_t.
511         [!MIPS_DEBUGGING_INFO]: Remove.
512         (SHASH_SIZE, THASH_SIZE): Remove defaults.
513         (progname): Add const.
514         (STATIC): Remove.
515         Replace all uses by static.
516         (ALIGN_SYMTABLE_OFFSET): Remove default.
517         * mips-tdump.c: Don't include coretypes.h, tm.h.
518         Remove !MIPS_IS_STAB guard.
519         * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
520         $(TM_H), filenames.h dependencies.
521         (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
522
523 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
524
525         From Jie Zhang
526         *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
527         (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
528
529 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
530
531         From Bernd Schmidt
532         * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
533         account and save/restore RETS.
534         (PROFILE_BEFORE_PROLOGUE): Define.
535         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character.  Correct
536         the push insn to use predecrement.
537
538 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
539
540         From Jie Zhang
541         * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
542
543 2011-05-04  Nick Clifton  <nickc@redhat.com>
544
545         * config/mn10300/mn10300.c: Include cfgloop.h.
546         (DUMP): New macro.
547         (mn10300_insert_setlb_lcc): New function.  Inserts a SETLB and a
548         Lcc or a FLcc insn into the instruction stream.
549         (mn10300_block_contains_call): New function.  Returns true if the
550         given basic block contains a CALL insn.
551         (mn10300_loop_contains_call_insn): New function.  Returns true if
552         the given loop contains a CALL insn.
553         (mn10300_scan_for_setlb_lcc): New function.  Finds opportunities
554         to use the SETLB and Lcc or FLcc insns.
555         (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
556         (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
557         * config/mn10300/mn10300.opt (msetlb): New option.  Used to
558         disable the SETLB optimization.
559         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
560         __SETLB__ or __NO_SETLB__.
561         * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
562         (movsf_internal): Handle MDR register.
563         (cmpsi): Make visible.
564         (setlb): New pattern.
565         (Lcc): New pattern.
566         (FLcc): New pattern.
567
568 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
569
570         PR target/48860
571         * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
572         for reg<->xmm moves.
573         * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
574         (vec_concatv2di_rex64_sse): Ditto.
575         (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
576         (*vec_extractv2di_1_rex64): Ditto.
577
578         Revert:
579         2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
580
581         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
582         reg<->xmm moves.
583         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
584
585 2011-05-04  Richard Guenther  <rguenther@suse.de>
586
587         * tree.h (int_const_binop): Remove notrunc argument.
588         * fold-const.c (int_const_binop): Remove notrunc argument.  Always
589         create integer constants that are properly truncated.
590         (extract_muldiv_1): Expand one notrunc int_const_binop caller.
591         (const_binop): Remove zero notrunc argument to int_const_binop.
592         (size_binop_loc): Likewise.
593         (fold_div_compare): Likewise.
594         (maybe_canonicalize_comparison_1): Likewise.
595         (fold_comparison): Likewise.
596         (fold_binary_loc): Likewise.
597         (multiple_of_p): Likewise.
598         * expr.c (store_constructor): Likewise.
599         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
600         (maybe_fold_stmt_addition): Likewise.
601         * ipa-prop.c (ipa_modify_call_arguments): Likewise.
602         * stor-layout.c (layout_type): Likewise.
603         * tree-data-ref.c (tree_fold_divides_p): Likewise.
604         * tree-sra.c (build_ref_for_offset): Likewise.
605         (build_user_friendly_ref_for_offset): Likewise.
606         * tree-ssa-address.c (maybe_fold_tmr): Likewise.
607         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
608         * tree-ssa-loop-niter.c (inverse): Likewise.
609         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
610         * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
611         * tree-switch-conversion.c (check_range): Likewise.
612         (build_constructors): Likewise.
613         * tree-vect-generic.c (expand_vector_piecewise): Likewise.
614         * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
615         (extract_range_from_assert): Likewise.
616         (vrp_int_const_binop): Likewise.
617         (extract_range_from_binary_expr): Likewise.
618         (extract_range_from_unary_expr): Likewise.
619         (check_array_ref): Likewise.
620         (find_case_label_range): Likewise.
621         (simplify_div_or_mod_using_ranges): Likewise.
622         * tree-cfg.c (group_case_labels_stmt): Use double-ints for
623         comparing case labels for merging.
624
625 2011-05-03  Mark Wielaard  <mjw@redhat.com>
626
627         * dwarf2out.c (debug_str_hash_forced): Removed.
628         (gen_label_for_indirect_string): Removed.
629         (get_debug_string_label): Removed.
630         (AT_string_form): Generate label directly.
631         (output_indirect_string): Test indirect_string_node for
632         DW_FORM_strp instead of checking label and refcount.
633         (prune_indirect_string): Removed.
634         (prune_unused_types): Don't check debug_str_hash_forced or
635         call prune_indirect_string.
636
637 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
638
639         PR other/48093
640         * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
641
642 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
643
644         PR debug/47994
645         PR debug/47919
646         * combine.c (try_combine): Skip debug insns at m_split tests.
647
648 2011-04-26  Mark Wielaard  <mjw@redhat.com>
649
650         PR42288
651         * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
652         when info_section_emitted.
653
654 2011-05-03  Joseph Myers  <joseph@codesourcery.com>
655
656         * config/mips/mips-opts.h: New.
657         * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
658         to mips-opts.h.
659         (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
660         (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
661         or OPT_mr10k_cache_barrier_ here.  Access mips_cache_flush_func
662         via opts pointer.
663         * config/mips/mips.h (enum mips_code_readable_setting): Move to
664         mips-opts.h.
665         (mips_abi, mips_code_readable): Don't declare.
666         * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
667         (mabi=): Use Enum and Var.
668         (mips_abi): New Enum and EnumValue entries.
669         (mcode-readable=): Use Enum and Var.
670         (mips_code_readable_setting): New Enum and EnumValue entries.
671         (mr10k-cache-barrier=): Use Enum and Var.
672         (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
673
674 2011-05-03  Jan Hubicka  <jh@suse.cz>
675
676         * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
677         replace hash by pointer map.
678         (cgraph_node_set_element_def, cgraph_node_set_element,
679         const_cgraph_node_set_element, varpool_node_set_element_def,
680         varpool_node_set_element, const_varpool_node_set_element): Remove.
681         (free_cgraph_node_set, free_varpool_node_set): New function.
682         (cgraph_node_set_size, varpool_node_set_size): Use vector size.
683         * tree-emutls.c: Free varpool node set.
684         * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
685         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
686         debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
687         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
688         dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
689         Move here from ipa.c; implement using pointer_map
690         * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
691         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
692         debug_cgraph_node_set, varpool_node_set_new,
693         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
694         dump_varpool_node_set, debug_varpool_node_set):
695         Move to ipa-uitls.c.
696         * passes.c (ipa_write_summaries): Update.
697
698 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
699
700         From Mike Frysinger:
701         * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
702         bf542/bf544/bf547/bf548/bf549.
703
704 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
705
706         * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
707
708 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
709
710         From Bernd Schmidt:
711         * config/bfin/bfin.md (MOVCC): New mode_macro.
712         (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
713         movsicc_insn1, movsicc_insn2 and movsicc and macroized.  Remove
714         comments from generated assembly.
715
716 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
717
718         From Bernd Schmidt
719         * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
720         * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
721         * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
722         * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
723         * config/bfin/lib1funcs.asm (___muldi3): New function.
724
725 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
726
727         * config/stormy16/stormy16 (xstormy16_init_builtins): Call
728         build_function_type_list instead of build_function_type.
729         Rearrange initialization of `args' to do so.
730
731 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
732
733         * config/i386/i386.c (ix86_code_end): Call build_function_type_list
734         instead of build_function_type.
735
736 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
737
738         * config/rs6000/rs6000.c (spe_init_builtins): Call
739         build_function_type_list instead of build_function_type.
740         (paired_init_builtins, altivec_init_builtins): Likewise.
741         (builtin_function_type): Likewise.
742
743 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
744
745         * config/sh/sh.c (sh_media_init_builtins): Call
746         build_function_type_list instead of build_function_type.
747
748 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
749
750         * config/sparc/sparc.c (sparc_file_end): Call
751         build_function_type_list instead of build_function_type.
752
753 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
754
755         * config/alpha/alpha.c (alpha_init_builtins): Call
756         build_function_type_list instead of build_function_type.
757
758 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
759
760         * config/xtensa/xtensa.c (xtensa_init_builtins): Call
761         build_function_type_list instead of build_function_type.
762
763 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
764
765         * config/iq2000/i2000.c (iq2000_init_builtins): Call
766         build_function_type_list instead of build_function_type.
767         Delete `endlink' variable.
768
769 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
770
771         * config/avr/avr.c (avr_init_builtins): Call
772         build_function_type_list instead of build_function_type.
773
774 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
775
776         * config/picochip/picochip.c (picochip_init_builtins): Call
777         build_function_type_list instead of build_function_type.
778         Delete `endlink' variable.
779
780 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
781
782         * config/bfin/bfin.c (bfin_init_builtins): Call
783         build_function_type_list instead of build_function_type.
784
785 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
786
787         From Bernd Schmidt
788         * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
789         that's not CONST_INT.  Seemingly redundant check is due to PR39768.
790
791 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
792
793         From Jie Zhang:
794         * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
795         libbffastfp overrides libgcc when -mfast-fp.
796
797 2011-05-03  Stuart Henderson <shenders@gcc.gnu.org>
798
799         Originally from Bernd Schmidt
800         * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
801         * config/bfin/bfin.c (override_options): Test it and error if
802         TARGET_FDPIC.
803
804 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
805
806         Originally From Bernd Schmidt
807         * config/bfin/bfin.c (override_options): Disable -fstack-limit for
808         FD-PIC.
809
810 2011-05-03  Jeff Law  <law@redhat.com>
811
812         * tree-ssa-threadupdate.c (THREAD_TARGET): define.
813         (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
814         (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
815         than accessing AUX field directly.  Free the AUX field before
816         clearing it.
817         (thread_block, thread_through_loop_header): Likewise.
818         (thread_single_edge, mark_threaded_blocks): Likewise.
819         (redirect_edges): Delay clearing the AUX field.  Free the AUX field.
820         (register_jump_thread): Do not attempt to thread to a NULL edge.
821
822 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
823
824         * function.c (init_function_start): Call decide_function_section.
825         * varasm.c (decide_function_section): New function.
826         (assemble_start_function): When not using
827         flag_reorder_blocks_and_partition, don't compute in_cold_section_p
828         or first_function_block_is_cold.
829         * rtl.h (decide_function_section): Declare.
830
831 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
832             Jakub Jelinek  <jakub@redhat.com>
833
834         PR target/48774
835         * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
836         only succeed if req_mode is the same as set_mode.
837
838 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
839
840         * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
841         * genemit.c (gen_exp): Handle RETURN.
842         * emit-rtl.c (verify_rtx_sharing): Likewise.
843         (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
844         * rtl.c (copy_rtx): RETURN is shared.
845         * rtl.h (enum global_rtl_index): Add GR_RETURN.
846         (ret_rtx): New.
847         * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
848         * config/s390/s390.c (s390_emit_epilogue): Likewise.
849         * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
850         * config/cris/cris.c (cris_expand_return): Likewise.
851         * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
852         * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
853         rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
854         * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
855         * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
856         Likewise.
857         * config/v850/v850.c (expand_epilogue): Likewise.
858         * config/bfin/bfin.c (bfin_expand_call): Likewise.
859         * config/arm/arm.md (epilogue): Likewise.
860         * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
861         * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
862         variable to ret_reg.
863
864 2011-05-03  Richard Guenther  <rguenther@suse.de>
865
866         PR lto/48846
867         * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
868         Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
869         * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
870
871 2011-05-03  Richard Guenther  <rguenther@suse.de>
872
873         * c-decl.c (grokdeclarator): Instead of looking at
874         TREE_OVERFLOW check if the constant fits in the index type.
875
876 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
877
878         * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
879         (vec_store_lanes<mode><mode>): Likewise.
880
881 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
882
883         * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
884         * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
885         convert_optab_index values.
886         (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
887         * genopinit.c (optabs): Initialize the new optabs.
888         * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
889         * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
890         (expand_STORE_LANES): New functions.
891         * tree.h (build_array_type_nelts): Declare.
892         * tree.c (build_array_type_nelts): New function.
893         * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
894         (vect_model_load_cost): Likewise.
895         (vect_store_lanes_supported, vect_load_lanes_supported)
896         (vect_record_strided_load_vectors): Declare.
897         * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
898         (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
899         (vect_transform_strided_load): Split out statement recording into...
900         (vect_record_strided_load_vectors): ...this new function.
901         * tree-vect-stmts.c (create_vector_array, read_vector_array)
902         (write_vector_array, create_array_ref): New functions.
903         (vect_model_store_cost): Add store_lanes_p argument.
904         (vect_model_load_cost): Add load_lanes_p argument.
905         (vectorizable_store): Try to use store-lanes functions for
906         interleaved stores.
907         (vectorizable_load): Likewise load-lanes and loads.
908         * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
909         to vect_model_store_cost.
910         (vect_build_slp_tree): Likewise vect_model_load_cost.
911
912 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
913
914         * hooks.h (hook_bool_mode_uhwi_false): Declare.
915         * hooks.c (hook_bool_mode_uhwi_false): New function.
916         * target.def (array_mode_supported_p): New hook.
917         * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
918         * doc/tm.texi: Regenerate.
919         * stor-layout.c (mode_for_array): New function.
920         (layout_type): Use it.
921         * config/arm/arm.c (arm_array_mode_supported_p): New function.
922         (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
923
924 2011-05-03  Eric Botcazou  <ebotcazou@adacore.com>
925
926         PR target/48723
927         * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
928         for -fstack-check if the size to allocate is negative.
929
930 2011-05-02  Lawrence Crowl  <crowl@google.com>
931
932         * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
933         (timevar_cond_start): New for starting a timer only when it is not
934         already running.
935         (timevar_cond_stop): New for stopping a timer when it was not already
936         running.
937
938         * timevar.c (timevar_stop): Enable start/stop timers to start again.
939         (timevar_cond_start): New as above.
940         (timevar_cond_stop): New as above.
941
942         * timevar.def: Add start/stop timers for compiler phases,
943         TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
944         TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
945         and TV_PHASE_FINALIZE.
946         Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
947         Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
948         TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
949         Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
950         Make unused TV_OVERLOAD into a start/stop timer.
951
952         Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
953         Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
954         to indicate that they are start/stop timers.
955
956         * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
957         Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
958         Move initialization to do_compile.
959         (do_compile): Add initialization from above.
960         Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
961
962         * c-decl.c (c_write_global_declarations): Add start/stop of
963         TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
964
965         * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
966         or TV_PARSE_INLINE, as appropriate.
967         (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
968         (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
969
970 2011-05-02  Jason Merrill  <jason@redhat.com>
971
972         PR c++/40975
973         * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
974
975 2011-05-02  Simon Martin  <simartin@users.sourceforge.net>
976
977         PR c/35445
978         * c-decl.c (finish_decl): Only create a composite if the types are
979         compatible.
980
981 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
982
983         * config/fr30/fr30-protos.h (Mmode): Don't define.
984         * config/m32r/m32r-protos.h (Mmode): Don't define.  Expand
985         definition where used.
986         * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
987         define.  Expand definitions where used.
988         * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
989         Expand definitions where used.
990         * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
991         rx_function_arg, rx_function_arg_advance,
992         rx_function_arg_boundary): Expand definitions of those macros.
993         * config/v850/v850-protos.h (Mmode): Don't define.  Expand
994         definition where used.
995
996 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
997
998         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
999         reg<->xmm moves.
1000         (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
1001         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.  Merge
1002         with *movv2sf_internal_rex64_avx.
1003         (*movv2sf_internal): Merge with *movv2sf_internal_avx.
1004         * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
1005         Use %v prefix in insn mnemonic to handle TARGET_AVX.
1006         (*movdi_internal): Add "isa" attribute.  Use "maybe_vex" instead of
1007         "vex" in "prefix" attribute calculation.
1008         (*movdf_internal): Output AVX mnemonics.  Add "prefix" attribute.
1009
1010 2011-05-02  Stuart Henderson  <shenders@gcc.gnu.org>
1011
1012         PR target/47951
1013         * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
1014         inputs match the output.
1015
1016 2011-05-02  Andreas Schwab  <schwab@linux-m68k.org>
1017
1018         PR target/47955
1019         * config/m68k/m68k.c (m68k_expand_prologue): Set
1020         current_function_static_stack_size.
1021
1022 2011-05-02   Jan Hubicka  <jh@suse.cz>
1023
1024         * lto-streamer.c (lto_streamer_cache_insert_1,
1025         lto_streamer_cache_lookup, lto_streamer_cache_create,
1026         lto_streamer_cache_delete): Use pointer map instead of hashtable.
1027         * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
1028
1029 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
1030
1031         * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
1032         config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
1033         config/m68k/t-opts: New files.
1034         * config/m68k/m68k-tables.opt: New file (generated).
1035         * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
1036         extra_options and m68k/t-opts to tmake_file.
1037         * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
1038         (all_isas): Initialize using m68k-isas.def.
1039         (all_microarchs): Initialize using m68k-microarchs.def.
1040         (m68k_find_selection): Remove.
1041         (m68k_handle_option): Don't assert that global structures are in
1042         use.  Use error_at.  Access variables via opts pointer.  Don't
1043         handle -march=, -mcpu= and -mtune= here.  Set gcc_options fields
1044         directly for -m68020-40 and -m68020-60.
1045         (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
1046         m68k_tune_entry here.
1047         * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
1048         to m68k-opts.h.
1049         (m68k_library_id_string): Remove declaration.
1050         * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
1051         (m68k_library_id_string): New Variable.
1052         (march=, mcpu=, mtune=): Use Enum and Var.
1053
1054 2011-05-02  Richard Guenther  <rguenther@suse.de>
1055
1056         * varasm.c (output_constructor_regular_field): Compute zero-based
1057         index with double-ints.  Make sure to ICE instead of producing
1058         wrong code.
1059         * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
1060         in asserts.  Properly use a signed type.
1061
1062 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
1063
1064         * config/i386/sse.md (V): New mode iterator.
1065         (V_128): Rename from SSEMODE.  Make V2DF mode conditional on
1066         TARGET_SSE2.
1067         (V_256): Rename from AVX256MODE.
1068         (VF): Make V4SF mode unconditional.  Add TARGET_SSE instruction
1069         condition to all users.
1070         (VF1): Ditto.
1071         (VF2): Make V2DF mode unconditional.  Add TARGET_SSE2 instruction
1072         condition to all users.
1073         (VF_128): Make V4SF mode unconditional.
1074         (VF_256): Rename from AVX256MODEF2P.
1075         (VI4F_128): Rename from SSEMODE4S.
1076         (VI8F_128): Rename from SSEMODE2D.
1077         (VI4F_256): Rename from AVX256MODE8P.
1078         (VI8F_256): Rename from AVX256MODE4P.
1079         (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
1080         (ssescalarmodesuffix): Remove SF and DF modes.
1081         (SSEMODE124): Remove.
1082         (SSEMODE1248): Ditto.
1083         (SSEMODEF2P): Ditto.
1084         (AVXMODEF2P): Ditto.
1085         (AVXMODEFDP): Ditto.
1086         (AVXMODEFSP): Ditto.
1087         (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
1088         unconditional.
1089         (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO.  Make V4SF mode
1090         unconditional.
1091         (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
1092         xop_pcmov_<mode>256.  Use V mode iterator.
1093
1094         Adjust RTX patterns globally for renamed mode attributes.
1095
1096 2011-05-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1097
1098         * haifa-sched.c (sched_emit_insn): Emit insn before first
1099         non-scheduled insn.  Inform back-end about new insn.  Add
1100         new insn to scheduled_insns list.
1101
1102 2011-05-02  Richard Guenther  <rguenther@suse.de>
1103
1104         PR tree-optimization/48822
1105         * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
1106         (process_scc): Indicate which iteration we start.
1107
1108 2011-05-02  Jan Hubicka  <jh@suse.cz>
1109
1110         * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
1111         (lto_section_overrun): New.
1112         * lto-section-out.c (append_block): Rename to ...
1113         (lto_append_block): ... this one; export.
1114         (lto_output_1_stream): Move lto lto-streamer.h
1115         (lto_output_data_stream): Update.
1116         * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
1117         (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
1118         functions.
1119
1120 2011-05-02  Richard Guenther  <rguenther@suse.de>
1121
1122         * tree.c (tree_code_counts): New global array.
1123         (record_node_allocation_statistics): Count individual tree codes.
1124         (dump_tree_statistics): Dump individual code stats.
1125
1126 2011-05-01  Jan Hubicka  <jh@suse.cz>
1127
1128         * ipa-inline.c (caller_growth_limits): Fix thinko when
1129         looking for largest stack frame.
1130         * ipa-inline.h (dump_inline_summary): Declare.
1131         * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
1132         on stack usage.
1133         (dump_inline_summary): Export.
1134         (debug_inline_summary): Declare as DEBUG_FUNCTION.
1135
1136 2011-05-01  Anatoly Sokolov  <aesok@post.ru>
1137
1138         * reginfo.c (memory_move_cost): Change rclass argument type form
1139         'enum reg_class' to reg_class_t.
1140         * reload.h (memory_move_cost): Update prototype.
1141         * postreload.c reload_cse_simplify_set): Change type dclass var to
1142         reg_class_t.
1143         * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
1144         Update prototype.
1145         (ira_allocate_and_set_costs): Change aclass argument type form
1146         'enum reg_class' to reg_class_t.
1147         * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
1148         Change aclass argument type to reg_class_t.
1149         (update_conflict_hard_reg_costs): Change type aclass and pref vars
1150         to reg_class_t.
1151         * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
1152         memory_move_cost call.
1153
1154         * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
1155         'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
1156         Change type tmp var to reg_class_t.
1157
1158 2011-04-30  Jan Hubicka  <jh@suse.cz>
1159
1160         * ipa-inline.c (can_inline_edge_p): Disregard limits when
1161         inlining into function with flatten attribute.
1162         (want_inline_small_function_p): Be more realistic about inlining
1163         cold calls where callee size grows.
1164
1165 2011-04-30  Jan Hubicka  <jh@suse.cz>
1166
1167         * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
1168         flags.
1169
1170 2011-04-30  Anatoly Sokolov  <aesok@post.ru>
1171
1172         * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
1173         PRINT_OPERAND_PUNCT_VALID_P): Remove.
1174         * config/sparc/sparc-protos.h (print_operand): Remove declaration.
1175         * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
1176         TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
1177         (print_operand): Rename to...
1178         (sparc_print_operand): ...this. Make static. Adjust
1179         sparc_print_operand function call.
1180         (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
1181         functions.
1182
1183 2011-04-30  Jan Hubicka  <jh@suse.cz>
1184
1185         PR middle-end/48752
1186         * ipa-inline.c (early_inliner): Disable when doing late
1187         addition of function.
1188
1189 2011-04-30  Jakub Jelinek  <jakub@redhat.com>
1190
1191         * dwarf2out.c (get_address_mode): New inline.
1192         (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
1193         if not dwarf_strict emit
1194         DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
1195         desirable.  Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
1196         UNSIGNED_FLOAT, FIX and UNSIGNED_FIX.  Just return NULL for
1197         FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
1198         (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
1199         dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
1200         mem_loc_descriptor callers.
1201         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
1202         output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
1203         Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
1204         DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
1205         (base_types): New variable.
1206         (get_base_type_offset, calc_base_type_die_sizes,
1207         base_type_for_mode, mark_base_types, base_type_cmp,
1208         move_marked_base_types): New functions.
1209         (calc_die_sizes): Assert that die_offset is 0 or equal to
1210         next_die_offset.
1211         (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
1212         others defer to mem_loc_descriptor.  Adjust mem_loc_descriptor
1213         callers.  If not dwarf_strict, call mem_loc_descriptor even for
1214         non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
1215         (gen_subprogram_die): Don't give up on call site parameters
1216         with non-integral or large integral modes.  Adjust
1217         mem_loc_descriptor callers.
1218         (prune_unused_types): Call prune_unused_types_mark on base_types
1219         vector entries.
1220         (resolve_addr): Call mark_base_types.
1221         (dwarf2out_finish): Call move_marked_base_types.
1222
1223         PR tree-optimization/48809
1224         * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
1225         type.
1226         (gen_inbound_check): Don't compute index_expr - range_min in utype
1227         again, instead reuse SSA_NAME initialized in build_arrays.
1228         Remove two useless gsi_for_stmt calls.
1229
1230 2011-04-29  Jeff Law  <law@redhat.com>
1231
1232         * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
1233
1234 2011-04-29  Martin Jambor  <mjambor@suse.cz>
1235
1236         * cgraph.h (cgraph_postorder): Remove declaration.
1237         * ipa-utils.h (ipa_free_postorder_info): Declare.
1238         (ipa_reverse_postorder): Likewise.
1239         * cgraphunit.c: Include ipa-utils.h.
1240         (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
1241         * ipa-inline.c: Include ipa-utils.h.
1242         (ipa_inline): Update call to ipa_reverse_postorder.
1243         * ipa-pure-const.c (propagate_pure_const): Update call to
1244         ipa_reduced_postorder and ipa_print_order.  Call
1245         ipa_free_postorder_info to clean up.
1246         (propagate_nothrow): Likewise.
1247         * ipa-reference.c (propagate): Removed a useless call to
1248         ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
1249         and ipa_print_order.  Call ipa_free_postorder_info to clean up.
1250         * ipa.c: Include ipa-utils.h.
1251         (ipa_profile): Update call to ipa_reverse_postorder.
1252         (cgraph_postorder): Moved to...
1253         * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
1254         (ipa_utils_print_order): Renamed to ipa_print_order.
1255         (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
1256         comments.
1257         (ipa_free_postorder_info): New function.
1258         * passes.c: Include ipa-utils.h.
1259         (do_per_function_toporder): Update call to ipa_reverse_postorder.
1260         (ipa_write_summaries): Likewise.
1261         * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
1262         (cgraphunit.o): Likewise.
1263         (ipa.o): Likewise.
1264         (ipa-inline.o): Likewise.
1265
1266 2011-04-29  Jan Hubicka  <jh@suse.cz>
1267
1268         * gcc.dg/tree-ssa/inline-10.c: New testcase.
1269         * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
1270         * ipa-inline.h (clause_t): Turn into unsigned int.
1271         * ipa-inline-analysis.c (add_clause): Do more simplification.
1272         (and_predicates): Shortcut more cases.
1273         (predicates_equal_p): Move forward; check that clauses are properly
1274         ordered.
1275         (or_predicates): Shortcut more cases.
1276         (edge_execution_predicate): Rewrite as...
1277         (set_cond_stmt_execution_predicate): ... this function; handle
1278         __builtin_constant_p.
1279         (set_switch_stmt_execution_predicate): New .
1280         (compute_bb_predicates): New.
1281         (will_be_nonconstant_predicate): Update TODO.
1282         (estimate_function_body_sizes): Use compute_bb_predicates
1283         and free them later, always try to estimate if stmt is constant.
1284         (estimate_time_after_inlining, estimate_size_after_inlining):
1285         Gracefully handle optimized out edges.
1286         (read_predicate): Fix off by one error.
1287
1288 2011-04-29  Nicola Pero  <nicola.pero@meta-innovation.com>
1289
1290         * Makefile.in (ENABLE_MAINTAINER_RULES): New.
1291
1292 2011-04-27  Xinliang David Li  <davidxl@google.com>
1293
1294         * tree-profile.c (init_ic_make_global_vars): Set
1295         tls attribute on ic vars.
1296         * coverage.c (coverage_end_function): Initialize
1297         function_list with zero.
1298
1299 2011-04-29  Richard Guenther  <rguenther@suse.de>
1300
1301         * builtins.c (fold_builtin_classify_type): Use integer_type_node
1302         for the type of the result.
1303         (fold_builtin_isascii): Likewise.
1304         (fold_builtin_toascii): Use integer_type_node where appropriate.
1305         (fold_builtin_logb): Likewise.
1306         (fold_builtin_frexp): Likewise.
1307         (fold_builtin_strstr): Likewise.
1308         (fold_builtin_strpbrk): Likewise.
1309         (fold_builtin_fputs): Likewise.
1310         (fold_builtin_sprintf): Likewise.
1311         (fold_builtin_snprintf): Likewise.
1312         (fold_builtin_printf): Likewise.
1313         (do_mpfr_remquo): Use a proper type for the assigned constant.
1314         (do_mpfr_lgamma_r): Likewise.
1315         * dwarf2out.c (resolve_one_addr): Use size_int.
1316         * except.c (init_eh): Likewise.
1317         (assign_filter_values): Use integer_type_node for filter values.
1318         (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
1319         indices.
1320         * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
1321         for EH region numbers.
1322         * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
1323         for the shift amount.
1324
1325 2011-04-29  Richard Guenther  <rguenther@suse.de>
1326
1327         * expr.h (expand_shift): Rename to ...
1328         (expand_variable_shift): ... this.
1329         (expand_shift): Take a constant shift amount.
1330         * expmed.c (expand_shift): Rename to ...
1331         (expand_variable_shift): ... this.
1332         (expand_shift): New wrapper around expand_variable_shift.
1333         * expr.c (convert_move, emit_group_load_1, emit_group_store,
1334         optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
1335         expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
1336         * expmed.c (store_fixed_bit_field, extract_bit_field_1,
1337         extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
1338         expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
1339         extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
1340         emit_store_flag_1, emit_store_flag): Likewise.
1341         * builtins.c (expand_builtin_signbit): Likewise.
1342         * calls.c (load_register_parameters): Likewise.
1343         * function.c (assign_parm_setup_block): Likewise.
1344         * lower-subreg.c (resolve_shift_zext): Likewise.
1345         * optabs.c (widen_bswap, expand_abs_nojump,
1346         expand_one_cmpl_abs_nojump, expand_float): Likewise.
1347         * spu/spu.c (spu_expand_extv): Likewise.
1348         * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
1349
1350 2011-04-29  Richard Guenther  <rguenther@suse.de>
1351
1352         * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
1353         for the remapped region number.
1354         * predict.c (build_predict_expr): Use integer_type_node for the
1355         predict kind.
1356         * fold-const.c (fold_binary_loc): Use integer_type_node for
1357         the shift amount.  Use a proper type for the PLUS_EXPR operand.
1358
1359 2011-04-29  Michael Matz  <matz@suse.de>
1360
1361         * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
1362         other trees that just builtins.
1363         (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
1364
1365 2011-04-29  Richard Guenther  <rguenther@suse.de>
1366
1367         * tree-nested.c (get_trampoline_type): Use size_int.
1368         (get_nl_goto_field): Likewise.
1369         * tree-eh.c (lower_try_finally_switch): Use integer_type_node
1370         for all indexes.
1371         (lower_eh_constructs_2): Likewise.
1372         (lower_resx): Likewise.
1373         (lower_eh_dispatch): Likewise.
1374         * tree-mudflap.c (mf_build_string): Use size_int.
1375         (mudflap_register_call): Use integer_type_node for the flag.
1376         (mudflap_enqueue_constant): Use size_int.
1377         * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
1378         instead of rebuilding it.
1379
1380 2011-04-29  Richard Guenther  <rguenther@suse.de>
1381
1382         * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
1383         Handle OBJ_TYPE_REF.
1384         (find_func_aliases_for_call): Use it more consistently.
1385
1386 2011-04-29  Alexandre Oliva  <aoliva@redhat.com>
1387
1388         * haifa-sched.c (last_nondebug_scheduled_insn): New.
1389         (rank_for_schedule): Use it.
1390         (schedule_block): Set it.
1391
1392 2011-04-28  David Li  <davidxl@google.com>
1393
1394         * tree.c (crc32_string): Use crc32_byte.
1395         (crc32_byte): New function.
1396         * tree.h (crc32_byte): New function.
1397         * gcov.c (read_graph_file): Handle new cfg_cksum.
1398         (read_count_file): Ditto.
1399         * profile.c (instrument_values): Ditto.
1400         (get_exec_counts): Ditto.
1401         (read_profile_edge_counts): Ditto.
1402         (compute_branch_probabilities): Ditto.
1403         (compute_value_histograms): Ditto.
1404         (branch_prob): Ditto.
1405         (end_branch_prob): Ditto.
1406         * coverage.c (read_counts_file): Ditto.
1407         (get_coverage_counts): Ditto.
1408         (tree_coverage_counter_addr): Ditto.
1409         (coverage_checksum_string): Ditto.
1410         (coverage_begin_output): Ditto.
1411         (coverage_end_function): Ditto.
1412         (build_fn_info_type): Ditto.
1413         (build_fn_info_value): Ditto.
1414         * libgcov.c (gcov_exit): Ditto.
1415         * gcov-dump.c (tag_function): Ditto.
1416         (compute_checksum): Remove.
1417
1418 2011-04-29  Alan Modra  <amodra@gmail.com>
1419
1420         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
1421         unspec plus offset.  Tidy macho code.
1422
1423 2011-04-29  Martin Jambor  <mjambor@suse.cz>
1424
1425         * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
1426         node instead of a decl.  Update all callers.
1427         * cgraph.h: Update declaration.
1428
1429 2011-04-28  Ira Rosen  <ira.rosen@linaro.org>
1430
1431         PR tree-optimization/48765
1432         * tree-vectorizer.h (vect_make_slp_decision): Return bool.
1433         * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
1434         to indicate if loop aware SLP is being used.  Scan the statements
1435         and update the vectorization factor according to the type of
1436         vectorization before statement analysis.
1437         (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
1438         pass it to vect_analyze_loop_operations.
1439         (vectorizable_reduction): Set number of copies to 1 in case of pure
1440         SLP statement.
1441         * tree-vect-stmts.c (vectorizable_conversion,
1442         vectorizable_assignment, vectorizable_shift,
1443         vectorizable_operation, vectorizable_type_demotion,
1444         vectorizable_type_promotion, vectorizable_store, vectorizable_load):
1445         Likewise.
1446         (vectorizable_condition): Move the check that it is not SLP
1447         vectorization before the number of copies check.
1448         * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
1449         to vectorize the loop using SLP.
1450
1451 2011-04-28  Jakub Jelinek  <jakub@redhat.com>
1452
1453         PR middle-end/48597
1454         * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
1455         inline asm.
1456
1457 2011-04-28  Joseph Myers  <joseph@codesourcery.com>
1458
1459         * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
1460         *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
1461         (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
1462         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
1463         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
1464         linux*.h headers.
1465         * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
1466         * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
1467         * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
1468         * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
1469         * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
1470         * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
1471         REG_NAME.
1472         * config/i386/linux.h (REG_NAME): Don't define.
1473         * config/i386/linux64.h (REG_NAME): Don't define.
1474         * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
1475         Undefine before defining.
1476
1477 2011-04-28  Jan Hubicka  <jh@suse.cz>
1478
1479         * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
1480         nonconstant_names array.
1481         (estimate_function_body_sizes): Build nonconstant_names array; handle
1482         BUILT_IN_CONSTANT_P.
1483
1484 2011-04-28  Richard Guenther  <rguenther@suse.de>
1485
1486         PR bootstrap/48804
1487         Revert
1488         2011-04-28  Richard Guenther  <rguenther@suse.de>
1489
1490         * tree-ssa-structalias.c (solve_constraints): Build succ graph
1491         as late as possible.
1492
1493 2011-04-28  Richard Guenther  <rguenther@suse.de>
1494
1495         * tree-ssa-structalias.c (dump_constraint): Don't end the line.
1496         (debug_constraint): Do it here.
1497         (dump_constraints): And here.
1498         (rewrite_constraints): And here.
1499         (dump_constraint_edge): Remove.
1500         (dump_constraint_graph): Rewrite to produce DOT output.
1501         (solve_constraints): Build succ graph as late as possible.
1502         Dump constraint graphs before and after solving.
1503
1504 2011-04-28  Richard Guenther  <rguenther@suse.de>
1505
1506         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
1507         New function split out from ...
1508         (find_func_aliases): ... here.  Call it.
1509         (find_func_aliases_for_call): Likewise.
1510
1511 2011-04-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1512
1513         * internal-fn.h (internal_fn_name_array): Declare.
1514         (internal_fn_flags_array): Likewise.
1515
1516 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
1517
1518         * config/i386/i386.md (ssemodesuffix):  Merge with ssevecsize,
1519         ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
1520         Move from sse.md.
1521         (ssemodefsuffix): Remove.
1522         (ssevecmodesuffix): New mode attribute.
1523         (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
1524         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
1525         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
1526         *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
1527         *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
1528         *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
1529         *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
1530         ssemodesuffix mode attribute.
1531         (float splitters): Use ssevecmodesuffix mode attribute.
1532         * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
1533         (sseinsmode): Rename from avxvecmode.
1534         (avxsizesuffix): Rename from avxmodesuffix.
1535         (sseintvecmode): Rename from avxpermvecmode.
1536         (ssedoublevecmode): Rename from ssedoublesizemode.
1537         (ssehalfvecmode): Rename from avxhalfvecmode.
1538         (ssescalarmode): Rename from avxscalarmode.
1539         (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
1540         templates for ssemodesuffix mode attribute.
1541         (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
1542         mode attribute.
1543
1544         Adjust RTX patterns globally for renamed mode attributes.
1545
1546 2011-04-27  Jan Hubcika  <jh@suse.cz>
1547
1548         * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
1549         * ipa-inline-analysis.c: Include alloc-pool.h.
1550         (edge_predicate_pool): New.
1551         (trye_predicate_p): New function
1552         (false_predicate_p): New function.
1553         (add_clause): Sanity check that false clauses are "optimized";
1554         never add clauses to predicate that is already known to be false.
1555         (and_predicate): Use flase_predicate_p.
1556         (evaulate_predicate): Rename to ...
1557         (evaluate_predicate): ... this one; update all callers; assert
1558         that false is not listed among possible truths.
1559         (dump_predicate): Use true_predicate_p.
1560         (account_size_time): Use false_predicate_p.
1561         (evaulate_conditions_for_edge): Rename to ...
1562         (evaluate_conditions_for_edge) ... this one.
1563         (edge_set_predicate): New function.
1564         (inline_edge_duplication_hook): Duplicate edge predicates.
1565         (inline_edge_removal_hook): Free edge predicates.
1566         (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
1567         (dump_inline_summary): Update.
1568         (estimate_function_body_sizes): Set edge predicates.
1569         (estimate_calls_size_and_time): Handle predicates.
1570         (estimate_callee_size_and_time): Update.
1571         (remap_predicate): Add toplev_predicate; update comment.
1572         (remap_edge_predicates): New function.
1573         (inline_merge_summary): Compute toplev predicate; update.
1574         (read_predicate): New function.
1575         (read_inline_edge_summary): Use it.
1576         (inline_read_section): Likewise.
1577         (write_predicate): New function.
1578         (write_inline_edge_summary): Use it.
1579         (inline_write_summary): Likewise.
1580         (inline_free_summary): Free alloc pool and edge summary vec.
1581
1582 2011-04-27  Richard Guenther  <rguenther@suse.de>
1583
1584         * tree-ssa-structalias.c (changed_count): Remove.
1585         (changed): Use a bitmap.
1586         (unify_nodes): Adjust.
1587         (do_sd_constraint): Likewise.
1588         (do_ds_constraint): Likewise.
1589         (do_complex_constraint): Likewise.
1590         (solve_graph): Likewise.
1591
1592 2011-04-27  Jan Hubicka  <jh@suse.cz>
1593
1594         * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
1595
1596 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
1597
1598         * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
1599         (avx_vperm2f128_*_operand): Ditto.
1600         * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
1601         Use avx_vpermilp_parallel in insn condition.
1602         (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
1603         Use avx_vperm2f128_parallel in insn condition.
1604
1605 2011-04-27  Richard Guenther  <rguenther@suse.de>
1606
1607         * Makefile.in (tree-ssa-structalias.o): Remove
1608         gt-tree-ssa-structalias.h dependency.
1609         (GTFILES): Remove tree-ssa-structalias.c.
1610         * tree.c (allocate_decl_uid): New function.
1611         (make_node_stat): Use it.
1612         (copy_node_stat): Likewise.
1613         * tree.h (allocate_decl_uid): Declare.
1614         * tree-ssa-alias.h (delete_alias_heapvars): Remove.
1615         * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
1616         * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
1617         * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
1618         * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
1619         (struct heapvar_map): Likewise.
1620         (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
1621         heapvar_insert): Likewise.
1622         (make_heapvar_for): Rename to ...
1623         (make_heapvar): ... this.  Simplify.
1624         (fake_var_decl_obstack): New global var.
1625         (build_fake_var_decl): New function.
1626         (make_constraint_from_heapvar): Adjust.
1627         (handle_lhs_call): Likewise.
1628         (create_function_info_for): Likewise.
1629         (intra_create_variable_infos): Likewise.
1630         (init_alias_vars): Allocate fake_var_decl_obstack.
1631         (init_alias_heapvars, delete_alias_heapvars): Remove.
1632         (compute_points_to_sets): Do not call init_alias_heapvars.
1633         (ipa_pta_execute): Likewise.
1634         (delete_points_to_sets): Free fake_var_decl_obstack.
1635
1636 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1637
1638         * config/spu/divmovti4.c (union qword_UTItype): New data type.
1639         (si_from_UTItype, si_to_UTItype): New functions.
1640         (__udivmodti4): Use them to implement type-punning.
1641         * config/spu/multi3.c (union qword_TItype): New data type.
1642         (si_from_TItype, si_to_TItype): New functions.
1643         (__multi3): Use them to implement type-punning.
1644
1645 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1646
1647         * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
1648
1649 2011-04-27  Jan Hubicka  <jh@suse.cz>
1650
1651         * ipa-prop.c (function_insertion_hook_holder): New holder.
1652         (ipa_add_new_function): New function.
1653         (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
1654         Register/deregister holder.
1655
1656 2011-04-27  Richard Guenther  <rguenther@suse.de>
1657
1658         PR tree-optimization/48772
1659         * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
1660
1661 2011-04-27  Richard Guenther  <rguenther@suse.de>
1662
1663         * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
1664         TARGET_MEM_REF handling.
1665
1666 2011-04-27  Nick Clifton  <nickc@redhat.com>
1667
1668         * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
1669         ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
1670         (REG_CLASS_NAMES): Likewise.
1671         (REG_CLASS_CONTENTS): Likewise.
1672         (EVEN_ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
1673         (ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
1674         (FEVEN_REGS): New macro.  Alias for QUAD_ACC_REGS.
1675         (FPR_REGS): New macro.  Alias for QUAD_ACC_REGS.
1676         (EVEN_REGS): New macro.  Alias for QUAD_REGS.
1677         * config/frv/frv.c (frv_secondary_reload_class): Remove use of
1678         duplicate register classes.
1679         (frv_class_likely_spilled_p): Likewise.
1680         (frv_register_move_cost): Likewise.
1681
1682         * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
1683         end of the regno_reg_class array.
1684
1685 2011-04-27  Jakub Jelinek  <jakub@redhat.com>
1686
1687         PR c/48742
1688         * c-typeck.c (build_binary_op): Don't wrap arguments if
1689         int_operands is true.
1690
1691 2011-04-26  Kaz Kojima  <kkojima@gcc.gnu.org>
1692
1693         PR target/48767
1694         * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
1695         targetm.calls.must_pass_in_stack for void type.
1696
1697 2011-04-26  Jan Hubicka  <jh@suse.cz>
1698
1699         * cgraphbuild.c (build_cgraph_edges): Update call
1700         of cgraph_create_edge and cgraph_create_indirect_edge.
1701         * cgraph.c (cgraph_create_edge_including_clones,
1702         cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
1703         cgraph_update_edges_for_call_stmt_node): Do not take nest
1704         argument; do not initialize call_stmt_size/time.
1705         (dump_cgraph_node): Do not dump nest.
1706         (cgraph_clone_edge): Do not take loop_nest argument;
1707         do not propagate it; do not clone call_stmt_size/time.
1708         (cgraph_clone_node): Likewise.
1709         (cgraph_create_virtual_clone): Update.
1710         * cgraph.h (struct cgraph_edge): Remove
1711         call_stmt_size/call_stmt_time/loop_nest.
1712         (cgraph_create_edge, cgraph_create_indirect_edge,
1713         cgraph_create_edge_including_clones, cgraph_clone_node): Update
1714         prototype.
1715         * tree-emutls.c (gen_emutls_addr): Update.
1716         * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
1717         loop_nest; handle indirect calls, too.
1718         (clone_inlined_nodes): Do not care about updating inline summaries.
1719         * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
1720         * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
1721         stream call_stmt_size/call_stmt_time/loop_nest.
1722         * ipa-inline.c (edge_badness): Update.
1723         (ipa_inline): dump summaries after inlining.
1724         * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
1725         New.
1726         (inline_edge_summary): New function.
1727         * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
1728         (inline_edge_removal_hook): Handle edge summaries.
1729         (inline_edge_duplication_hook): New hook.
1730         (inline_summary_alloc): Alloc hooks.
1731         (initialize_growth_caches): Do not register removal hooks.
1732         (free_growth_caches); Do not free removal hook.
1733         (dump_inline_edge_summary): New function.
1734         (dump_inline_summary): Use it.
1735         (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
1736         (inline_update_callee_summaries): New function.
1737         (inline_merge_summary): Use it.
1738         (do_estimate_edge_time, do_estimate_edge_growth): Update.
1739         (read_inline_edge_summary): New function.
1740         (inline_read_section): Use it.
1741         (write_inline_edge_summary): New function.
1742         (inline_write_summary): Use it.
1743         (inline_free_summary): Free edge new holders.
1744         * tree-inline.c (copy_bb): Update.
1745
1746 2011-04-26  Jason Merrill  <jason@redhat.com>
1747
1748         * tree-eh.c (lower_try_finally_switch): Create the label along with
1749         the CASE_LABEL_EXPR.
1750
1751 2011-04-26  David S. Miller  <davem@davemloft.net>
1752             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1753
1754         * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
1755         * configure: Regenerate.
1756
1757 2011-04-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
1758
1759         PR target/48258
1760         * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
1761         reduction.
1762         (VEC_reduc): New code iterator and splitters for vector reduction.
1763         (VEC_reduc_name): Ditto.
1764         (VEC_reduc_rtx): Ditto.
1765         (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
1766         (reduc_<VEC_reduc_name>_v4sf): Ditto.
1767
1768         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
1769         support for extracting SF on VSX.
1770
1771         * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
1772         generating xscvspdp.
1773         (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
1774         (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
1775         double add, minimum, maximum vector reduction.
1776         (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
1777         (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
1778         optimize double vector reduction.
1779         (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
1780
1781 2011-04-26  Joseph Myers  <joseph@codesourcery.com>
1782
1783         * config/fr30/fr30.h (inhibit_libc): Don't define.
1784         * config/m32r/m32r-protos.h: Correct comment.
1785         * config/v850/v850.h (GHS_default_section_names,
1786         GHS_current_section_names): Use tree, not union tree_node *.
1787
1788 2011-04-26  Xinliang David Li  <davidxl@google.com>
1789
1790         * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
1791         * c-family/c-opts.c (c_common_handle_option): Set
1792         warn_maybe_uninitialized.
1793         * opts.c (common_handle_option): Ditto.
1794         * common.opt:  New option.
1795         * tree-ssa.c (warn_uninit): Add one more parameter.
1796         (warn_uninitialized_var): Pass warning code.
1797         * tree-flow.h: Interface change.
1798
1799
1800 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1801
1802         * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
1803         (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
1804         (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
1805
1806 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1807
1808         * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
1809         * config/mips/mips.opt (mmips-tfile): Remove.
1810
1811         * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
1812         mips-tdump reference to ...
1813         (Specific, alpha*-dec-osf5.1): ... here.  Adapt for Tru64 UNIX.
1814         * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
1815         reference by Tru64 UNIX.
1816
1817 2011-04-26  Jakub Jelinek  <jakub@redhat.com>
1818
1819         PR debug/48768
1820         * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
1821         is error_mark_node, set value to NULL.
1822
1823         PR tree-optimization/48734
1824         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
1825         if return value from maybe_fold_*_comparsions isn't something
1826         the code is prepared to handle.
1827
1828 2011-04-26  Uros Bizjak  <ubizjak@gmail.com>
1829
1830         * config/i386/predicates.md (ext_QIreg_operand): Remove extra
1831         mode check.
1832         (ext_QIreg_nomode_operands): Remove.
1833         * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
1834         (*andsi_1): Ditto.
1835         (*andhi_1): Ditto.
1836
1837 2011-04-26  Andrew Stubbs  <ams@codesourcery.com>
1838
1839         * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
1840
1841 2011-04-26  Richard Guenther  <rguenther@suse.de>
1842
1843         * c-typeck.c (build_unary_op): Do not expand array-refs via
1844         pointer arithmetic.  Only adjust qualifiers for function types.
1845
1846 2011-04-26  Richard Guenther  <rguenther@suse.de>
1847
1848         PR middle-end/48694
1849         * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
1850         * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
1851         compare the operands with OEP_CONSTANT_ADDRESS_OF.  Treat trees
1852         with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
1853
1854 2011-04-25  Paolo Carlini  <paolo.carlini@oracle.com>
1855
1856         * c-family/c-common.c (struct c_common_resword): Add __underlying_type.
1857         * c-family/c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
1858         * doc/extend.texi: Document __underlying_type.
1859
1860 2011-04-25  Segher Boessenkool  <segher@kernel.crashing.org>
1861
1862         * config/rs6000/titan.md (automata_option "progress"): Remove.
1863
1864 2011-04-25  Jeff Law  <law@redhat.com>
1865
1866         * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
1867
1868 2011-04-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
1869
1870         * system.h (ENUM_BITFIELD): Remove.
1871
1872 2011-04-25  Maxim Kuvyrkov  <maxim@codesourcery.com>
1873             Eric Botcazou  <ebotcazou@adacore.com>
1874
1875         * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
1876         for STORE_FLAG_VALUE==-1 case.
1877
1878 2011-04-24  Richard Sandiford  <richard.sandiford@linaro.org>
1879
1880         PR target/43804
1881         * config/m68k/constraints.md (T): Allow PIC operands that satisfy
1882         LEGITIMATE_PIC_OPERAND_P.
1883
1884 2011-04-24  Jan Hubicka  <jh@suse.cz>
1885
1886         * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
1887         WPA hack.
1888         * ipa-prop.h (ipa_get_param, ipa_is_param_used,
1889         ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
1890         ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
1891         * ipa-inline-analysis.c (add_clause): Fix clause ordering.
1892         (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
1893         Sanity check predicate length.
1894         (remap_predicate): Likewise; sanity check jump functions.
1895         (inline_read_section, inline_write_summary): Sanity check
1896         predicate length.
1897
1898 2011-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
1899
1900         PR other/48748
1901         * doc/extend.texi (Type Traits): Document __is_standard_layout,
1902         __is_literal_type, and __is_trivial; update throughout about
1903         possibly cv-qualified void types.
1904
1905 2011-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
1906
1907         * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
1908         testsuite and make it version agnostic.
1909
1910 2011-04-22  Jan Hubicka  <jh@suse.cz>
1911
1912         * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
1913
1914 2011-04-23  Jakub Jelinek  <jakub@redhat.com>
1915
1916         PR c/48685
1917         * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
1918         to VOID_TYPE even around MODIFY_EXPR.
1919
1920 2011-04-22  Mike Stump  <mikestump@comcast.net>
1921
1922         * gensupport.c (read_md_rtx): Fix typo in comment.
1923         * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
1924         comment.
1925
1926 2011-04-22  Jan Hubicka  <jh@suse.cz>
1927
1928         * gengtype.c (open_base_files): Add ipa-inline.h include.
1929         * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
1930         ipa-prop.c; update all uses.
1931         * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
1932         * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
1933         merge summary of inlined function into former caller.
1934         * ipa-inline.c (max_benefit): Remove.
1935         (edge_badness): Compensate for removal of benefits.
1936         (update_caller_keys): Use
1937         reset_node_growth_cache/reset_edge_growth_cache.
1938         (update_callee_keys): Likewise.
1939         (update_all_callee_keys): Likewise.
1940         (inline_small_functions): Do not collect max_benefit; do not reset
1941         estimated_growth; call free_growth_caches and initialize_growth_caches.
1942         * ipa-inline.h (struct condition, type clause_t, struct predicate,
1943         struct size_time_entry): New structures.
1944         (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
1945         (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
1946         and estimated_growth.
1947         (edge_growth_cache_entry): New structure.
1948         (node_growth_cache, edge_growth_cache): New global vars.
1949         (estimate_growth): Turn into inline.
1950         (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
1951         initialize_growth_caches, free_growth_caches): Declare.
1952         (estimate_edge_growth): Rewrite.
1953         (estimate_edge_time): Implement as inline cache lookup.
1954         (reset_node_growth_cache, reset_edge_growth_cache): New inline
1955         functions.
1956         (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
1957         (NUM_CONDITIONS): New constant.
1958         (predicate_conditions): New enum.
1959         (IS_NOT_CONSTANT): New constant.
1960         (edge_removal_hook_holder): New var.
1961         (node_growth_cache, edge_growth_cache): New global vars.
1962         (true_predicate, single_cond_predicate, false_predicate,
1963         not_inlined_predicate, add_condition, add_clause, and_predicates,
1964         or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
1965         dump_clause, dump_predicate, account_size_time,
1966         evaulate_conditions_for_edge): New functions.
1967         (inline_summary_alloc): Move to heap.
1968         (inline_node_removal_hook): Clear condition and entry vectors.
1969         (inline_edge_removal_hook): New function.
1970         (initialize_growth_caches, free_growth_caches): New function.
1971         (dump_inline_summary): Update.
1972         (edge_execution_predicate): New function.
1973         (will_be_nonconstant_predicate): New function.
1974         (estimate_function_body_sizes): Compute BB and constantness predicates.
1975         (compute_inline_parameters): Do not clear estimated_growth.
1976         (estimate_edge_size_and_time): New function.
1977         (estimate_calls_size_and_time): New function.
1978         (estimate_callee_size_and_time): New function.
1979         (remap_predicate): New function.
1980         (inline_merge_summary): New function.
1981         (do_estimate_edge_time): New function based on...
1982         (estimate_edge_time): ... this one.
1983         (do_estimate_edge_growth): New function.
1984         (do_estimate_growth): New function based on....
1985         (estimate_growth): ... this one.
1986         (inline_analyze_function): Analyze after deciding on jump functions.
1987         (inline_read_section): New function.
1988         (inline_read_summary): Use it.
1989         (inline_write_summary): Write all the new data.
1990         * ipa-prop.c (ipa_get_param_decl_index): Export.
1991         (ipa_lattice_from_jfunc): Move here from ipa-cp.c
1992         * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
1993         Declare.
1994         (ipa_get_lattice): Move here from ipa-cp.c
1995         * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
1996         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
1997         * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
1998         cgraph_edge_inlinable_p): Remove.
1999         * cgraphunit.c: Include ipainline.h
2000         (cgraph_process_new_functions): Update call of
2001         compute_inline_parameters.
2002
2003 2011-04-22  Richard Guenther  <rguenther@suse.de>
2004
2005         * tree.c (build_int_cst): Properly create canonicalized integer
2006         constants.
2007         (build_int_cst_type): Remove scary comments.
2008
2009 2011-04-22  Xinliang David Li  <davidxl@google.com>
2010
2011         * toplev.c (process_options): Enable -Werror=coverage-mismatch
2012         by default when -Wno-error is not specified.
2013         * opts-global.c (decode_options): Remove call to
2014         control_warning_options.
2015
2016 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
2017
2018         PR tree-optimization/48717
2019         * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
2020         ~A + A optimizations use build_int_cst_type instead of build_int_cst.
2021
2022 2011-04-22  Joseph Myers  <joseph@codesourcery.com>
2023
2024         * config/bfin/bfin-protos.h (Mmode): Don't define.  Expand
2025         definition where used.
2026
2027 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
2028
2029         PR c/48716
2030         * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
2031         TREE_STATIC variables declared inside of some OpenMP construct.
2032
2033 2011-04-22  Martin Jambor  <mjambor@suse.cz>
2034
2035         PR middle-end/48585
2036         * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
2037
2038 2011-04-22  Alexander Monakov  <amonakov@ispras.ru>
2039
2040         PR c/36750
2041         * c-typeck.c (pop_init_level): Do not warn about initializing
2042         with ` = {0}'.
2043
2044 2011-04-22  Alan Modra  <amodra@gmail.com>
2045
2046         * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
2047         when returning call_cookie.
2048         (rs6000_function_ok_for_sibcall): Allow sibcalls via function
2049         pointers, to functions with no more vector args than the current
2050         function, and some non-local calls for ABI_V4.
2051         * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
2052         sibcall_nonlocal_aix64): Combine to ..
2053         (sibcall_nonlocal_aix<mode>): ..this.  Handle function pointer calls.
2054         (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
2055         (sibcall_value_nonlocal_aix<mode>): ..likewise.
2056         (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
2057         (sibcall_value_nonlocal_sysv<mode>): Likewise.  Correct call cookie
2058         operand.
2059         * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
2060         sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
2061         sibcall_value_symbolic_64): Delete.
2062
2063 2011-04-21  Xinliang David Li  <davidxl@google.com>
2064
2065         * cgraph.h: Remove pid.
2066         * cgraph.c: Remove pid.
2067         * value-prof.c (init_node_map): New function.
2068         (del_node_map): New function.
2069         (find_func_by_funcdef_no): New function.
2070         (gimple_ic_transform): Call new function.
2071         * cgraphunit.c (cgraph_finalize_function): Remove pid.
2072         * function.c (get_last_funcdef_no): New function.
2073         * function.h (get_last_funcdef_no): New function.
2074         * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
2075         to libgcov function.
2076         (tree-profiling): Call node map init and delete function.
2077
2078 2011-04-21  Ian Lance Taylor  <iant@google.com>
2079
2080         * godump.c (go_format_type): Use exported Go name for anonymous
2081         field name.
2082
2083 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
2084
2085         * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
2086         Call builtin_function_type_list instead of builtin_function_type.
2087         (UNARY, BINARY, TRINARY, QUAD): Likewise.
2088
2089 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
2090
2091         * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
2092         build_function_type_list instead of build_function_type.
2093         Delete variable `endlink'.
2094
2095 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
2096
2097         * config/s390/s390.c (s390_init_builtins): Call
2098         build_function_type_list instead of build_function_type.
2099
2100 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
2101
2102         * config/ia64/ia64.c (ia64_init_builtins): Call
2103         build_function_type_list instead of builtin_function_type.
2104
2105 2011-04-21  Easwaran Raman  <eraman@google.com>
2106
2107         * cfgexpand.c (stack_var): Remove OFFSET...
2108         (add_stack_var): ...and its reference here...
2109         (expand_stack_vars): ...and here.
2110         (stack_var_cmp): Sort by descending order of size.
2111         (partition_stack_vars): Change heuristic.
2112         (union_stack_vars): Fix to reflect changes in partition_stack_vars.
2113         (dump_stack_var_partition): Add newline after each partition.
2114
2115 2011-04-21  Dimitrios Apostolou  <jimis@gmx.net>
2116             Jeff Law  <law@redhat.com>
2117
2118         * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
2119         * gengtype.c (matching_file_name_substitute): Likewise.
2120
2121 2011-04-21  Richard Guenther  <rguenther@suse.de>
2122
2123         PR lto/48703
2124         * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
2125
2126 2011-04-21  Eric Botcazou  <ebotcazou@adacore.com>
2127
2128         * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
2129
2130 2011-04-21  Richard Guenther  <rguenther@suse.de>
2131
2132         * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
2133         file name.
2134
2135 2011-04-21  Richard Guenther  <rguenther@suse.de>
2136
2137         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
2138         MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
2139         Use DECL_P, not SSA_VAR_P.
2140         (ptr_derefs_may_alias_p): Likewise.
2141         (ptr_deref_may_alias_ref_p_1): Likewise.
2142         (decl_refs_may_alias_p): Likewise.
2143         (refs_may_alias_p_1): Likewise.
2144         (ref_maybe_used_by_call_p_1): Likewise.
2145         (call_may_clobber_ref_p_1): Likewise.
2146         (indirect_ref_may_alias_decl_p): Assume indirect refrences
2147         are either MEM_REF or TARGET_MEM_REF.
2148         (indirect_refs_may_alias_p): Likewise.
2149         * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
2150         for MEM_EXPR of indirect calls.
2151
2152 2011-04-21  Tristan Gingold  <gingold@adacore.com>
2153
2154         * vmsdbgout.c (write_srccorr): Compute file length from the string.
2155         (dst_file_info_struct): Remove flen field.
2156         (lookup_filename): Remove code that set flen field.
2157
2158 2011-04-21  Tristan Gingold  <gingold@adacore.com>
2159
2160         * config/ia64/ia64.c (ia64_start_function): Add a guard.
2161
2162 2011-04-21  Uros Bizjak  <ubizjak@gmail.com>
2163
2164         PR target/48708
2165         * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
2166         vec_extract and vec_concat for non-SSE4_1 targets.
2167
2168 2011-04-21  Richard Guenther  <rguenther@suse.de>
2169
2170         * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
2171         return statements.
2172
2173 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
2174
2175         * config/i386/cygming.h (union tree_node, TREE): Don't define or
2176         undefine.
2177         (FILE): Don't undefine.
2178
2179 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
2180
2181         * config/alpha/alpha.c (struct machine_function): Use rtx, not
2182         struct rtx_def *.
2183         * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
2184         struct rtx_def *.
2185         * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
2186         * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
2187         * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
2188         rtx_def *.
2189         * config/m32c/m32c-protos.h (MM, UINT): Don't define.  Expand
2190         definitions where used.
2191         * config/microblaze/microblaze.h (struct microblaze_args): Use
2192         rtx, not struct rtx_def *.
2193         * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
2194         rtx_def *.
2195         * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
2196         * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
2197         * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
2198         not struct rtx_def *.
2199         * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
2200         struct rtx_def *.
2201         * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
2202         rtx_def *.
2203         * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
2204
2205 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
2206
2207         * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
2208         operand_equal_p to compare DR_BASE_ADDRESSes.
2209         (vect_check_interleaving): Likewise.
2210
2211 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
2212
2213         PR target/46329
2214         * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
2215         for all Neon struct constants.
2216
2217 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
2218
2219         * target.def (legitimate_constant_p): New hook.
2220         * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
2221         (TARGET_LEGITIMATE_CONSTANT_P): ...this.
2222         * doc/tm.texi: Regenerate.
2223         * hooks.h (hook_bool_mode_rtx_true): Declare.
2224         * hooks.c (hook_bool_mode_rtx_true): Define.
2225         * system.h (LEGITIMATE_CONSTANT_P): Poison.
2226         * calls.c (precompute_register_parameters): Replace uses of
2227         LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
2228         (emit_library_call_value_1): Likewise.
2229         * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
2230         (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
2231         * ira-costs.c (scan_one_insn): Likewise.
2232         * recog.c (general_operand, immediate_operand): Likewise.
2233         * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
2234         * reload1.c (init_eliminable_invariants): Likewise.
2235
2236         * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
2237         mode argument.
2238         * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
2239         * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
2240         argument.
2241         (TARGET_LEGITIMATE_CONSTANT_P): Define.
2242         * config/alpha/predicates.md (input_operand): Update call to
2243         alpha_legitimate_constant_p.
2244
2245         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
2246         * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
2247         (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
2248         * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2249         (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
2250         (arm_legitimate_constant_p): New functions.
2251         (arm_cannot_force_const_mem): Make static.
2252
2253         * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
2254
2255         * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
2256         * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
2257         * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
2258         instead of bfin_legitimate_constant_p.
2259         (bfin_legitimate_constant_p): Make static.  Add a mode argument.
2260         (TARGET_LEGITIMATE_CONSTANT_P): Define.
2261
2262         * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
2263
2264         * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
2265
2266         * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
2267         * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
2268         * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2269         (frv_legitimate_constant_p): Make static.  Add a mode argument.
2270
2271         * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
2272         * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
2273         * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
2274
2275         * config/i386/i386-protos.h (legitimate_constant_p): Delete.
2276         * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
2277         * config/i386/i386.c (legitimate_constant_p): Rename to...
2278         (ix86_legitimate_constant_p): ...this.  Make static.  Add a mode
2279         argument.
2280         (ix86_cannot_force_const_mem): Update accordingly.
2281         (ix86_legitimate_address_p): Likewise.
2282         (TARGET_LEGITIMATE_CONSTANT_P): Define.
2283         * config/i386/i386.md: Update commentary.
2284
2285         * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
2286         * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
2287         * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2288         (ia64_legitimate_constant_p): Make static.  Add a mode argument.
2289
2290         * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
2291
2292         * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
2293         * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
2294         * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2295         (lm32_legitimate_constant_p): Make static.  Add a mode argument.
2296
2297         * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
2298         * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
2299         * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
2300
2301         * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
2302         * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2303         (m32r_legitimate_constant_p): New function.
2304
2305         * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
2306         * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
2307         LEGITIMATE_CONSTANT_P.
2308         (LEGITIMATE_CONSTANT_P): Delete.
2309         * config/m68k/m68k.c (m68k_expand_prologue): Call
2310         m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
2311         (m68k_legitimate_constant_p): New function.
2312         * config/m68k/m68k.md: Update comments.
2313
2314         * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
2315         * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2316         (mcore_legitimate_constant_p): New function.
2317
2318         * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
2319         * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
2320         * config/mep/mep.c (mep_legitimate_constant_p): Make static.
2321         Add a mode argument.
2322         (mep_legitimate_address): Update accordingly.
2323         (TARGET_LEGITIMATE_CONSTANT_P): Define.
2324
2325         * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
2326         Delete.
2327         * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
2328         * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
2329         static.  Check OP's mode for VOIDmode.
2330         (microblaze_legitimate_constant_p): New function.
2331         (TARGET_LEGITIMATE_CONSTANT_P): Define.
2332
2333         * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
2334         * config/mips/mips.c (mips_legitimate_constant_p): New function.
2335         (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
2336         (TARGET_LEGITIMATE_CONSTANT_P): Define.
2337         * config/mips/predicates.md: Update comments.
2338
2339         * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
2340         * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
2341         * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2342         (mmix_legitimate_constant_p): Make static, return a bool, and take
2343         a mode argument.
2344         (mmix_print_operand_address): Update accordingly.
2345
2346         * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
2347         Delete.
2348         * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
2349         * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
2350         static.  Add a mode argument.
2351         (TARGET_LEGITIMATE_CONSTANT_P): Define.
2352
2353         * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
2354
2355         * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
2356         * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2357         (pa_legitimate_constant_p): New function.
2358
2359         * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
2360
2361         * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
2362         * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2363         (pdp11_legitimate_constant_p): New function.
2364
2365         * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
2366         * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2367         (rs6000_legitimate_constant_p): New function.
2368
2369         * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
2370         (rx_legitimate_constant_p): ...this.
2371         * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
2372         * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
2373         (rx_legitimate_constant_p): ...this.
2374         (TARGET_LEGITIMATE_CONSTANT_P): Define.
2375         * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
2376
2377         * config/s390/s390-protos.h (legitimate_constant_p): Delete.
2378         * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
2379         * config/s390/s390.c (legitimate_constant_p): Rename to...
2380         (s390_legitimate_constant_p): ...this.  Make static, return a bool,
2381         and add a mode argument.
2382         (TARGET_LEGITIMATE_CONSTANT_P): Define.
2383
2384         * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
2385
2386         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
2387         * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2388         (sh_legitimate_constant_p): New function.
2389
2390         * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
2391         * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
2392         * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2393         (legitimate_constant_p): Rename to...
2394         (sparc_legitimate_constant_p): ...this.  Make static.  Add a mode
2395         argument.
2396         (constant_address_p): Update accordingly.
2397
2398         * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
2399         argument and return a bool.
2400         * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
2401         * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2402         (spu_legitimate_constant_p): Add a mode argument and return a bool.
2403         (spu_rtx_costs): Update accordingly.
2404         * config/spu/predicates.md (vec_imm_operand): Likewise.
2405
2406         * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
2407
2408         * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
2409         * config/v850/v850.c (v850_legitimate_constant_p): New function.
2410         (TARGET_LEGITIMATE_CONSTANT_P): Define.
2411
2412         * config/vax/vax-protos.h (legitimate_constant_p): Delete.
2413         * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
2414         * config/vax/vax.c (legitimate_constant_p): Likewise.
2415
2416         * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
2417         * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2418         (xtensa_legitimate_constant_p): New function.
2419
2420 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
2421
2422         * target.def (cannot_force_const_mem): Add a mode argument.
2423         * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
2424         * doc/tm.texi: Regenerate.
2425         * hooks.h (hook_bool_mode_rtx_false): Declare.
2426         * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
2427         (hook_bool_mode_const_rtx_true): Likewise.
2428         (hook_bool_mode_rtx_false): New function.
2429         * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
2430         to be non-VOID.  Update call to cannot_force_const_mem.
2431         (find_reloads): Update accordingly.
2432         * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
2433         * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
2434         argument.
2435         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
2436         * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
2437         * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
2438         * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
2439         * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
2440         * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
2441         * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
2442         * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
2443         (m68k_cannot_force_const_mem): ...this new function.
2444         * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
2445         argument.
2446         (mips_const_insns, mips_legitimize_const_move): Update calls.
2447         (mips_secondary_reload_class): Likewise.
2448         * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
2449         (pa_cannot_force_const_mem): ...this new function.
2450         * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
2451         (rs6000_cannot_force_const_mem): ...this new function.
2452         * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
2453         argument.
2454         * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
2455         * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
2456         to...
2457         (xtensa_cannot_force_const_mem): ...this new function.
2458
2459 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
2460
2461         * config/mips/mips.c (mips16_build_function_stub): Call
2462         build_function_type_list instead of build_function_type.
2463         (mips16_build_call_stub): Likewise.
2464
2465 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
2466
2467         * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
2468         instead of build_function_type.
2469
2470 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
2471
2472         * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
2473         instead of build_function_type.
2474
2475 2011-04-20  Uros Bizjak  <ubizjak@gmail.com>
2476
2477         PR target/48678
2478         * config/i386/i386.md (insv): Change operand 0 constraint to
2479         "register_operand".  Change operand 1 and 2 constraint to
2480         "const_int_operand".  Expand to pinsr{b,w,d,q} * when appropriate.
2481         * config/i386/sse.md (sse4_1_pinsrb): Export.
2482         (sse2_pinsrw): Ditto.
2483         (sse4_1_pinsrd): Ditto.
2484         (sse4_1_pinsrq): Ditto.
2485         * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
2486         * config/i386/i386.c (ix86_expand_pinsr): New.
2487
2488 2011-04-20  Easwaran Raman  <eraman@google.com>
2489
2490         * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
2491         containing union type only with -fstrict-aliasing.
2492
2493 2011-04-20  Jim Meyering  <meyering@redhat.com>
2494
2495         Remove useless if-before-free tests.
2496         * calls.c (expand_call, save_area): Likewise.
2497         * cfgcleanup.c (try_forward_edges): Likewise.
2498         * collect2.c (collect_execute): Likewise.
2499         * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
2500         * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
2501         * coverage.c (coverage_checksum_string): Likewise.
2502         * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
2503         * cselib.c (cselib_init): Likewise.
2504         * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
2505         (df_set_clean_cfg): Likewise.
2506         * function.c (free_after_compilation): Likewise.
2507         * gcc.c (do_spec_1, main): Likewise.
2508         * gcov.c (create_file_names): Likewise.
2509         * gensupport.c (identify_predicable_attribute): Likewise.
2510         * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
2511         * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
2512         * haifa-sched.c (haifa_finish_h_i_d): Likewise.
2513         * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
2514         * ipa-pure-const.c (local_pure_const): Likewise.
2515         * ipa-reference.c (propagate): Likewise.
2516         * ira-costs.c (free_ira_costs): Likewise.
2517         * ira.c (free_register_move_costs, build_insn_chain): Likewise.
2518         * matrix-reorg.c (mat_free): Likewise.
2519         * prefix.c (get_key_value): Likewise.
2520         * profile.c (compute_value_histograms): Likewise.
2521         * reload1.c (free_reg_equiv): Likewise.
2522         * sched-deps.c (free_deps): Likewise.
2523         * sel-sched-ir.c (fence_clear): Likewise.
2524         * sese.c (set_rename, if_region_set_false_region): Likewise.
2525         * tree-data-ref.c (free_rdg): Likewise.
2526         * tree-eh.c (lower_try_finally): Likewise.
2527         * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
2528         * tree-ssa-live.c (delete_var_map): Likewise.
2529         * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
2530         * tree-ssa-pre.c (phi_trans_add): Likewise.
2531
2532 2011-04-20  Jakub Jelinek  <jakub@redhat.com>
2533
2534         PR tree-optimization/48611
2535         * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
2536         beyond ERT_MUST_NOT_THROW region.
2537
2538 2011-04-20  Catherine Moore  <clm@codesourcery.com>
2539
2540         * config/mips/mips.opt (mfix-24k): New.
2541         * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
2542         * config/mips/mips.md (length): Increase by 4 for stores if
2543         fixing 24K errata.
2544         * config/mips/mips.c (mips_reorg_process_insns): Do not allow
2545         all noreorder if fixing 24K errata.
2546         * doc/invoke.texi: Document mfix-24k.
2547
2548 2011-04-20  Chung-Lin Tang  <cltang@codesourcery.com>
2549
2550         * config/arm/arm.c (arm_legitimize_reload_address): For NEON
2551         quad-word modes, reduce to 9-bit index range when above 1016 limit.
2552
2553 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
2554
2555         * config/arm/arm.c (arm_gen_constant): Move movw support ....
2556         (const_ok_for_op): ... to here.
2557
2558 2011-04-20  Kai Tietz  <ktietz@redhat.com>
2559
2560         * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
2561         and (X && !Y) | (!X && Y) optimization to (X ^ Y).
2562
2563 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
2564
2565         * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
2566
2567 2011-04-20  Richard Guenther  <rguenther@suse.de>
2568
2569         PR tree-optimization/47892
2570         * tree-if-conv.c (if_convertible_stmt_p): Const builtins
2571         are if-convertible.
2572
2573 2011-04-20  Eric Botcazou  <ebotcazou@adacore.com>
2574
2575         * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
2576
2577 2011-04-20  Tristan Gingold  <gingold@adacore.com>
2578
2579         * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
2580
2581 2011-04-20  Georg-Johann Lay  <avr@gjlay.de>
2582
2583         PR target/18145
2584
2585         * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
2586         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
2587         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
2588         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
2589         (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
2590
2591         * config/avr/avr-protos.h (avr_asm_output_aligned_common):
2592         New prototype.
2593
2594         * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
2595         (avr_asm_named_section, avr_asm_output_aligned_common,
2596         avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
2597         New functions to update...
2598         (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
2599         (avr_asm_init_sections): Overwrite section callbacks for
2600         data_section, bss_section.
2601         (avr_file_start): Move output of __do_copy_data, __do_clear_bss
2602         from here to...
2603         (avr_file_end): ...here.
2604
2605 2011-04-20  Richard Guenther  <rguenther@suse.de>
2606
2607         PR middle-end/48695
2608         * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
2609         objects and types here.  Adjust for their offset before comparing.
2610
2611 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
2612
2613         * tree-vect-stmts.c (vectorizable_store): Only chain one related
2614         statement per copy.
2615
2616 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
2617
2618         * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
2619         (GIMPLE_H): Include $(INTERNAL_FN_H).
2620         (OBJS-common): Add internal-fn.o.
2621         (internal-fn.o): New rule.
2622         * internal-fn.def: New file.
2623         * internal-fn.h: Likewise.
2624         * internal-fn.c: Likewise.
2625         * gimple.h: Include internal-fn.h.
2626         (GF_CALL_INTERNAL): New gf_mask.
2627         (gimple_statement_call): Put fntype into a union with a new
2628         internal_fn field.
2629         (gimple_build_call_internal): Declare.
2630         (gimple_build_call_internal_vec): Likewise.
2631         (gimple_call_same_target_p): Likewise.
2632         (gimple_call_internal_p): New function.
2633         (gimple_call_internal_fn): Likewise.
2634         (gimple_call_fntype): Return null for internal calls.
2635         (gimple_call_set_fntype): Assert that the function is not internal.
2636         (gimple_call_set_fn): Likewise.
2637         (gimple_call_set_fndecl): Likewise.
2638         (gimple_call_set_internal_fn): New function.
2639         (gimple_call_addr_fndecl): Handle null functions.
2640         (gimple_call_return_type): Likewise null types.
2641         * gimple.c (gimple_build_call_internal_1): New function.
2642         (gimple_build_call_internal): Likewise.
2643         (gimple_build_call_internal_vec): Likewise.
2644         (gimple_call_same_target_p): Likewise.
2645         (gimple_call_flags): Handle calls to internal functions.
2646         (gimple_call_fnspec): New function.
2647         (gimple_call_arg_flags, gimple_call_return_flags): Use it.
2648         (gimple_has_side_effects): Handle null functions.
2649         (gimple_rhs_has_side_effects): Likewise.
2650         (gimple_call_copy_skip_args): Handle calls to internal functions.
2651         * cfgexpand.c (expand_call_stmt): Likewise.
2652         * expr.c (expand_expr_real_1): Assert that the call isn't internal.
2653         * gimple-fold.c (gimple_fold_call): Handle null functions.
2654         (gimple_fold_stmt_to_constant_1): Don't fold
2655         calls to internal functions.
2656         * gimple-low.c (gimple_check_call_args): Handle calls to internal
2657         functions.
2658         * gimple-pretty-print.c (dump_gimple_call): Likewise.
2659         * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
2660         * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
2661         (do_warn_unused_result): Likewise.
2662         * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
2663         * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
2664         * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
2665         the target of a call.
2666         (initialize_hash_element): Update accordingly.
2667         (hashable_expr_equal_p): Use gimple_call_same_target_p.
2668         (iterative_hash_hashable_expr): Handle calls to internal functions.
2669         (print_expr_hash_elt): Likewise.
2670         * tree-ssa-pre.c (can_value_number_call): Likewise.
2671         (eliminate): Handle null functions.
2672         * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
2673         * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
2674         (find_func_aliases): Likewise.
2675         * value-prof.c (gimple_ic_transform): Likewise.
2676         (gimple_indirect_call_to_profile): Likewise.
2677         * lto-streamer-in.c (input_gimple_stmt): Likewise.
2678         * lto-streamer-out.c (output_gimple_stmt): Likewise.
2679
2680 2011-04-19  Jan Hubicka  <jh@suse.cz>
2681
2682         * ipa-inline-transform.c (save_inline_function_body): Add comments.
2683         * ipa-inline.c (inline_small_functions): Compute summaries first,
2684         populate heap later.
2685
2686 2011-04-19  Jan Hubicka  <jh@suse.cz>
2687
2688         * cgraph.h (save_inline_function_body): Remove.
2689         * ipa-inline-transform.c: New file, broke out of...
2690         * ipa-inline.c: ... this one; Update toplevel comment.
2691         (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
2692         make global.
2693         (update_noncloned_frequencies): Move to ipa-inline-transform.c
2694         (cgraph_mark_inline_edge): Rename to inline_call; move to
2695         ipa-inline-transform.c.
2696         (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
2697         move to ipa-inline-transform.c
2698         (recursive_inlining, inline_small_functions, flatten_function,
2699         ipa_inline, inline_always_inline_functions,
2700         early_inline_small_functions): Update.
2701         (inline_transform): Move to ipa-inline-transform.c.
2702         * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
2703         Declare.
2704         * Makefile.in (ipa-inline-transform.o): New file.
2705         * cgraphunit.c (save_inline_function_body): Move to
2706         ipa-inline-transform.c
2707
2708 2011-04-19  DJ Delorie  <dj@redhat.com>
2709
2710         * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
2711         registers if we already know there aren't any.
2712         (m32c_emit_epilogue): Don't emit a barrier here.
2713         (m32c_emit_eh_epilogue): Likewise.
2714         * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
2715         operands at expand time.
2716         * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
2717         int" wchar type.
2718         (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
2719         duplicates.  Provide aliases instead.
2720         * config/m32c/prologue.md (eh_return): Emit a barrier here.
2721         (eh_epilogue): Add a "(return)" here as a hint to other parts of
2722         the compiler.
2723
2724 2011-04-19  Anatoly Sokolov  <aesok@post.ru>
2725
2726         * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
2727         * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
2728         (general_or_i64_p, sparc_register_move_cost): New function.
2729
2730 2011-04-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2731
2732         * doc/install.texi (Configuration, --enable-threads): Remove mach.
2733         Add lynx, mipssde.  Sort table.
2734
2735 2011-04-19  Xinliang David Li  <davidxl@google.com>
2736
2737         * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
2738         not negative.
2739
2740 2011-04-19  Jakub Jelinek  <jakub@redhat.com>
2741
2742         PR target/48678
2743         * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
2744         is a SUBREG with non-MODE_INT mode inside of it.
2745
2746 2011-04-19  Martin Jambor  <mjambor@suse.cz>
2747
2748         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
2749         also according to actual contants.
2750         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
2751         (gimple_fold_call): Use it.
2752         * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
2753
2754 2011-04-19  Martin Jambor  <mjambor@suse.cz>
2755
2756         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
2757         non-pointer assignments.
2758
2759 2011-04-19  Martin Jambor  <mjambor@suse.cz>
2760
2761         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
2762         account anc_offset and otr_type from the indirect edge info.
2763         * ipa-prop.c (get_ancestor_addr_info): New function.
2764         (compute_complex_ancestor_jump_func): Assignment analysis moved to
2765         get_ancestor_addr_info, call it.
2766         (ipa_note_param_call): Do not initialize information about polymorphic
2767         calls, return the indirect call graph edge.  Remove the last
2768         parameter, adjust all callers.
2769         (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
2770         parameters.  Initialize polymorphic information in the indirect edge.
2771
2772 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
2773
2774         PR lto/48148
2775         * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
2776         the types if they have different enumeration identifiers.
2777
2778 2011-04-19  Jan Hubicka  <jh@suse.cz>
2779
2780         * cgraph.h (cgraph_optimize_for_size_p): Declare.
2781         * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
2782         * predict.c (cgraph_optimize_for_size_p): Break out from ...
2783         (optimize_function_for_size_p) ... here.
2784
2785 2011-04-19  Richard Guenther  <rguenther@suse.de>
2786
2787         PR lto/48207
2788         * tree.c (free_lang_data): Do not reset the decl-assembler-name
2789         langhook.
2790
2791 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
2792
2793         * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
2794         if DECL_NO_INLINE_WARNING_P is set on the function.
2795
2796 2011-04-19  Bernd Schmidt  <bernds@codesourcery.com>
2797
2798         PR fortran/47976
2799         * reload1.c (inc_for_reload): Return void. All callers changed.
2800         (emit_input_reload_insns): Don't try to delete previous output
2801         reloads to a register, or record spill_reg_store for autoincs.
2802
2803 2011-04-19  Basile Starynkevitch  <basile@starynkevitch.net>
2804
2805         * gengtype.h: Updated copyright year.
2806         (struct input_file_st): Add inpisplugin field.
2807         (type_fileloc): New function.
2808         * gengtype.c
2809         (write_typed_struct_alloc_def): Add gcc_assert.
2810         (write_typed_alloc_defns): Ditto. Don't output for plugin files.
2811         (write_typed_alloc_defns): Don't output for plugin files.
2812         (input_file_by_name): Clear inpisplugin field.
2813         (main): Set inpisplugin field for plugin files.
2814
2815 2011-04-19  Nicola Pero  <nicola.pero@meta-innovation.com>
2816
2817         * gengtype-state.c (string_eq): New.
2818         (read_state): Use string_eq instead of strcmp when creating the
2819         state_ident_tab.
2820
2821 2011-04-19  Wei Guozhi  <carrot@google.com>
2822
2823         PR target/47855
2824         * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
2825         * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
2826         linkage.
2827         * config/arm/constraints.md (Uu): New constraint.
2828         * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
2829
2830 2011-04-19  Tristan Gingold  <gingold@adacore.com>
2831
2832         * config.gcc (-*-*-*vms): Added.
2833         (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
2834         definitions moved.
2835         * config/vms/vms-ld.c: New file.
2836         * config/vms/vms-ar.c: New file.
2837         * config/vms/t-vmsnative: New file.
2838
2839 2011-04-18  Xinliang David Li  <davidxl@google.com>
2840
2841         * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
2842
2843 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
2844
2845         PR middle-end/48661
2846         * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
2847         if TREE_TYPE (v) is non-NULL.
2848
2849         * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
2850         gimple_get_virt_mehtod_for_binfo.
2851         * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
2852         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
2853         callers.
2854         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
2855
2856 2011-04-18  Michael Matz  <matz@suse.de>
2857             Steve Ellcey  <sje@cup.hp.com>
2858
2859         * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
2860         use its mode as source mode if it isn't VOIDmode.
2861
2862 2011-04-18  Dennis, CHENG Renquan  <crquan@fedoraproject.org>
2863
2864         * doc/passes.texi: Fill crossref nodes.
2865
2866 2011-04-18  Jim Meyering  <meyering@redhat.com>
2867
2868         Fix doubled-word typos in comments and strings
2869         * config/alpha/vms-unwind.h: s/for for/for/
2870         * config/arm/unwind-arm.h: Likewise.
2871         * config/microblaze/microblaze.c: Likewise.
2872         * config/sh/constraints.md: s/in in/in/
2873         * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
2874
2875 2011-04-18  Uros Bizjak  <ubizjak@gmail.com>
2876
2877         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
2878         (AVX_FLOAT_MODE_P): Ditto.
2879         (AVX128_VEC_FLOAT_MODE_P): Ditto.
2880         (AVX256_VEC_FLOAT_MODE_P): Ditto.
2881         (AVX_VEC_FLOAT_MODE_P): Ditto.
2882         * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
2883         (UNSPEC_MASKSTORE): Ditto.
2884         * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
2885         Merge from <sse>_movmsk<ssemodesuffix> and
2886         avx_movmsk<ssemodesuffix>256.  Use VF mode iterator.
2887         (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64.  Use P mode
2888         iterator.
2889         (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
2890         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
2891         (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
2892
2893 2011-04-18  Jan Hubicka  <jh@suse.cz>
2894
2895         * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
2896
2897         * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
2898         (want_inline_function_called_once_p): Break out the logic from
2899         ipa_inline.
2900         (edge_badness): Ensure that profile is not misupdated.
2901         (lookup_recursive_calls): Prioritize by call frequencies.
2902         (inline_small_functions): Move program size estimates here;
2903         actually process whole queue even when unit growth has been
2904         met. (to properly compute inline_failed reasons and for the
2905         case unit size decrease.) Revisit comments on recursive inlining.
2906         (ipa_inline): Remove unit summary code; first inline hot calls
2907         of functions called once, cold calls next.
2908         (order, nnodes): Remove unused variables.
2909         * Makefile.in (ipa-inline.o): No longer depent on ggc files.
2910         (GTFILES): Remove ipa-inline.c
2911         * sel-sched.c (fill_insns): Silence uninitialized var warning.
2912
2913 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
2914
2915         * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
2916
2917 2011-04-18  Jie Zhang  <jie@codesourcery.com>
2918             Richard Earnshaw  <rearnsha@arm.com>
2919
2920         * arm.c (neon_builtin_type_bits): Remove.
2921         (typedef enum neon_builtin_mode): New.
2922         (T_MAX): Don't define.
2923         (typedef enum neon_builtin_datum): Remove bits, codes[],
2924         num_vars and base_fcode.  Add mode, code and fcode.
2925         (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
2926         VAR10): Change accordingly.
2927         (neon_builtin_data[]): Change accordingly
2928         (arm_init_neon_builtins): Change accordingly.
2929         (neon_builtin_compare): Remove.
2930         (locate_neon_builtin_icode): Remove.
2931         (arm_expand_neon_builtin): Change accordingly.
2932
2933         * arm.h (enum arm_builtins): Move to ...
2934         * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
2935
2936         * arm.c (arm_builtin_decl): Declare.
2937         (TARGET_BUILTIN_DECL): Define.
2938         (enum arm_builtins): Correct ARM_BUILTIN_MAX.
2939         (arm_builtin_decls[]): New.
2940         (arm_init_neon_builtins): Store builtin declarations in
2941         arm_builtin_decls[].
2942         (arm_init_tls_builtins): Likewise.
2943         (arm_init_iwmmxt_builtins): Likewise.  Refactor initialization code.
2944         (arm_builtin_decl): New.
2945
2946 2011-04-18  Richard Guenther  <rguenther@suse.de>
2947
2948         * tree.c (upper_bound_in_type): Build properly canonicalized
2949         INTEGER_CSTs.
2950         (lower_bound_in_type): Likewise.
2951
2952 2011-04-18  Richard Guenther  <rguenther@suse.de>
2953
2954         * gimple.h (gimple_call_addr_fndecl): New function.
2955         (gimple_call_fndecl): Use it.
2956         * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
2957         for direct calls.
2958         * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
2959         * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
2960
2961 2011-04-18  Richard Guenther  <rguenther@suse.de>
2962
2963         PR middle-end/48650
2964         * tree.c (build_string): STRING_CST is now derived from tree_typed.
2965
2966 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
2967
2968         PR lto/48492
2969         * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
2970         DECL_IN_CONSTANT_POOL without RTL.
2971
2972 2011-04-18  Ulrich Weigand  <ulrich.weigand@linaro.org>
2973             Ira Rosen  <ira.rosen@linaro.org>
2974
2975         PR target/48252
2976         * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
2977         to match neon_vzip/vuzp/vtrn_internal.
2978         * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
2979         outputs explicitly dependent on both inputs.
2980         (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
2981
2982 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
2983
2984         PR tree-optimization/48616
2985         * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
2986         whether the shift is by scalar or vector based on whether all SLP
2987         scalar stmts have the same rhs.
2988
2989 2011-04-17  Chung-Lin Tang  <cltang@codesourcery.com>
2990
2991         * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
2992         memory operands.
2993
2994 2011-04-17  Richard Sandiford  <rdsandiford@googlemail.com>
2995
2996         * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
2997         registers.
2998
2999 2011-04-17  Jan Hubicka  <jh@suse.cz>
3000
3001         * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
3002         * cgrpahunit.c (cgraph_finalize_function): Do not set
3003         finalized_by_frontend.
3004         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
3005         finalized_by_frontend.
3006
3007 2011-04-17  Jan Hubicka  <jh@suse.cz>
3008
3009         * cgraph.c (cgraph_clone_node): Do not handle vtable_method
3010         * cgraph.h (struct cgraph_local_info): Drop vtable_method.
3011         * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
3012         * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
3013         method.
3014         * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
3015         gimple-fold.c
3016         * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
3017
3018 2011-04-17  Eric Botcazou  <ebotcazou@adacore.com>
3019
3020         PR lto/48538
3021         * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
3022         is non-null before accessing it.
3023         (input_cgraph): Remove trailing spaces.
3024
3025 2011-04-17  Revital Eres  <revital.eres@linaro.org>
3026
3027         * params.def (sms-min-sc): New param flag.
3028         * modulo-sched.c (sms_schedule): Use it.
3029         * doc/invoke.texi (sms-min-sc): Document it.
3030
3031 2011-04-17  Jan Hubicka  <jh@suse.cz>
3032
3033         * lto-symtab.c (lto_cgraph_replace_node): When call statement is
3034         present, also set gimple_call_set_cannot_inline.
3035         * ipa-inline.c: Update toplevel comment.
3036         (MAX_TIME): Remove.
3037         (cgraph_clone_inlined_nodes): Fix linebreaks.
3038         (cgraph_check_inline_limits): Restructure to ...
3039         (caller_growth_limits): ... this one; be more tolerant
3040         on growth in nested inline chains; add explanatory comment;
3041         fix stack accounting thinko introduced by previous patch.
3042         (cgraph_default_inline_p): Remove.
3043         (report_inline_failed_reason): New function.
3044         (can_inline_edge_p): New function.
3045         (can_early_inline_edge_p): New function.
3046         (leaf_node_p): Move upwards in file.
3047         (want_early_inline_function_p): New function.
3048         (want_inline_small_function_p): New function.
3049         (want_inline_self_recursive_call_p): New function.
3050         (cgraph_edge_badness): Rename to ...
3051         (edge_badness) ... this one; fix linebreaks.
3052         (update_edge_key): Update call of edge_baddness; add
3053         detailed dump about queue updates.
3054         (update_caller_keys): Use can_inline_edge_p and
3055         want_inline_small_function_p.
3056         (cgraph_decide_recursive_inlining): Rename to...
3057         (recursive_inlining): Use can_inline_edge_p and
3058         want_inline_self_recursive_call_p; simplify and remove no longer
3059         valid FIXME.
3060         (cgraph_set_inline_failed): Remove.
3061         (add_new_edges_to_heap): Use can_inline_edge_p and
3062         want_inline_small_function_p.
3063         (cgraph_decide_inlining_of_small_functions): Rename to ...
3064         (inline_small_functions): ... this one; cleanup; use
3065         can/want predicates; cleanup debug ouput; work edges till fibheap
3066         is exhausted and do not stop once unit growth is reached; remove
3067         later loop processing remaining edges.
3068         (cgraph_flatten): Rename to ...
3069         (flatten_function): ... this one; use can_inline_edge_p
3070         and can_early_inline_edge_p predicates.
3071         (cgraph_decide_inlining): Rename to ...
3072         (ipa_inline): ... this one; remove unreachable nodes before
3073         inlining functions called once; simplify the pass.
3074         (cgraph_perform_always_inlining): Rename to ...
3075         (inline_always_inline_functions): ... this one; use
3076         DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
3077         (cgraph_decide_inlining_incrementally): Rename to ...
3078         (early_inline_small_functions): ... this one; simplify
3079         using new predicates; cleanup; make dumps prettier.
3080         (cgraph_early_inlining): Rename to ...
3081         (early_inliner): newer inline regular functions into always-inlines;
3082         fix updating of call stmt summaries.
3083         (pass_early_inline): Update for new names.
3084         (inline_transform): Fix formating.
3085         (gate_cgraph_decide_inlining): Rename to ...
3086         (pass_ipa_inline): ... this one.
3087         * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
3088         * ipa-inline-analysis.c (dump_inline_summary): Update.
3089         (compute_inline_parameters): Do not compute disregard_inline_limits;
3090         look for mismatching arguments.
3091         (estimate_growth): Fix handlig of non-trivial self recursion.
3092         (inline_read_summary): Do not read info->disregard_inline_limits.
3093         (inline_write_summary): Do not write info->disregard_inline_limits.
3094         * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
3095         and move all checks into can_inline_edge_p predicate; re-enable code
3096         comparing optimization levels.
3097         (expand_call_inline): Do not test inline_forbidden_into_p.
3098         * Makefile.in (ipa-inline.o): Update arguments.
3099
3100 2011-04-17  Revital Eres  <revital.eres@linaro.org>
3101
3102         * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
3103
3104 2011-04-17  Revital Eres  <revital.eres@linaro.org>
3105
3106         * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
3107
3108 2011-04-17  Michael Matz  <matz@suse.de>
3109
3110         PR tree-optimization/48622
3111         PR lto/48645
3112         * ipa-inline-analysis.c (inline_read_summary): Read size/time
3113         in same order as they're written.
3114
3115 2011-04-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3116
3117         * config/pa/predicates.md: Reorganize and simplify predicates.
3118         Eliminate duplicate code checks.
3119         (arith_operand): Rename to arith14_operand
3120         (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
3121         * config/pa/pa.md: Use renamed operands.
3122         * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
3123         (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
3124         arith11_operand, adddi3_operand, indexed_memory_operand,
3125         symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
3126         arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
3127         borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
3128         move_dest_operand, move_src_operand, prefetch_cc_operand,
3129         prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
3130         uint32_operand, reg_before_reload_operand, reg_or_0_operand,
3131         reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
3132         div_operand, int5_operand, movb_comparison_operator,
3133         ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
3134         arith_double_operand, ireg_operand, lhs_lshift_operand,
3135         pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
3136         integer_store_memory_operand): Likewise.
3137         * config/pa/pa.c (adddi3_operand): Move to predicates.md.
3138         (integer_store_memory_operand, read_only_operand,
3139         function_label_operand, borx_reg_operand,
3140         non_hard_reg_operand): Likewise.
3141         (eq_neq_comparison_operator): Delete unused operator.
3142         (legitimize_pic_address): Use VOIDmode for mode argument in calls to
3143         function_label_operand.
3144         (emit_move_sequence): Likewise.
3145
3146 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
3147
3148         * config/i386/sse.md (sseunpackmode): New mode attribute.
3149         (ssepackmode): Ditto.
3150         (vec_pack_trunc_<mode>): Macroize expander from
3151         vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
3152         (vec_unpacks_lo_<mode>): Macroize expander from
3153         vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
3154         (vec_unpacks_hi_<mode>): Macroize expander from
3155         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
3156         (vec_unpacku_lo_<mode>): Macroize expander from
3157         vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
3158         (vec_unpacku_hi_<mode>): Macroize expander from
3159         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
3160         * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
3161         ix86_expand_sse4_unpack.
3162         * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
3163
3164 2011-04-16  Jan Hubicka  <jh@suse.cz>
3165
3166         * cgraphbuild.c: Include ipa-inline.h.
3167         (reset_inline_failed): Use initialize_inline_failed.
3168         * cgraph.c: Include ipa-inline.h.
3169         (cgraph_create_node_1): Do not initialize estimated_growth.
3170         (initialize_inline_failed): More to ipa-inline-analysis.c
3171         (dump_cgraph_node): Do not dump inline flags.
3172         * cgraph.h (cgraph_local_info): Remove inlineable, versionable
3173         and disregard_inline_limits flags.
3174         (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
3175         time, size, estimated_growth.
3176         * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
3177         Update.
3178         * cgraphunit.c (cgraph_decide_is_function_needed): Use
3179         DECL_DISREGARD_INLINE_LIMITS.
3180         (cgraph_analyze_function): Do not initialize
3181         node->local.disregard_inline_limits.
3182         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
3183         inlinable, versionable and disregard_inline_limits.
3184         * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
3185         cgraph_check_inline_limits, cgraph_default_inline_p,
3186         cgraph_edge_badness, update_caller_keys, update_callee_keys,
3187         add_new_edges_to_heap): Update.
3188         (cgraph_decide_inlining_of_small_function): Update; set
3189         CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
3190         (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
3191         cgraph_decide_inlining_incrementally): Update.
3192         * ipa-inline.h (inline_summary): Add inlinable, versionable,
3193         disregard_inline_limits, estimated_stack_size, stack_frame_offset,
3194         time, size and estimated_growth parameters.
3195         (estimate_edge_growth): Update.
3196         (initialize_inline_failed): Declare.
3197         * ipa-split.c: Include ipa-inline.h
3198         (execute_split_functions): Update.
3199         * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
3200         (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
3201         (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
3202         * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
3203         estimated_growth to INT_MIN.
3204         (inline_node_duplication_hook): Likewise.
3205         (dump_inline_summary): Dump new fields.
3206         (compute_inline_parameters): Update.
3207         (estimate_edge_time, estimate_time_after_inlining,
3208         estimate_size_after_inlining, estimate_growth, inline_read_summary,
3209         inline_write_summary):
3210         (initialize_inline_failed): Move here from cgraph.c.
3211         * tree-sra.c: Include ipa-inline.h.
3212         (ipa_sra_preliminary_function_checks): Update.
3213         * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
3214         ipa-inline.h.
3215
3216 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
3217
3218         * config/i386/sse.md (V16): New mode iterator.
3219         (VI1, VI8): Ditto.
3220         (AVXMODEQI, AVXMODEDI): Remove.
3221         (sse2, sse3): New mode attribute.
3222         (mov<mode>): Use V16 mode iterator.
3223         (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
3224         (push<mode>1): Use V16 mode iterator.
3225         (movmisalign<mode>): Ditto.
3226         (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
3227         <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
3228         (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
3229         *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
3230         (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
3231         avx_movdqu<avxmodesuffix>.
3232         (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
3233         *avx_movdqu<avxmodesuffix>.
3234         (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
3235         avx_lddqu<avxmodesuffix>.
3236         (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
3237         (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
3238         avx_movnt<AVXMODEDI:mode>.
3239         * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
3240         renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
3241
3242 2011-04-16  Bernd Schmidt  <bernds@codesourcery.com>
3243
3244         PR target/48629
3245         * haifa-sched.c (prune_ready_list, schedule_block): Use
3246         sched_pressure_p rather than flag_sched_pressure.
3247
3248 2011-04-15  Pat Haugen <pthaugen@us.ibm.com>
3249
3250         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
3251         cgraph_get_node instead of cgraph_get_create_node.
3252
3253 2011-04-15  Jakub Jelinek  <jakub@redhat.com>
3254
3255         * cfgexpand.c (expand_debug_expr): Use
3256         simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
3257
3258 2011-04-15  Michael Matz  <matz@suse.de>
3259
3260         * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
3261         * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
3262         * function.c (gimplify_parameters): Ditto.
3263         * gimplify.c (gimplify_vla_decl): Ditto.
3264
3265         * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
3266         (gimple_call_set_alloca_for_var): New inline function.
3267         (gimple_call_alloca_for_var_p): Ditto.
3268         * gimple.c (gimple_build_call_from_tree): Remember
3269         CALL_ALLOCA_FOR_VAR_P state.
3270         * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
3271
3272         * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
3273         calls if they were for VLA objects.
3274
3275 2011-04-15  Martin Jambor  <mjambor@suse.cz>
3276
3277         * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
3278         of ADR_EXPRs.
3279
3280 2011-04-15  Martin Jambor  <mjambor@suse.cz>
3281
3282         PR middle-end/48601
3283         * tree-emutls.c (lower_emutls_function_body): Call
3284         cgraph_get_create_node instead of cgraph_get_node.  Do not assert the
3285         result is non-NULL.
3286
3287 2011-04-15  Nicola Pero  <nicola.pero@meta-innovation.com>
3288
3289         * c-decl.c (detect_field_duplicates): Call
3290         objc_detect_field_duplicates instead of objc_get_interface_ivars.
3291
3292 2011-04-15  Nathan Froyd  <froydnj@codesourcery.com>
3293
3294         * gimple.h (gimple_asm_clobbers_memory_p): Declare.
3295         * gimple.c (gimple_asm_clobbers_memory_p): Define.
3296         * ipa-pure-const.c (check_stmt): Call it.
3297         * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
3298
3299 2011-04-15  Richard Guenther  <rguenther@suse.de>
3300
3301         PR tree-optimization/48290
3302         * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
3303         Properly decide inhibiting propagation based on the valueized
3304         operand.  Do loop-closed SSA form preserving here ...
3305         (init_copy_prop): ... not here.
3306
3307 2011-04-15  H.J. Lu  <hongjiu.lu@intel.com>
3308
3309         PR target/48612
3310         * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
3311         (*ieee_smax<mode>3): Likewise.
3312
3313 2011-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3314
3315         * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
3316         Replace match_operand with match_dup for the third operand in
3317         these expanders.
3318
3319 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
3320
3321         * combine.c (subst, combine_simlify_rtx): Add new argument, use it
3322         to track processing of conditionals.  Update all callers.
3323         (try_combine, simplify_if_then_else): Update.
3324
3325 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
3326
3327         * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
3328         -fsched-pressure.
3329
3330 2011-04-15  Georg-Johann Lay  <avr@gjlay.de>
3331
3332         * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
3333         instead of match_operand for operand 3.
3334
3335 2011-04-15  Richard Sandiford  <richard.sandiford@linaro.org>
3336
3337         * recog.h (insn_operand_data): Add an "allows_mem" field.
3338         * genoutput.c (output_operand_data): Initialize it.
3339         * optabs.c (maybe_legitimize_operand_same_code): New function.
3340         (maybe_legitimize_operand): Use it when matching the original
3341         op->value.
3342
3343 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
3344
3345         * gimplify.c: Fix issues in comments throughout.
3346         (voidify_wrapper_expr): Fix long line.
3347         (build_stack_save_restore): Likewise.
3348         (gimplify_loop_expr): Likewise.
3349         (gimplify_compound_lval): Likewise.
3350         (gimplify_init_ctor_eval): Likewise.
3351         (gimplify_modify_expr_rhs): Likewise.
3352         (omp_notice_threadprivate_variable): Likewise.
3353
3354 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
3355
3356         * cfgexpand.c (expand_call_stmt): Convert the function type to the
3357         original one if this is not a builtin function.
3358
3359 2011-04-14  Jakub Jelinek  <jakub@redhat.com>
3360
3361         PR target/48605
3362         * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
3363         offset it as needed based on top 2 bits in operands[3], change
3364         MEM mode to SFmode and mask those 2 bits away from operands[3].
3365
3366 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
3367
3368         * c-parser.c (c_parser_objc_protocol_definition): Updated for
3369         change from objc_declare_protocols() to objc_declare_protocol().
3370
3371 2011-04-14  Uros Bizjak  <ubizjak@gmail.com>
3372
3373         * config/i386/sse.md (sse4_1): New mode attribute.
3374         (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
3375         avx_blend<ssemodesuffix><avxmodesuffix> and
3376         sse4_1_blend<ssemodesuffix> using VF mode iterator.
3377         (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
3378         avx_blendv<ssemodesuffix><avxmodesuffix> and
3379         sse4_1_blendv<ssemodesuffix> using VF mode iterator.
3380         (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
3381         avx_dp<ssemodesuffix><avxmodesuffix> and
3382         sse4_1_dp<ssemodesuffix> using VF mode iterator.
3383         (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
3384         (sse4_1_packusdw): Merge with *avx_packusdw.
3385         (sse4_1_pblendvb): Merge with *avx_pblendvb.
3386         (sse4_1_pblendw): Merge with *avx_pblendw.
3387         (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
3388         (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
3389         avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
3390         VF mode iterator.
3391         (sse4_1_round<ssescalarmodesuffix>): Merge with
3392         *avx_round<ssescalarmodesuffix>.
3393         (aesenc): Merge with *avx_aesenc.
3394         (aesenclast): Merge with *avx_aesenclast.
3395         (aesdec): Merge with *avx_aesdec.
3396         (aesdeclast): Merge with *avx_aesdeclast.
3397         (pclmulqdq): Merge with *pclmulqdq.
3398         * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
3399         New predicate.
3400         (nonimm_not_xmm0_operand_maybe_avx): Ditto.
3401
3402 2011-04-14  H.J. Lu  <hongjiu.lu@intel.com>
3403
3404         PR middle-end/48608
3405         * cfgexpand.c (get_decl_align_unit): Renamed to ...
3406         (align_local_variable): This.  Update DECL_ALIGN.
3407         (add_stack_var): Updated.
3408         (expand_one_stack_var): Likewise.
3409
3410 2011-04-14  Richard Guenther  <rguenther@suse.de>
3411
3412         * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
3413         Remove.
3414         (dse_initialize_block_local_data, dse_leave_block,
3415         record_voperand_set, get_stmt_uid): Likewise.
3416         (dse_possible_dead_store_p): Allow any kind of killing stmt.
3417         (dse_optimize_stmt): Remove voperand set handling code.
3418         Simplify and improve to handle any kind of killing stmt.
3419         (dse_record_phi): Remove.
3420         (dse_enter_block): Simplify.
3421         (tree_ssa_dse): Likewise.
3422         * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
3423
3424 2011-04-14  Jan Hubicka  <jh@suse.cz>
3425
3426         * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
3427         * cgraph.h (struct inline_summary): Move to ipa-inline.h
3428         (cgraph_local_info): Remove inline_summary.
3429         * ipa-cp.c: Include ipa-inline.h.
3430         (ipcp_cloning_candidate_p, ipcp_estimate_growth,
3431         ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
3432         accesor.
3433         * lto-cgraph.c (lto_output_node): Do not stream inline summary.
3434         (input_overwrite_node): Do not set inline summary.
3435         (input_node): Do not stream inline summary.
3436         * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
3437         (cgraph_decide_inlining_incrementally): Do not try to estimate overall
3438         growth; we do not have inline parameters computed for that anyway.
3439         (cgraph_early_inlining): After inlining compute call_stmt_sizes.
3440         * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
3441         (inline_summary_t): New type and VECtor.
3442         (debug_inline_summary, dump_inline_summaries): Declare.
3443         (inline_summary): Use VOCtor.
3444         (estimate_edge_growth): Kill hack computing call stmt size directly.
3445         * lto-section-in.c (lto_section_name): Add inline section.
3446         * ipa-inline-analysis.c: Include lto-streamer.h
3447         (node_removal_hook_holder, node_duplication_hook_holder): New holders
3448         (inline_node_removal_hook, inline_node_duplication_hook): New functions.
3449         (inline_summary_vec): Define.
3450         (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
3451         dump_inline_summaries): New functions.
3452         (estimate_function_body_sizes): Properly compute size/time of outgoing
3453         calls.
3454         (compute_inline_parameters): Alloc inline_summary; do not compute
3455         size/time of incomming calls.
3456         (estimate_edge_time): Avoid missing time summary hack.
3457         (inline_read_summary): Read inline summary info.
3458         (inline_write_summary): Write inline summary info.
3459         (inline_free_summary): Free all hooks and inline summary vector.
3460         * lto-streamer.h: Add LTO_section_inline_summary section.
3461         * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
3462         * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
3463
3464 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
3465
3466         * tree-vectorizer.h (vect_strided_store_supported): Add a
3467         HOST_WIDE_INT argument.
3468         (vect_strided_load_supported): Likewise.
3469         (vect_permute_store_chain): Return void.
3470         (vect_transform_strided_load): Likewise.
3471         (vect_permute_load_chain): Delete.
3472         * tree-vect-data-refs.c (vect_strided_store_supported): Take a
3473         count argument.  Check that the count is a power of two.
3474         (vect_strided_load_supported): Likewise.
3475         (vect_permute_store_chain): Return void.  Update after above changes.
3476         Assert that the access is supported.
3477         (vect_permute_load_chain): Likewise.
3478         (vect_transform_strided_load): Return void.
3479         * tree-vect-stmts.c (vectorizable_store): Update calls after
3480         above interface changes.
3481         (vectorizable_load): Likewise.
3482         (vect_analyze_stmt): Don't check for strided powers of two here.
3483
3484 2011-04-14  Richard Guenther  <rguenther@suse.de>
3485
3486         PR tree-optimization/48590
3487         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
3488         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
3489         (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
3490         BUILT_IN_STACK_SAVE.
3491         * tree-ssa-dce.c (propagate_necessity): Handle
3492         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
3493
3494 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
3495
3496         * c-parser.c (c_parser_objc_class_declaration): Updated call to
3497         objc_declare_class.
3498
3499 2011-04-14  Richard Guenther  <rguenther@suse.de>
3500
3501         * tree.h (get_object_alignment_1): Declare.
3502         * builtins.c (get_object_alignment_1): Split out worker from ...
3503         (get_object_alignment): ... here.
3504         * fold-const.c (get_pointer_modulus_and_residue): Use
3505         get_object_alignment_1.
3506
3507 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
3508
3509         * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
3510         type parameter.
3511         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
3512         parameter.  Generalise code to handle arrays as well as vectors.
3513         (vect_setup_realignment): Update accordingly.
3514         * tree-vect-stmts.c (vectorizable_store): Likewise.
3515         (vectorizable_load): Likewise.
3516
3517 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
3518
3519         * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
3520         within the per-copy loop.
3521
3522 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
3523
3524         * tree-vect-stmts.c (vectorizable_load): Print the number of copies
3525         in the dump file.
3526
3527 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
3528
3529         * doc/options.texi (Negative): Explicitly mention that the
3530         Negative chain must be circular.
3531
3532 2011-04-14  Nathan Froyd  <froydnj@codesourcery.com>
3533
3534         * function.h (block_chainon): Declare.
3535         * function.c (block_chainon): Define.
3536
3537 2011-04-14  Anatoly Sokolov  <aesok@post.ru>
3538             Eric Weddington  <eric.weddington@atmel.com>
3539             Georg-Johann Lay <avr@gjlay.de>
3540
3541         * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
3542         New Includes
3543         (avr_init_builtins, avr_expand_builtin,
3544         avr_expand_delay_cycles, avr_expand_unop_builtin,
3545         avr_expand_binop_builtin ): New functions.
3546         (avr_builtin_id): New enum
3547         (struct avr_builtin_description): New struct
3548         (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
3549         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
3550
3551         * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
3552         UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
3553         UNSPECV_DELAY_CYCLES): new enumeration values
3554         (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
3555         ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
3556         ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
3557         ("*rotlqi3_4"): rename insn to "rotlqi3_4"
3558         ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
3559         "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
3560         "fmulsu"): New insns
3561
3562         * config/avr/avr-c.c: fix line endings
3563         (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
3564         __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
3565         __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
3566         __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
3567         __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
3568
3569         * doc/extend.texi (AVR Built-in Functions): New node
3570         (Target Builtins): Add documentation of AVR
3571         built-in functions.
3572
3573 2011-04-14  Georg-Johann Lay  <avr@gjlay.de>
3574
3575         PR target/44643
3576         * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
3577         alone. Error if non-const data has attribute progmem.
3578
3579 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
3580
3581         * tree.h (struct tree_constructor): Include tree_typed instead of
3582         tree_common.
3583         * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
3584         TS_TYPED instead of TS_COMMON.
3585
3586 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
3587
3588         * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
3589         (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
3590         (sse2_psadbw): Merge with *avx_psadbw.
3591         (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
3592         (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
3593         (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
3594         (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
3595         (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
3596         (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
3597         (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
3598         (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
3599         (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
3600         (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
3601         (ssse3_palignrti): Merge with *avx_palignrti.
3602
3603 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
3604
3605         * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
3606         * tree-ssanames.c (fini_ssanames): VEC_free it.
3607         (make_ssa_name_fn): Update for VECness of free_ssanames.
3608         (release_ssa_name, release_dead_ssa_names): Likewise.
3609         * tree.h (struct tree_ssa_name): Include tree_typed instead of
3610         tree_common.
3611         * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
3612         TS_TYPED instead of TS_COMMON.
3613
3614 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
3615
3616         * postreload-gcse.c (gcse_after_reload_main): Add calls to
3617         statistics_counter_event.
3618         * tree-ssa-copyrename.c (stats): Define.
3619         (rename_ssa_copies): Count coalesced SSA_NAMEs.  Add call to
3620         statistics_counter_event.
3621         * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
3622         (bswap_stats, widen_mul_stats): Define.
3623         (insert_reciprocals): Increment rdivs_inserted.
3624         (execute_cse_reciprocals): Zeroize reciprocal_stats.  Increment
3625         rfuncs_inserted.  Add calls to statistics_counter_event.
3626         (execute_cse_sincos_1): Increment inserted.
3627         (execute_cse_sincos): Zeroize sincos_stats.  Add call to
3628         statistics_counter_event.
3629         (execute_optimize_bswap): Zeroize bswap_stats.  Increment fields
3630         of bswap_stats.  Add calls to statistics_counter_event.
3631         (convert_mult_to_widen): Increment widen_mults_inserted.
3632         (convert_plusminus_to_widen): Increment maccs_inserted.
3633         (convert_mult_to_fma): Increment fmas_inserted.
3634         (execute_optimize_widening_mul): Zeroize widen_mul_stats.  Add
3635         calls to statistics_counter_event.
3636
3637 2011-04-13  Vladimir Makarov  <vmakarov@redhat.com>
3638
3639         PR rtl-optimization/48455
3640         * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
3641         `temp_costs->mem_cost'.
3642
3643 2011-04-13  Jan Hubicka  <jh@suse.cz>
3644
3645         * ipa-inline.h: New file.
3646         * ipa-inline-analysis.c: New file. Broken out of ...
3647         * ipa-inline.c: ... this file; update toplevel comment;
3648         include ipa-inline.h
3649         (inline_summary): Move to ipa-inline.h
3650         (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
3651         ipa-inline-analysis.c.
3652         (cgraph_estimate_time_after_inlining): Rename to
3653         estiamte_time_after_inlining; move to ipa-inline-analysis.c
3654         (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
3655         to estimate_edge_growth.
3656         (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
3657         rename to estimate_size_after_inlining.
3658         (cgraph_mark_inline_edge): Update for new naming convention.
3659         (cgraph_check_inline_limits): Likewise.
3660         (cgraph_edge_badness): Likewise.
3661         (cgraph_decide_recursive_inlining): Likewise.
3662         (cgraph_decide_inlining_of_small_functions): Likewise.
3663         (cgraph_decide_inlining_incrementally): Likewise.
3664         (cgraph_estimate_growth): Rename to estimate_growth; move to
3665         ipa-inline-analysis.c.
3666         (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
3667         (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
3668         (compute_inline_parameters): Likewise.
3669         (compute_inline_parameters_for_current): Likewise.
3670         (pass_inline_parameters): Likewise.
3671         (inline_indirect_intraprocedural_analysis): Likewise.
3672         (analyze_function): Rename to inline_analyze_function; likewise.
3673         (add_new_function): Move to ipa-inline-analysis.c.
3674         (inline_generate_summary): Likewise.
3675         (inline_read_summary): Likewise.
3676         (inline_write_summary): Likewise.
3677         * Makefile.in (ipa-inline-analysis.c): New file.
3678
3679 2011-04-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3680
3681         * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
3682         * configure: Regenerate.
3683
3684 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
3685
3686         * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
3687         instead of tree_common.
3688         (struct tree_fixed_cst, struct tree_string, struct tree_complex):
3689         Likewise.
3690         * tree.c (initialize_tree_contains_struct): Mark such nodes as being
3691         TS_TYPED rather than TS_COMMON.
3692         * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
3693
3694 2011-04-01  Georg-Johann Lay  <avr@gjlay.de>
3695
3696         PR target/45263
3697         * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
3698         r20 around calls of __tablejump_elpm__
3699
3700 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
3701
3702         PR middle-end/48591
3703         * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
3704         NULL.
3705         (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
3706
3707 2011-04-13  Bernd Schmidt  <bernds@codesourcery.com>
3708
3709         * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
3710         (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
3711         (cfi_vec): New typedef.
3712         (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
3713         dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
3714         (cie_cfi_vec): New static variable.
3715         (cie_cfi_head): Delete.
3716         (add_cfi): Accept a cfi_vec * as first argument. All callers and
3717         declaration changed. Use vector rather than list operations.
3718         (new_cfi): Don't initialize the dw_cfi_next field.
3719         (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
3720         rather than list operations.
3721         (lookup_cfa): Use vector rather than list operations.
3722         (output_cfis): New argument upto. Accept a cfi_vec rather than
3723         a dw_cfi_ref list head as argument. All callers changed.
3724         Iterate over the vector using upto as a maximum index.
3725         (output_all_cfis): New static function.
3726         (output_fde): Use vector rather than list operations. Use the
3727         new upto argument for output_cfis rather than manipulating a
3728         list.
3729         (dwarf2out_begin_prologue): Change initializations to match
3730         new struct members.
3731         (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
3732         from the vector length rather than searching for the end of a list.
3733         Use output_all_cfis.
3734         (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
3735
3736 2011-04-13  Nick Clifton  <nickc@redhat.com>
3737
3738         * config/rx/rx.md (movmemsi): Do not use this pattern when
3739         volatile pointers are involved.
3740
3741 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
3742
3743         * config/i386/sse.md (pinsrbits): Remove.
3744         (sse2_packsswb): Merge with *avx_packsswb.
3745         (sse2_packssdw): Merge with *avx_packssdw.
3746         (sse2_packuswb): Merge with *avx_packuswb.
3747         (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
3748         (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
3749         (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
3750         (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
3751         (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
3752         (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
3753         (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
3754         (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
3755         (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
3756         (*sse4_1_pinsrq): Merge with *avx_pinsrq.
3757         (sse2_loadld): Merge with *avx_loadld.
3758         (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
3759         (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
3760         (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
3761         (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
3762         (vec_concatv2di): Merge with *vec_concatv2di_avx.
3763
3764 2011-04-12  Nathan Froyd  <froydnj@codesourcery.com>
3765
3766         * c-decl.c (union lang_tree_node): Check for TS_COMMON before
3767         calling TREE_CHAIN.
3768         * print-tree.c (print_node): Likewise.
3769         * tree-inline.c (copy_tree_r): Likewise.
3770         * c-lang.c (LANG_HOOKS_INIT_TS): Define.
3771         * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
3772         instead of TS_COMMON.
3773         * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
3774         * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
3775         (copy_node_stat): Zero TREE_CHAIN only if necessary.
3776         (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
3777         (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
3778         ...and these...
3779         (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
3780         * tree.h: ...here.
3781         (TREE_CHAIN): Check for a TS_COMMON structure.
3782         (TREE_TYPE): Check for a TS_TYPED structure.
3783
3784 2011-04-12  Pat Haugen <pthaugen@us.ibm.com>
3785
3786         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
3787         cgraph_get_create_node instead of cgraph_node.
3788
3789 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
3790
3791         * c-parser.c (c_parser_initelt): Updated call to
3792         objc_build_message_expr.
3793         (c_parser_postfix_expression): Likewise.
3794
3795 2011-04-12  Kai Tietz  <ktietz@redhat.com>
3796
3797         * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
3798         MASK_MS_BITFIELD_LAYOUT bit.
3799
3800 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
3801
3802         * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
3803         assert it is always true.
3804         (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
3805         moves.
3806
3807 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
3808
3809         * c-parser.c (c_lex_one_token): Rewritten conditional used when
3810         compiling Objective-C to be more efficient.
3811
3812 2011-04-12  Axel Freyn  <axel-freyn@gmx.de>
3813
3814         * opts-common.c (decode_cmdline_options_to_array): Remove variable
3815         argv_copied.
3816
3817 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
3818
3819         * recog.h, genoutput.c, optabs.c: Revert last patch.
3820
3821 2011-04-12  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
3822
3823         PR target/48090
3824         * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
3825
3826 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
3827
3828         * recog.h (insn_operand_data): Add an "allows_mem" field.
3829         * genoutput.c (output_operand_data): Initialize it.
3830         * optabs.c (maybe_legitimize_operand_same_code): New function.
3831         (maybe_legitimize_operand): Use it when matching the original
3832         op->value.
3833
3834 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
3835
3836         * genpreds.c (process_define_predicate): Move most processing
3837         to gensupport.c.  Continue to validate the expression.
3838         * genrecog.c (did_you_mean_codes, compute_predicate_codes)
3839         (process_define_predicate): Move processing to gensupport.c.
3840         (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
3841         * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
3842         (compute_predicate_codes): Moved from genrecog.c.  Add lineno
3843         argument.
3844         (valid_predicate_name_p): New function, split out from old
3845         genpreds.c:process_define_predicate.
3846         (process_define_predicate): New function, combining code from
3847         old genpreds.c and genrecog.c functions.
3848         (process_rtx): Call it for DEFINE_PREDICATE and
3849         DEFINE_SPECIAL_PREDICATE.
3850
3851 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
3852
3853         * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
3854         size of a '%A' memory reference.
3855         (T_DREG, T_QREG): New neon_builtin_type_bits.
3856         (arm_init_neon_builtins): Assert that the load and store operands
3857         are neon_struct_operands.
3858         (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
3859         (NEON_ARG_MEMORY): New builtin_arg.
3860         (neon_dereference_pointer): New function.
3861         (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
3862         Handle NEON_ARG_MEMORY.
3863         (arm_expand_neon_builtin): Update after above interface changes.
3864         Use NEON_ARG_MEMORY for loads and stores.
3865         * config/arm/predicates.md (neon_struct_operand): New predicate.
3866         * config/arm/iterators.md (V_two_elem): Tweak formatting.
3867         (V_three_elem): Use BLKmode for accesses that have no associated mode.
3868         (V_four_elem): Tweak formatting.
3869         * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
3870         (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
3871         (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
3872         (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
3873         (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
3874         (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
3875         (neon_vst4<mode>): Replace pointer operand with a memory operand.
3876         Use %A in the output template.
3877         (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
3878         (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
3879         (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
3880         the width of the memory access.  Remove post-increment.
3881         * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
3882
3883 2011-04-12  Nick Clifton  <nickc@redhat.com>
3884
3885         * config/v850/v850.c (expand_prologue): Do not use the CALLT
3886         instruction for interrupt handlers if the target is the basic V850
3887         architecture.
3888         (expand_epilogue): Likewise.
3889
3890 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
3891
3892         PR rtl-optimization/48549
3893         * combine.c (propagate_for_debug): Also stop after BB_END of
3894         this_basic_block.  Process LAST and just stop processing after it.
3895         (combine_instructions): If last_combined_insn has been deleted,
3896         set last_combined_insn to its PREV_INSN.
3897
3898 2011-04-12  Richard Guenther  <rguenther@suse.de>
3899
3900         PR tree-optimization/46076
3901         * gimple.h (struct gimple_statement_call): Add fntype field.
3902         (gimple_call_fntype): Adjust.
3903         (gimple_call_set_fntype): New function.
3904         * gimple.c (gimple_build_call_1): Set the call function type.
3905         * gimplify.c (gimplify_call_expr): Preserve the function
3906         type the frontend used for the call.
3907         (gimplify_modify_expr): Likewise.
3908         * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
3909         function type.
3910         * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
3911         function type.
3912         * tree-ssa.c (useless_type_conversion_p): Function pointer
3913         conversions are useless.
3914
3915 2011-04-12  Martin Jambor  <mjambor@suse.cz>
3916
3917         * cgraph.h (cgraph_node): Remove function declaration.
3918         (cgraph_create_node): Declare.
3919         (cgraph_get_create_node): Likewise.
3920         * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
3921         Updated all callers.
3922         (cgraph_node): Renamed to cgraph_create_node, assert that a node for
3923         the decl does not already exist.  Call cgraph_get_create_node instead
3924         of cgraph_node.
3925         (cgraph_get_create_node): New function.
3926         (cgraph_same_body_alias): Update comment.
3927         (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
3928         assert it does not return NULL.
3929         (cgraph_update_edges_for_call_stmt): Likewise.
3930         (cgraph_clone_edge): Likewise.
3931         (cgraph_create_virtual_clone): Likewise.
3932         (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
3933         instead of cgraph_node.
3934         (cgraph_add_new_function): Call cgraph_create_node or
3935         cgraph_get_create_node instead of cgraph_node.
3936         * cgraphbuild.c (record_reference): Call cgraph_get_create_node
3937         instead of cgraph_node.
3938         (record_eh_tables): Likewise.
3939         (mark_address): Likewise.
3940         (mark_load): Likewise.
3941         (build_cgraph_edges): Call cgraph_get_create_node instead
3942         of cgraph_node.
3943         (rebuild_cgraph_edges): Likewise.
3944         * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
3945         instead of cgraph_node.
3946         (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
3947         cgraph_node.
3948         * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
3949         cgraph_create_node instead of cgraph_node.
3950         * c-decl.c (finish_function): Call cgraph_get_create_node instead
3951         of cgraph_node.
3952         * lto-cgraph.c (input_node): Likewise.
3953         * lto-streamer-in.c (input_function): Likewise.
3954         * varasm.c (mark_decl_referenced): Likewise.
3955         (assemble_alias): Likewise.
3956
3957 2011-04-12  Martin Jambor  <mjambor@suse.cz>
3958
3959         * tree-inline.c (tree_function_versioning): Call cgraph_get_node
3960         instead of cgraph_node and assert it does not return NULL.
3961         * lto-streamer-in.c (lto_read_body): Likewise.
3962         * omp-low.c (new_omp_context): Likewise.
3963         (create_task_copyfn): Likewise.
3964         * tree-emutls.c (lower_emutls_function_body): Likewise.
3965         * matrix-reorg.c (transform_allocation_sites): Likewise.
3966
3967 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
3968
3969         PR c/48552
3970         * c-typeck.c (build_asm_expr): Error out on attempts to use
3971         void type outputs or inputs for constraints that allow reg or
3972         don't allow memory.
3973
3974 2011-04-11  Chung-Lin Tang  <cltang@codesourcery.com>
3975             Richard Earnshaw  <rearnsha@arm.com>
3976
3977         PR target/48250
3978         * config/arm/arm.c (arm_legitimize_reload_address): Update cases
3979         to use sign-magnitude offsets. Reject unsupported unaligned
3980         cases. Add detailed description in comments.
3981         * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
3982         condition from TARGET_32BIT to TARGET_ARM.
3983
3984 2011-04-11  Nathan Froyd  <froydnj@codesourcery.com>
3985
3986         * tree.h (struct typed_tree): New.
3987         (struct tree_common): Include it instead of tree_base.
3988         (TREE_TYPE): Update for new location of type field.
3989         (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
3990         (DECL_USER_ALIGN, DECL_PACKED): Likewise.
3991         (union tree_node): Add typed field.
3992         * treestruct.def (TS_TYPED): New.
3993         * lto-streamer.c (check_handled_ts_structures): Handle it.
3994         * tree.c (MARK_TS_TYPED): New macro.
3995         (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
3996
3997 2011-04-11  Eric Botcazou  <ebotcazou@adacore.com>
3998
3999         * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
4000         (force_nonfallthru): Do not alter the loop nest if no basic block
4001         was created.
4002
4003 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
4004
4005         * config/i386/sse.md (VI): New mode iterator.
4006         (SSEMODEI): Remove.
4007         (AVX256MODEI): Ditto.
4008         (AVXMODEF4P): Ditto.
4009         (avxvecpsmode): Ditto.
4010         (one_cmpl<mode>2): Enable for TARGET_SSE.  Use VI mode iterator.
4011         (sse2_andnot<mode>3): New expander.
4012         (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
4013         *avx_andnot<mode>3.  Enable for TARGET_SSE.  Use VI mode iterator.
4014         (<any_logic:code><mode>3): Use VI mode iterator.
4015         (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
4016         and *avx_<any_logic:code><mode>3.  Use VI mode iterator.
4017         (*andnottf3): Handle AVX three-operand constraints.
4018         (*<any_logic:code>tf3): Handle AVX three-operand constraints.
4019
4020 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
4021             Robert Millan  <rmh@gnu.org>
4022
4023         * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
4024         * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
4025         GNU_USER_DYNAMIC_LINKER64): Define.
4026         (REG_NAME): Don't undefine.
4027         (MD_UNWIND_SUPPORT): Undefine.
4028         * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
4029         (REG_NAME): Don't undefine.
4030         (MD_UNWIND_SUPPORT): Undefine.
4031         * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
4032
4033 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
4034
4035         * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
4036         (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
4037
4038 2011-04-11  Xinliang David Li  <davidxl@google.com>
4039
4040         * value-profile.c (check_ic_target): New function.
4041         (gimple_ic_transform): Sanity check indirect call target.
4042         * gimple-low.c (gimple_check_call_args): Interface change.
4043         (gimple_check_call_matching_types): New function.
4044         * tree-inline.c (tree_can_inline_p): Call new function.
4045
4046 2011-04-11  Basile Starynkevitch  <basile@starynkevitch.net>
4047
4048         * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
4049         tree-pretty-print.h & realmpfr.h.
4050
4051 2011-04-11  Vladimir Makarov  <vmakarov@redhat.com>
4052
4053         PR middle-end/48464
4054         * ira.c (setup_pressure_classes): Fix typo in loop condition.
4055         (setup_allocno_and_important_classes): Ditto.
4056
4057 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
4058
4059         * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
4060         GNU_USER_DYNAMIC_LINKER.
4061         * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
4062         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4063         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
4064         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
4065         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
4066         GNU_USER_TARGET_OS_CPP_BUILTINS.
4067         * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
4068         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4069         * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
4070         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4071         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
4072         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
4073         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
4074         GNU_USER_TARGET_OS_CPP_BUILTINS.
4075         * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4076         GNU_USER_DYNAMIC_LINKER.
4077         * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
4078         GNU_USER_TARGET_OS_CPP_BUILTINS.
4079         * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
4080         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4081         * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
4082         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4083         * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
4084         * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
4085         GNU_USER_DYNAMIC_LINKER64): Remove.
4086         * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
4087         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4088         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4089         GNU_USER_DYNAMIC_LINKER.
4090         * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
4091         GNU_USER_TARGET_OS_CPP_BUILTINS.
4092         * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
4093         GNU_USER_TARGET_OS_CPP_BUILTINS.
4094         * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
4095         to GNU_USER_TARGET_OS_CPP_BUILTINS.
4096         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
4097         GNU_USER_TARGET_OS_CPP_BUILTINS.
4098         (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
4099         (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
4100         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
4101         * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
4102         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4103         * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4104         GNU_USER_DYNAMIC_LINKER.
4105         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
4106         GNU_USER_TARGET_OS_CPP_BUILTINS.
4107         * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
4108         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4109         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4110         GNU_USER_DYNAMIC_LINKER.
4111         * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
4112         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4113         * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
4114         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4115         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4116         GNU_USER_DYNAMIC_LINKER.
4117         * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
4118         GNU_USER_DYNAMIC_LINKERN32.
4119         (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
4120         GNU_USER_DYNAMIC_LINKERN32.  Change LINUX_DYNAMIC_LINKER64 to
4121         GNU_USER_DYNAMIC_LINKER64.  Change LINUX_DYNAMIC_LINKER32 to
4122         GNU_USER_DYNAMIC_LINKER32.
4123         * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
4124         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4125         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4126         GNU_USER_DYNAMIC_LINKER.
4127         * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
4128         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4129         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
4130         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4131         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
4132         * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
4133         GNU_USER_DYNAMIC_LINKER32.
4134         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
4135         * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
4136         GNU_USER_DYNAMIC_LINKER.
4137         * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
4138         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4139         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
4140         GNU_USER_DYNAMIC_LINKER32.  Change LINUX_DYNAMIC_LINKER64 to
4141         GNU_USER_DYNAMIC_LINKER64.
4142         * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
4143         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4144         (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4145         GNU_USER_DYNAMIC_LINKER.
4146         * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
4147         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4148         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4149         GNU_USER_DYNAMIC_LINKER.
4150         * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
4151         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4152         (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
4153         GNU_USER_DYNAMIC_LINKER32.
4154         (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
4155         GNU_USER_DYNAMIC_LINKER64.
4156         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
4157         GNU_USER_DYNAMIC_LINKER64.
4158         * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
4159         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4160         * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
4161         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4162         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
4163
4164 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
4165
4166         * config/i386/gnu-user.h: Copy from linux.h.  Update comments.
4167         (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
4168         (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
4169         GNU_USER_DYNAMIC_LINKER.
4170         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
4171         * config/i386/gnu-user64.h: Copy from linux64.h.  Update comments.
4172         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
4173         (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
4174         GNU_USER_DYNAMIC_LINKER64.
4175         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
4176         * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
4177         GNU_USER_LINK_EMULATION.
4178         * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
4179         DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
4180         ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
4181         MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
4182         PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
4183         CPP_SPEC, CC1_SPEC): Remove.
4184         (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
4185         (GNU_USER_DYNAMIC_LINKER): Define.
4186         (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
4187         ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
4188         ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
4189         LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
4190         TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
4191         STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
4192         TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
4193         * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
4194         CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
4195         TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
4196         LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
4197         LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
4198         (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
4199         (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
4200         TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
4201         TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
4202         * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
4203         GNU_USER_DYNAMIC_LINKER.
4204         * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
4205         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
4206         * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
4207         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
4208         * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
4209         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
4210         * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
4211         i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
4212         i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
4213         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
4214
4215 2011-04-11  Kai Tietz  <ktietz@redhat.com>
4216
4217         PR target/9601
4218         PR target/11772
4219         * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
4220         * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
4221         comment.
4222         (ix86_is_msabi_thiscall): Removed.
4223         (ix86_is_type_thiscall): Likewise.
4224         (ix86_get_callcvt): New function.
4225         (ix86_comp_type_attributes): Simplify check.
4226         (ix86_function_regparm): Use ix86_get_callcvt for calling
4227         convention attribute checks.
4228         (ix86_return_pops_args): Likewise.
4229         (ix86_static_chain): Likewise.
4230         (x86_this_parameter): Likewise.
4231         (x86_output_mi_thunk): Likewise.
4232         (ix86_function_type_abi): Optimize check for types without attributes.
4233         * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
4234         IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
4235         IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
4236         by flag-values.
4237         (IX86_BASE_CALLCVT): Helper macro.
4238         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
4239         Use ix86_get_callcvt for calling convention attribute checks and avoid
4240         symbol-decoration for stdcall in TARGET_RTD case.
4241         * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
4242         Likewise.
4243         (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
4244         for declaration.
4245
4246 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
4247
4248         * config/i386/sse.md (VI_128): New mode iterator.
4249         (VI12_128): Rename from SSEMODE12.
4250         (VI14_128): Rename from SSEMODE14.
4251         (VI124_128): New mode iterator.
4252         (VI24_128): Rename from SSEMODE248.
4253         (VI248_128): Rename from SSEMODE248.
4254         (SSEMODE124C8): Remove.
4255         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
4256         (*sse2_<plusminus_insn><mode>3): Merge with
4257         *avx_<plusminus_insn><mode>3.
4258         (*mulv8hi3): Merge with *avx_mulv8hi3.
4259         (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
4260         (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
4261         (*sse2_pmaddwd): Merge with *avx_pmaddwd.
4262         (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
4263         (ashr<mode>3): Merge with *avx_ashr<mode>3.
4264         (lshr<mode>3): Merge with *avx_lshr<mode>3.
4265         (ashl<mode>3): Merge with *avx_ashl<mode>3.
4266         (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
4267         (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
4268         (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
4269         (*<smaxmin:code>v8hi3): Ditto.
4270         (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
4271         (*<smaxmin:code>v16qi3): Ditto.
4272         (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
4273         (*sse2_eq<mode>3): Ditto.
4274         (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
4275         (*sse2_gt<mode>3): Ditto.
4276         (vcondv2di): Split out of vcond<mode>.
4277         (vconduv2di): Split out of vcondu<mode>.
4278
4279 2011-04-11  Richard Guenther  <rguenther@suse.de>
4280
4281         * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
4282         before calling tree_low_cst.
4283
4284 2011-04-11  Richard Guenther  <rguenther@suse.de>
4285
4286         * stor-layout.c (layout_type): Compute all array index size operations
4287         in the original type.
4288         (initialize_sizetypes): Add comment.
4289         (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
4290
4291 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
4292
4293         * common.opt (Tbss=, Tdata=, Ttext=): New options.
4294
4295 2011-04-11  Martin Jambor  <mjambor@suse.cz>
4296
4297         * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
4298         of cgraph_node, handle NULL return value.
4299         (cgraph_global_info): Likewise.
4300         (cgraph_rtl_info): Likewise.
4301         * tree-inline.c (estimate_num_insns): Likewise.
4302         * gimplify.c (unshare_body): Likewise.
4303         (unvisit_body): Likewise.
4304         (gimplify_body): Likewise.
4305         * predict.c (optimize_function_for_size_p): Likewise.
4306         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
4307         (call_may_clobber_ref_p_1): Likewise.
4308         * varasm.c (function_section_1): Likewise.
4309         (assemble_start_function): Likewise.
4310
4311 2011-04-11  Martin Jambor  <mjambor@suse.cz>
4312
4313         * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
4314         of cgraph_node.
4315         * final.c (rest_of_clean_state): Likewise.
4316         * gimple-iterator.c (update_call_edge_frequencies): Likewise.
4317         * passes.c (pass_init_dump_file): Likewise.
4318         (execute_all_ipa_transforms): Likewise.
4319         (function_called_by_processed_nodes_p): Likewise.
4320         * predict.c (maybe_hot_frequency_p): Likewise.
4321         (probably_never_executed_bb_p): Likewise.
4322         (compute_function_frequency): Likewise.
4323         * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
4324         (unnest_nesting_tree_1): Likewise.
4325         (lower_nested_functions): Likewise.
4326         * tree-optimize.c (execute_fixup_cfg): Likewise.
4327         (tree_rest_of_compilation): Likewise.
4328         * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
4329         * tree-sra.c (ipa_early_sra): Likewise.
4330         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
4331         * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
4332         * ipa.c (record_cdtor_fn): Likewise.
4333         * ipa-inline.c (cgraph_early_inlining): Likewise.
4334         (compute_inline_parameters_for_current): Likewise.
4335         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
4336         * ipa-pure-const.c (local_pure_const): Likewise.
4337         * ipa-split.c (split_function): Likewise.
4338         (execute_split_functions): Likewise.
4339         * cgraphbuild.c (build_cgraph_edges): Likewise.
4340         (rebuild_cgraph_edges): Likewise.
4341         (cgraph_rebuild_references): Likewise.
4342         (remove_cgraph_callee_edges): Likewise.
4343         * cgraphunit.c (cgraph_mark_if_needed): Likewise.
4344         (verify_cgraph_node): Likewise.
4345         (cgraph_analyze_functions): Likewise.
4346         (cgraph_preserve_function_body_p): Likewise.
4347         (save_inline_function_body): Likewise.
4348         (save_inline_function_body): Likewise.
4349         * tree-inline.c (copy_bb): Likewise.
4350         (optimize_inline_calls): Likewise.
4351
4352 2011-04-11  Martin Jambor  <mjambor@suse.cz>
4353
4354         PR tree-optimization/48195
4355         * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
4356         ipa_check_create_edge_args.
4357         (ipcp_generate_summary): Do not call ipa_check_create_node_params and
4358         ipa_check_create_edge_args.
4359         * ipa-inline.c (inline_generate_summary): Do not call
4360         ipa_check_create_node_params and ipa_check_create_edge_args.
4361         * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
4362         ipa_check_create_edge_args.
4363
4364 2011-04-09  Anatoly Sokolov  <aesok@post.ru>
4365
4366         * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
4367         instead of loop.
4368         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
4369         * function.c (record_hard_reg_sets): Likewise.
4370         * ira.c (compute_regs_asm_clobbered): Likewise.
4371         * sched-deps.c (sched_analyze_1): Likewise.
4372         * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
4373
4374 2011-04-09  Xinliang David Li  <davidxl@google.com>
4375
4376         PR tree-optimization/PR48484
4377         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
4378         has_valid_pred lazily
4379
4380 2011-04-09  Duncan Sands  <baldrick@free.fr>
4381
4382         * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
4383
4384 2011-04-08  Eric Botcazou  <ebotcazou@adacore.com>
4385
4386         * combine.c (combine_validate_cost): Adjust comments.  Set registered
4387         cost of I0 to zero at the end, if any.
4388
4389 2011-04-08  Xinliang David Li  <davidxl@google.com>
4390
4391         * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
4392         to insane profile data.
4393
4394 2011-04-08  Xinliang David Li  <davidxl@google.com>
4395
4396         * ipa-cp.c (ipcp_update_profiling): Correct
4397          negative scale factor due to insane profile data.
4398
4399 2011-04-08  Xinliang David Li  <davidxl@google.com>
4400
4401         * final.c (dump_basic_block_info): New function.
4402         (final): Dump basic block.
4403         (final_scan_insn): Remove old dump.
4404
4405 2011-04-08  Steven G. Kargl  <kargl@gcc.gnu.org>
4406
4407         PR target/47829
4408         * config.gcc (i386-*-freebsd): Disable unwind table generation for
4409         crtbegin/crtend.
4410
4411 2011-04-08  Michael Matz  <matz@suse.de>
4412
4413         PR middle-end/48389
4414         * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
4415         functions.
4416         (rebuild_jump_labels): Call rebuild_jump_labels_1.
4417         * rtl.h (rebuild_jump_labels_chain): Declare.
4418         * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
4419         insns inserted on edges.
4420
4421 2011-04-08  Joseph Myers  <joseph@codesourcery.com>
4422
4423         * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
4424         * config/arm/arm-arches.def: New.
4425         * config/arm/arm-opts.h: New.
4426         * config/arm/genopt.sh: New.
4427         * config/arm/arm-tables.opt: New (generated).
4428         * config/arm/arm.c (arm_handle_option, arm_target_help,
4429         TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
4430         (all_architectures): Get most table contents from arm-arches.def.
4431         (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
4432         arm_selected_tune here.
4433         * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
4434         * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
4435         (march=, mcpu=, mtune=): Use Enum and Var.
4436         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
4437         (arm.o): Update dependencies.
4438
4439 2011-04-08  Basile Starynkevitch  <basile@starynkevitch.net>
4440
4441         * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
4442         of header_file.
4443         (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
4444         (write_typed_alloc_defns): Likewise.
4445         (main): Calls write_typed_alloc_defns with output_header.
4446
4447 2011-04-08  Vladimir Makarov  <vmakarov@redhat.com>
4448
4449         PR inline-asm/48435
4450         * ira-color.c (setup_profitable_hard_regs): Add comments.
4451         Don't take prohibited hard regs into account.
4452         (setup_conflict_profitable_regs): Rename to
4453         get_conflict_profitable_regs.
4454         (check_hard_reg_p): Check prohibited hard regs.
4455
4456 2011-04-08  Nathan Froyd  <froydnj@codesourcery.com>
4457
4458         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
4459         * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
4460         * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
4461
4462 2011-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4463
4464         PR target/48366
4465         * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
4466         move from floating point to shift amount register.
4467         (emit_move_sequence): Remove secondary reload support for floating
4468         point to shift amount amount register copies.
4469         (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
4470         amount register copies.
4471         * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
4472         register, return false if mode isn't a scalar integer mode.
4473         * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
4474
4475 2011-04-08  Richard Guenther  <rguenther@suse.de>
4476
4477         * gimple.c (gimple_call_flags): Remove kludge.
4478
4479 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
4480
4481         * sel-sched.c (sel_region_init): Move call to
4482         sel_setup_region_sched_flags after setup_current_loop_nest.
4483
4484 2011-04-08  Andrey Belevantsev  <abel@ispras.ru>
4485
4486         PR rtl-optimization/48272
4487         * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
4488         init_insn_reg_pressure_info.  Adjust a caller.
4489         * sched-int.h (init_insn_reg_pressure_info): Declare.
4490         * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
4491         when sched-pressure is enabled.
4492
4493 2011-04-08  Richard Guenther  <rguenther@suse.de>
4494
4495         * gimple.c (gimple_set_modified): Do not queue calls to
4496         MODIFIED_NORETURN_CALLS here ...
4497         * tree-ssa-operands.c (update_stmt_operands): ... but here.
4498
4499 2011-04-08  Richard Guenther  <rguenther@suse.de>
4500
4501         PR lto/48467
4502         * toplev.c (lang_dependent_init): Do not open asm_out_file
4503         in WPA mode, nor perform debug machinery initialization.
4504         (finalize): Do not unlink asm_out_file in WPA mode.
4505
4506 2011-04-08  Richard Guenther  <rguenther@suse.de>
4507
4508         * gimple.h (gimple_call_fntype): New function.
4509         (gimple_call_return_type): Use it.
4510         * expr.c (expand_expr_real_1): Use gimple_call_fntype.
4511         * gimple-low.c (gimple_check_call_args): Likewise.
4512         * gimple.c (gimple_call_flags): Likewise.
4513         (gimple_call_arg_flags): Likewise.
4514         (gimple_call_return_flags): Likewise.
4515         * tree-cfg.c (verify_gimple_call): Likewise.
4516         (do_warn_unused_result): Likewise.
4517         * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
4518         * value-prof.c (gimple_ic_transform): Fix fndecl check.
4519
4520 2011-04-08  Dmitry Melnik  <dm@ispras.ru>
4521
4522         PR rtl-optimization/48235
4523         * sel-sched.c (code_motion_process_successors): Recompute the last
4524         insn in basic block if control flow changed.
4525         (code_motion_path_driver): Ditto.  Recompute the first insn as well.
4526         Update condition for ilist_remove.
4527
4528 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
4529
4530         PR rtl-optimization/48302
4531         * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
4532         * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument.  Use
4533         it to record added preheader blocks.
4534         * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument.  Pass it
4535         on to sel_add_loop_preheaders.
4536         (sel_region_init): Move call to setup_current_loop_nest after
4537         sel_init_bbs.
4538
4539 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
4540
4541         PR target/48273
4542         * cfgloop.h (loop_has_exit_edges): New helper.
4543         * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
4544         non-clonable.
4545         * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
4546         that have no exit edges.
4547
4548 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
4549
4550         PR rtl-optimization/48442
4551         * sel-sched.c (init_seqno): Remove number_of_insns argument.  Update
4552         all callers.  Adjust assert.
4553
4554 2011-04-08  Jakub Jelinek  <jakub@redhat.com>
4555
4556         PR tree-optimization/48377
4557         * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
4558         is_packed to true even for types with smaller TYPE_ALIGN than
4559         TYPE_SIZE.
4560
4561 2011-04-08  Richard Guenther  <rguenther@suse.de>
4562
4563         PR bootstrap/48513
4564         * doc/tm.texi: Re-generate.
4565
4566 2011-04-08  Wei Guozhi  <carrot@google.com>
4567
4568         PR target/47855
4569         * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
4570         * config/arm/arm.c (arm_attr_length_push_multi): New function.
4571         * config/arm/arm.md (*push_multi): Change the length computation to
4572         call a C function.
4573
4574 2011-04-08  Anatoly Sokolov  <aesok@post.ru>
4575
4576         * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
4577         (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
4578         * doc/tm.texi: Regenerate.
4579         * system.h (ASM_OUTPUT_BSS): Poison.
4580         * varasm.c (asm_output_bss): Remove function.
4581         (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
4582
4583         * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
4584         * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
4585         * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
4586         * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
4587         Likewise.
4588         * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
4589         Likewise.
4590         * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
4591         Likewise.
4592         * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
4593
4594 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
4595
4596         * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
4597         EnumValue lines.
4598
4599 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
4600
4601         * config/m68k/m68k.c (m68k_handle_option): Don't handle
4602         OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
4603         OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
4604         OPT_mcpu32.
4605         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
4606         handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
4607         -m68030, -m68040, -m68060, -mcpu32 and -m68332.
4608         * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
4609         m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
4610         * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
4611         (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
4612         (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
4613         options.  Don't map other m68k options manually.  Don't handle
4614         old-style options as canonical.
4615         (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
4616         * doc/install.texi (m68k-*-*): Document binutils version requirement.
4617
4618 2011-04-07  Eric Botcazou  <ebotcazou@adacore.com>
4619
4620         * basic-block.h (force_nonfallthru): Move to...
4621         * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
4622         (force_nonfallthru): ...here.
4623         * cfghooks.c (force_nonfallthru): New function.
4624         * cfgrtl.c (force_nonfallthru): Rename into...
4625         (rtl_force_nonfallthru): ...this.
4626         (commit_one_edge_insertion): Do not set AUX field.
4627         (commit_edge_insertions): Do not discover new basic blocks.
4628         (rtl_cfg_hooks): Add rtl_force_nonfallthru.
4629         (cfg_layout_rtl_cfg_hooks): Likewise.
4630         * function.c (thread_prologue_and_epilogue_insns): Remove bogus
4631         ATTRIBUTE_UNUSED.  Discover new basic blocks in the prologue insns.
4632         * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
4633
4634 2011-04-07  Anatoly Sokolov  <aesok@post.ru>
4635
4636         * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
4637         Remove macros.
4638
4639 2011-04-07  Uros Bizjak  <ubizjak@gmail.com>
4640
4641         * config/i386/sse.md: Update copyright year.
4642         (avxcvtvecmode): Remove.
4643         (sse_movhlps): Merge with *avx_movhlps.
4644         (sse_movlhps): Merge with *avx_movlhps.
4645         (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
4646         (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
4647         (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
4648         (sse_loadhps): Merge with *avx_loadhps.
4649         (sse_storelps): Merge with *avx_storelps.
4650         (sse_loadlps): Merge with *avx_loadlps.
4651         (sse_movss): Merge with *avx_movss.
4652         (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
4653         (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
4654         (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
4655         (*vec_set<mode>_0_sse2): Split multi-unit alternative.
4656         (vec_set<mode>_0): Ditto.
4657         (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
4658         (sse4_1_insertps): Merge with *avx_insertps.
4659         (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
4660         (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
4661         (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
4662         (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
4663         (sse2_storehpd): Merge with *avx_storehpd.
4664         (sse2_loadhpd): Merge with *avx_loadhpd.
4665         (sse2_loadlpd): Merge with *avx_loadlpd.
4666         (sse2_movsd): Merge with *avx_movsd.
4667         (*vec_concatv2df): Merge with *vec_concatv2df.
4668
4669 2011-04-07  Jakub Jelinek  <jakub@redhat.com>
4670
4671         PR debug/48343
4672         * combine.c (combine_instructions): Add last_combined_insn,
4673         update it if insn is after it, pass it to all try_combine calls.
4674         (try_combine): Add last_combined_insn parameter, pass it instead of
4675         i3 to propagate_for_debug.
4676
4677 2011-04-07  Nick Clifton  <nickc@redhat.com>
4678
4679         * config/mn10300/mn10300.md (movqi_internal): Add alternatives
4680         to handle MDR <-> data register transfers.
4681         (movhi_internal): Likewise.
4682
4683 2011-04-07  Alan Modra  <amodra@gmail.com>
4684
4685         * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
4686         previous stack info.
4687
4688 2011-04-07  Tom de Vries  <tom@codesourcery.com>
4689
4690         PR target/43920
4691         * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter.  Pass dir to
4692         flow_find_cross_jump.  Swap variables to implement backward replacement.
4693         (try_crossjump_bb): Add argument to try_crossjump_to_edge.
4694
4695 2011-04-07  Tom de Vries  <tom@codesourcery.com>
4696
4697         PR target/43920
4698         * cfgcleanup.c (walk_to_nondebug_insn): New function.
4699         (flow_find_cross_jump): Use walk_to_nondebug_insn.  Recalculate bb1
4700         and bb2.
4701         (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
4702         src1 or src2.  Redirect edges to the last basic block.  Update
4703         frequency and count on multiple basic blocks in case of fallthru.
4704
4705 2011-04-07  Tom de Vries  <tom@codesourcery.com>
4706
4707         PR target/43920
4708         * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
4709         function.
4710         (old_insns_match_p): Change return type.  Replace return false/true
4711         with return dir_none/dir_both.  Use can_replace_by.
4712         (flow_find_cross_jump): Add dir_p parameter.  Init replacement
4713         direction from dir_p.  Register replacement direction in dir, last_dir
4714         and afterlast_dir.  Handle new return type of old_insns_match_p using
4715         merge_dir.  Return replacement direction in dir_p.
4716         (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
4717         return type of old_insns_match_p.
4718         (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
4719         * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
4720         flow_find_cross_jump.
4721         * basic-block.h (enum replace_direction): New type.
4722         (flow_find_cross_jump): Add parameter to declaration.
4723
4724 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
4725
4726         * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
4727         (AVXMODEDCVTPS2DQ): Ditto.
4728         (VEC_FLOAT_MODE): Ditto.
4729         (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3.  Use VF mode
4730         iterator.  Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
4731         (<any_logic:code><mode>3): Use VF mode iterator.
4732         (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
4733         Use VF mode iterator.
4734         (copysign<mode>3): Use VF mode iterator.
4735         (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3.  Handle
4736         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
4737         (*<any_logic:code><MODEF:mode>3): Merge with
4738         *avx_<any_logic:code><MODEF:mode>3.
4739         (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
4740         (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
4741         (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
4742         (avx_cvtdq2ps<avxmodesuffix>): Remove.
4743         (sse2_cvtdq2ps): Use %v modifier.
4744         (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
4745         (avx_cvtps2dq<avxmodesuffix>): Remove.
4746         (sse2_cvtps2dq): Use %v modifier.
4747         (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
4748         (avx_cvttps2dq<avxmodesuffix>): Remove.
4749         (sse2_cvttps2dq): Use %v modifier.
4750         (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
4751         (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
4752         (sse2_cvtsd2siq): Fix insn template.
4753         (sse2_cvtsd2siq_2): Ditto.
4754         (sse2_cvttsd2siq): Ditto.
4755         (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
4756         (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
4757
4758 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
4759
4760         * gcov-io.c: Use GCC Runtime Library Exception.
4761
4762 2011-04-06  Jakub Jelinek  <jakub@redhat.com>
4763
4764         PR debug/48466
4765         * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
4766         as base_reg whatever register reg has been eliminated to, instead
4767         of hardcoding STACK_POINTER_REGNUM.
4768
4769 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
4770
4771         * doc/tm.texi.in: Document C target hooks as separate from general
4772         target hooks.
4773         * doc/tm.texi: Regenerate.
4774         * genhooks.c (struct hook_desc): Add docname field.
4775         (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC).  Initialize
4776         docname field.
4777         (hook_array): Include c-target.def.
4778         (emit_documentation): Use docname field in output.
4779         (emit_init_macros): Take docname argument.  Only emit definitions
4780         for hooks matching docname.
4781         (main): Expect additional arguments in all cases.  Pass argument
4782         to emit_init_macros.
4783         * target.def: Move initial macro definitions and comments to
4784         target-hooks-macros.h.
4785         (gcc_targetcm): Move to c-family/c-target.def.
4786         * target.h (targetcm): Move declaration to c-family/c-target.h.
4787         * targhooks.c (default_handle_c_option): Move to
4788         c-family/c-opts.c.
4789         * targhooks.h (default_handle_c_option): Move declaration to
4790         c-family/c-common.h.
4791         * target-hooks-macros.h: New file.
4792         * config.gcc (target_has_targetcm): Define and use to add to
4793         c_target_objs and cxx_target_objs.
4794         * config/default-c.c: New file.
4795         * config/darwin-c.c: Include c-target.h and c-target-def.h instead
4796         of target.h and target-def.h.
4797         (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
4798         (darwin_objc_construct_string, darwin_cfstring_ref_p,
4799         darwin_check_cfstring_format_arg): Make static.
4800         (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
4801         TARGET_STRING_OBJECT_REF_TYPE_P,
4802         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
4803         * config/darwin-protos.h (darwin_objc_construct_string,
4804         darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
4805         declare.
4806         * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
4807         TARGET_STRING_OBJECT_REF_TYPE_P,
4808         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
4809         * config/t-darwin (darwin-c.o): Update dependencies.
4810         * system.h (TARGET_HAS_TARGETCM): Poison.
4811         * Makefile.in (TARGET_H): Update.
4812         (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
4813         (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
4814         (default-c.o): New target.
4815         (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
4816         (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
4817         (s-tm-texi): Pass -d option to genhooks.  Also test timestamp on
4818         c-target.def.
4819         (build/genhooks.o): Update dependencies.
4820
4821 2011-04-06  Richard Guenther  <rguenther@suse.de>
4822
4823         * ipa-inline.c (enum inlining_mode): Remove.
4824         (cgraph_flatten): Use some other token.
4825         (cgraph_edge_early_inlinable_p): New function, split out from ...
4826         (cgraph_perform_always_inlining): New function, split out from ...
4827         (cgraph_decide_inlining_incrementally): ... here.
4828         (cgraph_mark_inline_edge): Adjust.
4829         (cgraph_early_inlining): Re-structure.
4830         (pass_early_inline): Require SSA form.
4831
4832 2011-04-06  Andrew Stubbs  <ams@codesourcery.com>
4833             Julian Brown  <julian@codesourcery.com>
4834             Mark Shinwell  <shinwell@codesourcery.com>
4835
4836         * config/arm/arm.h (arm_class_likely_spilled_p): Check against
4837         LO_REGS only for Thumb-1.
4838         (MODE_BASE_REG_CLASS): Restrict base registers to those which can
4839         be used in short instructions when optimising for size on Thumb-2.
4840
4841 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
4842
4843         * gimple-low.c (lower_gimple_return): When not optimizing, force labels
4844         associated with user returns to be preserved.
4845
4846 2011-04-06  Tristan Gingold  <gingold@adacore.com>
4847
4848         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
4849         symbol_queue_size, DBXOUT_DECR_NESTING,
4850         (DBXOUT_DECR_NESTING_AND_RETURN): Also define
4851         if XCOFF_DEBUGGING_INFO.
4852
4853 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
4854
4855         * config/i386/i386.md (attribute isa): New.
4856         (attribute enabled): New.
4857         (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
4858         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
4859         (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
4860         (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
4861         (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
4862         (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
4863         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
4864         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
4865
4866         * config/i386/sse.md (VF): New mode iterator.
4867         (VF1): Ditto.
4868         (VF2): Ditto.
4869         (VF_128): Ditto.
4870         (SSEMODEF4): Remove.
4871         (attribute sse): Handle V8SF and V4DF modes.
4872         (<absneg:code><mode>2): Use VF mode iterator.
4873         (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2.  Use VF
4874         mode iterator.
4875         (<plusminus_insn><mode>3): Use VF mode iterator.
4876         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
4877         Use VF mode iterator.
4878         (<sse>_vm<plusminus_insn><mode>3): Merge with
4879         *avx_vm<plusminus_insn><mode>3.  Use VF_128 mode iterator.
4880         (mul<mode>3): Use VF mode iterator.
4881         (*mul<mode>3): Merge with *avx_mul<mode>3.  Use VF mode iterator.
4882         (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3.  Use VF_128
4883         mode iterator.
4884         (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
4885         (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
4886         (<sse>_div<mode>3): Merge with *avx_div<mode>3.  Use VF mode iterator.
4887         (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3.  Use VF_128
4888         mode iterator.
4889         (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
4890         Use VF1 mode iterator.
4891         (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
4892         (sqrt<VF2:mode>2): New expander.
4893         (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
4894         (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
4895         and sqrtv2df2.  Use VF mode iterator.
4896         (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2.  Use VF_128
4897         mode iterator.
4898         (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
4899         (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
4900         Use VF1 mode iterator.
4901         (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
4902         (<smaxmin:code><mode>3): Use VF mode iterator.
4903         (*<smaxmin:code><mode>3_finite): Merge with
4904         *avx_<smaxmin:code><mode>3_finite.  Use VF mode iterator.
4905         (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
4906         (<sse>_vm<smaxmin:code><mode>2): Merge with
4907         *avx_vm<smaxmin:code><mode>2.  Use VF_128 mode iterator.
4908         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.  Use VF
4909         mode iterator.
4910         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.  Use VF
4911         mode iterator.
4912         (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
4913         (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
4914         (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
4915         (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
4916         (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3.  Use
4917         VF mode iterator.
4918         (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
4919         Use VF_128 mode iterator.
4920         (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3.  Use VF
4921         mode iterator.
4922         (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3.  Use
4923         VF_128 mode iterator.
4924         (vcond<mode>): Use VF mode iterator.
4925         * config/i386/predicates.md (sse_comparison_operator): Merge with
4926         avx_comparison_float_operator.  Do not declare as special_predicate.
4927         * config/i386/i386.c (struct builtin_description): Update for renamed
4928         compare patterns.
4929         (ix86_expand_args_builtin): Ditto.
4930         (ix86_expand_sse_compare_mask): Ditto.
4931
4932 2011-04-06  Richard Guenther  <rguenther@suse.de>
4933
4934         * tree-inline.c (estimate_num_insns): For calls simply account
4935         for all passed arguments and a used return value.
4936
4937 2011-04-06  Richard Guenther  <rguenther@suse.de>
4938
4939         PR tree-optimization/47663
4940         * cgraph.h (struct cgraph_edge): Add call_stmt_size and
4941         call_stmt_time fields.
4942         (cgraph_edge_inlinable_p): Declare.
4943         (cgraph_edge_recursive_p): New inline function.
4944         * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
4945         (cgraph_clone_edge): Copy it.
4946         * ipa-inline.c (cgraph_estimate_edge_time): New function.
4947         Account for call stmt time.
4948         (cgraph_estimate_time_after_inlining): Take edge argument.
4949         (cgraph_estimate_edge_growth): Account call stmt size.
4950         (cgraph_estimate_size_after_inlining): Take edge argument.
4951         (cgraph_mark_inline_edge): Adjust.
4952         (cgraph_check_inline_limits): Likewise.
4953         (cgraph_recursive_inlining_p): Remove.
4954         (cgraph_edge_badness): Use cgraph_edge_recursive_p.
4955         (cgraph_decide_recursive_inlining): Take edge argument and
4956         adjust.
4957         (cgraph_decide_inlining_of_small_functions): Do not avoid
4958         diags for recursive inlining here.
4959         (cgraph_flatten): Adjust.
4960         (cgraph_decide_inlining_incrementally): Likewise.
4961         (estimate_function_body_sizes): Remove call cost handling.
4962         (compute_inline_parameters): Initialize caller edge call costs.
4963         (cgraph_estimate_edge_growth): New function.
4964         (cgraph_estimate_growth): Use it.
4965         (cgraph_edge_badness): Likewise.
4966         (cgraph_check_inline_limits): Take an edge argument.
4967         (cgraph_decide_inlining_of_small_functions): Adjust.
4968         (cgraph_decide_inlining): Likewise.
4969         * tree-inline.c (estimate_num_insns): Only account for call
4970         return value if it is used.
4971         (expand_call_inline): Avoid diagnostics on recursive inline
4972         functions here.
4973         * lto-cgraph.c (lto_output_edge): Output edge call costs.
4974         (input_edge): Input edge call costs.
4975
4976 2011-04-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4977
4978         * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
4979
4980 2011-04-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
4981
4982         * doc/invoke.texi (Spec Files): Fix typo.
4983
4984 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
4985
4986         * profile.c (branch_prob): Move declaration of local variable.  Remove
4987         obsolete ??? comment.  Expand the location explicitly instead of using
4988         the LOCATION_FILE and LOCATION_LINE macros.
4989
4990 2011-04-06  Wei Guozhi  <carrot@google.com>
4991
4992         PR target/47855
4993         * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
4994         (arm_cond_branch): Likewise.
4995         (arm_cond_branch_reversed): Likewise.
4996         (arm_jump): Likewise.
4997         (push_multi): Likewise.
4998         * config/arm/constraints.md (Py): New constraint.
4999
5000 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
5001
5002         PR bootstrap/48471
5003         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
5004         Move these...
5005         (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
5006         (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
5007         #ifdef DBX_DEBUGGING_INFO.
5008
5009 2011-04-05  Bernd Schmidt  <bernds@codesourcery.com>
5010
5011         PR bootstrap/48403
5012         * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
5013         if old and new states differ.
5014
5015 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
5016
5017         * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
5018         OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
5019         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
5020         handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
5021         * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
5022         mcfv4e): Use Alias.
5023         * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
5024         ColdFire options to -mcpu= options.
5025
5026 2011-04-05  Jeff Law  <law@redhat.com>
5027
5028         * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
5029         check if BB is a successor of LOOP->header and return
5030         NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
5031
5032 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
5033
5034         * cprop.c (struct reg_use): Remove.
5035         (reg_use_table): Make an array of RTX.
5036         (find_used_regs, constprop_register, local_cprop_pass,
5037         bypass_block): Simplify users of reg_use_table.
5038         (cprop_insn): Likewise.  Iterate if copy propagation succeeded
5039         on one of the uses found by find_used_regs.
5040
5041 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
5042
5043         PR bootstrap/48469
5044         * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
5045         declaration.
5046
5047 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
5048
5049         * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
5050         as an rtx.
5051         (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
5052
5053 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
5054
5055         PR middle-end/48441
5056         * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
5057
5058 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
5059
5060         * combine.c: Include obstack.h.
5061         (struct insn_link): Define.
5062         (uid_log_links): Adjust type.
5063         (FOR_EACH_LOG_LINK): New macro.
5064         (insn_link_obstack): Declare.
5065         (alloc_insn_link): Define.
5066         (create_log_links): Call it.  Use FOR_EACH_LOG_LINK and adjust
5067         type of link variables.
5068         (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
5069         (try_combine, record_promoted_values, distribute_notes): Likewise.
5070         (distribute_links): Likewise.  Tweak prototype.
5071         (clear_log_links): Delete.
5072         (adjust_for_new_dest): Call alloc_insn_link.
5073         * Makefile.in (combine.o): Depend on $(OBSTACK_H).
5074
5075 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
5076
5077         * gcse.c (modify_mem_list): Convert to an array of VECs.
5078         (canon_modify_mem_list, compute_transp): Tweak formatting.
5079         (alloc_gcse_mem): Likewise.  Adjust for modify_mem_list change.
5080         (load_killed_in_block_p): Likewise.
5081         (record_last_mem_set_info): Likewise.
5082         (clear_modify_mem_tables): Likewise.
5083
5084 2011-04-05  Tom de Vries  <tom@codesourcery.com>
5085
5086         PR middle-end/48461
5087         * function.c (emit_use_return_register_into_block): Only define if
5088         HAVE_return.
5089
5090 2011-04-05  Eric Botcazou  <ebotcazou@adacore.com>
5091
5092         * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
5093
5094 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
5095
5096         * config/rx/rx-opts.h: New.
5097         * config/rx/rx.c (rx_cpu_type): Remove.
5098         (rx_handle_option): Don't assert that global structures are in
5099         use.  Access variables via opts pointer.  Defer most handling of
5100         OPT_mint_register_.  Use error_at.
5101         (rx_option_override): Handle deferred OPT_mint_register_ here.
5102         * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
5103         * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
5104         (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
5105         (rx_cpu_types): New Enum and EnumValue entries.
5106         (mint-register=): Use Defer and use Var accordingly.
5107
5108 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
5109
5110         * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
5111         (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
5112         * final.c (debug_flush_symbol_queue, debug_queue_symbol):
5113         Move these...
5114         (debug_free_queue, debug_nesting, symbol_queue_index):
5115         ...and these...
5116         * dbxout.c: ...to here.  Make static.
5117
5118 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
5119
5120         * gcse.c (modify_pair): Define.  Define a VEC of it.
5121         (canon_modify_mem_list): Convert to an array of VECs.
5122         (free_insn_expr_list_list): Delete.
5123         (clear_modify_mem_tables): Call VEC_free instead.
5124         (record_last_mem_set_info): Don't modify canon_modify_mem_list.
5125         (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
5126         (canon_list_insert, compute_transp): Likewise.
5127
5128 2011-04-05  Tom de Vries  <tom@codesourcery.com>
5129
5130         PR target/43920
5131         * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
5132         for size.
5133
5134 2011-04-05  Tom de Vries  <tom@codesourcery.com>
5135
5136         PR target/43920
5137         * function.c (emit_use_return_register_into_block): New function.
5138         (thread_prologue_and_epilogue_insns): Use
5139         emit_use_return_register_into_block.
5140
5141 2011-04-05  Tom de Vries  <tom@codesourcery.com>
5142
5143         PR target/43920
5144         * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
5145         insn.
5146
5147 2011-04-05  Tom de Vries  <tom@codesourcery.com>
5148
5149         * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
5150
5151 2011-04-05  Yufeng Zhang  <yufeng.zhang@arm.com>
5152
5153         * config/arm/arm.md (define_constants for unspec): Replace with
5154         define_c_enum.
5155         (define_constants for unspecv): Replace with define_c_enum.
5156         * config/arm/neon.md (define_constants for unspec): Replace with
5157         define_c_enum.
5158
5159 2011-04-04  Richard Henderson  <rth@redhat.com>
5160
5161         PR bootstrap/48400
5162         * dwarf2out.c (output_line_info): Always emit line info from
5163         at least one section.
5164         (dwarf2out_init): Create text_section_line_info here ...
5165         (set_cur_line_info_table): ... not here.
5166
5167 2011-04-04  Vladimir Makarov  <vmakarov@redhat.com>
5168
5169         PR target/48380
5170         * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
5171         not called.
5172
5173         * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
5174
5175 2011-04-04  Steven Bosscher  <steven@gcc.gnu.org>
5176
5177         * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
5178         (expr_equiv_p): Remove.
5179         (insert_set_in_table): Look at <dest, src> pair instead of expr.
5180         (hash_scan_set): Update call to insert_set_in_table.
5181         (dump_hash_table): Dump <dest, src> pair.
5182         (lookup_set): Simplify.  Lookup <dest, src> pair.
5183         (compute_transp): Remove, fold heavily simplified code into...
5184         (compute_local_properties): ...here.  Expect COMP and TRANSP
5185         unconditionally.
5186         (find_avail_set): Take set directly from struct expr.
5187         (find_bypass-set): Likewise.
5188         (bypass_block): Likewise.
5189         (cprop_insn): Likewise.  Remove redundant INSN_P test.
5190
5191         * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
5192         checks on form of COND from find_implicit_sets to here.
5193         (find_implicit_sets): Cleanup control flow. Split critical edges
5194         if it exposes implicit sets.  Allocate/resize implicit_sets as
5195         necessary.
5196         (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
5197         changed something.  Run df_analyze after find_implicit_sets if any
5198         edges were split.  Do not allocate implicit_sets here.
5199
5200         * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
5201         (gcse_obstack): Renamed to cprop_obstack.
5202         (GNEW, GNEWVEC, GNEWVAR): Remove.
5203         (gmalloc): Remove.
5204         (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
5205         (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
5206         (gcse_alloc): Likewise, and rename to cprop_alloc.
5207         (alloc_gcse_men, free_gcse_mem): Remove.
5208         (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
5209         (compute_hash_table_work): Allocate and free reg_set_bitmap here.
5210         (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
5211
5212         * cprop.c (oprs_not_set_p): Remove.
5213         (mark_set, mark_clobber): Remove.
5214         (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
5215         (reg_not_set_p): New function.
5216         (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
5217         (cprop_insn): Likewise.
5218         (cprop_jump): Use FOR_EACH_EDGE.
5219
5220 2011-04-04  Bernd Schmidt  <bernds@codesourcery.com>
5221
5222         PR bootstrap/48403
5223         * haifa-sched.c (nonscheduled_insns_begin): New static variable.
5224         (rank_for_schedule): Use scheduled_insns vector instead of
5225         last_scheduled_insn.
5226         (ok_for_early_queue_removal): Likewise.
5227         (queue_to_ready): Search forward in nonscheduled_insns_begin if
5228         we have a dbg_cnt.
5229         (choose_ready): Likewise.
5230         (commit_schedule): Use VEC_iterate.
5231         (schedule_block): Initialize nonscheduled_insns_begin.  If we have
5232         a dbg_cnt, use it and ensure the first insn is in the ready list.
5233         (haifa_sched_init): Allocate scheduled_insns.
5234         (sched_extend_ready_list): Don't allocate it; reserve space.
5235         (haifa_sched_finish): Free it.
5236
5237 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
5238
5239         * optc-gen.awk: Always remove type from Variable entry before
5240         recording in var_seen.
5241
5242 2011-04-04  Eric Botcazou  <ebotcazou@adacore.com>
5243
5244         * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
5245         * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
5246         call to tidy_fallthru_edges.
5247
5248 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
5249
5250         * doc/options.texi (ToLower): Document.
5251         * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
5252         * opts-common.c (decode_cmdline_option): Handle cl_tolower.
5253         * opts.h (cl_option): Add cl_tolower field.
5254         * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
5255         arguments with lowercase strings.
5256         * config/rx/rx.opt (mcpu=): Add ToLower.
5257         * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
5258         argument.
5259
5260 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
5261
5262         * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
5263
5264 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
5265
5266         * config/vax/vax.c: Include reload.h.
5267
5268 2011-04-04  Anatoly Sokolov  <aesok@post.ru>
5269
5270         * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
5271         * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
5272         (sparc_preferred_reload_class): New function.
5273
5274 2011-04-04  Jakub Jelinek  <jakub@redhat.com>
5275
5276         PR debug/48401
5277         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
5278         Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
5279
5280 2011-04-03  Nathan Froyd  <froydnj@codesourcery.com>
5281
5282         * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
5283         * tree.c (initialize_tree_contains_struct): Adjust accordingly.
5284
5285 2011-04-03  Anatoly Sokolov  <aesok@post.ru>
5286
5287         * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
5288         (ASM_OUTPUT_ALIGNED_BSS): Define.
5289
5290 2011-04-03  Michael Matz  <matz@suse.de>
5291
5292         * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
5293         and next_slot members.
5294         (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
5295         lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
5296         (lto_streamer_cache_append): Declare.
5297         * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
5298         unsigned index, remove offset parameter, ensure that we append
5299         or update existing entries.
5300         (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
5301         parameter, update next_slot for append.
5302         (lto_streamer_cache_insert): Use unsigned index, remove offset_p
5303         parameter.
5304         (lto_streamer_cache_insert_at): Likewise.
5305         (lto_streamer_cache_append): New function.
5306         (lto_streamer_cache_lookup): Use unsigned index.
5307         (lto_streamer_cache_get): Likewise.
5308         (lto_record_common_node): Don't test tree_node_can_be_shared.
5309         (preload_common_node): Adjust call to lto_streamer_cache_insert.
5310         (lto_streamer_cache_delete): Don't free offsets member.
5311         * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
5312         (lto_output_string_with_length): Use lto_output_data_stream.
5313         (lto_output_tree_header): Remove ix parameter, don't write it.
5314         (lto_output_builtin_tree): Likewise.
5315         (lto_write_tree): Adjust callers to above, don't track and write
5316         offset, write unsigned index.
5317         (output_unreferenced_globals): Don't emit all global vars.
5318         (write_global_references): Use unsigned indices.
5319         (lto_output_decl_state_refs): Likewise.
5320         (write_symbol): Likewise.
5321         * lto-streamer-in.c (lto_input_chain): Move earlier.
5322         (input_function): Use unsigned index.
5323         (input_alias_pairs): Don't read and then ignore all global vars.
5324         (lto_materialize_tree): Remove ix_p parameter, don't read index,
5325         don't pass it back, use lto_streamer_cache_append.
5326         (lto_register_var_decl_in_symtab): Use unsigned index.
5327         (lto_register_function_decl_in_symtab): Likewise.
5328         (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
5329         index.
5330         (lto_get_builtin_tree): Don't read index, use
5331         lto_streamer_cache_append.
5332         (lto_read_tree): Adjust call to lto_materialize_tree.
5333
5334         * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
5335         don't use function calls in arguments to MIN.
5336
5337         * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
5338         twice.
5339
5340         * gimple.c (gimple_type_leader_entry): Mark deletable.
5341
5342 2011-04-03  Alan Modra  <amodra@gmail.com>
5343
5344         * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
5345
5346 2011-04-03  Michael Matz  <matz@suse.de>
5347
5348         * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
5349         an integer.
5350         * tree.h (tree_decl_non_common.vindex): Adjust comment.
5351
5352 2011-04-03  Michael Matz  <matz@suse.de>
5353
5354         * cgraphbuild.c (record_reference): Canonicalize constructor values.
5355         * gimple-fold.c (canonicalize_constructor_val): Accept being called
5356         without function context.
5357         * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
5358         current_function_decl and cfun.
5359
5360 2011-04-03  Michael Matz  <matz@suse.de>
5361
5362         * tree.c (decl_init_priority_insert): Don't create entry for
5363         default priority.
5364         (decl_fini_priority_insert): Ditto.
5365         (fields_compatible_p, find_compatible_field): Remove.
5366         * tree.h (fields_compatible_p, find_compatible_field): Remove.
5367         * gimple.c (gimple_compare_field_offset): Adjust block comment.
5368
5369 2011-04-03  Eric Botcazou  <ebotcazou@adacore.com>
5370
5371         * combine.c (try_combine): Remove useless local variable.
5372
5373 2011-04-03  Richard Guenther  <rguenther@suse.de>
5374             Ira Rosen  <ira.rosen@linaro.org>
5375
5376         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
5377         non-variable offsets and compare the remaining bases of the two
5378         accesses instead of looking for exact same data-ref.
5379
5380 2011-04-02  Kai Tietz  <ktietz@redhat.com>
5381
5382         PR target/48416
5383         * i386.c (ix86_function_arg_boundary): Fix printf formatter.
5384
5385         * i386.c (ix86_is_msabi_thiscall): New helper function.
5386         (ix86_is_type_thiscall): New helper function.
5387         (ix86_comp_type_attributes): Handle thiscall for method-functions
5388         special.
5389         (init_cumulative_args): Likewise.
5390         (find_drap_reg): Likewise.
5391         (ix86_static_chain): Likewise.
5392         (x86_this_parameter): Likewise.
5393         (x86_output_mi_thunk): Likewise.
5394
5395 2011-04-01  Olivier Hainque  <hainque@adacore.com>
5396             Nicolas Setton  <setton@adacore.com>
5397             Eric Botcazou  <ebotcazou@adacore.com>
5398
5399         * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
5400         (add_gnat_descriptive_type_attribute): New function.
5401         (gen_array_type_die): Call it.
5402         (gen_enumeration_type_die): Likewise.
5403         (gen_struct_or_union_type_die): Likewise.
5404         (modified_type_die): Likewise.
5405         * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
5406         * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
5407         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
5408
5409 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
5410
5411         PR bootstrap/48148
5412         * dwarf2out.c (resolve_addr): Don't call force_decl_die
5413         if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
5414
5415         Revert:
5416         2011-03-17  Richard Guenther  <rguenther@suse.de>
5417
5418         PR bootstrap/48148
5419         * lto-cgraph.c (input_overwrite_node): Clear the abstract
5420         origin for decls in other ltrans units.
5421         (input_varpool_node): Likewise.
5422
5423 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
5424
5425         PR middle-end/48335
5426         * expr.c (expand_assignment): Handle all possibilities
5427         if TO_RTX is CONCAT.
5428         * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
5429         (store_split_bit_field): If SUBREG_REG (op0) or
5430         op0 itself has smaller mode than word, return it
5431         for offset 0 and const0_rtx for out-of-bounds stores.
5432         If word is const0_rtx, skip it.
5433
5434 2011-04-01  Naveen H.S  <naveen.S@kpitcummins.com>
5435
5436         * config/h8300/h8300.c (print_operand_address): Rename to...
5437         (h8300_print_operand_address): ...this. Make static. Adjust comments.
5438         Call h8300_print_operand and h8300_print_operand_address instead of
5439         print_operand and print_operand_address. Declare.
5440         (print_operand): Renake to...
5441         (h8300_print_operand): ...this. Make static. Adjust comments.
5442         Call h8300_print_operand instead of print_operand. Declare.
5443         (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
5444         (h8300_register_move_cost): Likewise.
5445         (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
5446         TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
5447         * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
5448         PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
5449         * config/h8300/h8300-protos.h (print_operand): Delete.
5450         (print_operand_address): Delete.
5451
5452 2011-04-01  Richard Henderson  <rth@redhat.com>
5453
5454         PR 48400
5455         * dwarf2out.c (dwarf2out_source_line): Disable discriminators
5456         in strict mode before dwarf4.  Re-order tests to early out
5457         before switching sections.
5458
5459 2011-04-01  Nathan Froyd  <froydnj@codesourcery.com>
5460
5461         * config/h8300/constraints.md: New file.
5462         * config/h8300/h8300.md: Include it.  Use satisfies_constraint_J,
5463         satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
5464         (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
5465         * config/h8300/predicates.md (bit_operand): Likewise.
5466         (incdec_operand): Use satisfies_constraint_M and
5467         satisfies_constraint_O.  Don't use C code block.
5468         * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
5469         * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
5470         (compute_mov_length): Use satisfies_constraint_G.
5471         (fix_bit_operand): Use satisfies_constraint_U.
5472         * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
5473         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
5474         (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
5475         (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
5476         (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
5477         (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
5478         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
5479         (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
5480         (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
5481         (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
5482         (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
5483         (EXTRA_MEMORY_CONSTRAINT): Delete.
5484
5485 2011-04-01  Andrew Pinski  <pinskia@gmail.com>
5486             Michael Meissner  <meissner@linux.vnet.ibm.com>
5487
5488         PR target/48262
5489         * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
5490         operands, as per the specifications.
5491
5492         * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
5493         (vec_extract_evenv4sf): Ditto.
5494         (vec_extract_evenv8hi): Ditto.
5495         (vec_extract_evenv16qi): Ditto.
5496         (vec_extract_oddv4si): Ditto.
5497
5498 2011-03-31  Mark Wielaard  <mjw@redhat.com>
5499
5500         * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
5501         high_pc attribute if the CU has no associated code. Only output
5502         DW_AT_entry_pc for CU if not generating strict dwarf and
5503         dwarf_version < 4.
5504
5505 2011-04-01  Bernd Schmidt  <bernds@codesourcery.com>
5506
5507         * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
5508         * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
5509         out of ...
5510         (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
5511         * final.c (final_start_function): Call the new function rather
5512         than using a NULL argument for dwarf2out_frame_debug.
5513
5514         * ifcvt.c (cond_exec_process_insns): Disallow converting a block
5515         that contains the prologue.
5516
5517         * haifa-sched.c (queue_insn): New arg REASON.  All callers
5518         changed.  Print it in debugging output.
5519
5520         * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
5521
5522         * sched-ebb.c (begin_schedule_ready): Remove second argument.
5523         Split most of the code into...
5524         (begin_move_insn): ... here.  New function.
5525         (ebb_sched_info): Add a pointer to it.
5526         * haifa-sched.c (scheduled_insns): New static variable.
5527         (sched_extend_ready_list): Allocate it.
5528         (schedule_block): Use it to record the order of scheduled insns.
5529         Perform RTL changes to move insns only after all scheduling
5530         decisions have been made.
5531         * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
5532         begin_move_insn field.
5533         * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
5534         * sched-int.h (struct haifa_sched_info): Remove second argument
5535         from begin_schedule_ready hook.  Add new member begin_move_insn.
5536         * sched-rgn.c (begin_schedule_ready): Remove second argument.
5537         (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
5538
5539         * haifa-sched.c (prune_ready_list): New function, broken out of
5540         schedule_block.
5541         (schedule_block): Use it.
5542
5543 2011-04-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5544
5545         * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
5546
5547 2011-04-01  Kai Tietz  <ktietz@redhat.com>
5548
5549         * config.gcc (*-*-mingw*): Allow as option the
5550         posix threading model.
5551         * config/i386/mingw32.h (SPEC_PTHREAD1,  SPEC_PTHREAD2):
5552         New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
5553         definition.
5554         (CPP_SPEC): Add pthread/no-pthread handling.
5555         (LIB_SPEC): Likewise.
5556         * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
5557         (LIB_SPEC): Likewise.
5558         * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
5559         flag to pass -pthread option for shared libgcc build.
5560         (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
5561         for shared libgcc build.
5562         * config/i386/t-mingw-pthread: New file.
5563         * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
5564         New define to enable use of library pthread by default.
5565         * config/i386/mingw.opt (pthread): New driver option.
5566         (no-pthread): New driver option.
5567         * config/i386/cygming.opt: Make sure trailing empty line is retained.
5568         * config/i386/mingw-w64.opt: Likewise.
5569
5570 2011-04-01  Gary Funck <gary@intrepid.com>
5571
5572         * c-decl.c (grokdeclarator): Fix formatting.
5573
5574 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
5575
5576         * expr.c (emit_block_move_via_movmem): Use n_generator_args
5577         instead of n_operands.
5578         (set_storage_via_setmem): Likewise.
5579         * optabs.c (maybe_gen_insn): Likewise.
5580         * config/arm/arm.c (arm_init_neon_builtins): Likewise.
5581         * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
5582         (mips_expand_builtin_direct): Likewise.
5583         * config/spu/spu.c (expand_builtin_args): Likewise.
5584
5585 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
5586
5587         * recog.h (insn_data_d): Add n_generator_args.
5588         * genoutput.c (data): Likewise.
5589         (output_insn_data): Print it.
5590         (max_opno, num_dups): Delete.
5591         (scan_operands): Just fill in "d->operand[...]".
5592         (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
5593
5594 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
5595
5596         * gensupport.h (pattern_stats): New structure.
5597         * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
5598         * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
5599         (max_operand_1, max_operand_vec): Delete.
5600         (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
5601
5602 2011-03-31  Nathan Froyd  <froydnj@codesourcery.com>
5603
5604         * emit-rtl.c (emit_pattern_after_setloc): New function.
5605         (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
5606         (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
5607         (emit_pattern_after): New function.
5608         (emit_insn_after, emit_jump_insn_after): Call it.
5609         (emit_call_insn_after, emit_debug_insn_after): Likewise.
5610         (emit_pattern_before_setloc): New function.
5611         (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
5612         (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
5613         Likewise.
5614         (emit_pattern_before): New function.
5615         (emit_insn_before, emit_jump_insn_before): Call it.
5616         (emit_call_insn_before, emit_debug_insn_before): Likewise.
5617
5618 2011-03-31  Richard Henderson  <rth@redhat.com>
5619
5620         * dwarf2out.c (dw_separate_line_info_ref): Remove.
5621         (dw_separate_line_info_entry): Remove.
5622         (enum dw_line_info_opcode): New.
5623         (dw_line_info_entry): Use it.
5624         (dw_line_info_table, dw_line_info_table_p): New.
5625         (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
5626         (line_info_table, line_info_label_num): Remove.
5627         (line_info_table_in_use): Remove.
5628         (separate_line_info_table): Remove.
5629         (separate_line_info_table_allocated): Remove.
5630         (separate_line_info_table_in_use): Remove.
5631         (LINE_INFO_TABLE_INCREMENT): Remove.
5632         (line_info_label_num): New.
5633         (cur_line_info_table): New.
5634         (text_section_line_info, cold_text_section_line_info): New.
5635         (separate_line_info): New.
5636         (SEPARATE_LINE_CODE_LABEL): Remove.
5637         (print_dwarf_line_table): Remove.
5638         (debug_dwarf): Don't dump it.
5639         (output_one_line_info_table): New.
5640         (output_line_info): Use it.
5641         (new_line_info_table): New.
5642         (set_cur_line_info_table): New.
5643         (dwarf2out_switch_text_section): Use it.
5644         (dwarf2out_begin_function): Likewise.
5645         (push_dw_line_info_entry): New.
5646         (dwarf2out_source_line): Rewrite for new line info tables.
5647         (dwarf2out_init): Remove dead initailizations.
5648
5649 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
5650
5651         * opts.h (cl_option): Add comments to fields.  Add bit-fields for
5652         various flags.
5653         (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
5654         CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
5655         CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
5656         CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
5657         (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
5658         * opt-functions.awk (flag_init, switch_bit_fields): New.
5659         (switch_flags): Don't handle flags moved to bit-fields.  Don't
5660         generate CL_MISSING_OK or CL_SAVE.
5661         * optc-gen.awk: Update to generate bit-field output as well as
5662         flags field.
5663         * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
5664         bit-field instead of CL_REJECT_DRIVER flag.
5665         * opts-common.c (generate_canonical_option,
5666         decode_cmdline_option): Use bit-fields instead of CL_* flags.
5667         * opts.c (maybe_default_option): Use cl_reject_negative bit-field
5668         instead of CL_REJECT_NEGATIVE flag.
5669         * toplev.c (print_switch_values): Use cl_report bit-field instead
5670         of CL_REPORT flag.
5671
5672 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
5673
5674         * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
5675         a zero minimum index only if it is redundant.
5676
5677 2011-03-31  Vladimir Makarov  <vmakarov@redhat.com>
5678
5679         PR rtl-optimization/48381
5680         * ira-color.c (assign_hard_reg): Use hard reg set intersection
5681         instead of ira_class_hard_reg_index for calculating conflicting
5682         hard registers.
5683
5684 2011-03-31  Steven Bosscher  <steven@gcc.gnu.org>
5685
5686         * cprop.c: Clean up hash table building.
5687         (reg_avail_info): Remove.
5688         (oprs_available_p): Remove.
5689         (record_last_reg_set_info): Remove.
5690         (record_last_set_info): Remove.
5691         (reg_available_p): New function.
5692         (gcse_constant_p): Do not treat unfolded conditions as constants.
5693         (make_set_regs_unavailable): New function.
5694         (hash_scan_set): Simplify with new reg_available_p.
5695         (compute_hash_table_work): Traverse insns stream only once.
5696         Do not compute reg_avail_info. Traverse insns in reverse order.
5697         Record implicit sets after recording explicit sets from the block.
5698
5699 2011-03-31  Michael Matz  <matz@suse.de>
5700
5701         * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
5702
5703 2011-03-31  Anatoly Sokolov  <aesok@post.ru>
5704
5705         * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
5706         * config/h8300/h8300-protos.h (h8300_get_index): Remove.
5707         * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
5708         (h8300_mode_dependent_address_p): New function.
5709         (h8300_get_index): Make static.
5710
5711 2011-03-31  Jeff Law  <law@redhat.com>
5712
5713         * reload1.c (elimination_effects): Fix typo in recent change.
5714
5715         * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
5716         typo potentially leading to null pointer dereference.
5717
5718         * caller-save.c (new_saved_hard_reg): Eliminate return value.
5719         (setup_save_areas): Corresponding changes to avoid useless
5720         assignments.
5721
5722         * jump.c (reversed_comparison_code_parts): Avoid successive return
5723         statements when REVERSE_CONDITION is defined.
5724
5725         * expr.c (expand_assignment): Avoid useless assignments.
5726         (expand_expr_real_1): Likewise.
5727         (expand_expr_real_2): Avoid useless statements.
5728
5729         * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
5730
5731         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
5732
5733         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
5734         statements.
5735
5736         * stmt.c (expand_expr_stmt): Avoid useless assignment.
5737
5738 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
5739
5740         PR target/47109
5741         * doc/tm.texi.in (TARGET_VERSION): Remove.
5742         * doc/tm.texi: Regenerate.
5743         * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
5744         * collect2.c (main): Don't use TARGET_VERSION.
5745         * mips-tdump.c (main): Don't use TARGET_VERSION.
5746         * mips-tfile.c (main): Don't use TARGET_VERSION.
5747         * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
5748         * config/rs6000/vxworksae.h: Remove.
5749         * config/alpha/alpha.h (TARGET_VERSION): Remove.
5750         * config/alpha/freebsd.h (TARGET_VERSION): Remove.
5751         * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
5752         * config/alpha/netbsd.h (TARGET_VERSION): Remove.
5753         * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
5754         * config/arm/arm.h (TARGET_VERSION): Remove.
5755         * config/arm/coff.h (TARGET_VERSION): Remove.
5756         * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
5757         * config/arm/elf.h (TARGET_VERSION): Remove.
5758         * config/arm/freebsd.h (TARGET_VERSION): Remove.
5759         * config/arm/linux-elf.h (TARGET_VERSION): Remove.
5760         * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
5761         * config/arm/pe.h (TARGET_VERSION): Remove.
5762         * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
5763         * config/arm/semi.h (TARGET_VERSION): Remove.
5764         * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
5765         * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
5766         * config/arm/vxworks.h (TARGET_VERSION): Remove.
5767         * config/avr/avr.h (TARGET_VERSION): Remove.
5768         * config/bfin/bfin.h (TARGET_VERSION): Remove.
5769         * config/fr30/fr30.h (TARGET_VERSION): Remove.
5770         * config/frv/frv.h (TARGET_VERSION): Remove.
5771         * config/h8300/h8300.h (TARGET_VERSION): Remove.
5772         * config/i386/cygwin.h (TARGET_VERSION): Remove.
5773         * config/i386/darwin.h (TARGET_VERSION): Remove.
5774         * config/i386/darwin64.h (TARGET_VERSION): Remove.
5775         * config/i386/djgpp.h (TARGET_VERSION): Remove.
5776         * config/i386/freebsd.h (TARGET_VERSION): Remove.
5777         * config/i386/freebsd64.h (TARGET_VERSION): Remove.
5778         * config/i386/gnu.h (TARGET_VERSION): Remove.
5779         * config/i386/i386-interix.h (TARGET_VERSION): Remove.
5780         * config/i386/i386elf.h (TARGET_VERSION): Remove.
5781         * config/i386/linux.h (TARGET_VERSION): Remove.
5782         * config/i386/linux64.h (TARGET_VERSION): Remove.
5783         * config/i386/lynx.h (TARGET_VERSION): Remove.
5784         * config/i386/mingw32.h (TARGET_VERSION): Remove.
5785         * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
5786         * config/i386/netbsd64.h (TARGET_VERSION): Remove.
5787         * config/i386/netware.h (TARGET_VERSION): Remove.
5788         * config/i386/nto.h (TARGET_VERSION): Remove.
5789         * config/i386/openbsd.h (TARGET_VERSION): Remove.
5790         * config/i386/vxworks.h (TARGET_VERSION): Remove.
5791         * config/ia64/elf.h (TARGET_VERSION): Remove.
5792         * config/ia64/freebsd.h (TARGET_VERSION): Remove.
5793         * config/ia64/hpux.h (TARGET_VERSION): Remove.
5794         * config/ia64/linux.h (TARGET_VERSION): Remove.
5795         * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
5796         * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
5797         TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
5798         * config/lm32/lm32.h (TARGET_VERSION): Remove.
5799         * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
5800         * config/m32c/m32c.h (TARGET_VERSION): Remove.
5801         * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
5802         * config/m32r/m32r.h (TARGET_VERSION): Remove.
5803         * config/m68k/linux.h (TARGET_VERSION): Remove.
5804         * config/m68k/m68k.h (TARGET_VERSION): Remove.
5805         * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
5806         * config/m68k/uclinux.h (TARGET_VERSION): Remove.
5807         * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
5808         * config/mep/mep.h (TARGET_VERSION): Remove.
5809         * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
5810         MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
5811         * config/mips/iris6.h (MACHINE_TYPE): Remove.
5812         * config/mips/linux.h (TARGET_VERSION): Remove.
5813         * config/mips/netbsd.h (MACHINE_TYPE): Remove.
5814         * config/mips/vxworks.h (TARGET_VERSION): Remove.
5815         * config/mmix/mmix.h (TARGET_VERSION): Remove.
5816         * config/mn10300/linux.h (TARGET_VERSION): Remove.
5817         * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
5818         * config/pa/pa.h (TARGET_VERSION): Remove.
5819         * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
5820         * config/picochip/picochip.h (TARGET_VERSION): Remove.
5821         * config/rs6000/aix.h (TARGET_VERSION): Remove.
5822         * config/rs6000/darwin.h (TARGET_VERSION): Remove.
5823         * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
5824         * config/rs6000/eabi.h (TARGET_VERSION): Remove.
5825         * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
5826         * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
5827         * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
5828         * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
5829         * config/rs6000/linux.h (TARGET_VERSION): Remove.
5830         * config/rs6000/linux64.h (TARGET_VERSION): Remove.
5831         * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
5832         * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
5833         * config/rs6000/lynx.h (TARGET_VERSION): Remove.
5834         * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
5835         * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
5836         * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
5837         * config/s390/linux.h (TARGET_VERSION): Remove.
5838         * config/s390/s390.h (TARGET_VERSION): Remove.
5839         * config/s390/tpf.h (TARGET_VERSION): Remove.
5840         * config/score/score.h (TARGET_VERSION): Remove.
5841         * config/sh/linux.h (TARGET_VERSION): Remove.
5842         * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
5843         TARGET_VERSION_CPU, TARGET_VERSION): Remove.
5844         * config/sh/sh.h (TARGET_VERSION): Remove.
5845         * config/sh/sh64.h (TARGET_VERSION): Remove.
5846         * config/sh/superh.h (TARGET_VERSION): Remove.
5847         * config/sh/vxworks.h (TARGET_VERSION): Remove.
5848         * config/sparc/freebsd.h (TARGET_VERSION): Remove.
5849         * config/sparc/linux.h (TARGET_VERSION): Remove.
5850         * config/sparc/linux64.h (TARGET_VERSION): Remove.
5851         * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
5852         TARGET_NAME32, TARGET_NAME): Remove.
5853         * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
5854         * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
5855         * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
5856         * config/sparc/sysv4.h (TARGET_VERSION): Remove.
5857         * config/sparc/vxworks.h (TARGET_VERSION): Remove.
5858         * config/spu/spu.h (TARGET_VERSION): Remove.
5859         * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
5860         * config/v850/v850.h (TARGET_VERSION): Remove.
5861         * config/vax/linux.h (TARGET_VERSION): Remove.
5862         * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
5863         * config/xtensa/elf.h (TARGET_VERSION): Remove.
5864         * config/xtensa/linux.h (TARGET_VERSION): Remove.
5865
5866 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
5867
5868         PR target/48142
5869         * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
5870         frame-related from frame-unrelated adjustments to the stack pointer.
5871
5872 2011-03-31  Jakub Jelinek  <jakub@redhat.com>
5873
5874         * common.opt (fdebug-types-section): Move earlier.
5875         * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
5876
5877 2011-03-31  Andreas Tobler  <andreast@fgznet.ch>
5878
5879         * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
5880         var.
5881
5882 2011-03-30  Nathan Froyd  <froydnj@codesourcery.com>
5883
5884         * tree.h (CASE_CHAIN): Define.
5885         * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
5886         (gimple_redirect_edge_and_branch): Likewise.
5887
5888 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
5889
5890         PR middle-end/48367
5891         * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
5892         calculation.
5893
5894 2011-03-30  Jeff Law  <law@redhat.com>
5895
5896         * PR bootstrap/48371
5897         * reload1.c (reload): Fix botch in last change.
5898
5899         * reload.h (struct reload): Fix typo introduced in last change.
5900
5901 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
5902
5903         * config/arm/arm.opt (mhard-float, msoft-float): Mark
5904         Undocumented.  Remove help text.
5905         * doc/invoke.texi (ARM Options): Don't document -msoft-float and
5906         -mhard-float.
5907
5908 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
5909
5910         * doc/options.texi (NegativeAlias): Document.
5911         (Alias): Mention NegativeAlias.
5912         * opt-functions.awk: Handle NegativeAlias.
5913         * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
5914         * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
5915         * opts.h (CL_NEGATIVE_ALIAS): Define.
5916         * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
5917         (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
5918         OPT_mspe_.
5919         * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
5920         Alias entries.
5921         * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
5922         mno-spe and mno-isel instead of mspe=no and -misel=no.
5923
5924 2011-03-29  Mark Wielaard  <mjw@redhat.com>
5925
5926         * common.opt (fdebug-types-section): New flag.
5927         * doc/invoke.texi: Document new -fno-debug-types-section flag.
5928         * dwarf2out.c (use_debug_types): New define.
5929         (struct die_struct): Mark die_id with GTY desc use_debug_types.
5930         (print_die): Guard output of type unit signatures using
5931         use_debug_types.
5932         (build_abbrev_table): Replace assert of dwarf_version >= 4
5933         with assert on use_debug_types.
5934         (size_of_die): Likewise.
5935         (unmark_dies): Likewise.
5936         (value_format): Decide AT_ref_external form on use_debug_types.
5937         (output_die): Replace dwarf_version version check guard with
5938         use_debug_types where appropriate.
5939         (modified_type_die): Likewise.
5940         (gen_reference_type_die): Likewise.
5941         (dwarf2out_start_source_file): Likewise.
5942         (dwarf2out_end_source_file): Likewise.
5943         (prune_unused_types_walk_attribs): Likewise.
5944         (dwarf2out_finish): Likewise.
5945
5946 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
5947
5948         * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
5949
5950 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
5951
5952         PR rtl-optimization/48332
5953         * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
5954         mode of input operand N and modeN to its actual mode.
5955
5956 2011-03-30  Jeff Law  <law@redhat.com>
5957
5958         * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
5959         define accessor macro.
5960         (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
5961         (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
5962         (reg_equiv_init): Likewise.
5963         (reg_equivs_size): New variable.
5964         (reg_equiv_init_size): Remove.
5965         (allocate_initial_values): Move prototype to here from....
5966         * integrate.h (allocate_initial_values): Remove prototype.
5967         * integrate.c: Include reload.h.
5968         (allocate_initial_values): Corresponding changes.
5969         * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
5970         (fix_reg_equiv_init, no_equiv): Corresponding changes.
5971         (update_equiv_regs): Corresponding changes.
5972         (ira): Corresponding changes.
5973         * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
5974         (push_secondary_reload): Corresponding changes.
5975         (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
5976         (make_memloc, find_reloads_address): Corresponding changes.
5977         (subst_reg_equivs, subst_indexed_address): Corresponding changes.
5978         (find_reloads_address_1): Corresponding changes.
5979         (find_reloads_subreg_address, subst_reloads): Corresponding changes.
5980         (refers_to_regno_for_reload_p): Corresponding changes.
5981         (reg_overlap_mentioned_for_reload_p): Corresponding changes.
5982         (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
5983         * reload1.c: Include ggc.h.
5984         (grow_reg_equivs): New function.
5985         (replace_pseudos_in, reload): Corresponding changes.
5986         (calculate_needs_all_insns, alter_regs): Corresponding changes.
5987         (eliminate_regs_1, elimination_effects): Corresponding changes.
5988         (emit_input_reload_insns, emit_output_reload_insns): Likewise.
5989         (delete_output_reload): Likewise.
5990         * caller-save.c (mark_referenced_regs): Corresponding changes.
5991         * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
5992         * frv/predicates.md (frv_load_operand): Corresponding changes.
5993         * microblaze/microblaze.c (double_memory_operand): Corresponding
5994         changes.
5995         * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
5996         * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
5997         * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
5998         * m68k/m68k.c (emit_move_sequence): Corresponding changes.
5999         * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
6000         changes.
6001         * pa/pa.c (emit_move_sequence): Corresponding changes.
6002         * vax/vax.c (nonindexed_address_p): Corresponding changes.
6003
6004 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
6005
6006         PR target/47551
6007         * config/arm/arm.c (coproc_secondary_reload_class): Handle
6008         structure modes.  Don't check neon_vector_mem_operand for
6009         vector or structure modes.
6010
6011 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
6012             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
6013
6014         PR target/43590
6015         * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
6016         operand 1 and reshuffle the operands to match.
6017         (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
6018
6019 2011-03-30  Christian Schüler  <cschueler@gmx.de>
6020
6021         PR driver/48208
6022         * config/c.opt (F): Added 'Driver' to -F option.
6023
6024         PR driver/48260
6025         * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
6026           handler function.
6027         * config/darwin.opt: Added '-arch' option.
6028
6029 2011-03-30  Nick Clifton  <nickc@redhat.com>
6030
6031         * config/rx/rx.md: Add peepholes and patterns to combine
6032         extending loads and simple arithmetic instructions.
6033         * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
6034         * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
6035         * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
6036         modes to use pre-decrement and post-increment addressing.
6037         (rx_is_restricted_memory_address): Add range checking of REG+INT
6038         addresses.
6039         (rx_print_operand): Add support for %Q.  Fix handling of %Q.
6040         (rx_memory_move_cost): Adjust cost of stores.
6041         (rx_adjust_insn_length): New function.
6042
6043 2011-03-30  Jakub Jelinek  <jakub@redhat.com>
6044
6045         PR c/48305
6046         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
6047         arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
6048         matching arg00/arg01 types.
6049
6050 2011-03-30  Eric Botcazou  <ebotcazou@adacore.com>
6051
6052         * cfglayout.c (insn_locators_alloc): Initialize curr_location and
6053         last_location to UNKNOWN_LOCATION.
6054
6055 2011-03-30  H.J. Lu  <hongjiu.lu@intel.com>
6056
6057         PR target/48349
6058         * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
6059         FLOAT_SSE_REGS.
6060
6061 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
6062             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6063
6064         PR bootstrap/48337
6065         * config/sparc/sparc.opt (sparc_cpu_and_features): Add
6066         Init(PROCESSOR_V7).
6067         (sparc_cpu): Likewise.
6068         * config/sparc/sparc.c (sparc_option_override): Replace 0 by
6069         PROCESSOR_V7.
6070
6071 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
6072
6073         PR target/48336
6074         PR middle-end/48342
6075         PR rtl-optimization/48345
6076         * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
6077         hard regs for given mode from profitable regs when doing secondary
6078         allocation.
6079
6080 2011-03-29  Jeff Law  <law@redhat.com>
6081
6082         PR bootstrap/48327
6083         * tree-ssa-threadupdate.c (struct redirection_data): Remove
6084         do_not_duplicate field.
6085         (lookup_redirection_data): Corresponding changes.
6086         (create_duplicates): Always create a template block.
6087         (redirect_edges): Remove code which reused the original block
6088         when it was going to become unreachable code.
6089         (thread_block): Don't set do_not_duplicate field.
6090
6091 2011-03-29  Joseph Myers  <joseph@codesourcery.com>
6092
6093         * lto-opts.c (register_user_option_p, lto_register_user_option):
6094         Make type argument unsigned.
6095         * lto-streamer.h (lto_register_user_option): Make type argument
6096         unsigned.
6097         * opth-gen.awk: Make CL_* macros unsigned.
6098         * opts-common.c (find_opt): Make lang_mask argument unsigned.
6099         * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
6100         CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
6101         CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
6102         CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
6103         CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
6104         (find_opt): Make lang_mask argument unsigned.
6105
6106 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
6107
6108         PR rtl-optimization/48331
6109         PR rtl-optimization/48334
6110         * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
6111         for any used algorithm.
6112
6113 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
6114
6115         * ira-conflicts.c (build_object_conflicts): Add unused attribute
6116         to parent_max.
6117
6118 2011-03-29  Uros Bizjak  <ubizjak@gmail.com>
6119
6120         * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
6121         (alpha_option_override): Don't set alpha_sr_alias_set.
6122         (emit_frame_store_1): Use gen_frame_mem rather than calling
6123         set_mem_alias_set.
6124         (alpha_expand_epilogue): Ditto.
6125
6126 2011-03-29  Ira Rosen  <ira.rosen@linaro.org>
6127
6128         PR tree-optimization/48290
6129         * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
6130         vectorization, check that relevant phis in the basic block after
6131         the inner loop are really inner loop's exit phis.
6132
6133 2011-03-29  Richard Sandiford  <richard.sandiford@linaro.org>
6134
6135         PR debug/48190
6136         * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
6137         (cached_dw_loc_list_def): New structure.
6138         (cached_dw_loc_list): New typedef.
6139         (cached_dw_loc_list_table): New variable.
6140         (cached_dw_loc_list_table_hash): New function.
6141         (cached_dw_loc_list_table_eq): Likewise.
6142         (add_location_or_const_value_attribute): Take a bool cache_p.
6143         Cache the list when the parameter is true.
6144         (gen_formal_parameter_die): Update caller.
6145         (gen_variable_die): Likewise.
6146         (dwarf2out_finish): Likewise.
6147         (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
6148         while generating debug info for the decl.
6149         (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
6150         (dwarf2out_init): Initialize cached_dw_loc_list_table.
6151         (resolve_addr): Cache the result of resolving a chain of
6152         location lists.
6153
6154 2011-03-28  Vladimir Makarov  <vmakarov@redhat.com>
6155
6156         * ira-color.c (update_left_conflict_sizes_p): Don't assume that
6157         conflict object hard regset nodes have intersecting hard reg sets.
6158
6159         * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
6160         after regstat_init_n_sets_and_refs.
6161
6162         * ira.c: Add more comments at the top.
6163         (setup_stack_reg_pressure_class, setup_pressure_classes):
6164         Add comments how we compute the register pressure classes.
6165         (setup_allocno_and_important_classes): Add more comments.
6166         (setup_class_translate_array, reorder_important_classes)
6167         (setup_reg_class_relations): Add comments.
6168
6169         * ira-emit.c: Add 2011 to the Copyright line.  Add comments at the
6170         start of the file.
6171
6172         * ira-color.c: Add 2011 to the Copyright line.
6173         (assign_hard_reg):  Add more comments.
6174         (improve_allocation): Ditto.
6175
6176         * ira-costs.c: Add 2011 to the Copyright line.
6177         (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
6178         comments.
6179         (setup_regno_cost_classes_by_mode): Ditto.
6180
6181         Initial patches from ira-improv branch:
6182
6183         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
6184
6185         * ira-build.c (ira_create_object): Remove initialization of
6186         OBJECT_PROFITABLE_HARD_REGS.  Initialize OBJECT_ADD_DATA.
6187         (ira_create_allocno): Remove initialization of
6188         ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
6189         ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
6190         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
6191         ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
6192         ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
6193         Initialize ALLOCNO_ADD_DATA.
6194         (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
6195         and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
6196         ALLOCNO_REG.
6197         (ira_flattening): Ditto.  Use ALLOCNO_EMIT_DATA instead of
6198         ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
6199
6200         * ira.c (ira_reallocate): Remove.
6201         (setup_pressure_classes): Call
6202         ira_init_register_move_cost_if_necessary.  Use
6203         ira_register_move_cost instead of ira_get_register_move_cost.
6204         (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
6205         (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
6206
6207         * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
6208         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
6209         ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
6210         ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
6211         instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
6212         OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
6213         Fix formatting.
6214         (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
6215         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
6216         (struct allocno_color_data): New.
6217         (allocno_color_data_t): New typedef.
6218         (allocno_color_data): New definition.
6219         (ALLOCNO_COLOR_DATA): New macro.
6220         (struct object_color_data): New.
6221         (object_color_data_t): New typedef.
6222         (object_color_data): New definition.
6223         (OBJECT_COLOR_DATA): New macro.
6224         (update_copy_costs, calculate_allocno_spill_cost): Call
6225         ira_init_register_move_cost_if_necessary.  Use
6226         ira_register_move_cost instead of ira_get_register_move_cost.
6227         (move_spill_restore, update_curr_costs): Ditto.
6228         (allocno_spill_priority): Make it inline.
6229         (color_pass): Allocate and free allocno_color_dat and object_color_data.
6230         (struct coalesce_data, coalesce_data_t): New.
6231         (allocno_coalesce_data): New definition.
6232         (ALLOCNO_COALESCE_DATA): New macro.
6233         (merge_allocnos, coalesced_allocno_conflict_p): Use
6234         ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
6235         ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
6236         (coalesce_allocnos): Ditto.
6237         (setup_coalesced_allocno_costs_and_nums): Ditto.
6238         (collect_spilled_coalesced_allocnos): Ditto.
6239         (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
6240         (setup_slot_coalesced_allocno_live_ranges): Ditto.
6241         (coalesce_spill_slots): Ditto.
6242         (ira_sort_regnos_for_alter_reg): Ditto.  Allocate, initialize and
6243         free allocno_coalesce_data.
6244
6245         * ira-conflicts.c: Fix formatting.
6246         (process_regs_for_copy): Call
6247         ira_init_register_move_cost_if_necessary.  Use
6248         ira_register_move_cost instead of ira_get_register_move_cost.
6249         (build_object_conflicts): Optimize.
6250
6251         * ira-costs.c (record_reg_classes): Optimize.  Call
6252         ira_init_register_move_cost_if_necessary.  Use
6253         ira_register_move_cost, ira_may_move_in_cost, and
6254         ira_may_move_out_cost instead of ira_get_register_move_cost and
6255         ira_get_may_move_cost.
6256         (record_address_regs): Ditto.
6257         (scan_one_insn): Optimize.
6258         (find_costs_and_classes): Optimize.
6259         (process_bb_node_for_hard_reg_moves): Call
6260         ira_init_register_move_cost_if_necessary.  Use
6261         ira_register_move_cost instead of ira_get_register_move_cost.
6262
6263         * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
6264         ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
6265         ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
6266         (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
6267         definitions.
6268         (ira_initiate_emit_data, ira_finish_emit_data)
6269         (create_new_allocno): New functions.
6270         (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
6271         (emit_move_list): Call ira_init_register_move_cost_if_necessary.
6272         Use ira_register_move_cost instead of ira_get_register_move_cost.
6273
6274         * ira-int.h: Fix some comments.
6275         (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
6276         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
6277         (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
6278         hard_regs_subnodes_start, hard_regs_subnodes_num.  Add new member
6279         add_data.
6280         (struct ira_allocno): Make mode and aclass a bitfield.  Move other
6281         bitfield after mode.  Make hard_regno a short int.  Make
6282         hard_regno short.  Remove first_coalesced_allocno and
6283         next_coalesced_allocno.  Move mem_optimized_dest_p,
6284         somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
6285         into struct ira_emit_data.  Remove in_graph_p, may_be_spilled_p,
6286         available_regs_num, next_bucket_allocno, prev_bucket_allocno,
6287         temp, colorable_p.  Add new member add_data.
6288         (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
6289         (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
6290         (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
6291         (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
6292         (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
6293         (ALLOCNO_ADD_DATA): New macro.
6294         (ira_emit_data_t): New typedef.
6295         (struct ira_emit_data): New.  Move mem_optimized_dest_p,
6296         somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
6297         from struct ira_allocno.
6298         (ALLOCNO_EMIT_DATA): New macro.
6299         (ira_allocno_emit_data, allocno_emit_reg): New.
6300         (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
6301         (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
6302         (OBJECT_ADD_DATA): New macro.
6303         (ira_reallocate): Remove.
6304         (ira_initiate_emit_data, ira_finish_emit_data): New.
6305         (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
6306         (ira_init_register_move_cost_if_necessary): New.
6307         (ira_object_conflict_iter_next): Merge into
6308         ira_object_conflict_iter_cond.
6309         (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
6310
6311         * ira-live.c (process_single_reg_class_operands): Call
6312         ira_init_register_move_cost_if_necessary.  Use
6313         ira_register_move_cost instead of ira_get_register_move_cost.
6314
6315         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
6316
6317         * ira-int.h (struct target_ira_int): Remove x_cost_classes.
6318
6319         * ira-costs.c: Fix formatting.
6320         (cost_classes, cost_classes_num): Remove.
6321         (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
6322         (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
6323         (cost_classes_del, cost_classes_htab): New.
6324         (cost_classes_aclass_cache, cost_classes_mode_cache): New.
6325         (initiate_regno_cost_classes, setup_cost_classes): New.
6326         (setup_regno_cost_classes_by_aclass): New.
6327         (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
6328         (record_reg_classes): Use regno_cost_classes instead of
6329         cost_classes.  Move checking opposite operand up.
6330         (record_address_regs): Use regno_cost_classes
6331         instead of cost_classes.
6332         (scan_one_insn): Ditto.  Use always general register.
6333         (print_allocno_costs): Use regno_cost_classes instead of
6334         cost_classes.
6335         (print_pseudo_costs): Ditto.  Use Reg_N_REFS.
6336         (find_costs_and_classes): Set up cost classes for each registers.
6337         Use also their mode for this.  Use regno_cost_classes instead of
6338         cost_classes.
6339         (setup_allocno_class_and_costs): Use regno_cost_classes instead of
6340         cost_classes.
6341         (free_ira_costs, ira_init_costs): Don't use cost_classes.
6342         (ira_costs, ira_set_pseudo_classes): Call
6343         initiate_regno_cost_classes and finish_regno_cost_classes.
6344
6345         2010-10-04  Vladimir Makarov  <vmakarov@redhat.com>
6346
6347         * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
6348
6349         * target.def (ira_cover_classes): Remove.
6350
6351         * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
6352
6353         * doc/tm.texi.in: Ditto.
6354
6355         * ira-conflicts.c: Remove mentioning cover classes from the file.
6356         Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Use
6357         ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST.  Fix formatting.
6358
6359         * targhooks.c (default_ira_cover_classes): Remove.
6360
6361         * targhooks.h (default_ira_cover_classes): Ditto.
6362
6363         * haifa-sched.c: Remove mentioning cover classes from the file.
6364         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
6365         ira_pressure_classes and ira_pressure_classes_num instead of
6366         ira_reg_class_cover_size and ira_reg_class_cover.  Use
6367         sched_regno_pressure_class instead of sched_regno_cover_class.
6368         (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
6369         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
6370
6371         * ira-int.h: Add 2010 to Copyright.  Remove mentioning cover
6372         classes from the file.
6373         (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
6374         (struct object_hard_regs, struct object_hard_regs_node): New.
6375         (struct ira_object): New members profitable_hard_regs,
6376         hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
6377         (struct ira_allocno): Rename cover_class to aclass.  Rename
6378         cover_class_cost and updated_cover_class_cost to class_cost and
6379         updated_class_cost.  Remove splay_removed_p and
6380         left_conflict_size.  Add new members colorable_p.
6381         (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
6382         (ALLOCNO_COLORABLE_P): New macro.
6383         (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
6384         (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
6385         Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
6386         (OBJECT_...): Rename parameter C to O.
6387         (OBJECT_PROFITABLE_HARD_REGS): New macro.
6388         (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
6389         (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
6390         (struct target_ira_int): New members x_ira_max_memory_move_cost,
6391         x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
6392         x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
6393         x_ira_reg_pressure_class_p, x_ira_important_class_nums,
6394         x_ira_reg_class_superunion.  Rename x_prohibited_class_mode_reg to
6395         x_ira_prohibited_class_mode_reg.  Rename x_ira_reg_class_union to
6396         x_ira_reg_class_subunion.
6397         (ira_max_memory_move_cost, ira_max_register_move_cost)
6398         (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
6399         (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
6400         (ira_important_class_nums, ira_reg_class_superunion): New macros.
6401         (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
6402         (ira_reg_class_union): Rename to ira_reg_class_subunion.
6403         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
6404         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
6405         (ira_tune_allocno_costs_and_cover_classes): Rename to
6406         ira_tune_allocno_costs.
6407         (ira_debug_hard_regs_forest): New.
6408         (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
6409         (ira_object_conflict_iter_next): Fix comments.
6410         (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
6411         (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
6412         cover_class to aclass.
6413         (ira_allocate_and_accumulate_costs): Ditto.
6414         (ira_allocate_and_set_or_copy_costs): Ditto.
6415
6416         * opts.c (decode_options): Remove ira_cover_class check.
6417
6418         * ira-color.c: Remove mentioning cover classes from the file.  Use
6419         ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
6420         instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
6421         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
6422         (splay-tree.h): Remove include.
6423         (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
6424         before copy_freq_compare_func.
6425         (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
6426         (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
6427         New definitions.
6428         (hard_regs_roots, hard_regs_node_vec): Ditto.
6429         (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
6430         (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
6431         (finish_object_hard_regs, object_hard_regs_compare): Ditto.
6432         (create_new_object_hard_regs_node): Ditto.
6433         (add_new_object_hard_regs_node_to_forest): Ditto.
6434         (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
6435         (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
6436         Ditto.
6437         (print_hard_reg_set, print_hard_regs_subforest): Ditto.
6438         (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
6439         (remove_unused_object_hard_regs_nodes): Ditto.
6440         (enumerate_object_hard_regs_nodes): Ditto.
6441         (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
6442         (object_hard_regs_subnode_t): Ditto.
6443         (struct object_hard_regs_subnode): Ditto.
6444         (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
6445         (setup_object_hard_regs_subnode_index): Ditto.
6446         (get_object_hard_regs_subnodes_num): Ditto.
6447         (form_object_hard_regs_nodes_forest): Ditto.
6448         (finish_object_hard_regs_nodes_tree): Ditto.
6449         (finish_object_hard_regs_nodes_forest): Ditto.
6450         (allocnos_have_intersected_live_ranges_p): Rename to
6451         allocnos_conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
6452         (pseudos_have_intersected_live_ranges_p): Rename to
6453         conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
6454         (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
6455         (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
6456         (update_copy_costs): Remove assert.  Skip cost update if the hard
6457         reg does not belong the class.
6458         (assign_hard_reg): Process only profitable hard regs.
6459         (uncolorable_allocnos_num): Make it scalar.
6460         (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
6461         and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
6462         and ira_reg_class_max_nregs.
6463         (bucket_allocno_compare_func): Check frequency first.
6464         (sort_bucket): Add compare function as a parameter.
6465         (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
6466         (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
6467         (push_allocno_to_stack): Rewrite for checking new allocno
6468         colorability.
6469         (remove_allocno_from_bucket_and_push): Print cost too.  Remove assert.
6470         (push_only_colorable): Pass new parameter to sort_bucket.
6471         (push_allocno_to_spill): Remove.
6472         (allocno_spill_priority_compare): Make it inline and rewrite.
6473         (splay_tree_allocate, splay_tree_free): Remove.
6474         (allocno_spill_sort_compare): New function.
6475         (push_allocnos_to_stack): Sort allocnos for spilling once.  Don't
6476         build and use splay tree.  Choose first allocno in uncolorable
6477         allocno bucket to spill.  Remove setting spill cost.
6478         (all_conflicting_hard_regs): Remove.
6479         (setup_allocno_available_regs_num): Check only profitable hard
6480         regs.  Print info about hard regs nodes.
6481         (setup_allocno_left_conflicts_size): Remove.
6482         (put_allocno_into_bucket): Don't call
6483         setup_allocno_left_conflicts_size.  Use setup_left_conflict_sizes_p.
6484         (improve_allocation): New.
6485         (color_allocnos): Call setup_profitable_hard_regs,
6486         form_object_hard_regs_nodes_forest, improve_allocation,
6487         finish_object_hard_regs_nodes_forest.  Setup spill cost.
6488         (print_loop_title): Use pressure classes.
6489         (color_allocnso): Ditto.
6490         (do_coloring): Remove allocation and freeing splay_tree_node_pool
6491         and allocnos_for_spilling.
6492         (ira_sort_regnos_for_alter_reg): Don't setup members
6493         {first,next}_coalesced_allocno.
6494         (color): Remove allocating and freeing removed_splay_allocno_vec.
6495         (fast_allocation): Use ira_prohibited_class_mode_regs instead of
6496         prohibited_class_mode_regs.
6497
6498         * ira-lives.c: Remove mentioning cover classes from the file.  Fix
6499         formatting.
6500         (update_allocno_pressure_excess_length): Use pressure classes.
6501         (inc_register_pressure, dec_register_pressure): Check for pressure
6502         class.
6503         (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
6504         pressure class.  Use ira_reg_class_nregs instead of
6505         ira_reg_class_max_nregs.
6506         (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
6507         (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
6508         (single_reg_class): Use ira_reg_class_nregs instead of
6509         ira_reg_class_max_nregs.
6510         (process_bb_node_lives): Use pressure classes.
6511
6512         * ira-emit.c: Remove mentioning cover classes from the file.  Use
6513         ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Fix formatting.
6514         (change_loop): Use pressure classes.
6515         (modify_move_list): Call ira_set_allocno_class instead of
6516         ira_set_allocno_cover_class.
6517
6518         * ira-build.c: Remove mentioning cover classes from the file.  Use
6519         ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
6520         ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST.  Use
6521         ALLOCNO_UPDATED_CLASS_COST instead of
6522         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
6523         (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
6524         (ira_create_allocno): Remove initialization of
6525         ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE.  Initialize
6526         ALLOCNO_COLORABLE_P.
6527         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
6528         Update conflict regs for the objects.
6529         (create_cap_allocno): Remove assert.  Don't propagate
6530         ALLOCNO_AVAILABLE_REGS_NUM.
6531         (ira_free_allocno_costs): New function.
6532         (finish_allocno): Change a part of code into call of
6533         ira_free_allocno_costs.
6534         (low_pressure_loop_node_p): Use pressure classes.
6535         (object_range_compare_func): Don't compare classes.
6536         (setup_min_max_conflict_allocno_ids): Ditto.
6537
6538         * loop-invariant.c: Remove mentioning cover classes from the file.
6539         Use ira_pressure_classes and ira_pressure_classes_num instead of
6540         ira_reg_class_cover_size and ira_reg_class_cover.  Fix formatting.
6541         (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
6542         Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
6543         Use reg_allocno_class instead of reg_cover_class.
6544         (get_inv_cost): Use instead ira_stack_reg_pressure_class of
6545         STACK_REG_COVER_CLASS.
6546         (get_regno_cover_class): Rename to get_regno_pressure_class.
6547         (move_loop_invariants): Initialize and finalize regstat.
6548
6549         * ira.c: Remove mentioning cover classes from the file.  Add
6550         comments about coloring without cover classes.  Use ALLOCNO_CLASS
6551         instead of ALLOCNO_COVER_CLASS.  Fix formatting.
6552         (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
6553         setup_class_subset_and_memory_move_costs.
6554         (setup_stack_reg_pressure_class, setup_pressure_classes): New.
6555         (setup_cover_and_important_classes): Rename to
6556         setup_allocno_and_important_classes.
6557         (setup_class_translate_array): New.
6558         (setup_class_translate): Call it for allocno and pressure classes.
6559         (cover_class_order): Rename to allocno_class_order.
6560         (comp_reg_classes_func): Use ira_allocno_class_translate instead
6561         of ira_class_translate.
6562         (reorder_important_classes): Set up ira_important_class_nums.
6563         (setup_reg_class_relations): Set up ira_reg_class_superunion.
6564         (print_class_cover): Rename to print_classes.  Add parameter.
6565         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
6566         Print pressure classes too.
6567         (find_reg_class_closure): Rename to find_reg_classes.  Don't call
6568         setup_reg_subclasses.
6569         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
6570         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
6571         (setup_prohibited_class_mode_regs): Use
6572         ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
6573         (clarify_prohibited_class_mode_regs): New function.
6574         (ira_init_register_move_cost): Set up ira_max_register_move_cost,
6575         ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
6576         (ira_init_once): Initialize them.
6577         (free_register_move_costs): Process them.
6578         (ira_init): Move calls of find_reg_classes and
6579         setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
6580         Call clarify_prohibited_class_mode_regs.
6581         (ira_no_alloc_reg): Remove.
6582         (too_high_register_pressure_p): Use pressure classes.
6583
6584         * sched-deps.c: Remove mentioning cover classes from the file.
6585         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
6586         ira_pressure_classes and ira_pressure_classes_num instead of
6587         ira_reg_class_cover_size and ira_reg_class_cover.
6588         (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
6589         sched_regno_pressure_class instead of sched_regno_cover_class.
6590         (mark_insn_pseudo_birth, mark_pseudo_death): Ditto.  Use
6591         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
6592
6593         * ira.h: Add 2010 to Copyright.
6594         (ira_no_alloc_reg): Remove external.
6595         (struct target_ira): Rename x_ira_hard_regno_cover_class,
6596         x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
6597         x_ira_class_translate to x_ira_hard_regno_allocno_class,
6598         x_ira_allocno_classes_num, x_ira_allocno_classes, and
6599         x_ira_allocno_class_translate.  Add x_ira_pressure_classes_num,
6600         x_ira_pressure_classes, x_ira_pressure_class_translate, and
6601         x_ira_stack_reg_pressure_class.  Rename x_ira_reg_class_nregs to
6602         x_ira_reg_class_max_nregs.  Add x_ira_reg_class_min_nregs and
6603         x_ira_no_alloc_regs.
6604         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
6605         (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
6606         ira_allocno_classes_num and ira_allocno_classes.
6607         (ira_class_translate): Rename to ira_allocno_class_translate.
6608         (ira_pressure_classes_num, ira_pressure_classes): New definitions.
6609         (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
6610         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
6611         (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
6612         (ira_no_alloc_regs): New.
6613
6614         * ira-costs.c: Add 2010 to Copyright.  Remove mentioning cover
6615         classes from the file.  Use ALLOCNO_CLASS instead of
6616         ALLOCNO_COVER_CLASS.  Use ALLOCNO_CLASS_COST instead of
6617         ALLOCNO_COVER_CLASS_COST.
6618         (regno_cover_class): Rename to regno_aclass.
6619         (record_reg_classes): Use ira_reg_class_subunion instead of
6620         ira_reg_class_union.
6621         (record_address_regs): Check overflow.
6622         (scan_one_insn): Ditto.
6623         (print_allocno_costs): Print total mem cost fore regional allocation.
6624         (print_pseudo_costs): Use REG_N_REFS.
6625         (find_costs_and_classes): Use classes intersected with them on the
6626         1st pass. Check overflow.  Use ira_reg_class_subunion instead of
6627         ira_reg_class_union.  Use ira_allocno_class_translate and
6628         regno_aclass instead of ira_class_translate and regno_cover_class.
6629         Modify code for finding regno_aclass.  Setup preferred classes for
6630         the next pass.
6631         (setup_allocno_cover_class_and_costs): Rename to
6632         setup_allocno_class_and_costs.  Use regno_aclass instead of
6633         regno_cover_class.  Use ira_set_allocno_class instead of
6634         ira_set_allocno_cover_class.
6635         (init_costs, finish_costs): Use regno_aclass instead of
6636         regno_cover_class.
6637         (ira_costs): Use setup_allocno_class_and_costs instead of
6638         setup_allocno_cover_class_and_costs.
6639         (ira_tune_allocno_costs_and_cover_classes): Rename to
6640         ira_tune_allocno_costs.  Check overflow.  Skip conflict hard regs
6641         by processing objects.  Use ira_reg_class_max_nregs instead of
6642         ira_reg_class_nregs.
6643
6644         * rtl.h (reg_cover_class): Rename to reg_allocno_class.
6645
6646         * sched-int.h: Remove mentioning cover classes from the file.
6647         (sched_regno_cover_class): Rename to sched_regno_pressure_class.
6648
6649         * reginfo.c: Add 2010 to Copyright.  Remove mentioning cover
6650         classes from the file.
6651         (struct reg_pref): Rename coverclass into allocnoclass.
6652         (reg_cover_class): Rename to reg_allocno_class.
6653
6654         * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
6655
6656         * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
6657
6658         * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
6659
6660         * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
6661
6662         * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
6663
6664         * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
6665
6666         * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
6667
6668         * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
6669
6670         * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
6671
6672         * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
6673
6674         * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
6675         (i386_ira_cover_classes): Ditto.
6676
6677         * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
6678
6679         * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
6680
6681         * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
6682
6683         * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
6684
6685         * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
6686
6687         * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
6688
6689         * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
6690         (mips_ira_cover_classes): Ditto.
6691
6692         * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
6693
6694         * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
6695
6696         * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
6697
6698         * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
6699
6700         * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
6701
6702         * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
6703         (IRA_COVER_CLASSES_VSX): Ditto.
6704
6705         * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
6706         (rs6000_ira_cover_classes): Ditto.
6707
6708         * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
6709
6710         * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
6711
6712         * config/score/score.h (IRA_COVER_CLASSES): Ditto.
6713
6714         * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
6715
6716         * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
6717
6718         * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
6719
6720         * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
6721
6722         * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
6723
6724         * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
6725
6726         * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
6727
6728 2011-03-29  Jakub Jelinek  <jakub@redhat.com>
6729
6730         PR debug/48253
6731         * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
6732         dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
6733         dw_fde_unlikely_section_end_label, cold_in_std_section,
6734         dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
6735         Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
6736         fields.
6737         (output_fde): Use dw_fde_second_{begin,end} if second is
6738         true, otherwise dw_fde_{begin,end}.
6739         (output_call_frame_info): Test dw_fde_second_begin != NULL
6740         instead of dw_fde_switched_sections.
6741         (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
6742         fields, initialize new fields.  Initialize in_std_section
6743         unconditionally from the first partition.
6744         (dwarf2out_end_epilogue): Don't override dw_fde_end when
6745         dw_fde_second_begin is non-NULL.
6746         (dwarf2out_switch_text_section): Stop initializing removed
6747         dw_fde_struct fields, initialize new fields, initialize
6748         also dw_fde_end here.  Set dw_fde_switch_cfi even when
6749         dwarf2out_do_cfi_asm ().  Call var_location_switch_text_section.
6750         (struct var_loc_list_def): Add last_before_switch field.
6751         (arange_table, arange_table_allocated, arange_table_in_use,
6752         ARANGE_TABLE_INCREMENT, add_arange): Removed.
6753         (size_of_aranges): Count !in_std_section and !second_in_std_section
6754         hunks in fdes, instead of looking at arange_table_in_use.
6755         (output_aranges): Add aranges_length argument, don't call
6756         size_of_aranges here.  Instead of using aranges_table*
6757         emit ranges for fdes when !in_std_section resp.
6758         !second_in_std_section.
6759         (dw_loc_list): Break ranges crossing section switch.
6760         (convert_cfa_to_fb_loc_list): Likewise.  If switched sections,
6761         use dw_fde_second_end instead of dw_fde_end as end of last range.
6762         (gen_subprogram_die): Don't call add_arange.  Use
6763         dw_fde_{begin,end} for first partition and if switched
6764         section dw_fde_second_{begin,end} for the second.
6765         (var_location_switch_text_section_1,
6766         var_location_switch_text_section): New functions.
6767         (dwarf2out_begin_function): Initialize cold_text_section even
6768         when function_section () isn't text_section.
6769         (prune_unused_types): Don't walk arange_table.
6770         (dwarf2out_finish): Don't needlessly test
6771         flag_reorder_blocks_and_partition when testing cold_text_section_used.
6772         If info_section_emitted, call size_of_aranges and if it indicates
6773         non-empty .debug_aranges, call output_aranges with the computed
6774         size.  Stop using removed dw_fde_struct fields, use
6775         dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
6776         for second.
6777
6778         PR debug/48203
6779         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
6780         create ENTRY_VALUE if incoming or address of incoming's MEM
6781         is a hard REG.
6782         * dwarf2out.c (mem_loc_descriptor): Don't emit
6783         DW_OP_GNU_entry_value of DW_OP_fbreg.
6784         * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
6785         on ENTRY_VALUE is able to find the canonical parameter VALUE.
6786         * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
6787         rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
6788         ENTRY_VALUE_EXPs.
6789         (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
6790         is a REG_P or MEM_P with REG_P address, compute hash directly
6791         instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
6792         (preserve_only_constants): Don't clear VALUES forwaring
6793         ENTRY_VALUE to some other VALUE.
6794
6795 2011-03-28  Richard Sandiford  <richard.sandiford@linaro.org>
6796
6797         * builtins.c (expand_builtin_memset_args): Use gen_int_mode
6798         instead of GEN_INT.
6799
6800 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
6801
6802         * cfgexpand.c (expand_gimple_cond): Always set the source location and
6803         block before expanding the statement.
6804         (expand_gimple_stmt_1): Likewise.  Set them here...
6805         (expand_gimple_stmt): ...and not here.  Tidy.
6806         * cfglayout.c (curr_insn_locator): Return 0 if the current location is
6807         unknown.
6808
6809 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
6810
6811         * Makefile.in: New rule for cprop.o.
6812         * gcse.c: Move constant/copy propagation to cprop.c.
6813         (compute_local_properties): Only handle expression tables.
6814         (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
6815         (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
6816         (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
6817         next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
6818         mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
6819         compute_cprop_data, find_used_regs, try_replace_reg,
6820         find_avail_set, cprop_jump, constprop_register, cprop_insn,
6821         local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
6822         fis_get_condition, implicit_set_cond_p, find_implicit_sets,
6823         find_bypass_set, reg_killed_on_edge, bypass_block,
6824         bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
6825         execute_rtl_cprop, pass_rtl_cprop): Move to...
6826         * cprop.c: ...here.  New file, constant/copy propagation for RTL
6827         moved from gcse.c to here with minor cleanups in duplicated code.
6828
6829 2011-03-28  H.J. Lu  <hongjiu.lu@intel.com>
6830
6831         * config/i386/i386.c (flag_opts): Fix a typo in
6832         -mavx256-split-unaligned-store.
6833
6834 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
6835
6836         * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
6837         LIBCALL_VALUE): Remove macros.
6838         * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
6839         TARGET_FUNCTION_VALUE_REGNO_P): Define.
6840         (h8300_function_value, h8300_libcall_value,
6841         h8300_function_value_regno_p): New functions.
6842
6843 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
6844
6845         * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
6846
6847 2011-03-28  Jeff Law  <law@redhat.com>
6848
6849         * tree-ssa-threadupdate.c (redirect_edges): Call
6850         create_edge_and_update_destination_phis as needed.
6851         (create_edge_and_update_destination_phis): Accept new BB argument.
6852         All callers updated.
6853         (thread_block): Do not update the profile when threading around
6854         intermediate blocks.
6855         (thread_single_edge): Likewise.
6856         (determine_bb_domination_status): If BB is not a successor of the
6857         loop header, return NONDOMINATING.
6858         (register_jump_thread): Note when we register a jump thread around
6859         an intermediate block.
6860         * tree-ssa-threadedge.c (thread_around_empty_block): New function.
6861         (thread_across_edge): Use it.
6862
6863 2011-03-28  Tristan Gingold  <gingold@adacore.com>
6864
6865         * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
6866         when for_return is 2.
6867
6868 2011-03-28  Jeff Law  <law@redhat.com>
6869
6870         * var-tracking.c (canonicalize_values_mark): Delete unused
6871         lhs assignment.
6872         (canonicalize_values_star, set_variable_part): Likewise.
6873         (clobber_variable_part, delete_variable_part): Likewise.
6874
6875 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
6876
6877         * gcse.c (free_gcse_mem): Free reg_set_bitmap.
6878
6879 2011-03-28  Martin Jambor  <mjambor@suse.cz>
6880
6881         * tree-inline.c (expand_call_inline): Do not check that destination
6882         node is analyzed.
6883         (optimize_inline_calls): Assert that destination node is analyzed.
6884         * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
6885         not call tree_lowering_passes.
6886         * cgraph.h (cgraph_analyze_function): Declare.
6887         * cgraphunit.c (cgraph_analyze_function): Make public.
6888
6889 2011-03-28  Joseph Myers  <joseph@codesourcery.com>
6890
6891         * config/sparc/sparc-opts.h: New.
6892         * config/sparc/sparc.c (sparc_handle_option, sparc_select,
6893         sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
6894         (sparc_option_override): Store processor_type enumeration rather
6895         than string in cpu_default.  Remove name and enumeration from
6896         cpu_table.  Directly default -mcpu then default -mtune from -mcpu
6897         without using sparc_select.  Use target_flags_explicit instead of
6898         fpu_option_set.
6899         * config/sparc/sparc.h (enum processor_type): Move to
6900         sparc-opts.h.
6901         (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
6902         * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
6903         HeaderInclude entry.
6904         (mcpu=, mtune=): Use Var and Enum.
6905         (sparc_processor_type): New Enum and EnumValue entries.
6906
6907 2011-03-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6908             Iain Sandoe  <iains@gcc.gnu.org>
6909
6910         PR target/48245
6911         * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
6912
6913 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
6914
6915         * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
6916         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
6917         Insert new statements at it in lieu of STMT.
6918         (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
6919         * tree-vect-stmts.c (vectorizable_store): Likewise.
6920         (vectorizable_load): Likewise.
6921
6922 2011-03-28  Uros Bizjak  <ubizjak@gmail.com>
6923
6924         * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
6925         (divtf3): Ditto.
6926         (multf3): Ditto.
6927         (subtf3): Ditto.
6928
6929 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
6930
6931         * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
6932         unaligned 256bit load/store.
6933         (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
6934         (*avx_movdqu<avxmodesuffix>): Likewise.
6935
6936 2011-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6937
6938         PR target/48288
6939         * config/pa/predicates.md (reg_or_ior_operand): New predicate.
6940         * config/pa/pa.md (iordi3): Use new predicate in expander.
6941         (iorsi3): Likewise.
6942
6943 2011-03-27  Anatoly Sokolov  <aesok@post.ru>
6944
6945         * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
6946         FUNCTION_VALUE_REGNO_P): Remove macros.
6947         * config/mips/mips-protos.h (mips_function_value): Remove.
6948         * config/mips/mips.c (mips_function_value): Rename to...
6949         (mips_function_value_1): ... this. Make static.  Handle receiving
6950         the function type in 'fn_decl_or_type' argument.
6951         (mips_function_value, mips_libcall_value,
6952         mips_function_value_regno_p): New function.
6953         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
6954         TARGET_FUNCTION_VALUE_REGNO_P): Define.
6955
6956 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
6957
6958         * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
6959         and -mavx256-split-unaligned-store.
6960         (ix86_option_override_internal): Split 32-byte AVX unaligned
6961         load/store by default.
6962         (ix86_avx256_split_vector_move_misalign): New.
6963         (ix86_expand_vector_move_misalign): Use it.
6964
6965         * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
6966         -mavx256-split-unaligned-store.
6967
6968         * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
6969         256bit load/store.  Generate unaligned store on misaligned memory
6970         operand.
6971         (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
6972         256bit load/store.
6973         (*avx_movdqu<avxmodesuffix>): Likewise.
6974
6975         * doc/invoke.texi: Document -mavx256-split-unaligned-load and
6976         -mavx256-split-unaligned-store.
6977
6978 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
6979
6980         PR target/38598
6981         * config/mips/mips.md (extendsidi2): Add an "l" alternative.
6982         Update commentary.
6983
6984 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
6985
6986         * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
6987         opno arguments with an expand_operand.  Use create_input_operand.
6988         (mips_prepare_builtin_target): Delete.
6989         (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
6990         functions.
6991         (mips_expand_builtin_direct): Use create_output_operand and
6992         mips_expand_builtin_insn.  Update call to mips_prepare_builtin_arg.
6993         (mips_expand_builtin_movtf): Likewise.  Use mips_expand_fp_comparison.
6994         (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
6995
6996 2011-03-27  Ira Rosen  <ira.rosen@linaro.org>
6997
6998         * config/arm/arm.c (arm_autovectorize_vector_sizes): New
6999         function.
7000         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
7001
7002 2011-03-26  Eric Botcazou  <ebotcazou@adacore.com>
7003
7004         * basic-block.h (fixup_abnormal_edges): Adjust prototype.
7005         * reload1.c (reload): Adjust call to fixup_abnormal_edges.  Rediscover
7006         basic blocks and call commit_edge_insertions directly.
7007         (fixup_abnormal_edges): Move from here to...
7008         * cfgrtl.c (fixup_abnormal_edges): ...here.  Only insert instructions
7009         on the edges and return whether some have actually been inserted.
7010         * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
7011         compensation code.
7012
7013 2011-03-26  Andrey Belevantsev  <abel@ispras.ru>
7014
7015         PR rtl-optimization/48144
7016         * sel-sched-ir.c (merge_history_vect): Factor out from ...
7017         (merge_expr_data): ... here.
7018         (av_set_intersect): Rename to av_set_code_motion_filter.
7019         Update all callers.  Call merge_history_vect when an expression
7020         is found in both sets.
7021         * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
7022
7023 2011-03-26  Alan Modra  <amodra@gmail.com>
7024
7025         * config/rs6000/predicates.md (word_offset_memref_op): Handle
7026         cmodel medium addresses.
7027         * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
7028         64-bit gpr loads and stores.
7029         (rs6000_secondary_reload_ppc64): New function.
7030         * config/rs6000/rs6000-protos.h: Declare it.
7031         * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
7032
7033 2011-03-26  Alan Modra  <amodra@gmail.com>
7034
7035         PR target/47487
7036         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
7037         GNU Go in traceback table.
7038
7039 2011-03-25  Richard Henderson  <rth@redhat.com>
7040
7041         * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
7042         if there are exactly 6 operands.
7043         (set_storage_via_setmem): Similarly.
7044
7045 2011-03-25  Kai Tietz  <ktietz@redhat.com>
7046
7047         * collect2.c (write_c_file_stat): Handle backslash
7048         as right-hand directory separator.
7049         (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
7050         checking just for slash.
7051         * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
7052         instead of checking for trailing slash.
7053         * gcc.c (record_temp_file): Use filename_cmp instead
7054         of strcmp.
7055         (do_spec_1): Likewise.
7056         (replace_outfile_spec_function): Likewise.
7057         (is_directory): Use filename_ncmp instead of strncmp.
7058         (print_multilib_info): Likewise.
7059         * gcov.c (find_source): Use filename_cmp instead
7060         instead of strcmp.
7061         (make_gcov_file_name): Fix order of slash/backslash
7062         checks.
7063         * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
7064         (add_standard_paths): Likewise.
7065         * mips-tfile.c (saber_stop): Handle backslash.
7066         * prefix.c (update_path): Use filename_ncmp instead of
7067         strncmp.
7068         * profile.c (output_location): Use filename_cmp instead
7069         of strcmp.
7070         * read-md.c (handle_toplevel_file): Handle backslash.
7071         * tlink.c (frob_extension):  Likewise.
7072         * tree-cfg.c (same_line_p): Use filename_cmp instead of
7073         strcmp.
7074         * tree-dump.c (dequeue_and_dump): Handle backslash.
7075         * tree.c (get_file_function_name): Likewise.
7076         * gengtype.c (read_input_list): Likewise.
7077         (get_file_realbasename): Likewise.
7078         (get_output_file_with_visibility): Use filename_cmp
7079         instead of strcmp.
7080
7081 2011-03-25  Richard Sandiford  <richard.sandiford@linaro.org>
7082
7083         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
7084         case to VFPv1.
7085
7086 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
7087
7088         * fold-const.c (expr_location_or): New function.
7089         (fold_truth_not_expr): Call it.
7090
7091 2011-03-25  Jeff Law  <law@redhat.com>
7092
7093         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
7094         va_end.
7095         * c-family/c-common.c (def_fn_type): Likewise.
7096         * ada/gcc-interface/utils.c (def_fn_type): Likewise.
7097         * emit-rtl.c (gen_rtvec): Likewise.
7098         * lto/lto-lang.c (def_fn_type): Likewise.
7099
7100 2011-03-25  Richard Guenther  <rguenther@suse.de>
7101
7102         * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
7103         also generate copies.
7104         (fini_copy_prop): Handle constant values properly.
7105
7106 2011-03-25  Jakub Jelinek  <jakub@redhat.com>
7107
7108         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
7109         mode size instead of bitsize with DWARF2_ADDR_SIZE.
7110         (hash_loc_operands, compare_loc_operands): Handle
7111         DW_OP_GNU_entry_value.
7112
7113 2011-03-25  Kai Tietz  <ktietz@redhat.com>
7114
7115         * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
7116         (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
7117         * config/i386/i386.c (ix86_conditional_register_usage): Adjust
7118         comment and use macro TARGET_64BIT_MS_ABI instead.
7119         (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
7120         and change default behavior for 32-bit MS_ABI.
7121         (ix86_reg_parm_stack_space): Check additionally for bit-ness.
7122         (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
7123         32-bit, too.
7124         (ix86_cfun_abi): Likewise.
7125         (ix86_maybe_switch_abi): Adjust comment.
7126         (init_cumulative_args): Check for bit-ness in MS_ABI case.
7127         (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
7128         instead of checking for SYSV_ABI.
7129         (ix86_nsaved_sseregs): Likewise.
7130         (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
7131         to 16 bytes.
7132         (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
7133         * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
7134         (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
7135         (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
7136         * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
7137
7138 2011-03-25  Richard Guenther  <rguenther@suse.de>
7139
7140         * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
7141         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
7142         (verify_gimple): Remove.
7143         * tree-cfg.c (verify_gimple_call): Merge verification
7144         from verify_stmts.
7145         (verify_gimple_phi): Merge verification from verify_stmts.
7146         (verify_gimple_label): New function.
7147         (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
7148         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
7149         (verify_stmt): Merge into verify_gimple_in_cfg and callees.
7150         (verify_stmts): Rename to verify_gimple_in_cfg.
7151         (verify_gimple_in_cfg): New function.
7152         * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
7153         * tree-ssa.c (verify_ssa): Likewise.
7154         * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
7155
7156 2011-03-25  Richard Guenther  <rguenther@suse.de>
7157
7158         * passes.c (init_optimization_passes): Add FRE pass after
7159         early SRA.
7160
7161 2011-03-25  Bernd Schmidt  <bernds@codesourcery.com>
7162             Andrew Stubbs  <ams@codesourcery.com>
7163
7164         * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
7165         for Cortex-A8.
7166         (arm_movdi_vfp_cortexa8): New pattern.
7167         * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
7168         iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
7169         instructions when tuning for Cortex-A8.  Set attribute "arch".
7170         * config/arm/arm.md: Move include arm-tune.md up a bit.
7171         (define_attr "arch"): Add "onlya8" and "nota8" values.
7172         (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
7173
7174 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
7175
7176         PR bootstrap/48282
7177         Revert:
7178         2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
7179
7180         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
7181         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
7182         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
7183         * passes.c (init_optimization_passes): Move
7184         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
7185
7186 2011-03-25  Kai Tietz  <ktietz@redhat.com>
7187
7188         * c-typeck.c (comptypes_internal): Replace target
7189         hook call of comp_type_attributes by version in tree.c file.
7190         * gimple.c (gimple_types_compatible_p_1): Likewise.
7191         * tree-ssa.c (useless_type_conversion_p): Likewise.
7192         * tree.c (build_type_attribute_qual_variant): Likewise.
7193         (attribute_value_equal): New static helper function.
7194         (comp_type_attributes): New function.
7195         (merge_attributes): Use attribute_value_equal for comparison.
7196         (attribute_list_contained): Likewise.
7197         * tree.h (comp_type_attributes): New prototype.
7198
7199 2011-03-25  Richard Guenther  <rguenther@suse.de>
7200
7201         * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
7202         of complex types at -O0.
7203         (verify_gimple_assign_binary): Likewise.
7204         (verify_gimple_assign_ternary): Likewise.
7205
7206 2011-03-24  Mark Wielaard  <mjw@redhat.com>
7207
7208         * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
7209         (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
7210
7211 2011-03-24  Mark Wielaard  <mjw@redhat.com>
7212
7213         PR debug/48041
7214         * dwarf2out.c (output_abbrev_section): Only write table when
7215         abbrev_die_table_in_use > 1.
7216
7217 2011-02-24  Richard Henderson  <rth@redhat.com>
7218
7219         * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
7220         (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
7221         (alpha_expand_unaligned_load_words): Use extql.
7222         (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
7223         (emit_insxl): Handle all modes for consistency.
7224
7225 2011-02-24  Richard Henderson  <rth@redhat.com>
7226
7227         * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
7228         (alpha_expand_unaligned_load): Likewise.
7229         (alpha_expand_unaligned_store): Likewise.
7230         (alpha_expand_unaligned_load_words): Likewise.
7231         (alpha_expand_unaligned_store_words): Likewise.
7232         (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
7233         (alpha_split_lock_test_and_set_12): Likewise.
7234         (print_operand, alpha_fold_builtin_extxx): Likewise.
7235         (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
7236         * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
7237         (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
7238         (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
7239         (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
7240         (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
7241         (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
7242         (unaligned_storeqi_be, unaligned_storehi_be): Remove.
7243         (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
7244         (extwl, extll, extql): Similarly.
7245         (inswh, inslh, insqh): Similarly.
7246         (mskbl, mskwl, mskll, mskql): Similarly.
7247         (mskwh, msklh, mskqh): Similarly.
7248
7249 2011-02-24  Richard Henderson  <rth@redhat.com>
7250
7251         * config/alpha/alpha.md (attribute isa): Add er, ner.
7252         (attribute enabled): Handle them.
7253         (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
7254
7255 2011-02-24  Richard Henderson  <rth@redhat.com>
7256
7257         * config/alpha/alpha.md (attribute isa): Add vms.
7258         (attribute enabled): Handle it.
7259         (*movsf): Merge *movsf_{nofix,fix,nofp}.
7260         (*movdf): Merge *movdf_{nofix,fix,nofp}.
7261         (*movtf): Rename from *movtf_internal for consistency.
7262         (*movsi): Merge with *movsi_nt_vms.
7263         (*movhi): Merge *movhi_nobwx, *movhi_bwx.
7264         (*movqi): Merge *movqi_nobwx, *movqi_bwx.
7265         (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
7266         * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
7267
7268 2011-02-24  Richard Henderson  <rth@redhat.com>
7269
7270         * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
7271         (extendqisi2, extendhisi2): Likewise.
7272         (extendqidi2): Simplify BWX/non-BWX expansions.
7273         (extendhidi2): Similarly.
7274
7275 2011-02-24  Richard Henderson  <rth@redhat.com>
7276
7277         * config/alpha/alpha.md (attribute isa): New.
7278         (attribute enabled): New.
7279         (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
7280         (zero_extendqisi2, zero_extendqidi2): Similarly.
7281         (zero_extendhisi2, zero_extendhidi2): Similarly.
7282         * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
7283
7284 2011-02-24  Richard Henderson  <rth@redhat.com>
7285
7286         * config/alpha/predicates.md (input_operand): Revert last change;
7287         update comment to mention 32-bit VMS rather than Windows.
7288
7289 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
7290
7291         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
7292         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
7293         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
7294         * passes.c (init_optimization_passes): Move
7295         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
7296
7297 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
7298
7299         * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
7300
7301 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
7302
7303         * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
7304         correctly.
7305
7306 2011-03-24  Jakub Jelinek  <jakub@redhat.com>
7307
7308         PR debug/48204
7309         * simplify-rtx.c (simplify_const_unary_operation): Call
7310         real_convert when changing mode class with FLOAT_EXTEND.
7311
7312 2011-03-24  Nick Clifton  <nickc@redhat.com>
7313
7314         * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
7315         (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
7316         * config/rx/rx.c (rx_option_override): Set align_jumps,
7317         align_loops and align_labels if not set by the user.
7318         (rx_align_for_label): New function.
7319         (rx_max_skip_for_label): New function.
7320         (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
7321         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
7322         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
7323         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
7324         * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
7325
7326 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
7327
7328         PR rtl-optimization/48263
7329         * optabs.c (expand_binop_directly): Reinstate convert_modes code
7330         and original commutative_p handling.  Use maybe_gen_insn.
7331
7332 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7333
7334         * reload.c (find_reloads_subreg_address): Add address_reloaded
7335         parameter and return true there if the full address has been
7336         reloaded.
7337         (find_reloads_toplev): Pass address_reloaded flag.
7338         (find_reloads_address_1): Don't use address_reloaded parameter.
7339
7340 2011-03-24  Jeff Law  <law@redhat.com>
7341
7342         * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
7343         unused variable "ann".
7344         (remove_unused_locals): Likewise.
7345
7346         * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
7347         statement.
7348
7349         * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
7350         after it is freed.
7351
7352 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7353
7354         * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
7355         for invalid symbolic addresses.
7356         (s390_secondary_reload): Don't use s390_check_symref_alignment for
7357         larl operands.
7358
7359 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
7360
7361         * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
7362         the argument in calls to fold_truth_not_expr.
7363
7364 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
7365
7366         * tree.c (record_node_allocation_statistics): New function.
7367         (make_node_stat, copy_node_stat, build_string): Call it.
7368         (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
7369         (build1_stat, build_omp_clause): Likewise.
7370
7371 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
7372
7373         * builtins.c (expand_movstr): Fix endp == 1 adjustment after
7374         last commit.
7375
7376 2011-03-24  Richard Guenther  <rguenther@suse.de>
7377
7378         PR tree-optimization/48271
7379         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
7380         blocks that still exist.
7381
7382 2011-03-24  Richard Guenther  <rguenther@suse.de>
7383
7384         PR tree-optimization/48270
7385         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
7386         not free datarefs before ddrs.
7387
7388 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
7389
7390         * tree-sra.c (build_ref_for_offset): Strip useless type conversions
7391         from the address built for a reference with variable offset.
7392
7393 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
7394
7395         PR target/48237
7396         * config/i386/i386.md (*movdf_internal_rex64): Do not split
7397         alternatives that can be handled with movq or movabsq insn.
7398         (*movdf_internal): Disable for !TARGET_64BIT.
7399         (*movdf_internal_nointeger): Ditto.
7400         * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
7401
7402 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
7403
7404         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
7405         (FUNCTION_ARG_ADVANCE): Likewise.
7406         * tm.texi.in: Change references to them to hook references.
7407         * tm.texi: Regenerate.
7408         * targhooks.c (default_function_arg): Eliminate check for target macro.
7409         (default_function_incoming_arg): Likewise.
7410         (default_function_arg_advance): Likewise.
7411         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
7412         (function_arg_advance): Likewise.
7413         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
7414
7415 2011-03-24  Richard Guenther  <rguenther@suse.de>
7416
7417         PR middle-end/48269
7418         * tree-object-size.c (addr_object_size): Do not double-account
7419         for MEM_REF offsets.
7420
7421 2011-03-24  Diego Novillo  <dnovillo@google.com>
7422
7423         * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
7424         * lto-streamer-in.c (input_string_internal): Add clarifying comments.
7425         (lto_input_data_block): Move from lto-opts.c.  Make extern.
7426         Update all users.
7427         (lto_input_string): Rename from input_string.  Make extern.
7428         Update all users.
7429         * lto-streamer-out.c (lto_output_string_with_length): Rename from
7430         output_string_with_length.
7431         Output 0 to indicate a non-NULL string.  Update all callers to
7432         not emit 0.
7433         (lto_output_string): Rename from output_string.  Make extern.
7434         Update all users.
7435         (lto_output_decl_state_streams): Make extern.
7436         (lto_output_decl_state_refs): Make extern.
7437         * lto-streamer.h (lto_input_string): Declare.
7438         (lto_input_data_block): Declare.
7439         (lto_output_string): Declare.
7440         (lto_output_string_with_length): Declare.
7441         (lto_output_decl_state_streams): Declare.
7442         (lto_output_decl_state_refs): Declare.
7443
7444 2011-03-24  Richard Guenther  <rguenther@suse.de>
7445
7446         PR tree-optimization/46562
7447         * tree.c (build_invariant_address): New function.
7448         * tree.h (build_invariant_address): Declare.
7449         * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
7450         a renamed function moved ...
7451         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
7452         Take valueization callback parameter.
7453         * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
7454         * gimple-fold.h: New file.
7455         * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
7456         (ccp_fold, fold_const_aggregate_ref,
7457         fold_ctor_reference, fold_nonarray_ctor_reference,
7458         fold_array_ctor_reference, fold_string_cst_ctor_reference,
7459         get_base_constructor): Move ...
7460         * gimple-fold.c: ... here.
7461         (gimple_fold_stmt_to_constant_1): New function
7462         split out from ccp_fold.  Take a valueization callback parameter.
7463         Valueize all operands.
7464         (gimple_fold_stmt_to_constant): New wrapper function.
7465         (fold_const_aggregate_ref_1): New function split out from
7466         fold_const_aggregate_ref.  Take a valueization callback parameter.
7467         (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
7468         * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
7469         invariant POINTER_PLUS_EXPRs to invariant form.
7470         (vn_valueize): New function.
7471         (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
7472         * tree-vrp.c (vrp_valueize): New function.
7473         (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
7474         to fold statements to constants.
7475         * tree-ssa-pre.c (eliminate): Properly guard propagation of
7476         function declarations.
7477         * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
7478         tree-ssa-ccp.o): Add gimple-fold.h dependencies.
7479
7480 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
7481
7482         * config/h8300/predicates.md (jump_address_operand): Fix register
7483         mode check.
7484
7485 2011-03-24  Ira Rosen  <ira.rosen@linaro.org>
7486
7487         * doc/invoke.texi (max-stores-to-sink): Document.
7488         * params.h (MAX_STORES_TO_SINK): Define.
7489         * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
7490         if either vectorization or if-conversion is disabled.
7491         * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
7492         tree-vect-data-refs.c vect_equal_offsets.
7493         (dr_equal_offsets_p): New function.
7494         (find_data_references_in_bb): Remove static.
7495         * tree-data-ref.h (find_data_references_in_bb): Declare.
7496         (dr_equal_offsets_p): Likewise.
7497         * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
7498         (vect_drs_dependent_in_basic_block): Update calls to
7499         vect_equal_offsets.
7500         (vect_check_interleaving): Likewise.
7501         * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
7502         (cond_if_else_store_replacement): Rename to...
7503         (cond_if_else_store_replacement_1): ... this.  Change arguments and
7504         documentation.
7505         (cond_if_else_store_replacement): New function.
7506         * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
7507         * params.def (PARAM_MAX_STORES_TO_SINK): Define.
7508
7509 2011-03-23  Chung-Lin Tang  <cltang@codesourcery.com>
7510
7511         PR target/46934
7512         * config/arm/arm.md (casesi): Use the gen_int_mode() function
7513         to subtract lower bound instead of GEN_INT().
7514
7515 2011-03-23  Jonathan Wakely  <jwakely.gcc@gmail.com>
7516
7517         PR other/48179
7518         PR other/48221
7519         PR other/48234
7520         * doc/extend.texi (Alignment): Move section to match order in TOC.
7521         * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
7522         (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
7523
7524 2011-03-23  Jeff Law  <law@redhat.com>
7525
7526         * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
7527         before removing the edge.
7528
7529         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
7530         it may have been freed by redirect_branch_edge or
7531         redirect_edge_succ_nodup.
7532
7533 2011-03-23  Richard Guenther  <rguenther@suse.de>
7534
7535         * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
7536         (check_va_list_escapes): Likewise.
7537         (check_all_va_list_escapes): Likewise.
7538
7539 2011-03-23  Richard Guenther  <rguenther@suse.de>
7540
7541         * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
7542         (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
7543         (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
7544         (alias.o): Likewise.
7545         (ipa-type-escape.o): Remove.
7546         (ipa-struct-reorg.o): Likewise.
7547         (GTFILES): Remove ipa-struct-reorg.c.
7548         * alias.c: Do not include ipa-type-escape.h.
7549         * tree-ssa-alias.c: Likewise.
7550         * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
7551         * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
7552         * passes.c (init_optimization_passes): Remove ipa-struct-reorg
7553         and ipa-type-escape passes.
7554         * tree-pass.h (pass_ipa_type_escape): Remove.
7555         (pass_ipa_struct_reorg): Likewise.
7556         * ipa-struct-reorg.h: Remove.
7557         * ipa-struct-reorg.c: Likewise.
7558         * ipa-type-escape.h: Likewise.
7559         * ipa-type-escape.c: Likewise.
7560         * doc/invoke.texi (-fipa-struct-reorg): Remove.
7561         (--param struct-reorg-cold-struct-ratio): Likewise.
7562         * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
7563         * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
7564         * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
7565
7566 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7567
7568         * config/s390/2084.md: Enable all insn reservations also for z9_ec
7569         cpu attribute value.
7570         * config/s390/s390-opts.h (enum s390_arch_option): Remove.
7571         (enum processor_type): Add PROCESSOR_2094_Z9_EC.
7572         * config/s390/s390.c (processor_flags_table): New constant array.
7573         (s390_handle_arch_option): Remove.
7574         (s390_handle_option): Remove s390_handle_arch_option invocations
7575         and OPT_mwarn_framesize_ handling.
7576         (s390_option_override): Remove s390_handle_arch_option invocation.
7577         (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
7578         warnings.
7579         * config/s390/s390.md (cpu attribute): Add z9_ec value.
7580         * config/s390/s390.opt (s390_tune, s390_arch)
7581         (march=): Replace s390_arch_option enum and values with
7582         processor_type.  Set variable name to s390_arch.  Set
7583         initialization value.
7584         (mtune=): Replace s390_arch_option with processor_type.  Set
7585         variable name to s390_tune.  Set initialization value.
7586
7587 2011-03-23  Julian Brown  <julian@codesourcery.com>
7588
7589         * expr.c (expand_expr_real_1): Only use BLKmode for volatile
7590         accesses which are not naturally aligned.
7591
7592 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
7593
7594         PR target/47553
7595         * config/arm/predicates.md (neon_lane_number): Accept 0..15.
7596
7597 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
7598
7599         * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
7600         parameter from "int" to "enum insn_code".
7601         (expand_operand_type): New enum.
7602         (expand_operand): New structure.
7603         (create_expand_operand): New function.
7604         (create_fixed_operand, create_output_operand): Likewise
7605         (create_input_operand, create_convert_operand_to): Likewise.
7606         (create_convert_operand_from, create_address_operand): Likewise.
7607         (create_integer_operand): Likewise.
7608         (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
7609         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
7610         (expand_insn, expand_jump_insn): Likewise.
7611         * builtins.c (expand_builtin_prefetch): Use the new interfaces.
7612         (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
7613         (expand_movstr, expand_builtin___clear_cache): Likewise.
7614         (expand_builtin_lock_release): Likewise.
7615         * explow.c (allocate_dynamic_stack_space): Likewise.
7616         (probe_stack_range): Likewise.  Allow check_stack to FAIL,
7617         and use the default handling in that case.
7618         * expmed.c (check_predicate_volatile_ok): Delete.
7619         (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
7620         (emit_cstore): Likewise.
7621         * expr.c (emit_block_move_via_movmem): Likewise.
7622         (set_storage_via_setmem, expand_assignment): Likewise.
7623         (emit_storent_insn, try_casesi): Likewise.
7624         (emit_single_push_insn): Likewise.  Allow the expansion to fail.
7625         * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
7626         (expand_vec_shift_expr, expand_binop_directly): Likewise.
7627         (expand_twoval_unop, expand_twoval_binop): Likewise.
7628         (expand_unop_direct, emit_indirect_jump): Likewise.
7629         (emit_conditional_move, vector_compare_rtx): Likewise.
7630         (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
7631         (expand_sync_operation, expand_sync_fetch_operation): Likewise.
7632         (expand_sync_lock_test_and_set): Likewise.
7633         (maybe_emit_unop_insn): Likewise.  Change icode to an insn_code.
7634         (emit_unop_insn): Likewise.
7635         (expand_copysign_absneg): Change icode to an insn_code.
7636         (create_convert_operand_from_type): New function.
7637         (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
7638         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
7639         (expand_insn, expand_jump_insn): Likewise.
7640         * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
7641         than const_int_operand for operand 2.
7642
7643 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7644
7645         * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
7646         if possible.
7647
7648 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
7649
7650         * emit-rtl.c (emit_pattern_before_noloc): New function.
7651         (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
7652         (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
7653         (emit_pattern_after_noloc): New function.
7654         (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
7655         (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
7656
7657 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
7658
7659         * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
7660         (__ffsDI2): Likewise.
7661
7662 2011-03-22  Richard Henderson  <rth@redhat.com>
7663
7664         * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
7665         of !TARGET_ABI_OPEN_VMS.
7666         (alpha_trampoline_init, alpha_start_function): Likewise.
7667         (alpha_expand_epilogue, alpha_file_start): Likewise.
7668         * config/alpha/alpha.md (divsi3, modsi3): Likewise.
7669         (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
7670         (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
7671         (*divmodsi_internal, *divmoddi_internal_er): Likewise.
7672         (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
7673
7674 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
7675
7676         * config/s390/s390-opts.h: New.
7677         * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
7678         s390_arch_flags, s390_warn_framesize, s390_stack_size,
7679         s390_stack_guard): Remove.
7680         (s390_handle_arch_option): Return void.  Take enum
7681         s390_arch_option value instead of string and searching array.
7682         (s390_handle_option): Don't assert that global structures are in
7683         use.  Access variables via opts pointer.  Use error_at.  Don't use
7684         sscanf for -mstack-guard= or -mstack-size=.  Update call to
7685         s390_handle_arch_option.
7686         (s390_option_override): Update call to s390_handle_arch_option.
7687         (s390_emit_prologue): Use %d format for s390_stack_size in
7688         diagnostic.  Use %wd for HOST_WIDE_INT.
7689         * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
7690         (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
7691         * config/s390/s390.opt (config/s390/s390-opts.h): New
7692         HeaderInclude entry.
7693         (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
7694         s390_arch_flags, s390_warn_framesize): New Variable entries.
7695         (s390_arch_option): New Enum and EnumValue entries.
7696         (march=): Use Enum instead of Var.
7697         (mstack-guard=, mstack-size=): Use UInteger and Var.
7698         (mtune=): Use Enum.
7699
7700 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
7701
7702         * config/score/score.c (score_handle_option): Don't assert that
7703         global structures are in use.  Access target_flags via opts
7704         pointer.  Use value of -march= option to determine target_flags
7705         settings.
7706         * config/score/score.opt (march=): Use Enum.
7707         (score_arch): New Enum and EnumValue entries.
7708
7709 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
7710
7711         * config/mep/mep.c (option_mtiny_specified): Remove.
7712         (mep_option_override): Move register handling for -mivc2 from
7713         mep_handle_option.  Use global_options_set.x_mep_tiny_cutoff
7714         instead of option_mtiny_specified.
7715         (mep_handle_option): Access target_flags via opts pointer.  Don't
7716         assert that global structures are in use.  Defer part of -mivc2
7717         handling and move it to mep_option_override.
7718         * config/mep/mep.opt (IVC2): New Mask entry.
7719         (mivc2): Use Var and Defer instead of Mask.
7720
7721 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
7722
7723         * config/v850/v850-opts.h: New.
7724         * config/v850/v850.c (small_memory): Replace with
7725         small_memory_physical_max array.  Make that array static const.
7726         (v850_handle_memory_option): Take integer value of argument.  Take
7727         gcc_options pointer, option text and location.  Return void.
7728         Update for changes to small memory structures.
7729         (v850_handle_option): Access target_flags via opts pointer.  Don't
7730         assert that global structures are in use.  Update calls to
7731         v850_handle_memory_option.
7732         (v850_encode_data_area): Update references to small memory settings.
7733         * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
7734         (enum small_memory_type): Move to v850-opts.h.
7735         * config/v850/v850.opt (config/v850/v850-opts.h): New
7736         HeaderInclude entry.
7737         (small_memory_max): New Variable entry.
7738         (msda): Replace by pair of options msda= and msda-.  Use UInteger.
7739         (mtda, mzda): Likewise.
7740
7741 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
7742
7743         * config/sh/sh.c (sh_handle_option): Access target_flags via opts
7744         pointer.  Don't assert that global structures are in use.
7745
7746 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
7747
7748         * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
7749         via opts pointer.  Don't assert that global structures are in use.
7750
7751 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
7752
7753         * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
7754         (munix=93): Use Var.
7755         * config/pa/pa-hpux1010.opt (munix=95): Use Var.
7756         * config/pa/pa-hpux1111.opt (munix=98): Use Var.
7757         * config/pa/pa-opts.h: New.
7758         * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
7759         (pa_handle_option): Don't assert that global structures are in
7760         use.  Access target_flags via opts pointer.  Don't handle
7761         OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
7762         OPT_munix_98 here.
7763         (pa_option_override): Handle deferred OPT_mfixed_range_.
7764
7765 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
7766
7767         * config/mn10300/mn10300-opts.h: New.
7768         * config/mn10300/mn10300.c (mn10300_processor,
7769         mn10300_tune_string): Remove.
7770         (mn10300_handle_option): Don't assert that global structures are
7771         in use.  Access mn10300_processor via opts pointer.  Don't handle
7772         OPT_mtune_ here.
7773         * config/mn10300/mn10300.h (enum processor_type): Move to
7774         mn10300-opts.h.
7775         (mn10300_processor): Remove.
7776         * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
7777         HeaderInclude entry.
7778         (mn10300_processor): New Variable entry.
7779         (mtune=): Use Var.
7780
7781 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
7782
7783         * config/microblaze/microblaze.c: Don't include opts.h.
7784         (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
7785         * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
7786         (mno-clearbss): Use Var and Warn.
7787
7788 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
7789
7790         * config/m32r/m32r-opts.h: New.
7791         * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
7792         (m32r_handle_option): Don't assert that global structures are in
7793         use.  Access target_flags and m32r_cache_flush_func via opts
7794         pointer.  Don't handle OPT_mmodel_, OPT_msdata_ or
7795         OPT_mno_flush_trap here.
7796         * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
7797         include of m32r-opts.h.
7798         * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
7799         HeaderInclude entry.
7800         (m32r_model_selected, m32r_sdata_selected): New Variable entries.
7801         (mmodel=): Use Enum and Var.
7802         (m32r_model): New Enum and EnumValue entries.
7803         (mno-flush-trap): Use Var.
7804         (msdata=): Use Enum and Var.
7805         (m32r_sdata): New Enum and EnumValue entries.
7806
7807 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
7808
7809         * config/m32c/m32c.c: Don't include opts.h.
7810         (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
7811         m32c_handle_option): Remove.
7812         (m32c_option_override): Check global_options_set.x_target_memregs
7813         instead of target_memregs_set.
7814         * config/m32c/m32c.h (target_memregs): Remove.
7815         * config/m32c/m32c.opt (memregs=): Use UInteger with integer
7816         variable.
7817
7818 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
7819
7820         * config/iq2000/iq2000-opts.h: New.
7821         * config/iq2000/iq2000.c: Don't include opts.h.
7822         (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
7823         * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
7824         * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
7825         HeaderInclude entry.
7826         (iq2000_tune): New Variable entry.
7827         (march=): Add comment.  Use Enum.
7828         (iq2000_arch): New Enum and EnumValue entries.
7829         (mcpu=): Use Enum and Var.
7830         (iq2000_tune): New Enum and EnumValue entries.
7831
7832 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
7833
7834         * config/ia64/ia64-opts.h: New.
7835         * config/ia64/ia64.c (ia64_tune): Remove.
7836         (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
7837         here.  Use error_at.
7838         (ia64_option_override): Handle deferred OPT_mfixed_range_.
7839         * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
7840         * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
7841         HeaderInclude entry.
7842         (ia64_tune): New Variable entry.
7843         (mfixed-range=): Use Defer and Var.
7844         (mtune=): Use Enum and Var.
7845         (ia64_tune): New Enum and EnumValue entries.
7846
7847 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
7848
7849         * config/frv/frv-opts.h: New.
7850         * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
7851         frv-opts.h.
7852         (frv_cpu_type): Remove.
7853         * config/frv/frv.c: Don't include opts.h.
7854         (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
7855         * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
7856         (frv_cpu_type): New Variable entry.
7857         (frv_cpu): New Enum and EnumValue entries.
7858
7859 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
7860
7861         * config/cris/cris.c (cris_handle_option): Access target_flags via
7862         opts pointer.  Don't assert that global structures are in use.
7863         Don't call CRIS_SUBTARGET_HANDLE_OPTION.
7864         * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
7865
7866 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
7867
7868         * config/bfin/bfin-opts.h: New.
7869         * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
7870         bfin_si_revision, bfin_workarounds): Remove.
7871         (bfin_cpus): Make static const.
7872         (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
7873         not bfin_lib_id_given.
7874         (bfin_handle_option): Don't set bfin_lib_id_given.  Access
7875         bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
7876         pointer. Use error_at.  Don't assert that global structures are in use.
7877         * config/bfin/bfin.h: Include bfin-opts.h.
7878         (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
7879         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
7880         * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
7881         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
7882         entries.
7883
7884 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
7885
7886         * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
7887         * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
7888         or -msoft-float here.
7889         * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
7890         -msoft-float and -mhard-float.
7891         (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
7892         * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
7893         msoft-float.
7894         * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
7895         -msoft-float.
7896         (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
7897         * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
7898         not mhard-float.
7899         (LIBGCC_SPEC): Don't handle -msoft-float.
7900         * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
7901         -mhard-float.
7902         * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
7903         msoft-float.
7904         * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
7905         -mfloat-abi=*, not -msoft-float and -mhard-float.
7906         * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
7907         -msoft-float.
7908         * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
7909         Use mfloat-abi=hard and mfloat-abi=soft in comments, not
7910         mhard-float and msoft-float.
7911         * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
7912         mfloat-abi=soft in comments, not mhard-float and msoft-float.
7913         * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
7914         mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
7915         mhard-float.
7916         * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
7917         mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
7918         msoft-float.
7919         * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
7920         not mhard-float.
7921         * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
7922         not msoft-float.
7923
7924 2011-03-22  Richard Henderson  <rth@redhat.com>
7925
7926         * config/alpha/alpha.c (alpha_expand_prologue): Don't test
7927         TARGET_ABI_WINDOWS_NT.
7928         (alpha_output_function_end_prologue): Likewise.
7929         * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
7930         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
7931         * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
7932         (trap, *movsi_nt_vms): Likewise.
7933         (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
7934         (*tablejump_osf_nt_internal): Remove.
7935         * config/alpha/predicates.md (input_operand): Only test Pmode.
7936
7937 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
7938
7939         * config/alpha/alpha.c (alpha_handle_option): Access target_flags
7940         via opts pointer.  Use error_at.  Don't assert that global
7941         structures are in use.
7942
7943 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
7944
7945         * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
7946         (ix86_handle_option): Access ix86_isa_flags and
7947         ix86_isa_flags_explicit via opts pointer.  Don't assert that
7948         global structures are in use.
7949         (ix86_function_specific_save, ix86_function_specific_restore):
7950         Update ix86_isa_flags_explicit field name.
7951         * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
7952         (ix86_isa_flags_explicit): Rename TargetSave entry to
7953         x_ix86_isa_flags_explicit.
7954
7955 2011-03-22  Richard Henderson  <rth@redhat.com>
7956
7957         * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
7958         (alpha_option_override, direct_return): Likewise.
7959         (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
7960         (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
7961         (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
7962         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
7963         (alpha_expand_epilogue, alpha_end_function): Likewise.
7964         (alpha_init_libfuncs): Likewise.
7965         (struct machine_function): Remove unicosmk members.
7966         (print_operand) ['t']: Remove.
7967         (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
7968         unicosmk_output_module_name, unicosmk_output_common,
7969         current_section_align, unicosmk_output_text_section_asm_op,
7970         unicosmk_output_data_section_asm_op, unicosmk_init_sections,
7971         unicosmk_section_type_flags, unicosmk_unique_section,
7972         unicosmk_asm_named_section, unicosmk_insert_attributes,
7973         unicosmk_output_align, unicosmk_defer_case_vector,
7974         unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
7975         SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
7976         unicosmk_output_ssib, unicosmk_add_call_info_word,
7977         unicosmk_extern_head, unicosmk_output_default_externs,
7978         unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
7979         unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
7980         unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
7981         * config/alpha/alpha-protos.h: Update.
7982         * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
7983         * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
7984         (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
7985         (mulsi3): Don't test TARGET_ABI_UNICOSMK.
7986         (*mulsi_se, mulvsi3): Likewise.
7987         (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
7988         (*divmodsi_internal, call, call_value, realign): Likewise.
7989         (moddi3, umoddi3): Likewise; remove duplicate expander.
7990         (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
7991         (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
7992         (*movdi_nofix): Remove r/U alternative.
7993         (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
7994         * config/alpha/constraints.md ("U"): Remove.
7995         * config/alpha/predicates.md (call_operand"): Don't test
7996         TARGET_ABI_UNICOSMK.
7997
7998 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
7999
8000         * target.def (handle_option): Take gcc_options and
8001         cl_decoded_option pointers and location_t.
8002         * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
8003         * doc/tm.texi: Regenerate.
8004         * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
8005         * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
8006         * lto-opts.c (lto_reissue_options): Generate option structure for
8007         targetm.handle_option call.
8008         * opts.c (target_handle_option): Update call to
8009         targetm.handle_option.  Remove assertions about values now passed
8010         down to hook.
8011         * targhooks.c (default_target_handle_option): New.
8012         * targhooks.h (default_target_handle_option): Declare.
8013         * config/alpha/alpha.c: Include opts.h.
8014         (alpha_handle_option): Update to new hook interface.
8015         * config/arm/arm.c: Include opts.h.
8016         (arm_handle_option): Update to new hook interface.
8017         * config/arm/t-arm (arm.o): Update dependencies.
8018         * config/bfin/bfin.c: Include opts.h.
8019         (bfin_handle_option): Update to new hook interface.
8020         * config/cris/cris.c: Include opts.h.
8021         (cris_handle_option): Update to new hook interface.
8022         * config/frv/frv.c: Include opts.h.
8023         (frv_handle_option): Update to new hook interface.
8024         * config/i386/i386.c: Include opts.h.
8025         (ix86_handle_option): Update to new hook interface.
8026         (ix86_valid_target_attribute_inner_p): Generate option structure
8027         for call to ix86_handle_option.
8028         * config/i386/t-i386 (i386.o): Update dependencies.
8029         * config/ia64/ia64.c: Include opts.h.
8030         (ia64_handle_option): Update to new hook interface.
8031         * config/ia64/t-ia64 (ia64.o): Update dependencies.
8032         * config/iq2000/iq2000.c: Include opts.h.
8033         (iq2000_handle_option): Update to new hook interface.
8034         * config/m32c/m32c.c: Include opts.h.
8035         (m32c_handle_option): Update to new hook interface.
8036         * config/m32r/m32r.c: Include opts.h.
8037         (m32r_handle_option): Update to new hook interface.
8038         * config/m68k/m68k.c: Include opts.h.
8039         (m68k_handle_option): Update to new hook interface.
8040         * config/mep/mep.c: Include opts.h.
8041         (mep_handle_option): Update to new hook interface.
8042         * config/microblaze/microblaze.c: Include opts.h.
8043         (microblaze_handle_option): Update to new hook interface.
8044         * config/mips/mips.c: Include opts.h.
8045         (mips_handle_option): Update to new hook interface.
8046         * config/mn10300/mn10300.c: Include opts.h.
8047         (mn10300_handle_option): Update to new hook interface.
8048         * config/pa/pa.c: Include opts.h.
8049         (pa_handle_option): Update to new hook interface.
8050         * config/pdp11/pdp11.c: Include opts.h.
8051         (pdp11_handle_option): Update to new hook interface.
8052         * config/rs6000/rs6000.c: Include opts.h.
8053         (rs6000_handle_option): Update to new hook interface.
8054         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
8055         * config/rx/rx.c: Include opts.h.
8056         (rx_handle_option): Update to new hook interface.
8057         * config/s390/s390.c: Include opts.h.
8058         (s390_handle_option): Update to new hook interface.
8059         * config/score/score.c: Include opts.h.
8060         (score_handle_option): Update to new hook interface.
8061         * config/sh/sh.c: Include opts.h.
8062         (sh_handle_option): Update to new hook interface.
8063         * config/sparc/sparc.c: Include opts.h.
8064         (sparc_handle_option): Update to new hook interface.
8065         * config/v850/v850.c: Include opts.h.
8066         (v850_handle_option): Update to new hook interface.
8067
8068 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8069
8070         * gcc.c (driver_unknown_option_callback): Only permit and save
8071         unknown -Wno- options.
8072         (driver_wrong_lang_callback): Save options directly instead of via
8073         driver_unknown_option_callback.
8074
8075 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
8076
8077         * combine.c (simplify_set): Try harder to find the best CC mode when
8078         simplifying a nested COMPARE on the RHS.
8079
8080 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8081
8082         * config/alpha/gnu.h: Remove.
8083         * config/arc: Remove directory.
8084         * config/arm/netbsd.h: Remove.
8085         * config/arm/t-pe: Remove.
8086         * config/crx: Remove directory.
8087         * config/i386/netbsd.h: Remove.
8088         * config/m68hc11: Remove directory.
8089         * config/m68k/uclinux-oldabi.h: Remove.
8090         * config/mcore/mcore-pe.h: Remove.
8091         * config/mcore/t-mcore-pe: Remove.
8092         * config/netbsd-aout.h: Remove.
8093         * config/rs6000/gnu.h: Remove.
8094         * config/sh/sh-symbian.h: Remove.
8095         * config/sh/symbian-base.c: Remove.
8096         * config/sh/symbian-c.c: Remove.
8097         * config/sh/symbian-cxx.c: Remove.
8098         * config/sh/symbian-post.h: Remove.
8099         * config/sh/symbian-pre.h: Remove.
8100         * config/sh/t-symbian: Remove.
8101         * config/svr3.h: Remove.
8102         * config/vax/netbsd.h: Remove.
8103         * config.build: Don't handle i[34567]86-*-pe.
8104         * config.gcc: Remove handling of deprecations for most deprecated
8105         targets.
8106         (m68k-*-uclinuxoldabi*): Add to second deprecated list.
8107         (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
8108         i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
8109         m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
8110         powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
8111         sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
8112         Remove cases.
8113         * config.host: Don't handle i[34567]86-*-pe.
8114         * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
8115         (ASM_SPEC32): Don't handle -mcall-gnu.
8116         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
8117         -mcall-gnu.
8118         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
8119         STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
8120         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
8121         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
8122         (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
8123         * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
8124         conditional on SYMBIAN.
8125         * configure.ac: Don't handle powerpc*-*-gnu*.
8126         * configure: Regenerate.
8127         * doc/extend.texi (interrupt attribute): Don't mention CRX.
8128         * doc/install-old.texi (m6811, m6812): Don't mention.
8129         * doc/install.texi (arc-*-elf*): Don't document multilib option.
8130         (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
8131         (m68k-uclinuxoldabi): Don't mention.
8132         * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
8133         Remove.
8134         (-mcall-gnu): Remove.
8135         * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
8136         families): Remove constraint documentation.
8137
8138 2011-03-22  Marius Strobl  <marius@FreeBSD.org>
8139
8140         * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
8141         (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
8142         (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
8143
8144 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
8145
8146         PR target/48226
8147         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
8148         vector when peeking at the next token for vector, don't expand the
8149         keywords.
8150
8151 2011-03-21  Georg-Johann Lay  <avr@gjlay.de>
8152
8153         * config/avr/avr-protos.h (expand_epilogue): Change prototype
8154         * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
8155         * config/avr/avr.c (init_cumulative_args)
8156         (avr_function_arg_advance): Use it.
8157         * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
8158         sibcall epilogues.
8159         (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
8160         (avr_function_ok_for_sibcall): ...this new function.
8161         (avr_lookup_function_attribute1): New static Function.
8162         (avr_naked_function_p, interrupt_function_p)
8163         (signal_function_p, avr_OS_task_function_p)
8164         (avr_OS_main_function_p): Use it.
8165         * config/avr/avr.md ("sibcall", "sibcall_value")
8166         ("sibcall_epilogue"): New expander.
8167         ("*call_insn", "*call_value_insn"): New insn.
8168         ("call_insn", "call_value_insn"): Remove
8169         ("call", "call_value", "epilogue"): Change expander to handle
8170         sibling calls.
8171
8172 2011-03-21  Nick Clifton  <nickc@redhat.com>
8173
8174         * doc/invoke.texi (Overall Options): Move closing brace to end of
8175         options list.
8176         (Optimization Options): Add missing @gol.
8177         (Directory Options): Likewise.
8178         (i386 and x86-64 Options): Likewise.
8179         (RS6000 and PowerPC Options): Likewise.
8180         (i386 and x86-64 Windows Options): Likewise.
8181         (V850 Options): Add text missing from descriptions.
8182
8183 2011-03-22  Richard Henderson  <rth@redhat.com>
8184
8185         * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
8186         (avr_incoming_return_addr_rtx): New.
8187         (emit_push_byte): New.
8188         (expand_prologue): Use it.  Remove incorrect dwarf annotation for
8189         SREG, RAMPZ, zero register.  Push frame pointer by bytes.  Add dwarf
8190         annotation for __prologue_saves__.  Fixup dwarf annotation for CFA.
8191         (emit_pop_byte): New.
8192         (expand_epilogue): Use it.  Pop frame pointer by bytes.
8193         * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
8194         (INCOMING_RETURN_ADDR_RTX): New.
8195         (INCOMING_FRAME_SP_OFFSET): New.
8196         (ARG_POINTER_CFA_OFFSET): New.
8197         * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
8198         (*pushhi, *pushsi, *pushsf, popqi): Likewise.
8199         (pophi): Remove.
8200
8201         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
8202
8203 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
8204
8205         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
8206         (FUNCTION_ARG_ADVANCE): Likewise.
8207         * tm.texi.in: Change references to them to hook references.
8208         * tm.texi: Regenerate.
8209         * targhooks.c (default_function_arg): Eliminate check for target
8210         macro.
8211         (default_function_incoming_arg): Likewise.
8212         (default_function_arg_advance): Likewise.
8213         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
8214         (function_arg_advance): Likewise.
8215         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
8216
8217 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
8218
8219         * tree.c (build_call_1): New function.
8220         (build_call_valist, build_call_array_loc, build_call_vec): Call it.
8221
8222 2011-03-22  Richard Guenther  <rguenther@suse.de>
8223
8224         PR tree-optimization/48228
8225         * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
8226         for single-arg PHIs.
8227
8228 2011-03-22  Andrey Belevantsev  <abel@ispras.ru>
8229
8230         PR rtl-optimization/48143
8231         * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
8232         (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
8233         sse2_cvtps2pd): Likewise.
8234
8235 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8236
8237         * recog.c (canonicalize_change_group): Use validate_unshare_change.
8238
8239 2011-03-22  Richard Guenther  <rguenther@suse.de>
8240
8241         * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
8242         a valid RHS.  Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
8243         * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
8244         and REALIGN_LOAD_EXPR.
8245         (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
8246         DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
8247         * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
8248         DOT_PROD_EXPR case ...
8249         (expand_expr_real_2): ... here.
8250         * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
8251         and REALIGN_LOAD_EXPR.
8252         * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
8253         * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
8254         (vect_create_epilog_for_reduction): Likewise.
8255         (vectorizable_reduction): Likewise.
8256         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
8257         * tree-vect-stmts.c (vectorizable_load): Likewise.
8258
8259 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
8260
8261         * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
8262
8263 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8264
8265         * config/s390/s390.c (s390_delegitimize_address): Fix offset
8266         handling for PLTOFF/GOTOFF.
8267
8268 2011-03-22  Nick Clifton  <nickc@redhat.com>
8269
8270         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
8271         trailing backslash from the end of the macro definition.
8272
8273 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8274
8275         * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
8276         and PLT unspecs.
8277
8278 2011-03-21  Richard Sandiford  <richard.sandiford@linaro.org>
8279
8280         * expr.h (prepare_operand): Move to...
8281         * optabs.h (prepare_operand): ...here and change the insn code
8282         parameter from "int" to "enum insn_code".
8283         (insn_operand_matches): Declare.
8284         * expr.c (init_expr_target): Use insn_operand_matches.
8285         (compress_float_constant): Likewise.
8286         * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
8287         * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
8288         (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
8289         (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
8290         Likewise.
8291         (gen_cond_trap): Likewise.
8292         (prepare_operand): Likewise.  Change icode to an insn_code.
8293         (insn_operand_matches): New function.
8294         * reload.c (find_reloads_address_1): Use insn_operand_matches.
8295         * reload1.c (gen_reload): Likewise.
8296         * targhooks.c (default_secondary_reload): Likewise.
8297
8298 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
8299
8300         * config/alpha/alpha.md (unspec): New define_c_enum.
8301         (unspecv): Ditto.
8302
8303 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
8304
8305         PR debug/48214
8306         * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
8307         between a call and its CALL_ARG_LOCATION note.
8308
8309 2011-03-21  Eric Botcazou  <ebotcazou@adacore.com>
8310
8311         * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
8312
8313 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
8314
8315         PR c/42544
8316         PR c/48197
8317         * c-common.c (shorten_compare): If primopN is first sign-extended
8318         to opN and then zero-extended to result type, set primopN to opN.
8319
8320 2011-03-21  Daniel Jacobowitz  <dan@codesourcery.com>
8321
8322         * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
8323         for barrier handlers.
8324
8325 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
8326
8327         * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
8328         UNSPEC constants to be in the unspec enumeration, and redefine
8329         all UNSPECV constants to be in the unspecv enumeration, so that
8330         dumps print which unspec/unspec_volatile this is.
8331         * config/rs6000/vector.md (UNSPEC_*): Ditto.
8332         * config/rs6000/paired.md (UNSPEC_*): Ditto.
8333         * config/rs6000/vsx.md (UNSPEC_*): Ditto.
8334         * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
8335         * config/rs6000/dfp.md (UNSPEC_*): Ditto.
8336
8337         * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
8338         UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
8339         UNSPECV_LWSYNC, since these are used as unspec_volatile.
8340         * config/rs6000/sync.md (isync, lwsync): Ditto.
8341
8342 2011-03-21  Richard Guenther  <rguenther@suse.de>
8343
8344         * params.def (lto-min-partition): Fix typo.
8345
8346 2011-03-21  Richard Guenther  <rguenther@suse.de>
8347
8348         PR c/47939
8349         * c-decl.c (grokdeclarator): Drop to the main variant only
8350         for array types.  Drop flag_gen_aux_info check.
8351
8352 2011-03-21  Richard Guenther  <rguenther@suse.de>
8353
8354         PR translation/47911
8355         * params.def (lto-partitions): Fix typo.
8356         (lto-min-partition): Fix wording.
8357
8358 2011-03-21  Andreas Tobler  <andreast@fgznet.ch>
8359
8360         * config/rs6000/t-freebsd: Remove duplication from file.
8361
8362 2011-03-21  Richard Guenther  <rguenther@suse.de>
8363
8364         PR middle-end/47661
8365         * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
8366
8367 2011-03-21  Richard Guenther  <rguenther@suse.de>
8368
8369         PR lto/48210
8370         * params.def (lto-partitions): Require at least 1 partition.
8371
8372 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8373
8374         * gthr-solaris.h: Remove.
8375         * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
8376         * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
8377         (LIB_SPEC): Likewise.
8378         * config/sol2.opt (threads): Remove.
8379         * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
8380         (sparc*-*-solaris2*): Likewise.
8381         * configure.ac (enable_threads): Enable solaris support.
8382         * configure: Regenerate.
8383         * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
8384         * doc/install.texi (Configuration, --enable-threads=lib): Remove
8385         solaris.
8386
8387 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8388
8389         * config.gcc: Obsolete *-*-solaris2.8*.
8390         * doc/install.texi (Specific, *-*-solaris2*): Document it.
8391
8392 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8393
8394         PR bootstrap/48135
8395         * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
8396         reference.  Solaris 8 perl works.
8397
8398 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8399
8400         PR bootstrap/48135
8401         * doc/install.texi (Prerequisites): Move jar etc. up.
8402         Explain support library version requirements.
8403
8404 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8405
8406         PR bootstrap/48135
8407         * doc/install.texi (Prerequisites): Move Perl to build
8408         requirements.  Always necessary on Solaris 2 with Sun ld.
8409
8410 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8411
8412         * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
8413         binutils 2.21.
8414         (Specific, i?86-*-solaris2.[89]): Likewise.
8415         (Specific, i?86-*-solaris2.10): Likewise.
8416         (Specific, mips-sgi-irix6): Likewise.
8417         (Specific, *-*-solaris2*): Remove Sun Studio download URL.
8418         Update for binutils 2.21.
8419
8420 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8421
8422         * configure.ac (gcc_cv_lto_plugin): Fix typo.
8423         Allow -fuse-linker-plugin for non-default plugin linker.
8424         * configure: Regenerate.
8425
8426 2011-03-21  Nicola Pero  <nicola.pero@meta-innovation.com>
8427
8428         PR bootstrap/48167
8429         * gengtype.c (files_rules): Added rule for cp/parser.h.
8430
8431 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
8432
8433         PR target/48213
8434         * config/s390/s390.c (s390_delegitimize_address): Don't call
8435         lowpart_subreg if orig_x has BLKmode.
8436
8437 2011-03-21  Kai Tietz  <ktietz@redhat.com>
8438
8439         PR target/12171
8440         * doc/plugins.texi: Adjust documentation for plugin register_callback.
8441         * tree.h (attribute_spec): Add new member affects_type_identity.
8442         * attribs.c (empty_attribute_table): Adjust attribute_spec
8443         initializers.
8444         * config/alpha/alpha.c: Likewise.
8445         * config/arc/arc.c: Likewise.
8446         * config/arm/arm.c: Likewise.
8447         * config/avr/avr.c: Likewise.
8448         * config/bfin/bfin.c: Likewise.
8449         * config/crx/crx.c: Likewise.
8450         * config/darwin.h: Likewise.
8451         * config/h8300/h8300.c: Likewise.
8452         * config/i386/cygming.h: Likewise.
8453         * config/i386/i386.c: Likewise.
8454         * config/ia64/ia64.c: Likewise.
8455         * config/m32c/m32c.c: Likewise.
8456         * config/m32r/m32r.c: Likewise.
8457         * config/m68hc11/m68hc11.c: Likewise.
8458         * config/m68k/m68k.c: Likewise.
8459         * config/mcore/mcore.c: Likewise.
8460         * config/mep/mep.c: Likewise.
8461         * config/microblaze/microblaze.c: Likewise.
8462         * config/mips/mips.c: Likewise.
8463         * config/rs6000/rs6000.c: Likewise.
8464         * config/rx/rx.c: Likewise.
8465         * config/sh/sh.c: Likewise.
8466         * config/sol2.h: Likewise.
8467         * config/sparc/sparc.c: Likewise.
8468         * config/spu/spu.c: Likewise.
8469         * config/stormy16/stormy16.c: Likewise.
8470         * config/v850/v850.c: Likewise.
8471
8472 2011-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
8473
8474         * simplify-rtx.c (simplify_binary_operation_1): Handle
8475         (xor (and A B) C) case when B and C are both constants.
8476
8477 2011-03-21  Mingjie Xing  <mingjie.xing@gmail.com>
8478
8479         * tree-dfa.c (add_referenced_var): Fix typo in comment.
8480
8481 2011-03-20  Eric Botcazou  <ebotcazou@adacore.com>
8482
8483         PR bootstrap/48168
8484         * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
8485
8486 2011-03-20  Jakub Jelinek  <jakub@redhat.com>
8487
8488         PR rtl-optimization/48156
8489         * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
8490         assume df and df_lr are not NULL.
8491
8492 2011-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
8493
8494         PR debug/48023
8495         * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
8496         between a call and its CALL_ARG_LOCATION note.
8497
8498 2011-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
8499
8500         PR debug/48178
8501         * config/sh/sh.c (find_barrier): Don't emit a constant pool
8502         between a call and its corresponding CALL_ARG_LOCATION note.
8503
8504 2011-03-19  Anatoly Sokolov  <aesok@post.ru>
8505
8506         * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
8507         instead of loop. Use HARD_REGISTER_NUM_P predicate.
8508         * haifa-sched.c (setup_ref_regs): Ditto.
8509         * caller-save.c (add_used_regs_1): Ditto.
8510         * dse.c (look_for_hardregs): Ditto.
8511         * df-problems.c (df_simulate_one_insn_forwards): Ditto.
8512         * sched-rgn.c (check_live_1): Ditto.
8513
8514 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
8515
8516         * c-decl.c (diagnose_mismatched_decls): Give an error for
8517         redefining a typedef with variably modified type.
8518
8519 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
8520
8521         * c-decl.c (grokfield): Don't allow typedefs for structures or
8522         unions with no tag by default.
8523         * doc/extend.texi (Unnamed Fields): Update.
8524
8525 2011-03-18  Uros Bizjak  <ubizjak@gmail.com>
8526
8527         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
8528         Rewrite using indirect functions.
8529         (lwp_slwpcb): Ditto.
8530         * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
8531         (avx_vinsertf128<mode>): Ditto.
8532
8533 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8534
8535         * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
8536         unspecs.
8537
8538 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8539
8540         * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
8541         splitting between a call and its corresponding CALL_ARG_LOCATION note.
8542
8543 2011-03-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
8544
8545         PR rtl-optimization/48170
8546         * gcse.c (hoist_code): Remove bogus asserts.
8547
8548 2011-03-18  Georg-Johann Lay  <avr@gjlay.de>
8549
8550         * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
8551         computation for prologue/epilogue.
8552
8553 2011-03-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8554
8555         * Makefile.in (check-consistency): Remove.
8556
8557 2011-03-18  Jakub Jelinek  <jakub@redhat.com>
8558
8559         PR debug/48176
8560         * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
8561         arange_table_in_use is 0, but either text_section_used or
8562         cold_text_section_used is true.  Don't call it if
8563         !info_section_emitted.
8564
8565 2011-03-18  Anatoly Sokolov  <aesok@post.ru>
8566
8567         * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
8568         FUNCTION_VALUE_REGNO_P): Remove.
8569         * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
8570         Remove.
8571         * config/avr/avr.c (avr_ret_register): Make static inline.
8572         (avr_function_value_regno_p): New function.
8573         (avr_libcall_value): Make static. Add 'func' argument.
8574         (avr_function_value): Make static. Rename 'func' argument to
8575         'fn_decl_or_type', forward it to avr_libcall_value. Call
8576         avr_ret_register function instead of RET_REGISTER macro.
8577         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
8578
8579 2011-03-18  Jason Merrill  <jason@redhat.com>
8580
8581         PR c++/23372
8582         * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
8583
8584 2011-03-18  Richard Guenther  <rguenther@suse.de>
8585
8586         * doc/install.texi (--enable-gold): Remove.
8587         (--with-plugin-ld): Document.
8588         * doc/invoke.texi (-fuse-linker-plugin): Clarify.
8589
8590 2011-03-18  Andrew Pinski  <pinskia@gmail.com>
8591
8592         PR middle-end/47790
8593         * expr.c (optimize_bitfield_assignment_op): Revamp to work
8594         again after expansion changes.
8595
8596 2011-03-18  Chung-Lin Tang  <cltang@codesourcery.com>
8597
8598         * combine.c (try_combine): Do simplification only call of
8599         subst() on i2 even when i1 is present. Update comments.
8600
8601 2011-03-18  Kaz Kojima  <kkojima@gcc.gnu.org>
8602
8603         * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
8604         and UNSPEC_PCREL_SYMOFF.
8605
8606 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8607
8608         * config/s390/s390.md: Use define_c_enum for the unspec constant
8609         definitions.
8610
8611 2011-03-18  Richard Henderson  <rth@redhat.com>
8612             Jakub Jelinek  <jakub@redhat.com>
8613
8614         PR bootstrap/48161
8615         * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
8616         instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
8617
8618 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
8619
8620         PR middle-end/47725
8621         * combine.c (cant_combine_insn_p): Don't check zero/sign
8622         extended hard registers.
8623
8624 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
8625
8626         PR middle-end/47725
8627         * combine.c (cant_combine_insn_p): Check zero/sign extended
8628         hard registers.
8629
8630 2011-03-17  Anatoly Sokolov  <aesok@post.ru>
8631
8632         * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
8633         * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
8634         * config/v850/v850.c (v850_output_addr_const_extra): Make static.
8635         Change return type to bool.
8636         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
8637
8638 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
8639
8640         PR debug/48163
8641         * var-tracking.c (prepare_call_arguments): If CALL target
8642         is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
8643         pc instead of looking it up using cselib_lookup and use
8644         Pmode for it if x has VOIDmode.
8645         * dwarf2out.c (gen_subprogram_die): If also both first and
8646         second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
8647
8648         PR debug/48163
8649         * function.c (assign_parms): For data.passed_pointer parms
8650         use MEM of data.entry_parm instead of data.entry_parm itself
8651         as DECL_INCOMING_RTL.
8652         * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
8653         also when passed and declared mode is the same, DECL_RTL
8654         is a MEM with pseudo as address and DECL_INCOMING_RTL is
8655         a MEM too.
8656
8657 2011-03-16  Jeff Law  <law@redhat.com>
8658
8659         PR rtl-optimization/37273
8660         * ira-costs.c (scan_one_insn): Detect constants living in memory and
8661         handle them like argument loads from stack slots.  Do not double
8662         count memory for memory constants and argument loads from stack slots.
8663
8664 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
8665
8666         PR debug/48160
8667         * var-tracking.c (prepare_call_arguments): Check SUBREG.
8668
8669 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
8670
8671         PR target/48171
8672         * config/i386/i386.opt: Add Save to -mavx and -mfma.
8673
8674 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
8675
8676         PR bootstrap/48153
8677         * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
8678         if dwarf_strict.
8679         (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
8680         Clear call_arg_locations and call_arg_loc_last always.
8681
8682         PR middle-end/48152
8683         * var-tracking.c (prepare_call_arguments): If argument needs to be
8684         passed by reference, adjust argtype and mode.
8685
8686 2011-03-17  Richard Guenther  <rguenther@suse.de>
8687
8688         PR middle-end/48134
8689         * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
8690         a value make sure to fold the statement.
8691
8692 2011-03-17  Chung-Lin Tang  <cltang@codesourcery.com>
8693
8694         PR target/43872
8695         * config/arm/arm.c (arm_get_frame_offsets): Adjust early
8696         return condition with !cfun->calls_alloca.
8697
8698 2011-03-17  Richard Guenther  <rguenther@suse.de>
8699
8700         PR bootstrap/48148
8701         * lto-cgraph.c (input_overwrite_node): Clear the abstract
8702         origin for decls in other ltrans units.
8703         (input_varpool_node): Likewise.
8704
8705 2011-03-17  Richard Guenther  <rguenther@suse.de>
8706
8707         PR middle-end/48165
8708         * tree-object-size.c (compute_object_offset): Properly return
8709         the offset operand of MEM_REFs as sizetype.
8710
8711 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
8712
8713         PR rtl-optimization/48141
8714         * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
8715         * dse.c: Include params.h.
8716         (active_local_stores_len): New variable.
8717         (add_wild_read, dse_step1): Clear it when setting active_local_stores
8718         to NULL.
8719         (record_store, check_mem_read_rtx): Decrease it when removing
8720         from the chain.
8721         (scan_insn): Likewise.  Increase it when adding to chain, if it
8722         reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
8723         set active_local_stores to NULL before the addition.
8724         * Makefile.in (dse.o): Depend on $(PARAMS_H).
8725
8726         PR rtl-optimization/48141
8727         * dse.c (record_store): If no positions are needed in an insn
8728         that cannot be deleted, at least unchain it from active_local_stores.
8729
8730 2011-03-16  Dodji Seketeli  <dodji@redhat.com>
8731
8732         PR debug/47510
8733         * dwarf2out.c (strip_naming_typedef): Factorize out of ...
8734         (lookup_type_die_strip_naming_typedef): ... here.
8735         (get_context_die): Use it.
8736         (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
8737         the anonymous struct named by the naming typedef.
8738
8739 2011-03-16  H.J. Lu  <hongjiu.lu@intel.com>
8740
8741         PR target/48154
8742         * config/i386/i386.c (ix86_builtin_vectorized_function): Check
8743         TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
8744
8745 2011-03-16  Jeff Law  <law@redhat.com>
8746
8747         * tree-vrp.c (identify_jump_threads): Slightly simplify type
8748         check for operands of conditional.  Allow type to be a pointer.
8749
8750 2011-03-16  Richard Guenther  <rguenther@suse.de>
8751
8752         PR tree-optimization/48149
8753         * fold-const.c (fold_binary_loc): Fold
8754         COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
8755
8756 2011-03-16  Richard Guenther  <rguenther@suse.de>
8757
8758         PR tree-optimization/26134
8759         * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
8760         complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
8761         (non_rewritable_mem_ref_base): Handle complex type component
8762         accesses, constrain offsets for vector and complex extracts
8763         more properly.
8764
8765 2011-03-16  Richard Guenther  <rguenther@suse.de>
8766
8767         PR tree-optimization/48146
8768         * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
8769         operands avoiding the need for renaming.
8770
8771 2011-03-16  Richard Guenther  <rguenther@suse.de>
8772
8773         * gimple-fold.c (maybe_fold_reference): Open-code relevant
8774         constant folding.  Move MEM_REF canonicalization first.
8775         Rely on fold_const_aggregate_ref for initializer folding.
8776         * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
8777
8778 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
8779
8780         PR middle-end/48136
8781         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
8782         arg0/arg1 or their arguments are always fold converted to matching
8783         types.
8784
8785         * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
8786         to nargs.
8787
8788 2011-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8789
8790         PR lto/46944
8791         * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
8792         Handle in-tree gold.
8793         (ld_vers): Extract binutils version for gold.
8794         (gcc_cv_ld_hidden): Handle gold here.
8795         (gcc_cv_lto_plugin): Determine level of linker plugin support.
8796         * configure: Regenerate.
8797         * config.in: Regenerate.
8798         * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
8799         -fuse-linker-plugin otherwise.
8800         (LINK_PLUGIN_SPEC): Define.  Extract from LINK_COMMAND_SPEC.
8801         (LINK_COMMAND_SPEC): Use it.
8802         (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
8803
8804 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
8805
8806         * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
8807         * calls.c: Remove debug.h include.
8808         (emit_call_1): Don't call virtual_call_token debug hook.
8809         * dwarf2out.c (debug_dcall_section, debug_vcall_section,
8810         dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
8811         vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
8812         size_of_dcall_table, output_dcall_table, size_of_vcall_table,
8813         output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
8814         vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
8815         dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
8816         dwarf2out_virtual_call): Remove.
8817         (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
8818         copy_call_info and virtual_call hooks.
8819         (dwarf2out_init): Don't initialize vcall_insn_table,
8820         debug_dcall_section and debug_vcall_section.
8821         (prune_unused_types): Don't mark nodes from dcall_table.
8822         (dwarf2out_finish): Don't output dcall or vcall tables.
8823         * final.c (final_scan_insn): Don't call direct_call or
8824         virtual_call debug hooks.
8825         * debug.h (struct gcc_debug_hooks): Remove direct_call,
8826         virtual_call_token, copy_call_info and virtual_call hooks.
8827         (debug_nothing_uid): Remove prototype.
8828         * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
8829         copy_call_info and virtual_call hooks.
8830         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
8831         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
8832         * debug.c (do_nothing_debug_hooks): Likewise.
8833         (debug_nothing_uid): Remove.
8834         * doc/invoke.texi (-fenable-icf-debug): Remove.
8835         * common.opt (-fenable-icf-debug): Likewise.
8836
8837         * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
8838         * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
8839         call's MEM.  Handle functions returning aggregate through a hidden
8840         first pointer.  For virtual calls add clobbered pc to call arguments
8841         chain.
8842         * dwarf2out.c (gen_subprogram_die): Emit
8843         DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
8844         can't be emitted.
8845
8846         PR debug/45882
8847         * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
8848         * rtl.h (ENTRY_VALUE_EXP): Define.
8849         * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
8850         * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
8851         * print-rtl.c (print_rtx): Likewise.
8852         * gengtype.c (adjust_field_rtx_def): Likewise.
8853         * var-tracking.c (vt_add_function_parameter): Adjust
8854         gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
8855         * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
8856         * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
8857         partition is a default definition of a PARM_DECL, use ENTRY_VALUE
8858         of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
8859
8860         * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
8861         Call var_location debug hook even on CALL_INSNs.
8862         (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
8863         * rtl.def (ENTRY_VALUE): New.
8864         * dwarf2out.c: Include cfglayout.h.
8865         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
8866         output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
8867         (struct call_arg_loc_node): New type.
8868         (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
8869         tail_call_site_count): New variables.
8870         (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
8871         DW_TAG_GNU_call_site_parameter.
8872         (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
8873         DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
8874         DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
8875         DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
8876         and DW_AT_GNU_all_source_call_sites.
8877         (mem_loc_descriptor): Handle ENTRY_VALUE.
8878         (add_src_coords_attributes): Don't add enything if
8879         DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
8880         (dwarf2out_abstract_function): Save and clear call_arg_location,
8881         call_site_count and tail_call_site_count around dwarf2out_decl call.
8882         (gen_call_site_die): New function.
8883         (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
8884         (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
8885         (dwarf2out_function_decl): Clear call_arg_locations,
8886         call_arg_loc_last, set call_site_count and tail_call_site_count
8887         to -1 and free block_map.
8888         (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
8889         CALL_INSNs.  Add NOTE_DURING_CALL_P var location notes even when not
8890         followed by any real instructions.
8891         (dwarf2out_begin_function): Set call_site_count and
8892         tail_call_site_count to 0.
8893         (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
8894         is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
8895         attempt to force a DIE for it and worst case remove the attribute.
8896         (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
8897         check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
8898         the decl itself.
8899         * var-tracking.c: Include tm_p.h.
8900         (vt_stack_adjustments): For calls call note_register_arguments.
8901         (argument_reg_set): New variable.
8902         (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
8903         ensure the VALUE is resolved.
8904         (call_arguments): New variable.
8905         (prepare_call_arguments): New function.
8906         (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
8907         (struct expand_loc_callback_data): Add ignore_cur_loc field.
8908         (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
8909         always use the best expression.
8910         (vt_expand_loc): Add ignore_cur_loc argument.
8911         (vt_expand_loc_dummy): Clear ignore_cur_loc field.
8912         (emit_note_insn_var_location): Adjust vt_expand_loc callers.
8913         (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
8914         note for all calls.
8915         (vt_add_function_parameter): Use cselib_lookup_from_insn.
8916         If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
8917         argument.  Don't call cselib_preserve_only_values and
8918         cselib_reset_table.
8919         (note_register_arguments): New function.
8920         (vt_initialize): Compute argument_reg_set.  Call
8921         vt_add_function_parameters before processing basic blocks instead of
8922         afterwards.  For calls call prepare_call_arguments before calling
8923         cselib_process_insn.
8924         * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
8925         * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
8926         (var-tracking.o): Depend on $(TM_P_H).
8927         * cfglayout.h (insn_scope): New prototype.
8928         * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
8929         * cfglayout.c (insn_scope): No longer static.
8930         * insn-notes.def (CALL_ARG_LOCATION): New.
8931         * calls.c (expand_call, emit_library_call_value_1): Put USEs for
8932         MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
8933         * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
8934         nothing for DECL_EXTERNAL BLOCK_VARS.
8935
8936 2011-03-16  Alan Modra  <amodra@gmail.com>
8937
8938         PR target/45844
8939         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
8940         create invalid offset address for vsx splat insn.
8941         * config/rs6000/predicates.md (splat_input_operand): New.
8942         * config/rs6000/vsx.md (vsx_splat_*): Use it.
8943
8944 2011-03-15  Xinliang David Li  <davidxl@google.com>
8945
8946         PR c/47837
8947         * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
8948         (normalize_preds): New function.
8949         (is_use_properly_guarded): Normalize def predicates.
8950
8951 2011-03-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
8952
8953         PR target/46788
8954         * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
8955         in the output template.
8956
8957 2011-03-15  Richard Guenther  <rguenther@suse.de>
8958
8959         PR middle-end/47650
8960         * tree-pretty-print.c (dump_function_declaration): Properly
8961         dump unprototyped and varargs function types.
8962
8963 2011-03-15  Richard Guenther  <rguenther@suse.de>
8964
8965         PR tree-optimization/13954
8966         * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
8967         and friends.
8968
8969 2011-03-15  Richard Guenther  <rguenther@suse.de>
8970
8971         PR tree-optimization/48037
8972         * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
8973         selects into BIT_FIELD_REFs.
8974         (non_rewritable_mem_ref_base): Check if a MEM_REF is a
8975         vector select.
8976
8977 2011-03-15  Jakub Jelinek  <jakub@redhat.com>
8978
8979         PR tree-optimization/48129
8980         * builtins.c (fold_builtin_snprintf): Convert to type of
8981         built_in_decls[BUILT_IN_SNPRINTF] retval instead of
8982         implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
8983
8984 2011-03-15  Richard Guenther  <rguenther@suse.de>
8985
8986         PR tree-optimization/41490
8987         * tree-ssa-dce.c (propagate_necessity): Handle returns without
8988         value but with VUSE.
8989         * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
8990         return statements.
8991         * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
8992         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
8993         * tree-tailcall.c (find_tail_calls): Ignore returns.
8994
8995 2011-03-15  Richard Guenther  <rguenther@suse.de>
8996
8997         PR middle-end/48031
8998         * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
8999         or variable-indexed array accesses when in gimple form.
9000
9001 2011-03-15  Richard Guenther  <rguenther@suse.de>
9002
9003         * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
9004
9005 2011-03-15  Alan Modra  <amodra@gmail.com>
9006
9007         PR target/48032
9008         * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
9009         presume symbol_refs without a symbol_ref_decl are suitably
9010         aligned, nor other trees we may see here.  Handle anchor symbols.
9011         (legitimate_constant_pool_address_p): Comment.  Add mode param.
9012         Check cmodel=medium addresses.  Adjust all calls.
9013         (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
9014         creating cmodel=medium optimized access to locals.
9015         * config/rs6000/constraints.md (R): Pass QImode to
9016         legitimate_constant_pool_address_p.
9017         * config/rs6000/predicates.md (input_operand): Pass mode to
9018         legitimate_constant_pool_address_p.
9019         * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
9020         Update prototype.
9021
9022 2011-03-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
9023
9024         PR target/48053
9025         * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
9026         64-bit constants being loaded into registers other than GPRs such
9027         as loading 0 into a VSX register.
9028
9029 2011-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9030
9031         * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
9032
9033 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
9034
9035         PR middle-end/47917
9036         * builtins.c (fold_builtin_snprintf): New function.
9037         (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
9038         (fold_builtin_4): Likewise.
9039
9040         PR middle-end/38878
9041         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
9042         STRIP_NOPS on arg0 and arg1.  When optimizing X +- C == X
9043         and C - X == X also strip nops from +/-/p+ operand.
9044         When optimizing -X == C, fold C to arg0's type.
9045
9046         PR debug/47946
9047         * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
9048         emit it as add_AT_int instead of add_AT_unsigned.
9049
9050 2011-03-14  Tom Tromey  <tromey@redhat.com>
9051
9052         * unwind-dw2.c: Include sys/sdt.h if it exists.
9053         (_Unwind_DebugHook): Use STAP_PROBE2.
9054         * config.in, configure: Rebuild.
9055         * configure.ac: Check for sys/sdt.h.
9056
9057 2011-03-14  Uros Bizjak  <ubizjak@gmail.com>
9058
9059         * config/i386/i386.md (ROUND_FLOOR): New constant.
9060         (ROUND_CEIL): Ditto.
9061         (ROUND_TRUNC): Ditto.
9062         (ROUND_MXCSR): Ditto.
9063         (ROUND_NO_EXC): Ditto.
9064         (rint<mode>2): Use new defines instead of numerical constants.
9065         (floor<mode>2): Ditto.
9066         (ceil<mode>2): Ditto.
9067         (btrunc<mode>2): Ditto.
9068         * config/i386/i386-builtin-types.def: Define ROUND function type
9069         aliases.
9070         * config/i386/i386.c (enum ix86_builtins): Add
9071         IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
9072         (struct builtin_description): Add
9073         __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
9074         (ix86_expand_sse_round): New static function.
9075         (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
9076         function types.
9077         (ix86_builtin_vectorized_function): Handle
9078         BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
9079
9080 2011-03-14  Tom Tromey  <tromey@redhat.com>
9081
9082         * c-parser.c (c_parser_asm_string_literal): Clear
9083         warn_overlength_strings.
9084
9085 2011-03-14  Tom Tromey  <tromey@redhat.com>
9086
9087         * c-parser.c (disable_extension_diagnostics): Save
9088         warn_overlength_strings.
9089         (restore_extension_diagnostics): Restore warn_overlength_strings.
9090
9091 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
9092
9093         * BASE-VER: Change to 4.7.0.
9094
9095 2011-03-14  Richard Guenther  <rguenther@suse.de>
9096
9097         PR middle-end/48098
9098         * tree.c (build_vector_from_val): Adjust assert to requirements
9099         and reality.
9100
9101 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
9102
9103         PR bootstrap/48102
9104         * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
9105
9106 2011-03-14  Andreas Tobler  <andreast@fgznet.ch>
9107
9108         * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
9109         terms of target_flags_explicit. Adjust copyright year.
9110
9111         * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
9112         * config/rs6000/t-freebsd: New file. Add override for
9113         LIB2FUNCS_EXTRA.
9114
9115 2011-03-13  Chris Demetriou  <cgd@google.com>
9116
9117         * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
9118         (-fno-diagnostics-show-option): this, to reflect current default.
9119         (-Werror=): Update text about -fno-diagnostics-show-option.
9120
9121 2011-03-12  Peter Bergner  <bergner@vnet.ibm.com>
9122
9123         PR target/48053
9124         * config/rs6000/predicates.md (easy_vector_constant_add_self,
9125         easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
9126         * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
9127         mode is not V2DImode or V2DFmode.
9128         (vspltis_constant): Do not handle V2DImode and V2DFmode.
9129         (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
9130         * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
9131         registers to 0.
9132         (movdi_internal64): Likewise.
9133
9134 2011-03-12  Sebastian Pop  <sebastian.pop@amd.com>
9135
9136         PR tree-optimization/47127
9137         * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
9138         parameter.
9139         (set_cloog_options): Same.
9140         (scop_to_clast): Same.
9141         (print_clast_stmt): Do not call cloog_state_malloc and
9142         cloog_state_free.
9143         (print_generated_program): Same.
9144         (gloog): Same.
9145         * graphite-clast-to-gimple.h (cloog_state): Declared.
9146         (scop_to_clast): Adjust declaration.
9147         * graphite.c (cloog_state): Defined here.
9148         (graphite_initialize): Call cloog_state_malloc.
9149         (graphite_finalize): Call cloog_state_free.
9150
9151 2011-03-11  Jason Merrill  <jason@redhat.com>
9152
9153         * attribs.c (lookup_attribute_spec): Take const_tree.
9154         * tree.h: Adjust.
9155
9156 2011-03-11  Joseph Myers  <joseph@codesourcery.com>
9157
9158         * config/sparc/sparc.c (sparc_option_override): Use
9159         PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
9160
9161 2011-03-11  Richard Guenther  <rguenther@suse.de>
9162
9163         PR tree-optimization/48067
9164         * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
9165         multiplication result will be only used once on the target
9166         stmt.
9167
9168 2011-03-11  Richard Guenther  <rguenther@suse.de>
9169
9170         * doc/invoke.texi (max-inline-insns-single): Adjust default value.
9171
9172 2011-03-11  Richard Guenther  <rguenther@suse.de>
9173
9174         PR lto/48073
9175         * tree.c (find_decls_types_r): Do not walk types only reachable
9176         from IDENTIFIER_NODEs.
9177
9178 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
9179
9180         PR middle-end/48044
9181         * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
9182         all vnode->force_output nodes as needed.
9183
9184 2011-03-11  Jason Merrill  <jason@redhat.com>
9185
9186         PR c++/48069
9187         * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
9188         COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
9189
9190 2011-03-11  Martin Jambor  <mjambor@suse.cz>
9191
9192         * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
9193         cgraph_node.
9194
9195 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
9196
9197         PR tree-optimization/48063
9198         * ipa-inline.c (cgraph_decide_inlining): Don't try to
9199         inline functions called once if !tree_can_inline_p (node->callers).
9200
9201 2011-03-11  Chen Liqin  <liqin.gcc@gmail.com>
9202
9203         * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
9204         extra_objs.
9205         * config/score/score3.c: Delete.
9206         * config/score/score3.h: Delete.
9207         * config/score/mul-div.S: Delete.
9208         * config/score/sfp-machine.h: Add new file.
9209         * config/score/constraints.md: Add new file.
9210         * config/score/t-score-softfp: Add new file.
9211         * config/score/t-score-elf: Remove score3.o, do not generate multilib.
9212         * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
9213         (score7_extra_constraint): Delete.
9214         (score7_option_override): Remove unused code.
9215         * config/score/score.c: Remove score3 and score5 define and code.
9216         * config/score/score.h: Remove score3 and score5 define and code.
9217         * config/score/score.md: Remove score3 template and unusual insn.
9218         * config/score/score.opt: Remove score3 and score5 options.
9219
9220 2011-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9221
9222         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
9223         when _HPUX_SOURCE is defined.
9224         (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
9225
9226 2011-03-10  Jason Merrill  <jason@redhat.com>
9227
9228         PR c++/48029
9229         * stor-layout.c (layout_type): Don't set structural equality
9230         on arrays of incomplete type.
9231         * tree.c (type_hash_eq): Handle comparing them properly.
9232
9233 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
9234
9235         PR debug/48043
9236         * config/s390/s390.c (s390_delegitimize_address): Make sure the
9237         result mode matches original rtl mode.
9238
9239 2011-03-10  Nick Clifton  <nickc@redhat.com>
9240
9241         * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
9242         (andsi3, andsi3_flags): Fix timings for three operand alternative.
9243
9244 2011-03-09  Jakub Jelinek  <jakub@redhat.com>
9245
9246         PR rtl-optimization/47866
9247         * expr.c (store_field): If MEM_SCALAR_P (target), don't use
9248         MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
9249         if target wasn't scalar.
9250         * function.c (assign_stack_temp_for_type): Assert that neither
9251         MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
9252         MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
9253         macro.
9254         * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
9255
9256 2011-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9257
9258         * config/s390/s390-protos.h (s390_label_align): New prototype.
9259         * config/s390/s390.c (s390_label_align): New function.
9260         * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
9261
9262 2011-03-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
9263
9264         PR target/47755
9265         * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
9266         V2DI/V2DF constants.  Only all 0's or all 1's are easy.
9267         (output_vec_const_move): Ditto.
9268
9269 2011-03-08  Anatoly Sokolov  <aesok@post.ru>
9270
9271         * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
9272         * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
9273         * config/mips/mips.c (mips_preferred_reload_class): Make static.
9274         Change 'rclass' argument and result type to reg_class_t.
9275         (TARGET_PREFERRED_RELOAD_CLASS): Define.
9276
9277 2011-03-08  Georg-Johann Lay  <avr@gjlay.de>
9278
9279         * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
9280         * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
9281         (TARGET_MEMORY_MOVE_COST): Define.
9282         (avr_register_move_cost, avr_memory_move_cost): New Functions.
9283
9284 2011-03-08  Jakub Jelinek  <jakub@redhat.com>
9285
9286         PR debug/47881
9287         * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
9288         removed anything.
9289
9290         PR tree-optimization/48022
9291         * fold-const.c (fold_comparison): Don't call fold_overflow_warning
9292         for EQ/NE_EXPR.
9293
9294 2011-03-07  Jakub Jelinek  <jakub@redhat.com>
9295
9296         PR debug/47991
9297         * var-tracking.c (find_use_val): Return NULL for
9298         cui->sets && cui->store_p BLKmode MEMs.
9299
9300 2011-03-07  Anatoly Sokolov  <aesok@post.ru>
9301
9302         * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
9303         Remove.
9304         * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
9305         xstormy16_print_operand_address): Remove.
9306         * config/stormy16/stormy16.c (xstormy16_print_operand,
9307         xstormy16_print_operand_address): Make static.
9308         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
9309
9310 2011-03-07  Pat Haugen  <pthaugen@us.ibm.com>
9311
9312         PR target/47862
9313         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
9314         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
9315         before definition.
9316
9317 2011-03-07  Zdenek Dvorak  <ook@ucw.cz>
9318
9319         PR bootstrap/48000
9320         * cfgloopmanip.c (fix_bb_placements): Return immediately
9321         if FROM is BASE_LOOP's header.
9322
9323 2011-03-07  Paul Wögerer  <paul_woegerer@mentor.com>
9324
9325         * gimplify.c (gimplify_function_tree): Fix building calls
9326         to __builtin_return_address.
9327
9328 2011-03-07  Alan Modra  <amodra@gmail.com>
9329
9330         * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
9331         * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
9332         * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
9333         * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
9334         return_mode args.
9335         * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
9336         (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
9337         (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
9338         (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
9339         * config/rs6000/rs6000.c
9340         (rs6000_elf_end_indicate_exec_stack): Rename to..
9341         (rs6000_elf_file_end): ..this.  Only call file_end_indicate_exec_stack
9342         for POWERPC_LINUX.  Move code emitting .gnu_attribute to here, from..
9343         (rs6000_file_start): ..here.
9344         (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
9345         file scope variables.
9346         (call_ABI_of_interest): New function.
9347         (init_cumulative_args): Set above vars when function return value
9348         is a float, vector, or small struct.
9349         (rs6000_function_arg_advance_1): Likewise for function args.
9350         (rs6000_va_start): Set rs6000_passes_float if variable arg function
9351         references float args.
9352
9353 2011-03-07  Mingjie Xing  <mingjie.xing@gmail.com>
9354
9355         * doc/cfg.texi: Remove "See" before @ref.
9356         * doc/invoke.texi: Likewise.
9357
9358 2011-03-05  Jason Merrill  <jason@redhat.com>
9359
9360         * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
9361
9362 2011-03-05  Anthony Green  <green@moxielogic.com>
9363
9364         * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
9365
9366 2011-03-05  Zdenek Dvorak  <ook@ucw.cz>
9367
9368         PR rtl-optimization/47899
9369         * cfgloopmanip.c (fix_bb_placements): Fix first argument
9370         to flow_loop_nested_p when moving the loop upward.
9371
9372 2011-03-05  Richard Earnshaw  <rearnsha@arm.com>
9373
9374         PR target/47719
9375         * arm.md (movhi_insn_arch4):  Accept any immediate constant.
9376
9377 2011-03-05  Jakub Jelinek  <jakub@redhat.com>
9378
9379         PR tree-optimization/47967
9380         * ipa-cp.c (build_const_val): Return NULL instead of creating
9381         VIEW_CONVERT_EXPR for mismatching sizes.
9382         (ipcp_create_replace_map): Return NULL if build_const_val failed.
9383         (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
9384         give up on versioning.
9385
9386 2011-03-05  Alan Modra  <amodra@gmail.com>
9387
9388         PR target/47986
9389         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
9390         full cmodel medium/large lo_sum + high addresses.
9391
9392 2011-03-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9393
9394         * config/s390/s390.c (s390_decompose_address): Reject non-literal
9395         pool references in UNSPEC_LTREL_OFFSET.
9396
9397 2011-03-04  Jan Hubicka  <jh@suse.cz>
9398
9399         PR lto/47497
9400         * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
9401         (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
9402         * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
9403         Add node pointers.
9404         * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
9405         cgraph_add_thunk): Add node pointers.
9406         * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
9407         associated to right node.
9408         (input_node): Update use of cgraph_same_body_alias
9409         and cgraph_add_thunk.
9410
9411 2011-03-04  Changpeng Fang  <changpeng.fang@amd.com>
9412
9413         * config/i386/i386.opt (mprefer-avx128): New flag.
9414         * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
9415         modes when the flag -mprefer-avx128 is on.
9416
9417 2011-03-04  Richard Sandiford  <richard.sandiford@linaro.org>
9418
9419         * dwarf2out.c (compare_loc_operands): Fix address handling.
9420
9421 2011-03-04  Alan Modra  <amodra@gmail.com>
9422
9423         * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
9424
9425 2011-03-04  Richard Guenther  <rguenther@suse.de>
9426
9427         PR middle-end/47968
9428         * expmed.c (extract_bit_field_1): Prefer vector modes that
9429         vec_extract patterns can handle.
9430
9431 2011-03-04  Richard Guenther  <rguenther@suse.de>
9432
9433         PR middle-end/47975
9434         * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
9435
9436 2011-03-04  Richard Henderson  <rth@redhat.com>
9437
9438         * explow.c (emit_stack_save): Remove 'after' parameter.
9439         (emit_stack_restore): Likewise.
9440         * expr.h: Update to match.
9441         * builtins.c, calls.c, stmt.c: Likewise.
9442         * config/alpha/alpha.md, config/avr/avr.md: Likewise.
9443         * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
9444         * function.c (expand_function_end): Insert the emit_stack_save
9445         sequence before parm_birth_insn instead of after.
9446
9447 2011-03-03  Uros Bizjak  <ubizjak@gmail.com>
9448
9449         * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
9450         (ssse3_pmaddubsw128): Ditto.
9451         (ssse3_pmaddubsw): Ditto.
9452
9453 2011-03-03  Steve Ellcey  <sje@cup.hp.com>
9454
9455         * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
9456
9457 2011-03-03  Jakub Jelinek  <jakub@redhat.com>
9458
9459         PR c/47963
9460         * gimplify.c (omp_add_variable): Only call omp_notice_variable
9461         on TYPE_SIZE_UNIT if it is a DECL.
9462
9463         PR debug/47283
9464         * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
9465         first operand is not is_gimple_mem_ref_addr, try to fold it.
9466         If the operand still isn't is_gimple_mem_ref_addr, clear
9467         MEM_EXPR on op0.
9468
9469 2011-03-03  Richard Guenther  <rguenther@suse.de>
9470
9471         PR middle-end/47283
9472         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
9473         match comment.
9474         (refs_may_alias_p_1): For release branches return true if
9475         we are confused by our input.
9476
9477 2011-03-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9478
9479         * config/s390/s390.c (s390_function_value): Rename to ...
9480         (s390_function_and_libcall_value): ... this.
9481         (s390_function_value): New function.
9482         (s390_libcall_value): New function.
9483         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
9484         * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
9485         target macro definitions.
9486         * config/s390/s390-protos.h (s390_function_value): Remove prototype.
9487
9488 2011-03-02  Joseph Myers  <joseph@codesourcery.com>
9489
9490         * config/i386/freebsd64.h (CC1_SPEC): Define.
9491         * config/i386/linux64.h (CC1_SPEC): Define.
9492         * config/i386/x86-64.h (CC1_SPEC): Don't define.
9493
9494 2011-03-02  Anatoly Sokolov  <aesok@post.ru>
9495
9496         * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
9497         Remove.
9498         * config/stormy16/stormy16.c: Include reload.h.
9499         (xstormy16_memory_move_cost): New function.
9500         (TARGET_MEMORY_MOVE_COST): Define.
9501
9502 2011-03-02  Richard Sandiford  <richard.sandiford@linaro.org>
9503
9504         PR rtl-optimization/47925
9505         * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
9506         with side effects.  Remove the more-specific check for volatile asms.
9507
9508 2011-03-02  Alan Modra  <amodra@gmail.com>
9509
9510         PR target/47935
9511         * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
9512         toc relative addresses for valid offsets.
9513
9514 2011-03-01  Richard Guenther  <rguenther@suse.de>
9515
9516         PR tree-optimization/47890
9517         * tree-vect-loop.c (get_initial_def_for_induction): Set
9518         related stmt properly.
9519
9520 2011-03-01  Richard Guenther  <rguenther@suse.de>
9521
9522         PR lto/47924
9523         * lto-streamer.c (lto_record_common_node): Also register
9524         the canonical type.
9525
9526 2011-03-01  Richard Guenther  <rguenther@suse.de>
9527
9528         PR lto/46911
9529         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
9530         Do not stream DECL_ABSTRACT_ORIGIN.
9531         (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
9532         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
9533         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
9534         Do not stream DECL_ABSTRACT_ORIGIN.
9535         (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
9536         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
9537
9538 2011-02-28  Anatoly Sokolov  <aesok@post.ru>
9539
9540         * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
9541         FUNCTION_VALUE_REGNO_P): Remove.
9542         * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
9543         * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
9544         Add 'outgoing' argument.
9545         (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
9546         function.
9547         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
9548         TARGET_FUNCTION_VALUE_REGNO_P): Define.
9549
9550 2011-02-28  Kai Tietz  <kai.tietz@onevision.com>
9551
9552         PR debug/28047
9553         * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
9554         (lookup_filename): Likewise.
9555         * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
9556
9557 2011-02-28  Bernd Schmidt  <bernds@codesourcery.com>
9558             Jakub Jelinek  <jakub@redhat.com>
9559
9560         PR middle-end/47893
9561         * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
9562         (assign_stack_local_1): Change last argument type to int.
9563         * function.c (assign_stack_local_1): Replace reduce_alignment_ok
9564         argument with kind.  If bit ASLK_RECORD_PAD is not set in it,
9565         don't record padding space into frame_space_list nor use those areas.
9566         (assign_stack_local): Adjust caller.
9567         (assign_stack_temp_for_type): Call assign_stack_local_1 instead
9568         of assign_stack_local, pass 0 as last argument.
9569         * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
9570         callers.
9571
9572 2011-02-28  Jakub Jelinek  <jakub@redhat.com>
9573
9574         PR debug/47283
9575         * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
9576         Use target address_mode and pointer_mode hooks instead of hardcoded
9577         Pmode and ptr_mode.  Handle some simple cases of extending if
9578         POINTERS_EXTEND_UNSIGNED < 0.
9579         (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
9580         Call convert_debug_memory_address.
9581         (expand_debug_expr) <case ADDR_EXPR>: Pass as to
9582         convert_debug_memory_address.
9583
9584         PR middle-end/46790
9585         * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
9586         * configure: Regenerated.
9587         * config.in: Regenerated.
9588         * varasm.c (default_function_section): Return NULL
9589         if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
9590
9591 2011-02-28  Martin Jambor  <mjambor@suse.cz>
9592
9593         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
9594         the description to match the printed values.
9595
9596 2011-02-28  Richard Guenther  <rguenther@suse.de>
9597
9598         * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
9599         of the copied scope tree.
9600
9601 2011-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9602
9603         * doc/extend.texi (Function Attributes): Avoid deeply (and
9604         wrongly) nested tables.
9605
9606 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
9607
9608         PR middle-end/47903
9609         * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
9610         MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
9611         r isn't op0 nor op1.
9612
9613 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
9614
9615         * config/avr/avr.md: Remove magic comment for emacs.
9616
9617 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
9618
9619         PR target/45261
9620         * config/avr/avr.c (avr_option_override): Use error on bad options.
9621         (avr_help): New function.
9622         (TARGET_HELP): Define.
9623
9624 2011-02-22  Georg-Johann Lay  <avr@gjlay.de>
9625
9626         PR target/42240
9627         * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
9628         (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
9629
9630 2011-02-26  Gerald Pfeifer  <gerald@pfeifer.com>
9631
9632         * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
9633         (ARM Options): Ditto.
9634         (i386 and x86-64 Options): Ditto.
9635         (RX Options): Ditto.
9636         (SPARC Options): Ditto.
9637
9638 2011-02-26  Tijl Coosemans  <tijl@coosemans.org>
9639
9640         * config.gcc (i386-*-freebsd*): Make i486 the default arch on
9641         FreeBSD 6 and later.  Generally use cpu generic.
9642
9643 2011-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
9644
9645         * doc/cpp.texi: Update copyright years.
9646
9647 2011-02-25  Sebastien Bourdeauducq  <sebastien@milkymist.org>
9648
9649         PR target/46898
9650         * config/lm32/lm32.md (ashrsi3): Added needed variable.
9651
9652 2011-02-25  Jon Beniston  <jon@beniston.com>
9653
9654         PR target/46898
9655         * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
9656         * config/lm32/lm32.md (ashlsi3): Remove unused variable.
9657         * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
9658         (lm32_block_move_inline): Add type cast to remove warning.
9659         (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
9660         (gen_int_relational): Move declarations to start of function.
9661
9662 2011-02-25  Eric Botcazou  <ebotcazou@adacore.com>
9663
9664         PR tree-optimization/45470
9665         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
9666         can throw internally only.
9667         * tree-vect-stmts.c (vectorizable_call): Likewise.
9668
9669 2011-02-24  Anatoly Sokolov  <aesok@post.ru>
9670
9671         * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
9672         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
9673         * config/stormy16/stormy16-protos.h
9674         (xstormy16_preferred_reload_class): Remove.
9675         * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
9676         static. Change 'rclass' argument and return type to reg_class_t.
9677         (TARGET_PREFERRED_RELOAD_CLASS,
9678         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
9679
9680 2011-02-24  Richard Guenther  <rguenther@suse.de>
9681
9682         * lto-streamer-in.c (input_bb): Do not find referenced vars
9683         in debug statements.
9684
9685 2011-02-23  Jason Merrill  <jason@redhat.com>
9686
9687         * common.opt (fabi-version): Document v5 and v6.
9688
9689 2011-02-23  Richard Guenther  <rguenther@suse.de>
9690
9691         PR tree-optimization/47849
9692         * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
9693
9694 2011-02-23  Jie Zhang  <jie@codesourcery.com>
9695
9696         * opts-common.c (decode_cmdline_option): Print empty string
9697         argument as "" in decoded->orig_option_with_args_text.
9698         * gcc.c (execute): Print empty string argument as ""
9699         in the verbose output.
9700         (do_spec_1): Keep empty string argument.
9701
9702 2011-02-23  Nathan Froyd  <froydnj@codesourcery.com>
9703
9704         * config.gcc: Declare score-* and crx-* obsolete.
9705
9706 2011-02-23  Jie Zhang  <jie@codesourcery.com>
9707
9708         PR rtl-optimization/47763
9709         * web.c (web_main): Ignore naked clobber when replacing register.
9710
9711 2011-02-22  Anatoly Sokolov  <aesok@post.ru>
9712
9713         * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
9714         Remove.
9715
9716 2011-02-22  Sebastian Pop  <sebastian.pop@amd.com>
9717
9718         PR doc/47848
9719         * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
9720
9721 2011-02-22  Mike Stump  <mikestump@comcast.net>
9722
9723         * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
9724         assembler.
9725         * configure: Regenerate.
9726
9727 2011-02-21  Chung-Lin Tang  <cltang@codesourcery.com>
9728
9729         PR rtl-optimization/46002
9730         * ira-color.c (update_copy_costs): Change class intersection
9731         test to reg_class_contents[] test of 'hard_regno'.
9732
9733 2011-02-21  Joseph Myers  <joseph@codesourcery.com>
9734
9735         * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
9736         than Driver option.
9737         * config/hpux11.opt (mt): Likewise.
9738         * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
9739         * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
9740         * config/vax/elf.opt (mno-asm-pic): Likewise.
9741         * config/vms/vms.opt (map, mvms-return-codes): Likewise.
9742
9743 2011-02-21  Mike Stump  <mikestump@comcast.net>
9744
9745         PR target/47822
9746         * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
9747         tree so we can get save the type.
9748         * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
9749         for CFString instead of trying to use past the end of the builtins.
9750         * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
9751         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
9752         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
9753         * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
9754         Rename to darwin_builtin_cfstring.
9755         (darwin_init_cfstring_builtins): Return the built type.
9756
9757 2011-02-21  Uros Bizjak  <ubizjak@gmail.com>
9758
9759         PR target/47840
9760         * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
9761         (_mm256_insert_epi64): Use _mm_insert_epi64.
9762
9763 2011-02-21  Anatoly Sokolov  <aesok@post.ru>
9764
9765         * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
9766         * config/stormy16/stormy16-protos.h
9767         (xstormy16_mode_dependent_address_p): Remove.
9768         * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
9769         Make static. Change return type to bool. Change argument type to
9770         const_rtx. Remove dead code.
9771         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
9772
9773 2011-02-21  Richard Guenther  <rguenther@suse.de>
9774
9775         PR lto/47820
9776         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
9777         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
9778         (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
9779         TUs context.
9780         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
9781         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
9782
9783 2011-02-20  Richard Guenther  <rguenther@suse.de>
9784
9785         PR lto/47822
9786         * tree.c (free_lang_data_in_decl): Clean builtins from
9787         the TU decl BLOCK_VARS.
9788
9789 2011-02-19  Alexandre Oliva  <aoliva@redhat.com>
9790
9791         PR debug/47620
9792         PR debug/47630
9793         * haifa-sched.c (fix_tick_ready): Skip tick computation
9794         for debug insns.
9795
9796 2011-02-19  Richard Guenther  <rguenther@suse.de>
9797
9798         PR lto/47647
9799         * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
9800         Remove lazy BLOCK_VARS streaming.
9801         (lto_input_ts_block_tree_pointers): Likewise.
9802         * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
9803
9804 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
9805
9806         * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
9807
9808 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
9809
9810         * config/i386/biarch32.h, config/i386/mach.h,
9811         config/rs6000/aix.opt, config/sh/superh64.h: Remove.
9812
9813 2011-02-19  Jakub Jelinek  <jakub@redhat.com>
9814
9815         PR target/47800
9816         * config/i386/i386.md (peephole2 for shift and plus): Use
9817         operands[1] original mode in the first insn.
9818
9819 2011-02-18  Mike Stump  <mikestump@comcast.net>
9820
9821         * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
9822
9823 2011-02-18  Jan Hubicka  <jh@suse.cz>
9824
9825         PR middle-end/47788
9826         * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
9827         to zero when the function is not inlinable at all.
9828
9829 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9830
9831         * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
9832         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
9833         pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
9834         * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
9835         * config/pa/t-pa64: Likewise.
9836         * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
9837
9838 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
9839
9840         PR driver/47787
9841         * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
9842
9843 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9844
9845         PR target/47792
9846         * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
9847
9848 2011-02-18  Anatoly Sokolov  <aesok@post.ru>
9849
9850         * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
9851         RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
9852         LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
9853         GO_IF_LEGITIMATE_ADDRESS): Remove macros.
9854         * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
9855         (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
9856         m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
9857         m32r_load_postinc_p, m32r_store_preinc_predec_p,
9858         m32r_legitimate_address_p): New functions.
9859         * config/m32r/constraints.md (constraint "S"): Don't use
9860         STORE_PREINC_PREDEC_P.
9861         (constraint "U"): Don't use LOAD_POSTINC_P.
9862
9863 2011-02-18  Chung-Lin Tang  <cltang@codesourcery.com>
9864
9865         PR rtl-optimization/46178
9866         * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
9867         compute ira_hard_regno_cover_class[].
9868
9869 2011-02-18  Richard Guenther  <rguenther@suse.de>
9870
9871         PR lto/47798
9872         * lto-streamer.h (lto_global_var_decls): Declare.
9873         * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
9874         statics for global var processing.
9875
9876 2011-02-18  Richard Guenther  <rguenther@suse.de>
9877
9878         PR tree-optimization/47737
9879         * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
9880         edge dominance check.
9881
9882 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
9883
9884         PR debug/47780
9885         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
9886         avoid invalid rtx sharing.
9887
9888 2011-02-18  Gerald Pfeifer  <gerald@pfeifer.com>
9889
9890         * doc/cpp.texi (Obsolete Features): Add background on the
9891         origin of assertions.
9892
9893 2011-02-17  Iain Sandoe  <iains@gcc.gnu.org>
9894
9895         * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
9896         objc_abi == 2.
9897         * config/darwin.c (output_objc_section_asm_op): Added support for
9898         ABI v1 and v2.
9899         (is_objc_metadata): New.
9900         (darwin_objc2_section): New.
9901         (darwin_objc1_section): New.
9902         (machopic_select_section): Added support for ABI v1 and v2.
9903         (darwin_emit_objc_zeroed): New.
9904         (darwin_output_aligned_bss): Detect objc metadata and treat it
9905         appropriately.
9906         (darwin_asm_output_aligned_decl_common): Same.
9907         (darwin_asm_output_aligned_decl_local): Same.
9908         * config/darwin-sections.def: Updated for ABI v1 and v2.
9909         * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
9910         compiling Objective-C code for the NeXT runtime, default to using
9911         ABI version 0 for 32-bit, and version 2 for 64-bit.
9912
9913 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
9914
9915         * common.opt (optimize_fast): New Variable.
9916         * opts.c (default_options_optimization): Use opts->x_optimize_fast
9917         instead of local variable ofast.
9918
9919 2011-02-17  Nicola Pero  <nicola.pero@meta-innovation.com>
9920
9921         * doc/invoke.texi (fobjc-abi-version): Documented.
9922         (fobjc-nilcheck): Documented.
9923         (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
9924         version.
9925
9926 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
9927
9928         PR driver/47390
9929         * common.opt (export-dynamic): New Driver option.
9930         * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
9931
9932 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
9933
9934         * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
9935
9936 2011-02-17  Alexandre Oliva  <aoliva@redhat.com>
9937             Jan Hubicka  <jh@suse.cz>
9938
9939         PR debug/47106
9940         PR debug/47402
9941         * cfgexpand.c (account_used_vars_for_block): Remove.
9942         (estimated_stack_frame_size): Use referenced vars.
9943         * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
9944         that were referenced in the original function.  Test src_fn
9945         rather than cfun.  Drop redundant get_var_ann.
9946         (setup_one_parameter): Drop redundant get_var_ann.
9947         (declare_return_variable): Likewise.
9948         (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
9949         (copy_arguments_for_versioning): Drop redundant get_var_ann.
9950         * ipa-inline.c (compute_inline_parameters): Do not compute
9951         disregard_inline_limits here.
9952         (compute_inlinable_for_current, pass_inlinable): New.
9953         (pass_inline_parameters): Require PROP_referenced_vars.
9954         * cgraphunit.c (cgraph_process_new_functions): Don't run
9955         compute_inline_parameters explicitly unless function is in SSA form.
9956         (cgraph_analyze_function): Set .disregard_inline_limits.
9957         * tree-sra.c (convert_callers): Compute inliner parameters
9958         only for functions already in SSA form.
9959
9960 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
9961
9962         * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
9963         -mlittle-endian-data.
9964
9965 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
9966
9967         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
9968         -mno-fpu, not -fpu and -no-fpu.
9969         * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
9970         * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
9971
9972 2011-02-17  Uros Bizjak  <ubizjak@gmail.com>
9973
9974         PR target/43653
9975         * config/i386/i386.c (ix86_secondary_reload): Handle SSE
9976         input reload with PLUS RTX.
9977
9978 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
9979
9980         * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
9981         of InverseVar(MDMX).
9982
9983 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
9984
9985         * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
9986         --m4-340.
9987
9988 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
9989
9990         * config/mn10300/mn10300.opt (mno-crt0): New.
9991
9992 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
9993
9994         * config/m68k/uclinux.opt (static-libc): New Driver option.
9995
9996 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
9997
9998         * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
9999
10000 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
10001
10002         * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
10003         %{muser-extend-enabled}.
10004
10005 2011-02-16  Richard Guenther  <rguenther@suse.de>
10006
10007         PR tree-optimization/47738
10008         * tree-ssa-loop.c (run_tree_predictive_commoning): Return
10009         the TODO from tree_predictive_commoning.
10010
10011 2011-02-15  Jeff Law  <law@redhat.com>
10012
10013         Revert
10014         2011-01-25  Jeff Law  <law@redhat.com>
10015
10016         PR rtl-optimization/37273
10017         * ira-costs.c (scan_one_insn): Detect constants living in memory and
10018         handle them like argument loads from stack slots.  Do not double
10019         count memory for memory constants and argument loads from stack slots.
10020
10021 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
10022
10023         PR middle-end/47725
10024         * combine.c (cant_combine_insn_p): Revert the last change.
10025
10026 2011-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
10027
10028         PR target/47755
10029         * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
10030         mode for vector constants.  Remove code that checks for TImode.
10031
10032 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
10033
10034         PR debug/47106
10035         PR debug/47402
10036         * cgraph.h (compute_inline_parameters): Return void.
10037         * ipa-inline.c (compute_inline_parameters): Adjust.
10038
10039 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
10040
10041         PR debug/47106
10042         PR debug/47402
10043         * tree-inline.h (estimated_stack_frame_size): Take cgraph node
10044         rather than decl.
10045         * cfgexpand.c (estimated_stack_frame_size): Likewise.
10046         * ipa-inline.c (compute_inline_parameters): Adjust.
10047
10048 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
10049
10050         PR debug/47106
10051         PR debug/47402
10052         * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
10053         Adjust all users.  Pass FN to...
10054         * tree-flow-inline.h (first_referenced_var): ... this.  Add
10055         fn argument.
10056         * ipa-struct-reorg.c: Adjust.
10057         * tree-dfa.c: Adjust.
10058         * tree-into-ssa.c: Adjust.
10059         * tree-sra.c: Adjust.
10060         * tree-ssa-alias.c: Adjust.
10061         * tree-ssa-live.c: Adjust.
10062         * tree-ssa.c: Adjust.
10063         * tree-ssanames.c: Adjust.
10064         * tree-tailcall.c: Adjust.
10065
10066 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
10067
10068         PR debug/47106
10069         PR debug/47402
10070         * tree-flow.h (referenced_var_lookup): Add fn parameter.
10071         Adjust all callers.
10072         * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
10073         * tree-flow-inline.h: Adjust.
10074         * gimple-pretty-print.c: Adjust.
10075         * tree-into-ssa.c: Adjust.
10076         * tree-ssa.c: Adjust.
10077         * cfgexpand.c: Adjust.
10078
10079 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
10080
10081         * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
10082         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10083         (EXTRA_CONSTRAINT): Delete.
10084         * config/iq2000/constraints.md: New file.
10085         * config/iq2000/iq2000.md: Include it.
10086         (define_insn ""): Delete.
10087         (movsi_internal2, movhi_internal2, movqi_internal2): Delete
10088         unsupported constraint letters from patterns.
10089         (call_value, call_value_internal1): Likewise.
10090         (call_value_multiple_internal1): Likewise.
10091
10092 2011-02-15  Nick Clifton  <nickc@redhat.com>
10093
10094         * config/mn10300/mn10300.c: Include tm-constrs.h.
10095         (struct liw_data): New data structure describing an LIW candidate
10096         instruction.
10097         (extract_bundle): Use struct liw_data.  Allow small integer
10098         operands for some instructions.
10099         (check_liw_constraints): Use struct liw_data.  Remove swapped
10100         parameter.  Add comments describing the checks.  Fix bug when
10101         assigning the source of liw1 to the source of liw2.
10102         (liw_candidate): Delete.  Code moved into extract_bundle.
10103         (mn10300_bundle_liw): Use struct liw_data.  Check constraints
10104         before swapping.
10105         * config/mn10300/predicates.md (liw_operand): New predicate.
10106         Allows registers and small integer constants.
10107         * config/mn10300/constraints.md (O): New constraint.  Accetps
10108         integers in the range -8 to +7 inclusive.
10109         * config/mn10300/mn10300.md (movesi_internal): Add an alternative
10110         for moving a small integer into a register.  Give this alternative
10111         LIW attributes.
10112         (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
10113         (ashlsi3): Likewise, plus give LIW attributes to the alternatives
10114         using the J,K,L and M constraints,
10115         (liw): Remove SI mode on second operands to allow for HI and QI
10116         mode values.
10117         (cmp_liw, liw_cmp): Likewise.  Plus fix order of operands in the
10118         instruction.
10119
10120 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
10121
10122         PR middle-end/47725
10123         * combine.c (cant_combine_insn_p): Check zero/sign extended
10124         hard registers.
10125
10126 2011-02-15  Richard Guenther  <rguenther@suse.de>
10127
10128         PR tree-optimization/47743
10129         * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
10130         for a non-type-compatible VN lookup bail out.
10131
10132 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
10133
10134         * config/fr30/constraints.md: New file.
10135         * config/fr30/fr30.md: Include it.
10136         * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
10137         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10138         (EXTRA_CONSTRAINT): Delete.
10139
10140 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
10141
10142         * config/frv/constraints.md: New file.
10143         * config/frv/predicates.md: Include it.
10144         * config/frv/frv.c (reg_class_from_letter): Delete.
10145         (frv_option_override): Don't initialize it.
10146         * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
10147         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
10148         (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
10149         (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
10150         (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
10151         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10152         (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
10153         (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
10154         (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
10155         (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
10156         (REG_CLASS_FROM_CONSTRAINT): Delete.
10157
10158 2011-02-15  Jakub Jelinek  <jakub@redhat.com>
10159
10160         PR middle-end/47581
10161         * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
10162         if frame size is 0 in a leaf function.
10163
10164 2011-02-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10165
10166         PR pch/14940
10167         * config/alpha/host-osf.c: New file.
10168         * config/alpha/x-osf: New file.
10169         * config.host (alpha*-dec-osf*): Use it.
10170
10171 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
10172
10173         * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
10174         * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
10175         * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
10176         (rx_mode_dependent_address_p): ...this. Make static. Change argument
10177         type to const_rtx.
10178         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
10179
10180 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
10181
10182         * config/stormy16/constraints.md: New file.
10183         * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
10184         Use satisfies_constraint_Q and satisfies_constraint_R.
10185         * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
10186         Delete.
10187         (xstormy16_legitiamte_address_p): Declare.
10188         * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
10189         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10190         (EXTRA_CONSTRAINT): Delete.
10191         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
10192         Un-staticize.
10193         (xstormy16_extra_constraint_p): Delete.
10194
10195 2011-02-14  Eric Botcazou  <ebotcazou@adacore.com>
10196
10197         PR tree-optimization/46494
10198         * loop-unroll.c (split_edge_and_insert): Adjust comment.
10199         * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
10200         (pass_rtl_loop_done): Add TODO_verify_flow.
10201         * fwprop.c (pass_rtl_fwprop): Likewise.
10202         * modulo-sched.c (pass_sms): Likewise.
10203         * tree-ssa-dom.c (pass_dominator): Likewise.
10204         * tree-ssa-loop-ch.c (pass_ch): Likewise.
10205         * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
10206         (pass_tree_loop_done): Likewise.
10207         * tree-ssa-pre.c (execute_pre): Likewise.
10208         * tree-ssa-reassoc.c (pass_reassoc): Likewise.
10209         * tree-ssa-sink.c (pass_sink_code): Likewise.
10210         * tree-vrp.c (pass_vrp): Likewise.
10211
10212 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
10213
10214         * config/v850/constraints.md: New file.
10215         * config/v850/v850.md: Include it.
10216         * config/v850/predicates.md (reg_or_0_operand): Use
10217         satisfies_constraint_G.
10218         (special_symbolref_operand): Use satisfies_constraint_K.
10219         * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
10220         (GO_IF_LEGITIMATE_ADDRESS): Likewise.
10221         (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
10222         (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
10223         (EXTRA_CONSTRAINT): Delete.
10224         (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
10225         (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
10226         (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
10227
10228 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
10229
10230         PR target/47696
10231         * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
10232         description.
10233
10234 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
10235
10236         * config/mcore/constraints.md: New file.
10237         * config/mcore/mcore.md: Include it.
10238         * config/mcore/mcore.c (reg_class_from_letter): Delete.
10239         * config/mcore/mcore.h (reg_class_from_letter): Delete.
10240         (REG_CLASS_FROM_LETTER): Delete.
10241         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
10242         insn_const_int_ok_for_constraint.
10243         (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
10244         (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
10245         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10246         (EXTRA_CONSTRAINT): Delete.
10247
10248 2011-02-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10249
10250         PR ada/41929
10251         * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
10252         (IS_SIGHANDLER): Define.
10253         (sparc64_is_sighandler): New function, split off from
10254         sparc64_fallback_frame_state.
10255         (sparc_is_sighandler): New function, split off from
10256         sparc_fallback_frame_state.
10257         (sparc64_fallback_frame_state): Merge with ...
10258         (sparc_fallback_frame_state): ... this into ...
10259         (MD_FALLBACK_FRAME_STATE_FOR): ... this.
10260         Change new_cfa to long.  Remove regs_off, fpu_save_off, fpu_save.
10261         Define nframes, mctx.  Use IS_SIGHANDLER, handler_args, mctx, walk
10262         stack instead of hardcoded offsets.
10263
10264 2011-02-14  Andriy Gapon  <avg@freebsd.org>
10265
10266         PR target/45808
10267         * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
10268
10269 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10270
10271         * configure: Regenerate.
10272
10273 2011-02-12  Joseph Myers  <joseph@codesourcery.com>
10274
10275         PR driver/45731
10276         * gcc.c (asm_options): Correct spec matching --target-help.
10277
10278 2011-02-12  Martin Jambor  <mjambor@suse.cz>
10279
10280         * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
10281         to gimple call error.
10282
10283 2011-02-12  Mike Stump  <mikestump@comcast.net>
10284
10285         * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
10286         comments in backslash regions.
10287
10288 2011-02-12  Mike Stump  <mikestump@comcast.net>
10289             Jakub Jelinek  <jakub@redhat.com>
10290             Iain Sandoe  <iains@gcc.gnu.org>
10291
10292         PR target/47324
10293         * dwarf2out.c (output_cfa_loc): When required, apply the
10294         DWARF2_FRAME_REG_OUT macro to adjust register numbers.
10295         (output_loc_sequence): Likewise.
10296         (output_loc_operands_raw): Likewise.
10297         (output_loc_sequence_raw): Likewise.
10298         (output_cfa_loc): Likewise.
10299         (output_loc_list): Suppress register number adjustment when
10300         calling output_loc_sequence()
10301         (output_die): Likewise.
10302
10303 2011-02-12  Anatoly Sokolov  <aesok@post.ru>
10304
10305         * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
10306         Remove macros.
10307         * config/xtensa/xtensa.c (xtensa_register_move_cost,
10308         xtensa_memory_move_cost): New functions.
10309         (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
10310
10311 2011-02-12  Alexandre Oliva  <aoliva@redhat.com>
10312
10313         PR lto/47225
10314         * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
10315         in the current directory.
10316         * configure: Rebuilt.
10317
10318 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
10319
10320         * config/darwin.c (darwin_override_options): Add a hunk missed
10321         from the commit of r168571.  Trim comment line lengths and
10322         correct indents of the preceding block.
10323
10324 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
10325
10326         * gcc.c (driver_handle_option): Concatenate the argument to -F with
10327         the switch.
10328
10329 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
10330
10331         * common.opt (nostartfiles): New Driver option.
10332
10333 2011-02-11  Xinliang David Li  <davidxl@google.com>
10334
10335         PR tree-optimization/47707
10336         * tree-chrec.c (convert_affine_scev): Keep type precision.
10337
10338 2011-02-11  Eric Botcazou  <ebotcazou@adacore.com>
10339
10340         PR tree-optimization/47420
10341         * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
10342
10343 2011-02-11  Pat Haugen  <pthaugen@us.ibm.com>
10344
10345         PR rtl-optimization/47614
10346         * rtl.h (check_for_inc_dec): Declare.
10347         * dse.c (check_for_inc_dec): Externalize...
10348         * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
10349         (reload_cse_simplify_operands): Don't simplify opnds with side effects.
10350
10351 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
10352
10353         PR driver/47678
10354         * gcc.c (main): Do not compile inputs if there were errors in
10355         option handling.
10356         * opts-common.c (read_cmdline_option): Check for wrong language
10357         after other error checks.
10358
10359 2011-02-11  Nathan Froyd  <froydnj@codesourcery.com>
10360
10361         * cgraph.c: Fix comment typos.
10362         * cgraph.h: Likewise.
10363         * cgraphunit.c: Likewise.
10364         * ipa-cp.c: Likewise.
10365         * ipa-inline.c: Likewise.
10366         * ipa-prop.c: Likewise.
10367         * ipa-pure-const.c: Likewise.
10368         * ipa-ref.c: Likewise.
10369         * ipa-reference.c: Likewise.
10370
10371 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
10372
10373         PR debug/47684
10374         * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
10375
10376 2011-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10377
10378         PR testsuite/47400
10379         * doc/sourcebuild.texi (Require Support): Document
10380         dg-require-ascii-locale.
10381
10382 2011-02-11  Mingjie Xing  <mingjie.xing@gmail.com>
10383
10384         * doc/lto.texi (Write summary): Fix missing parentheses.
10385
10386 2011-02-10  DJ Delorie  <dj@redhat.com>
10387
10388         * config/m32c/m32c.c (m32c_option_override): Disable
10389         -fcombine-stack-adjustments until flag value tracking and compare
10390         optimization can be rewritten.
10391
10392 2011-02-10  Peter Bergner  <bergner@vnet.ibm.com>
10393
10394         * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
10395         PROCESSOR_POWER7.
10396         (PROCESSOR_DEFAULT64): Likewise.
10397
10398 2011-02-10  Richard Henderson  <rth@redhat.com>
10399
10400         * config/rx/predicates.md (rx_zs_comparison_operator): Revert
10401         change from 2011-02-03.
10402         * config/rx/rx.c (flags_from_code): Likewise.
10403         (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
10404         is valid, n/pz otherwise.
10405         (rx_select_cc_mode): Return CCmode if Y is not zero.
10406
10407 2011-02-10  Richard Guenther  <rguenther@suse.de>
10408
10409         * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
10410
10411 2011-02-10  Richard Guenther  <rguenther@suse.de>
10412
10413         PR tree-optimization/47677
10414         * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
10415
10416 2011-02-10  Jakub Jelinek  <jakub@redhat.com>
10417
10418         PR target/47665
10419         * combine.c (make_compound_operation): Only change shifts into
10420         multiplication for SCALAR_INT_MODE_P.
10421
10422 2011-02-10  Jie Zhang  <jie@codesourcery.com>
10423
10424         PR testsuite/47622
10425         Revert
10426         2011-02-05  Jie Zhang  <jie@codesourcery.com>
10427         PR debug/42631
10428         * web.c (entry_register): Don't clobber the number of the
10429         first uninitialized reference in used[].
10430
10431 2011-02-09  Richard Guenther  <rguenther@suse.de>
10432
10433         PR tree-optimization/47664
10434         * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
10435         all edges again.
10436
10437 2011-02-09  David Edelsohn  <dje.gcc@gmail.com>
10438
10439         PR target/46481
10440         PR target/47032
10441         * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
10442         PROCESSOR_POWER7.
10443         (PROCESSOR_DEFAULT64): Same.
10444         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
10445
10446 2011-02-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10447
10448         * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
10449
10450 2011-02-09  Martin Jambor  <mjambor@suse.cz>
10451
10452         PR middle-end/45505
10453         * tree-sra.c (struct access): New flags grp_scalar_read and
10454         grp_scalar_write.  Changed description of assignment read and write
10455         flags.
10456         (dump_access): Dump new flags, reorder all of them.
10457         (sort_and_splice_var_accesses): Set the new flag accordingly, use them
10458         to detect multiple scalar reads.
10459         (analyze_access_subtree): Use the new scalar read write flags instead
10460         of the old flags.  Adjusted comments.
10461
10462 2011-02-08  DJ Delorie  <dj@redhat.com>
10463
10464         PR target/47548
10465         * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
10466         patterns.
10467
10468 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
10469
10470         * config/m68k/uclinux.opt: New.
10471         * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
10472
10473 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
10474
10475         * config/cris/elf.opt (sim): New Driver option.
10476
10477 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
10478
10479         * config/xtensa/elf.opt: New.
10480         * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
10481
10482 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
10483
10484         * config/vax/elf.opt: New.
10485         * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
10486
10487 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
10488
10489         * config/rs6000/aix64.opt (posix, pthread): New Driver options.
10490
10491 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
10492
10493         * config/gnu-user.opt: New.
10494         * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
10495         *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
10496         *-*-uclinux*): Use gnu-user.opt.
10497
10498 2011-02-08  Thomas Schwinge  <thomas@schwinge.name>
10499
10500         * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
10501         * config/i386/gnu.h (CPP_SPEC): Likewise.
10502
10503 2011-02-08  Ian Lance Taylor  <iant@google.com>
10504
10505         * common.opt (fcx-limited-range): Add SetByCombined flag.
10506         (ffinite-math-only, fmath-errno, frounding-math): Likewise.
10507         (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
10508         (fassociative-math, freciprocal-math): Likewise.
10509         (funsafe-math-optimizations): Likewise.
10510         * opth-gen.awk: Handle SetByCombined.
10511         * optc-gen.awk: Likewise.
10512         * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
10513         (set_unsafe_math_optimizations_flags): Likewise.
10514         * doc/options.texi (Option properties): Document SetByCombined.
10515
10516 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
10517
10518         * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
10519         i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
10520         m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
10521         m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
10522         sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
10523
10524 2011-02-08  Sebastian Pop  <sebastian.pop@amd.com>
10525
10526         PR tree-optimization/46834
10527         PR tree-optimization/46994
10528         PR tree-optimization/46995
10529         * graphite-sese-to-poly.c (used_outside_reduction): New.
10530         (detect_commutative_reduction): Call used_outside_reduction.
10531         (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
10532         translate_scalar_reduction_to_array only when at least one
10533         loop-phi/close-phi tuple has been detected.
10534
10535 2011-02-08  Richard Guenther  <rguenther@suse.de>
10536
10537         PR middle-end/47639
10538         * tree-vect-generic.c (expand_vector_operations_1): Update
10539         stmts here ...
10540         (expand_vector_operations): ... not here.  Cleanup EH info
10541         and the CFG if required.
10542
10543 2011-02-08  Richard Guenther  <rguenther@suse.de>
10544
10545         PR tree-optimization/47641
10546         * tree-ssa.c (execute_update_addresses_taken): For asm outputs
10547         require type compatibility.
10548
10549 2011-02-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10550
10551         * gimple-low.c (lower_function_body): Don't remove the location of
10552         the return statement here.
10553         (lower_gimple_return): Do it here instead but only if the return
10554         statement is actually used twice.
10555
10556 2011-02-08  Richard Guenther  <rguenther@suse.de>
10557
10558         PR tree-optimization/47632
10559         * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
10560         unused up_to_stmt parameter, return whether cfg-cleanup is
10561         necessary, remove EH info properly.
10562         (forward_propagate_into_gimple_cond): Adjust caller.
10563         (forward_propagate_into_cond): Likewise.
10564         (forward_propagate_comparison): Likewise.
10565         (tree_ssa_forward_propagate_single_use_vars): Make
10566         forward_propagate_comparison case similar to the two others.
10567
10568 2011-02-08  Nick Clifton  <nickc@redhat.com>
10569
10570         * config/mn10300/mn10300.opt (mliw): New command line option.
10571         * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
10572         (liw_bundling): New automaton.
10573         (liw): New attribute.
10574         (liw_op): New attribute.
10575         (liw_op1, liw_op2, liw_both, liw_either): New reservations.
10576         (movsi_internal): Add LIW attributes.
10577         (andsi3): Likewise.
10578         (iorsi3): Likewise.
10579         (xorsi3): Likewise.
10580         (addsi3): Separate register and immediate alternatives.
10581         Add LIW attributes.
10582         (subsi3): Likewise.
10583         (cmpsi): Likewise.
10584         (aslsi3): Likewise.
10585         (lshrsi3): Likewise.
10586         (ashrsi3): Likewise.
10587         (liw): New pattern.
10588         * config/mn10300/mn10300.c (liw_op_names): New
10589         (mn10300_print_operand): Handle 'W' operand descriptor.
10590         (extract_bundle): New function.
10591         (check_liw_constraints): New function.
10592         (liw_candidate): New function.
10593         (mn10300_bundle_liw): New function.
10594         (mn10300_reorg): New function.
10595         (TARGET_MACHINE_DEPENDENT_REORG): Define.
10596         (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
10597         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
10598         __LIW__ or __NO_LIW__.
10599         * doc/invoke.texi: Describe the -mliw command line option.
10600
10601 2011-02-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10602
10603         * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
10604         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
10605         pthread_mutex_unlock): Remove.
10606         * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
10607         * config/pa/t-pa64: Likewise.
10608         * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
10609         shared libc if not linking against libpthread.
10610         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
10611
10612 2011-02-07  Iain Sandoe  <iains@gcc.gnu.org>
10613
10614         PR target/47558
10615         * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
10616         on 10.6 and later to ensure that we always use the unwinder from
10617         the system.  Only add -no_compact_unwind when tarteting darwin
10618         10.6 or later.
10619
10620 2011-02-07  Steve Ellcey  <sje@cup.hp.com>
10621
10622         PR target/46997
10623         * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
10624         (vec_interleave_lowv2sf): Ditto.
10625         (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
10626         (vec_extract_oddv2sf): Ditto.
10627
10628 2011-02-07  Mike Stump  <mikestump@comcast.net>
10629
10630         PR target/42333
10631         Add __ieee_divdc3 entry point.
10632         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
10633         entry point.
10634         (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
10635         * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
10636         * config/darwin.c (darwin_rename_builtins): Add.
10637         * config/darwin-protos.h (darwin_rename_builtins): Add.
10638
10639 2011-02-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
10640
10641         PR target/47636
10642         * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
10643         for the condition.
10644
10645 2011-02-07  Mike Stump  <mikestump@comcast.net>
10646
10647         * config/darwin.opt (mmacosx-version-min): Update default OS version.
10648
10649 2011-02-07  Denis Chertykov  <chertykov@gmail.com>
10650
10651         PR target/47534
10652         * config/avr/libgcc.S (exit): Move .endfunc
10653
10654 2011-02-07  Richard Guenther  <rguenther@suse.de>
10655
10656         PR tree-optimization/47615
10657         * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
10658         * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
10659         (run_scc_vn): Initialize it.
10660         (visit_reference_op_load): Use it.
10661         * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
10662
10663 2011-02-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10664
10665         * config/spu/spu.c (spu_init_libfuncs): Install SImode and
10666         DImode trapping arithmetic libfuncs.
10667
10668 2011-02-07  Richard Guenther  <rguenther@suse.de>
10669
10670         PR tree-optimization/47621
10671         * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
10672         two duplicates ...
10673         (execute_update_addresses_taken): ... here.  Make it more
10674         conservative in what we accept.
10675
10676 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
10677
10678         * config/sparc/freebsd.h (ASM_SPEC): Define.
10679         * config/sparc/vxworks.h (ASM_SPEC): Define.
10680
10681 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
10682
10683         * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
10684
10685 2011-02-06  Steven Bosscher  <steven@gcc.gnu.org>
10686
10687         * doc/invoke.texi: Remove reference to compiler internals from
10688         user documentation.
10689
10690         * reg-notes.def: Remove REG_VALUE_PROFILE.
10691         * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
10692
10693 2011-02-05  Jakub Jelinek  <jakub@redhat.com>
10694
10695         PR middle-end/47610
10696         * varasm.c (default_section_type_flags): If decl is NULL,
10697         and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
10698
10699 2011-02-05  Jie Zhang  <jie@codesourcery.com>
10700
10701         PR debug/42631
10702         * web.c (entry_register): Don't clobber the number of the
10703         first uninitialized reference in used[].
10704
10705 2011-02-04  Sebastian Pop  <sebastian.pop@amd.com>
10706
10707         PR tree-optimization/46194
10708         * tree-data-ref.c (analyze_miv_subscript): Remove comment.
10709         (build_classic_dist_vector_1): Do not represent classic distance
10710         vectors when the access functions are variating in different loops.
10711
10712 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
10713
10714         * config/mips/iris6.opt: New.
10715         * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
10716
10717 2011-02-04  Richard Henderson  <rth@redhat.com>
10718             Steve Ellcey  <sje@cup.hp.com>
10719
10720         PR target/46997
10721         * config/ia64/predicates.md (mux1_brcst_element): New.
10722         * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
10723         * config/ia64/ia64.c (ia64_unpack_assemble): New.
10724         (ia64_unpack_sign): New.
10725         (ia64_expand_unpack): Rewrite using new routines.
10726         (ia64_expand_widen_sum): Ditto.
10727         (ia64_expand_dot_prod_v8qi): Ditto.
10728         * config/ia64/vect.md (mulv8qi3): Rewrite to use new
10729         routines, add endian check.
10730         (pmpy2_even): Rename from pmpy2_r, add endian check.
10731         (pmpy2_odd): Rename from pmpy2_l, add endian check.
10732         (vec_widen_smult_lo_v4hi): Rewrite using new routines.
10733         (vec_widen_smult_hi_v4hi): Ditto.
10734         (vec_widen_umult_lo_v4hi): Ditto.
10735         (vec_widen_umult_hi_v4hi): Ditto.
10736         (mulv2si3): Change endian checks.
10737         (sdot_prodv4hi): Rewrite with new calls.
10738         (udot_prodv4hi): New.
10739         (vec_pack_ssat_v4hi): Add endian check.
10740         (vec_pack_usat_v4hi): Ditto.
10741         (vec_pack_ssat_v2si): Ditto.
10742         (max1_even): Rename from max1_r, add endian check.
10743         (max1_odd): Rename from max1_l, add endian check.
10744         (*mux1_rev): Format change.
10745         (*mux1_mix): Ditto.
10746         (*mux1_shuf): Ditto.
10747         (*mux1_alt): Ditto.
10748         (*mux1_brcst_v8qi): Use new predicate.
10749         (vec_extract_evenv8qi): Remove endian check.
10750         (vec_extract_oddv8qi): Ditto.
10751         (vec_interleave_lowv4hi): Format change.
10752         (vec_interleave_highv4hi): Ditto.
10753         (mix2_even): Rename from mix2_r, add endian check.
10754         (mix2_odd): Rename from mux2_l, add endian check.
10755         (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
10756         (vec_extract_evenodd_helper): Format change.
10757         (vec_extract_evenv4hi): Remove endian check.
10758         (vec_extract_oddv4hi): Remove endian check.
10759         (vec_interleave_lowv2si): Format change.
10760         (vec_interleave_highv2si): Format change.
10761         (vec_initv2si): Remove endian check.
10762         (vecinit_v2si): Add endian check.
10763         (reduc_splus_v2sf): Add endian check.
10764         (reduc_smax_v2sf): Ditto.
10765         (reduc_smin_v2sf): Ditto.
10766         (vec_initv2sf): Remove endian check.
10767         (fpack): Add endian check.
10768         (fswap): Add endian check.
10769         (vec_interleave_highv2sf): Add endian check.
10770         (vec_interleave_lowv2sf): Add endian check.
10771         (fmix_lr): Add endian check.
10772         (vec_setv2sf): Format change.
10773         (*vec_extractv2sf_0_be): Use shift to extract operand.
10774         (*vec_extractv2sf_1_be): New.
10775         (vec_pack_trunc_v4hi): Add endian check.
10776         (vec_pack_trunc_v2si): Format change.
10777
10778 2011-02-04  Jakub Jelinek  <jakub@redhat.com>
10779
10780         PR inline-asm/23200
10781         * tree-ssa-ter.c (is_replaceable_p): Add TER argument.  Don't
10782         do bb, locus and block comparison and disallow loads if it is not set.
10783         (stmt_is_replaceable_p): New function.
10784         (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
10785         callers.
10786         * expr.c (expand_expr_real_1) <case SSA_NAME>: If
10787         get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
10788         SSA_NAME_DEF_STMT.
10789         * tree-flow.h (stmt_is_replaceable_p): New prototype.
10790
10791 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
10792
10793         * config/rs6000/xilinx.opt: New.
10794         * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
10795
10796 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
10797
10798         * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
10799
10800 2011-02-03  Anatoly Sokolov  <aesok@post.ru>
10801
10802         * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
10803         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
10804         * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
10805         secondary_reload_info, xtensa_secondary_reload): Remove.
10806         * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
10807         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
10808         (xtensa_preferred_reload_class): Make static. Change return and
10809         'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
10810         Use CONST_DOUBLE_P predicate.
10811         (xtensa_preferred_output_reload_class): New function.
10812         (xtensa_secondary_reload): Make static.
10813
10814 2011-02-03  Joseph Myers  <joseph@codesourcery.com>
10815
10816         * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
10817         Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
10818         Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
10819
10820 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
10821
10822         PR middle-end/31490
10823         * output.h (SECTION_RELRO): Define.
10824         (SECTION_MACH_DEP): Adjust.
10825         (get_variable_section): New prototype.
10826         * varpool.c (varpool_finalize_named_section_flags): New function.
10827         (varpool_assemble_pending_decls): Call it.
10828         * cgraph.h (varpool_finalize_named_section_flags): New prototype.
10829         * cgraphunit.c (cgraph_output_in_order): Call
10830         varpool_finalize_named_section_flags.
10831         * varasm.c (get_section): Allow section flags conflicts between
10832         relro and read-only sections if the section hasn't been declared yet.
10833         Set SECTION_OVERRIDE after diagnosing section type conflict.
10834         (get_variable_section): No longer static.
10835         (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
10836         readonly sections that need relocations.
10837         (decl_readonly_section_1): New function.
10838         (decl_readonly_section): Use it.
10839
10840         Revert:
10841         2010-11-17  Dinar Temirbulatov  <dtemirbulatov@gmail.com>
10842                     Steve Ellcey  <sje@cup.hp.com>
10843
10844         PR middle-end/31490
10845         * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
10846         if section attribute used.
10847
10848 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
10849
10850         * config/darwin.h (SECTION_NO_ANCHOR): Remove.
10851         * config/darwin.c (SECTION_NO_ANCHOR): Define.
10852         (darwin_init_sections): Remove assertion.
10853
10854 2011-02-03  Nick Clifton  <nickc@redhat.com>
10855
10856         * config/rx/predicates.md (rx_zs_comparison_operator): Remove
10857         lt and ge.
10858         * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
10859         * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
10860         instead of "n" and "pz".
10861         (flags_from_code): LT and GE tests need CC_FLAG_O as well as
10862         CC_FLAG_S.
10863
10864 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
10865
10866         PR target/47312
10867         * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
10868         fma, expand FMA_EXPR as fma{,f,l} call.
10869
10870         PR lto/47274
10871         * lto-streamer-out.c (write_symbol): When writing kind and visibility,
10872         copy them into a unsigned char variable and pass address of it to
10873         lto_output_data_stream.
10874
10875         PR target/47564
10876         * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
10877         around backend_init_target and lang_dependent_init_target calls.
10878         * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
10879         (verify_cgraph_node): Don't call set_cfun here.  Use
10880         cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
10881         Set error_found for incorrectly represented calls to thunks.
10882
10883 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
10884
10885         PR debug/43092
10886         PR rtl-optimization/43494
10887         * rtl.h (for_each_inc_dec_fn): New type.
10888         (for_each_inc_dec): Declare.
10889         * rtlanal.c (struct for_each_inc_dec_ops): New type.
10890         (for_each_inc_dec_find_inc_dec): New fn.
10891         (for_each_inc_dec_find_mem): New fn.
10892         (for_each_inc_dec): New fn.
10893         * dse.c (struct insn_size): Remove.
10894         (replace_inc_dec, replace_inc_dec_mem): Remove.
10895         (emit_inc_dec_insn_before): New fn.
10896         (check_for_inc_dec): Use it, along with for_each_inc_dec.
10897         (canon_address): Pass mem modes to cselib_lookup.
10898         * cselib.h (cselib_lookup): Add memmode argument.  Adjust callers.
10899         (cselib_lookup_from_insn): Likewise.
10900         (cselib_subst_to_values): Likewise.
10901         * cselib.c (find_slot_memmode): New var.
10902         (cselib_find_slot): New fn.  Use it instead of
10903         htab_find_slot_with_hash everywhere.
10904         (entry_and_rtx_equal_p): Use find_slot_memmode.
10905         (autoinc_split): New fn.
10906         (rtx_equal_for_cselib_p): Rename and implement in terms of...
10907         (rtx_equal_for_cselib_1): ... this.  Take memmode, pass it on.
10908         Deal with autoinc.  Special-case recursion into MEMs.
10909         (cselib_hash_rtx): Likewise.
10910         (cselib_lookup_mem): Infer pmode from address mode.  Distinguish
10911         address and MEM modes.
10912         (cselib_subst_to_values): Add memmode, pass it on.
10913         Deal with autoinc.
10914         (cselib_lookup): Add memmode argument, pass it on.
10915         (cselib_lookup_from_insn): Add memmode.
10916         (cselib_invalidate_rtx): Discard obsolete push_operand handling.
10917         (struct cselib_record_autoinc_data): New.
10918         (cselib_record_autoinc_cb): New fn.
10919         (cselib_record_sets): Use it, along with for_each_inc_dec.  Pass MEM
10920         mode to cselib_lookup.  Reset autoinced REGs here instead of...
10921         (cselib_process_insn): ... here.
10922         * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
10923         to cselib_lookup.
10924         (add_uses): Likewise, also to cselib_subst_to_values.
10925         (add_stores): Likewise.
10926         * sched-deps.c  (add_insn_mem_dependence): Pass mode to
10927         cselib_subst_to_values.
10928         (sched_analyze_1, sched_analyze_2): Likewise.  Adjusted.
10929         * gcse.c (do_local_cprop): Adjusted.
10930         * postreload.c (reload_cse_simplify_set): Adjusted.
10931         (reload_cse_simplify_operands): Adjusted.
10932         * sel-sched-dump (debug_mem_addr_value): Pass mode.
10933
10934 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
10935
10936         PR tree-optimization/45122
10937         * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
10938         unsafe assumptions when there's more than one loop exit.
10939
10940 2011-02-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
10941
10942         PR target/47272
10943         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
10944         Document using vector double with the load/store builtins, and
10945         that the load/store builtins always use Altivec instructions.
10946
10947         * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
10948         to use altivec memory instructions, even on VSX.
10949         (vector_altivec_store_<mode>): Ditto.
10950
10951         * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
10952         function.
10953
10954         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
10955         V2DF, V2DI support to load/store overloaded builtins.
10956
10957         * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
10958         altivec load/store builtins for V2DF/V2DI types.
10959
10960         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
10961         set avoid indexed addresses on power6 if -maltivec.
10962         (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
10963         vector_altivec_load/vector_altivec_store builtins.
10964         (altivec_expand_st_builtin): Ditto.
10965         (altivec_expand_builtin): Add VSX memory builtins.
10966         (rs6000_init_builtins): Add V2DI types to internal types.
10967         (altivec_init_builtins): Add support for V2DF/V2DI altivec
10968         load/store builtins.
10969         (rs6000_address_for_altivec): Insure memory address is appropriate
10970         for Altivec.
10971
10972         * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
10973         vec_vsx_ld and vec_vsx_st.
10974         (vsx_store_<mode>): Ditto.
10975
10976         * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
10977         variables to hold long long types for VSX vector memory builtins.
10978         (RS6000_BTI_unsigned_long_long): Ditto.
10979         (long_long_integer_type_internal_node): Ditti.
10980         (long_long_unsigned_type_internal_node): Ditti.
10981
10982         * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
10983         (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
10984         (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
10985
10986         * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
10987         short cuts.
10988         (vec_vsx_st): Ditto.
10989
10990 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
10991
10992         * config/pa/pa-hpux10.opt: New.
10993         * config/hpux11.opt (pthread): New Driver option.
10994         * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
10995         * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
10996
10997 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
10998
10999         * config/ia64/vms.opt: New.
11000         * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
11001
11002 2011-02-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
11003
11004         PR target/47580
11005         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
11006         gpc_reg_operand instead of vsx_register_operand to match rs6000.md
11007         generator functions.
11008         (vsx_floatuns<VSi><mode>2): Ditto.
11009         (vsx_fix_trunc<mode><VSi>2): Ditto.
11010         (vsx_fixuns_trunc<mode><VSi>2): Ditto.
11011
11012 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
11013
11014         * config/i386/djgpp.opt (posix): New Driver option.
11015
11016 2011-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
11017
11018         * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
11019         Move to the unsupported targets list.
11020
11021 2011-02-02  Peter Bergner  <bergner@vnet.ibm.com>
11022
11023         PR rtl-optimization/47525
11024         * df-scan.c: Update copyright years.
11025         (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
11026         and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
11027
11028 2011-02-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11029
11030         * config/i386/sysv4.h (TARGET_VERSION): Remove.
11031         (SUBTARGET_RETURN_IN_MEMORY): Remove.
11032         (ASM_OUTPUT_ASCII): Remove.
11033         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
11034
11035 2011-02-02  Jeff Law  <law@redhat.com>
11036
11037         PR middle-end/47543
11038         * reload.c (find_reloads_address): Handle reg+d address where both
11039         components are invalid by reloading the entire address.
11040
11041 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
11042             Richard Guenther  <rguenther@suse.de>
11043
11044         PR tree-optimization/40979
11045         PR bootstrap/47044
11046         * passes.c (init_optimization_passes): After LIM call copy_prop
11047         and DCE to clean up.
11048         * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
11049
11050 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
11051
11052         PR tree-optimization/47576
11053         PR tree-optimization/47555
11054         * doc/invoke.texi (scev-max-expr-complexity): Documented.
11055         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
11056         (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
11057         * tree-scalar-evolution.c (follow_ssa_edge): Use
11058         PARAM_SCEV_MAX_EXPR_COMPLEXITY.
11059
11060 2011-02-02  Richard Guenther  <rguenther@suse.de>
11061
11062         PR tree-optimization/47566
11063         * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
11064
11065 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
11066
11067         PR debug/47106
11068         PR debug/47402
11069         * tree-inline.c (declare_return_variable): Remove unused caller
11070         variable.
11071
11072         PR debug/47106
11073         PR debug/47402
11074         * tree-flow-inline.h (clear_is_used, is_used_p): New.
11075         * cfgexpand.c (account_used_vars_for_block): Use them.
11076         * tree-nrv.c (tree_nrv): Likewise.
11077         * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
11078         (dump_scope_block): Likewise.
11079         (remove_unused_locals): Likewise.
11080
11081         PR debug/47106
11082         PR debug/47402
11083         * tree-inline.c (declare_return_variable): Add result decl to
11084         local decls only once.
11085         * gimple-low.c (record_vars_into): Mark newly-created variables
11086         as referenced.
11087
11088 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
11089
11090         PR debug/47498
11091         PR debug/47501
11092         PR debug/45136
11093         PR debug/45130
11094         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
11095         debug insns.
11096         (no_real_insns_p, schedule_block, set_priorities): Drop special
11097         treatment of boundary debug insns.
11098         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
11099         * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
11100         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
11101         (BOUNDARY_DEBUG_INSN_P): Likewise.
11102         (SCHEDULE_DEBUG_INSN_P): Likewise.
11103         * sched-rgn.c (init_ready_list): Drop special treatment of
11104         boundary debug insns.
11105         * final.c (rest_of_clean_state): Clear notes' BB.
11106
11107 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
11108
11109         * config/openbsd.opt (assert=): New Driver option.
11110
11111 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
11112
11113         * config/i386/nto.opt: New.
11114         * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
11115
11116 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
11117
11118         * config/i386/netware.opt: New.
11119         * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
11120
11121 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
11122
11123         * config/interix.opt (posix): New Driver option.
11124
11125 2011-02-01  DJ Delorie  <dj@redhat.com>
11126
11127         * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
11128
11129         * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
11130         class for A0/A1.
11131
11132 2011-02-01  Sebastian Pop  <sebastian.pop@amd.com>
11133
11134         PR tree-optimization/47561
11135         * toplev.c (process_options): Print the Graphite flags.  Add
11136         flag_loop_flatten to the list of options requiring Graphite.
11137
11138 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
11139
11140         * config/i386/cygming.opt (posix): New Driver option.
11141
11142 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
11143
11144         * config/arm/vxworks.opt: New.
11145         * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
11146
11147 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
11148
11149         * config/alpha/elf.opt: New.
11150         * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
11151         alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
11152
11153 2011-02-01  Richard Guenther  <rguenther@suse.de>
11154
11155         PR tree-optimization/47559
11156         * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
11157         store-motion on references that can throw.
11158
11159 2011-02-01  Bernd Schmidt  <bernds@codesourcery.com>
11160
11161         * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
11162         * tree-pass.h (TDF_CSELIB): New macro.
11163         * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
11164         cselib_lookup): Check for it rather than for TDF_DETAILS.
11165
11166 2011-02-01  H.J. Lu  <hongjiu.lu@intel.com>
11167
11168         PR driver/47547
11169         * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
11170         is HOST_BIT_BUCKET.
11171
11172         * opts.c (finish_options): Don't add x_aux_base_name if it is
11173         HOST_BIT_BUCKET.
11174
11175 2011-02-01  Richard Guenther  <rguenther@suse.de>
11176
11177         PR tree-optimization/47555
11178         Revert
11179         2010-07-15  Sebastian Pop  <sebastian.pop@amd.com>
11180
11181         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
11182
11183 2011-02-01  Sebastien Bourdeauducq  <sebastien@milkymist.org>
11184
11185         PR gcc/46692
11186         * config/lm32/t-lm32: Add multilib for all CPU options.
11187
11188 2011-02-01  Richard Guenther  <rguenther@suse.de>
11189
11190         PR tree-optimization/47541
11191         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
11192         sure to have a field at offset zero.
11193
11194 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
11195
11196         * config/arc/arc.opt (EB, EL): New Driver options.
11197
11198 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
11199
11200         * config/alpha/osf5.opt: New.
11201         * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
11202
11203 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
11204
11205         * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
11206
11207 2011-01-31  Sebastian Pop  <sebastian.pop@amd.com>
11208
11209         * common.opt (ftree-loop-linear): Use Alias to make it an alias of
11210         -floop-interchange.
11211         * invoke.texi (-ftree-loop-linear): Make it clear that this flag
11212         is an alias of -floop-interchange and that it requires the
11213         Graphite infrastructure.
11214         * tree-ssa-loop.c (gate_graphite_transforms): Do not set
11215         flag_loop_interchange based on the value of flag_tree_loop_linear.
11216
11217 2011-01-31  Jakub Jelinek  <jakub@redhat.com>
11218             Richard Guenther  <rguenther@suse.de>
11219
11220         PR tree-optimization/47538
11221         * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
11222         type instead of r1type, except for comparisons.  For right
11223         shifts and comparisons punt if there are mismatches in
11224         sizetype vs. non-sizetype types.
11225
11226 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11227
11228         * doc/sourcebuild.texi (Effective-Target Keywords): Document
11229         avx_runtime.
11230
11231 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11232
11233         * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
11234         version number.
11235         * configure: Regenerate.
11236
11237 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11238
11239         * configure.ac (gcc_cv_ld_static_option): Define.
11240         (gcc_cv_ld_dynamic_option): Define.
11241         (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
11242         instead.
11243         (HAVE_LD_STATIC_DYNAMIC): Update message.
11244         (LD_STATIC_OPTION): Define.
11245         (LD_DYNAMIC_OPTION): Define.
11246         * configure: Regenerate.
11247         * config.in: Regenerate.
11248         * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
11249         HAVE_LD_STATIC_DYNAMIC]: Use them.
11250
11251 2011-01-31  Nick Clifton  <nickc@redhat.com>
11252
11253         * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
11254         registers inside interrupt handlers if the handler is not a leaf
11255         function.
11256
11257 2011-01-31  Nick Clifton  <nickc@redhat.com>
11258
11259         * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
11260         reg_renumber returning an INVALID_REGNUM.
11261
11262 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
11263
11264         PR libgcj/44341
11265         * doc/install.texi: Document host options discarded when cross
11266         configuring target libraries.
11267
11268 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
11269
11270         Reverted:
11271         2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
11272         PR debug/45136
11273         PR debug/45130
11274         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
11275         debug insns.
11276         (no_real_insns_p, schedule_block, set_priorities): Drop special
11277         treatment of boundary debug insns.
11278         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
11279         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
11280         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
11281         (BOUNDARY_DEBUG_INSN_P): Likewise.
11282         (SCHEDULE_DEBUG_INSN_P): Likewise.
11283         * sched-rgn.c (init_ready_list): Drop special treatment of
11284         boundary debug insns.
11285         * final.c (rest_of_clean-state): Clear notes' BB.
11286
11287 2011-01-31  Alan Modra  <amodra@gmail.com>
11288
11289         * config/rs6000/rs6000.c (print_operand): Rearrange addends in
11290         toc relative expressions as we do in print_operand_address.
11291
11292 2011-01-30  Kazu Hirata  <kazu@codesourcery.com>
11293
11294         * doc/extend.texi: Follow spelling conventions.
11295         * doc/invoke.texi: Fix a typo.
11296
11297 2011-01-30  Joseph Myers  <joseph@codesourcery.com>
11298
11299         * config/hpux11.opt: New.
11300         * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
11301         ia64*-*-hpux*): Use hpux11.opt.
11302
11303 2011-01-30  Jonathan Yong  <jon_y@users.sourceforge.net>
11304
11305         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
11306         to tmake_file.
11307
11308 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
11309
11310         * doc/install.texi (hppa-hp-hpux10): Remove references to HP
11311         support sites.
11312
11313 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
11314
11315         * doc/install.texi (Binaries): Remove outdated reference for
11316         Motorola 68HC11/68HC12 downloads.
11317
11318 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
11319
11320         * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
11321         Drepper's paper.
11322
11323 2011-01-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
11324
11325         PR bootstrap/47147
11326         * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
11327         used by NetBSD.
11328
11329 2011-01-28  Ahmad Sharif  <asharif@google.com>
11330
11331         * value-prof.c (check_counter): Corrected error message.
11332
11333 2011-01-29  Jie Zhang  <jie@codesourcery.com>
11334
11335         * config/arm/arm.c (arm_legitimize_reload_address): New.
11336         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
11337         arm_legitimize_reload_address.
11338         * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
11339
11340 2011-01-28  Ian Lance Taylor  <iant@google.com>
11341
11342         * godump.c (go_define): Ignore macros whose definitions include
11343         two adjacent operands.
11344
11345 2011-01-28  Jakub Jelinek  <jakub@redhat.com>
11346
11347         PR target/42894
11348         * varasm.c (force_const_mem): Store copy of x in desc->constant
11349         instead of x itself.
11350         * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
11351         itself into REG_EQUAL note.
11352
11353 2011-01-28  Joseph Myers  <joseph@codesourcery.com>
11354
11355         * config/freebsd.opt (posix, rdynamic): New Driver options.
11356
11357 2011-01-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11358
11359         * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
11360         -Bstatic/-Bdynamic.
11361         * configure: Regenerate.
11362
11363 2011-01-27  Joseph Myers  <joseph@codesourcery.com>
11364
11365         * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
11366         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
11367
11368 2011-01-27  Anatoly Sokolov  <aesok@post.ru>
11369
11370         * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
11371         * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
11372         * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
11373         (s390_preferred_reload_class): Make static. Change return and
11374         'rclass' argument type to reg_class_t.
11375
11376 2011-01-27  Jan Hubicka  <jh@suse.cz>
11377
11378         PR middle-end/46949
11379         * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
11380         (process_function_and_variable_attributes): Check defined weakrefs.
11381
11382 2011-01-27  Martin Jambor  <mjambor@suse.cz>
11383
11384         PR tree-optimization/47228
11385         * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
11386         build_ref_for_offset.
11387
11388 2011-01-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11389
11390         * config/spu/spu-elf.h (ASM_SPEC): Remove.
11391
11392 2011-01-26  Mikael Pettersson  <mikpe@it.uu.se>
11393
11394         PR rtl-optimization/46856
11395         * postreload.c (reload_combine_recognize_const_pattern): Do not
11396         separate cc0 setter and user on cc0 targets.
11397
11398 2011-01-26  Nicola Pero  <nicola.pero@meta-innovation.com>
11399
11400         PR c/43082
11401         * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
11402         passed a VOID_TYPE expression, immediately emit an error and
11403         return error_mark_node.
11404
11405 2011-01-26  Jeff Law  <law@redhat.com>
11406
11407         PR rtl-optimization/47464
11408         * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
11409         rather than may_trap_p as needed.
11410
11411 2011-01-26  DJ Delorie  <dj@redhat.com>
11412
11413         PR rtl-optimization/46878
11414         * combine.c (insn_a_feeds_b): Check for the implicit cc0
11415         setter/user dependency as well.
11416
11417 2011-01-26  Eric Botcazou  <ebotcazou@adacore.com>
11418
11419         PR rtl-optimization/44469
11420         * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
11421         after removing trivially dead basic blocks.
11422
11423 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
11424
11425         * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
11426         * config/frv/frv.h (LINK_SPEC): Likewise.
11427         * config/i386/netware.h (LINK_SPEC): Likewise.
11428         * config/m68k/linux.h (ASM_SPEC): Likewise.
11429         * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
11430         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
11431         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
11432         * config/sparc/linux.h (ASM_SPEC): Likewise.
11433         * config/sparc/linux64.h (ASM_SPEC): Likewise.
11434         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
11435
11436 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
11437
11438         * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
11439         * config/frv/frv.h (ASM_SPEC): Likewise.
11440         * config/m68k/linux.h (ASM_SPEC): Likewise.
11441         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
11442         * config/rs6000/linux64.h (ASM_SPEC): Likewise.
11443         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
11444         * config/sparc/linux.h (ASM_SPEC): Likewise.
11445         * config/sparc/linux64.h (ASM_SPEC): Likewise.
11446         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
11447
11448 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
11449
11450         * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
11451         * config/frv/frv.h (LINK_SPEC): Likewise.
11452         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
11453
11454 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
11455
11456         * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
11457         * config/frv/frv.h (ASM_SPEC): Likewise.
11458         * config/i386/sol2-10.h (ASM_SPEC): Likewise.
11459         * config/m68k/linux.h (ASM_SPEC): Likewise.
11460         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
11461         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
11462         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
11463         * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
11464         * config/sparc/linux.h (ASM_SPEC): Likewise.
11465         * config/sparc/linux64.h (ASM_SPEC): Likewise.
11466         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
11467         * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
11468
11469 2011-01-26  Steve Ellcey  <sje@cup.hp.com>
11470
11471         PR target/46997
11472         * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
11473         (*mux2): Ditto.
11474         (vec_extract_evenodd_help): Ditto.
11475         (vec_extract_evenv4hi): Ditto.
11476         (vec_extract_oddv4hi): Ditto.
11477         (vec_interleave_lowv2si): Ditto.
11478         (vec_interleave_highv2si): Ditto.
11479         (vec_extract_evenv2si): Ditto.
11480         (vec_extract_oddv2si: Ditto.
11481         (vec_pack_trunc_v2si): Ditto.
11482
11483 2011-01-22  Jan Hubicka  <jh@suse.cz>
11484
11485         PR target/47237
11486         * cgraph.h (cgraph_local_info): New field can_change_signature.
11487         * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
11488         signature can change.
11489         (ipcp_estimate_growth): Call sequence simplify only if calle signature
11490         can change.
11491         (ipcp_insert_stage): Only compute args_to_skip if signature can change.
11492         (cgraph_function_versioning): We can not change signature of functions
11493         that don't allow that.
11494         * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
11495         (lto_input_node): Likewise.
11496         * ipa-inline.c (compute_inline_parameters): Compute
11497         local.can_change_signature.
11498         * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
11499         * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
11500         functions that can not change signature.
11501         * i386.c (ix86_function_regparm, ix86_function_sseregparm,
11502         init_cumulative_args): Do not use local calling conventions
11503         for functions that can not change signature.
11504
11505 2011-01-22  Jan Hubicka  <jh@suse.cz>
11506
11507         * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
11508
11509 2011-01-26  Richard Guenther  <rguenther@suse.de>
11510
11511         PR tree-optimization/47190
11512         * cgraphunit.c (process_common_attributes): New function.
11513         (process_function_and_variable_attributes): Use it.
11514
11515 2011-01-26  Richard Guenther  <rguenther@suse.de>
11516
11517         PR lto/47423
11518         * cgraphbuild.c (record_eh_tables): Record reference to personality
11519         function.
11520
11521 2011-01-26  Alexandre Oliva  <aoliva@redhat.com>
11522
11523         PR debug/45454
11524         * sel-sched.c (moveup_expr): Don't let debug insns prevent
11525         non-debug insns from moving up.
11526
11527 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
11528
11529         PR target/40125
11530         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
11531         t-dlldir{,-x} fragment for build and add it to tmake_file.
11532         (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
11533         * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
11534         * config/i386/t-dlldir: New file.
11535         (SHLIB_DLLDIR): Define.
11536         * config/i386/t-dlldir-x: New file.
11537         (SHLIB_DLLDIR): Define.
11538         * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
11539         (SHLIB_INSTALL): Use it.
11540
11541 2011-01-26  Chung-Lin Tang  <cltang@codesourcery.com>
11542
11543         PR target/47246
11544         * config/arm/arm.c (thumb2_legitimate_index_p): Change the
11545         lower bound of the allowed Thumb-2 coprocessor load/store
11546         index range to -256. Add explaining comment.
11547
11548 2011-01-25  Ian Lance Taylor  <iant@google.com>
11549
11550         * godump.c (go_define): Improve lexing of macro expansion to only
11551         accept expressions which match Go spec.
11552
11553 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
11554
11555         PR c++/43601
11556         * tree.c (handle_dll_attribute): Handle it.
11557         * doc/extend.texi (@item dllexport): Mention it.
11558         * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
11559
11560 2011-01-25  Ian Lance Taylor  <iant@google.com>
11561
11562         PR tree-optimization/26854
11563         * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
11564         (decl_jump_unsafe): Move higher in file, with no other change.
11565         (bind): Set has_jump_unsafe_decl if appropriate.
11566         (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
11567         (check_earlier_gotos): Likewise.
11568         (c_check_switch_jump_warnings): Likewise.
11569
11570 2011-01-25  Jonathan Wakely  <jwakely.gcc@gmail.com>
11571
11572         * doc/invoke.texi (Warning Options): Add missing hyphen.
11573         (-fprofile-dir): Minor grammatical fixes.
11574         (-fbranch-probabilities): Likewise.
11575
11576 2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
11577
11578         PR debug/45136
11579         PR debug/45130
11580         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
11581         debug insns.
11582         (no_real_insns_p, schedule_block, set_priorities): Drop special
11583         treatment of boundary debug insns.
11584         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
11585         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
11586         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
11587         (BOUNDARY_DEBUG_INSN_P): Likewise.
11588         (SCHEDULE_DEBUG_INSN_P): Likewise.
11589         * sched-rgn.c (init_ready_list): Drop special treatment of
11590         boundary debug insns.
11591         * final.c (rest_of_clean-state): Clear notes' BB.
11592
11593 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
11594
11595         * Makefile.in (LAMBDA_H): Removed.
11596         (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
11597         (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
11598         lambda-trans.o, and tree-loop-linear.o.
11599         (lto-symtab.o): Remove dependence on LAMBDA_H.
11600         (tree-loop-linear.o): Remove rule.
11601         (lambda-mat.o): Same.
11602         (lambda-trans.o): Same.
11603         (lambda-code.o): Same.
11604         (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
11605         (tree-vect-slp.o): Same.
11606         * hwint.h (gcd): Moved here.
11607         (least_common_multiple): Same.
11608         * lambda-code.c: Removed.
11609         * lambda-mat.c: Removed.
11610         * lambda-trans.c: Removed.
11611         * lambda.h: Removed.
11612         * tree-loop-linear.c: Removed.
11613         * lto-symtab.c: Do not include lambda.h.
11614         * omega.c (gcd): Removed.
11615         * passes.c (init_optimization_passes): Remove pass_linear_transform.
11616         * tree-data-ref.c (print_lambda_vector): Moved here.
11617         (lambda_vector_copy): Same.
11618         (lambda_matrix_copy): Same.
11619         (lambda_matrix_id): Same.
11620         (lambda_vector_first_nz): Same.
11621         (lambda_matrix_row_add): Same.
11622         (lambda_matrix_row_exchange): Same.
11623         (lambda_vector_mult_const): Same.
11624         (lambda_vector_negate): Same.
11625         (lambda_matrix_row_negate): Same.
11626         (lambda_vector_equal): Same.
11627         (lambda_matrix_right_hermite): Same.
11628         * tree-data-ref.h: Do not include lambda.h.
11629         (lambda_vector): Moved here.
11630         (lambda_matrix): Same.
11631         (dependence_level): Same.
11632         (lambda_transform_legal_p): Removed declaration.
11633         (lambda_collect_parameters): Same.
11634         (lambda_compute_access_matrices): Same.
11635         (lambda_vector_gcd): Same.
11636         (lambda_vector_new): Same.
11637         (lambda_vector_clear): Same.
11638         (lambda_vector_lexico_pos): Same.
11639         (lambda_vector_zerop): Same.
11640         (lambda_matrix_new): Same.
11641         * tree-flow.h (least_common_multiple): Removed declaration.
11642         * tree-parloops.c (lambda_trans_matrix): Moved here.
11643         (LTM_MATRIX): Same.
11644         (LTM_ROWSIZE): Same.
11645         (LTM_COLSIZE): Same.
11646         (LTM_DENOMINATOR): Same.
11647         (lambda_trans_matrix_new): Same.
11648         (lambda_matrix_vector_mult): Same.
11649         (lambda_transform_legal_p): Same.
11650         * tree-pass.h (pass_linear_transform): Removed declaration.
11651         * tree-ssa-loop.c (tree_linear_transform): Removed.
11652         (gate_tree_linear_transform): Removed.
11653         (pass_linear_transform): Removed.
11654         (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
11655         flag_loop_interchange.
11656
11657 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
11658
11659         PR tree-optimization/47265
11660         PR tree-optimization/47443
11661         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
11662         if name still has some uses.
11663
11664 2011-01-25  Martin Jambor  <mjambor@suse.cz>
11665
11666         PR tree-optimization/47382
11667         * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
11668         (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
11669
11670 2011-01-25  Joel Sherrill  <joel.sherrill@oarcorp.com>
11671
11672         * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
11673         sjlj_except_unwind_info.
11674
11675 2011-01-25  Richard Guenther  <rguenther@suse.de>
11676
11677         PR tree-optimization/47426
11678         * tree-ssa-structalias.c (ipa_pta_execute): Make externally
11679         visible functions results escape.
11680
11681 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
11682
11683         PR target/45701
11684         * config/arm/arm.c (any_sibcall_uses_r3): New function.
11685         (arm_get_frame_offsets): Use it.
11686
11687 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
11688             Jakub Jelinek  <jakub@redhat.com>
11689
11690         PR tree-optimization/47271
11691         * tree-if-conv.c (bb_postdominates_preds): New.
11692         (if_convertible_bb_p): Call bb_postdominates_preds.
11693         (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
11694         (predicate_scalar_phi): Call bb_postdominates_preds.
11695
11696 2011-01-25  Nick Clifton  <nickc@redhat.com>
11697
11698         * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
11699         * config/rx/rx.c (rx_function_value): Likewise.
11700         (rx_promote_function_mode): Likewise.
11701         (gen_safe_add): Place an outsized immediate value inside an UNSPEC
11702         in order to make it legitimate.
11703         * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
11704         make sure that the first operand is the same as the result register.
11705         (addsi3_unspec): Delete.
11706         (subdi3): Do not accept immediate operands.
11707         (subdi3_internal): Likewise.
11708
11709 2011-01-25  Jeff Law  <law@redhat.com>
11710
11711         PR rtl-optimization/37273
11712         * ira-costs.c (scan_one_insn): Detect constants living in memory and
11713         handle them like argument loads from stack slots.  Do not double
11714         count memory for memory constants and argument loads from stack slots.
11715
11716 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
11717
11718         PR tree-optimization/47427
11719         PR tree-optimization/47428
11720         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
11721         coalesce if the new root var would be TREE_READONLY.
11722
11723 2011-01-25  Richard Guenther  <rguenther@suse.de>
11724
11725         PR middle-end/47414
11726         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
11727         correct type for TBAA.
11728
11729 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
11730
11731         * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
11732         (close_phi_written_to_memory): Call for_each_index with
11733         dr_indices_valid_in_loop.
11734
11735 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
11736
11737         * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
11738         when it is initialized.
11739
11740 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
11741
11742         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
11743         call to graphite_find_data_references_in_stmt.
11744         * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
11745         (try_generate_gimple_bb): Call outermost_loop_in_sese_1.  Update
11746         call to graphite_find_data_references_in_stmt.
11747         (analyze_drs_in_stmts): Same.
11748         * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
11749         in which the scalar analysis of indices is performed.
11750         (create_data_ref): Same.  Update call to dr_analyze_indices.
11751         (find_data_references_in_stmt): Update call to create_data_ref.
11752         (graphite_find_data_references_in_stmt): Same.
11753         * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
11754         declaration.
11755         (create_data_ref): Same.
11756         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
11757         call to create_data_ref.
11758
11759 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
11760
11761         * graphite-sese-to-poly.c (build_poly_scop): Move
11762         rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
11763
11764 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
11765
11766         * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
11767         VAR_DECL, PARM_DECL, and RESULT_DECL.
11768
11769 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
11770
11771         * graphite-dependences.c (reduction_dr_1): Allow several reductions
11772         in a reduction PBB.
11773         * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
11774         that have already been marked as PBB_IS_REDUCTION.
11775
11776 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
11777
11778         * graphite-scop-detection.c (same_close_phi_node): New.
11779         (remove_duplicate_close_phi): New.
11780         (make_close_phi_nodes_unique): New.
11781         (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
11782
11783 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
11784
11785         * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
11786         * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
11787         of both data references to be the same.
11788
11789 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
11790
11791         * graphite-dependences.c (build_lexicographical_constraint): Remove
11792         the gdim parameter.
11793         (build_lexicographical_constraint): Adjust call to
11794         ppl_powerset_is_empty.
11795         (dependence_polyhedron): Same.
11796         (graphite_legal_transform_dr): Same.
11797         (graphite_carried_dependence_level_k): Same.
11798         * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
11799         parameter.
11800         * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
11801
11802 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
11803
11804         * graphite-sese-to-poly.c
11805         (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
11806         (close_phi_written_to_memory): New.
11807         (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
11808         and unshare_expr.
11809
11810 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
11811
11812         * doc/install.texi: Update the expected version number of PPL to 0.11.
11813         * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
11814         #if PPL_VERSION_MINOR < 11.
11815
11816 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
11817
11818         * graphite-dependences.c: Include graphite-cloog-util.h.
11819         (new_poly_ddr): Inlined into dependence_polyhedron.
11820         (free_poly_ddr): Moved close by new_poly_ddr.
11821         (dependence_polyhedron_1): Renamed dependence_polyhedron.
11822         Early return NULL when ppl_powerset_is_empty returns true.
11823         (dependence_polyhedron): Renamed new_poly_ddr.  Call only once
11824         poly_drs_may_alias_p.  Avoid one call to ppl_powerset_is_empty.
11825         (graphite_legal_transform_dr): Call new_poly_ddr.
11826         (graphite_carried_dependence_level_k): Same.
11827         (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2.  Use new_poly_ddr.
11828         (dot_transformed_deps_stmt_1): Removed.
11829         (dot_deps_stmt_1): Call dot_deps_stmt_2.
11830         (dot_original_deps): Renamed dot_deps_2.  Call new_poly_ddr.
11831         (dot_deps_1): Call dot_deps_2.
11832         * Makefile.in (graphite-dependences.o): Add missing dependence on
11833         graphite-cloog-util.h.
11834
11835 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
11836
11837         * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
11838         (build_lexicographical_constraint): Same.
11839         (dependence_polyhedron_1): Same.
11840         (graphite_legal_transform_dr): Same.
11841         (graphite_carried_dependence_level_k): Same.
11842         * graphite-ppl.c (ppl_powerset_is_empty): New.
11843         * graphite-ppl.h (ppl_powerset_is_empty): Declared.
11844         * tree-data-ref.c (dump_data_reference): Print the basic block index.
11845
11846 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
11847
11848         * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
11849         the "a followed by b" relation and document it.
11850
11851 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
11852
11853         * graphite-dependences.c (build_lexicographical_constraint): Stop the
11854         iteration when the bag of constraints is empty.
11855
11856 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
11857
11858         * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
11859
11860 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
11861
11862         * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
11863         nest and two loop depths as parameters.
11864         (lst_try_interchange_loops): Call lst_interchange_profitable_p after
11865         lst_perfect_nestify.
11866
11867 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
11868
11869         * graphite-dependences.c (print_pddr): Call
11870         ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
11871
11872 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
11873
11874         * graphite-ppl.c (debug_gmp_value): New.
11875         * graphite-ppl.h (debug_gmp_value): Declared.
11876
11877 2011-01-25  Tobias Grosser  <grosser@fim.uni-passau.de>
11878
11879         * doc/install.texi: Document availability of cloog-0.16.
11880
11881 2011-01-25  Vladimir Kargov  <kargov@gmail.com>
11882
11883         * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
11884         invalid postdominance info.
11885
11886 2011-01-24  Jan Hubicka  <jh@suse.cz>
11887
11888         PR c/21659
11889         * doc/extend.texi (weak pragma): Drop claim that it must
11890         appear before definition.
11891         * varasm.c (merge_weak, declare_weak): Only sanity check
11892         that DECL is not output at a time it is declared weak.
11893
11894 2011-01-24  Kenneth Zadeck  <zadeck@naturalbridge.com>
11895
11896         * machmode.def: Fixed comments.
11897
11898 2011-01-24  Kai Tietz  <kai.tietz@onevision.com>
11899
11900         * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
11901
11902 2011-01-24  Paul Koning  <ni1d@arrl.net>
11903
11904         * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
11905         WORDS_BIG_ENDIAN.
11906
11907 2011-01-24  H.J. Lu  <hongjiu.lu@intel.com>
11908
11909         PR target/46519
11910         * config/i386/i386.c: Include sbitmap.h and fibheap.h.
11911         (block_info): Add scanned and prev.
11912         (move_or_delete_vzeroupper_2): Return if the basic block
11913         has been scanned and the upper 128bit state is unchanged
11914         from the last scan.
11915         (move_or_delete_vzeroupper_1): Return true if the exit
11916         state is changed.
11917         (move_or_delete_vzeroupper): Visit basic blocks using the
11918         work-list based algorithm based on vt_find_locations in
11919         var-tracking.c.
11920
11921         * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
11922
11923 2011-01-24  Nick Clifton  <nickc@redhat.com>
11924
11925         * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
11926         * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
11927         -mv850e1 to the assembler.  If -mv850e1 or -mv850es is specified
11928         then define __v850e1__.
11929         * doc/invoke.texi: Document -mv850es.
11930
11931 2011-01-24  Richard Henderson  <rth@redhat.com>
11932
11933         * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
11934         compound unordered comparisons.
11935         * config/rx/rx.c (rx_split_fp_compare): Remove.
11936         * config/rx/rx-protos.h: Update.
11937         * config/rx/rx.md (gcc_conds, rx_conds): Remove.
11938         (cbranchsf4): Don't call rx_split_fp_compare.
11939         (*cbranchsf4): Use rx_split_cbranch.
11940         (*cmpsf): Don't accept "i" constraint.
11941         (*conditional_branch): Only valid after reload.
11942         (cstoresf4): Merge expander with insn.  Don't call rx_split_fp_compare.
11943
11944 2011-01-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
11945
11946         PR target/47385
11947         * config/rs6000/altivec.md (vector constant splitters): Add
11948         support for creating vector single precision constants if -mvsx is
11949         used and we would create the constant using Altivec primitives.
11950
11951 2011-01-23  Bernd Schmidt  <bernds@codesourcery.com>
11952             Richard Sandiford  <rdsandiford@googlemail.com>
11953
11954         PR rtl-optimization/47166
11955         * reload1.c (emit_reload_insns): Disable the spill_reg_store
11956         mechanism for PRE_MODIFY and POST_MODIFY.
11957         (inc_for_reload): For PRE_MODIFY, return the insn that sets the
11958         reloadreg.
11959
11960 2011-01-23  Andreas Schwab  <schwab@linux-m68k.org>
11961
11962         * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
11963
11964 2011-01-22  Jan Hubicka  <jh@suse.cz>
11965
11966         PR lto/47333
11967         * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
11968
11969 2011-01-22  Jan Hubicka  <jh@suse.cz>
11970
11971         PR tree-optimization/43884
11972         PR lto/44334
11973         * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
11974         * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
11975
11976 2011-01-22  Anatoly Sokolov  <aesok@post.ru>
11977
11978         * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
11979         * config/s390/s390.c (s390_register_move_cost,
11980         s390_memory_move_cost): New.
11981         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
11982
11983 2011-01-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11984
11985         PR middle-end/47401
11986         * except.c (sjlj_assign_call_site_values): Move setting the
11987         crtl->uses_eh_lsda flag to ...
11988         (sjlj_mark_call_sites): ... here.
11989         (sjlj_emit_function_enter): Support NULL dispatch label.
11990         (sjlj_build_landing_pads): In a function with no landing pads
11991         that still has must-not-throw regions, generate code to register
11992         a personality function with empty LSDA.
11993
11994 2011-01-21  Richard Henderson  <rth@redhat.com>
11995
11996         * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
11997
11998         * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
11999
12000         * compare-elim.c: New file.
12001         * Makefile.in (OBJS-common): Add it.
12002         (compare-elim.o): New.
12003         * common.opt (fcompare-elim): New.
12004         * opts.c (default_options_table): Add OPT_fcompare_elim.
12005         * tree-pass.h (pass_compare_elim_after_reload): New.
12006         * passes.c (init_optimization_passes): Add it.
12007         * recog.h: Protect against re-inclusion.
12008         * target.def (TARGET_FLAGS_REGNUM): New POD hook.
12009         * doc/invoke.texi (-fcompare-elim): Document it.
12010         * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
12011         * doc/tm.texi: Rebuild.
12012
12013 2011-01-22  Nick Clifton  <nickc@redhat.com>
12014
12015         * config/rx/rx.md (cstoresf4): Pass comparison operator to
12016         rx_split_fp_compare.
12017
12018 2011-01-22  Nick Clifton  <nickc@redhat.com>
12019
12020         * config/rx/rx.md (UNSPEC_CONST): New.
12021         (deallocate_and_return): Wrap the amount popped off the stack in
12022         an UNSPEC_CONST in order to stop it being rejected by
12023         -mmax-constant-size.
12024         (pop_and_return): Add a "(return)" rtx.
12025         (call): Drop the immediate operand.
12026         (call_internal): Likewise.
12027         (call_value): Likewise.
12028         (call_value_internal): Likewise.
12029         (sibcall_internal): Likewise.
12030         (sibcall_value_internal): Likewise.
12031         (sibcall): Likewise.  Generate an explicit call using
12032         sibcall_internal.
12033         (sibcall_value): Likewise.
12034         (mov<>): FAIL if a constant operand is not legitimate.
12035         (addsi3_unpsec): New pattern.
12036
12037         * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
12038         (ok_for_max_constant): New function.
12039         (gen_safe_add): New function.
12040         (rx_expand_prologue): Use gen_safe_add.
12041         (rx_expand_epilogue): Likewise.
12042         (rx_is_legitimate_constant): Use ok_for_max_constant.  Handle
12043         UNSPEC CONSTs.
12044
12045 2011-01-21  Jeff Law  <law@redhat.com>
12046
12047         PR tree-optimization/47053
12048         * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
12049         (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
12050         statements are deleted.
12051         (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP.  If NEED_EH_CLEANUP
12052         is nonempty, then purge dead edges and cleanup the CFG.
12053
12054 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
12055
12056         PR debug/47402
12057         Temporarily revert:
12058         2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
12059         PR debug/47106
12060         * tree-dfa.c (create_var_ann): Mark variable as used.
12061
12062 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
12063
12064         PR middle-end/45566
12065         * except.c (convert_to_eh_region_ranges): Emit queued no-region
12066         notes from other section in hot/cold partitioning even if
12067         last_action is -3.  Increment call_site_base.
12068
12069         PR rtl-optimization/47366
12070         * fwprop.c (forward_propagate_into): Return bool.  If
12071         any changes are made, -fnon-call-exceptions is used and
12072         REG_EH_REGION note is present, call purge_dead_edges
12073         and return true if it purged anything.
12074         (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
12075         any EH edges were purged.
12076
12077 2011-01-21  Jeff Law  <law@redhat.com>
12078
12079         PR rtl-optimization/41619
12080         * caller-save.c (setup_save_areas): Break out code to determine
12081         which hard regs are live across calls by examining the reload chains
12082         so that it is always used.
12083         Eliminate code which checked REG_N_CALLS_CROSSED.
12084
12085 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
12086
12087         PR tree-optimization/47355
12088         * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
12089         NOP has non-debug uses beyond PHIs in new_bb.
12090
12091 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
12092
12093         PR debug/47106
12094         * cfgexpand.c (account_used_vars_for_block): Only account vars
12095         that are annotated as used.
12096         (estimated_stack_frame_size): Don't set TREE_USED.
12097         * tree-dfa.c (create_var_ann): Mark variable as used.
12098
12099 2011-01-21  Richard Guenther  <rguenther@suse.de>
12100
12101         PR middle-end/47395
12102         * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
12103
12104 2011-01-21  Richard Guenther  <rguenther@suse.de>
12105
12106         PR tree-optimization/47365
12107         * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
12108         (vn_reference_lookup_pieces): Adjust.
12109         (vn_reference_lookup): Likewise.
12110         * tree-ssa-sccvn.c (vn_walk_kind): New static global.
12111         (vn_reference_lookup_3): Only look through kills if in
12112         VN_WALKREWRITE mode.
12113         (vn_reference_lookup_pieces): Adjust.
12114         (vn_reference_lookup): Likewise.
12115         (visit_reference_op_load): Likewise.
12116         (visit_reference_op_store): Likewise.
12117         * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
12118         (compute_avail): Likewise.
12119         (eliminate): Likewise.
12120
12121 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
12122
12123         * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
12124         DECL_IGNORED_P non-reg vars if they are used.
12125
12126         PR tree-optimization/47391
12127         * varpool.c (const_value_known_p): Return false if
12128         decl is volatile.
12129
12130 2011-01-21  Kai Tietz  <kai.tietz@onevision.com>
12131
12132         PR bootstrap/47215
12133         * config/i386/i386.c (ix86_local_alignment): Handle
12134         case for va_list_type_node is nil.
12135         (ix86_canonical_va_list_type): Likewise.
12136
12137 2011-01-21  Alan Modra  <amodra@gmail.com>
12138
12139         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
12140         builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
12141
12142 2011-01-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12143
12144         * config/arm/arm.md (define_attr type): Rename f_load
12145         and f_store to f_fpa_load and f_fpa_store. Update.
12146         (write_conflict): Deal with rename fallout.
12147         (*push_fp_multi): Likewise.
12148         * config/arm/fpa.md (f_load): Use f_fpa_load.
12149         (f_store): Use f_fpa_store.
12150         (*movsf_fpa): Likewise.
12151         (*movdf_fpa): Likewise.
12152         (*movxf_fpa): Likewise.
12153         (*thumb2_movsf_fpa): Likewise.
12154         (*thumb2_movdf_fpa): Likewise.
12155         (*thumb2_movxf_fpa): Likewise.
12156         * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
12157         f_loadd and f_stored.
12158         (*thumb2_movdi_vfp): Likewise.
12159         (*thumb2_movsf_vfp): Fix attribute to f_loads.
12160         (*thumb2_movsi_vfp): Likewise.
12161         * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
12162         Use f_loads instead of f_load.
12163         * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
12164
12165 2011-01-20  Anatoly Sokolov  <aesok@post.ru>
12166
12167         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
12168         * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
12169         * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
12170         (xtensa_mode_dependent_address_p): New function.
12171         (constantpool_address_p): Make static. Change return type to bool.
12172         Change argument type to const_rtx. Use CONST_INT_P predicate.
12173
12174 2011-01-20  Alexandre Oliva  <aoliva@redhat.com>
12175
12176         PR debug/46583
12177         * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
12178
12179 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
12180
12181         PR debug/47283
12182         * cfgexpand.c (expand_debug_expr): Instead of generating
12183         (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
12184         etc. handling.
12185
12186 2011-01-20  Richard Guenther  <rguenther@suse.de>
12187
12188         PR middle-end/47370
12189         * tree-inline.c (remap_gimple_op_r): Recurse manually for
12190         the pointer operand of MEM_REFs.
12191
12192 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
12193
12194         PR tree-optimization/46130
12195         * ipa-split.c (consider_split): If return_bb contains non-virtual
12196         PHIs other than for retval or if split_function would not adjust it,
12197         refuse to split.
12198
12199 2011-01-20  Richard Guenther  <rguenther@suse.de>
12200
12201         PR tree-optimization/47167
12202         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
12203         Revert previous change, only avoid enumeral type changes.
12204
12205 2011-01-19  Mike Stump  <mikestump@comcast.net>
12206
12207         * doc/tm.texi.in (BRANCH_COST): Englishify.
12208         * doc/tm.texi (BRANCH_COST): Likewise.
12209
12210 2011-01-19  Dodji Seketeli  <dodji@redhat.com>
12211
12212         PR c++/47291
12213         * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
12214         (gen_scheduled_generic_parms_dies): New functions.
12215         (gen_struct_or_union_type_die): Schedule template parameters DIEs
12216         generation for the end of CU compilation.
12217         (dwarf2out_finish): Generate template parameters DIEs here.
12218
12219 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
12220
12221         PR debug/46240
12222         * tree-into-ssa.c (maybe_register_def): Do not attempt to add
12223         debug bind stmt on merge edges.
12224
12225 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
12226
12227         PR debug/47079
12228         PR debug/46724
12229         * function.c (instantiate_expr): Instantiate incoming rtl of
12230         implicit arguments, and recurse on VALUE_EXPRs.
12231         (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
12232         * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
12233
12234 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
12235
12236         * c-parser.c (c_parser_for_statement): Initialize
12237         collection_expression.
12238
12239 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
12240
12241         * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
12242
12243 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
12244
12245         * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
12246         (LINK_SHLIB_SPEC): Don't use %(link_path).
12247         (SUBTARGET_EXTRA_SPECS): Remove link_path.
12248
12249 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
12250
12251         * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
12252         (NO_SHARED_LIB_SUPPORT): Remove.
12253         (LINK_SHLIB_SPEC): Remove one conditional definition.
12254
12255 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
12256
12257         * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
12258         %{call_shared}.
12259         * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
12260         * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
12261         * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
12262         %{call_shared} and conditionals on these options not being passed.
12263         * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
12264         %{call_shared}.
12265
12266 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
12267
12268         * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
12269         simplify.
12270
12271         * ipa-split.c: Spelling fixes.
12272
12273 2011-01-19  Richard Henderson  <rth@redhat.com>
12274
12275         * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
12276         (*mulsi3): Likewise.
12277
12278         * longlong.h [__mn10300__] (count_leading_zeros): New.
12279         [__mn10300__] (umul_ppmm, smul_ppmm): New.
12280         [__mn10300__] (add_ssaaaa, subddmmss): New.
12281         [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
12282         [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
12283
12284 2011-01-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12285
12286         * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
12287
12288 2011-01-19  Richard Henderson  <rth@redhat.com>
12289
12290         * config/mn10300/mn10300.md (addsi3_flags): New.
12291         (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
12292         (subsi3_flags, subc_internal, subdi3): New.
12293         (subdi3_internal, *subdi3_degenerate): New.
12294         * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
12295
12296         * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
12297         (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
12298         (mn10300_expand_epilogue): Use it.  Compute REG_SAVE_BYTES once.
12299         * config/mn10300/mn10300-protos.h: Update.
12300         * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
12301         (return_ret): Likewise.  Rename from return_internal_regs.
12302         (return_internal): Remove.
12303
12304         * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
12305         (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
12306         (mn10300_legitimate_constant_p): Likewise.
12307         (mn10300_can_use_return_insn): Use mn10300_initial_offset.
12308         (mn10300_frame_size): New.
12309         (mn10300_expand_prologue): Use it.
12310         (mn10300_expand_epilogue): Likewise.
12311         (mn10300_initial_offset): Likewise.
12312         * config/mn10300/mn10300-protos.h: Update.
12313         * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
12314         * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
12315         (prologue, epilogue, return_internal): Tidy output code.
12316         (mn10300_store_multiple_operation, return): Likewise.
12317         (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
12318         (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
12319         (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
12320         (load_pic, am33_load_pic): New.
12321         (mn10300_load_pic0, mn10300_load_pic1): New.
12322
12323         * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
12324         * config/mn10300/mn10300.c (CC_FLAG_Z): New.
12325         (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
12326         (cc_flags_for_mode, cc_flags_for_code): New.
12327         (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
12328         overflow flag is not valid.  Validate that the flags we need
12329         for the comparison are valid.
12330         (mn10300_output_cmp): Remove.
12331         (mn10300_output_add): New.
12332         (mn10300_select_cc_mode): Use cc_flags_for_code.
12333         (mn10300_split_cbranch): New.
12334         (mn10300_match_ccmode): New.
12335         (mn10300_split_and_operand_count): New.
12336         * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
12337         to the function.
12338         * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
12339         (addsi3): ... here.  Use mn10300_output_add.
12340         (*addsi3_flags): New.
12341         (*am33_subsi3, *mn10300_subsi3): Merge...
12342         (subsi3): ... here.  Use attribute isa.
12343         (*subsi3_flags): New.
12344         (negsi2): Rewrite from expander to insn_and_split.  Use NOT+INC
12345         when possible.
12346         (*am33_andsi3, *mn10300_andsi3): Merge...
12347         (andsi3): ... here.
12348         (*andsi3_flags): New.
12349         (andsi3 splitters): New.
12350         (*am33_iorsi3, *mn10300_iorsi3): Merge...
12351         (iorsi3): ... here.
12352         (*iorsi3_flags): New.
12353         (*am33_xorsi3, *mn10300_xorsi3): Merge...
12354         (xorsi3): ... here.
12355         (*xorsi3_flags): New.
12356         (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
12357         (one_cmplsi2): ... here.
12358         (*one_cmplsi2_flags): New.
12359         (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload.  Use "r"
12360         instead of "dax" in constraints.  Use mn10300_split_cbranch.
12361         (*cmpsi): Rename from cmpsi.  Do not use mn10300_output_cmp.  Do not
12362         use matching constraints to eliminate a self-comparison.
12363         (*integer_conditional_branch): Rename from integer_conditional_branch.
12364         Use int_mode_flags to match CC_REG.
12365         (*cbranchsi4_btst, *btstsi): New.
12366         (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload.  Use
12367         mn10300_split_cbranch.
12368         (*am33_cmpsf): Rename from am33_cmpsf.
12369         (*float_conditional_branch): Rename from float_conditional_branch.
12370         (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
12371         (zero_extendqisi2): ... here.
12372         (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
12373         (zero_extendhisi2): ... here.
12374         (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
12375         (extendqisi2): ... here.
12376         (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
12377         (extendhisi2): ... here.
12378         (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
12379         (ashlsi3): ... here.
12380         (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
12381         (lshrsi3): ... here.
12382         (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
12383         (ashrsi3): ... here.
12384         (consecutive add peephole): Remove.
12385         * config/mn10300/predicates.md (label_ref_operand): New.
12386         (int_mode_flags): New.
12387         (CCZN_comparison_operator): New.
12388
12389         * config/mn10300/mn10300.md (UNSPEC_EXT): New.
12390         (throughput_42_latency_43): New reservation.
12391         (mulsidi3, umulsidi3): New expanders.
12392         (mulsidi3_internal): Rewrite from old mulsidi3 pattern.  Expose
12393         the MDR register to allocation; separately allocate the low and
12394         high parts of the DImode result.
12395         (umulsidi3_internal): Similarly.
12396         (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
12397         (*mulsi3): ... here.  Clobber MDR as a scratch as necessary.
12398         (udivsi3, umodsi3): Remove.
12399         (udivmodsi4, divmodsi4): New expanders.
12400         (*udivmodsi4): Rename from udivmodsi4.  Expose MDR properly.
12401         (*divmodsi4): Simiarly.
12402         (ext_internal): New.
12403
12404         * config/mn10300/constraints.md ("z"): New constraint.
12405         * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
12406         (FIXED_REGISTERS): Don't fix MDR.
12407         (CALL_USED_REGSITERS): Reformat nicely.
12408         (REG_ALLOC_ORDER): Add MDR.
12409         (enum regclass): Add MDR_REGS.
12410         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
12411         (IRA_COVER_CLASSES): Add MDR_REGS.
12412         (REGNO_REG_CLASS): Handle MDR_REG.
12413         * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
12414         (mn10300_register_move_cost): Likewise.
12415         * config/mn10300/mn10300.md (MDR_REG): New.
12416         (*movsi_internal): Handle moves to/from MDR_REGS.
12417
12418         * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
12419         POST_MODIFY.
12420         (mn10300_secondary_reload): Tidy combination reload classes.
12421         (mn10300_legitimate_address_p): Allow post-modify and reg+reg
12422         addresses for AM33.  Allow symbolic offsets for reg+imm.
12423         (mn10300_regno_in_class_p): New.
12424         (mn10300_legitimize_reload_address): New.
12425         * config/mn10300/mn10300.h (enum reg_class): Remove
12426         DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
12427         SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS.  Add
12428         SP_OR_GENERAL_REGS.
12429         (REG_CLASS_NAMES): Update to match.
12430         (REG_CLASS_CONTENTS): Likewise.
12431         (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
12432         (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
12433         (REGNO_IN_RANGE_P): Remove.
12434         (REGNO_DATA_P): Use mn10300_regno_in_class_p.
12435         (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
12436         (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
12437         (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
12438         (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
12439         (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
12440         (REGNO_GENERAL_P): New.
12441         (HAVE_POST_MODIFY_DISP): New.
12442         (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
12443         (LEGITIMIZE_RELOAD_ADDRESS): New.
12444         * config/mn10300/mn10300-protos.h: Update.
12445
12446         * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
12447         DATA_REGS for AM33 stack-pointer destination.
12448         (mn10300_preferred_output_reload_class): Likewise.
12449         (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
12450         into a form appropriate for ...
12451         (TARGET_SECONDARY_RELOAD): New.
12452         * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
12453         * config/mn10300/mn10300-protos.h: Update.
12454         * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
12455         reload_insi; use the "A" constraint for the scratch; handle AM33
12456         moves of sp to non-address registers.
12457
12458         * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
12459         (*movqi_internal): ... here.
12460         (*am33_movhi, *mn10300_movhi): Merge into...
12461         (*movhi_internal): ... here.
12462         (*movsi_internal): Use "r" instead of "dax" in constraints.  Use "A"
12463         as the source/destination of moves from/to SP.
12464         (movsf): Only allow for AM33-2.
12465         (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
12466         any integer constant constraint.  Only allow for AM33-2.  Tidy
12467         all of the alternative outputs.
12468         (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
12469         (udivmodsi4): Delete expander and promote *udivmodsi4.  Disallow
12470         for MN103.
12471         (udivsi3, umodsi3): New patterns for MN103 only.
12472
12473 2011-01-19  Joern Rennecke  <amylaar@spamcop.net>
12474
12475         * doc/tm.texi.in: Spell out that a lack of register class unions
12476         can lead to ICEs.
12477         * doc/tm.texi: Regenerate.
12478
12479 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
12480
12481         PR rtl-optimization/47337
12482         * dce.c (check_argument_store): New function.
12483         (find_call_stack_args): Ignore debug insns.  Use check_argument_store.
12484
12485         PR tree-optimization/47290
12486         * tree-eh.c (infinite_empty_loop_p): New function.
12487         (cleanup_empty_eh): Use it.
12488
12489 2011-01-18  Steve Ellcey  <sje@cup.hp.com>
12490
12491         PR target/46997
12492         * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
12493         (a64_expand_widen_sum): Ditto.
12494         * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
12495         (vec_extract_evenodd_help): Ditto.
12496         (vec_extract_evenv4hi): Ditto.
12497         (vec_extract_oddv4hi): Ditto.
12498         (vec_extract_evenv2si): Ditto.
12499         (vec_extract_oddv2si): Ditto.
12500         (vec_extract_evenv2sf): Ditto.
12501         (vec_extract_oddv2sf): Ditto.
12502         (vec_pack_trunc_v4hi: Ditto.
12503         (vec_pack_trunc_v2si): Ditto.
12504         (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
12505         (vec_interleave_highv8qi): Ditto.
12506         (mix1_r): Ditto.
12507         (vec_extract_oddv8qi): Ditto.
12508         (vec_interleave_lowv4hi): Ditto.
12509         (vec_interleave_highv4hi): Ditto.
12510         (vec_interleave_lowv2si): Ditto.
12511         (vec_interleave_highv2si): Ditto.
12512
12513 2011-01-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12514
12515         * doc/extend.texi: Mention __float128 support on hppa HP-UX.
12516         * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
12517         * config/pa/pa.c (pa_expand_builtin): New.  Include "langhooks.h".
12518         (pa_c_mode_for_suffix): New.
12519         (TARGET_EXPAND_BUILTIN): Define.
12520         (TARGET_C_MODE_FOR_SUFFIX): Define.
12521         (pa_builtins): Define.
12522         (pa_init_builtins): Register __float128 type and init new support
12523         builtins.
12524         * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
12525         * config/pa/quadlib.c (_U_Qfcopysign): New.
12526
12527 2011-01-18  Eric Botcazou  <ebotcazou@adacore.com>
12528
12529         PR middle-end/46894
12530         * explow.c (allocate_dynamic_stack_space): Do not assume more than
12531         BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
12532         are defined.
12533
12534 2011-01-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12535
12536         PR tree-optimization/47179
12537         * config/spu/spu.c (spu_ref_may_alias_errno): New function.
12538         (TARGET_REF_MAY_ALIAS_ERRNO): Define.
12539
12540 2011-01-18  Richard Guenther  <rguenther@suse.de>
12541
12542         PR rtl-optimization/47216
12543         * emit-rtl.c: Include tree-flow.h.
12544         (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
12545         of replicating it with different semantics.
12546         * Makefile.in (emit-rtl.o): Adjust.
12547
12548 2011-01-18  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12549
12550         * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
12551         (cortex_a9_dp): Handle neon types correctly.
12552
12553 2011-01-18  Jakub Jelinek  <jakub@redhat.com>
12554
12555         PR rtl-optimization/47299
12556         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
12557         subtarget.  Use normal multiplication if both operands are constants.
12558         * expmed.c (expand_widening_mult): Don't try to optimize constant
12559         multiplication if op0 has VOIDmode.  Convert op1 constant to mode
12560         before using it.
12561
12562 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12563
12564         * doc/lto.texi (LTO): Ensure two spaces after period.  Fix
12565         spacing after 'e.g.', typos, comma, hyphenation.
12566
12567 2011-01-17  Richard Henderson  <rth@redhat.com>
12568
12569         * config/rx/predicates.md (rx_constshift_operand): Use match_test.
12570         (rx_restricted_mem_operand): New.
12571         (rx_shift_operand): Use register_operand.
12572         (rx_source_operand, rx_compare_operand): Likewise.
12573         * config/rx/rx.md (addsi3_flags): New expander.
12574         (adddi3): Rewrite as expander.
12575         (adc_internal, *adc_flags, adddi3_internal): New patterns.
12576         (subsi3_flags): New expander.
12577         (subdi3): Rewrite as expander.
12578         (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
12579
12580         * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
12581         (rx_init_builtins): Remove sat builtin.
12582         (rx_expand_builtin): Likewise.
12583         * config/rx/rx.md (ssaddsi3): New.
12584         (*sat): Rename from sat.  Represent the CC_REG input.
12585
12586         * config/rx/predicates.md (rshift_operator): New.
12587         * config/rx/rx.c (rx_expand_insv): Remove.
12588         * config/rx/rx-protos.h: Update.
12589         * config/rx/rx.md (*bitset): Rename from bitset.  Swap the ashift
12590         operand to the canonical position.
12591         (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
12592         (*bitclr, *bitclr_in_memory): Similarly.
12593         (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
12594         (insv): Retain the zero_extract in the expansion.
12595
12596         * config/rx/rx.md (bswapsi2): Use = not + for output reload.
12597         (bswaphi2, bitinvert, revw): Likewise.
12598
12599         * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
12600         (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
12601         * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
12602         (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
12603         (bitset, bitset_in_memory): Likewise.
12604         (bitinvert, bitinvert_in_memory): Likewise.
12605         (bitclr, bitclr_in_memory): Likewise.
12606         (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
12607         (rx_strend, rx_cmpstrn): Likewise.
12608         (rx_setmem): Likewise.  Make the source BLKmode to match the dest.
12609         (bitop peep2 patterns): Remove.
12610
12611         * config/rx/rx.c (rx_match_ccmode): New.
12612         * config/rx/rx-protos.h: Update.
12613         * config/rx/rx.md (abssi2): Clobber, don't set flags.
12614         (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
12615         (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
12616         (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
12617         (fix_truncsfsi2, floatsisf2): Likewise.
12618         (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
12619         (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
12620         (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
12621         (*subsi3_flags, *xorsi3_flags): New.
12622
12623         * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
12624
12625         * config/rx/rx.c (rx_print_operand): Remove workaround for
12626         unsplit comparison operations.
12627
12628         * config/rx/rx.md (movsicc): Split after reload.
12629         (*movsicc): Merge *movsieq and *movsine via match_operator.
12630         (*stcc): New pattern.
12631
12632         * config/rx/rx.c (rx_float_compare_mode): Remove.
12633         * config/rx/rx.h (rx_float_compare_mode): Remove.
12634         * config/rx/rx.md (cstoresi4): Split after reload.
12635         (*sccc): New pattern.
12636
12637         * config/rx/predicates.md (label_ref_operand): New.
12638         (rx_z_comparison_operator): New.
12639         (rx_zs_comparison_operator): New.
12640         (rx_fp_comparison_operator): New.
12641         * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
12642         Validate that the flags are set properly for the comparison.
12643         (rx_gen_cond_branch_template): Remove.
12644         (rx_cc_modes_compatible): Remove.
12645         (mode_from_flags): New.
12646         (flags_from_code): Rename from flags_needed_for_conditional.
12647         (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
12648         (rx_select_cc_mode): Likewise.
12649         (rx_split_fp_compare): New.
12650         (rx_split_cbranch): New.
12651         * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
12652         (*cbranchsi4): Use match_operator and rx_split_cbranch.
12653         (*cbranchsf4): Similarly.
12654         (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>.  Use
12655         match_operator and rx_split_cbranch.
12656         (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
12657         tstbranchsi4m_ne.  Use match_operator and rx_split_cbranch.
12658         (*cmpsi): Rename from cmpsi.
12659         (*tstsi): Rename from tstsi.
12660         (*cmpsf): Rename from cmpsf; use CC_Fmode.
12661         (*conditional_branch): Rename from conditional_branch.
12662         (*reveresed_conditional_branch): Remove.
12663         (b<code>): Remove expander.
12664         * config/rx/rx-protos.h: Update.
12665
12666         * config/rx/rx.c (rx_compare_redundant): Remove.
12667         * config/rx/rx.md (cmpsi): Don't use it.
12668         * config/rx/rx-protos.h: Update.
12669
12670         * config/rx/rx-modes.def (CC_F): New mode.
12671         * config/rx/rx.c (rx_select_cc_mode): New.
12672         * config/rx/rx.h (SELECT_CC_MODE): Use it.
12673         * config/rx/rx-protos.h: Update.
12674
12675 2011-01-17  Richard Henderson  <rth@redhat.com>
12676
12677         * except.c (dump_eh_tree): Fix stray ; after for statement.
12678
12679 2011-01-17  Richard Guenther  <rguenther@suse.de>
12680
12681         PR tree-optimization/47313
12682         * tree-inline.c (tree_function_versioning): Move DECL_RESULT
12683         handling before copying the body.  Properly deal with
12684         by-reference result in SSA form.
12685
12686 2011-01-17  Ian Lance Taylor  <iant@google.com>
12687
12688         PR target/47219
12689         * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
12690         (struct_value_alias_set): Don't define.
12691         (sparc_option_override): Don't set sparc_sr_alias_set and
12692         struct_value_alias_set.
12693         (save_or_restore_regs): Use gen_frame_mem rather than calling
12694         set_mem_alias_set.
12695         (sparc_struct_value_rtx): Likewise.
12696
12697 2011-01-17  H.J. Lu  <hongjiu.lu@intel.com>
12698
12699         PR target/47318
12700         * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
12701         (_mm_maskstore_pd): Likewise.
12702         (_mm_maskload_ps): Likewise.
12703         (_mm_maskstore_ps): Likewise.
12704         (_mm256_maskload_pd): Change mask to __m256i.
12705         (_mm256_maskstore_pd): Likewise.
12706         (_mm256_maskload_ps): Likewise.
12707         (_mm256_maskstore_ps): Likewise.
12708
12709         * config/i386/i386-builtin-types.def: Updated.
12710         (ix86_expand_special_args_builtin): Likewise.
12711
12712         * config/i386/i386.c (bdesc_special_args): Update
12713         __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
12714         __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
12715         __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
12716         __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
12717
12718         * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
12719         Use <avxpermvecmode> on mask register.
12720         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
12721
12722 2011-01-17  Olivier Hainque  <hainque@adacore.com>
12723             Michael Haubenwallner  <michael.haubenwallner@salomon.at>
12724             Eric Botcazou  <ebotcazou@adacore.com>
12725
12726         PR target/46655
12727         * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
12728         if <= USHRT_MAX in 32-bit mode.
12729
12730 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12731
12732         * doc/install.texi (Configuration, Specific): Wrap long
12733         lines in examples.  Allow line wrapping in long options
12734         and URLs where beneficial for PDF output.
12735
12736 2011-01-16  Richard Sandiford  <rdsandiford@googlemail.com>
12737
12738         * config/mips/mips.c (mips_classify_symbol): Don't return
12739         SYMBOL_PC_RELATIVE for nonlocal labels.
12740
12741 2011-01-15  Eric Botcazou  <ebotcazou@adacore.com>
12742
12743         * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
12744
12745 2011-01-15  Jan Hubicka  <jh@suse.cz>
12746
12747         PR tree-optimization/47276
12748         * ipa.c (function_and_variable_visibility): Do not try to mark alias
12749         declarations as needed.
12750
12751 2011-01-15  Martin Jambor  <mjambor@suse.cz>
12752
12753         * common.opt (fdevirtualize): New flag.
12754         * doc/invoke.texi (Option Summary): Document it.
12755         * opts.c (default_options_table): Add devirtualize flag.
12756         * ipa-prop.c (detect_type_change): Return immediately if
12757         devirtualize flag is not set.
12758         (detect_type_change_ssa): Likewise.
12759         (compute_known_type_jump_func): Likewise.
12760         (ipa_analyze_virtual_call_uses): Likewise.
12761
12762 2011-01-14  Martin Jambor  <mjambor@suse.cz>
12763
12764         PR tree-optimization/45934
12765         PR tree-optimization/46302
12766         * ipa-prop.c (type_change_info): New type.
12767         (stmt_may_be_vtbl_ptr_store): New function.
12768         (check_stmt_for_type_change): Likewise.
12769         (detect_type_change): Likewise.
12770         (detect_type_change_ssa): Likewise.
12771         (compute_complex_assign_jump_func): Check for dynamic type change.
12772         (compute_complex_ancestor_jump_func): Likewise.
12773         (compute_known_type_jump_func): Likewise.
12774         (compute_scalar_jump_functions): Likewise.
12775         (ipa_analyze_virtual_call_uses): Likewise.
12776         (ipa_analyze_node): Push and pop cfun, set current_function_decl.
12777
12778 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
12779
12780         * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
12781         * config/i386/i386.opt (msse5): New Alias.
12782
12783 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
12784
12785         * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
12786         * config/sparc/linux64.h (CC1_SPEC): Likewise.
12787         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
12788         * config/sparc/sparc.h (CC1_SPEC): Likewise.
12789
12790 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
12791
12792         * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
12793         -mcpu options.
12794         * config/sparc/linux64.h (CC1_SPEC): Likewise.
12795         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
12796         * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
12797         * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
12798         Likewise.
12799         * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
12800
12801 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
12802
12803         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
12804
12805 2011-01-14  Mike Stump  <mikestump@comcast.net>
12806
12807         * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
12808         * config/fr30/fr30.md: Likweise
12809         (movsi_push): Likewise.
12810         (movsi_pop): Likewise.
12811         (enter_func): Likewise.
12812         * config/moxie/moxie.md (movsi_push): Likewise.
12813         (movsi_pop): Likewise.
12814
12815 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
12816
12817         * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
12818         %{no_archive} %{exact_version}.
12819         * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
12820         * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
12821         %{no_archive} %{exact_version}.
12822         * config/mips/openbsd.h (LINK_SPEC): Likewise.
12823         * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
12824         * config/mips/vxworks.h: Likewise.
12825
12826 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
12827
12828         * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
12829
12830 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
12831
12832         * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
12833         ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
12834
12835 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
12836
12837         * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
12838         -nodefaultlib.
12839
12840 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
12841
12842         * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
12843         for mcpu not cpu.
12844         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
12845         CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
12846         not cpu.
12847         (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
12848         Don't handle -shlib.
12849
12850 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
12851
12852         * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
12853         (CC1_SPEC): Don't handle -profile.
12854
12855 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
12856
12857         * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
12858         * config/mips/mips.h (CC1_SPEC): Likewise.
12859
12860 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
12861
12862         * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
12863         * config/mips/mips.h (CC1_SPEC): Likewise.
12864
12865 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
12866
12867         * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
12868         * config/m32r/linux.h (LINK_SPEC): Likewise.
12869         * config/mips/linux.h (LINK_SPEC): Likewise.
12870         * config/mips/linux64.h (LINK_SPEC): Likewise.
12871         * config/sparc/linux.h (LINK_SPEC): Likewise.
12872         * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
12873         LINK_SPEC): Likewise.
12874         * config/xtensa/linux.h (LINK_SPEC): Likewise.
12875
12876 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
12877
12878         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
12879         %{version:-v}.
12880         * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
12881
12882 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
12883
12884         * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
12885         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
12886
12887 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
12888
12889         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
12890
12891 2011-01-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12892
12893         * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
12894         supports -Bstatic/-Bdynamic.
12895         * configure: Regenerate.
12896
12897 2011-01-14  Jan Hubicka  <jh@suse.cz>
12898             Jack Howarth  <howarth@bromo.med.uc.edu>
12899
12900         PR target/46037
12901         * config/darwin.c (darwin_override_options): Honor flag_gtoggle
12902         when checking debug_info_level. Test write_symbols instead of
12903         debug_hooks->var_location when setting flag_var_tracking_uninit.
12904
12905 2011-01-14  Richard Guenther  <rguenther@suse.de>
12906
12907         PR tree-optimization/47179
12908         * target.def (ref_may_alias_errno): New target hook.
12909         * targhooks.h (default_ref_may_alias_errno): Declare.
12910         * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
12911         (default_ref_may_alias_errno): New function.
12912         * target.h (struct ao_ref_s): Declare.
12913         * tree-ssa-alias.c: Include target.h.
12914         (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
12915         * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
12916         (targhooks.o): Likewise.
12917         * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
12918         * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
12919
12920 2011-01-14  Richard Guenther  <rguenther@suse.de>
12921
12922         * tree-ssa-structalias.c  (new_var_info): Use DECL_HARD_REGISTER.
12923
12924 2011-01-14  Richard Guenther  <rguenther@suse.de>
12925
12926         PR tree-optimization/47280
12927         * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
12928         return CFG changes.
12929         (tree_ssa_forward_propagate_single_use_vars): Deal with
12930         CFG changes from associate_plusminus.
12931
12932 2011-01-14  Richard Guenther  <rguenther@suse.de>
12933
12934         PR middle-end/47281
12935         Revert
12936         2011-01-11  Richard Guenther  <rguenther@suse.de>
12937
12938         PR tree-optimization/46076
12939         * tree-ssa.c (useless_type_conversion_p): Conversions from
12940         unprototyped to empty argument list function types are useless.
12941
12942 2011-01-14  Richard Guenther  <rguenther@suse.de>
12943
12944         PR tree-optimization/47286
12945         * tree-ssa-structalias.c (new_var_info): Register variables are global.
12946
12947 2011-01-14  Martin Jambor  <mjambor@suse.cz>
12948
12949         PR middle-end/46823
12950         * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
12951
12952 2011-01-13  Anatoly Sokolov  <aesok@post.ru>
12953
12954         * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
12955         LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
12956         * config/xtensa/xtensa.c (xtensa_libcall_value,
12957         xtensa_function_value_regno_p): New functions.
12958         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
12959
12960 2011-01-13  Kai Tietz  <kai.tietz@onevision.com>
12961
12962         PR c++/47213
12963         * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
12964         PE specific hook.
12965         * config/i386/i386-protos.h (i386_pe_assemble_visibility):
12966         New function prototype.
12967         * config/i386/winnt.c (i386_pe_assemble_visibility):
12968         Warn only if attribute was specified by user.
12969
12970 2011-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
12971
12972         PR target/47251
12973         * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
12974         floating point.
12975         (floatunsdidf2_fcfidu): Ditto.
12976
12977 2011-01-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12978
12979         * config/s390/s390.c (print_operand_address): Replace 'error' with
12980         'output_operand_lossage'.
12981         (print_operand): Likewise.
12982
12983 2011-01-13  Jeff Law  <law@redhat.com>
12984
12985         PR rtl-optimization/39077
12986         * doc/invoke.texi (max-gcse-insertion-ratio): Document.
12987         * params.h (MAX_GCSE_INSERTION_RATIO): Define.
12988         * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
12989         * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
12990         * gcse.c (prune_insertions_deletions): New function.
12991         (compute_pre_data): Use it.
12992
12993 2011-01-13  Dodji Seketeli  <dodji@redhat.com>
12994
12995         PR debug/PR46973
12996         * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
12997         static function.
12998         (prune_unused_types_mark): Use it.
12999
13000 2011-01-13  Andrey Belevantsev  <abel@ispras.ru>
13001
13002         PR rtl-optimization/45352
13003         * sel-sched.c: Update copyright years.
13004         (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
13005         in the advancing loop when we have issued issue_rate insns.
13006
13007 2011-01-12  Richard Henderson  <rth@redhat.com>
13008
13009         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
13010         (TARGET_MD_ASM_CLOBBERS): New.
13011
13012         * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
13013         (TARGET_DELEGITIMIZE_ADDRESS): New.
13014
13015         * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
13016         (clzsi2, *bsch): New patterns.
13017
13018         * config/mn10300/mn10300.md (INT): New mode iterator.
13019         (*mov<INT>_clr): New pattern, and peep2 to generate it.
13020
13021         * config/mn10300/mn10300.c (mn10300_option_override): Force enable
13022         flag_split_wide_types.
13023
13024         * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
13025         (mn10300_trampoline_init): Rewrite without a template, an immediate
13026         load and a direct branch.
13027         * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
13028
13029 2011-01-12  Anatoly Sokolov  <aesok@post.ru>
13030
13031         * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
13032         * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
13033         * config/s390/s390.c (s390_output_addr_const_extra): Make static.
13034         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
13035
13036 2011-01-12  Kai Tietz  <kai.tietz@onevision.com>
13037
13038         PR debug/47209
13039         * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
13040         of type.
13041
13042 2011-01-12  Jan Hubicka  <jh@suse.cz>
13043
13044         PR driver/47244
13045         * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
13046         (PLUGIN_COND_CLOSE): New macro.
13047         (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
13048
13049 2011-01-12  Richard Guenther  <rguenther@suse.de>
13050
13051         PR lto/47259
13052         * lto-streamer-out.c (output_gimple_stmt): Do not wrap
13053         register variables in a MEM_REF.
13054
13055 2011-01-12  Joseph Myers  <joseph@codesourcery.com>
13056
13057         * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
13058         crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
13059         hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
13060         i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
13061         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
13062         x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
13063         ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
13064         m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
13065         mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
13066         s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
13067         sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
13068         am33_2.0-*-linux*): Use gnu-user.h before linux.h.
13069         * config/gnu-user.h: New.  Copied from linux.h.
13070         (LINUX_TARGET_STARTFILE_SPEC): Rename to
13071         GNU_USER_TARGET_STARTFILE_SPEC.
13072         (LINUX_TARGET_ENDFILE_SPEC): Rename to
13073         GNU_USER_TARGET_ENDFILE_SPEC.
13074         (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
13075         (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
13076         (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
13077         LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
13078         CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
13079         UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
13080         BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
13081         BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
13082         LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
13083         TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
13084         * config/arm/linux-eabi.h (CC1_SPEC): Use
13085         GNU_USER_TARGET_CC1_SPEC.
13086         (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
13087         (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
13088         (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
13089         * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
13090         LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
13091         LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
13092         CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
13093         LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
13094
13095 2011-01-12  Richard Guenther  <rguenther@suse.de>
13096
13097         PR other/46946
13098         * doc/invoke.texi (ffast-math): Document it is turned on
13099         with -Ofast.
13100
13101 2011-01-12  Jan Hubicka  <jh@suse.cz>
13102
13103         PR tree-optimization/47233
13104         * opts.c (common_handle_option): Disable ipa-reference with profile
13105         feedback.
13106
13107 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
13108
13109         * c-parser.c (c_parser_objc_at_property_declaration): Improved
13110         error message.
13111
13112 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
13113
13114         * c-parser.c (c_lex_one_token): Updated and reindented some
13115         comments.  No changes in code.
13116
13117 2011-01-11  Ian Lance Taylor  <iant@google.com>
13118
13119         * godump.c (go_output_var): Don't output the variable if there is
13120         already a type with the same name.
13121
13122 2011-01-11  Ian Lance Taylor  <iant@google.com>
13123
13124         * godump.c (go_format_type): Don't generate float80.
13125
13126 2011-01-11  Richard Henderson  <rth@redhat.com>
13127
13128         * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
13129         declaration.  Rewrite for both speed and size.
13130         (mn10300_address_cost_1): Remove.
13131         (mn10300_register_move_cost): New.
13132         (mn10300_memory_move_cost): New.
13133         (mn10300_rtx_costs): Rewrite for both speed and size.  Don't handle
13134         ZERO_EXTRACT.  Do handle UNSPEC, arithmetic, logicals, compare,
13135         extensions, shifts, BSWAP, CLZ.
13136         (mn10300_wide_const_load_uses_clr): Remove.
13137         (TARGET_REGISTER_MOVE_COST): New.
13138         (TARGET_MEMORY_MOVE_COST): New.
13139         * config/mn10300/mn10300-protos.h: Update.
13140         * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
13141
13142         * config/mn10300/constraints.md ("R", "T"): Remove constraints.
13143         * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
13144         * config/mn10300/mn10300-protos.h: Update.
13145         * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
13146         (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
13147         (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
13148         (*test_int_bitfield, *test_byte_bitfield): Remove.
13149         (*bit_test, *subreg_bit_test): Remove.
13150         * config/mn10300/predicates.md (const_8bit_operand): Remove.
13151
13152         * config/mn10300/constraints.md ("c"): Rename from "A".
13153         ("A", "D"): New constraint letters.
13154         * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
13155         (fmssf4, fnmasf4, fnmssf4): Likewise.
13156
13157         * config/mn10300/mn10300.md (isa): New attribute.
13158         (enabled): New attribute.
13159
13160         * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
13161         (abssf2, negsf2): Define only for hardware fp.
13162         (sqrtsf2): Reformat.
13163         (addsf3, subsf3, mulsf3): Merge expander and insn.
13164
13165         * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
13166         (DEBUGGER_AUTO_OFFSET): Remove.
13167         (DEBUGGER_ARG_OFFSET): Remove.
13168
13169         * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
13170         Emit register stores with the same offsets as the hardware.
13171         (mn10300_store_multiple_operation): Don't check that the register
13172         save offsets are monotonic.
13173         * config/mn10300/mn10300-protos.h: Update.
13174
13175         * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
13176
13177         * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
13178         in terms of the value on the stack, not the MDR register.
13179
13180 2011-01-11  Jan Hubicka  <jh@suse.cz>
13181
13182         PR lto/45721
13183         PR lto/45375
13184         * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
13185         (symbol_alias_set_destroy, symbol_alias_set_contains,
13186         propagate_aliases_backward): Declare.
13187         * lto-streamer-out.c (struct sets): New sturcture.
13188         (trivally_defined_alias): New function.
13189         (output_alias_pair_p): Rewrite.
13190         (output_unreferenced_globals): Fix output of alias pairs.
13191         (produce_symtab): Likewise.
13192         * ipa.c (function_and_variable_visibility): Set weak alias destination
13193         as needed in lto.
13194         * varasm.c (symbol_alias_set_t): Remove.
13195         (symbol_alias_set_destroy): Export.
13196         (propagate_aliases_forward, propagate_aliases_backward): New functions
13197         based on ...
13198         (compute_visible_aliases): ... this one; remove.
13199         (trivially_visible_alias): New
13200         (trivially_defined_alias): New.
13201         (remove_unreachable_alias_pairs): Rewrite.
13202         (finish_aliases_1): Reorganize code checking if alias is defined.
13203         * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
13204         in LTO mode.
13205
13206 2011-01-11  Richard Guenther  <rguenther@suse.de>
13207
13208         PR tree-optimization/46076
13209         * tree-ssa.c (useless_type_conversion_p): Conversions from
13210         unprototyped to empty argument list function types are useless.
13211
13212 2011-01-11  Richard Guenther  <rguenther@suse.de>
13213
13214         PR middle-end/45235
13215         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
13216         volatile MEMs as MEM_READONLY_P.
13217
13218 2011-01-11  Richard Guenther  <rguenther@suse.de>
13219
13220         PR tree-optimization/47239
13221         * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
13222
13223 2011-01-11  Jeff Law  <law@redhat.com>
13224
13225         PR tree-optimization/47086
13226         * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
13227         IVs from statements that might throw.
13228
13229 2011-01-10  Jan Hubicka  <jh@suse.cz>
13230
13231         PR lto/45375
13232         * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
13233
13234 2011-01-10  Jan Hubicka  <jh@suse.cz>
13235
13236         PR lto/45375
13237         * profile.c (read_profile_edge_counts): Ignore profile inconistency
13238         when correcting profile.
13239
13240 2011-01-10  Jan Hubicka  <jh@suse.cz>
13241
13242         PR lto/46083
13243         * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
13244         DECL_FINI_PRIORITY.
13245         * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
13246         Restore DECL_FINI_PRIORITY.
13247
13248 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13249
13250         * doc/gimple.texi: Fix quoting of multi-word return values in
13251         @deftypefn statements.  Ensure presence of return value.  Wrap
13252         overlong @deftypefn lines.
13253         (is_gimple_operand, is_gimple_min_invariant_address): Remove
13254         descriptions of removed functions.
13255         * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
13256         of multi-word return value in @deftypefn statement.
13257
13258 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13259
13260         * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
13261         (Conditional Expressions, Logical Operators)
13262         (Statement and operand traversals): Do not indent smallexample
13263         code.  Fix duplicate function argument in example.
13264
13265 2011-01-10  Jeff Law  <law@redhat.com>
13266
13267         PR tree-optimization/47141
13268         * ipa-split.c (split_function): Handle case where we are
13269         returning a value and the return block has a virtual operand phi.
13270
13271 2011-01-10  Jan Hubicka  <jh@suse.cz>
13272
13273         PR tree-optimization/47234
13274         * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
13275         (pass_feedback_split_functions): Declare.
13276         * passes.c (init_optimization_passes): Add ipa-split as subpass of
13277         tree-profile.
13278         * ipa-split.c (gate_split_functions): Update comments; disable
13279         split-functions for profile_arc_flag and branch_probabilities.
13280         (gate_feedback_split_functions): New function.
13281         (execute_feedback_split_functions): New function.
13282         (pass_feedback_split_functions): New global var.
13283
13284 2011-01-10  H.J. Lu  <hongjiu.lu@intel.com>
13285
13286         PR lto/46760
13287         * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
13288         calling gimple_call_set_cannot_inline.
13289
13290 2011-01-10  Iain Sandoe  <iains@gcc.gnu.org>
13291
13292         * config/darwin-sections.def: Remove unused section.
13293
13294 2011-01-10  Dave Korn  <dave.korn.cygwin@gmail.com>
13295
13296         PR c++/47218
13297         * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
13298
13299 2011-01-09  Nicola Pero  <nicola.pero@meta-innovation.com>
13300
13301         PR objc/47232
13302         * c-parser.c (c_parser_declaration_or_fndef): Improved
13303         error message.
13304
13305 2011-01-09  Kai Tietz  <kai.tietz@onevision.com>
13306
13307         * config/i386/winnt.c (i386_pe_start_function): Make sure
13308         to switch back to function's section.
13309
13310 2011-01-09  Iain Sandoe  <iains@gcc.gnu.org>
13311
13312         PR gcc/46902
13313         PR testsuite/46912
13314         * plugin.c: Move include of dlfcn.h from here...
13315         * system.h: ... to here.
13316
13317 2011-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13318
13319         * doc/cpp.texi (C++ Named Operators): Fix markup for header
13320         file name.
13321         * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
13322         two extra empty pages in PDF output.
13323
13324 2011-01-08  Nicola Pero  <nicola.pero@meta-innovation.com>
13325
13326         PR objc/47078
13327         * c-parser.c (c_parser_objc_type_name): If the type is unknown,
13328         for error recovery purposes behave as if it was not specified so
13329         that the default type is usd.
13330
13331 2011-01-07  Jan Hubicka  <jh@suse.cz>
13332
13333         PR tree-optmization/46469
13334         * ipa.c (function_and_variable_visibility): Clear needed flags on
13335         nodes with external decls; handle weakrefs merging correctly.
13336
13337 2011-01-07  Joseph Myers  <joseph@codesourcery.com>
13338
13339         * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
13340         not false.
13341
13342 2011-01-07  Jan Hubicka  <jh@suse.cz>
13343
13344         * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
13345         and no longer claim that gold is required for linker plugin.
13346         * configure: Regenerate.
13347         * gcc.c (PLUGIN_COND): New macro.
13348         (LINK_COMMAND_SPEC): Use it.
13349         (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
13350         * config.in (HAVE_LTO_PLUGIN): New.
13351         * configure.ac (--with-lto-plugin): New parameter; autodetect
13352         HAVE_LTO_PLUGIN.
13353
13354 2011-01-07  Jan Hubicka  <jh@suse.cz>
13355
13356         PR tree-optimization/46367
13357         * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
13358         when we can update original.
13359         (cgraph_mark_inline_edge): Sanity check.
13360         * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
13361
13362 2011-01-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13363
13364         * config/spu/spu.h (ASM_COMMENT_START): Define.
13365
13366 2011-01-07  H.J. Lu  <hongjiu.lu@intel.com>
13367
13368         PR driver/42445
13369         * gcc.c (%>S): New.
13370         (SWITCH_KEEP_FOR_GCC): Likewise.
13371         (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
13372         (do_spec_1): Handle "%>".
13373
13374         * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
13375
13376 2011-01-07  Jakub Jelinek  <jakub@redhat.com>
13377
13378         PR target/47201
13379         * config/i386/i386.c (ix86_delegitimize_address): If
13380         simplify_gen_subreg fails, return orig_x.
13381
13382         PR bootstrap/47187
13383         * value-prof.c (gimple_stringop_fixed_value): Handle
13384         lhs of the call properly.
13385
13386 2011-01-07  Jan Hubicka  <jh@suse.cz>
13387
13388         PR lto/45375
13389         * lto-opt.c (lto_reissue_options): Set flag_shlib.
13390
13391 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
13392
13393         * target.def (function_switched_text_sections): New hook.
13394         * doc/tm.texi: Regenerated.
13395         * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
13396         * final.c (default_function_switched_text_sections): New.
13397         (final_scan_insn): Call function_switched_text_sections when a
13398         mid-function section change occurs.
13399         * output.h (default_function_switched_text_sections): Declare.
13400         * config/darwin-protos.h (darwin_function_switched_text_sections):
13401         Likewise.
13402         * config/darwin.c (darwin_function_switched_text_sections): New.
13403         * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
13404
13405 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
13406
13407         * dwarf2out.c (gen_subprogram_die):  Add pubnames with code ranges for
13408         DWARF >= 3.  Add pubnames for the primary section and a reduced DIE for
13409         the secondary code fragment when outputting for DWARF == 2.
13410
13411 2011-01-07  Anatoly Sokolov  <aesok@post.ru>
13412
13413         * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
13414         * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
13415         Remove.
13416         * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
13417         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
13418
13419 2011-01-06  Eric Botcazou  <ebotcazou@adacore.com>
13420
13421         PR debug/46704
13422         * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
13423         when it is not empty.
13424
13425 2011-01-06  Changpeng Fang  <changpeng.fang@amd.com>
13426
13427         Bobcat Enablement
13428         * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
13429         (case ${target}): Add btver1.
13430         * config/i386/driver-i386.c (host_detect_local_cpu): Let
13431         -march=native recognize btver1 processors.
13432         * config/i386/i386-c.c (ix86_target_macros_internal): Add
13433         btver1 def_and_undef
13434         * config/i386/i386.c (struct processor_costs btver1_cost): New
13435         btver1 cost table.
13436         (m_BTVER1): New definition.
13437         (m_AMD_MULTIPLE): Includes m_BTVER1.
13438         (initial_ix86_tune_features): Add btver1 tune.
13439         (processor_target_table): Add btver1 entry.
13440         (static const char *const cpu_names): Add btver1 entry.
13441         (software_prefetching_beneficial_p): Add btver1.
13442         (ix86_option_override_internal): Add btver1 instruction sets.
13443         (ix86_issue_rate): Add btver1.
13444         (ix86_adjust_cost): Add btver1.
13445         * config/i386/i386.h (TARGET_BTVER1): New definition.
13446         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
13447         (enum processor_type): Add PROCESSOR_BTVER1.
13448         * config/i386/i386.md (define_attr "cpu"): Add btver1.
13449
13450 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13451
13452         PR target/43309
13453         * config/i386/i386.c (legitimize_tls_address)
13454         <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
13455         * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
13456         (tls_initial_exec_64_sun): New pattern.
13457
13458 2011-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
13459
13460         * doc/invoke.texi (Overall Options): Improve wording and markup
13461         of the description of -wrapper.
13462
13463 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
13464
13465         * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
13466         rdynamic, threads): New Driver options.
13467
13468 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13469
13470         PR target/38118
13471         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
13472         if coming from .tdata.
13473         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
13474
13475 2011-01-06  Jan Hubicka  <jh@suse.cz>
13476
13477         PR lto/47188
13478         * collect2.c (main): Do not enable LTOmode when plugin is active.
13479
13480 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13481
13482         PR other/45915
13483         * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
13484         --version output if supported.
13485         * configure: Regenerate.
13486
13487 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
13488
13489         * config/linux-android.opt (tno-android-cc, tno-android-ld): New
13490         Driver options.
13491
13492 2011-01-06  Jakub Jelinek  <jakub@redhat.com>
13493
13494         PR c/47150
13495         * c-convert.c (convert): When converting a complex expression
13496         other than COMPLEX_EXPR to a different complex type, ensure
13497         c_save_expr is called instead of save_expr, unless in_late_binary_op.
13498         * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
13499         when converting COMPLEX_TYPE.
13500
13501 2011-01-06  Ira Rosen  <irar@il.ibm.com>
13502
13503         PR tree-optimization/47139
13504         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
13505         only the last reduction value is used outside the loop.  Update
13506         documentation.
13507
13508 2011-01-05  Joseph Myers  <joseph@codesourcery.com>
13509
13510         * config/rtems.opt: New.
13511         * config.gcc (*-*-rtems*): Use rtems.opt.
13512
13513 2011-01-05  Changpeng Fang  <changpeng.fang@amd.com>
13514
13515         * config/i386/i386.c (ix86_option_override_internal): Bulldozer
13516         processors do not support 3DNow instructions.
13517
13518 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13519
13520         * config/spu/spu.c (spu_option_override): Set parameter
13521         PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
13522
13523 2011-01-05  Jan Hubicka  <jh@suse.cz>
13524
13525         * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
13526         at the command line.
13527
13528 2011-01-05  Martin Jambor  <mjambor@suse.cz>
13529
13530         PR lto/47162
13531         * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
13532         deltas on streamed outgoing edges.
13533         (output_node_opt_summary): Output info for outgoing edges only when
13534         the node is in new parameter set.
13535         (output_cgraph_opt_summary): New parameter set, passed to the two
13536         aforementioned functions.  Update its forward declaration and its
13537         callee too.
13538
13539 2011-01-05  Tom Tromey  <tromey@redhat.com>
13540
13541         * c-parser.c (c_parser_omp_atomic): Pass location of assignment
13542         operator to c_finish_omp_atomic.
13543         * c-typeck.c (lvalue_or_else): Add 'loc' argument.
13544         (build_unary_op): Update.
13545         (build_modify_expr): Update.
13546         (build_asm_expr): Update.
13547
13548 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13549
13550         * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
13551         newly inserted insns.
13552         (pad_bb): Likewise.
13553         (spu_emit_branch_hint): Likewise.
13554         (insert_hbrp_for_ilb_runout): Likewise.
13555         (spu_machine_dependent_reorg): Call df_finish_pass after
13556         schedule_insns returns.
13557
13558 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13559
13560         * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
13561
13562 2011-01-05  Eric Botcazou  <ebotcazou@adacore.com>
13563
13564         PR tree-optimization/47005
13565         * tree-sra.c (struct access): Add 'non_addressable' bit.
13566         (create_access): Set it for a DECL_NONADDRESSABLE_P field.
13567         (decide_one_param_reduction): Return 0 if the parameter is passed by
13568         reference and one of the accesses in the group is non_addressable.
13569
13570 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
13571
13572         PR tree-optimization/47056
13573         * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
13574         (mark_load): Likewise.  Handle FUNCTION_DECL specially.
13575         (mark_store): Likewise.  Pass STMT to ipa_record_reference.
13576
13577 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
13578
13579         * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
13580         initializer.  Skip view conversions from aggregate types.
13581
13582 2011-01-04  Kai Tietz  <kai.tietz@onevision.com>
13583
13584         PR bootstrap/47055
13585         * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
13586
13587 2011-01-04  Philipp Thomas  <pth@suse.de>
13588
13589         * config/microblaze/microbalse.opt (mxl-float-convert): Fix
13590         obvious typo.
13591
13592 2011-01-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13593
13594         * function.c (thread_prologue_and_epilogue_insns): Do not crash
13595         on empty epilogue sequences.
13596
13597 2011-01-04  Joseph Myers  <joseph@codesourcery.com>
13598
13599         * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
13600         non-static): New Driver options.
13601
13602 2011-01-04  Jie Zhang  <jie@codesourcery.com>
13603
13604         PR driver/47137
13605         * gcc.c (default_compilers[]): Set combinable field to 0
13606         for all assembly languages.
13607
13608 2011-01-04  Mingjie Xing  <mingjie.xing@gmail.com>
13609
13610         * config/mips/loongson3a.md: New file.
13611         * config/mips/mips.md: Include loongson3a.md.
13612         * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
13613         TUNE_LOONGSON_3A.
13614
13615 2011-01-03  Eric Botcazou  <ebotcazou@adacore.com>
13616
13617         PR middle-end/47017
13618         * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
13619         instead of convert_memory_address_addr_space on the base expression.
13620
13621 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13622
13623         * config/spu/spu.c (spu_option_override): Update error text
13624         for bad -march= / -mtune= values.
13625
13626 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13627
13628         * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
13629         if branch-hint optimization will be performed.
13630
13631 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
13632
13633         PR tree-optimization/47148
13634         * ipa-split.c (split_function): Convert arguments to
13635         DECL_ARG_TYPE if possible.
13636
13637         PR tree-optimization/47155
13638         * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
13639         when computing uns.
13640
13641         PR rtl-optimization/47157
13642         * combine.c (try_combine): If undobuf.other_insn becomes
13643         (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
13644         and set *new_direct_jump_p too.
13645
13646 2011-01-03  Sebastian Pop  <sebastian.pop@amd.com>
13647
13648         PR tree-optimization/47021
13649         * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
13650
13651 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
13652
13653         * gcc.c (process_command): Update copyright notice dates.
13654         * gcov.c (print_version): Likewise.
13655         * gcov-dump.c (print_version): Likewise.
13656         * mips-tfile.c (main): Likewise.
13657         * mips-tdump.c (main): Likewise.
13658
13659 2011-01-03  Martin Jambor  <mjambor@suse.cz>
13660
13661         PR tree-optimization/46801
13662         * tree-sra.c (type_internals_preclude_sra_p): Check whether
13663         aggregate fields start at byte boundary instead of the bit-field flag.
13664
13665 2011-01-03  H.J. Lu  <hongjiu.lu@intel.com>
13666
13667         PR driver/47137
13668         * gcc.c (main): Revert revision 168407.
13669
13670 2011-01-03  Martin Jambor  <mjambor@suse.cz>
13671
13672         * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
13673
13674 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13675
13676         * tree-vect-generic.c (expand_vector_operations_1): When using vector/
13677         vector optab to expand vector/scalar shift, update gimple to vector.
13678
13679 2011-01-03  Martin Jambor  <mjambor@suse.cz>
13680
13681         * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
13682         a thunk.
13683
13684 2011-01-03  Martin Jambor  <mjambor@suse.cz>
13685
13686         PR tree-optimization/46984
13687         * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
13688         HOST_WIDE_INT.
13689         (cgraph_create_indirect_edge): Fixed line length.
13690         (cgraph_indirect_call_info): Declare.
13691         (cgraph_make_edge_direct) Update declaration.
13692         * cgraph.c (cgraph_allocate_init_indirect_info): New function.
13693         (cgraph_create_indirect_edge): Use it.
13694         (cgraph_make_edge_direct): Made delta HOST_WIDE_INT.  Updated all
13695         callees.
13696         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
13697         the new thunk_delta representation.
13698         * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
13699         HOST_WIDE_INT.
13700         (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
13701         (ipa_read_indirect_edge_info): Likewise.
13702         * lto-cgraph.c (output_edge_opt_summary): New function.
13703         (output_node_opt_summary): Call it on all outgoing edges.
13704         (input_edge_opt_summary): New function.
13705         (input_node_opt_summary): Call it on all outgoing edges.
13706
13707 2011-01-02  H.J. Lu  <hongjiu.lu@intel.com>
13708
13709         PR driver/47137
13710         * gcc.c (main): Don't check have_o when settting combine_inputs.
13711
13712 2011-01-02  Eric Botcazou  <ebotcazou@adacore.com>
13713
13714         * regrename.c: Add general comment describing the pass.
13715         (struct du_head): Remove 'length' field.
13716         (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
13717         (regrename_optimize): Do not sort chains.  Rework comments, add others.
13718         Force renaming to the preferred class (if any) in the first pass and do
13719         not consider registers that belong to it in the second pass.
13720         (create_new_chain): Do not set 'length' field.
13721         (scan_rtx_reg): Likewise.
13722
13723 2011-01-02  Jakub Jelinek  <jakub@redhat.com>
13724
13725         PR tree-optimization/47140
13726         * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
13727         TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
13728         to bit_value_binop.
13729
13730         PR rtl-optimization/47028
13731         * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
13732         parm_birth_insn instead of at the beginning of first bb.
13733
13734 2011-01-02  Mingjie Xing  <mingjie.xing@gmail.com>
13735
13736         * doc/generic.texi: Remove duplicated "@subsubsection Statements".
13737         Remove the word "see" before "@pxref".
13738         * doc/rtl.texi: Remove the word "see" before "@pxref".
13739
13740 2011-01-01  Jan Hubicka  <jh@suse.cz>
13741
13742         * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
13743         memory.
13744
13745 2011-01-01  Kai Tietz  <kai.tietz@onevision.com>
13746
13747         PR target/38662
13748         * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
13749
13750 \f
13751 Copyright (C) 2011 Free Software Foundation, Inc.
13752
13753 Copying and distribution of this file, with or without modification,
13754 are permitted in any medium without royalty provided the copyright
13755 notice and this notice are preserved.