OSDN Git Service

PR target/48899
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2011-05-09  Joseph Myers  <joseph@codesourcery.com>
2
3         * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
4         * config/mips/mips-tables.opt: New file (generated).
5         * config.gcc (mips*-*-*): Add mips/mips-tables.opt to
6         extra_options.
7         * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
8         MIPS_ARCH_OPTION_NATIVE): Define.
9         * config/mips/mips.c (mips_cpu_info_table): Move contents to
10         mips-cpus.def.
11         (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
12         mips_parse_cpu): Remove.
13         (mips_cpu_info_from_opt, mips_default_arch): New.
14         (mips_handle_option): Don't assert that global structures are in
15         use.  Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
16         (mips_option_override): Use new variables and functions to set
17         state of these options.  Use strcmp to check for individual CPU
18         names.
19         * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
20         definition.
21         * config/mips/mips.opt (march=): Use ToLower and Enum.
22         (mips): Use ToLower, Enum and Var.
23         (mtune=): Use ToLower and Enum.
24         * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
25
26 2011-05-08  Jan Hubicka  <jh@suse.cz>
27
28         * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
29         Arrange type pairs to be UID ordered.
30         (gimple_lookup_type_leader): Make inline.
31
32 2011-05-09  Nick Clifton  <nickc@redhat.com>
33
34         PR target/48899
35         * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
36         PROCESSOR_DEFAULT.
37
38         PR target/48897
39         * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
40         variable 's'.
41
42 2011-05-08  Chung-Lin Tang  <cltang@codesourcery.com>
43
44         * combine.c (simplify_comparison): Abstract out parts into...
45         (simplify_compare_const): ... new function.
46         (try_combine): Generalize parallel arithmetic/compare combining
47         to call simplify_compare_const() and CANONICALIZE_COMPARE().
48
49 2011-05-08  Jan Hubicka  <jh@suse.cz>
50
51         * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
52         (cgraph_create_virtual_clone): Call hooks once virtual clone is finished.
53         * cgraph.h (cgraph_clone_node): Update prototype.
54         * ipa-cp.c (ipcp_estimate_growth): Use estimate_ipcp_clone_size_and_time.
55         * ipa-inline-transform.c (clone_inlined_nodes): Update.
56         * lto-cgraph.c (input_node): Update.
57         * ipa-inline.c (recursive_inlining): Update.
58         * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
59         (evaluate_conditions_for_known_args): Break out from ...
60         (evaluate_conditions_for_edge): ... here.
61         (evaluate_conditions_for_ipcp_clone): New function.
62         (inline_node_duplication_hook): Update clone summary based
63         on parameter map.
64         (estimate_callee_size_and_time): Rename to ...
65         (estimate_node_size_and_time): take NODE instead of EDGE;
66         take POSSIBLE_TRUTHS as argument.
67         (estimate_callee_size_and_time): Update.
68         (estimate_ipcp_clone_size_and_time): New function.
69         (do_estimate_edge_time): Update.
70
71 2011-05-08  Richard Guenther  <rguenther@suse.de>
72
73         PR middle-end/48908
74         PR middle-end/48905
75         * expmed.c (expand_shift_1): Compute adjusted constant shift
76         amount manually.
77
78 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
79
80         * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
81
82 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
83
84         * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
85
86 2011-05-08  Jonathan Wakely  <jwakely.gcc@gmail.com>
87
88         * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
89
90 2011-05-07  Jan Hubicka  <jh@suse.cz>
91
92         * ipa-inline-transform.c (inline_call): Account when program size
93         decreases.
94         * ipa-inline.c (relative_time_benefit): New function.
95         (edge_badness): Reorganize to be power 2 based; fix thinko when
96         computing badness for negative growth; update comments to match
97         reality; better dumps.
98
99 2011-05-07  Eric Botcazou  <ebotcazou@adacore.com>
100
101         * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
102         type to bool and adjust comment.
103         * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
104         (fold_mathfn_compare): Remove calls to global_bindings_p.
105         (fold_inf_compare): Likewise.
106         * stor-layout.c (variable_size): Adjust call to global_bindings_p.
107         * c-tree.h (global_bindings_p): Adjust prototype.
108         * c-decl.c (global_bindings_p): Return bool and simplify.
109
110 2011-05-07  Zdenek Dvorak  <ook@ucw.cz>
111
112         PR tree-optimization/48837
113         * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
114         when accumulator transformation is performed.
115
116 2011-05-06  Jan Hubicka  <jh@suse.cz>
117
118         * i386.h (ix86_tune_indices): Add
119         X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
120         (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macor.
121         * i386.c (initial_ix86_tune_features): Add
122         X86_SOFTARE_PREFETCHING_BENEFICIAL.
123         (software_prefetching_beneficial_p): Remove predicate.
124         (ix86_option_override_internal): Use new macro.
125
126 2011-05-06  Jan Hubicka  <jh@suse.cz>
127
128         * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
129
130 2011-05-06  Jan Hubicka  <jh@suse.cz>
131
132         * cgraph.c (cgraph_add_thunk): Create real function node instead
133         of alias node; finalize it and mark needed/reachale; arrange visibility
134         to be right and add it into the corresponding same comdat group list.
135         (dump_cgraph_node): Dump thunks.
136         * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
137         cgraph_function_with_gimple_body_p,
138         cgraph_first_function_with_gimple_body,
139         cgraph_next_function_with_gimple_body): New functions.
140         (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
141         New macros.
142         * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
143         (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
144         * cgraphunit.c (cgraph_finalize_function): Only look into possible
145         devirtualization when optimizing.
146         (verify_cgraph_node): Verify thunks.
147         (cgraph_analyze_function): Analyze thunks.
148         (cgraph_mark_functions_to_output): Output thunks only in combination
149         with function they are assigned to.
150         (assemble_thunk): Turn thunk into non-thunk; don't try to turn
151         alias into normal node.
152         (assemble_thunks): New functoin.
153         (cgraph_expand_function): Use it.
154         * lto-cgraph.c (lto_output_node): Stream thunks.
155         (input_overwrite_node): Stream in thunks.
156         * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
157         * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
158         * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
159         * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
160         (inline_analyze_function): Do not care about thunk jump functions.
161         (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
162         * ipa-prop.c (ipa_prop_write_jump_functions): Use
163         cgraph_function_with_gimple_body_p.
164         * passes.c (do_per_function_toporder): Use
165         cgraph_function_with_gimple_body_p.
166         (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
167         (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
168         (function_called_by_processed_nodes_p): Likewise.
169
170 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
171
172         * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
173         rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
174         entries.
175         (mabi=): Replace with separate entries for mabi=altivec,
176         mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
177         mabi=ieeelongdouble and mabi=ibmlongdouble.
178         * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
179         check for -mabi=spe without SPE ABI support here.
180         (rs6000_handle_option): Replace OPT_mabi_ handling with
181         OPT_mabi_altivec and OPT_mabi_spe handling.
182
183 2011-05-06  Cary Coutant  <ccoutant@google.com>
184
185         * dwarf2out.c (contains_subprogram_definition): New function.
186         (should_move_die_to_comdat): Call it.
187
188 2011-05-06  Jeff Law  <law@redhat.com>
189
190         * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
191         remove_ctrl_stmt_and_useless_edges.
192         (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
193         (fixup_template_block, thread_single_edge): Likewise.
194         (mark_threaded_blocks): Use THREAD_TARGET.
195
196 2011-05-06  Alan Modra  <amodra@gmail.com>
197
198         PR target/48900
199         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
200         const0_rtx as the arg to the dummy __tls_get_addr libcall.
201
202 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
203
204         * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
205         constraint modifier to "r".
206
207 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
208
209         * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
210         fall through for OPT_mcmodel_.
211
212 2011-05-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
213
214         * config/s390/s390.c (s390_asm_trampoline_template): Comment
215         instruction sizes.
216         (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
217
218 2011-05-06  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
219
220       PR target/47930
221       * config/arm/arm.opt (marm): Document it.
222       (mthumb): Reject negative variant.
223
224 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
225
226         PR target/48898
227         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
228         Fix typo in "ccvt" variable name.
229
230 2011-05-06  Tristan Gingold  <gingold@adacore.com>
231
232         PR target/48895
233         * config/vms/vms-ar.c (main): Remove cwd variable.
234
235 2011-05-06  Jakub Jelinek  <jakub@redhat.com>
236
237         PR debug/48902
238         * var-tracking.c (prepare_call_arguments): Move else before #endif.
239
240 2011-05-05  Nathan Froyd  <froydnj@codesourcery.com>
241
242         * except.c (sjlj_emit_dispatch_table): Call build_case_label.
243         * gimplify.c (gimplify_switch_expr): Likewise.
244         * omp-low.c (expand_omp_sections): Likewise.
245         * tree-eh.c (lower_try_finally_switch): Likewise.
246         (lower_eh_dispatch): Likewise.
247         * tree.h (build_case_label): Declare.
248         * tree.c (build_case_label): Define.
249
250 2011-05-05  Jason Merrill  <jason@redhat.com>
251
252         PR c++/40975
253         * tree-inline.c (copy_tree_r): Use copy_statement_list.
254         (copy_statement_list): Don't recurse.
255         * stor-layout.c (copy_self_referential_tree_r): Don't allow
256         STATEMENT_LIST.
257
258 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
259
260         * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
261         through from -mfpu= handling.
262         * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
263
264 2011-05-05  Bernd Schmidt  <bernds@codesourcery.com>
265
266         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
267         POST_MODIFY.
268
269 2011-05-05  Steve Ellcey  <sje@cup.hp.com>
270
271         * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
272         for 11.31.
273         (hppa[12]*-*-hpux11*): Ditto.
274         (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
275         * config/ia64/hpux-unix2003.h: New.
276         * config/pa/pa-hpux1131.opt: New.
277         * config/pa/pa-hpux1131.h: New.
278         * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
279         * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
280         * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
281
282 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
283
284         PR debug/48853
285         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
286         instead of mode as 3rd argument to recursive call.
287         (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
288         emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
289         VOIDmode.
290         (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
291         don't give up if mode is Pmode and mem_mode is not VOIDmode.
292         (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
293         use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
294
295 2011-05-05  Julian Brown  <julian@codesourcery.com>
296
297         * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
298         parenthesis in D-register case.
299
300 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
301
302         * opt-functions.awk (var_type_struct): Handle Enum options.
303         * optc-gen.awk: Don't check range of variables of character type.
304         * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
305         rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
306         rs6000_sdata_name, rs6000_explicit_options): Remove.
307         (rs6000_option_override_internal): Check for -malign-power here.
308         Use global_options_set instead of rs6000_explicit_options.
309         (rs6000_parse_fpu_option): Remove.
310         (rs6000_handle_option): Access variables via opts and opts_set
311         pointers.  Use error_at and warning_at.  Add fall-through
312         comments.  Don't handle OPT_mcmodel_, OPT_maix_struct_return,
313         OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
314         OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
315         OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
316         here.  Don't use rs6000_parse_fpu_option.
317         * config/rs6000/rs6000.h (fpu_type): Remove declaration.
318         * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
319         rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
320         (mrecip=): Use Var.
321         (mspe): Use Var and Save.
322         (mtraceback=): Use Enum and Var.
323         (rs6000_traceback_type): New Enum and EnumValue entries.
324         (mfloat-gprs=): Use Enum, Var and Save.
325         (rs6000_float_gprs): New Enum and EnumValue entries.
326         (mlong-double-): use Var and Save.
327         (msched-costly-dep=, minsert-sched-nops=): Use Var.
328         (malign-): Use Enum and Var.
329         (rs6000_alignment_flags): New Enum and EnumValue entries.
330         (mfpu=): Use Enum.
331         (fpu_type_t): New Enum and EnumValue entries.
332         * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
333         global_options_set instead of rs6000_explicit_options.
334         * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
335         global_options_set instead of rs6000_explicit_options.
336         * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
337         global_options_set instead of rs6000_explicit_options.
338         * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
339         global_options_set instead of rs6000_explicit_options.
340         * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
341         global_options_set instead of rs6000_explicit_options.
342         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
343         global_options_set instead of rs6000_explicit_options.
344         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
345         definition.
346         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
347         global_options_set instead of rs6000_explicit_options.
348         * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
349         (rs6000_cmodel): New Enum and EnumValue entries.
350         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
351         global_options_set instead of rs6000_explicit_options.
352         * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
353         (mtls-size=): Use Enum and Var.
354         (rs6000_tls_size): New Enum and EnumValue entries.
355
356 2011-05-05  Michael Matz  <matz@suse.de>
357
358         * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
359         * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
360         * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
361         * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
362         * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
363         * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
364         * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
365         * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
366         * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
367         * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
368         * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
369         * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
370         * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
371         * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
372         * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
373         * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
374
375 2011-05-05  Richard Guenther  <rguenther@suse.de>
376
377         * expmed.c (expand_variable_shift): Rename to ...
378         (expand_shift_1): ... this.  Take an expanded shift amount.
379         For rotates recurse directly not building trees for the shift amount.
380         (expand_variable_shift): Wrap around expand_shift_1.
381         (expand_shift): Adjust.
382
383 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
384
385         * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
386
387 2011-05-05  Eric Botcazou  <ebotcazou@adacore.com>
388
389         * tree.h (get_pending_sizes): Remove prototype.
390         (put_pending_size): Likewise.
391         (put_pending_sizes): Likewise.
392         * stor-layout.c (pending_sizes): Delete.
393         (get_pending_sizes): Likewise.
394         (put_pending_size): Likewise.
395         (put_pending_sizes): Likewise.
396         (variable_size): Do not call put_pending_size and tidy up.
397         * function.h (struct function): Remove dont_save_pending_sizes_p.
398         * lto-streamer-in.c (input_function): Do not stream it.
399         * lto-streamer-out.c (output_function): Likewise.
400         * tree-inline.c (initialize_cfun): Do not copy it.
401         * c-decl.c (store_parm_decls): Do not set it.
402         * omp-low.c (create_task_copyfn): Likewise.
403         * tree-optimize.c (tree_rest_of_compilation): Likewise.
404
405 2011-05-05  Uros Bizjak  <ubizjak@gmail.com>
406
407         * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
408         conditions.
409         (*movdf_internal): Ditto.
410         (*movdf_internal_nointeger): Ditto.
411         (*movsf_internal): Ditto.
412
413 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
414
415         * c-decl.c (finish_decl): Don't call get_pending_sizes.
416         (grokparm): Add parameter expr.  Pass it to grokdeclarator.
417         (push_parm_decl): Add parameter expr.  Pass it to grokdeclarator.
418         (c_variable_size): Remove.
419         (grokdeclarator): Use save_expr instead of c_variable_size.  Don't
420         call put_pending_sizes.
421         (get_parm_info): Add parameter expr.  Use it to set
422         arg_info->pending_sizes.
423         (store_parm_decls): Use arg_info->pending_sizes instead or calling
424         get_pending_sizes.
425         * c-parser.c (c_parser_parms_declarator): Update call to
426         c_parser_parms_list_declarator.
427         (c_parser_parms_list_declarator): Take parameter expr.  Update
428         call to push_parm_decl.  Update recursive call.  Don't call
429         get_pending_sizes.  Update calls to get_parm_info.
430         (c_parser_objc_method_definition): Update calls to
431         c_parser_objc_method_decl and objc_start_method_definition.
432         (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
433         (c_parser_objc_method_decl): Add parameter expr.  Update call to
434         grokparm.
435         (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
436         * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
437         (get_parm_info, grokparm, push_parm_decl): Update prototypes.
438
439 2011-05-05  Michael Hope  <michael.hope@linaro.org>
440
441         PR pch/45979
442         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
443         __ARM_EABI__ hosts.
444
445 2011-05-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
446
447         * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
448         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
449         (spu_output_mi_thunk): New function.
450
451 2011-05-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
452
453         * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
454         targetm.asm_out.print_operand.
455         * config/sol2.c: Include target.h.
456
457 2011-05-04  Jan Hubicka  <jh@suse.cz>
458
459         * ipa-inline.c (reset_edge_caches): New function.
460         (update_caller_keys): Add check_inlinablity_for; do not
461         reset edge caches; remove now unnecesary loop.
462         (update_callee_keys): Add comments; reset node_growth_cache of callee.
463         (update_all_callee_keys): Likewise.
464         (inline_small_functions): Sanity check cache; update code
465         recomputing it.
466
467 2011-05-04  Bernd Schmidt  <bernds@codesourcery.com>
468
469         PR rtl-optimization/47612
470         * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
471         as the last insn of the sequence to be moved.
472
473 2011-05-04  Tobias Burnus  <burnus@net-b.de>
474
475         PR fortran/48864
476         * doc/invoke.texi (Ofast): Document that it
477         enables Fortran's -fno-protect-parens.
478
479 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
480
481         * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
482
483 2011-05-04  Eric Botcazou  <ebotcazou@adacore.com>
484
485         * stor-layout.c (variable_size): Do not issue errors.
486
487 2011-05-04  Richard Guenther  <rguenther@suse.de>
488
489         * coverage.c (tree_coverage_counter_ref): Use integer_type_node
490         for array-ref indices.
491         (tree_coverage_counter_addr): Likewise.
492         (build_fn_info_type): Use size_int for index types.
493         (build_gcov_info): Likewise.
494
495 2011-05-04  Richard Guenther  <rguenther@suse.de>
496
497         * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
498         to build_int_cst.
499         * c-typeck.c (really_start_incremental_init): Use bitsize_int
500         for constructor indices.
501         (push_init_level): Likewise.
502
503 2011-05-04  Richard Guenther  <rguenther@suse.de>
504
505         * explow.c (promote_mode): Move variable declarations before code.
506
507 2011-05-04  Nathan Froyd  <froydnj@codesourcery.com>
508
509         * tree.h (build_function_type_array): Declare.
510         (build_varargs_function_type_array): Declare.
511         (build_function_type_vec, build_varargs_function_type_vec): Define.
512         * tree.c (build_function_type_array_1): New function.
513         (build_function_type_array): New function.
514         (build_varargs_function_type_array): New function.
515
516 2011-05-04  Richard Sandiford  <richard.sandiford@linaro.org>
517
518         * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
519         before setting STMT_VINFO_TYPE.
520
521 2011-05-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
522
523         * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
524         instead of spu_pass_by_reference.
525
526 2011-05-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
527
528         * calls.c (emit_library_call_value_1): Invoke
529         promote_function_mode hook on libcall arguments.
530         * explow.c (promote_function_mode, promote_mode): Handle TYPE
531         argument being NULL.
532         * targhooks.c (default_promote_function_mode): Lisewise.
533         * config/s390/s390.c (s390_promote_function_mode): Likewise.
534         * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
535
536         * doc/tm.texi: Document that TYPE argument might be NULL.
537
538 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
539
540         * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
541
542 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
543
544         From Bernd Schmidt
545         * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
546
547 2011-05-04  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
548
549         * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
550         (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
551         Move ...
552         * mips-tfile.c: ... here.
553         Don't include coretypes.h, tm.h, filenames.h.
554         (saber_stop): Remove definition and all calls.
555         [__SABER__]: Remove.
556         (__LINE__): Remove default.
557         (Size_t, Ptrdiff_t): Remove definitions.
558         Replace by size_t, ptrdiff_t.
559         [!MIPS_DEBUGGING_INFO]: Remove.
560         (SHASH_SIZE, THASH_SIZE): Remove defaults.
561         (progname): Add const.
562         (STATIC): Remove.
563         Replace all uses by static.
564         (ALIGN_SYMTABLE_OFFSET): Remove default.
565         * mips-tdump.c: Don't include coretypes.h, tm.h.
566         Remove !MIPS_IS_STAB guard.
567         * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
568         $(TM_H), filenames.h dependencies.
569         (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
570
571 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
572
573         From Jie Zhang
574         *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
575         (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
576
577 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
578
579         From Bernd Schmidt
580         * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
581         account and save/restore RETS.
582         (PROFILE_BEFORE_PROLOGUE): Define.
583         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character.  Correct
584         the push insn to use predecrement.
585
586 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
587
588         From Jie Zhang
589         * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
590
591 2011-05-04  Nick Clifton  <nickc@redhat.com>
592
593         * config/mn10300/mn10300.c: Include cfgloop.h.
594         (DUMP): New macro.
595         (mn10300_insert_setlb_lcc): New function.  Inserts a SETLB and a
596         Lcc or a FLcc insn into the instruction stream.
597         (mn10300_block_contains_call): New function.  Returns true if the
598         given basic block contains a CALL insn.
599         (mn10300_loop_contains_call_insn): New function.  Returns true if
600         the given loop contains a CALL insn.
601         (mn10300_scan_for_setlb_lcc): New function.  Finds opportunities
602         to use the SETLB and Lcc or FLcc insns.
603         (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
604         (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
605         * config/mn10300/mn10300.opt (msetlb): New option.  Used to
606         disable the SETLB optimization.
607         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
608         __SETLB__ or __NO_SETLB__.
609         * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
610         (movsf_internal): Handle MDR register.
611         (cmpsi): Make visible.
612         (setlb): New pattern.
613         (Lcc): New pattern.
614         (FLcc): New pattern.
615
616 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
617
618         PR target/48860
619         * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
620         for reg<->xmm moves.
621         * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
622         (vec_concatv2di_rex64_sse): Ditto.
623         (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
624         (*vec_extractv2di_1_rex64): Ditto.
625
626         Revert:
627         2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
628
629         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
630         reg<->xmm moves.
631         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
632
633 2011-05-04  Richard Guenther  <rguenther@suse.de>
634
635         * tree.h (int_const_binop): Remove notrunc argument.
636         * fold-const.c (int_const_binop): Remove notrunc argument.  Always
637         create integer constants that are properly truncated.
638         (extract_muldiv_1): Expand one notrunc int_const_binop caller.
639         (const_binop): Remove zero notrunc argument to int_const_binop.
640         (size_binop_loc): Likewise.
641         (fold_div_compare): Likewise.
642         (maybe_canonicalize_comparison_1): Likewise.
643         (fold_comparison): Likewise.
644         (fold_binary_loc): Likewise.
645         (multiple_of_p): Likewise.
646         * expr.c (store_constructor): Likewise.
647         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
648         (maybe_fold_stmt_addition): Likewise.
649         * ipa-prop.c (ipa_modify_call_arguments): Likewise.
650         * stor-layout.c (layout_type): Likewise.
651         * tree-data-ref.c (tree_fold_divides_p): Likewise.
652         * tree-sra.c (build_ref_for_offset): Likewise.
653         (build_user_friendly_ref_for_offset): Likewise.
654         * tree-ssa-address.c (maybe_fold_tmr): Likewise.
655         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
656         * tree-ssa-loop-niter.c (inverse): Likewise.
657         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
658         * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
659         * tree-switch-conversion.c (check_range): Likewise.
660         (build_constructors): Likewise.
661         * tree-vect-generic.c (expand_vector_piecewise): Likewise.
662         * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
663         (extract_range_from_assert): Likewise.
664         (vrp_int_const_binop): Likewise.
665         (extract_range_from_binary_expr): Likewise.
666         (extract_range_from_unary_expr): Likewise.
667         (check_array_ref): Likewise.
668         (find_case_label_range): Likewise.
669         (simplify_div_or_mod_using_ranges): Likewise.
670         * tree-cfg.c (group_case_labels_stmt): Use double-ints for
671         comparing case labels for merging.
672
673 2011-05-03  Mark Wielaard  <mjw@redhat.com>
674
675         * dwarf2out.c (debug_str_hash_forced): Removed.
676         (gen_label_for_indirect_string): Removed.
677         (get_debug_string_label): Removed.
678         (AT_string_form): Generate label directly.
679         (output_indirect_string): Test indirect_string_node for
680         DW_FORM_strp instead of checking label and refcount.
681         (prune_indirect_string): Removed.
682         (prune_unused_types): Don't check debug_str_hash_forced or
683         call prune_indirect_string.
684
685 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
686
687         PR other/48093
688         * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
689
690 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
691
692         PR debug/47994
693         PR debug/47919
694         * combine.c (try_combine): Skip debug insns at m_split tests.
695
696 2011-04-26  Mark Wielaard  <mjw@redhat.com>
697
698         PR42288
699         * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
700         when info_section_emitted.
701
702 2011-05-03  Joseph Myers  <joseph@codesourcery.com>
703
704         * config/mips/mips-opts.h: New.
705         * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
706         to mips-opts.h.
707         (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
708         (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
709         or OPT_mr10k_cache_barrier_ here.  Access mips_cache_flush_func
710         via opts pointer.
711         * config/mips/mips.h (enum mips_code_readable_setting): Move to
712         mips-opts.h.
713         (mips_abi, mips_code_readable): Don't declare.
714         * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
715         (mabi=): Use Enum and Var.
716         (mips_abi): New Enum and EnumValue entries.
717         (mcode-readable=): Use Enum and Var.
718         (mips_code_readable_setting): New Enum and EnumValue entries.
719         (mr10k-cache-barrier=): Use Enum and Var.
720         (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
721
722 2011-05-03  Jan Hubicka  <jh@suse.cz>
723
724         * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
725         replace hash by pointer map.
726         (cgraph_node_set_element_def, cgraph_node_set_element,
727         const_cgraph_node_set_element, varpool_node_set_element_def,
728         varpool_node_set_element, const_varpool_node_set_element): Remove.
729         (free_cgraph_node_set, free_varpool_node_set): New function.
730         (cgraph_node_set_size, varpool_node_set_size): Use vector size.
731         * tree-emutls.c: Free varpool node set.
732         * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
733         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
734         debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
735         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
736         dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
737         Move here from ipa.c; implement using pointer_map
738         * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
739         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
740         debug_cgraph_node_set, varpool_node_set_new,
741         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
742         dump_varpool_node_set, debug_varpool_node_set):
743         Move to ipa-uitls.c.
744         * passes.c (ipa_write_summaries): Update.
745
746 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
747
748         From Mike Frysinger:
749         * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
750         bf542/bf544/bf547/bf548/bf549.
751
752 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
753
754         * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
755
756 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
757
758         From Bernd Schmidt:
759         * config/bfin/bfin.md (MOVCC): New mode_macro.
760         (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
761         movsicc_insn1, movsicc_insn2 and movsicc and macroized.  Remove
762         comments from generated assembly.
763
764 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
765
766         From Bernd Schmidt
767         * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
768         * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
769         * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
770         * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
771         * config/bfin/lib1funcs.asm (___muldi3): New function.
772
773 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
774
775         * config/stormy16/stormy16 (xstormy16_init_builtins): Call
776         build_function_type_list instead of build_function_type.
777         Rearrange initialization of `args' to do so.
778
779 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
780
781         * config/i386/i386.c (ix86_code_end): Call build_function_type_list
782         instead of build_function_type.
783
784 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
785
786         * config/rs6000/rs6000.c (spe_init_builtins): Call
787         build_function_type_list instead of build_function_type.
788         (paired_init_builtins, altivec_init_builtins): Likewise.
789         (builtin_function_type): Likewise.
790
791 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
792
793         * config/sh/sh.c (sh_media_init_builtins): Call
794         build_function_type_list instead of build_function_type.
795
796 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
797
798         * config/sparc/sparc.c (sparc_file_end): Call
799         build_function_type_list instead of build_function_type.
800
801 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
802
803         * config/alpha/alpha.c (alpha_init_builtins): Call
804         build_function_type_list instead of build_function_type.
805
806 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
807
808         * config/xtensa/xtensa.c (xtensa_init_builtins): Call
809         build_function_type_list instead of build_function_type.
810
811 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
812
813         * config/iq2000/i2000.c (iq2000_init_builtins): Call
814         build_function_type_list instead of build_function_type.
815         Delete `endlink' variable.
816
817 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
818
819         * config/avr/avr.c (avr_init_builtins): Call
820         build_function_type_list instead of build_function_type.
821
822 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
823
824         * config/picochip/picochip.c (picochip_init_builtins): Call
825         build_function_type_list instead of build_function_type.
826         Delete `endlink' variable.
827
828 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
829
830         * config/bfin/bfin.c (bfin_init_builtins): Call
831         build_function_type_list instead of build_function_type.
832
833 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
834
835         From Bernd Schmidt
836         * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
837         that's not CONST_INT.  Seemingly redundant check is due to PR39768.
838
839 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
840
841         From Jie Zhang:
842         * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
843         libbffastfp overrides libgcc when -mfast-fp.
844
845 2011-05-03  Stuart Henderson <shenders@gcc.gnu.org>
846
847         Originally from Bernd Schmidt
848         * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
849         * config/bfin/bfin.c (override_options): Test it and error if
850         TARGET_FDPIC.
851
852 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
853
854         Originally From Bernd Schmidt
855         * config/bfin/bfin.c (override_options): Disable -fstack-limit for
856         FD-PIC.
857
858 2011-05-03  Jeff Law  <law@redhat.com>
859
860         * tree-ssa-threadupdate.c (THREAD_TARGET): define.
861         (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
862         (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
863         than accessing AUX field directly.  Free the AUX field before
864         clearing it.
865         (thread_block, thread_through_loop_header): Likewise.
866         (thread_single_edge, mark_threaded_blocks): Likewise.
867         (redirect_edges): Delay clearing the AUX field.  Free the AUX field.
868         (register_jump_thread): Do not attempt to thread to a NULL edge.
869
870 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
871
872         * function.c (init_function_start): Call decide_function_section.
873         * varasm.c (decide_function_section): New function.
874         (assemble_start_function): When not using
875         flag_reorder_blocks_and_partition, don't compute in_cold_section_p
876         or first_function_block_is_cold.
877         * rtl.h (decide_function_section): Declare.
878
879 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
880             Jakub Jelinek  <jakub@redhat.com>
881
882         PR target/48774
883         * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
884         only succeed if req_mode is the same as set_mode.
885
886 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
887
888         * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
889         * genemit.c (gen_exp): Handle RETURN.
890         * emit-rtl.c (verify_rtx_sharing): Likewise.
891         (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
892         * rtl.c (copy_rtx): RETURN is shared.
893         * rtl.h (enum global_rtl_index): Add GR_RETURN.
894         (ret_rtx): New.
895         * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
896         * config/s390/s390.c (s390_emit_epilogue): Likewise.
897         * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
898         * config/cris/cris.c (cris_expand_return): Likewise.
899         * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
900         * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
901         rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
902         * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
903         * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
904         Likewise.
905         * config/v850/v850.c (expand_epilogue): Likewise.
906         * config/bfin/bfin.c (bfin_expand_call): Likewise.
907         * config/arm/arm.md (epilogue): Likewise.
908         * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
909         * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
910         variable to ret_reg.
911
912 2011-05-03  Richard Guenther  <rguenther@suse.de>
913
914         PR lto/48846
915         * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
916         Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
917         * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
918
919 2011-05-03  Richard Guenther  <rguenther@suse.de>
920
921         * c-decl.c (grokdeclarator): Instead of looking at
922         TREE_OVERFLOW check if the constant fits in the index type.
923
924 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
925
926         * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
927         (vec_store_lanes<mode><mode>): Likewise.
928
929 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
930
931         * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
932         * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
933         convert_optab_index values.
934         (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
935         * genopinit.c (optabs): Initialize the new optabs.
936         * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
937         * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
938         (expand_STORE_LANES): New functions.
939         * tree.h (build_array_type_nelts): Declare.
940         * tree.c (build_array_type_nelts): New function.
941         * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
942         (vect_model_load_cost): Likewise.
943         (vect_store_lanes_supported, vect_load_lanes_supported)
944         (vect_record_strided_load_vectors): Declare.
945         * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
946         (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
947         (vect_transform_strided_load): Split out statement recording into...
948         (vect_record_strided_load_vectors): ...this new function.
949         * tree-vect-stmts.c (create_vector_array, read_vector_array)
950         (write_vector_array, create_array_ref): New functions.
951         (vect_model_store_cost): Add store_lanes_p argument.
952         (vect_model_load_cost): Add load_lanes_p argument.
953         (vectorizable_store): Try to use store-lanes functions for
954         interleaved stores.
955         (vectorizable_load): Likewise load-lanes and loads.
956         * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
957         to vect_model_store_cost.
958         (vect_build_slp_tree): Likewise vect_model_load_cost.
959
960 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
961
962         * hooks.h (hook_bool_mode_uhwi_false): Declare.
963         * hooks.c (hook_bool_mode_uhwi_false): New function.
964         * target.def (array_mode_supported_p): New hook.
965         * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
966         * doc/tm.texi: Regenerate.
967         * stor-layout.c (mode_for_array): New function.
968         (layout_type): Use it.
969         * config/arm/arm.c (arm_array_mode_supported_p): New function.
970         (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
971
972 2011-05-03  Eric Botcazou  <ebotcazou@adacore.com>
973
974         PR target/48723
975         * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
976         for -fstack-check if the size to allocate is negative.
977
978 2011-05-02  Lawrence Crowl  <crowl@google.com>
979
980         * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
981         (timevar_cond_start): New for starting a timer only when it is not
982         already running.
983         (timevar_cond_stop): New for stopping a timer when it was not already
984         running.
985
986         * timevar.c (timevar_stop): Enable start/stop timers to start again.
987         (timevar_cond_start): New as above.
988         (timevar_cond_stop): New as above.
989
990         * timevar.def: Add start/stop timers for compiler phases,
991         TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
992         TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
993         and TV_PHASE_FINALIZE.
994         Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
995         Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
996         TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
997         Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
998         Make unused TV_OVERLOAD into a start/stop timer.
999
1000         Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
1001         Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
1002         to indicate that they are start/stop timers.
1003
1004         * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
1005         Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
1006         Move initialization to do_compile.
1007         (do_compile): Add initialization from above.
1008         Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
1009
1010         * c-decl.c (c_write_global_declarations): Add start/stop of
1011         TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
1012
1013         * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
1014         or TV_PARSE_INLINE, as appropriate.
1015         (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
1016         (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
1017
1018 2011-05-02  Jason Merrill  <jason@redhat.com>
1019
1020         PR c++/40975
1021         * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
1022
1023 2011-05-02  Simon Martin  <simartin@users.sourceforge.net>
1024
1025         PR c/35445
1026         * c-decl.c (finish_decl): Only create a composite if the types are
1027         compatible.
1028
1029 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
1030
1031         * config/fr30/fr30-protos.h (Mmode): Don't define.
1032         * config/m32r/m32r-protos.h (Mmode): Don't define.  Expand
1033         definition where used.
1034         * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
1035         define.  Expand definitions where used.
1036         * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
1037         Expand definitions where used.
1038         * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
1039         rx_function_arg, rx_function_arg_advance,
1040         rx_function_arg_boundary): Expand definitions of those macros.
1041         * config/v850/v850-protos.h (Mmode): Don't define.  Expand
1042         definition where used.
1043
1044 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
1045
1046         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
1047         reg<->xmm moves.
1048         (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
1049         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.  Merge
1050         with *movv2sf_internal_rex64_avx.
1051         (*movv2sf_internal): Merge with *movv2sf_internal_avx.
1052         * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
1053         Use %v prefix in insn mnemonic to handle TARGET_AVX.
1054         (*movdi_internal): Add "isa" attribute.  Use "maybe_vex" instead of
1055         "vex" in "prefix" attribute calculation.
1056         (*movdf_internal): Output AVX mnemonics.  Add "prefix" attribute.
1057
1058 2011-05-02  Stuart Henderson  <shenders@gcc.gnu.org>
1059
1060         PR target/47951
1061         * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
1062         inputs match the output.
1063
1064 2011-05-02  Andreas Schwab  <schwab@linux-m68k.org>
1065
1066         PR target/47955
1067         * config/m68k/m68k.c (m68k_expand_prologue): Set
1068         current_function_static_stack_size.
1069
1070 2011-05-02   Jan Hubicka  <jh@suse.cz>
1071
1072         * lto-streamer.c (lto_streamer_cache_insert_1,
1073         lto_streamer_cache_lookup, lto_streamer_cache_create,
1074         lto_streamer_cache_delete): Use pointer map instead of hashtable.
1075         * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
1076
1077 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
1078
1079         * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
1080         config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
1081         config/m68k/t-opts: New files.
1082         * config/m68k/m68k-tables.opt: New file (generated).
1083         * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
1084         extra_options and m68k/t-opts to tmake_file.
1085         * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
1086         (all_isas): Initialize using m68k-isas.def.
1087         (all_microarchs): Initialize using m68k-microarchs.def.
1088         (m68k_find_selection): Remove.
1089         (m68k_handle_option): Don't assert that global structures are in
1090         use.  Use error_at.  Access variables via opts pointer.  Don't
1091         handle -march=, -mcpu= and -mtune= here.  Set gcc_options fields
1092         directly for -m68020-40 and -m68020-60.
1093         (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
1094         m68k_tune_entry here.
1095         * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
1096         to m68k-opts.h.
1097         (m68k_library_id_string): Remove declaration.
1098         * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
1099         (m68k_library_id_string): New Variable.
1100         (march=, mcpu=, mtune=): Use Enum and Var.
1101
1102 2011-05-02  Richard Guenther  <rguenther@suse.de>
1103
1104         * varasm.c (output_constructor_regular_field): Compute zero-based
1105         index with double-ints.  Make sure to ICE instead of producing
1106         wrong code.
1107         * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
1108         in asserts.  Properly use a signed type.
1109
1110 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
1111
1112         * config/i386/sse.md (V): New mode iterator.
1113         (V_128): Rename from SSEMODE.  Make V2DF mode conditional on
1114         TARGET_SSE2.
1115         (V_256): Rename from AVX256MODE.
1116         (VF): Make V4SF mode unconditional.  Add TARGET_SSE instruction
1117         condition to all users.
1118         (VF1): Ditto.
1119         (VF2): Make V2DF mode unconditional.  Add TARGET_SSE2 instruction
1120         condition to all users.
1121         (VF_128): Make V4SF mode unconditional.
1122         (VF_256): Rename from AVX256MODEF2P.
1123         (VI4F_128): Rename from SSEMODE4S.
1124         (VI8F_128): Rename from SSEMODE2D.
1125         (VI4F_256): Rename from AVX256MODE8P.
1126         (VI8F_256): Rename from AVX256MODE4P.
1127         (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
1128         (ssescalarmodesuffix): Remove SF and DF modes.
1129         (SSEMODE124): Remove.
1130         (SSEMODE1248): Ditto.
1131         (SSEMODEF2P): Ditto.
1132         (AVXMODEF2P): Ditto.
1133         (AVXMODEFDP): Ditto.
1134         (AVXMODEFSP): Ditto.
1135         (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
1136         unconditional.
1137         (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO.  Make V4SF mode
1138         unconditional.
1139         (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
1140         xop_pcmov_<mode>256.  Use V mode iterator.
1141
1142         Adjust RTX patterns globally for renamed mode attributes.
1143
1144 2011-05-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1145
1146         * haifa-sched.c (sched_emit_insn): Emit insn before first
1147         non-scheduled insn.  Inform back-end about new insn.  Add
1148         new insn to scheduled_insns list.
1149
1150 2011-05-02  Richard Guenther  <rguenther@suse.de>
1151
1152         PR tree-optimization/48822
1153         * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
1154         (process_scc): Indicate which iteration we start.
1155
1156 2011-05-02  Jan Hubicka  <jh@suse.cz>
1157
1158         * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
1159         (lto_section_overrun): New.
1160         * lto-section-out.c (append_block): Rename to ...
1161         (lto_append_block): ... this one; export.
1162         (lto_output_1_stream): Move lto lto-streamer.h
1163         (lto_output_data_stream): Update.
1164         * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
1165         (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
1166         functions.
1167
1168 2011-05-02  Richard Guenther  <rguenther@suse.de>
1169
1170         * tree.c (tree_code_counts): New global array.
1171         (record_node_allocation_statistics): Count individual tree codes.
1172         (dump_tree_statistics): Dump individual code stats.
1173
1174 2011-05-01  Jan Hubicka  <jh@suse.cz>
1175
1176         * ipa-inline.c (caller_growth_limits): Fix thinko when
1177         looking for largest stack frame.
1178         * ipa-inline.h (dump_inline_summary): Declare.
1179         * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
1180         on stack usage.
1181         (dump_inline_summary): Export.
1182         (debug_inline_summary): Declare as DEBUG_FUNCTION.
1183
1184 2011-05-01  Anatoly Sokolov  <aesok@post.ru>
1185
1186         * reginfo.c (memory_move_cost): Change rclass argument type form
1187         'enum reg_class' to reg_class_t.
1188         * reload.h (memory_move_cost): Update prototype.
1189         * postreload.c reload_cse_simplify_set): Change type dclass var to
1190         reg_class_t.
1191         * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
1192         Update prototype.
1193         (ira_allocate_and_set_costs): Change aclass argument type form
1194         'enum reg_class' to reg_class_t.
1195         * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
1196         Change aclass argument type to reg_class_t.
1197         (update_conflict_hard_reg_costs): Change type aclass and pref vars
1198         to reg_class_t.
1199         * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
1200         memory_move_cost call.
1201
1202         * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
1203         'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
1204         Change type tmp var to reg_class_t.
1205
1206 2011-04-30  Jan Hubicka  <jh@suse.cz>
1207
1208         * ipa-inline.c (can_inline_edge_p): Disregard limits when
1209         inlining into function with flatten attribute.
1210         (want_inline_small_function_p): Be more realistic about inlining
1211         cold calls where callee size grows.
1212
1213 2011-04-30  Jan Hubicka  <jh@suse.cz>
1214
1215         * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
1216         flags.
1217
1218 2011-04-30  Anatoly Sokolov  <aesok@post.ru>
1219
1220         * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
1221         PRINT_OPERAND_PUNCT_VALID_P): Remove.
1222         * config/sparc/sparc-protos.h (print_operand): Remove declaration.
1223         * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
1224         TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
1225         (print_operand): Rename to...
1226         (sparc_print_operand): ...this. Make static. Adjust
1227         sparc_print_operand function call.
1228         (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
1229         functions.
1230
1231 2011-04-30  Jan Hubicka  <jh@suse.cz>
1232
1233         PR middle-end/48752
1234         * ipa-inline.c (early_inliner): Disable when doing late
1235         addition of function.
1236
1237 2011-04-30  Jakub Jelinek  <jakub@redhat.com>
1238
1239         * dwarf2out.c (get_address_mode): New inline.
1240         (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
1241         if not dwarf_strict emit
1242         DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
1243         desirable.  Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
1244         UNSIGNED_FLOAT, FIX and UNSIGNED_FIX.  Just return NULL for
1245         FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
1246         (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
1247         dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
1248         mem_loc_descriptor callers.
1249         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
1250         output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
1251         Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
1252         DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
1253         (base_types): New variable.
1254         (get_base_type_offset, calc_base_type_die_sizes,
1255         base_type_for_mode, mark_base_types, base_type_cmp,
1256         move_marked_base_types): New functions.
1257         (calc_die_sizes): Assert that die_offset is 0 or equal to
1258         next_die_offset.
1259         (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
1260         others defer to mem_loc_descriptor.  Adjust mem_loc_descriptor
1261         callers.  If not dwarf_strict, call mem_loc_descriptor even for
1262         non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
1263         (gen_subprogram_die): Don't give up on call site parameters
1264         with non-integral or large integral modes.  Adjust
1265         mem_loc_descriptor callers.
1266         (prune_unused_types): Call prune_unused_types_mark on base_types
1267         vector entries.
1268         (resolve_addr): Call mark_base_types.
1269         (dwarf2out_finish): Call move_marked_base_types.
1270
1271         PR tree-optimization/48809
1272         * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
1273         type.
1274         (gen_inbound_check): Don't compute index_expr - range_min in utype
1275         again, instead reuse SSA_NAME initialized in build_arrays.
1276         Remove two useless gsi_for_stmt calls.
1277
1278 2011-04-29  Jeff Law  <law@redhat.com>
1279
1280         * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
1281
1282 2011-04-29  Martin Jambor  <mjambor@suse.cz>
1283
1284         * cgraph.h (cgraph_postorder): Remove declaration.
1285         * ipa-utils.h (ipa_free_postorder_info): Declare.
1286         (ipa_reverse_postorder): Likewise.
1287         * cgraphunit.c: Include ipa-utils.h.
1288         (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
1289         * ipa-inline.c: Include ipa-utils.h.
1290         (ipa_inline): Update call to ipa_reverse_postorder.
1291         * ipa-pure-const.c (propagate_pure_const): Update call to
1292         ipa_reduced_postorder and ipa_print_order.  Call
1293         ipa_free_postorder_info to clean up.
1294         (propagate_nothrow): Likewise.
1295         * ipa-reference.c (propagate): Removed a useless call to
1296         ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
1297         and ipa_print_order.  Call ipa_free_postorder_info to clean up.
1298         * ipa.c: Include ipa-utils.h.
1299         (ipa_profile): Update call to ipa_reverse_postorder.
1300         (cgraph_postorder): Moved to...
1301         * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
1302         (ipa_utils_print_order): Renamed to ipa_print_order.
1303         (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
1304         comments.
1305         (ipa_free_postorder_info): New function.
1306         * passes.c: Include ipa-utils.h.
1307         (do_per_function_toporder): Update call to ipa_reverse_postorder.
1308         (ipa_write_summaries): Likewise.
1309         * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
1310         (cgraphunit.o): Likewise.
1311         (ipa.o): Likewise.
1312         (ipa-inline.o): Likewise.
1313
1314 2011-04-29  Jan Hubicka  <jh@suse.cz>
1315
1316         * gcc.dg/tree-ssa/inline-10.c: New testcase.
1317         * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
1318         * ipa-inline.h (clause_t): Turn into unsigned int.
1319         * ipa-inline-analysis.c (add_clause): Do more simplification.
1320         (and_predicates): Shortcut more cases.
1321         (predicates_equal_p): Move forward; check that clauses are properly
1322         ordered.
1323         (or_predicates): Shortcut more cases.
1324         (edge_execution_predicate): Rewrite as...
1325         (set_cond_stmt_execution_predicate): ... this function; handle
1326         __builtin_constant_p.
1327         (set_switch_stmt_execution_predicate): New .
1328         (compute_bb_predicates): New.
1329         (will_be_nonconstant_predicate): Update TODO.
1330         (estimate_function_body_sizes): Use compute_bb_predicates
1331         and free them later, always try to estimate if stmt is constant.
1332         (estimate_time_after_inlining, estimate_size_after_inlining):
1333         Gracefully handle optimized out edges.
1334         (read_predicate): Fix off by one error.
1335
1336 2011-04-29  Nicola Pero  <nicola.pero@meta-innovation.com>
1337
1338         * Makefile.in (ENABLE_MAINTAINER_RULES): New.
1339
1340 2011-04-27  Xinliang David Li  <davidxl@google.com>
1341
1342         * tree-profile.c (init_ic_make_global_vars): Set
1343         tls attribute on ic vars.
1344         * coverage.c (coverage_end_function): Initialize
1345         function_list with zero.
1346
1347 2011-04-29  Richard Guenther  <rguenther@suse.de>
1348
1349         * builtins.c (fold_builtin_classify_type): Use integer_type_node
1350         for the type of the result.
1351         (fold_builtin_isascii): Likewise.
1352         (fold_builtin_toascii): Use integer_type_node where appropriate.
1353         (fold_builtin_logb): Likewise.
1354         (fold_builtin_frexp): Likewise.
1355         (fold_builtin_strstr): Likewise.
1356         (fold_builtin_strpbrk): Likewise.
1357         (fold_builtin_fputs): Likewise.
1358         (fold_builtin_sprintf): Likewise.
1359         (fold_builtin_snprintf): Likewise.
1360         (fold_builtin_printf): Likewise.
1361         (do_mpfr_remquo): Use a proper type for the assigned constant.
1362         (do_mpfr_lgamma_r): Likewise.
1363         * dwarf2out.c (resolve_one_addr): Use size_int.
1364         * except.c (init_eh): Likewise.
1365         (assign_filter_values): Use integer_type_node for filter values.
1366         (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
1367         indices.
1368         * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
1369         for EH region numbers.
1370         * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
1371         for the shift amount.
1372
1373 2011-04-29  Richard Guenther  <rguenther@suse.de>
1374
1375         * expr.h (expand_shift): Rename to ...
1376         (expand_variable_shift): ... this.
1377         (expand_shift): Take a constant shift amount.
1378         * expmed.c (expand_shift): Rename to ...
1379         (expand_variable_shift): ... this.
1380         (expand_shift): New wrapper around expand_variable_shift.
1381         * expr.c (convert_move, emit_group_load_1, emit_group_store,
1382         optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
1383         expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
1384         * expmed.c (store_fixed_bit_field, extract_bit_field_1,
1385         extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
1386         expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
1387         extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
1388         emit_store_flag_1, emit_store_flag): Likewise.
1389         * builtins.c (expand_builtin_signbit): Likewise.
1390         * calls.c (load_register_parameters): Likewise.
1391         * function.c (assign_parm_setup_block): Likewise.
1392         * lower-subreg.c (resolve_shift_zext): Likewise.
1393         * optabs.c (widen_bswap, expand_abs_nojump,
1394         expand_one_cmpl_abs_nojump, expand_float): Likewise.
1395         * spu/spu.c (spu_expand_extv): Likewise.
1396         * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
1397
1398 2011-04-29  Richard Guenther  <rguenther@suse.de>
1399
1400         * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
1401         for the remapped region number.
1402         * predict.c (build_predict_expr): Use integer_type_node for the
1403         predict kind.
1404         * fold-const.c (fold_binary_loc): Use integer_type_node for
1405         the shift amount.  Use a proper type for the PLUS_EXPR operand.
1406
1407 2011-04-29  Michael Matz  <matz@suse.de>
1408
1409         * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
1410         other trees that just builtins.
1411         (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
1412
1413 2011-04-29  Richard Guenther  <rguenther@suse.de>
1414
1415         * tree-nested.c (get_trampoline_type): Use size_int.
1416         (get_nl_goto_field): Likewise.
1417         * tree-eh.c (lower_try_finally_switch): Use integer_type_node
1418         for all indexes.
1419         (lower_eh_constructs_2): Likewise.
1420         (lower_resx): Likewise.
1421         (lower_eh_dispatch): Likewise.
1422         * tree-mudflap.c (mf_build_string): Use size_int.
1423         (mudflap_register_call): Use integer_type_node for the flag.
1424         (mudflap_enqueue_constant): Use size_int.
1425         * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
1426         instead of rebuilding it.
1427
1428 2011-04-29  Richard Guenther  <rguenther@suse.de>
1429
1430         * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
1431         Handle OBJ_TYPE_REF.
1432         (find_func_aliases_for_call): Use it more consistently.
1433
1434 2011-04-29  Alexandre Oliva  <aoliva@redhat.com>
1435
1436         * haifa-sched.c (last_nondebug_scheduled_insn): New.
1437         (rank_for_schedule): Use it.
1438         (schedule_block): Set it.
1439
1440 2011-04-28  David Li  <davidxl@google.com>
1441
1442         * tree.c (crc32_string): Use crc32_byte.
1443         (crc32_byte): New function.
1444         * tree.h (crc32_byte): New function.
1445         * gcov.c (read_graph_file): Handle new cfg_cksum.
1446         (read_count_file): Ditto.
1447         * profile.c (instrument_values): Ditto.
1448         (get_exec_counts): Ditto.
1449         (read_profile_edge_counts): Ditto.
1450         (compute_branch_probabilities): Ditto.
1451         (compute_value_histograms): Ditto.
1452         (branch_prob): Ditto.
1453         (end_branch_prob): Ditto.
1454         * coverage.c (read_counts_file): Ditto.
1455         (get_coverage_counts): Ditto.
1456         (tree_coverage_counter_addr): Ditto.
1457         (coverage_checksum_string): Ditto.
1458         (coverage_begin_output): Ditto.
1459         (coverage_end_function): Ditto.
1460         (build_fn_info_type): Ditto.
1461         (build_fn_info_value): Ditto.
1462         * libgcov.c (gcov_exit): Ditto.
1463         * gcov-dump.c (tag_function): Ditto.
1464         (compute_checksum): Remove.
1465
1466 2011-04-29  Alan Modra  <amodra@gmail.com>
1467
1468         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
1469         unspec plus offset.  Tidy macho code.
1470
1471 2011-04-29  Martin Jambor  <mjambor@suse.cz>
1472
1473         * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
1474         node instead of a decl.  Update all callers.
1475         * cgraph.h: Update declaration.
1476
1477 2011-04-28  Ira Rosen  <ira.rosen@linaro.org>
1478
1479         PR tree-optimization/48765
1480         * tree-vectorizer.h (vect_make_slp_decision): Return bool.
1481         * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
1482         to indicate if loop aware SLP is being used.  Scan the statements
1483         and update the vectorization factor according to the type of
1484         vectorization before statement analysis.
1485         (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
1486         pass it to vect_analyze_loop_operations.
1487         (vectorizable_reduction): Set number of copies to 1 in case of pure
1488         SLP statement.
1489         * tree-vect-stmts.c (vectorizable_conversion,
1490         vectorizable_assignment, vectorizable_shift,
1491         vectorizable_operation, vectorizable_type_demotion,
1492         vectorizable_type_promotion, vectorizable_store, vectorizable_load):
1493         Likewise.
1494         (vectorizable_condition): Move the check that it is not SLP
1495         vectorization before the number of copies check.
1496         * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
1497         to vectorize the loop using SLP.
1498
1499 2011-04-28  Jakub Jelinek  <jakub@redhat.com>
1500
1501         PR middle-end/48597
1502         * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
1503         inline asm.
1504
1505 2011-04-28  Joseph Myers  <joseph@codesourcery.com>
1506
1507         * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
1508         *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
1509         (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
1510         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
1511         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
1512         linux*.h headers.
1513         * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
1514         * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
1515         * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
1516         * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
1517         * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
1518         * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
1519         REG_NAME.
1520         * config/i386/linux.h (REG_NAME): Don't define.
1521         * config/i386/linux64.h (REG_NAME): Don't define.
1522         * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
1523         Undefine before defining.
1524
1525 2011-04-28  Jan Hubicka  <jh@suse.cz>
1526
1527         * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
1528         nonconstant_names array.
1529         (estimate_function_body_sizes): Build nonconstant_names array; handle
1530         BUILT_IN_CONSTANT_P.
1531
1532 2011-04-28  Richard Guenther  <rguenther@suse.de>
1533
1534         PR bootstrap/48804
1535         Revert
1536         2011-04-28  Richard Guenther  <rguenther@suse.de>
1537
1538         * tree-ssa-structalias.c (solve_constraints): Build succ graph
1539         as late as possible.
1540
1541 2011-04-28  Richard Guenther  <rguenther@suse.de>
1542
1543         * tree-ssa-structalias.c (dump_constraint): Don't end the line.
1544         (debug_constraint): Do it here.
1545         (dump_constraints): And here.
1546         (rewrite_constraints): And here.
1547         (dump_constraint_edge): Remove.
1548         (dump_constraint_graph): Rewrite to produce DOT output.
1549         (solve_constraints): Build succ graph as late as possible.
1550         Dump constraint graphs before and after solving.
1551
1552 2011-04-28  Richard Guenther  <rguenther@suse.de>
1553
1554         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
1555         New function split out from ...
1556         (find_func_aliases): ... here.  Call it.
1557         (find_func_aliases_for_call): Likewise.
1558
1559 2011-04-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1560
1561         * internal-fn.h (internal_fn_name_array): Declare.
1562         (internal_fn_flags_array): Likewise.
1563
1564 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
1565
1566         * config/i386/i386.md (ssemodesuffix):  Merge with ssevecsize,
1567         ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
1568         Move from sse.md.
1569         (ssemodefsuffix): Remove.
1570         (ssevecmodesuffix): New mode attribute.
1571         (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
1572         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
1573         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
1574         *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
1575         *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
1576         *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
1577         *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
1578         ssemodesuffix mode attribute.
1579         (float splitters): Use ssevecmodesuffix mode attribute.
1580         * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
1581         (sseinsmode): Rename from avxvecmode.
1582         (avxsizesuffix): Rename from avxmodesuffix.
1583         (sseintvecmode): Rename from avxpermvecmode.
1584         (ssedoublevecmode): Rename from ssedoublesizemode.
1585         (ssehalfvecmode): Rename from avxhalfvecmode.
1586         (ssescalarmode): Rename from avxscalarmode.
1587         (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
1588         templates for ssemodesuffix mode attribute.
1589         (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
1590         mode attribute.
1591
1592         Adjust RTX patterns globally for renamed mode attributes.
1593
1594 2011-04-27  Jan Hubcika  <jh@suse.cz>
1595
1596         * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
1597         * ipa-inline-analysis.c: Include alloc-pool.h.
1598         (edge_predicate_pool): New.
1599         (trye_predicate_p): New function
1600         (false_predicate_p): New function.
1601         (add_clause): Sanity check that false clauses are "optimized";
1602         never add clauses to predicate that is already known to be false.
1603         (and_predicate): Use flase_predicate_p.
1604         (evaulate_predicate): Rename to ...
1605         (evaluate_predicate): ... this one; update all callers; assert
1606         that false is not listed among possible truths.
1607         (dump_predicate): Use true_predicate_p.
1608         (account_size_time): Use false_predicate_p.
1609         (evaulate_conditions_for_edge): Rename to ...
1610         (evaluate_conditions_for_edge) ... this one.
1611         (edge_set_predicate): New function.
1612         (inline_edge_duplication_hook): Duplicate edge predicates.
1613         (inline_edge_removal_hook): Free edge predicates.
1614         (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
1615         (dump_inline_summary): Update.
1616         (estimate_function_body_sizes): Set edge predicates.
1617         (estimate_calls_size_and_time): Handle predicates.
1618         (estimate_callee_size_and_time): Update.
1619         (remap_predicate): Add toplev_predicate; update comment.
1620         (remap_edge_predicates): New function.
1621         (inline_merge_summary): Compute toplev predicate; update.
1622         (read_predicate): New function.
1623         (read_inline_edge_summary): Use it.
1624         (inline_read_section): Likewise.
1625         (write_predicate): New function.
1626         (write_inline_edge_summary): Use it.
1627         (inline_write_summary): Likewise.
1628         (inline_free_summary): Free alloc pool and edge summary vec.
1629
1630 2011-04-27  Richard Guenther  <rguenther@suse.de>
1631
1632         * tree-ssa-structalias.c (changed_count): Remove.
1633         (changed): Use a bitmap.
1634         (unify_nodes): Adjust.
1635         (do_sd_constraint): Likewise.
1636         (do_ds_constraint): Likewise.
1637         (do_complex_constraint): Likewise.
1638         (solve_graph): Likewise.
1639
1640 2011-04-27  Jan Hubicka  <jh@suse.cz>
1641
1642         * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
1643
1644 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
1645
1646         * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
1647         (avx_vperm2f128_*_operand): Ditto.
1648         * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
1649         Use avx_vpermilp_parallel in insn condition.
1650         (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
1651         Use avx_vperm2f128_parallel in insn condition.
1652
1653 2011-04-27  Richard Guenther  <rguenther@suse.de>
1654
1655         * Makefile.in (tree-ssa-structalias.o): Remove
1656         gt-tree-ssa-structalias.h dependency.
1657         (GTFILES): Remove tree-ssa-structalias.c.
1658         * tree.c (allocate_decl_uid): New function.
1659         (make_node_stat): Use it.
1660         (copy_node_stat): Likewise.
1661         * tree.h (allocate_decl_uid): Declare.
1662         * tree-ssa-alias.h (delete_alias_heapvars): Remove.
1663         * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
1664         * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
1665         * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
1666         * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
1667         (struct heapvar_map): Likewise.
1668         (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
1669         heapvar_insert): Likewise.
1670         (make_heapvar_for): Rename to ...
1671         (make_heapvar): ... this.  Simplify.
1672         (fake_var_decl_obstack): New global var.
1673         (build_fake_var_decl): New function.
1674         (make_constraint_from_heapvar): Adjust.
1675         (handle_lhs_call): Likewise.
1676         (create_function_info_for): Likewise.
1677         (intra_create_variable_infos): Likewise.
1678         (init_alias_vars): Allocate fake_var_decl_obstack.
1679         (init_alias_heapvars, delete_alias_heapvars): Remove.
1680         (compute_points_to_sets): Do not call init_alias_heapvars.
1681         (ipa_pta_execute): Likewise.
1682         (delete_points_to_sets): Free fake_var_decl_obstack.
1683
1684 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1685
1686         * config/spu/divmovti4.c (union qword_UTItype): New data type.
1687         (si_from_UTItype, si_to_UTItype): New functions.
1688         (__udivmodti4): Use them to implement type-punning.
1689         * config/spu/multi3.c (union qword_TItype): New data type.
1690         (si_from_TItype, si_to_TItype): New functions.
1691         (__multi3): Use them to implement type-punning.
1692
1693 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1694
1695         * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
1696
1697 2011-04-27  Jan Hubicka  <jh@suse.cz>
1698
1699         * ipa-prop.c (function_insertion_hook_holder): New holder.
1700         (ipa_add_new_function): New function.
1701         (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
1702         Register/deregister holder.
1703
1704 2011-04-27  Richard Guenther  <rguenther@suse.de>
1705
1706         PR tree-optimization/48772
1707         * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
1708
1709 2011-04-27  Richard Guenther  <rguenther@suse.de>
1710
1711         * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
1712         TARGET_MEM_REF handling.
1713
1714 2011-04-27  Nick Clifton  <nickc@redhat.com>
1715
1716         * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
1717         ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
1718         (REG_CLASS_NAMES): Likewise.
1719         (REG_CLASS_CONTENTS): Likewise.
1720         (EVEN_ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
1721         (ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
1722         (FEVEN_REGS): New macro.  Alias for QUAD_ACC_REGS.
1723         (FPR_REGS): New macro.  Alias for QUAD_ACC_REGS.
1724         (EVEN_REGS): New macro.  Alias for QUAD_REGS.
1725         * config/frv/frv.c (frv_secondary_reload_class): Remove use of
1726         duplicate register classes.
1727         (frv_class_likely_spilled_p): Likewise.
1728         (frv_register_move_cost): Likewise.
1729
1730         * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
1731         end of the regno_reg_class array.
1732
1733 2011-04-27  Jakub Jelinek  <jakub@redhat.com>
1734
1735         PR c/48742
1736         * c-typeck.c (build_binary_op): Don't wrap arguments if
1737         int_operands is true.
1738
1739 2011-04-26  Kaz Kojima  <kkojima@gcc.gnu.org>
1740
1741         PR target/48767
1742         * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
1743         targetm.calls.must_pass_in_stack for void type.
1744
1745 2011-04-26  Jan Hubicka  <jh@suse.cz>
1746
1747         * cgraphbuild.c (build_cgraph_edges): Update call
1748         of cgraph_create_edge and cgraph_create_indirect_edge.
1749         * cgraph.c (cgraph_create_edge_including_clones,
1750         cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
1751         cgraph_update_edges_for_call_stmt_node): Do not take nest
1752         argument; do not initialize call_stmt_size/time.
1753         (dump_cgraph_node): Do not dump nest.
1754         (cgraph_clone_edge): Do not take loop_nest argument;
1755         do not propagate it; do not clone call_stmt_size/time.
1756         (cgraph_clone_node): Likewise.
1757         (cgraph_create_virtual_clone): Update.
1758         * cgraph.h (struct cgraph_edge): Remove
1759         call_stmt_size/call_stmt_time/loop_nest.
1760         (cgraph_create_edge, cgraph_create_indirect_edge,
1761         cgraph_create_edge_including_clones, cgraph_clone_node): Update
1762         prototype.
1763         * tree-emutls.c (gen_emutls_addr): Update.
1764         * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
1765         loop_nest; handle indirect calls, too.
1766         (clone_inlined_nodes): Do not care about updating inline summaries.
1767         * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
1768         * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
1769         stream call_stmt_size/call_stmt_time/loop_nest.
1770         * ipa-inline.c (edge_badness): Update.
1771         (ipa_inline): dump summaries after inlining.
1772         * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
1773         New.
1774         (inline_edge_summary): New function.
1775         * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
1776         (inline_edge_removal_hook): Handle edge summaries.
1777         (inline_edge_duplication_hook): New hook.
1778         (inline_summary_alloc): Alloc hooks.
1779         (initialize_growth_caches): Do not register removal hooks.
1780         (free_growth_caches); Do not free removal hook.
1781         (dump_inline_edge_summary): New function.
1782         (dump_inline_summary): Use it.
1783         (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
1784         (inline_update_callee_summaries): New function.
1785         (inline_merge_summary): Use it.
1786         (do_estimate_edge_time, do_estimate_edge_growth): Update.
1787         (read_inline_edge_summary): New function.
1788         (inline_read_section): Use it.
1789         (write_inline_edge_summary): New function.
1790         (inline_write_summary): Use it.
1791         (inline_free_summary): Free edge new holders.
1792         * tree-inline.c (copy_bb): Update.
1793
1794 2011-04-26  Jason Merrill  <jason@redhat.com>
1795
1796         * tree-eh.c (lower_try_finally_switch): Create the label along with
1797         the CASE_LABEL_EXPR.
1798
1799 2011-04-26  David S. Miller  <davem@davemloft.net>
1800             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1801
1802         * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
1803         * configure: Regenerate.
1804
1805 2011-04-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
1806
1807         PR target/48258
1808         * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
1809         reduction.
1810         (VEC_reduc): New code iterator and splitters for vector reduction.
1811         (VEC_reduc_name): Ditto.
1812         (VEC_reduc_rtx): Ditto.
1813         (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
1814         (reduc_<VEC_reduc_name>_v4sf): Ditto.
1815
1816         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
1817         support for extracting SF on VSX.
1818
1819         * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
1820         generating xscvspdp.
1821         (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
1822         (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
1823         double add, minimum, maximum vector reduction.
1824         (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
1825         (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
1826         optimize double vector reduction.
1827         (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
1828
1829 2011-04-26  Joseph Myers  <joseph@codesourcery.com>
1830
1831         * config/fr30/fr30.h (inhibit_libc): Don't define.
1832         * config/m32r/m32r-protos.h: Correct comment.
1833         * config/v850/v850.h (GHS_default_section_names,
1834         GHS_current_section_names): Use tree, not union tree_node *.
1835
1836 2011-04-26  Xinliang David Li  <davidxl@google.com>
1837
1838         * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
1839         * c-family/c-opts.c (c_common_handle_option): Set
1840         warn_maybe_uninitialized.
1841         * opts.c (common_handle_option): Ditto.
1842         * common.opt:  New option.
1843         * tree-ssa.c (warn_uninit): Add one more parameter.
1844         (warn_uninitialized_var): Pass warning code.
1845         * tree-flow.h: Interface change.
1846
1847
1848 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1849
1850         * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
1851         (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
1852         (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
1853
1854 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1855
1856         * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
1857         * config/mips/mips.opt (mmips-tfile): Remove.
1858
1859         * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
1860         mips-tdump reference to ...
1861         (Specific, alpha*-dec-osf5.1): ... here.  Adapt for Tru64 UNIX.
1862         * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
1863         reference by Tru64 UNIX.
1864
1865 2011-04-26  Jakub Jelinek  <jakub@redhat.com>
1866
1867         PR debug/48768
1868         * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
1869         is error_mark_node, set value to NULL.
1870
1871         PR tree-optimization/48734
1872         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
1873         if return value from maybe_fold_*_comparsions isn't something
1874         the code is prepared to handle.
1875
1876 2011-04-26  Uros Bizjak  <ubizjak@gmail.com>
1877
1878         * config/i386/predicates.md (ext_QIreg_operand): Remove extra
1879         mode check.
1880         (ext_QIreg_nomode_operands): Remove.
1881         * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
1882         (*andsi_1): Ditto.
1883         (*andhi_1): Ditto.
1884
1885 2011-04-26  Andrew Stubbs  <ams@codesourcery.com>
1886
1887         * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
1888
1889 2011-04-26  Richard Guenther  <rguenther@suse.de>
1890
1891         * c-typeck.c (build_unary_op): Do not expand array-refs via
1892         pointer arithmetic.  Only adjust qualifiers for function types.
1893
1894 2011-04-26  Richard Guenther  <rguenther@suse.de>
1895
1896         PR middle-end/48694
1897         * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
1898         * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
1899         compare the operands with OEP_CONSTANT_ADDRESS_OF.  Treat trees
1900         with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
1901
1902 2011-04-25  Paolo Carlini  <paolo.carlini@oracle.com>
1903
1904         * c-family/c-common.c (struct c_common_resword): Add __underlying_type.
1905         * c-family/c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
1906         * doc/extend.texi: Document __underlying_type.
1907
1908 2011-04-25  Segher Boessenkool  <segher@kernel.crashing.org>
1909
1910         * config/rs6000/titan.md (automata_option "progress"): Remove.
1911
1912 2011-04-25  Jeff Law  <law@redhat.com>
1913
1914         * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
1915
1916 2011-04-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
1917
1918         * system.h (ENUM_BITFIELD): Remove.
1919
1920 2011-04-25  Maxim Kuvyrkov  <maxim@codesourcery.com>
1921             Eric Botcazou  <ebotcazou@adacore.com>
1922
1923         * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
1924         for STORE_FLAG_VALUE==-1 case.
1925
1926 2011-04-24  Richard Sandiford  <richard.sandiford@linaro.org>
1927
1928         PR target/43804
1929         * config/m68k/constraints.md (T): Allow PIC operands that satisfy
1930         LEGITIMATE_PIC_OPERAND_P.
1931
1932 2011-04-24  Jan Hubicka  <jh@suse.cz>
1933
1934         * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
1935         WPA hack.
1936         * ipa-prop.h (ipa_get_param, ipa_is_param_used,
1937         ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
1938         ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
1939         * ipa-inline-analysis.c (add_clause): Fix clause ordering.
1940         (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
1941         Sanity check predicate length.
1942         (remap_predicate): Likewise; sanity check jump functions.
1943         (inline_read_section, inline_write_summary): Sanity check
1944         predicate length.
1945
1946 2011-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
1947
1948         PR other/48748
1949         * doc/extend.texi (Type Traits): Document __is_standard_layout,
1950         __is_literal_type, and __is_trivial; update throughout about
1951         possibly cv-qualified void types.
1952
1953 2011-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
1954
1955         * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
1956         testsuite and make it version agnostic.
1957
1958 2011-04-22  Jan Hubicka  <jh@suse.cz>
1959
1960         * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
1961
1962 2011-04-23  Jakub Jelinek  <jakub@redhat.com>
1963
1964         PR c/48685
1965         * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
1966         to VOID_TYPE even around MODIFY_EXPR.
1967
1968 2011-04-22  Mike Stump  <mikestump@comcast.net>
1969
1970         * gensupport.c (read_md_rtx): Fix typo in comment.
1971         * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
1972         comment.
1973
1974 2011-04-22  Jan Hubicka  <jh@suse.cz>
1975
1976         * gengtype.c (open_base_files): Add ipa-inline.h include.
1977         * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
1978         ipa-prop.c; update all uses.
1979         * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
1980         * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
1981         merge summary of inlined function into former caller.
1982         * ipa-inline.c (max_benefit): Remove.
1983         (edge_badness): Compensate for removal of benefits.
1984         (update_caller_keys): Use
1985         reset_node_growth_cache/reset_edge_growth_cache.
1986         (update_callee_keys): Likewise.
1987         (update_all_callee_keys): Likewise.
1988         (inline_small_functions): Do not collect max_benefit; do not reset
1989         estimated_growth; call free_growth_caches and initialize_growth_caches.
1990         * ipa-inline.h (struct condition, type clause_t, struct predicate,
1991         struct size_time_entry): New structures.
1992         (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
1993         (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
1994         and estimated_growth.
1995         (edge_growth_cache_entry): New structure.
1996         (node_growth_cache, edge_growth_cache): New global vars.
1997         (estimate_growth): Turn into inline.
1998         (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
1999         initialize_growth_caches, free_growth_caches): Declare.
2000         (estimate_edge_growth): Rewrite.
2001         (estimate_edge_time): Implement as inline cache lookup.
2002         (reset_node_growth_cache, reset_edge_growth_cache): New inline
2003         functions.
2004         (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
2005         (NUM_CONDITIONS): New constant.
2006         (predicate_conditions): New enum.
2007         (IS_NOT_CONSTANT): New constant.
2008         (edge_removal_hook_holder): New var.
2009         (node_growth_cache, edge_growth_cache): New global vars.
2010         (true_predicate, single_cond_predicate, false_predicate,
2011         not_inlined_predicate, add_condition, add_clause, and_predicates,
2012         or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
2013         dump_clause, dump_predicate, account_size_time,
2014         evaulate_conditions_for_edge): New functions.
2015         (inline_summary_alloc): Move to heap.
2016         (inline_node_removal_hook): Clear condition and entry vectors.
2017         (inline_edge_removal_hook): New function.
2018         (initialize_growth_caches, free_growth_caches): New function.
2019         (dump_inline_summary): Update.
2020         (edge_execution_predicate): New function.
2021         (will_be_nonconstant_predicate): New function.
2022         (estimate_function_body_sizes): Compute BB and constantness predicates.
2023         (compute_inline_parameters): Do not clear estimated_growth.
2024         (estimate_edge_size_and_time): New function.
2025         (estimate_calls_size_and_time): New function.
2026         (estimate_callee_size_and_time): New function.
2027         (remap_predicate): New function.
2028         (inline_merge_summary): New function.
2029         (do_estimate_edge_time): New function based on...
2030         (estimate_edge_time): ... this one.
2031         (do_estimate_edge_growth): New function.
2032         (do_estimate_growth): New function based on....
2033         (estimate_growth): ... this one.
2034         (inline_analyze_function): Analyze after deciding on jump functions.
2035         (inline_read_section): New function.
2036         (inline_read_summary): Use it.
2037         (inline_write_summary): Write all the new data.
2038         * ipa-prop.c (ipa_get_param_decl_index): Export.
2039         (ipa_lattice_from_jfunc): Move here from ipa-cp.c
2040         * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
2041         Declare.
2042         (ipa_get_lattice): Move here from ipa-cp.c
2043         * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
2044         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
2045         * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
2046         cgraph_edge_inlinable_p): Remove.
2047         * cgraphunit.c: Include ipainline.h
2048         (cgraph_process_new_functions): Update call of
2049         compute_inline_parameters.
2050
2051 2011-04-22  Richard Guenther  <rguenther@suse.de>
2052
2053         * tree.c (build_int_cst): Properly create canonicalized integer
2054         constants.
2055         (build_int_cst_type): Remove scary comments.
2056
2057 2011-04-22  Xinliang David Li  <davidxl@google.com>
2058
2059         * toplev.c (process_options): Enable -Werror=coverage-mismatch
2060         by default when -Wno-error is not specified.
2061         * opts-global.c (decode_options): Remove call to
2062         control_warning_options.
2063
2064 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
2065
2066         PR tree-optimization/48717
2067         * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
2068         ~A + A optimizations use build_int_cst_type instead of build_int_cst.
2069
2070 2011-04-22  Joseph Myers  <joseph@codesourcery.com>
2071
2072         * config/bfin/bfin-protos.h (Mmode): Don't define.  Expand
2073         definition where used.
2074
2075 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
2076
2077         PR c/48716
2078         * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
2079         TREE_STATIC variables declared inside of some OpenMP construct.
2080
2081 2011-04-22  Martin Jambor  <mjambor@suse.cz>
2082
2083         PR middle-end/48585
2084         * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
2085
2086 2011-04-22  Alexander Monakov  <amonakov@ispras.ru>
2087
2088         PR c/36750
2089         * c-typeck.c (pop_init_level): Do not warn about initializing
2090         with ` = {0}'.
2091
2092 2011-04-22  Alan Modra  <amodra@gmail.com>
2093
2094         * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
2095         when returning call_cookie.
2096         (rs6000_function_ok_for_sibcall): Allow sibcalls via function
2097         pointers, to functions with no more vector args than the current
2098         function, and some non-local calls for ABI_V4.
2099         * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
2100         sibcall_nonlocal_aix64): Combine to ..
2101         (sibcall_nonlocal_aix<mode>): ..this.  Handle function pointer calls.
2102         (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
2103         (sibcall_value_nonlocal_aix<mode>): ..likewise.
2104         (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
2105         (sibcall_value_nonlocal_sysv<mode>): Likewise.  Correct call cookie
2106         operand.
2107         * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
2108         sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
2109         sibcall_value_symbolic_64): Delete.
2110
2111 2011-04-21  Xinliang David Li  <davidxl@google.com>
2112
2113         * cgraph.h: Remove pid.
2114         * cgraph.c: Remove pid.
2115         * value-prof.c (init_node_map): New function.
2116         (del_node_map): New function.
2117         (find_func_by_funcdef_no): New function.
2118         (gimple_ic_transform): Call new function.
2119         * cgraphunit.c (cgraph_finalize_function): Remove pid.
2120         * function.c (get_last_funcdef_no): New function.
2121         * function.h (get_last_funcdef_no): New function.
2122         * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
2123         to libgcov function.
2124         (tree-profiling): Call node map init and delete function.
2125
2126 2011-04-21  Ian Lance Taylor  <iant@google.com>
2127
2128         * godump.c (go_format_type): Use exported Go name for anonymous
2129         field name.
2130
2131 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
2132
2133         * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
2134         Call builtin_function_type_list instead of builtin_function_type.
2135         (UNARY, BINARY, TRINARY, QUAD): Likewise.
2136
2137 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
2138
2139         * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
2140         build_function_type_list instead of build_function_type.
2141         Delete variable `endlink'.
2142
2143 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
2144
2145         * config/s390/s390.c (s390_init_builtins): Call
2146         build_function_type_list instead of build_function_type.
2147
2148 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
2149
2150         * config/ia64/ia64.c (ia64_init_builtins): Call
2151         build_function_type_list instead of builtin_function_type.
2152
2153 2011-04-21  Easwaran Raman  <eraman@google.com>
2154
2155         * cfgexpand.c (stack_var): Remove OFFSET...
2156         (add_stack_var): ...and its reference here...
2157         (expand_stack_vars): ...and here.
2158         (stack_var_cmp): Sort by descending order of size.
2159         (partition_stack_vars): Change heuristic.
2160         (union_stack_vars): Fix to reflect changes in partition_stack_vars.
2161         (dump_stack_var_partition): Add newline after each partition.
2162
2163 2011-04-21  Dimitrios Apostolou  <jimis@gmx.net>
2164             Jeff Law  <law@redhat.com>
2165
2166         * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
2167         * gengtype.c (matching_file_name_substitute): Likewise.
2168
2169 2011-04-21  Richard Guenther  <rguenther@suse.de>
2170
2171         PR lto/48703
2172         * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
2173
2174 2011-04-21  Eric Botcazou  <ebotcazou@adacore.com>
2175
2176         * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
2177
2178 2011-04-21  Richard Guenther  <rguenther@suse.de>
2179
2180         * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
2181         file name.
2182
2183 2011-04-21  Richard Guenther  <rguenther@suse.de>
2184
2185         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
2186         MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
2187         Use DECL_P, not SSA_VAR_P.
2188         (ptr_derefs_may_alias_p): Likewise.
2189         (ptr_deref_may_alias_ref_p_1): Likewise.
2190         (decl_refs_may_alias_p): Likewise.
2191         (refs_may_alias_p_1): Likewise.
2192         (ref_maybe_used_by_call_p_1): Likewise.
2193         (call_may_clobber_ref_p_1): Likewise.
2194         (indirect_ref_may_alias_decl_p): Assume indirect refrences
2195         are either MEM_REF or TARGET_MEM_REF.
2196         (indirect_refs_may_alias_p): Likewise.
2197         * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
2198         for MEM_EXPR of indirect calls.
2199
2200 2011-04-21  Tristan Gingold  <gingold@adacore.com>
2201
2202         * vmsdbgout.c (write_srccorr): Compute file length from the string.
2203         (dst_file_info_struct): Remove flen field.
2204         (lookup_filename): Remove code that set flen field.
2205
2206 2011-04-21  Tristan Gingold  <gingold@adacore.com>
2207
2208         * config/ia64/ia64.c (ia64_start_function): Add a guard.
2209
2210 2011-04-21  Uros Bizjak  <ubizjak@gmail.com>
2211
2212         PR target/48708
2213         * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
2214         vec_extract and vec_concat for non-SSE4_1 targets.
2215
2216 2011-04-21  Richard Guenther  <rguenther@suse.de>
2217
2218         * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
2219         return statements.
2220
2221 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
2222
2223         * config/i386/cygming.h (union tree_node, TREE): Don't define or
2224         undefine.
2225         (FILE): Don't undefine.
2226
2227 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
2228
2229         * config/alpha/alpha.c (struct machine_function): Use rtx, not
2230         struct rtx_def *.
2231         * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
2232         struct rtx_def *.
2233         * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
2234         * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
2235         * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
2236         rtx_def *.
2237         * config/m32c/m32c-protos.h (MM, UINT): Don't define.  Expand
2238         definitions where used.
2239         * config/microblaze/microblaze.h (struct microblaze_args): Use
2240         rtx, not struct rtx_def *.
2241         * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
2242         rtx_def *.
2243         * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
2244         * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
2245         * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
2246         not struct rtx_def *.
2247         * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
2248         struct rtx_def *.
2249         * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
2250         rtx_def *.
2251         * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
2252
2253 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
2254
2255         * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
2256         operand_equal_p to compare DR_BASE_ADDRESSes.
2257         (vect_check_interleaving): Likewise.
2258
2259 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
2260
2261         PR target/46329
2262         * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
2263         for all Neon struct constants.
2264
2265 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
2266
2267         * target.def (legitimate_constant_p): New hook.
2268         * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
2269         (TARGET_LEGITIMATE_CONSTANT_P): ...this.
2270         * doc/tm.texi: Regenerate.
2271         * hooks.h (hook_bool_mode_rtx_true): Declare.
2272         * hooks.c (hook_bool_mode_rtx_true): Define.
2273         * system.h (LEGITIMATE_CONSTANT_P): Poison.
2274         * calls.c (precompute_register_parameters): Replace uses of
2275         LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
2276         (emit_library_call_value_1): Likewise.
2277         * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
2278         (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
2279         * ira-costs.c (scan_one_insn): Likewise.
2280         * recog.c (general_operand, immediate_operand): Likewise.
2281         * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
2282         * reload1.c (init_eliminable_invariants): Likewise.
2283
2284         * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
2285         mode argument.
2286         * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
2287         * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
2288         argument.
2289         (TARGET_LEGITIMATE_CONSTANT_P): Define.
2290         * config/alpha/predicates.md (input_operand): Update call to
2291         alpha_legitimate_constant_p.
2292
2293         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
2294         * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
2295         (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
2296         * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2297         (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
2298         (arm_legitimate_constant_p): New functions.
2299         (arm_cannot_force_const_mem): Make static.
2300
2301         * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
2302
2303         * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
2304         * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
2305         * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
2306         instead of bfin_legitimate_constant_p.
2307         (bfin_legitimate_constant_p): Make static.  Add a mode argument.
2308         (TARGET_LEGITIMATE_CONSTANT_P): Define.
2309
2310         * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
2311
2312         * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
2313
2314         * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
2315         * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
2316         * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2317         (frv_legitimate_constant_p): Make static.  Add a mode argument.
2318
2319         * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
2320         * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
2321         * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
2322
2323         * config/i386/i386-protos.h (legitimate_constant_p): Delete.
2324         * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
2325         * config/i386/i386.c (legitimate_constant_p): Rename to...
2326         (ix86_legitimate_constant_p): ...this.  Make static.  Add a mode
2327         argument.
2328         (ix86_cannot_force_const_mem): Update accordingly.
2329         (ix86_legitimate_address_p): Likewise.
2330         (TARGET_LEGITIMATE_CONSTANT_P): Define.
2331         * config/i386/i386.md: Update commentary.
2332
2333         * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
2334         * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
2335         * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2336         (ia64_legitimate_constant_p): Make static.  Add a mode argument.
2337
2338         * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
2339
2340         * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
2341         * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
2342         * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2343         (lm32_legitimate_constant_p): Make static.  Add a mode argument.
2344
2345         * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
2346         * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
2347         * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
2348
2349         * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
2350         * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2351         (m32r_legitimate_constant_p): New function.
2352
2353         * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
2354         * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
2355         LEGITIMATE_CONSTANT_P.
2356         (LEGITIMATE_CONSTANT_P): Delete.
2357         * config/m68k/m68k.c (m68k_expand_prologue): Call
2358         m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
2359         (m68k_legitimate_constant_p): New function.
2360         * config/m68k/m68k.md: Update comments.
2361
2362         * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
2363         * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2364         (mcore_legitimate_constant_p): New function.
2365
2366         * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
2367         * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
2368         * config/mep/mep.c (mep_legitimate_constant_p): Make static.
2369         Add a mode argument.
2370         (mep_legitimate_address): Update accordingly.
2371         (TARGET_LEGITIMATE_CONSTANT_P): Define.
2372
2373         * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
2374         Delete.
2375         * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
2376         * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
2377         static.  Check OP's mode for VOIDmode.
2378         (microblaze_legitimate_constant_p): New function.
2379         (TARGET_LEGITIMATE_CONSTANT_P): Define.
2380
2381         * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
2382         * config/mips/mips.c (mips_legitimate_constant_p): New function.
2383         (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
2384         (TARGET_LEGITIMATE_CONSTANT_P): Define.
2385         * config/mips/predicates.md: Update comments.
2386
2387         * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
2388         * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
2389         * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2390         (mmix_legitimate_constant_p): Make static, return a bool, and take
2391         a mode argument.
2392         (mmix_print_operand_address): Update accordingly.
2393
2394         * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
2395         Delete.
2396         * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
2397         * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
2398         static.  Add a mode argument.
2399         (TARGET_LEGITIMATE_CONSTANT_P): Define.
2400
2401         * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
2402
2403         * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
2404         * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2405         (pa_legitimate_constant_p): New function.
2406
2407         * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
2408
2409         * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
2410         * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2411         (pdp11_legitimate_constant_p): New function.
2412
2413         * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
2414         * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2415         (rs6000_legitimate_constant_p): New function.
2416
2417         * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
2418         (rx_legitimate_constant_p): ...this.
2419         * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
2420         * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
2421         (rx_legitimate_constant_p): ...this.
2422         (TARGET_LEGITIMATE_CONSTANT_P): Define.
2423         * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
2424
2425         * config/s390/s390-protos.h (legitimate_constant_p): Delete.
2426         * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
2427         * config/s390/s390.c (legitimate_constant_p): Rename to...
2428         (s390_legitimate_constant_p): ...this.  Make static, return a bool,
2429         and add a mode argument.
2430         (TARGET_LEGITIMATE_CONSTANT_P): Define.
2431
2432         * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
2433
2434         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
2435         * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2436         (sh_legitimate_constant_p): New function.
2437
2438         * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
2439         * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
2440         * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2441         (legitimate_constant_p): Rename to...
2442         (sparc_legitimate_constant_p): ...this.  Make static.  Add a mode
2443         argument.
2444         (constant_address_p): Update accordingly.
2445
2446         * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
2447         argument and return a bool.
2448         * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
2449         * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2450         (spu_legitimate_constant_p): Add a mode argument and return a bool.
2451         (spu_rtx_costs): Update accordingly.
2452         * config/spu/predicates.md (vec_imm_operand): Likewise.
2453
2454         * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
2455
2456         * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
2457         * config/v850/v850.c (v850_legitimate_constant_p): New function.
2458         (TARGET_LEGITIMATE_CONSTANT_P): Define.
2459
2460         * config/vax/vax-protos.h (legitimate_constant_p): Delete.
2461         * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
2462         * config/vax/vax.c (legitimate_constant_p): Likewise.
2463
2464         * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
2465         * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2466         (xtensa_legitimate_constant_p): New function.
2467
2468 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
2469
2470         * target.def (cannot_force_const_mem): Add a mode argument.
2471         * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
2472         * doc/tm.texi: Regenerate.
2473         * hooks.h (hook_bool_mode_rtx_false): Declare.
2474         * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
2475         (hook_bool_mode_const_rtx_true): Likewise.
2476         (hook_bool_mode_rtx_false): New function.
2477         * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
2478         to be non-VOID.  Update call to cannot_force_const_mem.
2479         (find_reloads): Update accordingly.
2480         * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
2481         * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
2482         argument.
2483         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
2484         * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
2485         * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
2486         * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
2487         * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
2488         * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
2489         * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
2490         * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
2491         (m68k_cannot_force_const_mem): ...this new function.
2492         * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
2493         argument.
2494         (mips_const_insns, mips_legitimize_const_move): Update calls.
2495         (mips_secondary_reload_class): Likewise.
2496         * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
2497         (pa_cannot_force_const_mem): ...this new function.
2498         * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
2499         (rs6000_cannot_force_const_mem): ...this new function.
2500         * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
2501         argument.
2502         * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
2503         * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
2504         to...
2505         (xtensa_cannot_force_const_mem): ...this new function.
2506
2507 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
2508
2509         * config/mips/mips.c (mips16_build_function_stub): Call
2510         build_function_type_list instead of build_function_type.
2511         (mips16_build_call_stub): Likewise.
2512
2513 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
2514
2515         * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
2516         instead of build_function_type.
2517
2518 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
2519
2520         * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
2521         instead of build_function_type.
2522
2523 2011-04-20  Uros Bizjak  <ubizjak@gmail.com>
2524
2525         PR target/48678
2526         * config/i386/i386.md (insv): Change operand 0 constraint to
2527         "register_operand".  Change operand 1 and 2 constraint to
2528         "const_int_operand".  Expand to pinsr{b,w,d,q} * when appropriate.
2529         * config/i386/sse.md (sse4_1_pinsrb): Export.
2530         (sse2_pinsrw): Ditto.
2531         (sse4_1_pinsrd): Ditto.
2532         (sse4_1_pinsrq): Ditto.
2533         * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
2534         * config/i386/i386.c (ix86_expand_pinsr): New.
2535
2536 2011-04-20  Easwaran Raman  <eraman@google.com>
2537
2538         * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
2539         containing union type only with -fstrict-aliasing.
2540
2541 2011-04-20  Jim Meyering  <meyering@redhat.com>
2542
2543         Remove useless if-before-free tests.
2544         * calls.c (expand_call, save_area): Likewise.
2545         * cfgcleanup.c (try_forward_edges): Likewise.
2546         * collect2.c (collect_execute): Likewise.
2547         * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
2548         * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
2549         * coverage.c (coverage_checksum_string): Likewise.
2550         * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
2551         * cselib.c (cselib_init): Likewise.
2552         * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
2553         (df_set_clean_cfg): Likewise.
2554         * function.c (free_after_compilation): Likewise.
2555         * gcc.c (do_spec_1, main): Likewise.
2556         * gcov.c (create_file_names): Likewise.
2557         * gensupport.c (identify_predicable_attribute): Likewise.
2558         * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
2559         * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
2560         * haifa-sched.c (haifa_finish_h_i_d): Likewise.
2561         * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
2562         * ipa-pure-const.c (local_pure_const): Likewise.
2563         * ipa-reference.c (propagate): Likewise.
2564         * ira-costs.c (free_ira_costs): Likewise.
2565         * ira.c (free_register_move_costs, build_insn_chain): Likewise.
2566         * matrix-reorg.c (mat_free): Likewise.
2567         * prefix.c (get_key_value): Likewise.
2568         * profile.c (compute_value_histograms): Likewise.
2569         * reload1.c (free_reg_equiv): Likewise.
2570         * sched-deps.c (free_deps): Likewise.
2571         * sel-sched-ir.c (fence_clear): Likewise.
2572         * sese.c (set_rename, if_region_set_false_region): Likewise.
2573         * tree-data-ref.c (free_rdg): Likewise.
2574         * tree-eh.c (lower_try_finally): Likewise.
2575         * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
2576         * tree-ssa-live.c (delete_var_map): Likewise.
2577         * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
2578         * tree-ssa-pre.c (phi_trans_add): Likewise.
2579
2580 2011-04-20  Jakub Jelinek  <jakub@redhat.com>
2581
2582         PR tree-optimization/48611
2583         * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
2584         beyond ERT_MUST_NOT_THROW region.
2585
2586 2011-04-20  Catherine Moore  <clm@codesourcery.com>
2587
2588         * config/mips/mips.opt (mfix-24k): New.
2589         * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
2590         * config/mips/mips.md (length): Increase by 4 for stores if
2591         fixing 24K errata.
2592         * config/mips/mips.c (mips_reorg_process_insns): Do not allow
2593         all noreorder if fixing 24K errata.
2594         * doc/invoke.texi: Document mfix-24k.
2595
2596 2011-04-20  Chung-Lin Tang  <cltang@codesourcery.com>
2597
2598         * config/arm/arm.c (arm_legitimize_reload_address): For NEON
2599         quad-word modes, reduce to 9-bit index range when above 1016 limit.
2600
2601 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
2602
2603         * config/arm/arm.c (arm_gen_constant): Move movw support ....
2604         (const_ok_for_op): ... to here.
2605
2606 2011-04-20  Kai Tietz  <ktietz@redhat.com>
2607
2608         * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
2609         and (X && !Y) | (!X && Y) optimization to (X ^ Y).
2610
2611 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
2612
2613         * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
2614
2615 2011-04-20  Richard Guenther  <rguenther@suse.de>
2616
2617         PR tree-optimization/47892
2618         * tree-if-conv.c (if_convertible_stmt_p): Const builtins
2619         are if-convertible.
2620
2621 2011-04-20  Eric Botcazou  <ebotcazou@adacore.com>
2622
2623         * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
2624
2625 2011-04-20  Tristan Gingold  <gingold@adacore.com>
2626
2627         * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
2628
2629 2011-04-20  Georg-Johann Lay  <avr@gjlay.de>
2630
2631         PR target/18145
2632
2633         * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
2634         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
2635         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
2636         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
2637         (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
2638
2639         * config/avr/avr-protos.h (avr_asm_output_aligned_common):
2640         New prototype.
2641
2642         * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
2643         (avr_asm_named_section, avr_asm_output_aligned_common,
2644         avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
2645         New functions to update...
2646         (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
2647         (avr_asm_init_sections): Overwrite section callbacks for
2648         data_section, bss_section.
2649         (avr_file_start): Move output of __do_copy_data, __do_clear_bss
2650         from here to...
2651         (avr_file_end): ...here.
2652
2653 2011-04-20  Richard Guenther  <rguenther@suse.de>
2654
2655         PR middle-end/48695
2656         * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
2657         objects and types here.  Adjust for their offset before comparing.
2658
2659 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
2660
2661         * tree-vect-stmts.c (vectorizable_store): Only chain one related
2662         statement per copy.
2663
2664 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
2665
2666         * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
2667         (GIMPLE_H): Include $(INTERNAL_FN_H).
2668         (OBJS-common): Add internal-fn.o.
2669         (internal-fn.o): New rule.
2670         * internal-fn.def: New file.
2671         * internal-fn.h: Likewise.
2672         * internal-fn.c: Likewise.
2673         * gimple.h: Include internal-fn.h.
2674         (GF_CALL_INTERNAL): New gf_mask.
2675         (gimple_statement_call): Put fntype into a union with a new
2676         internal_fn field.
2677         (gimple_build_call_internal): Declare.
2678         (gimple_build_call_internal_vec): Likewise.
2679         (gimple_call_same_target_p): Likewise.
2680         (gimple_call_internal_p): New function.
2681         (gimple_call_internal_fn): Likewise.
2682         (gimple_call_fntype): Return null for internal calls.
2683         (gimple_call_set_fntype): Assert that the function is not internal.
2684         (gimple_call_set_fn): Likewise.
2685         (gimple_call_set_fndecl): Likewise.
2686         (gimple_call_set_internal_fn): New function.
2687         (gimple_call_addr_fndecl): Handle null functions.
2688         (gimple_call_return_type): Likewise null types.
2689         * gimple.c (gimple_build_call_internal_1): New function.
2690         (gimple_build_call_internal): Likewise.
2691         (gimple_build_call_internal_vec): Likewise.
2692         (gimple_call_same_target_p): Likewise.
2693         (gimple_call_flags): Handle calls to internal functions.
2694         (gimple_call_fnspec): New function.
2695         (gimple_call_arg_flags, gimple_call_return_flags): Use it.
2696         (gimple_has_side_effects): Handle null functions.
2697         (gimple_rhs_has_side_effects): Likewise.
2698         (gimple_call_copy_skip_args): Handle calls to internal functions.
2699         * cfgexpand.c (expand_call_stmt): Likewise.
2700         * expr.c (expand_expr_real_1): Assert that the call isn't internal.
2701         * gimple-fold.c (gimple_fold_call): Handle null functions.
2702         (gimple_fold_stmt_to_constant_1): Don't fold
2703         calls to internal functions.
2704         * gimple-low.c (gimple_check_call_args): Handle calls to internal
2705         functions.
2706         * gimple-pretty-print.c (dump_gimple_call): Likewise.
2707         * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
2708         * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
2709         (do_warn_unused_result): Likewise.
2710         * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
2711         * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
2712         * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
2713         the target of a call.
2714         (initialize_hash_element): Update accordingly.
2715         (hashable_expr_equal_p): Use gimple_call_same_target_p.
2716         (iterative_hash_hashable_expr): Handle calls to internal functions.
2717         (print_expr_hash_elt): Likewise.
2718         * tree-ssa-pre.c (can_value_number_call): Likewise.
2719         (eliminate): Handle null functions.
2720         * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
2721         * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
2722         (find_func_aliases): Likewise.
2723         * value-prof.c (gimple_ic_transform): Likewise.
2724         (gimple_indirect_call_to_profile): Likewise.
2725         * lto-streamer-in.c (input_gimple_stmt): Likewise.
2726         * lto-streamer-out.c (output_gimple_stmt): Likewise.
2727
2728 2011-04-19  Jan Hubicka  <jh@suse.cz>
2729
2730         * ipa-inline-transform.c (save_inline_function_body): Add comments.
2731         * ipa-inline.c (inline_small_functions): Compute summaries first,
2732         populate heap later.
2733
2734 2011-04-19  Jan Hubicka  <jh@suse.cz>
2735
2736         * cgraph.h (save_inline_function_body): Remove.
2737         * ipa-inline-transform.c: New file, broke out of...
2738         * ipa-inline.c: ... this one; Update toplevel comment.
2739         (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
2740         make global.
2741         (update_noncloned_frequencies): Move to ipa-inline-transform.c
2742         (cgraph_mark_inline_edge): Rename to inline_call; move to
2743         ipa-inline-transform.c.
2744         (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
2745         move to ipa-inline-transform.c
2746         (recursive_inlining, inline_small_functions, flatten_function,
2747         ipa_inline, inline_always_inline_functions,
2748         early_inline_small_functions): Update.
2749         (inline_transform): Move to ipa-inline-transform.c.
2750         * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
2751         Declare.
2752         * Makefile.in (ipa-inline-transform.o): New file.
2753         * cgraphunit.c (save_inline_function_body): Move to
2754         ipa-inline-transform.c
2755
2756 2011-04-19  DJ Delorie  <dj@redhat.com>
2757
2758         * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
2759         registers if we already know there aren't any.
2760         (m32c_emit_epilogue): Don't emit a barrier here.
2761         (m32c_emit_eh_epilogue): Likewise.
2762         * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
2763         operands at expand time.
2764         * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
2765         int" wchar type.
2766         (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
2767         duplicates.  Provide aliases instead.
2768         * config/m32c/prologue.md (eh_return): Emit a barrier here.
2769         (eh_epilogue): Add a "(return)" here as a hint to other parts of
2770         the compiler.
2771
2772 2011-04-19  Anatoly Sokolov  <aesok@post.ru>
2773
2774         * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
2775         * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
2776         (general_or_i64_p, sparc_register_move_cost): New function.
2777
2778 2011-04-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2779
2780         * doc/install.texi (Configuration, --enable-threads): Remove mach.
2781         Add lynx, mipssde.  Sort table.
2782
2783 2011-04-19  Xinliang David Li  <davidxl@google.com>
2784
2785         * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
2786         not negative.
2787
2788 2011-04-19  Jakub Jelinek  <jakub@redhat.com>
2789
2790         PR target/48678
2791         * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
2792         is a SUBREG with non-MODE_INT mode inside of it.
2793
2794 2011-04-19  Martin Jambor  <mjambor@suse.cz>
2795
2796         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
2797         also according to actual contants.
2798         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
2799         (gimple_fold_call): Use it.
2800         * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
2801
2802 2011-04-19  Martin Jambor  <mjambor@suse.cz>
2803
2804         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
2805         non-pointer assignments.
2806
2807 2011-04-19  Martin Jambor  <mjambor@suse.cz>
2808
2809         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
2810         account anc_offset and otr_type from the indirect edge info.
2811         * ipa-prop.c (get_ancestor_addr_info): New function.
2812         (compute_complex_ancestor_jump_func): Assignment analysis moved to
2813         get_ancestor_addr_info, call it.
2814         (ipa_note_param_call): Do not initialize information about polymorphic
2815         calls, return the indirect call graph edge.  Remove the last
2816         parameter, adjust all callers.
2817         (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
2818         parameters.  Initialize polymorphic information in the indirect edge.
2819
2820 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
2821
2822         PR lto/48148
2823         * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
2824         the types if they have different enumeration identifiers.
2825
2826 2011-04-19  Jan Hubicka  <jh@suse.cz>
2827
2828         * cgraph.h (cgraph_optimize_for_size_p): Declare.
2829         * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
2830         * predict.c (cgraph_optimize_for_size_p): Break out from ...
2831         (optimize_function_for_size_p) ... here.
2832
2833 2011-04-19  Richard Guenther  <rguenther@suse.de>
2834
2835         PR lto/48207
2836         * tree.c (free_lang_data): Do not reset the decl-assembler-name
2837         langhook.
2838
2839 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
2840
2841         * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
2842         if DECL_NO_INLINE_WARNING_P is set on the function.
2843
2844 2011-04-19  Bernd Schmidt  <bernds@codesourcery.com>
2845
2846         PR fortran/47976
2847         * reload1.c (inc_for_reload): Return void. All callers changed.
2848         (emit_input_reload_insns): Don't try to delete previous output
2849         reloads to a register, or record spill_reg_store for autoincs.
2850
2851 2011-04-19  Basile Starynkevitch  <basile@starynkevitch.net>
2852
2853         * gengtype.h: Updated copyright year.
2854         (struct input_file_st): Add inpisplugin field.
2855         (type_fileloc): New function.
2856         * gengtype.c
2857         (write_typed_struct_alloc_def): Add gcc_assert.
2858         (write_typed_alloc_defns): Ditto. Don't output for plugin files.
2859         (write_typed_alloc_defns): Don't output for plugin files.
2860         (input_file_by_name): Clear inpisplugin field.
2861         (main): Set inpisplugin field for plugin files.
2862
2863 2011-04-19  Nicola Pero  <nicola.pero@meta-innovation.com>
2864
2865         * gengtype-state.c (string_eq): New.
2866         (read_state): Use string_eq instead of strcmp when creating the
2867         state_ident_tab.
2868
2869 2011-04-19  Wei Guozhi  <carrot@google.com>
2870
2871         PR target/47855
2872         * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
2873         * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
2874         linkage.
2875         * config/arm/constraints.md (Uu): New constraint.
2876         * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
2877
2878 2011-04-19  Tristan Gingold  <gingold@adacore.com>
2879
2880         * config.gcc (-*-*-*vms): Added.
2881         (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
2882         definitions moved.
2883         * config/vms/vms-ld.c: New file.
2884         * config/vms/vms-ar.c: New file.
2885         * config/vms/t-vmsnative: New file.
2886
2887 2011-04-18  Xinliang David Li  <davidxl@google.com>
2888
2889         * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
2890
2891 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
2892
2893         PR middle-end/48661
2894         * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
2895         if TREE_TYPE (v) is non-NULL.
2896
2897         * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
2898         gimple_get_virt_mehtod_for_binfo.
2899         * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
2900         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
2901         callers.
2902         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
2903
2904 2011-04-18  Michael Matz  <matz@suse.de>
2905             Steve Ellcey  <sje@cup.hp.com>
2906
2907         * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
2908         use its mode as source mode if it isn't VOIDmode.
2909
2910 2011-04-18  Dennis, CHENG Renquan  <crquan@fedoraproject.org>
2911
2912         * doc/passes.texi: Fill crossref nodes.
2913
2914 2011-04-18  Jim Meyering  <meyering@redhat.com>
2915
2916         Fix doubled-word typos in comments and strings
2917         * config/alpha/vms-unwind.h: s/for for/for/
2918         * config/arm/unwind-arm.h: Likewise.
2919         * config/microblaze/microblaze.c: Likewise.
2920         * config/sh/constraints.md: s/in in/in/
2921         * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
2922
2923 2011-04-18  Uros Bizjak  <ubizjak@gmail.com>
2924
2925         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
2926         (AVX_FLOAT_MODE_P): Ditto.
2927         (AVX128_VEC_FLOAT_MODE_P): Ditto.
2928         (AVX256_VEC_FLOAT_MODE_P): Ditto.
2929         (AVX_VEC_FLOAT_MODE_P): Ditto.
2930         * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
2931         (UNSPEC_MASKSTORE): Ditto.
2932         * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
2933         Merge from <sse>_movmsk<ssemodesuffix> and
2934         avx_movmsk<ssemodesuffix>256.  Use VF mode iterator.
2935         (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64.  Use P mode
2936         iterator.
2937         (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
2938         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
2939         (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
2940
2941 2011-04-18  Jan Hubicka  <jh@suse.cz>
2942
2943         * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
2944
2945         * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
2946         (want_inline_function_called_once_p): Break out the logic from
2947         ipa_inline.
2948         (edge_badness): Ensure that profile is not misupdated.
2949         (lookup_recursive_calls): Prioritize by call frequencies.
2950         (inline_small_functions): Move program size estimates here;
2951         actually process whole queue even when unit growth has been
2952         met. (to properly compute inline_failed reasons and for the
2953         case unit size decrease.) Revisit comments on recursive inlining.
2954         (ipa_inline): Remove unit summary code; first inline hot calls
2955         of functions called once, cold calls next.
2956         (order, nnodes): Remove unused variables.
2957         * Makefile.in (ipa-inline.o): No longer depent on ggc files.
2958         (GTFILES): Remove ipa-inline.c
2959         * sel-sched.c (fill_insns): Silence uninitialized var warning.
2960
2961 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
2962
2963         * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
2964
2965 2011-04-18  Jie Zhang  <jie@codesourcery.com>
2966             Richard Earnshaw  <rearnsha@arm.com>
2967
2968         * arm.c (neon_builtin_type_bits): Remove.
2969         (typedef enum neon_builtin_mode): New.
2970         (T_MAX): Don't define.
2971         (typedef enum neon_builtin_datum): Remove bits, codes[],
2972         num_vars and base_fcode.  Add mode, code and fcode.
2973         (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
2974         VAR10): Change accordingly.
2975         (neon_builtin_data[]): Change accordingly
2976         (arm_init_neon_builtins): Change accordingly.
2977         (neon_builtin_compare): Remove.
2978         (locate_neon_builtin_icode): Remove.
2979         (arm_expand_neon_builtin): Change accordingly.
2980
2981         * arm.h (enum arm_builtins): Move to ...
2982         * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
2983
2984         * arm.c (arm_builtin_decl): Declare.
2985         (TARGET_BUILTIN_DECL): Define.
2986         (enum arm_builtins): Correct ARM_BUILTIN_MAX.
2987         (arm_builtin_decls[]): New.
2988         (arm_init_neon_builtins): Store builtin declarations in
2989         arm_builtin_decls[].
2990         (arm_init_tls_builtins): Likewise.
2991         (arm_init_iwmmxt_builtins): Likewise.  Refactor initialization code.
2992         (arm_builtin_decl): New.
2993
2994 2011-04-18  Richard Guenther  <rguenther@suse.de>
2995
2996         * tree.c (upper_bound_in_type): Build properly canonicalized
2997         INTEGER_CSTs.
2998         (lower_bound_in_type): Likewise.
2999
3000 2011-04-18  Richard Guenther  <rguenther@suse.de>
3001
3002         * gimple.h (gimple_call_addr_fndecl): New function.
3003         (gimple_call_fndecl): Use it.
3004         * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
3005         for direct calls.
3006         * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
3007         * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
3008
3009 2011-04-18  Richard Guenther  <rguenther@suse.de>
3010
3011         PR middle-end/48650
3012         * tree.c (build_string): STRING_CST is now derived from tree_typed.
3013
3014 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
3015
3016         PR lto/48492
3017         * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
3018         DECL_IN_CONSTANT_POOL without RTL.
3019
3020 2011-04-18  Ulrich Weigand  <ulrich.weigand@linaro.org>
3021             Ira Rosen  <ira.rosen@linaro.org>
3022
3023         PR target/48252
3024         * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
3025         to match neon_vzip/vuzp/vtrn_internal.
3026         * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
3027         outputs explicitly dependent on both inputs.
3028         (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
3029
3030 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
3031
3032         PR tree-optimization/48616
3033         * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
3034         whether the shift is by scalar or vector based on whether all SLP
3035         scalar stmts have the same rhs.
3036
3037 2011-04-17  Chung-Lin Tang  <cltang@codesourcery.com>
3038
3039         * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
3040         memory operands.
3041
3042 2011-04-17  Richard Sandiford  <rdsandiford@googlemail.com>
3043
3044         * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
3045         registers.
3046
3047 2011-04-17  Jan Hubicka  <jh@suse.cz>
3048
3049         * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
3050         * cgrpahunit.c (cgraph_finalize_function): Do not set
3051         finalized_by_frontend.
3052         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
3053         finalized_by_frontend.
3054
3055 2011-04-17  Jan Hubicka  <jh@suse.cz>
3056
3057         * cgraph.c (cgraph_clone_node): Do not handle vtable_method
3058         * cgraph.h (struct cgraph_local_info): Drop vtable_method.
3059         * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
3060         * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
3061         method.
3062         * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
3063         gimple-fold.c
3064         * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
3065
3066 2011-04-17  Eric Botcazou  <ebotcazou@adacore.com>
3067
3068         PR lto/48538
3069         * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
3070         is non-null before accessing it.
3071         (input_cgraph): Remove trailing spaces.
3072
3073 2011-04-17  Revital Eres  <revital.eres@linaro.org>
3074
3075         * params.def (sms-min-sc): New param flag.
3076         * modulo-sched.c (sms_schedule): Use it.
3077         * doc/invoke.texi (sms-min-sc): Document it.
3078
3079 2011-04-17  Jan Hubicka  <jh@suse.cz>
3080
3081         * lto-symtab.c (lto_cgraph_replace_node): When call statement is
3082         present, also set gimple_call_set_cannot_inline.
3083         * ipa-inline.c: Update toplevel comment.
3084         (MAX_TIME): Remove.
3085         (cgraph_clone_inlined_nodes): Fix linebreaks.
3086         (cgraph_check_inline_limits): Restructure to ...
3087         (caller_growth_limits): ... this one; be more tolerant
3088         on growth in nested inline chains; add explanatory comment;
3089         fix stack accounting thinko introduced by previous patch.
3090         (cgraph_default_inline_p): Remove.
3091         (report_inline_failed_reason): New function.
3092         (can_inline_edge_p): New function.
3093         (can_early_inline_edge_p): New function.
3094         (leaf_node_p): Move upwards in file.
3095         (want_early_inline_function_p): New function.
3096         (want_inline_small_function_p): New function.
3097         (want_inline_self_recursive_call_p): New function.
3098         (cgraph_edge_badness): Rename to ...
3099         (edge_badness) ... this one; fix linebreaks.
3100         (update_edge_key): Update call of edge_baddness; add
3101         detailed dump about queue updates.
3102         (update_caller_keys): Use can_inline_edge_p and
3103         want_inline_small_function_p.
3104         (cgraph_decide_recursive_inlining): Rename to...
3105         (recursive_inlining): Use can_inline_edge_p and
3106         want_inline_self_recursive_call_p; simplify and remove no longer
3107         valid FIXME.
3108         (cgraph_set_inline_failed): Remove.
3109         (add_new_edges_to_heap): Use can_inline_edge_p and
3110         want_inline_small_function_p.
3111         (cgraph_decide_inlining_of_small_functions): Rename to ...
3112         (inline_small_functions): ... this one; cleanup; use
3113         can/want predicates; cleanup debug ouput; work edges till fibheap
3114         is exhausted and do not stop once unit growth is reached; remove
3115         later loop processing remaining edges.
3116         (cgraph_flatten): Rename to ...
3117         (flatten_function): ... this one; use can_inline_edge_p
3118         and can_early_inline_edge_p predicates.
3119         (cgraph_decide_inlining): Rename to ...
3120         (ipa_inline): ... this one; remove unreachable nodes before
3121         inlining functions called once; simplify the pass.
3122         (cgraph_perform_always_inlining): Rename to ...
3123         (inline_always_inline_functions): ... this one; use
3124         DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
3125         (cgraph_decide_inlining_incrementally): Rename to ...
3126         (early_inline_small_functions): ... this one; simplify
3127         using new predicates; cleanup; make dumps prettier.
3128         (cgraph_early_inlining): Rename to ...
3129         (early_inliner): newer inline regular functions into always-inlines;
3130         fix updating of call stmt summaries.
3131         (pass_early_inline): Update for new names.
3132         (inline_transform): Fix formating.
3133         (gate_cgraph_decide_inlining): Rename to ...
3134         (pass_ipa_inline): ... this one.
3135         * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
3136         * ipa-inline-analysis.c (dump_inline_summary): Update.
3137         (compute_inline_parameters): Do not compute disregard_inline_limits;
3138         look for mismatching arguments.
3139         (estimate_growth): Fix handlig of non-trivial self recursion.
3140         (inline_read_summary): Do not read info->disregard_inline_limits.
3141         (inline_write_summary): Do not write info->disregard_inline_limits.
3142         * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
3143         and move all checks into can_inline_edge_p predicate; re-enable code
3144         comparing optimization levels.
3145         (expand_call_inline): Do not test inline_forbidden_into_p.
3146         * Makefile.in (ipa-inline.o): Update arguments.
3147
3148 2011-04-17  Revital Eres  <revital.eres@linaro.org>
3149
3150         * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
3151
3152 2011-04-17  Revital Eres  <revital.eres@linaro.org>
3153
3154         * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
3155
3156 2011-04-17  Michael Matz  <matz@suse.de>
3157
3158         PR tree-optimization/48622
3159         PR lto/48645
3160         * ipa-inline-analysis.c (inline_read_summary): Read size/time
3161         in same order as they're written.
3162
3163 2011-04-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3164
3165         * config/pa/predicates.md: Reorganize and simplify predicates.
3166         Eliminate duplicate code checks.
3167         (arith_operand): Rename to arith14_operand
3168         (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
3169         * config/pa/pa.md: Use renamed operands.
3170         * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
3171         (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
3172         arith11_operand, adddi3_operand, indexed_memory_operand,
3173         symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
3174         arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
3175         borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
3176         move_dest_operand, move_src_operand, prefetch_cc_operand,
3177         prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
3178         uint32_operand, reg_before_reload_operand, reg_or_0_operand,
3179         reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
3180         div_operand, int5_operand, movb_comparison_operator,
3181         ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
3182         arith_double_operand, ireg_operand, lhs_lshift_operand,
3183         pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
3184         integer_store_memory_operand): Likewise.
3185         * config/pa/pa.c (adddi3_operand): Move to predicates.md.
3186         (integer_store_memory_operand, read_only_operand,
3187         function_label_operand, borx_reg_operand,
3188         non_hard_reg_operand): Likewise.
3189         (eq_neq_comparison_operator): Delete unused operator.
3190         (legitimize_pic_address): Use VOIDmode for mode argument in calls to
3191         function_label_operand.
3192         (emit_move_sequence): Likewise.
3193
3194 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
3195
3196         * config/i386/sse.md (sseunpackmode): New mode attribute.
3197         (ssepackmode): Ditto.
3198         (vec_pack_trunc_<mode>): Macroize expander from
3199         vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
3200         (vec_unpacks_lo_<mode>): Macroize expander from
3201         vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
3202         (vec_unpacks_hi_<mode>): Macroize expander from
3203         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
3204         (vec_unpacku_lo_<mode>): Macroize expander from
3205         vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
3206         (vec_unpacku_hi_<mode>): Macroize expander from
3207         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
3208         * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
3209         ix86_expand_sse4_unpack.
3210         * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
3211
3212 2011-04-16  Jan Hubicka  <jh@suse.cz>
3213
3214         * cgraphbuild.c: Include ipa-inline.h.
3215         (reset_inline_failed): Use initialize_inline_failed.
3216         * cgraph.c: Include ipa-inline.h.
3217         (cgraph_create_node_1): Do not initialize estimated_growth.
3218         (initialize_inline_failed): More to ipa-inline-analysis.c
3219         (dump_cgraph_node): Do not dump inline flags.
3220         * cgraph.h (cgraph_local_info): Remove inlineable, versionable
3221         and disregard_inline_limits flags.
3222         (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
3223         time, size, estimated_growth.
3224         * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
3225         Update.
3226         * cgraphunit.c (cgraph_decide_is_function_needed): Use
3227         DECL_DISREGARD_INLINE_LIMITS.
3228         (cgraph_analyze_function): Do not initialize
3229         node->local.disregard_inline_limits.
3230         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
3231         inlinable, versionable and disregard_inline_limits.
3232         * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
3233         cgraph_check_inline_limits, cgraph_default_inline_p,
3234         cgraph_edge_badness, update_caller_keys, update_callee_keys,
3235         add_new_edges_to_heap): Update.
3236         (cgraph_decide_inlining_of_small_function): Update; set
3237         CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
3238         (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
3239         cgraph_decide_inlining_incrementally): Update.
3240         * ipa-inline.h (inline_summary): Add inlinable, versionable,
3241         disregard_inline_limits, estimated_stack_size, stack_frame_offset,
3242         time, size and estimated_growth parameters.
3243         (estimate_edge_growth): Update.
3244         (initialize_inline_failed): Declare.
3245         * ipa-split.c: Include ipa-inline.h
3246         (execute_split_functions): Update.
3247         * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
3248         (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
3249         (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
3250         * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
3251         estimated_growth to INT_MIN.
3252         (inline_node_duplication_hook): Likewise.
3253         (dump_inline_summary): Dump new fields.
3254         (compute_inline_parameters): Update.
3255         (estimate_edge_time, estimate_time_after_inlining,
3256         estimate_size_after_inlining, estimate_growth, inline_read_summary,
3257         inline_write_summary):
3258         (initialize_inline_failed): Move here from cgraph.c.
3259         * tree-sra.c: Include ipa-inline.h.
3260         (ipa_sra_preliminary_function_checks): Update.
3261         * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
3262         ipa-inline.h.
3263
3264 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
3265
3266         * config/i386/sse.md (V16): New mode iterator.
3267         (VI1, VI8): Ditto.
3268         (AVXMODEQI, AVXMODEDI): Remove.
3269         (sse2, sse3): New mode attribute.
3270         (mov<mode>): Use V16 mode iterator.
3271         (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
3272         (push<mode>1): Use V16 mode iterator.
3273         (movmisalign<mode>): Ditto.
3274         (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
3275         <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
3276         (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
3277         *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
3278         (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
3279         avx_movdqu<avxmodesuffix>.
3280         (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
3281         *avx_movdqu<avxmodesuffix>.
3282         (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
3283         avx_lddqu<avxmodesuffix>.
3284         (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
3285         (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
3286         avx_movnt<AVXMODEDI:mode>.
3287         * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
3288         renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
3289
3290 2011-04-16  Bernd Schmidt  <bernds@codesourcery.com>
3291
3292         PR target/48629
3293         * haifa-sched.c (prune_ready_list, schedule_block): Use
3294         sched_pressure_p rather than flag_sched_pressure.
3295
3296 2011-04-15  Pat Haugen <pthaugen@us.ibm.com>
3297
3298         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
3299         cgraph_get_node instead of cgraph_get_create_node.
3300
3301 2011-04-15  Jakub Jelinek  <jakub@redhat.com>
3302
3303         * cfgexpand.c (expand_debug_expr): Use
3304         simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
3305
3306 2011-04-15  Michael Matz  <matz@suse.de>
3307
3308         * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
3309         * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
3310         * function.c (gimplify_parameters): Ditto.
3311         * gimplify.c (gimplify_vla_decl): Ditto.
3312
3313         * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
3314         (gimple_call_set_alloca_for_var): New inline function.
3315         (gimple_call_alloca_for_var_p): Ditto.
3316         * gimple.c (gimple_build_call_from_tree): Remember
3317         CALL_ALLOCA_FOR_VAR_P state.
3318         * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
3319
3320         * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
3321         calls if they were for VLA objects.
3322
3323 2011-04-15  Martin Jambor  <mjambor@suse.cz>
3324
3325         * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
3326         of ADR_EXPRs.
3327
3328 2011-04-15  Martin Jambor  <mjambor@suse.cz>
3329
3330         PR middle-end/48601
3331         * tree-emutls.c (lower_emutls_function_body): Call
3332         cgraph_get_create_node instead of cgraph_get_node.  Do not assert the
3333         result is non-NULL.
3334
3335 2011-04-15  Nicola Pero  <nicola.pero@meta-innovation.com>
3336
3337         * c-decl.c (detect_field_duplicates): Call
3338         objc_detect_field_duplicates instead of objc_get_interface_ivars.
3339
3340 2011-04-15  Nathan Froyd  <froydnj@codesourcery.com>
3341
3342         * gimple.h (gimple_asm_clobbers_memory_p): Declare.
3343         * gimple.c (gimple_asm_clobbers_memory_p): Define.
3344         * ipa-pure-const.c (check_stmt): Call it.
3345         * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
3346
3347 2011-04-15  Richard Guenther  <rguenther@suse.de>
3348
3349         PR tree-optimization/48290
3350         * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
3351         Properly decide inhibiting propagation based on the valueized
3352         operand.  Do loop-closed SSA form preserving here ...
3353         (init_copy_prop): ... not here.
3354
3355 2011-04-15  H.J. Lu  <hongjiu.lu@intel.com>
3356
3357         PR target/48612
3358         * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
3359         (*ieee_smax<mode>3): Likewise.
3360
3361 2011-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3362
3363         * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
3364         Replace match_operand with match_dup for the third operand in
3365         these expanders.
3366
3367 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
3368
3369         * combine.c (subst, combine_simlify_rtx): Add new argument, use it
3370         to track processing of conditionals.  Update all callers.
3371         (try_combine, simplify_if_then_else): Update.
3372
3373 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
3374
3375         * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
3376         -fsched-pressure.
3377
3378 2011-04-15  Georg-Johann Lay  <avr@gjlay.de>
3379
3380         * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
3381         instead of match_operand for operand 3.
3382
3383 2011-04-15  Richard Sandiford  <richard.sandiford@linaro.org>
3384
3385         * recog.h (insn_operand_data): Add an "allows_mem" field.
3386         * genoutput.c (output_operand_data): Initialize it.
3387         * optabs.c (maybe_legitimize_operand_same_code): New function.
3388         (maybe_legitimize_operand): Use it when matching the original
3389         op->value.
3390
3391 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
3392
3393         * gimplify.c: Fix issues in comments throughout.
3394         (voidify_wrapper_expr): Fix long line.
3395         (build_stack_save_restore): Likewise.
3396         (gimplify_loop_expr): Likewise.
3397         (gimplify_compound_lval): Likewise.
3398         (gimplify_init_ctor_eval): Likewise.
3399         (gimplify_modify_expr_rhs): Likewise.
3400         (omp_notice_threadprivate_variable): Likewise.
3401
3402 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
3403
3404         * cfgexpand.c (expand_call_stmt): Convert the function type to the
3405         original one if this is not a builtin function.
3406
3407 2011-04-14  Jakub Jelinek  <jakub@redhat.com>
3408
3409         PR target/48605
3410         * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
3411         offset it as needed based on top 2 bits in operands[3], change
3412         MEM mode to SFmode and mask those 2 bits away from operands[3].
3413
3414 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
3415
3416         * c-parser.c (c_parser_objc_protocol_definition): Updated for
3417         change from objc_declare_protocols() to objc_declare_protocol().
3418
3419 2011-04-14  Uros Bizjak  <ubizjak@gmail.com>
3420
3421         * config/i386/sse.md (sse4_1): New mode attribute.
3422         (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
3423         avx_blend<ssemodesuffix><avxmodesuffix> and
3424         sse4_1_blend<ssemodesuffix> using VF mode iterator.
3425         (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
3426         avx_blendv<ssemodesuffix><avxmodesuffix> and
3427         sse4_1_blendv<ssemodesuffix> using VF mode iterator.
3428         (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
3429         avx_dp<ssemodesuffix><avxmodesuffix> and
3430         sse4_1_dp<ssemodesuffix> using VF mode iterator.
3431         (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
3432         (sse4_1_packusdw): Merge with *avx_packusdw.
3433         (sse4_1_pblendvb): Merge with *avx_pblendvb.
3434         (sse4_1_pblendw): Merge with *avx_pblendw.
3435         (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
3436         (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
3437         avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
3438         VF mode iterator.
3439         (sse4_1_round<ssescalarmodesuffix>): Merge with
3440         *avx_round<ssescalarmodesuffix>.
3441         (aesenc): Merge with *avx_aesenc.
3442         (aesenclast): Merge with *avx_aesenclast.
3443         (aesdec): Merge with *avx_aesdec.
3444         (aesdeclast): Merge with *avx_aesdeclast.
3445         (pclmulqdq): Merge with *pclmulqdq.
3446         * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
3447         New predicate.
3448         (nonimm_not_xmm0_operand_maybe_avx): Ditto.
3449
3450 2011-04-14  H.J. Lu  <hongjiu.lu@intel.com>
3451
3452         PR middle-end/48608
3453         * cfgexpand.c (get_decl_align_unit): Renamed to ...
3454         (align_local_variable): This.  Update DECL_ALIGN.
3455         (add_stack_var): Updated.
3456         (expand_one_stack_var): Likewise.
3457
3458 2011-04-14  Richard Guenther  <rguenther@suse.de>
3459
3460         * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
3461         Remove.
3462         (dse_initialize_block_local_data, dse_leave_block,
3463         record_voperand_set, get_stmt_uid): Likewise.
3464         (dse_possible_dead_store_p): Allow any kind of killing stmt.
3465         (dse_optimize_stmt): Remove voperand set handling code.
3466         Simplify and improve to handle any kind of killing stmt.
3467         (dse_record_phi): Remove.
3468         (dse_enter_block): Simplify.
3469         (tree_ssa_dse): Likewise.
3470         * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
3471
3472 2011-04-14  Jan Hubicka  <jh@suse.cz>
3473
3474         * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
3475         * cgraph.h (struct inline_summary): Move to ipa-inline.h
3476         (cgraph_local_info): Remove inline_summary.
3477         * ipa-cp.c: Include ipa-inline.h.
3478         (ipcp_cloning_candidate_p, ipcp_estimate_growth,
3479         ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
3480         accesor.
3481         * lto-cgraph.c (lto_output_node): Do not stream inline summary.
3482         (input_overwrite_node): Do not set inline summary.
3483         (input_node): Do not stream inline summary.
3484         * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
3485         (cgraph_decide_inlining_incrementally): Do not try to estimate overall
3486         growth; we do not have inline parameters computed for that anyway.
3487         (cgraph_early_inlining): After inlining compute call_stmt_sizes.
3488         * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
3489         (inline_summary_t): New type and VECtor.
3490         (debug_inline_summary, dump_inline_summaries): Declare.
3491         (inline_summary): Use VOCtor.
3492         (estimate_edge_growth): Kill hack computing call stmt size directly.
3493         * lto-section-in.c (lto_section_name): Add inline section.
3494         * ipa-inline-analysis.c: Include lto-streamer.h
3495         (node_removal_hook_holder, node_duplication_hook_holder): New holders
3496         (inline_node_removal_hook, inline_node_duplication_hook): New functions.
3497         (inline_summary_vec): Define.
3498         (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
3499         dump_inline_summaries): New functions.
3500         (estimate_function_body_sizes): Properly compute size/time of outgoing
3501         calls.
3502         (compute_inline_parameters): Alloc inline_summary; do not compute
3503         size/time of incomming calls.
3504         (estimate_edge_time): Avoid missing time summary hack.
3505         (inline_read_summary): Read inline summary info.
3506         (inline_write_summary): Write inline summary info.
3507         (inline_free_summary): Free all hooks and inline summary vector.
3508         * lto-streamer.h: Add LTO_section_inline_summary section.
3509         * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
3510         * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
3511
3512 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
3513
3514         * tree-vectorizer.h (vect_strided_store_supported): Add a
3515         HOST_WIDE_INT argument.
3516         (vect_strided_load_supported): Likewise.
3517         (vect_permute_store_chain): Return void.
3518         (vect_transform_strided_load): Likewise.
3519         (vect_permute_load_chain): Delete.
3520         * tree-vect-data-refs.c (vect_strided_store_supported): Take a
3521         count argument.  Check that the count is a power of two.
3522         (vect_strided_load_supported): Likewise.
3523         (vect_permute_store_chain): Return void.  Update after above changes.
3524         Assert that the access is supported.
3525         (vect_permute_load_chain): Likewise.
3526         (vect_transform_strided_load): Return void.
3527         * tree-vect-stmts.c (vectorizable_store): Update calls after
3528         above interface changes.
3529         (vectorizable_load): Likewise.
3530         (vect_analyze_stmt): Don't check for strided powers of two here.
3531
3532 2011-04-14  Richard Guenther  <rguenther@suse.de>
3533
3534         PR tree-optimization/48590
3535         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
3536         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
3537         (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
3538         BUILT_IN_STACK_SAVE.
3539         * tree-ssa-dce.c (propagate_necessity): Handle
3540         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
3541
3542 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
3543
3544         * c-parser.c (c_parser_objc_class_declaration): Updated call to
3545         objc_declare_class.
3546
3547 2011-04-14  Richard Guenther  <rguenther@suse.de>
3548
3549         * tree.h (get_object_alignment_1): Declare.
3550         * builtins.c (get_object_alignment_1): Split out worker from ...
3551         (get_object_alignment): ... here.
3552         * fold-const.c (get_pointer_modulus_and_residue): Use
3553         get_object_alignment_1.
3554
3555 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
3556
3557         * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
3558         type parameter.
3559         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
3560         parameter.  Generalise code to handle arrays as well as vectors.
3561         (vect_setup_realignment): Update accordingly.
3562         * tree-vect-stmts.c (vectorizable_store): Likewise.
3563         (vectorizable_load): Likewise.
3564
3565 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
3566
3567         * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
3568         within the per-copy loop.
3569
3570 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
3571
3572         * tree-vect-stmts.c (vectorizable_load): Print the number of copies
3573         in the dump file.
3574
3575 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
3576
3577         * doc/options.texi (Negative): Explicitly mention that the
3578         Negative chain must be circular.
3579
3580 2011-04-14  Nathan Froyd  <froydnj@codesourcery.com>
3581
3582         * function.h (block_chainon): Declare.
3583         * function.c (block_chainon): Define.
3584
3585 2011-04-14  Anatoly Sokolov  <aesok@post.ru>
3586             Eric Weddington  <eric.weddington@atmel.com>
3587             Georg-Johann Lay <avr@gjlay.de>
3588
3589         * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
3590         New Includes
3591         (avr_init_builtins, avr_expand_builtin,
3592         avr_expand_delay_cycles, avr_expand_unop_builtin,
3593         avr_expand_binop_builtin ): New functions.
3594         (avr_builtin_id): New enum
3595         (struct avr_builtin_description): New struct
3596         (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
3597         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
3598
3599         * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
3600         UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
3601         UNSPECV_DELAY_CYCLES): new enumeration values
3602         (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
3603         ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
3604         ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
3605         ("*rotlqi3_4"): rename insn to "rotlqi3_4"
3606         ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
3607         "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
3608         "fmulsu"): New insns
3609
3610         * config/avr/avr-c.c: fix line endings
3611         (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
3612         __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
3613         __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
3614         __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
3615         __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
3616
3617         * doc/extend.texi (AVR Built-in Functions): New node
3618         (Target Builtins): Add documentation of AVR
3619         built-in functions.
3620
3621 2011-04-14  Georg-Johann Lay  <avr@gjlay.de>
3622
3623         PR target/44643
3624         * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
3625         alone. Error if non-const data has attribute progmem.
3626
3627 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
3628
3629         * tree.h (struct tree_constructor): Include tree_typed instead of
3630         tree_common.
3631         * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
3632         TS_TYPED instead of TS_COMMON.
3633
3634 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
3635
3636         * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
3637         (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
3638         (sse2_psadbw): Merge with *avx_psadbw.
3639         (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
3640         (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
3641         (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
3642         (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
3643         (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
3644         (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
3645         (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
3646         (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
3647         (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
3648         (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
3649         (ssse3_palignrti): Merge with *avx_palignrti.
3650
3651 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
3652
3653         * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
3654         * tree-ssanames.c (fini_ssanames): VEC_free it.
3655         (make_ssa_name_fn): Update for VECness of free_ssanames.
3656         (release_ssa_name, release_dead_ssa_names): Likewise.
3657         * tree.h (struct tree_ssa_name): Include tree_typed instead of
3658         tree_common.
3659         * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
3660         TS_TYPED instead of TS_COMMON.
3661
3662 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
3663
3664         * postreload-gcse.c (gcse_after_reload_main): Add calls to
3665         statistics_counter_event.
3666         * tree-ssa-copyrename.c (stats): Define.
3667         (rename_ssa_copies): Count coalesced SSA_NAMEs.  Add call to
3668         statistics_counter_event.
3669         * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
3670         (bswap_stats, widen_mul_stats): Define.
3671         (insert_reciprocals): Increment rdivs_inserted.
3672         (execute_cse_reciprocals): Zeroize reciprocal_stats.  Increment
3673         rfuncs_inserted.  Add calls to statistics_counter_event.
3674         (execute_cse_sincos_1): Increment inserted.
3675         (execute_cse_sincos): Zeroize sincos_stats.  Add call to
3676         statistics_counter_event.
3677         (execute_optimize_bswap): Zeroize bswap_stats.  Increment fields
3678         of bswap_stats.  Add calls to statistics_counter_event.
3679         (convert_mult_to_widen): Increment widen_mults_inserted.
3680         (convert_plusminus_to_widen): Increment maccs_inserted.
3681         (convert_mult_to_fma): Increment fmas_inserted.
3682         (execute_optimize_widening_mul): Zeroize widen_mul_stats.  Add
3683         calls to statistics_counter_event.
3684
3685 2011-04-13  Vladimir Makarov  <vmakarov@redhat.com>
3686
3687         PR rtl-optimization/48455
3688         * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
3689         `temp_costs->mem_cost'.
3690
3691 2011-04-13  Jan Hubicka  <jh@suse.cz>
3692
3693         * ipa-inline.h: New file.
3694         * ipa-inline-analysis.c: New file. Broken out of ...
3695         * ipa-inline.c: ... this file; update toplevel comment;
3696         include ipa-inline.h
3697         (inline_summary): Move to ipa-inline.h
3698         (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
3699         ipa-inline-analysis.c.
3700         (cgraph_estimate_time_after_inlining): Rename to
3701         estiamte_time_after_inlining; move to ipa-inline-analysis.c
3702         (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
3703         to estimate_edge_growth.
3704         (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
3705         rename to estimate_size_after_inlining.
3706         (cgraph_mark_inline_edge): Update for new naming convention.
3707         (cgraph_check_inline_limits): Likewise.
3708         (cgraph_edge_badness): Likewise.
3709         (cgraph_decide_recursive_inlining): Likewise.
3710         (cgraph_decide_inlining_of_small_functions): Likewise.
3711         (cgraph_decide_inlining_incrementally): Likewise.
3712         (cgraph_estimate_growth): Rename to estimate_growth; move to
3713         ipa-inline-analysis.c.
3714         (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
3715         (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
3716         (compute_inline_parameters): Likewise.
3717         (compute_inline_parameters_for_current): Likewise.
3718         (pass_inline_parameters): Likewise.
3719         (inline_indirect_intraprocedural_analysis): Likewise.
3720         (analyze_function): Rename to inline_analyze_function; likewise.
3721         (add_new_function): Move to ipa-inline-analysis.c.
3722         (inline_generate_summary): Likewise.
3723         (inline_read_summary): Likewise.
3724         (inline_write_summary): Likewise.
3725         * Makefile.in (ipa-inline-analysis.c): New file.
3726
3727 2011-04-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3728
3729         * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
3730         * configure: Regenerate.
3731
3732 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
3733
3734         * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
3735         instead of tree_common.
3736         (struct tree_fixed_cst, struct tree_string, struct tree_complex):
3737         Likewise.
3738         * tree.c (initialize_tree_contains_struct): Mark such nodes as being
3739         TS_TYPED rather than TS_COMMON.
3740         * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
3741
3742 2011-04-01  Georg-Johann Lay  <avr@gjlay.de>
3743
3744         PR target/45263
3745         * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
3746         r20 around calls of __tablejump_elpm__
3747
3748 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
3749
3750         PR middle-end/48591
3751         * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
3752         NULL.
3753         (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
3754
3755 2011-04-13  Bernd Schmidt  <bernds@codesourcery.com>
3756
3757         * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
3758         (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
3759         (cfi_vec): New typedef.
3760         (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
3761         dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
3762         (cie_cfi_vec): New static variable.
3763         (cie_cfi_head): Delete.
3764         (add_cfi): Accept a cfi_vec * as first argument. All callers and
3765         declaration changed. Use vector rather than list operations.
3766         (new_cfi): Don't initialize the dw_cfi_next field.
3767         (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
3768         rather than list operations.
3769         (lookup_cfa): Use vector rather than list operations.
3770         (output_cfis): New argument upto. Accept a cfi_vec rather than
3771         a dw_cfi_ref list head as argument. All callers changed.
3772         Iterate over the vector using upto as a maximum index.
3773         (output_all_cfis): New static function.
3774         (output_fde): Use vector rather than list operations. Use the
3775         new upto argument for output_cfis rather than manipulating a
3776         list.
3777         (dwarf2out_begin_prologue): Change initializations to match
3778         new struct members.
3779         (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
3780         from the vector length rather than searching for the end of a list.
3781         Use output_all_cfis.
3782         (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
3783
3784 2011-04-13  Nick Clifton  <nickc@redhat.com>
3785
3786         * config/rx/rx.md (movmemsi): Do not use this pattern when
3787         volatile pointers are involved.
3788
3789 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
3790
3791         * config/i386/sse.md (pinsrbits): Remove.
3792         (sse2_packsswb): Merge with *avx_packsswb.
3793         (sse2_packssdw): Merge with *avx_packssdw.
3794         (sse2_packuswb): Merge with *avx_packuswb.
3795         (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
3796         (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
3797         (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
3798         (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
3799         (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
3800         (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
3801         (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
3802         (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
3803         (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
3804         (*sse4_1_pinsrq): Merge with *avx_pinsrq.
3805         (sse2_loadld): Merge with *avx_loadld.
3806         (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
3807         (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
3808         (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
3809         (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
3810         (vec_concatv2di): Merge with *vec_concatv2di_avx.
3811
3812 2011-04-12  Nathan Froyd  <froydnj@codesourcery.com>
3813
3814         * c-decl.c (union lang_tree_node): Check for TS_COMMON before
3815         calling TREE_CHAIN.
3816         * print-tree.c (print_node): Likewise.
3817         * tree-inline.c (copy_tree_r): Likewise.
3818         * c-lang.c (LANG_HOOKS_INIT_TS): Define.
3819         * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
3820         instead of TS_COMMON.
3821         * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
3822         * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
3823         (copy_node_stat): Zero TREE_CHAIN only if necessary.
3824         (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
3825         (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
3826         ...and these...
3827         (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
3828         * tree.h: ...here.
3829         (TREE_CHAIN): Check for a TS_COMMON structure.
3830         (TREE_TYPE): Check for a TS_TYPED structure.
3831
3832 2011-04-12  Pat Haugen <pthaugen@us.ibm.com>
3833
3834         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
3835         cgraph_get_create_node instead of cgraph_node.
3836
3837 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
3838
3839         * c-parser.c (c_parser_initelt): Updated call to
3840         objc_build_message_expr.
3841         (c_parser_postfix_expression): Likewise.
3842
3843 2011-04-12  Kai Tietz  <ktietz@redhat.com>
3844
3845         * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
3846         MASK_MS_BITFIELD_LAYOUT bit.
3847
3848 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
3849
3850         * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
3851         assert it is always true.
3852         (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
3853         moves.
3854
3855 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
3856
3857         * c-parser.c (c_lex_one_token): Rewritten conditional used when
3858         compiling Objective-C to be more efficient.
3859
3860 2011-04-12  Axel Freyn  <axel-freyn@gmx.de>
3861
3862         * opts-common.c (decode_cmdline_options_to_array): Remove variable
3863         argv_copied.
3864
3865 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
3866
3867         * recog.h, genoutput.c, optabs.c: Revert last patch.
3868
3869 2011-04-12  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
3870
3871         PR target/48090
3872         * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
3873
3874 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
3875
3876         * recog.h (insn_operand_data): Add an "allows_mem" field.
3877         * genoutput.c (output_operand_data): Initialize it.
3878         * optabs.c (maybe_legitimize_operand_same_code): New function.
3879         (maybe_legitimize_operand): Use it when matching the original
3880         op->value.
3881
3882 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
3883
3884         * genpreds.c (process_define_predicate): Move most processing
3885         to gensupport.c.  Continue to validate the expression.
3886         * genrecog.c (did_you_mean_codes, compute_predicate_codes)
3887         (process_define_predicate): Move processing to gensupport.c.
3888         (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
3889         * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
3890         (compute_predicate_codes): Moved from genrecog.c.  Add lineno
3891         argument.
3892         (valid_predicate_name_p): New function, split out from old
3893         genpreds.c:process_define_predicate.
3894         (process_define_predicate): New function, combining code from
3895         old genpreds.c and genrecog.c functions.
3896         (process_rtx): Call it for DEFINE_PREDICATE and
3897         DEFINE_SPECIAL_PREDICATE.
3898
3899 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
3900
3901         * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
3902         size of a '%A' memory reference.
3903         (T_DREG, T_QREG): New neon_builtin_type_bits.
3904         (arm_init_neon_builtins): Assert that the load and store operands
3905         are neon_struct_operands.
3906         (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
3907         (NEON_ARG_MEMORY): New builtin_arg.
3908         (neon_dereference_pointer): New function.
3909         (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
3910         Handle NEON_ARG_MEMORY.
3911         (arm_expand_neon_builtin): Update after above interface changes.
3912         Use NEON_ARG_MEMORY for loads and stores.
3913         * config/arm/predicates.md (neon_struct_operand): New predicate.
3914         * config/arm/iterators.md (V_two_elem): Tweak formatting.
3915         (V_three_elem): Use BLKmode for accesses that have no associated mode.
3916         (V_four_elem): Tweak formatting.
3917         * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
3918         (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
3919         (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
3920         (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
3921         (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
3922         (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
3923         (neon_vst4<mode>): Replace pointer operand with a memory operand.
3924         Use %A in the output template.
3925         (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
3926         (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
3927         (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
3928         the width of the memory access.  Remove post-increment.
3929         * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
3930
3931 2011-04-12  Nick Clifton  <nickc@redhat.com>
3932
3933         * config/v850/v850.c (expand_prologue): Do not use the CALLT
3934         instruction for interrupt handlers if the target is the basic V850
3935         architecture.
3936         (expand_epilogue): Likewise.
3937
3938 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
3939
3940         PR rtl-optimization/48549
3941         * combine.c (propagate_for_debug): Also stop after BB_END of
3942         this_basic_block.  Process LAST and just stop processing after it.
3943         (combine_instructions): If last_combined_insn has been deleted,
3944         set last_combined_insn to its PREV_INSN.
3945
3946 2011-04-12  Richard Guenther  <rguenther@suse.de>
3947
3948         PR tree-optimization/46076
3949         * gimple.h (struct gimple_statement_call): Add fntype field.
3950         (gimple_call_fntype): Adjust.
3951         (gimple_call_set_fntype): New function.
3952         * gimple.c (gimple_build_call_1): Set the call function type.
3953         * gimplify.c (gimplify_call_expr): Preserve the function
3954         type the frontend used for the call.
3955         (gimplify_modify_expr): Likewise.
3956         * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
3957         function type.
3958         * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
3959         function type.
3960         * tree-ssa.c (useless_type_conversion_p): Function pointer
3961         conversions are useless.
3962
3963 2011-04-12  Martin Jambor  <mjambor@suse.cz>
3964
3965         * cgraph.h (cgraph_node): Remove function declaration.
3966         (cgraph_create_node): Declare.
3967         (cgraph_get_create_node): Likewise.
3968         * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
3969         Updated all callers.
3970         (cgraph_node): Renamed to cgraph_create_node, assert that a node for
3971         the decl does not already exist.  Call cgraph_get_create_node instead
3972         of cgraph_node.
3973         (cgraph_get_create_node): New function.
3974         (cgraph_same_body_alias): Update comment.
3975         (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
3976         assert it does not return NULL.
3977         (cgraph_update_edges_for_call_stmt): Likewise.
3978         (cgraph_clone_edge): Likewise.
3979         (cgraph_create_virtual_clone): Likewise.
3980         (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
3981         instead of cgraph_node.
3982         (cgraph_add_new_function): Call cgraph_create_node or
3983         cgraph_get_create_node instead of cgraph_node.
3984         * cgraphbuild.c (record_reference): Call cgraph_get_create_node
3985         instead of cgraph_node.
3986         (record_eh_tables): Likewise.
3987         (mark_address): Likewise.
3988         (mark_load): Likewise.
3989         (build_cgraph_edges): Call cgraph_get_create_node instead
3990         of cgraph_node.
3991         (rebuild_cgraph_edges): Likewise.
3992         * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
3993         instead of cgraph_node.
3994         (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
3995         cgraph_node.
3996         * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
3997         cgraph_create_node instead of cgraph_node.
3998         * c-decl.c (finish_function): Call cgraph_get_create_node instead
3999         of cgraph_node.
4000         * lto-cgraph.c (input_node): Likewise.
4001         * lto-streamer-in.c (input_function): Likewise.
4002         * varasm.c (mark_decl_referenced): Likewise.
4003         (assemble_alias): Likewise.
4004
4005 2011-04-12  Martin Jambor  <mjambor@suse.cz>
4006
4007         * tree-inline.c (tree_function_versioning): Call cgraph_get_node
4008         instead of cgraph_node and assert it does not return NULL.
4009         * lto-streamer-in.c (lto_read_body): Likewise.
4010         * omp-low.c (new_omp_context): Likewise.
4011         (create_task_copyfn): Likewise.
4012         * tree-emutls.c (lower_emutls_function_body): Likewise.
4013         * matrix-reorg.c (transform_allocation_sites): Likewise.
4014
4015 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
4016
4017         PR c/48552
4018         * c-typeck.c (build_asm_expr): Error out on attempts to use
4019         void type outputs or inputs for constraints that allow reg or
4020         don't allow memory.
4021
4022 2011-04-11  Chung-Lin Tang  <cltang@codesourcery.com>
4023             Richard Earnshaw  <rearnsha@arm.com>
4024
4025         PR target/48250
4026         * config/arm/arm.c (arm_legitimize_reload_address): Update cases
4027         to use sign-magnitude offsets. Reject unsupported unaligned
4028         cases. Add detailed description in comments.
4029         * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
4030         condition from TARGET_32BIT to TARGET_ARM.
4031
4032 2011-04-11  Nathan Froyd  <froydnj@codesourcery.com>
4033
4034         * tree.h (struct typed_tree): New.
4035         (struct tree_common): Include it instead of tree_base.
4036         (TREE_TYPE): Update for new location of type field.
4037         (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
4038         (DECL_USER_ALIGN, DECL_PACKED): Likewise.
4039         (union tree_node): Add typed field.
4040         * treestruct.def (TS_TYPED): New.
4041         * lto-streamer.c (check_handled_ts_structures): Handle it.
4042         * tree.c (MARK_TS_TYPED): New macro.
4043         (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
4044
4045 2011-04-11  Eric Botcazou  <ebotcazou@adacore.com>
4046
4047         * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
4048         (force_nonfallthru): Do not alter the loop nest if no basic block
4049         was created.
4050
4051 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
4052
4053         * config/i386/sse.md (VI): New mode iterator.
4054         (SSEMODEI): Remove.
4055         (AVX256MODEI): Ditto.
4056         (AVXMODEF4P): Ditto.
4057         (avxvecpsmode): Ditto.
4058         (one_cmpl<mode>2): Enable for TARGET_SSE.  Use VI mode iterator.
4059         (sse2_andnot<mode>3): New expander.
4060         (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
4061         *avx_andnot<mode>3.  Enable for TARGET_SSE.  Use VI mode iterator.
4062         (<any_logic:code><mode>3): Use VI mode iterator.
4063         (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
4064         and *avx_<any_logic:code><mode>3.  Use VI mode iterator.
4065         (*andnottf3): Handle AVX three-operand constraints.
4066         (*<any_logic:code>tf3): Handle AVX three-operand constraints.
4067
4068 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
4069             Robert Millan  <rmh@gnu.org>
4070
4071         * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
4072         * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
4073         GNU_USER_DYNAMIC_LINKER64): Define.
4074         (REG_NAME): Don't undefine.
4075         (MD_UNWIND_SUPPORT): Undefine.
4076         * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
4077         (REG_NAME): Don't undefine.
4078         (MD_UNWIND_SUPPORT): Undefine.
4079         * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
4080
4081 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
4082
4083         * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
4084         (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
4085
4086 2011-04-11  Xinliang David Li  <davidxl@google.com>
4087
4088         * value-profile.c (check_ic_target): New function.
4089         (gimple_ic_transform): Sanity check indirect call target.
4090         * gimple-low.c (gimple_check_call_args): Interface change.
4091         (gimple_check_call_matching_types): New function.
4092         * tree-inline.c (tree_can_inline_p): Call new function.
4093
4094 2011-04-11  Basile Starynkevitch  <basile@starynkevitch.net>
4095
4096         * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
4097         tree-pretty-print.h & realmpfr.h.
4098
4099 2011-04-11  Vladimir Makarov  <vmakarov@redhat.com>
4100
4101         PR middle-end/48464
4102         * ira.c (setup_pressure_classes): Fix typo in loop condition.
4103         (setup_allocno_and_important_classes): Ditto.
4104
4105 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
4106
4107         * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
4108         GNU_USER_DYNAMIC_LINKER.
4109         * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
4110         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4111         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
4112         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
4113         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
4114         GNU_USER_TARGET_OS_CPP_BUILTINS.
4115         * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
4116         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4117         * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
4118         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4119         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
4120         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
4121         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
4122         GNU_USER_TARGET_OS_CPP_BUILTINS.
4123         * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4124         GNU_USER_DYNAMIC_LINKER.
4125         * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
4126         GNU_USER_TARGET_OS_CPP_BUILTINS.
4127         * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
4128         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4129         * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
4130         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4131         * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
4132         * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
4133         GNU_USER_DYNAMIC_LINKER64): Remove.
4134         * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
4135         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4136         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4137         GNU_USER_DYNAMIC_LINKER.
4138         * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
4139         GNU_USER_TARGET_OS_CPP_BUILTINS.
4140         * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
4141         GNU_USER_TARGET_OS_CPP_BUILTINS.
4142         * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
4143         to GNU_USER_TARGET_OS_CPP_BUILTINS.
4144         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
4145         GNU_USER_TARGET_OS_CPP_BUILTINS.
4146         (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
4147         (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
4148         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
4149         * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
4150         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4151         * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4152         GNU_USER_DYNAMIC_LINKER.
4153         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
4154         GNU_USER_TARGET_OS_CPP_BUILTINS.
4155         * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
4156         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4157         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4158         GNU_USER_DYNAMIC_LINKER.
4159         * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
4160         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4161         * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
4162         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4163         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4164         GNU_USER_DYNAMIC_LINKER.
4165         * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
4166         GNU_USER_DYNAMIC_LINKERN32.
4167         (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
4168         GNU_USER_DYNAMIC_LINKERN32.  Change LINUX_DYNAMIC_LINKER64 to
4169         GNU_USER_DYNAMIC_LINKER64.  Change LINUX_DYNAMIC_LINKER32 to
4170         GNU_USER_DYNAMIC_LINKER32.
4171         * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
4172         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4173         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4174         GNU_USER_DYNAMIC_LINKER.
4175         * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
4176         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4177         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
4178         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4179         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
4180         * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
4181         GNU_USER_DYNAMIC_LINKER32.
4182         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
4183         * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
4184         GNU_USER_DYNAMIC_LINKER.
4185         * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
4186         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4187         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
4188         GNU_USER_DYNAMIC_LINKER32.  Change LINUX_DYNAMIC_LINKER64 to
4189         GNU_USER_DYNAMIC_LINKER64.
4190         * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
4191         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4192         (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4193         GNU_USER_DYNAMIC_LINKER.
4194         * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
4195         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4196         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4197         GNU_USER_DYNAMIC_LINKER.
4198         * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
4199         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4200         (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
4201         GNU_USER_DYNAMIC_LINKER32.
4202         (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
4203         GNU_USER_DYNAMIC_LINKER64.
4204         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
4205         GNU_USER_DYNAMIC_LINKER64.
4206         * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
4207         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4208         * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
4209         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4210         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
4211
4212 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
4213
4214         * config/i386/gnu-user.h: Copy from linux.h.  Update comments.
4215         (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
4216         (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
4217         GNU_USER_DYNAMIC_LINKER.
4218         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
4219         * config/i386/gnu-user64.h: Copy from linux64.h.  Update comments.
4220         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
4221         (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
4222         GNU_USER_DYNAMIC_LINKER64.
4223         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
4224         * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
4225         GNU_USER_LINK_EMULATION.
4226         * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
4227         DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
4228         ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
4229         MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
4230         PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
4231         CPP_SPEC, CC1_SPEC): Remove.
4232         (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
4233         (GNU_USER_DYNAMIC_LINKER): Define.
4234         (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
4235         ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
4236         ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
4237         LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
4238         TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
4239         STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
4240         TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
4241         * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
4242         CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
4243         TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
4244         LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
4245         LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
4246         (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
4247         (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
4248         TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
4249         TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
4250         * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
4251         GNU_USER_DYNAMIC_LINKER.
4252         * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
4253         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
4254         * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
4255         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
4256         * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
4257         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
4258         * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
4259         i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
4260         i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
4261         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
4262
4263 2011-04-11  Kai Tietz  <ktietz@redhat.com>
4264
4265         PR target/9601
4266         PR target/11772
4267         * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
4268         * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
4269         comment.
4270         (ix86_is_msabi_thiscall): Removed.
4271         (ix86_is_type_thiscall): Likewise.
4272         (ix86_get_callcvt): New function.
4273         (ix86_comp_type_attributes): Simplify check.
4274         (ix86_function_regparm): Use ix86_get_callcvt for calling
4275         convention attribute checks.
4276         (ix86_return_pops_args): Likewise.
4277         (ix86_static_chain): Likewise.
4278         (x86_this_parameter): Likewise.
4279         (x86_output_mi_thunk): Likewise.
4280         (ix86_function_type_abi): Optimize check for types without attributes.
4281         * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
4282         IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
4283         IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
4284         by flag-values.
4285         (IX86_BASE_CALLCVT): Helper macro.
4286         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
4287         Use ix86_get_callcvt for calling convention attribute checks and avoid
4288         symbol-decoration for stdcall in TARGET_RTD case.
4289         * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
4290         Likewise.
4291         (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
4292         for declaration.
4293
4294 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
4295
4296         * config/i386/sse.md (VI_128): New mode iterator.
4297         (VI12_128): Rename from SSEMODE12.
4298         (VI14_128): Rename from SSEMODE14.
4299         (VI124_128): New mode iterator.
4300         (VI24_128): Rename from SSEMODE248.
4301         (VI248_128): Rename from SSEMODE248.
4302         (SSEMODE124C8): Remove.
4303         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
4304         (*sse2_<plusminus_insn><mode>3): Merge with
4305         *avx_<plusminus_insn><mode>3.
4306         (*mulv8hi3): Merge with *avx_mulv8hi3.
4307         (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
4308         (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
4309         (*sse2_pmaddwd): Merge with *avx_pmaddwd.
4310         (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
4311         (ashr<mode>3): Merge with *avx_ashr<mode>3.
4312         (lshr<mode>3): Merge with *avx_lshr<mode>3.
4313         (ashl<mode>3): Merge with *avx_ashl<mode>3.
4314         (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
4315         (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
4316         (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
4317         (*<smaxmin:code>v8hi3): Ditto.
4318         (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
4319         (*<smaxmin:code>v16qi3): Ditto.
4320         (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
4321         (*sse2_eq<mode>3): Ditto.
4322         (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
4323         (*sse2_gt<mode>3): Ditto.
4324         (vcondv2di): Split out of vcond<mode>.
4325         (vconduv2di): Split out of vcondu<mode>.
4326
4327 2011-04-11  Richard Guenther  <rguenther@suse.de>
4328
4329         * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
4330         before calling tree_low_cst.
4331
4332 2011-04-11  Richard Guenther  <rguenther@suse.de>
4333
4334         * stor-layout.c (layout_type): Compute all array index size operations
4335         in the original type.
4336         (initialize_sizetypes): Add comment.
4337         (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
4338
4339 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
4340
4341         * common.opt (Tbss=, Tdata=, Ttext=): New options.
4342
4343 2011-04-11  Martin Jambor  <mjambor@suse.cz>
4344
4345         * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
4346         of cgraph_node, handle NULL return value.
4347         (cgraph_global_info): Likewise.
4348         (cgraph_rtl_info): Likewise.
4349         * tree-inline.c (estimate_num_insns): Likewise.
4350         * gimplify.c (unshare_body): Likewise.
4351         (unvisit_body): Likewise.
4352         (gimplify_body): Likewise.
4353         * predict.c (optimize_function_for_size_p): Likewise.
4354         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
4355         (call_may_clobber_ref_p_1): Likewise.
4356         * varasm.c (function_section_1): Likewise.
4357         (assemble_start_function): Likewise.
4358
4359 2011-04-11  Martin Jambor  <mjambor@suse.cz>
4360
4361         * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
4362         of cgraph_node.
4363         * final.c (rest_of_clean_state): Likewise.
4364         * gimple-iterator.c (update_call_edge_frequencies): Likewise.
4365         * passes.c (pass_init_dump_file): Likewise.
4366         (execute_all_ipa_transforms): Likewise.
4367         (function_called_by_processed_nodes_p): Likewise.
4368         * predict.c (maybe_hot_frequency_p): Likewise.
4369         (probably_never_executed_bb_p): Likewise.
4370         (compute_function_frequency): Likewise.
4371         * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
4372         (unnest_nesting_tree_1): Likewise.
4373         (lower_nested_functions): Likewise.
4374         * tree-optimize.c (execute_fixup_cfg): Likewise.
4375         (tree_rest_of_compilation): Likewise.
4376         * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
4377         * tree-sra.c (ipa_early_sra): Likewise.
4378         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
4379         * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
4380         * ipa.c (record_cdtor_fn): Likewise.
4381         * ipa-inline.c (cgraph_early_inlining): Likewise.
4382         (compute_inline_parameters_for_current): Likewise.
4383         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
4384         * ipa-pure-const.c (local_pure_const): Likewise.
4385         * ipa-split.c (split_function): Likewise.
4386         (execute_split_functions): Likewise.
4387         * cgraphbuild.c (build_cgraph_edges): Likewise.
4388         (rebuild_cgraph_edges): Likewise.
4389         (cgraph_rebuild_references): Likewise.
4390         (remove_cgraph_callee_edges): Likewise.
4391         * cgraphunit.c (cgraph_mark_if_needed): Likewise.
4392         (verify_cgraph_node): Likewise.
4393         (cgraph_analyze_functions): Likewise.
4394         (cgraph_preserve_function_body_p): Likewise.
4395         (save_inline_function_body): Likewise.
4396         (save_inline_function_body): Likewise.
4397         * tree-inline.c (copy_bb): Likewise.
4398         (optimize_inline_calls): Likewise.
4399
4400 2011-04-11  Martin Jambor  <mjambor@suse.cz>
4401
4402         PR tree-optimization/48195
4403         * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
4404         ipa_check_create_edge_args.
4405         (ipcp_generate_summary): Do not call ipa_check_create_node_params and
4406         ipa_check_create_edge_args.
4407         * ipa-inline.c (inline_generate_summary): Do not call
4408         ipa_check_create_node_params and ipa_check_create_edge_args.
4409         * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
4410         ipa_check_create_edge_args.
4411
4412 2011-04-09  Anatoly Sokolov  <aesok@post.ru>
4413
4414         * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
4415         instead of loop.
4416         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
4417         * function.c (record_hard_reg_sets): Likewise.
4418         * ira.c (compute_regs_asm_clobbered): Likewise.
4419         * sched-deps.c (sched_analyze_1): Likewise.
4420         * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
4421
4422 2011-04-09  Xinliang David Li  <davidxl@google.com>
4423
4424         PR tree-optimization/PR48484
4425         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
4426         has_valid_pred lazily
4427
4428 2011-04-09  Duncan Sands  <baldrick@free.fr>
4429
4430         * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
4431
4432 2011-04-08  Eric Botcazou  <ebotcazou@adacore.com>
4433
4434         * combine.c (combine_validate_cost): Adjust comments.  Set registered
4435         cost of I0 to zero at the end, if any.
4436
4437 2011-04-08  Xinliang David Li  <davidxl@google.com>
4438
4439         * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
4440         to insane profile data.
4441
4442 2011-04-08  Xinliang David Li  <davidxl@google.com>
4443
4444         * ipa-cp.c (ipcp_update_profiling): Correct
4445          negative scale factor due to insane profile data.
4446
4447 2011-04-08  Xinliang David Li  <davidxl@google.com>
4448
4449         * final.c (dump_basic_block_info): New function.
4450         (final): Dump basic block.
4451         (final_scan_insn): Remove old dump.
4452
4453 2011-04-08  Steven G. Kargl  <kargl@gcc.gnu.org>
4454
4455         PR target/47829
4456         * config.gcc (i386-*-freebsd): Disable unwind table generation for
4457         crtbegin/crtend.
4458
4459 2011-04-08  Michael Matz  <matz@suse.de>
4460
4461         PR middle-end/48389
4462         * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
4463         functions.
4464         (rebuild_jump_labels): Call rebuild_jump_labels_1.
4465         * rtl.h (rebuild_jump_labels_chain): Declare.
4466         * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
4467         insns inserted on edges.
4468
4469 2011-04-08  Joseph Myers  <joseph@codesourcery.com>
4470
4471         * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
4472         * config/arm/arm-arches.def: New.
4473         * config/arm/arm-opts.h: New.
4474         * config/arm/genopt.sh: New.
4475         * config/arm/arm-tables.opt: New (generated).
4476         * config/arm/arm.c (arm_handle_option, arm_target_help,
4477         TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
4478         (all_architectures): Get most table contents from arm-arches.def.
4479         (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
4480         arm_selected_tune here.
4481         * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
4482         * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
4483         (march=, mcpu=, mtune=): Use Enum and Var.
4484         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
4485         (arm.o): Update dependencies.
4486
4487 2011-04-08  Basile Starynkevitch  <basile@starynkevitch.net>
4488
4489         * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
4490         of header_file.
4491         (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
4492         (write_typed_alloc_defns): Likewise.
4493         (main): Calls write_typed_alloc_defns with output_header.
4494
4495 2011-04-08  Vladimir Makarov  <vmakarov@redhat.com>
4496
4497         PR inline-asm/48435
4498         * ira-color.c (setup_profitable_hard_regs): Add comments.
4499         Don't take prohibited hard regs into account.
4500         (setup_conflict_profitable_regs): Rename to
4501         get_conflict_profitable_regs.
4502         (check_hard_reg_p): Check prohibited hard regs.
4503
4504 2011-04-08  Nathan Froyd  <froydnj@codesourcery.com>
4505
4506         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
4507         * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
4508         * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
4509
4510 2011-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4511
4512         PR target/48366
4513         * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
4514         move from floating point to shift amount register.
4515         (emit_move_sequence): Remove secondary reload support for floating
4516         point to shift amount amount register copies.
4517         (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
4518         amount register copies.
4519         * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
4520         register, return false if mode isn't a scalar integer mode.
4521         * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
4522
4523 2011-04-08  Richard Guenther  <rguenther@suse.de>
4524
4525         * gimple.c (gimple_call_flags): Remove kludge.
4526
4527 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
4528
4529         * sel-sched.c (sel_region_init): Move call to
4530         sel_setup_region_sched_flags after setup_current_loop_nest.
4531
4532 2011-04-08  Andrey Belevantsev  <abel@ispras.ru>
4533
4534         PR rtl-optimization/48272
4535         * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
4536         init_insn_reg_pressure_info.  Adjust a caller.
4537         * sched-int.h (init_insn_reg_pressure_info): Declare.
4538         * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
4539         when sched-pressure is enabled.
4540
4541 2011-04-08  Richard Guenther  <rguenther@suse.de>
4542
4543         * gimple.c (gimple_set_modified): Do not queue calls to
4544         MODIFIED_NORETURN_CALLS here ...
4545         * tree-ssa-operands.c (update_stmt_operands): ... but here.
4546
4547 2011-04-08  Richard Guenther  <rguenther@suse.de>
4548
4549         PR lto/48467
4550         * toplev.c (lang_dependent_init): Do not open asm_out_file
4551         in WPA mode, nor perform debug machinery initialization.
4552         (finalize): Do not unlink asm_out_file in WPA mode.
4553
4554 2011-04-08  Richard Guenther  <rguenther@suse.de>
4555
4556         * gimple.h (gimple_call_fntype): New function.
4557         (gimple_call_return_type): Use it.
4558         * expr.c (expand_expr_real_1): Use gimple_call_fntype.
4559         * gimple-low.c (gimple_check_call_args): Likewise.
4560         * gimple.c (gimple_call_flags): Likewise.
4561         (gimple_call_arg_flags): Likewise.
4562         (gimple_call_return_flags): Likewise.
4563         * tree-cfg.c (verify_gimple_call): Likewise.
4564         (do_warn_unused_result): Likewise.
4565         * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
4566         * value-prof.c (gimple_ic_transform): Fix fndecl check.
4567
4568 2011-04-08  Dmitry Melnik  <dm@ispras.ru>
4569
4570         PR rtl-optimization/48235
4571         * sel-sched.c (code_motion_process_successors): Recompute the last
4572         insn in basic block if control flow changed.
4573         (code_motion_path_driver): Ditto.  Recompute the first insn as well.
4574         Update condition for ilist_remove.
4575
4576 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
4577
4578         PR rtl-optimization/48302
4579         * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
4580         * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument.  Use
4581         it to record added preheader blocks.
4582         * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument.  Pass it
4583         on to sel_add_loop_preheaders.
4584         (sel_region_init): Move call to setup_current_loop_nest after
4585         sel_init_bbs.
4586
4587 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
4588
4589         PR target/48273
4590         * cfgloop.h (loop_has_exit_edges): New helper.
4591         * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
4592         non-clonable.
4593         * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
4594         that have no exit edges.
4595
4596 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
4597
4598         PR rtl-optimization/48442
4599         * sel-sched.c (init_seqno): Remove number_of_insns argument.  Update
4600         all callers.  Adjust assert.
4601
4602 2011-04-08  Jakub Jelinek  <jakub@redhat.com>
4603
4604         PR tree-optimization/48377
4605         * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
4606         is_packed to true even for types with smaller TYPE_ALIGN than
4607         TYPE_SIZE.
4608
4609 2011-04-08  Richard Guenther  <rguenther@suse.de>
4610
4611         PR bootstrap/48513
4612         * doc/tm.texi: Re-generate.
4613
4614 2011-04-08  Wei Guozhi  <carrot@google.com>
4615
4616         PR target/47855
4617         * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
4618         * config/arm/arm.c (arm_attr_length_push_multi): New function.
4619         * config/arm/arm.md (*push_multi): Change the length computation to
4620         call a C function.
4621
4622 2011-04-08  Anatoly Sokolov  <aesok@post.ru>
4623
4624         * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
4625         (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
4626         * doc/tm.texi: Regenerate.
4627         * system.h (ASM_OUTPUT_BSS): Poison.
4628         * varasm.c (asm_output_bss): Remove function.
4629         (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
4630
4631         * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
4632         * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
4633         * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
4634         * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
4635         Likewise.
4636         * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
4637         Likewise.
4638         * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
4639         Likewise.
4640         * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
4641
4642 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
4643
4644         * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
4645         EnumValue lines.
4646
4647 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
4648
4649         * config/m68k/m68k.c (m68k_handle_option): Don't handle
4650         OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
4651         OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
4652         OPT_mcpu32.
4653         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
4654         handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
4655         -m68030, -m68040, -m68060, -mcpu32 and -m68332.
4656         * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
4657         m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
4658         * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
4659         (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
4660         (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
4661         options.  Don't map other m68k options manually.  Don't handle
4662         old-style options as canonical.
4663         (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
4664         * doc/install.texi (m68k-*-*): Document binutils version requirement.
4665
4666 2011-04-07  Eric Botcazou  <ebotcazou@adacore.com>
4667
4668         * basic-block.h (force_nonfallthru): Move to...
4669         * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
4670         (force_nonfallthru): ...here.
4671         * cfghooks.c (force_nonfallthru): New function.
4672         * cfgrtl.c (force_nonfallthru): Rename into...
4673         (rtl_force_nonfallthru): ...this.
4674         (commit_one_edge_insertion): Do not set AUX field.
4675         (commit_edge_insertions): Do not discover new basic blocks.
4676         (rtl_cfg_hooks): Add rtl_force_nonfallthru.
4677         (cfg_layout_rtl_cfg_hooks): Likewise.
4678         * function.c (thread_prologue_and_epilogue_insns): Remove bogus
4679         ATTRIBUTE_UNUSED.  Discover new basic blocks in the prologue insns.
4680         * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
4681
4682 2011-04-07  Anatoly Sokolov  <aesok@post.ru>
4683
4684         * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
4685         Remove macros.
4686
4687 2011-04-07  Uros Bizjak  <ubizjak@gmail.com>
4688
4689         * config/i386/sse.md: Update copyright year.
4690         (avxcvtvecmode): Remove.
4691         (sse_movhlps): Merge with *avx_movhlps.
4692         (sse_movlhps): Merge with *avx_movlhps.
4693         (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
4694         (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
4695         (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
4696         (sse_loadhps): Merge with *avx_loadhps.
4697         (sse_storelps): Merge with *avx_storelps.
4698         (sse_loadlps): Merge with *avx_loadlps.
4699         (sse_movss): Merge with *avx_movss.
4700         (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
4701         (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
4702         (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
4703         (*vec_set<mode>_0_sse2): Split multi-unit alternative.
4704         (vec_set<mode>_0): Ditto.
4705         (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
4706         (sse4_1_insertps): Merge with *avx_insertps.
4707         (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
4708         (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
4709         (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
4710         (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
4711         (sse2_storehpd): Merge with *avx_storehpd.
4712         (sse2_loadhpd): Merge with *avx_loadhpd.
4713         (sse2_loadlpd): Merge with *avx_loadlpd.
4714         (sse2_movsd): Merge with *avx_movsd.
4715         (*vec_concatv2df): Merge with *vec_concatv2df.
4716
4717 2011-04-07  Jakub Jelinek  <jakub@redhat.com>
4718
4719         PR debug/48343
4720         * combine.c (combine_instructions): Add last_combined_insn,
4721         update it if insn is after it, pass it to all try_combine calls.
4722         (try_combine): Add last_combined_insn parameter, pass it instead of
4723         i3 to propagate_for_debug.
4724
4725 2011-04-07  Nick Clifton  <nickc@redhat.com>
4726
4727         * config/mn10300/mn10300.md (movqi_internal): Add alternatives
4728         to handle MDR <-> data register transfers.
4729         (movhi_internal): Likewise.
4730
4731 2011-04-07  Alan Modra  <amodra@gmail.com>
4732
4733         * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
4734         previous stack info.
4735
4736 2011-04-07  Tom de Vries  <tom@codesourcery.com>
4737
4738         PR target/43920
4739         * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter.  Pass dir to
4740         flow_find_cross_jump.  Swap variables to implement backward replacement.
4741         (try_crossjump_bb): Add argument to try_crossjump_to_edge.
4742
4743 2011-04-07  Tom de Vries  <tom@codesourcery.com>
4744
4745         PR target/43920
4746         * cfgcleanup.c (walk_to_nondebug_insn): New function.
4747         (flow_find_cross_jump): Use walk_to_nondebug_insn.  Recalculate bb1
4748         and bb2.
4749         (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
4750         src1 or src2.  Redirect edges to the last basic block.  Update
4751         frequency and count on multiple basic blocks in case of fallthru.
4752
4753 2011-04-07  Tom de Vries  <tom@codesourcery.com>
4754
4755         PR target/43920
4756         * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
4757         function.
4758         (old_insns_match_p): Change return type.  Replace return false/true
4759         with return dir_none/dir_both.  Use can_replace_by.
4760         (flow_find_cross_jump): Add dir_p parameter.  Init replacement
4761         direction from dir_p.  Register replacement direction in dir, last_dir
4762         and afterlast_dir.  Handle new return type of old_insns_match_p using
4763         merge_dir.  Return replacement direction in dir_p.
4764         (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
4765         return type of old_insns_match_p.
4766         (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
4767         * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
4768         flow_find_cross_jump.
4769         * basic-block.h (enum replace_direction): New type.
4770         (flow_find_cross_jump): Add parameter to declaration.
4771
4772 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
4773
4774         * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
4775         (AVXMODEDCVTPS2DQ): Ditto.
4776         (VEC_FLOAT_MODE): Ditto.
4777         (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3.  Use VF mode
4778         iterator.  Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
4779         (<any_logic:code><mode>3): Use VF mode iterator.
4780         (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
4781         Use VF mode iterator.
4782         (copysign<mode>3): Use VF mode iterator.
4783         (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3.  Handle
4784         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
4785         (*<any_logic:code><MODEF:mode>3): Merge with
4786         *avx_<any_logic:code><MODEF:mode>3.
4787         (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
4788         (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
4789         (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
4790         (avx_cvtdq2ps<avxmodesuffix>): Remove.
4791         (sse2_cvtdq2ps): Use %v modifier.
4792         (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
4793         (avx_cvtps2dq<avxmodesuffix>): Remove.
4794         (sse2_cvtps2dq): Use %v modifier.
4795         (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
4796         (avx_cvttps2dq<avxmodesuffix>): Remove.
4797         (sse2_cvttps2dq): Use %v modifier.
4798         (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
4799         (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
4800         (sse2_cvtsd2siq): Fix insn template.
4801         (sse2_cvtsd2siq_2): Ditto.
4802         (sse2_cvttsd2siq): Ditto.
4803         (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
4804         (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
4805
4806 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
4807
4808         * gcov-io.c: Use GCC Runtime Library Exception.
4809
4810 2011-04-06  Jakub Jelinek  <jakub@redhat.com>
4811
4812         PR debug/48466
4813         * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
4814         as base_reg whatever register reg has been eliminated to, instead
4815         of hardcoding STACK_POINTER_REGNUM.
4816
4817 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
4818
4819         * doc/tm.texi.in: Document C target hooks as separate from general
4820         target hooks.
4821         * doc/tm.texi: Regenerate.
4822         * genhooks.c (struct hook_desc): Add docname field.
4823         (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC).  Initialize
4824         docname field.
4825         (hook_array): Include c-target.def.
4826         (emit_documentation): Use docname field in output.
4827         (emit_init_macros): Take docname argument.  Only emit definitions
4828         for hooks matching docname.
4829         (main): Expect additional arguments in all cases.  Pass argument
4830         to emit_init_macros.
4831         * target.def: Move initial macro definitions and comments to
4832         target-hooks-macros.h.
4833         (gcc_targetcm): Move to c-family/c-target.def.
4834         * target.h (targetcm): Move declaration to c-family/c-target.h.
4835         * targhooks.c (default_handle_c_option): Move to
4836         c-family/c-opts.c.
4837         * targhooks.h (default_handle_c_option): Move declaration to
4838         c-family/c-common.h.
4839         * target-hooks-macros.h: New file.
4840         * config.gcc (target_has_targetcm): Define and use to add to
4841         c_target_objs and cxx_target_objs.
4842         * config/default-c.c: New file.
4843         * config/darwin-c.c: Include c-target.h and c-target-def.h instead
4844         of target.h and target-def.h.
4845         (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
4846         (darwin_objc_construct_string, darwin_cfstring_ref_p,
4847         darwin_check_cfstring_format_arg): Make static.
4848         (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
4849         TARGET_STRING_OBJECT_REF_TYPE_P,
4850         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
4851         * config/darwin-protos.h (darwin_objc_construct_string,
4852         darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
4853         declare.
4854         * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
4855         TARGET_STRING_OBJECT_REF_TYPE_P,
4856         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
4857         * config/t-darwin (darwin-c.o): Update dependencies.
4858         * system.h (TARGET_HAS_TARGETCM): Poison.
4859         * Makefile.in (TARGET_H): Update.
4860         (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
4861         (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
4862         (default-c.o): New target.
4863         (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
4864         (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
4865         (s-tm-texi): Pass -d option to genhooks.  Also test timestamp on
4866         c-target.def.
4867         (build/genhooks.o): Update dependencies.
4868
4869 2011-04-06  Richard Guenther  <rguenther@suse.de>
4870
4871         * ipa-inline.c (enum inlining_mode): Remove.
4872         (cgraph_flatten): Use some other token.
4873         (cgraph_edge_early_inlinable_p): New function, split out from ...
4874         (cgraph_perform_always_inlining): New function, split out from ...
4875         (cgraph_decide_inlining_incrementally): ... here.
4876         (cgraph_mark_inline_edge): Adjust.
4877         (cgraph_early_inlining): Re-structure.
4878         (pass_early_inline): Require SSA form.
4879
4880 2011-04-06  Andrew Stubbs  <ams@codesourcery.com>
4881             Julian Brown  <julian@codesourcery.com>
4882             Mark Shinwell  <shinwell@codesourcery.com>
4883
4884         * config/arm/arm.h (arm_class_likely_spilled_p): Check against
4885         LO_REGS only for Thumb-1.
4886         (MODE_BASE_REG_CLASS): Restrict base registers to those which can
4887         be used in short instructions when optimising for size on Thumb-2.
4888
4889 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
4890
4891         * gimple-low.c (lower_gimple_return): When not optimizing, force labels
4892         associated with user returns to be preserved.
4893
4894 2011-04-06  Tristan Gingold  <gingold@adacore.com>
4895
4896         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
4897         symbol_queue_size, DBXOUT_DECR_NESTING,
4898         (DBXOUT_DECR_NESTING_AND_RETURN): Also define
4899         if XCOFF_DEBUGGING_INFO.
4900
4901 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
4902
4903         * config/i386/i386.md (attribute isa): New.
4904         (attribute enabled): New.
4905         (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
4906         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
4907         (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
4908         (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
4909         (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
4910         (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
4911         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
4912         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
4913
4914         * config/i386/sse.md (VF): New mode iterator.
4915         (VF1): Ditto.
4916         (VF2): Ditto.
4917         (VF_128): Ditto.
4918         (SSEMODEF4): Remove.
4919         (attribute sse): Handle V8SF and V4DF modes.
4920         (<absneg:code><mode>2): Use VF mode iterator.
4921         (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2.  Use VF
4922         mode iterator.
4923         (<plusminus_insn><mode>3): Use VF mode iterator.
4924         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
4925         Use VF mode iterator.
4926         (<sse>_vm<plusminus_insn><mode>3): Merge with
4927         *avx_vm<plusminus_insn><mode>3.  Use VF_128 mode iterator.
4928         (mul<mode>3): Use VF mode iterator.
4929         (*mul<mode>3): Merge with *avx_mul<mode>3.  Use VF mode iterator.
4930         (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3.  Use VF_128
4931         mode iterator.
4932         (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
4933         (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
4934         (<sse>_div<mode>3): Merge with *avx_div<mode>3.  Use VF mode iterator.
4935         (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3.  Use VF_128
4936         mode iterator.
4937         (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
4938         Use VF1 mode iterator.
4939         (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
4940         (sqrt<VF2:mode>2): New expander.
4941         (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
4942         (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
4943         and sqrtv2df2.  Use VF mode iterator.
4944         (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2.  Use VF_128
4945         mode iterator.
4946         (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
4947         (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
4948         Use VF1 mode iterator.
4949         (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
4950         (<smaxmin:code><mode>3): Use VF mode iterator.
4951         (*<smaxmin:code><mode>3_finite): Merge with
4952         *avx_<smaxmin:code><mode>3_finite.  Use VF mode iterator.
4953         (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
4954         (<sse>_vm<smaxmin:code><mode>2): Merge with
4955         *avx_vm<smaxmin:code><mode>2.  Use VF_128 mode iterator.
4956         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.  Use VF
4957         mode iterator.
4958         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.  Use VF
4959         mode iterator.
4960         (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
4961         (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
4962         (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
4963         (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
4964         (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3.  Use
4965         VF mode iterator.
4966         (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
4967         Use VF_128 mode iterator.
4968         (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3.  Use VF
4969         mode iterator.
4970         (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3.  Use
4971         VF_128 mode iterator.
4972         (vcond<mode>): Use VF mode iterator.
4973         * config/i386/predicates.md (sse_comparison_operator): Merge with
4974         avx_comparison_float_operator.  Do not declare as special_predicate.
4975         * config/i386/i386.c (struct builtin_description): Update for renamed
4976         compare patterns.
4977         (ix86_expand_args_builtin): Ditto.
4978         (ix86_expand_sse_compare_mask): Ditto.
4979
4980 2011-04-06  Richard Guenther  <rguenther@suse.de>
4981
4982         * tree-inline.c (estimate_num_insns): For calls simply account
4983         for all passed arguments and a used return value.
4984
4985 2011-04-06  Richard Guenther  <rguenther@suse.de>
4986
4987         PR tree-optimization/47663
4988         * cgraph.h (struct cgraph_edge): Add call_stmt_size and
4989         call_stmt_time fields.
4990         (cgraph_edge_inlinable_p): Declare.
4991         (cgraph_edge_recursive_p): New inline function.
4992         * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
4993         (cgraph_clone_edge): Copy it.
4994         * ipa-inline.c (cgraph_estimate_edge_time): New function.
4995         Account for call stmt time.
4996         (cgraph_estimate_time_after_inlining): Take edge argument.
4997         (cgraph_estimate_edge_growth): Account call stmt size.
4998         (cgraph_estimate_size_after_inlining): Take edge argument.
4999         (cgraph_mark_inline_edge): Adjust.
5000         (cgraph_check_inline_limits): Likewise.
5001         (cgraph_recursive_inlining_p): Remove.
5002         (cgraph_edge_badness): Use cgraph_edge_recursive_p.
5003         (cgraph_decide_recursive_inlining): Take edge argument and
5004         adjust.
5005         (cgraph_decide_inlining_of_small_functions): Do not avoid
5006         diags for recursive inlining here.
5007         (cgraph_flatten): Adjust.
5008         (cgraph_decide_inlining_incrementally): Likewise.
5009         (estimate_function_body_sizes): Remove call cost handling.
5010         (compute_inline_parameters): Initialize caller edge call costs.
5011         (cgraph_estimate_edge_growth): New function.
5012         (cgraph_estimate_growth): Use it.
5013         (cgraph_edge_badness): Likewise.
5014         (cgraph_check_inline_limits): Take an edge argument.
5015         (cgraph_decide_inlining_of_small_functions): Adjust.
5016         (cgraph_decide_inlining): Likewise.
5017         * tree-inline.c (estimate_num_insns): Only account for call
5018         return value if it is used.
5019         (expand_call_inline): Avoid diagnostics on recursive inline
5020         functions here.
5021         * lto-cgraph.c (lto_output_edge): Output edge call costs.
5022         (input_edge): Input edge call costs.
5023
5024 2011-04-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5025
5026         * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
5027
5028 2011-04-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
5029
5030         * doc/invoke.texi (Spec Files): Fix typo.
5031
5032 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
5033
5034         * profile.c (branch_prob): Move declaration of local variable.  Remove
5035         obsolete ??? comment.  Expand the location explicitly instead of using
5036         the LOCATION_FILE and LOCATION_LINE macros.
5037
5038 2011-04-06  Wei Guozhi  <carrot@google.com>
5039
5040         PR target/47855
5041         * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
5042         (arm_cond_branch): Likewise.
5043         (arm_cond_branch_reversed): Likewise.
5044         (arm_jump): Likewise.
5045         (push_multi): Likewise.
5046         * config/arm/constraints.md (Py): New constraint.
5047
5048 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
5049
5050         PR bootstrap/48471
5051         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
5052         Move these...
5053         (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
5054         (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
5055         #ifdef DBX_DEBUGGING_INFO.
5056
5057 2011-04-05  Bernd Schmidt  <bernds@codesourcery.com>
5058
5059         PR bootstrap/48403
5060         * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
5061         if old and new states differ.
5062
5063 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
5064
5065         * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
5066         OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
5067         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
5068         handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
5069         * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
5070         mcfv4e): Use Alias.
5071         * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
5072         ColdFire options to -mcpu= options.
5073
5074 2011-04-05  Jeff Law  <law@redhat.com>
5075
5076         * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
5077         check if BB is a successor of LOOP->header and return
5078         NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
5079
5080 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
5081
5082         * cprop.c (struct reg_use): Remove.
5083         (reg_use_table): Make an array of RTX.
5084         (find_used_regs, constprop_register, local_cprop_pass,
5085         bypass_block): Simplify users of reg_use_table.
5086         (cprop_insn): Likewise.  Iterate if copy propagation succeeded
5087         on one of the uses found by find_used_regs.
5088
5089 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
5090
5091         PR bootstrap/48469
5092         * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
5093         declaration.
5094
5095 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
5096
5097         * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
5098         as an rtx.
5099         (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
5100
5101 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
5102
5103         PR middle-end/48441
5104         * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
5105
5106 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
5107
5108         * combine.c: Include obstack.h.
5109         (struct insn_link): Define.
5110         (uid_log_links): Adjust type.
5111         (FOR_EACH_LOG_LINK): New macro.
5112         (insn_link_obstack): Declare.
5113         (alloc_insn_link): Define.
5114         (create_log_links): Call it.  Use FOR_EACH_LOG_LINK and adjust
5115         type of link variables.
5116         (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
5117         (try_combine, record_promoted_values, distribute_notes): Likewise.
5118         (distribute_links): Likewise.  Tweak prototype.
5119         (clear_log_links): Delete.
5120         (adjust_for_new_dest): Call alloc_insn_link.
5121         * Makefile.in (combine.o): Depend on $(OBSTACK_H).
5122
5123 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
5124
5125         * gcse.c (modify_mem_list): Convert to an array of VECs.
5126         (canon_modify_mem_list, compute_transp): Tweak formatting.
5127         (alloc_gcse_mem): Likewise.  Adjust for modify_mem_list change.
5128         (load_killed_in_block_p): Likewise.
5129         (record_last_mem_set_info): Likewise.
5130         (clear_modify_mem_tables): Likewise.
5131
5132 2011-04-05  Tom de Vries  <tom@codesourcery.com>
5133
5134         PR middle-end/48461
5135         * function.c (emit_use_return_register_into_block): Only define if
5136         HAVE_return.
5137
5138 2011-04-05  Eric Botcazou  <ebotcazou@adacore.com>
5139
5140         * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
5141
5142 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
5143
5144         * config/rx/rx-opts.h: New.
5145         * config/rx/rx.c (rx_cpu_type): Remove.
5146         (rx_handle_option): Don't assert that global structures are in
5147         use.  Access variables via opts pointer.  Defer most handling of
5148         OPT_mint_register_.  Use error_at.
5149         (rx_option_override): Handle deferred OPT_mint_register_ here.
5150         * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
5151         * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
5152         (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
5153         (rx_cpu_types): New Enum and EnumValue entries.
5154         (mint-register=): Use Defer and use Var accordingly.
5155
5156 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
5157
5158         * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
5159         (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
5160         * final.c (debug_flush_symbol_queue, debug_queue_symbol):
5161         Move these...
5162         (debug_free_queue, debug_nesting, symbol_queue_index):
5163         ...and these...
5164         * dbxout.c: ...to here.  Make static.
5165
5166 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
5167
5168         * gcse.c (modify_pair): Define.  Define a VEC of it.
5169         (canon_modify_mem_list): Convert to an array of VECs.
5170         (free_insn_expr_list_list): Delete.
5171         (clear_modify_mem_tables): Call VEC_free instead.
5172         (record_last_mem_set_info): Don't modify canon_modify_mem_list.
5173         (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
5174         (canon_list_insert, compute_transp): Likewise.
5175
5176 2011-04-05  Tom de Vries  <tom@codesourcery.com>
5177
5178         PR target/43920
5179         * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
5180         for size.
5181
5182 2011-04-05  Tom de Vries  <tom@codesourcery.com>
5183
5184         PR target/43920
5185         * function.c (emit_use_return_register_into_block): New function.
5186         (thread_prologue_and_epilogue_insns): Use
5187         emit_use_return_register_into_block.
5188
5189 2011-04-05  Tom de Vries  <tom@codesourcery.com>
5190
5191         PR target/43920
5192         * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
5193         insn.
5194
5195 2011-04-05  Tom de Vries  <tom@codesourcery.com>
5196
5197         * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
5198
5199 2011-04-05  Yufeng Zhang  <yufeng.zhang@arm.com>
5200
5201         * config/arm/arm.md (define_constants for unspec): Replace with
5202         define_c_enum.
5203         (define_constants for unspecv): Replace with define_c_enum.
5204         * config/arm/neon.md (define_constants for unspec): Replace with
5205         define_c_enum.
5206
5207 2011-04-04  Richard Henderson  <rth@redhat.com>
5208
5209         PR bootstrap/48400
5210         * dwarf2out.c (output_line_info): Always emit line info from
5211         at least one section.
5212         (dwarf2out_init): Create text_section_line_info here ...
5213         (set_cur_line_info_table): ... not here.
5214
5215 2011-04-04  Vladimir Makarov  <vmakarov@redhat.com>
5216
5217         PR target/48380
5218         * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
5219         not called.
5220
5221         * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
5222
5223 2011-04-04  Steven Bosscher  <steven@gcc.gnu.org>
5224
5225         * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
5226         (expr_equiv_p): Remove.
5227         (insert_set_in_table): Look at <dest, src> pair instead of expr.
5228         (hash_scan_set): Update call to insert_set_in_table.
5229         (dump_hash_table): Dump <dest, src> pair.
5230         (lookup_set): Simplify.  Lookup <dest, src> pair.
5231         (compute_transp): Remove, fold heavily simplified code into...
5232         (compute_local_properties): ...here.  Expect COMP and TRANSP
5233         unconditionally.
5234         (find_avail_set): Take set directly from struct expr.
5235         (find_bypass-set): Likewise.
5236         (bypass_block): Likewise.
5237         (cprop_insn): Likewise.  Remove redundant INSN_P test.
5238
5239         * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
5240         checks on form of COND from find_implicit_sets to here.
5241         (find_implicit_sets): Cleanup control flow. Split critical edges
5242         if it exposes implicit sets.  Allocate/resize implicit_sets as
5243         necessary.
5244         (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
5245         changed something.  Run df_analyze after find_implicit_sets if any
5246         edges were split.  Do not allocate implicit_sets here.
5247
5248         * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
5249         (gcse_obstack): Renamed to cprop_obstack.
5250         (GNEW, GNEWVEC, GNEWVAR): Remove.
5251         (gmalloc): Remove.
5252         (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
5253         (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
5254         (gcse_alloc): Likewise, and rename to cprop_alloc.
5255         (alloc_gcse_men, free_gcse_mem): Remove.
5256         (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
5257         (compute_hash_table_work): Allocate and free reg_set_bitmap here.
5258         (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
5259
5260         * cprop.c (oprs_not_set_p): Remove.
5261         (mark_set, mark_clobber): Remove.
5262         (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
5263         (reg_not_set_p): New function.
5264         (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
5265         (cprop_insn): Likewise.
5266         (cprop_jump): Use FOR_EACH_EDGE.
5267
5268 2011-04-04  Bernd Schmidt  <bernds@codesourcery.com>
5269
5270         PR bootstrap/48403
5271         * haifa-sched.c (nonscheduled_insns_begin): New static variable.
5272         (rank_for_schedule): Use scheduled_insns vector instead of
5273         last_scheduled_insn.
5274         (ok_for_early_queue_removal): Likewise.
5275         (queue_to_ready): Search forward in nonscheduled_insns_begin if
5276         we have a dbg_cnt.
5277         (choose_ready): Likewise.
5278         (commit_schedule): Use VEC_iterate.
5279         (schedule_block): Initialize nonscheduled_insns_begin.  If we have
5280         a dbg_cnt, use it and ensure the first insn is in the ready list.
5281         (haifa_sched_init): Allocate scheduled_insns.
5282         (sched_extend_ready_list): Don't allocate it; reserve space.
5283         (haifa_sched_finish): Free it.
5284
5285 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
5286
5287         * optc-gen.awk: Always remove type from Variable entry before
5288         recording in var_seen.
5289
5290 2011-04-04  Eric Botcazou  <ebotcazou@adacore.com>
5291
5292         * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
5293         * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
5294         call to tidy_fallthru_edges.
5295
5296 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
5297
5298         * doc/options.texi (ToLower): Document.
5299         * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
5300         * opts-common.c (decode_cmdline_option): Handle cl_tolower.
5301         * opts.h (cl_option): Add cl_tolower field.
5302         * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
5303         arguments with lowercase strings.
5304         * config/rx/rx.opt (mcpu=): Add ToLower.
5305         * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
5306         argument.
5307
5308 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
5309
5310         * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
5311
5312 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
5313
5314         * config/vax/vax.c: Include reload.h.
5315
5316 2011-04-04  Anatoly Sokolov  <aesok@post.ru>
5317
5318         * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
5319         * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
5320         (sparc_preferred_reload_class): New function.
5321
5322 2011-04-04  Jakub Jelinek  <jakub@redhat.com>
5323
5324         PR debug/48401
5325         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
5326         Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
5327
5328 2011-04-03  Nathan Froyd  <froydnj@codesourcery.com>
5329
5330         * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
5331         * tree.c (initialize_tree_contains_struct): Adjust accordingly.
5332
5333 2011-04-03  Anatoly Sokolov  <aesok@post.ru>
5334
5335         * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
5336         (ASM_OUTPUT_ALIGNED_BSS): Define.
5337
5338 2011-04-03  Michael Matz  <matz@suse.de>
5339
5340         * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
5341         and next_slot members.
5342         (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
5343         lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
5344         (lto_streamer_cache_append): Declare.
5345         * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
5346         unsigned index, remove offset parameter, ensure that we append
5347         or update existing entries.
5348         (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
5349         parameter, update next_slot for append.
5350         (lto_streamer_cache_insert): Use unsigned index, remove offset_p
5351         parameter.
5352         (lto_streamer_cache_insert_at): Likewise.
5353         (lto_streamer_cache_append): New function.
5354         (lto_streamer_cache_lookup): Use unsigned index.
5355         (lto_streamer_cache_get): Likewise.
5356         (lto_record_common_node): Don't test tree_node_can_be_shared.
5357         (preload_common_node): Adjust call to lto_streamer_cache_insert.
5358         (lto_streamer_cache_delete): Don't free offsets member.
5359         * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
5360         (lto_output_string_with_length): Use lto_output_data_stream.
5361         (lto_output_tree_header): Remove ix parameter, don't write it.
5362         (lto_output_builtin_tree): Likewise.
5363         (lto_write_tree): Adjust callers to above, don't track and write
5364         offset, write unsigned index.
5365         (output_unreferenced_globals): Don't emit all global vars.
5366         (write_global_references): Use unsigned indices.
5367         (lto_output_decl_state_refs): Likewise.
5368         (write_symbol): Likewise.
5369         * lto-streamer-in.c (lto_input_chain): Move earlier.
5370         (input_function): Use unsigned index.
5371         (input_alias_pairs): Don't read and then ignore all global vars.
5372         (lto_materialize_tree): Remove ix_p parameter, don't read index,
5373         don't pass it back, use lto_streamer_cache_append.
5374         (lto_register_var_decl_in_symtab): Use unsigned index.
5375         (lto_register_function_decl_in_symtab): Likewise.
5376         (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
5377         index.
5378         (lto_get_builtin_tree): Don't read index, use
5379         lto_streamer_cache_append.
5380         (lto_read_tree): Adjust call to lto_materialize_tree.
5381
5382         * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
5383         don't use function calls in arguments to MIN.
5384
5385         * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
5386         twice.
5387
5388         * gimple.c (gimple_type_leader_entry): Mark deletable.
5389
5390 2011-04-03  Alan Modra  <amodra@gmail.com>
5391
5392         * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
5393
5394 2011-04-03  Michael Matz  <matz@suse.de>
5395
5396         * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
5397         an integer.
5398         * tree.h (tree_decl_non_common.vindex): Adjust comment.
5399
5400 2011-04-03  Michael Matz  <matz@suse.de>
5401
5402         * cgraphbuild.c (record_reference): Canonicalize constructor values.
5403         * gimple-fold.c (canonicalize_constructor_val): Accept being called
5404         without function context.
5405         * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
5406         current_function_decl and cfun.
5407
5408 2011-04-03  Michael Matz  <matz@suse.de>
5409
5410         * tree.c (decl_init_priority_insert): Don't create entry for
5411         default priority.
5412         (decl_fini_priority_insert): Ditto.
5413         (fields_compatible_p, find_compatible_field): Remove.
5414         * tree.h (fields_compatible_p, find_compatible_field): Remove.
5415         * gimple.c (gimple_compare_field_offset): Adjust block comment.
5416
5417 2011-04-03  Eric Botcazou  <ebotcazou@adacore.com>
5418
5419         * combine.c (try_combine): Remove useless local variable.
5420
5421 2011-04-03  Richard Guenther  <rguenther@suse.de>
5422             Ira Rosen  <ira.rosen@linaro.org>
5423
5424         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
5425         non-variable offsets and compare the remaining bases of the two
5426         accesses instead of looking for exact same data-ref.
5427
5428 2011-04-02  Kai Tietz  <ktietz@redhat.com>
5429
5430         PR target/48416
5431         * i386.c (ix86_function_arg_boundary): Fix printf formatter.
5432
5433         * i386.c (ix86_is_msabi_thiscall): New helper function.
5434         (ix86_is_type_thiscall): New helper function.
5435         (ix86_comp_type_attributes): Handle thiscall for method-functions
5436         special.
5437         (init_cumulative_args): Likewise.
5438         (find_drap_reg): Likewise.
5439         (ix86_static_chain): Likewise.
5440         (x86_this_parameter): Likewise.
5441         (x86_output_mi_thunk): Likewise.
5442
5443 2011-04-01  Olivier Hainque  <hainque@adacore.com>
5444             Nicolas Setton  <setton@adacore.com>
5445             Eric Botcazou  <ebotcazou@adacore.com>
5446
5447         * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
5448         (add_gnat_descriptive_type_attribute): New function.
5449         (gen_array_type_die): Call it.
5450         (gen_enumeration_type_die): Likewise.
5451         (gen_struct_or_union_type_die): Likewise.
5452         (modified_type_die): Likewise.
5453         * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
5454         * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
5455         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
5456
5457 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
5458
5459         PR bootstrap/48148
5460         * dwarf2out.c (resolve_addr): Don't call force_decl_die
5461         if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
5462
5463         Revert:
5464         2011-03-17  Richard Guenther  <rguenther@suse.de>
5465
5466         PR bootstrap/48148
5467         * lto-cgraph.c (input_overwrite_node): Clear the abstract
5468         origin for decls in other ltrans units.
5469         (input_varpool_node): Likewise.
5470
5471 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
5472
5473         PR middle-end/48335
5474         * expr.c (expand_assignment): Handle all possibilities
5475         if TO_RTX is CONCAT.
5476         * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
5477         (store_split_bit_field): If SUBREG_REG (op0) or
5478         op0 itself has smaller mode than word, return it
5479         for offset 0 and const0_rtx for out-of-bounds stores.
5480         If word is const0_rtx, skip it.
5481
5482 2011-04-01  Naveen H.S  <naveen.S@kpitcummins.com>
5483
5484         * config/h8300/h8300.c (print_operand_address): Rename to...
5485         (h8300_print_operand_address): ...this. Make static. Adjust comments.
5486         Call h8300_print_operand and h8300_print_operand_address instead of
5487         print_operand and print_operand_address. Declare.
5488         (print_operand): Renake to...
5489         (h8300_print_operand): ...this. Make static. Adjust comments.
5490         Call h8300_print_operand instead of print_operand. Declare.
5491         (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
5492         (h8300_register_move_cost): Likewise.
5493         (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
5494         TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
5495         * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
5496         PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
5497         * config/h8300/h8300-protos.h (print_operand): Delete.
5498         (print_operand_address): Delete.
5499
5500 2011-04-01  Richard Henderson  <rth@redhat.com>
5501
5502         PR 48400
5503         * dwarf2out.c (dwarf2out_source_line): Disable discriminators
5504         in strict mode before dwarf4.  Re-order tests to early out
5505         before switching sections.
5506
5507 2011-04-01  Nathan Froyd  <froydnj@codesourcery.com>
5508
5509         * config/h8300/constraints.md: New file.
5510         * config/h8300/h8300.md: Include it.  Use satisfies_constraint_J,
5511         satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
5512         (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
5513         * config/h8300/predicates.md (bit_operand): Likewise.
5514         (incdec_operand): Use satisfies_constraint_M and
5515         satisfies_constraint_O.  Don't use C code block.
5516         * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
5517         * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
5518         (compute_mov_length): Use satisfies_constraint_G.
5519         (fix_bit_operand): Use satisfies_constraint_U.
5520         * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
5521         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
5522         (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
5523         (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
5524         (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
5525         (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
5526         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
5527         (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
5528         (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
5529         (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
5530         (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
5531         (EXTRA_MEMORY_CONSTRAINT): Delete.
5532
5533 2011-04-01  Andrew Pinski  <pinskia@gmail.com>
5534             Michael Meissner  <meissner@linux.vnet.ibm.com>
5535
5536         PR target/48262
5537         * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
5538         operands, as per the specifications.
5539
5540         * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
5541         (vec_extract_evenv4sf): Ditto.
5542         (vec_extract_evenv8hi): Ditto.
5543         (vec_extract_evenv16qi): Ditto.
5544         (vec_extract_oddv4si): Ditto.
5545
5546 2011-03-31  Mark Wielaard  <mjw@redhat.com>
5547
5548         * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
5549         high_pc attribute if the CU has no associated code. Only output
5550         DW_AT_entry_pc for CU if not generating strict dwarf and
5551         dwarf_version < 4.
5552
5553 2011-04-01  Bernd Schmidt  <bernds@codesourcery.com>
5554
5555         * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
5556         * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
5557         out of ...
5558         (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
5559         * final.c (final_start_function): Call the new function rather
5560         than using a NULL argument for dwarf2out_frame_debug.
5561
5562         * ifcvt.c (cond_exec_process_insns): Disallow converting a block
5563         that contains the prologue.
5564
5565         * haifa-sched.c (queue_insn): New arg REASON.  All callers
5566         changed.  Print it in debugging output.
5567
5568         * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
5569
5570         * sched-ebb.c (begin_schedule_ready): Remove second argument.
5571         Split most of the code into...
5572         (begin_move_insn): ... here.  New function.
5573         (ebb_sched_info): Add a pointer to it.
5574         * haifa-sched.c (scheduled_insns): New static variable.
5575         (sched_extend_ready_list): Allocate it.
5576         (schedule_block): Use it to record the order of scheduled insns.
5577         Perform RTL changes to move insns only after all scheduling
5578         decisions have been made.
5579         * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
5580         begin_move_insn field.
5581         * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
5582         * sched-int.h (struct haifa_sched_info): Remove second argument
5583         from begin_schedule_ready hook.  Add new member begin_move_insn.
5584         * sched-rgn.c (begin_schedule_ready): Remove second argument.
5585         (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
5586
5587         * haifa-sched.c (prune_ready_list): New function, broken out of
5588         schedule_block.
5589         (schedule_block): Use it.
5590
5591 2011-04-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5592
5593         * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
5594
5595 2011-04-01  Kai Tietz  <ktietz@redhat.com>
5596
5597         * config.gcc (*-*-mingw*): Allow as option the
5598         posix threading model.
5599         * config/i386/mingw32.h (SPEC_PTHREAD1,  SPEC_PTHREAD2):
5600         New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
5601         definition.
5602         (CPP_SPEC): Add pthread/no-pthread handling.
5603         (LIB_SPEC): Likewise.
5604         * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
5605         (LIB_SPEC): Likewise.
5606         * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
5607         flag to pass -pthread option for shared libgcc build.
5608         (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
5609         for shared libgcc build.
5610         * config/i386/t-mingw-pthread: New file.
5611         * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
5612         New define to enable use of library pthread by default.
5613         * config/i386/mingw.opt (pthread): New driver option.
5614         (no-pthread): New driver option.
5615         * config/i386/cygming.opt: Make sure trailing empty line is retained.
5616         * config/i386/mingw-w64.opt: Likewise.
5617
5618 2011-04-01  Gary Funck <gary@intrepid.com>
5619
5620         * c-decl.c (grokdeclarator): Fix formatting.
5621
5622 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
5623
5624         * expr.c (emit_block_move_via_movmem): Use n_generator_args
5625         instead of n_operands.
5626         (set_storage_via_setmem): Likewise.
5627         * optabs.c (maybe_gen_insn): Likewise.
5628         * config/arm/arm.c (arm_init_neon_builtins): Likewise.
5629         * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
5630         (mips_expand_builtin_direct): Likewise.
5631         * config/spu/spu.c (expand_builtin_args): Likewise.
5632
5633 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
5634
5635         * recog.h (insn_data_d): Add n_generator_args.
5636         * genoutput.c (data): Likewise.
5637         (output_insn_data): Print it.
5638         (max_opno, num_dups): Delete.
5639         (scan_operands): Just fill in "d->operand[...]".
5640         (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
5641
5642 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
5643
5644         * gensupport.h (pattern_stats): New structure.
5645         * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
5646         * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
5647         (max_operand_1, max_operand_vec): Delete.
5648         (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
5649
5650 2011-03-31  Nathan Froyd  <froydnj@codesourcery.com>
5651
5652         * emit-rtl.c (emit_pattern_after_setloc): New function.
5653         (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
5654         (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
5655         (emit_pattern_after): New function.
5656         (emit_insn_after, emit_jump_insn_after): Call it.
5657         (emit_call_insn_after, emit_debug_insn_after): Likewise.
5658         (emit_pattern_before_setloc): New function.
5659         (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
5660         (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
5661         Likewise.
5662         (emit_pattern_before): New function.
5663         (emit_insn_before, emit_jump_insn_before): Call it.
5664         (emit_call_insn_before, emit_debug_insn_before): Likewise.
5665
5666 2011-03-31  Richard Henderson  <rth@redhat.com>
5667
5668         * dwarf2out.c (dw_separate_line_info_ref): Remove.
5669         (dw_separate_line_info_entry): Remove.
5670         (enum dw_line_info_opcode): New.
5671         (dw_line_info_entry): Use it.
5672         (dw_line_info_table, dw_line_info_table_p): New.
5673         (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
5674         (line_info_table, line_info_label_num): Remove.
5675         (line_info_table_in_use): Remove.
5676         (separate_line_info_table): Remove.
5677         (separate_line_info_table_allocated): Remove.
5678         (separate_line_info_table_in_use): Remove.
5679         (LINE_INFO_TABLE_INCREMENT): Remove.
5680         (line_info_label_num): New.
5681         (cur_line_info_table): New.
5682         (text_section_line_info, cold_text_section_line_info): New.
5683         (separate_line_info): New.
5684         (SEPARATE_LINE_CODE_LABEL): Remove.
5685         (print_dwarf_line_table): Remove.
5686         (debug_dwarf): Don't dump it.
5687         (output_one_line_info_table): New.
5688         (output_line_info): Use it.
5689         (new_line_info_table): New.
5690         (set_cur_line_info_table): New.
5691         (dwarf2out_switch_text_section): Use it.
5692         (dwarf2out_begin_function): Likewise.
5693         (push_dw_line_info_entry): New.
5694         (dwarf2out_source_line): Rewrite for new line info tables.
5695         (dwarf2out_init): Remove dead initailizations.
5696
5697 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
5698
5699         * opts.h (cl_option): Add comments to fields.  Add bit-fields for
5700         various flags.
5701         (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
5702         CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
5703         CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
5704         CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
5705         (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
5706         * opt-functions.awk (flag_init, switch_bit_fields): New.
5707         (switch_flags): Don't handle flags moved to bit-fields.  Don't
5708         generate CL_MISSING_OK or CL_SAVE.
5709         * optc-gen.awk: Update to generate bit-field output as well as
5710         flags field.
5711         * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
5712         bit-field instead of CL_REJECT_DRIVER flag.
5713         * opts-common.c (generate_canonical_option,
5714         decode_cmdline_option): Use bit-fields instead of CL_* flags.
5715         * opts.c (maybe_default_option): Use cl_reject_negative bit-field
5716         instead of CL_REJECT_NEGATIVE flag.
5717         * toplev.c (print_switch_values): Use cl_report bit-field instead
5718         of CL_REPORT flag.
5719
5720 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
5721
5722         * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
5723         a zero minimum index only if it is redundant.
5724
5725 2011-03-31  Vladimir Makarov  <vmakarov@redhat.com>
5726
5727         PR rtl-optimization/48381
5728         * ira-color.c (assign_hard_reg): Use hard reg set intersection
5729         instead of ira_class_hard_reg_index for calculating conflicting
5730         hard registers.
5731
5732 2011-03-31  Steven Bosscher  <steven@gcc.gnu.org>
5733
5734         * cprop.c: Clean up hash table building.
5735         (reg_avail_info): Remove.
5736         (oprs_available_p): Remove.
5737         (record_last_reg_set_info): Remove.
5738         (record_last_set_info): Remove.
5739         (reg_available_p): New function.
5740         (gcse_constant_p): Do not treat unfolded conditions as constants.
5741         (make_set_regs_unavailable): New function.
5742         (hash_scan_set): Simplify with new reg_available_p.
5743         (compute_hash_table_work): Traverse insns stream only once.
5744         Do not compute reg_avail_info. Traverse insns in reverse order.
5745         Record implicit sets after recording explicit sets from the block.
5746
5747 2011-03-31  Michael Matz  <matz@suse.de>
5748
5749         * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
5750
5751 2011-03-31  Anatoly Sokolov  <aesok@post.ru>
5752
5753         * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
5754         * config/h8300/h8300-protos.h (h8300_get_index): Remove.
5755         * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
5756         (h8300_mode_dependent_address_p): New function.
5757         (h8300_get_index): Make static.
5758
5759 2011-03-31  Jeff Law  <law@redhat.com>
5760
5761         * reload1.c (elimination_effects): Fix typo in recent change.
5762
5763         * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
5764         typo potentially leading to null pointer dereference.
5765
5766         * caller-save.c (new_saved_hard_reg): Eliminate return value.
5767         (setup_save_areas): Corresponding changes to avoid useless
5768         assignments.
5769
5770         * jump.c (reversed_comparison_code_parts): Avoid successive return
5771         statements when REVERSE_CONDITION is defined.
5772
5773         * expr.c (expand_assignment): Avoid useless assignments.
5774         (expand_expr_real_1): Likewise.
5775         (expand_expr_real_2): Avoid useless statements.
5776
5777         * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
5778
5779         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
5780
5781         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
5782         statements.
5783
5784         * stmt.c (expand_expr_stmt): Avoid useless assignment.
5785
5786 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
5787
5788         PR target/47109
5789         * doc/tm.texi.in (TARGET_VERSION): Remove.
5790         * doc/tm.texi: Regenerate.
5791         * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
5792         * collect2.c (main): Don't use TARGET_VERSION.
5793         * mips-tdump.c (main): Don't use TARGET_VERSION.
5794         * mips-tfile.c (main): Don't use TARGET_VERSION.
5795         * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
5796         * config/rs6000/vxworksae.h: Remove.
5797         * config/alpha/alpha.h (TARGET_VERSION): Remove.
5798         * config/alpha/freebsd.h (TARGET_VERSION): Remove.
5799         * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
5800         * config/alpha/netbsd.h (TARGET_VERSION): Remove.
5801         * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
5802         * config/arm/arm.h (TARGET_VERSION): Remove.
5803         * config/arm/coff.h (TARGET_VERSION): Remove.
5804         * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
5805         * config/arm/elf.h (TARGET_VERSION): Remove.
5806         * config/arm/freebsd.h (TARGET_VERSION): Remove.
5807         * config/arm/linux-elf.h (TARGET_VERSION): Remove.
5808         * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
5809         * config/arm/pe.h (TARGET_VERSION): Remove.
5810         * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
5811         * config/arm/semi.h (TARGET_VERSION): Remove.
5812         * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
5813         * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
5814         * config/arm/vxworks.h (TARGET_VERSION): Remove.
5815         * config/avr/avr.h (TARGET_VERSION): Remove.
5816         * config/bfin/bfin.h (TARGET_VERSION): Remove.
5817         * config/fr30/fr30.h (TARGET_VERSION): Remove.
5818         * config/frv/frv.h (TARGET_VERSION): Remove.
5819         * config/h8300/h8300.h (TARGET_VERSION): Remove.
5820         * config/i386/cygwin.h (TARGET_VERSION): Remove.
5821         * config/i386/darwin.h (TARGET_VERSION): Remove.
5822         * config/i386/darwin64.h (TARGET_VERSION): Remove.
5823         * config/i386/djgpp.h (TARGET_VERSION): Remove.
5824         * config/i386/freebsd.h (TARGET_VERSION): Remove.
5825         * config/i386/freebsd64.h (TARGET_VERSION): Remove.
5826         * config/i386/gnu.h (TARGET_VERSION): Remove.
5827         * config/i386/i386-interix.h (TARGET_VERSION): Remove.
5828         * config/i386/i386elf.h (TARGET_VERSION): Remove.
5829         * config/i386/linux.h (TARGET_VERSION): Remove.
5830         * config/i386/linux64.h (TARGET_VERSION): Remove.
5831         * config/i386/lynx.h (TARGET_VERSION): Remove.
5832         * config/i386/mingw32.h (TARGET_VERSION): Remove.
5833         * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
5834         * config/i386/netbsd64.h (TARGET_VERSION): Remove.
5835         * config/i386/netware.h (TARGET_VERSION): Remove.
5836         * config/i386/nto.h (TARGET_VERSION): Remove.
5837         * config/i386/openbsd.h (TARGET_VERSION): Remove.
5838         * config/i386/vxworks.h (TARGET_VERSION): Remove.
5839         * config/ia64/elf.h (TARGET_VERSION): Remove.
5840         * config/ia64/freebsd.h (TARGET_VERSION): Remove.
5841         * config/ia64/hpux.h (TARGET_VERSION): Remove.
5842         * config/ia64/linux.h (TARGET_VERSION): Remove.
5843         * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
5844         * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
5845         TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
5846         * config/lm32/lm32.h (TARGET_VERSION): Remove.
5847         * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
5848         * config/m32c/m32c.h (TARGET_VERSION): Remove.
5849         * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
5850         * config/m32r/m32r.h (TARGET_VERSION): Remove.
5851         * config/m68k/linux.h (TARGET_VERSION): Remove.
5852         * config/m68k/m68k.h (TARGET_VERSION): Remove.
5853         * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
5854         * config/m68k/uclinux.h (TARGET_VERSION): Remove.
5855         * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
5856         * config/mep/mep.h (TARGET_VERSION): Remove.
5857         * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
5858         MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
5859         * config/mips/iris6.h (MACHINE_TYPE): Remove.
5860         * config/mips/linux.h (TARGET_VERSION): Remove.
5861         * config/mips/netbsd.h (MACHINE_TYPE): Remove.
5862         * config/mips/vxworks.h (TARGET_VERSION): Remove.
5863         * config/mmix/mmix.h (TARGET_VERSION): Remove.
5864         * config/mn10300/linux.h (TARGET_VERSION): Remove.
5865         * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
5866         * config/pa/pa.h (TARGET_VERSION): Remove.
5867         * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
5868         * config/picochip/picochip.h (TARGET_VERSION): Remove.
5869         * config/rs6000/aix.h (TARGET_VERSION): Remove.
5870         * config/rs6000/darwin.h (TARGET_VERSION): Remove.
5871         * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
5872         * config/rs6000/eabi.h (TARGET_VERSION): Remove.
5873         * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
5874         * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
5875         * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
5876         * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
5877         * config/rs6000/linux.h (TARGET_VERSION): Remove.
5878         * config/rs6000/linux64.h (TARGET_VERSION): Remove.
5879         * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
5880         * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
5881         * config/rs6000/lynx.h (TARGET_VERSION): Remove.
5882         * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
5883         * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
5884         * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
5885         * config/s390/linux.h (TARGET_VERSION): Remove.
5886         * config/s390/s390.h (TARGET_VERSION): Remove.
5887         * config/s390/tpf.h (TARGET_VERSION): Remove.
5888         * config/score/score.h (TARGET_VERSION): Remove.
5889         * config/sh/linux.h (TARGET_VERSION): Remove.
5890         * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
5891         TARGET_VERSION_CPU, TARGET_VERSION): Remove.
5892         * config/sh/sh.h (TARGET_VERSION): Remove.
5893         * config/sh/sh64.h (TARGET_VERSION): Remove.
5894         * config/sh/superh.h (TARGET_VERSION): Remove.
5895         * config/sh/vxworks.h (TARGET_VERSION): Remove.
5896         * config/sparc/freebsd.h (TARGET_VERSION): Remove.
5897         * config/sparc/linux.h (TARGET_VERSION): Remove.
5898         * config/sparc/linux64.h (TARGET_VERSION): Remove.
5899         * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
5900         TARGET_NAME32, TARGET_NAME): Remove.
5901         * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
5902         * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
5903         * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
5904         * config/sparc/sysv4.h (TARGET_VERSION): Remove.
5905         * config/sparc/vxworks.h (TARGET_VERSION): Remove.
5906         * config/spu/spu.h (TARGET_VERSION): Remove.
5907         * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
5908         * config/v850/v850.h (TARGET_VERSION): Remove.
5909         * config/vax/linux.h (TARGET_VERSION): Remove.
5910         * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
5911         * config/xtensa/elf.h (TARGET_VERSION): Remove.
5912         * config/xtensa/linux.h (TARGET_VERSION): Remove.
5913
5914 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
5915
5916         PR target/48142
5917         * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
5918         frame-related from frame-unrelated adjustments to the stack pointer.
5919
5920 2011-03-31  Jakub Jelinek  <jakub@redhat.com>
5921
5922         * common.opt (fdebug-types-section): Move earlier.
5923         * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
5924
5925 2011-03-31  Andreas Tobler  <andreast@fgznet.ch>
5926
5927         * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
5928         var.
5929
5930 2011-03-30  Nathan Froyd  <froydnj@codesourcery.com>
5931
5932         * tree.h (CASE_CHAIN): Define.
5933         * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
5934         (gimple_redirect_edge_and_branch): Likewise.
5935
5936 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
5937
5938         PR middle-end/48367
5939         * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
5940         calculation.
5941
5942 2011-03-30  Jeff Law  <law@redhat.com>
5943
5944         * PR bootstrap/48371
5945         * reload1.c (reload): Fix botch in last change.
5946
5947         * reload.h (struct reload): Fix typo introduced in last change.
5948
5949 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
5950
5951         * config/arm/arm.opt (mhard-float, msoft-float): Mark
5952         Undocumented.  Remove help text.
5953         * doc/invoke.texi (ARM Options): Don't document -msoft-float and
5954         -mhard-float.
5955
5956 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
5957
5958         * doc/options.texi (NegativeAlias): Document.
5959         (Alias): Mention NegativeAlias.
5960         * opt-functions.awk: Handle NegativeAlias.
5961         * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
5962         * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
5963         * opts.h (CL_NEGATIVE_ALIAS): Define.
5964         * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
5965         (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
5966         OPT_mspe_.
5967         * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
5968         Alias entries.
5969         * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
5970         mno-spe and mno-isel instead of mspe=no and -misel=no.
5971
5972 2011-03-29  Mark Wielaard  <mjw@redhat.com>
5973
5974         * common.opt (fdebug-types-section): New flag.
5975         * doc/invoke.texi: Document new -fno-debug-types-section flag.
5976         * dwarf2out.c (use_debug_types): New define.
5977         (struct die_struct): Mark die_id with GTY desc use_debug_types.
5978         (print_die): Guard output of type unit signatures using
5979         use_debug_types.
5980         (build_abbrev_table): Replace assert of dwarf_version >= 4
5981         with assert on use_debug_types.
5982         (size_of_die): Likewise.
5983         (unmark_dies): Likewise.
5984         (value_format): Decide AT_ref_external form on use_debug_types.
5985         (output_die): Replace dwarf_version version check guard with
5986         use_debug_types where appropriate.
5987         (modified_type_die): Likewise.
5988         (gen_reference_type_die): Likewise.
5989         (dwarf2out_start_source_file): Likewise.
5990         (dwarf2out_end_source_file): Likewise.
5991         (prune_unused_types_walk_attribs): Likewise.
5992         (dwarf2out_finish): Likewise.
5993
5994 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
5995
5996         * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
5997
5998 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
5999
6000         PR rtl-optimization/48332
6001         * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
6002         mode of input operand N and modeN to its actual mode.
6003
6004 2011-03-30  Jeff Law  <law@redhat.com>
6005
6006         * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
6007         define accessor macro.
6008         (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
6009         (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
6010         (reg_equiv_init): Likewise.
6011         (reg_equivs_size): New variable.
6012         (reg_equiv_init_size): Remove.
6013         (allocate_initial_values): Move prototype to here from....
6014         * integrate.h (allocate_initial_values): Remove prototype.
6015         * integrate.c: Include reload.h.
6016         (allocate_initial_values): Corresponding changes.
6017         * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
6018         (fix_reg_equiv_init, no_equiv): Corresponding changes.
6019         (update_equiv_regs): Corresponding changes.
6020         (ira): Corresponding changes.
6021         * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
6022         (push_secondary_reload): Corresponding changes.
6023         (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
6024         (make_memloc, find_reloads_address): Corresponding changes.
6025         (subst_reg_equivs, subst_indexed_address): Corresponding changes.
6026         (find_reloads_address_1): Corresponding changes.
6027         (find_reloads_subreg_address, subst_reloads): Corresponding changes.
6028         (refers_to_regno_for_reload_p): Corresponding changes.
6029         (reg_overlap_mentioned_for_reload_p): Corresponding changes.
6030         (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
6031         * reload1.c: Include ggc.h.
6032         (grow_reg_equivs): New function.
6033         (replace_pseudos_in, reload): Corresponding changes.
6034         (calculate_needs_all_insns, alter_regs): Corresponding changes.
6035         (eliminate_regs_1, elimination_effects): Corresponding changes.
6036         (emit_input_reload_insns, emit_output_reload_insns): Likewise.
6037         (delete_output_reload): Likewise.
6038         * caller-save.c (mark_referenced_regs): Corresponding changes.
6039         * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
6040         * frv/predicates.md (frv_load_operand): Corresponding changes.
6041         * microblaze/microblaze.c (double_memory_operand): Corresponding
6042         changes.
6043         * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
6044         * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
6045         * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
6046         * m68k/m68k.c (emit_move_sequence): Corresponding changes.
6047         * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
6048         changes.
6049         * pa/pa.c (emit_move_sequence): Corresponding changes.
6050         * vax/vax.c (nonindexed_address_p): Corresponding changes.
6051
6052 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
6053
6054         PR target/47551
6055         * config/arm/arm.c (coproc_secondary_reload_class): Handle
6056         structure modes.  Don't check neon_vector_mem_operand for
6057         vector or structure modes.
6058
6059 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
6060             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
6061
6062         PR target/43590
6063         * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
6064         operand 1 and reshuffle the operands to match.
6065         (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
6066
6067 2011-03-30  Christian Schüler  <cschueler@gmx.de>
6068
6069         PR driver/48208
6070         * config/c.opt (F): Added 'Driver' to -F option.
6071
6072         PR driver/48260
6073         * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
6074           handler function.
6075         * config/darwin.opt: Added '-arch' option.
6076
6077 2011-03-30  Nick Clifton  <nickc@redhat.com>
6078
6079         * config/rx/rx.md: Add peepholes and patterns to combine
6080         extending loads and simple arithmetic instructions.
6081         * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
6082         * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
6083         * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
6084         modes to use pre-decrement and post-increment addressing.
6085         (rx_is_restricted_memory_address): Add range checking of REG+INT
6086         addresses.
6087         (rx_print_operand): Add support for %Q.  Fix handling of %Q.
6088         (rx_memory_move_cost): Adjust cost of stores.
6089         (rx_adjust_insn_length): New function.
6090
6091 2011-03-30  Jakub Jelinek  <jakub@redhat.com>
6092
6093         PR c/48305
6094         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
6095         arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
6096         matching arg00/arg01 types.
6097
6098 2011-03-30  Eric Botcazou  <ebotcazou@adacore.com>
6099
6100         * cfglayout.c (insn_locators_alloc): Initialize curr_location and
6101         last_location to UNKNOWN_LOCATION.
6102
6103 2011-03-30  H.J. Lu  <hongjiu.lu@intel.com>
6104
6105         PR target/48349
6106         * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
6107         FLOAT_SSE_REGS.
6108
6109 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
6110             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6111
6112         PR bootstrap/48337
6113         * config/sparc/sparc.opt (sparc_cpu_and_features): Add
6114         Init(PROCESSOR_V7).
6115         (sparc_cpu): Likewise.
6116         * config/sparc/sparc.c (sparc_option_override): Replace 0 by
6117         PROCESSOR_V7.
6118
6119 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
6120
6121         PR target/48336
6122         PR middle-end/48342
6123         PR rtl-optimization/48345
6124         * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
6125         hard regs for given mode from profitable regs when doing secondary
6126         allocation.
6127
6128 2011-03-29  Jeff Law  <law@redhat.com>
6129
6130         PR bootstrap/48327
6131         * tree-ssa-threadupdate.c (struct redirection_data): Remove
6132         do_not_duplicate field.
6133         (lookup_redirection_data): Corresponding changes.
6134         (create_duplicates): Always create a template block.
6135         (redirect_edges): Remove code which reused the original block
6136         when it was going to become unreachable code.
6137         (thread_block): Don't set do_not_duplicate field.
6138
6139 2011-03-29  Joseph Myers  <joseph@codesourcery.com>
6140
6141         * lto-opts.c (register_user_option_p, lto_register_user_option):
6142         Make type argument unsigned.
6143         * lto-streamer.h (lto_register_user_option): Make type argument
6144         unsigned.
6145         * opth-gen.awk: Make CL_* macros unsigned.
6146         * opts-common.c (find_opt): Make lang_mask argument unsigned.
6147         * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
6148         CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
6149         CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
6150         CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
6151         CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
6152         (find_opt): Make lang_mask argument unsigned.
6153
6154 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
6155
6156         PR rtl-optimization/48331
6157         PR rtl-optimization/48334
6158         * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
6159         for any used algorithm.
6160
6161 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
6162
6163         * ira-conflicts.c (build_object_conflicts): Add unused attribute
6164         to parent_max.
6165
6166 2011-03-29  Uros Bizjak  <ubizjak@gmail.com>
6167
6168         * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
6169         (alpha_option_override): Don't set alpha_sr_alias_set.
6170         (emit_frame_store_1): Use gen_frame_mem rather than calling
6171         set_mem_alias_set.
6172         (alpha_expand_epilogue): Ditto.
6173
6174 2011-03-29  Ira Rosen  <ira.rosen@linaro.org>
6175
6176         PR tree-optimization/48290
6177         * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
6178         vectorization, check that relevant phis in the basic block after
6179         the inner loop are really inner loop's exit phis.
6180
6181 2011-03-29  Richard Sandiford  <richard.sandiford@linaro.org>
6182
6183         PR debug/48190
6184         * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
6185         (cached_dw_loc_list_def): New structure.
6186         (cached_dw_loc_list): New typedef.
6187         (cached_dw_loc_list_table): New variable.
6188         (cached_dw_loc_list_table_hash): New function.
6189         (cached_dw_loc_list_table_eq): Likewise.
6190         (add_location_or_const_value_attribute): Take a bool cache_p.
6191         Cache the list when the parameter is true.
6192         (gen_formal_parameter_die): Update caller.
6193         (gen_variable_die): Likewise.
6194         (dwarf2out_finish): Likewise.
6195         (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
6196         while generating debug info for the decl.
6197         (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
6198         (dwarf2out_init): Initialize cached_dw_loc_list_table.
6199         (resolve_addr): Cache the result of resolving a chain of
6200         location lists.
6201
6202 2011-03-28  Vladimir Makarov  <vmakarov@redhat.com>
6203
6204         * ira-color.c (update_left_conflict_sizes_p): Don't assume that
6205         conflict object hard regset nodes have intersecting hard reg sets.
6206
6207         * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
6208         after regstat_init_n_sets_and_refs.
6209
6210         * ira.c: Add more comments at the top.
6211         (setup_stack_reg_pressure_class, setup_pressure_classes):
6212         Add comments how we compute the register pressure classes.
6213         (setup_allocno_and_important_classes): Add more comments.
6214         (setup_class_translate_array, reorder_important_classes)
6215         (setup_reg_class_relations): Add comments.
6216
6217         * ira-emit.c: Add 2011 to the Copyright line.  Add comments at the
6218         start of the file.
6219
6220         * ira-color.c: Add 2011 to the Copyright line.
6221         (assign_hard_reg):  Add more comments.
6222         (improve_allocation): Ditto.
6223
6224         * ira-costs.c: Add 2011 to the Copyright line.
6225         (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
6226         comments.
6227         (setup_regno_cost_classes_by_mode): Ditto.
6228
6229         Initial patches from ira-improv branch:
6230
6231         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
6232
6233         * ira-build.c (ira_create_object): Remove initialization of
6234         OBJECT_PROFITABLE_HARD_REGS.  Initialize OBJECT_ADD_DATA.
6235         (ira_create_allocno): Remove initialization of
6236         ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
6237         ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
6238         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
6239         ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
6240         ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
6241         Initialize ALLOCNO_ADD_DATA.
6242         (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
6243         and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
6244         ALLOCNO_REG.
6245         (ira_flattening): Ditto.  Use ALLOCNO_EMIT_DATA instead of
6246         ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
6247
6248         * ira.c (ira_reallocate): Remove.
6249         (setup_pressure_classes): Call
6250         ira_init_register_move_cost_if_necessary.  Use
6251         ira_register_move_cost instead of ira_get_register_move_cost.
6252         (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
6253         (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
6254
6255         * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
6256         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
6257         ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
6258         ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
6259         instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
6260         OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
6261         Fix formatting.
6262         (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
6263         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
6264         (struct allocno_color_data): New.
6265         (allocno_color_data_t): New typedef.
6266         (allocno_color_data): New definition.
6267         (ALLOCNO_COLOR_DATA): New macro.
6268         (struct object_color_data): New.
6269         (object_color_data_t): New typedef.
6270         (object_color_data): New definition.
6271         (OBJECT_COLOR_DATA): New macro.
6272         (update_copy_costs, calculate_allocno_spill_cost): Call
6273         ira_init_register_move_cost_if_necessary.  Use
6274         ira_register_move_cost instead of ira_get_register_move_cost.
6275         (move_spill_restore, update_curr_costs): Ditto.
6276         (allocno_spill_priority): Make it inline.
6277         (color_pass): Allocate and free allocno_color_dat and object_color_data.
6278         (struct coalesce_data, coalesce_data_t): New.
6279         (allocno_coalesce_data): New definition.
6280         (ALLOCNO_COALESCE_DATA): New macro.
6281         (merge_allocnos, coalesced_allocno_conflict_p): Use
6282         ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
6283         ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
6284         (coalesce_allocnos): Ditto.
6285         (setup_coalesced_allocno_costs_and_nums): Ditto.
6286         (collect_spilled_coalesced_allocnos): Ditto.
6287         (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
6288         (setup_slot_coalesced_allocno_live_ranges): Ditto.
6289         (coalesce_spill_slots): Ditto.
6290         (ira_sort_regnos_for_alter_reg): Ditto.  Allocate, initialize and
6291         free allocno_coalesce_data.
6292
6293         * ira-conflicts.c: Fix formatting.
6294         (process_regs_for_copy): Call
6295         ira_init_register_move_cost_if_necessary.  Use
6296         ira_register_move_cost instead of ira_get_register_move_cost.
6297         (build_object_conflicts): Optimize.
6298
6299         * ira-costs.c (record_reg_classes): Optimize.  Call
6300         ira_init_register_move_cost_if_necessary.  Use
6301         ira_register_move_cost, ira_may_move_in_cost, and
6302         ira_may_move_out_cost instead of ira_get_register_move_cost and
6303         ira_get_may_move_cost.
6304         (record_address_regs): Ditto.
6305         (scan_one_insn): Optimize.
6306         (find_costs_and_classes): Optimize.
6307         (process_bb_node_for_hard_reg_moves): Call
6308         ira_init_register_move_cost_if_necessary.  Use
6309         ira_register_move_cost instead of ira_get_register_move_cost.
6310
6311         * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
6312         ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
6313         ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
6314         (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
6315         definitions.
6316         (ira_initiate_emit_data, ira_finish_emit_data)
6317         (create_new_allocno): New functions.
6318         (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
6319         (emit_move_list): Call ira_init_register_move_cost_if_necessary.
6320         Use ira_register_move_cost instead of ira_get_register_move_cost.
6321
6322         * ira-int.h: Fix some comments.
6323         (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
6324         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
6325         (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
6326         hard_regs_subnodes_start, hard_regs_subnodes_num.  Add new member
6327         add_data.
6328         (struct ira_allocno): Make mode and aclass a bitfield.  Move other
6329         bitfield after mode.  Make hard_regno a short int.  Make
6330         hard_regno short.  Remove first_coalesced_allocno and
6331         next_coalesced_allocno.  Move mem_optimized_dest_p,
6332         somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
6333         into struct ira_emit_data.  Remove in_graph_p, may_be_spilled_p,
6334         available_regs_num, next_bucket_allocno, prev_bucket_allocno,
6335         temp, colorable_p.  Add new member add_data.
6336         (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
6337         (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
6338         (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
6339         (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
6340         (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
6341         (ALLOCNO_ADD_DATA): New macro.
6342         (ira_emit_data_t): New typedef.
6343         (struct ira_emit_data): New.  Move mem_optimized_dest_p,
6344         somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
6345         from struct ira_allocno.
6346         (ALLOCNO_EMIT_DATA): New macro.
6347         (ira_allocno_emit_data, allocno_emit_reg): New.
6348         (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
6349         (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
6350         (OBJECT_ADD_DATA): New macro.
6351         (ira_reallocate): Remove.
6352         (ira_initiate_emit_data, ira_finish_emit_data): New.
6353         (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
6354         (ira_init_register_move_cost_if_necessary): New.
6355         (ira_object_conflict_iter_next): Merge into
6356         ira_object_conflict_iter_cond.
6357         (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
6358
6359         * ira-live.c (process_single_reg_class_operands): Call
6360         ira_init_register_move_cost_if_necessary.  Use
6361         ira_register_move_cost instead of ira_get_register_move_cost.
6362
6363         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
6364
6365         * ira-int.h (struct target_ira_int): Remove x_cost_classes.
6366
6367         * ira-costs.c: Fix formatting.
6368         (cost_classes, cost_classes_num): Remove.
6369         (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
6370         (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
6371         (cost_classes_del, cost_classes_htab): New.
6372         (cost_classes_aclass_cache, cost_classes_mode_cache): New.
6373         (initiate_regno_cost_classes, setup_cost_classes): New.
6374         (setup_regno_cost_classes_by_aclass): New.
6375         (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
6376         (record_reg_classes): Use regno_cost_classes instead of
6377         cost_classes.  Move checking opposite operand up.
6378         (record_address_regs): Use regno_cost_classes
6379         instead of cost_classes.
6380         (scan_one_insn): Ditto.  Use always general register.
6381         (print_allocno_costs): Use regno_cost_classes instead of
6382         cost_classes.
6383         (print_pseudo_costs): Ditto.  Use Reg_N_REFS.
6384         (find_costs_and_classes): Set up cost classes for each registers.
6385         Use also their mode for this.  Use regno_cost_classes instead of
6386         cost_classes.
6387         (setup_allocno_class_and_costs): Use regno_cost_classes instead of
6388         cost_classes.
6389         (free_ira_costs, ira_init_costs): Don't use cost_classes.
6390         (ira_costs, ira_set_pseudo_classes): Call
6391         initiate_regno_cost_classes and finish_regno_cost_classes.
6392
6393         2010-10-04  Vladimir Makarov  <vmakarov@redhat.com>
6394
6395         * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
6396
6397         * target.def (ira_cover_classes): Remove.
6398
6399         * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
6400
6401         * doc/tm.texi.in: Ditto.
6402
6403         * ira-conflicts.c: Remove mentioning cover classes from the file.
6404         Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Use
6405         ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST.  Fix formatting.
6406
6407         * targhooks.c (default_ira_cover_classes): Remove.
6408
6409         * targhooks.h (default_ira_cover_classes): Ditto.
6410
6411         * haifa-sched.c: Remove mentioning cover classes from the file.
6412         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
6413         ira_pressure_classes and ira_pressure_classes_num instead of
6414         ira_reg_class_cover_size and ira_reg_class_cover.  Use
6415         sched_regno_pressure_class instead of sched_regno_cover_class.
6416         (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
6417         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
6418
6419         * ira-int.h: Add 2010 to Copyright.  Remove mentioning cover
6420         classes from the file.
6421         (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
6422         (struct object_hard_regs, struct object_hard_regs_node): New.
6423         (struct ira_object): New members profitable_hard_regs,
6424         hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
6425         (struct ira_allocno): Rename cover_class to aclass.  Rename
6426         cover_class_cost and updated_cover_class_cost to class_cost and
6427         updated_class_cost.  Remove splay_removed_p and
6428         left_conflict_size.  Add new members colorable_p.
6429         (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
6430         (ALLOCNO_COLORABLE_P): New macro.
6431         (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
6432         (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
6433         Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
6434         (OBJECT_...): Rename parameter C to O.
6435         (OBJECT_PROFITABLE_HARD_REGS): New macro.
6436         (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
6437         (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
6438         (struct target_ira_int): New members x_ira_max_memory_move_cost,
6439         x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
6440         x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
6441         x_ira_reg_pressure_class_p, x_ira_important_class_nums,
6442         x_ira_reg_class_superunion.  Rename x_prohibited_class_mode_reg to
6443         x_ira_prohibited_class_mode_reg.  Rename x_ira_reg_class_union to
6444         x_ira_reg_class_subunion.
6445         (ira_max_memory_move_cost, ira_max_register_move_cost)
6446         (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
6447         (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
6448         (ira_important_class_nums, ira_reg_class_superunion): New macros.
6449         (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
6450         (ira_reg_class_union): Rename to ira_reg_class_subunion.
6451         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
6452         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
6453         (ira_tune_allocno_costs_and_cover_classes): Rename to
6454         ira_tune_allocno_costs.
6455         (ira_debug_hard_regs_forest): New.
6456         (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
6457         (ira_object_conflict_iter_next): Fix comments.
6458         (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
6459         (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
6460         cover_class to aclass.
6461         (ira_allocate_and_accumulate_costs): Ditto.
6462         (ira_allocate_and_set_or_copy_costs): Ditto.
6463
6464         * opts.c (decode_options): Remove ira_cover_class check.
6465
6466         * ira-color.c: Remove mentioning cover classes from the file.  Use
6467         ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
6468         instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
6469         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
6470         (splay-tree.h): Remove include.
6471         (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
6472         before copy_freq_compare_func.
6473         (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
6474         (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
6475         New definitions.
6476         (hard_regs_roots, hard_regs_node_vec): Ditto.
6477         (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
6478         (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
6479         (finish_object_hard_regs, object_hard_regs_compare): Ditto.
6480         (create_new_object_hard_regs_node): Ditto.
6481         (add_new_object_hard_regs_node_to_forest): Ditto.
6482         (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
6483         (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
6484         Ditto.
6485         (print_hard_reg_set, print_hard_regs_subforest): Ditto.
6486         (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
6487         (remove_unused_object_hard_regs_nodes): Ditto.
6488         (enumerate_object_hard_regs_nodes): Ditto.
6489         (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
6490         (object_hard_regs_subnode_t): Ditto.
6491         (struct object_hard_regs_subnode): Ditto.
6492         (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
6493         (setup_object_hard_regs_subnode_index): Ditto.
6494         (get_object_hard_regs_subnodes_num): Ditto.
6495         (form_object_hard_regs_nodes_forest): Ditto.
6496         (finish_object_hard_regs_nodes_tree): Ditto.
6497         (finish_object_hard_regs_nodes_forest): Ditto.
6498         (allocnos_have_intersected_live_ranges_p): Rename to
6499         allocnos_conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
6500         (pseudos_have_intersected_live_ranges_p): Rename to
6501         conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
6502         (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
6503         (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
6504         (update_copy_costs): Remove assert.  Skip cost update if the hard
6505         reg does not belong the class.
6506         (assign_hard_reg): Process only profitable hard regs.
6507         (uncolorable_allocnos_num): Make it scalar.
6508         (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
6509         and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
6510         and ira_reg_class_max_nregs.
6511         (bucket_allocno_compare_func): Check frequency first.
6512         (sort_bucket): Add compare function as a parameter.
6513         (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
6514         (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
6515         (push_allocno_to_stack): Rewrite for checking new allocno
6516         colorability.
6517         (remove_allocno_from_bucket_and_push): Print cost too.  Remove assert.
6518         (push_only_colorable): Pass new parameter to sort_bucket.
6519         (push_allocno_to_spill): Remove.
6520         (allocno_spill_priority_compare): Make it inline and rewrite.
6521         (splay_tree_allocate, splay_tree_free): Remove.
6522         (allocno_spill_sort_compare): New function.
6523         (push_allocnos_to_stack): Sort allocnos for spilling once.  Don't
6524         build and use splay tree.  Choose first allocno in uncolorable
6525         allocno bucket to spill.  Remove setting spill cost.
6526         (all_conflicting_hard_regs): Remove.
6527         (setup_allocno_available_regs_num): Check only profitable hard
6528         regs.  Print info about hard regs nodes.
6529         (setup_allocno_left_conflicts_size): Remove.
6530         (put_allocno_into_bucket): Don't call
6531         setup_allocno_left_conflicts_size.  Use setup_left_conflict_sizes_p.
6532         (improve_allocation): New.
6533         (color_allocnos): Call setup_profitable_hard_regs,
6534         form_object_hard_regs_nodes_forest, improve_allocation,
6535         finish_object_hard_regs_nodes_forest.  Setup spill cost.
6536         (print_loop_title): Use pressure classes.
6537         (color_allocnso): Ditto.
6538         (do_coloring): Remove allocation and freeing splay_tree_node_pool
6539         and allocnos_for_spilling.
6540         (ira_sort_regnos_for_alter_reg): Don't setup members
6541         {first,next}_coalesced_allocno.
6542         (color): Remove allocating and freeing removed_splay_allocno_vec.
6543         (fast_allocation): Use ira_prohibited_class_mode_regs instead of
6544         prohibited_class_mode_regs.
6545
6546         * ira-lives.c: Remove mentioning cover classes from the file.  Fix
6547         formatting.
6548         (update_allocno_pressure_excess_length): Use pressure classes.
6549         (inc_register_pressure, dec_register_pressure): Check for pressure
6550         class.
6551         (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
6552         pressure class.  Use ira_reg_class_nregs instead of
6553         ira_reg_class_max_nregs.
6554         (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
6555         (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
6556         (single_reg_class): Use ira_reg_class_nregs instead of
6557         ira_reg_class_max_nregs.
6558         (process_bb_node_lives): Use pressure classes.
6559
6560         * ira-emit.c: Remove mentioning cover classes from the file.  Use
6561         ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Fix formatting.
6562         (change_loop): Use pressure classes.
6563         (modify_move_list): Call ira_set_allocno_class instead of
6564         ira_set_allocno_cover_class.
6565
6566         * ira-build.c: Remove mentioning cover classes from the file.  Use
6567         ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
6568         ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST.  Use
6569         ALLOCNO_UPDATED_CLASS_COST instead of
6570         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
6571         (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
6572         (ira_create_allocno): Remove initialization of
6573         ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE.  Initialize
6574         ALLOCNO_COLORABLE_P.
6575         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
6576         Update conflict regs for the objects.
6577         (create_cap_allocno): Remove assert.  Don't propagate
6578         ALLOCNO_AVAILABLE_REGS_NUM.
6579         (ira_free_allocno_costs): New function.
6580         (finish_allocno): Change a part of code into call of
6581         ira_free_allocno_costs.
6582         (low_pressure_loop_node_p): Use pressure classes.
6583         (object_range_compare_func): Don't compare classes.
6584         (setup_min_max_conflict_allocno_ids): Ditto.
6585
6586         * loop-invariant.c: Remove mentioning cover classes from the file.
6587         Use ira_pressure_classes and ira_pressure_classes_num instead of
6588         ira_reg_class_cover_size and ira_reg_class_cover.  Fix formatting.
6589         (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
6590         Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
6591         Use reg_allocno_class instead of reg_cover_class.
6592         (get_inv_cost): Use instead ira_stack_reg_pressure_class of
6593         STACK_REG_COVER_CLASS.
6594         (get_regno_cover_class): Rename to get_regno_pressure_class.
6595         (move_loop_invariants): Initialize and finalize regstat.
6596
6597         * ira.c: Remove mentioning cover classes from the file.  Add
6598         comments about coloring without cover classes.  Use ALLOCNO_CLASS
6599         instead of ALLOCNO_COVER_CLASS.  Fix formatting.
6600         (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
6601         setup_class_subset_and_memory_move_costs.
6602         (setup_stack_reg_pressure_class, setup_pressure_classes): New.
6603         (setup_cover_and_important_classes): Rename to
6604         setup_allocno_and_important_classes.
6605         (setup_class_translate_array): New.
6606         (setup_class_translate): Call it for allocno and pressure classes.
6607         (cover_class_order): Rename to allocno_class_order.
6608         (comp_reg_classes_func): Use ira_allocno_class_translate instead
6609         of ira_class_translate.
6610         (reorder_important_classes): Set up ira_important_class_nums.
6611         (setup_reg_class_relations): Set up ira_reg_class_superunion.
6612         (print_class_cover): Rename to print_classes.  Add parameter.
6613         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
6614         Print pressure classes too.
6615         (find_reg_class_closure): Rename to find_reg_classes.  Don't call
6616         setup_reg_subclasses.
6617         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
6618         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
6619         (setup_prohibited_class_mode_regs): Use
6620         ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
6621         (clarify_prohibited_class_mode_regs): New function.
6622         (ira_init_register_move_cost): Set up ira_max_register_move_cost,
6623         ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
6624         (ira_init_once): Initialize them.
6625         (free_register_move_costs): Process them.
6626         (ira_init): Move calls of find_reg_classes and
6627         setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
6628         Call clarify_prohibited_class_mode_regs.
6629         (ira_no_alloc_reg): Remove.
6630         (too_high_register_pressure_p): Use pressure classes.
6631
6632         * sched-deps.c: Remove mentioning cover classes from the file.
6633         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
6634         ira_pressure_classes and ira_pressure_classes_num instead of
6635         ira_reg_class_cover_size and ira_reg_class_cover.
6636         (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
6637         sched_regno_pressure_class instead of sched_regno_cover_class.
6638         (mark_insn_pseudo_birth, mark_pseudo_death): Ditto.  Use
6639         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
6640
6641         * ira.h: Add 2010 to Copyright.
6642         (ira_no_alloc_reg): Remove external.
6643         (struct target_ira): Rename x_ira_hard_regno_cover_class,
6644         x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
6645         x_ira_class_translate to x_ira_hard_regno_allocno_class,
6646         x_ira_allocno_classes_num, x_ira_allocno_classes, and
6647         x_ira_allocno_class_translate.  Add x_ira_pressure_classes_num,
6648         x_ira_pressure_classes, x_ira_pressure_class_translate, and
6649         x_ira_stack_reg_pressure_class.  Rename x_ira_reg_class_nregs to
6650         x_ira_reg_class_max_nregs.  Add x_ira_reg_class_min_nregs and
6651         x_ira_no_alloc_regs.
6652         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
6653         (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
6654         ira_allocno_classes_num and ira_allocno_classes.
6655         (ira_class_translate): Rename to ira_allocno_class_translate.
6656         (ira_pressure_classes_num, ira_pressure_classes): New definitions.
6657         (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
6658         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
6659         (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
6660         (ira_no_alloc_regs): New.
6661
6662         * ira-costs.c: Add 2010 to Copyright.  Remove mentioning cover
6663         classes from the file.  Use ALLOCNO_CLASS instead of
6664         ALLOCNO_COVER_CLASS.  Use ALLOCNO_CLASS_COST instead of
6665         ALLOCNO_COVER_CLASS_COST.
6666         (regno_cover_class): Rename to regno_aclass.
6667         (record_reg_classes): Use ira_reg_class_subunion instead of
6668         ira_reg_class_union.
6669         (record_address_regs): Check overflow.
6670         (scan_one_insn): Ditto.
6671         (print_allocno_costs): Print total mem cost fore regional allocation.
6672         (print_pseudo_costs): Use REG_N_REFS.
6673         (find_costs_and_classes): Use classes intersected with them on the
6674         1st pass. Check overflow.  Use ira_reg_class_subunion instead of
6675         ira_reg_class_union.  Use ira_allocno_class_translate and
6676         regno_aclass instead of ira_class_translate and regno_cover_class.
6677         Modify code for finding regno_aclass.  Setup preferred classes for
6678         the next pass.
6679         (setup_allocno_cover_class_and_costs): Rename to
6680         setup_allocno_class_and_costs.  Use regno_aclass instead of
6681         regno_cover_class.  Use ira_set_allocno_class instead of
6682         ira_set_allocno_cover_class.
6683         (init_costs, finish_costs): Use regno_aclass instead of
6684         regno_cover_class.
6685         (ira_costs): Use setup_allocno_class_and_costs instead of
6686         setup_allocno_cover_class_and_costs.
6687         (ira_tune_allocno_costs_and_cover_classes): Rename to
6688         ira_tune_allocno_costs.  Check overflow.  Skip conflict hard regs
6689         by processing objects.  Use ira_reg_class_max_nregs instead of
6690         ira_reg_class_nregs.
6691
6692         * rtl.h (reg_cover_class): Rename to reg_allocno_class.
6693
6694         * sched-int.h: Remove mentioning cover classes from the file.
6695         (sched_regno_cover_class): Rename to sched_regno_pressure_class.
6696
6697         * reginfo.c: Add 2010 to Copyright.  Remove mentioning cover
6698         classes from the file.
6699         (struct reg_pref): Rename coverclass into allocnoclass.
6700         (reg_cover_class): Rename to reg_allocno_class.
6701
6702         * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
6703
6704         * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
6705
6706         * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
6707
6708         * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
6709
6710         * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
6711
6712         * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
6713
6714         * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
6715
6716         * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
6717
6718         * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
6719
6720         * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
6721
6722         * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
6723         (i386_ira_cover_classes): Ditto.
6724
6725         * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
6726
6727         * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
6728
6729         * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
6730
6731         * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
6732
6733         * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
6734
6735         * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
6736
6737         * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
6738         (mips_ira_cover_classes): Ditto.
6739
6740         * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
6741
6742         * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
6743
6744         * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
6745
6746         * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
6747
6748         * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
6749
6750         * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
6751         (IRA_COVER_CLASSES_VSX): Ditto.
6752
6753         * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
6754         (rs6000_ira_cover_classes): Ditto.
6755
6756         * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
6757
6758         * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
6759
6760         * config/score/score.h (IRA_COVER_CLASSES): Ditto.
6761
6762         * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
6763
6764         * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
6765
6766         * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
6767
6768         * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
6769
6770         * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
6771
6772         * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
6773
6774         * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
6775
6776 2011-03-29  Jakub Jelinek  <jakub@redhat.com>
6777
6778         PR debug/48253
6779         * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
6780         dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
6781         dw_fde_unlikely_section_end_label, cold_in_std_section,
6782         dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
6783         Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
6784         fields.
6785         (output_fde): Use dw_fde_second_{begin,end} if second is
6786         true, otherwise dw_fde_{begin,end}.
6787         (output_call_frame_info): Test dw_fde_second_begin != NULL
6788         instead of dw_fde_switched_sections.
6789         (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
6790         fields, initialize new fields.  Initialize in_std_section
6791         unconditionally from the first partition.
6792         (dwarf2out_end_epilogue): Don't override dw_fde_end when
6793         dw_fde_second_begin is non-NULL.
6794         (dwarf2out_switch_text_section): Stop initializing removed
6795         dw_fde_struct fields, initialize new fields, initialize
6796         also dw_fde_end here.  Set dw_fde_switch_cfi even when
6797         dwarf2out_do_cfi_asm ().  Call var_location_switch_text_section.
6798         (struct var_loc_list_def): Add last_before_switch field.
6799         (arange_table, arange_table_allocated, arange_table_in_use,
6800         ARANGE_TABLE_INCREMENT, add_arange): Removed.
6801         (size_of_aranges): Count !in_std_section and !second_in_std_section
6802         hunks in fdes, instead of looking at arange_table_in_use.
6803         (output_aranges): Add aranges_length argument, don't call
6804         size_of_aranges here.  Instead of using aranges_table*
6805         emit ranges for fdes when !in_std_section resp.
6806         !second_in_std_section.
6807         (dw_loc_list): Break ranges crossing section switch.
6808         (convert_cfa_to_fb_loc_list): Likewise.  If switched sections,
6809         use dw_fde_second_end instead of dw_fde_end as end of last range.
6810         (gen_subprogram_die): Don't call add_arange.  Use
6811         dw_fde_{begin,end} for first partition and if switched
6812         section dw_fde_second_{begin,end} for the second.
6813         (var_location_switch_text_section_1,
6814         var_location_switch_text_section): New functions.
6815         (dwarf2out_begin_function): Initialize cold_text_section even
6816         when function_section () isn't text_section.
6817         (prune_unused_types): Don't walk arange_table.
6818         (dwarf2out_finish): Don't needlessly test
6819         flag_reorder_blocks_and_partition when testing cold_text_section_used.
6820         If info_section_emitted, call size_of_aranges and if it indicates
6821         non-empty .debug_aranges, call output_aranges with the computed
6822         size.  Stop using removed dw_fde_struct fields, use
6823         dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
6824         for second.
6825
6826         PR debug/48203
6827         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
6828         create ENTRY_VALUE if incoming or address of incoming's MEM
6829         is a hard REG.
6830         * dwarf2out.c (mem_loc_descriptor): Don't emit
6831         DW_OP_GNU_entry_value of DW_OP_fbreg.
6832         * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
6833         on ENTRY_VALUE is able to find the canonical parameter VALUE.
6834         * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
6835         rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
6836         ENTRY_VALUE_EXPs.
6837         (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
6838         is a REG_P or MEM_P with REG_P address, compute hash directly
6839         instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
6840         (preserve_only_constants): Don't clear VALUES forwaring
6841         ENTRY_VALUE to some other VALUE.
6842
6843 2011-03-28  Richard Sandiford  <richard.sandiford@linaro.org>
6844
6845         * builtins.c (expand_builtin_memset_args): Use gen_int_mode
6846         instead of GEN_INT.
6847
6848 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
6849
6850         * cfgexpand.c (expand_gimple_cond): Always set the source location and
6851         block before expanding the statement.
6852         (expand_gimple_stmt_1): Likewise.  Set them here...
6853         (expand_gimple_stmt): ...and not here.  Tidy.
6854         * cfglayout.c (curr_insn_locator): Return 0 if the current location is
6855         unknown.
6856
6857 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
6858
6859         * Makefile.in: New rule for cprop.o.
6860         * gcse.c: Move constant/copy propagation to cprop.c.
6861         (compute_local_properties): Only handle expression tables.
6862         (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
6863         (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
6864         (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
6865         next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
6866         mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
6867         compute_cprop_data, find_used_regs, try_replace_reg,
6868         find_avail_set, cprop_jump, constprop_register, cprop_insn,
6869         local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
6870         fis_get_condition, implicit_set_cond_p, find_implicit_sets,
6871         find_bypass_set, reg_killed_on_edge, bypass_block,
6872         bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
6873         execute_rtl_cprop, pass_rtl_cprop): Move to...
6874         * cprop.c: ...here.  New file, constant/copy propagation for RTL
6875         moved from gcse.c to here with minor cleanups in duplicated code.
6876
6877 2011-03-28  H.J. Lu  <hongjiu.lu@intel.com>
6878
6879         * config/i386/i386.c (flag_opts): Fix a typo in
6880         -mavx256-split-unaligned-store.
6881
6882 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
6883
6884         * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
6885         LIBCALL_VALUE): Remove macros.
6886         * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
6887         TARGET_FUNCTION_VALUE_REGNO_P): Define.
6888         (h8300_function_value, h8300_libcall_value,
6889         h8300_function_value_regno_p): New functions.
6890
6891 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
6892
6893         * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
6894
6895 2011-03-28  Jeff Law  <law@redhat.com>
6896
6897         * tree-ssa-threadupdate.c (redirect_edges): Call
6898         create_edge_and_update_destination_phis as needed.
6899         (create_edge_and_update_destination_phis): Accept new BB argument.
6900         All callers updated.
6901         (thread_block): Do not update the profile when threading around
6902         intermediate blocks.
6903         (thread_single_edge): Likewise.
6904         (determine_bb_domination_status): If BB is not a successor of the
6905         loop header, return NONDOMINATING.
6906         (register_jump_thread): Note when we register a jump thread around
6907         an intermediate block.
6908         * tree-ssa-threadedge.c (thread_around_empty_block): New function.
6909         (thread_across_edge): Use it.
6910
6911 2011-03-28  Tristan Gingold  <gingold@adacore.com>
6912
6913         * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
6914         when for_return is 2.
6915
6916 2011-03-28  Jeff Law  <law@redhat.com>
6917
6918         * var-tracking.c (canonicalize_values_mark): Delete unused
6919         lhs assignment.
6920         (canonicalize_values_star, set_variable_part): Likewise.
6921         (clobber_variable_part, delete_variable_part): Likewise.
6922
6923 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
6924
6925         * gcse.c (free_gcse_mem): Free reg_set_bitmap.
6926
6927 2011-03-28  Martin Jambor  <mjambor@suse.cz>
6928
6929         * tree-inline.c (expand_call_inline): Do not check that destination
6930         node is analyzed.
6931         (optimize_inline_calls): Assert that destination node is analyzed.
6932         * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
6933         not call tree_lowering_passes.
6934         * cgraph.h (cgraph_analyze_function): Declare.
6935         * cgraphunit.c (cgraph_analyze_function): Make public.
6936
6937 2011-03-28  Joseph Myers  <joseph@codesourcery.com>
6938
6939         * config/sparc/sparc-opts.h: New.
6940         * config/sparc/sparc.c (sparc_handle_option, sparc_select,
6941         sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
6942         (sparc_option_override): Store processor_type enumeration rather
6943         than string in cpu_default.  Remove name and enumeration from
6944         cpu_table.  Directly default -mcpu then default -mtune from -mcpu
6945         without using sparc_select.  Use target_flags_explicit instead of
6946         fpu_option_set.
6947         * config/sparc/sparc.h (enum processor_type): Move to
6948         sparc-opts.h.
6949         (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
6950         * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
6951         HeaderInclude entry.
6952         (mcpu=, mtune=): Use Var and Enum.
6953         (sparc_processor_type): New Enum and EnumValue entries.
6954
6955 2011-03-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6956             Iain Sandoe  <iains@gcc.gnu.org>
6957
6958         PR target/48245
6959         * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
6960
6961 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
6962
6963         * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
6964         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
6965         Insert new statements at it in lieu of STMT.
6966         (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
6967         * tree-vect-stmts.c (vectorizable_store): Likewise.
6968         (vectorizable_load): Likewise.
6969
6970 2011-03-28  Uros Bizjak  <ubizjak@gmail.com>
6971
6972         * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
6973         (divtf3): Ditto.
6974         (multf3): Ditto.
6975         (subtf3): Ditto.
6976
6977 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
6978
6979         * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
6980         unaligned 256bit load/store.
6981         (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
6982         (*avx_movdqu<avxmodesuffix>): Likewise.
6983
6984 2011-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6985
6986         PR target/48288
6987         * config/pa/predicates.md (reg_or_ior_operand): New predicate.
6988         * config/pa/pa.md (iordi3): Use new predicate in expander.
6989         (iorsi3): Likewise.
6990
6991 2011-03-27  Anatoly Sokolov  <aesok@post.ru>
6992
6993         * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
6994         FUNCTION_VALUE_REGNO_P): Remove macros.
6995         * config/mips/mips-protos.h (mips_function_value): Remove.
6996         * config/mips/mips.c (mips_function_value): Rename to...
6997         (mips_function_value_1): ... this. Make static.  Handle receiving
6998         the function type in 'fn_decl_or_type' argument.
6999         (mips_function_value, mips_libcall_value,
7000         mips_function_value_regno_p): New function.
7001         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
7002         TARGET_FUNCTION_VALUE_REGNO_P): Define.
7003
7004 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
7005
7006         * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
7007         and -mavx256-split-unaligned-store.
7008         (ix86_option_override_internal): Split 32-byte AVX unaligned
7009         load/store by default.
7010         (ix86_avx256_split_vector_move_misalign): New.
7011         (ix86_expand_vector_move_misalign): Use it.
7012
7013         * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
7014         -mavx256-split-unaligned-store.
7015
7016         * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
7017         256bit load/store.  Generate unaligned store on misaligned memory
7018         operand.
7019         (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
7020         256bit load/store.
7021         (*avx_movdqu<avxmodesuffix>): Likewise.
7022
7023         * doc/invoke.texi: Document -mavx256-split-unaligned-load and
7024         -mavx256-split-unaligned-store.
7025
7026 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
7027
7028         PR target/38598
7029         * config/mips/mips.md (extendsidi2): Add an "l" alternative.
7030         Update commentary.
7031
7032 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
7033
7034         * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
7035         opno arguments with an expand_operand.  Use create_input_operand.
7036         (mips_prepare_builtin_target): Delete.
7037         (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
7038         functions.
7039         (mips_expand_builtin_direct): Use create_output_operand and
7040         mips_expand_builtin_insn.  Update call to mips_prepare_builtin_arg.
7041         (mips_expand_builtin_movtf): Likewise.  Use mips_expand_fp_comparison.
7042         (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
7043
7044 2011-03-27  Ira Rosen  <ira.rosen@linaro.org>
7045
7046         * config/arm/arm.c (arm_autovectorize_vector_sizes): New
7047         function.
7048         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
7049
7050 2011-03-26  Eric Botcazou  <ebotcazou@adacore.com>
7051
7052         * basic-block.h (fixup_abnormal_edges): Adjust prototype.
7053         * reload1.c (reload): Adjust call to fixup_abnormal_edges.  Rediscover
7054         basic blocks and call commit_edge_insertions directly.
7055         (fixup_abnormal_edges): Move from here to...
7056         * cfgrtl.c (fixup_abnormal_edges): ...here.  Only insert instructions
7057         on the edges and return whether some have actually been inserted.
7058         * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
7059         compensation code.
7060
7061 2011-03-26  Andrey Belevantsev  <abel@ispras.ru>
7062
7063         PR rtl-optimization/48144
7064         * sel-sched-ir.c (merge_history_vect): Factor out from ...
7065         (merge_expr_data): ... here.
7066         (av_set_intersect): Rename to av_set_code_motion_filter.
7067         Update all callers.  Call merge_history_vect when an expression
7068         is found in both sets.
7069         * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
7070
7071 2011-03-26  Alan Modra  <amodra@gmail.com>
7072
7073         * config/rs6000/predicates.md (word_offset_memref_op): Handle
7074         cmodel medium addresses.
7075         * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
7076         64-bit gpr loads and stores.
7077         (rs6000_secondary_reload_ppc64): New function.
7078         * config/rs6000/rs6000-protos.h: Declare it.
7079         * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
7080
7081 2011-03-26  Alan Modra  <amodra@gmail.com>
7082
7083         PR target/47487
7084         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
7085         GNU Go in traceback table.
7086
7087 2011-03-25  Richard Henderson  <rth@redhat.com>
7088
7089         * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
7090         if there are exactly 6 operands.
7091         (set_storage_via_setmem): Similarly.
7092
7093 2011-03-25  Kai Tietz  <ktietz@redhat.com>
7094
7095         * collect2.c (write_c_file_stat): Handle backslash
7096         as right-hand directory separator.
7097         (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
7098         checking just for slash.
7099         * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
7100         instead of checking for trailing slash.
7101         * gcc.c (record_temp_file): Use filename_cmp instead
7102         of strcmp.
7103         (do_spec_1): Likewise.
7104         (replace_outfile_spec_function): Likewise.
7105         (is_directory): Use filename_ncmp instead of strncmp.
7106         (print_multilib_info): Likewise.
7107         * gcov.c (find_source): Use filename_cmp instead
7108         instead of strcmp.
7109         (make_gcov_file_name): Fix order of slash/backslash
7110         checks.
7111         * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
7112         (add_standard_paths): Likewise.
7113         * mips-tfile.c (saber_stop): Handle backslash.
7114         * prefix.c (update_path): Use filename_ncmp instead of
7115         strncmp.
7116         * profile.c (output_location): Use filename_cmp instead
7117         of strcmp.
7118         * read-md.c (handle_toplevel_file): Handle backslash.
7119         * tlink.c (frob_extension):  Likewise.
7120         * tree-cfg.c (same_line_p): Use filename_cmp instead of
7121         strcmp.
7122         * tree-dump.c (dequeue_and_dump): Handle backslash.
7123         * tree.c (get_file_function_name): Likewise.
7124         * gengtype.c (read_input_list): Likewise.
7125         (get_file_realbasename): Likewise.
7126         (get_output_file_with_visibility): Use filename_cmp
7127         instead of strcmp.
7128
7129 2011-03-25  Richard Sandiford  <richard.sandiford@linaro.org>
7130
7131         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
7132         case to VFPv1.
7133
7134 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
7135
7136         * fold-const.c (expr_location_or): New function.
7137         (fold_truth_not_expr): Call it.
7138
7139 2011-03-25  Jeff Law  <law@redhat.com>
7140
7141         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
7142         va_end.
7143         * c-family/c-common.c (def_fn_type): Likewise.
7144         * ada/gcc-interface/utils.c (def_fn_type): Likewise.
7145         * emit-rtl.c (gen_rtvec): Likewise.
7146         * lto/lto-lang.c (def_fn_type): Likewise.
7147
7148 2011-03-25  Richard Guenther  <rguenther@suse.de>
7149
7150         * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
7151         also generate copies.
7152         (fini_copy_prop): Handle constant values properly.
7153
7154 2011-03-25  Jakub Jelinek  <jakub@redhat.com>
7155
7156         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
7157         mode size instead of bitsize with DWARF2_ADDR_SIZE.
7158         (hash_loc_operands, compare_loc_operands): Handle
7159         DW_OP_GNU_entry_value.
7160
7161 2011-03-25  Kai Tietz  <ktietz@redhat.com>
7162
7163         * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
7164         (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
7165         * config/i386/i386.c (ix86_conditional_register_usage): Adjust
7166         comment and use macro TARGET_64BIT_MS_ABI instead.
7167         (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
7168         and change default behavior for 32-bit MS_ABI.
7169         (ix86_reg_parm_stack_space): Check additionally for bit-ness.
7170         (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
7171         32-bit, too.
7172         (ix86_cfun_abi): Likewise.
7173         (ix86_maybe_switch_abi): Adjust comment.
7174         (init_cumulative_args): Check for bit-ness in MS_ABI case.
7175         (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
7176         instead of checking for SYSV_ABI.
7177         (ix86_nsaved_sseregs): Likewise.
7178         (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
7179         to 16 bytes.
7180         (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
7181         * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
7182         (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
7183         (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
7184         * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
7185
7186 2011-03-25  Richard Guenther  <rguenther@suse.de>
7187
7188         * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
7189         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
7190         (verify_gimple): Remove.
7191         * tree-cfg.c (verify_gimple_call): Merge verification
7192         from verify_stmts.
7193         (verify_gimple_phi): Merge verification from verify_stmts.
7194         (verify_gimple_label): New function.
7195         (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
7196         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
7197         (verify_stmt): Merge into verify_gimple_in_cfg and callees.
7198         (verify_stmts): Rename to verify_gimple_in_cfg.
7199         (verify_gimple_in_cfg): New function.
7200         * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
7201         * tree-ssa.c (verify_ssa): Likewise.
7202         * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
7203
7204 2011-03-25  Richard Guenther  <rguenther@suse.de>
7205
7206         * passes.c (init_optimization_passes): Add FRE pass after
7207         early SRA.
7208
7209 2011-03-25  Bernd Schmidt  <bernds@codesourcery.com>
7210             Andrew Stubbs  <ams@codesourcery.com>
7211
7212         * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
7213         for Cortex-A8.
7214         (arm_movdi_vfp_cortexa8): New pattern.
7215         * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
7216         iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
7217         instructions when tuning for Cortex-A8.  Set attribute "arch".
7218         * config/arm/arm.md: Move include arm-tune.md up a bit.
7219         (define_attr "arch"): Add "onlya8" and "nota8" values.
7220         (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
7221
7222 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
7223
7224         PR bootstrap/48282
7225         Revert:
7226         2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
7227
7228         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
7229         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
7230         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
7231         * passes.c (init_optimization_passes): Move
7232         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
7233
7234 2011-03-25  Kai Tietz  <ktietz@redhat.com>
7235
7236         * c-typeck.c (comptypes_internal): Replace target
7237         hook call of comp_type_attributes by version in tree.c file.
7238         * gimple.c (gimple_types_compatible_p_1): Likewise.
7239         * tree-ssa.c (useless_type_conversion_p): Likewise.
7240         * tree.c (build_type_attribute_qual_variant): Likewise.
7241         (attribute_value_equal): New static helper function.
7242         (comp_type_attributes): New function.
7243         (merge_attributes): Use attribute_value_equal for comparison.
7244         (attribute_list_contained): Likewise.
7245         * tree.h (comp_type_attributes): New prototype.
7246
7247 2011-03-25  Richard Guenther  <rguenther@suse.de>
7248
7249         * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
7250         of complex types at -O0.
7251         (verify_gimple_assign_binary): Likewise.
7252         (verify_gimple_assign_ternary): Likewise.
7253
7254 2011-03-24  Mark Wielaard  <mjw@redhat.com>
7255
7256         * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
7257         (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
7258
7259 2011-03-24  Mark Wielaard  <mjw@redhat.com>
7260
7261         PR debug/48041
7262         * dwarf2out.c (output_abbrev_section): Only write table when
7263         abbrev_die_table_in_use > 1.
7264
7265 2011-02-24  Richard Henderson  <rth@redhat.com>
7266
7267         * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
7268         (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
7269         (alpha_expand_unaligned_load_words): Use extql.
7270         (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
7271         (emit_insxl): Handle all modes for consistency.
7272
7273 2011-02-24  Richard Henderson  <rth@redhat.com>
7274
7275         * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
7276         (alpha_expand_unaligned_load): Likewise.
7277         (alpha_expand_unaligned_store): Likewise.
7278         (alpha_expand_unaligned_load_words): Likewise.
7279         (alpha_expand_unaligned_store_words): Likewise.
7280         (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
7281         (alpha_split_lock_test_and_set_12): Likewise.
7282         (print_operand, alpha_fold_builtin_extxx): Likewise.
7283         (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
7284         * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
7285         (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
7286         (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
7287         (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
7288         (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
7289         (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
7290         (unaligned_storeqi_be, unaligned_storehi_be): Remove.
7291         (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
7292         (extwl, extll, extql): Similarly.
7293         (inswh, inslh, insqh): Similarly.
7294         (mskbl, mskwl, mskll, mskql): Similarly.
7295         (mskwh, msklh, mskqh): Similarly.
7296
7297 2011-02-24  Richard Henderson  <rth@redhat.com>
7298
7299         * config/alpha/alpha.md (attribute isa): Add er, ner.
7300         (attribute enabled): Handle them.
7301         (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
7302
7303 2011-02-24  Richard Henderson  <rth@redhat.com>
7304
7305         * config/alpha/alpha.md (attribute isa): Add vms.
7306         (attribute enabled): Handle it.
7307         (*movsf): Merge *movsf_{nofix,fix,nofp}.
7308         (*movdf): Merge *movdf_{nofix,fix,nofp}.
7309         (*movtf): Rename from *movtf_internal for consistency.
7310         (*movsi): Merge with *movsi_nt_vms.
7311         (*movhi): Merge *movhi_nobwx, *movhi_bwx.
7312         (*movqi): Merge *movqi_nobwx, *movqi_bwx.
7313         (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
7314         * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
7315
7316 2011-02-24  Richard Henderson  <rth@redhat.com>
7317
7318         * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
7319         (extendqisi2, extendhisi2): Likewise.
7320         (extendqidi2): Simplify BWX/non-BWX expansions.
7321         (extendhidi2): Similarly.
7322
7323 2011-02-24  Richard Henderson  <rth@redhat.com>
7324
7325         * config/alpha/alpha.md (attribute isa): New.
7326         (attribute enabled): New.
7327         (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
7328         (zero_extendqisi2, zero_extendqidi2): Similarly.
7329         (zero_extendhisi2, zero_extendhidi2): Similarly.
7330         * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
7331
7332 2011-02-24  Richard Henderson  <rth@redhat.com>
7333
7334         * config/alpha/predicates.md (input_operand): Revert last change;
7335         update comment to mention 32-bit VMS rather than Windows.
7336
7337 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
7338
7339         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
7340         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
7341         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
7342         * passes.c (init_optimization_passes): Move
7343         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
7344
7345 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
7346
7347         * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
7348
7349 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
7350
7351         * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
7352         correctly.
7353
7354 2011-03-24  Jakub Jelinek  <jakub@redhat.com>
7355
7356         PR debug/48204
7357         * simplify-rtx.c (simplify_const_unary_operation): Call
7358         real_convert when changing mode class with FLOAT_EXTEND.
7359
7360 2011-03-24  Nick Clifton  <nickc@redhat.com>
7361
7362         * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
7363         (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
7364         * config/rx/rx.c (rx_option_override): Set align_jumps,
7365         align_loops and align_labels if not set by the user.
7366         (rx_align_for_label): New function.
7367         (rx_max_skip_for_label): New function.
7368         (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
7369         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
7370         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
7371         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
7372         * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
7373
7374 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
7375
7376         PR rtl-optimization/48263
7377         * optabs.c (expand_binop_directly): Reinstate convert_modes code
7378         and original commutative_p handling.  Use maybe_gen_insn.
7379
7380 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7381
7382         * reload.c (find_reloads_subreg_address): Add address_reloaded
7383         parameter and return true there if the full address has been
7384         reloaded.
7385         (find_reloads_toplev): Pass address_reloaded flag.
7386         (find_reloads_address_1): Don't use address_reloaded parameter.
7387
7388 2011-03-24  Jeff Law  <law@redhat.com>
7389
7390         * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
7391         unused variable "ann".
7392         (remove_unused_locals): Likewise.
7393
7394         * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
7395         statement.
7396
7397         * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
7398         after it is freed.
7399
7400 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7401
7402         * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
7403         for invalid symbolic addresses.
7404         (s390_secondary_reload): Don't use s390_check_symref_alignment for
7405         larl operands.
7406
7407 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
7408
7409         * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
7410         the argument in calls to fold_truth_not_expr.
7411
7412 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
7413
7414         * tree.c (record_node_allocation_statistics): New function.
7415         (make_node_stat, copy_node_stat, build_string): Call it.
7416         (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
7417         (build1_stat, build_omp_clause): Likewise.
7418
7419 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
7420
7421         * builtins.c (expand_movstr): Fix endp == 1 adjustment after
7422         last commit.
7423
7424 2011-03-24  Richard Guenther  <rguenther@suse.de>
7425
7426         PR tree-optimization/48271
7427         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
7428         blocks that still exist.
7429
7430 2011-03-24  Richard Guenther  <rguenther@suse.de>
7431
7432         PR tree-optimization/48270
7433         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
7434         not free datarefs before ddrs.
7435
7436 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
7437
7438         * tree-sra.c (build_ref_for_offset): Strip useless type conversions
7439         from the address built for a reference with variable offset.
7440
7441 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
7442
7443         PR target/48237
7444         * config/i386/i386.md (*movdf_internal_rex64): Do not split
7445         alternatives that can be handled with movq or movabsq insn.
7446         (*movdf_internal): Disable for !TARGET_64BIT.
7447         (*movdf_internal_nointeger): Ditto.
7448         * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
7449
7450 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
7451
7452         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
7453         (FUNCTION_ARG_ADVANCE): Likewise.
7454         * tm.texi.in: Change references to them to hook references.
7455         * tm.texi: Regenerate.
7456         * targhooks.c (default_function_arg): Eliminate check for target macro.
7457         (default_function_incoming_arg): Likewise.
7458         (default_function_arg_advance): Likewise.
7459         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
7460         (function_arg_advance): Likewise.
7461         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
7462
7463 2011-03-24  Richard Guenther  <rguenther@suse.de>
7464
7465         PR middle-end/48269
7466         * tree-object-size.c (addr_object_size): Do not double-account
7467         for MEM_REF offsets.
7468
7469 2011-03-24  Diego Novillo  <dnovillo@google.com>
7470
7471         * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
7472         * lto-streamer-in.c (input_string_internal): Add clarifying comments.
7473         (lto_input_data_block): Move from lto-opts.c.  Make extern.
7474         Update all users.
7475         (lto_input_string): Rename from input_string.  Make extern.
7476         Update all users.
7477         * lto-streamer-out.c (lto_output_string_with_length): Rename from
7478         output_string_with_length.
7479         Output 0 to indicate a non-NULL string.  Update all callers to
7480         not emit 0.
7481         (lto_output_string): Rename from output_string.  Make extern.
7482         Update all users.
7483         (lto_output_decl_state_streams): Make extern.
7484         (lto_output_decl_state_refs): Make extern.
7485         * lto-streamer.h (lto_input_string): Declare.
7486         (lto_input_data_block): Declare.
7487         (lto_output_string): Declare.
7488         (lto_output_string_with_length): Declare.
7489         (lto_output_decl_state_streams): Declare.
7490         (lto_output_decl_state_refs): Declare.
7491
7492 2011-03-24  Richard Guenther  <rguenther@suse.de>
7493
7494         PR tree-optimization/46562
7495         * tree.c (build_invariant_address): New function.
7496         * tree.h (build_invariant_address): Declare.
7497         * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
7498         a renamed function moved ...
7499         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
7500         Take valueization callback parameter.
7501         * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
7502         * gimple-fold.h: New file.
7503         * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
7504         (ccp_fold, fold_const_aggregate_ref,
7505         fold_ctor_reference, fold_nonarray_ctor_reference,
7506         fold_array_ctor_reference, fold_string_cst_ctor_reference,
7507         get_base_constructor): Move ...
7508         * gimple-fold.c: ... here.
7509         (gimple_fold_stmt_to_constant_1): New function
7510         split out from ccp_fold.  Take a valueization callback parameter.
7511         Valueize all operands.
7512         (gimple_fold_stmt_to_constant): New wrapper function.
7513         (fold_const_aggregate_ref_1): New function split out from
7514         fold_const_aggregate_ref.  Take a valueization callback parameter.
7515         (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
7516         * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
7517         invariant POINTER_PLUS_EXPRs to invariant form.
7518         (vn_valueize): New function.
7519         (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
7520         * tree-vrp.c (vrp_valueize): New function.
7521         (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
7522         to fold statements to constants.
7523         * tree-ssa-pre.c (eliminate): Properly guard propagation of
7524         function declarations.
7525         * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
7526         tree-ssa-ccp.o): Add gimple-fold.h dependencies.
7527
7528 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
7529
7530         * config/h8300/predicates.md (jump_address_operand): Fix register
7531         mode check.
7532
7533 2011-03-24  Ira Rosen  <ira.rosen@linaro.org>
7534
7535         * doc/invoke.texi (max-stores-to-sink): Document.
7536         * params.h (MAX_STORES_TO_SINK): Define.
7537         * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
7538         if either vectorization or if-conversion is disabled.
7539         * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
7540         tree-vect-data-refs.c vect_equal_offsets.
7541         (dr_equal_offsets_p): New function.
7542         (find_data_references_in_bb): Remove static.
7543         * tree-data-ref.h (find_data_references_in_bb): Declare.
7544         (dr_equal_offsets_p): Likewise.
7545         * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
7546         (vect_drs_dependent_in_basic_block): Update calls to
7547         vect_equal_offsets.
7548         (vect_check_interleaving): Likewise.
7549         * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
7550         (cond_if_else_store_replacement): Rename to...
7551         (cond_if_else_store_replacement_1): ... this.  Change arguments and
7552         documentation.
7553         (cond_if_else_store_replacement): New function.
7554         * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
7555         * params.def (PARAM_MAX_STORES_TO_SINK): Define.
7556
7557 2011-03-23  Chung-Lin Tang  <cltang@codesourcery.com>
7558
7559         PR target/46934
7560         * config/arm/arm.md (casesi): Use the gen_int_mode() function
7561         to subtract lower bound instead of GEN_INT().
7562
7563 2011-03-23  Jonathan Wakely  <jwakely.gcc@gmail.com>
7564
7565         PR other/48179
7566         PR other/48221
7567         PR other/48234
7568         * doc/extend.texi (Alignment): Move section to match order in TOC.
7569         * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
7570         (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
7571
7572 2011-03-23  Jeff Law  <law@redhat.com>
7573
7574         * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
7575         before removing the edge.
7576
7577         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
7578         it may have been freed by redirect_branch_edge or
7579         redirect_edge_succ_nodup.
7580
7581 2011-03-23  Richard Guenther  <rguenther@suse.de>
7582
7583         * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
7584         (check_va_list_escapes): Likewise.
7585         (check_all_va_list_escapes): Likewise.
7586
7587 2011-03-23  Richard Guenther  <rguenther@suse.de>
7588
7589         * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
7590         (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
7591         (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
7592         (alias.o): Likewise.
7593         (ipa-type-escape.o): Remove.
7594         (ipa-struct-reorg.o): Likewise.
7595         (GTFILES): Remove ipa-struct-reorg.c.
7596         * alias.c: Do not include ipa-type-escape.h.
7597         * tree-ssa-alias.c: Likewise.
7598         * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
7599         * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
7600         * passes.c (init_optimization_passes): Remove ipa-struct-reorg
7601         and ipa-type-escape passes.
7602         * tree-pass.h (pass_ipa_type_escape): Remove.
7603         (pass_ipa_struct_reorg): Likewise.
7604         * ipa-struct-reorg.h: Remove.
7605         * ipa-struct-reorg.c: Likewise.
7606         * ipa-type-escape.h: Likewise.
7607         * ipa-type-escape.c: Likewise.
7608         * doc/invoke.texi (-fipa-struct-reorg): Remove.
7609         (--param struct-reorg-cold-struct-ratio): Likewise.
7610         * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
7611         * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
7612         * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
7613
7614 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7615
7616         * config/s390/2084.md: Enable all insn reservations also for z9_ec
7617         cpu attribute value.
7618         * config/s390/s390-opts.h (enum s390_arch_option): Remove.
7619         (enum processor_type): Add PROCESSOR_2094_Z9_EC.
7620         * config/s390/s390.c (processor_flags_table): New constant array.
7621         (s390_handle_arch_option): Remove.
7622         (s390_handle_option): Remove s390_handle_arch_option invocations
7623         and OPT_mwarn_framesize_ handling.
7624         (s390_option_override): Remove s390_handle_arch_option invocation.
7625         (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
7626         warnings.
7627         * config/s390/s390.md (cpu attribute): Add z9_ec value.
7628         * config/s390/s390.opt (s390_tune, s390_arch)
7629         (march=): Replace s390_arch_option enum and values with
7630         processor_type.  Set variable name to s390_arch.  Set
7631         initialization value.
7632         (mtune=): Replace s390_arch_option with processor_type.  Set
7633         variable name to s390_tune.  Set initialization value.
7634
7635 2011-03-23  Julian Brown  <julian@codesourcery.com>
7636
7637         * expr.c (expand_expr_real_1): Only use BLKmode for volatile
7638         accesses which are not naturally aligned.
7639
7640 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
7641
7642         PR target/47553
7643         * config/arm/predicates.md (neon_lane_number): Accept 0..15.
7644
7645 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
7646
7647         * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
7648         parameter from "int" to "enum insn_code".
7649         (expand_operand_type): New enum.
7650         (expand_operand): New structure.
7651         (create_expand_operand): New function.
7652         (create_fixed_operand, create_output_operand): Likewise
7653         (create_input_operand, create_convert_operand_to): Likewise.
7654         (create_convert_operand_from, create_address_operand): Likewise.
7655         (create_integer_operand): Likewise.
7656         (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
7657         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
7658         (expand_insn, expand_jump_insn): Likewise.
7659         * builtins.c (expand_builtin_prefetch): Use the new interfaces.
7660         (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
7661         (expand_movstr, expand_builtin___clear_cache): Likewise.
7662         (expand_builtin_lock_release): Likewise.
7663         * explow.c (allocate_dynamic_stack_space): Likewise.
7664         (probe_stack_range): Likewise.  Allow check_stack to FAIL,
7665         and use the default handling in that case.
7666         * expmed.c (check_predicate_volatile_ok): Delete.
7667         (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
7668         (emit_cstore): Likewise.
7669         * expr.c (emit_block_move_via_movmem): Likewise.
7670         (set_storage_via_setmem, expand_assignment): Likewise.
7671         (emit_storent_insn, try_casesi): Likewise.
7672         (emit_single_push_insn): Likewise.  Allow the expansion to fail.
7673         * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
7674         (expand_vec_shift_expr, expand_binop_directly): Likewise.
7675         (expand_twoval_unop, expand_twoval_binop): Likewise.
7676         (expand_unop_direct, emit_indirect_jump): Likewise.
7677         (emit_conditional_move, vector_compare_rtx): Likewise.
7678         (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
7679         (expand_sync_operation, expand_sync_fetch_operation): Likewise.
7680         (expand_sync_lock_test_and_set): Likewise.
7681         (maybe_emit_unop_insn): Likewise.  Change icode to an insn_code.
7682         (emit_unop_insn): Likewise.
7683         (expand_copysign_absneg): Change icode to an insn_code.
7684         (create_convert_operand_from_type): New function.
7685         (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
7686         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
7687         (expand_insn, expand_jump_insn): Likewise.
7688         * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
7689         than const_int_operand for operand 2.
7690
7691 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7692
7693         * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
7694         if possible.
7695
7696 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
7697
7698         * emit-rtl.c (emit_pattern_before_noloc): New function.
7699         (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
7700         (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
7701         (emit_pattern_after_noloc): New function.
7702         (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
7703         (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
7704
7705 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
7706
7707         * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
7708         (__ffsDI2): Likewise.
7709
7710 2011-03-22  Richard Henderson  <rth@redhat.com>
7711
7712         * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
7713         of !TARGET_ABI_OPEN_VMS.
7714         (alpha_trampoline_init, alpha_start_function): Likewise.
7715         (alpha_expand_epilogue, alpha_file_start): Likewise.
7716         * config/alpha/alpha.md (divsi3, modsi3): Likewise.
7717         (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
7718         (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
7719         (*divmodsi_internal, *divmoddi_internal_er): Likewise.
7720         (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
7721
7722 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
7723
7724         * config/s390/s390-opts.h: New.
7725         * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
7726         s390_arch_flags, s390_warn_framesize, s390_stack_size,
7727         s390_stack_guard): Remove.
7728         (s390_handle_arch_option): Return void.  Take enum
7729         s390_arch_option value instead of string and searching array.
7730         (s390_handle_option): Don't assert that global structures are in
7731         use.  Access variables via opts pointer.  Use error_at.  Don't use
7732         sscanf for -mstack-guard= or -mstack-size=.  Update call to
7733         s390_handle_arch_option.
7734         (s390_option_override): Update call to s390_handle_arch_option.
7735         (s390_emit_prologue): Use %d format for s390_stack_size in
7736         diagnostic.  Use %wd for HOST_WIDE_INT.
7737         * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
7738         (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
7739         * config/s390/s390.opt (config/s390/s390-opts.h): New
7740         HeaderInclude entry.
7741         (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
7742         s390_arch_flags, s390_warn_framesize): New Variable entries.
7743         (s390_arch_option): New Enum and EnumValue entries.
7744         (march=): Use Enum instead of Var.
7745         (mstack-guard=, mstack-size=): Use UInteger and Var.
7746         (mtune=): Use Enum.
7747
7748 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
7749
7750         * config/score/score.c (score_handle_option): Don't assert that
7751         global structures are in use.  Access target_flags via opts
7752         pointer.  Use value of -march= option to determine target_flags
7753         settings.
7754         * config/score/score.opt (march=): Use Enum.
7755         (score_arch): New Enum and EnumValue entries.
7756
7757 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
7758
7759         * config/mep/mep.c (option_mtiny_specified): Remove.
7760         (mep_option_override): Move register handling for -mivc2 from
7761         mep_handle_option.  Use global_options_set.x_mep_tiny_cutoff
7762         instead of option_mtiny_specified.
7763         (mep_handle_option): Access target_flags via opts pointer.  Don't
7764         assert that global structures are in use.  Defer part of -mivc2
7765         handling and move it to mep_option_override.
7766         * config/mep/mep.opt (IVC2): New Mask entry.
7767         (mivc2): Use Var and Defer instead of Mask.
7768
7769 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
7770
7771         * config/v850/v850-opts.h: New.
7772         * config/v850/v850.c (small_memory): Replace with
7773         small_memory_physical_max array.  Make that array static const.
7774         (v850_handle_memory_option): Take integer value of argument.  Take
7775         gcc_options pointer, option text and location.  Return void.
7776         Update for changes to small memory structures.
7777         (v850_handle_option): Access target_flags via opts pointer.  Don't
7778         assert that global structures are in use.  Update calls to
7779         v850_handle_memory_option.
7780         (v850_encode_data_area): Update references to small memory settings.
7781         * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
7782         (enum small_memory_type): Move to v850-opts.h.
7783         * config/v850/v850.opt (config/v850/v850-opts.h): New
7784         HeaderInclude entry.
7785         (small_memory_max): New Variable entry.
7786         (msda): Replace by pair of options msda= and msda-.  Use UInteger.
7787         (mtda, mzda): Likewise.
7788
7789 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
7790
7791         * config/sh/sh.c (sh_handle_option): Access target_flags via opts
7792         pointer.  Don't assert that global structures are in use.
7793
7794 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
7795
7796         * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
7797         via opts pointer.  Don't assert that global structures are in use.
7798
7799 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
7800
7801         * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
7802         (munix=93): Use Var.
7803         * config/pa/pa-hpux1010.opt (munix=95): Use Var.
7804         * config/pa/pa-hpux1111.opt (munix=98): Use Var.
7805         * config/pa/pa-opts.h: New.
7806         * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
7807         (pa_handle_option): Don't assert that global structures are in
7808         use.  Access target_flags via opts pointer.  Don't handle
7809         OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
7810         OPT_munix_98 here.
7811         (pa_option_override): Handle deferred OPT_mfixed_range_.
7812
7813 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
7814
7815         * config/mn10300/mn10300-opts.h: New.
7816         * config/mn10300/mn10300.c (mn10300_processor,
7817         mn10300_tune_string): Remove.
7818         (mn10300_handle_option): Don't assert that global structures are
7819         in use.  Access mn10300_processor via opts pointer.  Don't handle
7820         OPT_mtune_ here.
7821         * config/mn10300/mn10300.h (enum processor_type): Move to
7822         mn10300-opts.h.
7823         (mn10300_processor): Remove.
7824         * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
7825         HeaderInclude entry.
7826         (mn10300_processor): New Variable entry.
7827         (mtune=): Use Var.
7828
7829 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
7830
7831         * config/microblaze/microblaze.c: Don't include opts.h.
7832         (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
7833         * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
7834         (mno-clearbss): Use Var and Warn.
7835
7836 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
7837
7838         * config/m32r/m32r-opts.h: New.
7839         * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
7840         (m32r_handle_option): Don't assert that global structures are in
7841         use.  Access target_flags and m32r_cache_flush_func via opts
7842         pointer.  Don't handle OPT_mmodel_, OPT_msdata_ or
7843         OPT_mno_flush_trap here.
7844         * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
7845         include of m32r-opts.h.
7846         * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
7847         HeaderInclude entry.
7848         (m32r_model_selected, m32r_sdata_selected): New Variable entries.
7849         (mmodel=): Use Enum and Var.
7850         (m32r_model): New Enum and EnumValue entries.
7851         (mno-flush-trap): Use Var.
7852         (msdata=): Use Enum and Var.
7853         (m32r_sdata): New Enum and EnumValue entries.
7854
7855 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
7856
7857         * config/m32c/m32c.c: Don't include opts.h.
7858         (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
7859         m32c_handle_option): Remove.
7860         (m32c_option_override): Check global_options_set.x_target_memregs
7861         instead of target_memregs_set.
7862         * config/m32c/m32c.h (target_memregs): Remove.
7863         * config/m32c/m32c.opt (memregs=): Use UInteger with integer
7864         variable.
7865
7866 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
7867
7868         * config/iq2000/iq2000-opts.h: New.
7869         * config/iq2000/iq2000.c: Don't include opts.h.
7870         (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
7871         * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
7872         * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
7873         HeaderInclude entry.
7874         (iq2000_tune): New Variable entry.
7875         (march=): Add comment.  Use Enum.
7876         (iq2000_arch): New Enum and EnumValue entries.
7877         (mcpu=): Use Enum and Var.
7878         (iq2000_tune): New Enum and EnumValue entries.
7879
7880 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
7881
7882         * config/ia64/ia64-opts.h: New.
7883         * config/ia64/ia64.c (ia64_tune): Remove.
7884         (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
7885         here.  Use error_at.
7886         (ia64_option_override): Handle deferred OPT_mfixed_range_.
7887         * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
7888         * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
7889         HeaderInclude entry.
7890         (ia64_tune): New Variable entry.
7891         (mfixed-range=): Use Defer and Var.
7892         (mtune=): Use Enum and Var.
7893         (ia64_tune): New Enum and EnumValue entries.
7894
7895 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
7896
7897         * config/frv/frv-opts.h: New.
7898         * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
7899         frv-opts.h.
7900         (frv_cpu_type): Remove.
7901         * config/frv/frv.c: Don't include opts.h.
7902         (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
7903         * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
7904         (frv_cpu_type): New Variable entry.
7905         (frv_cpu): New Enum and EnumValue entries.
7906
7907 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
7908
7909         * config/cris/cris.c (cris_handle_option): Access target_flags via
7910         opts pointer.  Don't assert that global structures are in use.
7911         Don't call CRIS_SUBTARGET_HANDLE_OPTION.
7912         * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
7913
7914 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
7915
7916         * config/bfin/bfin-opts.h: New.
7917         * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
7918         bfin_si_revision, bfin_workarounds): Remove.
7919         (bfin_cpus): Make static const.
7920         (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
7921         not bfin_lib_id_given.
7922         (bfin_handle_option): Don't set bfin_lib_id_given.  Access
7923         bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
7924         pointer. Use error_at.  Don't assert that global structures are in use.
7925         * config/bfin/bfin.h: Include bfin-opts.h.
7926         (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
7927         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
7928         * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
7929         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
7930         entries.
7931
7932 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
7933
7934         * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
7935         * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
7936         or -msoft-float here.
7937         * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
7938         -msoft-float and -mhard-float.
7939         (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
7940         * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
7941         msoft-float.
7942         * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
7943         -msoft-float.
7944         (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
7945         * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
7946         not mhard-float.
7947         (LIBGCC_SPEC): Don't handle -msoft-float.
7948         * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
7949         -mhard-float.
7950         * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
7951         msoft-float.
7952         * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
7953         -mfloat-abi=*, not -msoft-float and -mhard-float.
7954         * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
7955         -msoft-float.
7956         * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
7957         Use mfloat-abi=hard and mfloat-abi=soft in comments, not
7958         mhard-float and msoft-float.
7959         * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
7960         mfloat-abi=soft in comments, not mhard-float and msoft-float.
7961         * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
7962         mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
7963         mhard-float.
7964         * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
7965         mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
7966         msoft-float.
7967         * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
7968         not mhard-float.
7969         * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
7970         not msoft-float.
7971
7972 2011-03-22  Richard Henderson  <rth@redhat.com>
7973
7974         * config/alpha/alpha.c (alpha_expand_prologue): Don't test
7975         TARGET_ABI_WINDOWS_NT.
7976         (alpha_output_function_end_prologue): Likewise.
7977         * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
7978         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
7979         * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
7980         (trap, *movsi_nt_vms): Likewise.
7981         (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
7982         (*tablejump_osf_nt_internal): Remove.
7983         * config/alpha/predicates.md (input_operand): Only test Pmode.
7984
7985 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
7986
7987         * config/alpha/alpha.c (alpha_handle_option): Access target_flags
7988         via opts pointer.  Use error_at.  Don't assert that global
7989         structures are in use.
7990
7991 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
7992
7993         * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
7994         (ix86_handle_option): Access ix86_isa_flags and
7995         ix86_isa_flags_explicit via opts pointer.  Don't assert that
7996         global structures are in use.
7997         (ix86_function_specific_save, ix86_function_specific_restore):
7998         Update ix86_isa_flags_explicit field name.
7999         * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
8000         (ix86_isa_flags_explicit): Rename TargetSave entry to
8001         x_ix86_isa_flags_explicit.
8002
8003 2011-03-22  Richard Henderson  <rth@redhat.com>
8004
8005         * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
8006         (alpha_option_override, direct_return): Likewise.
8007         (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
8008         (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
8009         (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
8010         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
8011         (alpha_expand_epilogue, alpha_end_function): Likewise.
8012         (alpha_init_libfuncs): Likewise.
8013         (struct machine_function): Remove unicosmk members.
8014         (print_operand) ['t']: Remove.
8015         (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
8016         unicosmk_output_module_name, unicosmk_output_common,
8017         current_section_align, unicosmk_output_text_section_asm_op,
8018         unicosmk_output_data_section_asm_op, unicosmk_init_sections,
8019         unicosmk_section_type_flags, unicosmk_unique_section,
8020         unicosmk_asm_named_section, unicosmk_insert_attributes,
8021         unicosmk_output_align, unicosmk_defer_case_vector,
8022         unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
8023         SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
8024         unicosmk_output_ssib, unicosmk_add_call_info_word,
8025         unicosmk_extern_head, unicosmk_output_default_externs,
8026         unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
8027         unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
8028         unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
8029         * config/alpha/alpha-protos.h: Update.
8030         * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
8031         * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
8032         (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
8033         (mulsi3): Don't test TARGET_ABI_UNICOSMK.
8034         (*mulsi_se, mulvsi3): Likewise.
8035         (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
8036         (*divmodsi_internal, call, call_value, realign): Likewise.
8037         (moddi3, umoddi3): Likewise; remove duplicate expander.
8038         (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
8039         (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
8040         (*movdi_nofix): Remove r/U alternative.
8041         (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
8042         * config/alpha/constraints.md ("U"): Remove.
8043         * config/alpha/predicates.md (call_operand"): Don't test
8044         TARGET_ABI_UNICOSMK.
8045
8046 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8047
8048         * target.def (handle_option): Take gcc_options and
8049         cl_decoded_option pointers and location_t.
8050         * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
8051         * doc/tm.texi: Regenerate.
8052         * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
8053         * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
8054         * lto-opts.c (lto_reissue_options): Generate option structure for
8055         targetm.handle_option call.
8056         * opts.c (target_handle_option): Update call to
8057         targetm.handle_option.  Remove assertions about values now passed
8058         down to hook.
8059         * targhooks.c (default_target_handle_option): New.
8060         * targhooks.h (default_target_handle_option): Declare.
8061         * config/alpha/alpha.c: Include opts.h.
8062         (alpha_handle_option): Update to new hook interface.
8063         * config/arm/arm.c: Include opts.h.
8064         (arm_handle_option): Update to new hook interface.
8065         * config/arm/t-arm (arm.o): Update dependencies.
8066         * config/bfin/bfin.c: Include opts.h.
8067         (bfin_handle_option): Update to new hook interface.
8068         * config/cris/cris.c: Include opts.h.
8069         (cris_handle_option): Update to new hook interface.
8070         * config/frv/frv.c: Include opts.h.
8071         (frv_handle_option): Update to new hook interface.
8072         * config/i386/i386.c: Include opts.h.
8073         (ix86_handle_option): Update to new hook interface.
8074         (ix86_valid_target_attribute_inner_p): Generate option structure
8075         for call to ix86_handle_option.
8076         * config/i386/t-i386 (i386.o): Update dependencies.
8077         * config/ia64/ia64.c: Include opts.h.
8078         (ia64_handle_option): Update to new hook interface.
8079         * config/ia64/t-ia64 (ia64.o): Update dependencies.
8080         * config/iq2000/iq2000.c: Include opts.h.
8081         (iq2000_handle_option): Update to new hook interface.
8082         * config/m32c/m32c.c: Include opts.h.
8083         (m32c_handle_option): Update to new hook interface.
8084         * config/m32r/m32r.c: Include opts.h.
8085         (m32r_handle_option): Update to new hook interface.
8086         * config/m68k/m68k.c: Include opts.h.
8087         (m68k_handle_option): Update to new hook interface.
8088         * config/mep/mep.c: Include opts.h.
8089         (mep_handle_option): Update to new hook interface.
8090         * config/microblaze/microblaze.c: Include opts.h.
8091         (microblaze_handle_option): Update to new hook interface.
8092         * config/mips/mips.c: Include opts.h.
8093         (mips_handle_option): Update to new hook interface.
8094         * config/mn10300/mn10300.c: Include opts.h.
8095         (mn10300_handle_option): Update to new hook interface.
8096         * config/pa/pa.c: Include opts.h.
8097         (pa_handle_option): Update to new hook interface.
8098         * config/pdp11/pdp11.c: Include opts.h.
8099         (pdp11_handle_option): Update to new hook interface.
8100         * config/rs6000/rs6000.c: Include opts.h.
8101         (rs6000_handle_option): Update to new hook interface.
8102         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
8103         * config/rx/rx.c: Include opts.h.
8104         (rx_handle_option): Update to new hook interface.
8105         * config/s390/s390.c: Include opts.h.
8106         (s390_handle_option): Update to new hook interface.
8107         * config/score/score.c: Include opts.h.
8108         (score_handle_option): Update to new hook interface.
8109         * config/sh/sh.c: Include opts.h.
8110         (sh_handle_option): Update to new hook interface.
8111         * config/sparc/sparc.c: Include opts.h.
8112         (sparc_handle_option): Update to new hook interface.
8113         * config/v850/v850.c: Include opts.h.
8114         (v850_handle_option): Update to new hook interface.
8115
8116 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8117
8118         * gcc.c (driver_unknown_option_callback): Only permit and save
8119         unknown -Wno- options.
8120         (driver_wrong_lang_callback): Save options directly instead of via
8121         driver_unknown_option_callback.
8122
8123 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
8124
8125         * combine.c (simplify_set): Try harder to find the best CC mode when
8126         simplifying a nested COMPARE on the RHS.
8127
8128 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8129
8130         * config/alpha/gnu.h: Remove.
8131         * config/arc: Remove directory.
8132         * config/arm/netbsd.h: Remove.
8133         * config/arm/t-pe: Remove.
8134         * config/crx: Remove directory.
8135         * config/i386/netbsd.h: Remove.
8136         * config/m68hc11: Remove directory.
8137         * config/m68k/uclinux-oldabi.h: Remove.
8138         * config/mcore/mcore-pe.h: Remove.
8139         * config/mcore/t-mcore-pe: Remove.
8140         * config/netbsd-aout.h: Remove.
8141         * config/rs6000/gnu.h: Remove.
8142         * config/sh/sh-symbian.h: Remove.
8143         * config/sh/symbian-base.c: Remove.
8144         * config/sh/symbian-c.c: Remove.
8145         * config/sh/symbian-cxx.c: Remove.
8146         * config/sh/symbian-post.h: Remove.
8147         * config/sh/symbian-pre.h: Remove.
8148         * config/sh/t-symbian: Remove.
8149         * config/svr3.h: Remove.
8150         * config/vax/netbsd.h: Remove.
8151         * config.build: Don't handle i[34567]86-*-pe.
8152         * config.gcc: Remove handling of deprecations for most deprecated
8153         targets.
8154         (m68k-*-uclinuxoldabi*): Add to second deprecated list.
8155         (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
8156         i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
8157         m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
8158         powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
8159         sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
8160         Remove cases.
8161         * config.host: Don't handle i[34567]86-*-pe.
8162         * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
8163         (ASM_SPEC32): Don't handle -mcall-gnu.
8164         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
8165         -mcall-gnu.
8166         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
8167         STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
8168         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
8169         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
8170         (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
8171         * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
8172         conditional on SYMBIAN.
8173         * configure.ac: Don't handle powerpc*-*-gnu*.
8174         * configure: Regenerate.
8175         * doc/extend.texi (interrupt attribute): Don't mention CRX.
8176         * doc/install-old.texi (m6811, m6812): Don't mention.
8177         * doc/install.texi (arc-*-elf*): Don't document multilib option.
8178         (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
8179         (m68k-uclinuxoldabi): Don't mention.
8180         * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
8181         Remove.
8182         (-mcall-gnu): Remove.
8183         * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
8184         families): Remove constraint documentation.
8185
8186 2011-03-22  Marius Strobl  <marius@FreeBSD.org>
8187
8188         * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
8189         (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
8190         (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
8191
8192 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
8193
8194         PR target/48226
8195         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
8196         vector when peeking at the next token for vector, don't expand the
8197         keywords.
8198
8199 2011-03-21  Georg-Johann Lay  <avr@gjlay.de>
8200
8201         * config/avr/avr-protos.h (expand_epilogue): Change prototype
8202         * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
8203         * config/avr/avr.c (init_cumulative_args)
8204         (avr_function_arg_advance): Use it.
8205         * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
8206         sibcall epilogues.
8207         (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
8208         (avr_function_ok_for_sibcall): ...this new function.
8209         (avr_lookup_function_attribute1): New static Function.
8210         (avr_naked_function_p, interrupt_function_p)
8211         (signal_function_p, avr_OS_task_function_p)
8212         (avr_OS_main_function_p): Use it.
8213         * config/avr/avr.md ("sibcall", "sibcall_value")
8214         ("sibcall_epilogue"): New expander.
8215         ("*call_insn", "*call_value_insn"): New insn.
8216         ("call_insn", "call_value_insn"): Remove
8217         ("call", "call_value", "epilogue"): Change expander to handle
8218         sibling calls.
8219
8220 2011-03-21  Nick Clifton  <nickc@redhat.com>
8221
8222         * doc/invoke.texi (Overall Options): Move closing brace to end of
8223         options list.
8224         (Optimization Options): Add missing @gol.
8225         (Directory Options): Likewise.
8226         (i386 and x86-64 Options): Likewise.
8227         (RS6000 and PowerPC Options): Likewise.
8228         (i386 and x86-64 Windows Options): Likewise.
8229         (V850 Options): Add text missing from descriptions.
8230
8231 2011-03-22  Richard Henderson  <rth@redhat.com>
8232
8233         * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
8234         (avr_incoming_return_addr_rtx): New.
8235         (emit_push_byte): New.
8236         (expand_prologue): Use it.  Remove incorrect dwarf annotation for
8237         SREG, RAMPZ, zero register.  Push frame pointer by bytes.  Add dwarf
8238         annotation for __prologue_saves__.  Fixup dwarf annotation for CFA.
8239         (emit_pop_byte): New.
8240         (expand_epilogue): Use it.  Pop frame pointer by bytes.
8241         * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
8242         (INCOMING_RETURN_ADDR_RTX): New.
8243         (INCOMING_FRAME_SP_OFFSET): New.
8244         (ARG_POINTER_CFA_OFFSET): New.
8245         * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
8246         (*pushhi, *pushsi, *pushsf, popqi): Likewise.
8247         (pophi): Remove.
8248
8249         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
8250
8251 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
8252
8253         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
8254         (FUNCTION_ARG_ADVANCE): Likewise.
8255         * tm.texi.in: Change references to them to hook references.
8256         * tm.texi: Regenerate.
8257         * targhooks.c (default_function_arg): Eliminate check for target
8258         macro.
8259         (default_function_incoming_arg): Likewise.
8260         (default_function_arg_advance): Likewise.
8261         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
8262         (function_arg_advance): Likewise.
8263         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
8264
8265 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
8266
8267         * tree.c (build_call_1): New function.
8268         (build_call_valist, build_call_array_loc, build_call_vec): Call it.
8269
8270 2011-03-22  Richard Guenther  <rguenther@suse.de>
8271
8272         PR tree-optimization/48228
8273         * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
8274         for single-arg PHIs.
8275
8276 2011-03-22  Andrey Belevantsev  <abel@ispras.ru>
8277
8278         PR rtl-optimization/48143
8279         * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
8280         (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
8281         sse2_cvtps2pd): Likewise.
8282
8283 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8284
8285         * recog.c (canonicalize_change_group): Use validate_unshare_change.
8286
8287 2011-03-22  Richard Guenther  <rguenther@suse.de>
8288
8289         * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
8290         a valid RHS.  Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
8291         * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
8292         and REALIGN_LOAD_EXPR.
8293         (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
8294         DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
8295         * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
8296         DOT_PROD_EXPR case ...
8297         (expand_expr_real_2): ... here.
8298         * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
8299         and REALIGN_LOAD_EXPR.
8300         * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
8301         * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
8302         (vect_create_epilog_for_reduction): Likewise.
8303         (vectorizable_reduction): Likewise.
8304         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
8305         * tree-vect-stmts.c (vectorizable_load): Likewise.
8306
8307 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
8308
8309         * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
8310
8311 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8312
8313         * config/s390/s390.c (s390_delegitimize_address): Fix offset
8314         handling for PLTOFF/GOTOFF.
8315
8316 2011-03-22  Nick Clifton  <nickc@redhat.com>
8317
8318         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
8319         trailing backslash from the end of the macro definition.
8320
8321 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8322
8323         * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
8324         and PLT unspecs.
8325
8326 2011-03-21  Richard Sandiford  <richard.sandiford@linaro.org>
8327
8328         * expr.h (prepare_operand): Move to...
8329         * optabs.h (prepare_operand): ...here and change the insn code
8330         parameter from "int" to "enum insn_code".
8331         (insn_operand_matches): Declare.
8332         * expr.c (init_expr_target): Use insn_operand_matches.
8333         (compress_float_constant): Likewise.
8334         * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
8335         * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
8336         (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
8337         (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
8338         Likewise.
8339         (gen_cond_trap): Likewise.
8340         (prepare_operand): Likewise.  Change icode to an insn_code.
8341         (insn_operand_matches): New function.
8342         * reload.c (find_reloads_address_1): Use insn_operand_matches.
8343         * reload1.c (gen_reload): Likewise.
8344         * targhooks.c (default_secondary_reload): Likewise.
8345
8346 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
8347
8348         * config/alpha/alpha.md (unspec): New define_c_enum.
8349         (unspecv): Ditto.
8350
8351 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
8352
8353         PR debug/48214
8354         * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
8355         between a call and its CALL_ARG_LOCATION note.
8356
8357 2011-03-21  Eric Botcazou  <ebotcazou@adacore.com>
8358
8359         * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
8360
8361 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
8362
8363         PR c/42544
8364         PR c/48197
8365         * c-common.c (shorten_compare): If primopN is first sign-extended
8366         to opN and then zero-extended to result type, set primopN to opN.
8367
8368 2011-03-21  Daniel Jacobowitz  <dan@codesourcery.com>
8369
8370         * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
8371         for barrier handlers.
8372
8373 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
8374
8375         * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
8376         UNSPEC constants to be in the unspec enumeration, and redefine
8377         all UNSPECV constants to be in the unspecv enumeration, so that
8378         dumps print which unspec/unspec_volatile this is.
8379         * config/rs6000/vector.md (UNSPEC_*): Ditto.
8380         * config/rs6000/paired.md (UNSPEC_*): Ditto.
8381         * config/rs6000/vsx.md (UNSPEC_*): Ditto.
8382         * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
8383         * config/rs6000/dfp.md (UNSPEC_*): Ditto.
8384
8385         * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
8386         UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
8387         UNSPECV_LWSYNC, since these are used as unspec_volatile.
8388         * config/rs6000/sync.md (isync, lwsync): Ditto.
8389
8390 2011-03-21  Richard Guenther  <rguenther@suse.de>
8391
8392         * params.def (lto-min-partition): Fix typo.
8393
8394 2011-03-21  Richard Guenther  <rguenther@suse.de>
8395
8396         PR c/47939
8397         * c-decl.c (grokdeclarator): Drop to the main variant only
8398         for array types.  Drop flag_gen_aux_info check.
8399
8400 2011-03-21  Richard Guenther  <rguenther@suse.de>
8401
8402         PR translation/47911
8403         * params.def (lto-partitions): Fix typo.
8404         (lto-min-partition): Fix wording.
8405
8406 2011-03-21  Andreas Tobler  <andreast@fgznet.ch>
8407
8408         * config/rs6000/t-freebsd: Remove duplication from file.
8409
8410 2011-03-21  Richard Guenther  <rguenther@suse.de>
8411
8412         PR middle-end/47661
8413         * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
8414
8415 2011-03-21  Richard Guenther  <rguenther@suse.de>
8416
8417         PR lto/48210
8418         * params.def (lto-partitions): Require at least 1 partition.
8419
8420 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8421
8422         * gthr-solaris.h: Remove.
8423         * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
8424         * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
8425         (LIB_SPEC): Likewise.
8426         * config/sol2.opt (threads): Remove.
8427         * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
8428         (sparc*-*-solaris2*): Likewise.
8429         * configure.ac (enable_threads): Enable solaris support.
8430         * configure: Regenerate.
8431         * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
8432         * doc/install.texi (Configuration, --enable-threads=lib): Remove
8433         solaris.
8434
8435 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8436
8437         * config.gcc: Obsolete *-*-solaris2.8*.
8438         * doc/install.texi (Specific, *-*-solaris2*): Document it.
8439
8440 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8441
8442         PR bootstrap/48135
8443         * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
8444         reference.  Solaris 8 perl works.
8445
8446 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8447
8448         PR bootstrap/48135
8449         * doc/install.texi (Prerequisites): Move jar etc. up.
8450         Explain support library version requirements.
8451
8452 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8453
8454         PR bootstrap/48135
8455         * doc/install.texi (Prerequisites): Move Perl to build
8456         requirements.  Always necessary on Solaris 2 with Sun ld.
8457
8458 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8459
8460         * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
8461         binutils 2.21.
8462         (Specific, i?86-*-solaris2.[89]): Likewise.
8463         (Specific, i?86-*-solaris2.10): Likewise.
8464         (Specific, mips-sgi-irix6): Likewise.
8465         (Specific, *-*-solaris2*): Remove Sun Studio download URL.
8466         Update for binutils 2.21.
8467
8468 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8469
8470         * configure.ac (gcc_cv_lto_plugin): Fix typo.
8471         Allow -fuse-linker-plugin for non-default plugin linker.
8472         * configure: Regenerate.
8473
8474 2011-03-21  Nicola Pero  <nicola.pero@meta-innovation.com>
8475
8476         PR bootstrap/48167
8477         * gengtype.c (files_rules): Added rule for cp/parser.h.
8478
8479 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
8480
8481         PR target/48213
8482         * config/s390/s390.c (s390_delegitimize_address): Don't call
8483         lowpart_subreg if orig_x has BLKmode.
8484
8485 2011-03-21  Kai Tietz  <ktietz@redhat.com>
8486
8487         PR target/12171
8488         * doc/plugins.texi: Adjust documentation for plugin register_callback.
8489         * tree.h (attribute_spec): Add new member affects_type_identity.
8490         * attribs.c (empty_attribute_table): Adjust attribute_spec
8491         initializers.
8492         * config/alpha/alpha.c: Likewise.
8493         * config/arc/arc.c: Likewise.
8494         * config/arm/arm.c: Likewise.
8495         * config/avr/avr.c: Likewise.
8496         * config/bfin/bfin.c: Likewise.
8497         * config/crx/crx.c: Likewise.
8498         * config/darwin.h: Likewise.
8499         * config/h8300/h8300.c: Likewise.
8500         * config/i386/cygming.h: Likewise.
8501         * config/i386/i386.c: Likewise.
8502         * config/ia64/ia64.c: Likewise.
8503         * config/m32c/m32c.c: Likewise.
8504         * config/m32r/m32r.c: Likewise.
8505         * config/m68hc11/m68hc11.c: Likewise.
8506         * config/m68k/m68k.c: Likewise.
8507         * config/mcore/mcore.c: Likewise.
8508         * config/mep/mep.c: Likewise.
8509         * config/microblaze/microblaze.c: Likewise.
8510         * config/mips/mips.c: Likewise.
8511         * config/rs6000/rs6000.c: Likewise.
8512         * config/rx/rx.c: Likewise.
8513         * config/sh/sh.c: Likewise.
8514         * config/sol2.h: Likewise.
8515         * config/sparc/sparc.c: Likewise.
8516         * config/spu/spu.c: Likewise.
8517         * config/stormy16/stormy16.c: Likewise.
8518         * config/v850/v850.c: Likewise.
8519
8520 2011-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
8521
8522         * simplify-rtx.c (simplify_binary_operation_1): Handle
8523         (xor (and A B) C) case when B and C are both constants.
8524
8525 2011-03-21  Mingjie Xing  <mingjie.xing@gmail.com>
8526
8527         * tree-dfa.c (add_referenced_var): Fix typo in comment.
8528
8529 2011-03-20  Eric Botcazou  <ebotcazou@adacore.com>
8530
8531         PR bootstrap/48168
8532         * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
8533
8534 2011-03-20  Jakub Jelinek  <jakub@redhat.com>
8535
8536         PR rtl-optimization/48156
8537         * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
8538         assume df and df_lr are not NULL.
8539
8540 2011-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
8541
8542         PR debug/48023
8543         * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
8544         between a call and its CALL_ARG_LOCATION note.
8545
8546 2011-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
8547
8548         PR debug/48178
8549         * config/sh/sh.c (find_barrier): Don't emit a constant pool
8550         between a call and its corresponding CALL_ARG_LOCATION note.
8551
8552 2011-03-19  Anatoly Sokolov  <aesok@post.ru>
8553
8554         * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
8555         instead of loop. Use HARD_REGISTER_NUM_P predicate.
8556         * haifa-sched.c (setup_ref_regs): Ditto.
8557         * caller-save.c (add_used_regs_1): Ditto.
8558         * dse.c (look_for_hardregs): Ditto.
8559         * df-problems.c (df_simulate_one_insn_forwards): Ditto.
8560         * sched-rgn.c (check_live_1): Ditto.
8561
8562 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
8563
8564         * c-decl.c (diagnose_mismatched_decls): Give an error for
8565         redefining a typedef with variably modified type.
8566
8567 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
8568
8569         * c-decl.c (grokfield): Don't allow typedefs for structures or
8570         unions with no tag by default.
8571         * doc/extend.texi (Unnamed Fields): Update.
8572
8573 2011-03-18  Uros Bizjak  <ubizjak@gmail.com>
8574
8575         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
8576         Rewrite using indirect functions.
8577         (lwp_slwpcb): Ditto.
8578         * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
8579         (avx_vinsertf128<mode>): Ditto.
8580
8581 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8582
8583         * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
8584         unspecs.
8585
8586 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8587
8588         * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
8589         splitting between a call and its corresponding CALL_ARG_LOCATION note.
8590
8591 2011-03-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
8592
8593         PR rtl-optimization/48170
8594         * gcse.c (hoist_code): Remove bogus asserts.
8595
8596 2011-03-18  Georg-Johann Lay  <avr@gjlay.de>
8597
8598         * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
8599         computation for prologue/epilogue.
8600
8601 2011-03-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8602
8603         * Makefile.in (check-consistency): Remove.
8604
8605 2011-03-18  Jakub Jelinek  <jakub@redhat.com>
8606
8607         PR debug/48176
8608         * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
8609         arange_table_in_use is 0, but either text_section_used or
8610         cold_text_section_used is true.  Don't call it if
8611         !info_section_emitted.
8612
8613 2011-03-18  Anatoly Sokolov  <aesok@post.ru>
8614
8615         * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
8616         FUNCTION_VALUE_REGNO_P): Remove.
8617         * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
8618         Remove.
8619         * config/avr/avr.c (avr_ret_register): Make static inline.
8620         (avr_function_value_regno_p): New function.
8621         (avr_libcall_value): Make static. Add 'func' argument.
8622         (avr_function_value): Make static. Rename 'func' argument to
8623         'fn_decl_or_type', forward it to avr_libcall_value. Call
8624         avr_ret_register function instead of RET_REGISTER macro.
8625         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
8626
8627 2011-03-18  Jason Merrill  <jason@redhat.com>
8628
8629         PR c++/23372
8630         * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
8631
8632 2011-03-18  Richard Guenther  <rguenther@suse.de>
8633
8634         * doc/install.texi (--enable-gold): Remove.
8635         (--with-plugin-ld): Document.
8636         * doc/invoke.texi (-fuse-linker-plugin): Clarify.
8637
8638 2011-03-18  Andrew Pinski  <pinskia@gmail.com>
8639
8640         PR middle-end/47790
8641         * expr.c (optimize_bitfield_assignment_op): Revamp to work
8642         again after expansion changes.
8643
8644 2011-03-18  Chung-Lin Tang  <cltang@codesourcery.com>
8645
8646         * combine.c (try_combine): Do simplification only call of
8647         subst() on i2 even when i1 is present. Update comments.
8648
8649 2011-03-18  Kaz Kojima  <kkojima@gcc.gnu.org>
8650
8651         * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
8652         and UNSPEC_PCREL_SYMOFF.
8653
8654 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8655
8656         * config/s390/s390.md: Use define_c_enum for the unspec constant
8657         definitions.
8658
8659 2011-03-18  Richard Henderson  <rth@redhat.com>
8660             Jakub Jelinek  <jakub@redhat.com>
8661
8662         PR bootstrap/48161
8663         * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
8664         instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
8665
8666 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
8667
8668         PR middle-end/47725
8669         * combine.c (cant_combine_insn_p): Don't check zero/sign
8670         extended hard registers.
8671
8672 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
8673
8674         PR middle-end/47725
8675         * combine.c (cant_combine_insn_p): Check zero/sign extended
8676         hard registers.
8677
8678 2011-03-17  Anatoly Sokolov  <aesok@post.ru>
8679
8680         * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
8681         * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
8682         * config/v850/v850.c (v850_output_addr_const_extra): Make static.
8683         Change return type to bool.
8684         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
8685
8686 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
8687
8688         PR debug/48163
8689         * var-tracking.c (prepare_call_arguments): If CALL target
8690         is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
8691         pc instead of looking it up using cselib_lookup and use
8692         Pmode for it if x has VOIDmode.
8693         * dwarf2out.c (gen_subprogram_die): If also both first and
8694         second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
8695
8696         PR debug/48163
8697         * function.c (assign_parms): For data.passed_pointer parms
8698         use MEM of data.entry_parm instead of data.entry_parm itself
8699         as DECL_INCOMING_RTL.
8700         * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
8701         also when passed and declared mode is the same, DECL_RTL
8702         is a MEM with pseudo as address and DECL_INCOMING_RTL is
8703         a MEM too.
8704
8705 2011-03-16  Jeff Law  <law@redhat.com>
8706
8707         PR rtl-optimization/37273
8708         * ira-costs.c (scan_one_insn): Detect constants living in memory and
8709         handle them like argument loads from stack slots.  Do not double
8710         count memory for memory constants and argument loads from stack slots.
8711
8712 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
8713
8714         PR debug/48160
8715         * var-tracking.c (prepare_call_arguments): Check SUBREG.
8716
8717 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
8718
8719         PR target/48171
8720         * config/i386/i386.opt: Add Save to -mavx and -mfma.
8721
8722 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
8723
8724         PR bootstrap/48153
8725         * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
8726         if dwarf_strict.
8727         (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
8728         Clear call_arg_locations and call_arg_loc_last always.
8729
8730         PR middle-end/48152
8731         * var-tracking.c (prepare_call_arguments): If argument needs to be
8732         passed by reference, adjust argtype and mode.
8733
8734 2011-03-17  Richard Guenther  <rguenther@suse.de>
8735
8736         PR middle-end/48134
8737         * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
8738         a value make sure to fold the statement.
8739
8740 2011-03-17  Chung-Lin Tang  <cltang@codesourcery.com>
8741
8742         PR target/43872
8743         * config/arm/arm.c (arm_get_frame_offsets): Adjust early
8744         return condition with !cfun->calls_alloca.
8745
8746 2011-03-17  Richard Guenther  <rguenther@suse.de>
8747
8748         PR bootstrap/48148
8749         * lto-cgraph.c (input_overwrite_node): Clear the abstract
8750         origin for decls in other ltrans units.
8751         (input_varpool_node): Likewise.
8752
8753 2011-03-17  Richard Guenther  <rguenther@suse.de>
8754
8755         PR middle-end/48165
8756         * tree-object-size.c (compute_object_offset): Properly return
8757         the offset operand of MEM_REFs as sizetype.
8758
8759 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
8760
8761         PR rtl-optimization/48141
8762         * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
8763         * dse.c: Include params.h.
8764         (active_local_stores_len): New variable.
8765         (add_wild_read, dse_step1): Clear it when setting active_local_stores
8766         to NULL.
8767         (record_store, check_mem_read_rtx): Decrease it when removing
8768         from the chain.
8769         (scan_insn): Likewise.  Increase it when adding to chain, if it
8770         reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
8771         set active_local_stores to NULL before the addition.
8772         * Makefile.in (dse.o): Depend on $(PARAMS_H).
8773
8774         PR rtl-optimization/48141
8775         * dse.c (record_store): If no positions are needed in an insn
8776         that cannot be deleted, at least unchain it from active_local_stores.
8777
8778 2011-03-16  Dodji Seketeli  <dodji@redhat.com>
8779
8780         PR debug/47510
8781         * dwarf2out.c (strip_naming_typedef): Factorize out of ...
8782         (lookup_type_die_strip_naming_typedef): ... here.
8783         (get_context_die): Use it.
8784         (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
8785         the anonymous struct named by the naming typedef.
8786
8787 2011-03-16  H.J. Lu  <hongjiu.lu@intel.com>
8788
8789         PR target/48154
8790         * config/i386/i386.c (ix86_builtin_vectorized_function): Check
8791         TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
8792
8793 2011-03-16  Jeff Law  <law@redhat.com>
8794
8795         * tree-vrp.c (identify_jump_threads): Slightly simplify type
8796         check for operands of conditional.  Allow type to be a pointer.
8797
8798 2011-03-16  Richard Guenther  <rguenther@suse.de>
8799
8800         PR tree-optimization/48149
8801         * fold-const.c (fold_binary_loc): Fold
8802         COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
8803
8804 2011-03-16  Richard Guenther  <rguenther@suse.de>
8805
8806         PR tree-optimization/26134
8807         * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
8808         complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
8809         (non_rewritable_mem_ref_base): Handle complex type component
8810         accesses, constrain offsets for vector and complex extracts
8811         more properly.
8812
8813 2011-03-16  Richard Guenther  <rguenther@suse.de>
8814
8815         PR tree-optimization/48146
8816         * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
8817         operands avoiding the need for renaming.
8818
8819 2011-03-16  Richard Guenther  <rguenther@suse.de>
8820
8821         * gimple-fold.c (maybe_fold_reference): Open-code relevant
8822         constant folding.  Move MEM_REF canonicalization first.
8823         Rely on fold_const_aggregate_ref for initializer folding.
8824         * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
8825
8826 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
8827
8828         PR middle-end/48136
8829         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
8830         arg0/arg1 or their arguments are always fold converted to matching
8831         types.
8832
8833         * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
8834         to nargs.
8835
8836 2011-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8837
8838         PR lto/46944
8839         * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
8840         Handle in-tree gold.
8841         (ld_vers): Extract binutils version for gold.
8842         (gcc_cv_ld_hidden): Handle gold here.
8843         (gcc_cv_lto_plugin): Determine level of linker plugin support.
8844         * configure: Regenerate.
8845         * config.in: Regenerate.
8846         * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
8847         -fuse-linker-plugin otherwise.
8848         (LINK_PLUGIN_SPEC): Define.  Extract from LINK_COMMAND_SPEC.
8849         (LINK_COMMAND_SPEC): Use it.
8850         (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
8851
8852 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
8853
8854         * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
8855         * calls.c: Remove debug.h include.
8856         (emit_call_1): Don't call virtual_call_token debug hook.
8857         * dwarf2out.c (debug_dcall_section, debug_vcall_section,
8858         dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
8859         vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
8860         size_of_dcall_table, output_dcall_table, size_of_vcall_table,
8861         output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
8862         vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
8863         dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
8864         dwarf2out_virtual_call): Remove.
8865         (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
8866         copy_call_info and virtual_call hooks.
8867         (dwarf2out_init): Don't initialize vcall_insn_table,
8868         debug_dcall_section and debug_vcall_section.
8869         (prune_unused_types): Don't mark nodes from dcall_table.
8870         (dwarf2out_finish): Don't output dcall or vcall tables.
8871         * final.c (final_scan_insn): Don't call direct_call or
8872         virtual_call debug hooks.
8873         * debug.h (struct gcc_debug_hooks): Remove direct_call,
8874         virtual_call_token, copy_call_info and virtual_call hooks.
8875         (debug_nothing_uid): Remove prototype.
8876         * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
8877         copy_call_info and virtual_call hooks.
8878         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
8879         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
8880         * debug.c (do_nothing_debug_hooks): Likewise.
8881         (debug_nothing_uid): Remove.
8882         * doc/invoke.texi (-fenable-icf-debug): Remove.
8883         * common.opt (-fenable-icf-debug): Likewise.
8884
8885         * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
8886         * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
8887         call's MEM.  Handle functions returning aggregate through a hidden
8888         first pointer.  For virtual calls add clobbered pc to call arguments
8889         chain.
8890         * dwarf2out.c (gen_subprogram_die): Emit
8891         DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
8892         can't be emitted.
8893
8894         PR debug/45882
8895         * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
8896         * rtl.h (ENTRY_VALUE_EXP): Define.
8897         * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
8898         * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
8899         * print-rtl.c (print_rtx): Likewise.
8900         * gengtype.c (adjust_field_rtx_def): Likewise.
8901         * var-tracking.c (vt_add_function_parameter): Adjust
8902         gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
8903         * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
8904         * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
8905         partition is a default definition of a PARM_DECL, use ENTRY_VALUE
8906         of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
8907
8908         * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
8909         Call var_location debug hook even on CALL_INSNs.
8910         (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
8911         * rtl.def (ENTRY_VALUE): New.
8912         * dwarf2out.c: Include cfglayout.h.
8913         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
8914         output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
8915         (struct call_arg_loc_node): New type.
8916         (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
8917         tail_call_site_count): New variables.
8918         (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
8919         DW_TAG_GNU_call_site_parameter.
8920         (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
8921         DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
8922         DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
8923         DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
8924         and DW_AT_GNU_all_source_call_sites.
8925         (mem_loc_descriptor): Handle ENTRY_VALUE.
8926         (add_src_coords_attributes): Don't add enything if
8927         DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
8928         (dwarf2out_abstract_function): Save and clear call_arg_location,
8929         call_site_count and tail_call_site_count around dwarf2out_decl call.
8930         (gen_call_site_die): New function.
8931         (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
8932         (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
8933         (dwarf2out_function_decl): Clear call_arg_locations,
8934         call_arg_loc_last, set call_site_count and tail_call_site_count
8935         to -1 and free block_map.
8936         (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
8937         CALL_INSNs.  Add NOTE_DURING_CALL_P var location notes even when not
8938         followed by any real instructions.
8939         (dwarf2out_begin_function): Set call_site_count and
8940         tail_call_site_count to 0.
8941         (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
8942         is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
8943         attempt to force a DIE for it and worst case remove the attribute.
8944         (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
8945         check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
8946         the decl itself.
8947         * var-tracking.c: Include tm_p.h.
8948         (vt_stack_adjustments): For calls call note_register_arguments.
8949         (argument_reg_set): New variable.
8950         (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
8951         ensure the VALUE is resolved.
8952         (call_arguments): New variable.
8953         (prepare_call_arguments): New function.
8954         (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
8955         (struct expand_loc_callback_data): Add ignore_cur_loc field.
8956         (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
8957         always use the best expression.
8958         (vt_expand_loc): Add ignore_cur_loc argument.
8959         (vt_expand_loc_dummy): Clear ignore_cur_loc field.
8960         (emit_note_insn_var_location): Adjust vt_expand_loc callers.
8961         (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
8962         note for all calls.
8963         (vt_add_function_parameter): Use cselib_lookup_from_insn.
8964         If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
8965         argument.  Don't call cselib_preserve_only_values and
8966         cselib_reset_table.
8967         (note_register_arguments): New function.
8968         (vt_initialize): Compute argument_reg_set.  Call
8969         vt_add_function_parameters before processing basic blocks instead of
8970         afterwards.  For calls call prepare_call_arguments before calling
8971         cselib_process_insn.
8972         * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
8973         * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
8974         (var-tracking.o): Depend on $(TM_P_H).
8975         * cfglayout.h (insn_scope): New prototype.
8976         * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
8977         * cfglayout.c (insn_scope): No longer static.
8978         * insn-notes.def (CALL_ARG_LOCATION): New.
8979         * calls.c (expand_call, emit_library_call_value_1): Put USEs for
8980         MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
8981         * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
8982         nothing for DECL_EXTERNAL BLOCK_VARS.
8983
8984 2011-03-16  Alan Modra  <amodra@gmail.com>
8985
8986         PR target/45844
8987         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
8988         create invalid offset address for vsx splat insn.
8989         * config/rs6000/predicates.md (splat_input_operand): New.
8990         * config/rs6000/vsx.md (vsx_splat_*): Use it.
8991
8992 2011-03-15  Xinliang David Li  <davidxl@google.com>
8993
8994         PR c/47837
8995         * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
8996         (normalize_preds): New function.
8997         (is_use_properly_guarded): Normalize def predicates.
8998
8999 2011-03-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
9000
9001         PR target/46788
9002         * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
9003         in the output template.
9004
9005 2011-03-15  Richard Guenther  <rguenther@suse.de>
9006
9007         PR middle-end/47650
9008         * tree-pretty-print.c (dump_function_declaration): Properly
9009         dump unprototyped and varargs function types.
9010
9011 2011-03-15  Richard Guenther  <rguenther@suse.de>
9012
9013         PR tree-optimization/13954
9014         * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
9015         and friends.
9016
9017 2011-03-15  Richard Guenther  <rguenther@suse.de>
9018
9019         PR tree-optimization/48037
9020         * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
9021         selects into BIT_FIELD_REFs.
9022         (non_rewritable_mem_ref_base): Check if a MEM_REF is a
9023         vector select.
9024
9025 2011-03-15  Jakub Jelinek  <jakub@redhat.com>
9026
9027         PR tree-optimization/48129
9028         * builtins.c (fold_builtin_snprintf): Convert to type of
9029         built_in_decls[BUILT_IN_SNPRINTF] retval instead of
9030         implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
9031
9032 2011-03-15  Richard Guenther  <rguenther@suse.de>
9033
9034         PR tree-optimization/41490
9035         * tree-ssa-dce.c (propagate_necessity): Handle returns without
9036         value but with VUSE.
9037         * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
9038         return statements.
9039         * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
9040         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
9041         * tree-tailcall.c (find_tail_calls): Ignore returns.
9042
9043 2011-03-15  Richard Guenther  <rguenther@suse.de>
9044
9045         PR middle-end/48031
9046         * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
9047         or variable-indexed array accesses when in gimple form.
9048
9049 2011-03-15  Richard Guenther  <rguenther@suse.de>
9050
9051         * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
9052
9053 2011-03-15  Alan Modra  <amodra@gmail.com>
9054
9055         PR target/48032
9056         * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
9057         presume symbol_refs without a symbol_ref_decl are suitably
9058         aligned, nor other trees we may see here.  Handle anchor symbols.
9059         (legitimate_constant_pool_address_p): Comment.  Add mode param.
9060         Check cmodel=medium addresses.  Adjust all calls.
9061         (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
9062         creating cmodel=medium optimized access to locals.
9063         * config/rs6000/constraints.md (R): Pass QImode to
9064         legitimate_constant_pool_address_p.
9065         * config/rs6000/predicates.md (input_operand): Pass mode to
9066         legitimate_constant_pool_address_p.
9067         * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
9068         Update prototype.
9069
9070 2011-03-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
9071
9072         PR target/48053
9073         * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
9074         64-bit constants being loaded into registers other than GPRs such
9075         as loading 0 into a VSX register.
9076
9077 2011-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9078
9079         * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
9080
9081 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
9082
9083         PR middle-end/47917
9084         * builtins.c (fold_builtin_snprintf): New function.
9085         (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
9086         (fold_builtin_4): Likewise.
9087
9088         PR middle-end/38878
9089         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
9090         STRIP_NOPS on arg0 and arg1.  When optimizing X +- C == X
9091         and C - X == X also strip nops from +/-/p+ operand.
9092         When optimizing -X == C, fold C to arg0's type.
9093
9094         PR debug/47946
9095         * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
9096         emit it as add_AT_int instead of add_AT_unsigned.
9097
9098 2011-03-14  Tom Tromey  <tromey@redhat.com>
9099
9100         * unwind-dw2.c: Include sys/sdt.h if it exists.
9101         (_Unwind_DebugHook): Use STAP_PROBE2.
9102         * config.in, configure: Rebuild.
9103         * configure.ac: Check for sys/sdt.h.
9104
9105 2011-03-14  Uros Bizjak  <ubizjak@gmail.com>
9106
9107         * config/i386/i386.md (ROUND_FLOOR): New constant.
9108         (ROUND_CEIL): Ditto.
9109         (ROUND_TRUNC): Ditto.
9110         (ROUND_MXCSR): Ditto.
9111         (ROUND_NO_EXC): Ditto.
9112         (rint<mode>2): Use new defines instead of numerical constants.
9113         (floor<mode>2): Ditto.
9114         (ceil<mode>2): Ditto.
9115         (btrunc<mode>2): Ditto.
9116         * config/i386/i386-builtin-types.def: Define ROUND function type
9117         aliases.
9118         * config/i386/i386.c (enum ix86_builtins): Add
9119         IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
9120         (struct builtin_description): Add
9121         __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
9122         (ix86_expand_sse_round): New static function.
9123         (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
9124         function types.
9125         (ix86_builtin_vectorized_function): Handle
9126         BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
9127
9128 2011-03-14  Tom Tromey  <tromey@redhat.com>
9129
9130         * c-parser.c (c_parser_asm_string_literal): Clear
9131         warn_overlength_strings.
9132
9133 2011-03-14  Tom Tromey  <tromey@redhat.com>
9134
9135         * c-parser.c (disable_extension_diagnostics): Save
9136         warn_overlength_strings.
9137         (restore_extension_diagnostics): Restore warn_overlength_strings.
9138
9139 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
9140
9141         * BASE-VER: Change to 4.7.0.
9142
9143 2011-03-14  Richard Guenther  <rguenther@suse.de>
9144
9145         PR middle-end/48098
9146         * tree.c (build_vector_from_val): Adjust assert to requirements
9147         and reality.
9148
9149 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
9150
9151         PR bootstrap/48102
9152         * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
9153
9154 2011-03-14  Andreas Tobler  <andreast@fgznet.ch>
9155
9156         * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
9157         terms of target_flags_explicit. Adjust copyright year.
9158
9159         * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
9160         * config/rs6000/t-freebsd: New file. Add override for
9161         LIB2FUNCS_EXTRA.
9162
9163 2011-03-13  Chris Demetriou  <cgd@google.com>
9164
9165         * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
9166         (-fno-diagnostics-show-option): this, to reflect current default.
9167         (-Werror=): Update text about -fno-diagnostics-show-option.
9168
9169 2011-03-12  Peter Bergner  <bergner@vnet.ibm.com>
9170
9171         PR target/48053
9172         * config/rs6000/predicates.md (easy_vector_constant_add_self,
9173         easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
9174         * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
9175         mode is not V2DImode or V2DFmode.
9176         (vspltis_constant): Do not handle V2DImode and V2DFmode.
9177         (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
9178         * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
9179         registers to 0.
9180         (movdi_internal64): Likewise.
9181
9182 2011-03-12  Sebastian Pop  <sebastian.pop@amd.com>
9183
9184         PR tree-optimization/47127
9185         * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
9186         parameter.
9187         (set_cloog_options): Same.
9188         (scop_to_clast): Same.
9189         (print_clast_stmt): Do not call cloog_state_malloc and
9190         cloog_state_free.
9191         (print_generated_program): Same.
9192         (gloog): Same.
9193         * graphite-clast-to-gimple.h (cloog_state): Declared.
9194         (scop_to_clast): Adjust declaration.
9195         * graphite.c (cloog_state): Defined here.
9196         (graphite_initialize): Call cloog_state_malloc.
9197         (graphite_finalize): Call cloog_state_free.
9198
9199 2011-03-11  Jason Merrill  <jason@redhat.com>
9200
9201         * attribs.c (lookup_attribute_spec): Take const_tree.
9202         * tree.h: Adjust.
9203
9204 2011-03-11  Joseph Myers  <joseph@codesourcery.com>
9205
9206         * config/sparc/sparc.c (sparc_option_override): Use
9207         PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
9208
9209 2011-03-11  Richard Guenther  <rguenther@suse.de>
9210
9211         PR tree-optimization/48067
9212         * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
9213         multiplication result will be only used once on the target
9214         stmt.
9215
9216 2011-03-11  Richard Guenther  <rguenther@suse.de>
9217
9218         * doc/invoke.texi (max-inline-insns-single): Adjust default value.
9219
9220 2011-03-11  Richard Guenther  <rguenther@suse.de>
9221
9222         PR lto/48073
9223         * tree.c (find_decls_types_r): Do not walk types only reachable
9224         from IDENTIFIER_NODEs.
9225
9226 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
9227
9228         PR middle-end/48044
9229         * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
9230         all vnode->force_output nodes as needed.
9231
9232 2011-03-11  Jason Merrill  <jason@redhat.com>
9233
9234         PR c++/48069
9235         * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
9236         COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
9237
9238 2011-03-11  Martin Jambor  <mjambor@suse.cz>
9239
9240         * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
9241         cgraph_node.
9242
9243 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
9244
9245         PR tree-optimization/48063
9246         * ipa-inline.c (cgraph_decide_inlining): Don't try to
9247         inline functions called once if !tree_can_inline_p (node->callers).
9248
9249 2011-03-11  Chen Liqin  <liqin.gcc@gmail.com>
9250
9251         * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
9252         extra_objs.
9253         * config/score/score3.c: Delete.
9254         * config/score/score3.h: Delete.
9255         * config/score/mul-div.S: Delete.
9256         * config/score/sfp-machine.h: Add new file.
9257         * config/score/constraints.md: Add new file.
9258         * config/score/t-score-softfp: Add new file.
9259         * config/score/t-score-elf: Remove score3.o, do not generate multilib.
9260         * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
9261         (score7_extra_constraint): Delete.
9262         (score7_option_override): Remove unused code.
9263         * config/score/score.c: Remove score3 and score5 define and code.
9264         * config/score/score.h: Remove score3 and score5 define and code.
9265         * config/score/score.md: Remove score3 template and unusual insn.
9266         * config/score/score.opt: Remove score3 and score5 options.
9267
9268 2011-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9269
9270         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
9271         when _HPUX_SOURCE is defined.
9272         (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
9273
9274 2011-03-10  Jason Merrill  <jason@redhat.com>
9275
9276         PR c++/48029
9277         * stor-layout.c (layout_type): Don't set structural equality
9278         on arrays of incomplete type.
9279         * tree.c (type_hash_eq): Handle comparing them properly.
9280
9281 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
9282
9283         PR debug/48043
9284         * config/s390/s390.c (s390_delegitimize_address): Make sure the
9285         result mode matches original rtl mode.
9286
9287 2011-03-10  Nick Clifton  <nickc@redhat.com>
9288
9289         * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
9290         (andsi3, andsi3_flags): Fix timings for three operand alternative.
9291
9292 2011-03-09  Jakub Jelinek  <jakub@redhat.com>
9293
9294         PR rtl-optimization/47866
9295         * expr.c (store_field): If MEM_SCALAR_P (target), don't use
9296         MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
9297         if target wasn't scalar.
9298         * function.c (assign_stack_temp_for_type): Assert that neither
9299         MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
9300         MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
9301         macro.
9302         * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
9303
9304 2011-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9305
9306         * config/s390/s390-protos.h (s390_label_align): New prototype.
9307         * config/s390/s390.c (s390_label_align): New function.
9308         * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
9309
9310 2011-03-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
9311
9312         PR target/47755
9313         * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
9314         V2DI/V2DF constants.  Only all 0's or all 1's are easy.
9315         (output_vec_const_move): Ditto.
9316
9317 2011-03-08  Anatoly Sokolov  <aesok@post.ru>
9318
9319         * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
9320         * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
9321         * config/mips/mips.c (mips_preferred_reload_class): Make static.
9322         Change 'rclass' argument and result type to reg_class_t.
9323         (TARGET_PREFERRED_RELOAD_CLASS): Define.
9324
9325 2011-03-08  Georg-Johann Lay  <avr@gjlay.de>
9326
9327         * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
9328         * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
9329         (TARGET_MEMORY_MOVE_COST): Define.
9330         (avr_register_move_cost, avr_memory_move_cost): New Functions.
9331
9332 2011-03-08  Jakub Jelinek  <jakub@redhat.com>
9333
9334         PR debug/47881
9335         * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
9336         removed anything.
9337
9338         PR tree-optimization/48022
9339         * fold-const.c (fold_comparison): Don't call fold_overflow_warning
9340         for EQ/NE_EXPR.
9341
9342 2011-03-07  Jakub Jelinek  <jakub@redhat.com>
9343
9344         PR debug/47991
9345         * var-tracking.c (find_use_val): Return NULL for
9346         cui->sets && cui->store_p BLKmode MEMs.
9347
9348 2011-03-07  Anatoly Sokolov  <aesok@post.ru>
9349
9350         * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
9351         Remove.
9352         * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
9353         xstormy16_print_operand_address): Remove.
9354         * config/stormy16/stormy16.c (xstormy16_print_operand,
9355         xstormy16_print_operand_address): Make static.
9356         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
9357
9358 2011-03-07  Pat Haugen  <pthaugen@us.ibm.com>
9359
9360         PR target/47862
9361         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
9362         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
9363         before definition.
9364
9365 2011-03-07  Zdenek Dvorak  <ook@ucw.cz>
9366
9367         PR bootstrap/48000
9368         * cfgloopmanip.c (fix_bb_placements): Return immediately
9369         if FROM is BASE_LOOP's header.
9370
9371 2011-03-07  Paul Wögerer  <paul_woegerer@mentor.com>
9372
9373         * gimplify.c (gimplify_function_tree): Fix building calls
9374         to __builtin_return_address.
9375
9376 2011-03-07  Alan Modra  <amodra@gmail.com>
9377
9378         * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
9379         * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
9380         * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
9381         * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
9382         return_mode args.
9383         * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
9384         (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
9385         (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
9386         (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
9387         * config/rs6000/rs6000.c
9388         (rs6000_elf_end_indicate_exec_stack): Rename to..
9389         (rs6000_elf_file_end): ..this.  Only call file_end_indicate_exec_stack
9390         for POWERPC_LINUX.  Move code emitting .gnu_attribute to here, from..
9391         (rs6000_file_start): ..here.
9392         (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
9393         file scope variables.
9394         (call_ABI_of_interest): New function.
9395         (init_cumulative_args): Set above vars when function return value
9396         is a float, vector, or small struct.
9397         (rs6000_function_arg_advance_1): Likewise for function args.
9398         (rs6000_va_start): Set rs6000_passes_float if variable arg function
9399         references float args.
9400
9401 2011-03-07  Mingjie Xing  <mingjie.xing@gmail.com>
9402
9403         * doc/cfg.texi: Remove "See" before @ref.
9404         * doc/invoke.texi: Likewise.
9405
9406 2011-03-05  Jason Merrill  <jason@redhat.com>
9407
9408         * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
9409
9410 2011-03-05  Anthony Green  <green@moxielogic.com>
9411
9412         * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
9413
9414 2011-03-05  Zdenek Dvorak  <ook@ucw.cz>
9415
9416         PR rtl-optimization/47899
9417         * cfgloopmanip.c (fix_bb_placements): Fix first argument
9418         to flow_loop_nested_p when moving the loop upward.
9419
9420 2011-03-05  Richard Earnshaw  <rearnsha@arm.com>
9421
9422         PR target/47719
9423         * arm.md (movhi_insn_arch4):  Accept any immediate constant.
9424
9425 2011-03-05  Jakub Jelinek  <jakub@redhat.com>
9426
9427         PR tree-optimization/47967
9428         * ipa-cp.c (build_const_val): Return NULL instead of creating
9429         VIEW_CONVERT_EXPR for mismatching sizes.
9430         (ipcp_create_replace_map): Return NULL if build_const_val failed.
9431         (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
9432         give up on versioning.
9433
9434 2011-03-05  Alan Modra  <amodra@gmail.com>
9435
9436         PR target/47986
9437         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
9438         full cmodel medium/large lo_sum + high addresses.
9439
9440 2011-03-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9441
9442         * config/s390/s390.c (s390_decompose_address): Reject non-literal
9443         pool references in UNSPEC_LTREL_OFFSET.
9444
9445 2011-03-04  Jan Hubicka  <jh@suse.cz>
9446
9447         PR lto/47497
9448         * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
9449         (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
9450         * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
9451         Add node pointers.
9452         * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
9453         cgraph_add_thunk): Add node pointers.
9454         * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
9455         associated to right node.
9456         (input_node): Update use of cgraph_same_body_alias
9457         and cgraph_add_thunk.
9458
9459 2011-03-04  Changpeng Fang  <changpeng.fang@amd.com>
9460
9461         * config/i386/i386.opt (mprefer-avx128): New flag.
9462         * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
9463         modes when the flag -mprefer-avx128 is on.
9464
9465 2011-03-04  Richard Sandiford  <richard.sandiford@linaro.org>
9466
9467         * dwarf2out.c (compare_loc_operands): Fix address handling.
9468
9469 2011-03-04  Alan Modra  <amodra@gmail.com>
9470
9471         * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
9472
9473 2011-03-04  Richard Guenther  <rguenther@suse.de>
9474
9475         PR middle-end/47968
9476         * expmed.c (extract_bit_field_1): Prefer vector modes that
9477         vec_extract patterns can handle.
9478
9479 2011-03-04  Richard Guenther  <rguenther@suse.de>
9480
9481         PR middle-end/47975
9482         * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
9483
9484 2011-03-04  Richard Henderson  <rth@redhat.com>
9485
9486         * explow.c (emit_stack_save): Remove 'after' parameter.
9487         (emit_stack_restore): Likewise.
9488         * expr.h: Update to match.
9489         * builtins.c, calls.c, stmt.c: Likewise.
9490         * config/alpha/alpha.md, config/avr/avr.md: Likewise.
9491         * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
9492         * function.c (expand_function_end): Insert the emit_stack_save
9493         sequence before parm_birth_insn instead of after.
9494
9495 2011-03-03  Uros Bizjak  <ubizjak@gmail.com>
9496
9497         * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
9498         (ssse3_pmaddubsw128): Ditto.
9499         (ssse3_pmaddubsw): Ditto.
9500
9501 2011-03-03  Steve Ellcey  <sje@cup.hp.com>
9502
9503         * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
9504
9505 2011-03-03  Jakub Jelinek  <jakub@redhat.com>
9506
9507         PR c/47963
9508         * gimplify.c (omp_add_variable): Only call omp_notice_variable
9509         on TYPE_SIZE_UNIT if it is a DECL.
9510
9511         PR debug/47283
9512         * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
9513         first operand is not is_gimple_mem_ref_addr, try to fold it.
9514         If the operand still isn't is_gimple_mem_ref_addr, clear
9515         MEM_EXPR on op0.
9516
9517 2011-03-03  Richard Guenther  <rguenther@suse.de>
9518
9519         PR middle-end/47283
9520         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
9521         match comment.
9522         (refs_may_alias_p_1): For release branches return true if
9523         we are confused by our input.
9524
9525 2011-03-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9526
9527         * config/s390/s390.c (s390_function_value): Rename to ...
9528         (s390_function_and_libcall_value): ... this.
9529         (s390_function_value): New function.
9530         (s390_libcall_value): New function.
9531         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
9532         * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
9533         target macro definitions.
9534         * config/s390/s390-protos.h (s390_function_value): Remove prototype.
9535
9536 2011-03-02  Joseph Myers  <joseph@codesourcery.com>
9537
9538         * config/i386/freebsd64.h (CC1_SPEC): Define.
9539         * config/i386/linux64.h (CC1_SPEC): Define.
9540         * config/i386/x86-64.h (CC1_SPEC): Don't define.
9541
9542 2011-03-02  Anatoly Sokolov  <aesok@post.ru>
9543
9544         * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
9545         Remove.
9546         * config/stormy16/stormy16.c: Include reload.h.
9547         (xstormy16_memory_move_cost): New function.
9548         (TARGET_MEMORY_MOVE_COST): Define.
9549
9550 2011-03-02  Richard Sandiford  <richard.sandiford@linaro.org>
9551
9552         PR rtl-optimization/47925
9553         * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
9554         with side effects.  Remove the more-specific check for volatile asms.
9555
9556 2011-03-02  Alan Modra  <amodra@gmail.com>
9557
9558         PR target/47935
9559         * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
9560         toc relative addresses for valid offsets.
9561
9562 2011-03-01  Richard Guenther  <rguenther@suse.de>
9563
9564         PR tree-optimization/47890
9565         * tree-vect-loop.c (get_initial_def_for_induction): Set
9566         related stmt properly.
9567
9568 2011-03-01  Richard Guenther  <rguenther@suse.de>
9569
9570         PR lto/47924
9571         * lto-streamer.c (lto_record_common_node): Also register
9572         the canonical type.
9573
9574 2011-03-01  Richard Guenther  <rguenther@suse.de>
9575
9576         PR lto/46911
9577         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
9578         Do not stream DECL_ABSTRACT_ORIGIN.
9579         (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
9580         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
9581         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
9582         Do not stream DECL_ABSTRACT_ORIGIN.
9583         (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
9584         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
9585
9586 2011-02-28  Anatoly Sokolov  <aesok@post.ru>
9587
9588         * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
9589         FUNCTION_VALUE_REGNO_P): Remove.
9590         * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
9591         * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
9592         Add 'outgoing' argument.
9593         (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
9594         function.
9595         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
9596         TARGET_FUNCTION_VALUE_REGNO_P): Define.
9597
9598 2011-02-28  Kai Tietz  <kai.tietz@onevision.com>
9599
9600         PR debug/28047
9601         * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
9602         (lookup_filename): Likewise.
9603         * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
9604
9605 2011-02-28  Bernd Schmidt  <bernds@codesourcery.com>
9606             Jakub Jelinek  <jakub@redhat.com>
9607
9608         PR middle-end/47893
9609         * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
9610         (assign_stack_local_1): Change last argument type to int.
9611         * function.c (assign_stack_local_1): Replace reduce_alignment_ok
9612         argument with kind.  If bit ASLK_RECORD_PAD is not set in it,
9613         don't record padding space into frame_space_list nor use those areas.
9614         (assign_stack_local): Adjust caller.
9615         (assign_stack_temp_for_type): Call assign_stack_local_1 instead
9616         of assign_stack_local, pass 0 as last argument.
9617         * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
9618         callers.
9619
9620 2011-02-28  Jakub Jelinek  <jakub@redhat.com>
9621
9622         PR debug/47283
9623         * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
9624         Use target address_mode and pointer_mode hooks instead of hardcoded
9625         Pmode and ptr_mode.  Handle some simple cases of extending if
9626         POINTERS_EXTEND_UNSIGNED < 0.
9627         (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
9628         Call convert_debug_memory_address.
9629         (expand_debug_expr) <case ADDR_EXPR>: Pass as to
9630         convert_debug_memory_address.
9631
9632         PR middle-end/46790
9633         * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
9634         * configure: Regenerated.
9635         * config.in: Regenerated.
9636         * varasm.c (default_function_section): Return NULL
9637         if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
9638
9639 2011-02-28  Martin Jambor  <mjambor@suse.cz>
9640
9641         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
9642         the description to match the printed values.
9643
9644 2011-02-28  Richard Guenther  <rguenther@suse.de>
9645
9646         * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
9647         of the copied scope tree.
9648
9649 2011-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9650
9651         * doc/extend.texi (Function Attributes): Avoid deeply (and
9652         wrongly) nested tables.
9653
9654 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
9655
9656         PR middle-end/47903
9657         * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
9658         MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
9659         r isn't op0 nor op1.
9660
9661 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
9662
9663         * config/avr/avr.md: Remove magic comment for emacs.
9664
9665 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
9666
9667         PR target/45261
9668         * config/avr/avr.c (avr_option_override): Use error on bad options.
9669         (avr_help): New function.
9670         (TARGET_HELP): Define.
9671
9672 2011-02-22  Georg-Johann Lay  <avr@gjlay.de>
9673
9674         PR target/42240
9675         * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
9676         (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
9677
9678 2011-02-26  Gerald Pfeifer  <gerald@pfeifer.com>
9679
9680         * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
9681         (ARM Options): Ditto.
9682         (i386 and x86-64 Options): Ditto.
9683         (RX Options): Ditto.
9684         (SPARC Options): Ditto.
9685
9686 2011-02-26  Tijl Coosemans  <tijl@coosemans.org>
9687
9688         * config.gcc (i386-*-freebsd*): Make i486 the default arch on
9689         FreeBSD 6 and later.  Generally use cpu generic.
9690
9691 2011-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
9692
9693         * doc/cpp.texi: Update copyright years.
9694
9695 2011-02-25  Sebastien Bourdeauducq  <sebastien@milkymist.org>
9696
9697         PR target/46898
9698         * config/lm32/lm32.md (ashrsi3): Added needed variable.
9699
9700 2011-02-25  Jon Beniston  <jon@beniston.com>
9701
9702         PR target/46898
9703         * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
9704         * config/lm32/lm32.md (ashlsi3): Remove unused variable.
9705         * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
9706         (lm32_block_move_inline): Add type cast to remove warning.
9707         (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
9708         (gen_int_relational): Move declarations to start of function.
9709
9710 2011-02-25  Eric Botcazou  <ebotcazou@adacore.com>
9711
9712         PR tree-optimization/45470
9713         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
9714         can throw internally only.
9715         * tree-vect-stmts.c (vectorizable_call): Likewise.
9716
9717 2011-02-24  Anatoly Sokolov  <aesok@post.ru>
9718
9719         * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
9720         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
9721         * config/stormy16/stormy16-protos.h
9722         (xstormy16_preferred_reload_class): Remove.
9723         * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
9724         static. Change 'rclass' argument and return type to reg_class_t.
9725         (TARGET_PREFERRED_RELOAD_CLASS,
9726         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
9727
9728 2011-02-24  Richard Guenther  <rguenther@suse.de>
9729
9730         * lto-streamer-in.c (input_bb): Do not find referenced vars
9731         in debug statements.
9732
9733 2011-02-23  Jason Merrill  <jason@redhat.com>
9734
9735         * common.opt (fabi-version): Document v5 and v6.
9736
9737 2011-02-23  Richard Guenther  <rguenther@suse.de>
9738
9739         PR tree-optimization/47849
9740         * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
9741
9742 2011-02-23  Jie Zhang  <jie@codesourcery.com>
9743
9744         * opts-common.c (decode_cmdline_option): Print empty string
9745         argument as "" in decoded->orig_option_with_args_text.
9746         * gcc.c (execute): Print empty string argument as ""
9747         in the verbose output.
9748         (do_spec_1): Keep empty string argument.
9749
9750 2011-02-23  Nathan Froyd  <froydnj@codesourcery.com>
9751
9752         * config.gcc: Declare score-* and crx-* obsolete.
9753
9754 2011-02-23  Jie Zhang  <jie@codesourcery.com>
9755
9756         PR rtl-optimization/47763
9757         * web.c (web_main): Ignore naked clobber when replacing register.
9758
9759 2011-02-22  Anatoly Sokolov  <aesok@post.ru>
9760
9761         * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
9762         Remove.
9763
9764 2011-02-22  Sebastian Pop  <sebastian.pop@amd.com>
9765
9766         PR doc/47848
9767         * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
9768
9769 2011-02-22  Mike Stump  <mikestump@comcast.net>
9770
9771         * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
9772         assembler.
9773         * configure: Regenerate.
9774
9775 2011-02-21  Chung-Lin Tang  <cltang@codesourcery.com>
9776
9777         PR rtl-optimization/46002
9778         * ira-color.c (update_copy_costs): Change class intersection
9779         test to reg_class_contents[] test of 'hard_regno'.
9780
9781 2011-02-21  Joseph Myers  <joseph@codesourcery.com>
9782
9783         * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
9784         than Driver option.
9785         * config/hpux11.opt (mt): Likewise.
9786         * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
9787         * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
9788         * config/vax/elf.opt (mno-asm-pic): Likewise.
9789         * config/vms/vms.opt (map, mvms-return-codes): Likewise.
9790
9791 2011-02-21  Mike Stump  <mikestump@comcast.net>
9792
9793         PR target/47822
9794         * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
9795         tree so we can get save the type.
9796         * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
9797         for CFString instead of trying to use past the end of the builtins.
9798         * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
9799         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
9800         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
9801         * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
9802         Rename to darwin_builtin_cfstring.
9803         (darwin_init_cfstring_builtins): Return the built type.
9804
9805 2011-02-21  Uros Bizjak  <ubizjak@gmail.com>
9806
9807         PR target/47840
9808         * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
9809         (_mm256_insert_epi64): Use _mm_insert_epi64.
9810
9811 2011-02-21  Anatoly Sokolov  <aesok@post.ru>
9812
9813         * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
9814         * config/stormy16/stormy16-protos.h
9815         (xstormy16_mode_dependent_address_p): Remove.
9816         * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
9817         Make static. Change return type to bool. Change argument type to
9818         const_rtx. Remove dead code.
9819         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
9820
9821 2011-02-21  Richard Guenther  <rguenther@suse.de>
9822
9823         PR lto/47820
9824         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
9825         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
9826         (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
9827         TUs context.
9828         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
9829         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
9830
9831 2011-02-20  Richard Guenther  <rguenther@suse.de>
9832
9833         PR lto/47822
9834         * tree.c (free_lang_data_in_decl): Clean builtins from
9835         the TU decl BLOCK_VARS.
9836
9837 2011-02-19  Alexandre Oliva  <aoliva@redhat.com>
9838
9839         PR debug/47620
9840         PR debug/47630
9841         * haifa-sched.c (fix_tick_ready): Skip tick computation
9842         for debug insns.
9843
9844 2011-02-19  Richard Guenther  <rguenther@suse.de>
9845
9846         PR lto/47647
9847         * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
9848         Remove lazy BLOCK_VARS streaming.
9849         (lto_input_ts_block_tree_pointers): Likewise.
9850         * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
9851
9852 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
9853
9854         * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
9855
9856 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
9857
9858         * config/i386/biarch32.h, config/i386/mach.h,
9859         config/rs6000/aix.opt, config/sh/superh64.h: Remove.
9860
9861 2011-02-19  Jakub Jelinek  <jakub@redhat.com>
9862
9863         PR target/47800
9864         * config/i386/i386.md (peephole2 for shift and plus): Use
9865         operands[1] original mode in the first insn.
9866
9867 2011-02-18  Mike Stump  <mikestump@comcast.net>
9868
9869         * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
9870
9871 2011-02-18  Jan Hubicka  <jh@suse.cz>
9872
9873         PR middle-end/47788
9874         * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
9875         to zero when the function is not inlinable at all.
9876
9877 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9878
9879         * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
9880         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
9881         pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
9882         * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
9883         * config/pa/t-pa64: Likewise.
9884         * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
9885
9886 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
9887
9888         PR driver/47787
9889         * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
9890
9891 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9892
9893         PR target/47792
9894         * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
9895
9896 2011-02-18  Anatoly Sokolov  <aesok@post.ru>
9897
9898         * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
9899         RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
9900         LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
9901         GO_IF_LEGITIMATE_ADDRESS): Remove macros.
9902         * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
9903         (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
9904         m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
9905         m32r_load_postinc_p, m32r_store_preinc_predec_p,
9906         m32r_legitimate_address_p): New functions.
9907         * config/m32r/constraints.md (constraint "S"): Don't use
9908         STORE_PREINC_PREDEC_P.
9909         (constraint "U"): Don't use LOAD_POSTINC_P.
9910
9911 2011-02-18  Chung-Lin Tang  <cltang@codesourcery.com>
9912
9913         PR rtl-optimization/46178
9914         * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
9915         compute ira_hard_regno_cover_class[].
9916
9917 2011-02-18  Richard Guenther  <rguenther@suse.de>
9918
9919         PR lto/47798
9920         * lto-streamer.h (lto_global_var_decls): Declare.
9921         * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
9922         statics for global var processing.
9923
9924 2011-02-18  Richard Guenther  <rguenther@suse.de>
9925
9926         PR tree-optimization/47737
9927         * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
9928         edge dominance check.
9929
9930 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
9931
9932         PR debug/47780
9933         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
9934         avoid invalid rtx sharing.
9935
9936 2011-02-18  Gerald Pfeifer  <gerald@pfeifer.com>
9937
9938         * doc/cpp.texi (Obsolete Features): Add background on the
9939         origin of assertions.
9940
9941 2011-02-17  Iain Sandoe  <iains@gcc.gnu.org>
9942
9943         * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
9944         objc_abi == 2.
9945         * config/darwin.c (output_objc_section_asm_op): Added support for
9946         ABI v1 and v2.
9947         (is_objc_metadata): New.
9948         (darwin_objc2_section): New.
9949         (darwin_objc1_section): New.
9950         (machopic_select_section): Added support for ABI v1 and v2.
9951         (darwin_emit_objc_zeroed): New.
9952         (darwin_output_aligned_bss): Detect objc metadata and treat it
9953         appropriately.
9954         (darwin_asm_output_aligned_decl_common): Same.
9955         (darwin_asm_output_aligned_decl_local): Same.
9956         * config/darwin-sections.def: Updated for ABI v1 and v2.
9957         * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
9958         compiling Objective-C code for the NeXT runtime, default to using
9959         ABI version 0 for 32-bit, and version 2 for 64-bit.
9960
9961 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
9962
9963         * common.opt (optimize_fast): New Variable.
9964         * opts.c (default_options_optimization): Use opts->x_optimize_fast
9965         instead of local variable ofast.
9966
9967 2011-02-17  Nicola Pero  <nicola.pero@meta-innovation.com>
9968
9969         * doc/invoke.texi (fobjc-abi-version): Documented.
9970         (fobjc-nilcheck): Documented.
9971         (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
9972         version.
9973
9974 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
9975
9976         PR driver/47390
9977         * common.opt (export-dynamic): New Driver option.
9978         * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
9979
9980 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
9981
9982         * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
9983
9984 2011-02-17  Alexandre Oliva  <aoliva@redhat.com>
9985             Jan Hubicka  <jh@suse.cz>
9986
9987         PR debug/47106
9988         PR debug/47402
9989         * cfgexpand.c (account_used_vars_for_block): Remove.
9990         (estimated_stack_frame_size): Use referenced vars.
9991         * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
9992         that were referenced in the original function.  Test src_fn
9993         rather than cfun.  Drop redundant get_var_ann.
9994         (setup_one_parameter): Drop redundant get_var_ann.
9995         (declare_return_variable): Likewise.
9996         (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
9997         (copy_arguments_for_versioning): Drop redundant get_var_ann.
9998         * ipa-inline.c (compute_inline_parameters): Do not compute
9999         disregard_inline_limits here.
10000         (compute_inlinable_for_current, pass_inlinable): New.
10001         (pass_inline_parameters): Require PROP_referenced_vars.
10002         * cgraphunit.c (cgraph_process_new_functions): Don't run
10003         compute_inline_parameters explicitly unless function is in SSA form.
10004         (cgraph_analyze_function): Set .disregard_inline_limits.
10005         * tree-sra.c (convert_callers): Compute inliner parameters
10006         only for functions already in SSA form.
10007
10008 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
10009
10010         * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
10011         -mlittle-endian-data.
10012
10013 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
10014
10015         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
10016         -mno-fpu, not -fpu and -no-fpu.
10017         * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
10018         * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
10019
10020 2011-02-17  Uros Bizjak  <ubizjak@gmail.com>
10021
10022         PR target/43653
10023         * config/i386/i386.c (ix86_secondary_reload): Handle SSE
10024         input reload with PLUS RTX.
10025
10026 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
10027
10028         * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
10029         of InverseVar(MDMX).
10030
10031 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
10032
10033         * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
10034         --m4-340.
10035
10036 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
10037
10038         * config/mn10300/mn10300.opt (mno-crt0): New.
10039
10040 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
10041
10042         * config/m68k/uclinux.opt (static-libc): New Driver option.
10043
10044 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
10045
10046         * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
10047
10048 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
10049
10050         * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
10051         %{muser-extend-enabled}.
10052
10053 2011-02-16  Richard Guenther  <rguenther@suse.de>
10054
10055         PR tree-optimization/47738
10056         * tree-ssa-loop.c (run_tree_predictive_commoning): Return
10057         the TODO from tree_predictive_commoning.
10058
10059 2011-02-15  Jeff Law  <law@redhat.com>
10060
10061         Revert
10062         2011-01-25  Jeff Law  <law@redhat.com>
10063
10064         PR rtl-optimization/37273
10065         * ira-costs.c (scan_one_insn): Detect constants living in memory and
10066         handle them like argument loads from stack slots.  Do not double
10067         count memory for memory constants and argument loads from stack slots.
10068
10069 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
10070
10071         PR middle-end/47725
10072         * combine.c (cant_combine_insn_p): Revert the last change.
10073
10074 2011-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
10075
10076         PR target/47755
10077         * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
10078         mode for vector constants.  Remove code that checks for TImode.
10079
10080 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
10081
10082         PR debug/47106
10083         PR debug/47402
10084         * cgraph.h (compute_inline_parameters): Return void.
10085         * ipa-inline.c (compute_inline_parameters): Adjust.
10086
10087 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
10088
10089         PR debug/47106
10090         PR debug/47402
10091         * tree-inline.h (estimated_stack_frame_size): Take cgraph node
10092         rather than decl.
10093         * cfgexpand.c (estimated_stack_frame_size): Likewise.
10094         * ipa-inline.c (compute_inline_parameters): Adjust.
10095
10096 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
10097
10098         PR debug/47106
10099         PR debug/47402
10100         * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
10101         Adjust all users.  Pass FN to...
10102         * tree-flow-inline.h (first_referenced_var): ... this.  Add
10103         fn argument.
10104         * ipa-struct-reorg.c: Adjust.
10105         * tree-dfa.c: Adjust.
10106         * tree-into-ssa.c: Adjust.
10107         * tree-sra.c: Adjust.
10108         * tree-ssa-alias.c: Adjust.
10109         * tree-ssa-live.c: Adjust.
10110         * tree-ssa.c: Adjust.
10111         * tree-ssanames.c: Adjust.
10112         * tree-tailcall.c: Adjust.
10113
10114 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
10115
10116         PR debug/47106
10117         PR debug/47402
10118         * tree-flow.h (referenced_var_lookup): Add fn parameter.
10119         Adjust all callers.
10120         * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
10121         * tree-flow-inline.h: Adjust.
10122         * gimple-pretty-print.c: Adjust.
10123         * tree-into-ssa.c: Adjust.
10124         * tree-ssa.c: Adjust.
10125         * cfgexpand.c: Adjust.
10126
10127 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
10128
10129         * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
10130         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10131         (EXTRA_CONSTRAINT): Delete.
10132         * config/iq2000/constraints.md: New file.
10133         * config/iq2000/iq2000.md: Include it.
10134         (define_insn ""): Delete.
10135         (movsi_internal2, movhi_internal2, movqi_internal2): Delete
10136         unsupported constraint letters from patterns.
10137         (call_value, call_value_internal1): Likewise.
10138         (call_value_multiple_internal1): Likewise.
10139
10140 2011-02-15  Nick Clifton  <nickc@redhat.com>
10141
10142         * config/mn10300/mn10300.c: Include tm-constrs.h.
10143         (struct liw_data): New data structure describing an LIW candidate
10144         instruction.
10145         (extract_bundle): Use struct liw_data.  Allow small integer
10146         operands for some instructions.
10147         (check_liw_constraints): Use struct liw_data.  Remove swapped
10148         parameter.  Add comments describing the checks.  Fix bug when
10149         assigning the source of liw1 to the source of liw2.
10150         (liw_candidate): Delete.  Code moved into extract_bundle.
10151         (mn10300_bundle_liw): Use struct liw_data.  Check constraints
10152         before swapping.
10153         * config/mn10300/predicates.md (liw_operand): New predicate.
10154         Allows registers and small integer constants.
10155         * config/mn10300/constraints.md (O): New constraint.  Accetps
10156         integers in the range -8 to +7 inclusive.
10157         * config/mn10300/mn10300.md (movesi_internal): Add an alternative
10158         for moving a small integer into a register.  Give this alternative
10159         LIW attributes.
10160         (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
10161         (ashlsi3): Likewise, plus give LIW attributes to the alternatives
10162         using the J,K,L and M constraints,
10163         (liw): Remove SI mode on second operands to allow for HI and QI
10164         mode values.
10165         (cmp_liw, liw_cmp): Likewise.  Plus fix order of operands in the
10166         instruction.
10167
10168 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
10169
10170         PR middle-end/47725
10171         * combine.c (cant_combine_insn_p): Check zero/sign extended
10172         hard registers.
10173
10174 2011-02-15  Richard Guenther  <rguenther@suse.de>
10175
10176         PR tree-optimization/47743
10177         * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
10178         for a non-type-compatible VN lookup bail out.
10179
10180 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
10181
10182         * config/fr30/constraints.md: New file.
10183         * config/fr30/fr30.md: Include it.
10184         * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
10185         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10186         (EXTRA_CONSTRAINT): Delete.
10187
10188 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
10189
10190         * config/frv/constraints.md: New file.
10191         * config/frv/predicates.md: Include it.
10192         * config/frv/frv.c (reg_class_from_letter): Delete.
10193         (frv_option_override): Don't initialize it.
10194         * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
10195         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
10196         (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
10197         (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
10198         (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
10199         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10200         (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
10201         (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
10202         (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
10203         (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
10204         (REG_CLASS_FROM_CONSTRAINT): Delete.
10205
10206 2011-02-15  Jakub Jelinek  <jakub@redhat.com>
10207
10208         PR middle-end/47581
10209         * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
10210         if frame size is 0 in a leaf function.
10211
10212 2011-02-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10213
10214         PR pch/14940
10215         * config/alpha/host-osf.c: New file.
10216         * config/alpha/x-osf: New file.
10217         * config.host (alpha*-dec-osf*): Use it.
10218
10219 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
10220
10221         * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
10222         * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
10223         * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
10224         (rx_mode_dependent_address_p): ...this. Make static. Change argument
10225         type to const_rtx.
10226         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
10227
10228 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
10229
10230         * config/stormy16/constraints.md: New file.
10231         * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
10232         Use satisfies_constraint_Q and satisfies_constraint_R.
10233         * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
10234         Delete.
10235         (xstormy16_legitiamte_address_p): Declare.
10236         * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
10237         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10238         (EXTRA_CONSTRAINT): Delete.
10239         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
10240         Un-staticize.
10241         (xstormy16_extra_constraint_p): Delete.
10242
10243 2011-02-14  Eric Botcazou  <ebotcazou@adacore.com>
10244
10245         PR tree-optimization/46494
10246         * loop-unroll.c (split_edge_and_insert): Adjust comment.
10247         * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
10248         (pass_rtl_loop_done): Add TODO_verify_flow.
10249         * fwprop.c (pass_rtl_fwprop): Likewise.
10250         * modulo-sched.c (pass_sms): Likewise.
10251         * tree-ssa-dom.c (pass_dominator): Likewise.
10252         * tree-ssa-loop-ch.c (pass_ch): Likewise.
10253         * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
10254         (pass_tree_loop_done): Likewise.
10255         * tree-ssa-pre.c (execute_pre): Likewise.
10256         * tree-ssa-reassoc.c (pass_reassoc): Likewise.
10257         * tree-ssa-sink.c (pass_sink_code): Likewise.
10258         * tree-vrp.c (pass_vrp): Likewise.
10259
10260 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
10261
10262         * config/v850/constraints.md: New file.
10263         * config/v850/v850.md: Include it.
10264         * config/v850/predicates.md (reg_or_0_operand): Use
10265         satisfies_constraint_G.
10266         (special_symbolref_operand): Use satisfies_constraint_K.
10267         * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
10268         (GO_IF_LEGITIMATE_ADDRESS): Likewise.
10269         (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
10270         (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
10271         (EXTRA_CONSTRAINT): Delete.
10272         (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
10273         (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
10274         (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
10275
10276 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
10277
10278         PR target/47696
10279         * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
10280         description.
10281
10282 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
10283
10284         * config/mcore/constraints.md: New file.
10285         * config/mcore/mcore.md: Include it.
10286         * config/mcore/mcore.c (reg_class_from_letter): Delete.
10287         * config/mcore/mcore.h (reg_class_from_letter): Delete.
10288         (REG_CLASS_FROM_LETTER): Delete.
10289         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
10290         insn_const_int_ok_for_constraint.
10291         (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
10292         (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
10293         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10294         (EXTRA_CONSTRAINT): Delete.
10295
10296 2011-02-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10297
10298         PR ada/41929
10299         * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
10300         (IS_SIGHANDLER): Define.
10301         (sparc64_is_sighandler): New function, split off from
10302         sparc64_fallback_frame_state.
10303         (sparc_is_sighandler): New function, split off from
10304         sparc_fallback_frame_state.
10305         (sparc64_fallback_frame_state): Merge with ...
10306         (sparc_fallback_frame_state): ... this into ...
10307         (MD_FALLBACK_FRAME_STATE_FOR): ... this.
10308         Change new_cfa to long.  Remove regs_off, fpu_save_off, fpu_save.
10309         Define nframes, mctx.  Use IS_SIGHANDLER, handler_args, mctx, walk
10310         stack instead of hardcoded offsets.
10311
10312 2011-02-14  Andriy Gapon  <avg@freebsd.org>
10313
10314         PR target/45808
10315         * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
10316
10317 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10318
10319         * configure: Regenerate.
10320
10321 2011-02-12  Joseph Myers  <joseph@codesourcery.com>
10322
10323         PR driver/45731
10324         * gcc.c (asm_options): Correct spec matching --target-help.
10325
10326 2011-02-12  Martin Jambor  <mjambor@suse.cz>
10327
10328         * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
10329         to gimple call error.
10330
10331 2011-02-12  Mike Stump  <mikestump@comcast.net>
10332
10333         * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
10334         comments in backslash regions.
10335
10336 2011-02-12  Mike Stump  <mikestump@comcast.net>
10337             Jakub Jelinek  <jakub@redhat.com>
10338             Iain Sandoe  <iains@gcc.gnu.org>
10339
10340         PR target/47324
10341         * dwarf2out.c (output_cfa_loc): When required, apply the
10342         DWARF2_FRAME_REG_OUT macro to adjust register numbers.
10343         (output_loc_sequence): Likewise.
10344         (output_loc_operands_raw): Likewise.
10345         (output_loc_sequence_raw): Likewise.
10346         (output_cfa_loc): Likewise.
10347         (output_loc_list): Suppress register number adjustment when
10348         calling output_loc_sequence()
10349         (output_die): Likewise.
10350
10351 2011-02-12  Anatoly Sokolov  <aesok@post.ru>
10352
10353         * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
10354         Remove macros.
10355         * config/xtensa/xtensa.c (xtensa_register_move_cost,
10356         xtensa_memory_move_cost): New functions.
10357         (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
10358
10359 2011-02-12  Alexandre Oliva  <aoliva@redhat.com>
10360
10361         PR lto/47225
10362         * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
10363         in the current directory.
10364         * configure: Rebuilt.
10365
10366 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
10367
10368         * config/darwin.c (darwin_override_options): Add a hunk missed
10369         from the commit of r168571.  Trim comment line lengths and
10370         correct indents of the preceding block.
10371
10372 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
10373
10374         * gcc.c (driver_handle_option): Concatenate the argument to -F with
10375         the switch.
10376
10377 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
10378
10379         * common.opt (nostartfiles): New Driver option.
10380
10381 2011-02-11  Xinliang David Li  <davidxl@google.com>
10382
10383         PR tree-optimization/47707
10384         * tree-chrec.c (convert_affine_scev): Keep type precision.
10385
10386 2011-02-11  Eric Botcazou  <ebotcazou@adacore.com>
10387
10388         PR tree-optimization/47420
10389         * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
10390
10391 2011-02-11  Pat Haugen  <pthaugen@us.ibm.com>
10392
10393         PR rtl-optimization/47614
10394         * rtl.h (check_for_inc_dec): Declare.
10395         * dse.c (check_for_inc_dec): Externalize...
10396         * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
10397         (reload_cse_simplify_operands): Don't simplify opnds with side effects.
10398
10399 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
10400
10401         PR driver/47678
10402         * gcc.c (main): Do not compile inputs if there were errors in
10403         option handling.
10404         * opts-common.c (read_cmdline_option): Check for wrong language
10405         after other error checks.
10406
10407 2011-02-11  Nathan Froyd  <froydnj@codesourcery.com>
10408
10409         * cgraph.c: Fix comment typos.
10410         * cgraph.h: Likewise.
10411         * cgraphunit.c: Likewise.
10412         * ipa-cp.c: Likewise.
10413         * ipa-inline.c: Likewise.
10414         * ipa-prop.c: Likewise.
10415         * ipa-pure-const.c: Likewise.
10416         * ipa-ref.c: Likewise.
10417         * ipa-reference.c: Likewise.
10418
10419 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
10420
10421         PR debug/47684
10422         * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
10423
10424 2011-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10425
10426         PR testsuite/47400
10427         * doc/sourcebuild.texi (Require Support): Document
10428         dg-require-ascii-locale.
10429
10430 2011-02-11  Mingjie Xing  <mingjie.xing@gmail.com>
10431
10432         * doc/lto.texi (Write summary): Fix missing parentheses.
10433
10434 2011-02-10  DJ Delorie  <dj@redhat.com>
10435
10436         * config/m32c/m32c.c (m32c_option_override): Disable
10437         -fcombine-stack-adjustments until flag value tracking and compare
10438         optimization can be rewritten.
10439
10440 2011-02-10  Peter Bergner  <bergner@vnet.ibm.com>
10441
10442         * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
10443         PROCESSOR_POWER7.
10444         (PROCESSOR_DEFAULT64): Likewise.
10445
10446 2011-02-10  Richard Henderson  <rth@redhat.com>
10447
10448         * config/rx/predicates.md (rx_zs_comparison_operator): Revert
10449         change from 2011-02-03.
10450         * config/rx/rx.c (flags_from_code): Likewise.
10451         (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
10452         is valid, n/pz otherwise.
10453         (rx_select_cc_mode): Return CCmode if Y is not zero.
10454
10455 2011-02-10  Richard Guenther  <rguenther@suse.de>
10456
10457         * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
10458
10459 2011-02-10  Richard Guenther  <rguenther@suse.de>
10460
10461         PR tree-optimization/47677
10462         * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
10463
10464 2011-02-10  Jakub Jelinek  <jakub@redhat.com>
10465
10466         PR target/47665
10467         * combine.c (make_compound_operation): Only change shifts into
10468         multiplication for SCALAR_INT_MODE_P.
10469
10470 2011-02-10  Jie Zhang  <jie@codesourcery.com>
10471
10472         PR testsuite/47622
10473         Revert
10474         2011-02-05  Jie Zhang  <jie@codesourcery.com>
10475         PR debug/42631
10476         * web.c (entry_register): Don't clobber the number of the
10477         first uninitialized reference in used[].
10478
10479 2011-02-09  Richard Guenther  <rguenther@suse.de>
10480
10481         PR tree-optimization/47664
10482         * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
10483         all edges again.
10484
10485 2011-02-09  David Edelsohn  <dje.gcc@gmail.com>
10486
10487         PR target/46481
10488         PR target/47032
10489         * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
10490         PROCESSOR_POWER7.
10491         (PROCESSOR_DEFAULT64): Same.
10492         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
10493
10494 2011-02-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10495
10496         * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
10497
10498 2011-02-09  Martin Jambor  <mjambor@suse.cz>
10499
10500         PR middle-end/45505
10501         * tree-sra.c (struct access): New flags grp_scalar_read and
10502         grp_scalar_write.  Changed description of assignment read and write
10503         flags.
10504         (dump_access): Dump new flags, reorder all of them.
10505         (sort_and_splice_var_accesses): Set the new flag accordingly, use them
10506         to detect multiple scalar reads.
10507         (analyze_access_subtree): Use the new scalar read write flags instead
10508         of the old flags.  Adjusted comments.
10509
10510 2011-02-08  DJ Delorie  <dj@redhat.com>
10511
10512         PR target/47548
10513         * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
10514         patterns.
10515
10516 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
10517
10518         * config/m68k/uclinux.opt: New.
10519         * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
10520
10521 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
10522
10523         * config/cris/elf.opt (sim): New Driver option.
10524
10525 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
10526
10527         * config/xtensa/elf.opt: New.
10528         * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
10529
10530 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
10531
10532         * config/vax/elf.opt: New.
10533         * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
10534
10535 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
10536
10537         * config/rs6000/aix64.opt (posix, pthread): New Driver options.
10538
10539 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
10540
10541         * config/gnu-user.opt: New.
10542         * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
10543         *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
10544         *-*-uclinux*): Use gnu-user.opt.
10545
10546 2011-02-08  Thomas Schwinge  <thomas@schwinge.name>
10547
10548         * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
10549         * config/i386/gnu.h (CPP_SPEC): Likewise.
10550
10551 2011-02-08  Ian Lance Taylor  <iant@google.com>
10552
10553         * common.opt (fcx-limited-range): Add SetByCombined flag.
10554         (ffinite-math-only, fmath-errno, frounding-math): Likewise.
10555         (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
10556         (fassociative-math, freciprocal-math): Likewise.
10557         (funsafe-math-optimizations): Likewise.
10558         * opth-gen.awk: Handle SetByCombined.
10559         * optc-gen.awk: Likewise.
10560         * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
10561         (set_unsafe_math_optimizations_flags): Likewise.
10562         * doc/options.texi (Option properties): Document SetByCombined.
10563
10564 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
10565
10566         * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
10567         i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
10568         m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
10569         m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
10570         sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
10571
10572 2011-02-08  Sebastian Pop  <sebastian.pop@amd.com>
10573
10574         PR tree-optimization/46834
10575         PR tree-optimization/46994
10576         PR tree-optimization/46995
10577         * graphite-sese-to-poly.c (used_outside_reduction): New.
10578         (detect_commutative_reduction): Call used_outside_reduction.
10579         (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
10580         translate_scalar_reduction_to_array only when at least one
10581         loop-phi/close-phi tuple has been detected.
10582
10583 2011-02-08  Richard Guenther  <rguenther@suse.de>
10584
10585         PR middle-end/47639
10586         * tree-vect-generic.c (expand_vector_operations_1): Update
10587         stmts here ...
10588         (expand_vector_operations): ... not here.  Cleanup EH info
10589         and the CFG if required.
10590
10591 2011-02-08  Richard Guenther  <rguenther@suse.de>
10592
10593         PR tree-optimization/47641
10594         * tree-ssa.c (execute_update_addresses_taken): For asm outputs
10595         require type compatibility.
10596
10597 2011-02-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10598
10599         * gimple-low.c (lower_function_body): Don't remove the location of
10600         the return statement here.
10601         (lower_gimple_return): Do it here instead but only if the return
10602         statement is actually used twice.
10603
10604 2011-02-08  Richard Guenther  <rguenther@suse.de>
10605
10606         PR tree-optimization/47632
10607         * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
10608         unused up_to_stmt parameter, return whether cfg-cleanup is
10609         necessary, remove EH info properly.
10610         (forward_propagate_into_gimple_cond): Adjust caller.
10611         (forward_propagate_into_cond): Likewise.
10612         (forward_propagate_comparison): Likewise.
10613         (tree_ssa_forward_propagate_single_use_vars): Make
10614         forward_propagate_comparison case similar to the two others.
10615
10616 2011-02-08  Nick Clifton  <nickc@redhat.com>
10617
10618         * config/mn10300/mn10300.opt (mliw): New command line option.
10619         * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
10620         (liw_bundling): New automaton.
10621         (liw): New attribute.
10622         (liw_op): New attribute.
10623         (liw_op1, liw_op2, liw_both, liw_either): New reservations.
10624         (movsi_internal): Add LIW attributes.
10625         (andsi3): Likewise.
10626         (iorsi3): Likewise.
10627         (xorsi3): Likewise.
10628         (addsi3): Separate register and immediate alternatives.
10629         Add LIW attributes.
10630         (subsi3): Likewise.
10631         (cmpsi): Likewise.
10632         (aslsi3): Likewise.
10633         (lshrsi3): Likewise.
10634         (ashrsi3): Likewise.
10635         (liw): New pattern.
10636         * config/mn10300/mn10300.c (liw_op_names): New
10637         (mn10300_print_operand): Handle 'W' operand descriptor.
10638         (extract_bundle): New function.
10639         (check_liw_constraints): New function.
10640         (liw_candidate): New function.
10641         (mn10300_bundle_liw): New function.
10642         (mn10300_reorg): New function.
10643         (TARGET_MACHINE_DEPENDENT_REORG): Define.
10644         (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
10645         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
10646         __LIW__ or __NO_LIW__.
10647         * doc/invoke.texi: Describe the -mliw command line option.
10648
10649 2011-02-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10650
10651         * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
10652         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
10653         pthread_mutex_unlock): Remove.
10654         * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
10655         * config/pa/t-pa64: Likewise.
10656         * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
10657         shared libc if not linking against libpthread.
10658         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
10659
10660 2011-02-07  Iain Sandoe  <iains@gcc.gnu.org>
10661
10662         PR target/47558
10663         * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
10664         on 10.6 and later to ensure that we always use the unwinder from
10665         the system.  Only add -no_compact_unwind when tarteting darwin
10666         10.6 or later.
10667
10668 2011-02-07  Steve Ellcey  <sje@cup.hp.com>
10669
10670         PR target/46997
10671         * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
10672         (vec_interleave_lowv2sf): Ditto.
10673         (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
10674         (vec_extract_oddv2sf): Ditto.
10675
10676 2011-02-07  Mike Stump  <mikestump@comcast.net>
10677
10678         PR target/42333
10679         Add __ieee_divdc3 entry point.
10680         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
10681         entry point.
10682         (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
10683         * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
10684         * config/darwin.c (darwin_rename_builtins): Add.
10685         * config/darwin-protos.h (darwin_rename_builtins): Add.
10686
10687 2011-02-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
10688
10689         PR target/47636
10690         * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
10691         for the condition.
10692
10693 2011-02-07  Mike Stump  <mikestump@comcast.net>
10694
10695         * config/darwin.opt (mmacosx-version-min): Update default OS version.
10696
10697 2011-02-07  Denis Chertykov  <chertykov@gmail.com>
10698
10699         PR target/47534
10700         * config/avr/libgcc.S (exit): Move .endfunc
10701
10702 2011-02-07  Richard Guenther  <rguenther@suse.de>
10703
10704         PR tree-optimization/47615
10705         * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
10706         * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
10707         (run_scc_vn): Initialize it.
10708         (visit_reference_op_load): Use it.
10709         * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
10710
10711 2011-02-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10712
10713         * config/spu/spu.c (spu_init_libfuncs): Install SImode and
10714         DImode trapping arithmetic libfuncs.
10715
10716 2011-02-07  Richard Guenther  <rguenther@suse.de>
10717
10718         PR tree-optimization/47621
10719         * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
10720         two duplicates ...
10721         (execute_update_addresses_taken): ... here.  Make it more
10722         conservative in what we accept.
10723
10724 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
10725
10726         * config/sparc/freebsd.h (ASM_SPEC): Define.
10727         * config/sparc/vxworks.h (ASM_SPEC): Define.
10728
10729 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
10730
10731         * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
10732
10733 2011-02-06  Steven Bosscher  <steven@gcc.gnu.org>
10734
10735         * doc/invoke.texi: Remove reference to compiler internals from
10736         user documentation.
10737
10738         * reg-notes.def: Remove REG_VALUE_PROFILE.
10739         * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
10740
10741 2011-02-05  Jakub Jelinek  <jakub@redhat.com>
10742
10743         PR middle-end/47610
10744         * varasm.c (default_section_type_flags): If decl is NULL,
10745         and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
10746
10747 2011-02-05  Jie Zhang  <jie@codesourcery.com>
10748
10749         PR debug/42631
10750         * web.c (entry_register): Don't clobber the number of the
10751         first uninitialized reference in used[].
10752
10753 2011-02-04  Sebastian Pop  <sebastian.pop@amd.com>
10754
10755         PR tree-optimization/46194
10756         * tree-data-ref.c (analyze_miv_subscript): Remove comment.
10757         (build_classic_dist_vector_1): Do not represent classic distance
10758         vectors when the access functions are variating in different loops.
10759
10760 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
10761
10762         * config/mips/iris6.opt: New.
10763         * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
10764
10765 2011-02-04  Richard Henderson  <rth@redhat.com>
10766             Steve Ellcey  <sje@cup.hp.com>
10767
10768         PR target/46997
10769         * config/ia64/predicates.md (mux1_brcst_element): New.
10770         * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
10771         * config/ia64/ia64.c (ia64_unpack_assemble): New.
10772         (ia64_unpack_sign): New.
10773         (ia64_expand_unpack): Rewrite using new routines.
10774         (ia64_expand_widen_sum): Ditto.
10775         (ia64_expand_dot_prod_v8qi): Ditto.
10776         * config/ia64/vect.md (mulv8qi3): Rewrite to use new
10777         routines, add endian check.
10778         (pmpy2_even): Rename from pmpy2_r, add endian check.
10779         (pmpy2_odd): Rename from pmpy2_l, add endian check.
10780         (vec_widen_smult_lo_v4hi): Rewrite using new routines.
10781         (vec_widen_smult_hi_v4hi): Ditto.
10782         (vec_widen_umult_lo_v4hi): Ditto.
10783         (vec_widen_umult_hi_v4hi): Ditto.
10784         (mulv2si3): Change endian checks.
10785         (sdot_prodv4hi): Rewrite with new calls.
10786         (udot_prodv4hi): New.
10787         (vec_pack_ssat_v4hi): Add endian check.
10788         (vec_pack_usat_v4hi): Ditto.
10789         (vec_pack_ssat_v2si): Ditto.
10790         (max1_even): Rename from max1_r, add endian check.
10791         (max1_odd): Rename from max1_l, add endian check.
10792         (*mux1_rev): Format change.
10793         (*mux1_mix): Ditto.
10794         (*mux1_shuf): Ditto.
10795         (*mux1_alt): Ditto.
10796         (*mux1_brcst_v8qi): Use new predicate.
10797         (vec_extract_evenv8qi): Remove endian check.
10798         (vec_extract_oddv8qi): Ditto.
10799         (vec_interleave_lowv4hi): Format change.
10800         (vec_interleave_highv4hi): Ditto.
10801         (mix2_even): Rename from mix2_r, add endian check.
10802         (mix2_odd): Rename from mux2_l, add endian check.
10803         (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
10804         (vec_extract_evenodd_helper): Format change.
10805         (vec_extract_evenv4hi): Remove endian check.
10806         (vec_extract_oddv4hi): Remove endian check.
10807         (vec_interleave_lowv2si): Format change.
10808         (vec_interleave_highv2si): Format change.
10809         (vec_initv2si): Remove endian check.
10810         (vecinit_v2si): Add endian check.
10811         (reduc_splus_v2sf): Add endian check.
10812         (reduc_smax_v2sf): Ditto.
10813         (reduc_smin_v2sf): Ditto.
10814         (vec_initv2sf): Remove endian check.
10815         (fpack): Add endian check.
10816         (fswap): Add endian check.
10817         (vec_interleave_highv2sf): Add endian check.
10818         (vec_interleave_lowv2sf): Add endian check.
10819         (fmix_lr): Add endian check.
10820         (vec_setv2sf): Format change.
10821         (*vec_extractv2sf_0_be): Use shift to extract operand.
10822         (*vec_extractv2sf_1_be): New.
10823         (vec_pack_trunc_v4hi): Add endian check.
10824         (vec_pack_trunc_v2si): Format change.
10825
10826 2011-02-04  Jakub Jelinek  <jakub@redhat.com>
10827
10828         PR inline-asm/23200
10829         * tree-ssa-ter.c (is_replaceable_p): Add TER argument.  Don't
10830         do bb, locus and block comparison and disallow loads if it is not set.
10831         (stmt_is_replaceable_p): New function.
10832         (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
10833         callers.
10834         * expr.c (expand_expr_real_1) <case SSA_NAME>: If
10835         get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
10836         SSA_NAME_DEF_STMT.
10837         * tree-flow.h (stmt_is_replaceable_p): New prototype.
10838
10839 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
10840
10841         * config/rs6000/xilinx.opt: New.
10842         * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
10843
10844 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
10845
10846         * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
10847
10848 2011-02-03  Anatoly Sokolov  <aesok@post.ru>
10849
10850         * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
10851         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
10852         * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
10853         secondary_reload_info, xtensa_secondary_reload): Remove.
10854         * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
10855         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
10856         (xtensa_preferred_reload_class): Make static. Change return and
10857         'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
10858         Use CONST_DOUBLE_P predicate.
10859         (xtensa_preferred_output_reload_class): New function.
10860         (xtensa_secondary_reload): Make static.
10861
10862 2011-02-03  Joseph Myers  <joseph@codesourcery.com>
10863
10864         * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
10865         Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
10866         Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
10867
10868 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
10869
10870         PR middle-end/31490
10871         * output.h (SECTION_RELRO): Define.
10872         (SECTION_MACH_DEP): Adjust.
10873         (get_variable_section): New prototype.
10874         * varpool.c (varpool_finalize_named_section_flags): New function.
10875         (varpool_assemble_pending_decls): Call it.
10876         * cgraph.h (varpool_finalize_named_section_flags): New prototype.
10877         * cgraphunit.c (cgraph_output_in_order): Call
10878         varpool_finalize_named_section_flags.
10879         * varasm.c (get_section): Allow section flags conflicts between
10880         relro and read-only sections if the section hasn't been declared yet.
10881         Set SECTION_OVERRIDE after diagnosing section type conflict.
10882         (get_variable_section): No longer static.
10883         (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
10884         readonly sections that need relocations.
10885         (decl_readonly_section_1): New function.
10886         (decl_readonly_section): Use it.
10887
10888         Revert:
10889         2010-11-17  Dinar Temirbulatov  <dtemirbulatov@gmail.com>
10890                     Steve Ellcey  <sje@cup.hp.com>
10891
10892         PR middle-end/31490
10893         * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
10894         if section attribute used.
10895
10896 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
10897
10898         * config/darwin.h (SECTION_NO_ANCHOR): Remove.
10899         * config/darwin.c (SECTION_NO_ANCHOR): Define.
10900         (darwin_init_sections): Remove assertion.
10901
10902 2011-02-03  Nick Clifton  <nickc@redhat.com>
10903
10904         * config/rx/predicates.md (rx_zs_comparison_operator): Remove
10905         lt and ge.
10906         * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
10907         * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
10908         instead of "n" and "pz".
10909         (flags_from_code): LT and GE tests need CC_FLAG_O as well as
10910         CC_FLAG_S.
10911
10912 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
10913
10914         PR target/47312
10915         * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
10916         fma, expand FMA_EXPR as fma{,f,l} call.
10917
10918         PR lto/47274
10919         * lto-streamer-out.c (write_symbol): When writing kind and visibility,
10920         copy them into a unsigned char variable and pass address of it to
10921         lto_output_data_stream.
10922
10923         PR target/47564
10924         * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
10925         around backend_init_target and lang_dependent_init_target calls.
10926         * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
10927         (verify_cgraph_node): Don't call set_cfun here.  Use
10928         cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
10929         Set error_found for incorrectly represented calls to thunks.
10930
10931 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
10932
10933         PR debug/43092
10934         PR rtl-optimization/43494
10935         * rtl.h (for_each_inc_dec_fn): New type.
10936         (for_each_inc_dec): Declare.
10937         * rtlanal.c (struct for_each_inc_dec_ops): New type.
10938         (for_each_inc_dec_find_inc_dec): New fn.
10939         (for_each_inc_dec_find_mem): New fn.
10940         (for_each_inc_dec): New fn.
10941         * dse.c (struct insn_size): Remove.
10942         (replace_inc_dec, replace_inc_dec_mem): Remove.
10943         (emit_inc_dec_insn_before): New fn.
10944         (check_for_inc_dec): Use it, along with for_each_inc_dec.
10945         (canon_address): Pass mem modes to cselib_lookup.
10946         * cselib.h (cselib_lookup): Add memmode argument.  Adjust callers.
10947         (cselib_lookup_from_insn): Likewise.
10948         (cselib_subst_to_values): Likewise.
10949         * cselib.c (find_slot_memmode): New var.
10950         (cselib_find_slot): New fn.  Use it instead of
10951         htab_find_slot_with_hash everywhere.
10952         (entry_and_rtx_equal_p): Use find_slot_memmode.
10953         (autoinc_split): New fn.
10954         (rtx_equal_for_cselib_p): Rename and implement in terms of...
10955         (rtx_equal_for_cselib_1): ... this.  Take memmode, pass it on.
10956         Deal with autoinc.  Special-case recursion into MEMs.
10957         (cselib_hash_rtx): Likewise.
10958         (cselib_lookup_mem): Infer pmode from address mode.  Distinguish
10959         address and MEM modes.
10960         (cselib_subst_to_values): Add memmode, pass it on.
10961         Deal with autoinc.
10962         (cselib_lookup): Add memmode argument, pass it on.
10963         (cselib_lookup_from_insn): Add memmode.
10964         (cselib_invalidate_rtx): Discard obsolete push_operand handling.
10965         (struct cselib_record_autoinc_data): New.
10966         (cselib_record_autoinc_cb): New fn.
10967         (cselib_record_sets): Use it, along with for_each_inc_dec.  Pass MEM
10968         mode to cselib_lookup.  Reset autoinced REGs here instead of...
10969         (cselib_process_insn): ... here.
10970         * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
10971         to cselib_lookup.
10972         (add_uses): Likewise, also to cselib_subst_to_values.
10973         (add_stores): Likewise.
10974         * sched-deps.c  (add_insn_mem_dependence): Pass mode to
10975         cselib_subst_to_values.
10976         (sched_analyze_1, sched_analyze_2): Likewise.  Adjusted.
10977         * gcse.c (do_local_cprop): Adjusted.
10978         * postreload.c (reload_cse_simplify_set): Adjusted.
10979         (reload_cse_simplify_operands): Adjusted.
10980         * sel-sched-dump (debug_mem_addr_value): Pass mode.
10981
10982 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
10983
10984         PR tree-optimization/45122
10985         * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
10986         unsafe assumptions when there's more than one loop exit.
10987
10988 2011-02-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
10989
10990         PR target/47272
10991         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
10992         Document using vector double with the load/store builtins, and
10993         that the load/store builtins always use Altivec instructions.
10994
10995         * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
10996         to use altivec memory instructions, even on VSX.
10997         (vector_altivec_store_<mode>): Ditto.
10998
10999         * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
11000         function.
11001
11002         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
11003         V2DF, V2DI support to load/store overloaded builtins.
11004
11005         * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
11006         altivec load/store builtins for V2DF/V2DI types.
11007
11008         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
11009         set avoid indexed addresses on power6 if -maltivec.
11010         (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
11011         vector_altivec_load/vector_altivec_store builtins.
11012         (altivec_expand_st_builtin): Ditto.
11013         (altivec_expand_builtin): Add VSX memory builtins.
11014         (rs6000_init_builtins): Add V2DI types to internal types.
11015         (altivec_init_builtins): Add support for V2DF/V2DI altivec
11016         load/store builtins.
11017         (rs6000_address_for_altivec): Insure memory address is appropriate
11018         for Altivec.
11019
11020         * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
11021         vec_vsx_ld and vec_vsx_st.
11022         (vsx_store_<mode>): Ditto.
11023
11024         * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
11025         variables to hold long long types for VSX vector memory builtins.
11026         (RS6000_BTI_unsigned_long_long): Ditto.
11027         (long_long_integer_type_internal_node): Ditti.
11028         (long_long_unsigned_type_internal_node): Ditti.
11029
11030         * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
11031         (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
11032         (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
11033
11034         * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
11035         short cuts.
11036         (vec_vsx_st): Ditto.
11037
11038 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
11039
11040         * config/pa/pa-hpux10.opt: New.
11041         * config/hpux11.opt (pthread): New Driver option.
11042         * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
11043         * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
11044
11045 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
11046
11047         * config/ia64/vms.opt: New.
11048         * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
11049
11050 2011-02-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
11051
11052         PR target/47580
11053         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
11054         gpc_reg_operand instead of vsx_register_operand to match rs6000.md
11055         generator functions.
11056         (vsx_floatuns<VSi><mode>2): Ditto.
11057         (vsx_fix_trunc<mode><VSi>2): Ditto.
11058         (vsx_fixuns_trunc<mode><VSi>2): Ditto.
11059
11060 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
11061
11062         * config/i386/djgpp.opt (posix): New Driver option.
11063
11064 2011-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
11065
11066         * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
11067         Move to the unsupported targets list.
11068
11069 2011-02-02  Peter Bergner  <bergner@vnet.ibm.com>
11070
11071         PR rtl-optimization/47525
11072         * df-scan.c: Update copyright years.
11073         (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
11074         and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
11075
11076 2011-02-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11077
11078         * config/i386/sysv4.h (TARGET_VERSION): Remove.
11079         (SUBTARGET_RETURN_IN_MEMORY): Remove.
11080         (ASM_OUTPUT_ASCII): Remove.
11081         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
11082
11083 2011-02-02  Jeff Law  <law@redhat.com>
11084
11085         PR middle-end/47543
11086         * reload.c (find_reloads_address): Handle reg+d address where both
11087         components are invalid by reloading the entire address.
11088
11089 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
11090             Richard Guenther  <rguenther@suse.de>
11091
11092         PR tree-optimization/40979
11093         PR bootstrap/47044
11094         * passes.c (init_optimization_passes): After LIM call copy_prop
11095         and DCE to clean up.
11096         * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
11097
11098 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
11099
11100         PR tree-optimization/47576
11101         PR tree-optimization/47555
11102         * doc/invoke.texi (scev-max-expr-complexity): Documented.
11103         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
11104         (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
11105         * tree-scalar-evolution.c (follow_ssa_edge): Use
11106         PARAM_SCEV_MAX_EXPR_COMPLEXITY.
11107
11108 2011-02-02  Richard Guenther  <rguenther@suse.de>
11109
11110         PR tree-optimization/47566
11111         * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
11112
11113 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
11114
11115         PR debug/47106
11116         PR debug/47402
11117         * tree-inline.c (declare_return_variable): Remove unused caller
11118         variable.
11119
11120         PR debug/47106
11121         PR debug/47402
11122         * tree-flow-inline.h (clear_is_used, is_used_p): New.
11123         * cfgexpand.c (account_used_vars_for_block): Use them.
11124         * tree-nrv.c (tree_nrv): Likewise.
11125         * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
11126         (dump_scope_block): Likewise.
11127         (remove_unused_locals): Likewise.
11128
11129         PR debug/47106
11130         PR debug/47402
11131         * tree-inline.c (declare_return_variable): Add result decl to
11132         local decls only once.
11133         * gimple-low.c (record_vars_into): Mark newly-created variables
11134         as referenced.
11135
11136 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
11137
11138         PR debug/47498
11139         PR debug/47501
11140         PR debug/45136
11141         PR debug/45130
11142         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
11143         debug insns.
11144         (no_real_insns_p, schedule_block, set_priorities): Drop special
11145         treatment of boundary debug insns.
11146         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
11147         * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
11148         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
11149         (BOUNDARY_DEBUG_INSN_P): Likewise.
11150         (SCHEDULE_DEBUG_INSN_P): Likewise.
11151         * sched-rgn.c (init_ready_list): Drop special treatment of
11152         boundary debug insns.
11153         * final.c (rest_of_clean_state): Clear notes' BB.
11154
11155 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
11156
11157         * config/openbsd.opt (assert=): New Driver option.
11158
11159 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
11160
11161         * config/i386/nto.opt: New.
11162         * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
11163
11164 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
11165
11166         * config/i386/netware.opt: New.
11167         * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
11168
11169 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
11170
11171         * config/interix.opt (posix): New Driver option.
11172
11173 2011-02-01  DJ Delorie  <dj@redhat.com>
11174
11175         * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
11176
11177         * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
11178         class for A0/A1.
11179
11180 2011-02-01  Sebastian Pop  <sebastian.pop@amd.com>
11181
11182         PR tree-optimization/47561
11183         * toplev.c (process_options): Print the Graphite flags.  Add
11184         flag_loop_flatten to the list of options requiring Graphite.
11185
11186 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
11187
11188         * config/i386/cygming.opt (posix): New Driver option.
11189
11190 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
11191
11192         * config/arm/vxworks.opt: New.
11193         * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
11194
11195 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
11196
11197         * config/alpha/elf.opt: New.
11198         * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
11199         alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
11200
11201 2011-02-01  Richard Guenther  <rguenther@suse.de>
11202
11203         PR tree-optimization/47559
11204         * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
11205         store-motion on references that can throw.
11206
11207 2011-02-01  Bernd Schmidt  <bernds@codesourcery.com>
11208
11209         * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
11210         * tree-pass.h (TDF_CSELIB): New macro.
11211         * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
11212         cselib_lookup): Check for it rather than for TDF_DETAILS.
11213
11214 2011-02-01  H.J. Lu  <hongjiu.lu@intel.com>
11215
11216         PR driver/47547
11217         * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
11218         is HOST_BIT_BUCKET.
11219
11220         * opts.c (finish_options): Don't add x_aux_base_name if it is
11221         HOST_BIT_BUCKET.
11222
11223 2011-02-01  Richard Guenther  <rguenther@suse.de>
11224
11225         PR tree-optimization/47555
11226         Revert
11227         2010-07-15  Sebastian Pop  <sebastian.pop@amd.com>
11228
11229         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
11230
11231 2011-02-01  Sebastien Bourdeauducq  <sebastien@milkymist.org>
11232
11233         PR gcc/46692
11234         * config/lm32/t-lm32: Add multilib for all CPU options.
11235
11236 2011-02-01  Richard Guenther  <rguenther@suse.de>
11237
11238         PR tree-optimization/47541
11239         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
11240         sure to have a field at offset zero.
11241
11242 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
11243
11244         * config/arc/arc.opt (EB, EL): New Driver options.
11245
11246 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
11247
11248         * config/alpha/osf5.opt: New.
11249         * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
11250
11251 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
11252
11253         * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
11254
11255 2011-01-31  Sebastian Pop  <sebastian.pop@amd.com>
11256
11257         * common.opt (ftree-loop-linear): Use Alias to make it an alias of
11258         -floop-interchange.
11259         * invoke.texi (-ftree-loop-linear): Make it clear that this flag
11260         is an alias of -floop-interchange and that it requires the
11261         Graphite infrastructure.
11262         * tree-ssa-loop.c (gate_graphite_transforms): Do not set
11263         flag_loop_interchange based on the value of flag_tree_loop_linear.
11264
11265 2011-01-31  Jakub Jelinek  <jakub@redhat.com>
11266             Richard Guenther  <rguenther@suse.de>
11267
11268         PR tree-optimization/47538
11269         * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
11270         type instead of r1type, except for comparisons.  For right
11271         shifts and comparisons punt if there are mismatches in
11272         sizetype vs. non-sizetype types.
11273
11274 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11275
11276         * doc/sourcebuild.texi (Effective-Target Keywords): Document
11277         avx_runtime.
11278
11279 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11280
11281         * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
11282         version number.
11283         * configure: Regenerate.
11284
11285 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11286
11287         * configure.ac (gcc_cv_ld_static_option): Define.
11288         (gcc_cv_ld_dynamic_option): Define.
11289         (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
11290         instead.
11291         (HAVE_LD_STATIC_DYNAMIC): Update message.
11292         (LD_STATIC_OPTION): Define.
11293         (LD_DYNAMIC_OPTION): Define.
11294         * configure: Regenerate.
11295         * config.in: Regenerate.
11296         * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
11297         HAVE_LD_STATIC_DYNAMIC]: Use them.
11298
11299 2011-01-31  Nick Clifton  <nickc@redhat.com>
11300
11301         * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
11302         registers inside interrupt handlers if the handler is not a leaf
11303         function.
11304
11305 2011-01-31  Nick Clifton  <nickc@redhat.com>
11306
11307         * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
11308         reg_renumber returning an INVALID_REGNUM.
11309
11310 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
11311
11312         PR libgcj/44341
11313         * doc/install.texi: Document host options discarded when cross
11314         configuring target libraries.
11315
11316 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
11317
11318         Reverted:
11319         2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
11320         PR debug/45136
11321         PR debug/45130
11322         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
11323         debug insns.
11324         (no_real_insns_p, schedule_block, set_priorities): Drop special
11325         treatment of boundary debug insns.
11326         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
11327         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
11328         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
11329         (BOUNDARY_DEBUG_INSN_P): Likewise.
11330         (SCHEDULE_DEBUG_INSN_P): Likewise.
11331         * sched-rgn.c (init_ready_list): Drop special treatment of
11332         boundary debug insns.
11333         * final.c (rest_of_clean-state): Clear notes' BB.
11334
11335 2011-01-31  Alan Modra  <amodra@gmail.com>
11336
11337         * config/rs6000/rs6000.c (print_operand): Rearrange addends in
11338         toc relative expressions as we do in print_operand_address.
11339
11340 2011-01-30  Kazu Hirata  <kazu@codesourcery.com>
11341
11342         * doc/extend.texi: Follow spelling conventions.
11343         * doc/invoke.texi: Fix a typo.
11344
11345 2011-01-30  Joseph Myers  <joseph@codesourcery.com>
11346
11347         * config/hpux11.opt: New.
11348         * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
11349         ia64*-*-hpux*): Use hpux11.opt.
11350
11351 2011-01-30  Jonathan Yong  <jon_y@users.sourceforge.net>
11352
11353         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
11354         to tmake_file.
11355
11356 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
11357
11358         * doc/install.texi (hppa-hp-hpux10): Remove references to HP
11359         support sites.
11360
11361 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
11362
11363         * doc/install.texi (Binaries): Remove outdated reference for
11364         Motorola 68HC11/68HC12 downloads.
11365
11366 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
11367
11368         * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
11369         Drepper's paper.
11370
11371 2011-01-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
11372
11373         PR bootstrap/47147
11374         * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
11375         used by NetBSD.
11376
11377 2011-01-28  Ahmad Sharif  <asharif@google.com>
11378
11379         * value-prof.c (check_counter): Corrected error message.
11380
11381 2011-01-29  Jie Zhang  <jie@codesourcery.com>
11382
11383         * config/arm/arm.c (arm_legitimize_reload_address): New.
11384         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
11385         arm_legitimize_reload_address.
11386         * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
11387
11388 2011-01-28  Ian Lance Taylor  <iant@google.com>
11389
11390         * godump.c (go_define): Ignore macros whose definitions include
11391         two adjacent operands.
11392
11393 2011-01-28  Jakub Jelinek  <jakub@redhat.com>
11394
11395         PR target/42894
11396         * varasm.c (force_const_mem): Store copy of x in desc->constant
11397         instead of x itself.
11398         * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
11399         itself into REG_EQUAL note.
11400
11401 2011-01-28  Joseph Myers  <joseph@codesourcery.com>
11402
11403         * config/freebsd.opt (posix, rdynamic): New Driver options.
11404
11405 2011-01-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11406
11407         * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
11408         -Bstatic/-Bdynamic.
11409         * configure: Regenerate.
11410
11411 2011-01-27  Joseph Myers  <joseph@codesourcery.com>
11412
11413         * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
11414         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
11415
11416 2011-01-27  Anatoly Sokolov  <aesok@post.ru>
11417
11418         * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
11419         * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
11420         * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
11421         (s390_preferred_reload_class): Make static. Change return and
11422         'rclass' argument type to reg_class_t.
11423
11424 2011-01-27  Jan Hubicka  <jh@suse.cz>
11425
11426         PR middle-end/46949
11427         * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
11428         (process_function_and_variable_attributes): Check defined weakrefs.
11429
11430 2011-01-27  Martin Jambor  <mjambor@suse.cz>
11431
11432         PR tree-optimization/47228
11433         * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
11434         build_ref_for_offset.
11435
11436 2011-01-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11437
11438         * config/spu/spu-elf.h (ASM_SPEC): Remove.
11439
11440 2011-01-26  Mikael Pettersson  <mikpe@it.uu.se>
11441
11442         PR rtl-optimization/46856
11443         * postreload.c (reload_combine_recognize_const_pattern): Do not
11444         separate cc0 setter and user on cc0 targets.
11445
11446 2011-01-26  Nicola Pero  <nicola.pero@meta-innovation.com>
11447
11448         PR c/43082
11449         * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
11450         passed a VOID_TYPE expression, immediately emit an error and
11451         return error_mark_node.
11452
11453 2011-01-26  Jeff Law  <law@redhat.com>
11454
11455         PR rtl-optimization/47464
11456         * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
11457         rather than may_trap_p as needed.
11458
11459 2011-01-26  DJ Delorie  <dj@redhat.com>
11460
11461         PR rtl-optimization/46878
11462         * combine.c (insn_a_feeds_b): Check for the implicit cc0
11463         setter/user dependency as well.
11464
11465 2011-01-26  Eric Botcazou  <ebotcazou@adacore.com>
11466
11467         PR rtl-optimization/44469
11468         * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
11469         after removing trivially dead basic blocks.
11470
11471 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
11472
11473         * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
11474         * config/frv/frv.h (LINK_SPEC): Likewise.
11475         * config/i386/netware.h (LINK_SPEC): Likewise.
11476         * config/m68k/linux.h (ASM_SPEC): Likewise.
11477         * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
11478         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
11479         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
11480         * config/sparc/linux.h (ASM_SPEC): Likewise.
11481         * config/sparc/linux64.h (ASM_SPEC): Likewise.
11482         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
11483
11484 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
11485
11486         * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
11487         * config/frv/frv.h (ASM_SPEC): Likewise.
11488         * config/m68k/linux.h (ASM_SPEC): Likewise.
11489         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
11490         * config/rs6000/linux64.h (ASM_SPEC): Likewise.
11491         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
11492         * config/sparc/linux.h (ASM_SPEC): Likewise.
11493         * config/sparc/linux64.h (ASM_SPEC): Likewise.
11494         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
11495
11496 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
11497
11498         * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
11499         * config/frv/frv.h (LINK_SPEC): Likewise.
11500         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
11501
11502 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
11503
11504         * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
11505         * config/frv/frv.h (ASM_SPEC): Likewise.
11506         * config/i386/sol2-10.h (ASM_SPEC): Likewise.
11507         * config/m68k/linux.h (ASM_SPEC): Likewise.
11508         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
11509         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
11510         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
11511         * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
11512         * config/sparc/linux.h (ASM_SPEC): Likewise.
11513         * config/sparc/linux64.h (ASM_SPEC): Likewise.
11514         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
11515         * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
11516
11517 2011-01-26  Steve Ellcey  <sje@cup.hp.com>
11518
11519         PR target/46997
11520         * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
11521         (*mux2): Ditto.
11522         (vec_extract_evenodd_help): Ditto.
11523         (vec_extract_evenv4hi): Ditto.
11524         (vec_extract_oddv4hi): Ditto.
11525         (vec_interleave_lowv2si): Ditto.
11526         (vec_interleave_highv2si): Ditto.
11527         (vec_extract_evenv2si): Ditto.
11528         (vec_extract_oddv2si: Ditto.
11529         (vec_pack_trunc_v2si): Ditto.
11530
11531 2011-01-22  Jan Hubicka  <jh@suse.cz>
11532
11533         PR target/47237
11534         * cgraph.h (cgraph_local_info): New field can_change_signature.
11535         * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
11536         signature can change.
11537         (ipcp_estimate_growth): Call sequence simplify only if calle signature
11538         can change.
11539         (ipcp_insert_stage): Only compute args_to_skip if signature can change.
11540         (cgraph_function_versioning): We can not change signature of functions
11541         that don't allow that.
11542         * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
11543         (lto_input_node): Likewise.
11544         * ipa-inline.c (compute_inline_parameters): Compute
11545         local.can_change_signature.
11546         * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
11547         * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
11548         functions that can not change signature.
11549         * i386.c (ix86_function_regparm, ix86_function_sseregparm,
11550         init_cumulative_args): Do not use local calling conventions
11551         for functions that can not change signature.
11552
11553 2011-01-22  Jan Hubicka  <jh@suse.cz>
11554
11555         * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
11556
11557 2011-01-26  Richard Guenther  <rguenther@suse.de>
11558
11559         PR tree-optimization/47190
11560         * cgraphunit.c (process_common_attributes): New function.
11561         (process_function_and_variable_attributes): Use it.
11562
11563 2011-01-26  Richard Guenther  <rguenther@suse.de>
11564
11565         PR lto/47423
11566         * cgraphbuild.c (record_eh_tables): Record reference to personality
11567         function.
11568
11569 2011-01-26  Alexandre Oliva  <aoliva@redhat.com>
11570
11571         PR debug/45454
11572         * sel-sched.c (moveup_expr): Don't let debug insns prevent
11573         non-debug insns from moving up.
11574
11575 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
11576
11577         PR target/40125
11578         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
11579         t-dlldir{,-x} fragment for build and add it to tmake_file.
11580         (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
11581         * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
11582         * config/i386/t-dlldir: New file.
11583         (SHLIB_DLLDIR): Define.
11584         * config/i386/t-dlldir-x: New file.
11585         (SHLIB_DLLDIR): Define.
11586         * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
11587         (SHLIB_INSTALL): Use it.
11588
11589 2011-01-26  Chung-Lin Tang  <cltang@codesourcery.com>
11590
11591         PR target/47246
11592         * config/arm/arm.c (thumb2_legitimate_index_p): Change the
11593         lower bound of the allowed Thumb-2 coprocessor load/store
11594         index range to -256. Add explaining comment.
11595
11596 2011-01-25  Ian Lance Taylor  <iant@google.com>
11597
11598         * godump.c (go_define): Improve lexing of macro expansion to only
11599         accept expressions which match Go spec.
11600
11601 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
11602
11603         PR c++/43601
11604         * tree.c (handle_dll_attribute): Handle it.
11605         * doc/extend.texi (@item dllexport): Mention it.
11606         * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
11607
11608 2011-01-25  Ian Lance Taylor  <iant@google.com>
11609
11610         PR tree-optimization/26854
11611         * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
11612         (decl_jump_unsafe): Move higher in file, with no other change.
11613         (bind): Set has_jump_unsafe_decl if appropriate.
11614         (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
11615         (check_earlier_gotos): Likewise.
11616         (c_check_switch_jump_warnings): Likewise.
11617
11618 2011-01-25  Jonathan Wakely  <jwakely.gcc@gmail.com>
11619
11620         * doc/invoke.texi (Warning Options): Add missing hyphen.
11621         (-fprofile-dir): Minor grammatical fixes.
11622         (-fbranch-probabilities): Likewise.
11623
11624 2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
11625
11626         PR debug/45136
11627         PR debug/45130
11628         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
11629         debug insns.
11630         (no_real_insns_p, schedule_block, set_priorities): Drop special
11631         treatment of boundary debug insns.
11632         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
11633         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
11634         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
11635         (BOUNDARY_DEBUG_INSN_P): Likewise.
11636         (SCHEDULE_DEBUG_INSN_P): Likewise.
11637         * sched-rgn.c (init_ready_list): Drop special treatment of
11638         boundary debug insns.
11639         * final.c (rest_of_clean-state): Clear notes' BB.
11640
11641 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
11642
11643         * Makefile.in (LAMBDA_H): Removed.
11644         (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
11645         (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
11646         lambda-trans.o, and tree-loop-linear.o.
11647         (lto-symtab.o): Remove dependence on LAMBDA_H.
11648         (tree-loop-linear.o): Remove rule.
11649         (lambda-mat.o): Same.
11650         (lambda-trans.o): Same.
11651         (lambda-code.o): Same.
11652         (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
11653         (tree-vect-slp.o): Same.
11654         * hwint.h (gcd): Moved here.
11655         (least_common_multiple): Same.
11656         * lambda-code.c: Removed.
11657         * lambda-mat.c: Removed.
11658         * lambda-trans.c: Removed.
11659         * lambda.h: Removed.
11660         * tree-loop-linear.c: Removed.
11661         * lto-symtab.c: Do not include lambda.h.
11662         * omega.c (gcd): Removed.
11663         * passes.c (init_optimization_passes): Remove pass_linear_transform.
11664         * tree-data-ref.c (print_lambda_vector): Moved here.
11665         (lambda_vector_copy): Same.
11666         (lambda_matrix_copy): Same.
11667         (lambda_matrix_id): Same.
11668         (lambda_vector_first_nz): Same.
11669         (lambda_matrix_row_add): Same.
11670         (lambda_matrix_row_exchange): Same.
11671         (lambda_vector_mult_const): Same.
11672         (lambda_vector_negate): Same.
11673         (lambda_matrix_row_negate): Same.
11674         (lambda_vector_equal): Same.
11675         (lambda_matrix_right_hermite): Same.
11676         * tree-data-ref.h: Do not include lambda.h.
11677         (lambda_vector): Moved here.
11678         (lambda_matrix): Same.
11679         (dependence_level): Same.
11680         (lambda_transform_legal_p): Removed declaration.
11681         (lambda_collect_parameters): Same.
11682         (lambda_compute_access_matrices): Same.
11683         (lambda_vector_gcd): Same.
11684         (lambda_vector_new): Same.
11685         (lambda_vector_clear): Same.
11686         (lambda_vector_lexico_pos): Same.
11687         (lambda_vector_zerop): Same.
11688         (lambda_matrix_new): Same.
11689         * tree-flow.h (least_common_multiple): Removed declaration.
11690         * tree-parloops.c (lambda_trans_matrix): Moved here.
11691         (LTM_MATRIX): Same.
11692         (LTM_ROWSIZE): Same.
11693         (LTM_COLSIZE): Same.
11694         (LTM_DENOMINATOR): Same.
11695         (lambda_trans_matrix_new): Same.
11696         (lambda_matrix_vector_mult): Same.
11697         (lambda_transform_legal_p): Same.
11698         * tree-pass.h (pass_linear_transform): Removed declaration.
11699         * tree-ssa-loop.c (tree_linear_transform): Removed.
11700         (gate_tree_linear_transform): Removed.
11701         (pass_linear_transform): Removed.
11702         (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
11703         flag_loop_interchange.
11704
11705 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
11706
11707         PR tree-optimization/47265
11708         PR tree-optimization/47443
11709         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
11710         if name still has some uses.
11711
11712 2011-01-25  Martin Jambor  <mjambor@suse.cz>
11713
11714         PR tree-optimization/47382
11715         * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
11716         (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
11717
11718 2011-01-25  Joel Sherrill  <joel.sherrill@oarcorp.com>
11719
11720         * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
11721         sjlj_except_unwind_info.
11722
11723 2011-01-25  Richard Guenther  <rguenther@suse.de>
11724
11725         PR tree-optimization/47426
11726         * tree-ssa-structalias.c (ipa_pta_execute): Make externally
11727         visible functions results escape.
11728
11729 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
11730
11731         PR target/45701
11732         * config/arm/arm.c (any_sibcall_uses_r3): New function.
11733         (arm_get_frame_offsets): Use it.
11734
11735 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
11736             Jakub Jelinek  <jakub@redhat.com>
11737
11738         PR tree-optimization/47271
11739         * tree-if-conv.c (bb_postdominates_preds): New.
11740         (if_convertible_bb_p): Call bb_postdominates_preds.
11741         (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
11742         (predicate_scalar_phi): Call bb_postdominates_preds.
11743
11744 2011-01-25  Nick Clifton  <nickc@redhat.com>
11745
11746         * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
11747         * config/rx/rx.c (rx_function_value): Likewise.
11748         (rx_promote_function_mode): Likewise.
11749         (gen_safe_add): Place an outsized immediate value inside an UNSPEC
11750         in order to make it legitimate.
11751         * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
11752         make sure that the first operand is the same as the result register.
11753         (addsi3_unspec): Delete.
11754         (subdi3): Do not accept immediate operands.
11755         (subdi3_internal): Likewise.
11756
11757 2011-01-25  Jeff Law  <law@redhat.com>
11758
11759         PR rtl-optimization/37273
11760         * ira-costs.c (scan_one_insn): Detect constants living in memory and
11761         handle them like argument loads from stack slots.  Do not double
11762         count memory for memory constants and argument loads from stack slots.
11763
11764 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
11765
11766         PR tree-optimization/47427
11767         PR tree-optimization/47428
11768         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
11769         coalesce if the new root var would be TREE_READONLY.
11770
11771 2011-01-25  Richard Guenther  <rguenther@suse.de>
11772
11773         PR middle-end/47414
11774         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
11775         correct type for TBAA.
11776
11777 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
11778
11779         * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
11780         (close_phi_written_to_memory): Call for_each_index with
11781         dr_indices_valid_in_loop.
11782
11783 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
11784
11785         * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
11786         when it is initialized.
11787
11788 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
11789
11790         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
11791         call to graphite_find_data_references_in_stmt.
11792         * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
11793         (try_generate_gimple_bb): Call outermost_loop_in_sese_1.  Update
11794         call to graphite_find_data_references_in_stmt.
11795         (analyze_drs_in_stmts): Same.
11796         * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
11797         in which the scalar analysis of indices is performed.
11798         (create_data_ref): Same.  Update call to dr_analyze_indices.
11799         (find_data_references_in_stmt): Update call to create_data_ref.
11800         (graphite_find_data_references_in_stmt): Same.
11801         * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
11802         declaration.
11803         (create_data_ref): Same.
11804         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
11805         call to create_data_ref.
11806
11807 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
11808
11809         * graphite-sese-to-poly.c (build_poly_scop): Move
11810         rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
11811
11812 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
11813
11814         * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
11815         VAR_DECL, PARM_DECL, and RESULT_DECL.
11816
11817 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
11818
11819         * graphite-dependences.c (reduction_dr_1): Allow several reductions
11820         in a reduction PBB.
11821         * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
11822         that have already been marked as PBB_IS_REDUCTION.
11823
11824 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
11825
11826         * graphite-scop-detection.c (same_close_phi_node): New.
11827         (remove_duplicate_close_phi): New.
11828         (make_close_phi_nodes_unique): New.
11829         (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
11830
11831 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
11832
11833         * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
11834         * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
11835         of both data references to be the same.
11836
11837 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
11838
11839         * graphite-dependences.c (build_lexicographical_constraint): Remove
11840         the gdim parameter.
11841         (build_lexicographical_constraint): Adjust call to
11842         ppl_powerset_is_empty.
11843         (dependence_polyhedron): Same.
11844         (graphite_legal_transform_dr): Same.
11845         (graphite_carried_dependence_level_k): Same.
11846         * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
11847         parameter.
11848         * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
11849
11850 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
11851
11852         * graphite-sese-to-poly.c
11853         (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
11854         (close_phi_written_to_memory): New.
11855         (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
11856         and unshare_expr.
11857
11858 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
11859
11860         * doc/install.texi: Update the expected version number of PPL to 0.11.
11861         * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
11862         #if PPL_VERSION_MINOR < 11.
11863
11864 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
11865
11866         * graphite-dependences.c: Include graphite-cloog-util.h.
11867         (new_poly_ddr): Inlined into dependence_polyhedron.
11868         (free_poly_ddr): Moved close by new_poly_ddr.
11869         (dependence_polyhedron_1): Renamed dependence_polyhedron.
11870         Early return NULL when ppl_powerset_is_empty returns true.
11871         (dependence_polyhedron): Renamed new_poly_ddr.  Call only once
11872         poly_drs_may_alias_p.  Avoid one call to ppl_powerset_is_empty.
11873         (graphite_legal_transform_dr): Call new_poly_ddr.
11874         (graphite_carried_dependence_level_k): Same.
11875         (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2.  Use new_poly_ddr.
11876         (dot_transformed_deps_stmt_1): Removed.
11877         (dot_deps_stmt_1): Call dot_deps_stmt_2.
11878         (dot_original_deps): Renamed dot_deps_2.  Call new_poly_ddr.
11879         (dot_deps_1): Call dot_deps_2.
11880         * Makefile.in (graphite-dependences.o): Add missing dependence on
11881         graphite-cloog-util.h.
11882
11883 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
11884
11885         * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
11886         (build_lexicographical_constraint): Same.
11887         (dependence_polyhedron_1): Same.
11888         (graphite_legal_transform_dr): Same.
11889         (graphite_carried_dependence_level_k): Same.
11890         * graphite-ppl.c (ppl_powerset_is_empty): New.
11891         * graphite-ppl.h (ppl_powerset_is_empty): Declared.
11892         * tree-data-ref.c (dump_data_reference): Print the basic block index.
11893
11894 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
11895
11896         * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
11897         the "a followed by b" relation and document it.
11898
11899 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
11900
11901         * graphite-dependences.c (build_lexicographical_constraint): Stop the
11902         iteration when the bag of constraints is empty.
11903
11904 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
11905
11906         * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
11907
11908 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
11909
11910         * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
11911         nest and two loop depths as parameters.
11912         (lst_try_interchange_loops): Call lst_interchange_profitable_p after
11913         lst_perfect_nestify.
11914
11915 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
11916
11917         * graphite-dependences.c (print_pddr): Call
11918         ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
11919
11920 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
11921
11922         * graphite-ppl.c (debug_gmp_value): New.
11923         * graphite-ppl.h (debug_gmp_value): Declared.
11924
11925 2011-01-25  Tobias Grosser  <grosser@fim.uni-passau.de>
11926
11927         * doc/install.texi: Document availability of cloog-0.16.
11928
11929 2011-01-25  Vladimir Kargov  <kargov@gmail.com>
11930
11931         * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
11932         invalid postdominance info.
11933
11934 2011-01-24  Jan Hubicka  <jh@suse.cz>
11935
11936         PR c/21659
11937         * doc/extend.texi (weak pragma): Drop claim that it must
11938         appear before definition.
11939         * varasm.c (merge_weak, declare_weak): Only sanity check
11940         that DECL is not output at a time it is declared weak.
11941
11942 2011-01-24  Kenneth Zadeck  <zadeck@naturalbridge.com>
11943
11944         * machmode.def: Fixed comments.
11945
11946 2011-01-24  Kai Tietz  <kai.tietz@onevision.com>
11947
11948         * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
11949
11950 2011-01-24  Paul Koning  <ni1d@arrl.net>
11951
11952         * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
11953         WORDS_BIG_ENDIAN.
11954
11955 2011-01-24  H.J. Lu  <hongjiu.lu@intel.com>
11956
11957         PR target/46519
11958         * config/i386/i386.c: Include sbitmap.h and fibheap.h.
11959         (block_info): Add scanned and prev.
11960         (move_or_delete_vzeroupper_2): Return if the basic block
11961         has been scanned and the upper 128bit state is unchanged
11962         from the last scan.
11963         (move_or_delete_vzeroupper_1): Return true if the exit
11964         state is changed.
11965         (move_or_delete_vzeroupper): Visit basic blocks using the
11966         work-list based algorithm based on vt_find_locations in
11967         var-tracking.c.
11968
11969         * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
11970
11971 2011-01-24  Nick Clifton  <nickc@redhat.com>
11972
11973         * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
11974         * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
11975         -mv850e1 to the assembler.  If -mv850e1 or -mv850es is specified
11976         then define __v850e1__.
11977         * doc/invoke.texi: Document -mv850es.
11978
11979 2011-01-24  Richard Henderson  <rth@redhat.com>
11980
11981         * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
11982         compound unordered comparisons.
11983         * config/rx/rx.c (rx_split_fp_compare): Remove.
11984         * config/rx/rx-protos.h: Update.
11985         * config/rx/rx.md (gcc_conds, rx_conds): Remove.
11986         (cbranchsf4): Don't call rx_split_fp_compare.
11987         (*cbranchsf4): Use rx_split_cbranch.
11988         (*cmpsf): Don't accept "i" constraint.
11989         (*conditional_branch): Only valid after reload.
11990         (cstoresf4): Merge expander with insn.  Don't call rx_split_fp_compare.
11991
11992 2011-01-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
11993
11994         PR target/47385
11995         * config/rs6000/altivec.md (vector constant splitters): Add
11996         support for creating vector single precision constants if -mvsx is
11997         used and we would create the constant using Altivec primitives.
11998
11999 2011-01-23  Bernd Schmidt  <bernds@codesourcery.com>
12000             Richard Sandiford  <rdsandiford@googlemail.com>
12001
12002         PR rtl-optimization/47166
12003         * reload1.c (emit_reload_insns): Disable the spill_reg_store
12004         mechanism for PRE_MODIFY and POST_MODIFY.
12005         (inc_for_reload): For PRE_MODIFY, return the insn that sets the
12006         reloadreg.
12007
12008 2011-01-23  Andreas Schwab  <schwab@linux-m68k.org>
12009
12010         * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
12011
12012 2011-01-22  Jan Hubicka  <jh@suse.cz>
12013
12014         PR lto/47333
12015         * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
12016
12017 2011-01-22  Jan Hubicka  <jh@suse.cz>
12018
12019         PR tree-optimization/43884
12020         PR lto/44334
12021         * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
12022         * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
12023
12024 2011-01-22  Anatoly Sokolov  <aesok@post.ru>
12025
12026         * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
12027         * config/s390/s390.c (s390_register_move_cost,
12028         s390_memory_move_cost): New.
12029         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
12030
12031 2011-01-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12032
12033         PR middle-end/47401
12034         * except.c (sjlj_assign_call_site_values): Move setting the
12035         crtl->uses_eh_lsda flag to ...
12036         (sjlj_mark_call_sites): ... here.
12037         (sjlj_emit_function_enter): Support NULL dispatch label.
12038         (sjlj_build_landing_pads): In a function with no landing pads
12039         that still has must-not-throw regions, generate code to register
12040         a personality function with empty LSDA.
12041
12042 2011-01-21  Richard Henderson  <rth@redhat.com>
12043
12044         * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
12045
12046         * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
12047
12048         * compare-elim.c: New file.
12049         * Makefile.in (OBJS-common): Add it.
12050         (compare-elim.o): New.
12051         * common.opt (fcompare-elim): New.
12052         * opts.c (default_options_table): Add OPT_fcompare_elim.
12053         * tree-pass.h (pass_compare_elim_after_reload): New.
12054         * passes.c (init_optimization_passes): Add it.
12055         * recog.h: Protect against re-inclusion.
12056         * target.def (TARGET_FLAGS_REGNUM): New POD hook.
12057         * doc/invoke.texi (-fcompare-elim): Document it.
12058         * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
12059         * doc/tm.texi: Rebuild.
12060
12061 2011-01-22  Nick Clifton  <nickc@redhat.com>
12062
12063         * config/rx/rx.md (cstoresf4): Pass comparison operator to
12064         rx_split_fp_compare.
12065
12066 2011-01-22  Nick Clifton  <nickc@redhat.com>
12067
12068         * config/rx/rx.md (UNSPEC_CONST): New.
12069         (deallocate_and_return): Wrap the amount popped off the stack in
12070         an UNSPEC_CONST in order to stop it being rejected by
12071         -mmax-constant-size.
12072         (pop_and_return): Add a "(return)" rtx.
12073         (call): Drop the immediate operand.
12074         (call_internal): Likewise.
12075         (call_value): Likewise.
12076         (call_value_internal): Likewise.
12077         (sibcall_internal): Likewise.
12078         (sibcall_value_internal): Likewise.
12079         (sibcall): Likewise.  Generate an explicit call using
12080         sibcall_internal.
12081         (sibcall_value): Likewise.
12082         (mov<>): FAIL if a constant operand is not legitimate.
12083         (addsi3_unpsec): New pattern.
12084
12085         * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
12086         (ok_for_max_constant): New function.
12087         (gen_safe_add): New function.
12088         (rx_expand_prologue): Use gen_safe_add.
12089         (rx_expand_epilogue): Likewise.
12090         (rx_is_legitimate_constant): Use ok_for_max_constant.  Handle
12091         UNSPEC CONSTs.
12092
12093 2011-01-21  Jeff Law  <law@redhat.com>
12094
12095         PR tree-optimization/47053
12096         * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
12097         (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
12098         statements are deleted.
12099         (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP.  If NEED_EH_CLEANUP
12100         is nonempty, then purge dead edges and cleanup the CFG.
12101
12102 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
12103
12104         PR debug/47402
12105         Temporarily revert:
12106         2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
12107         PR debug/47106
12108         * tree-dfa.c (create_var_ann): Mark variable as used.
12109
12110 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
12111
12112         PR middle-end/45566
12113         * except.c (convert_to_eh_region_ranges): Emit queued no-region
12114         notes from other section in hot/cold partitioning even if
12115         last_action is -3.  Increment call_site_base.
12116
12117         PR rtl-optimization/47366
12118         * fwprop.c (forward_propagate_into): Return bool.  If
12119         any changes are made, -fnon-call-exceptions is used and
12120         REG_EH_REGION note is present, call purge_dead_edges
12121         and return true if it purged anything.
12122         (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
12123         any EH edges were purged.
12124
12125 2011-01-21  Jeff Law  <law@redhat.com>
12126
12127         PR rtl-optimization/41619
12128         * caller-save.c (setup_save_areas): Break out code to determine
12129         which hard regs are live across calls by examining the reload chains
12130         so that it is always used.
12131         Eliminate code which checked REG_N_CALLS_CROSSED.
12132
12133 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
12134
12135         PR tree-optimization/47355
12136         * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
12137         NOP has non-debug uses beyond PHIs in new_bb.
12138
12139 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
12140
12141         PR debug/47106
12142         * cfgexpand.c (account_used_vars_for_block): Only account vars
12143         that are annotated as used.
12144         (estimated_stack_frame_size): Don't set TREE_USED.
12145         * tree-dfa.c (create_var_ann): Mark variable as used.
12146
12147 2011-01-21  Richard Guenther  <rguenther@suse.de>
12148
12149         PR middle-end/47395
12150         * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
12151
12152 2011-01-21  Richard Guenther  <rguenther@suse.de>
12153
12154         PR tree-optimization/47365
12155         * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
12156         (vn_reference_lookup_pieces): Adjust.
12157         (vn_reference_lookup): Likewise.
12158         * tree-ssa-sccvn.c (vn_walk_kind): New static global.
12159         (vn_reference_lookup_3): Only look through kills if in
12160         VN_WALKREWRITE mode.
12161         (vn_reference_lookup_pieces): Adjust.
12162         (vn_reference_lookup): Likewise.
12163         (visit_reference_op_load): Likewise.
12164         (visit_reference_op_store): Likewise.
12165         * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
12166         (compute_avail): Likewise.
12167         (eliminate): Likewise.
12168
12169 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
12170
12171         * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
12172         DECL_IGNORED_P non-reg vars if they are used.
12173
12174         PR tree-optimization/47391
12175         * varpool.c (const_value_known_p): Return false if
12176         decl is volatile.
12177
12178 2011-01-21  Kai Tietz  <kai.tietz@onevision.com>
12179
12180         PR bootstrap/47215
12181         * config/i386/i386.c (ix86_local_alignment): Handle
12182         case for va_list_type_node is nil.
12183         (ix86_canonical_va_list_type): Likewise.
12184
12185 2011-01-21  Alan Modra  <amodra@gmail.com>
12186
12187         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
12188         builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
12189
12190 2011-01-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12191
12192         * config/arm/arm.md (define_attr type): Rename f_load
12193         and f_store to f_fpa_load and f_fpa_store. Update.
12194         (write_conflict): Deal with rename fallout.
12195         (*push_fp_multi): Likewise.
12196         * config/arm/fpa.md (f_load): Use f_fpa_load.
12197         (f_store): Use f_fpa_store.
12198         (*movsf_fpa): Likewise.
12199         (*movdf_fpa): Likewise.
12200         (*movxf_fpa): Likewise.
12201         (*thumb2_movsf_fpa): Likewise.
12202         (*thumb2_movdf_fpa): Likewise.
12203         (*thumb2_movxf_fpa): Likewise.
12204         * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
12205         f_loadd and f_stored.
12206         (*thumb2_movdi_vfp): Likewise.
12207         (*thumb2_movsf_vfp): Fix attribute to f_loads.
12208         (*thumb2_movsi_vfp): Likewise.
12209         * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
12210         Use f_loads instead of f_load.
12211         * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
12212
12213 2011-01-20  Anatoly Sokolov  <aesok@post.ru>
12214
12215         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
12216         * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
12217         * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
12218         (xtensa_mode_dependent_address_p): New function.
12219         (constantpool_address_p): Make static. Change return type to bool.
12220         Change argument type to const_rtx. Use CONST_INT_P predicate.
12221
12222 2011-01-20  Alexandre Oliva  <aoliva@redhat.com>
12223
12224         PR debug/46583
12225         * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
12226
12227 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
12228
12229         PR debug/47283
12230         * cfgexpand.c (expand_debug_expr): Instead of generating
12231         (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
12232         etc. handling.
12233
12234 2011-01-20  Richard Guenther  <rguenther@suse.de>
12235
12236         PR middle-end/47370
12237         * tree-inline.c (remap_gimple_op_r): Recurse manually for
12238         the pointer operand of MEM_REFs.
12239
12240 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
12241
12242         PR tree-optimization/46130
12243         * ipa-split.c (consider_split): If return_bb contains non-virtual
12244         PHIs other than for retval or if split_function would not adjust it,
12245         refuse to split.
12246
12247 2011-01-20  Richard Guenther  <rguenther@suse.de>
12248
12249         PR tree-optimization/47167
12250         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
12251         Revert previous change, only avoid enumeral type changes.
12252
12253 2011-01-19  Mike Stump  <mikestump@comcast.net>
12254
12255         * doc/tm.texi.in (BRANCH_COST): Englishify.
12256         * doc/tm.texi (BRANCH_COST): Likewise.
12257
12258 2011-01-19  Dodji Seketeli  <dodji@redhat.com>
12259
12260         PR c++/47291
12261         * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
12262         (gen_scheduled_generic_parms_dies): New functions.
12263         (gen_struct_or_union_type_die): Schedule template parameters DIEs
12264         generation for the end of CU compilation.
12265         (dwarf2out_finish): Generate template parameters DIEs here.
12266
12267 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
12268
12269         PR debug/46240
12270         * tree-into-ssa.c (maybe_register_def): Do not attempt to add
12271         debug bind stmt on merge edges.
12272
12273 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
12274
12275         PR debug/47079
12276         PR debug/46724
12277         * function.c (instantiate_expr): Instantiate incoming rtl of
12278         implicit arguments, and recurse on VALUE_EXPRs.
12279         (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
12280         * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
12281
12282 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
12283
12284         * c-parser.c (c_parser_for_statement): Initialize
12285         collection_expression.
12286
12287 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
12288
12289         * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
12290
12291 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
12292
12293         * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
12294         (LINK_SHLIB_SPEC): Don't use %(link_path).
12295         (SUBTARGET_EXTRA_SPECS): Remove link_path.
12296
12297 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
12298
12299         * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
12300         (NO_SHARED_LIB_SUPPORT): Remove.
12301         (LINK_SHLIB_SPEC): Remove one conditional definition.
12302
12303 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
12304
12305         * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
12306         %{call_shared}.
12307         * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
12308         * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
12309         * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
12310         %{call_shared} and conditionals on these options not being passed.
12311         * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
12312         %{call_shared}.
12313
12314 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
12315
12316         * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
12317         simplify.
12318
12319         * ipa-split.c: Spelling fixes.
12320
12321 2011-01-19  Richard Henderson  <rth@redhat.com>
12322
12323         * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
12324         (*mulsi3): Likewise.
12325
12326         * longlong.h [__mn10300__] (count_leading_zeros): New.
12327         [__mn10300__] (umul_ppmm, smul_ppmm): New.
12328         [__mn10300__] (add_ssaaaa, subddmmss): New.
12329         [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
12330         [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
12331
12332 2011-01-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12333
12334         * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
12335
12336 2011-01-19  Richard Henderson  <rth@redhat.com>
12337
12338         * config/mn10300/mn10300.md (addsi3_flags): New.
12339         (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
12340         (subsi3_flags, subc_internal, subdi3): New.
12341         (subdi3_internal, *subdi3_degenerate): New.
12342         * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
12343
12344         * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
12345         (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
12346         (mn10300_expand_epilogue): Use it.  Compute REG_SAVE_BYTES once.
12347         * config/mn10300/mn10300-protos.h: Update.
12348         * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
12349         (return_ret): Likewise.  Rename from return_internal_regs.
12350         (return_internal): Remove.
12351
12352         * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
12353         (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
12354         (mn10300_legitimate_constant_p): Likewise.
12355         (mn10300_can_use_return_insn): Use mn10300_initial_offset.
12356         (mn10300_frame_size): New.
12357         (mn10300_expand_prologue): Use it.
12358         (mn10300_expand_epilogue): Likewise.
12359         (mn10300_initial_offset): Likewise.
12360         * config/mn10300/mn10300-protos.h: Update.
12361         * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
12362         * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
12363         (prologue, epilogue, return_internal): Tidy output code.
12364         (mn10300_store_multiple_operation, return): Likewise.
12365         (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
12366         (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
12367         (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
12368         (load_pic, am33_load_pic): New.
12369         (mn10300_load_pic0, mn10300_load_pic1): New.
12370
12371         * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
12372         * config/mn10300/mn10300.c (CC_FLAG_Z): New.
12373         (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
12374         (cc_flags_for_mode, cc_flags_for_code): New.
12375         (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
12376         overflow flag is not valid.  Validate that the flags we need
12377         for the comparison are valid.
12378         (mn10300_output_cmp): Remove.
12379         (mn10300_output_add): New.
12380         (mn10300_select_cc_mode): Use cc_flags_for_code.
12381         (mn10300_split_cbranch): New.
12382         (mn10300_match_ccmode): New.
12383         (mn10300_split_and_operand_count): New.
12384         * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
12385         to the function.
12386         * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
12387         (addsi3): ... here.  Use mn10300_output_add.
12388         (*addsi3_flags): New.
12389         (*am33_subsi3, *mn10300_subsi3): Merge...
12390         (subsi3): ... here.  Use attribute isa.
12391         (*subsi3_flags): New.
12392         (negsi2): Rewrite from expander to insn_and_split.  Use NOT+INC
12393         when possible.
12394         (*am33_andsi3, *mn10300_andsi3): Merge...
12395         (andsi3): ... here.
12396         (*andsi3_flags): New.
12397         (andsi3 splitters): New.
12398         (*am33_iorsi3, *mn10300_iorsi3): Merge...
12399         (iorsi3): ... here.
12400         (*iorsi3_flags): New.
12401         (*am33_xorsi3, *mn10300_xorsi3): Merge...
12402         (xorsi3): ... here.
12403         (*xorsi3_flags): New.
12404         (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
12405         (one_cmplsi2): ... here.
12406         (*one_cmplsi2_flags): New.
12407         (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload.  Use "r"
12408         instead of "dax" in constraints.  Use mn10300_split_cbranch.
12409         (*cmpsi): Rename from cmpsi.  Do not use mn10300_output_cmp.  Do not
12410         use matching constraints to eliminate a self-comparison.
12411         (*integer_conditional_branch): Rename from integer_conditional_branch.
12412         Use int_mode_flags to match CC_REG.
12413         (*cbranchsi4_btst, *btstsi): New.
12414         (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload.  Use
12415         mn10300_split_cbranch.
12416         (*am33_cmpsf): Rename from am33_cmpsf.
12417         (*float_conditional_branch): Rename from float_conditional_branch.
12418         (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
12419         (zero_extendqisi2): ... here.
12420         (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
12421         (zero_extendhisi2): ... here.
12422         (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
12423         (extendqisi2): ... here.
12424         (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
12425         (extendhisi2): ... here.
12426         (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
12427         (ashlsi3): ... here.
12428         (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
12429         (lshrsi3): ... here.
12430         (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
12431         (ashrsi3): ... here.
12432         (consecutive add peephole): Remove.
12433         * config/mn10300/predicates.md (label_ref_operand): New.
12434         (int_mode_flags): New.
12435         (CCZN_comparison_operator): New.
12436
12437         * config/mn10300/mn10300.md (UNSPEC_EXT): New.
12438         (throughput_42_latency_43): New reservation.
12439         (mulsidi3, umulsidi3): New expanders.
12440         (mulsidi3_internal): Rewrite from old mulsidi3 pattern.  Expose
12441         the MDR register to allocation; separately allocate the low and
12442         high parts of the DImode result.
12443         (umulsidi3_internal): Similarly.
12444         (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
12445         (*mulsi3): ... here.  Clobber MDR as a scratch as necessary.
12446         (udivsi3, umodsi3): Remove.
12447         (udivmodsi4, divmodsi4): New expanders.
12448         (*udivmodsi4): Rename from udivmodsi4.  Expose MDR properly.
12449         (*divmodsi4): Simiarly.
12450         (ext_internal): New.
12451
12452         * config/mn10300/constraints.md ("z"): New constraint.
12453         * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
12454         (FIXED_REGISTERS): Don't fix MDR.
12455         (CALL_USED_REGSITERS): Reformat nicely.
12456         (REG_ALLOC_ORDER): Add MDR.
12457         (enum regclass): Add MDR_REGS.
12458         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
12459         (IRA_COVER_CLASSES): Add MDR_REGS.
12460         (REGNO_REG_CLASS): Handle MDR_REG.
12461         * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
12462         (mn10300_register_move_cost): Likewise.
12463         * config/mn10300/mn10300.md (MDR_REG): New.
12464         (*movsi_internal): Handle moves to/from MDR_REGS.
12465
12466         * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
12467         POST_MODIFY.
12468         (mn10300_secondary_reload): Tidy combination reload classes.
12469         (mn10300_legitimate_address_p): Allow post-modify and reg+reg
12470         addresses for AM33.  Allow symbolic offsets for reg+imm.
12471         (mn10300_regno_in_class_p): New.
12472         (mn10300_legitimize_reload_address): New.
12473         * config/mn10300/mn10300.h (enum reg_class): Remove
12474         DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
12475         SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS.  Add
12476         SP_OR_GENERAL_REGS.
12477         (REG_CLASS_NAMES): Update to match.
12478         (REG_CLASS_CONTENTS): Likewise.
12479         (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
12480         (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
12481         (REGNO_IN_RANGE_P): Remove.
12482         (REGNO_DATA_P): Use mn10300_regno_in_class_p.
12483         (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
12484         (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
12485         (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
12486         (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
12487         (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
12488         (REGNO_GENERAL_P): New.
12489         (HAVE_POST_MODIFY_DISP): New.
12490         (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
12491         (LEGITIMIZE_RELOAD_ADDRESS): New.
12492         * config/mn10300/mn10300-protos.h: Update.
12493
12494         * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
12495         DATA_REGS for AM33 stack-pointer destination.
12496         (mn10300_preferred_output_reload_class): Likewise.
12497         (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
12498         into a form appropriate for ...
12499         (TARGET_SECONDARY_RELOAD): New.
12500         * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
12501         * config/mn10300/mn10300-protos.h: Update.
12502         * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
12503         reload_insi; use the "A" constraint for the scratch; handle AM33
12504         moves of sp to non-address registers.
12505
12506         * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
12507         (*movqi_internal): ... here.
12508         (*am33_movhi, *mn10300_movhi): Merge into...
12509         (*movhi_internal): ... here.
12510         (*movsi_internal): Use "r" instead of "dax" in constraints.  Use "A"
12511         as the source/destination of moves from/to SP.
12512         (movsf): Only allow for AM33-2.
12513         (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
12514         any integer constant constraint.  Only allow for AM33-2.  Tidy
12515         all of the alternative outputs.
12516         (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
12517         (udivmodsi4): Delete expander and promote *udivmodsi4.  Disallow
12518         for MN103.
12519         (udivsi3, umodsi3): New patterns for MN103 only.
12520
12521 2011-01-19  Joern Rennecke  <amylaar@spamcop.net>
12522
12523         * doc/tm.texi.in: Spell out that a lack of register class unions
12524         can lead to ICEs.
12525         * doc/tm.texi: Regenerate.
12526
12527 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
12528
12529         PR rtl-optimization/47337
12530         * dce.c (check_argument_store): New function.
12531         (find_call_stack_args): Ignore debug insns.  Use check_argument_store.
12532
12533         PR tree-optimization/47290
12534         * tree-eh.c (infinite_empty_loop_p): New function.
12535         (cleanup_empty_eh): Use it.
12536
12537 2011-01-18  Steve Ellcey  <sje@cup.hp.com>
12538
12539         PR target/46997
12540         * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
12541         (a64_expand_widen_sum): Ditto.
12542         * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
12543         (vec_extract_evenodd_help): Ditto.
12544         (vec_extract_evenv4hi): Ditto.
12545         (vec_extract_oddv4hi): Ditto.
12546         (vec_extract_evenv2si): Ditto.
12547         (vec_extract_oddv2si): Ditto.
12548         (vec_extract_evenv2sf): Ditto.
12549         (vec_extract_oddv2sf): Ditto.
12550         (vec_pack_trunc_v4hi: Ditto.
12551         (vec_pack_trunc_v2si): Ditto.
12552         (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
12553         (vec_interleave_highv8qi): Ditto.
12554         (mix1_r): Ditto.
12555         (vec_extract_oddv8qi): Ditto.
12556         (vec_interleave_lowv4hi): Ditto.
12557         (vec_interleave_highv4hi): Ditto.
12558         (vec_interleave_lowv2si): Ditto.
12559         (vec_interleave_highv2si): Ditto.
12560
12561 2011-01-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12562
12563         * doc/extend.texi: Mention __float128 support on hppa HP-UX.
12564         * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
12565         * config/pa/pa.c (pa_expand_builtin): New.  Include "langhooks.h".
12566         (pa_c_mode_for_suffix): New.
12567         (TARGET_EXPAND_BUILTIN): Define.
12568         (TARGET_C_MODE_FOR_SUFFIX): Define.
12569         (pa_builtins): Define.
12570         (pa_init_builtins): Register __float128 type and init new support
12571         builtins.
12572         * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
12573         * config/pa/quadlib.c (_U_Qfcopysign): New.
12574
12575 2011-01-18  Eric Botcazou  <ebotcazou@adacore.com>
12576
12577         PR middle-end/46894
12578         * explow.c (allocate_dynamic_stack_space): Do not assume more than
12579         BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
12580         are defined.
12581
12582 2011-01-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12583
12584         PR tree-optimization/47179
12585         * config/spu/spu.c (spu_ref_may_alias_errno): New function.
12586         (TARGET_REF_MAY_ALIAS_ERRNO): Define.
12587
12588 2011-01-18  Richard Guenther  <rguenther@suse.de>
12589
12590         PR rtl-optimization/47216
12591         * emit-rtl.c: Include tree-flow.h.
12592         (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
12593         of replicating it with different semantics.
12594         * Makefile.in (emit-rtl.o): Adjust.
12595
12596 2011-01-18  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12597
12598         * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
12599         (cortex_a9_dp): Handle neon types correctly.
12600
12601 2011-01-18  Jakub Jelinek  <jakub@redhat.com>
12602
12603         PR rtl-optimization/47299
12604         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
12605         subtarget.  Use normal multiplication if both operands are constants.
12606         * expmed.c (expand_widening_mult): Don't try to optimize constant
12607         multiplication if op0 has VOIDmode.  Convert op1 constant to mode
12608         before using it.
12609
12610 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12611
12612         * doc/lto.texi (LTO): Ensure two spaces after period.  Fix
12613         spacing after 'e.g.', typos, comma, hyphenation.
12614
12615 2011-01-17  Richard Henderson  <rth@redhat.com>
12616
12617         * config/rx/predicates.md (rx_constshift_operand): Use match_test.
12618         (rx_restricted_mem_operand): New.
12619         (rx_shift_operand): Use register_operand.
12620         (rx_source_operand, rx_compare_operand): Likewise.
12621         * config/rx/rx.md (addsi3_flags): New expander.
12622         (adddi3): Rewrite as expander.
12623         (adc_internal, *adc_flags, adddi3_internal): New patterns.
12624         (subsi3_flags): New expander.
12625         (subdi3): Rewrite as expander.
12626         (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
12627
12628         * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
12629         (rx_init_builtins): Remove sat builtin.
12630         (rx_expand_builtin): Likewise.
12631         * config/rx/rx.md (ssaddsi3): New.
12632         (*sat): Rename from sat.  Represent the CC_REG input.
12633
12634         * config/rx/predicates.md (rshift_operator): New.
12635         * config/rx/rx.c (rx_expand_insv): Remove.
12636         * config/rx/rx-protos.h: Update.
12637         * config/rx/rx.md (*bitset): Rename from bitset.  Swap the ashift
12638         operand to the canonical position.
12639         (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
12640         (*bitclr, *bitclr_in_memory): Similarly.
12641         (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
12642         (insv): Retain the zero_extract in the expansion.
12643
12644         * config/rx/rx.md (bswapsi2): Use = not + for output reload.
12645         (bswaphi2, bitinvert, revw): Likewise.
12646
12647         * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
12648         (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
12649         * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
12650         (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
12651         (bitset, bitset_in_memory): Likewise.
12652         (bitinvert, bitinvert_in_memory): Likewise.
12653         (bitclr, bitclr_in_memory): Likewise.
12654         (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
12655         (rx_strend, rx_cmpstrn): Likewise.
12656         (rx_setmem): Likewise.  Make the source BLKmode to match the dest.
12657         (bitop peep2 patterns): Remove.
12658
12659         * config/rx/rx.c (rx_match_ccmode): New.
12660         * config/rx/rx-protos.h: Update.
12661         * config/rx/rx.md (abssi2): Clobber, don't set flags.
12662         (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
12663         (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
12664         (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
12665         (fix_truncsfsi2, floatsisf2): Likewise.
12666         (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
12667         (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
12668         (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
12669         (*subsi3_flags, *xorsi3_flags): New.
12670
12671         * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
12672
12673         * config/rx/rx.c (rx_print_operand): Remove workaround for
12674         unsplit comparison operations.
12675
12676         * config/rx/rx.md (movsicc): Split after reload.
12677         (*movsicc): Merge *movsieq and *movsine via match_operator.
12678         (*stcc): New pattern.
12679
12680         * config/rx/rx.c (rx_float_compare_mode): Remove.
12681         * config/rx/rx.h (rx_float_compare_mode): Remove.
12682         * config/rx/rx.md (cstoresi4): Split after reload.
12683         (*sccc): New pattern.
12684
12685         * config/rx/predicates.md (label_ref_operand): New.
12686         (rx_z_comparison_operator): New.
12687         (rx_zs_comparison_operator): New.
12688         (rx_fp_comparison_operator): New.
12689         * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
12690         Validate that the flags are set properly for the comparison.
12691         (rx_gen_cond_branch_template): Remove.
12692         (rx_cc_modes_compatible): Remove.
12693         (mode_from_flags): New.
12694         (flags_from_code): Rename from flags_needed_for_conditional.
12695         (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
12696         (rx_select_cc_mode): Likewise.
12697         (rx_split_fp_compare): New.
12698         (rx_split_cbranch): New.
12699         * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
12700         (*cbranchsi4): Use match_operator and rx_split_cbranch.
12701         (*cbranchsf4): Similarly.
12702         (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>.  Use
12703         match_operator and rx_split_cbranch.
12704         (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
12705         tstbranchsi4m_ne.  Use match_operator and rx_split_cbranch.
12706         (*cmpsi): Rename from cmpsi.
12707         (*tstsi): Rename from tstsi.
12708         (*cmpsf): Rename from cmpsf; use CC_Fmode.
12709         (*conditional_branch): Rename from conditional_branch.
12710         (*reveresed_conditional_branch): Remove.
12711         (b<code>): Remove expander.
12712         * config/rx/rx-protos.h: Update.
12713
12714         * config/rx/rx.c (rx_compare_redundant): Remove.
12715         * config/rx/rx.md (cmpsi): Don't use it.
12716         * config/rx/rx-protos.h: Update.
12717
12718         * config/rx/rx-modes.def (CC_F): New mode.
12719         * config/rx/rx.c (rx_select_cc_mode): New.
12720         * config/rx/rx.h (SELECT_CC_MODE): Use it.
12721         * config/rx/rx-protos.h: Update.
12722
12723 2011-01-17  Richard Henderson  <rth@redhat.com>
12724
12725         * except.c (dump_eh_tree): Fix stray ; after for statement.
12726
12727 2011-01-17  Richard Guenther  <rguenther@suse.de>
12728
12729         PR tree-optimization/47313
12730         * tree-inline.c (tree_function_versioning): Move DECL_RESULT
12731         handling before copying the body.  Properly deal with
12732         by-reference result in SSA form.
12733
12734 2011-01-17  Ian Lance Taylor  <iant@google.com>
12735
12736         PR target/47219
12737         * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
12738         (struct_value_alias_set): Don't define.
12739         (sparc_option_override): Don't set sparc_sr_alias_set and
12740         struct_value_alias_set.
12741         (save_or_restore_regs): Use gen_frame_mem rather than calling
12742         set_mem_alias_set.
12743         (sparc_struct_value_rtx): Likewise.
12744
12745 2011-01-17  H.J. Lu  <hongjiu.lu@intel.com>
12746
12747         PR target/47318
12748         * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
12749         (_mm_maskstore_pd): Likewise.
12750         (_mm_maskload_ps): Likewise.
12751         (_mm_maskstore_ps): Likewise.
12752         (_mm256_maskload_pd): Change mask to __m256i.
12753         (_mm256_maskstore_pd): Likewise.
12754         (_mm256_maskload_ps): Likewise.
12755         (_mm256_maskstore_ps): Likewise.
12756
12757         * config/i386/i386-builtin-types.def: Updated.
12758         (ix86_expand_special_args_builtin): Likewise.
12759
12760         * config/i386/i386.c (bdesc_special_args): Update
12761         __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
12762         __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
12763         __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
12764         __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
12765
12766         * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
12767         Use <avxpermvecmode> on mask register.
12768         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
12769
12770 2011-01-17  Olivier Hainque  <hainque@adacore.com>
12771             Michael Haubenwallner  <michael.haubenwallner@salomon.at>
12772             Eric Botcazou  <ebotcazou@adacore.com>
12773
12774         PR target/46655
12775         * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
12776         if <= USHRT_MAX in 32-bit mode.
12777
12778 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12779
12780         * doc/install.texi (Configuration, Specific): Wrap long
12781         lines in examples.  Allow line wrapping in long options
12782         and URLs where beneficial for PDF output.
12783
12784 2011-01-16  Richard Sandiford  <rdsandiford@googlemail.com>
12785
12786         * config/mips/mips.c (mips_classify_symbol): Don't return
12787         SYMBOL_PC_RELATIVE for nonlocal labels.
12788
12789 2011-01-15  Eric Botcazou  <ebotcazou@adacore.com>
12790
12791         * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
12792
12793 2011-01-15  Jan Hubicka  <jh@suse.cz>
12794
12795         PR tree-optimization/47276
12796         * ipa.c (function_and_variable_visibility): Do not try to mark alias
12797         declarations as needed.
12798
12799 2011-01-15  Martin Jambor  <mjambor@suse.cz>
12800
12801         * common.opt (fdevirtualize): New flag.
12802         * doc/invoke.texi (Option Summary): Document it.
12803         * opts.c (default_options_table): Add devirtualize flag.
12804         * ipa-prop.c (detect_type_change): Return immediately if
12805         devirtualize flag is not set.
12806         (detect_type_change_ssa): Likewise.
12807         (compute_known_type_jump_func): Likewise.
12808         (ipa_analyze_virtual_call_uses): Likewise.
12809
12810 2011-01-14  Martin Jambor  <mjambor@suse.cz>
12811
12812         PR tree-optimization/45934
12813         PR tree-optimization/46302
12814         * ipa-prop.c (type_change_info): New type.
12815         (stmt_may_be_vtbl_ptr_store): New function.
12816         (check_stmt_for_type_change): Likewise.
12817         (detect_type_change): Likewise.
12818         (detect_type_change_ssa): Likewise.
12819         (compute_complex_assign_jump_func): Check for dynamic type change.
12820         (compute_complex_ancestor_jump_func): Likewise.
12821         (compute_known_type_jump_func): Likewise.
12822         (compute_scalar_jump_functions): Likewise.
12823         (ipa_analyze_virtual_call_uses): Likewise.
12824         (ipa_analyze_node): Push and pop cfun, set current_function_decl.
12825
12826 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
12827
12828         * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
12829         * config/i386/i386.opt (msse5): New Alias.
12830
12831 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
12832
12833         * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
12834         * config/sparc/linux64.h (CC1_SPEC): Likewise.
12835         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
12836         * config/sparc/sparc.h (CC1_SPEC): Likewise.
12837
12838 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
12839
12840         * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
12841         -mcpu options.
12842         * config/sparc/linux64.h (CC1_SPEC): Likewise.
12843         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
12844         * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
12845         * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
12846         Likewise.
12847         * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
12848
12849 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
12850
12851         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
12852
12853 2011-01-14  Mike Stump  <mikestump@comcast.net>
12854
12855         * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
12856         * config/fr30/fr30.md: Likweise
12857         (movsi_push): Likewise.
12858         (movsi_pop): Likewise.
12859         (enter_func): Likewise.
12860         * config/moxie/moxie.md (movsi_push): Likewise.
12861         (movsi_pop): Likewise.
12862
12863 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
12864
12865         * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
12866         %{no_archive} %{exact_version}.
12867         * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
12868         * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
12869         %{no_archive} %{exact_version}.
12870         * config/mips/openbsd.h (LINK_SPEC): Likewise.
12871         * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
12872         * config/mips/vxworks.h: Likewise.
12873
12874 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
12875
12876         * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
12877
12878 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
12879
12880         * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
12881         ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
12882
12883 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
12884
12885         * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
12886         -nodefaultlib.
12887
12888 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
12889
12890         * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
12891         for mcpu not cpu.
12892         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
12893         CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
12894         not cpu.
12895         (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
12896         Don't handle -shlib.
12897
12898 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
12899
12900         * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
12901         (CC1_SPEC): Don't handle -profile.
12902
12903 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
12904
12905         * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
12906         * config/mips/mips.h (CC1_SPEC): Likewise.
12907
12908 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
12909
12910         * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
12911         * config/mips/mips.h (CC1_SPEC): Likewise.
12912
12913 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
12914
12915         * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
12916         * config/m32r/linux.h (LINK_SPEC): Likewise.
12917         * config/mips/linux.h (LINK_SPEC): Likewise.
12918         * config/mips/linux64.h (LINK_SPEC): Likewise.
12919         * config/sparc/linux.h (LINK_SPEC): Likewise.
12920         * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
12921         LINK_SPEC): Likewise.
12922         * config/xtensa/linux.h (LINK_SPEC): Likewise.
12923
12924 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
12925
12926         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
12927         %{version:-v}.
12928         * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
12929
12930 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
12931
12932         * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
12933         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
12934
12935 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
12936
12937         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
12938
12939 2011-01-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12940
12941         * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
12942         supports -Bstatic/-Bdynamic.
12943         * configure: Regenerate.
12944
12945 2011-01-14  Jan Hubicka  <jh@suse.cz>
12946             Jack Howarth  <howarth@bromo.med.uc.edu>
12947
12948         PR target/46037
12949         * config/darwin.c (darwin_override_options): Honor flag_gtoggle
12950         when checking debug_info_level. Test write_symbols instead of
12951         debug_hooks->var_location when setting flag_var_tracking_uninit.
12952
12953 2011-01-14  Richard Guenther  <rguenther@suse.de>
12954
12955         PR tree-optimization/47179
12956         * target.def (ref_may_alias_errno): New target hook.
12957         * targhooks.h (default_ref_may_alias_errno): Declare.
12958         * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
12959         (default_ref_may_alias_errno): New function.
12960         * target.h (struct ao_ref_s): Declare.
12961         * tree-ssa-alias.c: Include target.h.
12962         (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
12963         * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
12964         (targhooks.o): Likewise.
12965         * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
12966         * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
12967
12968 2011-01-14  Richard Guenther  <rguenther@suse.de>
12969
12970         * tree-ssa-structalias.c  (new_var_info): Use DECL_HARD_REGISTER.
12971
12972 2011-01-14  Richard Guenther  <rguenther@suse.de>
12973
12974         PR tree-optimization/47280
12975         * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
12976         return CFG changes.
12977         (tree_ssa_forward_propagate_single_use_vars): Deal with
12978         CFG changes from associate_plusminus.
12979
12980 2011-01-14  Richard Guenther  <rguenther@suse.de>
12981
12982         PR middle-end/47281
12983         Revert
12984         2011-01-11  Richard Guenther  <rguenther@suse.de>
12985
12986         PR tree-optimization/46076
12987         * tree-ssa.c (useless_type_conversion_p): Conversions from
12988         unprototyped to empty argument list function types are useless.
12989
12990 2011-01-14  Richard Guenther  <rguenther@suse.de>
12991
12992         PR tree-optimization/47286
12993         * tree-ssa-structalias.c (new_var_info): Register variables are global.
12994
12995 2011-01-14  Martin Jambor  <mjambor@suse.cz>
12996
12997         PR middle-end/46823
12998         * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
12999
13000 2011-01-13  Anatoly Sokolov  <aesok@post.ru>
13001
13002         * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
13003         LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
13004         * config/xtensa/xtensa.c (xtensa_libcall_value,
13005         xtensa_function_value_regno_p): New functions.
13006         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
13007
13008 2011-01-13  Kai Tietz  <kai.tietz@onevision.com>
13009
13010         PR c++/47213
13011         * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
13012         PE specific hook.
13013         * config/i386/i386-protos.h (i386_pe_assemble_visibility):
13014         New function prototype.
13015         * config/i386/winnt.c (i386_pe_assemble_visibility):
13016         Warn only if attribute was specified by user.
13017
13018 2011-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
13019
13020         PR target/47251
13021         * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
13022         floating point.
13023         (floatunsdidf2_fcfidu): Ditto.
13024
13025 2011-01-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13026
13027         * config/s390/s390.c (print_operand_address): Replace 'error' with
13028         'output_operand_lossage'.
13029         (print_operand): Likewise.
13030
13031 2011-01-13  Jeff Law  <law@redhat.com>
13032
13033         PR rtl-optimization/39077
13034         * doc/invoke.texi (max-gcse-insertion-ratio): Document.
13035         * params.h (MAX_GCSE_INSERTION_RATIO): Define.
13036         * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
13037         * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
13038         * gcse.c (prune_insertions_deletions): New function.
13039         (compute_pre_data): Use it.
13040
13041 2011-01-13  Dodji Seketeli  <dodji@redhat.com>
13042
13043         PR debug/PR46973
13044         * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
13045         static function.
13046         (prune_unused_types_mark): Use it.
13047
13048 2011-01-13  Andrey Belevantsev  <abel@ispras.ru>
13049
13050         PR rtl-optimization/45352
13051         * sel-sched.c: Update copyright years.
13052         (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
13053         in the advancing loop when we have issued issue_rate insns.
13054
13055 2011-01-12  Richard Henderson  <rth@redhat.com>
13056
13057         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
13058         (TARGET_MD_ASM_CLOBBERS): New.
13059
13060         * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
13061         (TARGET_DELEGITIMIZE_ADDRESS): New.
13062
13063         * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
13064         (clzsi2, *bsch): New patterns.
13065
13066         * config/mn10300/mn10300.md (INT): New mode iterator.
13067         (*mov<INT>_clr): New pattern, and peep2 to generate it.
13068
13069         * config/mn10300/mn10300.c (mn10300_option_override): Force enable
13070         flag_split_wide_types.
13071
13072         * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
13073         (mn10300_trampoline_init): Rewrite without a template, an immediate
13074         load and a direct branch.
13075         * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
13076
13077 2011-01-12  Anatoly Sokolov  <aesok@post.ru>
13078
13079         * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
13080         * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
13081         * config/s390/s390.c (s390_output_addr_const_extra): Make static.
13082         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
13083
13084 2011-01-12  Kai Tietz  <kai.tietz@onevision.com>
13085
13086         PR debug/47209
13087         * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
13088         of type.
13089
13090 2011-01-12  Jan Hubicka  <jh@suse.cz>
13091
13092         PR driver/47244
13093         * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
13094         (PLUGIN_COND_CLOSE): New macro.
13095         (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
13096
13097 2011-01-12  Richard Guenther  <rguenther@suse.de>
13098
13099         PR lto/47259
13100         * lto-streamer-out.c (output_gimple_stmt): Do not wrap
13101         register variables in a MEM_REF.
13102
13103 2011-01-12  Joseph Myers  <joseph@codesourcery.com>
13104
13105         * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
13106         crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
13107         hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
13108         i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
13109         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
13110         x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
13111         ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
13112         m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
13113         mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
13114         s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
13115         sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
13116         am33_2.0-*-linux*): Use gnu-user.h before linux.h.
13117         * config/gnu-user.h: New.  Copied from linux.h.
13118         (LINUX_TARGET_STARTFILE_SPEC): Rename to
13119         GNU_USER_TARGET_STARTFILE_SPEC.
13120         (LINUX_TARGET_ENDFILE_SPEC): Rename to
13121         GNU_USER_TARGET_ENDFILE_SPEC.
13122         (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
13123         (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
13124         (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
13125         LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
13126         CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
13127         UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
13128         BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
13129         BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
13130         LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
13131         TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
13132         * config/arm/linux-eabi.h (CC1_SPEC): Use
13133         GNU_USER_TARGET_CC1_SPEC.
13134         (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
13135         (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
13136         (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
13137         * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
13138         LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
13139         LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
13140         CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
13141         LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
13142
13143 2011-01-12  Richard Guenther  <rguenther@suse.de>
13144
13145         PR other/46946
13146         * doc/invoke.texi (ffast-math): Document it is turned on
13147         with -Ofast.
13148
13149 2011-01-12  Jan Hubicka  <jh@suse.cz>
13150
13151         PR tree-optimization/47233
13152         * opts.c (common_handle_option): Disable ipa-reference with profile
13153         feedback.
13154
13155 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
13156
13157         * c-parser.c (c_parser_objc_at_property_declaration): Improved
13158         error message.
13159
13160 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
13161
13162         * c-parser.c (c_lex_one_token): Updated and reindented some
13163         comments.  No changes in code.
13164
13165 2011-01-11  Ian Lance Taylor  <iant@google.com>
13166
13167         * godump.c (go_output_var): Don't output the variable if there is
13168         already a type with the same name.
13169
13170 2011-01-11  Ian Lance Taylor  <iant@google.com>
13171
13172         * godump.c (go_format_type): Don't generate float80.
13173
13174 2011-01-11  Richard Henderson  <rth@redhat.com>
13175
13176         * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
13177         declaration.  Rewrite for both speed and size.
13178         (mn10300_address_cost_1): Remove.
13179         (mn10300_register_move_cost): New.
13180         (mn10300_memory_move_cost): New.
13181         (mn10300_rtx_costs): Rewrite for both speed and size.  Don't handle
13182         ZERO_EXTRACT.  Do handle UNSPEC, arithmetic, logicals, compare,
13183         extensions, shifts, BSWAP, CLZ.
13184         (mn10300_wide_const_load_uses_clr): Remove.
13185         (TARGET_REGISTER_MOVE_COST): New.
13186         (TARGET_MEMORY_MOVE_COST): New.
13187         * config/mn10300/mn10300-protos.h: Update.
13188         * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
13189
13190         * config/mn10300/constraints.md ("R", "T"): Remove constraints.
13191         * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
13192         * config/mn10300/mn10300-protos.h: Update.
13193         * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
13194         (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
13195         (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
13196         (*test_int_bitfield, *test_byte_bitfield): Remove.
13197         (*bit_test, *subreg_bit_test): Remove.
13198         * config/mn10300/predicates.md (const_8bit_operand): Remove.
13199
13200         * config/mn10300/constraints.md ("c"): Rename from "A".
13201         ("A", "D"): New constraint letters.
13202         * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
13203         (fmssf4, fnmasf4, fnmssf4): Likewise.
13204
13205         * config/mn10300/mn10300.md (isa): New attribute.
13206         (enabled): New attribute.
13207
13208         * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
13209         (abssf2, negsf2): Define only for hardware fp.
13210         (sqrtsf2): Reformat.
13211         (addsf3, subsf3, mulsf3): Merge expander and insn.
13212
13213         * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
13214         (DEBUGGER_AUTO_OFFSET): Remove.
13215         (DEBUGGER_ARG_OFFSET): Remove.
13216
13217         * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
13218         Emit register stores with the same offsets as the hardware.
13219         (mn10300_store_multiple_operation): Don't check that the register
13220         save offsets are monotonic.
13221         * config/mn10300/mn10300-protos.h: Update.
13222
13223         * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
13224
13225         * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
13226         in terms of the value on the stack, not the MDR register.
13227
13228 2011-01-11  Jan Hubicka  <jh@suse.cz>
13229
13230         PR lto/45721
13231         PR lto/45375
13232         * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
13233         (symbol_alias_set_destroy, symbol_alias_set_contains,
13234         propagate_aliases_backward): Declare.
13235         * lto-streamer-out.c (struct sets): New sturcture.
13236         (trivally_defined_alias): New function.
13237         (output_alias_pair_p): Rewrite.
13238         (output_unreferenced_globals): Fix output of alias pairs.
13239         (produce_symtab): Likewise.
13240         * ipa.c (function_and_variable_visibility): Set weak alias destination
13241         as needed in lto.
13242         * varasm.c (symbol_alias_set_t): Remove.
13243         (symbol_alias_set_destroy): Export.
13244         (propagate_aliases_forward, propagate_aliases_backward): New functions
13245         based on ...
13246         (compute_visible_aliases): ... this one; remove.
13247         (trivially_visible_alias): New
13248         (trivially_defined_alias): New.
13249         (remove_unreachable_alias_pairs): Rewrite.
13250         (finish_aliases_1): Reorganize code checking if alias is defined.
13251         * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
13252         in LTO mode.
13253
13254 2011-01-11  Richard Guenther  <rguenther@suse.de>
13255
13256         PR tree-optimization/46076
13257         * tree-ssa.c (useless_type_conversion_p): Conversions from
13258         unprototyped to empty argument list function types are useless.
13259
13260 2011-01-11  Richard Guenther  <rguenther@suse.de>
13261
13262         PR middle-end/45235
13263         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
13264         volatile MEMs as MEM_READONLY_P.
13265
13266 2011-01-11  Richard Guenther  <rguenther@suse.de>
13267
13268         PR tree-optimization/47239
13269         * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
13270
13271 2011-01-11  Jeff Law  <law@redhat.com>
13272
13273         PR tree-optimization/47086
13274         * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
13275         IVs from statements that might throw.
13276
13277 2011-01-10  Jan Hubicka  <jh@suse.cz>
13278
13279         PR lto/45375
13280         * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
13281
13282 2011-01-10  Jan Hubicka  <jh@suse.cz>
13283
13284         PR lto/45375
13285         * profile.c (read_profile_edge_counts): Ignore profile inconistency
13286         when correcting profile.
13287
13288 2011-01-10  Jan Hubicka  <jh@suse.cz>
13289
13290         PR lto/46083
13291         * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
13292         DECL_FINI_PRIORITY.
13293         * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
13294         Restore DECL_FINI_PRIORITY.
13295
13296 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13297
13298         * doc/gimple.texi: Fix quoting of multi-word return values in
13299         @deftypefn statements.  Ensure presence of return value.  Wrap
13300         overlong @deftypefn lines.
13301         (is_gimple_operand, is_gimple_min_invariant_address): Remove
13302         descriptions of removed functions.
13303         * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
13304         of multi-word return value in @deftypefn statement.
13305
13306 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13307
13308         * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
13309         (Conditional Expressions, Logical Operators)
13310         (Statement and operand traversals): Do not indent smallexample
13311         code.  Fix duplicate function argument in example.
13312
13313 2011-01-10  Jeff Law  <law@redhat.com>
13314
13315         PR tree-optimization/47141
13316         * ipa-split.c (split_function): Handle case where we are
13317         returning a value and the return block has a virtual operand phi.
13318
13319 2011-01-10  Jan Hubicka  <jh@suse.cz>
13320
13321         PR tree-optimization/47234
13322         * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
13323         (pass_feedback_split_functions): Declare.
13324         * passes.c (init_optimization_passes): Add ipa-split as subpass of
13325         tree-profile.
13326         * ipa-split.c (gate_split_functions): Update comments; disable
13327         split-functions for profile_arc_flag and branch_probabilities.
13328         (gate_feedback_split_functions): New function.
13329         (execute_feedback_split_functions): New function.
13330         (pass_feedback_split_functions): New global var.
13331
13332 2011-01-10  H.J. Lu  <hongjiu.lu@intel.com>
13333
13334         PR lto/46760
13335         * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
13336         calling gimple_call_set_cannot_inline.
13337
13338 2011-01-10  Iain Sandoe  <iains@gcc.gnu.org>
13339
13340         * config/darwin-sections.def: Remove unused section.
13341
13342 2011-01-10  Dave Korn  <dave.korn.cygwin@gmail.com>
13343
13344         PR c++/47218
13345         * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
13346
13347 2011-01-09  Nicola Pero  <nicola.pero@meta-innovation.com>
13348
13349         PR objc/47232
13350         * c-parser.c (c_parser_declaration_or_fndef): Improved
13351         error message.
13352
13353 2011-01-09  Kai Tietz  <kai.tietz@onevision.com>
13354
13355         * config/i386/winnt.c (i386_pe_start_function): Make sure
13356         to switch back to function's section.
13357
13358 2011-01-09  Iain Sandoe  <iains@gcc.gnu.org>
13359
13360         PR gcc/46902
13361         PR testsuite/46912
13362         * plugin.c: Move include of dlfcn.h from here...
13363         * system.h: ... to here.
13364
13365 2011-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13366
13367         * doc/cpp.texi (C++ Named Operators): Fix markup for header
13368         file name.
13369         * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
13370         two extra empty pages in PDF output.
13371
13372 2011-01-08  Nicola Pero  <nicola.pero@meta-innovation.com>
13373
13374         PR objc/47078
13375         * c-parser.c (c_parser_objc_type_name): If the type is unknown,
13376         for error recovery purposes behave as if it was not specified so
13377         that the default type is usd.
13378
13379 2011-01-07  Jan Hubicka  <jh@suse.cz>
13380
13381         PR tree-optmization/46469
13382         * ipa.c (function_and_variable_visibility): Clear needed flags on
13383         nodes with external decls; handle weakrefs merging correctly.
13384
13385 2011-01-07  Joseph Myers  <joseph@codesourcery.com>
13386
13387         * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
13388         not false.
13389
13390 2011-01-07  Jan Hubicka  <jh@suse.cz>
13391
13392         * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
13393         and no longer claim that gold is required for linker plugin.
13394         * configure: Regenerate.
13395         * gcc.c (PLUGIN_COND): New macro.
13396         (LINK_COMMAND_SPEC): Use it.
13397         (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
13398         * config.in (HAVE_LTO_PLUGIN): New.
13399         * configure.ac (--with-lto-plugin): New parameter; autodetect
13400         HAVE_LTO_PLUGIN.
13401
13402 2011-01-07  Jan Hubicka  <jh@suse.cz>
13403
13404         PR tree-optimization/46367
13405         * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
13406         when we can update original.
13407         (cgraph_mark_inline_edge): Sanity check.
13408         * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
13409
13410 2011-01-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13411
13412         * config/spu/spu.h (ASM_COMMENT_START): Define.
13413
13414 2011-01-07  H.J. Lu  <hongjiu.lu@intel.com>
13415
13416         PR driver/42445
13417         * gcc.c (%>S): New.
13418         (SWITCH_KEEP_FOR_GCC): Likewise.
13419         (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
13420         (do_spec_1): Handle "%>".
13421
13422         * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
13423
13424 2011-01-07  Jakub Jelinek  <jakub@redhat.com>
13425
13426         PR target/47201
13427         * config/i386/i386.c (ix86_delegitimize_address): If
13428         simplify_gen_subreg fails, return orig_x.
13429
13430         PR bootstrap/47187
13431         * value-prof.c (gimple_stringop_fixed_value): Handle
13432         lhs of the call properly.
13433
13434 2011-01-07  Jan Hubicka  <jh@suse.cz>
13435
13436         PR lto/45375
13437         * lto-opt.c (lto_reissue_options): Set flag_shlib.
13438
13439 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
13440
13441         * target.def (function_switched_text_sections): New hook.
13442         * doc/tm.texi: Regenerated.
13443         * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
13444         * final.c (default_function_switched_text_sections): New.
13445         (final_scan_insn): Call function_switched_text_sections when a
13446         mid-function section change occurs.
13447         * output.h (default_function_switched_text_sections): Declare.
13448         * config/darwin-protos.h (darwin_function_switched_text_sections):
13449         Likewise.
13450         * config/darwin.c (darwin_function_switched_text_sections): New.
13451         * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
13452
13453 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
13454
13455         * dwarf2out.c (gen_subprogram_die):  Add pubnames with code ranges for
13456         DWARF >= 3.  Add pubnames for the primary section and a reduced DIE for
13457         the secondary code fragment when outputting for DWARF == 2.
13458
13459 2011-01-07  Anatoly Sokolov  <aesok@post.ru>
13460
13461         * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
13462         * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
13463         Remove.
13464         * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
13465         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
13466
13467 2011-01-06  Eric Botcazou  <ebotcazou@adacore.com>
13468
13469         PR debug/46704
13470         * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
13471         when it is not empty.
13472
13473 2011-01-06  Changpeng Fang  <changpeng.fang@amd.com>
13474
13475         Bobcat Enablement
13476         * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
13477         (case ${target}): Add btver1.
13478         * config/i386/driver-i386.c (host_detect_local_cpu): Let
13479         -march=native recognize btver1 processors.
13480         * config/i386/i386-c.c (ix86_target_macros_internal): Add
13481         btver1 def_and_undef
13482         * config/i386/i386.c (struct processor_costs btver1_cost): New
13483         btver1 cost table.
13484         (m_BTVER1): New definition.
13485         (m_AMD_MULTIPLE): Includes m_BTVER1.
13486         (initial_ix86_tune_features): Add btver1 tune.
13487         (processor_target_table): Add btver1 entry.
13488         (static const char *const cpu_names): Add btver1 entry.
13489         (software_prefetching_beneficial_p): Add btver1.
13490         (ix86_option_override_internal): Add btver1 instruction sets.
13491         (ix86_issue_rate): Add btver1.
13492         (ix86_adjust_cost): Add btver1.
13493         * config/i386/i386.h (TARGET_BTVER1): New definition.
13494         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
13495         (enum processor_type): Add PROCESSOR_BTVER1.
13496         * config/i386/i386.md (define_attr "cpu"): Add btver1.
13497
13498 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13499
13500         PR target/43309
13501         * config/i386/i386.c (legitimize_tls_address)
13502         <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
13503         * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
13504         (tls_initial_exec_64_sun): New pattern.
13505
13506 2011-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
13507
13508         * doc/invoke.texi (Overall Options): Improve wording and markup
13509         of the description of -wrapper.
13510
13511 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
13512
13513         * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
13514         rdynamic, threads): New Driver options.
13515
13516 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13517
13518         PR target/38118
13519         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
13520         if coming from .tdata.
13521         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
13522
13523 2011-01-06  Jan Hubicka  <jh@suse.cz>
13524
13525         PR lto/47188
13526         * collect2.c (main): Do not enable LTOmode when plugin is active.
13527
13528 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13529
13530         PR other/45915
13531         * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
13532         --version output if supported.
13533         * configure: Regenerate.
13534
13535 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
13536
13537         * config/linux-android.opt (tno-android-cc, tno-android-ld): New
13538         Driver options.
13539
13540 2011-01-06  Jakub Jelinek  <jakub@redhat.com>
13541
13542         PR c/47150
13543         * c-convert.c (convert): When converting a complex expression
13544         other than COMPLEX_EXPR to a different complex type, ensure
13545         c_save_expr is called instead of save_expr, unless in_late_binary_op.
13546         * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
13547         when converting COMPLEX_TYPE.
13548
13549 2011-01-06  Ira Rosen  <irar@il.ibm.com>
13550
13551         PR tree-optimization/47139
13552         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
13553         only the last reduction value is used outside the loop.  Update
13554         documentation.
13555
13556 2011-01-05  Joseph Myers  <joseph@codesourcery.com>
13557
13558         * config/rtems.opt: New.
13559         * config.gcc (*-*-rtems*): Use rtems.opt.
13560
13561 2011-01-05  Changpeng Fang  <changpeng.fang@amd.com>
13562
13563         * config/i386/i386.c (ix86_option_override_internal): Bulldozer
13564         processors do not support 3DNow instructions.
13565
13566 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13567
13568         * config/spu/spu.c (spu_option_override): Set parameter
13569         PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
13570
13571 2011-01-05  Jan Hubicka  <jh@suse.cz>
13572
13573         * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
13574         at the command line.
13575
13576 2011-01-05  Martin Jambor  <mjambor@suse.cz>
13577
13578         PR lto/47162
13579         * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
13580         deltas on streamed outgoing edges.
13581         (output_node_opt_summary): Output info for outgoing edges only when
13582         the node is in new parameter set.
13583         (output_cgraph_opt_summary): New parameter set, passed to the two
13584         aforementioned functions.  Update its forward declaration and its
13585         callee too.
13586
13587 2011-01-05  Tom Tromey  <tromey@redhat.com>
13588
13589         * c-parser.c (c_parser_omp_atomic): Pass location of assignment
13590         operator to c_finish_omp_atomic.
13591         * c-typeck.c (lvalue_or_else): Add 'loc' argument.
13592         (build_unary_op): Update.
13593         (build_modify_expr): Update.
13594         (build_asm_expr): Update.
13595
13596 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13597
13598         * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
13599         newly inserted insns.
13600         (pad_bb): Likewise.
13601         (spu_emit_branch_hint): Likewise.
13602         (insert_hbrp_for_ilb_runout): Likewise.
13603         (spu_machine_dependent_reorg): Call df_finish_pass after
13604         schedule_insns returns.
13605
13606 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13607
13608         * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
13609
13610 2011-01-05  Eric Botcazou  <ebotcazou@adacore.com>
13611
13612         PR tree-optimization/47005
13613         * tree-sra.c (struct access): Add 'non_addressable' bit.
13614         (create_access): Set it for a DECL_NONADDRESSABLE_P field.
13615         (decide_one_param_reduction): Return 0 if the parameter is passed by
13616         reference and one of the accesses in the group is non_addressable.
13617
13618 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
13619
13620         PR tree-optimization/47056
13621         * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
13622         (mark_load): Likewise.  Handle FUNCTION_DECL specially.
13623         (mark_store): Likewise.  Pass STMT to ipa_record_reference.
13624
13625 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
13626
13627         * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
13628         initializer.  Skip view conversions from aggregate types.
13629
13630 2011-01-04  Kai Tietz  <kai.tietz@onevision.com>
13631
13632         PR bootstrap/47055
13633         * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
13634
13635 2011-01-04  Philipp Thomas  <pth@suse.de>
13636
13637         * config/microblaze/microbalse.opt (mxl-float-convert): Fix
13638         obvious typo.
13639
13640 2011-01-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13641
13642         * function.c (thread_prologue_and_epilogue_insns): Do not crash
13643         on empty epilogue sequences.
13644
13645 2011-01-04  Joseph Myers  <joseph@codesourcery.com>
13646
13647         * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
13648         non-static): New Driver options.
13649
13650 2011-01-04  Jie Zhang  <jie@codesourcery.com>
13651
13652         PR driver/47137
13653         * gcc.c (default_compilers[]): Set combinable field to 0
13654         for all assembly languages.
13655
13656 2011-01-04  Mingjie Xing  <mingjie.xing@gmail.com>
13657
13658         * config/mips/loongson3a.md: New file.
13659         * config/mips/mips.md: Include loongson3a.md.
13660         * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
13661         TUNE_LOONGSON_3A.
13662
13663 2011-01-03  Eric Botcazou  <ebotcazou@adacore.com>
13664
13665         PR middle-end/47017
13666         * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
13667         instead of convert_memory_address_addr_space on the base expression.
13668
13669 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13670
13671         * config/spu/spu.c (spu_option_override): Update error text
13672         for bad -march= / -mtune= values.
13673
13674 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13675
13676         * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
13677         if branch-hint optimization will be performed.
13678
13679 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
13680
13681         PR tree-optimization/47148
13682         * ipa-split.c (split_function): Convert arguments to
13683         DECL_ARG_TYPE if possible.
13684
13685         PR tree-optimization/47155
13686         * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
13687         when computing uns.
13688
13689         PR rtl-optimization/47157
13690         * combine.c (try_combine): If undobuf.other_insn becomes
13691         (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
13692         and set *new_direct_jump_p too.
13693
13694 2011-01-03  Sebastian Pop  <sebastian.pop@amd.com>
13695
13696         PR tree-optimization/47021
13697         * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
13698
13699 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
13700
13701         * gcc.c (process_command): Update copyright notice dates.
13702         * gcov.c (print_version): Likewise.
13703         * gcov-dump.c (print_version): Likewise.
13704         * mips-tfile.c (main): Likewise.
13705         * mips-tdump.c (main): Likewise.
13706
13707 2011-01-03  Martin Jambor  <mjambor@suse.cz>
13708
13709         PR tree-optimization/46801
13710         * tree-sra.c (type_internals_preclude_sra_p): Check whether
13711         aggregate fields start at byte boundary instead of the bit-field flag.
13712
13713 2011-01-03  H.J. Lu  <hongjiu.lu@intel.com>
13714
13715         PR driver/47137
13716         * gcc.c (main): Revert revision 168407.
13717
13718 2011-01-03  Martin Jambor  <mjambor@suse.cz>
13719
13720         * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
13721
13722 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13723
13724         * tree-vect-generic.c (expand_vector_operations_1): When using vector/
13725         vector optab to expand vector/scalar shift, update gimple to vector.
13726
13727 2011-01-03  Martin Jambor  <mjambor@suse.cz>
13728
13729         * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
13730         a thunk.
13731
13732 2011-01-03  Martin Jambor  <mjambor@suse.cz>
13733
13734         PR tree-optimization/46984
13735         * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
13736         HOST_WIDE_INT.
13737         (cgraph_create_indirect_edge): Fixed line length.
13738         (cgraph_indirect_call_info): Declare.
13739         (cgraph_make_edge_direct) Update declaration.
13740         * cgraph.c (cgraph_allocate_init_indirect_info): New function.
13741         (cgraph_create_indirect_edge): Use it.
13742         (cgraph_make_edge_direct): Made delta HOST_WIDE_INT.  Updated all
13743         callees.
13744         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
13745         the new thunk_delta representation.
13746         * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
13747         HOST_WIDE_INT.
13748         (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
13749         (ipa_read_indirect_edge_info): Likewise.
13750         * lto-cgraph.c (output_edge_opt_summary): New function.
13751         (output_node_opt_summary): Call it on all outgoing edges.
13752         (input_edge_opt_summary): New function.
13753         (input_node_opt_summary): Call it on all outgoing edges.
13754
13755 2011-01-02  H.J. Lu  <hongjiu.lu@intel.com>
13756
13757         PR driver/47137
13758         * gcc.c (main): Don't check have_o when settting combine_inputs.
13759
13760 2011-01-02  Eric Botcazou  <ebotcazou@adacore.com>
13761
13762         * regrename.c: Add general comment describing the pass.
13763         (struct du_head): Remove 'length' field.
13764         (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
13765         (regrename_optimize): Do not sort chains.  Rework comments, add others.
13766         Force renaming to the preferred class (if any) in the first pass and do
13767         not consider registers that belong to it in the second pass.
13768         (create_new_chain): Do not set 'length' field.
13769         (scan_rtx_reg): Likewise.
13770
13771 2011-01-02  Jakub Jelinek  <jakub@redhat.com>
13772
13773         PR tree-optimization/47140
13774         * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
13775         TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
13776         to bit_value_binop.
13777
13778         PR rtl-optimization/47028
13779         * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
13780         parm_birth_insn instead of at the beginning of first bb.
13781
13782 2011-01-02  Mingjie Xing  <mingjie.xing@gmail.com>
13783
13784         * doc/generic.texi: Remove duplicated "@subsubsection Statements".
13785         Remove the word "see" before "@pxref".
13786         * doc/rtl.texi: Remove the word "see" before "@pxref".
13787
13788 2011-01-01  Jan Hubicka  <jh@suse.cz>
13789
13790         * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
13791         memory.
13792
13793 2011-01-01  Kai Tietz  <kai.tietz@onevision.com>
13794
13795         PR target/38662
13796         * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
13797
13798 \f
13799 Copyright (C) 2011 Free Software Foundation, Inc.
13800
13801 Copying and distribution of this file, with or without modification,
13802 are permitted in any medium without royalty provided the copyright
13803 notice and this notice are preserved.